Files
shlink-web-client/dependabot/npm_and_yarn/react-549425c6c9/assets/index-CQeWa3FE.js

827 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var BY=Object.defineProperty;var FY=(e,t,n)=>t in e?BY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var uf=(e,t,n)=>FY(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Vg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nx={exports:{}},Kh={};/**
* @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 FN;function zY(){if(FN)return Kh;FN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:a}}return Kh.Fragment=t,Kh.jsx=n,Kh.jsxs=n,Kh}var zN;function qY(){return zN||(zN=1,Nx.exports=zY()),Nx.exports}var y=qY(),Lx={exports:{}},Zh={},Dx={exports:{}},kx={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var qN;function VY(){return qN||(qN=1,function(e){function t(Q,oe){var le=Q.length;Q.push(oe);e:for(;0<le;){var X=le-1>>>1,$=Q[X];if(0<i($,oe))Q[X]=oe,Q[le]=$,le=X;else break e}}function n(Q){return Q.length===0?null:Q[0]}function r(Q){if(Q.length===0)return null;var oe=Q[0],le=Q.pop();if(le!==oe){Q[0]=le;e:for(var X=0,$=Q.length,G=$>>>1;X<G;){var se=2*(X+1)-1,Z=Q[se],ue=se+1,fe=Q[ue];if(0>i(Z,le))ue<$&&0>i(fe,Z)?(Q[X]=fe,Q[ue]=le,X=ue):(Q[X]=Z,Q[se]=le,X=se);else if(ue<$&&0>i(fe,le))Q[X]=fe,Q[ue]=le,X=ue;else break e}}return oe}function i(Q,oe){var le=Q.sortIndex-oe.sortIndex;return le!==0?le:Q.id-oe.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var f=[],c=[],h=1,m=null,g=3,x=!1,_=!1,w=!1,O=!1,S=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function j(Q){for(var oe=n(c);oe!==null;){if(oe.callback===null)r(c);else if(oe.startTime<=Q)r(c),oe.sortIndex=oe.expirationTime,t(f,oe);else break;oe=n(c)}}function P(Q){if(w=!1,j(Q),!_)if(n(f)!==null)_=!0,R||(R=!0,H());else{var oe=n(c);oe!==null&&re(P,oe.startTime-Q)}}var R=!1,D=-1,U=5,z=-1;function F(){return O?!0:!(e.unstable_now()-z<U)}function V(){if(O=!1,R){var Q=e.unstable_now();z=Q;var oe=!0;try{e:{_=!1,w&&(w=!1,T(D),D=-1),x=!0;var le=g;try{t:{for(j(Q),m=n(f);m!==null&&!(m.expirationTime>Q&&F());){var X=m.callback;if(typeof X=="function"){m.callback=null,g=m.priorityLevel;var $=X(m.expirationTime<=Q);if(Q=e.unstable_now(),typeof $=="function"){m.callback=$,j(Q),oe=!0;break t}m===n(f)&&r(f),j(Q)}else r(f);m=n(f)}if(m!==null)oe=!0;else{var G=n(c);G!==null&&re(P,G.startTime-Q),oe=!1}}break e}finally{m=null,g=le,x=!1}oe=void 0}}finally{oe?H():R=!1}}}var H;if(typeof A=="function")H=function(){A(V)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ee=te.port2;te.port1.onmessage=V,H=function(){ee.postMessage(null)}}else H=function(){S(V,0)};function re(Q,oe){D=S(function(){Q(e.unstable_now())},oe)}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(Q){Q.callback=null},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(Q){switch(g){case 1:case 2:case 3:var oe=3;break;default:oe=g}var le=g;g=oe;try{return Q()}finally{g=le}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(Q,oe){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var le=g;g=Q;try{return oe()}finally{g=le}},e.unstable_scheduleCallback=function(Q,oe,le){var X=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?X+le:X):le=X,Q){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=le+$,Q={id:h++,callback:oe,priorityLevel:Q,startTime:le,expirationTime:$,sortIndex:-1},le>X?(Q.sortIndex=le,t(c,Q),n(f)===null&&Q===n(c)&&(w?(T(D),D=-1):w=!0,re(P,le-X))):(Q.sortIndex=$,t(f,Q),_||x||(_=!0,R||(R=!0,H()))),Q},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(Q){var oe=g;return function(){var le=g;g=oe;try{return Q.apply(this,arguments)}finally{g=le}}}}(kx)),kx}var VN;function HY(){return VN||(VN=1,Dx.exports=VY()),Dx.exports}var Ix={exports:{}},St={};/**
* @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 HN;function WY(){if(HN)return St;HN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function g($){return $===null||typeof $!="object"?null:($=m&&$[m]||$["@@iterator"],typeof $=="function"?$:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function O($,G,se){this.props=$,this.context=G,this.refs=w,this.updater=se||x}O.prototype.isReactComponent={},O.prototype.setState=function($,G){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,G,"setState")},O.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function S(){}S.prototype=O.prototype;function T($,G,se){this.props=$,this.context=G,this.refs=w,this.updater=se||x}var A=T.prototype=new S;A.constructor=T,_(A,O.prototype),A.isPureReactComponent=!0;var j=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function D($,G,se,Z,ue,fe){return se=fe.ref,{$$typeof:e,type:$,key:G,ref:se!==void 0?se:null,props:fe}}function U($,G){return D($.type,G,void 0,void 0,void 0,$.props)}function z($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function F($){var G={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(se){return G[se]})}var V=/\/+/g;function H($,G){return typeof $=="object"&&$!==null&&$.key!=null?F(""+$.key):G.toString(36)}function te(){}function ee($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(te,te):($.status="pending",$.then(function(G){$.status==="pending"&&($.status="fulfilled",$.value=G)},function(G){$.status==="pending"&&($.status="rejected",$.reason=G)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function re($,G,se,Z,ue){var fe=typeof $;(fe==="undefined"||fe==="boolean")&&($=null);var de=!1;if($===null)de=!0;else switch(fe){case"bigint":case"string":case"number":de=!0;break;case"object":switch($.$$typeof){case e:case t:de=!0;break;case h:return de=$._init,re(de($._payload),G,se,Z,ue)}}if(de)return ue=ue($),de=Z===""?"."+H($,0):Z,j(ue)?(se="",de!=null&&(se=de.replace(V,"$&/")+"/"),re(ue,G,se,"",function(B){return B})):ue!=null&&(z(ue)&&(ue=U(ue,se+(ue.key==null||$&&$.key===ue.key?"":(""+ue.key).replace(V,"$&/")+"/")+de)),G.push(ue)),1;de=0;var Se=Z===""?".":Z+":";if(j($))for(var k=0;k<$.length;k++)Z=$[k],fe=Se+H(Z,k),de+=re(Z,G,se,fe,ue);else if(k=g($),typeof k=="function")for($=k.call($),k=0;!(Z=$.next()).done;)Z=Z.value,fe=Se+H(Z,k++),de+=re(Z,G,se,fe,ue);else if(fe==="object"){if(typeof $.then=="function")return re(ee($),G,se,Z,ue);throw G=String($),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return de}function Q($,G,se){if($==null)return $;var Z=[],ue=0;return re($,Z,"","",function(fe){return G.call(se,fe,ue++)}),Z}function oe($){if($._status===-1){var G=$._result;G=G(),G.then(function(se){($._status===0||$._status===-1)&&($._status=1,$._result=se)},function(se){($._status===0||$._status===-1)&&($._status=2,$._result=se)}),$._status===-1&&($._status=0,$._result=G)}if($._status===1)return $._result.default;throw $._result}var le=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)};function X(){}return St.Children={map:Q,forEach:function($,G,se){Q($,function(){G.apply(this,arguments)},se)},count:function($){var G=0;return Q($,function(){G++}),G},toArray:function($){return Q($,function(G){return G})||[]},only:function($){if(!z($))throw Error("React.Children.only expected to receive a single React element child.");return $}},St.Component=O,St.Fragment=n,St.Profiler=i,St.PureComponent=T,St.StrictMode=r,St.Suspense=f,St.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,St.__COMPILER_RUNTIME={__proto__:null,c:function($){return P.H.useMemoCache($)}},St.cache=function($){return function(){return $.apply(null,arguments)}},St.cloneElement=function($,G,se){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var Z=_({},$.props),ue=$.key,fe=void 0;if(G!=null)for(de in G.ref!==void 0&&(fe=void 0),G.key!==void 0&&(ue=""+G.key),G)!R.call(G,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&G.ref===void 0||(Z[de]=G[de]);var de=arguments.length-2;if(de===1)Z.children=se;else if(1<de){for(var Se=Array(de),k=0;k<de;k++)Se[k]=arguments[k+2];Z.children=Se}return D($.type,ue,void 0,void 0,fe,Z)},St.createContext=function($){return $={$$typeof:o,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:a,_context:$},$},St.createElement=function($,G,se){var Z,ue={},fe=null;if(G!=null)for(Z in G.key!==void 0&&(fe=""+G.key),G)R.call(G,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ue[Z]=G[Z]);var de=arguments.length-2;if(de===1)ue.children=se;else if(1<de){for(var Se=Array(de),k=0;k<de;k++)Se[k]=arguments[k+2];ue.children=Se}if($&&$.defaultProps)for(Z in de=$.defaultProps,de)ue[Z]===void 0&&(ue[Z]=de[Z]);return D($,fe,void 0,void 0,null,ue)},St.createRef=function(){return{current:null}},St.forwardRef=function($){return{$$typeof:l,render:$}},St.isValidElement=z,St.lazy=function($){return{$$typeof:h,_payload:{_status:-1,_result:$},_init:oe}},St.memo=function($,G){return{$$typeof:c,type:$,compare:G===void 0?null:G}},St.startTransition=function($){var G=P.T,se={};P.T=se;try{var Z=$(),ue=P.S;ue!==null&&ue(se,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(X,le)}catch(fe){le(fe)}finally{P.T=G}},St.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},St.use=function($){return P.H.use($)},St.useActionState=function($,G,se){return P.H.useActionState($,G,se)},St.useCallback=function($,G){return P.H.useCallback($,G)},St.useContext=function($){return P.H.useContext($)},St.useDebugValue=function(){},St.useDeferredValue=function($,G){return P.H.useDeferredValue($,G)},St.useEffect=function($,G,se){var Z=P.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Z.useEffect($,G)},St.useId=function(){return P.H.useId()},St.useImperativeHandle=function($,G,se){return P.H.useImperativeHandle($,G,se)},St.useInsertionEffect=function($,G){return P.H.useInsertionEffect($,G)},St.useLayoutEffect=function($,G){return P.H.useLayoutEffect($,G)},St.useMemo=function($,G){return P.H.useMemo($,G)},St.useOptimistic=function($,G){return P.H.useOptimistic($,G)},St.useReducer=function($,G,se){return P.H.useReducer($,G,se)},St.useRef=function($){return P.H.useRef($)},St.useState=function($){return P.H.useState($)},St.useSyncExternalStore=function($,G,se){return P.H.useSyncExternalStore($,G,se)},St.useTransition=function(){return P.H.useTransition()},St.version="19.1.0",St}var WN;function j0(){return WN||(WN=1,Ix.exports=WY()),Ix.exports}var $x={exports:{}},Er={};/**
* @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 GN;function GY(){if(GN)return Er;GN=1;var e=j0();function t(f){var c="https://react.dev/errors/"+f;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(f,c,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:f,containerInfo:c,implementation:h}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(f,c){if(f==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Er.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Er.createPortal=function(f,c){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(f,c,null,h)},Er.flushSync=function(f){var c=o.T,h=r.p;try{if(o.T=null,r.p=2,f)return f()}finally{o.T=c,r.p=h,r.d.f()}},Er.preconnect=function(f,c){typeof f=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(f,c))},Er.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Er.preinit=function(f,c){if(typeof f=="string"&&c&&typeof c.as=="string"){var h=c.as,m=l(h,c.crossOrigin),g=typeof c.integrity=="string"?c.integrity:void 0,x=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;h==="style"?r.d.S(f,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:x}):h==="script"&&r.d.X(f,{crossOrigin:m,integrity:g,fetchPriority:x,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Er.preinitModule=function(f,c){if(typeof f=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var h=l(c.as,c.crossOrigin);r.d.M(f,{crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(f)},Er.preload=function(f,c){if(typeof f=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var h=c.as,m=l(h,c.crossOrigin);r.d.L(f,h,{crossOrigin:m,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Er.preloadModule=function(f,c){if(typeof f=="string")if(c){var h=l(c.as,c.crossOrigin);r.d.m(f,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(f)},Er.requestFormReset=function(f){r.d.r(f)},Er.unstable_batchedUpdates=function(f,c){return f(c)},Er.useFormState=function(f,c,h){return o.H.useFormState(f,c,h)},Er.useFormStatus=function(){return o.H.useHostTransitionStatus()},Er.version="19.1.0",Er}var YN;function pU(){if(YN)return $x.exports;YN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$x.exports=GY(),$x.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 KN;function YY(){if(KN)return Zh;KN=1;var e=HY(),t=j0(),n=pU();function r(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function a(s){var u=s,p=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(p=u.return),s=u.return;while(s)}return u.tag===3?p:null}function o(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function l(s){if(a(s)!==s)throw Error(r(188))}function f(s){var u=s.alternate;if(!u){if(u=a(s),u===null)throw Error(r(188));return u!==s?null:s}for(var p=s,b=u;;){var C=p.return;if(C===null)break;var M=C.alternate;if(M===null){if(b=C.return,b!==null){p=b;continue}break}if(C.child===M.child){for(M=C.child;M;){if(M===p)return l(C),s;if(M===b)return l(C),u;M=M.sibling}throw Error(r(188))}if(p.return!==b.return)p=C,b=M;else{for(var Y=!1,ie=C.child;ie;){if(ie===p){Y=!0,p=C,b=M;break}if(ie===b){Y=!0,b=C,p=M;break}ie=ie.sibling}if(!Y){for(ie=M.child;ie;){if(ie===p){Y=!0,p=M,b=C;break}if(ie===b){Y=!0,b=M,p=C;break}ie=ie.sibling}if(!Y)throw Error(r(189))}}if(p.alternate!==b)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:u}function c(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s;for(s=s.child;s!==null;){if(u=c(s),u!==null)return u;s=s.sibling}return null}var h=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),T=Symbol.for("react.consumer"),A=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function H(s){return s===null||typeof s!="object"?null:(s=V&&s[V]||s["@@iterator"],typeof s=="function"?s:null)}var te=Symbol.for("react.client.reference");function ee(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===te?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case _:return"Fragment";case O:return"Profiler";case w:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList";case z:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case x:return"Portal";case A:return(s.displayName||"Context")+".Provider";case T:return(s._context.displayName||"Context")+".Consumer";case j:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case D:return u=s.displayName||null,u!==null?u:ee(s.type)||"Memo";case U:u=s._payload,s=s._init;try{return ee(s(u))}catch{}}return null}var re=Array.isArray,Q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},X=[],$=-1;function G(s){return{current:s}}function se(s){0>$||(s.current=X[$],X[$]=null,$--)}function Z(s,u){$++,X[$]=s.current,s.current=u}var ue=G(null),fe=G(null),de=G(null),Se=G(null);function k(s,u){switch(Z(de,u),Z(fe,s),Z(ue,null),u.nodeType){case 9:case 11:s=(s=u.documentElement)&&(s=s.namespaceURI)?mN(s):0;break;default:if(s=u.tagName,u=u.namespaceURI)u=mN(u),s=vN(u,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}se(ue),Z(ue,s)}function B(){se(ue),se(fe),se(de)}function K(s){s.memoizedState!==null&&Z(Se,s);var u=ue.current,p=vN(u,s.type);u!==p&&(Z(fe,s),Z(ue,p))}function ce(s){fe.current===s&&(se(ue),se(fe)),Se.current===s&&(se(Se),Vh._currentValue=le)}var ae=Object.prototype.hasOwnProperty,pe=e.unstable_scheduleCallback,Te=e.unstable_cancelCallback,Fe=e.unstable_shouldYield,ge=e.unstable_requestPaint,je=e.unstable_now,Me=e.unstable_getCurrentPriorityLevel,Be=e.unstable_ImmediatePriority,Xe=e.unstable_UserBlockingPriority,qe=e.unstable_NormalPriority,Ye=e.unstable_LowPriority,ye=e.unstable_IdlePriority,we=e.log,De=e.unstable_setDisableYieldValue,Le=null,Ie=null;function Ge(s){if(typeof we=="function"&&De(s),Ie&&typeof Ie.setStrictMode=="function")try{Ie.setStrictMode(Le,s)}catch{}}var Ze=Math.clz32?Math.clz32:bt,Ot=Math.log,Et=Math.LN2;function bt(s){return s>>>=0,s===0?32:31-(Ot(s)/Et|0)|0}var Zt=256,Ht=4194304;function nn(s){var u=s&42;if(u!==0)return u;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function $n(s,u,p){var b=s.pendingLanes;if(b===0)return 0;var C=0,M=s.suspendedLanes,Y=s.pingedLanes;s=s.warmLanes;var ie=b&134217727;return ie!==0?(b=ie&~M,b!==0?C=nn(b):(Y&=ie,Y!==0?C=nn(Y):p||(p=ie&~s,p!==0&&(C=nn(p))))):(ie=b&~M,ie!==0?C=nn(ie):Y!==0?C=nn(Y):p||(p=b&~s,p!==0&&(C=nn(p)))),C===0?0:u!==0&&u!==C&&(u&M)===0&&(M=C&-C,p=u&-u,M>=p||M===32&&(p&4194048)!==0)?u:C}function xr(s,u){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&u)===0}function Vn(s,u){switch(s){case 1:case 2:case 4:case 8:case 64:return u+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 u+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 xs(){var s=Zt;return Zt<<=1,(Zt&4194048)===0&&(Zt=256),s}function oi(){var s=Ht;return Ht<<=1,(Ht&62914560)===0&&(Ht=4194304),s}function ws(s){for(var u=[],p=0;31>p;p++)u.push(s);return u}function La(s,u){s.pendingLanes|=u,u!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function _c(s,u,p,b,C,M){var Y=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var ie=s.entanglements,me=s.expirationTimes,Oe=s.hiddenUpdates;for(p=Y&~p;0<p;){var Re=31-Ze(p),ke=1<<Re;ie[Re]=0,me[Re]=-1;var Ee=Oe[Re];if(Ee!==null)for(Oe[Re]=null,Re=0;Re<Ee.length;Re++){var Ce=Ee[Re];Ce!==null&&(Ce.lane&=-536870913)}p&=~ke}b!==0&&Os(s,b,0),M!==0&&C===0&&s.tag!==0&&(s.suspendedLanes|=M&~(Y&~u))}function Os(s,u,p){s.pendingLanes|=u,s.suspendedLanes&=~u;var b=31-Ze(u);s.entangledLanes|=u,s.entanglements[b]=s.entanglements[b]|1073741824|p&4194090}function Da(s,u){var p=s.entangledLanes|=u;for(s=s.entanglements;p;){var b=31-Ze(p),C=1<<b;C&u|s[b]&u&&(s[b]|=u),p&=~C}}function gn(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function hn(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Qn(){var s=oe.p;return s!==0?s:(s=window.event,s===void 0?32:DN(s.type))}function Hn(s,u){var p=oe.p;try{return oe.p=s,u()}finally{oe.p=p}}var rn=Math.random().toString(36).slice(2),Nt="__reactFiber$"+rn,an="__reactProps$"+rn,Jn="__reactContainer$"+rn,Nn="__reactEvents$"+rn,at="__reactListeners$"+rn,Sv="__reactHandles$"+rn,Qd="__reactResources$"+rn,Ss="__reactMarker$"+rn;function xc(s){delete s[Nt],delete s[an],delete s[Nn],delete s[at],delete s[Sv]}function ka(s){var u=s[Nt];if(u)return u;for(var p=s.parentNode;p;){if(u=p[Jn]||p[Nt]){if(p=u.alternate,u.child!==null||p!==null&&p.child!==null)for(s=_N(s);s!==null;){if(p=s[Nt])return p;s=_N(s)}return u}s=p,p=s.parentNode}return null}function go(s){if(s=s[Nt]||s[Jn]){var u=s.tag;if(u===5||u===6||u===13||u===26||u===27||u===3)return s}return null}function Li(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s.stateNode;throw Error(r(33))}function yo(s){var u=s[Qd];return u||(u=s[Qd]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Un(s){s[Ss]=!0}var Ev=new Set,Tv={};function bo(s,u){_o(s,u),_o(s+"Capture",u)}function _o(s,u){for(Tv[s]=u,s=0;s<u.length;s++)Ev.add(u[s])}var q_=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]*$"),Ql={},Cv={};function V_(s){return ae.call(Cv,s)?!0:ae.call(Ql,s)?!1:q_.test(s)?Cv[s]=!0:(Ql[s]=!0,!1)}function wc(s,u,p){if(V_(u))if(p===null)s.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(u);return;case"boolean":var b=u.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){s.removeAttribute(u);return}}s.setAttribute(u,""+p)}}function Oc(s,u,p){if(p===null)s.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(u);return}s.setAttribute(u,""+p)}}function oa(s,u,p,b){if(b===null)s.removeAttribute(p);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(u,p,""+b)}}var Jl,Es;function xo(s){if(Jl===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);Jl=u&&u[1]||"",Es=-1<p.stack.indexOf(`
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Jl+s+Es}var Sc=!1;function wo(s,u){if(!s||Sc)return"";Sc=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(u){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(Ce){var Ee=Ce}Reflect.construct(s,[],ke)}else{try{ke.call()}catch(Ce){Ee=Ce}s.call(ke.prototype)}}else{try{throw Error()}catch(Ce){Ee=Ce}(ke=s())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(Ce){if(Ce&&Ee&&typeof Ce.stack=="string")return[Ce.stack,Ee.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=b.DetermineComponentFrameRoot(),Y=M[0],ie=M[1];if(Y&&ie){var me=Y.split(`
`),Oe=ie.split(`
`);for(C=b=0;b<me.length&&!me[b].includes("DetermineComponentFrameRoot");)b++;for(;C<Oe.length&&!Oe[C].includes("DetermineComponentFrameRoot");)C++;if(b===me.length||C===Oe.length)for(b=me.length-1,C=Oe.length-1;1<=b&&0<=C&&me[b]!==Oe[C];)C--;for(;1<=b&&0<=C;b--,C--)if(me[b]!==Oe[C]){if(b!==1||C!==1)do if(b--,C--,0>C||me[b]!==Oe[C]){var Re=`
`+me[b].replace(" at new "," at ");return s.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",s.displayName)),Re}while(1<=b&&0<=C);break}}}finally{Sc=!1,Error.prepareStackTrace=p}return(p=s?s.displayName||s.name:"")?xo(p):""}function kt(s){switch(s.tag){case 26:case 27:case 5:return xo(s.type);case 16:return xo("Lazy");case 13:return xo("Suspense");case 19:return xo("SuspenseList");case 0:case 15:return wo(s.type,!1);case 11:return wo(s.type.render,!1);case 1:return wo(s.type,!0);case 31:return xo("Activity");default:return""}}function on(s){try{var u="";do u+=kt(s),s=s.return;while(s);return u}catch(p){return`
Error generating stack: `+p.message+`
`+p.stack}}function fr(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Oo(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Ts(s){var u=Oo(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),b=""+s[u];if(!s.hasOwnProperty(u)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var C=p.get,M=p.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return C.call(this)},set:function(Y){b=""+Y,M.call(this,Y)}}),Object.defineProperty(s,u,{enumerable:p.enumerable}),{getValue:function(){return b},setValue:function(Y){b=""+Y},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function Cs(s){s._valueTracker||(s._valueTracker=Ts(s))}function _t(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var p=u.getValue(),b="";return s&&(b=Oo(s)?s.checked?"true":"false":s.value),s=b,s!==p?(u.setValue(s),!0):!1}function sn(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var Jd=/[\n"\\]/g;function dr(s){return s.replace(Jd,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function wr(s,u,p,b,C,M,Y,ie){s.name="",Y!=null&&typeof Y!="function"&&typeof Y!="symbol"&&typeof Y!="boolean"?s.type=Y:s.removeAttribute("type"),u!=null?Y==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+fr(u)):s.value!==""+fr(u)&&(s.value=""+fr(u)):Y!=="submit"&&Y!=="reset"||s.removeAttribute("value"),u!=null?As(s,Y,fr(u)):p!=null?As(s,Y,fr(p)):b!=null&&s.removeAttribute("value"),C==null&&M!=null&&(s.defaultChecked=!!M),C!=null&&(s.checked=C&&typeof C!="function"&&typeof C!="symbol"),ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?s.name=""+fr(ie):s.removeAttribute("name")}function Av(s,u,p,b,C,M,Y,ie){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(s.type=M),u!=null||p!=null){if(!(M!=="submit"&&M!=="reset"||u!=null))return;p=p!=null?""+fr(p):"",u=u!=null?""+fr(u):p,ie||u===s.value||(s.value=u),s.defaultValue=u}b=b??C,b=typeof b!="function"&&typeof b!="symbol"&&!!b,s.checked=ie?s.checked:!!b,s.defaultChecked=!!b,Y!=null&&typeof Y!="function"&&typeof Y!="symbol"&&typeof Y!="boolean"&&(s.name=Y)}function As(s,u,p){u==="number"&&sn(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function Gr(s,u,p,b){if(s=s.options,u){u={};for(var C=0;C<p.length;C++)u["$"+p[C]]=!0;for(p=0;p<s.length;p++)C=u.hasOwnProperty("$"+s[p].value),s[p].selected!==C&&(s[p].selected=C),C&&b&&(s[p].defaultSelected=!0)}else{for(p=""+fr(p),u=null,C=0;C<s.length;C++){if(s[C].value===p){s[C].selected=!0,b&&(s[C].defaultSelected=!0);return}u!==null||s[C].disabled||(u=s[C])}u!==null&&(u.selected=!0)}}function En(s,u,p){if(u!=null&&(u=""+fr(u),u!==s.value&&(s.value=u),p==null)){s.defaultValue!==u&&(s.defaultValue=u);return}s.defaultValue=p!=null?""+fr(p):""}function Ia(s,u,p,b){if(u==null){if(b!=null){if(p!=null)throw Error(r(92));if(re(b)){if(1<b.length)throw Error(r(93));b=b[0]}p=b}p==null&&(p=""),u=p}p=fr(u),s.defaultValue=p,b=s.textContent,b===p&&b!==""&&b!==null&&(s.value=b)}function Di(s,u){if(u){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=u;return}}s.textContent=u}var eu=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 Ec(s,u,p){var b=u.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?b?s.setProperty(u,""):u==="float"?s.cssFloat="":s[u]="":b?s.setProperty(u,p):typeof p!="number"||p===0||eu.has(u)?u==="float"?s.cssFloat=p:s[u]=(""+p).trim():s[u]=p+"px"}function js(s,u,p){if(u!=null&&typeof u!="object")throw Error(r(62));if(s=s.style,p!=null){for(var b in p)!p.hasOwnProperty(b)||u!=null&&u.hasOwnProperty(b)||(b.indexOf("--")===0?s.setProperty(b,""):b==="float"?s.cssFloat="":s[b]="");for(var C in u)b=u[C],u.hasOwnProperty(C)&&p[C]!==b&&Ec(s,C,b)}else for(var M in u)u.hasOwnProperty(M)&&Ec(s,M,u[M])}function tu(s){if(s.indexOf("-")===-1)return!1;switch(s){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 eh=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"]]),Tc=/^[\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 Ps(s){return Tc.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var nu=null;function Rs(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var So=null,$a=null;function jv(s){var u=go(s);if(u&&(s=u.stateNode)){var p=s[an]||null;e:switch(s=u.stateNode,u.type){case"input":if(wr(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),u=p.name,p.type==="radio"&&u!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+dr(""+u)+'"][type="radio"]'),u=0;u<p.length;u++){var b=p[u];if(b!==s&&b.form===s.form){var C=b[an]||null;if(!C)throw Error(r(90));wr(b,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(u=0;u<p.length;u++)b=p[u],b.form===s.form&&_t(b)}break e;case"textarea":En(s,p.value,p.defaultValue);break e;case"select":u=p.value,u!=null&&Gr(s,!!p.multiple,u,!1)}}}var gt=!1;function si(s,u,p){if(gt)return s(u,p);gt=!0;try{var b=s(u);return b}finally{if(gt=!1,(So!==null||$a!==null)&&(Og(),So&&(u=So,s=$a,$a=So=null,jv(u),s)))for(u=0;u<s.length;u++)jv(s[u])}}function $t(s,u){var p=s.stateNode;if(p===null)return null;var b=p[an]||null;if(b===null)return null;p=b[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(s=s.type,b=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!b;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(r(231,u,typeof p));return p}var ki=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ru=!1;if(ki)try{var Eo={};Object.defineProperty(Eo,"passive",{get:function(){ru=!0}}),window.addEventListener("test",Eo,Eo),window.removeEventListener("test",Eo,Eo)}catch{ru=!1}var Ii=null,sa=null,Ms=null;function Ns(){if(Ms)return Ms;var s,u=sa,p=u.length,b,C="value"in Ii?Ii.value:Ii.textContent,M=C.length;for(s=0;s<p&&u[s]===C[s];s++);var Y=p-s;for(b=1;b<=Y&&u[p-b]===C[M-b];b++);return Ms=C.slice(s,1<b?1-b:void 0)}function jn(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function $i(){return!0}function th(){return!1}function hr(s){function u(p,b,C,M,Y){this._reactName=p,this._targetInst=C,this.type=b,this.nativeEvent=M,this.target=Y,this.currentTarget=null;for(var ie in s)s.hasOwnProperty(ie)&&(p=s[ie],this[ie]=p?p(M):M[ie]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?$i:th,this.isPropagationStopped=th,this}return h(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=$i)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=$i)},persist:function(){},isPersistent:$i}),u}var To={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iu=hr(To),Co=h({},To,{view:0,detail:0}),H_=hr(Co),Cc,Ct,au,Or=h({},Co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==au&&(au&&s.type==="mousemove"?(Cc=s.screenX-au.screenX,Ct=s.screenY-au.screenY):Ct=Cc=0,au=s),Cc)},movementY:function(s){return"movementY"in s?s.movementY:Ct}}),Ls=hr(Or),Pv=h({},Or,{dataTransfer:0}),W_=hr(Pv),nh=h({},Co,{relatedTarget:0}),rh=hr(nh),Rv=h({},To,{animationName:0,elapsedTime:0,pseudoElement:0}),G_=hr(Rv),Y_=h({},To,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),ih=hr(Y_),K_=h({},To,{data:0}),li=hr(K_),Z_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mv={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"},Ua={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nv(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=Ua[s])?!!u[s]:!1}function Ac(){return Nv}var ah=h({},Co,{key:function(s){if(s.key){var u=Z_[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=jn(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?Mv[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(s){return s.type==="keypress"?jn(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?jn(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),X_=hr(ah),Lv=h({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oh=hr(Lv),Q_=h({},Co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),J_=hr(Q_),sh=h({},To,{propertyName:0,elapsedTime:0,pseudoElement:0}),e1=hr(sh),Dv=h({},Or,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),kv=hr(Dv),jc=h({},To,{newState:0,oldState:0}),Ao=hr(jc),t1=[9,13,27,32],jo=ki&&"CompositionEvent"in window,er=null;ki&&"documentMode"in document&&(er=document.documentMode);var Iv=ki&&"TextEvent"in window&&!er,lh=ki&&(!jo||er&&8<er&&11>=er),$v=" ",Pc=!1;function Rc(s,u){switch(s){case"keyup":return t1.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uv(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ds=!1;function Bv(s,u){switch(s){case"compositionend":return Uv(u);case"keypress":return u.which!==32?null:(Pc=!0,$v);case"textInput":return s=u.data,s===$v&&Pc?null:s;default:return null}}function n1(s,u){if(Ds)return s==="compositionend"||!jo&&Rc(s,u)?(s=Ns(),Ms=sa=Ii=null,Ds=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return lh&&u.locale!=="ko"?null:u.data;default:return null}}var ui={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 Po(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!ui[s.type]:u==="textarea"}function Fv(s,u,p,b){So?$a?$a.push(b):$a=[b]:So=b,u=jg(u,"onChange"),0<u.length&&(p=new iu("onChange","change",null,p,b),s.push({event:p,listeners:u}))}var Rr=null,ou=null;function ks(s){cN(s,0)}function Mc(s){var u=Li(s);if(_t(u))return s}function Is(s,u){if(s==="change")return u}var uh=!1;if(ki){var $s;if(ki){var ch="oninput"in document;if(!ch){var la=document.createElement("div");la.setAttribute("oninput","return;"),ch=typeof la.oninput=="function"}$s=ch}else $s=!1;uh=$s&&(!document.documentMode||9<document.documentMode)}function su(){Rr&&(Rr.detachEvent("onpropertychange",zv),ou=Rr=null)}function zv(s){if(s.propertyName==="value"&&Mc(ou)){var u=[];Fv(u,ou,s,Rs(s)),si(ks,u)}}function fh(s,u,p){s==="focusin"?(su(),Rr=u,ou=p,Rr.attachEvent("onpropertychange",zv)):s==="focusout"&&su()}function r1(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Mc(ou)}function ua(s,u){if(s==="click")return Mc(u)}function i1(s,u){if(s==="input"||s==="change")return Mc(u)}function Us(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var Mr=typeof Object.is=="function"?Object.is:Us;function Nr(s,u){if(Mr(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var p=Object.keys(s),b=Object.keys(u);if(p.length!==b.length)return!1;for(b=0;b<p.length;b++){var C=p[b];if(!ae.call(u,C)||!Mr(s[C],u[C]))return!1}return!0}function lu(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function dh(s,u){var p=lu(s);s=0;for(var b;p;){if(p.nodeType===3){if(b=s+p.textContent.length,s<=u&&b>=u)return{node:p,offset:u-s};s=b}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=lu(p)}}function Nc(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?Nc(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function uu(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var u=sn(s.document);u instanceof s.HTMLIFrameElement;){try{var p=typeof u.contentWindow.location.href=="string"}catch{p=!1}if(p)s=u.contentWindow;else break;u=sn(s.document)}return u}function cu(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}var Lc=ki&&"documentMode"in document&&11>=document.documentMode,ci=null,Bs=null,Ro=null,Dc=!1;function qv(s,u,p){var b=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Dc||ci==null||ci!==sn(b)||(b=ci,"selectionStart"in b&&cu(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Ro&&Nr(Ro,b)||(Ro=b,b=jg(Bs,"onSelect"),0<b.length&&(u=new iu("onSelect","select",null,u,p),s.push({event:u,listeners:b}),u.target=ci)))}function Ui(s,u){var p={};return p[s.toLowerCase()]=u.toLowerCase(),p["Webkit"+s]="webkit"+u,p["Moz"+s]="moz"+u,p}var Fs={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},kc={},Vv={};ki&&(Vv=document.createElement("div").style,"AnimationEvent"in window||(delete Fs.animationend.animation,delete Fs.animationiteration.animation,delete Fs.animationstart.animation),"TransitionEvent"in window||delete Fs.transitionend.transition);function Ba(s){if(kc[s])return kc[s];if(!Fs[s])return s;var u=Fs[s],p;for(p in u)if(u.hasOwnProperty(p)&&p in Vv)return kc[s]=u[p];return s}var Hv=Ba("animationend"),fi=Ba("animationiteration"),fu=Ba("animationstart"),a1=Ba("transitionrun"),Ic=Ba("transitionstart"),o1=Ba("transitioncancel"),hh=Ba("transitionend"),Wv=new Map,Mo="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(" ");Mo.push("scrollEnd");function di(s,u){Wv.set(s,u),bo(u,[s])}var No=new WeakMap;function Lr(s,u){if(typeof s=="object"&&s!==null){var p=No.get(s);return p!==void 0?p:(u={value:s,source:u,stack:on(u)},No.set(s,u),u)}return{value:s,source:u,stack:on(u)}}var Dr=[],zs=0,hi=0;function du(){for(var s=zs,u=hi=zs=0;u<s;){var p=Dr[u];Dr[u++]=null;var b=Dr[u];Dr[u++]=null;var C=Dr[u];Dr[u++]=null;var M=Dr[u];if(Dr[u++]=null,b!==null&&C!==null){var Y=b.pending;Y===null?C.next=C:(C.next=Y.next,Y.next=C),b.pending=C}M!==0&&pu(p,C,M)}}function hu(s,u,p,b){Dr[zs++]=s,Dr[zs++]=u,Dr[zs++]=p,Dr[zs++]=b,hi|=b,s.lanes|=b,s=s.alternate,s!==null&&(s.lanes|=b)}function Lo(s,u,p,b){return hu(s,u,p,b),Fa(s)}function qs(s,u){return hu(s,null,null,u),Fa(s)}function pu(s,u,p){s.lanes|=p;var b=s.alternate;b!==null&&(b.lanes|=p);for(var C=!1,M=s.return;M!==null;)M.childLanes|=p,b=M.alternate,b!==null&&(b.childLanes|=p),M.tag===22&&(s=M.stateNode,s===null||s._visibility&1||(C=!0)),s=M,M=M.return;return s.tag===3?(M=s.stateNode,C&&u!==null&&(C=31-Ze(p),s=M.hiddenUpdates,b=s[C],b===null?s[C]=[u]:b.push(u),u.lane=p|536870912),M):null}function Fa(s){if(50<kh)throw kh=0,rx=null,Error(r(185));for(var u=s.return;u!==null;)s=u,u=s.return;return s.tag===3?s.stateNode:null}var Do={};function Gv(s,u,p,b){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kr(s,u,p,b){return new Gv(s,u,p,b)}function $c(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Bi(s,u){var p=s.alternate;return p===null?(p=kr(s.tag,u,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=u,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&65011712,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,u=s.dependencies,p.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p.refCleanup=s.refCleanup,p}function ph(s,u){s.flags&=65011714;var p=s.alternate;return p===null?(s.childLanes=0,s.lanes=u,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=p.childLanes,s.lanes=p.lanes,s.child=p.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=p.memoizedProps,s.memoizedState=p.memoizedState,s.updateQueue=p.updateQueue,s.type=p.type,u=p.dependencies,s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),s}function mu(s,u,p,b,C,M){var Y=0;if(b=s,typeof s=="function")$c(s)&&(Y=1);else if(typeof s=="string")Y=CY(s,p,ue.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case z:return s=kr(31,p,u,C),s.elementType=z,s.lanes=M,s;case _:return za(p.children,C,M,u);case w:Y=8,C|=24;break;case O:return s=kr(12,p,u,C|2),s.elementType=O,s.lanes=M,s;case P:return s=kr(13,p,u,C),s.elementType=P,s.lanes=M,s;case R:return s=kr(19,p,u,C),s.elementType=R,s.lanes=M,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case S:case A:Y=10;break e;case T:Y=9;break e;case j:Y=11;break e;case D:Y=14;break e;case U:Y=16,b=null;break e}Y=29,p=Error(r(130,s===null?"null":typeof s,"")),b=null}return u=kr(Y,p,u,C),u.elementType=s,u.type=b,u.lanes=M,u}function za(s,u,p,b){return s=kr(7,s,b,u),s.lanes=p,s}function mh(s,u,p){return s=kr(6,s,null,u),s.lanes=p,s}function Uc(s,u,p){return u=kr(4,s.children!==null?s.children:[],s.key,u),u.lanes=p,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}var ko=[],Vs=0,d=null,v=0,E=[],N=0,q=null,ne=1,he="";function _e(s,u){ko[Vs++]=v,ko[Vs++]=d,d=s,v=u}function Ae(s,u,p){E[N++]=ne,E[N++]=he,E[N++]=q,q=s;var b=ne;s=he;var C=32-Ze(b)-1;b&=~(1<<C),p+=1;var M=32-Ze(u)+C;if(30<M){var Y=C-C%5;M=(b&(1<<Y)-1).toString(32),b>>=Y,C-=Y,ne=1<<32-Ze(u)+C|p<<C|b,he=M+s}else ne=1<<M|p<<C|b,he=s}function $e(s){s.return!==null&&(_e(s,1),Ae(s,1,0))}function Je(s){for(;s===d;)d=ko[--Vs],ko[Vs]=null,v=ko[--Vs],ko[Vs]=null;for(;s===q;)q=E[--N],E[N]=null,he=E[--N],E[N]=null,ne=E[--N],E[N]=null}var tt=null,rt=null,vt=!1,ln=null,Tn=!1,tr=Error(r(519));function Yr(s){var u=Error(r(418,""));throw Ws(Lr(u,s)),tr}function Yv(s){var u=s.stateNode,p=s.type,b=s.memoizedProps;switch(u[Nt]=s,u[an]=b,p){case"dialog":Pt("cancel",u),Pt("close",u);break;case"iframe":case"object":case"embed":Pt("load",u);break;case"video":case"audio":for(p=0;p<$h.length;p++)Pt($h[p],u);break;case"source":Pt("error",u);break;case"img":case"image":case"link":Pt("error",u),Pt("load",u);break;case"details":Pt("toggle",u);break;case"input":Pt("invalid",u),Av(u,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0),Cs(u);break;case"select":Pt("invalid",u);break;case"textarea":Pt("invalid",u),Ia(u,b.value,b.defaultValue,b.children),Cs(u)}p=b.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||u.textContent===""+p||b.suppressHydrationWarning===!0||pN(u.textContent,p)?(b.popover!=null&&(Pt("beforetoggle",u),Pt("toggle",u)),b.onScroll!=null&&Pt("scroll",u),b.onScrollEnd!=null&&Pt("scrollend",u),b.onClick!=null&&(u.onclick=Pg),u=!0):u=!1,u||Yr(s)}function Kv(s){for(tt=s.return;tt;)switch(tt.tag){case 5:case 13:Tn=!1;return;case 27:case 3:Tn=!0;return;default:tt=tt.return}}function vu(s){if(s!==tt)return!1;if(!vt)return Kv(s),vt=!0,!1;var u=s.tag,p;if((p=u!==3&&u!==27)&&((p=u===5)&&(p=s.type,p=!(p!=="form"&&p!=="button")||bx(s.type,s.memoizedProps)),p=!p),p&&rt&&Yr(s),Kv(s),u===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,u=0;s;){if(s.nodeType===8)if(p=s.data,p==="/$"){if(u===0){rt=ha(s.nextSibling);break e}u--}else p!=="$"&&p!=="$!"&&p!=="$?"||u++;s=s.nextSibling}rt=null}}else u===27?(u=rt,sl(s.type)?(s=Ox,Ox=null,rt=s):rt=u):rt=tt?ha(s.stateNode.nextSibling):null;return!0}function Hs(){rt=tt=null,vt=!1}function Zv(){var s=ln;return s!==null&&(Xr===null?Xr=s:Xr.push.apply(Xr,s),ln=null),s}function Ws(s){ln===null?ln=[s]:ln.push(s)}var yn=G(null),Fi=null,ca=null;function qa(s,u,p){Z(yn,u._currentValue),u._currentValue=p}function fa(s){s._currentValue=yn.current,se(yn)}function gu(s,u,p){for(;s!==null;){var b=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,b!==null&&(b.childLanes|=u)):b!==null&&(b.childLanes&u)!==u&&(b.childLanes|=u),s===p)break;s=s.return}}function Bc(s,u,p,b){var C=s.child;for(C!==null&&(C.return=s);C!==null;){var M=C.dependencies;if(M!==null){var Y=C.child;M=M.firstContext;e:for(;M!==null;){var ie=M;M=C;for(var me=0;me<u.length;me++)if(ie.context===u[me]){M.lanes|=p,ie=M.alternate,ie!==null&&(ie.lanes|=p),gu(M.return,p,s),b||(Y=null);break e}M=ie.next}}else if(C.tag===18){if(Y=C.return,Y===null)throw Error(r(341));Y.lanes|=p,M=Y.alternate,M!==null&&(M.lanes|=p),gu(Y,p,s),Y=null}else Y=C.child;if(Y!==null)Y.return=C;else for(Y=C;Y!==null;){if(Y===s){Y=null;break}if(C=Y.sibling,C!==null){C.return=Y.return,Y=C;break}Y=Y.return}C=Y}}function yu(s,u,p,b){s=null;for(var C=u,M=!1;C!==null;){if(!M){if((C.flags&524288)!==0)M=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var Y=C.alternate;if(Y===null)throw Error(r(387));if(Y=Y.memoizedProps,Y!==null){var ie=C.type;Mr(C.pendingProps.value,Y.value)||(s!==null?s.push(ie):s=[ie])}}else if(C===Se.current){if(Y=C.alternate,Y===null)throw Error(r(387));Y.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(s!==null?s.push(Vh):s=[Vh])}C=C.return}s!==null&&Bc(u,s,p,b),u.flags|=262144}function Xv(s){for(s=s.firstContext;s!==null;){if(!Mr(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function bu(s){Fi=s,ca=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Sr(s){return eR(Fi,s)}function Qv(s,u){return Fi===null&&bu(s),eR(s,u)}function eR(s,u){var p=u._currentValue;if(u={context:u,memoizedValue:p,next:null},ca===null){if(s===null)throw Error(r(308));ca=u,s.dependencies={lanes:0,firstContext:u},s.flags|=524288}else ca=ca.next=u;return p}var TG=typeof AbortController<"u"?AbortController:function(){var s=[],u=this.signal={aborted:!1,addEventListener:function(p,b){s.push(b)}};this.abort=function(){u.aborted=!0,s.forEach(function(p){return p()})}},CG=e.unstable_scheduleCallback,AG=e.unstable_NormalPriority,Wn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function s1(){return{controller:new TG,data:new Map,refCount:0}}function vh(s){s.refCount--,s.refCount===0&&CG(AG,function(){s.controller.abort()})}var gh=null,l1=0,Fc=0,zc=null;function jG(s,u){if(gh===null){var p=gh=[];l1=0,Fc=cx(),zc={status:"pending",value:void 0,then:function(b){p.push(b)}}}return l1++,u.then(tR,tR),u}function tR(){if(--l1===0&&gh!==null){zc!==null&&(zc.status="fulfilled");var s=gh;gh=null,Fc=0,zc=null;for(var u=0;u<s.length;u++)(0,s[u])()}}function PG(s,u){var p=[],b={status:"pending",value:null,reason:null,then:function(C){p.push(C)}};return s.then(function(){b.status="fulfilled",b.value=u;for(var C=0;C<p.length;C++)(0,p[C])(u)},function(C){for(b.status="rejected",b.reason=C,C=0;C<p.length;C++)(0,p[C])(void 0)}),b}var nR=Q.S;Q.S=function(s,u){typeof u=="object"&&u!==null&&typeof u.then=="function"&&jG(s,u),nR!==null&&nR(s,u)};var _u=G(null);function u1(){var s=_u.current;return s!==null?s:un.pooledCache}function Jv(s,u){u===null?Z(_u,_u.current):Z(_u,u.pool)}function rR(){var s=u1();return s===null?null:{parent:Wn._currentValue,pool:s}}var yh=Error(r(460)),iR=Error(r(474)),eg=Error(r(542)),c1={then:function(){}};function aR(s){return s=s.status,s==="fulfilled"||s==="rejected"}function tg(){}function oR(s,u,p){switch(p=s[p],p===void 0?s.push(u):p!==u&&(u.then(tg,tg),u=p),u.status){case"fulfilled":return u.value;case"rejected":throw s=u.reason,lR(s),s;default:if(typeof u.status=="string")u.then(tg,tg);else{if(s=un,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=u,s.status="pending",s.then(function(b){if(u.status==="pending"){var C=u;C.status="fulfilled",C.value=b}},function(b){if(u.status==="pending"){var C=u;C.status="rejected",C.reason=b}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw s=u.reason,lR(s),s}throw bh=u,yh}}var bh=null;function sR(){if(bh===null)throw Error(r(459));var s=bh;return bh=null,s}function lR(s){if(s===yh||s===eg)throw Error(r(483))}var Gs=!1;function f1(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function d1(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ys(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Ks(s,u,p){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,(zt&2)!==0){var C=b.pending;return C===null?u.next=u:(u.next=C.next,C.next=u),b.pending=u,u=Fa(s),pu(s,null,p),u}return hu(s,b,u,p),Fa(s)}function _h(s,u,p){if(u=u.updateQueue,u!==null&&(u=u.shared,(p&4194048)!==0)){var b=u.lanes;b&=s.pendingLanes,p|=b,u.lanes=p,Da(s,p)}}function h1(s,u){var p=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,p===b)){var C=null,M=null;if(p=p.firstBaseUpdate,p!==null){do{var Y={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};M===null?C=M=Y:M=M.next=Y,p=p.next}while(p!==null);M===null?C=M=u:M=M.next=u}else C=M=u;p={baseState:b.baseState,firstBaseUpdate:C,lastBaseUpdate:M,shared:b.shared,callbacks:b.callbacks},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=u:s.next=u,p.lastBaseUpdate=u}var p1=!1;function xh(){if(p1){var s=zc;if(s!==null)throw s}}function wh(s,u,p,b){p1=!1;var C=s.updateQueue;Gs=!1;var M=C.firstBaseUpdate,Y=C.lastBaseUpdate,ie=C.shared.pending;if(ie!==null){C.shared.pending=null;var me=ie,Oe=me.next;me.next=null,Y===null?M=Oe:Y.next=Oe,Y=me;var Re=s.alternate;Re!==null&&(Re=Re.updateQueue,ie=Re.lastBaseUpdate,ie!==Y&&(ie===null?Re.firstBaseUpdate=Oe:ie.next=Oe,Re.lastBaseUpdate=me))}if(M!==null){var ke=C.baseState;Y=0,Re=Oe=me=null,ie=M;do{var Ee=ie.lane&-536870913,Ce=Ee!==ie.lane;if(Ce?(It&Ee)===Ee:(b&Ee)===Ee){Ee!==0&&Ee===Fc&&(p1=!0),Re!==null&&(Re=Re.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{var pt=s,ut=ie;Ee=u;var Yt=p;switch(ut.tag){case 1:if(pt=ut.payload,typeof pt=="function"){ke=pt.call(Yt,ke,Ee);break e}ke=pt;break e;case 3:pt.flags=pt.flags&-65537|128;case 0:if(pt=ut.payload,Ee=typeof pt=="function"?pt.call(Yt,ke,Ee):pt,Ee==null)break e;ke=h({},ke,Ee);break e;case 2:Gs=!0}}Ee=ie.callback,Ee!==null&&(s.flags|=64,Ce&&(s.flags|=8192),Ce=C.callbacks,Ce===null?C.callbacks=[Ee]:Ce.push(Ee))}else Ce={lane:Ee,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},Re===null?(Oe=Re=Ce,me=ke):Re=Re.next=Ce,Y|=Ee;if(ie=ie.next,ie===null){if(ie=C.shared.pending,ie===null)break;Ce=ie,ie=Ce.next,Ce.next=null,C.lastBaseUpdate=Ce,C.shared.pending=null}}while(!0);Re===null&&(me=ke),C.baseState=me,C.firstBaseUpdate=Oe,C.lastBaseUpdate=Re,M===null&&(C.shared.lanes=0),rl|=Y,s.lanes=Y,s.memoizedState=ke}}function uR(s,u){if(typeof s!="function")throw Error(r(191,s));s.call(u)}function cR(s,u){var p=s.callbacks;if(p!==null)for(s.callbacks=null,s=0;s<p.length;s++)uR(p[s],u)}var qc=G(null),ng=G(0);function fR(s,u){s=qo,Z(ng,s),Z(qc,u),qo=s|u.baseLanes}function m1(){Z(ng,qo),Z(qc,qc.current)}function v1(){qo=ng.current,se(qc),se(ng)}var Zs=0,Tt=null,Wt=null,Bn=null,rg=!1,Vc=!1,xu=!1,ig=0,Oh=0,Hc=null,RG=0;function Ln(){throw Error(r(321))}function g1(s,u){if(u===null)return!1;for(var p=0;p<u.length&&p<s.length;p++)if(!Mr(s[p],u[p]))return!1;return!0}function y1(s,u,p,b,C,M){return Zs=M,Tt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,Q.H=s===null||s.memoizedState===null?YR:KR,xu=!1,M=p(b,C),xu=!1,Vc&&(M=hR(u,p,b,C)),dR(s),M}function dR(s){Q.H=cg;var u=Wt!==null&&Wt.next!==null;if(Zs=0,Bn=Wt=Tt=null,rg=!1,Oh=0,Hc=null,u)throw Error(r(300));s===null||nr||(s=s.dependencies,s!==null&&Xv(s)&&(nr=!0))}function hR(s,u,p,b){Tt=s;var C=0;do{if(Vc&&(Hc=null),Oh=0,Vc=!1,25<=C)throw Error(r(301));if(C+=1,Bn=Wt=null,s.updateQueue!=null){var M=s.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}Q.H=$G,M=u(p,b)}while(Vc);return M}function MG(){var s=Q.H,u=s.useState()[0];return u=typeof u.then=="function"?Sh(u):u,s=s.useState()[0],(Wt!==null?Wt.memoizedState:null)!==s&&(Tt.flags|=1024),u}function b1(){var s=ig!==0;return ig=0,s}function _1(s,u,p){u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~p}function x1(s){if(rg){for(s=s.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}rg=!1}Zs=0,Bn=Wt=Tt=null,Vc=!1,Oh=ig=0,Hc=null}function Kr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bn===null?Tt.memoizedState=Bn=s:Bn=Bn.next=s,Bn}function Fn(){if(Wt===null){var s=Tt.alternate;s=s!==null?s.memoizedState:null}else s=Wt.next;var u=Bn===null?Tt.memoizedState:Bn.next;if(u!==null)Bn=u,Wt=s;else{if(s===null)throw Tt.alternate===null?Error(r(467)):Error(r(310));Wt=s,s={memoizedState:Wt.memoizedState,baseState:Wt.baseState,baseQueue:Wt.baseQueue,queue:Wt.queue,next:null},Bn===null?Tt.memoizedState=Bn=s:Bn=Bn.next=s}return Bn}function w1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sh(s){var u=Oh;return Oh+=1,Hc===null&&(Hc=[]),s=oR(Hc,s,u),u=Tt,(Bn===null?u.memoizedState:Bn.next)===null&&(u=u.alternate,Q.H=u===null||u.memoizedState===null?YR:KR),s}function ag(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Sh(s);if(s.$$typeof===A)return Sr(s)}throw Error(r(438,String(s)))}function O1(s){var u=null,p=Tt.updateQueue;if(p!==null&&(u=p.memoCache),u==null){var b=Tt.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(u={data:b.data.map(function(C){return C.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),p===null&&(p=w1(),Tt.updateQueue=p),p.memoCache=u,p=u.data[u.index],p===void 0)for(p=u.data[u.index]=Array(s),b=0;b<s;b++)p[b]=F;return u.index++,p}function Io(s,u){return typeof u=="function"?u(s):u}function og(s){var u=Fn();return S1(u,Wt,s)}function S1(s,u,p){var b=s.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=p;var C=s.baseQueue,M=b.pending;if(M!==null){if(C!==null){var Y=C.next;C.next=M.next,M.next=Y}u.baseQueue=C=M,b.pending=null}if(M=s.baseState,C===null)s.memoizedState=M;else{u=C.next;var ie=Y=null,me=null,Oe=u,Re=!1;do{var ke=Oe.lane&-536870913;if(ke!==Oe.lane?(It&ke)===ke:(Zs&ke)===ke){var Ee=Oe.revertLane;if(Ee===0)me!==null&&(me=me.next={lane:0,revertLane:0,action:Oe.action,hasEagerState:Oe.hasEagerState,eagerState:Oe.eagerState,next:null}),ke===Fc&&(Re=!0);else if((Zs&Ee)===Ee){Oe=Oe.next,Ee===Fc&&(Re=!0);continue}else ke={lane:0,revertLane:Oe.revertLane,action:Oe.action,hasEagerState:Oe.hasEagerState,eagerState:Oe.eagerState,next:null},me===null?(ie=me=ke,Y=M):me=me.next=ke,Tt.lanes|=Ee,rl|=Ee;ke=Oe.action,xu&&p(M,ke),M=Oe.hasEagerState?Oe.eagerState:p(M,ke)}else Ee={lane:ke,revertLane:Oe.revertLane,action:Oe.action,hasEagerState:Oe.hasEagerState,eagerState:Oe.eagerState,next:null},me===null?(ie=me=Ee,Y=M):me=me.next=Ee,Tt.lanes|=ke,rl|=ke;Oe=Oe.next}while(Oe!==null&&Oe!==u);if(me===null?Y=M:me.next=ie,!Mr(M,s.memoizedState)&&(nr=!0,Re&&(p=zc,p!==null)))throw p;s.memoizedState=M,s.baseState=Y,s.baseQueue=me,b.lastRenderedState=M}return C===null&&(b.lanes=0),[s.memoizedState,b.dispatch]}function E1(s){var u=Fn(),p=u.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var b=p.dispatch,C=p.pending,M=u.memoizedState;if(C!==null){p.pending=null;var Y=C=C.next;do M=s(M,Y.action),Y=Y.next;while(Y!==C);Mr(M,u.memoizedState)||(nr=!0),u.memoizedState=M,u.baseQueue===null&&(u.baseState=M),p.lastRenderedState=M}return[M,b]}function pR(s,u,p){var b=Tt,C=Fn(),M=vt;if(M){if(p===void 0)throw Error(r(407));p=p()}else p=u();var Y=!Mr((Wt||C).memoizedState,p);Y&&(C.memoizedState=p,nr=!0),C=C.queue;var ie=gR.bind(null,b,C,s);if(Eh(2048,8,ie,[s]),C.getSnapshot!==u||Y||Bn!==null&&Bn.memoizedState.tag&1){if(b.flags|=2048,Wc(9,sg(),vR.bind(null,b,C,p,u),null),un===null)throw Error(r(349));M||(Zs&124)!==0||mR(b,u,p)}return p}function mR(s,u,p){s.flags|=16384,s={getSnapshot:u,value:p},u=Tt.updateQueue,u===null?(u=w1(),Tt.updateQueue=u,u.stores=[s]):(p=u.stores,p===null?u.stores=[s]:p.push(s))}function vR(s,u,p,b){u.value=p,u.getSnapshot=b,yR(u)&&bR(s)}function gR(s,u,p){return p(function(){yR(u)&&bR(s)})}function yR(s){var u=s.getSnapshot;s=s.value;try{var p=u();return!Mr(s,p)}catch{return!0}}function bR(s){var u=qs(s,2);u!==null&&yi(u,s,2)}function T1(s){var u=Kr();if(typeof s=="function"){var p=s;if(s=p(),xu){Ge(!0);try{p()}finally{Ge(!1)}}}return u.memoizedState=u.baseState=s,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:s},u}function _R(s,u,p,b){return s.baseState=p,S1(s,Wt,typeof b=="function"?b:Io)}function NG(s,u,p,b,C){if(ug(s))throw Error(r(485));if(s=u.action,s!==null){var M={payload:C,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Y){M.listeners.push(Y)}};Q.T!==null?p(!0):M.isTransition=!1,b(M),p=u.pending,p===null?(M.next=u.pending=M,xR(u,M)):(M.next=p.next,u.pending=p.next=M)}}function xR(s,u){var p=u.action,b=u.payload,C=s.state;if(u.isTransition){var M=Q.T,Y={};Q.T=Y;try{var ie=p(C,b),me=Q.S;me!==null&&me(Y,ie),wR(s,u,ie)}catch(Oe){C1(s,u,Oe)}finally{Q.T=M}}else try{M=p(C,b),wR(s,u,M)}catch(Oe){C1(s,u,Oe)}}function wR(s,u,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(b){OR(s,u,b)},function(b){return C1(s,u,b)}):OR(s,u,p)}function OR(s,u,p){u.status="fulfilled",u.value=p,SR(u),s.state=p,u=s.pending,u!==null&&(p=u.next,p===u?s.pending=null:(p=p.next,u.next=p,xR(s,p)))}function C1(s,u,p){var b=s.pending;if(s.pending=null,b!==null){b=b.next;do u.status="rejected",u.reason=p,SR(u),u=u.next;while(u!==b)}s.action=null}function SR(s){s=s.listeners;for(var u=0;u<s.length;u++)(0,s[u])()}function ER(s,u){return u}function TR(s,u){if(vt){var p=un.formState;if(p!==null){e:{var b=Tt;if(vt){if(rt){t:{for(var C=rt,M=Tn;C.nodeType!==8;){if(!M){C=null;break t}if(C=ha(C.nextSibling),C===null){C=null;break t}}M=C.data,C=M==="F!"||M==="F"?C:null}if(C){rt=ha(C.nextSibling),b=C.data==="F!";break e}}Yr(b)}b=!1}b&&(u=p[0])}}return p=Kr(),p.memoizedState=p.baseState=u,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ER,lastRenderedState:u},p.queue=b,p=HR.bind(null,Tt,b),b.dispatch=p,b=T1(!1),M=M1.bind(null,Tt,!1,b.queue),b=Kr(),C={state:u,dispatch:null,action:s,pending:null},b.queue=C,p=NG.bind(null,Tt,C,M,p),C.dispatch=p,b.memoizedState=s,[u,p,!1]}function CR(s){var u=Fn();return AR(u,Wt,s)}function AR(s,u,p){if(u=S1(s,u,ER)[0],s=og(Io)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var b=Sh(u)}catch(Y){throw Y===yh?eg:Y}else b=u;u=Fn();var C=u.queue,M=C.dispatch;return p!==u.memoizedState&&(Tt.flags|=2048,Wc(9,sg(),LG.bind(null,C,p),null)),[b,M,s]}function LG(s,u){s.action=u}function jR(s){var u=Fn(),p=Wt;if(p!==null)return AR(u,p,s);Fn(),u=u.memoizedState,p=Fn();var b=p.queue.dispatch;return p.memoizedState=s,[u,b,!1]}function Wc(s,u,p,b){return s={tag:s,create:p,deps:b,inst:u,next:null},u=Tt.updateQueue,u===null&&(u=w1(),Tt.updateQueue=u),p=u.lastEffect,p===null?u.lastEffect=s.next=s:(b=p.next,p.next=s,s.next=b,u.lastEffect=s),s}function sg(){return{destroy:void 0,resource:void 0}}function PR(){return Fn().memoizedState}function lg(s,u,p,b){var C=Kr();b=b===void 0?null:b,Tt.flags|=s,C.memoizedState=Wc(1|u,sg(),p,b)}function Eh(s,u,p,b){var C=Fn();b=b===void 0?null:b;var M=C.memoizedState.inst;Wt!==null&&b!==null&&g1(b,Wt.memoizedState.deps)?C.memoizedState=Wc(u,M,p,b):(Tt.flags|=s,C.memoizedState=Wc(1|u,M,p,b))}function RR(s,u){lg(8390656,8,s,u)}function MR(s,u){Eh(2048,8,s,u)}function NR(s,u){return Eh(4,2,s,u)}function LR(s,u){return Eh(4,4,s,u)}function DR(s,u){if(typeof u=="function"){s=s();var p=u(s);return function(){typeof p=="function"?p():u(null)}}if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function kR(s,u,p){p=p!=null?p.concat([s]):null,Eh(4,4,DR.bind(null,u,s),p)}function A1(){}function IR(s,u){var p=Fn();u=u===void 0?null:u;var b=p.memoizedState;return u!==null&&g1(u,b[1])?b[0]:(p.memoizedState=[s,u],s)}function $R(s,u){var p=Fn();u=u===void 0?null:u;var b=p.memoizedState;if(u!==null&&g1(u,b[1]))return b[0];if(b=s(),xu){Ge(!0);try{s()}finally{Ge(!1)}}return p.memoizedState=[b,u],b}function j1(s,u,p){return p===void 0||(Zs&1073741824)!==0?s.memoizedState=u:(s.memoizedState=p,s=FM(),Tt.lanes|=s,rl|=s,p)}function UR(s,u,p,b){return Mr(p,u)?p:qc.current!==null?(s=j1(s,p,b),Mr(s,u)||(nr=!0),s):(Zs&42)===0?(nr=!0,s.memoizedState=p):(s=FM(),Tt.lanes|=s,rl|=s,u)}function BR(s,u,p,b,C){var M=oe.p;oe.p=M!==0&&8>M?M:8;var Y=Q.T,ie={};Q.T=ie,M1(s,!1,u,p);try{var me=C(),Oe=Q.S;if(Oe!==null&&Oe(ie,me),me!==null&&typeof me=="object"&&typeof me.then=="function"){var Re=PG(me,b);Th(s,u,Re,gi(s))}else Th(s,u,b,gi(s))}catch(ke){Th(s,u,{then:function(){},status:"rejected",reason:ke},gi())}finally{oe.p=M,Q.T=Y}}function DG(){}function P1(s,u,p,b){if(s.tag!==5)throw Error(r(476));var C=FR(s).queue;BR(s,C,u,le,p===null?DG:function(){return zR(s),p(b)})}function FR(s){var u=s.memoizedState;if(u!==null)return u;u={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:le},next:null};var p={};return u.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:p},next:null},s.memoizedState=u,s=s.alternate,s!==null&&(s.memoizedState=u),u}function zR(s){var u=FR(s).next.queue;Th(s,u,{},gi())}function R1(){return Sr(Vh)}function qR(){return Fn().memoizedState}function VR(){return Fn().memoizedState}function kG(s){for(var u=s.return;u!==null;){switch(u.tag){case 24:case 3:var p=gi();s=Ys(p);var b=Ks(u,s,p);b!==null&&(yi(b,u,p),_h(b,u,p)),u={cache:s1()},s.payload=u;return}u=u.return}}function IG(s,u,p){var b=gi();p={lane:b,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},ug(s)?WR(u,p):(p=Lo(s,u,p,b),p!==null&&(yi(p,s,b),GR(p,u,b)))}function HR(s,u,p){var b=gi();Th(s,u,p,b)}function Th(s,u,p,b){var C={lane:b,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(ug(s))WR(u,C);else{var M=s.alternate;if(s.lanes===0&&(M===null||M.lanes===0)&&(M=u.lastRenderedReducer,M!==null))try{var Y=u.lastRenderedState,ie=M(Y,p);if(C.hasEagerState=!0,C.eagerState=ie,Mr(ie,Y))return hu(s,u,C,0),un===null&&du(),!1}catch{}finally{}if(p=Lo(s,u,C,b),p!==null)return yi(p,s,b),GR(p,u,b),!0}return!1}function M1(s,u,p,b){if(b={lane:2,revertLane:cx(),action:b,hasEagerState:!1,eagerState:null,next:null},ug(s)){if(u)throw Error(r(479))}else u=Lo(s,p,b,2),u!==null&&yi(u,s,2)}function ug(s){var u=s.alternate;return s===Tt||u!==null&&u===Tt}function WR(s,u){Vc=rg=!0;var p=s.pending;p===null?u.next=u:(u.next=p.next,p.next=u),s.pending=u}function GR(s,u,p){if((p&4194048)!==0){var b=u.lanes;b&=s.pendingLanes,p|=b,u.lanes=p,Da(s,p)}}var cg={readContext:Sr,use:ag,useCallback:Ln,useContext:Ln,useEffect:Ln,useImperativeHandle:Ln,useLayoutEffect:Ln,useInsertionEffect:Ln,useMemo:Ln,useReducer:Ln,useRef:Ln,useState:Ln,useDebugValue:Ln,useDeferredValue:Ln,useTransition:Ln,useSyncExternalStore:Ln,useId:Ln,useHostTransitionStatus:Ln,useFormState:Ln,useActionState:Ln,useOptimistic:Ln,useMemoCache:Ln,useCacheRefresh:Ln},YR={readContext:Sr,use:ag,useCallback:function(s,u){return Kr().memoizedState=[s,u===void 0?null:u],s},useContext:Sr,useEffect:RR,useImperativeHandle:function(s,u,p){p=p!=null?p.concat([s]):null,lg(4194308,4,DR.bind(null,u,s),p)},useLayoutEffect:function(s,u){return lg(4194308,4,s,u)},useInsertionEffect:function(s,u){lg(4,2,s,u)},useMemo:function(s,u){var p=Kr();u=u===void 0?null:u;var b=s();if(xu){Ge(!0);try{s()}finally{Ge(!1)}}return p.memoizedState=[b,u],b},useReducer:function(s,u,p){var b=Kr();if(p!==void 0){var C=p(u);if(xu){Ge(!0);try{p(u)}finally{Ge(!1)}}}else C=u;return b.memoizedState=b.baseState=C,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:C},b.queue=s,s=s.dispatch=IG.bind(null,Tt,s),[b.memoizedState,s]},useRef:function(s){var u=Kr();return s={current:s},u.memoizedState=s},useState:function(s){s=T1(s);var u=s.queue,p=HR.bind(null,Tt,u);return u.dispatch=p,[s.memoizedState,p]},useDebugValue:A1,useDeferredValue:function(s,u){var p=Kr();return j1(p,s,u)},useTransition:function(){var s=T1(!1);return s=BR.bind(null,Tt,s.queue,!0,!1),Kr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,u,p){var b=Tt,C=Kr();if(vt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=u(),un===null)throw Error(r(349));(It&124)!==0||mR(b,u,p)}C.memoizedState=p;var M={value:p,getSnapshot:u};return C.queue=M,RR(gR.bind(null,b,M,s),[s]),b.flags|=2048,Wc(9,sg(),vR.bind(null,b,M,p,u),null),p},useId:function(){var s=Kr(),u=un.identifierPrefix;if(vt){var p=he,b=ne;p=(b&~(1<<32-Ze(b)-1)).toString(32)+p,u="«"+u+"R"+p,p=ig++,0<p&&(u+="H"+p.toString(32)),u+="»"}else p=RG++,u="«"+u+"r"+p.toString(32)+"»";return s.memoizedState=u},useHostTransitionStatus:R1,useFormState:TR,useActionState:TR,useOptimistic:function(s){var u=Kr();u.memoizedState=u.baseState=s;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=p,u=M1.bind(null,Tt,!0,p),p.dispatch=u,[s,u]},useMemoCache:O1,useCacheRefresh:function(){return Kr().memoizedState=kG.bind(null,Tt)}},KR={readContext:Sr,use:ag,useCallback:IR,useContext:Sr,useEffect:MR,useImperativeHandle:kR,useInsertionEffect:NR,useLayoutEffect:LR,useMemo:$R,useReducer:og,useRef:PR,useState:function(){return og(Io)},useDebugValue:A1,useDeferredValue:function(s,u){var p=Fn();return UR(p,Wt.memoizedState,s,u)},useTransition:function(){var s=og(Io)[0],u=Fn().memoizedState;return[typeof s=="boolean"?s:Sh(s),u]},useSyncExternalStore:pR,useId:qR,useHostTransitionStatus:R1,useFormState:CR,useActionState:CR,useOptimistic:function(s,u){var p=Fn();return _R(p,Wt,s,u)},useMemoCache:O1,useCacheRefresh:VR},$G={readContext:Sr,use:ag,useCallback:IR,useContext:Sr,useEffect:MR,useImperativeHandle:kR,useInsertionEffect:NR,useLayoutEffect:LR,useMemo:$R,useReducer:E1,useRef:PR,useState:function(){return E1(Io)},useDebugValue:A1,useDeferredValue:function(s,u){var p=Fn();return Wt===null?j1(p,s,u):UR(p,Wt.memoizedState,s,u)},useTransition:function(){var s=E1(Io)[0],u=Fn().memoizedState;return[typeof s=="boolean"?s:Sh(s),u]},useSyncExternalStore:pR,useId:qR,useHostTransitionStatus:R1,useFormState:jR,useActionState:jR,useOptimistic:function(s,u){var p=Fn();return Wt!==null?_R(p,Wt,s,u):(p.baseState=s,[s,p.queue.dispatch])},useMemoCache:O1,useCacheRefresh:VR},Gc=null,Ch=0;function fg(s){var u=Ch;return Ch+=1,Gc===null&&(Gc=[]),oR(Gc,s,u)}function Ah(s,u){u=u.props.ref,s.ref=u!==void 0?u:null}function dg(s,u){throw u.$$typeof===m?Error(r(525)):(s=Object.prototype.toString.call(u),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s)))}function ZR(s){var u=s._init;return u(s._payload)}function XR(s){function u(be,ve){if(s){var xe=be.deletions;xe===null?(be.deletions=[ve],be.flags|=16):xe.push(ve)}}function p(be,ve){if(!s)return null;for(;ve!==null;)u(be,ve),ve=ve.sibling;return null}function b(be){for(var ve=new Map;be!==null;)be.key!==null?ve.set(be.key,be):ve.set(be.index,be),be=be.sibling;return ve}function C(be,ve){return be=Bi(be,ve),be.index=0,be.sibling=null,be}function M(be,ve,xe){return be.index=xe,s?(xe=be.alternate,xe!==null?(xe=xe.index,xe<ve?(be.flags|=67108866,ve):xe):(be.flags|=67108866,ve)):(be.flags|=1048576,ve)}function Y(be){return s&&be.alternate===null&&(be.flags|=67108866),be}function ie(be,ve,xe,Ne){return ve===null||ve.tag!==6?(ve=mh(xe,be.mode,Ne),ve.return=be,ve):(ve=C(ve,xe),ve.return=be,ve)}function me(be,ve,xe,Ne){var nt=xe.type;return nt===_?Re(be,ve,xe.props.children,Ne,xe.key):ve!==null&&(ve.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===U&&ZR(nt)===ve.type)?(ve=C(ve,xe.props),Ah(ve,xe),ve.return=be,ve):(ve=mu(xe.type,xe.key,xe.props,null,be.mode,Ne),Ah(ve,xe),ve.return=be,ve)}function Oe(be,ve,xe,Ne){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==xe.containerInfo||ve.stateNode.implementation!==xe.implementation?(ve=Uc(xe,be.mode,Ne),ve.return=be,ve):(ve=C(ve,xe.children||[]),ve.return=be,ve)}function Re(be,ve,xe,Ne,nt){return ve===null||ve.tag!==7?(ve=za(xe,be.mode,Ne,nt),ve.return=be,ve):(ve=C(ve,xe),ve.return=be,ve)}function ke(be,ve,xe){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return ve=mh(""+ve,be.mode,xe),ve.return=be,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case g:return xe=mu(ve.type,ve.key,ve.props,null,be.mode,xe),Ah(xe,ve),xe.return=be,xe;case x:return ve=Uc(ve,be.mode,xe),ve.return=be,ve;case U:var Ne=ve._init;return ve=Ne(ve._payload),ke(be,ve,xe)}if(re(ve)||H(ve))return ve=za(ve,be.mode,xe,null),ve.return=be,ve;if(typeof ve.then=="function")return ke(be,fg(ve),xe);if(ve.$$typeof===A)return ke(be,Qv(be,ve),xe);dg(be,ve)}return null}function Ee(be,ve,xe,Ne){var nt=ve!==null?ve.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return nt!==null?null:ie(be,ve,""+xe,Ne);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case g:return xe.key===nt?me(be,ve,xe,Ne):null;case x:return xe.key===nt?Oe(be,ve,xe,Ne):null;case U:return nt=xe._init,xe=nt(xe._payload),Ee(be,ve,xe,Ne)}if(re(xe)||H(xe))return nt!==null?null:Re(be,ve,xe,Ne,null);if(typeof xe.then=="function")return Ee(be,ve,fg(xe),Ne);if(xe.$$typeof===A)return Ee(be,ve,Qv(be,xe),Ne);dg(be,xe)}return null}function Ce(be,ve,xe,Ne,nt){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return be=be.get(xe)||null,ie(ve,be,""+Ne,nt);if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case g:return be=be.get(Ne.key===null?xe:Ne.key)||null,me(ve,be,Ne,nt);case x:return be=be.get(Ne.key===null?xe:Ne.key)||null,Oe(ve,be,Ne,nt);case U:var At=Ne._init;return Ne=At(Ne._payload),Ce(be,ve,xe,Ne,nt)}if(re(Ne)||H(Ne))return be=be.get(xe)||null,Re(ve,be,Ne,nt,null);if(typeof Ne.then=="function")return Ce(be,ve,xe,fg(Ne),nt);if(Ne.$$typeof===A)return Ce(be,ve,xe,Qv(ve,Ne),nt);dg(ve,Ne)}return null}function pt(be,ve,xe,Ne){for(var nt=null,At=null,st=ve,dt=ve=0,ir=null;st!==null&&dt<xe.length;dt++){st.index>dt?(ir=st,st=null):ir=st.sibling;var Ut=Ee(be,st,xe[dt],Ne);if(Ut===null){st===null&&(st=ir);break}s&&st&&Ut.alternate===null&&u(be,st),ve=M(Ut,ve,dt),At===null?nt=Ut:At.sibling=Ut,At=Ut,st=ir}if(dt===xe.length)return p(be,st),vt&&_e(be,dt),nt;if(st===null){for(;dt<xe.length;dt++)st=ke(be,xe[dt],Ne),st!==null&&(ve=M(st,ve,dt),At===null?nt=st:At.sibling=st,At=st);return vt&&_e(be,dt),nt}for(st=b(st);dt<xe.length;dt++)ir=Ce(st,be,dt,xe[dt],Ne),ir!==null&&(s&&ir.alternate!==null&&st.delete(ir.key===null?dt:ir.key),ve=M(ir,ve,dt),At===null?nt=ir:At.sibling=ir,At=ir);return s&&st.forEach(function(dl){return u(be,dl)}),vt&&_e(be,dt),nt}function ut(be,ve,xe,Ne){if(xe==null)throw Error(r(151));for(var nt=null,At=null,st=ve,dt=ve=0,ir=null,Ut=xe.next();st!==null&&!Ut.done;dt++,Ut=xe.next()){st.index>dt?(ir=st,st=null):ir=st.sibling;var dl=Ee(be,st,Ut.value,Ne);if(dl===null){st===null&&(st=ir);break}s&&st&&dl.alternate===null&&u(be,st),ve=M(dl,ve,dt),At===null?nt=dl:At.sibling=dl,At=dl,st=ir}if(Ut.done)return p(be,st),vt&&_e(be,dt),nt;if(st===null){for(;!Ut.done;dt++,Ut=xe.next())Ut=ke(be,Ut.value,Ne),Ut!==null&&(ve=M(Ut,ve,dt),At===null?nt=Ut:At.sibling=Ut,At=Ut);return vt&&_e(be,dt),nt}for(st=b(st);!Ut.done;dt++,Ut=xe.next())Ut=Ce(st,be,dt,Ut.value,Ne),Ut!==null&&(s&&Ut.alternate!==null&&st.delete(Ut.key===null?dt:Ut.key),ve=M(Ut,ve,dt),At===null?nt=Ut:At.sibling=Ut,At=Ut);return s&&st.forEach(function(UY){return u(be,UY)}),vt&&_e(be,dt),nt}function Yt(be,ve,xe,Ne){if(typeof xe=="object"&&xe!==null&&xe.type===_&&xe.key===null&&(xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case g:e:{for(var nt=xe.key;ve!==null;){if(ve.key===nt){if(nt=xe.type,nt===_){if(ve.tag===7){p(be,ve.sibling),Ne=C(ve,xe.props.children),Ne.return=be,be=Ne;break e}}else if(ve.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===U&&ZR(nt)===ve.type){p(be,ve.sibling),Ne=C(ve,xe.props),Ah(Ne,xe),Ne.return=be,be=Ne;break e}p(be,ve);break}else u(be,ve);ve=ve.sibling}xe.type===_?(Ne=za(xe.props.children,be.mode,Ne,xe.key),Ne.return=be,be=Ne):(Ne=mu(xe.type,xe.key,xe.props,null,be.mode,Ne),Ah(Ne,xe),Ne.return=be,be=Ne)}return Y(be);case x:e:{for(nt=xe.key;ve!==null;){if(ve.key===nt)if(ve.tag===4&&ve.stateNode.containerInfo===xe.containerInfo&&ve.stateNode.implementation===xe.implementation){p(be,ve.sibling),Ne=C(ve,xe.children||[]),Ne.return=be,be=Ne;break e}else{p(be,ve);break}else u(be,ve);ve=ve.sibling}Ne=Uc(xe,be.mode,Ne),Ne.return=be,be=Ne}return Y(be);case U:return nt=xe._init,xe=nt(xe._payload),Yt(be,ve,xe,Ne)}if(re(xe))return pt(be,ve,xe,Ne);if(H(xe)){if(nt=H(xe),typeof nt!="function")throw Error(r(150));return xe=nt.call(xe),ut(be,ve,xe,Ne)}if(typeof xe.then=="function")return Yt(be,ve,fg(xe),Ne);if(xe.$$typeof===A)return Yt(be,ve,Qv(be,xe),Ne);dg(be,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(xe=""+xe,ve!==null&&ve.tag===6?(p(be,ve.sibling),Ne=C(ve,xe),Ne.return=be,be=Ne):(p(be,ve),Ne=mh(xe,be.mode,Ne),Ne.return=be,be=Ne),Y(be)):p(be,ve)}return function(be,ve,xe,Ne){try{Ch=0;var nt=Yt(be,ve,xe,Ne);return Gc=null,nt}catch(st){if(st===yh||st===eg)throw st;var At=kr(29,st,null,be.mode);return At.lanes=Ne,At.return=be,At}finally{}}}var Yc=XR(!0),QR=XR(!1),zi=G(null),Va=null;function Xs(s){var u=s.alternate;Z(Gn,Gn.current&1),Z(zi,s),Va===null&&(u===null||qc.current!==null||u.memoizedState!==null)&&(Va=s)}function JR(s){if(s.tag===22){if(Z(Gn,Gn.current),Z(zi,s),Va===null){var u=s.alternate;u!==null&&u.memoizedState!==null&&(Va=s)}}else Qs()}function Qs(){Z(Gn,Gn.current),Z(zi,zi.current)}function $o(s){se(zi),Va===s&&(Va=null),se(Gn)}var Gn=G(0);function hg(s){for(var u=s;u!==null;){if(u.tag===13){var p=u.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||wx(p)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}function N1(s,u,p,b){u=s.memoizedState,p=p(b,u),p=p==null?u:h({},u,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var L1={enqueueSetState:function(s,u,p){s=s._reactInternals;var b=gi(),C=Ys(b);C.payload=u,p!=null&&(C.callback=p),u=Ks(s,C,b),u!==null&&(yi(u,s,b),_h(u,s,b))},enqueueReplaceState:function(s,u,p){s=s._reactInternals;var b=gi(),C=Ys(b);C.tag=1,C.payload=u,p!=null&&(C.callback=p),u=Ks(s,C,b),u!==null&&(yi(u,s,b),_h(u,s,b))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var p=gi(),b=Ys(p);b.tag=2,u!=null&&(b.callback=u),u=Ks(s,b,p),u!==null&&(yi(u,s,p),_h(u,s,p))}};function eM(s,u,p,b,C,M,Y){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(b,M,Y):u.prototype&&u.prototype.isPureReactComponent?!Nr(p,b)||!Nr(C,M):!0}function tM(s,u,p,b){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(p,b),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(p,b),u.state!==s&&L1.enqueueReplaceState(u,u.state,null)}function wu(s,u){var p=u;if("ref"in u){p={};for(var b in u)b!=="ref"&&(p[b]=u[b])}if(s=s.defaultProps){p===u&&(p=h({},p));for(var C in s)p[C]===void 0&&(p[C]=s[C])}return p}var pg=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function nM(s){pg(s)}function rM(s){console.error(s)}function iM(s){pg(s)}function mg(s,u){try{var p=s.onUncaughtError;p(u.value,{componentStack:u.stack})}catch(b){setTimeout(function(){throw b})}}function aM(s,u,p){try{var b=s.onCaughtError;b(p.value,{componentStack:p.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function D1(s,u,p){return p=Ys(p),p.tag=3,p.payload={element:null},p.callback=function(){mg(s,u)},p}function oM(s){return s=Ys(s),s.tag=3,s}function sM(s,u,p,b){var C=p.type.getDerivedStateFromError;if(typeof C=="function"){var M=b.value;s.payload=function(){return C(M)},s.callback=function(){aM(u,p,b)}}var Y=p.stateNode;Y!==null&&typeof Y.componentDidCatch=="function"&&(s.callback=function(){aM(u,p,b),typeof C!="function"&&(il===null?il=new Set([this]):il.add(this));var ie=b.stack;this.componentDidCatch(b.value,{componentStack:ie!==null?ie:""})})}function UG(s,u,p,b,C){if(p.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(u=p.alternate,u!==null&&yu(u,p,C,!0),p=zi.current,p!==null){switch(p.tag){case 13:return Va===null?ax():p.alternate===null&&Pn===0&&(Pn=3),p.flags&=-257,p.flags|=65536,p.lanes=C,b===c1?p.flags|=16384:(u=p.updateQueue,u===null?p.updateQueue=new Set([b]):u.add(b),sx(s,b,C)),!1;case 22:return p.flags|=65536,b===c1?p.flags|=16384:(u=p.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([b])},p.updateQueue=u):(p=u.retryQueue,p===null?u.retryQueue=new Set([b]):p.add(b)),sx(s,b,C)),!1}throw Error(r(435,p.tag))}return sx(s,b,C),ax(),!1}if(vt)return u=zi.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=C,b!==tr&&(s=Error(r(422),{cause:b}),Ws(Lr(s,p)))):(b!==tr&&(u=Error(r(423),{cause:b}),Ws(Lr(u,p))),s=s.current.alternate,s.flags|=65536,C&=-C,s.lanes|=C,b=Lr(b,p),C=D1(s.stateNode,b,C),h1(s,C),Pn!==4&&(Pn=2)),!1;var M=Error(r(520),{cause:b});if(M=Lr(M,p),Dh===null?Dh=[M]:Dh.push(M),Pn!==4&&(Pn=2),u===null)return!0;b=Lr(b,p),p=u;do{switch(p.tag){case 3:return p.flags|=65536,s=C&-C,p.lanes|=s,s=D1(p.stateNode,b,s),h1(p,s),!1;case 1:if(u=p.type,M=p.stateNode,(p.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(il===null||!il.has(M))))return p.flags|=65536,C&=-C,p.lanes|=C,C=oM(C),sM(C,s,p,b),h1(p,C),!1}p=p.return}while(p!==null);return!1}var lM=Error(r(461)),nr=!1;function pr(s,u,p,b){u.child=s===null?QR(u,null,p,b):Yc(u,s.child,p,b)}function uM(s,u,p,b,C){p=p.render;var M=u.ref;if("ref"in b){var Y={};for(var ie in b)ie!=="ref"&&(Y[ie]=b[ie])}else Y=b;return bu(u),b=y1(s,u,p,Y,M,C),ie=b1(),s!==null&&!nr?(_1(s,u,C),Uo(s,u,C)):(vt&&ie&&$e(u),u.flags|=1,pr(s,u,b,C),u.child)}function cM(s,u,p,b,C){if(s===null){var M=p.type;return typeof M=="function"&&!$c(M)&&M.defaultProps===void 0&&p.compare===null?(u.tag=15,u.type=M,fM(s,u,M,b,C)):(s=mu(p.type,null,b,u,u.mode,C),s.ref=u.ref,s.return=u,u.child=s)}if(M=s.child,!q1(s,C)){var Y=M.memoizedProps;if(p=p.compare,p=p!==null?p:Nr,p(Y,b)&&s.ref===u.ref)return Uo(s,u,C)}return u.flags|=1,s=Bi(M,b),s.ref=u.ref,s.return=u,u.child=s}function fM(s,u,p,b,C){if(s!==null){var M=s.memoizedProps;if(Nr(M,b)&&s.ref===u.ref)if(nr=!1,u.pendingProps=b=M,q1(s,C))(s.flags&131072)!==0&&(nr=!0);else return u.lanes=s.lanes,Uo(s,u,C)}return k1(s,u,p,b,C)}function dM(s,u,p){var b=u.pendingProps,C=b.children,M=s!==null?s.memoizedState:null;if(b.mode==="hidden"){if((u.flags&128)!==0){if(b=M!==null?M.baseLanes|p:p,s!==null){for(C=u.child=s.child,M=0;C!==null;)M=M|C.lanes|C.childLanes,C=C.sibling;u.childLanes=M&~b}else u.childLanes=0,u.child=null;return hM(s,u,b,p)}if((p&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},s!==null&&Jv(u,M!==null?M.cachePool:null),M!==null?fR(u,M):m1(),JR(u);else return u.lanes=u.childLanes=536870912,hM(s,u,M!==null?M.baseLanes|p:p,p)}else M!==null?(Jv(u,M.cachePool),fR(u,M),Qs(),u.memoizedState=null):(s!==null&&Jv(u,null),m1(),Qs());return pr(s,u,C,p),u.child}function hM(s,u,p,b){var C=u1();return C=C===null?null:{parent:Wn._currentValue,pool:C},u.memoizedState={baseLanes:p,cachePool:C},s!==null&&Jv(u,null),m1(),JR(u),s!==null&&yu(s,u,b,!0),null}function vg(s,u){var p=u.ref;if(p===null)s!==null&&s.ref!==null&&(u.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(s===null||s.ref!==p)&&(u.flags|=4194816)}}function k1(s,u,p,b,C){return bu(u),p=y1(s,u,p,b,void 0,C),b=b1(),s!==null&&!nr?(_1(s,u,C),Uo(s,u,C)):(vt&&b&&$e(u),u.flags|=1,pr(s,u,p,C),u.child)}function pM(s,u,p,b,C,M){return bu(u),u.updateQueue=null,p=hR(u,b,p,C),dR(s),b=b1(),s!==null&&!nr?(_1(s,u,M),Uo(s,u,M)):(vt&&b&&$e(u),u.flags|=1,pr(s,u,p,M),u.child)}function mM(s,u,p,b,C){if(bu(u),u.stateNode===null){var M=Do,Y=p.contextType;typeof Y=="object"&&Y!==null&&(M=Sr(Y)),M=new p(b,M),u.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=L1,u.stateNode=M,M._reactInternals=u,M=u.stateNode,M.props=b,M.state=u.memoizedState,M.refs={},f1(u),Y=p.contextType,M.context=typeof Y=="object"&&Y!==null?Sr(Y):Do,M.state=u.memoizedState,Y=p.getDerivedStateFromProps,typeof Y=="function"&&(N1(u,p,Y,b),M.state=u.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(Y=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),Y!==M.state&&L1.enqueueReplaceState(M,M.state,null),wh(u,b,M,C),xh(),M.state=u.memoizedState),typeof M.componentDidMount=="function"&&(u.flags|=4194308),b=!0}else if(s===null){M=u.stateNode;var ie=u.memoizedProps,me=wu(p,ie);M.props=me;var Oe=M.context,Re=p.contextType;Y=Do,typeof Re=="object"&&Re!==null&&(Y=Sr(Re));var ke=p.getDerivedStateFromProps;Re=typeof ke=="function"||typeof M.getSnapshotBeforeUpdate=="function",ie=u.pendingProps!==ie,Re||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(ie||Oe!==Y)&&tM(u,M,b,Y),Gs=!1;var Ee=u.memoizedState;M.state=Ee,wh(u,b,M,C),xh(),Oe=u.memoizedState,ie||Ee!==Oe||Gs?(typeof ke=="function"&&(N1(u,p,ke,b),Oe=u.memoizedState),(me=Gs||eM(u,p,me,b,Ee,Oe,Y))?(Re||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(u.flags|=4194308)):(typeof M.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=b,u.memoizedState=Oe),M.props=b,M.state=Oe,M.context=Y,b=me):(typeof M.componentDidMount=="function"&&(u.flags|=4194308),b=!1)}else{M=u.stateNode,d1(s,u),Y=u.memoizedProps,Re=wu(p,Y),M.props=Re,ke=u.pendingProps,Ee=M.context,Oe=p.contextType,me=Do,typeof Oe=="object"&&Oe!==null&&(me=Sr(Oe)),ie=p.getDerivedStateFromProps,(Oe=typeof ie=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(Y!==ke||Ee!==me)&&tM(u,M,b,me),Gs=!1,Ee=u.memoizedState,M.state=Ee,wh(u,b,M,C),xh();var Ce=u.memoizedState;Y!==ke||Ee!==Ce||Gs||s!==null&&s.dependencies!==null&&Xv(s.dependencies)?(typeof ie=="function"&&(N1(u,p,ie,b),Ce=u.memoizedState),(Re=Gs||eM(u,p,Re,b,Ee,Ce,me)||s!==null&&s.dependencies!==null&&Xv(s.dependencies))?(Oe||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(b,Ce,me),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(b,Ce,me)),typeof M.componentDidUpdate=="function"&&(u.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof M.componentDidUpdate!="function"||Y===s.memoizedProps&&Ee===s.memoizedState||(u.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||Y===s.memoizedProps&&Ee===s.memoizedState||(u.flags|=1024),u.memoizedProps=b,u.memoizedState=Ce),M.props=b,M.state=Ce,M.context=me,b=Re):(typeof M.componentDidUpdate!="function"||Y===s.memoizedProps&&Ee===s.memoizedState||(u.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||Y===s.memoizedProps&&Ee===s.memoizedState||(u.flags|=1024),b=!1)}return M=b,vg(s,u),b=(u.flags&128)!==0,M||b?(M=u.stateNode,p=b&&typeof p.getDerivedStateFromError!="function"?null:M.render(),u.flags|=1,s!==null&&b?(u.child=Yc(u,s.child,null,C),u.child=Yc(u,null,p,C)):pr(s,u,p,C),u.memoizedState=M.state,s=u.child):s=Uo(s,u,C),s}function vM(s,u,p,b){return Hs(),u.flags|=256,pr(s,u,p,b),u.child}var I1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $1(s){return{baseLanes:s,cachePool:rR()}}function U1(s,u,p){return s=s!==null?s.childLanes&~p:0,u&&(s|=qi),s}function gM(s,u,p){var b=u.pendingProps,C=!1,M=(u.flags&128)!==0,Y;if((Y=M)||(Y=s!==null&&s.memoizedState===null?!1:(Gn.current&2)!==0),Y&&(C=!0,u.flags&=-129),Y=(u.flags&32)!==0,u.flags&=-33,s===null){if(vt){if(C?Xs(u):Qs(),vt){var ie=rt,me;if(me=ie){e:{for(me=ie,ie=Tn;me.nodeType!==8;){if(!ie){ie=null;break e}if(me=ha(me.nextSibling),me===null){ie=null;break e}}ie=me}ie!==null?(u.memoizedState={dehydrated:ie,treeContext:q!==null?{id:ne,overflow:he}:null,retryLane:536870912,hydrationErrors:null},me=kr(18,null,null,0),me.stateNode=ie,me.return=u,u.child=me,tt=u,rt=null,me=!0):me=!1}me||Yr(u)}if(ie=u.memoizedState,ie!==null&&(ie=ie.dehydrated,ie!==null))return wx(ie)?u.lanes=32:u.lanes=536870912,null;$o(u)}return ie=b.children,b=b.fallback,C?(Qs(),C=u.mode,ie=gg({mode:"hidden",children:ie},C),b=za(b,C,p,null),ie.return=u,b.return=u,ie.sibling=b,u.child=ie,C=u.child,C.memoizedState=$1(p),C.childLanes=U1(s,Y,p),u.memoizedState=I1,b):(Xs(u),B1(u,ie))}if(me=s.memoizedState,me!==null&&(ie=me.dehydrated,ie!==null)){if(M)u.flags&256?(Xs(u),u.flags&=-257,u=F1(s,u,p)):u.memoizedState!==null?(Qs(),u.child=s.child,u.flags|=128,u=null):(Qs(),C=b.fallback,ie=u.mode,b=gg({mode:"visible",children:b.children},ie),C=za(C,ie,p,null),C.flags|=2,b.return=u,C.return=u,b.sibling=C,u.child=b,Yc(u,s.child,null,p),b=u.child,b.memoizedState=$1(p),b.childLanes=U1(s,Y,p),u.memoizedState=I1,u=C);else if(Xs(u),wx(ie)){if(Y=ie.nextSibling&&ie.nextSibling.dataset,Y)var Oe=Y.dgst;Y=Oe,b=Error(r(419)),b.stack="",b.digest=Y,Ws({value:b,source:null,stack:null}),u=F1(s,u,p)}else if(nr||yu(s,u,p,!1),Y=(p&s.childLanes)!==0,nr||Y){if(Y=un,Y!==null&&(b=p&-p,b=(b&42)!==0?1:gn(b),b=(b&(Y.suspendedLanes|p))!==0?0:b,b!==0&&b!==me.retryLane))throw me.retryLane=b,qs(s,b),yi(Y,s,b),lM;ie.data==="$?"||ax(),u=F1(s,u,p)}else ie.data==="$?"?(u.flags|=192,u.child=s.child,u=null):(s=me.treeContext,rt=ha(ie.nextSibling),tt=u,vt=!0,ln=null,Tn=!1,s!==null&&(E[N++]=ne,E[N++]=he,E[N++]=q,ne=s.id,he=s.overflow,q=u),u=B1(u,b.children),u.flags|=4096);return u}return C?(Qs(),C=b.fallback,ie=u.mode,me=s.child,Oe=me.sibling,b=Bi(me,{mode:"hidden",children:b.children}),b.subtreeFlags=me.subtreeFlags&65011712,Oe!==null?C=Bi(Oe,C):(C=za(C,ie,p,null),C.flags|=2),C.return=u,b.return=u,b.sibling=C,u.child=b,b=C,C=u.child,ie=s.child.memoizedState,ie===null?ie=$1(p):(me=ie.cachePool,me!==null?(Oe=Wn._currentValue,me=me.parent!==Oe?{parent:Oe,pool:Oe}:me):me=rR(),ie={baseLanes:ie.baseLanes|p,cachePool:me}),C.memoizedState=ie,C.childLanes=U1(s,Y,p),u.memoizedState=I1,b):(Xs(u),p=s.child,s=p.sibling,p=Bi(p,{mode:"visible",children:b.children}),p.return=u,p.sibling=null,s!==null&&(Y=u.deletions,Y===null?(u.deletions=[s],u.flags|=16):Y.push(s)),u.child=p,u.memoizedState=null,p)}function B1(s,u){return u=gg({mode:"visible",children:u},s.mode),u.return=s,s.child=u}function gg(s,u){return s=kr(22,s,null,u),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function F1(s,u,p){return Yc(u,s.child,null,p),s=B1(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function yM(s,u,p){s.lanes|=u;var b=s.alternate;b!==null&&(b.lanes|=u),gu(s.return,u,p)}function z1(s,u,p,b,C){var M=s.memoizedState;M===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:b,tail:p,tailMode:C}:(M.isBackwards=u,M.rendering=null,M.renderingStartTime=0,M.last=b,M.tail=p,M.tailMode=C)}function bM(s,u,p){var b=u.pendingProps,C=b.revealOrder,M=b.tail;if(pr(s,u,b.children,p),b=Gn.current,(b&2)!==0)b=b&1|2,u.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&yM(s,p,u);else if(s.tag===19)yM(s,p,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}b&=1}switch(Z(Gn,b),C){case"forwards":for(p=u.child,C=null;p!==null;)s=p.alternate,s!==null&&hg(s)===null&&(C=p),p=p.sibling;p=C,p===null?(C=u.child,u.child=null):(C=p.sibling,p.sibling=null),z1(u,!1,C,p,M);break;case"backwards":for(p=null,C=u.child,u.child=null;C!==null;){if(s=C.alternate,s!==null&&hg(s)===null){u.child=C;break}s=C.sibling,C.sibling=p,p=C,C=s}z1(u,!0,p,null,M);break;case"together":z1(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Uo(s,u,p){if(s!==null&&(u.dependencies=s.dependencies),rl|=u.lanes,(p&u.childLanes)===0)if(s!==null){if(yu(s,u,p,!1),(p&u.childLanes)===0)return null}else return null;if(s!==null&&u.child!==s.child)throw Error(r(153));if(u.child!==null){for(s=u.child,p=Bi(s,s.pendingProps),u.child=p,p.return=u;s.sibling!==null;)s=s.sibling,p=p.sibling=Bi(s,s.pendingProps),p.return=u;p.sibling=null}return u.child}function q1(s,u){return(s.lanes&u)!==0?!0:(s=s.dependencies,!!(s!==null&&Xv(s)))}function BG(s,u,p){switch(u.tag){case 3:k(u,u.stateNode.containerInfo),qa(u,Wn,s.memoizedState.cache),Hs();break;case 27:case 5:K(u);break;case 4:k(u,u.stateNode.containerInfo);break;case 10:qa(u,u.type,u.memoizedProps.value);break;case 13:var b=u.memoizedState;if(b!==null)return b.dehydrated!==null?(Xs(u),u.flags|=128,null):(p&u.child.childLanes)!==0?gM(s,u,p):(Xs(u),s=Uo(s,u,p),s!==null?s.sibling:null);Xs(u);break;case 19:var C=(s.flags&128)!==0;if(b=(p&u.childLanes)!==0,b||(yu(s,u,p,!1),b=(p&u.childLanes)!==0),C){if(b)return bM(s,u,p);u.flags|=128}if(C=u.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),Z(Gn,Gn.current),b)break;return null;case 22:case 23:return u.lanes=0,dM(s,u,p);case 24:qa(u,Wn,s.memoizedState.cache)}return Uo(s,u,p)}function _M(s,u,p){if(s!==null)if(s.memoizedProps!==u.pendingProps)nr=!0;else{if(!q1(s,p)&&(u.flags&128)===0)return nr=!1,BG(s,u,p);nr=(s.flags&131072)!==0}else nr=!1,vt&&(u.flags&1048576)!==0&&Ae(u,v,u.index);switch(u.lanes=0,u.tag){case 16:e:{s=u.pendingProps;var b=u.elementType,C=b._init;if(b=C(b._payload),u.type=b,typeof b=="function")$c(b)?(s=wu(b,s),u.tag=1,u=mM(null,u,b,s,p)):(u.tag=0,u=k1(null,u,b,s,p));else{if(b!=null){if(C=b.$$typeof,C===j){u.tag=11,u=uM(null,u,b,s,p);break e}else if(C===D){u.tag=14,u=cM(null,u,b,s,p);break e}}throw u=ee(b)||b,Error(r(306,u,""))}}return u;case 0:return k1(s,u,u.type,u.pendingProps,p);case 1:return b=u.type,C=wu(b,u.pendingProps),mM(s,u,b,C,p);case 3:e:{if(k(u,u.stateNode.containerInfo),s===null)throw Error(r(387));b=u.pendingProps;var M=u.memoizedState;C=M.element,d1(s,u),wh(u,b,null,p);var Y=u.memoizedState;if(b=Y.cache,qa(u,Wn,b),b!==M.cache&&Bc(u,[Wn],p,!0),xh(),b=Y.element,M.isDehydrated)if(M={element:b,isDehydrated:!1,cache:Y.cache},u.updateQueue.baseState=M,u.memoizedState=M,u.flags&256){u=vM(s,u,b,p);break e}else if(b!==C){C=Lr(Error(r(424)),u),Ws(C),u=vM(s,u,b,p);break e}else{switch(s=u.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(rt=ha(s.firstChild),tt=u,vt=!0,ln=null,Tn=!0,p=QR(u,null,b,p),u.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(Hs(),b===C){u=Uo(s,u,p);break e}pr(s,u,b,p)}u=u.child}return u;case 26:return vg(s,u),s===null?(p=SN(u.type,null,u.pendingProps,null))?u.memoizedState=p:vt||(p=u.type,s=u.pendingProps,b=Rg(de.current).createElement(p),b[Nt]=u,b[an]=s,vr(b,p,s),Un(b),u.stateNode=b):u.memoizedState=SN(u.type,s.memoizedProps,u.pendingProps,s.memoizedState),null;case 27:return K(u),s===null&&vt&&(b=u.stateNode=xN(u.type,u.pendingProps,de.current),tt=u,Tn=!0,C=rt,sl(u.type)?(Ox=C,rt=ha(b.firstChild)):rt=C),pr(s,u,u.pendingProps.children,p),vg(s,u),s===null&&(u.flags|=4194304),u.child;case 5:return s===null&&vt&&((C=b=rt)&&(b=pY(b,u.type,u.pendingProps,Tn),b!==null?(u.stateNode=b,tt=u,rt=ha(b.firstChild),Tn=!1,C=!0):C=!1),C||Yr(u)),K(u),C=u.type,M=u.pendingProps,Y=s!==null?s.memoizedProps:null,b=M.children,bx(C,M)?b=null:Y!==null&&bx(C,Y)&&(u.flags|=32),u.memoizedState!==null&&(C=y1(s,u,MG,null,null,p),Vh._currentValue=C),vg(s,u),pr(s,u,b,p),u.child;case 6:return s===null&&vt&&((s=p=rt)&&(p=mY(p,u.pendingProps,Tn),p!==null?(u.stateNode=p,tt=u,rt=null,s=!0):s=!1),s||Yr(u)),null;case 13:return gM(s,u,p);case 4:return k(u,u.stateNode.containerInfo),b=u.pendingProps,s===null?u.child=Yc(u,null,b,p):pr(s,u,b,p),u.child;case 11:return uM(s,u,u.type,u.pendingProps,p);case 7:return pr(s,u,u.pendingProps,p),u.child;case 8:return pr(s,u,u.pendingProps.children,p),u.child;case 12:return pr(s,u,u.pendingProps.children,p),u.child;case 10:return b=u.pendingProps,qa(u,u.type,b.value),pr(s,u,b.children,p),u.child;case 9:return C=u.type._context,b=u.pendingProps.children,bu(u),C=Sr(C),b=b(C),u.flags|=1,pr(s,u,b,p),u.child;case 14:return cM(s,u,u.type,u.pendingProps,p);case 15:return fM(s,u,u.type,u.pendingProps,p);case 19:return bM(s,u,p);case 31:return b=u.pendingProps,p=u.mode,b={mode:b.mode,children:b.children},s===null?(p=gg(b,p),p.ref=u.ref,u.child=p,p.return=u,u=p):(p=Bi(s.child,b),p.ref=u.ref,u.child=p,p.return=u,u=p),u;case 22:return dM(s,u,p);case 24:return bu(u),b=Sr(Wn),s===null?(C=u1(),C===null&&(C=un,M=s1(),C.pooledCache=M,M.refCount++,M!==null&&(C.pooledCacheLanes|=p),C=M),u.memoizedState={parent:b,cache:C},f1(u),qa(u,Wn,C)):((s.lanes&p)!==0&&(d1(s,u),wh(u,null,null,p),xh()),C=s.memoizedState,M=u.memoizedState,C.parent!==b?(C={parent:b,cache:b},u.memoizedState=C,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=C),qa(u,Wn,b)):(b=M.cache,qa(u,Wn,b),b!==C.cache&&Bc(u,[Wn],p,!0))),pr(s,u,u.pendingProps.children,p),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function Bo(s){s.flags|=4}function xM(s,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!jN(u)){if(u=zi.current,u!==null&&((It&4194048)===It?Va!==null:(It&62914560)!==It&&(It&536870912)===0||u!==Va))throw bh=c1,iR;s.flags|=8192}}function yg(s,u){u!==null&&(s.flags|=4),s.flags&16384&&(u=s.tag!==22?oi():536870912,s.lanes|=u,Qc|=u)}function jh(s,u){if(!vt)switch(s.tailMode){case"hidden":u=s.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function Cn(s){var u=s.alternate!==null&&s.alternate.child===s.child,p=0,b=0;if(u)for(var C=s.child;C!==null;)p|=C.lanes|C.childLanes,b|=C.subtreeFlags&65011712,b|=C.flags&65011712,C.return=s,C=C.sibling;else for(C=s.child;C!==null;)p|=C.lanes|C.childLanes,b|=C.subtreeFlags,b|=C.flags,C.return=s,C=C.sibling;return s.subtreeFlags|=b,s.childLanes=p,u}function FG(s,u,p){var b=u.pendingProps;switch(Je(u),u.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cn(u),null;case 1:return Cn(u),null;case 3:return p=u.stateNode,b=null,s!==null&&(b=s.memoizedState.cache),u.memoizedState.cache!==b&&(u.flags|=2048),fa(Wn),B(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(s===null||s.child===null)&&(vu(u)?Bo(u):s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Zv())),Cn(u),null;case 26:return p=u.memoizedState,s===null?(Bo(u),p!==null?(Cn(u),xM(u,p)):(Cn(u),u.flags&=-16777217)):p?p!==s.memoizedState?(Bo(u),Cn(u),xM(u,p)):(Cn(u),u.flags&=-16777217):(s.memoizedProps!==b&&Bo(u),Cn(u),u.flags&=-16777217),null;case 27:ce(u),p=de.current;var C=u.type;if(s!==null&&u.stateNode!=null)s.memoizedProps!==b&&Bo(u);else{if(!b){if(u.stateNode===null)throw Error(r(166));return Cn(u),null}s=ue.current,vu(u)?Yv(u):(s=xN(C,b,p),u.stateNode=s,Bo(u))}return Cn(u),null;case 5:if(ce(u),p=u.type,s!==null&&u.stateNode!=null)s.memoizedProps!==b&&Bo(u);else{if(!b){if(u.stateNode===null)throw Error(r(166));return Cn(u),null}if(s=ue.current,vu(u))Yv(u);else{switch(C=Rg(de.current),s){case 1:s=C.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:s=C.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":s=C.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":s=C.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":s=C.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof b.is=="string"?C.createElement("select",{is:b.is}):C.createElement("select"),b.multiple?s.multiple=!0:b.size&&(s.size=b.size);break;default:s=typeof b.is=="string"?C.createElement(p,{is:b.is}):C.createElement(p)}}s[Nt]=u,s[an]=b;e:for(C=u.child;C!==null;){if(C.tag===5||C.tag===6)s.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===u)break e;for(;C.sibling===null;){if(C.return===null||C.return===u)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}u.stateNode=s;e:switch(vr(s,p,b),p){case"button":case"input":case"select":case"textarea":s=!!b.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Bo(u)}}return Cn(u),u.flags&=-16777217,null;case 6:if(s&&u.stateNode!=null)s.memoizedProps!==b&&Bo(u);else{if(typeof b!="string"&&u.stateNode===null)throw Error(r(166));if(s=de.current,vu(u)){if(s=u.stateNode,p=u.memoizedProps,b=null,C=tt,C!==null)switch(C.tag){case 27:case 5:b=C.memoizedProps}s[Nt]=u,s=!!(s.nodeValue===p||b!==null&&b.suppressHydrationWarning===!0||pN(s.nodeValue,p)),s||Yr(u)}else s=Rg(s).createTextNode(b),s[Nt]=u,u.stateNode=s}return Cn(u),null;case 13:if(b=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(C=vu(u),b!==null&&b.dehydrated!==null){if(s===null){if(!C)throw Error(r(318));if(C=u.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(r(317));C[Nt]=u}else Hs(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Cn(u),C=!1}else C=Zv(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=C),C=!0;if(!C)return u.flags&256?($o(u),u):($o(u),null)}if($o(u),(u.flags&128)!==0)return u.lanes=p,u;if(p=b!==null,s=s!==null&&s.memoizedState!==null,p){b=u.child,C=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(C=b.alternate.memoizedState.cachePool.pool);var M=null;b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(M=b.memoizedState.cachePool.pool),M!==C&&(b.flags|=2048)}return p!==s&&p&&(u.child.flags|=8192),yg(u,u.updateQueue),Cn(u),null;case 4:return B(),s===null&&px(u.stateNode.containerInfo),Cn(u),null;case 10:return fa(u.type),Cn(u),null;case 19:if(se(Gn),C=u.memoizedState,C===null)return Cn(u),null;if(b=(u.flags&128)!==0,M=C.rendering,M===null)if(b)jh(C,!1);else{if(Pn!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(M=hg(s),M!==null){for(u.flags|=128,jh(C,!1),s=M.updateQueue,u.updateQueue=s,yg(u,s),u.subtreeFlags=0,s=p,p=u.child;p!==null;)ph(p,s),p=p.sibling;return Z(Gn,Gn.current&1|2),u.child}s=s.sibling}C.tail!==null&&je()>xg&&(u.flags|=128,b=!0,jh(C,!1),u.lanes=4194304)}else{if(!b)if(s=hg(M),s!==null){if(u.flags|=128,b=!0,s=s.updateQueue,u.updateQueue=s,yg(u,s),jh(C,!0),C.tail===null&&C.tailMode==="hidden"&&!M.alternate&&!vt)return Cn(u),null}else 2*je()-C.renderingStartTime>xg&&p!==536870912&&(u.flags|=128,b=!0,jh(C,!1),u.lanes=4194304);C.isBackwards?(M.sibling=u.child,u.child=M):(s=C.last,s!==null?s.sibling=M:u.child=M,C.last=M)}return C.tail!==null?(u=C.tail,C.rendering=u,C.tail=u.sibling,C.renderingStartTime=je(),u.sibling=null,s=Gn.current,Z(Gn,b?s&1|2:s&1),u):(Cn(u),null);case 22:case 23:return $o(u),v1(),b=u.memoizedState!==null,s!==null?s.memoizedState!==null!==b&&(u.flags|=8192):b&&(u.flags|=8192),b?(p&536870912)!==0&&(u.flags&128)===0&&(Cn(u),u.subtreeFlags&6&&(u.flags|=8192)):Cn(u),p=u.updateQueue,p!==null&&yg(u,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),b=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(b=u.memoizedState.cachePool.pool),b!==p&&(u.flags|=2048),s!==null&&se(_u),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),u.memoizedState.cache!==p&&(u.flags|=2048),fa(Wn),Cn(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function zG(s,u){switch(Je(u),u.tag){case 1:return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return fa(Wn),B(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 26:case 27:case 5:return ce(u),null;case 13:if($o(u),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Hs()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return se(Gn),null;case 4:return B(),null;case 10:return fa(u.type),null;case 22:case 23:return $o(u),v1(),s!==null&&se(_u),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 24:return fa(Wn),null;case 25:return null;default:return null}}function wM(s,u){switch(Je(u),u.tag){case 3:fa(Wn),B();break;case 26:case 27:case 5:ce(u);break;case 4:B();break;case 13:$o(u);break;case 19:se(Gn);break;case 10:fa(u.type);break;case 22:case 23:$o(u),v1(),s!==null&&se(_u);break;case 24:fa(Wn)}}function Ph(s,u){try{var p=u.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var C=b.next;p=C;do{if((p.tag&s)===s){b=void 0;var M=p.create,Y=p.inst;b=M(),Y.destroy=b}p=p.next}while(p!==C)}}catch(ie){Xt(u,u.return,ie)}}function Js(s,u,p){try{var b=u.updateQueue,C=b!==null?b.lastEffect:null;if(C!==null){var M=C.next;b=M;do{if((b.tag&s)===s){var Y=b.inst,ie=Y.destroy;if(ie!==void 0){Y.destroy=void 0,C=u;var me=p,Oe=ie;try{Oe()}catch(Re){Xt(C,me,Re)}}}b=b.next}while(b!==M)}}catch(Re){Xt(u,u.return,Re)}}function OM(s){var u=s.updateQueue;if(u!==null){var p=s.stateNode;try{cR(u,p)}catch(b){Xt(s,s.return,b)}}}function SM(s,u,p){p.props=wu(s.type,s.memoizedProps),p.state=s.memoizedState;try{p.componentWillUnmount()}catch(b){Xt(s,u,b)}}function Rh(s,u){try{var p=s.ref;if(p!==null){switch(s.tag){case 26:case 27:case 5:var b=s.stateNode;break;case 30:b=s.stateNode;break;default:b=s.stateNode}typeof p=="function"?s.refCleanup=p(b):p.current=b}}catch(C){Xt(s,u,C)}}function Ha(s,u){var p=s.ref,b=s.refCleanup;if(p!==null)if(typeof b=="function")try{b()}catch(C){Xt(s,u,C)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(C){Xt(s,u,C)}else p.current=null}function EM(s){var u=s.type,p=s.memoizedProps,b=s.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":p.autoFocus&&b.focus();break e;case"img":p.src?b.src=p.src:p.srcSet&&(b.srcset=p.srcSet)}}catch(C){Xt(s,s.return,C)}}function V1(s,u,p){try{var b=s.stateNode;uY(b,s.type,p,u),b[an]=u}catch(C){Xt(s,s.return,C)}}function TM(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&sl(s.type)||s.tag===4}function H1(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||TM(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&sl(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function W1(s,u,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(s,u):(u=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,u.appendChild(s),p=p._reactRootContainer,p!=null||u.onclick!==null||(u.onclick=Pg));else if(b!==4&&(b===27&&sl(s.type)&&(p=s.stateNode,u=null),s=s.child,s!==null))for(W1(s,u,p),s=s.sibling;s!==null;)W1(s,u,p),s=s.sibling}function bg(s,u,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?p.insertBefore(s,u):p.appendChild(s);else if(b!==4&&(b===27&&sl(s.type)&&(p=s.stateNode),s=s.child,s!==null))for(bg(s,u,p),s=s.sibling;s!==null;)bg(s,u,p),s=s.sibling}function CM(s){var u=s.stateNode,p=s.memoizedProps;try{for(var b=s.type,C=u.attributes;C.length;)u.removeAttributeNode(C[0]);vr(u,b,p),u[Nt]=s,u[an]=p}catch(M){Xt(s,s.return,M)}}var Fo=!1,Dn=!1,G1=!1,AM=typeof WeakSet=="function"?WeakSet:Set,rr=null;function qG(s,u){if(s=s.containerInfo,gx=Ig,s=uu(s),cu(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var b=p.getSelection&&p.getSelection();if(b&&b.rangeCount!==0){p=b.anchorNode;var C=b.anchorOffset,M=b.focusNode;b=b.focusOffset;try{p.nodeType,M.nodeType}catch{p=null;break e}var Y=0,ie=-1,me=-1,Oe=0,Re=0,ke=s,Ee=null;t:for(;;){for(var Ce;ke!==p||C!==0&&ke.nodeType!==3||(ie=Y+C),ke!==M||b!==0&&ke.nodeType!==3||(me=Y+b),ke.nodeType===3&&(Y+=ke.nodeValue.length),(Ce=ke.firstChild)!==null;)Ee=ke,ke=Ce;for(;;){if(ke===s)break t;if(Ee===p&&++Oe===C&&(ie=Y),Ee===M&&++Re===b&&(me=Y),(Ce=ke.nextSibling)!==null)break;ke=Ee,Ee=ke.parentNode}ke=Ce}p=ie===-1||me===-1?null:{start:ie,end:me}}else p=null}p=p||{start:0,end:0}}else p=null;for(yx={focusedElem:s,selectionRange:p},Ig=!1,rr=u;rr!==null;)if(u=rr,s=u.child,(u.subtreeFlags&1024)!==0&&s!==null)s.return=u,rr=s;else for(;rr!==null;){switch(u=rr,M=u.alternate,s=u.flags,u.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&M!==null){s=void 0,p=u,C=M.memoizedProps,M=M.memoizedState,b=p.stateNode;try{var pt=wu(p.type,C,p.elementType===p.type);s=b.getSnapshotBeforeUpdate(pt,M),b.__reactInternalSnapshotBeforeUpdate=s}catch(ut){Xt(p,p.return,ut)}}break;case 3:if((s&1024)!==0){if(s=u.stateNode.containerInfo,p=s.nodeType,p===9)xx(s);else if(p===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":xx(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=u.sibling,s!==null){s.return=u.return,rr=s;break}rr=u.return}}function jM(s,u,p){var b=p.flags;switch(p.tag){case 0:case 11:case 15:el(s,p),b&4&&Ph(5,p);break;case 1:if(el(s,p),b&4)if(s=p.stateNode,u===null)try{s.componentDidMount()}catch(Y){Xt(p,p.return,Y)}else{var C=wu(p.type,u.memoizedProps);u=u.memoizedState;try{s.componentDidUpdate(C,u,s.__reactInternalSnapshotBeforeUpdate)}catch(Y){Xt(p,p.return,Y)}}b&64&&OM(p),b&512&&Rh(p,p.return);break;case 3:if(el(s,p),b&64&&(s=p.updateQueue,s!==null)){if(u=null,p.child!==null)switch(p.child.tag){case 27:case 5:u=p.child.stateNode;break;case 1:u=p.child.stateNode}try{cR(s,u)}catch(Y){Xt(p,p.return,Y)}}break;case 27:u===null&&b&4&&CM(p);case 26:case 5:el(s,p),u===null&&b&4&&EM(p),b&512&&Rh(p,p.return);break;case 12:el(s,p);break;case 13:el(s,p),b&4&&MM(s,p),b&64&&(s=p.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(p=QG.bind(null,p),vY(s,p))));break;case 22:if(b=p.memoizedState!==null||Fo,!b){u=u!==null&&u.memoizedState!==null||Dn,C=Fo;var M=Dn;Fo=b,(Dn=u)&&!M?tl(s,p,(p.subtreeFlags&8772)!==0):el(s,p),Fo=C,Dn=M}break;case 30:break;default:el(s,p)}}function PM(s){var u=s.alternate;u!==null&&(s.alternate=null,PM(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&xc(u)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var bn=null,Zr=!1;function zo(s,u,p){for(p=p.child;p!==null;)RM(s,u,p),p=p.sibling}function RM(s,u,p){if(Ie&&typeof Ie.onCommitFiberUnmount=="function")try{Ie.onCommitFiberUnmount(Le,p)}catch{}switch(p.tag){case 26:Dn||Ha(p,u),zo(s,u,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:Dn||Ha(p,u);var b=bn,C=Zr;sl(p.type)&&(bn=p.stateNode,Zr=!1),zo(s,u,p),Bh(p.stateNode),bn=b,Zr=C;break;case 5:Dn||Ha(p,u);case 6:if(b=bn,C=Zr,bn=null,zo(s,u,p),bn=b,Zr=C,bn!==null)if(Zr)try{(bn.nodeType===9?bn.body:bn.nodeName==="HTML"?bn.ownerDocument.body:bn).removeChild(p.stateNode)}catch(M){Xt(p,u,M)}else try{bn.removeChild(p.stateNode)}catch(M){Xt(p,u,M)}break;case 18:bn!==null&&(Zr?(s=bn,bN(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,p.stateNode),Yh(s)):bN(bn,p.stateNode));break;case 4:b=bn,C=Zr,bn=p.stateNode.containerInfo,Zr=!0,zo(s,u,p),bn=b,Zr=C;break;case 0:case 11:case 14:case 15:Dn||Js(2,p,u),Dn||Js(4,p,u),zo(s,u,p);break;case 1:Dn||(Ha(p,u),b=p.stateNode,typeof b.componentWillUnmount=="function"&&SM(p,u,b)),zo(s,u,p);break;case 21:zo(s,u,p);break;case 22:Dn=(b=Dn)||p.memoizedState!==null,zo(s,u,p),Dn=b;break;default:zo(s,u,p)}}function MM(s,u){if(u.memoizedState===null&&(s=u.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Yh(s)}catch(p){Xt(u,u.return,p)}}function VG(s){switch(s.tag){case 13:case 19:var u=s.stateNode;return u===null&&(u=s.stateNode=new AM),u;case 22:return s=s.stateNode,u=s._retryCache,u===null&&(u=s._retryCache=new AM),u;default:throw Error(r(435,s.tag))}}function Y1(s,u){var p=VG(s);u.forEach(function(b){var C=JG.bind(null,s,b);p.has(b)||(p.add(b),b.then(C,C))})}function pi(s,u){var p=u.deletions;if(p!==null)for(var b=0;b<p.length;b++){var C=p[b],M=s,Y=u,ie=Y;e:for(;ie!==null;){switch(ie.tag){case 27:if(sl(ie.type)){bn=ie.stateNode,Zr=!1;break e}break;case 5:bn=ie.stateNode,Zr=!1;break e;case 3:case 4:bn=ie.stateNode.containerInfo,Zr=!0;break e}ie=ie.return}if(bn===null)throw Error(r(160));RM(M,Y,C),bn=null,Zr=!1,M=C.alternate,M!==null&&(M.return=null),C.return=null}if(u.subtreeFlags&13878)for(u=u.child;u!==null;)NM(u,s),u=u.sibling}var da=null;function NM(s,u){var p=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:pi(u,s),mi(s),b&4&&(Js(3,s,s.return),Ph(3,s),Js(5,s,s.return));break;case 1:pi(u,s),mi(s),b&512&&(Dn||p===null||Ha(p,p.return)),b&64&&Fo&&(s=s.updateQueue,s!==null&&(b=s.callbacks,b!==null&&(p=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=p===null?b:p.concat(b))));break;case 26:var C=da;if(pi(u,s),mi(s),b&512&&(Dn||p===null||Ha(p,p.return)),b&4){var M=p!==null?p.memoizedState:null;if(b=s.memoizedState,p===null)if(b===null)if(s.stateNode===null){e:{b=s.type,p=s.memoizedProps,C=C.ownerDocument||C;t:switch(b){case"title":M=C.getElementsByTagName("title")[0],(!M||M[Ss]||M[Nt]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=C.createElement(b),C.head.insertBefore(M,C.querySelector("head > title"))),vr(M,b,p),M[Nt]=s,Un(M),b=M;break e;case"link":var Y=CN("link","href",C).get(b+(p.href||""));if(Y){for(var ie=0;ie<Y.length;ie++)if(M=Y[ie],M.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&M.getAttribute("rel")===(p.rel==null?null:p.rel)&&M.getAttribute("title")===(p.title==null?null:p.title)&&M.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){Y.splice(ie,1);break t}}M=C.createElement(b),vr(M,b,p),C.head.appendChild(M);break;case"meta":if(Y=CN("meta","content",C).get(b+(p.content||""))){for(ie=0;ie<Y.length;ie++)if(M=Y[ie],M.getAttribute("content")===(p.content==null?null:""+p.content)&&M.getAttribute("name")===(p.name==null?null:p.name)&&M.getAttribute("property")===(p.property==null?null:p.property)&&M.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&M.getAttribute("charset")===(p.charSet==null?null:p.charSet)){Y.splice(ie,1);break t}}M=C.createElement(b),vr(M,b,p),C.head.appendChild(M);break;default:throw Error(r(468,b))}M[Nt]=s,Un(M),b=M}s.stateNode=b}else AN(C,s.type,s.stateNode);else s.stateNode=TN(C,b,s.memoizedProps);else M!==b?(M===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):M.count--,b===null?AN(C,s.type,s.stateNode):TN(C,b,s.memoizedProps)):b===null&&s.stateNode!==null&&V1(s,s.memoizedProps,p.memoizedProps)}break;case 27:pi(u,s),mi(s),b&512&&(Dn||p===null||Ha(p,p.return)),p!==null&&b&4&&V1(s,s.memoizedProps,p.memoizedProps);break;case 5:if(pi(u,s),mi(s),b&512&&(Dn||p===null||Ha(p,p.return)),s.flags&32){C=s.stateNode;try{Di(C,"")}catch(Ce){Xt(s,s.return,Ce)}}b&4&&s.stateNode!=null&&(C=s.memoizedProps,V1(s,C,p!==null?p.memoizedProps:C)),b&1024&&(G1=!0);break;case 6:if(pi(u,s),mi(s),b&4){if(s.stateNode===null)throw Error(r(162));b=s.memoizedProps,p=s.stateNode;try{p.nodeValue=b}catch(Ce){Xt(s,s.return,Ce)}}break;case 3:if(Lg=null,C=da,da=Mg(u.containerInfo),pi(u,s),da=C,mi(s),b&4&&p!==null&&p.memoizedState.isDehydrated)try{Yh(u.containerInfo)}catch(Ce){Xt(s,s.return,Ce)}G1&&(G1=!1,LM(s));break;case 4:b=da,da=Mg(s.stateNode.containerInfo),pi(u,s),mi(s),da=b;break;case 12:pi(u,s),mi(s);break;case 13:pi(u,s),mi(s),s.child.flags&8192&&s.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(ex=je()),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,Y1(s,b)));break;case 22:C=s.memoizedState!==null;var me=p!==null&&p.memoizedState!==null,Oe=Fo,Re=Dn;if(Fo=Oe||C,Dn=Re||me,pi(u,s),Dn=Re,Fo=Oe,mi(s),b&8192)e:for(u=s.stateNode,u._visibility=C?u._visibility&-2:u._visibility|1,C&&(p===null||me||Fo||Dn||Ou(s)),p=null,u=s;;){if(u.tag===5||u.tag===26){if(p===null){me=p=u;try{if(M=me.stateNode,C)Y=M.style,typeof Y.setProperty=="function"?Y.setProperty("display","none","important"):Y.display="none";else{ie=me.stateNode;var ke=me.memoizedProps.style,Ee=ke!=null&&ke.hasOwnProperty("display")?ke.display:null;ie.style.display=Ee==null||typeof Ee=="boolean"?"":(""+Ee).trim()}}catch(Ce){Xt(me,me.return,Ce)}}}else if(u.tag===6){if(p===null){me=u;try{me.stateNode.nodeValue=C?"":me.memoizedProps}catch(Ce){Xt(me,me.return,Ce)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===s)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;p===u&&(p=null),u=u.return}p===u&&(p=null),u.sibling.return=u.return,u=u.sibling}b&4&&(b=s.updateQueue,b!==null&&(p=b.retryQueue,p!==null&&(b.retryQueue=null,Y1(s,p))));break;case 19:pi(u,s),mi(s),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,Y1(s,b)));break;case 30:break;case 21:break;default:pi(u,s),mi(s)}}function mi(s){var u=s.flags;if(u&2){try{for(var p,b=s.return;b!==null;){if(TM(b)){p=b;break}b=b.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var C=p.stateNode,M=H1(s);bg(s,M,C);break;case 5:var Y=p.stateNode;p.flags&32&&(Di(Y,""),p.flags&=-33);var ie=H1(s);bg(s,ie,Y);break;case 3:case 4:var me=p.stateNode.containerInfo,Oe=H1(s);W1(s,Oe,me);break;default:throw Error(r(161))}}catch(Re){Xt(s,s.return,Re)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function LM(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var u=s;LM(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),s=s.sibling}}function el(s,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)jM(s,u.alternate,u),u=u.sibling}function Ou(s){for(s=s.child;s!==null;){var u=s;switch(u.tag){case 0:case 11:case 14:case 15:Js(4,u,u.return),Ou(u);break;case 1:Ha(u,u.return);var p=u.stateNode;typeof p.componentWillUnmount=="function"&&SM(u,u.return,p),Ou(u);break;case 27:Bh(u.stateNode);case 26:case 5:Ha(u,u.return),Ou(u);break;case 22:u.memoizedState===null&&Ou(u);break;case 30:Ou(u);break;default:Ou(u)}s=s.sibling}}function tl(s,u,p){for(p=p&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var b=u.alternate,C=s,M=u,Y=M.flags;switch(M.tag){case 0:case 11:case 15:tl(C,M,p),Ph(4,M);break;case 1:if(tl(C,M,p),b=M,C=b.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(Oe){Xt(b,b.return,Oe)}if(b=M,C=b.updateQueue,C!==null){var ie=b.stateNode;try{var me=C.shared.hiddenCallbacks;if(me!==null)for(C.shared.hiddenCallbacks=null,C=0;C<me.length;C++)uR(me[C],ie)}catch(Oe){Xt(b,b.return,Oe)}}p&&Y&64&&OM(M),Rh(M,M.return);break;case 27:CM(M);case 26:case 5:tl(C,M,p),p&&b===null&&Y&4&&EM(M),Rh(M,M.return);break;case 12:tl(C,M,p);break;case 13:tl(C,M,p),p&&Y&4&&MM(C,M);break;case 22:M.memoizedState===null&&tl(C,M,p),Rh(M,M.return);break;case 30:break;default:tl(C,M,p)}u=u.sibling}}function K1(s,u){var p=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),s=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(s=u.memoizedState.cachePool.pool),s!==p&&(s!=null&&s.refCount++,p!=null&&vh(p))}function Z1(s,u){s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(u.refCount++,s!=null&&vh(s))}function Wa(s,u,p,b){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)DM(s,u,p,b),u=u.sibling}function DM(s,u,p,b){var C=u.flags;switch(u.tag){case 0:case 11:case 15:Wa(s,u,p,b),C&2048&&Ph(9,u);break;case 1:Wa(s,u,p,b);break;case 3:Wa(s,u,p,b),C&2048&&(s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(u.refCount++,s!=null&&vh(s)));break;case 12:if(C&2048){Wa(s,u,p,b),s=u.stateNode;try{var M=u.memoizedProps,Y=M.id,ie=M.onPostCommit;typeof ie=="function"&&ie(Y,u.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(me){Xt(u,u.return,me)}}else Wa(s,u,p,b);break;case 13:Wa(s,u,p,b);break;case 23:break;case 22:M=u.stateNode,Y=u.alternate,u.memoizedState!==null?M._visibility&2?Wa(s,u,p,b):Mh(s,u):M._visibility&2?Wa(s,u,p,b):(M._visibility|=2,Kc(s,u,p,b,(u.subtreeFlags&10256)!==0)),C&2048&&K1(Y,u);break;case 24:Wa(s,u,p,b),C&2048&&Z1(u.alternate,u);break;default:Wa(s,u,p,b)}}function Kc(s,u,p,b,C){for(C=C&&(u.subtreeFlags&10256)!==0,u=u.child;u!==null;){var M=s,Y=u,ie=p,me=b,Oe=Y.flags;switch(Y.tag){case 0:case 11:case 15:Kc(M,Y,ie,me,C),Ph(8,Y);break;case 23:break;case 22:var Re=Y.stateNode;Y.memoizedState!==null?Re._visibility&2?Kc(M,Y,ie,me,C):Mh(M,Y):(Re._visibility|=2,Kc(M,Y,ie,me,C)),C&&Oe&2048&&K1(Y.alternate,Y);break;case 24:Kc(M,Y,ie,me,C),C&&Oe&2048&&Z1(Y.alternate,Y);break;default:Kc(M,Y,ie,me,C)}u=u.sibling}}function Mh(s,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var p=s,b=u,C=b.flags;switch(b.tag){case 22:Mh(p,b),C&2048&&K1(b.alternate,b);break;case 24:Mh(p,b),C&2048&&Z1(b.alternate,b);break;default:Mh(p,b)}u=u.sibling}}var Nh=8192;function Zc(s){if(s.subtreeFlags&Nh)for(s=s.child;s!==null;)kM(s),s=s.sibling}function kM(s){switch(s.tag){case 26:Zc(s),s.flags&Nh&&s.memoizedState!==null&&jY(da,s.memoizedState,s.memoizedProps);break;case 5:Zc(s);break;case 3:case 4:var u=da;da=Mg(s.stateNode.containerInfo),Zc(s),da=u;break;case 22:s.memoizedState===null&&(u=s.alternate,u!==null&&u.memoizedState!==null?(u=Nh,Nh=16777216,Zc(s),Nh=u):Zc(s));break;default:Zc(s)}}function IM(s){var u=s.alternate;if(u!==null&&(s=u.child,s!==null)){u.child=null;do u=s.sibling,s.sibling=null,s=u;while(s!==null)}}function Lh(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var b=u[p];rr=b,UM(b,s)}IM(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)$M(s),s=s.sibling}function $M(s){switch(s.tag){case 0:case 11:case 15:Lh(s),s.flags&2048&&Js(9,s,s.return);break;case 3:Lh(s);break;case 12:Lh(s);break;case 22:var u=s.stateNode;s.memoizedState!==null&&u._visibility&2&&(s.return===null||s.return.tag!==13)?(u._visibility&=-3,_g(s)):Lh(s);break;default:Lh(s)}}function _g(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var b=u[p];rr=b,UM(b,s)}IM(s)}for(s=s.child;s!==null;){switch(u=s,u.tag){case 0:case 11:case 15:Js(8,u,u.return),_g(u);break;case 22:p=u.stateNode,p._visibility&2&&(p._visibility&=-3,_g(u));break;default:_g(u)}s=s.sibling}}function UM(s,u){for(;rr!==null;){var p=rr;switch(p.tag){case 0:case 11:case 15:Js(8,p,u);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var b=p.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:vh(p.memoizedState.cache)}if(b=p.child,b!==null)b.return=p,rr=b;else e:for(p=s;rr!==null;){b=rr;var C=b.sibling,M=b.return;if(PM(b),b===p){rr=null;break e}if(C!==null){C.return=M,rr=C;break e}rr=M}}}var HG={getCacheForType:function(s){var u=Sr(Wn),p=u.data.get(s);return p===void 0&&(p=s(),u.data.set(s,p)),p}},WG=typeof WeakMap=="function"?WeakMap:Map,zt=0,un=null,jt=null,It=0,qt=0,vi=null,nl=!1,Xc=!1,X1=!1,qo=0,Pn=0,rl=0,Su=0,Q1=0,qi=0,Qc=0,Dh=null,Xr=null,J1=!1,ex=0,xg=1/0,wg=null,il=null,mr=0,al=null,Jc=null,ef=0,tx=0,nx=null,BM=null,kh=0,rx=null;function gi(){if((zt&2)!==0&&It!==0)return It&-It;if(Q.T!==null){var s=Fc;return s!==0?s:cx()}return Qn()}function FM(){qi===0&&(qi=(It&536870912)===0||vt?xs():536870912);var s=zi.current;return s!==null&&(s.flags|=32),qi}function yi(s,u,p){(s===un&&(qt===2||qt===9)||s.cancelPendingCommit!==null)&&(tf(s,0),ol(s,It,qi,!1)),La(s,p),((zt&2)===0||s!==un)&&(s===un&&((zt&2)===0&&(Su|=p),Pn===4&&ol(s,It,qi,!1)),Ga(s))}function zM(s,u,p){if((zt&6)!==0)throw Error(r(327));var b=!p&&(u&124)===0&&(u&s.expiredLanes)===0||xr(s,u),C=b?KG(s,u):ox(s,u,!0),M=b;do{if(C===0){Xc&&!b&&ol(s,u,0,!1);break}else{if(p=s.current.alternate,M&&!GG(p)){C=ox(s,u,!1),M=!1;continue}if(C===2){if(M=u,s.errorRecoveryDisabledLanes&M)var Y=0;else Y=s.pendingLanes&-536870913,Y=Y!==0?Y:Y&536870912?536870912:0;if(Y!==0){u=Y;e:{var ie=s;C=Dh;var me=ie.current.memoizedState.isDehydrated;if(me&&(tf(ie,Y).flags|=256),Y=ox(ie,Y,!1),Y!==2){if(X1&&!me){ie.errorRecoveryDisabledLanes|=M,Su|=M,C=4;break e}M=Xr,Xr=C,M!==null&&(Xr===null?Xr=M:Xr.push.apply(Xr,M))}C=Y}if(M=!1,C!==2)continue}}if(C===1){tf(s,0),ol(s,u,0,!0);break}e:{switch(b=s,M=C,M){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:ol(b,u,qi,!nl);break e;case 2:Xr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(C=ex+300-je(),10<C)){if(ol(b,u,qi,!nl),$n(b,0,!0)!==0)break e;b.timeoutHandle=gN(qM.bind(null,b,p,Xr,wg,J1,u,qi,Su,Qc,nl,M,2,-0,0),C);break e}qM(b,p,Xr,wg,J1,u,qi,Su,Qc,nl,M,0,-0,0)}}break}while(!0);Ga(s)}function qM(s,u,p,b,C,M,Y,ie,me,Oe,Re,ke,Ee,Ce){if(s.timeoutHandle=-1,ke=u.subtreeFlags,(ke&8192||(ke&16785408)===16785408)&&(qh={stylesheets:null,count:0,unsuspend:AY},kM(u),ke=PY(),ke!==null)){s.cancelPendingCommit=ke(ZM.bind(null,s,u,M,p,b,C,Y,ie,me,Re,1,Ee,Ce)),ol(s,M,Y,!Oe);return}ZM(s,u,M,p,b,C,Y,ie,me)}function GG(s){for(var u=s;;){var p=u.tag;if((p===0||p===11||p===15)&&u.flags&16384&&(p=u.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var b=0;b<p.length;b++){var C=p[b],M=C.getSnapshot;C=C.value;try{if(!Mr(M(),C))return!1}catch{return!1}}if(p=u.child,u.subtreeFlags&16384&&p!==null)p.return=u,u=p;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function ol(s,u,p,b){u&=~Q1,u&=~Su,s.suspendedLanes|=u,s.pingedLanes&=~u,b&&(s.warmLanes|=u),b=s.expirationTimes;for(var C=u;0<C;){var M=31-Ze(C),Y=1<<M;b[M]=-1,C&=~Y}p!==0&&Os(s,p,u)}function Og(){return(zt&6)===0?(Ih(0),!1):!0}function ix(){if(jt!==null){if(qt===0)var s=jt.return;else s=jt,ca=Fi=null,x1(s),Gc=null,Ch=0,s=jt;for(;s!==null;)wM(s.alternate,s),s=s.return;jt=null}}function tf(s,u){var p=s.timeoutHandle;p!==-1&&(s.timeoutHandle=-1,fY(p)),p=s.cancelPendingCommit,p!==null&&(s.cancelPendingCommit=null,p()),ix(),un=s,jt=p=Bi(s.current,null),It=u,qt=0,vi=null,nl=!1,Xc=xr(s,u),X1=!1,Qc=qi=Q1=Su=rl=Pn=0,Xr=Dh=null,J1=!1,(u&8)!==0&&(u|=u&32);var b=s.entangledLanes;if(b!==0)for(s=s.entanglements,b&=u;0<b;){var C=31-Ze(b),M=1<<C;u|=s[C],b&=~M}return qo=u,du(),p}function VM(s,u){Tt=null,Q.H=cg,u===yh||u===eg?(u=sR(),qt=3):u===iR?(u=sR(),qt=4):qt=u===lM?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,vi=u,jt===null&&(Pn=1,mg(s,Lr(u,s.current)))}function HM(){var s=Q.H;return Q.H=cg,s===null?cg:s}function WM(){var s=Q.A;return Q.A=HG,s}function ax(){Pn=4,nl||(It&4194048)!==It&&zi.current!==null||(Xc=!0),(rl&134217727)===0&&(Su&134217727)===0||un===null||ol(un,It,qi,!1)}function ox(s,u,p){var b=zt;zt|=2;var C=HM(),M=WM();(un!==s||It!==u)&&(wg=null,tf(s,u)),u=!1;var Y=Pn;e:do try{if(qt!==0&&jt!==null){var ie=jt,me=vi;switch(qt){case 8:ix(),Y=6;break e;case 3:case 2:case 9:case 6:zi.current===null&&(u=!0);var Oe=qt;if(qt=0,vi=null,nf(s,ie,me,Oe),p&&Xc){Y=0;break e}break;default:Oe=qt,qt=0,vi=null,nf(s,ie,me,Oe)}}YG(),Y=Pn;break}catch(Re){VM(s,Re)}while(!0);return u&&s.shellSuspendCounter++,ca=Fi=null,zt=b,Q.H=C,Q.A=M,jt===null&&(un=null,It=0,du()),Y}function YG(){for(;jt!==null;)GM(jt)}function KG(s,u){var p=zt;zt|=2;var b=HM(),C=WM();un!==s||It!==u?(wg=null,xg=je()+500,tf(s,u)):Xc=xr(s,u);e:do try{if(qt!==0&&jt!==null){u=jt;var M=vi;t:switch(qt){case 1:qt=0,vi=null,nf(s,u,M,1);break;case 2:case 9:if(aR(M)){qt=0,vi=null,YM(u);break}u=function(){qt!==2&&qt!==9||un!==s||(qt=7),Ga(s)},M.then(u,u);break e;case 3:qt=7;break e;case 4:qt=5;break e;case 7:aR(M)?(qt=0,vi=null,YM(u)):(qt=0,vi=null,nf(s,u,M,7));break;case 5:var Y=null;switch(jt.tag){case 26:Y=jt.memoizedState;case 5:case 27:var ie=jt;if(!Y||jN(Y)){qt=0,vi=null;var me=ie.sibling;if(me!==null)jt=me;else{var Oe=ie.return;Oe!==null?(jt=Oe,Sg(Oe)):jt=null}break t}}qt=0,vi=null,nf(s,u,M,5);break;case 6:qt=0,vi=null,nf(s,u,M,6);break;case 8:ix(),Pn=6;break e;default:throw Error(r(462))}}ZG();break}catch(Re){VM(s,Re)}while(!0);return ca=Fi=null,Q.H=b,Q.A=C,zt=p,jt!==null?0:(un=null,It=0,du(),Pn)}function ZG(){for(;jt!==null&&!Fe();)GM(jt)}function GM(s){var u=_M(s.alternate,s,qo);s.memoizedProps=s.pendingProps,u===null?Sg(s):jt=u}function YM(s){var u=s,p=u.alternate;switch(u.tag){case 15:case 0:u=pM(p,u,u.pendingProps,u.type,void 0,It);break;case 11:u=pM(p,u,u.pendingProps,u.type.render,u.ref,It);break;case 5:x1(u);default:wM(p,u),u=jt=ph(u,qo),u=_M(p,u,qo)}s.memoizedProps=s.pendingProps,u===null?Sg(s):jt=u}function nf(s,u,p,b){ca=Fi=null,x1(u),Gc=null,Ch=0;var C=u.return;try{if(UG(s,C,u,p,It)){Pn=1,mg(s,Lr(p,s.current)),jt=null;return}}catch(M){if(C!==null)throw jt=C,M;Pn=1,mg(s,Lr(p,s.current)),jt=null;return}u.flags&32768?(vt||b===1?s=!0:Xc||(It&536870912)!==0?s=!1:(nl=s=!0,(b===2||b===9||b===3||b===6)&&(b=zi.current,b!==null&&b.tag===13&&(b.flags|=16384))),KM(u,s)):Sg(u)}function Sg(s){var u=s;do{if((u.flags&32768)!==0){KM(u,nl);return}s=u.return;var p=FG(u.alternate,u,qo);if(p!==null){jt=p;return}if(u=u.sibling,u!==null){jt=u;return}jt=u=s}while(u!==null);Pn===0&&(Pn=5)}function KM(s,u){do{var p=zG(s.alternate,s);if(p!==null){p.flags&=32767,jt=p;return}if(p=s.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!u&&(s=s.sibling,s!==null)){jt=s;return}jt=s=p}while(s!==null);Pn=6,jt=null}function ZM(s,u,p,b,C,M,Y,ie,me){s.cancelPendingCommit=null;do Eg();while(mr!==0);if((zt&6)!==0)throw Error(r(327));if(u!==null){if(u===s.current)throw Error(r(177));if(M=u.lanes|u.childLanes,M|=hi,_c(s,p,M,Y,ie,me),s===un&&(jt=un=null,It=0),Jc=u,al=s,ef=p,tx=M,nx=C,BM=b,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,eY(qe,function(){return tN(),null})):(s.callbackNode=null,s.callbackPriority=0),b=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||b){b=Q.T,Q.T=null,C=oe.p,oe.p=2,Y=zt,zt|=4;try{qG(s,u,p)}finally{zt=Y,oe.p=C,Q.T=b}}mr=1,XM(),QM(),JM()}}function XM(){if(mr===1){mr=0;var s=al,u=Jc,p=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||p){p=Q.T,Q.T=null;var b=oe.p;oe.p=2;var C=zt;zt|=4;try{NM(u,s);var M=yx,Y=uu(s.containerInfo),ie=M.focusedElem,me=M.selectionRange;if(Y!==ie&&ie&&ie.ownerDocument&&Nc(ie.ownerDocument.documentElement,ie)){if(me!==null&&cu(ie)){var Oe=me.start,Re=me.end;if(Re===void 0&&(Re=Oe),"selectionStart"in ie)ie.selectionStart=Oe,ie.selectionEnd=Math.min(Re,ie.value.length);else{var ke=ie.ownerDocument||document,Ee=ke&&ke.defaultView||window;if(Ee.getSelection){var Ce=Ee.getSelection(),pt=ie.textContent.length,ut=Math.min(me.start,pt),Yt=me.end===void 0?ut:Math.min(me.end,pt);!Ce.extend&&ut>Yt&&(Y=Yt,Yt=ut,ut=Y);var be=dh(ie,ut),ve=dh(ie,Yt);if(be&&ve&&(Ce.rangeCount!==1||Ce.anchorNode!==be.node||Ce.anchorOffset!==be.offset||Ce.focusNode!==ve.node||Ce.focusOffset!==ve.offset)){var xe=ke.createRange();xe.setStart(be.node,be.offset),Ce.removeAllRanges(),ut>Yt?(Ce.addRange(xe),Ce.extend(ve.node,ve.offset)):(xe.setEnd(ve.node,ve.offset),Ce.addRange(xe))}}}}for(ke=[],Ce=ie;Ce=Ce.parentNode;)Ce.nodeType===1&&ke.push({element:Ce,left:Ce.scrollLeft,top:Ce.scrollTop});for(typeof ie.focus=="function"&&ie.focus(),ie=0;ie<ke.length;ie++){var Ne=ke[ie];Ne.element.scrollLeft=Ne.left,Ne.element.scrollTop=Ne.top}}Ig=!!gx,yx=gx=null}finally{zt=C,oe.p=b,Q.T=p}}s.current=u,mr=2}}function QM(){if(mr===2){mr=0;var s=al,u=Jc,p=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||p){p=Q.T,Q.T=null;var b=oe.p;oe.p=2;var C=zt;zt|=4;try{jM(s,u.alternate,u)}finally{zt=C,oe.p=b,Q.T=p}}mr=3}}function JM(){if(mr===4||mr===3){mr=0,ge();var s=al,u=Jc,p=ef,b=BM;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?mr=5:(mr=0,Jc=al=null,eN(s,s.pendingLanes));var C=s.pendingLanes;if(C===0&&(il=null),hn(p),u=u.stateNode,Ie&&typeof Ie.onCommitFiberRoot=="function")try{Ie.onCommitFiberRoot(Le,u,void 0,(u.current.flags&128)===128)}catch{}if(b!==null){u=Q.T,C=oe.p,oe.p=2,Q.T=null;try{for(var M=s.onRecoverableError,Y=0;Y<b.length;Y++){var ie=b[Y];M(ie.value,{componentStack:ie.stack})}}finally{Q.T=u,oe.p=C}}(ef&3)!==0&&Eg(),Ga(s),C=s.pendingLanes,(p&4194090)!==0&&(C&42)!==0?s===rx?kh++:(kh=0,rx=s):kh=0,Ih(0)}}function eN(s,u){(s.pooledCacheLanes&=u)===0&&(u=s.pooledCache,u!=null&&(s.pooledCache=null,vh(u)))}function Eg(s){return XM(),QM(),JM(),tN()}function tN(){if(mr!==5)return!1;var s=al,u=tx;tx=0;var p=hn(ef),b=Q.T,C=oe.p;try{oe.p=32>p?32:p,Q.T=null,p=nx,nx=null;var M=al,Y=ef;if(mr=0,Jc=al=null,ef=0,(zt&6)!==0)throw Error(r(331));var ie=zt;if(zt|=4,$M(M.current),DM(M,M.current,Y,p),zt=ie,Ih(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot=="function")try{Ie.onPostCommitFiberRoot(Le,M)}catch{}return!0}finally{oe.p=C,Q.T=b,eN(s,u)}}function nN(s,u,p){u=Lr(p,u),u=D1(s.stateNode,u,2),s=Ks(s,u,2),s!==null&&(La(s,2),Ga(s))}function Xt(s,u,p){if(s.tag===3)nN(s,s,p);else for(;u!==null;){if(u.tag===3){nN(u,s,p);break}else if(u.tag===1){var b=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(il===null||!il.has(b))){s=Lr(p,s),p=oM(2),b=Ks(u,p,2),b!==null&&(sM(p,b,u,s),La(b,2),Ga(b));break}}u=u.return}}function sx(s,u,p){var b=s.pingCache;if(b===null){b=s.pingCache=new WG;var C=new Set;b.set(u,C)}else C=b.get(u),C===void 0&&(C=new Set,b.set(u,C));C.has(p)||(X1=!0,C.add(p),s=XG.bind(null,s,u,p),u.then(s,s))}function XG(s,u,p){var b=s.pingCache;b!==null&&b.delete(u),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,un===s&&(It&p)===p&&(Pn===4||Pn===3&&(It&62914560)===It&&300>je()-ex?(zt&2)===0&&tf(s,0):Q1|=p,Qc===It&&(Qc=0)),Ga(s)}function rN(s,u){u===0&&(u=oi()),s=qs(s,u),s!==null&&(La(s,u),Ga(s))}function QG(s){var u=s.memoizedState,p=0;u!==null&&(p=u.retryLane),rN(s,p)}function JG(s,u){var p=0;switch(s.tag){case 13:var b=s.stateNode,C=s.memoizedState;C!==null&&(p=C.retryLane);break;case 19:b=s.stateNode;break;case 22:b=s.stateNode._retryCache;break;default:throw Error(r(314))}b!==null&&b.delete(u),rN(s,p)}function eY(s,u){return pe(s,u)}var Tg=null,rf=null,lx=!1,Cg=!1,ux=!1,Eu=0;function Ga(s){s!==rf&&s.next===null&&(rf===null?Tg=rf=s:rf=rf.next=s),Cg=!0,lx||(lx=!0,nY())}function Ih(s,u){if(!ux&&Cg){ux=!0;do for(var p=!1,b=Tg;b!==null;){if(s!==0){var C=b.pendingLanes;if(C===0)var M=0;else{var Y=b.suspendedLanes,ie=b.pingedLanes;M=(1<<31-Ze(42|s)+1)-1,M&=C&~(Y&~ie),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(p=!0,sN(b,M))}else M=It,M=$n(b,b===un?M:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(M&3)===0||xr(b,M)||(p=!0,sN(b,M));b=b.next}while(p);ux=!1}}function tY(){iN()}function iN(){Cg=lx=!1;var s=0;Eu!==0&&(cY()&&(s=Eu),Eu=0);for(var u=je(),p=null,b=Tg;b!==null;){var C=b.next,M=aN(b,u);M===0?(b.next=null,p===null?Tg=C:p.next=C,C===null&&(rf=p)):(p=b,(s!==0||(M&3)!==0)&&(Cg=!0)),b=C}Ih(s)}function aN(s,u){for(var p=s.suspendedLanes,b=s.pingedLanes,C=s.expirationTimes,M=s.pendingLanes&-62914561;0<M;){var Y=31-Ze(M),ie=1<<Y,me=C[Y];me===-1?((ie&p)===0||(ie&b)!==0)&&(C[Y]=Vn(ie,u)):me<=u&&(s.expiredLanes|=ie),M&=~ie}if(u=un,p=It,p=$n(s,s===u?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),b=s.callbackNode,p===0||s===u&&(qt===2||qt===9)||s.cancelPendingCommit!==null)return b!==null&&b!==null&&Te(b),s.callbackNode=null,s.callbackPriority=0;if((p&3)===0||xr(s,p)){if(u=p&-p,u===s.callbackPriority)return u;switch(b!==null&&Te(b),hn(p)){case 2:case 8:p=Xe;break;case 32:p=qe;break;case 268435456:p=ye;break;default:p=qe}return b=oN.bind(null,s),p=pe(p,b),s.callbackPriority=u,s.callbackNode=p,u}return b!==null&&b!==null&&Te(b),s.callbackPriority=2,s.callbackNode=null,2}function oN(s,u){if(mr!==0&&mr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var p=s.callbackNode;if(Eg()&&s.callbackNode!==p)return null;var b=It;return b=$n(s,s===un?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),b===0?null:(zM(s,b,u),aN(s,je()),s.callbackNode!=null&&s.callbackNode===p?oN.bind(null,s):null)}function sN(s,u){if(Eg())return null;zM(s,u,!0)}function nY(){dY(function(){(zt&6)!==0?pe(Be,tY):iN()})}function cx(){return Eu===0&&(Eu=xs()),Eu}function lN(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Ps(""+s)}function uN(s,u){var p=u.ownerDocument.createElement("input");return p.name=u.name,p.value=u.value,s.id&&p.setAttribute("form",s.id),u.parentNode.insertBefore(p,u),s=new FormData(s),p.parentNode.removeChild(p),s}function rY(s,u,p,b,C){if(u==="submit"&&p&&p.stateNode===C){var M=lN((C[an]||null).action),Y=b.submitter;Y&&(u=(u=Y[an]||null)?lN(u.formAction):Y.getAttribute("formAction"),u!==null&&(M=u,Y=null));var ie=new iu("action","action",null,b,C);s.push({event:ie,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Eu!==0){var me=Y?uN(C,Y):new FormData(C);P1(p,{pending:!0,data:me,method:C.method,action:M},null,me)}}else typeof M=="function"&&(ie.preventDefault(),me=Y?uN(C,Y):new FormData(C),P1(p,{pending:!0,data:me,method:C.method,action:M},M,me))},currentTarget:C}]})}}for(var fx=0;fx<Mo.length;fx++){var dx=Mo[fx],iY=dx.toLowerCase(),aY=dx[0].toUpperCase()+dx.slice(1);di(iY,"on"+aY)}di(Hv,"onAnimationEnd"),di(fi,"onAnimationIteration"),di(fu,"onAnimationStart"),di("dblclick","onDoubleClick"),di("focusin","onFocus"),di("focusout","onBlur"),di(a1,"onTransitionRun"),di(Ic,"onTransitionStart"),di(o1,"onTransitionCancel"),di(hh,"onTransitionEnd"),_o("onMouseEnter",["mouseout","mouseover"]),_o("onMouseLeave",["mouseout","mouseover"]),_o("onPointerEnter",["pointerout","pointerover"]),_o("onPointerLeave",["pointerout","pointerover"]),bo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bo("onBeforeInput",["compositionend","keypress","textInput","paste"]),bo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $h="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(" "),oY=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($h));function cN(s,u){u=(u&4)!==0;for(var p=0;p<s.length;p++){var b=s[p],C=b.event;b=b.listeners;e:{var M=void 0;if(u)for(var Y=b.length-1;0<=Y;Y--){var ie=b[Y],me=ie.instance,Oe=ie.currentTarget;if(ie=ie.listener,me!==M&&C.isPropagationStopped())break e;M=ie,C.currentTarget=Oe;try{M(C)}catch(Re){pg(Re)}C.currentTarget=null,M=me}else for(Y=0;Y<b.length;Y++){if(ie=b[Y],me=ie.instance,Oe=ie.currentTarget,ie=ie.listener,me!==M&&C.isPropagationStopped())break e;M=ie,C.currentTarget=Oe;try{M(C)}catch(Re){pg(Re)}C.currentTarget=null,M=me}}}}function Pt(s,u){var p=u[Nn];p===void 0&&(p=u[Nn]=new Set);var b=s+"__bubble";p.has(b)||(fN(u,s,2,!1),p.add(b))}function hx(s,u,p){var b=0;u&&(b|=4),fN(p,s,b,u)}var Ag="_reactListening"+Math.random().toString(36).slice(2);function px(s){if(!s[Ag]){s[Ag]=!0,Ev.forEach(function(p){p!=="selectionchange"&&(oY.has(p)||hx(p,!1,s),hx(p,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[Ag]||(u[Ag]=!0,hx("selectionchange",!1,u))}}function fN(s,u,p,b){switch(DN(u)){case 2:var C=NY;break;case 8:C=LY;break;default:C=Ax}p=C.bind(null,u,p,s),C=void 0,!ru||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(C=!0),b?C!==void 0?s.addEventListener(u,p,{capture:!0,passive:C}):s.addEventListener(u,p,!0):C!==void 0?s.addEventListener(u,p,{passive:C}):s.addEventListener(u,p,!1)}function mx(s,u,p,b,C){var M=b;if((u&1)===0&&(u&2)===0&&b!==null)e:for(;;){if(b===null)return;var Y=b.tag;if(Y===3||Y===4){var ie=b.stateNode.containerInfo;if(ie===C)break;if(Y===4)for(Y=b.return;Y!==null;){var me=Y.tag;if((me===3||me===4)&&Y.stateNode.containerInfo===C)return;Y=Y.return}for(;ie!==null;){if(Y=ka(ie),Y===null)return;if(me=Y.tag,me===5||me===6||me===26||me===27){b=M=Y;continue e}ie=ie.parentNode}}b=b.return}si(function(){var Oe=M,Re=Rs(p),ke=[];e:{var Ee=Wv.get(s);if(Ee!==void 0){var Ce=iu,pt=s;switch(s){case"keypress":if(jn(p)===0)break e;case"keydown":case"keyup":Ce=X_;break;case"focusin":pt="focus",Ce=rh;break;case"focusout":pt="blur",Ce=rh;break;case"beforeblur":case"afterblur":Ce=rh;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ce=Ls;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ce=W_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ce=J_;break;case Hv:case fi:case fu:Ce=G_;break;case hh:Ce=e1;break;case"scroll":case"scrollend":Ce=H_;break;case"wheel":Ce=kv;break;case"copy":case"cut":case"paste":Ce=ih;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ce=oh;break;case"toggle":case"beforetoggle":Ce=Ao}var ut=(u&4)!==0,Yt=!ut&&(s==="scroll"||s==="scrollend"),be=ut?Ee!==null?Ee+"Capture":null:Ee;ut=[];for(var ve=Oe,xe;ve!==null;){var Ne=ve;if(xe=Ne.stateNode,Ne=Ne.tag,Ne!==5&&Ne!==26&&Ne!==27||xe===null||be===null||(Ne=$t(ve,be),Ne!=null&&ut.push(Uh(ve,Ne,xe))),Yt)break;ve=ve.return}0<ut.length&&(Ee=new Ce(Ee,pt,null,p,Re),ke.push({event:Ee,listeners:ut}))}}if((u&7)===0){e:{if(Ee=s==="mouseover"||s==="pointerover",Ce=s==="mouseout"||s==="pointerout",Ee&&p!==nu&&(pt=p.relatedTarget||p.fromElement)&&(ka(pt)||pt[Jn]))break e;if((Ce||Ee)&&(Ee=Re.window===Re?Re:(Ee=Re.ownerDocument)?Ee.defaultView||Ee.parentWindow:window,Ce?(pt=p.relatedTarget||p.toElement,Ce=Oe,pt=pt?ka(pt):null,pt!==null&&(Yt=a(pt),ut=pt.tag,pt!==Yt||ut!==5&&ut!==27&&ut!==6)&&(pt=null)):(Ce=null,pt=Oe),Ce!==pt)){if(ut=Ls,Ne="onMouseLeave",be="onMouseEnter",ve="mouse",(s==="pointerout"||s==="pointerover")&&(ut=oh,Ne="onPointerLeave",be="onPointerEnter",ve="pointer"),Yt=Ce==null?Ee:Li(Ce),xe=pt==null?Ee:Li(pt),Ee=new ut(Ne,ve+"leave",Ce,p,Re),Ee.target=Yt,Ee.relatedTarget=xe,Ne=null,ka(Re)===Oe&&(ut=new ut(be,ve+"enter",pt,p,Re),ut.target=xe,ut.relatedTarget=Yt,Ne=ut),Yt=Ne,Ce&&pt)t:{for(ut=Ce,be=pt,ve=0,xe=ut;xe;xe=af(xe))ve++;for(xe=0,Ne=be;Ne;Ne=af(Ne))xe++;for(;0<ve-xe;)ut=af(ut),ve--;for(;0<xe-ve;)be=af(be),xe--;for(;ve--;){if(ut===be||be!==null&&ut===be.alternate)break t;ut=af(ut),be=af(be)}ut=null}else ut=null;Ce!==null&&dN(ke,Ee,Ce,ut,!1),pt!==null&&Yt!==null&&dN(ke,Yt,pt,ut,!0)}}e:{if(Ee=Oe?Li(Oe):window,Ce=Ee.nodeName&&Ee.nodeName.toLowerCase(),Ce==="select"||Ce==="input"&&Ee.type==="file")var nt=Is;else if(Po(Ee))if(uh)nt=i1;else{nt=r1;var At=fh}else Ce=Ee.nodeName,!Ce||Ce.toLowerCase()!=="input"||Ee.type!=="checkbox"&&Ee.type!=="radio"?Oe&&tu(Oe.elementType)&&(nt=Is):nt=ua;if(nt&&(nt=nt(s,Oe))){Fv(ke,nt,p,Re);break e}At&&At(s,Ee,Oe),s==="focusout"&&Oe&&Ee.type==="number"&&Oe.memoizedProps.value!=null&&As(Ee,"number",Ee.value)}switch(At=Oe?Li(Oe):window,s){case"focusin":(Po(At)||At.contentEditable==="true")&&(ci=At,Bs=Oe,Ro=null);break;case"focusout":Ro=Bs=ci=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,qv(ke,p,Re);break;case"selectionchange":if(Lc)break;case"keydown":case"keyup":qv(ke,p,Re)}var st;if(jo)e:{switch(s){case"compositionstart":var dt="onCompositionStart";break e;case"compositionend":dt="onCompositionEnd";break e;case"compositionupdate":dt="onCompositionUpdate";break e}dt=void 0}else Ds?Rc(s,p)&&(dt="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(dt="onCompositionStart");dt&&(lh&&p.locale!=="ko"&&(Ds||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&Ds&&(st=Ns()):(Ii=Re,sa="value"in Ii?Ii.value:Ii.textContent,Ds=!0)),At=jg(Oe,dt),0<At.length&&(dt=new li(dt,s,null,p,Re),ke.push({event:dt,listeners:At}),st?dt.data=st:(st=Uv(p),st!==null&&(dt.data=st)))),(st=Iv?Bv(s,p):n1(s,p))&&(dt=jg(Oe,"onBeforeInput"),0<dt.length&&(At=new li("onBeforeInput","beforeinput",null,p,Re),ke.push({event:At,listeners:dt}),At.data=st)),rY(ke,s,Oe,p,Re)}cN(ke,u)})}function Uh(s,u,p){return{instance:s,listener:u,currentTarget:p}}function jg(s,u){for(var p=u+"Capture",b=[];s!==null;){var C=s,M=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||M===null||(C=$t(s,p),C!=null&&b.unshift(Uh(s,C,M)),C=$t(s,u),C!=null&&b.push(Uh(s,C,M))),s.tag===3)return b;s=s.return}return[]}function af(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function dN(s,u,p,b,C){for(var M=u._reactName,Y=[];p!==null&&p!==b;){var ie=p,me=ie.alternate,Oe=ie.stateNode;if(ie=ie.tag,me!==null&&me===b)break;ie!==5&&ie!==26&&ie!==27||Oe===null||(me=Oe,C?(Oe=$t(p,M),Oe!=null&&Y.unshift(Uh(p,Oe,me))):C||(Oe=$t(p,M),Oe!=null&&Y.push(Uh(p,Oe,me)))),p=p.return}Y.length!==0&&s.push({event:u,listeners:Y})}var sY=/\r\n?/g,lY=/\u0000|\uFFFD/g;function hN(s){return(typeof s=="string"?s:""+s).replace(sY,`
`).replace(lY,"")}function pN(s,u){return u=hN(u),hN(s)===u}function Pg(){}function Gt(s,u,p,b,C,M){switch(p){case"children":typeof b=="string"?u==="body"||u==="textarea"&&b===""||Di(s,b):(typeof b=="number"||typeof b=="bigint")&&u!=="body"&&Di(s,""+b);break;case"className":Oc(s,"class",b);break;case"tabIndex":Oc(s,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Oc(s,p,b);break;case"style":js(s,b,M);break;case"data":if(u!=="object"){Oc(s,"data",b);break}case"src":case"href":if(b===""&&(u!=="a"||p!=="href")){s.removeAttribute(p);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){s.removeAttribute(p);break}b=Ps(""+b),s.setAttribute(p,b);break;case"action":case"formAction":if(typeof b=="function"){s.setAttribute(p,"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 M=="function"&&(p==="formAction"?(u!=="input"&&Gt(s,u,"name",C.name,C,null),Gt(s,u,"formEncType",C.formEncType,C,null),Gt(s,u,"formMethod",C.formMethod,C,null),Gt(s,u,"formTarget",C.formTarget,C,null)):(Gt(s,u,"encType",C.encType,C,null),Gt(s,u,"method",C.method,C,null),Gt(s,u,"target",C.target,C,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){s.removeAttribute(p);break}b=Ps(""+b),s.setAttribute(p,b);break;case"onClick":b!=null&&(s.onclick=Pg);break;case"onScroll":b!=null&&Pt("scroll",s);break;case"onScrollEnd":b!=null&&Pt("scrollend",s);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(p=b.__html,p!=null){if(C.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"multiple":s.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":s.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){s.removeAttribute("xlink:href");break}p=Ps(""+b),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,""+b):s.removeAttribute(p);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":b&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,""):s.removeAttribute(p);break;case"capture":case"download":b===!0?s.setAttribute(p,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,b):s.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?s.setAttribute(p,b):s.removeAttribute(p);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?s.removeAttribute(p):s.setAttribute(p,b);break;case"popover":Pt("beforetoggle",s),Pt("toggle",s),wc(s,"popover",b);break;case"xlinkActuate":oa(s,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":oa(s,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":oa(s,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":oa(s,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":oa(s,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":oa(s,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":oa(s,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":oa(s,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":oa(s,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":wc(s,"is",b);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=eh.get(p)||p,wc(s,p,b))}}function vx(s,u,p,b,C,M){switch(p){case"style":js(s,b,M);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(p=b.__html,p!=null){if(C.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"children":typeof b=="string"?Di(s,b):(typeof b=="number"||typeof b=="bigint")&&Di(s,""+b);break;case"onScroll":b!=null&&Pt("scroll",s);break;case"onScrollEnd":b!=null&&Pt("scrollend",s);break;case"onClick":b!=null&&(s.onclick=Pg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tv.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(C=p.endsWith("Capture"),u=p.slice(2,C?p.length-7:void 0),M=s[an]||null,M=M!=null?M[p]:null,typeof M=="function"&&s.removeEventListener(u,M,C),typeof b=="function")){typeof M!="function"&&M!==null&&(p in s?s[p]=null:s.hasAttribute(p)&&s.removeAttribute(p)),s.addEventListener(u,b,C);break e}p in s?s[p]=b:b===!0?s.setAttribute(p,""):wc(s,p,b)}}}function vr(s,u,p){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pt("error",s),Pt("load",s);var b=!1,C=!1,M;for(M in p)if(p.hasOwnProperty(M)){var Y=p[M];if(Y!=null)switch(M){case"src":b=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Gt(s,u,M,Y,p,null)}}C&&Gt(s,u,"srcSet",p.srcSet,p,null),b&&Gt(s,u,"src",p.src,p,null);return;case"input":Pt("invalid",s);var ie=M=Y=C=null,me=null,Oe=null;for(b in p)if(p.hasOwnProperty(b)){var Re=p[b];if(Re!=null)switch(b){case"name":C=Re;break;case"type":Y=Re;break;case"checked":me=Re;break;case"defaultChecked":Oe=Re;break;case"value":M=Re;break;case"defaultValue":ie=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,u));break;default:Gt(s,u,b,Re,p,null)}}Av(s,M,ie,me,Oe,Y,C,!1),Cs(s);return;case"select":Pt("invalid",s),b=Y=M=null;for(C in p)if(p.hasOwnProperty(C)&&(ie=p[C],ie!=null))switch(C){case"value":M=ie;break;case"defaultValue":Y=ie;break;case"multiple":b=ie;default:Gt(s,u,C,ie,p,null)}u=M,p=Y,s.multiple=!!b,u!=null?Gr(s,!!b,u,!1):p!=null&&Gr(s,!!b,p,!0);return;case"textarea":Pt("invalid",s),M=C=b=null;for(Y in p)if(p.hasOwnProperty(Y)&&(ie=p[Y],ie!=null))switch(Y){case"value":b=ie;break;case"defaultValue":C=ie;break;case"children":M=ie;break;case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(91));break;default:Gt(s,u,Y,ie,p,null)}Ia(s,b,C,M),Cs(s);return;case"option":for(me in p)if(p.hasOwnProperty(me)&&(b=p[me],b!=null))switch(me){case"selected":s.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:Gt(s,u,me,b,p,null)}return;case"dialog":Pt("beforetoggle",s),Pt("toggle",s),Pt("cancel",s),Pt("close",s);break;case"iframe":case"object":Pt("load",s);break;case"video":case"audio":for(b=0;b<$h.length;b++)Pt($h[b],s);break;case"image":Pt("error",s),Pt("load",s);break;case"details":Pt("toggle",s);break;case"embed":case"source":case"link":Pt("error",s),Pt("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Oe in p)if(p.hasOwnProperty(Oe)&&(b=p[Oe],b!=null))switch(Oe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Gt(s,u,Oe,b,p,null)}return;default:if(tu(u)){for(Re in p)p.hasOwnProperty(Re)&&(b=p[Re],b!==void 0&&vx(s,u,Re,b,p,void 0));return}}for(ie in p)p.hasOwnProperty(ie)&&(b=p[ie],b!=null&&Gt(s,u,ie,b,p,null))}function uY(s,u,p,b){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,M=null,Y=null,ie=null,me=null,Oe=null,Re=null;for(Ce in p){var ke=p[Ce];if(p.hasOwnProperty(Ce)&&ke!=null)switch(Ce){case"checked":break;case"value":break;case"defaultValue":me=ke;default:b.hasOwnProperty(Ce)||Gt(s,u,Ce,null,b,ke)}}for(var Ee in b){var Ce=b[Ee];if(ke=p[Ee],b.hasOwnProperty(Ee)&&(Ce!=null||ke!=null))switch(Ee){case"type":M=Ce;break;case"name":C=Ce;break;case"checked":Oe=Ce;break;case"defaultChecked":Re=Ce;break;case"value":Y=Ce;break;case"defaultValue":ie=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(r(137,u));break;default:Ce!==ke&&Gt(s,u,Ee,Ce,b,ke)}}wr(s,Y,ie,me,Oe,Re,M,C);return;case"select":Ce=Y=ie=Ee=null;for(M in p)if(me=p[M],p.hasOwnProperty(M)&&me!=null)switch(M){case"value":break;case"multiple":Ce=me;default:b.hasOwnProperty(M)||Gt(s,u,M,null,b,me)}for(C in b)if(M=b[C],me=p[C],b.hasOwnProperty(C)&&(M!=null||me!=null))switch(C){case"value":Ee=M;break;case"defaultValue":ie=M;break;case"multiple":Y=M;default:M!==me&&Gt(s,u,C,M,b,me)}u=ie,p=Y,b=Ce,Ee!=null?Gr(s,!!p,Ee,!1):!!b!=!!p&&(u!=null?Gr(s,!!p,u,!0):Gr(s,!!p,p?[]:"",!1));return;case"textarea":Ce=Ee=null;for(ie in p)if(C=p[ie],p.hasOwnProperty(ie)&&C!=null&&!b.hasOwnProperty(ie))switch(ie){case"value":break;case"children":break;default:Gt(s,u,ie,null,b,C)}for(Y in b)if(C=b[Y],M=p[Y],b.hasOwnProperty(Y)&&(C!=null||M!=null))switch(Y){case"value":Ee=C;break;case"defaultValue":Ce=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:C!==M&&Gt(s,u,Y,C,b,M)}En(s,Ee,Ce);return;case"option":for(var pt in p)if(Ee=p[pt],p.hasOwnProperty(pt)&&Ee!=null&&!b.hasOwnProperty(pt))switch(pt){case"selected":s.selected=!1;break;default:Gt(s,u,pt,null,b,Ee)}for(me in b)if(Ee=b[me],Ce=p[me],b.hasOwnProperty(me)&&Ee!==Ce&&(Ee!=null||Ce!=null))switch(me){case"selected":s.selected=Ee&&typeof Ee!="function"&&typeof Ee!="symbol";break;default:Gt(s,u,me,Ee,b,Ce)}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 ut in p)Ee=p[ut],p.hasOwnProperty(ut)&&Ee!=null&&!b.hasOwnProperty(ut)&&Gt(s,u,ut,null,b,Ee);for(Oe in b)if(Ee=b[Oe],Ce=p[Oe],b.hasOwnProperty(Oe)&&Ee!==Ce&&(Ee!=null||Ce!=null))switch(Oe){case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,u));break;default:Gt(s,u,Oe,Ee,b,Ce)}return;default:if(tu(u)){for(var Yt in p)Ee=p[Yt],p.hasOwnProperty(Yt)&&Ee!==void 0&&!b.hasOwnProperty(Yt)&&vx(s,u,Yt,void 0,b,Ee);for(Re in b)Ee=b[Re],Ce=p[Re],!b.hasOwnProperty(Re)||Ee===Ce||Ee===void 0&&Ce===void 0||vx(s,u,Re,Ee,b,Ce);return}}for(var be in p)Ee=p[be],p.hasOwnProperty(be)&&Ee!=null&&!b.hasOwnProperty(be)&&Gt(s,u,be,null,b,Ee);for(ke in b)Ee=b[ke],Ce=p[ke],!b.hasOwnProperty(ke)||Ee===Ce||Ee==null&&Ce==null||Gt(s,u,ke,Ee,b,Ce)}var gx=null,yx=null;function Rg(s){return s.nodeType===9?s:s.ownerDocument}function mN(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vN(s,u){if(s===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&u==="foreignObject"?0:s}function bx(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var _x=null;function cY(){var s=window.event;return s&&s.type==="popstate"?s===_x?!1:(_x=s,!0):(_x=null,!1)}var gN=typeof setTimeout=="function"?setTimeout:void 0,fY=typeof clearTimeout=="function"?clearTimeout:void 0,yN=typeof Promise=="function"?Promise:void 0,dY=typeof queueMicrotask=="function"?queueMicrotask:typeof yN<"u"?function(s){return yN.resolve(null).then(s).catch(hY)}:gN;function hY(s){setTimeout(function(){throw s})}function sl(s){return s==="head"}function bN(s,u){var p=u,b=0,C=0;do{var M=p.nextSibling;if(s.removeChild(p),M&&M.nodeType===8)if(p=M.data,p==="/$"){if(0<b&&8>b){p=b;var Y=s.ownerDocument;if(p&1&&Bh(Y.documentElement),p&2&&Bh(Y.body),p&4)for(p=Y.head,Bh(p),Y=p.firstChild;Y;){var ie=Y.nextSibling,me=Y.nodeName;Y[Ss]||me==="SCRIPT"||me==="STYLE"||me==="LINK"&&Y.rel.toLowerCase()==="stylesheet"||p.removeChild(Y),Y=ie}}if(C===0){s.removeChild(M),Yh(u);return}C--}else p==="$"||p==="$?"||p==="$!"?C++:b=p.charCodeAt(0)-48;else b=0;p=M}while(p);Yh(u)}function xx(s){var u=s.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var p=u;switch(u=u.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":xx(p),xc(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}s.removeChild(p)}}function pY(s,u,p,b){for(;s.nodeType===1;){var C=p;if(s.nodeName.toLowerCase()!==u.toLowerCase()){if(!b&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(b){if(!s[Ss])switch(u){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(M=s.getAttribute("rel"),M==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(M!==C.rel||s.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||s.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||s.getAttribute("title")!==(C.title==null?null:C.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(M=s.getAttribute("src"),(M!==(C.src==null?null:C.src)||s.getAttribute("type")!==(C.type==null?null:C.type)||s.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&M&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(u==="input"&&s.type==="hidden"){var M=C.name==null?null:""+C.name;if(C.type==="hidden"&&s.getAttribute("name")===M)return s}else return s;if(s=ha(s.nextSibling),s===null)break}return null}function mY(s,u,p){if(u==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!p||(s=ha(s.nextSibling),s===null))return null;return s}function wx(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function vY(s,u){var p=s.ownerDocument;if(s.data!=="$?"||p.readyState==="complete")u();else{var b=function(){u(),p.removeEventListener("DOMContentLoaded",b)};p.addEventListener("DOMContentLoaded",b),s._reactRetry=b}}function ha(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?"||u==="F!"||u==="F")break;if(u==="/$")return null}}return s}var Ox=null;function _N(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(u===0)return s;u--}else p==="/$"&&u++}s=s.previousSibling}return null}function xN(s,u,p){switch(u=Rg(p),s){case"html":if(s=u.documentElement,!s)throw Error(r(452));return s;case"head":if(s=u.head,!s)throw Error(r(453));return s;case"body":if(s=u.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Bh(s){for(var u=s.attributes;u.length;)s.removeAttributeNode(u[0]);xc(s)}var Vi=new Map,wN=new Set;function Mg(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Vo=oe.d;oe.d={f:gY,r:yY,D:bY,C:_Y,L:xY,m:wY,X:SY,S:OY,M:EY};function gY(){var s=Vo.f(),u=Og();return s||u}function yY(s){var u=go(s);u!==null&&u.tag===5&&u.type==="form"?zR(u):Vo.r(s)}var of=typeof document>"u"?null:document;function ON(s,u,p){var b=of;if(b&&typeof u=="string"&&u){var C=dr(u);C='link[rel="'+s+'"][href="'+C+'"]',typeof p=="string"&&(C+='[crossorigin="'+p+'"]'),wN.has(C)||(wN.add(C),s={rel:s,crossOrigin:p,href:u},b.querySelector(C)===null&&(u=b.createElement("link"),vr(u,"link",s),Un(u),b.head.appendChild(u)))}}function bY(s){Vo.D(s),ON("dns-prefetch",s,null)}function _Y(s,u){Vo.C(s,u),ON("preconnect",s,u)}function xY(s,u,p){Vo.L(s,u,p);var b=of;if(b&&s&&u){var C='link[rel="preload"][as="'+dr(u)+'"]';u==="image"&&p&&p.imageSrcSet?(C+='[imagesrcset="'+dr(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(C+='[imagesizes="'+dr(p.imageSizes)+'"]')):C+='[href="'+dr(s)+'"]';var M=C;switch(u){case"style":M=sf(s);break;case"script":M=lf(s)}Vi.has(M)||(s=h({rel:"preload",href:u==="image"&&p&&p.imageSrcSet?void 0:s,as:u},p),Vi.set(M,s),b.querySelector(C)!==null||u==="style"&&b.querySelector(Fh(M))||u==="script"&&b.querySelector(zh(M))||(u=b.createElement("link"),vr(u,"link",s),Un(u),b.head.appendChild(u)))}}function wY(s,u){Vo.m(s,u);var p=of;if(p&&s){var b=u&&typeof u.as=="string"?u.as:"script",C='link[rel="modulepreload"][as="'+dr(b)+'"][href="'+dr(s)+'"]',M=C;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=lf(s)}if(!Vi.has(M)&&(s=h({rel:"modulepreload",href:s},u),Vi.set(M,s),p.querySelector(C)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(zh(M)))return}b=p.createElement("link"),vr(b,"link",s),Un(b),p.head.appendChild(b)}}}function OY(s,u,p){Vo.S(s,u,p);var b=of;if(b&&s){var C=yo(b).hoistableStyles,M=sf(s);u=u||"default";var Y=C.get(M);if(!Y){var ie={loading:0,preload:null};if(Y=b.querySelector(Fh(M)))ie.loading=5;else{s=h({rel:"stylesheet",href:s,"data-precedence":u},p),(p=Vi.get(M))&&Sx(s,p);var me=Y=b.createElement("link");Un(me),vr(me,"link",s),me._p=new Promise(function(Oe,Re){me.onload=Oe,me.onerror=Re}),me.addEventListener("load",function(){ie.loading|=1}),me.addEventListener("error",function(){ie.loading|=2}),ie.loading|=4,Ng(Y,u,b)}Y={type:"stylesheet",instance:Y,count:1,state:ie},C.set(M,Y)}}}function SY(s,u){Vo.X(s,u);var p=of;if(p&&s){var b=yo(p).hoistableScripts,C=lf(s),M=b.get(C);M||(M=p.querySelector(zh(C)),M||(s=h({src:s,async:!0},u),(u=Vi.get(C))&&Ex(s,u),M=p.createElement("script"),Un(M),vr(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},b.set(C,M))}}function EY(s,u){Vo.M(s,u);var p=of;if(p&&s){var b=yo(p).hoistableScripts,C=lf(s),M=b.get(C);M||(M=p.querySelector(zh(C)),M||(s=h({src:s,async:!0,type:"module"},u),(u=Vi.get(C))&&Ex(s,u),M=p.createElement("script"),Un(M),vr(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},b.set(C,M))}}function SN(s,u,p,b){var C=(C=de.current)?Mg(C):null;if(!C)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(u=sf(p.href),p=yo(C).hoistableStyles,b=p.get(u),b||(b={type:"style",instance:null,count:0,state:null},p.set(u,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=sf(p.href);var M=yo(C).hoistableStyles,Y=M.get(s);if(Y||(C=C.ownerDocument||C,Y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(s,Y),(M=C.querySelector(Fh(s)))&&!M._p&&(Y.instance=M,Y.state.loading=5),Vi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Vi.set(s,p),M||TY(C,s,p,Y.state))),u&&b===null)throw Error(r(528,""));return Y}if(u&&b!==null)throw Error(r(529,""));return null;case"script":return u=p.async,p=p.src,typeof p=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=lf(p),p=yo(C).hoistableScripts,b=p.get(u),b||(b={type:"script",instance:null,count:0,state:null},p.set(u,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function sf(s){return'href="'+dr(s)+'"'}function Fh(s){return'link[rel="stylesheet"]['+s+"]"}function EN(s){return h({},s,{"data-precedence":s.precedence,precedence:null})}function TY(s,u,p,b){s.querySelector('link[rel="preload"][as="style"]['+u+"]")?b.loading=1:(u=s.createElement("link"),b.preload=u,u.addEventListener("load",function(){return b.loading|=1}),u.addEventListener("error",function(){return b.loading|=2}),vr(u,"link",p),Un(u),s.head.appendChild(u))}function lf(s){return'[src="'+dr(s)+'"]'}function zh(s){return"script[async]"+s}function TN(s,u,p){if(u.count++,u.instance===null)switch(u.type){case"style":var b=s.querySelector('style[data-href~="'+dr(p.href)+'"]');if(b)return u.instance=b,Un(b),b;var C=h({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return b=(s.ownerDocument||s).createElement("style"),Un(b),vr(b,"style",C),Ng(b,p.precedence,s),u.instance=b;case"stylesheet":C=sf(p.href);var M=s.querySelector(Fh(C));if(M)return u.state.loading|=4,u.instance=M,Un(M),M;b=EN(p),(C=Vi.get(C))&&Sx(b,C),M=(s.ownerDocument||s).createElement("link"),Un(M);var Y=M;return Y._p=new Promise(function(ie,me){Y.onload=ie,Y.onerror=me}),vr(M,"link",b),u.state.loading|=4,Ng(M,p.precedence,s),u.instance=M;case"script":return M=lf(p.src),(C=s.querySelector(zh(M)))?(u.instance=C,Un(C),C):(b=p,(C=Vi.get(M))&&(b=h({},p),Ex(b,C)),s=s.ownerDocument||s,C=s.createElement("script"),Un(C),vr(C,"link",b),s.head.appendChild(C),u.instance=C);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(b=u.instance,u.state.loading|=4,Ng(b,p.precedence,s));return u.instance}function Ng(s,u,p){for(var b=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=b.length?b[b.length-1]:null,M=C,Y=0;Y<b.length;Y++){var ie=b[Y];if(ie.dataset.precedence===u)M=ie;else if(M!==C)break}M?M.parentNode.insertBefore(s,M.nextSibling):(u=p.nodeType===9?p.head:p,u.insertBefore(s,u.firstChild))}function Sx(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.title==null&&(s.title=u.title)}function Ex(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.integrity==null&&(s.integrity=u.integrity)}var Lg=null;function CN(s,u,p){if(Lg===null){var b=new Map,C=Lg=new Map;C.set(p,b)}else C=Lg,b=C.get(p),b||(b=new Map,C.set(p,b));if(b.has(s))return b;for(b.set(s,null),p=p.getElementsByTagName(s),C=0;C<p.length;C++){var M=p[C];if(!(M[Ss]||M[Nt]||s==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var Y=M.getAttribute(u)||"";Y=s+Y;var ie=b.get(Y);ie?ie.push(M):b.set(Y,[M])}}return b}function AN(s,u,p){s=s.ownerDocument||s,s.head.insertBefore(p,u==="title"?s.querySelector("head > title"):null)}function CY(s,u,p){if(p===1||u.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return s=u.disabled,typeof u.precedence=="string"&&s==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function jN(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var qh=null;function AY(){}function jY(s,u,p){if(qh===null)throw Error(r(475));var b=qh;if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var C=sf(p.href),M=s.querySelector(Fh(C));if(M){s=M._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(b.count++,b=Dg.bind(b),s.then(b,b)),u.state.loading|=4,u.instance=M,Un(M);return}M=s.ownerDocument||s,p=EN(p),(C=Vi.get(C))&&Sx(p,C),M=M.createElement("link"),Un(M);var Y=M;Y._p=new Promise(function(ie,me){Y.onload=ie,Y.onerror=me}),vr(M,"link",p),u.instance=M}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(b.count++,u=Dg.bind(b),s.addEventListener("load",u),s.addEventListener("error",u))}}function PY(){if(qh===null)throw Error(r(475));var s=qh;return s.stylesheets&&s.count===0&&Tx(s,s.stylesheets),0<s.count?function(u){var p=setTimeout(function(){if(s.stylesheets&&Tx(s,s.stylesheets),s.unsuspend){var b=s.unsuspend;s.unsuspend=null,b()}},6e4);return s.unsuspend=u,function(){s.unsuspend=null,clearTimeout(p)}}:null}function Dg(){if(this.count--,this.count===0){if(this.stylesheets)Tx(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var kg=null;function Tx(s,u){s.stylesheets=null,s.unsuspend!==null&&(s.count++,kg=new Map,u.forEach(RY,s),kg=null,Dg.call(s))}function RY(s,u){if(!(u.state.loading&4)){var p=kg.get(s);if(p)var b=p.get(null);else{p=new Map,kg.set(s,p);for(var C=s.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<C.length;M++){var Y=C[M];(Y.nodeName==="LINK"||Y.getAttribute("media")!=="not all")&&(p.set(Y.dataset.precedence,Y),b=Y)}b&&p.set(null,b)}C=u.instance,Y=C.getAttribute("data-precedence"),M=p.get(Y)||b,M===b&&p.set(null,C),p.set(Y,C),this.count++,b=Dg.bind(this),C.addEventListener("load",b),C.addEventListener("error",b),M?M.parentNode.insertBefore(C,M.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(C,s.firstChild)),u.state.loading|=4}}var Vh={$$typeof:A,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function MY(s,u,p,b,C,M,Y,ie){this.tag=1,this.containerInfo=s,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=ws(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ws(0),this.hiddenUpdates=ws(null),this.identifierPrefix=b,this.onUncaughtError=C,this.onCaughtError=M,this.onRecoverableError=Y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ie,this.incompleteTransitions=new Map}function PN(s,u,p,b,C,M,Y,ie,me,Oe,Re,ke){return s=new MY(s,u,p,Y,ie,me,Oe,ke),u=1,M===!0&&(u|=24),M=kr(3,null,null,u),s.current=M,M.stateNode=s,u=s1(),u.refCount++,s.pooledCache=u,u.refCount++,M.memoizedState={element:b,isDehydrated:p,cache:u},f1(M),s}function RN(s){return s?(s=Do,s):Do}function MN(s,u,p,b,C,M){C=RN(C),b.context===null?b.context=C:b.pendingContext=C,b=Ys(u),b.payload={element:p},M=M===void 0?null:M,M!==null&&(b.callback=M),p=Ks(s,b,u),p!==null&&(yi(p,s,u),_h(p,s,u))}function NN(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<u?p:u}}function Cx(s,u){NN(s,u),(s=s.alternate)&&NN(s,u)}function LN(s){if(s.tag===13){var u=qs(s,67108864);u!==null&&yi(u,s,67108864),Cx(s,67108864)}}var Ig=!0;function NY(s,u,p,b){var C=Q.T;Q.T=null;var M=oe.p;try{oe.p=2,Ax(s,u,p,b)}finally{oe.p=M,Q.T=C}}function LY(s,u,p,b){var C=Q.T;Q.T=null;var M=oe.p;try{oe.p=8,Ax(s,u,p,b)}finally{oe.p=M,Q.T=C}}function Ax(s,u,p,b){if(Ig){var C=jx(b);if(C===null)mx(s,u,b,$g,p),kN(s,b);else if(kY(C,s,u,p,b))b.stopPropagation();else if(kN(s,b),u&4&&-1<DY.indexOf(s)){for(;C!==null;){var M=go(C);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var Y=nn(M.pendingLanes);if(Y!==0){var ie=M;for(ie.pendingLanes|=2,ie.entangledLanes|=2;Y;){var me=1<<31-Ze(Y);ie.entanglements[1]|=me,Y&=~me}Ga(M),(zt&6)===0&&(xg=je()+500,Ih(0))}}break;case 13:ie=qs(M,2),ie!==null&&yi(ie,M,2),Og(),Cx(M,2)}if(M=jx(b),M===null&&mx(s,u,b,$g,p),M===C)break;C=M}C!==null&&b.stopPropagation()}else mx(s,u,b,null,p)}}function jx(s){return s=Rs(s),Px(s)}var $g=null;function Px(s){if($g=null,s=ka(s),s!==null){var u=a(s);if(u===null)s=null;else{var p=u.tag;if(p===13){if(s=o(u),s!==null)return s;s=null}else if(p===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null)}}return $g=s,null}function DN(s){switch(s){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(Me()){case Be:return 2;case Xe:return 8;case qe:case Ye:return 32;case ye:return 268435456;default:return 32}default:return 32}}var Rx=!1,ll=null,ul=null,cl=null,Hh=new Map,Wh=new Map,fl=[],DY="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 kN(s,u){switch(s){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":ul=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":Hh.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wh.delete(u.pointerId)}}function Gh(s,u,p,b,C,M){return s===null||s.nativeEvent!==M?(s={blockedOn:u,domEventName:p,eventSystemFlags:b,nativeEvent:M,targetContainers:[C]},u!==null&&(u=go(u),u!==null&&LN(u)),s):(s.eventSystemFlags|=b,u=s.targetContainers,C!==null&&u.indexOf(C)===-1&&u.push(C),s)}function kY(s,u,p,b,C){switch(u){case"focusin":return ll=Gh(ll,s,u,p,b,C),!0;case"dragenter":return ul=Gh(ul,s,u,p,b,C),!0;case"mouseover":return cl=Gh(cl,s,u,p,b,C),!0;case"pointerover":var M=C.pointerId;return Hh.set(M,Gh(Hh.get(M)||null,s,u,p,b,C)),!0;case"gotpointercapture":return M=C.pointerId,Wh.set(M,Gh(Wh.get(M)||null,s,u,p,b,C)),!0}return!1}function IN(s){var u=ka(s.target);if(u!==null){var p=a(u);if(p!==null){if(u=p.tag,u===13){if(u=o(p),u!==null){s.blockedOn=u,Hn(s.priority,function(){if(p.tag===13){var b=gi();b=gn(b);var C=qs(p,b);C!==null&&yi(C,p,b),Cx(p,b)}});return}}else if(u===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Ug(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var p=jx(s.nativeEvent);if(p===null){p=s.nativeEvent;var b=new p.constructor(p.type,p);nu=b,p.target.dispatchEvent(b),nu=null}else return u=go(p),u!==null&&LN(u),s.blockedOn=p,!1;u.shift()}return!0}function $N(s,u,p){Ug(s)&&p.delete(u)}function IY(){Rx=!1,ll!==null&&Ug(ll)&&(ll=null),ul!==null&&Ug(ul)&&(ul=null),cl!==null&&Ug(cl)&&(cl=null),Hh.forEach($N),Wh.forEach($N)}function Bg(s,u){s.blockedOn===u&&(s.blockedOn=null,Rx||(Rx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,IY)))}var Fg=null;function UN(s){Fg!==s&&(Fg=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Fg===s&&(Fg=null);for(var u=0;u<s.length;u+=3){var p=s[u],b=s[u+1],C=s[u+2];if(typeof b!="function"){if(Px(b||p)===null)continue;break}var M=go(p);M!==null&&(s.splice(u,3),u-=3,P1(M,{pending:!0,data:C,method:p.method,action:b},b,C))}}))}function Yh(s){function u(me){return Bg(me,s)}ll!==null&&Bg(ll,s),ul!==null&&Bg(ul,s),cl!==null&&Bg(cl,s),Hh.forEach(u),Wh.forEach(u);for(var p=0;p<fl.length;p++){var b=fl[p];b.blockedOn===s&&(b.blockedOn=null)}for(;0<fl.length&&(p=fl[0],p.blockedOn===null);)IN(p),p.blockedOn===null&&fl.shift();if(p=(s.ownerDocument||s).$$reactFormReplay,p!=null)for(b=0;b<p.length;b+=3){var C=p[b],M=p[b+1],Y=C[an]||null;if(typeof M=="function")Y||UN(p);else if(Y){var ie=null;if(M&&M.hasAttribute("formAction")){if(C=M,Y=M[an]||null)ie=Y.formAction;else if(Px(C)!==null)continue}else ie=Y.action;typeof ie=="function"?p[b+1]=ie:(p.splice(b,3),b-=3),UN(p)}}}function Mx(s){this._internalRoot=s}zg.prototype.render=Mx.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(r(409));var p=u.current,b=gi();MN(p,b,s,u,null,null)},zg.prototype.unmount=Mx.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;MN(s.current,2,null,s,null,null),Og(),u[Jn]=null}};function zg(s){this._internalRoot=s}zg.prototype.unstable_scheduleHydration=function(s){if(s){var u=Qn();s={blockedOn:null,target:s,priority:u};for(var p=0;p<fl.length&&u!==0&&u<fl[p].priority;p++);fl.splice(p,0,s),p===0&&IN(s)}};var BN=t.version;if(BN!=="19.1.0")throw Error(r(527,BN,"19.1.0"));oe.findDOMNode=function(s){var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=f(u),s=s!==null?c(s):null,s=s===null?null:s.stateNode,s};var $Y={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qg.isDisabled&&qg.supportsFiber)try{Le=qg.inject($Y),Ie=qg}catch{}}return Zh.createRoot=function(s,u){if(!i(s))throw Error(r(299));var p=!1,b="",C=nM,M=rM,Y=iM,ie=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(C=u.onUncaughtError),u.onCaughtError!==void 0&&(M=u.onCaughtError),u.onRecoverableError!==void 0&&(Y=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(ie=u.unstable_transitionCallbacks)),u=PN(s,1,!1,null,null,p,b,C,M,Y,ie,null),s[Jn]=u.current,px(s),new Mx(u)},Zh.hydrateRoot=function(s,u,p){if(!i(s))throw Error(r(299));var b=!1,C="",M=nM,Y=rM,ie=iM,me=null,Oe=null;return p!=null&&(p.unstable_strictMode===!0&&(b=!0),p.identifierPrefix!==void 0&&(C=p.identifierPrefix),p.onUncaughtError!==void 0&&(M=p.onUncaughtError),p.onCaughtError!==void 0&&(Y=p.onCaughtError),p.onRecoverableError!==void 0&&(ie=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(me=p.unstable_transitionCallbacks),p.formState!==void 0&&(Oe=p.formState)),u=PN(s,1,!0,u,p??null,b,C,M,Y,ie,me,Oe),u.context=RN(null),p=u.current,b=gi(),b=gn(b),C=Ys(b),C.callback=null,Ks(p,C,b),p=b,u.current.lanes=p,La(u,p),Ga(u),s[Jn]=u.current,px(s),new zg(u)},Zh.version="19.1.0",Zh}var ZN;function KY(){if(ZN)return Lx.exports;ZN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Lx.exports=YY(),Lx.exports}var ZY=KY(),I=j0();const J=Dt(I);var Ux={exports:{}},Bx={};/**
* @license React
* use-sync-external-store-with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var XN;function XY(){if(XN)return Bx;XN=1;var e=j0();function t(f,c){return f===c&&(f!==0||1/f===1/c)||f!==f&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;return Bx.useSyncExternalStoreWithSelector=function(f,c,h,m,g){var x=i(null);if(x.current===null){var _={hasValue:!1,value:null};x.current=_}else _=x.current;x=o(function(){function O(P){if(!S){if(S=!0,T=P,P=m(P),g!==void 0&&_.hasValue){var R=_.value;if(g(R,P))return A=R}return A=P}if(R=A,n(T,P))return R;var D=m(P);return g!==void 0&&g(R,D)?(T=P,R):(T=P,A=D)}var S=!1,T,A,j=h===void 0?null:h;return[function(){return O(c())},j===null?void 0:function(){return O(j())}]},[c,h,m,g]);var w=r(f,x[0],x[1]);return a(function(){_.hasValue=!0,_.value=w},[w]),l(w),w},Bx}var QN;function QY(){return QN||(QN=1,Ux.exports=XY()),Ux.exports}QY();var JY=I.version.startsWith("19"),eK=Symbol.for(JY?"react.transitional.element":"react.element"),tK=Symbol.for("react.portal"),nK=Symbol.for("react.fragment"),rK=Symbol.for("react.strict_mode"),iK=Symbol.for("react.profiler"),aK=Symbol.for("react.consumer"),oK=Symbol.for("react.context"),mU=Symbol.for("react.forward_ref"),sK=Symbol.for("react.suspense"),lK=Symbol.for("react.suspense_list"),oj=Symbol.for("react.memo"),uK=Symbol.for("react.lazy"),cK=mU,fK=oj;function dK(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case eK:switch(e=e.type,e){case nK:case iK:case rK:case sK:case lK:return e;default:switch(e=e&&e.$$typeof,e){case oK:case mU:case uK:case oj:return e;case aK:return e;default:return t}}case tK:return t}}}function hK(e){return dK(e)===oj}function pK(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let l=!1,f,c,h,m,g;function x(T,A){return f=T,c=A,h=e(f,c),m=t(r,c),g=n(h,m,c),l=!0,g}function _(){return h=e(f,c),t.dependsOnOwnProps&&(m=t(r,c)),g=n(h,m,c),g}function w(){return e.dependsOnOwnProps&&(h=e(f,c)),t.dependsOnOwnProps&&(m=t(r,c)),g=n(h,m,c),g}function O(){const T=e(f,c),A=!o(T,h);return h=T,A&&(g=n(h,m,c)),g}function S(T,A){const j=!a(A,c),P=!i(T,f,A,c);return f=T,c=A,j&&P?_():j?w():P?O():g}return function(A,j){return l?S(A,j):x(A,j)}}function mK(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const a=t(e,i),o=n(e,i),l=r(e,i);return pK(a,o,l,e,i)}function vK(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...a)=>t(i(...a)))}return n}function jE(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function JN(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function vU(e,t){return function(r,{displayName:i}){const a=function(l,f){return a.dependsOnOwnProps?a.mapToProps(l,f):a.mapToProps(l,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,f){a.mapToProps=e,a.dependsOnOwnProps=JN(e);let c=a(l,f);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=JN(c),c=a(l,f)),c},a}}function sj(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function gK(e){return e&&typeof e=="object"?jE(t=>vK(e,t)):e?typeof e=="function"?vU(e):sj(e,"mapDispatchToProps"):jE(t=>({dispatch:t}))}function yK(e){return e?typeof e=="function"?vU(e):sj(e,"mapStateToProps"):jE(()=>({}))}function bK(e,t,n){return{...n,...e,...t}}function _K(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let a=!1,o;return function(f,c,h){const m=e(f,c,h);return a?i(m,o)||(o=m):(a=!0,o=m),o}}}function xK(e){return e?typeof e=="function"?_K(e):sj(e,"mergeProps"):()=>bK}function wK(e){e()}function OK(){let e=null,t=null;return{clear(){e=null,t=null},notify(){wK(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var e4={notify(){},get:()=>[]};function gU(e,t){let n,r=e4,i=0,a=!1;function o(w){h();const O=r.subscribe(w);let S=!1;return()=>{S||(S=!0,O(),m())}}function l(){r.notify()}function f(){_.onStateChange&&_.onStateChange()}function c(){return a}function h(){i++,n||(n=t?t.addNestedSub(f):e.subscribe(f),r=OK())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=e4)}function g(){a||(a=!0,h())}function x(){a&&(a=!1,m())}const _={addNestedSub:o,notifyNestedSubs:l,handleChangeWrapper:f,isSubscribed:c,trySubscribe:g,tryUnsubscribe:x,getListeners:()=>r};return _}var SK=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",EK=SK(),TK=()=>typeof navigator<"u"&&navigator.product==="ReactNative",CK=TK(),AK=()=>EK||CK?I.useLayoutEffect:I.useEffect,Ly=AK();function t4(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Fx(e,t){if(t4(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!t4(e[n[i]],t[n[i]]))return!1;return!0}var jK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},PK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},RK={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yU={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MK={[cK]:RK,[fK]:yU};function n4(e){return hK(e)?yU:MK[e.$$typeof]||jK}var NK=Object.defineProperty,LK=Object.getOwnPropertyNames,r4=Object.getOwnPropertySymbols,DK=Object.getOwnPropertyDescriptor,kK=Object.getPrototypeOf,i4=Object.prototype;function PE(e,t){if(typeof t!="string"){if(i4){const a=kK(t);a&&a!==i4&&PE(e,a)}let n=LK(t);r4&&(n=n.concat(r4(t)));const r=n4(e),i=n4(t);for(let a=0;a<n.length;++a){const o=n[a];if(!PK[o]&&!(i&&i[o])&&!(r&&r[o])){const l=DK(t,o);try{NK(e,o,l)}catch{}}}}return e}var zx=Symbol.for("react-redux-context"),qx=typeof globalThis<"u"?globalThis:{};function IK(){if(!I.createContext)return{};const e=qx[zx]??(qx[zx]=new Map);let t=e.get(I.createContext);return t||(t=I.createContext(null),e.set(I.createContext,t)),t}var bU=IK(),$K=[null,null];function UK(e,t,n){Ly(()=>e(...t),n)}function BK(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function FK(e,t,n,r,i,a,o,l,f,c,h){if(!e)return()=>{};let m=!1,g=null;const x=()=>{if(m||!l.current)return;const w=t.getState();let O,S;try{O=r(w,i.current)}catch(T){S=T,g=T}S||(g=null),O===a.current?o.current||c():(a.current=O,f.current=O,o.current=!0,h())};return n.onStateChange=x,n.trySubscribe(),x(),()=>{if(m=!0,n.tryUnsubscribe(),n.onStateChange=null,g)throw g}}function zK(e,t){return e===t}function qK(e,t,n,{pure:r,areStatesEqual:i=zK,areOwnPropsEqual:a=Fx,areStatePropsEqual:o=Fx,areMergedPropsEqual:l=Fx,forwardRef:f=!1,context:c=bU}={}){const h=c,m=yK(e),g=gK(t),x=xK(n),_=!!e;return O=>{const S=O.displayName||O.name||"Component",T=`Connect(${S})`,A={shouldHandleStateChanges:_,displayName:T,wrappedComponentName:S,WrappedComponent:O,initMapStateToProps:m,initMapDispatchToProps:g,initMergeProps:x,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:l};function j(D){const[U,z,F]=I.useMemo(()=>{const{reactReduxForwardedRef:ae,...pe}=D;return[D.context,ae,pe]},[D]),V=I.useMemo(()=>{let ae=h;return U!=null&&U.Consumer,ae},[U,h]),H=I.useContext(V),te=!!D.store&&!!D.store.getState&&!!D.store.dispatch,ee=!!H&&!!H.store,re=te?D.store:H.store,Q=ee?H.getServerState:re.getState,oe=I.useMemo(()=>mK(re.dispatch,A),[re]),[le,X]=I.useMemo(()=>{if(!_)return $K;const ae=gU(re,te?void 0:H.subscription),pe=ae.notifyNestedSubs.bind(ae);return[ae,pe]},[re,te,H]),$=I.useMemo(()=>te?H:{...H,subscription:le},[te,H,le]),G=I.useRef(void 0),se=I.useRef(F),Z=I.useRef(void 0),ue=I.useRef(!1),fe=I.useRef(!1),de=I.useRef(void 0);Ly(()=>(fe.current=!0,()=>{fe.current=!1}),[]);const Se=I.useMemo(()=>()=>Z.current&&F===se.current?Z.current:oe(re.getState(),F),[re,F]),k=I.useMemo(()=>pe=>le?FK(_,re,le,oe,se,G,ue,fe,Z,X,pe):()=>{},[le]);UK(BK,[se,G,ue,F,Z,X]);let B;try{B=I.useSyncExternalStore(k,Se,Q?()=>oe(Q(),F):Se)}catch(ae){throw de.current&&(ae.message+=`
The error may be correlated with this previous error:
${de.current.stack}
`),ae}Ly(()=>{de.current=void 0,Z.current=void 0,G.current=B});const K=I.useMemo(()=>I.createElement(O,{...B,ref:z}),[z,O,B]);return I.useMemo(()=>_?I.createElement(V.Provider,{value:$},K):K,[V,K,$])}const R=I.memo(j);if(R.WrappedComponent=O,R.displayName=j.displayName=T,f){const U=I.forwardRef(function(F,V){return I.createElement(R,{...F,reactReduxForwardedRef:V})});return U.displayName=T,U.WrappedComponent=O,PE(U,O)}return PE(R,O)}}var _U=qK;function VK(e){const{children:t,context:n,serverState:r,store:i}=e,a=I.useMemo(()=>{const f=gU(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),o=I.useMemo(()=>i.getState(),[i]);Ly(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),o!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,o]);const l=n||bU;return I.createElement(l.Provider,{value:a},t)}var xU=VK,Xh={},a4;function HK(){if(a4)return Xh;a4=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.parse=o,Xh.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function o(g,x){const _=new a,w=g.length;if(w<2)return _;const O=(x==null?void 0:x.decode)||h;let S=0;do{const T=g.indexOf("=",S);if(T===-1)break;const A=g.indexOf(";",S),j=A===-1?w:A;if(T>j){S=g.lastIndexOf(";",T-1)+1;continue}const P=l(g,S,T),R=f(g,T,P),D=g.slice(P,R);if(_[D]===void 0){let U=l(g,T+1,j),z=f(g,j,U);const F=O(g.slice(U,z));_[D]=F}S=j+1}while(S<w);return _}function l(g,x,_){do{const w=g.charCodeAt(x);if(w!==32&&w!==9)return x}while(++x<_);return _}function f(g,x,_){for(;x>_;){const w=g.charCodeAt(--x);if(w!==32&&w!==9)return x+1}return _}function c(g,x,_){const w=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const O=w(x);if(!t.test(O))throw new TypeError(`argument val is invalid: ${x}`);let S=g+"="+O;if(!_)return S;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);S+="; Max-Age="+_.maxAge}if(_.domain){if(!n.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);S+="; Domain="+_.domain}if(_.path){if(!r.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);S+="; Path="+_.path}if(_.expires){if(!m(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);S+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(S+="; HttpOnly"),_.secure&&(S+="; Secure"),_.partitioned&&(S+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return S}function h(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function m(g){return i.call(g)==="[object Date]"}return Xh}HK();/**
* react-router v7.4.1
*
* 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 o4="popstate";function WK(e={}){function t(r,i){let{pathname:a,search:o,hash:l}=r.location;return RE("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Wp(i)}return YK(t,n,null,e)}function xn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Oa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GK(){return Math.random().toString(36).substring(2,10)}function s4(e,t){return{usr:e.state,key:e.key,idx:t}}function RE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Pd(t):t,state:n,key:t&&t.key||r||GK()}}function Wp({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 Pd(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 YK(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",f=null,c=h();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function h(){return(o.state||{idx:null}).idx}function m(){l="POP";let O=h(),S=O==null?null:O-c;c=O,f&&f({action:l,location:w.location,delta:S})}function g(O,S){l="PUSH";let T=RE(w.location,O,S);c=h()+1;let A=s4(T,c),j=w.createHref(T);try{o.pushState(A,"",j)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(j)}a&&f&&f({action:l,location:w.location,delta:1})}function x(O,S){l="REPLACE";let T=RE(w.location,O,S);c=h();let A=s4(T,c),j=w.createHref(T);o.replaceState(A,"",j),a&&f&&f({action:l,location:w.location,delta:0})}function _(O){let S=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof O=="string"?O:Wp(O);return T=T.replace(/ $/,"%20"),xn(S,`No window.location.(origin|href) available to create URL for href: ${T}`),new URL(T,S)}let w={get action(){return l},get location(){return e(i,o)},listen(O){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(o4,m),f=O,()=>{i.removeEventListener(o4,m),f=null}},createHref(O){return t(i,O)},createURL:_,encodeLocation(O){let S=_(O);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:x,go(O){return o.go(O)}};return w}function wU(e,t,n="/"){return KK(e,t,n,!1)}function KK(e,t,n,r){let i=typeof t=="string"?Pd(t):t,a=ns(i.pathname||"/",n);if(a==null)return null;let o=OU(e);ZK(o);let l=null;for(let f=0;l==null&&f<o.length;++f){let c=sZ(a);l=aZ(o[f],c,r)}return l}function OU(e,t=[],n=[],r=""){let i=(a,o,l)=>{let f={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};f.relativePath.startsWith("/")&&(xn(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 c=Xo([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(xn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),OU(a.children,t,h,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:rZ(c,a.index),routesMeta:h})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let f of SU(a.path))i(a,o,f)}),t}function SU(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=SU(r.join("/")),l=[];return l.push(...o.map(f=>f===""?a:[a,f].join("/"))),i&&l.push(...o),l.map(f=>e.startsWith("/")&&f===""?"/":f)}function ZK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iZ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var XK=/^:[\w-]+$/,QK=3,JK=2,eZ=1,tZ=10,nZ=-2,l4=e=>e==="*";function rZ(e,t){let n=e.split("/"),r=n.length;return n.some(l4)&&(r+=nZ),t&&(r+=JK),n.filter(i=>!l4(i)).reduce((i,a)=>i+(XK.test(a)?QK:a===""?eZ:tZ),r)}function iZ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function aZ(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l<r.length;++l){let f=r[l],c=l===r.length-1,h=a==="/"?t:t.slice(a.length)||"/",m=Dy({path:f.relativePath,caseSensitive:f.caseSensitive,end:c},h),g=f.route;if(!m&&c&&n&&!r[r.length-1].route.index&&(m=Dy({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!m)return null;Object.assign(i,m.params),o.push({params:i,pathname:Xo([a,m.pathname]),pathnameBase:fZ(Xo([a,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(a=Xo([a,m.pathnameBase]))}return o}function Dy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=oZ(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((c,{paramName:h,isOptional:m},g)=>{if(h==="*"){let _=l[g]||"";o=a.slice(0,a.length-_.length).replace(/(.)\/+$/,"$1")}const x=l[g];return m&&!x?c[h]=void 0:c[h]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function oZ(e,t=!1,n=!0){Oa(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,f)=>(r.push({paramName:l,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function sZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Oa(!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 ns(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function lZ(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Pd(e):e;return{pathname:n?n.startsWith("/")?n:uZ(n,t):t,search:dZ(r),hash:hZ(i)}}function uZ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Vx(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 cZ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lj(e){let t=cZ(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function uj(e,t,n,r=!1){let i;typeof e=="string"?i=Pd(e):(i={...e},xn(!i.pathname||!i.pathname.includes("?"),Vx("?","pathname","search",i)),xn(!i.pathname||!i.pathname.includes("#"),Vx("#","pathname","hash",i)),xn(!i.search||!i.search.includes("#"),Vx("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),m-=1;i.pathname=g.join("/")}l=m>=0?t[m]:"/"}let f=lZ(i,l),c=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(c||h)&&(f.pathname+="/"),f}var Xo=e=>e.join("/").replace(/\/\/+/g,"/"),fZ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dZ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pZ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var EU=["POST","PUT","PATCH","DELETE"];new Set(EU);var mZ=["GET",...EU];new Set(mZ);var Rd=I.createContext(null);Rd.displayName="DataRouter";var P0=I.createContext(null);P0.displayName="DataRouterState";var TU=I.createContext({isTransitioning:!1});TU.displayName="ViewTransition";var vZ=I.createContext(new Map);vZ.displayName="Fetchers";var gZ=I.createContext(null);gZ.displayName="Await";var Ta=I.createContext(null);Ta.displayName="Navigation";var Wm=I.createContext(null);Wm.displayName="Location";var Ca=I.createContext({outlet:null,matches:[],isDataRoute:!1});Ca.displayName="Route";var cj=I.createContext(null);cj.displayName="RouteError";function yZ(e,{relative:t}={}){xn(dc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=I.useContext(Ta),{hash:i,pathname:a,search:o}=Gm(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:Xo([n,a])),r.createHref({pathname:l,search:o,hash:i})}function dc(){return I.useContext(Wm)!=null}function Pr(){return xn(dc(),"useLocation() may be used only in the context of a <Router> component."),I.useContext(Wm).location}var CU="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function AU(e){I.useContext(Ta).static||I.useLayoutEffect(e)}function ho(){let{isDataRoute:e}=I.useContext(Ca);return e?RZ():bZ()}function bZ(){xn(dc(),"useNavigate() may be used only in the context of a <Router> component.");let e=I.useContext(Rd),{basename:t,navigator:n}=I.useContext(Ta),{matches:r}=I.useContext(Ca),{pathname:i}=Pr(),a=JSON.stringify(lj(r)),o=I.useRef(!1);return AU(()=>{o.current=!0}),I.useCallback((f,c={})=>{if(Oa(o.current,CU),!o.current)return;if(typeof f=="number"){n.go(f);return}let h=uj(f,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Xo([t,h.pathname])),(c.replace?n.replace:n.push)(h,c.state,c)},[t,n,a,i,e])}I.createContext(null);function Md(){let{matches:e}=I.useContext(Ca),t=e[e.length-1];return t?t.params:{}}function Gm(e,{relative:t}={}){let{matches:n}=I.useContext(Ca),{pathname:r}=Pr(),i=JSON.stringify(lj(n));return I.useMemo(()=>uj(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function _Z(e,t){return jU(e,t)}function jU(e,t,n,r){var T;xn(dc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:a}=I.useContext(Ta),{matches:o}=I.useContext(Ca),l=o[o.length-1],f=l?l.params:{},c=l?l.pathname:"/",h=l?l.pathnameBase:"/",m=l&&l.route;{let A=m&&m.path||"";PU(c,!m||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let g=Pr(),x;if(t){let A=typeof t=="string"?Pd(t):t;xn(h==="/"||((T=A.pathname)==null?void 0:T.startsWith(h)),`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 "${h}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=g;let _=x.pathname||"/",w=_;if(h!=="/"){let A=h.replace(/^\//,"").split("/");w="/"+_.replace(/^\//,"").split("/").slice(A.length).join("/")}let O=!a&&n&&n.matches&&n.matches.length>0?n.matches:wU(e,{pathname:w});Oa(m||O!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Oa(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 S=EZ(O&&O.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:Xo([h,i.encodeLocation?i.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?h:Xo([h,i.encodeLocation?i.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),o,n,r);return t&&S?I.createElement(Wm.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},S):S}function xZ(){let e=PZ(),t=pZ(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)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:a},"ErrorBoundary")," or"," ",I.createElement("code",{style:a},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,o)}var wZ=I.createElement(xZ,null),OZ=class extends I.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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?I.createElement(Ca.Provider,{value:this.props.routeContext},I.createElement(cj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function SZ({routeContext:e,match:t,children:n}){let r=I.useContext(Rd);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(Ca.Provider,{value:e},n)}function EZ(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let f=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);xn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let o=!1,l=-1;if(n)for(let f=0;f<i.length;f++){let c=i[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=f),c.route.id){let{loaderData:h,errors:m}=n,g=c.route.loader&&!h.hasOwnProperty(c.route.id)&&(!m||m[c.route.id]===void 0);if(c.route.lazy||g){o=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,c,h)=>{let m,g=!1,x=null,_=null;n&&(m=a&&c.route.id?a[c.route.id]:void 0,x=c.route.errorElement||wZ,o&&(l<0&&h===0?(PU("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,_=null):l===h&&(g=!0,_=c.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,h+1)),O=()=>{let S;return m?S=x:g?S=_:c.route.Component?S=I.createElement(c.route.Component,null):c.route.element?S=c.route.element:S=f,I.createElement(SZ,{match:c,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:S})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?I.createElement(OZ,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:O(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):O()},null)}function fj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TZ(e){let t=I.useContext(Rd);return xn(t,fj(e)),t}function CZ(e){let t=I.useContext(P0);return xn(t,fj(e)),t}function AZ(e){let t=I.useContext(Ca);return xn(t,fj(e)),t}function dj(e){let t=AZ(e),n=t.matches[t.matches.length-1];return xn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function jZ(){return dj("useRouteId")}function PZ(){var r;let e=I.useContext(cj),t=CZ("useRouteError"),n=dj("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function RZ(){let{router:e}=TZ("useNavigate"),t=dj("useNavigate"),n=I.useRef(!1);return AU(()=>{n.current=!0}),I.useCallback(async(i,a={})=>{Oa(n.current,CU),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var u4={};function PU(e,t,n){!t&&!u4[e]&&(u4[e]=!0,Oa(!1,n))}I.memo(MZ);function MZ({routes:e,future:t,state:n}){return jU(e,void 0,n,t)}function hj({to:e,replace:t,state:n,relative:r}){xn(dc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=I.useContext(Ta);Oa(!i,"<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:a}=I.useContext(Ca),{pathname:o}=Pr(),l=ho(),f=uj(e,lj(a),o,r==="path"),c=JSON.stringify(f);return I.useEffect(()=>{l(JSON.parse(c),{replace:t,state:n,relative:r})},[l,c,r,t,n]),null}function xt(e){xn(!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 NZ({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){xn(!dc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=I.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=Pd(n));let{pathname:f="/",search:c="",hash:h="",state:m=null,key:g="default"}=n,x=I.useMemo(()=>{let _=ns(f,o);return _==null?null:{location:{pathname:_,search:c,hash:h,state:m,key:g},navigationType:r}},[o,f,c,h,m,g,r]);return Oa(x!=null,`<Router basename="${o}"> is not able to match the URL "${f}${c}${h}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:I.createElement(Ta.Provider,{value:l},I.createElement(Wm.Provider,{children:t,value:x}))}function R0({children:e,location:t}){return _Z(ME(e),t)}function ME(e,t=[]){let n=[];return I.Children.forEach(e,(r,i)=>{if(!I.isValidElement(r))return;let a=[...t,i];if(r.type===I.Fragment){n.push.apply(n,ME(r.props.children,a));return}xn(r.type===xt,`[${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>`),xn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=ME(r.props.children,a)),n.push(o)}),n}var _y="get",xy="application/x-www-form-urlencoded";function M0(e){return e!=null&&typeof e.tagName=="string"}function LZ(e){return M0(e)&&e.tagName.toLowerCase()==="button"}function DZ(e){return M0(e)&&e.tagName.toLowerCase()==="form"}function kZ(e){return M0(e)&&e.tagName.toLowerCase()==="input"}function IZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $Z(e,t){return e.button===0&&(!t||t==="_self")&&!IZ(e)}var Hg=null;function UZ(){if(Hg===null)try{new FormData(document.createElement("form"),0),Hg=!1}catch{Hg=!0}return Hg}var BZ=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hx(e){return e!=null&&!BZ.has(e)?(Oa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xy}"`),null):e}function FZ(e,t){let n,r,i,a,o;if(DZ(e)){let l=e.getAttribute("action");r=l?ns(l,t):null,n=e.getAttribute("method")||_y,i=Hx(e.getAttribute("enctype"))||xy,a=new FormData(e)}else if(LZ(e)||kZ(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||l.getAttribute("action");if(r=f?ns(f,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||_y,i=Hx(e.getAttribute("formenctype"))||Hx(l.getAttribute("enctype"))||xy,a=new FormData(l,e),!UZ()){let{name:c,type:h,value:m}=e;if(h==="image"){let g=c?`${c}.`:"";a.append(`${g}x`,"0"),a.append(`${g}y`,"0")}else c&&a.append(c,m)}}else{if(M0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=_y,r=null,i=xy,o=e}return a&&i==="text/plain"&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function pj(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function zZ(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 qZ(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 VZ(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let o=await zZ(a,n);return o.links?o.links():[]}return[]}));return YZ(r.flat(1).filter(qZ).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function c4(e,t,n,r,i,a){let o=(f,c)=>n[c]?f.route.id!==n[c].route.id:!0,l=(f,c)=>{var h;return n[c].pathname!==f.pathname||((h=n[c].route.path)==null?void 0:h.endsWith("*"))&&n[c].params["*"]!==f.params["*"]};return a==="assets"?t.filter((f,c)=>o(f,c)||l(f,c)):a==="data"?t.filter((f,c)=>{var m;let h=r.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(o(f,c)||l(f,c))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function HZ(e,t,{includeHydrateFallback:n}={}){return WZ(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function WZ(e){return[...new Set(e)]}function GZ(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function YZ(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(GZ(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function KZ(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&ns(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function RU(){let e=I.useContext(Rd);return pj(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ZZ(){let e=I.useContext(P0);return pj(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mj=I.createContext(void 0);mj.displayName="FrameworkContext";function MU(){let e=I.useContext(mj);return pj(e,"You must render this element inside a <HydratedRouter> element"),e}function XZ(e,t){let n=I.useContext(mj),[r,i]=I.useState(!1),[a,o]=I.useState(!1),{onFocus:l,onBlur:f,onMouseEnter:c,onMouseLeave:h,onTouchStart:m}=t,g=I.useRef(null);I.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let w=S=>{S.forEach(T=>{o(T.isIntersecting)})},O=new IntersectionObserver(w,{threshold:.5});return g.current&&O.observe(g.current),()=>{O.disconnect()}}},[e]),I.useEffect(()=>{if(r){let w=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(w)}}},[r]);let x=()=>{i(!0)},_=()=>{i(!1),o(!1)};return n?e!=="intent"?[a,g,{}]:[a,g,{onFocus:Qh(l,x),onBlur:Qh(f,_),onMouseEnter:Qh(c,x),onMouseLeave:Qh(h,_),onTouchStart:Qh(m,x)}]:[!1,g,{}]}function Qh(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function QZ({page:e,...t}){let{router:n}=RU(),r=I.useMemo(()=>wU(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?I.createElement(eX,{page:e,matches:r,...t}):null}function JZ(e){let{manifest:t,routeModules:n}=MU(),[r,i]=I.useState([]);return I.useEffect(()=>{let a=!1;return VZ(e,t,n).then(o=>{a||i(o)}),()=>{a=!0}},[e,t,n]),r}function eX({page:e,matches:t,...n}){let r=Pr(),{manifest:i,routeModules:a}=MU(),{basename:o}=RU(),{loaderData:l,matches:f}=ZZ(),c=I.useMemo(()=>c4(e,t,f,i,r,"data"),[e,t,f,i,r]),h=I.useMemo(()=>c4(e,t,f,i,r,"assets"),[e,t,f,i,r]),m=I.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let _=new Set,w=!1;if(t.forEach(S=>{var A;let T=i.routes[S.route.id];!T||!T.hasLoader||(!c.some(j=>j.route.id===S.route.id)&&S.route.id in l&&((A=a[S.route.id])!=null&&A.shouldRevalidate)||T.hasClientLoader?w=!0:_.add(S.route.id))}),_.size===0)return[];let O=KZ(e,o);return w&&_.size>0&&O.searchParams.set("_routes",t.filter(S=>_.has(S.route.id)).map(S=>S.route.id).join(",")),[O.pathname+O.search]},[o,l,r,i,c,t,e,a]),g=I.useMemo(()=>HZ(h,i),[h,i]),x=JZ(h);return I.createElement(I.Fragment,null,m.map(_=>I.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),g.map(_=>I.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),x.map(({key:_,link:w})=>I.createElement("link",{key:_,...w})))}function tX(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var NU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{NU&&(window.__reactRouterVersion="7.4.1")}catch{}function LU({basename:e,children:t,window:n}){let r=I.useRef();r.current==null&&(r.current=WK({window:n,v5Compat:!0}));let i=r.current,[a,o]=I.useState({action:i.action,location:i.location}),l=I.useCallback(f=>{I.startTransition(()=>o(f))},[o]);return I.useLayoutEffect(()=>i.listen(l),[i,l]),I.createElement(NZ,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var DU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tn=I.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:o,state:l,target:f,to:c,preventScrollReset:h,viewTransition:m,...g},x){let{basename:_}=I.useContext(Ta),w=typeof c=="string"&&DU.test(c),O,S=!1;if(typeof c=="string"&&w&&(O=c,NU))try{let z=new URL(window.location.href),F=c.startsWith("//")?new URL(z.protocol+c):new URL(c),V=ns(F.pathname,_);F.origin===z.origin&&V!=null?c=V+F.search+F.hash:S=!0}catch{Oa(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=yZ(c,{relative:i}),[A,j,P]=XZ(r,g),R=iX(c,{replace:o,state:l,target:f,preventScrollReset:h,relative:i,viewTransition:m});function D(z){t&&t(z),z.defaultPrevented||R(z)}let U=I.createElement("a",{...g,...P,href:O||T,onClick:S||a?t:D,ref:tX(x,j),target:f,"data-discover":!w&&n==="render"?"true":void 0});return A&&!w?I.createElement(I.Fragment,null,U,I.createElement(QZ,{page:T})):U});tn.displayName="Link";var vj=I.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:o,viewTransition:l,children:f,...c},h){let m=Gm(o,{relative:c.relative}),g=Pr(),x=I.useContext(P0),{navigator:_,basename:w}=I.useContext(Ta),O=x!=null&&uX(m)&&l===!0,S=_.encodeLocation?_.encodeLocation(m).pathname:m.pathname,T=g.pathname,A=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(T=T.toLowerCase(),A=A?A.toLowerCase():null,S=S.toLowerCase()),A&&w&&(A=ns(A,w)||A);const j=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let P=T===S||!i&&T.startsWith(S)&&T.charAt(j)==="/",R=A!=null&&(A===S||!i&&A.startsWith(S)&&A.charAt(S.length)==="/"),D={isActive:P,isPending:R,isTransitioning:O},U=P?t:void 0,z;typeof r=="function"?z=r(D):z=[r,P?"active":null,R?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let F=typeof a=="function"?a(D):a;return I.createElement(tn,{...c,"aria-current":U,className:z,ref:h,style:F,to:o,viewTransition:l},typeof f=="function"?f(D):f)});vj.displayName="NavLink";var nX=I.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=_y,action:l,onSubmit:f,relative:c,preventScrollReset:h,viewTransition:m,...g},x)=>{let _=sX(),w=lX(l,{relative:c}),O=o.toLowerCase()==="get"?"get":"post",S=typeof l=="string"&&DU.test(l),T=A=>{if(f&&f(A),A.defaultPrevented)return;A.preventDefault();let j=A.nativeEvent.submitter,P=(j==null?void 0:j.getAttribute("formmethod"))||o;_(j||A.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:i,state:a,relative:c,preventScrollReset:h,viewTransition:m})};return I.createElement("form",{ref:x,method:O,action:w,onSubmit:r?f:T,...g,"data-discover":!S&&e==="render"?"true":void 0})});nX.displayName="Form";function rX(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kU(e){let t=I.useContext(Rd);return xn(t,rX(e)),t}function iX(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o}={}){let l=ho(),f=Pr(),c=Gm(e,{relative:a});return I.useCallback(h=>{if($Z(h,t)){h.preventDefault();let m=n!==void 0?n:Wp(f)===Wp(c);l(e,{replace:m,state:r,preventScrollReset:i,relative:a,viewTransition:o})}},[f,l,c,n,r,t,e,i,a,o])}var aX=0,oX=()=>`__${String(++aX)}__`;function sX(){let{router:e}=kU("useSubmit"),{basename:t}=I.useContext(Ta),n=jZ();return I.useCallback(async(r,i={})=>{let{action:a,method:o,encType:l,formData:f,body:c}=FZ(r,t);if(i.navigate===!1){let h=i.fetcherKey||oX();await e.fetch(h,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||o,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:f,body:c,formMethod:i.method||o,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function lX(e,{relative:t}={}){let{basename:n}=I.useContext(Ta),r=I.useContext(Ca);xn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...Gm(e||".",{relative:t})},o=Pr();if(e==null){a.search=o.search;let l=new URLSearchParams(a.search),f=l.getAll("index");if(f.some(h=>h==="")){l.delete("index"),f.filter(m=>m).forEach(m=>l.append("index",m));let h=l.toString();a.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Xo([n,a.pathname])),Wp(a)}function uX(e,t={}){let n=I.useContext(TU);xn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=kU("useViewTransitionState"),i=Gm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=ns(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ns(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Dy(i.pathname,o)!=null||Dy(i.pathname,a)!=null}new TextEncoder;const cX="/shlink-web-client/dependabot/npm_and_yarn/react-549425c6c9",ky={homepage:cX};var Sa,oo=".",IU="function",$U="string",UU="__global__",gj="Provider",fX=0,yj=Array.prototype.slice,dX=function(t,n){var r=t[n];if(r===void 0&&Sa.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},N0=function(t){var n;return this.nested[t]||(n=Sa.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},BU=function(t){return t.split(oo).reduce(dX,this)},hX=function(t,n,r,i){var a={configurable:!0,enumerable:!0};return t.length?a.get=function(){var l=0,f=function(h){if(h)throw h;t[l]&&t[l++](r,f)};return f(),r}:(a.value=r,a.writable=!0),Object.defineProperty(i,n,a),i[n]},pX=function(t,n){var r,i;return typeof t===IU&&(n=t,t=UU),r=t.split(oo),i=r.shift(),r.length?N0.call(this,i).middleware(r.join(oo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},mX=function(t,n){return n(t)},f4=function(t,n){return(t[n]||[]).concat(t.__global__||[])},vX=function(t,n){var r,i,a,o,l;return this.id,a=this.container,o=this.decorators,l=this.middlewares,r=t+gj,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete a[r],a[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=a[r],h;return c&&(h=f4(o,t).reduce(mX,c.$get(a)),delete a[r],delete a[t]),h===void 0?h:hX(f4(l,t),t,h,a)}},Object.defineProperties(a,i),this},FU=function(t,n){var r,i;return r=t.split(oo),this.providerMap[t]&&r.length===1&&!this.container[t+gj]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(N0.call(this,i).provider(r.join(oo),n),this):vX.call(this,i,n))},bj=function(t,n){return FU.call(this,t,function(){this.$get=n})},zU=function(t,n,r){var i=arguments.length>3?yj.call(arguments,3):[],a=this;return bj.call(this,t,function(){var l=n,f=i.map(BU,a.container);return r?new(n.bind.apply(n,[null].concat(f))):l.apply(null,f)})},gX=function(t,n){return zU.apply(this,[t,n,!0].concat(yj.call(arguments,2)))},yX=function(t,n){return zU.apply(this,[t,n,!1].concat(yj.call(arguments,2)))},qU=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},VU=function(t,n){var r=t[n];return r||(r={},qU.call(t,n,r)),r},bX=function(t,n){var r;return r=t.split(oo),t=r.pop(),qU.call(r.reduce(VU,this.container),t,n),this},_X=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},xX=function(t,n){var r=t.split(oo);return t=r.pop(),_X.call(r.reduce(VU,this.container),t,n),this},HU=function(t,n){var r,i;return typeof t===IU&&(n=t,t=UU),r=t.split(oo),i=r.shift(),r.length?N0.call(this,i).decorator(r.join(oo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},wX=function(t){return this.deferred.push(t),this},OX=function(t){return(t||[]).map(BU,this.container)},SX=function(t,n){return bj.call(this,t,function(i){return{instance:n.bind(n,i)}})},EX=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},_j=function(t){return Object.keys(t||this.container||{}).filter(EX)},Iy={},TX=function(t){var n;return typeof t===$U?(n=Iy[t],n||(Iy[t]=n=new Sa,n.constant("BOTTLE_NAME",t)),n):new Sa},CX=function(t){typeof t===$U?delete Iy[t]:Iy={}},WU=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},d4=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+gj]},AX=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(a){if(!(r&&t.indexOf(a)===-1)){var o=a.split(oo);o.length>1&&o.forEach(d4,N0.call(this,o[0])),d4.call(this,a),this.provider(a,n[a])}},this)},jX=function(t){return this.deferred.forEach(function(r){r(t)}),this};Sa=function e(t){if(!(this instanceof e))return e.pop(t);this.id=fX++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:HU.bind(this),$register:WU.bind(this),$list:_j.bind(this)}};Sa.prototype={constant:xX,decorator:HU,defer:wX,digest:OX,factory:bj,instanceFactory:SX,list:_j,middleware:pX,provider:FU,resetProviders:AX,register:WU,resolve:jX,service:gX,serviceFactory:yX,value:bX};Sa.pop=TX;Sa.clear=CX;Sa.list=_j;Sa.config={strict:!1};const GU=Sa;var YU=e=>{throw TypeError(e)},KU=(e,t,n)=>t.has(e)||YU("Cannot "+n),cf=(e,t,n)=>(KU(e,t,"read from private field"),n?n.call(e):t.get(e)),Wx=(e,t,n)=>t.has(e)?YU("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Gx=(e,t,n,r)=>(KU(e,t,"write to private field"),t.set(e,n),n);const PX=(e,t)=>`${e}/rest/v${t}`,RX=e=>e.dir?`${e.field}-${e.dir}`:void 0,MX=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:RX(e)}),NX=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),a=i.length?`/${i.join("/")}`:"";return`${n}://${t}${a}`},LX=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};var wy,mp,wf;let DX=class{constructor(t,n){Wx(this,wy),Wx(this,mp),Wx(this,wf),Gx(this,mp,t),Gx(this,wf,n),Gx(this,wy,3)}async listShortUrls({signal:t,...n}={}){return this.performRequest({url:"/short-urls",query:MX(n),signal:t}).then(({shortUrls:r})=>r)}async createShortUrl({signal:t,...n}){const r=Object.entries(n).reduce((i,[a,o])=>(o&&(i[a]=o),i),{});return this.performRequest({url:"/short-urls",method:"POST",body:r,signal:t})}async getShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n},signal:r})}async deleteShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n},signal:r})}async updateShortUrl({shortCode:t,domain:n},{signal:r,...i}){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:i,signal:r})}async getShortUrlRedirectRules({shortCode:t,domain:n},{signal:r}={}){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n},signal:r})}async setShortUrlRedirectRules({shortCode:t,domain:n},{signal:r,...i}){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:i,signal:r})}async getVisitsOverview({signal:t}={}){return this.performRequest({url:"/visits",signal:t}).then(({visits:n})=>n)}async getShortUrlVisits({shortCode:t,domain:n},{signal:r,...i}={}){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:{...i,domain:n},signal:r})}async getTagVisits(t,{signal:n,...r}={}){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:r,signal:n})}async getDomainVisits(t,{signal:n,...r}={}){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:r,signal:n})}async getOrphanVisits({signal:t,...n}={}){return this.performVisitsRequest({url:"/visits/orphan",query:n,signal:t})}async getNonOrphanVisits({signal:t,...n}={}){return this.performVisitsRequest({url:"/visits/non-orphan",query:n,signal:t})}async performVisitsRequest(t){return this.performRequest(t).then(({visits:n})=>n)}async deleteShortUrlVisits({shortCode:t,domain:n},{signal:r}={}){const i=n?{domain:n}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:i,signal:r})}async deleteOrphanVisits({signal:t}={}){return this.performRequest({method:"DELETE",url:"/visits/orphan",signal:t})}async listTags({signal:t}={}){return this.performRequest({url:"/tags",signal:t}).then(({tags:n})=>n)}async tagsStats({signal:t}={}){return this.performRequest({url:"/tags/stats",signal:t}).then(({tags:n})=>n)}async deleteTags(t,{signal:n}={}){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t},signal:n}).then(()=>({tags:t}))}async editTag({oldName:t,newName:n},{signal:r}={}){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n},signal:r}).then(()=>({oldName:t,newName:n}))}async listDomains({signal:t}={}){return this.performRequest({url:"/domains",signal:t}).then(({domains:n})=>n)}async editDomainRedirects(t,{signal:n}={}){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t,signal:n})}async health({domain:t,signal:n}={}){return this.performRequest({url:"/health",domain:t,signal:n})}async mercureInfo({signal:t}={}){return this.performRequest({url:"/mercure-info",signal:t})}async performRequest(t){return cf(this,mp).jsonRequest(...this.toFetchParams(t))}async performEmptyRequest(t){return cf(this,mp).emptyRequest(...this.toFetchParams(t))}toFetchParams({url:t,method:n="GET",query:r={},body:i,domain:a,signal:o}){const l=LX(r),f=l?`?${l}`:"",c=a?NX(cf(this,wf).baseUrl,a):cf(this,wf).baseUrl;return[`${PX(c,cf(this,wy))}${t}${f}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":cf(this,wf).apiKey},signal:o}]}};wy=new WeakMap,mp=new WeakMap,wf=new WeakMap;const ZU=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Cp=e=>!!(e!=null&&e.id),xj=e=>!!(e!=null&&e.version),kX=e=>!!(e!=null&&e.serverNotFound),IX=e=>Cp(e)?e.id:"",$X=({name:e,url:t,apiKey:n})=>({name:e,url:t,apiKey:n}),h4={},UX=e=>typeof e=="function",BX=e=>{const{selectedServer:t}=e();if(!ZU(t))throw new Error("There's no selected server or it is not found");return t},FX=e=>t=>{const{url:n,apiKey:r}=UX(t)?BX(t):t,i=`${r}_${n}`,a=h4[i]??new DX(e,{apiKey:r,baseUrl:n});return h4[i]=a,a},zX=e=>{e.serviceFactory("buildShlinkApiClient",FX,"HttpClient")};/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const qX={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},VX={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},HX={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},WX=HX,GX={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},wj=GX,YX={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},KX={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},XU=KX,QU={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},ZX={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},Oj={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},XX={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},QX=XX,JX={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},Sj=JX,eQ={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},tQ={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},nQ={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},p4={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},rQ={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},iQ=rQ,aQ={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},NE=aQ,oQ={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},sQ={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},lQ={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"]},uQ=lQ,Ej={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},L0={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},JU={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},m4={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},cQ={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},fQ={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},dQ={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},hQ=dQ,pQ={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},mQ={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Tj=mQ,Cj={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},vQ=Cj,gQ={prefix:"fas",iconName:"grip-vertical",icon:[320,512,[],"f58e","M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]},yQ={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},bQ={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},_Q=bQ,xQ={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},wQ=xQ,OQ={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},SQ=OQ,EQ={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},eB=EQ,TQ={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},CQ={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},AQ={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},jQ={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},PQ=jQ,RQ={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},MQ={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Ym={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},tB={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},LE=tB,NQ={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},LQ={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"]},DQ=LQ,v4={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},nB={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},kQ=nB,IQ={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},$Q={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},UQ={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},BQ={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},FQ={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},Gp={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},rB={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M246.6 150.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L352 109.3 352 384c0 35.3 28.7 64 64 64l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64l-114.7 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L109.3 256 224 256c23.3 0 45.2 6.2 64 17.1l0-163.9-41.4 41.4z"]},zQ={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},qQ=zQ;/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/function VQ(e,t,n){return(t=WQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?g4(Object(n),!0).forEach(function(r){VQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HQ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WQ(e){var t=HQ(e,"string");return typeof t=="symbol"?t:t+""}const y4=()=>{};let Aj={},iB={},aB=null,oB={mark:y4,measure:y4};try{typeof window<"u"&&(Aj=window),typeof document<"u"&&(iB=document),typeof MutationObserver<"u"&&(aB=MutationObserver),typeof performance<"u"&&(oB=performance)}catch{}const{userAgent:b4=""}=Aj.navigator||{},Ml=Aj,vn=iB,_4=aB,Wg=oB;Ml.document;const hs=!!vn.documentElement&&!!vn.head&&typeof vn.addEventListener=="function"&&typeof vn.createElement=="function",sB=~b4.indexOf("MSIE")||~b4.indexOf("Trident/");var GQ=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,YQ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,lB={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},KQ={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},uB=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],jr="classic",D0="duotone",ZQ="sharp",XQ="sharp-duotone",cB=[jr,D0,ZQ,XQ],QQ={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},JQ={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},eJ=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),tJ={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},nJ=["fak","fa-kit","fakd","fa-kit-duotone"],x4={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},rJ=["kit"],iJ={kit:{"fa-kit":"fak"}},aJ=["fak","fakd"],oJ={kit:{fak:"fa-kit"}},w4={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Gg={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},sJ=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],lJ=["fak","fa-kit","fakd","fa-kit-duotone"],uJ={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},cJ={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},fJ={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},DE={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},dJ=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],kE=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...sJ,...dJ],hJ=["solid","regular","light","thin","duotone","brands"],fB=[1,2,3,4,5,6,7,8,9,10],pJ=fB.concat([11,12,13,14,15,16,17,18,19,20]),mJ=[...Object.keys(fJ),...hJ,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Gg.GROUP,Gg.SWAP_OPACITY,Gg.PRIMARY,Gg.SECONDARY].concat(fB.map(e=>"".concat(e,"x"))).concat(pJ.map(e=>"w-".concat(e))),vJ={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const rs="___FONT_AWESOME___",IE=16,dB="fa",hB="svg-inline--fa",Ju="data-fa-i2svg",$E="data-fa-pseudo-element",gJ="data-fa-pseudo-element-pending",jj="data-prefix",Pj="data-icon",O4="fontawesome-i2svg",yJ="async",bJ=["HTML","HEAD","STYLE","SCRIPT"],pB=(()=>{try{return!0}catch{return!1}})();function Km(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[jr]}})}const mB=ze({},lB);mB[jr]=ze(ze(ze(ze({},{"fa-duotone":"duotone"}),lB[jr]),x4.kit),x4["kit-duotone"]);const _J=Km(mB),UE=ze({},tJ);UE[jr]=ze(ze(ze(ze({},{duotone:"fad"}),UE[jr]),w4.kit),w4["kit-duotone"]);const S4=Km(UE),BE=ze({},DE);BE[jr]=ze(ze({},BE[jr]),oJ.kit);const Rj=Km(BE),FE=ze({},cJ);FE[jr]=ze(ze({},FE[jr]),iJ.kit);Km(FE);const xJ=GQ,vB="fa-layers-text",wJ=YQ,OJ=ze({},QQ);Km(OJ);const SJ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Yx=KQ,EJ=[...rJ,...mJ],Ap=Ml.FontAwesomeConfig||{};function TJ(e){var t=vn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function CJ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}vn&&typeof vn.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=CJ(TJ(n));i!=null&&(Ap[r]=i)});const gB={styleDefault:"solid",familyDefault:jr,cssPrefix:dB,replacementClass:hB,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ap.familyPrefix&&(Ap.cssPrefix=Ap.familyPrefix);const zf=ze(ze({},gB),Ap);zf.autoReplaceSvg||(zf.observeMutations=!1);const ot={};Object.keys(gB).forEach(e=>{Object.defineProperty(ot,e,{enumerable:!0,set:function(t){zf[e]=t,jp.forEach(n=>n(ot))},get:function(){return zf[e]}})});Object.defineProperty(ot,"familyPrefix",{enumerable:!0,set:function(e){zf.cssPrefix=e,jp.forEach(t=>t(ot))},get:function(){return zf.cssPrefix}});Ml.FontAwesomeConfig=ot;const jp=[];function AJ(e){return jp.push(e),()=>{jp.splice(jp.indexOf(e),1)}}const hl=IE,Za={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function jJ(e){if(!e||!hs)return;const t=vn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=vn.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return vn.head.insertBefore(t,r),e}const PJ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Yp(){let e=12,t="";for(;e-- >0;)t+=PJ[Math.random()*62|0];return t}function Nd(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Mj(e){return e.classList?Nd(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function yB(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function RJ(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(yB(e[n]),'" '),"").trim()}function k0(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Nj(e){return e.size!==Za.size||e.x!==Za.x||e.y!==Za.y||e.rotate!==Za.rotate||e.flipX||e.flipY}function MJ(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),f={transform:"".concat(a," ").concat(o," ").concat(l)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:f,path:c}}function NJ(e){let{transform:t,width:n=IE,height:r=IE,startCentered:i=!1}=e,a="";return i&&sB?a+="translate(".concat(t.x/hl-n/2,"em, ").concat(t.y/hl-r/2,"em) "):i?a+="translate(calc(-50% + ".concat(t.x/hl,"em), calc(-50% + ").concat(t.y/hl,"em)) "):a+="translate(".concat(t.x/hl,"em, ").concat(t.y/hl,"em) "),a+="scale(".concat(t.size/hl*(t.flipX?-1:1),", ").concat(t.size/hl*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var LJ=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
transform: scale(var(--fa-counter-scale, 0.25));
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
animation-name: fa-beat;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
animation-name: fa-bounce;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
animation-name: fa-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
animation-name: fa-beat-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
animation-name: fa-flip;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
animation-name: fa-shake;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
animation-name: fa-spin;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 2s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
animation-name: fa-spin;
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, steps(8));
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
animation-delay: -1ms;
animation-duration: 1ms;
animation-iteration-count: 1;
transition-delay: 0s;
transition-duration: 0s;
}
}
@keyframes fa-beat {
0%, 90% {
transform: scale(1);
}
45% {
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-bounce {
0% {
transform: scale(1, 1) translateY(0);
}
10% {
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
transform: scale(1, 1) translateY(0);
}
100% {
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-flip {
50% {
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-shake {
0% {
transform: rotate(-15deg);
}
4% {
transform: rotate(15deg);
}
8%, 24% {
transform: rotate(-18deg);
}
12%, 28% {
transform: rotate(18deg);
}
16% {
transform: rotate(-22deg);
}
20% {
transform: rotate(22deg);
}
32% {
transform: rotate(-12deg);
}
36% {
transform: rotate(12deg);
}
40%, 100% {
transform: rotate(0deg);
}
}
@keyframes fa-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.fa-rotate-90 {
transform: rotate(90deg);
}
.fa-rotate-180 {
transform: rotate(180deg);
}
.fa-rotate-270 {
transform: rotate(270deg);
}
.fa-flip-horizontal {
transform: scale(-1, 1);
}
.fa-flip-vertical {
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
transform: scale(-1, -1);
}
.fa-rotate-by {
transform: rotate(var(--fa-rotate-angle, 0));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}`;function bB(){const e=dB,t=hB,n=ot.cssPrefix,r=ot.replacementClass;let i=LJ;if(n!==e||r!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(l,".".concat(r))}return i}let E4=!1;function Kx(){ot.autoAddCss&&!E4&&(jJ(bB()),E4=!0)}var DJ={mixout(){return{dom:{css:bB,insertCss:Kx}}},hooks(){return{beforeDOMElementCreation(){Kx()},beforeI2svg(){Kx()}}}};const is=Ml||{};is[rs]||(is[rs]={});is[rs].styles||(is[rs].styles={});is[rs].hooks||(is[rs].hooks={});is[rs].shims||(is[rs].shims=[]);var Xa=is[rs];const _B=[],xB=function(){vn.removeEventListener("DOMContentLoaded",xB),$y=1,_B.map(e=>e())};let $y=!1;hs&&($y=(vn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(vn.readyState),$y||vn.addEventListener("DOMContentLoaded",xB));function kJ(e){hs&&($y?setTimeout(e,0):_B.push(e))}function Zm(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?yB(e):"<".concat(t," ").concat(RJ(n),">").concat(r.map(Zm).join(""),"</").concat(t,">")}function T4(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Zx=function(t,n,r,i){var a=Object.keys(t),o=a.length,l=n,f,c,h;for(r===void 0?(f=1,h=t[a[0]]):(f=0,h=r);f<o;f++)c=a[f],h=l(h,t[c],c,t);return h};function IJ(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function zE(e){const t=IJ(e);return t.length===1?t[0].toString(16):null}function $J(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function C4(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function qE(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=C4(t);typeof Xa.hooks.addPack=="function"&&!r?Xa.hooks.addPack(e,C4(t)):Xa.styles[e]=ze(ze({},Xa.styles[e]||{}),i),e==="fas"&&qE("fa",t)}const{styles:Kp,shims:UJ}=Xa,wB=Object.keys(Rj),BJ=wB.reduce((e,t)=>(e[t]=Object.keys(Rj[t]),e),{});let Lj=null,OB={},SB={},EB={},TB={},CB={};function FJ(e){return~EJ.indexOf(e)}function zJ(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!FJ(i)?i:null}const AB=()=>{const e=r=>Zx(Kp,(i,a,o)=>(i[o]=Zx(a,r,{}),i),{});OB=e((r,i,a)=>(i[3]&&(r[i[3]]=a),i[2]&&i[2].filter(l=>typeof l=="number").forEach(l=>{r[l.toString(16)]=a}),r)),SB=e((r,i,a)=>(r[a]=a,i[2]&&i[2].filter(l=>typeof l=="string").forEach(l=>{r[l]=a}),r)),CB=e((r,i,a)=>{const o=i[2];return r[a]=a,o.forEach(l=>{r[l]=a}),r});const t="far"in Kp||ot.autoFetchSvg,n=Zx(UJ,(r,i)=>{const a=i[0];let o=i[1];const l=i[2];return o==="far"&&!t&&(o="fas"),typeof a=="string"&&(r.names[a]={prefix:o,iconName:l}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:o,iconName:l}),r},{names:{},unicodes:{}});EB=n.names,TB=n.unicodes,Lj=I0(ot.styleDefault,{family:ot.familyDefault})};AJ(e=>{Lj=I0(e.styleDefault,{family:ot.familyDefault})});AB();function Dj(e,t){return(OB[e]||{})[t]}function qJ(e,t){return(SB[e]||{})[t]}function Uu(e,t){return(CB[e]||{})[t]}function jB(e){return EB[e]||{prefix:null,iconName:null}}function VJ(e){const t=TB[e],n=Dj("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Nl(){return Lj}const PB=()=>({prefix:null,iconName:null,rest:[]});function HJ(e){let t=jr;const n=wB.reduce((r,i)=>(r[i]="".concat(ot.cssPrefix,"-").concat(i),r),{});return cB.forEach(r=>{(e.includes(n[r])||e.some(i=>BJ[r].includes(i)))&&(t=r)}),t}function I0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=jr}=t,r=_J[n][e];if(n===D0&&!e)return"fad";const i=S4[n][e]||S4[n][r],a=e in Xa.styles?e:null;return i||a||null}function WJ(e){let t=[],n=null;return e.forEach(r=>{const i=zJ(ot.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function A4(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function $0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=kE.concat(lJ),a=A4(e.filter(m=>i.includes(m))),o=A4(e.filter(m=>!kE.includes(m))),l=a.filter(m=>(r=m,!uB.includes(m))),[f=null]=l,c=HJ(a),h=ze(ze({},WJ(o)),{},{prefix:I0(f,{family:c})});return ze(ze(ze({},h),ZJ({values:e,family:c,styles:Kp,config:ot,canonical:h,givenPrefix:r})),GJ(n,r,h))}function GJ(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const a=t==="fa"?jB(i):{},o=Uu(r,i);return i=a.iconName||o||i,r=a.prefix||r,r==="far"&&!Kp.far&&Kp.fas&&!ot.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const YJ=cB.filter(e=>e!==jr||e!==D0),KJ=Object.keys(DE).filter(e=>e!==jr).map(e=>Object.keys(DE[e])).flat();function ZJ(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:a={},config:o={}}=e,l=n===D0,f=t.includes("fa-duotone")||t.includes("fad"),c=o.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!l&&(f||c||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&YJ.includes(n)&&(Object.keys(a).find(g=>KJ.includes(g))||o.autoFetchSvg)){const g=eJ.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=Uu(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=Nl()||"fas"),r}class XJ{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(a=>{this.definitions[a]=ze(ze({},this.definitions[a]||{}),i[a]),qE(a,i[a]);const o=Rj[jr][a];o&&qE(o,i[a]),AB()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:a,iconName:o,icon:l}=r[i],f=l[2];t[a]||(t[a]={}),f.length>0&&f.forEach(c=>{typeof c=="string"&&(t[a][c]=l)}),t[a][o]=l}),t}}let j4=[],Tf={};const Df={},QJ=Object.keys(Df);function JJ(e,t){let{mixoutsTo:n}=t;return j4=e,Tf={},Object.keys(Df).forEach(r=>{QJ.indexOf(r)===-1&&delete Df[r]}),j4.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(a=>{typeof i[a]=="function"&&(n[a]=i[a]),typeof i[a]=="object"&&Object.keys(i[a]).forEach(o=>{n[a]||(n[a]={}),n[a][o]=i[a][o]})}),r.hooks){const a=r.hooks();Object.keys(a).forEach(o=>{Tf[o]||(Tf[o]=[]),Tf[o].push(a[o])})}r.provides&&r.provides(Df)}),n}function VE(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Tf[e]||[]).forEach(o=>{t=o.apply(null,[t,...r])}),t}function ec(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Tf[e]||[]).forEach(a=>{a.apply(null,n)})}function Ll(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Df[e]?Df[e].apply(null,t):void 0}function HE(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Nl();if(t)return t=Uu(n,t)||t,T4(RB.definitions,n,t)||T4(Xa.styles,n,t)}const RB=new XJ,eee=()=>{ot.autoReplaceSvg=!1,ot.observeMutations=!1,ec("noAuto")},tee={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return hs?(ec("beforeI2svg",e),Ll("pseudoElements2svg",e),Ll("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ot.autoReplaceSvg===!1&&(ot.autoReplaceSvg=!0),ot.observeMutations=!0,kJ(()=>{ree({autoReplaceSvgRoot:t}),ec("watch",e)})}},nee={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Uu(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=I0(e[0]);return{prefix:n,iconName:Uu(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ot.cssPrefix,"-"))>-1||e.match(xJ))){const t=$0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Nl(),iconName:Uu(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Nl();return{prefix:t,iconName:Uu(t,e)||e}}}},Pi={noAuto:eee,config:ot,dom:tee,parse:nee,library:RB,findIconDefinition:HE,toHtml:Zm},ree=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=vn}=e;(Object.keys(Xa.styles).length>0||ot.autoFetchSvg)&&hs&&ot.autoReplaceSvg&&Pi.dom.i2svg({node:t})};function U0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Zm(n))}}),Object.defineProperty(e,"node",{get:function(){if(!hs)return;const n=vn.createElement("div");return n.innerHTML=e.html,n.children}}),e}function iee(e){let{children:t,main:n,mask:r,attributes:i,styles:a,transform:o}=e;if(Nj(o)&&n.found&&!r.found){const{width:l,height:f}=n,c={x:l/f/2,y:.5};i.style=k0(ze(ze({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function aee(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:a}=e;const o=a===!0?"".concat(t,"-").concat(ot.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ze(ze({},i),{},{id:o}),children:r}]}]}function kj(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:a,symbol:o,title:l,maskId:f,titleId:c,extra:h,watchable:m=!1}=e,{width:g,height:x}=n.found?n:t,_=aJ.includes(r),w=[ot.replacementClass,i?"".concat(ot.cssPrefix,"-").concat(i):""].filter(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let O={children:[],attributes:ze(ze({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:w,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(x)})};const S=_&&!~h.classes.indexOf("fa-fw")?{width:"".concat(g/x*16*.0625,"em")}:{};m&&(O.attributes[Ju]=""),l&&(O.children.push({tag:"title",attributes:{id:O.attributes["aria-labelledby"]||"title-".concat(c||Yp())},children:[l]}),delete O.attributes.title);const T=ze(ze({},O),{},{prefix:r,iconName:i,main:t,mask:n,maskId:f,transform:a,symbol:o,styles:ze(ze({},S),h.styles)}),{children:A,attributes:j}=n.found&&t.found?Ll("generateAbstractMask",T)||{children:[],attributes:{}}:Ll("generateAbstractIcon",T)||{children:[],attributes:{}};return T.children=A,T.attributes=j,o?aee(T):iee(T)}function P4(e){const{content:t,width:n,height:r,transform:i,title:a,extra:o,watchable:l=!1}=e,f=ze(ze(ze({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});l&&(f[Ju]="");const c=ze({},o.styles);Nj(i)&&(c.transform=NJ({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const h=k0(c);h.length>0&&(f.style=h);const m=[];return m.push({tag:"span",attributes:f,children:[t]}),a&&m.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),m}function oee(e){const{content:t,title:n,extra:r}=e,i=ze(ze(ze({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=k0(r.styles);a.length>0&&(i.style=a);const o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}const{styles:Xx}=Xa;function WE(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ot.cssPrefix,"-").concat(Yx.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ot.cssPrefix,"-").concat(Yx.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ot.cssPrefix,"-").concat(Yx.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const see={found:!1,width:512,height:512};function lee(e,t){!pB&&!ot.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function GE(e,t){let n=t;return t==="fa"&&ot.styleDefault!==null&&(t=Nl()),new Promise((r,i)=>{if(n==="fa"){const a=jB(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Xx[t]&&Xx[t][e]){const a=Xx[t][e];return r(WE(a))}lee(e,t),r(ze(ze({},see),{},{icon:ot.showMissingIcons&&e?Ll("missingIconAbstract")||{}:{}}))})}const R4=()=>{},YE=ot.measurePerformance&&Wg&&Wg.mark&&Wg.measure?Wg:{mark:R4,measure:R4},vp='FA "6.7.2"',uee=e=>(YE.mark("".concat(vp," ").concat(e," begins")),()=>MB(e)),MB=e=>{YE.mark("".concat(vp," ").concat(e," ends")),YE.measure("".concat(vp," ").concat(e),"".concat(vp," ").concat(e," begins"),"".concat(vp," ").concat(e," ends"))};var Ij={begin:uee,end:MB};const Oy=()=>{};function M4(e){return typeof(e.getAttribute?e.getAttribute(Ju):null)=="string"}function cee(e){const t=e.getAttribute?e.getAttribute(jj):null,n=e.getAttribute?e.getAttribute(Pj):null;return t&&n}function fee(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ot.replacementClass)}function dee(){return ot.autoReplaceSvg===!0?Sy.replace:Sy[ot.autoReplaceSvg]||Sy.replace}function hee(e){return vn.createElementNS("http://www.w3.org/2000/svg",e)}function pee(e){return vn.createElement(e)}function NB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?hee:pee}=t;if(typeof e=="string")return vn.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(a){r.setAttribute(a,e.attributes[a])}),(e.children||[]).forEach(function(a){r.appendChild(NB(a,{ceFn:n}))}),r}function mee(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Sy={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(NB(n),t)}),t.getAttribute(Ju)===null&&ot.keepOriginalSource){let n=vn.createComment(mee(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Mj(t).indexOf(ot.replacementClass))return Sy.replace(e);const r=new RegExp("".concat(ot.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((o,l)=>(l===ot.replacementClass||l.match(r)?o.toSvg.push(l):o.toNode.push(l),o),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}const i=n.map(a=>Zm(a)).join(`
`);t.setAttribute(Ju,""),t.innerHTML=i}};function N4(e){e()}function LB(e,t){const n=typeof t=="function"?t:Oy;if(e.length===0)n();else{let r=N4;ot.mutateApproach===yJ&&(r=Ml.requestAnimationFrame||N4),r(()=>{const i=dee(),a=Ij.begin("mutate");e.map(i),a(),n()})}}let $j=!1;function DB(){$j=!0}function KE(){$j=!1}let Uy=null;function L4(e){if(!_4||!ot.observeMutations)return;const{treeCallback:t=Oy,nodeCallback:n=Oy,pseudoElementsCallback:r=Oy,observeMutationsRoot:i=vn}=e;Uy=new _4(a=>{if($j)return;const o=Nl();Nd(a).forEach(l=>{if(l.type==="childList"&&l.addedNodes.length>0&&!M4(l.addedNodes[0])&&(ot.searchPseudoElements&&r(l.target),t(l.target)),l.type==="attributes"&&l.target.parentNode&&ot.searchPseudoElements&&r(l.target.parentNode),l.type==="attributes"&&M4(l.target)&&~SJ.indexOf(l.attributeName))if(l.attributeName==="class"&&cee(l.target)){const{prefix:f,iconName:c}=$0(Mj(l.target));l.target.setAttribute(jj,f||o),c&&l.target.setAttribute(Pj,c)}else fee(l.target)&&n(l.target)})}),hs&&Uy.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function vee(){Uy&&Uy.disconnect()}function gee(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(r[o]=l.join(":").trim()),r},{})),n}function yee(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=$0(Mj(e));return i.prefix||(i.prefix=Nl()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=qJ(i.prefix,e.innerText)||Dj(i.prefix,zE(e.innerText))),!i.iconName&&ot.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function bee(e){const t=Nd(e.attributes).reduce((i,a)=>(i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ot.autoA11y&&(n?t["aria-labelledby"]="".concat(ot.replacementClass,"-title-").concat(r||Yp()):(t["aria-hidden"]="true",t.focusable="false")),t}function _ee(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Za,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function D4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=yee(e),a=bee(e),o=VE("parseNodeAttributes",{},e);let l=t.styleParser?gee(e):[];return ze({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Za,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:a}},o)}const{styles:xee}=Xa;function kB(e){const t=ot.autoReplaceSvg==="nest"?D4(e,{styleParser:!1}):D4(e);return~t.extra.classes.indexOf(vB)?Ll("generateLayersText",e,t):Ll("generateSvgReplacementMutation",e,t)}function wee(){return[...nJ,...kE]}function k4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!hs)return Promise.resolve();const n=vn.documentElement.classList,r=h=>n.add("".concat(O4,"-").concat(h)),i=h=>n.remove("".concat(O4,"-").concat(h)),a=ot.autoFetchSvg?wee():uB.concat(Object.keys(xee));a.includes("fa")||a.push("fa");const o=[".".concat(vB,":not([").concat(Ju,"])")].concat(a.map(h=>".".concat(h,":not([").concat(Ju,"])"))).join(", ");if(o.length===0)return Promise.resolve();let l=[];try{l=Nd(e.querySelectorAll(o))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();const f=Ij.begin("onTree"),c=l.reduce((h,m)=>{try{const g=kB(m);g&&h.push(g)}catch(g){pB||g.name==="MissingIcon"&&console.error(g)}return h},[]);return new Promise((h,m)=>{Promise.all(c).then(g=>{LB(g,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),f(),h()})}).catch(g=>{f(),m(g)})})}function Oee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kB(e).then(n=>{n&&LB([n],t)})}function See(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:HE(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:HE(i||{})),e(r,ze(ze({},n),{},{mask:i}))}}const Eee=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Za,symbol:r=!1,mask:i=null,maskId:a=null,title:o=null,titleId:l=null,classes:f=[],attributes:c={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:g,icon:x}=e;return U0(ze({type:"icon"},e),()=>(ec("beforeDOMElementCreation",{iconDefinition:e,params:t}),ot.autoA11y&&(o?c["aria-labelledby"]="".concat(ot.replacementClass,"-title-").concat(l||Yp()):(c["aria-hidden"]="true",c.focusable="false")),kj({icons:{main:WE(x),mask:i?WE(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:g,transform:ze(ze({},Za),n),symbol:r,title:o,maskId:a,titleId:l,extra:{attributes:c,styles:h,classes:f}})))};var Tee={mixout(){return{icon:See(Eee)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=k4,e.nodeCallback=Oee,e}}},provides(e){e.i2svg=function(t){const{node:n=vn,callback:r=()=>{}}=t;return k4(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:a,prefix:o,transform:l,symbol:f,mask:c,maskId:h,extra:m}=n;return new Promise((g,x)=>{Promise.all([GE(r,o),c.iconName?GE(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(_=>{let[w,O]=_;g([t,kj({icons:{main:w,mask:O},prefix:o,iconName:r,transform:l,symbol:f,maskId:h,title:i,titleId:a,extra:m,watchable:!0})])}).catch(x)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:a,styles:o}=t;const l=k0(o);l.length>0&&(r.style=l);let f;return Nj(a)&&(f=Ll("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(f||i.icon),{children:n,attributes:r}}}},Cee={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return U0({type:"layer"},()=>{ec("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(a=>{r=r.concat(a.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ot.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},Aee={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:a={}}=t;return U0({type:"counter",content:e},()=>(ec("beforeDOMElementCreation",{content:e,params:t}),oee({content:e.toString(),title:n,extra:{attributes:i,styles:a,classes:["".concat(ot.cssPrefix,"-layers-counter"),...r]}})))}}}},jee={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Za,title:r=null,classes:i=[],attributes:a={},styles:o={}}=t;return U0({type:"text",content:e},()=>(ec("beforeDOMElementCreation",{content:e,params:t}),P4({content:e,transform:ze(ze({},Za),n),title:r,extra:{attributes:a,styles:o,classes:["".concat(ot.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:a}=n;let o=null,l=null;if(sB){const f=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();o=c.width/f,l=c.height/f}return ot.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,P4({content:t.innerHTML,width:o,height:l,transform:i,title:r,extra:a,watchable:!0})])}}};const Pee=new RegExp('"',"ug"),I4=[1105920,1112319],$4=ze(ze(ze(ze({},{FontAwesome:{normal:"fas",400:"fas"}}),JQ),vJ),uJ),ZE=Object.keys($4).reduce((e,t)=>(e[t.toLowerCase()]=$4[t],e),{}),Ree=Object.keys(ZE).reduce((e,t)=>{const n=ZE[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function Mee(e){const t=e.replace(Pee,""),n=$J(t,0),r=n>=I4[0]&&n<=I4[1],i=t.length===2?t[0]===t[1]:!1;return{value:zE(i?t[0]:t),isSecondary:r||i}}function Nee(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(ZE[n]||{})[i]||Ree[n]}function U4(e,t){const n="".concat(gJ).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const o=Nd(e.children).filter(g=>g.getAttribute($E)===t)[0],l=Ml.getComputedStyle(e,t),f=l.getPropertyValue("font-family"),c=f.match(wJ),h=l.getPropertyValue("font-weight"),m=l.getPropertyValue("content");if(o&&!c)return e.removeChild(o),r();if(c&&m!=="none"&&m!==""){const g=l.getPropertyValue("content");let x=Nee(f,h);const{value:_,isSecondary:w}=Mee(g),O=c[0].startsWith("FontAwesome");let S=Dj(x,_),T=S;if(O){const A=VJ(_);A.iconName&&A.prefix&&(S=A.iconName,x=A.prefix)}if(S&&!w&&(!o||o.getAttribute(jj)!==x||o.getAttribute(Pj)!==T)){e.setAttribute(n,T),o&&e.removeChild(o);const A=_ee(),{extra:j}=A;j.attributes[$E]=t,GE(S,x).then(P=>{const R=kj(ze(ze({},A),{},{icons:{main:P,mask:PB()},prefix:x,iconName:T,extra:j,watchable:!0})),D=vn.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(D,e.firstChild):e.appendChild(D),D.outerHTML=R.map(U=>Zm(U)).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function Lee(e){return Promise.all([U4(e,"::before"),U4(e,"::after")])}function Dee(e){return e.parentNode!==document.head&&!~bJ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute($E)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function B4(e){if(hs)return new Promise((t,n)=>{const r=Nd(e.querySelectorAll("*")).filter(Dee).map(Lee),i=Ij.begin("searchPseudoElements");DB(),Promise.all(r).then(()=>{i(),KE(),t()}).catch(()=>{i(),KE(),n()})})}var kee={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=B4,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=vn}=t;ot.searchPseudoElements&&B4(n)}}};let F4=!1;var Iee={mixout(){return{dom:{unwatch(){DB(),F4=!0}}}},hooks(){return{bootstrap(){L4(VE("mutationObserverCallbacks",{}))},noAuto(){vee()},watch(e){const{observeMutationsRoot:t}=e;F4?KE():L4(VE("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const z4=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),a=i[0];let o=i.slice(1).join("-");if(a&&o==="h")return n.flipX=!0,n;if(a&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(a){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;break}return n},t)};var $ee={mixout(){return{parse:{transform:e=>z4(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=z4(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:a}=t;const o={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(r.x*32,", ").concat(r.y*32,") "),f="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(l," ").concat(f," ").concat(c)},m={transform:"translate(".concat(a/2*-1," -256)")},g={outer:o,inner:h,path:m};return{tag:"g",attributes:ze({},g.outer),children:[{tag:"g",attributes:ze({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ze(ze({},n.icon.attributes),g.path)}]}]}}}};const Qx={x:0,y:0,width:"100%",height:"100%"};function q4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Uee(e){return e.tag==="g"?e.children:[e]}var Bee={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?$0(n.split(" ").map(i=>i.trim())):PB();return r.prefix||(r.prefix=Nl()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:a,maskId:o,transform:l}=t;const{width:f,icon:c}=i,{width:h,icon:m}=a,g=MJ({transform:l,containerWidth:h,iconWidth:f}),x={tag:"rect",attributes:ze(ze({},Qx),{},{fill:"white"})},_=c.children?{children:c.children.map(q4)}:{},w={tag:"g",attributes:ze({},g.inner),children:[q4(ze({tag:c.tag,attributes:ze(ze({},c.attributes),g.path)},_))]},O={tag:"g",attributes:ze({},g.outer),children:[w]},S="mask-".concat(o||Yp()),T="clip-".concat(o||Yp()),A={tag:"mask",attributes:ze(ze({},Qx),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,O]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:T},children:Uee(m)},A]};return n.push(j,{tag:"rect",attributes:ze({fill:"currentColor","clip-path":"url(#".concat(T,")"),mask:"url(#".concat(S,")")},Qx)}),{children:n,attributes:r}}}},Fee={provides(e){let t=!1;Ml.matchMedia&&(t=Ml.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:ze(ze({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const a=ze(ze({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:ze(ze({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:ze(ze({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ze(ze({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:ze(ze({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:ze(ze({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:ze(ze({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ze(ze({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},zee={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},qee=[DJ,Tee,Cee,Aee,jee,kee,Iee,$ee,Bee,Fee,zee];JJ(qee,{mixoutsTo:Pi});Pi.noAuto;Pi.config;Pi.library;Pi.dom;const XE=Pi.parse;Pi.findIconDefinition;Pi.toHtml;const Vee=Pi.icon;Pi.layer;Pi.text;Pi.counter;var Jx={exports:{}},ew,V4;function Hee(){if(V4)return ew;V4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ew=e,ew}var tw,H4;function Wee(){if(H4)return tw;H4=1;var e=Hee();function t(){}function n(){}return n.resetWarningCache=t,tw=function(){function r(o,l,f,c,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},tw}var W4;function Gee(){return W4||(W4=1,Jx.exports=Wee()()),Jx.exports}var Yee=Gee();const W=Dt(Yee);function G4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G4(Object(n),!0).forEach(function(r){Cf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function By(e){"@babel/helpers - typeof";return By=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},By(e)}function Cf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Zee(e,t){if(e==null)return{};var n=Kee(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QE(e){return Xee(e)||Qee(e)||Jee(e)||ete()}function Xee(e){if(Array.isArray(e))return JE(e)}function Qee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jee(e,t){if(e){if(typeof e=="string")return JE(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 JE(e,t)}}function JE(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 ete(){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 tte(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,f=e.spin,c=e.spinPulse,h=e.spinReverse,m=e.pulse,g=e.fixedWidth,x=e.inverse,_=e.border,w=e.listItem,O=e.flip,S=e.size,T=e.rotation,A=e.pull,j=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":f,"fa-spin-reverse":h,"fa-spin-pulse":c,"fa-pulse":m,"fa-fw":g,"fa-inverse":x,"fa-border":_,"fa-li":w,"fa-flip":O===!0,"fa-flip-horizontal":O==="horizontal"||O==="both","fa-flip-vertical":O==="vertical"||O==="both"},Cf(t,"fa-".concat(S),typeof S<"u"&&S!==null),Cf(t,"fa-rotate-".concat(T),typeof T<"u"&&T!==null&&T!==0),Cf(t,"fa-pull-".concat(A),typeof A<"u"&&A!==null),Cf(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(j).map(function(P){return j[P]?P:null}).filter(function(P){return P})}function nte(e){return e=e-0,e===e}function IB(e){return nte(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var rte=["style"];function ite(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ate(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=IB(n.slice(0,r)),a=n.slice(r+1).trim();return i.startsWith("webkit")?t[ite(i)]=a:t[i]=a,t},{})}function $B(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(f){return $B(e,f)}),i=Object.keys(t.attributes||{}).reduce(function(f,c){var h=t.attributes[c];switch(c){case"class":f.attrs.className=h,delete t.attributes.class;break;case"style":f.attrs.style=ate(h);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?f.attrs[c.toLowerCase()]=h:f.attrs[IB(c)]=h}return f},{attrs:{}}),a=n.style,o=a===void 0?{}:a,l=Zee(n,rte);return i.attrs.style=Ka(Ka({},i.attrs.style),o),e.apply(void 0,[t.tag,Ka(Ka({},i.attrs),l)].concat(QE(r)))}var UB=!1;try{UB=!0}catch{}function ote(){if(!UB&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Y4(e){if(e&&By(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(XE.icon)return XE.icon(e);if(e===null)return null;if(e&&By(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function nw(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Cf({},e,t):{}}var K4={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ke=J.forwardRef(function(e,t){var n=Ka(Ka({},K4),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,l=n.title,f=n.titleId,c=n.maskId,h=Y4(r),m=nw("classes",[].concat(QE(tte(n)),QE((o||"").split(" ")))),g=nw("transform",typeof n.transform=="string"?XE.transform(n.transform):n.transform),x=nw("mask",Y4(i)),_=Vee(h,Ka(Ka(Ka(Ka({},m),g),x),{},{symbol:a,title:l,titleId:f,maskId:c}));if(!_)return ote("Could not find icon",h),null;var w=_.abstract,O={ref:t};return Object.keys(n).forEach(function(S){K4.hasOwnProperty(S)||(O[S]=n[S])}),ste(w[0],O)});Ke.displayName="FontAwesomeIcon";Ke.propTypes={beat:W.bool,border:W.bool,beatFade:W.bool,bounce:W.bool,className:W.string,fade:W.bool,flash:W.bool,mask:W.oneOfType([W.object,W.array,W.string]),maskId:W.string,fixedWidth:W.bool,inverse:W.bool,flip:W.oneOf([!0,!1,"horizontal","vertical","both"]),icon:W.oneOfType([W.object,W.array,W.string]),listItem:W.bool,pull:W.oneOf(["right","left"]),pulse:W.bool,rotation:W.oneOf([0,90,180,270]),shake:W.bool,size:W.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:W.bool,spinPulse:W.bool,spinReverse:W.bool,symbol:W.oneOfType([W.bool,W.string]),title:W.string,titleId:W.string,transform:W.oneOfType([W.string,W.object]),swapOpacity:W.bool};var ste=$B.bind(null,J.createElement);function BB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=BB(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ve(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=BB(e))&&(r&&(r+=" "),r+=t);return r}var rw={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var Z4;function lte(){return Z4||(Z4=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&r.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var f in a)t.call(a,f)&&a[f]&&r.push(f)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(rw)),rw.exports}var ute=lte();const mt=Dt(ute);function X4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X4(Object(n),!0).forEach(function(r){fte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 dte(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function FB(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function hte(){return document.body.clientWidth<window.innerWidth}function pte(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function mte(){var e=dte(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;hte()&&FB(n+e)}var vte;function lt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vte;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function Fl(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function zB(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,a={};r>0;)r-=1,i=n[r],a[i]=e[i];return a}var Q4={};function eT(e){Q4[e]||(typeof console<"u"&&console.error(e),Q4[e]=!0)}function qB(e,t){return function(r,i,a){r[i]!==null&&typeof r[i]<"u"&&eT('"'.concat(i,'" property of "').concat(a,`" has been deprecated.
`).concat(t));for(var o=arguments.length,l=new Array(o>3?o-3:0),f=3;f<o;f++)l[f-3]=arguments[f];return e.apply(void 0,[r,i,a].concat(l))}}var gte=(typeof window>"u"?"undefined":tc(window))==="object"&&window.Element||function(){};function Uj(e,t,n){if(!(e[t]instanceof gte))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var qf=W.oneOfType([W.string,W.func,Uj,W.shape({current:W.any})]),Lt=W.oneOfType([W.func,W.string,W.shape({$$typeof:W.symbol,render:W.func}),W.arrayOf(W.oneOfType([W.func,W.string,W.shape({$$typeof:W.symbol,render:W.func})]))]),Fy={Fade:150,Collapse:350,Modal:300},zy=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Yg={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Vt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},yte=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Bj=!!(typeof window<"u"&&window.document&&window.document.createElement);function bte(e){return e&&tc(e)==="object"?"current"in e:!1}function VB(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function tT(e){var t=tc(e);return e!=null&&(t==="object"||t==="function")}function J4(e){var t=tc(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&VB(e)==="[object Symbol]")return n;if(tT(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=tT(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function _te(e){if(!tT(e))return!1;var t=VB(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function xte(e){if(bte(e))return e.current;if(_te(e))return e();if(typeof e=="string"&&Bj){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function eL(e){return e===null?!1:Array.isArray(e)||Bj&&typeof e.length=="number"}function Zp(e,t){var n=xte(e);return t?eL(n)?n:n===null?[]:[n]:eL(n)?n[0]:n}var wte=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function Fj(e,t){if(!e||!t)return t;var n=cte({},t);return Object.keys(e).forEach(function(r){n[r]===void 0&&(n[r]=e[r]),Object.keys(e[r]||{}).length>0&&tc(e[r])==="object"&&Fj(e[r],n)}),n}var Ote=["className","cssModule","noGutters","tag","widths"];function nT(){return nT=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},nT.apply(this,arguments)}function Ste(e,t){if(e==null)return{};var n=Ete(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tte=["xs","sm","md","lg","xl","xxl"],ff=W.oneOfType([W.number,W.string]),Cte={tag:Lt,noGutters:qB(W.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:W.string,cssModule:W.object,xs:ff,sm:ff,md:ff,lg:ff,xl:ff,xxl:ff,widths:W.array};function Qa(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,a=i===void 0?"div":i,o=e.widths,l=o===void 0?Tte:o,f=Ste(e,Ote),c=[];l.forEach(function(m,g){var x=e[m];if(delete f[m],!!x){var _=!g;c.push(_?"row-cols-".concat(x):"row-cols-".concat(m,"-").concat(x))}});var h=lt(mt(t,r?"gx-0":null,"row",c),n);return J.createElement(a,nT({},f,{className:h}))}Qa.propTypes=Cte;var Ate=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function rT(){return rT=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},rT.apply(this,arguments)}function iw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jte(e,t){if(e==null)return{};var n=Pte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Rte={children:W.node,className:W.string,color:W.string,container:W.oneOfType([W.bool,W.string]),cssModule:W.object,dark:W.bool,expand:W.oneOfType([W.bool,W.string]),fixed:W.string,light:W.bool,role:W.string,sticky:W.string,tag:Lt},Mte=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function HB(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,a=e.cssModule,o=e.light,l=e.dark,f=e.fixed,c=e.sticky,h=e.color,m=e.container,g=m===void 0?"fluid":m,x=e.tag,_=x===void 0?"nav":x,w=e.children,O=jte(e,Ate),S=lt(mt(i,"navbar",Mte(r),(t={"navbar-light":o,"navbar-dark":l},iw(t,"bg-".concat(h),h),iw(t,"fixed-".concat(f),f),iw(t,"sticky-".concat(c),c),t)),a),T=g&&g===!0?"container":"container-".concat(g);return J.createElement(_,rT({},O,{className:S}),g?J.createElement("div",{className:T},w):w)}HB.propTypes=Rte;var Nte=["className","cssModule","tag"];function iT(){return iT=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},iT.apply(this,arguments)}function Lte(e,t){if(e==null)return{};var n=Dte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kte={className:W.string,cssModule:W.object,tag:Lt};function WB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,a=Lte(e,Nte),o=lt(mt(t,"navbar-brand"),n);return J.createElement(i,iT({},a,{className:o}))}WB.propTypes=kte;var Ite=["className","cssModule","children","tag"];function aT(){return aT=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},aT.apply(this,arguments)}function tL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tL(Object(n),!0).forEach(function(r){Ute(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ute(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bte(e,t){if(e==null)return{};var n=Fte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zte={className:W.string,cssModule:W.object,tag:Lt,type:W.string,children:W.node};function GB(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,a=i===void 0?"button":i,o=Bte(e,Ite),l=lt(mt(t,"navbar-toggler"),n);return J.createElement(a,aT({"aria-label":"Toggle navigation"},$te({type:"button"},o),{className:l}),r||J.createElement("span",{className:lt("navbar-toggler-icon",n)}))}GB.propTypes=zte;var qte=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function oT(){return oT=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},oT.apply(this,arguments)}function Vte(e,t){if(e==null)return{};var n=Hte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Wte={card:W.bool,className:W.string,cssModule:W.object,fill:W.bool,horizontal:W.oneOf(["center","end"]),justified:W.bool,navbar:W.bool,pills:W.bool,tabs:W.bool,tag:Lt,vertical:W.oneOfType([W.bool,W.string])},Gte=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function zj(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,a=e.vertical,o=a===void 0?!1:a,l=e.horizontal,f=e.justified,c=e.fill,h=e.navbar,m=e.card,g=e.tag,x=g===void 0?"ul":g,_=Vte(e,qte),w=lt(mt(t,h?"navbar-nav":"nav",l?"justify-content-".concat(l):!1,Gte(o),{"nav-tabs":r,"card-header-tabs":m&&r,"nav-pills":i,"card-header-pills":m&&i,"nav-justified":f,"nav-fill":c}),n);return J.createElement(x,oT({},_,{className:w}))}zj.propTypes=Wte;var Yte=["className","cssModule","active","tag"];function sT(){return sT=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},sT.apply(this,arguments)}function Kte(e,t){if(e==null)return{};var n=Zte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xte={active:W.bool,className:W.string,cssModule:W.object,tag:Lt};function qj(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,a=i===void 0?"li":i,o=Kte(e,Yte),l=lt(mt(t,"nav-item",r?"active":!1),n);return J.createElement(a,sT({},o,{className:l}))}qj.propTypes=Xte;function lT(e){"@babel/helpers - typeof";return lT=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},lT(e)}var Qte=["className","cssModule","active","tag","innerRef"];function uT(){return uT=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},uT.apply(this,arguments)}function Jte(e,t){if(e==null)return{};var n=ene(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ene(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function tne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nne(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,r.key,r)}}function rne(e,t,n){return t&&nne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ine(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&&cT(e,t)}function cT(e,t){return cT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cT(e,t)}function ane(e){var t=sne();return function(){var r=qy(e),i;if(t){var a=qy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return one(this,i)}}function one(e,t){if(t&&(lT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YB(e)}function YB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sne(){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 qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qy(e)}var lne={active:W.bool,className:W.string,cssModule:W.object,disabled:W.bool,href:W.any,innerRef:W.oneOfType([W.object,W.func,W.string]),onClick:W.func,tag:Lt},Vj=function(e){ine(n,e);var t=ane(n);function n(r){var i;return tne(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(YB(i)),i}return rne(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,a=i.className,o=i.cssModule,l=i.active,f=i.tag,c=f===void 0?"a":f,h=i.innerRef,m=Jte(i,Qte),g=lt(mt(a,"nav-link",{disabled:m.disabled,active:l}),o);return J.createElement(c,uT({},m,{ref:h,onClick:this.onClick,className:g}))}}]),n}(J.Component);Vj.propTypes=lne;var une=["className","cssModule","variant","innerRef"];function fT(){return fT=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},fT.apply(this,arguments)}function nL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nL(Object(n),!0).forEach(function(r){fne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dne(e,t){if(e==null)return{};var n=hne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var pne={active:W.bool,"aria-label":W.string,onClick:W.func,variant:W.oneOf(["white"]),className:W.string,cssModule:W.object,innerRef:W.oneOfType([W.object,W.string,W.func])};function KB(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=dne(e,une),a=lt(mt(t,"btn-close",n&&"btn-close-".concat(n)));return J.createElement("button",fT({ref:r,type:"button",className:a},cne({"aria-label":"close"},i)))}KB.propTypes=pne;var mne=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function dT(){return dT=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},dT.apply(this,arguments)}function vne(e,t){if(e==null)return{};var n=gne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var yne={active:W.bool,"aria-label":W.string,block:W.bool,children:W.node,className:W.string,cssModule:W.object,close:W.bool,color:W.string,disabled:W.bool,innerRef:W.oneOfType([W.object,W.func,W.string]),onClick:W.func,outline:W.bool,size:W.string,tag:Lt};function yt(e){var t=I.useCallback(function(T){if(e.disabled){T.preventDefault();return}if(e.onClick)return e.onClick(T)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,a=e.className,o=e.close,l=e.cssModule,f=e.color,c=f===void 0?"secondary":f,h=e.outline,m=e.size,g=e.tag,x=g===void 0?"button":g,_=e.innerRef,w=vne(e,mne);if(o)return J.createElement(KB,w);var O="btn".concat(h?"-outline":"","-").concat(c),S=lt(mt(a,"btn",O,m?"btn-".concat(m):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),l);return w.href&&x==="button"&&(x="a"),J.createElement(x,dT({type:x==="button"&&w.onClick?"button":void 0},w,{className:S,ref:_,onClick:t,"aria-label":r}))}yt.propTypes=yne;var ZB=I.createContext(),XB=I.createContext();function rL(e){var t=e.children,n=I.useState(null),r=n[0],i=n[1],a=I.useRef(!1);I.useEffect(function(){return function(){a.current=!0}},[]);var o=I.useCallback(function(l){a.current||i(l)},[]);return I.createElement(ZB.Provider,{value:r},I.createElement(XB.Provider,{value:o},t))}var QB=function(t){return Array.isArray(t)?t[0]:t},JB=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},hT=function(t,n){if(typeof t=="function")return JB(t,n);t!=null&&(t.current=n)},iL=function(t){return t.reduce(function(n,r){var i=r[0],a=r[1];return n[i]=a,n},{})},aL=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,Hj=pU();const Bu=Dt(Hj);var ei="top",ea="bottom",ta="right",ti="left",Wj="auto",Xm=[ei,ea,ta,ti],Vf="start",Xp="end",bne="clippingParents",e9="viewport",Jh="popper",_ne="reference",oL=Xm.reduce(function(e,t){return e.concat([t+"-"+Vf,t+"-"+Xp])},[]),t9=[].concat(Xm,[Wj]).reduce(function(e,t){return e.concat([t,t+"-"+Vf,t+"-"+Xp])},[]),xne="beforeRead",wne="read",One="afterRead",Sne="beforeMain",Ene="main",Tne="afterMain",Cne="beforeWrite",Ane="write",jne="afterWrite",Pne=[xne,wne,One,Sne,Ene,Tne,Cne,Ane,jne];function so(e){return e?(e.nodeName||"").toLowerCase():null}function Ci(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nc(e){var t=Ci(e).Element;return e instanceof t||e instanceof Element}function Ji(e){var t=Ci(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gj(e){if(typeof ShadowRoot>"u")return!1;var t=Ci(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Rne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Ji(a)||!so(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var l=i[o];l===!1?a.removeAttribute(o):a.setAttribute(o,l===!0?"":l)}))})}function Mne(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=o.reduce(function(f,c){return f[c]="",f},{});!Ji(i)||!so(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(f){i.removeAttribute(f)}))})}}const Nne={name:"applyStyles",enabled:!0,phase:"write",fn:Rne,effect:Mne,requires:["computeStyles"]};function to(e){return e.split("-")[0]}var Gu=Math.max,Vy=Math.min,Hf=Math.round;function pT(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function n9(){return!/^((?!chrome|android).)*safari/i.test(pT())}function Wf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Ji(e)&&(i=e.offsetWidth>0&&Hf(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Hf(r.height)/e.offsetHeight||1);var o=nc(e)?Ci(e):window,l=o.visualViewport,f=!n9()&&n,c=(r.left+(f&&l?l.offsetLeft:0))/i,h=(r.top+(f&&l?l.offsetTop:0))/a,m=r.width/i,g=r.height/a;return{width:m,height:g,top:h,right:c+m,bottom:h+g,left:c,x:c,y:h}}function Yj(e){var t=Wf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function r9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gj(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function as(e){return Ci(e).getComputedStyle(e)}function Lne(e){return["table","td","th"].indexOf(so(e))>=0}function zl(e){return((nc(e)?e.ownerDocument:e.document)||window.document).documentElement}function B0(e){return so(e)==="html"?e:e.assignedSlot||e.parentNode||(Gj(e)?e.host:null)||zl(e)}function sL(e){return!Ji(e)||as(e).position==="fixed"?null:e.offsetParent}function Dne(e){var t=/firefox/i.test(pT()),n=/Trident/i.test(pT());if(n&&Ji(e)){var r=as(e);if(r.position==="fixed")return null}var i=B0(e);for(Gj(i)&&(i=i.host);Ji(i)&&["html","body"].indexOf(so(i))<0;){var a=as(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Qm(e){for(var t=Ci(e),n=sL(e);n&&Lne(n)&&as(n).position==="static";)n=sL(n);return n&&(so(n)==="html"||so(n)==="body"&&as(n).position==="static")?t:n||Dne(e)||t}function Kj(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pp(e,t,n){return Gu(e,Vy(t,n))}function kne(e,t,n){var r=Pp(e,t,n);return r>n?n:r}function i9(){return{top:0,right:0,bottom:0,left:0}}function a9(e){return Object.assign({},i9(),e)}function o9(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ine=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,a9(typeof t!="number"?t:o9(t,Xm))};function $ne(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,l=to(n.placement),f=Kj(l),c=[ti,ta].indexOf(l)>=0,h=c?"height":"width";if(!(!a||!o)){var m=Ine(i.padding,n),g=Yj(a),x=f==="y"?ei:ti,_=f==="y"?ea:ta,w=n.rects.reference[h]+n.rects.reference[f]-o[f]-n.rects.popper[h],O=o[f]-n.rects.reference[f],S=Qm(a),T=S?f==="y"?S.clientHeight||0:S.clientWidth||0:0,A=w/2-O/2,j=m[x],P=T-g[h]-m[_],R=T/2-g[h]/2+A,D=Pp(j,R,P),U=f;n.modifiersData[r]=(t={},t[U]=D,t.centerOffset=D-R,t)}}function Une(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||r9(t.elements.popper,i)&&(t.elements.arrow=i))}const Bne={name:"arrow",enabled:!0,phase:"main",fn:$ne,effect:Une,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gf(e){return e.split("-")[1]}var Fne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zne(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Hf(n*i)/i||0,y:Hf(r*i)/i||0}}function lL(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,l=e.position,f=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,m=e.isFixed,g=o.x,x=g===void 0?0:g,_=o.y,w=_===void 0?0:_,O=typeof h=="function"?h({x,y:w}):{x,y:w};x=O.x,w=O.y;var S=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),A=ti,j=ei,P=window;if(c){var R=Qm(n),D="clientHeight",U="clientWidth";if(R===Ci(n)&&(R=zl(n),as(R).position!=="static"&&l==="absolute"&&(D="scrollHeight",U="scrollWidth")),R=R,i===ei||(i===ti||i===ta)&&a===Xp){j=ea;var z=m&&R===P&&P.visualViewport?P.visualViewport.height:R[D];w-=z-r.height,w*=f?1:-1}if(i===ti||(i===ei||i===ea)&&a===Xp){A=ta;var F=m&&R===P&&P.visualViewport?P.visualViewport.width:R[U];x-=F-r.width,x*=f?1:-1}}var V=Object.assign({position:l},c&&Fne),H=h===!0?zne({x,y:w},Ci(n)):{x,y:w};if(x=H.x,w=H.y,f){var te;return Object.assign({},V,(te={},te[j]=T?"0":"",te[A]=S?"0":"",te.transform=(P.devicePixelRatio||1)<=1?"translate("+x+"px, "+w+"px)":"translate3d("+x+"px, "+w+"px, 0)",te))}return Object.assign({},V,(t={},t[j]=T?w+"px":"",t[A]=S?x+"px":"",t.transform="",t))}function qne(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,l=n.roundOffsets,f=l===void 0?!0:l,c={placement:to(t.placement),variation:Gf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,lL(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,lL(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qne,data:{}};var Kg={passive:!0};function Hne(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,l=o===void 0?!0:o,f=Ci(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(h){h.addEventListener("scroll",n.update,Kg)}),l&&f.addEventListener("resize",n.update,Kg),function(){a&&c.forEach(function(h){h.removeEventListener("scroll",n.update,Kg)}),l&&f.removeEventListener("resize",n.update,Kg)}}const Wne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hne,data:{}};var Gne={left:"right",right:"left",bottom:"top",top:"bottom"};function Ey(e){return e.replace(/left|right|bottom|top/g,function(t){return Gne[t]})}var Yne={start:"end",end:"start"};function uL(e){return e.replace(/start|end/g,function(t){return Yne[t]})}function Zj(e){var t=Ci(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Xj(e){return Wf(zl(e)).left+Zj(e).scrollLeft}function Kne(e,t){var n=Ci(e),r=zl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,f=0;if(i){a=i.width,o=i.height;var c=n9();(c||!c&&t==="fixed")&&(l=i.offsetLeft,f=i.offsetTop)}return{width:a,height:o,x:l+Xj(e),y:f}}function Zne(e){var t,n=zl(e),r=Zj(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Gu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Gu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Xj(e),f=-r.scrollTop;return as(i||n).direction==="rtl"&&(l+=Gu(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:f}}function Qj(e){var t=as(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function s9(e){return["html","body","#document"].indexOf(so(e))>=0?e.ownerDocument.body:Ji(e)&&Qj(e)?e:s9(B0(e))}function Rp(e,t){var n;t===void 0&&(t=[]);var r=s9(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ci(r),o=i?[a].concat(a.visualViewport||[],Qj(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(Rp(B0(o)))}function mT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xne(e,t){var n=Wf(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function cL(e,t,n){return t===e9?mT(Kne(e,n)):nc(t)?Xne(t,n):mT(Zne(zl(e)))}function Qne(e){var t=Rp(B0(e)),n=["absolute","fixed"].indexOf(as(e).position)>=0,r=n&&Ji(e)?Qm(e):e;return nc(r)?t.filter(function(i){return nc(i)&&r9(i,r)&&so(i)!=="body"}):[]}function Jne(e,t,n,r){var i=t==="clippingParents"?Qne(e):[].concat(t),a=[].concat(i,[n]),o=a[0],l=a.reduce(function(f,c){var h=cL(e,c,r);return f.top=Gu(h.top,f.top),f.right=Vy(h.right,f.right),f.bottom=Vy(h.bottom,f.bottom),f.left=Gu(h.left,f.left),f},cL(e,o,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function l9(e){var t=e.reference,n=e.element,r=e.placement,i=r?to(r):null,a=r?Gf(r):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,f;switch(i){case ei:f={x:o,y:t.y-n.height};break;case ea:f={x:o,y:t.y+t.height};break;case ta:f={x:t.x+t.width,y:l};break;case ti:f={x:t.x-n.width,y:l};break;default:f={x:t.x,y:t.y}}var c=i?Kj(i):null;if(c!=null){var h=c==="y"?"height":"width";switch(a){case Vf:f[c]=f[c]-(t[h]/2-n[h]/2);break;case Xp:f[c]=f[c]+(t[h]/2-n[h]/2);break}}return f}function Qp(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,l=n.boundary,f=l===void 0?bne:l,c=n.rootBoundary,h=c===void 0?e9:c,m=n.elementContext,g=m===void 0?Jh:m,x=n.altBoundary,_=x===void 0?!1:x,w=n.padding,O=w===void 0?0:w,S=a9(typeof O!="number"?O:o9(O,Xm)),T=g===Jh?_ne:Jh,A=e.rects.popper,j=e.elements[_?T:g],P=Jne(nc(j)?j:j.contextElement||zl(e.elements.popper),f,h,o),R=Wf(e.elements.reference),D=l9({reference:R,element:A,placement:i}),U=mT(Object.assign({},A,D)),z=g===Jh?U:R,F={top:P.top-z.top+S.top,bottom:z.bottom-P.bottom+S.bottom,left:P.left-z.left+S.left,right:z.right-P.right+S.right},V=e.modifiersData.offset;if(g===Jh&&V){var H=V[i];Object.keys(F).forEach(function(te){var ee=[ta,ea].indexOf(te)>=0?1:-1,re=[ei,ea].indexOf(te)>=0?"y":"x";F[te]+=H[re]*ee})}return F}function ere(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,l=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?t9:f,h=Gf(r),m=h?l?oL:oL.filter(function(_){return Gf(_)===h}):Xm,g=m.filter(function(_){return c.indexOf(_)>=0});g.length===0&&(g=m);var x=g.reduce(function(_,w){return _[w]=Qp(e,{placement:w,boundary:i,rootBoundary:a,padding:o})[to(w)],_},{});return Object.keys(x).sort(function(_,w){return x[_]-x[w]})}function tre(e){if(to(e)===Wj)return[];var t=Ey(e);return[uL(e),t,uL(t)]}function nre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!0:o,f=n.fallbackPlacements,c=n.padding,h=n.boundary,m=n.rootBoundary,g=n.altBoundary,x=n.flipVariations,_=x===void 0?!0:x,w=n.allowedAutoPlacements,O=t.options.placement,S=to(O),T=S===O,A=f||(T||!_?[Ey(O)]:tre(O)),j=[O].concat(A).reduce(function(ue,fe){return ue.concat(to(fe)===Wj?ere(t,{placement:fe,boundary:h,rootBoundary:m,padding:c,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),P=t.rects.reference,R=t.rects.popper,D=new Map,U=!0,z=j[0],F=0;F<j.length;F++){var V=j[F],H=to(V),te=Gf(V)===Vf,ee=[ei,ea].indexOf(H)>=0,re=ee?"width":"height",Q=Qp(t,{placement:V,boundary:h,rootBoundary:m,altBoundary:g,padding:c}),oe=ee?te?ta:ti:te?ea:ei;P[re]>R[re]&&(oe=Ey(oe));var le=Ey(oe),X=[];if(a&&X.push(Q[H]<=0),l&&X.push(Q[oe]<=0,Q[le]<=0),X.every(function(ue){return ue})){z=V,U=!1;break}D.set(V,X)}if(U)for(var $=_?3:1,G=function(fe){var de=j.find(function(Se){var k=D.get(Se);if(k)return k.slice(0,fe).every(function(B){return B})});if(de)return z=de,"break"},se=$;se>0;se--){var Z=G(se);if(Z==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const rre={name:"flip",enabled:!0,phase:"main",fn:nre,requiresIfExists:["offset"],data:{_skip:!1}};function fL(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dL(e){return[ei,ta,ea,ti].some(function(t){return e[t]>=0})}function ire(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Qp(t,{elementContext:"reference"}),l=Qp(t,{altBoundary:!0}),f=fL(o,r),c=fL(l,i,a),h=dL(f),m=dL(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const are={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ire};function ore(e,t,n){var r=to(e),i=[ti,ei].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],l=a[1];return o=o||0,l=(l||0)*i,[ti,ta].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function sre(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=t9.reduce(function(h,m){return h[m]=ore(m,t.rects,a),h},{}),l=o[t.placement],f=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const lre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sre};function ure(e){var t=e.state,n=e.name;t.modifiersData[n]=l9({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const cre={name:"popperOffsets",enabled:!0,phase:"read",fn:ure,data:{}};function fre(e){return e==="x"?"y":"x"}function dre(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!1:o,f=n.boundary,c=n.rootBoundary,h=n.altBoundary,m=n.padding,g=n.tether,x=g===void 0?!0:g,_=n.tetherOffset,w=_===void 0?0:_,O=Qp(t,{boundary:f,rootBoundary:c,padding:m,altBoundary:h}),S=to(t.placement),T=Gf(t.placement),A=!T,j=Kj(S),P=fre(j),R=t.modifiersData.popperOffsets,D=t.rects.reference,U=t.rects.popper,z=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,F=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(R){if(a){var te,ee=j==="y"?ei:ti,re=j==="y"?ea:ta,Q=j==="y"?"height":"width",oe=R[j],le=oe+O[ee],X=oe-O[re],$=x?-U[Q]/2:0,G=T===Vf?D[Q]:U[Q],se=T===Vf?-U[Q]:-D[Q],Z=t.elements.arrow,ue=x&&Z?Yj(Z):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:i9(),de=fe[ee],Se=fe[re],k=Pp(0,D[Q],ue[Q]),B=A?D[Q]/2-$-k-de-F.mainAxis:G-k-de-F.mainAxis,K=A?-D[Q]/2+$+k+Se+F.mainAxis:se+k+Se+F.mainAxis,ce=t.elements.arrow&&Qm(t.elements.arrow),ae=ce?j==="y"?ce.clientTop||0:ce.clientLeft||0:0,pe=(te=V==null?void 0:V[j])!=null?te:0,Te=oe+B-pe-ae,Fe=oe+K-pe,ge=Pp(x?Vy(le,Te):le,oe,x?Gu(X,Fe):X);R[j]=ge,H[j]=ge-oe}if(l){var je,Me=j==="x"?ei:ti,Be=j==="x"?ea:ta,Xe=R[P],qe=P==="y"?"height":"width",Ye=Xe+O[Me],ye=Xe-O[Be],we=[ei,ti].indexOf(S)!==-1,De=(je=V==null?void 0:V[P])!=null?je:0,Le=we?Ye:Xe-D[qe]-U[qe]-De+F.altAxis,Ie=we?Xe+D[qe]+U[qe]-De-F.altAxis:ye,Ge=x&&we?kne(Le,Xe,Ie):Pp(x?Le:Ye,Xe,x?Ie:ye);R[P]=Ge,H[P]=Ge-Xe}t.modifiersData[r]=H}}const hre={name:"preventOverflow",enabled:!0,phase:"main",fn:dre,requiresIfExists:["offset"]};function pre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mre(e){return e===Ci(e)||!Ji(e)?Zj(e):pre(e)}function vre(e){var t=e.getBoundingClientRect(),n=Hf(t.width)/e.offsetWidth||1,r=Hf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function gre(e,t,n){n===void 0&&(n=!1);var r=Ji(t),i=Ji(t)&&vre(t),a=zl(t),o=Wf(e,i,n),l={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((so(t)!=="body"||Qj(a))&&(l=mre(t)),Ji(t)?(f=Wf(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Xj(a))),{x:o.left+l.scrollLeft-f.x,y:o.top+l.scrollTop-f.y,width:o.width,height:o.height}}function yre(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var f=t.get(l);f&&i(f)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function bre(e){var t=yre(e);return Pne.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function _re(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xre(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var hL={placement:"bottom",modifiers:[],strategy:"absolute"};function pL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function wre(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?hL:i;return function(l,f,c){c===void 0&&(c=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},hL,a),modifiersData:{},elements:{reference:l,popper:f},attributes:{},styles:{}},m=[],g=!1,x={state:h,setOptions:function(S){var T=typeof S=="function"?S(h.options):S;w(),h.options=Object.assign({},a,h.options,T),h.scrollParents={reference:nc(l)?Rp(l):l.contextElement?Rp(l.contextElement):[],popper:Rp(f)};var A=bre(xre([].concat(r,h.options.modifiers)));return h.orderedModifiers=A.filter(function(j){return j.enabled}),_(),x.update()},forceUpdate:function(){if(!g){var S=h.elements,T=S.reference,A=S.popper;if(pL(T,A)){h.rects={reference:gre(T,Qm(A),h.options.strategy==="fixed"),popper:Yj(A)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(F){return h.modifiersData[F.name]=Object.assign({},F.data)});for(var j=0;j<h.orderedModifiers.length;j++){if(h.reset===!0){h.reset=!1,j=-1;continue}var P=h.orderedModifiers[j],R=P.fn,D=P.options,U=D===void 0?{}:D,z=P.name;typeof R=="function"&&(h=R({state:h,options:U,name:z,instance:x})||h)}}}},update:_re(function(){return new Promise(function(O){x.forceUpdate(),O(h)})}),destroy:function(){w(),g=!0}};if(!pL(l,f))return x;x.setOptions(c).then(function(O){!g&&c.onFirstUpdate&&c.onFirstUpdate(O)});function _(){h.orderedModifiers.forEach(function(O){var S=O.name,T=O.options,A=T===void 0?{}:T,j=O.effect;if(typeof j=="function"){var P=j({state:h,name:S,instance:x,options:A}),R=function(){};m.push(P||R)}})}function w(){m.forEach(function(O){return O()}),m=[]}return x}}var Ore=[Wne,cre,Vne,Nne,lre,rre,hre,Bne,are],Sre=wre({defaultModifiers:Ore}),aw,mL;function Ere(){if(mL)return aw;mL=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var l,f,c;if(Array.isArray(a)){if(l=a.length,l!=o.length)return!1;for(f=l;f--!==0;)if(!i(a[f],o[f]))return!1;return!0}var h;if(t&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!o.has(f.value[0]))return!1;for(h=a.entries();!(f=h.next()).done;)if(!i(f.value[1],o.get(f.value[0])))return!1;return!0}if(n&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!o.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(l=a.length,l!=o.length)return!1;for(f=l;f--!==0;)if(a[f]!==o[f])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof o.valueOf=="function")return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof o.toString=="function")return a.toString()===o.toString();if(c=Object.keys(a),l=c.length,l!==Object.keys(o).length)return!1;for(f=l;f--!==0;)if(!Object.prototype.hasOwnProperty.call(o,c[f]))return!1;if(e&&a instanceof Element)return!1;for(f=l;f--!==0;)if(!((c[f]==="_owner"||c[f]==="__v"||c[f]==="__o")&&a.$$typeof)&&!i(a[c[f]],o[c[f]]))return!1;return!0}return a!==a&&o!==o}return aw=function(o,l){try{return i(o,l)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},aw}var Tre=Ere();const Cre=Dt(Tre);var Are=[],jre=function(t,n,r){r===void 0&&(r={});var i=I.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Are},o=I.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],f=o[1],c=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(x){var _=x.state,w=Object.keys(_.elements);Hj.flushSync(function(){f({styles:iL(w.map(function(O){return[O,_.styles[O]||{}]})),attributes:iL(w.map(function(O){return[O,_.attributes[O]]}))})})},requires:["computeStyles"]}},[]),h=I.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Cre(i.current,g)?i.current||g:(i.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,c]),m=I.useRef();return aL(function(){m.current&&m.current.setOptions(h)},[h]),aL(function(){if(!(t==null||n==null)){var g=r.createPopper||Sre,x=g(t,n,h);return m.current=x,function(){x.destroy(),m.current=null}}},[t,n,r.createPopper]),{state:m.current?m.current.state:null,styles:l.styles,attributes:l.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},Pre=function(){},Rre=function(){return Promise.resolve(null)},Mre=[];function u9(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,a=e.modifiers,o=a===void 0?Mre:a,l=e.referenceElement,f=e.onFirstUpdate,c=e.innerRef,h=e.children,m=I.useContext(ZB),g=I.useState(null),x=g[0],_=g[1],w=I.useState(null),O=w[0],S=w[1];I.useEffect(function(){hT(c,x)},[c,x]);var T=I.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:f,modifiers:[].concat(o,[{name:"arrow",enabled:O!=null,options:{element:O}}])}},[n,i,f,o,O]),A=jre(l||m,x,T),j=A.state,P=A.styles,R=A.forceUpdate,D=A.update,U=I.useMemo(function(){return{ref:_,style:P.popper,placement:j?j.placement:n,hasPopperEscaped:j&&j.modifiersData.hide?j.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:j&&j.modifiersData.hide?j.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:S},forceUpdate:R||Pre,update:D||Rre}},[_,S,n,j,P,D,R]);return QB(h)(U)}var ow,vL;function Nre(){if(vL)return ow;vL=1;var e=function(){};return ow=e,ow}var Lre=Nre();const Dre=Dt(Lre);function kre(e){var t=e.children,n=e.innerRef,r=I.useContext(XB),i=I.useCallback(function(a){hT(n,a),JB(r,a)},[n,r]);return I.useEffect(function(){return function(){return hT(n,null)}},[]),I.useEffect(function(){Dre(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),QB(t)({ref:i})}var Jp=J.createContext({}),c9=J.createContext({});function vT(e){"@babel/helpers - typeof";return vT=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},vT(e)}var Ire=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function gT(){return gT=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},gT.apply(this,arguments)}function pl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $re(e,t){if(e==null)return{};var n=Ure(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ure(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Bre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fre(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,r.key,r)}}function zre(e,t,n){return t&&Fre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qre(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&&yT(e,t)}function yT(e,t){return yT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yT(e,t)}function Vre(e){var t=Wre();return function(){var r=Hy(e),i;if(t){var a=Hy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Hre(this,i)}}function Hre(e,t){if(t&&(vT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vl(e)}function vl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wre(){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 Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hy(e)}var Gre={a11y:W.bool,disabled:W.bool,direction:W.oneOf(["up","down","start","end","left","right"]),group:W.bool,isOpen:W.bool,nav:W.bool,active:W.bool,size:W.string,tag:Lt,toggle:W.func,children:W.node,className:W.string,cssModule:W.object,dropup:W.bool,inNavbar:W.bool,setActiveFromChild:W.bool,menuRole:W.oneOf(["listbox","menu"])},Yre={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Kre=[Vt.space,Vt.enter,Vt.up,Vt.down,Vt.end,Vt.home],ql=function(e){qre(n,e);var t=Vre(n);function n(r){var i;return Bre(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(vl(i)),i.handleDocumentClick=i.handleDocumentClick.bind(vl(i)),i.handleKeyDown=i.handleKeyDown.bind(vl(i)),i.removeEvents=i.removeEvents.bind(vl(i)),i.toggle=i.toggle.bind(vl(i)),i.handleMenuRef=i.handleMenuRef.bind(vl(i)),i.handleToggleRef=i.handleToggleRef.bind(vl(i)),i.containerRef=J.createRef(),i.menuRef=J.createRef(),i.toggleRef=J.createRef(),i}return zre(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==Vt.tab))){var a=this.getContainer(),o=this.getMenu(),l=this.getToggle();if(l){var f=l.contains(i.target),c=o&&o.contains(i.target)&&o!==i.target,h=!1;a&&(h=a.classList.contains("input-group")&&a.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((f&&!h||c)&&(i.type!=="keyup"||i.which===Vt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var a=this,o=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",l=this.getMenuCtrl()===i.target,f=Vt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||f&&!this.props.a11y||f&&!(o||l))&&((Kre.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(l)if([Vt.space,Vt.enter,Vt.up,Vt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var T;return(T=a.getMenuItems()[0])===null||T===void 0?void 0:T.focus()});else if(this.props.isOpen&&f){var c;i.preventDefault(),(c=this.getMenuItems()[0])===null||c===void 0||c.focus()}else this.props.isOpen&&i.which===Vt.esc&&this.toggle(i);if(this.props.isOpen&&o){if([Vt.tab,Vt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Vt.space,Vt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Vt.down,Vt.up].indexOf(i.which)>-1||[Vt.n,Vt.p].indexOf(i.which)>-1&&i.ctrlKey){var h=this.getMenuItems(),m=h.indexOf(i.target);Vt.up===i.which||Vt.p===i.which&&i.ctrlKey?m=m!==0?m-1:h.length-1:(Vt.down===i.which||Vt.n===i.which&&i.ctrlKey)&&(m=m===h.length-1?0:m+1),h[m].focus()}else if(Vt.end===i.which){var g=this.getMenuItems();g[g.length-1].focus()}else if(Vt.home===i.which){var x=this.getMenuItems();x[0].focus()}else if(i.which>=48&&i.which<=90)for(var _=this.getMenuItems(),w=String.fromCharCode(i.which).toLowerCase(),O=0;O<_.length;O+=1){var S=_[O].textContent&&_[O].textContent[0].toLowerCase();if(S===w){_[O].focus();break}}}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}},{key:"getItemType",value:function(){return this.props.menuRole==="listbox"?"option":"menuitem"}},{key:"getMenuItems",value:function(){var i=this.getMenu()||this.getContainer();return[].slice.call(i.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(a){return document.addEventListener(a,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(a){return document.removeEventListener(a,i.handleDocumentClick,!0)})}},{key:"toggle",value:function(i){return this.props.disabled?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i,a=this,o=Fl(this.props,["toggle","disabled","inNavbar","a11y"]),l=o.className,f=o.cssModule,c=o.direction,h=o.isOpen,m=o.group,g=o.size,x=o.nav,_=o.setActiveFromChild,w=o.active,O=o.tag;o.menuRole;var S=$re(o,Ire),T=O||(x?"li":"div"),A=!1;_&&J.Children.map(this.props.children[1].props.children,function(P){P&&P.props.active&&(A=!0)});var j=lt(mt(l,x&&w?"active":!1,_&&A?"active":!1,(i={"btn-group":m},pl(i,"btn-group-".concat(g),!!g),pl(i,"dropdown",!m),pl(i,"dropup",c==="up"),pl(i,"dropstart",c==="start"||c==="left"),pl(i,"dropend",c==="end"||c==="right"),pl(i,"show",h),pl(i,"nav-item",x),i)),f);return this.context.insideInputGroup?J.createElement(Jp.Provider,{value:this.getContextValue()},J.createElement(rL,null,J.Children.map(this.props.children,function(P){return J.cloneElement(P,{onKeyDown:a.handleKeyDown})}))):J.createElement(Jp.Provider,{value:this.getContextValue()},J.createElement(rL,null,J.createElement(T,gT({},S,pl({},typeof T=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:j}))))}}]),n}(J.Component);ql.propTypes=Gre;ql.defaultProps=Yre;ql.contextType=c9;function bT(e){"@babel/helpers - typeof";return bT=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},bT(e)}var Zre=["className","cssModule","divider","tag","header","active","text"];function _T(){return _T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}function Xre(e,t){if(e==null)return{};var n=Qre(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Jre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eie(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,r.key,r)}}function tie(e,t,n){return t&&eie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nie(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&&xT(e,t)}function xT(e,t){return xT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xT(e,t)}function rie(e){var t=aie();return function(){var r=Wy(e),i;if(t){var a=Wy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return iie(this,i)}}function iie(e,t){if(t&&(bT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wT(e)}function wT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aie(){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 Wy(e){return Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wy(e)}var oie={children:W.node,active:W.bool,disabled:W.bool,divider:W.bool,tag:Lt,header:W.bool,onClick:W.func,className:W.string,cssModule:W.object,toggle:W.bool,text:W.bool},Qe=function(e){nie(n,e);var t=rie(n);function n(r){var i;return Jre(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(wT(i)),i.getTabIndex=i.getTabIndex.bind(wT(i)),i}return tie(n,[{key:"onClick",value:function(i){var a,o=this.props,l=o.disabled,f=o.header,c=o.divider,h=o.text;if(l||f||c||h){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((a=this.props.toggle)!==null&&a!==void 0)||a)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,a=i.disabled,o=i.header,l=i.divider,f=i.text;return a||o||l||f?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),a=i>-1?this.getRole():void 0,o=Fl(this.props,["toggle"]),l=o.className,f=o.cssModule,c=o.divider,h=o.tag,m=h===void 0?"button":h,g=o.header,x=o.active,_=o.text,w=Xre(o,Zre),O=lt(mt(l,{disabled:w.disabled,"dropdown-item":!c&&!g&&!_,active:x,"dropdown-header":g,"dropdown-divider":c,"dropdown-item-text":_}),f);return m==="button"&&(g?m="h6":c?m="div":w.href?m="a":_&&(m="span")),J.createElement(m,_T({type:m==="button"&&(w.onClick||this.props.toggle)?"button":void 0},w,{tabIndex:i,role:a,className:O,onClick:this.onClick}))}}]),n}(J.Component);Qe.propTypes=oie;Qe.contextType=Jp;function OT(e){"@babel/helpers - typeof";return OT=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},OT(e)}var sie=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function Gy(){return Gy=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},Gy.apply(this,arguments)}function gL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gL(Object(n),!0).forEach(function(r){lie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uie(e){return hie(e)||die(e)||fie(e)||cie()}function cie(){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 fie(e,t){if(e){if(typeof e=="string")return ST(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 ST(e,t)}}function die(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hie(e){if(Array.isArray(e))return ST(e)}function ST(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 pie(e,t){if(e==null)return{};var n=mie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function vie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gie(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,r.key,r)}}function yie(e,t,n){return t&&gie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bie(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&&ET(e,t)}function ET(e,t){return ET=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ET(e,t)}function _ie(e){var t=Oie();return function(){var r=Yy(e),i;if(t){var a=Yy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return xie(this,i)}}function xie(e,t){if(t&&(OT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wie(e)}function wie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oie(){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 Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yy(e)}var Sie={tag:Lt,children:W.node.isRequired,dark:W.bool,end:W.bool,flip:W.bool,modifiers:W.array,className:W.string,cssModule:W.object,style:W.object,persist:W.bool,strategy:W.string,container:qf,updateOnSelect:W.bool,right:qB(W.bool,'Please use "end" instead.')},Eie={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},Vl=function(e){bie(n,e);var t=_ie(n);function n(){return vie(this,n),t.apply(this,arguments)}return yie(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,a=this.props,o=a.className,l=a.cssModule,f=a.dark,c=a.end,h=a.right,m=a.tag,g=m===void 0?"div":m,x=a.flip,_=x===void 0?!0:x,w=a.modifiers,O=w===void 0?[]:w,S=a.persist,T=a.strategy,A=a.container,j=a.updateOnSelect,P=pie(a,sie),R=lt(mt(o,"dropdown-menu",{"dropdown-menu-dark":f,"dropdown-menu-end":c||h,show:this.context.isOpen}),l),D=g;if(S||this.context.isOpen&&!this.context.inNavbar){var U=Eie[this.context.direction]||"bottom",z=c||h?"end":"start",F="".concat(U,"-").concat(z),V=[].concat(uie(O),[{name:"flip",enabled:!!_}]),H={};S&&(H.display="block",H.visibility=this.context.isOpen?"visible":"hidden");var te=J.createElement(u9,{placement:F,modifiers:V,strategy:T},function(re){var Q=re.ref,oe=re.style,le=re.placement,X=re.update,$=sw(sw(sw({},i.props.style),H),oe),G=function(Z){Q(Z);var ue=i.context.onMenuRef;ue&&ue(Z)};return J.createElement(D,Gy({tabIndex:"-1",role:i.getRole(),ref:G},P,{style:$,"aria-hidden":!i.context.isOpen,className:R,"data-popper-placement":le,onClick:function(){return j&&X()}}))});return A?Bu.createPortal(te,Zp(A)):te}var ee=this.context.onMenuRef;return J.createElement(D,Gy({tabIndex:"-1",role:this.getRole()},P,{ref:ee,"aria-hidden":!this.context.isOpen,className:R,"data-popper-placement":P.placement,"data-bs-popper":"static"}))}}]),n}(J.Component);Vl.propTypes=Sie;Vl.contextType=Jp;function TT(e){"@babel/helpers - typeof";return TT=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},TT(e)}var Tie=["className","color","cssModule","caret","split","nav","tag","innerRef"];function CT(){return CT=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},CT.apply(this,arguments)}function Cie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aie(e,t){if(e==null)return{};var n=jie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Pie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rie(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,r.key,r)}}function Mie(e,t,n){return t&&Rie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nie(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&&AT(e,t)}function AT(e,t){return AT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AT(e,t)}function Lie(e){var t=kie();return function(){var r=Ky(e),i;if(t){var a=Ky(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Die(this,i)}}function Die(e,t){if(t&&(TT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f9(e)}function f9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kie(){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 Ky(e){return Ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ky(e)}var Iie={caret:W.bool,color:W.string,children:W.node,className:W.string,cssModule:W.object,disabled:W.bool,onClick:W.func,"aria-haspopup":W.bool,split:W.bool,tag:Lt,nav:W.bool,innerRef:W.oneOfType([W.object,W.string,W.func])},$ie={color:"secondary","aria-haspopup":!0},ps=function(e){Nie(n,e);var t=Lie(n);function n(r){var i;return Pie(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(f9(i)),i}return Mie(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,a=this.props,o=a.className,l=a.color,f=a.cssModule,c=a.caret,h=a.split,m=a.nav,g=a.tag,x=a.innerRef,_=Aie(a,Tie),w=_["aria-label"]||"Toggle Dropdown",O=lt(mt(o,{"dropdown-toggle":c||h,"dropdown-toggle-split":h,"nav-link":m}),f),S=typeof _.children<"u"?_.children:J.createElement("span",{className:"visually-hidden"},w),T;m&&!g?(T="a",_.href="#"):g?T=g:(T=yt,_.color=l,_.cssModule=f);var A=function(P){var R=P.ref,D=function(z){R(z);var F=i.context.onToggleRef;F&&F(z)};return J.createElement(T,CT({},_,Cie({},typeof T=="string"?"ref":"innerRef",D),{className:O,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:S}))};return this.context.inNavbar?J.createElement(J.Fragment,null,A({ref:this.context.onToggleRef})):J.createElement(kre,{innerRef:x},A)}}]),n}(J.Component);ps.propTypes=Iie;ps.defaultProps=$ie;ps.contextType=Jp;function Uie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jT(e,t){return jT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},jT(e,t)}function Bie(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jT(e,t)}const yL={disabled:!1},d9=J.createContext(null);var Fie=function(t){return t.scrollTop},gp="unmounted",Pu="exited",Ru="entering",Of="entered",PT="exiting",ri=function(e){Bie(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,l=o&&!o.isMounting?r.enter:r.appear,f;return a.appearStatus=null,r.in?l?(f=Pu,a.appearStatus=Ru):f=Of:r.unmountOnExit||r.mountOnEnter?f=gp:f=Pu,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===gp?{status:Pu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Ru&&o!==Of&&(a=Ru):(o===Ru||o===Of)&&(a=PT)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ru){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Bu.findDOMNode(this);o&&Fie(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pu&&this.setState({status:gp})},n.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,f=this.props.nodeRef?[l]:[Bu.findDOMNode(this),l],c=f[0],h=f[1],m=this.getTimeouts(),g=l?m.appear:m.enter;if(!i&&!o||yL.disabled){this.safeSetState({status:Of},function(){a.props.onEntered(c)});return}this.props.onEnter(c,h),this.safeSetState({status:Ru},function(){a.props.onEntering(c,h),a.onTransitionEnd(g,function(){a.safeSetState({status:Of},function(){a.props.onEntered(c,h)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:Bu.findDOMNode(this);if(!a||yL.disabled){this.safeSetState({status:Pu},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:PT},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Pu},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Bu.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=f[0],h=f[1];this.props.addEndListener(c,h)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===gp)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Uie(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(d9.Provider,{value:null},typeof o=="function"?o(i,l):J.cloneElement(J.Children.only(o),l))},t}(J.Component);ri.contextType=d9;ri.propTypes={};function df(){}ri.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:df,onEntering:df,onEntered:df,onExit:df,onExiting:df,onExited:df};ri.UNMOUNTED=gp;ri.EXITED=Pu;ri.ENTERING=Ru;ri.ENTERED=Of;ri.EXITING=PT;var zie=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Zy(){return Zy=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},Zy.apply(this,arguments)}function qie(e,t){if(e==null)return{};var n=Vie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function bL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function em(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bL(Object(n),!0).forEach(function(r){Hie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wie=em(em({},ri.propTypes),{},{children:W.oneOfType([W.arrayOf(W.node),W.node]),tag:Lt,baseClass:W.string,baseClassActive:W.string,className:W.string,cssModule:W.object,innerRef:W.oneOfType([W.object,W.string,W.func])}),_L=em(em({},ri.defaultProps),{},{timeout:Fy.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Qr(e){var t=I.useRef(null),n=Fj(_L,e),r=n.tag,i=r===void 0?"div":r,a=n.baseClass,o=a===void 0?"fade":a,l=n.baseClassActive,f=l===void 0?"show":l,c=n.className,h=n.cssModule,m=n.children,g=n.innerRef,x=g===void 0?t:g,_=qie(n,zie),w=zB(em({defaultProps:_L},_),zy),O=Fl(_,zy);return J.createElement(ri,Zy({nodeRef:x},w),function(S){var T=S==="entered",A=lt(mt(c,o,T&&f),h);return J.createElement(i,Zy({className:A},O,{ref:x}),m)})}Qr.propTypes=Wie;function RT(e){"@babel/helpers - typeof";return RT=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},RT(e)}var Gie=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],hf;function Xy(){return Xy=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},Xy.apply(this,arguments)}function Yie(e,t){if(e==null)return{};var n=Kie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Zie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xie(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,r.key,r)}}function Qie(e,t,n){return t&&Xie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jie(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&&MT(e,t)}function MT(e,t){return MT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MT(e,t)}function eae(e){var t=nae();return function(){var r=Qy(e),i;if(t){var a=Qy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return tae(this,i)}}function tae(e,t){if(t&&(RT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h9(e)}function h9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nae(){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 Qy(e){return Qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qy(e)}function xL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(n),!0).forEach(function(r){Af(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rae=Yf(Yf({},ri.propTypes),{},{horizontal:W.bool,isOpen:W.bool,children:W.oneOfType([W.arrayOf(W.node),W.node]),tag:Lt,className:W.node,navbar:W.bool,cssModule:W.object,innerRef:W.shape({current:W.object})}),iae=Yf(Yf({},ri.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Fy.Collapse}),aae=(hf={},Af(hf,Yg.ENTERING,"collapsing"),Af(hf,Yg.ENTERED,"collapse show"),Af(hf,Yg.EXITING,"collapsing"),Af(hf,Yg.EXITED,"collapse"),hf);function oae(e){return aae[e]||"collapse"}var Jj=function(e){Jie(n,e);var t=eae(n);function n(r){var i;return Zie(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||J.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(a){i[a]=i[a].bind(h9(i))}),i}return Qie(n,[{key:"onEntering",value:function(i,a){var o=this.getNode();this.setState({dimension:this.getDimension(o)}),this.props.onEntering(o,a)}},{key:"onEntered",value:function(i,a){var o=this.getNode();this.setState({dimension:null}),this.props.onEntered(o,a)}},{key:"onExit",value:function(){var i=this.getNode();this.setState({dimension:this.getDimension(i)}),this.props.onExit(i)}},{key:"onExiting",value:function(){var i=this.getNode();this.getDimension(i),this.setState({dimension:0}),this.props.onExiting(i)}},{key:"onExited",value:function(){var i=this.getNode();this.setState({dimension:null}),this.props.onExited(i)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(i){return this.props.horizontal?i.scrollWidth:i.scrollHeight}},{key:"render",value:function(){var i=this,a=this.props,o=a.tag,l=a.horizontal,f=a.isOpen,c=a.className,h=a.navbar,m=a.cssModule,g=a.children;a.innerRef;var x=Yie(a,Gie),_=this.state.dimension,w=zB(x,zy),O=Fl(x,zy);return J.createElement(ri,Xy({},w,{in:f,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(S){var T=oae(S),A=lt(mt(c,l&&"collapse-horizontal",T,h&&"navbar-collapse"),m),j=_===null?null:Af({},l?"width":"height",_);return J.createElement(o,Xy({},O,{style:Yf(Yf({},O.style),j),className:A,ref:i.nodeRef}),g)})}}]),n}(I.Component);Jj.propTypes=rae;Jj.defaultProps=iae;var sae=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function NT(){return NT=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},NT.apply(this,arguments)}function lae(e,t){if(e==null)return{};var n=uae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cae={body:W.bool,className:W.string,color:W.string,cssModule:W.object,innerRef:W.oneOfType([W.object,W.string,W.func]),inverse:W.bool,outline:W.bool,tag:Lt};function Ri(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,a=e.inverse,o=e.outline,l=e.tag,f=l===void 0?"div":l,c=e.innerRef,h=lae(e,sae),m=lt(mt(t,"card",a?"text-white":!1,i?"card-body":!1,r?"".concat(o?"border":"bg","-").concat(r):!1),n);return J.createElement(f,NT({},h,{className:m,ref:c}))}Ri.propTypes=cae;var fae=["className","cssModule","innerRef","tag"];function LT(){return LT=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},LT.apply(this,arguments)}function dae(e,t){if(e==null)return{};var n=hae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var pae={className:W.string,cssModule:W.object,innerRef:W.oneOfType([W.object,W.string,W.func]),tag:Lt};function Jm(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,a=i===void 0?"div":i,o=dae(e,fae),l=lt(mt(t,"card-body"),n);return J.createElement(a,LT({},o,{className:l,ref:r}))}Jm.propTypes=pae;var mae=["className","cssModule","tag"];function DT(){return DT=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},DT.apply(this,arguments)}function vae(e,t){if(e==null)return{};var n=gae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var yae={className:W.string,cssModule:W.object,tag:Lt};function p9(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=vae(e,mae),o=lt(mt(t,"card-footer"),n);return J.createElement(i,DT({},a,{className:o}))}p9.propTypes=yae;var bae=["className","cssModule","tag"];function kT(){return kT=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},kT.apply(this,arguments)}function _ae(e,t){if(e==null)return{};var n=xae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var wae={className:W.string,cssModule:W.object,tag:Lt};function ev(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=_ae(e,bae),o=lt(mt(t,"card-header"),n);return J.createElement(i,kT({},a,{className:o}))}ev.propTypes=wae;var Oae=["className","cssModule","tag"];function IT(){return IT=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},IT.apply(this,arguments)}function Sae(e,t){if(e==null)return{};var n=Eae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Eae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tae={className:W.string,cssModule:W.object,tag:Lt};function m9(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,a=Sae(e,Oae),o=lt(mt(t,"card-text"),n);return J.createElement(i,IT({},a,{className:o}))}m9.propTypes=Tae;var Cae=["className","cssModule","tag"];function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$T.apply(this,arguments)}function Aae(e,t){if(e==null)return{};var n=jae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Pae={className:W.string,cssModule:W.object,tag:Lt};function v9(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=Aae(e,Cae),o=lt(mt(t,"card-title"),n);return J.createElement(i,$T({},a,{className:o}))}v9.propTypes=Pae;function UT(e){"@babel/helpers - typeof";return UT=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},UT(e)}var Rae=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function BT(){return BT=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},BT.apply(this,arguments)}function wL(e){return Dae(e)||Lae(e)||Nae(e)||Mae()}function Mae(){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 Nae(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 Lae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dae(e){if(Array.isArray(e))return FT(e)}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 kae(e,t){if(e==null)return{};var n=Iae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Iae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OL(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,r.key,r)}}function Uae(e,t,n){return t&&OL(e.prototype,t),n&&OL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bae(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&&zT(e,t)}function zT(e,t){return zT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zT(e,t)}function Fae(e){var t=qae();return function(){var r=Jy(e),i;if(t){var a=Jy(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return zae(this,i)}}function zae(e,t){if(t&&(UT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yp(e)}function yp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qae(){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 Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jy(e)}function SL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SL(Object(n),!0).forEach(function(r){Vae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hae(){}var Wae={children:W.oneOfType([W.node,W.func]).isRequired,popperClassName:W.string,placement:W.string,placementPrefix:W.string,arrowClassName:W.string,hideArrow:W.bool,tag:Lt,isOpen:W.bool,cssModule:W.object,offset:W.arrayOf(W.number),fallbackPlacements:W.array,flip:W.bool,container:qf,target:qf.isRequired,modifiers:W.array,strategy:W.string,boundariesElement:W.oneOfType([W.string,Uj]),onClosed:W.func,fade:W.bool,transition:W.shape(Qr.propTypes)},Gae={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Hae,fade:!0,transition:Ty({},Qr.defaultProps)},eP=function(e){Bae(n,e);var t=Fae(n);function n(r){var i;return $ae(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(yp(i)),i.getTargetNode=i.getTargetNode.bind(yp(i)),i.getRef=i.getRef.bind(yp(i)),i.onClosed=i.onClosed.bind(yp(i)),i.state={isOpen:r.isOpen},i}return Uae(n,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return Zp(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Zp(i):i}},{key:"renderChildren",value:function(){var i=this.props,a=i.cssModule,o=i.children,l=i.isOpen,f=i.flip;i.target;var c=i.offset,h=i.fallbackPlacements,m=i.placementPrefix,g=i.arrowClassName,x=i.hideArrow,_=i.popperClassName,w=i.tag;i.container;var O=i.modifiers,S=i.strategy,T=i.boundariesElement;i.onClosed;var A=i.fade,j=i.transition,P=i.placement,R=kae(i,Rae),D=lt(mt("arrow",g),a),U=lt(mt(_,m?"".concat(m,"-auto"):""),this.props.cssModule),z=O.map(function(te){return te.name}),F=[{name:"offset",options:{offset:c}},{name:"flip",enabled:f,options:{fallbackPlacements:h}},{name:"preventOverflow",options:{boundary:T}}].filter(function(te){return!z.includes(te.name)}),V=[].concat(wL(F),wL(O)),H=Ty(Ty(Ty({},Qr.defaultProps),j),{},{baseClass:A?j.baseClass:"",timeout:A?j.timeout:0});return J.createElement(Qr,BT({},H,R,{in:l,onExited:this.onClosed,tag:w}),J.createElement(u9,{referenceElement:this.targetNode,modifiers:V,placement:P,strategy:S},function(te){var ee=te.ref,re=te.style,Q=te.placement,oe=te.isReferenceHidden,le=te.arrowProps,X=te.update;return J.createElement("div",{ref:ee,style:re,className:U,"data-popper-placement":Q,"data-popper-reference-hidden":oe?"true":void 0},typeof o=="function"?o({update:X}):o,!x&&J.createElement("span",{ref:le.ref,className:D,style:le.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Bu.createPortal(J.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,a){return i.isOpen&&!a.isOpen?{isOpen:i.isOpen}:null}}]),n}(J.Component);eP.propTypes=Wae;eP.defaultProps=Gae;function qT(){return qT=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},qT.apply(this,arguments)}function tm(e){"@babel/helpers - typeof";return tm=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},tm(e)}function Yae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EL(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,r.key,r)}}function Kae(e,t,n){return t&&EL(e.prototype,t),n&&EL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zae(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&&VT(e,t)}function VT(e,t){return VT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VT(e,t)}function Xae(e){var t=Jae();return function(){var r=eb(e),i;if(t){var a=eb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Qae(this,i)}}function Qae(e,t){if(t&&(tm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bi(e)}function bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jae(){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 eb(e){return eb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eb(e)}var tP={children:W.oneOfType([W.node,W.func]),placement:W.oneOf(yte),target:qf.isRequired,container:qf,isOpen:W.bool,disabled:W.bool,hideArrow:W.bool,boundariesElement:W.oneOfType([W.string,Uj]),className:W.string,innerClassName:W.string,arrowClassName:W.string,popperClassName:W.string,cssModule:W.object,toggle:W.func,autohide:W.bool,placementPrefix:W.string,delay:W.oneOfType([W.shape({show:W.number,hide:W.number}),W.number]),modifiers:W.array,strategy:W.string,offset:W.arrayOf(W.number),innerRef:W.oneOfType([W.func,W.string,W.object]),trigger:W.string,fade:W.bool,flip:W.bool},g9={show:0,hide:50},eoe={isOpen:!1,hideArrow:!1,autohide:!1,delay:g9,toggle:function(){},trigger:"click",fade:!0};function y9(e,t){return t&&(e===t||t.contains(e))}function TL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return y9(e,n)})[0]}var nP=function(e){Zae(n,e);var t=Xae(n);function n(r){var i;return Yae(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(bi(i)),i.handleDocumentClick=i.handleDocumentClick.bind(bi(i)),i.removeTargetEvents=i.removeTargetEvents.bind(bi(i)),i.toggle=i.toggle.bind(bi(i)),i.showWithDelay=i.showWithDelay.bind(bi(i)),i.hideWithDelay=i.hideWithDelay.bind(bi(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(bi(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(bi(i)),i.show=i.show.bind(bi(i)),i.hide=i.hide.bind(bi(i)),i.onEscKeyDown=i.onEscKeyDown.bind(bi(i)),i.getRef=i.getRef.bind(bi(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return Kae(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var a=this.props.trigger.split(" ");a.indexOf("legacy")>-1&&(this.props.isOpen||TL(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!y9(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):a.indexOf("click")>-1&&TL(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var a=this.props.innerRef;a&&(typeof a=="function"?a(i):tm(a)==="object"&&(a.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var a=this.props.delay;return tm(a)==="object"?isNaN(a[i])?g9[i]:a[i]:a}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var a=this._targets.indexOf(i);return a>=0?this._targets[a]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var a=i.composedPath();this.currentTargetElement=a&&a[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,a,o){this._targets.forEach(function(l){l.addEventListener(i,a,o)})}},{key:"removeEventOnTargets",value:function(i,a,o){this._targets.forEach(function(l){l.removeEventListener(i,a,o)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var i=Zp(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var a=this.currentTargetElement||this._targets[0];if(!a)return null;var o=this.props,l=o.className,f=o.cssModule,c=o.innerClassName,h=o.isOpen,m=o.hideArrow,g=o.boundariesElement,x=o.placement,_=o.placementPrefix,w=o.arrowClassName,O=o.popperClassName,S=o.container,T=o.modifiers,A=o.strategy,j=o.offset,P=o.fade,R=o.flip,D=o.children,U=Fl(this.props,Object.keys(tP)),z=lt(O,f),F=lt(c,f);return J.createElement(eP,{className:l,target:a,isOpen:h,hideArrow:m,boundariesElement:g,placement:x,placementPrefix:_,arrowClassName:w,popperClassName:z,container:S,modifiers:T,strategy:A,offset:j,cssModule:f,fade:P,flip:R},function(V){var H=V.update;return J.createElement("div",qT({},U,{ref:i.getRef,className:F,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof D=="function"?D({update:H}):D)})}}],[{key:"getDerivedStateFromProps",value:function(i,a){return i.isOpen&&!a.isOpen?{isOpen:i.isOpen}:null}}]),n}(J.Component);nP.propTypes=tP;nP.defaultProps=eoe;var toe=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function tb(){return tb=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},tb.apply(this,arguments)}function CL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CL(Object(n),!0).forEach(function(r){noe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function noe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function roe(e,t){if(e==null)return{};var n=ioe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ioe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var aoe={animated:W.bool,bar:W.bool,barAriaLabelledBy:W.string,barAriaValueText:W.string,barClassName:W.string,barStyle:W.object,children:W.node,className:W.string,cssModule:W.object,color:W.string,max:W.oneOfType([W.string,W.number]),min:W.oneOfType([W.string,W.number]),multi:W.bool,striped:W.bool,style:W.object,tag:Lt,value:W.oneOfType([W.string,W.number])};function b9(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,a=e.value,o=a===void 0?0:a,l=e.min,f=l===void 0?0:l,c=e.max,h=c===void 0?100:c,m=e.animated,g=e.striped,x=e.color,_=e.bar,w=e.multi,O=e.tag,S=O===void 0?"div":O,T=e.style,A=T===void 0?{}:T,j=e.barStyle,P=j===void 0?{}:j,R=e.barAriaValueText,D=e.barAriaLabelledBy,U=roe(e,toe),z=J4(o)/J4(h)*100,F=lt(mt(n,"progress"),i),V=lt(mt("progress-bar",_&&n||r,m?"progress-bar-animated":null,x?"bg-".concat(x):null,g||m?"progress-bar-striped":null),i),H={className:V,style:lw(lw(lw({},_?A:{}),P),{},{width:"".concat(z,"%")}),role:"progressbar","aria-valuenow":o,"aria-valuemin":f,"aria-valuemax":h,"aria-valuetext":R,"aria-labelledby":D,children:t};return _?J.createElement(S,tb({},U,H)):J.createElement(S,tb({},U,{style:A,className:F}),w?t:J.createElement("div",H))}b9.propTypes=aoe;function HT(e){"@babel/helpers - typeof";return HT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HT(e)}function ooe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function soe(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,r.key,r)}}function loe(e,t,n){return t&&soe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uoe(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&&WT(e,t)}function WT(e,t){return WT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},WT(e,t)}function coe(e){var t=hoe();return function(){var r=nb(e),i;if(t){var a=nb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return foe(this,i)}}function foe(e,t){if(t&&(HT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return doe(e)}function doe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hoe(){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 nb(e){return nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nb(e)}var poe={children:W.node.isRequired,node:W.any},_9=function(e){uoe(n,e);var t=coe(n);function n(){return ooe(this,n),t.apply(this,arguments)}return loe(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return Bj?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Bu.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(J.Component);_9.propTypes=poe;function GT(e){"@babel/helpers - typeof";return GT=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},GT(e)}function AL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AL(Object(n),!0).forEach(function(r){Sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mp(){return Mp=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},Mp.apply(this,arguments)}function Sf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function moe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function voe(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,r.key,r)}}function goe(e,t,n){return t&&voe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yoe(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&&YT(e,t)}function YT(e,t){return YT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},YT(e,t)}function boe(e){var t=xoe();return function(){var r=rb(e),i;if(t){var a=rb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return _oe(this,i)}}function _oe(e,t){if(t&&(GT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gi(e)}function Gi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xoe(){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 rb(e){return rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rb(e)}function ib(){}var jL=W.shape(Qr.propTypes),x9={autoFocus:W.bool,backdrop:W.oneOfType([W.bool,W.oneOf(["static"])]),backdropClassName:W.string,backdropTransition:jL,centered:W.bool,children:W.node,contentClassName:W.string,className:W.string,container:qf,cssModule:W.object,external:W.node,fade:W.bool,fullscreen:W.oneOfType([W.bool,W.oneOf(["sm","md","lg","xl"])]),innerRef:W.oneOfType([W.object,W.string,W.func]),isOpen:W.bool,keyboard:W.bool,labelledBy:W.string,modalClassName:W.string,modalTransition:jL,onClosed:W.func,onEnter:W.func,onExit:W.func,onOpened:W.func,returnFocusAfterClose:W.bool,role:W.string,scrollable:W.bool,size:W.string,toggle:W.func,trapFocus:W.bool,unmountOnClose:W.bool,wrapClassName:W.string,zIndex:W.oneOfType([W.number,W.string])},woe=Object.keys(x9),Ooe={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:ib,onClosed:ib,modalTransition:{timeout:Fy.Modal},backdropTransition:{mountOnEnter:!0,timeout:Fy.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},ii=function(e){yoe(n,e);var t=boe(n);function n(r){var i;return moe(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Gi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Gi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Gi(i)),i.handleEscape=i.handleEscape.bind(Gi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Gi(i)),i.handleTab=i.handleTab.bind(Gi(i)),i.onOpened=i.onOpened.bind(Gi(i)),i.onClosed=i.onClosed.bind(Gi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Gi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Gi(i)),i.trapFocus=i.trapFocus.bind(Gi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return goe(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isOpen,o=i.autoFocus,l=i.onEnter;a&&(this.init(),this.setState({isOpen:!0}),o&&this.setFocus()),l&&l(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,a){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!a.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var a=this._dialog?this._dialog.parentNode:null;if(a&&i.target===a&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;a&&i.target===a&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var a=this.getFocusableChildren(),o=a.length;if(o!==0){for(var l=this.getFocusedChild(),f=0,c=0;c<o;c+=1)if(a[c]===l){f=c;break}i.shiftKey&&f===0?(i.preventDefault(),a[o-1].focus()):!i.shiftKey&&f===o-1&&(i.preventDefault(),a[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===Vt.esc&&this.props.toggle&&(this.props.keyboard?(i.preventDefault(),i.stopPropagation(),this.props.toggle(i)):this.props.backdrop==="static"&&(i.preventDefault(),i.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var i=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(function(){i.setState({showStaticBackdropAnimation:!1})},100)}},{key:"onOpened",value:function(i,a){this.props.onOpened(),(this.props.modalTransition.onEntered||ib)(i,a)}},{key:"onClosed",value:function(i){var a=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||ib)(i),a&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(wte.join(", "))}},{key:"getFocusedChild",value:function(){var i,a=this.getFocusableChildren();try{i=document.activeElement}catch{i=a[0]}return i}},{key:"trapFocus",value:function(i){if(this.props.trapFocus&&this._element&&!(this._dialog&&this._dialog.parentNode===i.target)&&!(this.modalIndex<n.openCount-1)){for(var a=this.getFocusableChildren(),o=0;o<a.length;o+=1)if(a[o]===i.target)return;a.length>0&&(i.preventDefault(),i.stopPropagation(),a[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Zp(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=pte(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),mte(),n.openCount===0&&(document.body.className=mt(document.body.className,lt("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=lt("modal-open",this.props.cssModule),a=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(a," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),FB(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,a=this,o=Fl(this.props,woe),l="modal-dialog";return J.createElement("div",Mp({},o,{className:lt(mt(l,this.props.className,(i={},Sf(i,"modal-".concat(this.props.size),this.props.size),Sf(i,"".concat(l,"-centered"),this.props.centered),Sf(i,"".concat(l,"-scrollable"),this.props.scrollable),Sf(i,"modal-fullscreen",this.props.fullscreen===!0),Sf(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(c){a._dialog=c}}),J.createElement("div",{className:lt(mt("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var a=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=a?"none":"block";var o=this.props,l=o.wrapClassName,f=o.modalClassName,c=o.backdropClassName,h=o.cssModule,m=o.isOpen,g=o.backdrop,x=o.role,_=o.labelledBy,w=o.external,O=o.innerRef,S={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":_,"aria-modal":!0,role:x,tabIndex:"-1"},T=this.props.fade,A=pf(pf(pf({},Qr.defaultProps),this.props.modalTransition),{},{baseClass:T?this.props.modalTransition.baseClass:"",timeout:T?this.props.modalTransition.timeout:0}),j=pf(pf(pf({},Qr.defaultProps),this.props.backdropTransition),{},{baseClass:T?this.props.backdropTransition.baseClass:"",timeout:T?this.props.backdropTransition.timeout:0}),P=g&&(T?J.createElement(Qr,Mp({},j,{in:m&&!!g,cssModule:h,className:lt(mt("modal-backdrop",c),h)})):J.createElement("div",{className:lt(mt("modal-backdrop","show",c),h)}));return J.createElement(_9,{node:this._element},J.createElement("div",{className:lt(l)},J.createElement(Qr,Mp({},S,A,{in:m,onEntered:this.onOpened,onExited:this.onClosed,cssModule:h,className:lt(mt("modal",f,this.state.showStaticBackdropAnimation&&"modal-static"),h),innerRef:O}),w,this.renderModalDialog()),P))}return null}}]),n}(J.Component);ii.propTypes=x9;ii.defaultProps=Ooe;ii.openCount=0;ii.originalBodyOverflow=null;var Soe=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function KT(){return KT=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},KT.apply(this,arguments)}function Eoe(e,t){if(e==null)return{};var n=Toe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Toe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Coe={children:W.node,className:W.string,close:W.object,closeAriaLabel:W.string,cssModule:W.object,tag:Lt,toggle:W.func,wrapTag:Lt};function po(e){var t,n=e.className,r=e.cssModule,i=e.children,a=e.toggle,o=e.tag,l=o===void 0?"h5":o,f=e.wrapTag,c=f===void 0?"div":f,h=e.closeAriaLabel,m=h===void 0?"Close":h,g=e.close,x=Eoe(e,Soe),_=lt(mt(n,"modal-header"),r);return!g&&a&&(t=J.createElement("button",{type:"button",onClick:a,className:lt("btn-close",r),"aria-label":m})),J.createElement(c,KT({},x,{className:_}),J.createElement(l,{className:lt("modal-title",r)},i),g||t)}po.propTypes=Coe;var Aoe=["className","cssModule","tag"];function ZT(){return ZT=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},ZT.apply(this,arguments)}function joe(e,t){if(e==null)return{};var n=Poe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Poe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Roe={className:W.string,cssModule:W.object,tag:Lt};function Aa(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=joe(e,Aoe),o=lt(mt(t,"modal-body"),n);return J.createElement(i,ZT({},a,{className:o}))}Aa.propTypes=Roe;var Moe=["className","cssModule","tag"];function XT(){return XT=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},XT.apply(this,arguments)}function Noe(e,t){if(e==null)return{};var n=Loe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Loe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Doe={className:W.string,cssModule:W.object,tag:Lt};function ms(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,a=Noe(e,Moe),o=lt(mt(t,"modal-footer"),n);return J.createElement(i,XT({},a,{className:o}))}ms.propTypes=Doe;function QT(){return QT=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},QT.apply(this,arguments)}var koe={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function F0(e){var t=mt("tooltip-arrow",e.arrowClassName),n=mt("tooltip","show",e.popperClassName),r=mt("tooltip-inner",e.innerClassName),i=Fj(koe,e);return J.createElement(nP,QT({},i,{arrowClassName:t,popperClassName:n,innerClassName:r}))}F0.propTypes=tP;var Ioe=["className","cssModule","tag","flush","horizontal","numbered"];function JT(){return JT=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},JT.apply(this,arguments)}function $oe(e,t){if(e==null)return{};var n=Uoe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Boe={className:W.string,cssModule:W.object,flush:W.bool,horizontal:W.oneOfType([W.bool,W.string]),numbered:W.bool,tag:Lt},Foe=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function w9(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,a=e.flush,o=e.horizontal,l=o===void 0?!1:o,f=e.numbered,c=f===void 0?!1:f,h=$oe(e,Ioe),m=lt(mt(t,"list-group",a?"list-group-flush":Foe(l),{"list-group-numbered":c}),n);return J.createElement(i,JT({},h,{className:m}))}w9.propTypes=Boe;var zoe=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function eC(){return eC=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},eC.apply(this,arguments)}function qoe(e,t){if(e==null)return{};var n=Voe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Voe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Hoe={children:W.node,row:W.bool,check:W.bool,switch:W.bool,inline:W.bool,floating:W.bool,noMargin:W.bool,disabled:W.bool,tag:Lt,className:W.string,cssModule:W.object};function ab(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,a=e.check,o=e.inline,l=e.floating,f=e.noMargin,c=e.tag,h=c===void 0?"div":c,m=e.switch,g=qoe(e,zoe),x=a||m,_=lt(mt(t,r?"row":!1,x?"form-check":!1,m?"form-switch":!1,x||f?!1:"mb-3",x&&o?"form-check-inline":!1,x&&i?"disabled":!1,l&&"form-floating"),n);return h==="fieldset"&&(g.disabled=i),J.createElement(h,eC({},g,{className:_}))}ab.propTypes=Hoe;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)}var Woe=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function nC(){return nC=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},nC.apply(this,arguments)}function Goe(e,t){if(e==null)return{};var n=Yoe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zoe(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,r.key,r)}}function Xoe(e,t,n){return t&&Zoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qoe(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&&rC(e,t)}function rC(e,t){return rC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rC(e,t)}function Joe(e){var t=tse();return function(){var r=ob(e),i;if(t){var a=ob(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ese(this,i)}}function ese(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 iC(e)}function iC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tse(){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 ob(e){return ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ob(e)}var nse={children:W.node,type:W.string,size:W.oneOfType([W.number,W.string]),bsSize:W.string,valid:W.bool,invalid:W.bool,tag:Lt,innerRef:W.oneOfType([W.object,W.func,W.string]),plaintext:W.bool,addon:W.bool,className:W.string,cssModule:W.object},sr=function(e){Qoe(n,e);var t=Joe(n);function n(r){var i;return Koe(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(iC(i)),i.focus=i.focus.bind(iC(i)),i}return Xoe(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,a=i.className,o=i.cssModule,l=i.type,f=l===void 0?"text":l,c=i.bsSize,h=i.valid,m=i.invalid,g=i.tag,x=i.addon,_=i.plaintext,w=i.innerRef,O=Goe(i,Woe),S=["switch","radio","checkbox"].indexOf(f)>-1,T=/\D/g,A=f==="textarea",j=f==="select",P=f==="range",R=g||(j||A?f:"input"),D="form-control";_?(D="".concat(D,"-plaintext"),R=g||"input"):P?D="form-range":j?D="form-select":S&&(x?D=null:D="form-check-input"),O.size&&T.test(O.size)&&(eT(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),c=O.size,delete O.size);var U=lt(mt(a,m&&"is-invalid",h&&"is-valid",c?j?"form-select-".concat(c):"form-control-".concat(c):!1,D),o);return(R==="input"||g&&typeof g=="function")&&(O.type=f==="switch"?"checkbox":f),O.children&&!(_||f==="select"||typeof R!="string"||R==="select")&&(eT('Input with a type of "'.concat(f,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete O.children),J.createElement(R,nC({},O,{ref:w,className:U,"aria-invalid":m}))}}]),n}(J.Component);sr.propTypes=nse;var rse=["className","cssModule","tag","type","size"];function sb(){return sb=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},sb.apply(this,arguments)}function ise(e,t){if(e==null)return{};var n=ase(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ase(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ose={className:W.string,cssModule:W.object,size:W.string,tag:Lt,type:W.string};function tv(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var a=e.size,o=ise(e,rse),l=lt(mt(t,"input-group",a?"input-group-".concat(a):null),n);return e.type==="dropdown"?J.createElement(ql,sb({},o,{className:l})):J.createElement(c9.Provider,{value:{insideInputGroup:!0}},J.createElement(i,sb({},o,{className:l})))}tv.propTypes=ose;var sse=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function aC(){return aC=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},aC.apply(this,arguments)}function lse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function use(e,t){if(e==null)return{};var n=cse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var fse={children:W.node,className:W.string,listClassName:W.string,cssModule:W.object,size:W.string,tag:Lt,listTag:Lt,"aria-label":W.string};function rP(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,a=e.tag,o=a===void 0?"nav":a,l=e.listTag,f=l===void 0?"ul":l,c=e["aria-label"],h=c===void 0?"pagination":c,m=use(e,sse),g=lt(mt(t),r),x=lt(mt(n,"pagination",lse({},"pagination-".concat(i),!!i)),r);return J.createElement(o,{className:g,"aria-label":h},J.createElement(f,aC({},m,{className:x})))}rP.propTypes=fse;var dse=["active","className","cssModule","disabled","tag"];function oC(){return oC=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},oC.apply(this,arguments)}function hse(e,t){if(e==null)return{};var n=pse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mse={active:W.bool,children:W.node,className:W.string,cssModule:W.object,disabled:W.bool,tag:Lt};function Yu(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,a=e.tag,o=a===void 0?"li":a,l=hse(e,dse),f=lt(mt(n,"page-item",{active:t,disabled:i}),r);return J.createElement(o,oC({},l,{className:f}))}Yu.propTypes=mse;var vse=["className","cssModule","next","previous","first","last","tag"];function sC(){return sC=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},sC.apply(this,arguments)}function gse(e,t){if(e==null)return{};var n=yse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bse={"aria-label":W.string,children:W.node,className:W.string,cssModule:W.object,next:W.bool,previous:W.bool,first:W.bool,last:W.bool,tag:Lt};function Ku(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,a=e.first,o=e.last,l=e.tag,f=l===void 0?"a":l,c=gse(e,vse),h=lt(mt(t,"page-link"),n),m;i?m="Previous":r?m="Next":a?m="First":o&&(m="Last");var g=e["aria-label"]||m,x;i?x="":r?x="":a?x="«":o&&(x="»");var _=e.children;return _&&Array.isArray(_)&&_.length===0&&(_=null),!c.href&&f==="a"&&(f="button"),(i||r||a||o)&&(_=[J.createElement("span",{"aria-hidden":"true",key:"caret"},_||x),J.createElement("span",{className:"visually-hidden",key:"ariaLabel"},g)]),J.createElement(f,sC({},c,{className:h,"aria-label":g}),_)}Ku.propTypes=bse;var _se=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function lC(){return lC=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},lC.apply(this,arguments)}function PL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ep(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PL(Object(n),!0).forEach(function(r){xse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wse(e,t){if(e==null)return{};var n=Ose(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ose(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sse={children:W.node,className:W.string,closeClassName:W.string,closeAriaLabel:W.string,color:W.string,cssModule:W.object,fade:W.bool,innerRef:W.oneOfType([W.object,W.string,W.func]),isOpen:W.bool,tag:Lt,toggle:W.func,transition:W.shape(Qr.propTypes)};function O9(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,a=e.cssModule,o=e.tag,l=o===void 0?"div":o,f=e.color,c=f===void 0?"success":f,h=e.isOpen,m=h===void 0?!0:h,g=e.toggle,x=e.children,_=e.transition,w=_===void 0?ep(ep({},Qr.defaultProps),{},{unmountOnExit:!0}):_,O=e.fade,S=O===void 0?!0:O,T=e.innerRef,A=wse(e,_se),j=lt(mt(t,"alert","alert-".concat(c),{"alert-dismissible":g}),a),P=lt(mt("btn-close",n),a),R=ep(ep(ep({},Qr.defaultProps),w),{},{baseClass:S?w.baseClass:"",timeout:S?w.timeout:0});return J.createElement(Qr,lC({},A,R,{tag:l,className:j,in:m,role:"alert",innerRef:T}),g?J.createElement("button",{type:"button",className:P,"aria-label":i,onClick:g}):null,x)}O9.propTypes=Sse;var Ese=["className","cssModule","tag","active","disabled","action","color"];function uC(){return uC=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},uC.apply(this,arguments)}function Tse(e,t){if(e==null)return{};var n=Cse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ase={action:W.bool,active:W.bool,className:W.string,cssModule:W.object,color:W.string,disabled:W.bool,tag:Lt},jse=function(t){t.preventDefault()};function S9(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,a=e.active,o=e.disabled,l=e.action,f=e.color,c=Tse(e,Ese),h=lt(mt(t,a?"active":!1,o?"disabled":!1,l?"list-group-item-action":!1,f?"list-group-item-".concat(f):!1,"list-group-item"),n);return o&&(c.onClick=jse),J.createElement(i,uC({},c,{className:h}))}S9.propTypes=Ase;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 RL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RL(Object(n),!0).forEach(function(r){Rse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fC(){return fC=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},fC.apply(this,arguments)}function Mse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nse(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,r.key,r)}}function Lse(e,t,n){return t&&Nse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dse(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&&dC(e,t)}function dC(e,t){return dC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dC(e,t)}function kse(e){var t=$se();return function(){var r=lb(e),i;if(t){var a=lb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Ise(this,i)}}function Ise(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 E9(e)}function E9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $se(){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 lb(e){return lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lb(e)}var Use=["defaultOpen"],nv=function(e){Dse(n,e);var t=kse(n);function n(r){var i;return Mse(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(E9(i)),i}return Lse(n,[{key:"toggle",value:function(i){var a=this;this.setState(function(o){return{isOpen:!o.isOpen}},function(){a.props.onToggle&&a.props.onToggle(i,a.state.isOpen)})}},{key:"render",value:function(){return J.createElement(ql,fC({isOpen:this.state.isOpen,toggle:this.toggle},Fl(this.props,Use)))}}]),n}(I.Component);nv.propTypes=Pse({defaultOpen:W.bool,onToggle:W.func},ql.propTypes);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 ML(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ML(Object(n),!0).forEach(function(r){Fse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ML(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pC(){return pC=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},pC.apply(this,arguments)}function zse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qse(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,r.key,r)}}function Vse(e,t,n){return t&&qse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hse(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&&mC(e,t)}function mC(e,t){return mC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mC(e,t)}function Wse(e){var t=Yse();return function(){var r=ub(e),i;if(t){var a=ub(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Gse(this,i)}}function Gse(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 T9(e)}function T9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yse(){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 ub(e){return ub=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ub(e)}var Kse=["defaultOpen"],Mi=function(e){Hse(n,e);var t=Wse(n);function n(r){var i;return zse(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(T9(i)),i}return Vse(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return J.createElement(F0,pC({isOpen:this.state.isOpen,toggle:this.toggle},Fl(this.props,Kse)))}}]),n}(I.Component);Mi.propTypes=Bse({defaultOpen:W.bool},F0.propTypes);const os=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>y.jsx(Ri,{body:!0,className:Ve(e,{"w-100":i,"w-75 mx-auto":!i,"border-danger":r==="error"}),children:y.jsxs("h3",{className:Ve("text-center mb-0",{"text-muted":r==="default","text-danger":r==="error"}),children:[n&&y.jsx(Ke,{icon:QU,spin:!0}),n&&y.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})}),Jt=({title:e,children:t,bodyClassName:n,...r})=>y.jsxs(Ri,{...r,children:[e&&y.jsx(ev,{role:"heading","aria-level":4,children:e}),y.jsx(Jm,{className:n,children:t})]}),zr=({children:e,type:t,className:n,small:r=!1})=>y.jsx(Jt,{role:"document",className:Ve("text-center",{"w-75 mx-auto":!r,"w-100":r,"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"},n),bodyClassName:Ve({"p-2":r}),children:e}),C9=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:a=!1})=>{const o=I.useId(),l=h=>t==null?void 0:t(h.target.checked,h),f={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=a?{display:"inline-block"}:{};return y.jsxs("span",{className:Ve("form-check",f,n),style:c,children:[y.jsx("input",{type:"checkbox",className:"form-check-input",id:o,checked:e,onChange:l}),y.jsx("label",{className:"form-check-label",htmlFor:o,children:r})]})},A9=e=>y.jsx(C9,{type:"checkbox",...e}),ss=e=>y.jsx(C9,{type:"switch",...e}),Ld=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:a})=>y.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[y.jsx("label",{className:`form-label ${r}`,htmlFor:a,children:t}),e]}),Cy=({children:e,value:t,onChange:n,type:r,required:i,placeholder:a,className:o,labelClassName:l})=>{const f=I.useId();return y.jsx(Ld,{label:y.jsxs(y.Fragment,{children:[e,":"]}),className:o,labelClassName:l,id:f,children:y.jsx("input",{id:f,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:a,onChange:c=>n(c.target.value)})})},Zse=500;let Ay;const NL=()=>{Ay!==null&&clearTimeout(Ay),Ay=null},rv=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:a=setTimeout})=>{const[o,l]=I.useState(i),f=(c,h=Zse)=>{l(c),NL(),Ay=a(()=>{e(c),NL()},h)};return y.jsxs("div",{className:Ve("search-field",t),children:[y.jsx("input",{type:"text",className:Ve("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>f(c.target.value)}),y.jsx(Ke,{icon:PQ,className:"search-field__icon"}),y.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>f("",0)})]})},j9=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const a=i.slice(0,-2);n[a]??(n[a]=[]),n[a].push(r)}else n[i]=r}),n},z0=e=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)?r.forEach(i=>t.append(`${n}[]`,`${i}`)):t.append(n,`${r}`));return t.toString()},wn=(e=!1)=>{const[t,n]=I.useState(e),r=I.useCallback(()=>n(o=>!o),[]),i=I.useCallback(()=>n(!0),[]),a=I.useCallback(()=>n(!1),[]);return[t,r,i,a]},P9=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,a]=I.useState(e),o=I.useRef(e),l=I.useRef(void 0),f=I.useCallback(()=>{a(!o.current),l.current&&r(l.current),l.current=n(()=>a(o.current),t)},[r,t,n]);return[i,f]},na=()=>I.useRef(null),Dd=()=>{const{search:e}=Pr();return I.useMemo(()=>j9(e),[e])},vs=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:a,end:o=!1,minWidth:l,inline:f,size:c,...h})=>{const[m,g]=wn(),x=Ve("dropdown-btn__toggle",n,{"btn-block":!f,"dropdown-btn__toggle--with-caret":!a}),_={minWidth:l&&`${l}px`};return y.jsxs(ql,{isOpen:m,toggle:g,disabled:t,className:i,children:[y.jsx(ps,{size:c,caret:!a,className:x,color:"primary",...h,children:e}),y.jsx(Vl,{className:"w-100",end:o,style:_,children:r})]})},q0=({children:e,minWidth:t,label:n="Options"})=>y.jsx(vs,{text:y.jsx(Ke,{className:"px-1",icon:_Q}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Np=({children:e,...t})=>y.jsx(qj,{children:y.jsx(Vj,{className:"nav-pills__nav-link",tag:vj,...t,children:e})}),R9=({children:e,fill:t=!1,className:n=""})=>y.jsx(Ri,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:y.jsx(zj,{pills:!0,fill:t,children:I.Children.map(e,r=>{if(!I.isValidElement(r)||r.type!==Np)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})});function iv(e,t,n){return typeof e=="object"?iv(e.currentField,e.newField,e.currentOrderDir):e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC"}const M9=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const a=n==="ASC"?1:-1,o=n==="ASC"?-1:1;return r[t]>i[t]?a:o}),Xse=e=>e.dir?`${e.field}-${e.dir}`:void 0,Qse=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function av({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:a=!0}){const o=l=>()=>{const f=iv(l,t.field,t.dir);n(f?l:void 0,f)};return y.jsxs(nv,{children:[y.jsxs(ps,{caret:!0,color:r?"primary":"link",className:Ve({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&y.jsx(y.Fragment,{children:"Order by"}),r&&!t.field&&y.jsx("i",{children:"Order by..."}),r&&t.field&&y.jsxs(y.Fragment,{children:[a&&"Order by: ",e[t.field]," - ",y.jsx("small",{children:t.dir??"DESC"})]})]}),y.jsxs(Vl,{end:i,className:"w-100",style:r?void 0:{minWidth:"11rem"},children:[Object.entries(e).map(([l,f])=>y.jsxs(Qe,{active:t.field===l,onClick:o(l),className:"d-flex justify-content-between align-items-center",children:[f,t.field===l&&y.jsx(Ke,{icon:t.dir==="ASC"?SQ:uQ})]},l)),y.jsx(Qe,{divider:!0}),y.jsx(Qe,{disabled:!t.field,onClick:()=>n(),children:y.jsx("i",{children:"Clear selection"})})]})]})}const nm="#4696e5",Jse="rgba(70, 150, 229, 0.4)",vC="#f77f28",ele="rgba(247, 127, 40, 0.4)",tle="white",nle="#161b22",rle=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},ov=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},iP=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",ile=I.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,a]=wn(),o=I.useCallback(()=>{a(),n()},[n,a]);return y.jsxs(O9,{className:"app-update-banner",isOpen:e,toggle:t,tag:Jt,color:"secondary",innerRef:r,children:[y.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),y.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",y.jsxs(yt,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!i&&y.jsxs(y.Fragment,{children:["Restart now ",y.jsx(Ke,{icon:DQ,className:"ms-1"})]}),i&&y.jsx(y.Fragment,{children:"Restarting..."})]})]})]})}),N9=({to:e="/",children:t="Home"})=>y.jsx("div",{className:"home",children:y.jsxs(Jt,{className:"p-4",children:[y.jsx("h2",{children:"Oops! We could not find requested route."}),y.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),y.jsx("br",{}),y.jsx(tn,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function ja(e){return I.useMemo(()=>e,[e])}function Pa(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const ale=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},L9=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var O;const{MainHeader:a,Home:o,ShlinkWebComponentContainer:l,CreateServer:f,EditServer:c,Settings:h,ManageServers:m,ShlinkVersionsContainer:g}=ja(L9),x=Pr(),_=I.useRef(t),w=x.pathname==="/";return I.useEffect(()=>{Object.keys(_.current).length===0&&e()},[e]),I.useEffect(()=>{var S;rle(((S=n.ui)==null?void 0:S.theme)??iP())},[(O=n.ui)==null?void 0:O.theme]),y.jsxs("div",{className:"container-fluid app-container",children:[y.jsx(a,{}),y.jsxs("div",{className:"app",children:[y.jsx("div",{className:Ve("shlink-wrapper",{"d-flex align-items-center pt-3":w}),children:y.jsxs(R0,{children:[y.jsx(xt,{index:!0,element:y.jsx(o,{})}),y.jsx(xt,{path:"/settings",children:["","*"].map(S=>y.jsx(xt,{path:S,element:y.jsx(h,{})},S))}),y.jsx(xt,{path:"/manage-servers",element:y.jsx(m,{})}),y.jsx(xt,{path:"/server/create",element:y.jsx(f,{})}),y.jsx(xt,{path:"/server/:serverId/edit",element:y.jsx(c,{})}),y.jsx(xt,{path:"/server/:serverId",children:["","*"].map(S=>y.jsx(xt,{path:S,element:y.jsx(l,{})},S))}),y.jsx(xt,{path:"*",element:y.jsx(N9,{})})]})}),y.jsx("div",{className:"shlink-footer",children:y.jsx(g,{})})]}),y.jsx(ile,{isOpen:r,toggle:i,forceUpdate:ale})]})},ole=Pa(L9,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function gr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var sle=typeof Symbol=="function"&&Symbol.observable||"@@observable",LL=sle,uw=()=>Math.random().toString(36).substring(7).split("").join("."),lle={INIT:`@@redux/INIT${uw()}`,REPLACE:`@@redux/REPLACE${uw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${uw()}`},cb=lle;function aP(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function D9(e,t,n){if(typeof e!="function")throw new Error(gr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(gr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(gr(1));return n(D9)(e,t)}let r=e,i=t,a=new Map,o=a,l=0,f=!1;function c(){o===a&&(o=new Map,a.forEach((O,S)=>{o.set(S,O)}))}function h(){if(f)throw new Error(gr(3));return i}function m(O){if(typeof O!="function")throw new Error(gr(4));if(f)throw new Error(gr(5));let S=!0;c();const T=l++;return o.set(T,O),function(){if(S){if(f)throw new Error(gr(6));S=!1,c(),o.delete(T),a=null}}}function g(O){if(!aP(O))throw new Error(gr(7));if(typeof O.type>"u")throw new Error(gr(8));if(typeof O.type!="string")throw new Error(gr(17));if(f)throw new Error(gr(9));try{f=!0,i=r(i,O)}finally{f=!1}return(a=o).forEach(T=>{T()}),O}function x(O){if(typeof O!="function")throw new Error(gr(10));r=O,g({type:cb.REPLACE})}function _(){const O=m;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(gr(11));function T(){const j=S;j.next&&j.next(h())}return T(),{unsubscribe:O(T)}},[LL](){return this}}}return g({type:cb.INIT}),{dispatch:g,subscribe:m,getState:h,replaceReducer:x,[LL]:_}}function ule(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:cb.INIT})>"u")throw new Error(gr(12));if(typeof n(void 0,{type:cb.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(gr(13))})}function oP(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(n[o]=e[o])}const r=Object.keys(n);let i;try{ule(n)}catch(a){i=a}return function(o={},l){if(i)throw i;let f=!1;const c={};for(let h=0;h<r.length;h++){const m=r[h],g=n[m],x=o[m],_=g(x,l);if(typeof _>"u")throw l&&l.type,new Error(gr(14));c[m]=_,f=f||_!==x}return f=f||r.length!==Object.keys(o).length,f?c:o}}function fb(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function cle(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(gr(15))};const o={getState:i.getState,dispatch:(f,...c)=>a(f,...c)},l=e.map(f=>f(o));return a=fb(...l)(i.dispatch),{...i,dispatch:a}}}function fle(e){return aP(e)&&"type"in e&&typeof e.type=="string"}var k9=Symbol.for("immer-nothing"),DL=Symbol.for("immer-draftable"),Ai=Symbol.for("immer-state");function ya(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Kf=Object.getPrototypeOf;function rc(e){return!!e&&!!e[Ai]}function ls(e){var t;return e?I9(e)||Array.isArray(e)||!!e[DL]||!!((t=e.constructor)!=null&&t[DL])||H0(e)||W0(e):!1}var dle=Object.prototype.constructor.toString();function I9(e){if(!e||typeof e!="object")return!1;const t=Kf(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===dle}function rm(e,t){V0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function V0(e){const t=e[Ai];return t?t.type_:Array.isArray(e)?1:H0(e)?2:W0(e)?3:0}function gC(e,t){return V0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $9(e,t,n){const r=V0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function hle(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function H0(e){return e instanceof Map}function W0(e){return e instanceof Set}function Mu(e){return e.copy_||e.base_}function yC(e,t){if(H0(e))return new Map(e);if(W0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&I9(e))return Kf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Ai];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const a=r[i],o=n[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Kf(e),n)}function sP(e,t=!1){return G0(e)||rc(e)||!ls(e)||(V0(e)>1&&(e.set=e.add=e.clear=e.delete=ple),Object.freeze(e),t&&rm(e,(n,r)=>sP(r,!0))),e}function ple(){ya(2)}function G0(e){return Object.isFrozen(e)}var mle={};function ic(e){const t=mle[e];return t||ya(0,e),t}var im;function U9(){return im}function vle(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function kL(e,t){t&&(ic("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function bC(e){_C(e),e.drafts_.forEach(gle),e.drafts_=null}function _C(e){e===im&&(im=e.parent_)}function IL(e){return im=vle(im,e)}function gle(e){const t=e[Ai];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $L(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ai].modified_&&(bC(t),ya(4)),ls(e)&&(e=db(t,e),t.parent_||hb(t,e)),t.patches_&&ic("Patches").generateReplacementPatches_(n[Ai].base_,e,t.patches_,t.inversePatches_)):e=db(t,n,[]),bC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==k9?e:void 0}function db(e,t,n){if(G0(t))return t;const r=t[Ai];if(!r)return rm(t,(i,a)=>UL(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return hb(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),rm(a,(l,f)=>UL(e,r,i,l,f,n,o)),hb(e,i,!1),n&&e.patches_&&ic("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function UL(e,t,n,r,i,a,o){if(rc(i)){const l=a&&t&&t.type_!==3&&!gC(t.assigned_,r)?a.concat(r):void 0,f=db(e,i,l);if($9(n,r,f),rc(f))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(ls(i)&&!G0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;db(e,i),(!t||!t.scope_.parent_)&&hb(e,i)}}function hb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&sP(t,n)}function yle(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:U9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=lP;n&&(i=[r],a=am);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return r.draft_=l,r.revoke_=o,l}var lP={get(e,t){if(t===Ai)return e;const n=Mu(e);if(!gC(n,t))return ble(e,n,t);const r=n[t];return e.finalized_||!ls(r)?r:r===cw(e.base_,t)?(fw(e),e.copy_[t]=wC(r,e)):r},has(e,t){return t in Mu(e)},ownKeys(e){return Reflect.ownKeys(Mu(e))},set(e,t,n){const r=B9(Mu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=cw(Mu(e),t),a=i==null?void 0:i[Ai];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(hle(n,i)&&(n!==void 0||gC(e.base_,t)))return!0;fw(e),xC(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return cw(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,fw(e),xC(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ya(11)},getPrototypeOf(e){return Kf(e.base_)},setPrototypeOf(){ya(12)}},am={};rm(lP,(e,t)=>{am[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});am.deleteProperty=function(e,t){return am.set.call(this,e,t,void 0)};am.set=function(e,t,n){return lP.set.call(this,e[0],t,n,e[0])};function cw(e,t){const n=e[Ai];return(n?Mu(n):e)[t]}function ble(e,t,n){var i;const r=B9(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function B9(e,t){if(!(t in e))return;let n=Kf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Kf(n)}}function xC(e){e.modified_||(e.modified_=!0,e.parent_&&xC(e.parent_))}function fw(e){e.copy_||(e.copy_=yC(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _le=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(f=a,...c){return o.produce(f,h=>n.call(this,h,...c))}}typeof n!="function"&&ya(6),r!==void 0&&typeof r!="function"&&ya(7);let i;if(ls(t)){const a=IL(this),o=wC(t,void 0);let l=!0;try{i=n(o),l=!1}finally{l?bC(a):_C(a)}return kL(a,r),$L(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===k9&&(i=void 0),this.autoFreeze_&&sP(i,!0),r){const a=[],o=[];ic("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else ya(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...l)=>this.produceWithPatches(o,f=>t(f,...l));let r,i;return[this.produce(t,n,(o,l)=>{r=o,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ls(e)||ya(8),rc(e)&&(e=xle(e));const t=IL(this),n=wC(e,void 0);return n[Ai].isManual_=!0,_C(t),n}finishDraft(e,t){const n=e&&e[Ai];(!n||!n.isManual_)&&ya(9);const{scope_:r}=n;return kL(r,t),$L(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=ic("Patches").applyPatches_;return rc(e)?r(e,t):this.produce(e,i=>r(i,t))}};function wC(e,t){const n=H0(e)?ic("MapSet").proxyMap_(e,t):W0(e)?ic("MapSet").proxySet_(e,t):yle(e,t);return(t?t.scope_:U9()).drafts_.push(n),n}function xle(e){return rc(e)||ya(10,e),F9(e)}function F9(e){if(!ls(e)||G0(e))return e;const t=e[Ai];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=yC(e,t.scope_.immer_.useStrictShallowCopy_)}else n=yC(e,!0);return rm(n,(r,i)=>{$9(n,r,F9(i))}),t&&(t.finalized_=!1),n}var ji=new _le,z9=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseStrictShallowCopy.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function q9(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var wle=q9(),Ole=q9,Sle=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fb:fb.apply(null,arguments)},Ele=e=>e&&typeof e.match=="function";function qr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Qo(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>fle(r)&&r.type===e,n}var V9=class bp extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,bp.prototype)}static get[Symbol.species](){return bp}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new bp(...t[0].concat(this)):new bp(...t.concat(this))}};function BL(e){return ls(e)?z9(e,()=>{}):e}function FL(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Tle(e){return typeof e=="boolean"}var Cle=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new V9;return n&&(Tle(n)?o.push(wle):o.push(Ole(n.extraArgument))),o},Ale="RTK_autoBatch",zL=e=>t=>{setTimeout(t,e)},jle=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,o=!1;const l=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zL(10):e.type==="callback"?e.queueNotification:zL(e.timeout),c=()=>{o=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const m=()=>i&&h(),g=r.subscribe(m);return l.add(h),()=>{g(),l.delete(h)}},dispatch(h){var m;try{return i=!((m=h==null?void 0:h.meta)!=null&&m[Ale]),a=!i,a&&(o||(o=!0,f(c))),r.dispatch(h)}finally{i=!0}}})},Ple=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new V9(e);return r&&i.push(jle(typeof r=="object"?r:void 0)),i};function H9(e){const t=Cle(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(aP(n))l=oP(n);else throw new Error(Qo(1));let f;typeof r=="function"?f=r(t):f=t();let c=fb;i&&(c=Sle({trace:!1,...typeof i=="object"&&i}));const h=cle(...f),m=Ple(h);let g=typeof o=="function"?o(m):m();const x=c(...g);return D9(l,a,x)}function W9(e){const t={},n=[];let r;const i={addCase(a,o){const l=typeof a=="string"?a:a.type;if(!l)throw new Error(Qo(28));if(l in t)throw new Error(Qo(29));return t[l]=o,i},addMatcher(a,o){return n.push({matcher:a,reducer:o}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function Rle(e){return typeof e=="function"}function Mle(e,t){let[n,r,i]=W9(t),a;if(Rle(e))a=()=>BL(e());else{const l=BL(e);a=()=>l}function o(l=a(),f){let c=[n[f.type],...r.filter(({matcher:h})=>h(f)).map(({reducer:h})=>h)];return c.filter(h=>!!h).length===0&&(c=[i]),c.reduce((h,m)=>{if(m)if(rc(h)){const x=m(h,f);return x===void 0?h:x}else{if(ls(h))return z9(h,g=>m(g,f));{const g=m(h,f);if(g===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return h},l)}return o.getInitialState=a,o}var Nle=(e,t)=>Ele(e)?e.match(t):e(t);function Lle(...e){return t=>e.some(n=>Nle(n,t))}var Dle="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",kle=(e=21)=>{let t="",n=e;for(;n--;)t+=Dle[Math.random()*64|0];return t},Ile=["name","message","stack","code"],dw=class{constructor(e,t){uf(this,"_type");this.payload=e,this.meta=t}},qL=class{constructor(e,t){uf(this,"_type");this.payload=e,this.meta=t}},$le=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Ile)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},VL="External signal was aborted",G9=(()=>{function e(t,n,r){const i=qr(t+"/fulfilled",(f,c,h,m)=>({payload:f,meta:{...m||{},arg:h,requestId:c,requestStatus:"fulfilled"}})),a=qr(t+"/pending",(f,c,h)=>({payload:void 0,meta:{...h||{},arg:c,requestId:f,requestStatus:"pending"}})),o=qr(t+"/rejected",(f,c,h,m,g)=>({payload:m,error:(r&&r.serializeError||$le)(f||"Rejected"),meta:{...g||{},arg:h,requestId:c,rejectedWithValue:!!m,requestStatus:"rejected",aborted:(f==null?void 0:f.name)==="AbortError",condition:(f==null?void 0:f.name)==="ConditionError"}}));function l(f,{signal:c}={}){return(h,m,g)=>{const x=r!=null&&r.idGenerator?r.idGenerator(f):kle(),_=new AbortController;let w,O;function S(A){O=A,_.abort()}c&&(c.aborted?S(VL):c.addEventListener("abort",()=>S(VL),{once:!0}));const T=async function(){var P,R;let A;try{let D=(P=r==null?void 0:r.condition)==null?void 0:P.call(r,f,{getState:m,extra:g});if(Ble(D)&&(D=await D),D===!1||_.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const U=new Promise((z,F)=>{w=()=>{F({name:"AbortError",message:O||"Aborted"})},_.signal.addEventListener("abort",w)});h(a(x,f,(R=r==null?void 0:r.getPendingMeta)==null?void 0:R.call(r,{requestId:x,arg:f},{getState:m,extra:g}))),A=await Promise.race([U,Promise.resolve(n(f,{dispatch:h,getState:m,extra:g,requestId:x,signal:_.signal,abort:S,rejectWithValue:(z,F)=>new dw(z,F),fulfillWithValue:(z,F)=>new qL(z,F)})).then(z=>{if(z instanceof dw)throw z;return z instanceof qL?i(z.payload,x,f,z.meta):i(z,x,f)})])}catch(D){A=D instanceof dw?o(null,x,f,D.payload,D.meta):o(D,x,f)}finally{w&&_.signal.removeEventListener("abort",w)}return r&&!r.dispatchConditionRejection&&o.match(A)&&A.meta.condition||h(A),A}();return Object.assign(T,{abort:S,requestId:x,arg:f,unwrap(){return T.then(Ule)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:Lle(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Ule(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ble(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Fle=Symbol.for("rtk-slice-createasyncthunk");function zle(e,t){return`${e}/${t}`}function qle({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Fle];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(Qo(11));const l=(typeof i.reducers=="function"?i.reducers(Hle()):i.reducers)||{},f=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(A,j){const P=typeof A=="string"?A:A.type;if(!P)throw new Error(Qo(12));if(P in c.sliceCaseReducersByType)throw new Error(Qo(13));return c.sliceCaseReducersByType[P]=j,h},addMatcher(A,j){return c.sliceMatchers.push({matcher:A,reducer:j}),h},exposeAction(A,j){return c.actionCreators[A]=j,h},exposeCaseReducer(A,j){return c.sliceCaseReducersByName[A]=j,h}};f.forEach(A=>{const j=l[A],P={reducerName:A,type:zle(a,A),createNotation:typeof i.reducers=="function"};Gle(j)?Kle(P,j,h,t):Wle(P,j,h)});function m(){const[A={},j=[],P=void 0]=typeof i.extraReducers=="function"?W9(i.extraReducers):[i.extraReducers],R={...A,...c.sliceCaseReducersByType};return Mle(i.initialState,D=>{for(let U in R)D.addCase(U,R[U]);for(let U of c.sliceMatchers)D.addMatcher(U.matcher,U.reducer);for(let U of j)D.addMatcher(U.matcher,U.reducer);P&&D.addDefaultCase(P)})}const g=A=>A,x=new Map;let _;function w(A,j){return _||(_=m()),_(A,j)}function O(){return _||(_=m()),_.getInitialState()}function S(A,j=!1){function P(D){let U=D[A];return typeof U>"u"&&j&&(U=O()),U}function R(D=g){const U=FL(x,j,()=>new WeakMap);return FL(U,D,()=>{const z={};for(const[F,V]of Object.entries(i.selectors??{}))z[F]=Vle(V,D,O,j);return z})}return{reducerPath:A,getSelectors:R,get selectors(){return R(P)},selectSlice:P}}const T={name:a,reducer:w,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:O,...S(o),injectInto(A,{reducerPath:j,...P}={}){const R=j??o;return A.inject({reducerPath:R,reducer:w},P),{...T,...S(R,!0)}}};return T}}function Vle(e,t,n,r){function i(a,...o){let l=t(a);return typeof l>"u"&&r&&(l=n()),e(l,...o)}return i.unwrapped=e,i}var In=qle();function Hle(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Wle({type:e,reducerName:t,createNotation:n},r,i){let a,o;if("reducer"in r){if(n&&!Yle(r))throw new Error(Qo(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?qr(e,o):qr(e))}function Gle(e){return e._reducerDefinitionType==="asyncThunk"}function Yle(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Kle({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Qo(18));const{payloadCreator:a,fulfilled:o,pending:l,rejected:f,settled:c,options:h}=n,m=i(e,a,h);r.exposeAction(t,m),o&&r.addCase(m.fulfilled,o),l&&r.addCase(m.pending,l),f&&r.addCase(m.rejected,f),c&&r.addMatcher(m.settled,c),r.exposeCaseReducer(t,{fulfilled:o||Zg,pending:l||Zg,rejected:f||Zg,settled:c||Zg})}function Zg(){}function Qo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const{actions:Zle,reducer:Xle}=In({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Qle,resetAppUpdate:Jle}=Zle,eue=Xle,tue=(e,t)=>{e.factory("App",ole),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Qle),e.serviceFactory("resetAppUpdate",()=>Jle)};var Y9=e=>{throw TypeError(e)},K9=(e,t,n)=>t.has(e)||Y9("Cannot "+n),HL=(e,t,n)=>(K9(e,t,"read from private field"),n?n.call(e):t.get(e)),nue=(e,t,n)=>t.has(e)?Y9("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rue=(e,t,n,r)=>(K9(e,t,"write to private field"),t.set(e,n),n);const WL={"Content-Type":"application/json"},GL=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...WL}}:{headers:WL}:e;var _p;let iue=class{constructor(t=globalThis.fetch.bind(globalThis)){nue(this,_p),rue(this,_p,t)}async jsonRequest(t,n){const r=await HL(this,_p).call(this,t,GL(n)),i=await r.json();if(!r.ok)throw i;return i}async emptyRequest(t,n){const r=await HL(this,_p).call(this,t,GL(n));if(!r.ok)throw await r.json()}};_p=new WeakMap;const uP={INVALID_ARGUMENT:"https://shlink.io/api/error/invalid-data",INVALID_SHORT_URL_DELETION:"https://shlink.io/api/error/invalid-short-url-deletion",DOMAIN_NOT_FOUND:"https://shlink.io/api/error/domain-not-found",FORBIDDEN_OPERATION:"https://shlink.io/api/error/forbidden-tag-operation",INVALID_SLUG:"https://shlink.io/api/error/non-unique-slug",INVALID_SHORTCODE:"https://shlink.io/api/error/short-url-not-found",TAG_CONFLICT:"https://shlink.io/api/error/tag-conflict",TAG_NOT_FOUND:"https://shlink.io/api/error/tag-not-found",MERCURE_NOT_CONFIGURED:"https://shlink.io/api/error/mercure-not-configured",INVALID_AUTHORIZATION:"https://shlink.io/api/error/missing-authentication",INVALID_API_KEY:"https://shlink.io/api/error/invalid-api-key",NOT_FOUND:"https://shlink.io/api/error/not-found",INVALID_URL:"https://shlink.io/api/error/invalid-url"};Object.freeze(uP);const aue=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,YL=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(aue);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},KL=e=>e==="*"||e==="x"||e==="X",ZL=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},oue=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],sue=(e,t)=>{if(KL(e)||KL(t))return 0;const[n,r]=oue(ZL(e),ZL(t));return n>r?1:n<r?-1:0},XL=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=sue(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},lue=(e,t)=>{const n=YL(e),r=YL(t),i=n.pop(),a=r.pop(),o=XL(n,r);return o!==0?o:i&&a?XL(i.split("."),a.split(".")):i||a?i?-1:1:0},OC=(e,t,n)=>{uue(n);const r=lue(e,t);return Z9[n].includes(r)},Z9={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},QL=Object.keys(Z9),uue=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(QL.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${QL.join("|")}`)},X9=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),Q9=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),hw=e=>Object.prototype.toString.call(e)==="[object Object]",J9=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const a=t(...r);return n[i]=a,a}},Y0=(e,t)=>{const n={...e};return!hw(e)||!hw(t)||Object.keys(t).forEach(r=>{hw(t[r])?n[r]=r in e&&e[r]!==void 0?Y0(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},cP=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),cue=(e,t)=>[...e].sort((n,r)=>{const i=t(n),a=t(r);return i===a?0:i<a?-1:1}),kf=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},JL=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),ni=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),fue="Left",due="Right",hue="Up",pue="Down",jf={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},SC={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},eD="mousemove",tD="mouseup",mue="touchend",vue="touchmove",gue="touchstart";function yue(e,t,n,r){return e>t?n>0?due:fue:r>0?pue:hue}function nD(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function bue(e,t){const n=h=>{const m="touches"in h;m&&h.touches.length>1||e((g,x)=>{x.trackMouse&&!m&&(document.addEventListener(eD,r),document.addEventListener(tD,o));const{clientX:_,clientY:w}=m?h.touches[0]:h,O=nD([_,w],x.rotationAngle);return x.onTouchStartOrOnMouseDown&&x.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},g),SC),{initial:O.slice(),xy:O,start:h.timeStamp||0})})},r=h=>{e((m,g)=>{const x="touches"in h;if(x&&h.touches.length>1)return m;if(h.timeStamp-m.start>g.swipeDuration)return m.swiping?Object.assign(Object.assign({},m),{swiping:!1}):m;const{clientX:_,clientY:w}=x?h.touches[0]:h,[O,S]=nD([_,w],g.rotationAngle),T=O-m.xy[0],A=S-m.xy[1],j=Math.abs(T),P=Math.abs(A),R=(h.timeStamp||0)-m.start,D=Math.sqrt(j*j+P*P)/(R||1),U=[T/(R||1),A/(R||1)],z=yue(j,P,T,A),F=typeof g.delta=="number"?g.delta:g.delta[z.toLowerCase()]||jf.delta;if(j<F&&P<F&&!m.swiping)return m;const V={absX:j,absY:P,deltaX:T,deltaY:A,dir:z,event:h,first:m.first,initial:m.initial,velocity:D,vxvy:U};V.first&&g.onSwipeStart&&g.onSwipeStart(V),g.onSwiping&&g.onSwiping(V);let H=!1;return(g.onSwiping||g.onSwiped||g[`onSwiped${z}`])&&(H=!0),H&&g.preventScrollOnSwipe&&g.trackTouch&&h.cancelable&&h.preventDefault(),Object.assign(Object.assign({},m),{first:!1,eventData:V,swiping:!0})})},i=h=>{e((m,g)=>{let x;if(m.swiping&&m.eventData){if(h.timeStamp-m.start<g.swipeDuration){x=Object.assign(Object.assign({},m.eventData),{event:h}),g.onSwiped&&g.onSwiped(x);const _=g[`onSwiped${x.dir}`];_&&_(x)}}else g.onTap&&g.onTap({event:h});return g.onTouchEndOrOnMouseUp&&g.onTouchEndOrOnMouseUp({event:h}),Object.assign(Object.assign(Object.assign({},m),SC),{eventData:x})})},a=()=>{document.removeEventListener(eD,r),document.removeEventListener(tD,o)},o=h=>{a(),i(h)},l=(h,m)=>{let g=()=>{};if(h&&h.addEventListener){const x=Object.assign(Object.assign({},jf.touchEventOptions),m.touchEventOptions),_=[[gue,n,x],[vue,r,Object.assign(Object.assign({},x),m.preventScrollOnSwipe?{passive:!1}:{})],[mue,i,x]];_.forEach(([w,O,S])=>h.addEventListener(w,O,S)),g=()=>_.forEach(([w,O])=>h.removeEventListener(w,O))}return g},c={ref:h=>{h!==null&&e((m,g)=>{if(m.el===h)return m;const x={};return m.el&&m.el!==h&&m.cleanUpTouch&&(m.cleanUpTouch(),x.cleanUpTouch=void 0),g.trackTouch&&h&&(x.cleanUpTouch=l(h,g)),Object.assign(Object.assign(Object.assign({},m),{el:h}),x)})}};return t.trackMouse&&(c.onMouseDown=n),[c,l]}function _ue(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function xue(e){const{trackMouse:t}=e,n=I.useRef(Object.assign({},SC)),r=I.useRef(Object.assign({},jf)),i=I.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},jf),e);let a;for(a in jf)r.current[a]===void 0&&(r.current[a]=jf[a]);const[o,l]=I.useMemo(()=>bue(f=>n.current=f(n.current,r.current),{trackMouse:t}),[t]);return n.current=_ue(n.current,r.current,i.current,l),o}var xp={exports:{}};/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/var wue=xp.exports,rD;function Oue(){return rD||(rD=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,a=n.XMLHttpRequest,o=n.XDomainRequest,l=n.ActiveXObject,f=n.EventSource,c=n.document,h=n.Promise,m=n.fetch,g=n.Response,x=n.TextDecoder,_=n.TextEncoder,w=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(ge){c.readyState="complete"},!1)),a==null&&l!=null&&(a=function(){return new l("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ge){function je(){}return je.prototype=ge,new je}),Date.now||(Date.now=function(){return new Date().getTime()}),w==null){var O=m;m=function(ge,je){var Me=je.signal;return O(ge,{headers:je.headers,credentials:je.credentials,cache:je.cache}).then(function(Be){var Xe=Be.body.getReader();return Me._reader=Xe,Me._aborted&&Me._reader.cancel(),{status:Be.status,statusText:Be.statusText,headers:Be.headers,body:{getReader:function(){return Xe}}}})},w=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function S(){this.bitsNeeded=0,this.codePoint=0}S.prototype.decode=function(ge){function je(De,Le,Ie){if(Ie===1)return De>=128>>Le&&De<<Le<=2047;if(Ie===2)return De>=2048>>Le&&De<<Le<=55295||De>=57344>>Le&&De<<Le<=65535;if(Ie===3)return De>=65536>>Le&&De<<Le<=1114111;throw new Error}function Me(De,Le){if(De===6*1)return Le>>6>15?3:Le>31?2:1;if(De===6*2)return Le>15?3:2;if(De===6*3)return 3;throw new Error}for(var Be=65533,Xe="",qe=this.bitsNeeded,Ye=this.codePoint,ye=0;ye<ge.length;ye+=1){var we=ge[ye];qe!==0&&(we<128||we>191||!je(Ye<<6|we&63,qe-6,Me(qe,Ye)))&&(qe=0,Ye=Be,Xe+=String.fromCharCode(Ye)),qe===0?(we>=0&&we<=127?(qe=0,Ye=we):we>=192&&we<=223?(qe=6*1,Ye=we&31):we>=224&&we<=239?(qe=6*2,Ye=we&15):we>=240&&we<=247?(qe=6*3,Ye=we&7):(qe=0,Ye=Be),qe!==0&&!je(Ye,qe,Me(qe,Ye))&&(qe=0,Ye=Be)):(qe-=6,Ye=Ye<<6|we&63),qe===0&&(Ye<=65535?Xe+=String.fromCharCode(Ye):(Xe+=String.fromCharCode(55296+(Ye-65535-1>>10)),Xe+=String.fromCharCode(56320+(Ye-65535-1&1023))))}return this.bitsNeeded=qe,this.codePoint=Ye,Xe};var T=function(){try{return new x().decode(new _().encode("test"),{stream:!0})==="test"}catch(ge){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ge)}return!1};(x==null||_==null||!T())&&(x=S);var A=function(){};function j(ge){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=A,this.onload=A,this.onerror=A,this.onreadystatechange=A,this._contentType="",this._xhr=ge,this._sendTimeout=0,this._abort=A}j.prototype.open=function(ge,je){this._abort(!0);var Me=this,Be=this._xhr,Xe=1,qe=0;this._abort=function(Ie){Me._sendTimeout!==0&&(i(Me._sendTimeout),Me._sendTimeout=0),(Xe===1||Xe===2||Xe===3)&&(Xe=4,Be.onload=A,Be.onerror=A,Be.onabort=A,Be.onprogress=A,Be.onreadystatechange=A,Be.abort(),qe!==0&&(i(qe),qe=0),Ie||(Me.readyState=4,Me.onabort(null),Me.onreadystatechange())),Xe=0};var Ye=function(){if(Xe===1){var Ie=0,Ge="",Ze=void 0;if("contentType"in Be)Ie=200,Ge="OK",Ze=Be.contentType;else try{Ie=Be.status,Ge=Be.statusText,Ze=Be.getResponseHeader("Content-Type")}catch{Ie=0,Ge="",Ze=void 0}Ie!==0&&(Xe=2,Me.readyState=2,Me.status=Ie,Me.statusText=Ge,Me._contentType=Ze,Me.onreadystatechange())}},ye=function(){if(Ye(),Xe===2||Xe===3){Xe=3;var Ie="";try{Ie=Be.responseText}catch{}Me.readyState=3,Me.responseText=Ie,Me.onprogress()}},we=function(Ie,Ge){if((Ge==null||Ge.preventDefault==null)&&(Ge={preventDefault:A}),ye(),Xe===1||Xe===2||Xe===3){if(Xe=4,qe!==0&&(i(qe),qe=0),Me.readyState=4,Ie==="load")Me.onload(Ge);else if(Ie==="error")Me.onerror(Ge);else if(Ie==="abort")Me.onabort(Ge);else throw new TypeError;Me.onreadystatechange()}},De=function(Ie){Be!=null&&(Be.readyState===4?(!("onload"in Be)||!("onerror"in Be)||!("onabort"in Be))&&we(Be.responseText===""?"error":"load",Ie):Be.readyState===3?"onprogress"in Be||ye():Be.readyState===2&&Ye())},Le=function(){qe=r(function(){Le()},500),Be.readyState===3&&ye()};"onload"in Be&&(Be.onload=function(Ie){we("load",Ie)}),"onerror"in Be&&(Be.onerror=function(Ie){we("error",Ie)}),"onabort"in Be&&(Be.onabort=function(Ie){we("abort",Ie)}),"onprogress"in Be&&(Be.onprogress=ye),"onreadystatechange"in Be&&(Be.onreadystatechange=function(Ie){De(Ie)}),("contentType"in Be||!("ontimeout"in a.prototype))&&(je+=(je.indexOf("?")===-1?"?":"&")+"padding=true"),Be.open(ge,je,!0),"readyState"in Be&&(qe=r(function(){Le()},0))},j.prototype.abort=function(){this._abort(!1)},j.prototype.getResponseHeader=function(ge){return this._contentType},j.prototype.setRequestHeader=function(ge,je){var Me=this._xhr;"setRequestHeader"in Me&&Me.setRequestHeader(ge,je)},j.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},j.prototype.send=function(){if((!("ontimeout"in a.prototype)||!("sendAsBinary"in a.prototype)&&!("mozAnon"in a.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var ge=this;ge._sendTimeout=r(function(){ge._sendTimeout=0,ge.send()},4);return}var je=this._xhr;"withCredentials"in je&&(je.withCredentials=this.withCredentials);try{je.send(void 0)}catch(Me){throw Me}};function P(ge){return ge.replace(/[A-Z]/g,function(je){return String.fromCharCode(je.charCodeAt(0)+32)})}function R(ge){for(var je=Object.create(null),Me=ge.split(`\r
`),Be=0;Be<Me.length;Be+=1){var Xe=Me[Be],qe=Xe.split(": "),Ye=qe.shift(),ye=qe.join(": ");je[P(Ye)]=ye}this._map=je}R.prototype.get=function(ge){return this._map[P(ge)]},a!=null&&a.HEADERS_RECEIVED==null&&(a.HEADERS_RECEIVED=2);function D(){}D.prototype.open=function(ge,je,Me,Be,Xe,qe,Ye){ge.open("GET",Xe);var ye=0;ge.onprogress=function(){var De=ge.responseText,Le=De.slice(ye);ye+=Le.length,Me(Le)},ge.onerror=function(De){De.preventDefault(),Be(new Error("NetworkError"))},ge.onload=function(){Be(null)},ge.onabort=function(){Be(null)},ge.onreadystatechange=function(){if(ge.readyState===a.HEADERS_RECEIVED){var De=ge.status,Le=ge.statusText,Ie=ge.getResponseHeader("Content-Type"),Ge=ge.getAllResponseHeaders();je(De,Le,Ie,new R(Ge))}},ge.withCredentials=qe;for(var we in Ye)Object.prototype.hasOwnProperty.call(Ye,we)&&ge.setRequestHeader(we,Ye[we]);return ge.send(),ge};function U(ge){this._headers=ge}U.prototype.get=function(ge){return this._headers.get(ge)};function z(){}z.prototype.open=function(ge,je,Me,Be,Xe,qe,Ye){var ye=null,we=new w,De=we.signal,Le=new x;return m(Xe,{headers:Ye,credentials:qe?"include":"same-origin",signal:De,cache:"no-store"}).then(function(Ie){return ye=Ie.body.getReader(),je(Ie.status,Ie.statusText,Ie.headers.get("Content-Type"),new U(Ie.headers)),new h(function(Ge,Ze){var Ot=function(){ye.read().then(function(Et){if(Et.done)Ge(void 0);else{var bt=Le.decode(Et.value,{stream:!0});Me(bt),Ot()}}).catch(function(Et){Ze(Et)})};Ot()})}).catch(function(Ie){if(Ie.name!=="AbortError")return Ie}).then(function(Ie){Be(Ie)}),{abort:function(){ye!=null&&ye.cancel(),we.abort()}}};function F(){this._listeners=Object.create(null)}function V(ge){r(function(){throw ge},0)}F.prototype.dispatchEvent=function(ge){ge.target=this;var je=this._listeners[ge.type];if(je!=null)for(var Me=je.length,Be=0;Be<Me;Be+=1){var Xe=je[Be];try{typeof Xe.handleEvent=="function"?Xe.handleEvent(ge):Xe.call(this,ge)}catch(qe){V(qe)}}},F.prototype.addEventListener=function(ge,je){ge=String(ge);var Me=this._listeners,Be=Me[ge];Be==null&&(Be=[],Me[ge]=Be);for(var Xe=!1,qe=0;qe<Be.length;qe+=1)Be[qe]===je&&(Xe=!0);Xe||Be.push(je)},F.prototype.removeEventListener=function(ge,je){ge=String(ge);var Me=this._listeners,Be=Me[ge];if(Be!=null){for(var Xe=[],qe=0;qe<Be.length;qe+=1)Be[qe]!==je&&Xe.push(Be[qe]);Xe.length===0?delete Me[ge]:Me[ge]=Xe}};function H(ge){this.type=ge,this.target=void 0}function te(ge,je){H.call(this,ge),this.data=je.data,this.lastEventId=je.lastEventId}te.prototype=Object.create(H.prototype);function ee(ge,je){H.call(this,ge),this.status=je.status,this.statusText=je.statusText,this.headers=je.headers}ee.prototype=Object.create(H.prototype);function re(ge,je){H.call(this,ge),this.error=je.error}re.prototype=Object.create(H.prototype);var Q=-1,oe=0,le=1,X=2,$=-1,G=0,se=1,Z=2,ue=3,fe=/^text\/event\-stream(;.*)?$/i,de=1e3,Se=18e6,k=function(ge,je){var Me=ge==null?je:parseInt(ge,10);return Me!==Me&&(Me=je),B(Me)},B=function(ge){return Math.min(Math.max(ge,de),Se)},K=function(ge,je,Me){try{typeof je=="function"&&je.call(ge,Me)}catch(Be){V(Be)}};function ce(ge,je){F.call(this),je=je||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Te(this,ge,je)}function ae(){return a!=null&&"withCredentials"in a.prototype||o==null?new a:new o}var pe=m!=null&&g!=null&&"body"in g.prototype;function Te(ge,je,Me){je=String(je);var Be=!!Me.withCredentials,Xe=Me.lastEventIdQueryParameterName||"lastEventId",qe=B(1e3),Ye=k(Me.heartbeatTimeout,45e3),ye="",we=qe,De=!1,Le=0,Ie=Me.headers||{},Ge=Me.Transport,Ze=pe&&Ge==null?void 0:new j(Ge!=null?new Ge:ae()),Ot=Ge!=null&&typeof Ge!="string"?new Ge:Ze==null?new z:new D,Et=void 0,bt=0,Zt=Q,Ht="",nn="",$n="",xr="",Vn=G,xs=0,oi=0,ws=function(gn,hn,Qn,Hn){if(Zt===oe)if(gn===200&&Qn!=null&&fe.test(Qn)){Zt=le,De=Date.now(),we=qe,ge.readyState=le;var rn=new ee("open",{status:gn,statusText:hn,headers:Hn});ge.dispatchEvent(rn),K(ge,ge.onopen,rn)}else{var Nt="";gn!==200?(hn&&(hn=hn.replace(/\s+/g," ")),Nt="EventSource's response has a status "+gn+" "+hn+" that is not 200. Aborting the connection."):Nt="EventSource's response has a Content-Type specifying an unsupported type: "+(Qn==null?"-":Qn.replace(/\s+/g," "))+". Aborting the connection.",Os();var rn=new ee("error",{status:gn,statusText:hn,headers:Hn});ge.dispatchEvent(rn),K(ge,ge.onerror,rn),console.error(Nt)}},La=function(gn){if(Zt===le){for(var hn=-1,Qn=0;Qn<gn.length;Qn+=1){var Hn=gn.charCodeAt(Qn);(Hn===10||Hn===13)&&(hn=Qn)}var rn=(hn!==-1?xr:"")+gn.slice(0,hn+1);xr=(hn===-1?xr:"")+gn.slice(hn+1),gn!==""&&(De=Date.now(),Le+=gn.length);for(var Nt=0;Nt<rn.length;Nt+=1){var Hn=rn.charCodeAt(Nt);if(Vn===$&&Hn===10)Vn=G;else if(Vn===$&&(Vn=G),Hn===13||Hn===10){if(Vn!==G){Vn===se&&(oi=Nt+1);var an=rn.slice(xs,oi-1),Jn=rn.slice(oi+(oi<Nt&&rn.charCodeAt(oi)===32?1:0),Nt);an==="data"?(Ht+=`
`,Ht+=Jn):an==="id"?nn=Jn:an==="event"?$n=Jn:an==="retry"?(qe=k(Jn,qe),we=qe):an==="heartbeatTimeout"&&(Ye=k(Jn,Ye),bt!==0&&(i(bt),bt=r(function(){Da()},Ye)))}if(Vn===G){if(Ht!==""){ye=nn,$n===""&&($n="message");var Nn=new te($n,{data:Ht.slice(1),lastEventId:nn});if(ge.dispatchEvent(Nn),$n==="open"?K(ge,ge.onopen,Nn):$n==="message"?K(ge,ge.onmessage,Nn):$n==="error"&&K(ge,ge.onerror,Nn),Zt===X)return}Ht="",$n=""}Vn=Hn===13?$:G}else Vn===G&&(xs=Nt,Vn=se),Vn===se?Hn===58&&(oi=Nt+1,Vn=Z):Vn===Z&&(Vn=ue)}}},_c=function(gn){if(Zt===le||Zt===oe){Zt=Q,bt!==0&&(i(bt),bt=0),bt=r(function(){Da()},we),we=B(Math.min(qe*16,we*2)),ge.readyState=oe;var hn=new re("error",{error:gn});ge.dispatchEvent(hn),K(ge,ge.onerror,hn),gn!=null&&console.error(gn)}},Os=function(){Zt=X,Et!=null&&(Et.abort(),Et=void 0),bt!==0&&(i(bt),bt=0),ge.readyState=X},Da=function(){if(bt=0,Zt!==Q){if(!De&&Et!=null)_c(new Error("No activity within "+Ye+" milliseconds. "+(Zt===oe?"No response received.":Le+" chars received.")+" Reconnecting.")),Et!=null&&(Et.abort(),Et=void 0);else{var gn=Math.max((De||Date.now())+Ye-Date.now(),1);De=!1,bt=r(function(){Da()},gn)}return}De=!1,Le=0,bt=r(function(){Da()},Ye),Zt=oe,Ht="",$n="",nn=ye,xr="",xs=0,oi=0,Vn=G;var hn=je;if(je.slice(0,5)!=="data:"&&je.slice(0,5)!=="blob:"&&ye!==""){var Qn=je.indexOf("?");hn=Qn===-1?je:je.slice(0,Qn+1)+je.slice(Qn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Jn,Nn){return Nn===Xe?"":Jn}),hn+=(je.indexOf("?")===-1?"?":"&")+Xe+"="+encodeURIComponent(ye)}var Hn=ge.withCredentials,rn={};rn.Accept="text/event-stream";var Nt=ge.headers;if(Nt!=null)for(var an in Nt)Object.prototype.hasOwnProperty.call(Nt,an)&&(rn[an]=Nt[an]);try{Et=Ot.open(Ze,ws,La,_c,hn,Hn,rn)}catch(Jn){throw Os(),Jn}};ge.url=je,ge.readyState=oe,ge.withCredentials=Be,ge.headers=Ie,ge._close=Os,Da()}ce.prototype=Object.create(F.prototype),ce.prototype.CONNECTING=oe,ce.prototype.OPEN=le,ce.prototype.CLOSED=X,ce.prototype.close=function(){this._close()},ce.CONNECTING=oe,ce.OPEN=le,ce.CLOSED=X,ce.prototype.withCredentials=void 0;var Fe=f;a!=null&&(f==null||!("withCredentials"in f.prototype))&&(Fe=ce),function(ge){{var je=ge(t);je!==void 0&&(e.exports=je)}}(function(ge){ge.EventSourcePolyfill=ce,ge.NativeEventSource=f,ge.EventSource=Fe})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:wue:globalThis)}(xp,xp.exports)),xp.exports}var Sue=Oue();const Tl=({children:e})=>y.jsx("small",{className:"form-text text-muted d-block",children:e}),Eue=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:n,interval:r}=Wr("realTimeUpdates",{enabled:!0}),i=I.useId();return y.jsxs(Jt,{title:"Real-time updates",className:"h-100",children:[y.jsx(ab,{children:y.jsxs(ss,{checked:n,onChange:e,children:["Enable or disable real-time updates.",y.jsxs(Tl,{children:["Real-time updates are currently being ",y.jsx("b",{children:n?"processed":"ignored"}),"."]})]})}),y.jsxs(Ld,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Ve("form-label",{"text-muted":!n}),id:i,children:[y.jsx(sr,{type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,id:i,onChange:({target:a})=>t(Number(a.value))}),n&&y.jsx(Tl,{children:r?y.jsxs("span",{children:["Updates will be reflected in the UI every ",y.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},pw=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Tue=e=>e==="includes"?y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"including"})," provided input."]}):y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"starting with"})," provided input."]}),Cue=({updateShortUrlCreationSettings:e})=>{const t=Wr("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return y.jsxs(Jt,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[y.jsxs(ss,{checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),children:["Request validation on long URLs when creating new short URLs."," ",y.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]}),y.jsxs(Tl,{children:["The initial state of the ",y.jsx("b",{children:"Validate URL"})," checkbox will be ",y.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]}),y.jsxs(ss,{checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),children:["Make all new short URLs forward their query params to the long URL.",y.jsxs(Tl,{children:["The initial state of the ",y.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",y.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]})]}),y.jsxs(Ld,{noMargin:!0,label:"Tag suggestions search mode:",children:[y.jsxs(vs,{text:pw(t.tagFilteringMode),children:[y.jsx(Qe,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:pw("startsWith")}),y.jsx(Qe,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:pw("includes")})]}),y.jsx(Tl,{children:Tue(t.tagFilteringMode)})]})]})},Aue={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},jue=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const n=Wr("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return y.jsxs(Jt,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[y.jsxs(ss,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",y.jsxs(Tl,{children:["When deleting a short URL, confirmation ",y.jsx("b",{children:r?"will":"won't"})," be required."]})]}),y.jsx(Ld,{noMargin:!0,label:"Default ordering for short URLs list:",children:y.jsx(av,{items:Aue,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(i,a)=>e({defaultOrdering:{field:i,dir:a}})})})]})},Pue={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Rue=({updateTagsSettings:e})=>{const t=Wr("tags",{});return y.jsx(Jt,{title:"Tags",className:"h-100",children:y.jsx(Ld,{noMargin:!0,label:"Default ordering for tags list:",children:y.jsx(av,{items:Pue,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})})},Mue=({updateUiSettings:e,_matchMedia:t})=>{const n=Wr("ui"),r=I.useMemo(()=>(n==null?void 0:n.theme)??iP(t),[n==null?void 0:n.theme,t]);return y.jsxs(Jt,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[y.jsx(ss,{checked:r==="dark",onChange:i=>{e({...n,theme:i?"dark":"light"})},children:"Use dark theme."}),y.jsx(Ke,{icon:r==="dark"?$Q:TQ})]})},eF={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Nue=(e,t)=>!e||e==="all"?t:eF[e],Lue=({onChange:e,active:t,allText:n})=>y.jsxs(vs,{text:Nue(t,n),children:[y.jsx(Qe,{active:t==="all",onClick:()=>e("all"),children:n}),y.jsx(Qe,{divider:!0}),Object.entries(eF).map(([r,i])=>y.jsx(Qe,{active:t===r,onClick:()=>e(r),children:i},r))]}),iD=e=>(e==null?void 0:e.defaultInterval)??"last30Days",Due=({updateVisitsSettings:e})=>{const t=Wr("visits"),n=I.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??iD(t),...i}),[e,t]);return y.jsxs(Jt,{title:"Visits",className:"h-100",children:[y.jsx(ab,{children:y.jsxs(ss,{checked:!!(t!=null&&t.excludeBots),onChange:r=>n({excludeBots:r}),children:["Exclude bots wherever possible (this options effect might depend on Shlink servers version).",y.jsxs(Tl,{children:["The visits coming from potential bots will be ",y.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),y.jsx(ab,{children:y.jsxs(ss,{checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),children:["Compare visits with previous period.",y.jsxs(Tl,{children:["When loading visits, previous period ",y.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),y.jsx(Ld,{noMargin:!0,label:"Default interval to load on visits sections:",children:y.jsx(Lue,{allText:"All visits",active:iD(t),onChange:r=>n({defaultInterval:r})})})]})},mw=({children:e})=>I.Children.map(e,(t,n)=>y.jsx("div",{className:"mb-3",children:t},n)),kue=({settings:e,updateSettings:t,onUpdateSettings:n=t,defaultShortUrlsListOrdering:r})=>{const i=I.useCallback(f=>n==null?void 0:n(Y0(e,f)),[e,n]),a=I.useCallback(f=>i({realTimeUpdates:{enabled:f}}),[i]),o=I.useCallback(f=>i({realTimeUpdates:{interval:f}}),[i]),l=I.useCallback((f,c)=>i({[f]:c}),[i]);return y.jsxs(rF,{value:e,children:[y.jsxs(R9,{className:"mb-3",children:[y.jsx(Np,{to:"../general",children:"General"}),y.jsx(Np,{to:"../short-urls",children:"Short URLs"}),y.jsx(Np,{to:"../other-items",children:"Other items"})]}),y.jsxs(R0,{children:[y.jsx(xt,{path:"general",element:y.jsxs(mw,{children:[y.jsx(Mue,{updateUiSettings:f=>l("ui",f)}),y.jsx(Eue,{toggleRealTimeUpdates:a,setRealTimeUpdatesInterval:o})]})}),y.jsx(xt,{path:"short-urls",element:y.jsxs(mw,{children:[y.jsx(Cue,{updateShortUrlCreationSettings:f=>l("shortUrlCreation",f)}),y.jsx(jue,{defaultOrdering:r,updateShortUrlsListSettings:f=>l("shortUrlsList",f)})]})}),y.jsx(xt,{path:"other-items",element:y.jsxs(mw,{children:[y.jsx(Rue,{updateTagsSettings:f=>l("tags",f)}),y.jsx(Due,{updateVisitsSettings:f=>l("visits",f)})]})}),y.jsx(xt,{path:"*",element:y.jsx(hj,{replace:!0,to:"../general"})})]})]})},tF={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},nF=I.createContext(tF),{Provider:rF}=nF,fP=()=>I.useContext(nF)??tF;function Wr(e,t){return fP()[e]??t}/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const Iue={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},$ue=Iue,Uue={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},iF={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z"]},dP=6048e5,Bue=864e5,aF=6e4,hP=36e5,Xg=43200,aD=1440,oD=Symbol.for("constructDateFrom");function br(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&oD in e?e[oD](t):e instanceof Date?new e.constructor(t):new Date(t)}function Mt(e,t){return br(t||e,e)}function pP(e,t,n){const r=Mt(e,n==null?void 0:n.in);return isNaN(t)?br(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Fue(e,t,n){const r=Mt(e,n==null?void 0:n.in);if(isNaN(t))return br(e,NaN);if(!t)return r;const i=r.getDate(),a=br(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function zue(e,t,n){const{years:r=0,months:i=0,weeks:a=0,days:o=0,hours:l=0,minutes:f=0,seconds:c=0}=t,h=Mt(e,n==null?void 0:n.in),m=i||r?Fue(h,i+r*12):h,g=o||a?pP(m,o+a*7):m,x=f+l*60,w=(c+x*60)*1e3;return br(e,+g+w)}let que={};function sv(){return que}function ac(e,t){var l,f,c,h;const n=sv(),r=(t==null?void 0:t.weekStartsOn)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((h=(c=n.locale)==null?void 0:c.options)==null?void 0:h.weekStartsOn)??0,i=Mt(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function om(e,t){return ac(e,{...t,weekStartsOn:1})}function oF(e,t){const n=Mt(e,t==null?void 0:t.in),r=n.getFullYear(),i=br(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=om(i),o=br(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const l=om(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Zf(e){const t=Mt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function hc(e,...t){const n=br.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function oc(e,t){const n=Mt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function K0(e,t,n){const[r,i]=hc(n==null?void 0:n.in,e,t),a=oc(r),o=oc(i),l=+a-Zf(a),f=+o-Zf(o);return Math.round((l-f)/Bue)}function Vue(e,t){const n=oF(e,t),r=br(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),om(r)}function sF(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=br.bind(null,i));const a=Mt(i,r);(!n||n<a||isNaN(+a))&&(n=a)}),br(r,n||NaN)}function Hue(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=br.bind(null,i));const a=Mt(i,r);(!n||n>a||isNaN(+a))&&(n=a)}),br(r,n||NaN)}function jy(e,t){const n=+Mt(e)-+Mt(t);return n<0?-1:n>0?1:n}function Wue(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Gue(e){return!(!Wue(e)&&typeof e!="number"||isNaN(+Mt(e)))}function pb(e,t,n){const[r,i]=hc(n==null?void 0:n.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function Yue(e,t,n){const[r,i]=hc(n==null?void 0:n.in,e,t),a=ac(r,n),o=ac(i,n),l=+a-Zf(a),f=+o-Zf(o);return Math.round((l-f)/dP)}function lF(e,t,n){const[r,i]=hc(n==null?void 0:n.in,e,t),a=sD(r,i),o=Math.abs(K0(r,i));r.setDate(r.getDate()-a*o);const l=+(sD(r,i)===-a),f=a*(o-l);return f===0?0:f}function sD(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function uF(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function Kue(e,t,n){const[r,i]=hc(n==null?void 0:n.in,e,t),a=(+r-+i)/hP;return uF(n==null?void 0:n.roundingMethod)(a)}function Zue(e,t){return+Mt(e)-+Mt(t)}function Xf(e,t){const n=Mt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function Xue(e,t){const n=Mt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Que(e,t){const n=Mt(e,t==null?void 0:t.in);return+Xf(n,t)==+Xue(n,t)}function Jue(e,t,n){const[r,i,a]=hc(n==null?void 0:n.in,e,e,t),o=jy(i,a),l=Math.abs(pb(i,a));if(l<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*l);let f=jy(i,a)===-o;Que(r)&&l===1&&jy(r,a)===1&&(f=!1);const c=o*(l-+f);return c===0?0:c}function ece(e,t,n){const r=Zue(e,t)/1e3;return uF(n==null?void 0:n.roundingMethod)(r)}function tce(e,t){const n=Mt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function nce(e,t){const n=t==null?void 0:t.weekStartsOn,r=Mt(e,t==null?void 0:t.in),i=r.getDay(),a=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+a),r.setHours(23,59,59,999),r}function rce(e,t){return nce(e,{...t,weekStartsOn:1})}const ice={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ace=(e,t,n)=>{let r;const i=ice[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function vw(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const oce={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sce={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lce={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uce={date:vw({formats:oce,defaultWidth:"full"}),time:vw({formats:sce,defaultWidth:"full"}),dateTime:vw({formats:lce,defaultWidth:"full"})},cce={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fce=(e,t,n,r)=>cce[e];function tp(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const dce={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hce={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pce={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},mce={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},vce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},gce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yce=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},bce={ordinalNumber:yce,era:tp({values:dce,defaultWidth:"wide"}),quarter:tp({values:hce,defaultWidth:"wide",argumentCallback:e=>e-1}),month:tp({values:pce,defaultWidth:"wide"}),day:tp({values:mce,defaultWidth:"wide"}),dayPeriod:tp({values:vce,defaultWidth:"wide",formattingValues:gce,defaultFormattingWidth:"wide"})};function np(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(l)?xce(l,m=>m.test(o)):_ce(l,m=>m.test(o));let c;c=e.valueCallback?e.valueCallback(f):f,c=n.valueCallback?n.valueCallback(c):c;const h=t.slice(o.length);return{value:c,rest:h}}}function _ce(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function xce(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function wce(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(i.length);return{value:o,rest:l}}}const Oce=/^(\d+)(th|st|nd|rd)?/i,Sce=/\d+/i,Ece={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Tce={any:[/^b/i,/^(a|c)/i]},Cce={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ace={any:[/1/i,/2/i,/3/i,/4/i]},jce={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Pce={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Rce={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Mce={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Nce={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Lce={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Dce={ordinalNumber:wce({matchPattern:Oce,parsePattern:Sce,valueCallback:e=>parseInt(e,10)}),era:np({matchPatterns:Ece,defaultMatchWidth:"wide",parsePatterns:Tce,defaultParseWidth:"any"}),quarter:np({matchPatterns:Cce,defaultMatchWidth:"wide",parsePatterns:Ace,defaultParseWidth:"any",valueCallback:e=>e+1}),month:np({matchPatterns:jce,defaultMatchWidth:"wide",parsePatterns:Pce,defaultParseWidth:"any"}),day:np({matchPatterns:Rce,defaultMatchWidth:"wide",parsePatterns:Mce,defaultParseWidth:"any"}),dayPeriod:np({matchPatterns:Nce,defaultMatchWidth:"any",parsePatterns:Lce,defaultParseWidth:"any"})},cF={code:"en-US",formatDistance:ace,formatLong:uce,formatRelative:fce,localize:bce,match:Dce,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kce(e,t){const n=Mt(e,t==null?void 0:t.in);return K0(n,tce(n))+1}function Ice(e,t){const n=Mt(e,t==null?void 0:t.in),r=+om(n)-+Vue(n);return Math.round(r/dP)+1}function fF(e,t){var h,m,g,x;const n=Mt(e,t==null?void 0:t.in),r=n.getFullYear(),i=sv(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(g=i.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??1,o=br((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const l=ac(o,t),f=br((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,a),f.setHours(0,0,0,0);const c=ac(f,t);return+n>=+l?r+1:+n>=+c?r:r-1}function $ce(e,t){var l,f,c,h;const n=sv(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(c=n.locale)==null?void 0:c.options)==null?void 0:h.firstWeekContainsDate)??1,i=fF(e,t),a=br((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),ac(a,t)}function Uce(e,t){const n=Mt(e,t==null?void 0:t.in),r=+ac(n,t)-+$ce(n,t);return Math.round(r/dP)+1}function Rt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ml={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Rt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Rt(n+1,2)},d(e,t){return Rt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Rt(e.getHours()%12||12,t.length)},H(e,t){return Rt(e.getHours(),t.length)},m(e,t){return Rt(e.getMinutes(),t.length)},s(e,t){return Rt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Rt(i,t.length)}},mf={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lD={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return ml.y(e,t)},Y:function(e,t,n,r){const i=fF(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Rt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Rt(a,t.length)},R:function(e,t){const n=oF(e);return Rt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Rt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ml.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Uce(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Rt(i,t.length)},I:function(e,t,n){const r=Ice(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Rt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ml.d(e,t)},D:function(e,t,n){const r=kce(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Rt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Rt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Rt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Rt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=mf.noon:r===0?i=mf.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=mf.evening:r>=12?i=mf.afternoon:r>=4?i=mf.morning:i=mf.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ml.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ml.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Rt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Rt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ml.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ml.s(e,t)},S:function(e,t){return ml.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return cD(r);case"XXXX":case"XX":return Nu(r);case"XXXXX":case"XXX":default:return Nu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return cD(r);case"xxxx":case"xx":return Nu(r);case"xxxxx":case"xxx":default:return Nu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uD(r,":");case"OOOO":default:return"GMT"+Nu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uD(r,":");case"zzzz":default:return"GMT"+Nu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Rt(r,t.length)},T:function(e,t,n){return Rt(+e,t.length)}};function uD(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Rt(a,2)}function cD(e,t){return e%60===0?(e>0?"-":"+")+Rt(Math.abs(e)/60,2):Nu(e,t)}function Nu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Rt(Math.trunc(r/60),2),a=Rt(r%60,2);return n+i+t+a}const fD=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},dF=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Bce=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return fD(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",fD(r,t)).replace("{{time}}",dF(i,t))},Fce={p:dF,P:Bce},zce=/^D+$/,qce=/^Y+$/,Vce=["D","DD","YY","YYYY"];function Hce(e){return zce.test(e)}function Wce(e){return qce.test(e)}function Gce(e,t,n){const r=Yce(e,t,n);if(console.warn(r),Vce.includes(e))throw new RangeError(r)}function Yce(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Kce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Zce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xce=/^'([^]*?)'?$/,Qce=/''/g,Jce=/[a-zA-Z]/;function mb(e,t,n){var h,m,g,x;const r=sv(),i=r.locale??cF,a=r.firstWeekContainsDate??((m=(h=r.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,o=r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,l=Mt(e,n==null?void 0:n.in);if(!Gue(l))throw new RangeError("Invalid time value");let f=t.match(Zce).map(_=>{const w=_[0];if(w==="p"||w==="P"){const O=Fce[w];return O(_,i.formatLong)}return _}).join("").match(Kce).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:efe(_)};if(lD[w])return{isToken:!0,value:_};if(w.match(Jce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(f=i.localize.preprocessor(l,f));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return f.map(_=>{if(!_.isToken)return _.value;const w=_.value;(Wce(w)||Hce(w))&&Gce(w,t,String(e));const O=lD[w[0]];return O(l,w,i.localize,c)}).join("")}function efe(e){const t=e.match(Xce);return t?t[1].replace(Qce,"'"):e}function tfe(e,t,n){const r=sv(),i=(n==null?void 0:n.locale)??r.locale??cF,a=2520,o=jy(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[f,c]=hc(n==null?void 0:n.in,...o>0?[t,e]:[e,t]),h=ece(c,f),m=(Zf(c)-Zf(f))/1e3,g=Math.round((h-m)/60);let x;if(g<2)return g===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",g,l);if(g<45)return i.formatDistance("xMinutes",g,l);if(g<90)return i.formatDistance("aboutXHours",1,l);if(g<aD){const _=Math.round(g/60);return i.formatDistance("aboutXHours",_,l)}else{if(g<a)return i.formatDistance("xDays",1,l);if(g<Xg){const _=Math.round(g/aD);return i.formatDistance("xDays",_,l)}else if(g<Xg*2)return x=Math.round(g/Xg),i.formatDistance("aboutXMonths",x,l)}if(x=Jue(c,f),x<12){const _=Math.round(g/Xg);return i.formatDistance("xMonths",_,l)}else{const _=x%12,w=Math.trunc(x/12);return _<3?i.formatDistance("aboutXYears",w,l):_<9?i.formatDistance("overXYears",w,l):i.formatDistance("almostXYears",w+1,l)}}function nfe(e,t){const n=Mt(e,t==null?void 0:t.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const a="-",o=":";{const l=Rt(n.getDate(),2),f=Rt(n.getMonth()+1,2);r=`${Rt(n.getFullYear(),4)}${a}${f}${a}${l}`}{const l=n.getTimezoneOffset();if(l!==0){const x=Math.abs(l),_=Rt(Math.trunc(x/60),2),w=Rt(x%60,2);i=`${l<0?"+":"-"}${_}:${w}`}else i="Z";const f=Rt(n.getHours(),2),c=Rt(n.getMinutes(),2),h=Rt(n.getSeconds(),2),m=r===""?"":"T",g=[f,c,h].join(o);r=`${r}${m}${g}${i}`}return r}function rfe(e){return Math.trunc(+Mt(e)/1e3)}function ife(e,t){return+Mt(e)>+Mt(t)}function vb(e,t){return+Mt(e)<+Mt(t)}function EC(e,t){return+Mt(e)==+Mt(t)}function afe(e,t,n){const r=+Mt(e,n==null?void 0:n.in),[i,a]=[+Mt(t.start,n==null?void 0:n.in),+Mt(t.end,n==null?void 0:n.in)].sort((o,l)=>o-l);return r>=i&&r<=a}function gb(e,t,n){return pP(e,-t,n)}function Dl(e,t){const n=()=>br(t==null?void 0:t.in,NaN),i=ufe(e);let a;if(i.date){const c=cfe(i.date,2);a=ffe(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const o=+a;let l=0,f;if(i.time&&(l=dfe(i.time),isNaN(l)))return n();if(i.timezone){if(f=hfe(i.timezone),isNaN(f))return n()}else{const c=new Date(o+l),h=Mt(0,t==null?void 0:t.in);return h.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),h.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),h}return Mt(o+l+f,t==null?void 0:t.in)}const Qg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ofe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sfe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lfe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ufe(e){const t={},n=e.split(Qg.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Qg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Qg.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Qg.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function cfe(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function ffe(e,t){if(t===null)return new Date(NaN);const n=e.match(ofe);if(!n)return new Date(NaN);const r=!!n[4],i=rp(n[1]),a=rp(n[2])-1,o=rp(n[3]),l=rp(n[4]),f=rp(n[5])-1;if(r)return yfe(t,l,f)?pfe(t,l,f):new Date(NaN);{const c=new Date(0);return!vfe(t,a,o)||!gfe(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function rp(e){return e?parseInt(e):1}function dfe(e){const t=e.match(sfe);if(!t)return NaN;const n=gw(t[1]),r=gw(t[2]),i=gw(t[3]);return bfe(n,r,i)?n*hP+r*aF+i*1e3:NaN}function gw(e){return e&&parseFloat(e.replace(",","."))||0}function hfe(e){if(e==="Z")return 0;const t=e.match(lfe);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return _fe(r,i)?n*(r*hP+i*aF):NaN}function pfe(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const mfe=[31,null,31,30,31,30,31,31,30,31,30,31];function hF(e){return e%400===0||e%4===0&&e%100!==0}function vfe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(mfe[t]||(hF(e)?29:28))}function gfe(e,t){return t>=1&&t<=(hF(e)?366:365)}function yfe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function bfe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function _fe(e,t){return t>=0&&t<=59}/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const xfe={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},wfe={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},Lu={Enter:"Enter",Escape:"Escape",Backspace:"Backspace",UpArrow:"ArrowUp",DownArrow:"ArrowDown",PageDown:"PageDown",PageUp:"PageUp"},mP=Symbol("Create new tag"),pF=Symbol("No options"),Ef=()=>{},ur=J.createContext(void 0);function dD(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Ofe(e){return e.selectionStart===0&&e.selectionEnd===0}function Sfe(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function Z0(e){return`${e}-label`}function Efe(e){return`${e}-combobox`}function Tfe(e){return`${e}-input`}function mF(e){return`${e}-listbox`}function vF(e,t){return`${e}-option-${Nfe(t)}`}function Cfe(e,t){if((e==null?void 0:e.value)===mP&&e.disabled===!1)return{value:t,label:t}}function Afe(e){const t=Cfe(e.activeOption,e.value)||e.activeOption||Ife(e.value,e.options);return t&&!t.disabled?t:void 0}function jfe(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const Pfe=/%value%/;function yb(e,t){return e.replace(Pfe,t)}function Rfe(e,t){const n=yF(t),r=e.match(n);if(r){const i=r[0],a=r.index+i.length;return[e.slice(0,r.index),e.slice(r.index,a),e.slice(a)]}}const Mfe=/\s+/g;function TC(e){return`${String(e.value)}-${e.label}`}function Nfe(e){return TC(e).replace(Mfe,"_")}function CC(e,t){return t.findIndex(({value:n})=>n===e.value)}const Lfe=/[-\\^$*+?.()|[\]{}]/g;function gF(e){return e.replace(Lfe,"\\$&")}function yF(e){return new RegExp(gF(e),"i")}function Dfe(e){return new RegExp(`^${gF(e)}$`,"i")}function kfe(e,t){if(e){const n=yF(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function Ife(e,t){const n=Dfe(e);return t.find(r=>n.test(r.label))||null}const $fe={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function Ufe({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:a,inputRef:o,isDisabled:l,isInvalid:f,managerRef:c}=I.useContext(ur),h=I.useMemo(()=>{const _=F=>{const V=F.currentTarget.value;c.current.updateInputValue(V),document.activeElement===o.current&&c.current.listBoxExpand(V)},w=()=>{c.current.listBoxExpand()},O=F=>{var V;((V=a.current)==null?void 0:V.contains(F.relatedTarget))===!1&&c.current.listBoxCollapse()},S=()=>{c.current.listBoxExpand()},T=F=>{const{activeIndex:V,isExpanded:H}=c.current.state;H?(F.preventDefault(),c.current.updateActiveIndex(V+1)):(Sfe(F.currentTarget)||F.altKey)&&(F.preventDefault(),c.current.listBoxExpand())},A=F=>{const{activeIndex:V,isExpanded:H}=c.current.state;H?(F.preventDefault(),c.current.updateActiveIndex(V-1)):Ofe(F.currentTarget)&&(F.preventDefault(),c.current.listBoxExpand())},j=F=>{const{isExpanded:V,options:H}=c.current.state;V&&(F.preventDefault(),c.current.updateActiveIndex(H.length-1))},P=F=>{c.current.state.isExpanded&&(F.preventDefault(),c.current.updateActiveIndex(0))},R=()=>{c.current.state.isExpanded?c.current.listBoxCollapse():c.current.updateInputValue("")},D=()=>{if(e){const{value:F,selected:V}=c.current.state,H=V[V.length-1];F===""&&H&&c.current.selectTag(H)}},U=F=>{c.current.state.isExpanded&&(F.preventDefault(),c.current.selectTag())};return{onBlur:O,onChange:_,onClick:S,onFocus:w,onKeyDown:F=>{if(F.key===Lu.UpArrow)return A(F);if(F.key===Lu.DownArrow)return T(F);if(F.key===Lu.PageUp)return P(F);if(F.key===Lu.PageDown)return j(F);if(F.key===Lu.Escape)return R();if(F.key===Lu.Backspace)return D();if(r.includes(F.key))return U(F)}}},[e,a,r,o,c]),{activeOption:m,isExpanded:g,value:x}=c.current.state;return{...$fe,"aria-autocomplete":"list","aria-activedescendant":m?vF(i,m):void 0,"aria-controls":mF(i),"aria-describedby":t||void 0,"aria-disabled":l,"aria-errormessage":f&&n||void 0,"aria-invalid":f,"aria-labelledby":Z0(i),"aria-expanded":g,id:Tfe(i),onBlur:l?Ef:h.onBlur,onChange:l?Ef:h.onChange,onClick:l?Ef:h.onClick,onFocus:l?Ef:h.onFocus,onKeyDown:l?Ef:h.onKeyDown,ref:o,role:"combobox",type:"text",value:x}}const Bfe={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},Ffe=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function zfe({allowResize:e=!0,text:t}){const n=I.useRef(null),{inputRef:r}=I.useContext(ur),[i,a]=I.useState(null);return I.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const o=window.getComputedStyle(r.current);Ffe.forEach(l=>{const f=o.getPropertyValue(l);n.current.style.setProperty(l,f)})}},[e,r,n]),I.useLayoutEffect(()=>{var o;if(e){const l=Math.ceil(((o=n.current)==null?void 0:o.scrollWidth)??0)+2;i!==l&&a(l)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:Bfe}}}function qfe(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=I.useContext(ur),i=r.current.state.activeIndex===-1,a=I.useCallback(o=>{var l;o.target!==t.current&&((l=t.current)==null||l.focus({preventScroll:!0}))},[t]);return I.useEffect(()=>{var o;i&&((o=n.current)==null||o.scrollTo({top:0}))},[n,i]),{"aria-labelledby":Z0(e),id:mF(e),onFocus:a,ref:n,role:"listbox",tabIndex:-1}}function Vfe({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionPosition:r,newOptionText:i,noOptionsText:a,onAdd:o,onDelete:l,onCollapse:f,onExpand:c,onInput:h,onShouldCollapse:m,onShouldExpand:g,onValidate:x,selected:_,suggestions:w,suggestionsTransform:O}){const S=I.useRef(),[T,A]=I.useState(null),[j,P]=I.useState(!1),[R,D]=I.useState(""),U=I.useMemo(()=>{const re=O(R,w);return R&&(t&&re[r==="first"?"unshift":"push"]({disabled:x?!x(R):!1,label:i,value:mP}),re.length===0&&re.push({disabled:!0,label:a,value:pF})),re},[t,r,i,a,x,w,O,R]),z=T?CC(T,U):-1,F=e?Math.max(z,0):z,V=U[F],H={activeIndex:F,activeOption:V,isExpanded:j,options:U,selected:_,value:R},te={tagsAdded:S.current?dD(_,S.current.state.selected):[],tagsDeleted:S.current?dD(S.current.state.selected,_):[]},ee={listBoxCollapse(re){j&&(!m||m(re??H.value))&&(P(!1),A(null),f==null||f())},listBoxExpand(re){j||(!g||g(re??H.value))&&(P(!0),A(U[F]),c==null||c())},updateActiveIndex(re){const Q=jfe(re,U.length,e?0:-1);A(U[Q])},updateInputValue(re){R!==re&&(D(re),h==null||h(re))},selectTag(re){if(re??(re=Afe(H)),re){const Q=CC(re,H.selected);Q>-1?l(Q):o(re),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return S.current={...ee,flags:te,state:H},S}function Hfe(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=I.useContext(ur),a=I.useRef(null),o=i.current.state.options[e],l=e===i.current.state.activeIndex,f=o.disabled??!1,c=CC(o,i.current.state.selected)>-1,h=I.useCallback(()=>{var g;i.current.selectTag(),(g=n.current)==null||g.focus()},[n,i]),m=I.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return Yfe(a,r,l),{option:{...o,active:l,disabled:f,index:e,selected:c},optionProps:{"aria-disabled":f,"aria-posinset":e+1,"aria-selected":f?void 0:c,"aria-setsize":i.current.state.options.length,id:vF(t,o),onClick:h,onMouseDown:m,ref:a,role:"option",tabIndex:-1}}}function Wfe({inputRef:e,managerRef:t}){return I.useRef({input:{blur(){var r;(r=e.current)==null||r.blur()},focus(){var r;(r=e.current)==null||r.focus()},get value(){return t.current.state.value},set value(r){typeof r!="string"&&(r=String(r)),t.current.updateInputValue(r)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(r){t.current.selectTag(r)}}).current}function Gfe({onBlur:e,onFocus:t}){const[n,r]=I.useState(!1),{id:i,inputRef:a,rootRef:o}=I.useContext(ur),l=I.useMemo(()=>({"aria-describedby":Z0(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var f;(f=o.current)!=null&&f.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var f;document.activeElement===o.current&&((f=a.current)==null||f.focus())},ref:o,tabIndex:-1}),[a,i,e,t,o]);return{isActive:n,rootProps:l}}function Yfe(e,t,n){I.useEffect(()=>{var r,i,a,o;if(n){const l=(r=e.current)==null?void 0:r.offsetHeight,f=(i=e.current)==null?void 0:i.offsetTop,c=(a=t.current)==null?void 0:a.offsetHeight,h=(o=t.current)==null?void 0:o.scrollTop;f<h&&t.current.scrollTo(0,f),f+l>h+c&&t.current.scrollTo(0,f+l-c)}},[n,t,e])}function Kfe(e,t){const{isDisabled:n,managerRef:r}=I.useContext(ur),i=r.current.state.selected[e],a=I.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:yb(t,i.label),onClick:n?Ef:a}}}function Zfe({label:e}){var t;const{rootRef:n,managerRef:r}=I.useContext(ur),i=I.useRef(),a=r.current.flags.tagsDeleted[0],o=(t=i.current)==null?void 0:t.contains(document.activeElement);return I.useLayoutEffect(()=>{var l,f;if(a){const c=(l=i.current)==null?void 0:l.contains(document.activeElement);o&&!c&&((f=n.current)==null||f.focus({preventScroll:!0}))}},[o,i,n,a]),{ref:i,"aria-label":e}}const Xfe={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function Qfe({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=I.useContext(ur),r=I.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(yb(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(yb(t,i.label))}),J.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:Xfe},r.current.join(`
`))}function Jfe({children:e}){const{classNames:t,comboBoxRef:n,id:r}=I.useContext(ur);return J.createElement("div",{className:t.comboBox,id:Efe(r),ref:n},e)}const ede=({classNames:e,text:t})=>J.createElement("mark",{className:e.highlight},t);function tde({option:e,query:t,render:n=ede}){const{classNames:r}=I.useContext(ur);if(e.value===mP||e.value===pF)return J.createElement(J.Fragment,null,yb(e.label,t));if(t){const i=Rfe(e.label,t);if(i){const a=n({text:i[1],classNames:r});return J.createElement(J.Fragment,null,i[0],a,i[2])}}return J.createElement(J.Fragment,null,e.label)}const nde=J.memo(tde),rde=({classNames:e,inputWidth:t,...n})=>J.createElement("input",{className:e.input,style:{width:t},...n});function ide({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:a,render:o=rde}){const{classNames:l}=I.useContext(ur),{value:f,...c}=Ufe({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),h=f.length<a.length?a:f,{width:m,sizerProps:g}=zfe({allowResize:t,text:h});return J.createElement(J.Fragment,null,o({classNames:l,inputWidth:m,placeholder:a,value:f,...c}),t?J.createElement("div",{...g},h):null)}const ade=({children:e,classNames:t,id:n})=>J.createElement("div",{className:t.label,id:n},e);function ode({children:e,render:t=ade}){const{classNames:n,id:r}=I.useContext(ur);return t({children:e,classNames:n,id:Z0(r)})}const sde=({children:e,classNames:t,...n})=>J.createElement("div",{className:t.listBox,...n},e);function lde({children:e,render:t=sde}){const{classNames:n,managerRef:r}=I.useContext(ur),i=qfe();return!r.current.state.isExpanded||J.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const ude=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),J.createElement("div",{className:i.join(" "),...r},e)};function cde({children:e,index:t,render:n=ude}){const{classNames:r}=I.useContext(ur),{option:i,optionProps:a}=Hfe(t);return n({classNames:r,children:e,option:i,...a})}const fde=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...a})=>{const o=[t.root];return n&&o.push(t.rootIsActive),r&&o.push(t.rootIsDisabled),i&&o.push(t.rootIsInvalid),J.createElement("div",{className:o.join(" "),...a},e)};function dde({children:e,onBlur:t,onFocus:n,render:r=fde}){const{classNames:i,isDisabled:a,isInvalid:o}=I.useContext(ur),{isActive:l,rootProps:f}=Gfe({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:l,isDisabled:a,isInvalid:o,...f})}const hde=({classNames:e,tag:t,...n})=>J.createElement("button",{type:"button",className:e.tag,...n},J.createElement("span",{className:e.tagName},t.label));function pde({render:e=hde,index:t,title:n}){const{classNames:r}=I.useContext(ur),{tag:i,tagProps:a}=Kfe(t,n);return e({classNames:r,tag:i,...a})}const mde=({children:e,classNames:t,...n})=>J.createElement("ul",{className:t.tagList,...n,role:"list"},J.Children.map(e,r=>{if(J.isValidElement(r))return J.createElement("li",{className:t.tagListItem,key:r.key,role:"listitem"},r)}));function vde({children:e,label:t,render:n=mde}){const{classNames:r}=I.useContext(ur),i=Zfe({label:t});return n({classNames:r,children:e,...i})}const gde={root:"react-tags",rootIsActive:"is-active",rootIsDisabled:"is-disabled",rootIsInvalid:"is-invalid",label:"react-tags__label",tagList:"react-tags__list",tagListItem:"react-tags__list-item",tag:"react-tags__tag",tagName:"react-tags__tag-name",comboBox:"react-tags__combobox",input:"react-tags__combobox-input",listBox:"react-tags__listbox",option:"react-tags__listbox-option",optionIsActive:"is-active",highlight:"react-tags__listbox-option-highlight"},yde=[Lu.Enter];function bde({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:a,ariaErrorMessage:o,ariaDeletedText:l="Removed tag %value%",classNames:f=gde,collapseOnSelect:c=!1,deleteButtonText:h="Remove %value% from the list",delimiterKeys:m=yde,id:g="react-tags",isDisabled:x=!1,isInvalid:_=!1,labelText:w="Select tags",newOptionPosition:O="last",newOptionText:S="Add %value%",noOptionsText:T="No options found for %value%",onAdd:A,onBlur:j,onCollapse:P,onDelete:R,onExpand:D,onFocus:U,onInput:z,onShouldCollapse:F,onShouldExpand:V,onValidate:H,placeholderText:te="Add a tag",renderHighlight:ee,renderInput:re,renderLabel:Q,renderListBox:oe,renderOption:le,renderRoot:X,renderTag:$,renderTagList:G,selected:se=[],suggestions:Z=[],suggestionsTransform:ue=kfe,tagListLabelText:fe="Selected tags"},de){const Se=I.useRef(null),k=I.useRef(null),B=I.useRef(null),K=I.useRef(null),ce=Vfe({activateFirstOption:e,allowNew:n,collapseOnSelect:c,newOptionPosition:O,newOptionText:S,noOptionsText:T,onAdd:A,onDelete:R,onCollapse:P,onExpand:D,onInput:z,onShouldCollapse:F,onShouldExpand:V,onValidate:H,selected:se,suggestions:Z,suggestionsTransform:ue}),ae=Wfe({inputRef:k,managerRef:ce});return de&&(typeof de=="function"?de(ae):de.current=ae),J.createElement(ur.Provider,{value:{classNames:f,comboBoxRef:Se,id:g,inputRef:k,isDisabled:x,isInvalid:_,listBoxRef:B,managerRef:ce,rootRef:K}},J.createElement(dde,{onBlur:j,onFocus:U,render:X},J.createElement(ode,{render:Q},w),J.createElement(vde,{render:G,label:fe},ce.current.state.selected.map((pe,Te)=>J.createElement(pde,{key:TC(pe),index:Te,render:$,title:h}))),J.createElement(Jfe,null,J.createElement(ide,{allowBackspace:t,allowResize:r,ariaDescribedBy:a,ariaErrorMessage:o,delimiterKeys:m,placeholderText:te,render:re}),J.createElement(lde,{render:oe},ce.current.state.options.map((pe,Te)=>J.createElement(cde,{key:TC(pe),index:Te,render:le},J.createElement(nde,{option:pe,query:ce.current.state.value,render:ee}))))),J.createElement(Qfe,{ariaAddedText:i,ariaDeletedText:l})))}const _de=J.forwardRef(bde);function yw(e){return e==null?"":`${e}`}function xde(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function vP(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function wde(e={stringFormatter:vP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Ode(e={stringFormatter:vP()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const Sde=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Ede(e){var t,n,r;const i=[];let a;for(;a=Sde.exec(e);)i.push((r=(t=a[3])!==null&&t!==void 0?t:(n=a[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:a[0]);return i}function hD(e,t,n){if(t in e){const a=e[t];return a===void 0?n:a}const r=Array.isArray(t)?t:Ede(t);let i=e;for(const a of r)if(i=i==null?void 0:i[a],i===void 0)return n;return i}function bF(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function AC(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var pD;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(pD||(pD={}));class Tde{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||vP(),i=Ode({stringFormatter:r}),a={header:r,undefined:yw,boolean:yw,number:xde(),bigint:yw,string:r,symbol:wde({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},a),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>hD(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const a=r.value;return{label:r.label||r.value,value:o=>hD(o,a,i)}}if(typeof r.value=="function"){const a=r.label||r.value.name||"",o={label:a,default:i},l=r.value;return{label:a,value(f){const c=l(f,o);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return AC(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(bF,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return AC(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class _F extends Tde{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,l)=>(Object.keys(l).forEach(f=>{o.includes(f)||o.push(f)}),o),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(bF,[])}processData(t){return AC(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var ar;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(ar||(ar={}));ar.QUOTATION_MARK+"",ar.QUOTATION_MARK,ar.REVERSE_SOLIDUS+"",ar.REVERSE_SOLIDUS,ar.SOLIDUS+"",ar.SOLIDUS,ar.LATIN_SMALL_LETTER_B+"",ar.BACKSPACE,ar.LATIN_SMALL_LETTER_F+"",ar.FORM_FEED,ar.LATIN_SMALL_LETTER_N+"",ar.NEWLINE,ar.LATIN_SMALL_LETTER_R+"",ar.CARRIAGE_RETURN,ar.LATIN_SMALL_LETTER_T+"",ar.TAB;var mD;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(mD||(mD={}));var vD;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(vD||(vD={}));var gD;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(gD||(gD={}));var yD;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(yD||(yD={}));var bw,bD;function ai(){if(bD)return bw;bD=1;var e=Array.isArray;return bw=e,bw}var _w,_D;function xF(){if(_D)return _w;_D=1;var e=typeof Vg=="object"&&Vg&&Vg.Object===Object&&Vg;return _w=e,_w}var xw,xD;function mo(){if(xD)return xw;xD=1;var e=xF(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return xw=n,xw}var ww,wD;function lv(){if(wD)return ww;wD=1;var e=mo(),t=e.Symbol;return ww=t,ww}var Ow,OD;function Cde(){if(OD)return Ow;OD=1;var e=lv(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var l=n.call(o,i),f=o[i];try{o[i]=void 0;var c=!0}catch{}var h=r.call(o);return c&&(l?o[i]=f:delete o[i]),h}return Ow=a,Ow}var Sw,SD;function Ade(){if(SD)return Sw;SD=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sw=n,Sw}var Ew,ED;function gs(){if(ED)return Ew;ED=1;var e=lv(),t=Cde(),n=Ade(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?i:r:a&&a in Object(l)?t(l):n(l)}return Ew=o,Ew}var Tw,TD;function ys(){if(TD)return Tw;TD=1;function e(t){return t!=null&&typeof t=="object"}return Tw=e,Tw}var Cw,CD;function kd(){if(CD)return Cw;CD=1;var e=gs(),t=ys(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Cw=r,Cw}var Aw,AD;function gP(){if(AD)return Aw;AD=1;var e=ai(),t=kd(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return Aw=i,Aw}var jw,jD;function Hl(){if(jD)return jw;jD=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return jw=e,jw}var Pw,PD;function yP(){if(PD)return Pw;PD=1;var e=gs(),t=Hl(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!t(l))return!1;var f=e(l);return f==r||f==i||f==n||f==a}return Pw=o,Pw}var Rw,RD;function jde(){if(RD)return Rw;RD=1;var e=mo(),t=e["__core-js_shared__"];return Rw=t,Rw}var Mw,MD;function Pde(){if(MD)return Mw;MD=1;var e=jde(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return Mw=n,Mw}var Nw,ND;function wF(){if(ND)return Nw;ND=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Nw=n,Nw}var Lw,LD;function Rde(){if(LD)return Lw;LD=1;var e=yP(),t=Pde(),n=Hl(),r=wF(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,f=o.toString,c=l.hasOwnProperty,h=RegExp("^"+f.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var x=e(g)?h:a;return x.test(r(g))}return Lw=m,Lw}var Dw,DD;function Mde(){if(DD)return Dw;DD=1;function e(t,n){return t==null?void 0:t[n]}return Dw=e,Dw}var kw,kD;function pc(){if(kD)return kw;kD=1;var e=Rde(),t=Mde();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return kw=n,kw}var Iw,ID;function X0(){if(ID)return Iw;ID=1;var e=pc(),t=e(Object,"create");return Iw=t,Iw}var $w,$D;function Nde(){if($D)return $w;$D=1;var e=X0();function t(){this.__data__=e?e(null):{},this.size=0}return $w=t,$w}var Uw,UD;function Lde(){if(UD)return Uw;UD=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Uw=e,Uw}var Bw,BD;function Dde(){if(BD)return Bw;BD=1;var e=X0(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var l=o[a];return l===t?void 0:l}return r.call(o,a)?o[a]:void 0}return Bw=i,Bw}var Fw,FD;function kde(){if(FD)return Fw;FD=1;var e=X0(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return Fw=r,Fw}var zw,zD;function Ide(){if(zD)return zw;zD=1;var e=X0(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return zw=n,zw}var qw,qD;function $de(){if(qD)return qw;qD=1;var e=Nde(),t=Lde(),n=Dde(),r=kde(),i=Ide();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var c=o[l];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,qw=a,qw}var Vw,VD;function Ude(){if(VD)return Vw;VD=1;function e(){this.__data__=[],this.size=0}return Vw=e,Vw}var Hw,HD;function bP(){if(HD)return Hw;HD=1;function e(t,n){return t===n||t!==t&&n!==n}return Hw=e,Hw}var Ww,WD;function Q0(){if(WD)return Ww;WD=1;var e=bP();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Ww=t,Ww}var Gw,GD;function Bde(){if(GD)return Gw;GD=1;var e=Q0(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var l=a.length-1;return o==l?a.pop():n.call(a,o,1),--this.size,!0}return Gw=r,Gw}var Yw,YD;function Fde(){if(YD)return Yw;YD=1;var e=Q0();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Yw=t,Yw}var Kw,KD;function zde(){if(KD)return Kw;KD=1;var e=Q0();function t(n){return e(this.__data__,n)>-1}return Kw=t,Kw}var Zw,ZD;function qde(){if(ZD)return Zw;ZD=1;var e=Q0();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return Zw=t,Zw}var Xw,XD;function J0(){if(XD)return Xw;XD=1;var e=Ude(),t=Bde(),n=Fde(),r=zde(),i=qde();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var c=o[l];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Xw=a,Xw}var Qw,QD;function _P(){if(QD)return Qw;QD=1;var e=pc(),t=mo(),n=e(t,"Map");return Qw=n,Qw}var Jw,JD;function Vde(){if(JD)return Jw;JD=1;var e=$de(),t=J0(),n=_P();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Jw=r,Jw}var e2,e6;function Hde(){if(e6)return e2;e6=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return e2=e,e2}var t2,t6;function e_(){if(t6)return t2;t6=1;var e=Hde();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return t2=t,t2}var n2,n6;function Wde(){if(n6)return n2;n6=1;var e=e_();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return n2=t,n2}var r2,r6;function Gde(){if(r6)return r2;r6=1;var e=e_();function t(n){return e(this,n).get(n)}return r2=t,r2}var i2,i6;function Yde(){if(i6)return i2;i6=1;var e=e_();function t(n){return e(this,n).has(n)}return i2=t,i2}var a2,a6;function Kde(){if(a6)return a2;a6=1;var e=e_();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return a2=t,a2}var o2,o6;function xP(){if(o6)return o2;o6=1;var e=Vde(),t=Wde(),n=Gde(),r=Yde(),i=Kde();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var c=o[l];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,o2=a,o2}var s2,s6;function OF(){if(s6)return s2;s6=1;var e=xP(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,l=i?i.apply(this,o):o[0],f=a.cache;if(f.has(l))return f.get(l);var c=r.apply(this,o);return a.cache=f.set(l,c)||f,c};return a.cache=new(n.Cache||e),a}return n.Cache=e,s2=n,s2}var l2,l6;function Zde(){if(l6)return l2;l6=1;var e=OF(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return l2=n,l2}var u2,u6;function Xde(){if(u6)return u2;u6=1;var e=Zde(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,l,f,c){a.push(f?c.replace(n,"$1"):l||o)}),a});return u2=r,u2}var c2,c6;function wP(){if(c6)return c2;c6=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return c2=e,c2}var f2,f6;function Qde(){if(f6)return f2;f6=1;var e=lv(),t=wP(),n=ai(),r=kd(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return t(l,o)+"";if(r(l))return a?a.call(l):"";var f=l+"";return f=="0"&&1/l==-1/0?"-0":f}return f2=o,f2}var d2,d6;function SF(){if(d6)return d2;d6=1;var e=Qde();function t(n){return n==null?"":e(n)}return d2=t,d2}var h2,h6;function EF(){if(h6)return h2;h6=1;var e=ai(),t=gP(),n=Xde(),r=SF();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return h2=i,h2}var p2,p6;function t_(){if(p6)return p2;p6=1;var e=kd();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return p2=t,p2}var m2,m6;function OP(){if(m6)return m2;m6=1;var e=EF(),t=t_();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return m2=n,m2}var v2,v6;function TF(){if(v6)return v2;v6=1;var e=OP();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return v2=t,v2}var Jde=TF();const Ti=Dt(Jde);var g2,g6;function ehe(){if(g6)return g2;g6=1;function e(t){return t==null}return g2=e,g2}var the=ehe();const ft=Dt(the);var y2,y6;function nhe(){if(y6)return y2;y6=1;var e=gs(),t=ai(),n=ys(),r="[object String]";function i(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return y2=i,y2}var rhe=nhe();const uv=Dt(rhe);var ihe=yP();const ct=Dt(ihe);var ahe=Hl();const Id=Dt(ahe);var b2={exports:{}},Ft={};/**
* @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 b6;function ohe(){if(b6)return Ft;b6=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function w(O){if(typeof O=="object"&&O!==null){var S=O.$$typeof;switch(S){case e:switch(O=O.type,O){case n:case i:case r:case c:case h:return O;default:switch(O=O&&O.$$typeof,O){case l:case o:case f:case g:case m:case a:return O;default:return S}}case t:return S}}}return Ft.ContextConsumer=o,Ft.ContextProvider=a,Ft.Element=e,Ft.ForwardRef=f,Ft.Fragment=n,Ft.Lazy=g,Ft.Memo=m,Ft.Portal=t,Ft.Profiler=i,Ft.StrictMode=r,Ft.Suspense=c,Ft.SuspenseList=h,Ft.isAsyncMode=function(){return!1},Ft.isConcurrentMode=function(){return!1},Ft.isContextConsumer=function(O){return w(O)===o},Ft.isContextProvider=function(O){return w(O)===a},Ft.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===e},Ft.isForwardRef=function(O){return w(O)===f},Ft.isFragment=function(O){return w(O)===n},Ft.isLazy=function(O){return w(O)===g},Ft.isMemo=function(O){return w(O)===m},Ft.isPortal=function(O){return w(O)===t},Ft.isProfiler=function(O){return w(O)===i},Ft.isStrictMode=function(O){return w(O)===r},Ft.isSuspense=function(O){return w(O)===c},Ft.isSuspenseList=function(O){return w(O)===h},Ft.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===i||O===r||O===c||O===h||O===x||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===m||O.$$typeof===a||O.$$typeof===o||O.$$typeof===f||O.$$typeof===_||O.getModuleId!==void 0)},Ft.typeOf=w,Ft}var _6;function she(){return _6||(_6=1,b2.exports=ohe()),b2.exports}var lhe=she(),_2,x6;function CF(){if(x6)return _2;x6=1;var e=gs(),t=ys(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return _2=r,_2}var x2,w6;function uhe(){if(w6)return x2;w6=1;var e=CF();function t(n){return e(n)&&n!=+n}return x2=t,x2}var che=uhe();const $d=Dt(che);var fhe=CF();const dhe=Dt(fhe);var Ur=function(t){return t===0?0:t>0?1:-1},Fu=function(t){return uv(t)&&t.indexOf("%")===t.length-1},We=function(t){return dhe(t)&&!$d(t)},Kn=function(t){return We(t)||uv(t)},hhe=0,Wl=function(t){var n=++hhe;return"".concat(t||"").concat(n)},Br=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!We(t)&&!uv(t))return r;var a;if(Fu(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return $d(a)&&(a=r),i&&a>n&&(a=n),a},xl=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},phe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},An=function(t,n){return We(t)&&We(n)?function(r){return t+r*(n-t)}:function(){return n}};function bb(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Ti(r,t))===n})}var mhe=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,a=0,o=0,l=1/0,f=-1/0,c=0,h=0,m=0;m<n;m++)c=t[m].cx||0,h=t[m].cy||0,r+=c,i+=h,a+=c*h,o+=c*c,l=Math.min(l,c),f=Math.max(f,c);var g=n*o!==r*r?(n*a-r*i)/(n*o-r*r):0;return{xmin:l,xmax:f,a:g,b:(i-g*r)/n}};function If(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 jC(e){"@babel/helpers - typeof";return jC=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},jC(e)}var vhe=["viewBox","children"],ghe=["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"],O6=["points","pathLength"],w2={svg:vhe,polygon:O6,polyline:O6},SP=["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"],_b=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(I.isValidElement(t)&&(r=t.props),!Id(r))return null;var i={};return Object.keys(r).forEach(function(a){SP.includes(a)&&(i[a]=n||function(o){return r[a](r,o)})}),i},yhe=function(t,n,r){return function(i){return t(n,r,i),null}},kl=function(t,n,r){if(!Id(t)||jC(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];SP.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=yhe(o,n,r))}),i},bhe=["children"],_he=["children"];function S6(e,t){if(e==null)return{};var n=xhe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xhe(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 PC(e){"@babel/helpers - typeof";return PC=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},PC(e)}var E6={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"},Jo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},T6=null,O2=null,EP=function e(t){if(t===T6&&Array.isArray(O2))return O2;var n=[];return I.Children.forEach(t,function(r){ft(r)||(lhe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),O2=n,T6=t,n};function Vr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Jo(i)}):r=[Jo(t)],EP(e).forEach(function(i){var a=Ti(i,"type.displayName")||Ti(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function Oi(e,t){var n=Vr(e,t);return n&&n[0]}var C6=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!We(r)||r<=0||!We(i)||i<=0)},whe=["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"],Ohe=function(t){return t&&t.type&&uv(t.type)&&whe.indexOf(t.type)>=0},AF=function(t){return t&&PC(t)==="object"&&"clipDot"in t},She=function(t,n,r,i){var a,o=(a=w2==null?void 0:w2[i])!==null&&a!==void 0?a:[];return!ct(t)&&(i&&o.includes(n)||ghe.includes(n))||r&&SP.includes(n)},it=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(I.isValidElement(t)&&(i=t.props),!Id(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;She((l=i)===null||l===void 0?void 0:l[o],o,n,r)&&(a[o]=i[o])}),a},RC=function e(t,n){if(t===n)return!0;var r=I.Children.count(t);if(r!==I.Children.count(n))return!1;if(r===0)return!0;if(r===1)return A6(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!A6(a,o))return!1}return!0},A6=function(t,n){if(ft(t)&&ft(n))return!0;if(!ft(t)&&!ft(n)){var r=t.props||{},i=r.children,a=S6(r,bhe),o=n.props||{},l=o.children,f=S6(o,_he);return i&&l?If(a,f)&&RC(i,l):!i&&!l?If(a,f):!1}return!1},j6=function(t,n){var r=[],i={};return EP(t).forEach(function(a,o){if(Ohe(a))r.push(a);else if(a){var l=Jo(a.type),f=n[l]||{},c=f.handler,h=f.once;if(c&&(!h||!i[l])){var m=c(a,l,o);r.push(m),i[l]=!0}}}),r},Ehe=function(t){var n=t&&t.type;return n&&E6[n]?E6[n]:null},The=function(t,n){return EP(n).indexOf(t)},Che=["children","width","height","viewBox","className","style","title","desc"];function MC(){return MC=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},MC.apply(this,arguments)}function Ahe(e,t){if(e==null)return{};var n=jhe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jhe(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 NC(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,f=e.desc,c=Ahe(e,Che),h=i||{width:n,height:r,x:0,y:0},m=Ve("recharts-surface",a);return J.createElement("svg",MC({},it(c,!0,"svg"),{className:m,width:n,height:r,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),J.createElement("title",null,l),J.createElement("desc",null,f),t)}var Phe=["children","className"];function LC(){return LC=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},LC.apply(this,arguments)}function Rhe(e,t){if(e==null)return{};var n=Mhe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mhe(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 wt=J.forwardRef(function(e,t){var n=e.children,r=e.className,i=Rhe(e,Phe),a=Ve("recharts-layer",r);return J.createElement("g",LC({className:a},it(i,!0),{ref:t}),n)}),_a=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]},S2,P6;function Nhe(){if(P6)return S2;P6=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+n];return o}return S2=e,S2}var E2,R6;function Lhe(){if(R6)return E2;R6=1;var e=Nhe();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return E2=t,E2}var T2,M6;function jF(){if(M6)return T2;M6=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+i+a+"]");function f(c){return l.test(c)}return T2=f,T2}var C2,N6;function Dhe(){if(N6)return C2;N6=1;function e(t){return t.split("")}return C2=e,C2}var A2,L6;function khe(){if(L6)return A2;L6=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",l="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+f+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",_=c+"?",w="["+a+"]?",O="(?:"+x+"(?:"+[h,m,g].join("|")+")"+w+_+")*",S=w+_+O,T="(?:"+[h+l+"?",l,m,g,o].join("|")+")",A=RegExp(f+"(?="+f+")|"+T+S,"g");function j(P){return P.match(A)||[]}return A2=j,A2}var j2,D6;function Ihe(){if(D6)return j2;D6=1;var e=Dhe(),t=jF(),n=khe();function r(i){return t(i)?n(i):e(i)}return j2=r,j2}var P2,k6;function $he(){if(k6)return P2;k6=1;var e=Lhe(),t=jF(),n=Ihe(),r=SF();function i(a){return function(o){o=r(o);var l=t(o)?n(o):void 0,f=l?l[0]:o.charAt(0),c=l?e(l,1).join(""):o.slice(1);return f[a]()+c}}return P2=i,P2}var R2,I6;function Uhe(){if(I6)return R2;I6=1;var e=$he(),t=e("toUpperCase");return R2=t,R2}var Bhe=Uhe();const n_=Dt(Bhe);function fn(e){return function(){return e}}const PF=Math.cos,xb=Math.sin,Ra=Math.sqrt,wb=Math.PI,r_=2*wb,DC=Math.PI,kC=2*DC,Du=1e-6,Fhe=kC-Du;function RF(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zhe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return RF;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class qhe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?RF:zhe(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,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,f=r-t,c=i-n,h=o-t,m=l-n,g=h*h+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>Du)if(!(Math.abs(m*f-c*h)>Du)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-o,_=i-l,w=f*f+c*c,O=x*x+_*_,S=Math.sqrt(w),T=Math.sqrt(g),A=a*Math.tan((DC-Math.acos((w+g-O)/(2*S*T)))/2),j=A/T,P=A/S;Math.abs(j-1)>Du&&this._append`L${t+j*h},${n+j*m}`,this._append`A${a},${a},0,0,${+(m*x>h*_)},${this._x1=t+P*f},${this._y1=n+P*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),f=r*Math.sin(i),c=t+l,h=n+f,m=1^o,g=o?i-a:a-i;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>Du||Math.abs(this._y1-h)>Du)&&this._append`L${c},${h}`,r&&(g<0&&(g=g%kC+kC),g>Fhe?this._append`A${r},${r},0,1,${m},${t-l},${n-f}A${r},${r},0,1,${m},${this._x1=c},${this._y1=h}`:g>Du&&this._append`A${r},${r},0,${+(g>=DC)},${m},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function TP(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 qhe(t)}function CP(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function MF(e){this._context=e}MF.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 i_(e){return new MF(e)}function NF(e){return e[0]}function LF(e){return e[1]}function DF(e,t){var n=fn(!0),r=null,i=i_,a=null,o=TP(l);e=typeof e=="function"?e:e===void 0?NF:fn(e),t=typeof t=="function"?t:t===void 0?LF:fn(t);function l(f){var c,h=(f=CP(f)).length,m,g=!1,x;for(r==null&&(a=i(x=o())),c=0;c<=h;++c)!(c<h&&n(m=f[c],c,f))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+e(m,c,f),+t(m,c,f));if(x)return a=null,x+""||null}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:fn(+f),l):e},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:fn(+f),l):t},l.defined=function(f){return arguments.length?(n=typeof f=="function"?f:fn(!!f),l):n},l.curve=function(f){return arguments.length?(i=f,r!=null&&(a=i(r)),l):i},l.context=function(f){return arguments.length?(f==null?r=a=null:a=i(r=f),l):r},l}function Jg(e,t,n){var r=null,i=fn(!0),a=null,o=i_,l=null,f=TP(c);e=typeof e=="function"?e:e===void 0?NF:fn(+e),t=typeof t=="function"?t:fn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?LF:fn(+n);function c(m){var g,x,_,w=(m=CP(m)).length,O,S=!1,T,A=new Array(w),j=new Array(w);for(a==null&&(l=o(T=f())),g=0;g<=w;++g){if(!(g<w&&i(O=m[g],g,m))===S)if(S=!S)x=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),_=g-1;_>=x;--_)l.point(A[_],j[_]);l.lineEnd(),l.areaEnd()}S&&(A[g]=+e(O,g,m),j[g]=+t(O,g,m),l.point(r?+r(O,g,m):A[g],n?+n(O,g,m):j[g]))}if(T)return l=null,T+""||null}function h(){return DF().defined(i).curve(o).context(a)}return c.x=function(m){return arguments.length?(e=typeof m=="function"?m:fn(+m),r=null,c):e},c.x0=function(m){return arguments.length?(e=typeof m=="function"?m:fn(+m),c):e},c.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:fn(+m),c):r},c.y=function(m){return arguments.length?(t=typeof m=="function"?m:fn(+m),n=null,c):t},c.y0=function(m){return arguments.length?(t=typeof m=="function"?m:fn(+m),c):t},c.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:fn(+m),c):n},c.lineX0=c.lineY0=function(){return h().x(e).y(t)},c.lineY1=function(){return h().x(e).y(n)},c.lineX1=function(){return h().x(r).y(t)},c.defined=function(m){return arguments.length?(i=typeof m=="function"?m:fn(!!m),c):i},c.curve=function(m){return arguments.length?(o=m,a!=null&&(l=o(a)),c):o},c.context=function(m){return arguments.length?(m==null?a=l=null:l=o(a=m),c):a},c}class kF{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 Vhe(e){return new kF(e,!0)}function Hhe(e){return new kF(e,!1)}const AP={draw(e,t){const n=Ra(t/wb);e.moveTo(n,0),e.arc(0,0,n,0,r_)}},Whe={draw(e,t){const n=Ra(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()}},IF=Ra(1/3),Ghe=IF*2,Yhe={draw(e,t){const n=Ra(t/Ghe),r=n*IF;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Khe={draw(e,t){const n=Ra(t),r=-n/2;e.rect(r,r,n,n)}},Zhe=.8908130915292852,$F=xb(wb/10)/xb(7*wb/10),Xhe=xb(r_/10)*$F,Qhe=-PF(r_/10)*$F,Jhe={draw(e,t){const n=Ra(t*Zhe),r=Xhe*n,i=Qhe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=r_*a/5,l=PF(o),f=xb(o);e.lineTo(f*n,-l*n),e.lineTo(l*r-f*i,f*r+l*i)}e.closePath()}},M2=Ra(3),epe={draw(e,t){const n=-Ra(t/(M2*3));e.moveTo(0,n*2),e.lineTo(-M2*n,-n),e.lineTo(M2*n,-n),e.closePath()}},Hi=-.5,Wi=Ra(3)/2,IC=1/Ra(12),tpe=(IC/2+1)*3,npe={draw(e,t){const n=Ra(t/tpe),r=n/2,i=n*IC,a=r,o=n*IC+n,l=-a,f=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,f),e.lineTo(Hi*r-Wi*i,Wi*r+Hi*i),e.lineTo(Hi*a-Wi*o,Wi*a+Hi*o),e.lineTo(Hi*l-Wi*f,Wi*l+Hi*f),e.lineTo(Hi*r+Wi*i,Hi*i-Wi*r),e.lineTo(Hi*a+Wi*o,Hi*o-Wi*a),e.lineTo(Hi*l+Wi*f,Hi*f-Wi*l),e.closePath()}};function rpe(e,t){let n=null,r=TP(i);e=typeof e=="function"?e:fn(e||AP),t=typeof t=="function"?t:fn(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:fn(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:fn(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Ob(){}function Sb(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 UF(e){this._context=e}UF.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:Sb(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:Sb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ipe(e){return new UF(e)}function BF(e){this._context=e}BF.prototype={areaStart:Ob,areaEnd:Ob,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:Sb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ape(e){return new BF(e)}function FF(e){this._context=e}FF.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:Sb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ope(e){return new FF(e)}function zF(e){this._context=e}zF.prototype={areaStart:Ob,areaEnd:Ob,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 spe(e){return new zF(e)}function $6(e){return e<0?-1:1}function U6(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return($6(a)+$6(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function B6(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function N2(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Eb(e){this._context=e}Eb.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:N2(this,this._t0,B6(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,N2(this,B6(this,n=U6(this,e,t)),n);break;default:N2(this,this._t0,n=U6(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function qF(e){this._context=new VF(e)}(qF.prototype=Object.create(Eb.prototype)).point=function(e,t){Eb.prototype.point.call(this,t,e)};function VF(e){this._context=e}VF.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,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function lpe(e){return new Eb(e)}function upe(e){return new qF(e)}function HF(e){this._context=e}HF.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=F6(e),i=F6(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 F6(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function cpe(e){return new HF(e)}function a_(e,t){this._context=e,this._t=t}a_.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 fpe(e){return new a_(e,.5)}function dpe(e){return new a_(e,0)}function hpe(e){return new a_(e,1)}function Qf(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function $C(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ppe(e,t){return e[t]}function mpe(e){const t=[];return t.key=e,t}function vpe(){var e=fn([]),t=$C,n=Qf,r=ppe;function i(a){var o=Array.from(e.apply(this,arguments),mpe),l,f=o.length,c=-1,h;for(const m of a)for(l=0,++c;l<f;++l)(o[l][c]=[0,+r(m,o[l].key,c,a)]).data=m;for(l=0,h=CP(t(o));l<f;++l)o[h[l]].index=l;return n(o,h),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:fn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:fn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?$C:typeof a=="function"?a:fn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Qf,i):n},i}function gpe(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Qf(e,t)}}function ype(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}Qf(e,t)}}function bpe(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,f=0,c=0;l<o;++l){for(var h=e[t[l]],m=h[r][1]||0,g=h[r-1][1]||0,x=(m-g)/2,_=0;_<l;++_){var w=e[t[_]],O=w[r][1]||0,S=w[r-1][1]||0;x+=O-S}f+=m,c+=x*m}i[r-1][1]+=i[r-1][0]=n,f&&(n-=c/f)}i[r-1][1]+=i[r-1][0]=n,Qf(e,t)}}function sm(e){"@babel/helpers - typeof";return sm=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},sm(e)}var _pe=["type","size","sizeType"];function UC(){return UC=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},UC.apply(this,arguments)}function z6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z6(Object(n),!0).forEach(function(r){xpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xpe(e,t,n){return t=wpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wpe(e){var t=Ope(e,"string");return sm(t)=="symbol"?t:t+""}function Ope(e,t){if(sm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Spe(e,t){if(e==null)return{};var n=Epe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Epe(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 WF={symbolCircle:AP,symbolCross:Whe,symbolDiamond:Yhe,symbolSquare:Khe,symbolStar:Jhe,symbolTriangle:epe,symbolWye:npe},Tpe=Math.PI/180,Cpe=function(t){var n="symbol".concat(n_(t));return WF[n]||AP},Ape=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 i=18*Tpe;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},jpe=function(t,n){WF["symbol".concat(n_(t))]=n},o_=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,f=Spe(t,_pe),c=q6(q6({},f),{},{type:r,size:a,sizeType:l}),h=function(){var O=Cpe(r),S=rpe().type(O).size(Ape(a,l,r));return S()},m=c.className,g=c.cx,x=c.cy,_=it(c,!0);return g===+g&&x===+x&&a===+a?J.createElement("path",UC({},_,{className:Ve("recharts-symbols",m),transform:"translate(".concat(g,", ").concat(x,")"),d:h()})):null};o_.registerSymbol=jpe;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 BC(){return BC=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},BC.apply(this,arguments)}function V6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ppe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V6(Object(n),!0).forEach(function(r){lm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mpe(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,YF(r.key),r)}}function Npe(e,t,n){return t&&Mpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lpe(e,t,n){return t=Tb(t),Dpe(e,GF()?Reflect.construct(t,n||[],Tb(e).constructor):t.apply(e,n))}function Dpe(e,t){if(t&&(Jf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kpe(e)}function kpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GF=function(){return!!e})()}function Tb(e){return Tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tb(e)}function Ipe(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&&FC(e,t)}function FC(e,t){return FC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},FC(e,t)}function lm(e,t,n){return t=YF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YF(e){var t=$pe(e,"string");return Jf(t)=="symbol"?t:t+""}function $pe(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 String(e)}var pa=32,jP=function(e){function t(){return Rpe(this,t),Lpe(this,t,arguments)}return Ipe(t,e),Npe(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=pa/2,o=pa/6,l=pa/3,f=r.inactive?i:r.color;if(r.type==="plainline")return J.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:pa,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return J.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(a,"h").concat(l,`
A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
H`).concat(pa,"M").concat(2*l,",").concat(a,`
A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return J.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(pa/8,"h").concat(pa,"v").concat(pa*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(J.isValidElement(r.legendIcon)){var c=Ppe({},r);return delete c.legendIcon,J.cloneElement(r.legendIcon,c)}return J.createElement(o_,{fill:f,cx:a,cy:a,size:pa,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,f=i.formatter,c=i.inactiveColor,h={x:0,y:0,width:pa,height:pa},m={display:l==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(x,_){var w=x.formatter||f,O=Ve(lm(lm({"recharts-legend-item":!0},"legend-item-".concat(_),!0),"inactive",x.inactive));if(x.type==="none")return null;var S=ct(x.value)?null:x.value;_a(!ct(x.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 T=x.inactive?c:x.color;return J.createElement("li",BC({className:O,style:m,key:"legend-item-".concat(_)},kl(r.props,x,_)),J.createElement(NC,{width:o,height:o,viewBox:h,style:g},r.renderIcon(x)),J.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},w?w(S,x,_):S))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return J.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(I.PureComponent);lm(jP,"displayName","Legend");lm(jP,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var L2,H6;function Upe(){if(H6)return L2;H6=1;var e=J0();function t(){this.__data__=new e,this.size=0}return L2=t,L2}var D2,W6;function Bpe(){if(W6)return D2;W6=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return D2=e,D2}var k2,G6;function Fpe(){if(G6)return k2;G6=1;function e(t){return this.__data__.get(t)}return k2=e,k2}var I2,Y6;function zpe(){if(Y6)return I2;Y6=1;function e(t){return this.__data__.has(t)}return I2=e,I2}var $2,K6;function qpe(){if(K6)return $2;K6=1;var e=J0(),t=_P(),n=xP(),r=200;function i(a,o){var l=this.__data__;if(l instanceof e){var f=l.__data__;if(!t||f.length<r-1)return f.push([a,o]),this.size=++l.size,this;l=this.__data__=new n(f)}return l.set(a,o),this.size=l.size,this}return $2=i,$2}var U2,Z6;function KF(){if(Z6)return U2;Z6=1;var e=J0(),t=Upe(),n=Bpe(),r=Fpe(),i=zpe(),a=qpe();function o(l){var f=this.__data__=new e(l);this.size=f.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,U2=o,U2}var B2,X6;function Vpe(){if(X6)return B2;X6=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return B2=t,B2}var F2,Q6;function Hpe(){if(Q6)return F2;Q6=1;function e(t){return this.__data__.has(t)}return F2=e,F2}var z2,J6;function ZF(){if(J6)return z2;J6=1;var e=xP(),t=Vpe(),n=Hpe();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,z2=r,z2}var q2,ek;function XF(){if(ek)return q2;ek=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return q2=e,q2}var V2,tk;function QF(){if(tk)return V2;tk=1;function e(t,n){return t.has(n)}return V2=e,V2}var H2,nk;function JF(){if(nk)return H2;nk=1;var e=ZF(),t=XF(),n=QF(),r=1,i=2;function a(o,l,f,c,h,m){var g=f&r,x=o.length,_=l.length;if(x!=_&&!(g&&_>x))return!1;var w=m.get(o),O=m.get(l);if(w&&O)return w==l&&O==o;var S=-1,T=!0,A=f&i?new e:void 0;for(m.set(o,l),m.set(l,o);++S<x;){var j=o[S],P=l[S];if(c)var R=g?c(P,j,S,l,o,m):c(j,P,S,o,l,m);if(R!==void 0){if(R)continue;T=!1;break}if(A){if(!t(l,function(D,U){if(!n(A,U)&&(j===D||h(j,D,f,c,m)))return A.push(U)})){T=!1;break}}else if(!(j===P||h(j,P,f,c,m))){T=!1;break}}return m.delete(o),m.delete(l),T}return H2=a,H2}var W2,rk;function Wpe(){if(rk)return W2;rk=1;var e=mo(),t=e.Uint8Array;return W2=t,W2}var G2,ik;function Gpe(){if(ik)return G2;ik=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return G2=e,G2}var Y2,ak;function PP(){if(ak)return Y2;ak=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Y2=e,Y2}var K2,ok;function Ype(){if(ok)return K2;ok=1;var e=lv(),t=Wpe(),n=bP(),r=JF(),i=Gpe(),a=PP(),o=1,l=2,f="[object Boolean]",c="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",x="[object RegExp]",_="[object Set]",w="[object String]",O="[object Symbol]",S="[object ArrayBuffer]",T="[object DataView]",A=e?e.prototype:void 0,j=A?A.valueOf:void 0;function P(R,D,U,z,F,V,H){switch(U){case T:if(R.byteLength!=D.byteLength||R.byteOffset!=D.byteOffset)return!1;R=R.buffer,D=D.buffer;case S:return!(R.byteLength!=D.byteLength||!V(new t(R),new t(D)));case f:case c:case g:return n(+R,+D);case h:return R.name==D.name&&R.message==D.message;case x:case w:return R==D+"";case m:var te=i;case _:var ee=z&o;if(te||(te=a),R.size!=D.size&&!ee)return!1;var re=H.get(R);if(re)return re==D;z|=l,H.set(R,D);var Q=r(te(R),te(D),z,F,V,H);return H.delete(R),Q;case O:if(j)return j.call(R)==j.call(D)}return!1}return K2=P,K2}var Z2,sk;function ez(){if(sk)return Z2;sk=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return Z2=e,Z2}var X2,lk;function Kpe(){if(lk)return X2;lk=1;var e=ez(),t=ai();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return X2=n,X2}var Q2,uk;function Zpe(){if(uk)return Q2;uk=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var l=t[r];n(l,r,t)&&(o[a++]=l)}return o}return Q2=e,Q2}var J2,ck;function Xpe(){if(ck)return J2;ck=1;function e(){return[]}return J2=e,J2}var eO,fk;function Qpe(){if(fk)return eO;fk=1;var e=Zpe(),t=Xpe(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(l){return r.call(o,l)}))}:t;return eO=a,eO}var tO,dk;function Jpe(){if(dk)return tO;dk=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return tO=e,tO}var nO,hk;function eme(){if(hk)return nO;hk=1;var e=gs(),t=ys(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return nO=r,nO}var rO,pk;function RP(){if(pk)return rO;pk=1;var e=eme(),t=ys(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return rO=a,rO}var wp={exports:{}},iO,mk;function tme(){if(mk)return iO;mk=1;function e(){return!1}return iO=e,iO}wp.exports;var vk;function tz(){return vk||(vk=1,function(e,t){var n=mo(),r=tme(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?n.Buffer:void 0,f=l?l.isBuffer:void 0,c=f||r;e.exports=c}(wp,wp.exports)),wp.exports}var aO,gk;function MP(){if(gk)return aO;gk=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return aO=n,aO}var oO,yk;function NP(){if(yk)return oO;yk=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return oO=t,oO}var sO,bk;function nme(){if(bk)return sO;bk=1;var e=gs(),t=NP(),n=ys(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",f="[object Function]",c="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",x="[object Set]",_="[object String]",w="[object WeakMap]",O="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",A="[object Float64Array]",j="[object Int8Array]",P="[object Int16Array]",R="[object Int32Array]",D="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",V={};V[T]=V[A]=V[j]=V[P]=V[R]=V[D]=V[U]=V[z]=V[F]=!0,V[r]=V[i]=V[O]=V[a]=V[S]=V[o]=V[l]=V[f]=V[c]=V[h]=V[m]=V[g]=V[x]=V[_]=V[w]=!1;function H(te){return n(te)&&t(te.length)&&!!V[e(te)]}return sO=H,sO}var lO,_k;function nz(){if(_k)return lO;_k=1;function e(t){return function(n){return t(n)}}return lO=e,lO}var Op={exports:{}};Op.exports;var xk;function rme(){return xk||(xk=1,function(e,t){var n=xF(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,l=function(){try{var f=i&&i.require&&i.require("util").types;return f||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l}(Op,Op.exports)),Op.exports}var uO,wk;function rz(){if(wk)return uO;wk=1;var e=nme(),t=nz(),n=rme(),r=n&&n.isTypedArray,i=r?t(r):e;return uO=i,uO}var cO,Ok;function ime(){if(Ok)return cO;Ok=1;var e=Jpe(),t=RP(),n=ai(),r=tz(),i=MP(),a=rz(),o=Object.prototype,l=o.hasOwnProperty;function f(c,h){var m=n(c),g=!m&&t(c),x=!m&&!g&&r(c),_=!m&&!g&&!x&&a(c),w=m||g||x||_,O=w?e(c.length,String):[],S=O.length;for(var T in c)(h||l.call(c,T))&&!(w&&(T=="length"||x&&(T=="offset"||T=="parent")||_&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||i(T,S)))&&O.push(T);return O}return cO=f,cO}var fO,Sk;function ame(){if(Sk)return fO;Sk=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return fO=t,fO}var dO,Ek;function iz(){if(Ek)return dO;Ek=1;function e(t,n){return function(r){return t(n(r))}}return dO=e,dO}var hO,Tk;function ome(){if(Tk)return hO;Tk=1;var e=iz(),t=e(Object.keys,Object);return hO=t,hO}var pO,Ck;function sme(){if(Ck)return pO;Ck=1;var e=ame(),t=ome(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var l in Object(a))r.call(a,l)&&l!="constructor"&&o.push(l);return o}return pO=i,pO}var mO,Ak;function cv(){if(Ak)return mO;Ak=1;var e=yP(),t=NP();function n(r){return r!=null&&t(r.length)&&!e(r)}return mO=n,mO}var vO,jk;function s_(){if(jk)return vO;jk=1;var e=ime(),t=sme(),n=cv();function r(i){return n(i)?e(i):t(i)}return vO=r,vO}var gO,Pk;function lme(){if(Pk)return gO;Pk=1;var e=Kpe(),t=Qpe(),n=s_();function r(i){return e(i,n,t)}return gO=r,gO}var yO,Rk;function ume(){if(Rk)return yO;Rk=1;var e=lme(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,l,f,c,h){var m=l&t,g=e(a),x=g.length,_=e(o),w=_.length;if(x!=w&&!m)return!1;for(var O=x;O--;){var S=g[O];if(!(m?S in o:r.call(o,S)))return!1}var T=h.get(a),A=h.get(o);if(T&&A)return T==o&&A==a;var j=!0;h.set(a,o),h.set(o,a);for(var P=m;++O<x;){S=g[O];var R=a[S],D=o[S];if(f)var U=m?f(D,R,S,o,a,h):f(R,D,S,a,o,h);if(!(U===void 0?R===D||c(R,D,l,f,h):U)){j=!1;break}P||(P=S=="constructor")}if(j&&!P){var z=a.constructor,F=o.constructor;z!=F&&"constructor"in a&&"constructor"in o&&!(typeof z=="function"&&z instanceof z&&typeof F=="function"&&F instanceof F)&&(j=!1)}return h.delete(a),h.delete(o),j}return yO=i,yO}var bO,Mk;function cme(){if(Mk)return bO;Mk=1;var e=pc(),t=mo(),n=e(t,"DataView");return bO=n,bO}var _O,Nk;function fme(){if(Nk)return _O;Nk=1;var e=pc(),t=mo(),n=e(t,"Promise");return _O=n,_O}var xO,Lk;function az(){if(Lk)return xO;Lk=1;var e=pc(),t=mo(),n=e(t,"Set");return xO=n,xO}var wO,Dk;function dme(){if(Dk)return wO;Dk=1;var e=pc(),t=mo(),n=e(t,"WeakMap");return wO=n,wO}var OO,kk;function hme(){if(kk)return OO;kk=1;var e=cme(),t=_P(),n=fme(),r=az(),i=dme(),a=gs(),o=wF(),l="[object Map]",f="[object Object]",c="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",x=o(e),_=o(t),w=o(n),O=o(r),S=o(i),T=a;return(e&&T(new e(new ArrayBuffer(1)))!=g||t&&T(new t)!=l||n&&T(n.resolve())!=c||r&&T(new r)!=h||i&&T(new i)!=m)&&(T=function(A){var j=a(A),P=j==f?A.constructor:void 0,R=P?o(P):"";if(R)switch(R){case x:return g;case _:return l;case w:return c;case O:return h;case S:return m}return j}),OO=T,OO}var SO,Ik;function pme(){if(Ik)return SO;Ik=1;var e=KF(),t=JF(),n=Ype(),r=ume(),i=hme(),a=ai(),o=tz(),l=rz(),f=1,c="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,x=g.hasOwnProperty;function _(w,O,S,T,A,j){var P=a(w),R=a(O),D=P?h:i(w),U=R?h:i(O);D=D==c?m:D,U=U==c?m:U;var z=D==m,F=U==m,V=D==U;if(V&&o(w)){if(!o(O))return!1;P=!0,z=!1}if(V&&!z)return j||(j=new e),P||l(w)?t(w,O,S,T,A,j):n(w,O,D,S,T,A,j);if(!(S&f)){var H=z&&x.call(w,"__wrapped__"),te=F&&x.call(O,"__wrapped__");if(H||te){var ee=H?w.value():w,re=te?O.value():O;return j||(j=new e),A(ee,re,S,T,j)}}return V?(j||(j=new e),r(w,O,S,T,A,j)):!1}return SO=_,SO}var EO,$k;function LP(){if($k)return EO;$k=1;var e=pme(),t=ys();function n(r,i,a,o,l){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,l)}return EO=n,EO}var TO,Uk;function mme(){if(Uk)return TO;Uk=1;var e=KF(),t=LP(),n=1,r=2;function i(a,o,l,f){var c=l.length,h=c,m=!f;if(a==null)return!h;for(a=Object(a);c--;){var g=l[c];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++c<h;){g=l[c];var x=g[0],_=a[x],w=g[1];if(m&&g[2]){if(_===void 0&&!(x in a))return!1}else{var O=new e;if(f)var S=f(_,w,x,a,o,O);if(!(S===void 0?t(w,_,n|r,f,O):S))return!1}}return!0}return TO=i,TO}var CO,Bk;function oz(){if(Bk)return CO;Bk=1;var e=Hl();function t(n){return n===n&&!e(n)}return CO=t,CO}var AO,Fk;function vme(){if(Fk)return AO;Fk=1;var e=oz(),t=s_();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],l=r[o];i[a]=[o,l,e(l)]}return i}return AO=n,AO}var jO,zk;function sz(){if(zk)return jO;zk=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return jO=e,jO}var PO,qk;function gme(){if(qk)return PO;qk=1;var e=mme(),t=vme(),n=sz();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return PO=r,PO}var RO,Vk;function yme(){if(Vk)return RO;Vk=1;function e(t,n){return t!=null&&n in Object(t)}return RO=e,RO}var MO,Hk;function bme(){if(Hk)return MO;Hk=1;var e=EF(),t=RP(),n=ai(),r=MP(),i=NP(),a=t_();function o(l,f,c){f=e(f,l);for(var h=-1,m=f.length,g=!1;++h<m;){var x=a(f[h]);if(!(g=l!=null&&c(l,x)))break;l=l[x]}return g||++h!=m?g:(m=l==null?0:l.length,!!m&&i(m)&&r(x,m)&&(n(l)||t(l)))}return MO=o,MO}var NO,Wk;function _me(){if(Wk)return NO;Wk=1;var e=yme(),t=bme();function n(r,i){return r!=null&&t(r,i,e)}return NO=n,NO}var LO,Gk;function xme(){if(Gk)return LO;Gk=1;var e=LP(),t=TF(),n=_me(),r=gP(),i=oz(),a=sz(),o=t_(),l=1,f=2;function c(h,m){return r(h)&&i(m)?a(o(h),m):function(g){var x=t(g,h);return x===void 0&&x===m?n(g,h):e(m,x,l|f)}}return LO=c,LO}var DO,Yk;function Ud(){if(Yk)return DO;Yk=1;function e(t){return t}return DO=e,DO}var kO,Kk;function wme(){if(Kk)return kO;Kk=1;function e(t){return function(n){return n==null?void 0:n[t]}}return kO=e,kO}var IO,Zk;function Ome(){if(Zk)return IO;Zk=1;var e=OP();function t(n){return function(r){return e(r,n)}}return IO=t,IO}var $O,Xk;function Sme(){if(Xk)return $O;Xk=1;var e=wme(),t=Ome(),n=gP(),r=t_();function i(a){return n(a)?e(r(a)):t(a)}return $O=i,$O}var UO,Qk;function vo(){if(Qk)return UO;Qk=1;var e=gme(),t=xme(),n=Ud(),r=ai(),i=Sme();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return UO=a,UO}var BO,Jk;function lz(){if(Jk)return BO;Jk=1;function e(t,n,r,i){for(var a=t.length,o=r+(i?1:-1);i?o--:++o<a;)if(n(t[o],o,t))return o;return-1}return BO=e,BO}var FO,e5;function Eme(){if(e5)return FO;e5=1;function e(t){return t!==t}return FO=e,FO}var zO,t5;function Tme(){if(t5)return zO;t5=1;function e(t,n,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===n)return i;return-1}return zO=e,zO}var qO,n5;function Cme(){if(n5)return qO;n5=1;var e=lz(),t=Eme(),n=Tme();function r(i,a,o){return a===a?n(i,a,o):e(i,t,o)}return qO=r,qO}var VO,r5;function Ame(){if(r5)return VO;r5=1;var e=Cme();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return VO=t,VO}var HO,i5;function jme(){if(i5)return HO;i5=1;function e(t,n,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(n,t[i]))return!0;return!1}return HO=e,HO}var WO,a5;function Pme(){if(a5)return WO;a5=1;function e(){}return WO=e,WO}var GO,o5;function Rme(){if(o5)return GO;o5=1;var e=az(),t=Pme(),n=PP(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return GO=i,GO}var YO,s5;function Mme(){if(s5)return YO;s5=1;var e=ZF(),t=Ame(),n=jme(),r=QF(),i=Rme(),a=PP(),o=200;function l(f,c,h){var m=-1,g=t,x=f.length,_=!0,w=[],O=w;if(h)_=!1,g=n;else if(x>=o){var S=c?null:i(f);if(S)return a(S);_=!1,g=r,O=new e}else O=c?[]:w;e:for(;++m<x;){var T=f[m],A=c?c(T):T;if(T=h||T!==0?T:0,_&&A===A){for(var j=O.length;j--;)if(O[j]===A)continue e;c&&O.push(A),w.push(T)}else g(O,A,h)||(O!==w&&O.push(A),w.push(T))}return w}return YO=l,YO}var KO,l5;function Nme(){if(l5)return KO;l5=1;var e=vo(),t=Mme();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return KO=n,KO}var Lme=Nme();const u5=Dt(Lme);function uz(e,t,n){return t===!0?u5(e,n):ct(t)?u5(e,t):e}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)}var Dme=["ref"];function c5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c5(Object(n),!0).forEach(function(r){l_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f5(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,fz(r.key),r)}}function Ime(e,t,n){return t&&f5(e.prototype,t),n&&f5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $me(e,t,n){return t=Cb(t),Ume(e,cz()?Reflect.construct(t,n||[],Cb(e).constructor):t.apply(e,n))}function Ume(e,t){if(t&&(ed(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bme(e)}function Bme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cz=function(){return!!e})()}function Cb(e){return Cb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cb(e)}function Fme(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&&zC(e,t)}function zC(e,t){return zC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zC(e,t)}function l_(e,t,n){return t=fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fz(e){var t=zme(e,"string");return ed(t)=="symbol"?t:t+""}function zme(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)}function qme(e,t){if(e==null)return{};var n=Vme(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vme(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 Hme(e){return e.value}function Wme(e,t){if(J.isValidElement(e))return J.cloneElement(e,t);if(typeof e=="function")return J.createElement(e,t);t.ref;var n=qme(t,Dme);return J.createElement(jP,n)}var d5=1,$f=function(e){function t(){var n;kme(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=$me(this,t,[].concat(i)),l_(n,"lastBoundingBox",{width:-1,height:-1}),n}return Fme(t,e),Ime(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,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>d5||Math.abs(i.height-this.lastBoundingBox.height)>d5)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(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?Ho({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,f=i.margin,c=i.chartWidth,h=i.chartHeight,m,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var x=this.getBBoxSnapshot();m={left:((c||0)-x.width)/2}}else m=o==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var _=this.getBBoxSnapshot();g={top:((h||0)-_.height)/2}}else g=l==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Ho(Ho({},m),g)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,l=i.height,f=i.wrapperStyle,c=i.payloadUniqBy,h=i.payload,m=Ho(Ho({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(f)),f);return J.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(x){r.wrapperNode=x}},Wme(a,Ho(Ho({},this.props),{},{payload:uz(h,c,Hme)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Ho(Ho({},this.defaultProps),r.props),o=a.layout;return o==="vertical"&&We(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])}(I.PureComponent);l_($f,"displayName","Legend");l_($f,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ZO,h5;function Gme(){if(h5)return ZO;h5=1;var e=lv(),t=RP(),n=ai(),r=e?e.isConcatSpreadable:void 0;function i(a){return n(a)||t(a)||!!(r&&a&&a[r])}return ZO=i,ZO}var XO,p5;function dz(){if(p5)return XO;p5=1;var e=ez(),t=Gme();function n(r,i,a,o,l){var f=-1,c=r.length;for(a||(a=t),l||(l=[]);++f<c;){var h=r[f];i>0&&a(h)?i>1?n(h,i-1,a,o,l):e(l,h):o||(l[l.length]=h)}return l}return XO=n,XO}var QO,m5;function Yme(){if(m5)return QO;m5=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),l=i(n),f=l.length;f--;){var c=l[t?f:++a];if(r(o[c],c,o)===!1)break}return n}}return QO=e,QO}var JO,v5;function Kme(){if(v5)return JO;v5=1;var e=Yme(),t=e();return JO=t,JO}var eS,g5;function hz(){if(g5)return eS;g5=1;var e=Kme(),t=s_();function n(r,i){return r&&e(r,i,t)}return eS=n,eS}var tS,y5;function Zme(){if(y5)return tS;y5=1;var e=cv();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,l=r?o:-1,f=Object(i);(r?l--:++l<o)&&a(f[l],l,f)!==!1;);return i}}return tS=t,tS}var nS,b5;function DP(){if(b5)return nS;b5=1;var e=hz(),t=Zme(),n=t(e);return nS=n,nS}var rS,_5;function pz(){if(_5)return rS;_5=1;var e=DP(),t=cv();function n(r,i){var a=-1,o=t(r)?Array(r.length):[];return e(r,function(l,f,c){o[++a]=i(l,f,c)}),o}return rS=n,rS}var iS,x5;function Xme(){if(x5)return iS;x5=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return iS=e,iS}var aS,w5;function Qme(){if(w5)return aS;w5=1;var e=kd();function t(n,r){if(n!==r){var i=n!==void 0,a=n===null,o=n===n,l=e(n),f=r!==void 0,c=r===null,h=r===r,m=e(r);if(!c&&!m&&!l&&n>r||l&&f&&h&&!c&&!m||a&&f&&h||!i&&h||!o)return 1;if(!a&&!l&&!m&&n<r||m&&i&&o&&!a&&!l||c&&i&&o||!f&&o||!h)return-1}return 0}return aS=t,aS}var oS,O5;function Jme(){if(O5)return oS;O5=1;var e=Qme();function t(n,r,i){for(var a=-1,o=n.criteria,l=r.criteria,f=o.length,c=i.length;++a<f;){var h=e(o[a],l[a]);if(h){if(a>=c)return h;var m=i[a];return h*(m=="desc"?-1:1)}}return n.index-r.index}return oS=t,oS}var sS,S5;function eve(){if(S5)return sS;S5=1;var e=wP(),t=OP(),n=vo(),r=pz(),i=Xme(),a=nz(),o=Jme(),l=Ud(),f=ai();function c(h,m,g){m.length?m=e(m,function(w){return f(w)?function(O){return t(O,w.length===1?w[0]:w)}:w}):m=[l];var x=-1;m=e(m,a(n));var _=r(h,function(w,O,S){var T=e(m,function(A){return A(w)});return{criteria:T,index:++x,value:w}});return i(_,function(w,O){return o(w,O,g)})}return sS=c,sS}var lS,E5;function tve(){if(E5)return lS;E5=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return lS=e,lS}var uS,T5;function nve(){if(T5)return uS;T5=1;var e=tve(),t=Math.max;function n(r,i,a){return i=t(i===void 0?r.length-1:i,0),function(){for(var o=arguments,l=-1,f=t(o.length-i,0),c=Array(f);++l<f;)c[l]=o[i+l];l=-1;for(var h=Array(i+1);++l<i;)h[l]=o[l];return h[i]=a(c),e(r,this,h)}}return uS=n,uS}var cS,C5;function rve(){if(C5)return cS;C5=1;function e(t){return function(){return t}}return cS=e,cS}var fS,A5;function mz(){if(A5)return fS;A5=1;var e=pc(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return fS=t,fS}var dS,j5;function ive(){if(j5)return dS;j5=1;var e=rve(),t=mz(),n=Ud(),r=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return dS=r,dS}var hS,P5;function ave(){if(P5)return hS;P5=1;var e=800,t=16,n=Date.now;function r(i){var a=0,o=0;return function(){var l=n(),f=t-(l-o);if(o=l,f>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return hS=r,hS}var pS,R5;function ove(){if(R5)return pS;R5=1;var e=ive(),t=ave(),n=t(e);return pS=n,pS}var mS,M5;function sve(){if(M5)return mS;M5=1;var e=Ud(),t=nve(),n=ove();function r(i,a){return n(t(i,a,e),i+"")}return mS=r,mS}var vS,N5;function u_(){if(N5)return vS;N5=1;var e=bP(),t=cv(),n=MP(),r=Hl();function i(a,o,l){if(!r(l))return!1;var f=typeof o;return(f=="number"?t(l)&&n(o,l.length):f=="string"&&o in l)?e(l[o],a):!1}return vS=i,vS}var gS,L5;function lve(){if(L5)return gS;L5=1;var e=dz(),t=eve(),n=sve(),r=u_(),i=n(function(a,o){if(a==null)return[];var l=o.length;return l>1&&r(a,o[0],o[1])?o=[]:l>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return gS=i,gS}var uve=lve();const kP=Dt(uve);function um(e){"@babel/helpers - typeof";return um=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},um(e)}function qC(){return qC=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},qC.apply(this,arguments)}function cve(e,t){return pve(e)||hve(e,t)||dve(e,t)||fve()}function fve(){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 dve(e,t){if(e){if(typeof e=="string")return D5(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 D5(e,t)}}function D5(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 hve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function pve(e){if(Array.isArray(e))return e}function k5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k5(Object(n),!0).forEach(function(r){mve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mve(e,t,n){return t=vve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vve(e){var t=gve(e,"string");return um(t)=="symbol"?t:t+""}function gve(e,t){if(um(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(um(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yve(e){return Array.isArray(e)&&Kn(e[0])&&Kn(e[1])?e.join(" ~ "):e}var bve=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,f=t.labelStyle,c=f===void 0?{}:f,h=t.payload,m=t.formatter,g=t.itemSorter,x=t.wrapperClassName,_=t.labelClassName,w=t.label,O=t.labelFormatter,S=t.accessibilityLayer,T=S===void 0?!1:S,A=function(){if(h&&h.length){var H={padding:0,margin:0},te=(g?kP(h,g):h).map(function(ee,re){if(ee.type==="none")return null;var Q=yS({display:"block",paddingTop:4,paddingBottom:4,color:ee.color||"#000"},l),oe=ee.formatter||m||yve,le=ee.value,X=ee.name,$=le,G=X;if(oe&&$!=null&&G!=null){var se=oe(le,X,ee,re,h);if(Array.isArray(se)){var Z=cve(se,2);$=Z[0],G=Z[1]}else $=se}return J.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(re),style:Q},Kn(G)?J.createElement("span",{className:"recharts-tooltip-item-name"},G):null,Kn(G)?J.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,J.createElement("span",{className:"recharts-tooltip-item-value"},$),J.createElement("span",{className:"recharts-tooltip-item-unit"},ee.unit||""))});return J.createElement("ul",{className:"recharts-tooltip-item-list",style:H},te)}return null},j=yS({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),P=yS({margin:0},c),R=!ft(w),D=R?w:"",U=Ve("recharts-default-tooltip",x),z=Ve("recharts-tooltip-label",_);R&&O&&h!==void 0&&h!==null&&(D=O(w,h));var F=T?{role:"status","aria-live":"assertive"}:{};return J.createElement("div",qC({className:U,style:j},F),J.createElement("p",{className:z,style:P},J.isValidElement(D)?D:"".concat(D)),A())};function cm(e){"@babel/helpers - typeof";return cm=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},cm(e)}function ey(e,t,n){return t=_ve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ve(e){var t=xve(e,"string");return cm(t)=="symbol"?t:t+""}function xve(e,t){if(cm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ip="recharts-tooltip-wrapper",wve={visibility:"hidden"};function Ove(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ve(ip,ey(ey(ey(ey({},"".concat(ip,"-right"),We(n)&&t&&We(t.x)&&n>=t.x),"".concat(ip,"-left"),We(n)&&t&&We(t.x)&&n<t.x),"".concat(ip,"-bottom"),We(r)&&t&&We(t.y)&&r>=t.y),"".concat(ip,"-top"),We(r)&&t&&We(t.y)&&r<t.y))}function I5(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,f=e.viewBox,c=e.viewBoxDimension;if(a&&We(a[r]))return a[r];var h=n[r]-l-i,m=n[r]+i;if(t[r])return o[r]?h:m;if(o[r]){var g=h,x=f[r];return g<x?Math.max(m,f[r]):Math.max(h,f[r])}var _=m+l,w=f[r]+c;return _>w?Math.max(h,f[r]):Math.max(m,f[r])}function Sve(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 Eve(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,f=e.viewBox,c,h,m;return o.height>0&&o.width>0&&n?(h=I5({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:f,viewBoxDimension:f.width}),m=I5({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:f,viewBoxDimension:f.height}),c=Sve({translateX:h,translateY:m,useTranslate3d:l})):c=wve,{cssProperties:c,cssClasses:Ove({translateX:h,translateY:m,coordinate:n})}}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 $5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function U5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$5(Object(n),!0).forEach(function(r){HC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cve(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,gz(r.key),r)}}function Ave(e,t,n){return t&&Cve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jve(e,t,n){return t=Ab(t),Pve(e,vz()?Reflect.construct(t,n||[],Ab(e).constructor):t.apply(e,n))}function Pve(e,t){if(t&&(td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rve(e)}function Rve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vz=function(){return!!e})()}function Ab(e){return Ab=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ab(e)}function Mve(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&&VC(e,t)}function VC(e,t){return VC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VC(e,t)}function HC(e,t,n){return t=gz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gz(e){var t=Nve(e,"string");return td(t)=="symbol"?t:t+""}function Nve(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 String(e)}var B5=1,Lve=function(e){function t(){var n;Tve(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jve(this,t,[].concat(i)),HC(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),HC(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,f,c,h;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&l!==void 0?l:0,y:(c=(h=n.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&c!==void 0?c:0}})}}),n}return Mve(t,e),Ave(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>B5||Math.abs(r.height-this.state.lastBoundingBox.height)>B5)&&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,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,f=i.animationEasing,c=i.children,h=i.coordinate,m=i.hasPayload,g=i.isAnimationActive,x=i.offset,_=i.position,w=i.reverseDirection,O=i.useTranslate3d,S=i.viewBox,T=i.wrapperStyle,A=Eve({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:x,position:_,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:O,viewBox:S}),j=A.cssClasses,P=A.cssProperties,R=U5(U5({transition:g&&a?"transform ".concat(l,"ms ").concat(f):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&m?"visible":"hidden",position:"absolute",top:0,left:0},T);return J.createElement("div",{tabIndex:-1,className:j,style:R,ref:function(U){r.wrapperNode=U}},c)}}])}(I.PureComponent),Dve=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},bs={isSsr:Dve()};function nd(e){"@babel/helpers - typeof";return nd=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},nd(e)}function F5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F5(Object(n),!0).forEach(function(r){IP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ive(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,bz(r.key),r)}}function $ve(e,t,n){return t&&Ive(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uve(e,t,n){return t=jb(t),Bve(e,yz()?Reflect.construct(t,n||[],jb(e).constructor):t.apply(e,n))}function Bve(e,t){if(t&&(nd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fve(e)}function Fve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yz=function(){return!!e})()}function jb(e){return jb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jb(e)}function zve(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&&WC(e,t)}function WC(e,t){return WC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},WC(e,t)}function IP(e,t,n){return t=bz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bz(e){var t=qve(e,"string");return nd(t)=="symbol"?t:t+""}function qve(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vve(e){return e.dataKey}function Hve(e,t){return J.isValidElement(e)?J.cloneElement(e,t):typeof e=="function"?J.createElement(e,t):J.createElement(bve,t)}var Ki=function(e){function t(){return kve(this,t),Uve(this,t,arguments)}return zve(t,e),$ve(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,f=i.animationEasing,c=i.content,h=i.coordinate,m=i.filterNull,g=i.isAnimationActive,x=i.offset,_=i.payload,w=i.payloadUniqBy,O=i.position,S=i.reverseDirection,T=i.useTranslate3d,A=i.viewBox,j=i.wrapperStyle,P=_??[];m&&P.length&&(P=uz(_.filter(function(D){return D.value!=null&&(D.hide!==!0||r.props.includeHidden)}),w,Vve));var R=P.length>0;return J.createElement(Lve,{allowEscapeViewBox:o,animationDuration:l,animationEasing:f,isAnimationActive:g,active:a,coordinate:h,hasPayload:R,offset:x,position:O,reverseDirection:S,useTranslate3d:T,viewBox:A,wrapperStyle:j},Hve(c,z5(z5({},this.props),{},{payload:P})))}}])}(I.PureComponent);IP(Ki,"displayName","Tooltip");IP(Ki,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!bs.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 bS,q5;function Wve(){if(q5)return bS;q5=1;var e=mo(),t=function(){return e.Date.now()};return bS=t,bS}var _S,V5;function Gve(){if(V5)return _S;V5=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return _S=t,_S}var xS,H5;function Yve(){if(H5)return xS;H5=1;var e=Gve(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return xS=n,xS}var wS,W5;function _z(){if(W5)return wS;W5=1;var e=Yve(),t=Hl(),n=kd(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function f(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=t(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=e(c);var m=a.test(c);return m||o.test(c)?l(c.slice(2),m?2:8):i.test(c)?r:+c}return wS=f,wS}var OS,G5;function Kve(){if(G5)return OS;G5=1;var e=Hl(),t=Wve(),n=_z(),r="Expected a function",i=Math.max,a=Math.min;function o(l,f,c){var h,m,g,x,_,w,O=0,S=!1,T=!1,A=!0;if(typeof l!="function")throw new TypeError(r);f=n(f)||0,e(c)&&(S=!!c.leading,T="maxWait"in c,g=T?i(n(c.maxWait)||0,f):g,A="trailing"in c?!!c.trailing:A);function j(te){var ee=h,re=m;return h=m=void 0,O=te,x=l.apply(re,ee),x}function P(te){return O=te,_=setTimeout(U,f),S?j(te):x}function R(te){var ee=te-w,re=te-O,Q=f-ee;return T?a(Q,g-re):Q}function D(te){var ee=te-w,re=te-O;return w===void 0||ee>=f||ee<0||T&&re>=g}function U(){var te=t();if(D(te))return z(te);_=setTimeout(U,R(te))}function z(te){return _=void 0,A&&h?j(te):(h=m=void 0,x)}function F(){_!==void 0&&clearTimeout(_),O=0,h=w=m=_=void 0}function V(){return _===void 0?x:z(t())}function H(){var te=t(),ee=D(te);if(h=arguments,m=this,w=te,ee){if(_===void 0)return P(w);if(T)return clearTimeout(_),_=setTimeout(U,f),j(w)}return _===void 0&&(_=setTimeout(U,f)),x}return H.cancel=F,H.flush=V,H}return OS=o,OS}var SS,Y5;function Zve(){if(Y5)return SS;Y5=1;var e=Kve(),t=Hl(),n="Expected a function";function r(i,a,o){var l=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(o)&&(l="leading"in o?!!o.leading:l,f="trailing"in o?!!o.trailing:f),e(i,a,{leading:l,maxWait:a,trailing:f})}return SS=r,SS}var Xve=Zve();const xz=Dt(Xve);function fm(e){"@babel/helpers - typeof";return fm=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},fm(e)}function K5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K5(Object(n),!0).forEach(function(r){Qve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qve(e,t,n){return t=Jve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jve(e){var t=ege(e,"string");return fm(t)=="symbol"?t:t+""}function ege(e,t){if(fm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tge(e,t){return age(e)||ige(e,t)||rge(e,t)||nge()}function nge(){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 rge(e,t){if(e){if(typeof e=="string")return Z5(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 Z5(e,t)}}function Z5(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 ige(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function age(e){if(Array.isArray(e))return e}var oge=I.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?"100%":a,l=e.height,f=l===void 0?"100%":l,c=e.minWidth,h=c===void 0?0:c,m=e.minHeight,g=e.maxHeight,x=e.children,_=e.debounce,w=_===void 0?0:_,O=e.id,S=e.className,T=e.onResize,A=e.style,j=A===void 0?{}:A,P=I.useRef(null),R=I.useRef();R.current=T,I.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var D=I.useState({containerWidth:i.width,containerHeight:i.height}),U=tge(D,2),z=U[0],F=U[1],V=I.useCallback(function(te,ee){F(function(re){var Q=Math.round(te),oe=Math.round(ee);return re.containerWidth===Q&&re.containerHeight===oe?re:{containerWidth:Q,containerHeight:oe}})},[]);I.useEffect(function(){var te=function(X){var $,G=X[0].contentRect,se=G.width,Z=G.height;V(se,Z),($=R.current)===null||$===void 0||$.call(R,se,Z)};w>0&&(te=xz(te,w,{trailing:!0,leading:!1}));var ee=new ResizeObserver(te),re=P.current.getBoundingClientRect(),Q=re.width,oe=re.height;return V(Q,oe),ee.observe(P.current),function(){ee.disconnect()}},[V,w]);var H=I.useMemo(function(){var te=z.containerWidth,ee=z.containerHeight;if(te<0||ee<0)return null;_a(Fu(o)||Fu(f),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,o,f),_a(!n||n>0,"The aspect(%s) must be greater than zero.",n);var re=Fu(o)?te:o,Q=Fu(f)?ee:f;n&&n>0&&(re?Q=re/n:Q&&(re=Q*n),g&&Q>g&&(Q=g)),_a(re>0||Q>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.`,re,Q,o,f,h,m,n);var oe=!Array.isArray(x)&&Jo(x.type).endsWith("Chart");return J.Children.map(x,function(le){return J.isValidElement(le)?I.cloneElement(le,ty({width:re,height:Q},oe?{style:ty({height:"100%",width:"100%",maxHeight:Q,maxWidth:re},le.props.style)}:{})):le})},[n,x,f,g,m,h,z,o]);return J.createElement("div",{id:O?"".concat(O):void 0,className:Ve("recharts-responsive-container",S),style:ty(ty({},j),{},{width:o,height:f,minWidth:h,minHeight:m,maxHeight:g}),ref:P},H)}),Cl=function(t){return null};Cl.displayName="Cell";function dm(e){"@babel/helpers - typeof";return dm=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},dm(e)}function X5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function GC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X5(Object(n),!0).forEach(function(r){sge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sge(e,t,n){return t=lge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lge(e){var t=uge(e,"string");return dm(t)=="symbol"?t:t+""}function uge(e,t){if(dm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vf={widthCache:{},cacheCount:0},cge=2e3,fge={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Q5="recharts_measurement_span";function dge(e){var t=GC({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Lp=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||bs.isSsr)return{width:0,height:0};var r=dge(n),i=JSON.stringify({text:t,copyStyle:r});if(vf.widthCache[i])return vf.widthCache[i];try{var a=document.getElementById(Q5);a||(a=document.createElement("span"),a.setAttribute("id",Q5),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=GC(GC({},fge),r);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),f={width:l.width,height:l.height};return vf.widthCache[i]=f,++vf.cacheCount>cge&&(vf.cacheCount=0,vf.widthCache={}),f}catch{return{width:0,height:0}}},hge=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function hm(e){"@babel/helpers - typeof";return hm=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},hm(e)}function Pb(e,t){return gge(e)||vge(e,t)||mge(e,t)||pge()}function pge(){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 mge(e,t){if(e){if(typeof e=="string")return J5(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 J5(e,t)}}function J5(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 vge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function gge(e){if(Array.isArray(e))return e}function yge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e8(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,_ge(r.key),r)}}function bge(e,t,n){return t&&e8(e.prototype,t),n&&e8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ge(e){var t=xge(e,"string");return hm(t)=="symbol"?t:t+""}function xge(e,t){if(hm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var t8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,n8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,wge=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Oge=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,wz={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Sge=Object.keys(wz),Pf="NaN";function Ege(e,t){return e*wz[t]}var ny=function(){function e(t,n){yge(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!wge.test(n)&&(this.num=NaN,this.unit=""),Sge.includes(n)&&(this.num=Ege(t,n),this.unit="px")}return bge(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,i=(r=Oge.exec(n))!==null&&r!==void 0?r:[],a=Pb(i,3),o=a[1],l=a[2];return new e(parseFloat(o),l??"")}}])}();function Oz(e){if(e.includes(Pf))return Pf;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=t8.exec(t))!==null&&n!==void 0?n:[],i=Pb(r,4),a=i[1],o=i[2],l=i[3],f=ny.parse(a??""),c=ny.parse(l??""),h=o==="*"?f.multiply(c):f.divide(c);if(h.isNaN())return Pf;t=t.replace(t8,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,g=(m=n8.exec(t))!==null&&m!==void 0?m:[],x=Pb(g,4),_=x[1],w=x[2],O=x[3],S=ny.parse(_??""),T=ny.parse(O??""),A=w==="+"?S.add(T):S.subtract(T);if(A.isNaN())return Pf;t=t.replace(n8,A.toString())}return t}var r8=/\(([^()]*)\)/;function Tge(e){for(var t=e;t.includes("(");){var n=r8.exec(t),r=Pb(n,2),i=r[1];t=t.replace(r8,Oz(i))}return t}function Cge(e){var t=e.replace(/\s+/g,"");return t=Tge(t),t=Oz(t),t}function Age(e){try{return Cge(e)}catch{return Pf}}function ES(e){var t=Age(e.slice(5,-1));return t===Pf?"":t}var jge=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Pge=["dx","dy","angle","className","breakAll"];function YC(){return YC=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},YC.apply(this,arguments)}function i8(e,t){if(e==null)return{};var n=Rge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rge(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 a8(e,t){return Dge(e)||Lge(e,t)||Nge(e,t)||Mge()}function Mge(){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 Nge(e,t){if(e){if(typeof e=="string")return o8(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 o8(e,t)}}function o8(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 Lge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Dge(e){if(Array.isArray(e))return e}var Sz=/[ \f\n\r\t\v\u2028\u2029]+/,Ez=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];ft(n)||(r?a=n.toString().split(""):a=n.toString().split(Sz));var o=a.map(function(f){return{word:f,width:Lp(f,i).width}}),l=r?0:Lp(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},kge=function(t,n,r,i,a){var o=t.maxLines,l=t.children,f=t.style,c=t.breakAll,h=We(o),m=l,g=function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return re.reduce(function(Q,oe){var le=oe.word,X=oe.width,$=Q[Q.length-1];if($&&(i==null||a||$.width+X+r<Number(i)))$.words.push(le),$.width+=X+r;else{var G={words:[le],width:X};Q.push(G)}return Q},[])},x=g(n),_=function(re){return re.reduce(function(Q,oe){return Q.width>oe.width?Q:oe})};if(!h)return x;for(var w="…",O=function(re){var Q=m.slice(0,re),oe=Ez({breakAll:c,style:f,children:Q+w}).wordsWithComputedWidth,le=g(oe),X=le.length>o||_(le).width>Number(i);return[X,le]},S=0,T=m.length-1,A=0,j;S<=T&&A<=m.length-1;){var P=Math.floor((S+T)/2),R=P-1,D=O(R),U=a8(D,2),z=U[0],F=U[1],V=O(P),H=a8(V,1),te=H[0];if(!z&&!te&&(S=P+1),z&&te&&(T=P-1),!z&&te){j=F;break}A++}return j||x},s8=function(t){var n=ft(t)?[]:t.toString().split(Sz);return[{words:n}]},Ige=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!bs.isSsr){var f,c,h=Ez({breakAll:o,children:i,style:a});if(h){var m=h.wordsWithComputedWidth,g=h.spaceWidth;f=m,c=g}else return s8(i);return kge({breakAll:o,children:i,maxLines:l,style:a},f,c,n,r)}return s8(i)},l8="#808080",sc=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,f=t.capHeight,c=f===void 0?"0.71em":f,h=t.scaleToFit,m=h===void 0?!1:h,g=t.textAnchor,x=g===void 0?"start":g,_=t.verticalAnchor,w=_===void 0?"end":_,O=t.fill,S=O===void 0?l8:O,T=i8(t,jge),A=I.useMemo(function(){return Ige({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:m,style:T.style,width:T.width})},[T.breakAll,T.children,T.maxLines,m,T.style,T.width]),j=T.dx,P=T.dy,R=T.angle,D=T.className,U=T.breakAll,z=i8(T,Pge);if(!Kn(r)||!Kn(a))return null;var F=r+(We(j)?j:0),V=a+(We(P)?P:0),H;switch(w){case"start":H=ES("calc(".concat(c,")"));break;case"middle":H=ES("calc(".concat((A.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:H=ES("calc(".concat(A.length-1," * -").concat(l,")"));break}var te=[];if(m){var ee=A[0].width,re=T.width;te.push("scale(".concat((We(re)?re/ee:1)/ee,")"))}return R&&te.push("rotate(".concat(R,", ").concat(F,", ").concat(V,")")),te.length&&(z.transform=te.join(" ")),J.createElement("text",YC({},it(z,!0),{x:F,y:V,className:Ve("recharts-text",D),textAnchor:x,fill:S.includes("url")?l8:S}),A.map(function(Q,oe){var le=Q.words.join(U?"":" ");return J.createElement("tspan",{x:F,dy:oe===0?H:l,key:"".concat(le,"-").concat(oe)},le)}))};function Al(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function $ge(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $P(e){let t,n,r;e.length!==2?(t=Al,n=(l,f)=>Al(e(l),f),r=(l,f)=>e(l)-f):(t=e===Al||e===$ge?e:Uge,n=e,r=e);function i(l,f,c=0,h=l.length){if(c<h){if(t(f,f)!==0)return h;do{const m=c+h>>>1;n(l[m],f)<0?c=m+1:h=m}while(c<h)}return c}function a(l,f,c=0,h=l.length){if(c<h){if(t(f,f)!==0)return h;do{const m=c+h>>>1;n(l[m],f)<=0?c=m+1:h=m}while(c<h)}return c}function o(l,f,c=0,h=l.length){const m=i(l,f,c,h-1);return m>c&&r(l[m-1],f)>-r(l[m],f)?m-1:m}return{left:i,center:o,right:a}}function Uge(){return 0}function Tz(e){return e===null?NaN:+e}function*Bge(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Fge=$P(Al),fv=Fge.right;$P(Tz).center;class u8 extends Map{constructor(t,n=Vge){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(c8(this,t))}has(t){return super.has(c8(this,t))}set(t,n){return super.set(zge(this,t),n)}delete(t){return super.delete(qge(this,t))}}function c8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function zge({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function qge({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Vge(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Hge(e=Al){if(e===Al)return Cz;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 Cz(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Wge=Math.sqrt(50),Gge=Math.sqrt(10),Yge=Math.sqrt(2);function Rb(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=Wge?10:a>=Gge?5:a>=Yge?2:1;let l,f,c;return i<0?(c=Math.pow(10,-i)/o,l=Math.round(e*c),f=Math.round(t*c),l/c<e&&++l,f/c>t&&--f,c=-c):(c=Math.pow(10,i)*o,l=Math.round(e/c),f=Math.round(t/c),l*c<e&&++l,f*c>t&&--f),f<l&&.5<=n&&n<2?Rb(e,t,n*2):[l,f,c]}function KC(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?Rb(t,e,n):Rb(e,t,n);if(!(a>=i))return[];const l=a-i+1,f=new Array(l);if(r)if(o<0)for(let c=0;c<l;++c)f[c]=(a-c)/-o;else for(let c=0;c<l;++c)f[c]=(a-c)*o;else if(o<0)for(let c=0;c<l;++c)f[c]=(i+c)/-o;else for(let c=0;c<l;++c)f[c]=(i+c)*o;return f}function ZC(e,t,n){return t=+t,e=+e,n=+n,Rb(e,t,n)[2]}function XC(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?ZC(t,e,n):ZC(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function f8(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function d8(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Az(e,t,n=0,r=1/0,i){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(i=i===void 0?Cz:Hge(i);r>n;){if(r-n>600){const f=r-n+1,c=t-n+1,h=Math.log(f),m=.5*Math.exp(2*h/3),g=.5*Math.sqrt(h*m*(f-m)/f)*(c-f/2<0?-1:1),x=Math.max(n,Math.floor(t-c*m/f+g)),_=Math.min(r,Math.floor(t+(f-c)*m/f+g));Az(e,t,x,_,i)}const a=e[t];let o=n,l=r;for(ap(e,n,t),i(e[r],a)>0&&ap(e,n,r);o<l;){for(ap(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?ap(e,n,l):(++l,ap(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function ap(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Kge(e,t,n){if(e=Float64Array.from(Bge(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return d8(e);if(t>=1)return f8(e);var r,i=(r-1)*t,a=Math.floor(i),o=f8(Az(e,a).subarray(0,a+1)),l=d8(e.subarray(a+1));return o+(l-o)*(i-a)}}function Zge(e,t,n=Tz){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,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function Xge(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function aa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function _s(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 QC=Symbol("implicit");function UP(){var e=new u8,t=[],n=[],r=QC;function i(a){let o=e.get(a);if(o===void 0){if(r!==QC)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new u8;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return UP(t,n).unknown(r)},aa.apply(i,arguments),i}function pm(){var e=UP().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,f=0,c=0,h=.5;delete e.unknown;function m(){var g=t().length,x=i<r,_=x?i:r,w=x?r:i;a=(w-_)/Math.max(1,g-f+c*2),l&&(a=Math.floor(a)),_+=(w-_-a*(g-f))*h,o=a*(1-f),l&&(_=Math.round(_),o=Math.round(o));var O=Xge(g).map(function(S){return _+a*S});return n(x?O.reverse():O)}return e.domain=function(g){return arguments.length?(t(g),m()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,m()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,l=!0,m()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(g){return arguments.length?(l=!!g,m()):l},e.padding=function(g){return arguments.length?(f=Math.min(1,c=+g),m()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),m()):f},e.paddingOuter=function(g){return arguments.length?(c=+g,m()):c},e.align=function(g){return arguments.length?(h=Math.max(0,Math.min(1,g)),m()):h},e.copy=function(){return pm(t(),[r,i]).round(l).paddingInner(f).paddingOuter(c).align(h)},aa.apply(m(),arguments)}function jz(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return jz(t())},e}function Dp(){return jz(pm.apply(null,arguments).paddingInner(1))}function BP(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Pz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dv(){}var mm=.7,Mb=1/mm,Uf="\\s*([+-]?\\d+)\\s*",vm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",no="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qge=/^#([0-9a-f]{3,8})$/,Jge=new RegExp(`^rgb\\(${Uf},${Uf},${Uf}\\)$`),eye=new RegExp(`^rgb\\(${no},${no},${no}\\)$`),tye=new RegExp(`^rgba\\(${Uf},${Uf},${Uf},${vm}\\)$`),nye=new RegExp(`^rgba\\(${no},${no},${no},${vm}\\)$`),rye=new RegExp(`^hsl\\(${vm},${no},${no}\\)$`),iye=new RegExp(`^hsla\\(${vm},${no},${no},${vm}\\)$`),h8={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};BP(dv,gm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:p8,formatHex:p8,formatHex8:aye,formatHsl:oye,formatRgb:m8,toString:m8});function p8(){return this.rgb().formatHex()}function aye(){return this.rgb().formatHex8()}function oye(){return Rz(this).formatHsl()}function m8(){return this.rgb().formatRgb()}function gm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Qge.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?v8(t):n===3?new Jr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ry(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ry(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=Jge.exec(e))?new Jr(t[1],t[2],t[3],1):(t=eye.exec(e))?new Jr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tye.exec(e))?ry(t[1],t[2],t[3],t[4]):(t=nye.exec(e))?ry(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rye.exec(e))?b8(t[1],t[2]/100,t[3]/100,1):(t=iye.exec(e))?b8(t[1],t[2]/100,t[3]/100,t[4]):h8.hasOwnProperty(e)?v8(h8[e]):e==="transparent"?new Jr(NaN,NaN,NaN,0):null}function v8(e){return new Jr(e>>16&255,e>>8&255,e&255,1)}function ry(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jr(e,t,n,r)}function sye(e){return e instanceof dv||(e=gm(e)),e?(e=e.rgb(),new Jr(e.r,e.g,e.b,e.opacity)):new Jr}function JC(e,t,n,r){return arguments.length===1?sye(e):new Jr(e,t,n,r??1)}function Jr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}BP(Jr,JC,Pz(dv,{brighter(e){return e=e==null?Mb:Math.pow(Mb,e),new Jr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mm:Math.pow(mm,e),new Jr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jr(Zu(this.r),Zu(this.g),Zu(this.b),Nb(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:g8,formatHex:g8,formatHex8:lye,formatRgb:y8,toString:y8}));function g8(){return`#${zu(this.r)}${zu(this.g)}${zu(this.b)}`}function lye(){return`#${zu(this.r)}${zu(this.g)}${zu(this.b)}${zu((isNaN(this.opacity)?1:this.opacity)*255)}`}function y8(){const e=Nb(this.opacity);return`${e===1?"rgb(":"rgba("}${Zu(this.r)}, ${Zu(this.g)}, ${Zu(this.b)}${e===1?")":`, ${e})`}`}function Nb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zu(e){return e=Zu(e),(e<16?"0":"")+e.toString(16)}function b8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ba(e,t,n,r)}function Rz(e){if(e instanceof ba)return new ba(e.h,e.s,e.l,e.opacity);if(e instanceof dv||(e=gm(e)),!e)return new ba;if(e instanceof ba)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,f=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=f<.5?a+i:2-a-i,o*=60):l=f>0&&f<1?0:o,new ba(o,l,f,e.opacity)}function uye(e,t,n,r){return arguments.length===1?Rz(e):new ba(e,t,n,r??1)}function ba(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}BP(ba,uye,Pz(dv,{brighter(e){return e=e==null?Mb:Math.pow(Mb,e),new ba(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mm:Math.pow(mm,e),new ba(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,i=2*n-r;return new Jr(TS(e>=240?e-240:e+120,i,r),TS(e,i,r),TS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ba(_8(this.h),iy(this.s),iy(this.l),Nb(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=Nb(this.opacity);return`${e===1?"hsl(":"hsla("}${_8(this.h)}, ${iy(this.s)*100}%, ${iy(this.l)*100}%${e===1?")":`, ${e})`}`}}));function _8(e){return e=(e||0)%360,e<0?e+360:e}function iy(e){return Math.max(0,Math.min(1,e||0))}function TS(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 FP=e=>()=>e;function cye(e,t){return function(n){return e+n*t}}function fye(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 dye(e){return(e=+e)==1?Mz:function(t,n){return n-t?fye(t,n,e):FP(isNaN(t)?n:t)}}function Mz(e,t){var n=t-e;return n?cye(e,n):FP(isNaN(e)?t:e)}const x8=function e(t){var n=dye(t);function r(i,a){var o=n((i=JC(i)).r,(a=JC(a)).r),l=n(i.g,a.g),f=n(i.b,a.b),c=Mz(i.opacity,a.opacity);return function(h){return i.r=o(h),i.g=l(h),i.b=f(h),i.opacity=c(h),i+""}}return r.gamma=e,r}(1);function hye(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function pye(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mye(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Bd(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function vye(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Lb(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function gye(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Bd(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var eA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,CS=new RegExp(eA.source,"g");function yye(e){return function(){return e}}function bye(e){return function(t){return e(t)+""}}function _ye(e,t){var n=eA.lastIndex=CS.lastIndex=0,r,i,a,o=-1,l=[],f=[];for(e=e+"",t=t+"";(r=eA.exec(e))&&(i=CS.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,f.push({i:o,x:Lb(r,i)})),n=CS.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?f[0]?bye(f[0].x):yye(t):(t=f.length,function(c){for(var h=0,m;h<t;++h)l[(m=f[h]).i]=m.x(c);return l.join("")})}function Bd(e,t){var n=typeof t,r;return t==null||n==="boolean"?FP(t):(n==="number"?Lb:n==="string"?(r=gm(t))?(t=r,x8):_ye:t instanceof gm?x8:t instanceof Date?vye:pye(t)?hye:Array.isArray(t)?mye:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?gye:Lb)(e,t)}function zP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function xye(e,t){t===void 0&&(t=e,e=Bd);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}function wye(e){return function(){return e}}function Db(e){return+e}var w8=[0,1];function Fr(e){return e}function tA(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:wye(isNaN(t)?NaN:.5)}function Oye(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Sye(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=tA(i,r),a=n(o,a)):(r=tA(r,i),a=n(a,o)),function(l){return a(r(l))}}function Eye(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=tA(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var f=fv(e,l,1,r)-1;return a[f](i[f](l))}}function hv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function c_(){var e=w8,t=w8,n=Bd,r,i,a,o=Fr,l,f,c;function h(){var g=Math.min(e.length,t.length);return o!==Fr&&(o=Oye(e[0],e[g-1])),l=g>2?Eye:Sye,f=c=null,m}function m(g){return g==null||isNaN(g=+g)?a:(f||(f=l(e.map(r),t,n)))(r(o(g)))}return m.invert=function(g){return o(i((c||(c=l(t,e.map(r),Lb)))(g)))},m.domain=function(g){return arguments.length?(e=Array.from(g,Db),h()):e.slice()},m.range=function(g){return arguments.length?(t=Array.from(g),h()):t.slice()},m.rangeRound=function(g){return t=Array.from(g),n=zP,h()},m.clamp=function(g){return arguments.length?(o=g?!0:Fr,h()):o!==Fr},m.interpolate=function(g){return arguments.length?(n=g,h()):n},m.unknown=function(g){return arguments.length?(a=g,m):a},function(g,x){return r=g,i=x,h()}}function qP(){return c_()(Fr,Fr)}function Tye(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function kb(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function rd(e){return e=kb(Math.abs(e)),e?e[1]:NaN}function Cye(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],f=0;i>0&&l>0&&(f+l+1>r&&(l=Math.max(1,r-f)),a.push(n.substring(i-=l,i+l)),!((f+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Aye(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var jye=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ym(e){if(!(t=jye.exec(e)))throw new Error("invalid format: "+e);var t;return new VP({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]})}ym.prototype=VP.prototype;function VP(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+""}VP.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 Pye(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Nz;function Rye(e,t){var n=kb(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Nz=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+kb(e,Math.max(0,t+a-1))[0]}function O8(e,t){var n=kb(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const S8={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Tye,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)=>O8(e*100,t),r:O8,s:Rye,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function E8(e){return e}var T8=Array.prototype.map,C8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mye(e){var t=e.grouping===void 0||e.thousands===void 0?E8:Cye(T8.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?E8:Aye(T8.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function c(m){m=ym(m);var g=m.fill,x=m.align,_=m.sign,w=m.symbol,O=m.zero,S=m.width,T=m.comma,A=m.precision,j=m.trim,P=m.type;P==="n"?(T=!0,P="g"):S8[P]||(A===void 0&&(A=12),j=!0,P="g"),(O||g==="0"&&x==="=")&&(O=!0,g="0",x="=");var R=w==="$"?n:w==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",D=w==="$"?r:/[%p]/.test(P)?o:"",U=S8[P],z=/[defgprs%]/.test(P);A=A===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function F(V){var H=R,te=D,ee,re,Q;if(P==="c")te=U(V)+te,V="";else{V=+V;var oe=V<0||1/V<0;if(V=isNaN(V)?f:U(Math.abs(V),A),j&&(V=Pye(V)),oe&&+V==0&&_!=="+"&&(oe=!1),H=(oe?_==="("?_:l:_==="-"||_==="("?"":_)+H,te=(P==="s"?C8[8+Nz/3]:"")+te+(oe&&_==="("?")":""),z){for(ee=-1,re=V.length;++ee<re;)if(Q=V.charCodeAt(ee),48>Q||Q>57){te=(Q===46?i+V.slice(ee+1):V.slice(ee))+te,V=V.slice(0,ee);break}}}T&&!O&&(V=t(V,1/0));var le=H.length+V.length+te.length,X=le<S?new Array(S-le+1).join(g):"";switch(T&&O&&(V=t(X+V,X.length?S-te.length:1/0),X=""),x){case"<":V=H+V+te+X;break;case"=":V=H+X+V+te;break;case"^":V=X.slice(0,le=X.length>>1)+H+V+te+X.slice(le);break;default:V=X+H+V+te;break}return a(V)}return F.toString=function(){return m+""},F}function h(m,g){var x=c((m=ym(m),m.type="f",m)),_=Math.max(-8,Math.min(8,Math.floor(rd(g)/3)))*3,w=Math.pow(10,-_),O=C8[8+_/3];return function(S){return x(w*S)+O}}return{format:c,formatPrefix:h}}var ay,HP,Lz;Nye({thousands:",",grouping:[3],currency:["$",""]});function Nye(e){return ay=Mye(e),HP=ay.format,Lz=ay.formatPrefix,ay}function Lye(e){return Math.max(0,-rd(Math.abs(e)))}function Dye(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(rd(t)/3)))*3-rd(Math.abs(e)))}function kye(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rd(t)-rd(e))+1}function Dz(e,t,n,r){var i=XC(e,t,n),a;switch(r=ym(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Dye(i,o))&&(r.precision=a),Lz(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=kye(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Lye(i))&&(r.precision=a-(r.type==="%")*2);break}}return HP(r)}function Gl(e){var t=e.domain;return e.ticks=function(n){var r=t();return KC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Dz(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],f,c,h=10;for(l<o&&(c=o,o=l,l=c,c=i,i=a,a=c);h-- >0;){if(c=ZC(o,l,n),c===f)return r[i]=o,r[a]=l,t(r);if(c>0)o=Math.floor(o/c)*c,l=Math.ceil(l/c)*c;else if(c<0)o=Math.ceil(o*c)/c,l=Math.floor(l*c)/c;else break;f=c}return e},e}function Ib(){var e=qP();return e.copy=function(){return hv(e,Ib())},aa.apply(e,arguments),Gl(e)}function kz(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,Db),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return kz(e).unknown(t)},e=arguments.length?Array.from(e,Db):[0,1],Gl(n)}function Iz(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function A8(e){return Math.log(e)}function j8(e){return Math.exp(e)}function Iye(e){return-Math.log(-e)}function $ye(e){return-Math.exp(-e)}function Uye(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Bye(e){return e===10?Uye:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Fye(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 P8(e){return(t,n)=>-e(-t,n)}function WP(e){const t=e(A8,j8),n=t.domain;let r=10,i,a;function o(){return i=Fye(r),a=Bye(r),n()[0]<0?(i=P8(i),a=P8(a),e(Iye,$ye)):e(A8,j8),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const f=n();let c=f[0],h=f[f.length-1];const m=h<c;m&&([c,h]=[h,c]);let g=i(c),x=i(h),_,w;const O=l==null?10:+l;let S=[];if(!(r%1)&&x-g<O){if(g=Math.floor(g),x=Math.ceil(x),c>0){for(;g<=x;++g)for(_=1;_<r;++_)if(w=g<0?_/a(-g):_*a(g),!(w<c)){if(w>h)break;S.push(w)}}else for(;g<=x;++g)for(_=r-1;_>=1;--_)if(w=g>0?_/a(-g):_*a(g),!(w<c)){if(w>h)break;S.push(w)}S.length*2<O&&(S=KC(c,h,O))}else S=KC(g,x,Math.min(x-g,O)).map(a);return m?S.reverse():S},t.tickFormat=(l,f)=>{if(l==null&&(l=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=ym(f)).precision==null&&(f.trim=!0),f=HP(f)),l===1/0)return f;const c=Math.max(1,r*l/t.ticks().length);return h=>{let m=h/a(Math.round(i(h)));return m*r<r-.5&&(m*=r),m<=c?f(h):""}},t.nice=()=>n(Iz(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function $z(){const e=WP(c_()).domain([1,10]);return e.copy=()=>hv(e,$z()).base(e.base()),aa.apply(e,arguments),e}function R8(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function M8(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function GP(e){var t=1,n=e(R8(t),M8(t));return n.constant=function(r){return arguments.length?e(R8(t=+r),M8(t)):t},Gl(n)}function Uz(){var e=GP(c_());return e.copy=function(){return hv(e,Uz()).constant(e.constant())},aa.apply(e,arguments)}function N8(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zye(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function qye(e){return e<0?-e*e:e*e}function YP(e){var t=e(Fr,Fr),n=1;function r(){return n===1?e(Fr,Fr):n===.5?e(zye,qye):e(N8(n),N8(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Gl(t)}function KP(){var e=YP(c_());return e.copy=function(){return hv(e,KP()).exponent(e.exponent())},aa.apply(e,arguments),e}function Vye(){return KP.apply(null,arguments).exponent(.5)}function L8(e){return Math.sign(e)*e*e}function Hye(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Bz(){var e=qP(),t=[0,1],n=!1,r;function i(a){var o=Hye(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(L8(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Db)).map(L8)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Bz(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},aa.apply(i,arguments),Gl(i)}function Fz(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=Zge(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[fv(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Al),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return Fz().domain(e).range(t).unknown(r)},aa.apply(a,arguments)}function zz(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(f){return f!=null&&f<=f?i[fv(r,f,0,n)]:a}function l(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return o}return o.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,l()):[e,t]},o.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,l()):i.slice()},o.invertExtent=function(f){var c=i.indexOf(f);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},o.unknown=function(f){return arguments.length&&(a=f),o},o.thresholds=function(){return r.slice()},o.copy=function(){return zz().domain([e,t]).range(i).unknown(a)},aa.apply(Gl(o),arguments)}function qz(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[fv(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return qz().domain(e).range(t).unknown(n)},aa.apply(i,arguments)}const AS=new Date,jS=new Date;function Xn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const f=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return f;let c;do f.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return f},i.filter=a=>Xn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(AS.setTime(+a),jS.setTime(+o),e(AS),e(jS),Math.floor(n(AS,jS))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const $b=Xn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);$b.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):$b);$b.range;const Yo=1e3,Qi=Yo*60,Ko=Qi*60,us=Ko*24,ZP=us*7,D8=us*30,PS=us*365,qu=Xn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Yo)},(e,t)=>(t-e)/Yo,e=>e.getUTCSeconds());qu.range;const XP=Xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Yo)},(e,t)=>{e.setTime(+e+t*Qi)},(e,t)=>(t-e)/Qi,e=>e.getMinutes());XP.range;const QP=Xn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qi)},(e,t)=>(t-e)/Qi,e=>e.getUTCMinutes());QP.range;const JP=Xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Yo-e.getMinutes()*Qi)},(e,t)=>{e.setTime(+e+t*Ko)},(e,t)=>(t-e)/Ko,e=>e.getHours());JP.range;const e3=Xn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ko)},(e,t)=>(t-e)/Ko,e=>e.getUTCHours());e3.range;const pv=Xn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qi)/us,e=>e.getDate()-1);pv.range;const f_=Xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/us,e=>e.getUTCDate()-1);f_.range;const Vz=Xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/us,e=>Math.floor(e/us));Vz.range;function mc(e){return Xn(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())*Qi)/ZP)}const d_=mc(0),Ub=mc(1),Wye=mc(2),Gye=mc(3),id=mc(4),Yye=mc(5),Kye=mc(6);d_.range;Ub.range;Wye.range;Gye.range;id.range;Yye.range;Kye.range;function vc(e){return Xn(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)/ZP)}const h_=vc(0),Bb=vc(1),Zye=vc(2),Xye=vc(3),ad=vc(4),Qye=vc(5),Jye=vc(6);h_.range;Bb.range;Zye.range;Xye.range;ad.range;Qye.range;Jye.range;const t3=Xn(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());t3.range;const n3=Xn(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());n3.range;const cs=Xn(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());cs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xn(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)});cs.range;const fs=Xn(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());fs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xn(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)});fs.range;function Hz(e,t,n,r,i,a){const o=[[qu,1,Yo],[qu,5,5*Yo],[qu,15,15*Yo],[qu,30,30*Yo],[a,1,Qi],[a,5,5*Qi],[a,15,15*Qi],[a,30,30*Qi],[i,1,Ko],[i,3,3*Ko],[i,6,6*Ko],[i,12,12*Ko],[r,1,us],[r,2,2*us],[n,1,ZP],[t,1,D8],[t,3,3*D8],[e,1,PS]];function l(c,h,m){const g=h<c;g&&([c,h]=[h,c]);const x=m&&typeof m.range=="function"?m:f(c,h,m),_=x?x.range(c,+h+1):[];return g?_.reverse():_}function f(c,h,m){const g=Math.abs(h-c)/m,x=$P(([,,O])=>O).right(o,g);if(x===o.length)return e.every(XC(c/PS,h/PS,m));if(x===0)return $b.every(Math.max(XC(c,h,m),1));const[_,w]=o[g/o[x-1][2]<o[x][2]/g?x-1:x];return _.every(w)}return[l,f]}const[ebe,tbe]=Hz(fs,n3,h_,Vz,e3,QP),[nbe,rbe]=Hz(cs,t3,d_,pv,JP,XP);function RS(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 MS(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 op(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ibe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,f=e.shortMonths,c=sp(i),h=lp(i),m=sp(a),g=lp(a),x=sp(o),_=lp(o),w=sp(l),O=lp(l),S=sp(f),T=lp(f),A={a:oe,A:le,b:X,B:$,c:null,d:F8,e:F8,f:Cbe,g:Ibe,G:Ube,H:Sbe,I:Ebe,j:Tbe,L:Wz,m:Abe,M:jbe,p:G,q:se,Q:V8,s:H8,S:Pbe,u:Rbe,U:Mbe,V:Nbe,w:Lbe,W:Dbe,x:null,X:null,y:kbe,Y:$be,Z:Bbe,"%":q8},j={a:Z,A:ue,b:fe,B:de,c:null,d:z8,e:z8,f:Vbe,g:e0e,G:n0e,H:Fbe,I:zbe,j:qbe,L:Yz,m:Hbe,M:Wbe,p:Se,q:k,Q:V8,s:H8,S:Gbe,u:Ybe,U:Kbe,V:Zbe,w:Xbe,W:Qbe,x:null,X:null,y:Jbe,Y:t0e,Z:r0e,"%":q8},P={a:F,A:V,b:H,B:te,c:ee,d:U8,e:U8,f:_be,g:$8,G:I8,H:B8,I:B8,j:vbe,L:bbe,m:mbe,M:gbe,p:z,q:pbe,Q:wbe,s:Obe,S:ybe,u:ube,U:cbe,V:fbe,w:lbe,W:dbe,x:re,X:Q,y:$8,Y:I8,Z:hbe,"%":xbe};A.x=R(n,A),A.X=R(r,A),A.c=R(t,A),j.x=R(n,j),j.X=R(r,j),j.c=R(t,j);function R(B,K){return function(ce){var ae=[],pe=-1,Te=0,Fe=B.length,ge,je,Me;for(ce instanceof Date||(ce=new Date(+ce));++pe<Fe;)B.charCodeAt(pe)===37&&(ae.push(B.slice(Te,pe)),(je=k8[ge=B.charAt(++pe)])!=null?ge=B.charAt(++pe):je=ge==="e"?" ":"0",(Me=K[ge])&&(ge=Me(ce,je)),ae.push(ge),Te=pe+1);return ae.push(B.slice(Te,pe)),ae.join("")}}function D(B,K){return function(ce){var ae=op(1900,void 0,1),pe=U(ae,B,ce+="",0),Te,Fe;if(pe!=ce.length)return null;if("Q"in ae)return new Date(ae.Q);if("s"in ae)return new Date(ae.s*1e3+("L"in ae?ae.L:0));if(K&&!("Z"in ae)&&(ae.Z=0),"p"in ae&&(ae.H=ae.H%12+ae.p*12),ae.m===void 0&&(ae.m="q"in ae?ae.q:0),"V"in ae){if(ae.V<1||ae.V>53)return null;"w"in ae||(ae.w=1),"Z"in ae?(Te=MS(op(ae.y,0,1)),Fe=Te.getUTCDay(),Te=Fe>4||Fe===0?Bb.ceil(Te):Bb(Te),Te=f_.offset(Te,(ae.V-1)*7),ae.y=Te.getUTCFullYear(),ae.m=Te.getUTCMonth(),ae.d=Te.getUTCDate()+(ae.w+6)%7):(Te=RS(op(ae.y,0,1)),Fe=Te.getDay(),Te=Fe>4||Fe===0?Ub.ceil(Te):Ub(Te),Te=pv.offset(Te,(ae.V-1)*7),ae.y=Te.getFullYear(),ae.m=Te.getMonth(),ae.d=Te.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),Fe="Z"in ae?MS(op(ae.y,0,1)).getUTCDay():RS(op(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(Fe+5)%7:ae.w+ae.U*7-(Fe+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,MS(ae)):RS(ae)}}function U(B,K,ce,ae){for(var pe=0,Te=K.length,Fe=ce.length,ge,je;pe<Te;){if(ae>=Fe)return-1;if(ge=K.charCodeAt(pe++),ge===37){if(ge=K.charAt(pe++),je=P[ge in k8?K.charAt(pe++):ge],!je||(ae=je(B,ce,ae))<0)return-1}else if(ge!=ce.charCodeAt(ae++))return-1}return ae}function z(B,K,ce){var ae=c.exec(K.slice(ce));return ae?(B.p=h.get(ae[0].toLowerCase()),ce+ae[0].length):-1}function F(B,K,ce){var ae=x.exec(K.slice(ce));return ae?(B.w=_.get(ae[0].toLowerCase()),ce+ae[0].length):-1}function V(B,K,ce){var ae=m.exec(K.slice(ce));return ae?(B.w=g.get(ae[0].toLowerCase()),ce+ae[0].length):-1}function H(B,K,ce){var ae=S.exec(K.slice(ce));return ae?(B.m=T.get(ae[0].toLowerCase()),ce+ae[0].length):-1}function te(B,K,ce){var ae=w.exec(K.slice(ce));return ae?(B.m=O.get(ae[0].toLowerCase()),ce+ae[0].length):-1}function ee(B,K,ce){return U(B,t,K,ce)}function re(B,K,ce){return U(B,n,K,ce)}function Q(B,K,ce){return U(B,r,K,ce)}function oe(B){return o[B.getDay()]}function le(B){return a[B.getDay()]}function X(B){return f[B.getMonth()]}function $(B){return l[B.getMonth()]}function G(B){return i[+(B.getHours()>=12)]}function se(B){return 1+~~(B.getMonth()/3)}function Z(B){return o[B.getUTCDay()]}function ue(B){return a[B.getUTCDay()]}function fe(B){return f[B.getUTCMonth()]}function de(B){return l[B.getUTCMonth()]}function Se(B){return i[+(B.getUTCHours()>=12)]}function k(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var K=R(B+="",A);return K.toString=function(){return B},K},parse:function(B){var K=D(B+="",!1);return K.toString=function(){return B},K},utcFormat:function(B){var K=R(B+="",j);return K.toString=function(){return B},K},utcParse:function(B){var K=D(B+="",!0);return K.toString=function(){return B},K}}}var k8={"-":"",_:" ",0:"0"},cr=/^\s*\d+/,abe=/^%/,obe=/[\\^$*+?|[\]().{}]/g;function Bt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function sbe(e){return e.replace(obe,"\\$&")}function sp(e){return new RegExp("^(?:"+e.map(sbe).join("|")+")","i")}function lp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function lbe(e,t,n){var r=cr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ube(e,t,n){var r=cr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function cbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function dbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function I8(e,t,n){var r=cr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $8(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function hbe(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 pbe(e,t,n){var r=cr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function mbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function U8(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function vbe(e,t,n){var r=cr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function B8(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function gbe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ybe(e,t,n){var r=cr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function bbe(e,t,n){var r=cr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function _be(e,t,n){var r=cr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xbe(e,t,n){var r=abe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function wbe(e,t,n){var r=cr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Obe(e,t,n){var r=cr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function F8(e,t){return Bt(e.getDate(),t,2)}function Sbe(e,t){return Bt(e.getHours(),t,2)}function Ebe(e,t){return Bt(e.getHours()%12||12,t,2)}function Tbe(e,t){return Bt(1+pv.count(cs(e),e),t,3)}function Wz(e,t){return Bt(e.getMilliseconds(),t,3)}function Cbe(e,t){return Wz(e,t)+"000"}function Abe(e,t){return Bt(e.getMonth()+1,t,2)}function jbe(e,t){return Bt(e.getMinutes(),t,2)}function Pbe(e,t){return Bt(e.getSeconds(),t,2)}function Rbe(e){var t=e.getDay();return t===0?7:t}function Mbe(e,t){return Bt(d_.count(cs(e)-1,e),t,2)}function Gz(e){var t=e.getDay();return t>=4||t===0?id(e):id.ceil(e)}function Nbe(e,t){return e=Gz(e),Bt(id.count(cs(e),e)+(cs(e).getDay()===4),t,2)}function Lbe(e){return e.getDay()}function Dbe(e,t){return Bt(Ub.count(cs(e)-1,e),t,2)}function kbe(e,t){return Bt(e.getFullYear()%100,t,2)}function Ibe(e,t){return e=Gz(e),Bt(e.getFullYear()%100,t,2)}function $be(e,t){return Bt(e.getFullYear()%1e4,t,4)}function Ube(e,t){var n=e.getDay();return e=n>=4||n===0?id(e):id.ceil(e),Bt(e.getFullYear()%1e4,t,4)}function Bbe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Bt(t/60|0,"0",2)+Bt(t%60,"0",2)}function z8(e,t){return Bt(e.getUTCDate(),t,2)}function Fbe(e,t){return Bt(e.getUTCHours(),t,2)}function zbe(e,t){return Bt(e.getUTCHours()%12||12,t,2)}function qbe(e,t){return Bt(1+f_.count(fs(e),e),t,3)}function Yz(e,t){return Bt(e.getUTCMilliseconds(),t,3)}function Vbe(e,t){return Yz(e,t)+"000"}function Hbe(e,t){return Bt(e.getUTCMonth()+1,t,2)}function Wbe(e,t){return Bt(e.getUTCMinutes(),t,2)}function Gbe(e,t){return Bt(e.getUTCSeconds(),t,2)}function Ybe(e){var t=e.getUTCDay();return t===0?7:t}function Kbe(e,t){return Bt(h_.count(fs(e)-1,e),t,2)}function Kz(e){var t=e.getUTCDay();return t>=4||t===0?ad(e):ad.ceil(e)}function Zbe(e,t){return e=Kz(e),Bt(ad.count(fs(e),e)+(fs(e).getUTCDay()===4),t,2)}function Xbe(e){return e.getUTCDay()}function Qbe(e,t){return Bt(Bb.count(fs(e)-1,e),t,2)}function Jbe(e,t){return Bt(e.getUTCFullYear()%100,t,2)}function e0e(e,t){return e=Kz(e),Bt(e.getUTCFullYear()%100,t,2)}function t0e(e,t){return Bt(e.getUTCFullYear()%1e4,t,4)}function n0e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ad(e):ad.ceil(e),Bt(e.getUTCFullYear()%1e4,t,4)}function r0e(){return"+0000"}function q8(){return"%"}function V8(e){return+e}function H8(e){return Math.floor(+e/1e3)}var gf,Zz,Xz;i0e({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 i0e(e){return gf=ibe(e),Zz=gf.format,gf.parse,Xz=gf.utcFormat,gf.utcParse,gf}function a0e(e){return new Date(e)}function o0e(e){return e instanceof Date?+e:+new Date(+e)}function r3(e,t,n,r,i,a,o,l,f,c){var h=qP(),m=h.invert,g=h.domain,x=c(".%L"),_=c(":%S"),w=c("%I:%M"),O=c("%I %p"),S=c("%a %d"),T=c("%b %d"),A=c("%B"),j=c("%Y");function P(R){return(f(R)<R?x:l(R)<R?_:o(R)<R?w:a(R)<R?O:r(R)<R?i(R)<R?S:T:n(R)<R?A:j)(R)}return h.invert=function(R){return new Date(m(R))},h.domain=function(R){return arguments.length?g(Array.from(R,o0e)):g().map(a0e)},h.ticks=function(R){var D=g();return e(D[0],D[D.length-1],R??10)},h.tickFormat=function(R,D){return D==null?P:c(D)},h.nice=function(R){var D=g();return(!R||typeof R.range!="function")&&(R=t(D[0],D[D.length-1],R??10)),R?g(Iz(D,R)):h},h.copy=function(){return hv(h,r3(e,t,n,r,i,a,o,l,f,c))},h}function s0e(){return aa.apply(r3(nbe,rbe,cs,t3,d_,pv,JP,XP,qu,Zz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function l0e(){return aa.apply(r3(ebe,tbe,fs,n3,h_,f_,e3,QP,qu,Xz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function p_(){var e=0,t=1,n,r,i,a,o=Fr,l=!1,f;function c(m){return m==null||isNaN(m=+m)?f:o(i===0?.5:(m=(a(m)-n)*i,l?Math.max(0,Math.min(1,m)):m))}c.domain=function(m){return arguments.length?([e,t]=m,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(m){return arguments.length?(l=!!m,c):l},c.interpolator=function(m){return arguments.length?(o=m,c):o};function h(m){return function(g){var x,_;return arguments.length?([x,_]=g,o=m(x,_),c):[o(0),o(1)]}}return c.range=h(Bd),c.rangeRound=h(zP),c.unknown=function(m){return arguments.length?(f=m,c):f},function(m){return a=m,n=m(e),r=m(t),i=n===r?0:1/(r-n),c}}function Yl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Qz(){var e=Gl(p_()(Fr));return e.copy=function(){return Yl(e,Qz())},_s.apply(e,arguments)}function Jz(){var e=WP(p_()).domain([1,10]);return e.copy=function(){return Yl(e,Jz()).base(e.base())},_s.apply(e,arguments)}function eq(){var e=GP(p_());return e.copy=function(){return Yl(e,eq()).constant(e.constant())},_s.apply(e,arguments)}function i3(){var e=YP(p_());return e.copy=function(){return Yl(e,i3()).exponent(e.exponent())},_s.apply(e,arguments)}function u0e(){return i3.apply(null,arguments).exponent(.5)}function tq(){var e=[],t=Fr;function n(r){if(r!=null&&!isNaN(r=+r))return t((fv(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Al),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>Kge(e,a/r))},n.copy=function(){return tq(t).domain(e)},_s.apply(n,arguments)}function m_(){var e=0,t=.5,n=1,r=1,i,a,o,l,f,c=Fr,h,m=!1,g;function x(w){return isNaN(w=+w)?g:(w=.5+((w=+h(w))-a)*(r*w<r*a?l:f),c(m?Math.max(0,Math.min(1,w)):w))}x.domain=function(w){return arguments.length?([e,t,n]=w,i=h(e=+e),a=h(t=+t),o=h(n=+n),l=i===a?0:.5/(a-i),f=a===o?0:.5/(o-a),r=a<i?-1:1,x):[e,t,n]},x.clamp=function(w){return arguments.length?(m=!!w,x):m},x.interpolator=function(w){return arguments.length?(c=w,x):c};function _(w){return function(O){var S,T,A;return arguments.length?([S,T,A]=O,c=xye(w,[S,T,A]),x):[c(0),c(.5),c(1)]}}return x.range=_(Bd),x.rangeRound=_(zP),x.unknown=function(w){return arguments.length?(g=w,x):g},function(w){return h=w,i=w(e),a=w(t),o=w(n),l=i===a?0:.5/(a-i),f=a===o?0:.5/(o-a),r=a<i?-1:1,x}}function nq(){var e=Gl(m_()(Fr));return e.copy=function(){return Yl(e,nq())},_s.apply(e,arguments)}function rq(){var e=WP(m_()).domain([.1,1,10]);return e.copy=function(){return Yl(e,rq()).base(e.base())},_s.apply(e,arguments)}function iq(){var e=GP(m_());return e.copy=function(){return Yl(e,iq()).constant(e.constant())},_s.apply(e,arguments)}function a3(){var e=YP(m_());return e.copy=function(){return Yl(e,a3()).exponent(e.exponent())},_s.apply(e,arguments)}function c0e(){return a3.apply(null,arguments).exponent(.5)}const W8=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:pm,scaleDiverging:nq,scaleDivergingLog:rq,scaleDivergingPow:a3,scaleDivergingSqrt:c0e,scaleDivergingSymlog:iq,scaleIdentity:kz,scaleImplicit:QC,scaleLinear:Ib,scaleLog:$z,scaleOrdinal:UP,scalePoint:Dp,scalePow:KP,scaleQuantile:Fz,scaleQuantize:zz,scaleRadial:Bz,scaleSequential:Qz,scaleSequentialLog:Jz,scaleSequentialPow:i3,scaleSequentialQuantile:tq,scaleSequentialSqrt:u0e,scaleSequentialSymlog:eq,scaleSqrt:Vye,scaleSymlog:Uz,scaleThreshold:qz,scaleTime:s0e,scaleUtc:l0e,tickFormat:Dz},Symbol.toStringTag,{value:"Module"}));var NS,G8;function v_(){if(G8)return NS;G8=1;var e=kd();function t(n,r,i){for(var a=-1,o=n.length;++a<o;){var l=n[a],f=r(l);if(f!=null&&(c===void 0?f===f&&!e(f):i(f,c)))var c=f,h=l}return h}return NS=t,NS}var LS,Y8;function aq(){if(Y8)return LS;Y8=1;function e(t,n){return t>n}return LS=e,LS}var DS,K8;function f0e(){if(K8)return DS;K8=1;var e=v_(),t=aq(),n=Ud();function r(i){return i&&i.length?e(i,n,t):void 0}return DS=r,DS}var d0e=f0e();const wl=Dt(d0e);var kS,Z8;function oq(){if(Z8)return kS;Z8=1;function e(t,n){return t<n}return kS=e,kS}var IS,X8;function h0e(){if(X8)return IS;X8=1;var e=v_(),t=oq(),n=Ud();function r(i){return i&&i.length?e(i,n,t):void 0}return IS=r,IS}var p0e=h0e();const g_=Dt(p0e);var $S,Q8;function m0e(){if(Q8)return $S;Q8=1;var e=wP(),t=vo(),n=pz(),r=ai();function i(a,o){var l=r(a)?e:n;return l(a,t(o,3))}return $S=i,$S}var US,J8;function v0e(){if(J8)return US;J8=1;var e=dz(),t=m0e();function n(r,i){return e(t(r,i),1)}return US=n,US}var g0e=v0e();const y0e=Dt(g0e);var BS,eI;function b0e(){if(eI)return BS;eI=1;var e=LP();function t(n,r){return e(n,r)}return BS=t,BS}var _0e=b0e();const Il=Dt(_0e);var Fd=1e9,x0e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s3,_n=!0,ra="[DecimalError] ",Xu=ra+"Invalid argument: ",o3=ra+"Exponent out of range: ",zd=Math.floor,ku=Math.pow,w0e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Si,or=1e7,pn=7,sq=9007199254740991,Fb=zd(sq/pn),et={};et.absoluteValue=et.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};et.comparedTo=et.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};et.decimalPlaces=et.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*pn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};et.dividedBy=et.div=function(e){return es(this,new this.constructor(e))};et.dividedToIntegerBy=et.idiv=function(e){var t=this,n=t.constructor;return en(es(t,new n(e),0,1),n.precision)};et.equals=et.eq=function(e){return!this.cmp(e)};et.exponent=function(){return qn(this)};et.greaterThan=et.gt=function(e){return this.cmp(e)>0};et.greaterThanOrEqualTo=et.gte=function(e){return this.cmp(e)>=0};et.isInteger=et.isint=function(){return this.e>this.d.length-2};et.isNegative=et.isneg=function(){return this.s<0};et.isPositive=et.ispos=function(){return this.s>0};et.isZero=function(){return this.s===0};et.lessThan=et.lt=function(e){return this.cmp(e)<0};et.lessThanOrEqualTo=et.lte=function(e){return this.cmp(e)<1};et.logarithm=et.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Si))throw Error(ra+"NaN");if(n.s<1)throw Error(ra+(n.s?"NaN":"-Infinity"));return n.eq(Si)?new r(0):(_n=!1,t=es(bm(n,a),bm(e,a),a),_n=!0,en(t,i))};et.minus=et.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cq(t,e):lq(t,(e.s=-e.s,e))};et.modulo=et.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ra+"NaN");return n.s?(_n=!1,t=es(n,e,0,1).times(e),_n=!0,n.minus(t)):en(new r(n),i)};et.naturalExponential=et.exp=function(){return uq(this)};et.naturalLogarithm=et.ln=function(){return bm(this)};et.negated=et.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};et.plus=et.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lq(t,e):cq(t,(e.s=-e.s,e))};et.precision=et.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Xu+e);if(t=qn(i)+1,r=i.d.length-1,n=r*pn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};et.squareRoot=et.sqrt=function(){var e,t,n,r,i,a,o,l=this,f=l.constructor;if(l.s<1){if(!l.s)return new f(0);throw Error(ra+"NaN")}for(e=qn(l),_n=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Ja(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zd((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(i.toString()),n=f.precision,i=o=n+3;;)if(a=r,r=a.plus(es(l,a,o+2)).times(.5),Ja(a.d).slice(0,o)===(t=Ja(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(en(a,n+1,0),a.times(a).eq(l)){r=a;break}}else if(t!="9999")break;o+=4}return _n=!0,en(r,n)};et.times=et.mul=function(e){var t,n,r,i,a,o,l,f,c,h=this,m=h.constructor,g=h.d,x=(e=new m(e)).d;if(!h.s||!e.s)return new m(0);for(e.s*=h.s,n=h.e+e.e,f=g.length,c=x.length,f<c&&(a=g,g=x,x=a,o=f,f=c,c=o),a=[],o=f+c,r=o;r--;)a.push(0);for(r=c;--r>=0;){for(t=0,i=f+r;i>r;)l=a[i]+x[r]*g[i-r-1]+t,a[i--]=l%or|0,t=l/or|0;a[i]=(a[i]+t)%or|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,_n?en(e,m.precision):e};et.toDecimalPlaces=et.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(lo(e,0,Fd),t===void 0?t=r.rounding:lo(t,0,8),en(n,e+qn(n)+1,t))};et.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=lc(r,!0):(lo(e,0,Fd),t===void 0?t=i.rounding:lo(t,0,8),r=en(new i(r),e+1,t),n=lc(r,!0,e+1)),n};et.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?lc(i):(lo(e,0,Fd),t===void 0?t=a.rounding:lo(t,0,8),r=en(new a(i),e+qn(i)+1,t),n=lc(r.abs(),!1,e+qn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};et.toInteger=et.toint=function(){var e=this,t=e.constructor;return en(new t(e),qn(e)+1,t.rounding)};et.toNumber=function(){return+this};et.toPower=et.pow=function(e){var t,n,r,i,a,o,l=this,f=l.constructor,c=12,h=+(e=new f(e));if(!e.s)return new f(Si);if(l=new f(l),!l.s){if(e.s<1)throw Error(ra+"Infinity");return l}if(l.eq(Si))return l;if(r=f.precision,e.eq(Si))return en(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=l.s,o){if((n=h<0?-h:h)<=sq){for(i=new f(Si),t=Math.ceil(r/pn+4),_n=!1;n%2&&(i=i.times(l),nI(i.d,t)),n=zd(n/2),n!==0;)l=l.times(l),nI(l.d,t);return _n=!0,e.s<0?new f(Si).div(i):en(i,r)}}else if(a<0)throw Error(ra+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,_n=!1,i=e.times(bm(l,r+c)),_n=!0,i=uq(i),i.s=a,i};et.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=qn(i),r=lc(i,n<=a.toExpNeg||n>=a.toExpPos)):(lo(e,1,Fd),t===void 0?t=a.rounding:lo(t,0,8),i=en(new a(i),e,t),n=qn(i),r=lc(i,e<=n||n<=a.toExpNeg,e)),r};et.toSignificantDigits=et.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(lo(e,1,Fd),t===void 0?t=r.rounding:lo(t,0,8)),en(new r(n),e,t)};et.toString=et.valueOf=et.val=et.toJSON=et[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=qn(e),n=e.constructor;return lc(e,t<=n.toExpNeg||t>=n.toExpPos)};function lq(e,t){var n,r,i,a,o,l,f,c,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),_n?en(t,m):t;if(f=e.d,c=t.d,o=e.e,i=t.e,f=f.slice(),a=o-i,a){for(a<0?(r=f,a=-a,l=c.length):(r=c,i=o,l=f.length),o=Math.ceil(m/pn),l=o>l?o+1:l+1,a>l&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(l=f.length,a=c.length,l-a<0&&(a=l,r=c,c=f,f=r),n=0;a;)n=(f[--a]=f[a]+c[a]+n)/or|0,f[a]%=or;for(n&&(f.unshift(n),++i),l=f.length;f[--l]==0;)f.pop();return t.d=f,t.e=i,_n?en(t,m):t}function lo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Xu+e)}function Ja(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=pn-r.length,n&&(a+=_l(n)),a+=r;o=e[t],r=o+"",n=pn-r.length,n&&(a+=_l(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var es=function(){function e(r,i){var a,o=0,l=r.length;for(r=r.slice();l--;)a=r[l]*i+o,r[l]=a%or|0,o=a/or|0;return o&&r.unshift(o),r}function t(r,i,a,o){var l,f;if(a!=o)f=a>o?1:-1;else for(l=f=0;l<a;l++)if(r[l]!=i[l]){f=r[l]>i[l]?1:-1;break}return f}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*or+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var l,f,c,h,m,g,x,_,w,O,S,T,A,j,P,R,D,U,z=r.constructor,F=r.s==i.s?1:-1,V=r.d,H=i.d;if(!r.s)return new z(r);if(!i.s)throw Error(ra+"Division by zero");for(f=r.e-i.e,D=H.length,P=V.length,x=new z(F),_=x.d=[],c=0;H[c]==(V[c]||0);)++c;if(H[c]>(V[c]||0)&&--f,a==null?T=a=z.precision:o?T=a+(qn(r)-qn(i))+1:T=a,T<0)return new z(0);if(T=T/pn+2|0,c=0,D==1)for(h=0,H=H[0],T++;(c<P||h)&&T--;c++)A=h*or+(V[c]||0),_[c]=A/H|0,h=A%H|0;else{for(h=or/(H[0]+1)|0,h>1&&(H=e(H,h),V=e(V,h),D=H.length,P=V.length),j=D,w=V.slice(0,D),O=w.length;O<D;)w[O++]=0;U=H.slice(),U.unshift(0),R=H[0],H[1]>=or/2&&++R;do h=0,l=t(H,w,D,O),l<0?(S=w[0],D!=O&&(S=S*or+(w[1]||0)),h=S/R|0,h>1?(h>=or&&(h=or-1),m=e(H,h),g=m.length,O=w.length,l=t(m,w,g,O),l==1&&(h--,n(m,D<g?U:H,g))):(h==0&&(l=h=1),m=H.slice()),g=m.length,g<O&&m.unshift(0),n(w,m,O),l==-1&&(O=w.length,l=t(H,w,D,O),l<1&&(h++,n(w,D<O?U:H,O))),O=w.length):l===0&&(h++,w=[0]),_[c++]=h,l&&w[0]?w[O++]=V[j]||0:(w=[V[j]],O=1);while((j++<P||w[0]!==void 0)&&T--)}return _[0]||_.shift(),x.e=f,en(x,o?a+qn(x)+1:a)}}();function uq(e,t){var n,r,i,a,o,l,f=0,c=0,h=e.constructor,m=h.precision;if(qn(e)>16)throw Error(o3+qn(e));if(!e.s)return new h(Si);for(_n=!1,l=m,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(r=Math.log(ku(2,c))/Math.LN10*2+5|0,l+=r,n=i=a=new h(Si),h.precision=l;;){if(i=en(i.times(e),l),n=n.times(++f),o=a.plus(es(i,n,l)),Ja(o.d).slice(0,l)===Ja(a.d).slice(0,l)){for(;c--;)a=en(a.times(a),l);return h.precision=m,t==null?(_n=!0,en(a,m)):a}a=o}}function qn(e){for(var t=e.e*pn,n=e.d[0];n>=10;n/=10)t++;return t}function FS(e,t,n){if(t>e.LN10.sd())throw _n=!0,n&&(e.precision=n),Error(ra+"LN10 precision limit exceeded");return en(new e(e.LN10),t)}function _l(e){for(var t="";e--;)t+="0";return t}function bm(e,t){var n,r,i,a,o,l,f,c,h,m=1,g=10,x=e,_=x.d,w=x.constructor,O=w.precision;if(x.s<1)throw Error(ra+(x.s?"NaN":"-Infinity"));if(x.eq(Si))return new w(0);if(t==null?(_n=!1,c=O):c=t,x.eq(10))return t==null&&(_n=!0),FS(w,c);if(c+=g,w.precision=c,n=Ja(_),r=n.charAt(0),a=qn(x),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=Ja(x.d),r=n.charAt(0),m++;a=qn(x),r>1?(x=new w("0."+n),a++):x=new w(r+"."+n.slice(1))}else return f=FS(w,c+2,O).times(a+""),x=bm(new w(r+"."+n.slice(1)),c-g).plus(f),w.precision=O,t==null?(_n=!0,en(x,O)):x;for(l=o=x=es(x.minus(Si),x.plus(Si),c),h=en(x.times(x),c),i=3;;){if(o=en(o.times(h),c),f=l.plus(es(o,new w(i),c)),Ja(f.d).slice(0,c)===Ja(l.d).slice(0,c))return l=l.times(2),a!==0&&(l=l.plus(FS(w,c+2,O).times(a+""))),l=es(l,new w(m),c),w.precision=O,t==null?(_n=!0,en(l,O)):l;l=f,i+=2}}function tI(e,t){var n,r,i;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(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=zd(n/pn),e.d=[],r=(n+1)%pn,n<0&&(r+=pn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=pn;r<i;)e.d.push(+t.slice(r,r+=pn));t=t.slice(r),r=pn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),_n&&(e.e>Fb||e.e<-Fb))throw Error(o3+n)}else e.s=0,e.e=0,e.d=[0];return e}function en(e,t,n){var r,i,a,o,l,f,c,h,m=e.d;for(o=1,a=m[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=pn,i=t,c=m[h=0];else{if(h=Math.ceil((r+1)/pn),a=m.length,h>=a)return e;for(c=a=m[h],o=1;a>=10;a/=10)o++;r%=pn,i=r-pn+o}if(n!==void 0&&(a=ku(10,o-i-1),l=c/a%10|0,f=t<0||m[h+1]!==void 0||c%a,f=n<4?(l||f)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||f||n==6&&(r>0?i>0?c/ku(10,o-i):0:m[h-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return f?(a=qn(e),m.length=1,t=t-a-1,m[0]=ku(10,(pn-t%pn)%pn),e.e=zd(-t/pn)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=h,a=1,h--):(m.length=h+1,a=ku(10,pn-r),m[h]=i>0?(c/ku(10,o-i)%ku(10,i)|0)*a:0),f)for(;;)if(h==0){(m[0]+=a)==or&&(m[0]=1,++e.e);break}else{if(m[h]+=a,m[h]!=or)break;m[h--]=0,a=1}for(r=m.length;m[--r]===0;)m.pop();if(_n&&(e.e>Fb||e.e<-Fb))throw Error(o3+qn(e));return e}function cq(e,t){var n,r,i,a,o,l,f,c,h,m,g=e.constructor,x=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),_n?en(t,x):t;if(f=e.d,m=t.d,r=t.e,c=e.e,f=f.slice(),o=c-r,o){for(h=o<0,h?(n=f,o=-o,l=m.length):(n=m,r=c,l=f.length),i=Math.max(Math.ceil(x/pn),l)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=f.length,l=m.length,h=i<l,h&&(l=i),i=0;i<l;i++)if(f[i]!=m[i]){h=f[i]<m[i];break}o=0}for(h&&(n=f,f=m,m=n,t.s=-t.s),l=f.length,i=m.length-l;i>0;--i)f[l++]=0;for(i=m.length;i>o;){if(f[--i]<m[i]){for(a=i;a&&f[--a]===0;)f[a]=or-1;--f[a],f[i]+=or}f[i]-=m[i]}for(;f[--l]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,_n?en(t,x):t):new g(0)}function lc(e,t,n){var r,i=qn(e),a=Ja(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+_l(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+_l(-i-1)+a,n&&(r=n-o)>0&&(a+=_l(r))):i>=o?(a+=_l(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+_l(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=_l(r))),e.s<0?"-"+a:a}function nI(e,t){if(e.length>t)return e.length=t,!0}function fq(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Xu+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return tI(o,a.toString())}else if(typeof a!="string")throw Error(Xu+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,w0e.test(a))tI(o,a);else throw Error(Xu+a)}if(i.prototype=et,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=fq,i.config=i.set=O0e,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 i.config(e),i}function O0e(e){if(!e||typeof e!="object")throw Error(ra+"Object expected");var t,n,r,i=["precision",1,Fd,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(zd(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Xu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Xu+n+": "+r);return this}var s3=fq(x0e);Si=new s3(1);const Kt=s3;function S0e(e){return A0e(e)||C0e(e)||T0e(e)||E0e()}function E0e(){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 T0e(e,t){if(e){if(typeof e=="string")return nA(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 nA(e,t)}}function C0e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function A0e(e){if(Array.isArray(e))return nA(e)}function nA(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 j0e=function(t){return t},dq={},hq=function(t){return t===dq},rI=function(t){return function n(){return arguments.length===0||arguments.length===1&&hq(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},P0e=function e(t,n){return t===1?n:rI(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i.filter(function(l){return l!==dq}).length;return o>=t?n.apply(void 0,i):e(t-o,rI(function(){for(var l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];var h=i.map(function(m){return hq(m)?f.shift():m});return n.apply(void 0,S0e(h).concat(f))}))})},y_=function(t){return P0e(t.length,t)},rA=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},R0e=y_(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),M0e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return j0e;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(l,f){return f(l)},a.apply(void 0,arguments))}},iA=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},pq=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n&&a.every(function(l,f){return l===n[f]})||(n=a,r=t.apply(void 0,a)),r}};function N0e(e){var t;return e===0?t=1:t=Math.floor(new Kt(e).abs().log(10).toNumber())+1,t}function L0e(e,t,n){for(var r=new Kt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var D0e=y_(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),k0e=y_(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),I0e=y_(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const b_={rangeStep:L0e,getDigitCount:N0e,interpolateNumber:D0e,uninterpolateNumber:k0e,uninterpolateTruncation:I0e};function aA(e){return B0e(e)||U0e(e)||mq(e)||$0e()}function $0e(){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 U0e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function B0e(e){if(Array.isArray(e))return oA(e)}function _m(e,t){return q0e(e)||z0e(e,t)||mq(e,t)||F0e()}function F0e(){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 mq(e,t){if(e){if(typeof e=="string")return oA(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 oA(e,t)}}function oA(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 z0e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,a=f}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function q0e(e){if(Array.isArray(e))return e}function vq(e){var t=_m(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function gq(e,t,n){if(e.lte(0))return new Kt(0);var r=b_.getDigitCount(e.toNumber()),i=new Kt(10).pow(r),a=e.div(i),o=r!==1?.05:.1,l=new Kt(Math.ceil(a.div(o).toNumber())).add(n).mul(o),f=l.mul(i);return t?f:new Kt(Math.ceil(f))}function V0e(e,t,n){var r=1,i=new Kt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Kt(10).pow(b_.getDigitCount(e)-1),i=new Kt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Kt(Math.floor(e)))}else e===0?i=new Kt(Math.floor((t-1)/2)):n||(i=new Kt(Math.floor(e)));var o=Math.floor((t-1)/2),l=M0e(R0e(function(f){return i.add(new Kt(f-o).mul(r)).toNumber()}),rA);return l(0,t)}function yq(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Kt(0),tickMin:new Kt(0),tickMax:new Kt(0)};var a=gq(new Kt(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Kt(0):(o=new Kt(e).add(t).div(2),o=o.sub(new Kt(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),f=Math.ceil(new Kt(t).sub(o).div(a).toNumber()),c=l+f+1;return c>n?yq(e,t,n,r,i+1):(c<n&&(f=t>0?f+(n-c):f,l=t>0?l:l+(n-c)),{step:a,tickMin:o.sub(new Kt(l).mul(a)),tickMax:o.add(new Kt(f).mul(a))})}function H0e(e){var t=_m(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=vq([n,r]),f=_m(l,2),c=f[0],h=f[1];if(c===-1/0||h===1/0){var m=h===1/0?[c].concat(aA(rA(0,i-1).map(function(){return 1/0}))):[].concat(aA(rA(0,i-1).map(function(){return-1/0})),[h]);return n>r?iA(m):m}if(c===h)return V0e(c,i,a);var g=yq(c,h,o,a),x=g.step,_=g.tickMin,w=g.tickMax,O=b_.rangeStep(_,w.add(new Kt(.1).mul(x)),x);return n>r?iA(O):O}function W0e(e,t){var n=_m(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=vq([r,i]),l=_m(o,2),f=l[0],c=l[1];if(f===-1/0||c===1/0)return[r,i];if(f===c)return[f];var h=Math.max(t,2),m=gq(new Kt(c).sub(f).div(h-1),a,0),g=[].concat(aA(b_.rangeStep(new Kt(f),new Kt(c).sub(new Kt(.99).mul(m)),m)),[c]);return r>i?iA(g):g}var G0e=pq(H0e),Y0e=pq(W0e),K0e="Invariant failed";function uc(e,t){throw new Error(K0e)}var Z0e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function od(e){"@babel/helpers - typeof";return od=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},od(e)}function zb(){return zb=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},zb.apply(this,arguments)}function X0e(e,t){return t_e(e)||e_e(e,t)||J0e(e,t)||Q0e()}function Q0e(){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 J0e(e,t){if(e){if(typeof e=="string")return iI(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 iI(e,t)}}function iI(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 e_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function t_e(e){if(Array.isArray(e))return e}function n_e(e,t){if(e==null)return{};var n=r_e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r_e(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 i_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a_e(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,xq(r.key),r)}}function o_e(e,t,n){return t&&a_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s_e(e,t,n){return t=qb(t),l_e(e,bq()?Reflect.construct(t,n||[],qb(e).constructor):t.apply(e,n))}function l_e(e,t){if(t&&(od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u_e(e)}function u_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bq=function(){return!!e})()}function qb(e){return qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qb(e)}function c_e(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&&sA(e,t)}function sA(e,t){return sA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sA(e,t)}function _q(e,t,n){return t=xq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xq(e){var t=f_e(e,"string");return od(t)=="symbol"?t:t+""}function f_e(e,t){if(od(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(od(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qd=function(e){function t(){return i_e(this,t),s_e(this,t,arguments)}return c_e(t,e),o_e(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,o=r.width,l=r.dataKey,f=r.data,c=r.dataPointFormatter,h=r.xAxis,m=r.yAxis,g=n_e(r,Z0e),x=it(g,!1);this.props.direction==="x"&&h.type!=="number"&&uc();var _=f.map(function(w){var O=c(w,l),S=O.x,T=O.y,A=O.value,j=O.errorVal;if(!j)return null;var P=[],R,D;if(Array.isArray(j)){var U=X0e(j,2);R=U[0],D=U[1]}else R=D=j;if(a==="vertical"){var z=h.scale,F=T+i,V=F+o,H=F-o,te=z(A-R),ee=z(A+D);P.push({x1:ee,y1:V,x2:ee,y2:H}),P.push({x1:te,y1:F,x2:ee,y2:F}),P.push({x1:te,y1:V,x2:te,y2:H})}else if(a==="horizontal"){var re=m.scale,Q=S+i,oe=Q-o,le=Q+o,X=re(A-R),$=re(A+D);P.push({x1:oe,y1:$,x2:le,y2:$}),P.push({x1:Q,y1:X,x2:Q,y2:$}),P.push({x1:oe,y1:X,x2:le,y2:X})}return J.createElement(wt,zb({className:"recharts-errorBar",key:"bar-".concat(P.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},x),P.map(function(G){return J.createElement("line",zb({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return J.createElement(wt,{className:"recharts-errorBars"},_)}}])}(J.Component);_q(qd,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});_q(qd,"displayName","ErrorBar");function xm(e){"@babel/helpers - typeof";return xm=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},xm(e)}function aI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aI(Object(n),!0).forEach(function(r){d_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d_e(e,t,n){return t=h_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h_e(e){var t=p_e(e,"string");return xm(t)=="symbol"?t:t+""}function p_e(e,t){if(xm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wq=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Oi(n,$f);if(!o)return null;var l=$f.defaultProps,f=l!==void 0?Tu(Tu({},l),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(r||[]).reduce(function(h,m){var g=m.item,x=m.props,_=x.sectors||x.data||[];return h.concat(_.map(function(w){return{type:o.props.iconType||g.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):c=(r||[]).map(function(h){var m=h.item,g=m.type.defaultProps,x=g!==void 0?Tu(Tu({},g),m.props):{},_=x.dataKey,w=x.name,O=x.legendType,S=x.hide;return{inactive:S,dataKey:_,type:f.iconType||O||"square",color:l3(m),value:w||_,payload:x}}),Tu(Tu(Tu({},f),$f.getWithHeight(o,i)),{},{payload:c,item:o})};function wm(e){"@babel/helpers - typeof";return wm=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},wm(e)}function oI(e){return y_e(e)||g_e(e)||v_e(e)||m_e()}function m_e(){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 v_e(e,t){if(e){if(typeof e=="string")return lA(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 lA(e,t)}}function g_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function y_e(e){if(Array.isArray(e))return lA(e)}function lA(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 sI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sI(Object(n),!0).forEach(function(r){Bf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bf(e,t,n){return t=b_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_e(e){var t=__e(e,"string");return wm(t)=="symbol"?t:t+""}function __e(e,t){if(wm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mn(e,t,n){return ft(e)||ft(t)?n:Kn(t)?Ti(e,t,n):ct(t)?t(e):n}function kp(e,t,n,r){var i=y0e(e,function(l){return mn(l,t)});if(n==="number"){var a=i.filter(function(l){return We(l)||parseFloat(l)});return a.length?[g_(a),wl(a)]:[1/0,-1/0]}var o=r?i.filter(function(l){return!ft(l)}):i;return o.map(function(l){return Kn(l)||l instanceof Date?l:""})}var x_e=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var f=a.range,c=0;c<l;c++){var h=c>0?i[c-1].coordinate:i[l-1].coordinate,m=i[c].coordinate,g=c>=l-1?i[0].coordinate:i[c+1].coordinate,x=void 0;if(Ur(m-h)!==Ur(g-m)){var _=[];if(Ur(g-m)===Ur(f[1]-f[0])){x=g;var w=m+f[1]-f[0];_[0]=Math.min(w,(w+h)/2),_[1]=Math.max(w,(w+h)/2)}else{x=h;var O=g+f[1]-f[0];_[0]=Math.min(m,(O+m)/2),_[1]=Math.max(m,(O+m)/2)}var S=[Math.min(m,(x+m)/2),Math.max(m,(x+m)/2)];if(t>S[0]&&t<=S[1]||t>=_[0]&&t<=_[1]){o=i[c].index;break}}else{var T=Math.min(h,g),A=Math.max(h,g);if(t>(T+m)/2&&t<=(A+m)/2){o=i[c].index;break}}}else for(var j=0;j<l;j++)if(j===0&&t<=(r[j].coordinate+r[j+1].coordinate)/2||j>0&&j<l-1&&t>(r[j].coordinate+r[j-1].coordinate)/2&&t<=(r[j].coordinate+r[j+1].coordinate)/2||j===l-1&&t>(r[j].coordinate+r[j-1].coordinate)/2){o=r[j].index;break}return o},l3=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Rn(Rn({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,f;switch(i){case"Line":f=o;break;case"Area":case"Radar":f=o&&o!=="none"?o:l;break;default:f=l;break}return f},w_e=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),f=0,c=l.length;f<c;f++)for(var h=a[l[f]].stackGroups,m=Object.keys(h),g=0,x=m.length;g<x;g++){var _=h[m[g]],w=_.items,O=_.cateAxisId,S=w.filter(function(D){return Jo(D.type).indexOf("Bar")>=0});if(S&&S.length){var T=S[0].type.defaultProps,A=T!==void 0?Rn(Rn({},T),S[0].props):S[0].props,j=A.barSize,P=A[O];o[P]||(o[P]=[]);var R=ft(j)?n:j;o[P].push({item:S[0],stackList:S.slice(1),barSize:ft(R)?void 0:Br(R,r,0)})}}return o},O_e=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,f=o.length;if(f<1)return null;var c=Br(n,i,0,!0),h,m=[];if(o[0].barSize===+o[0].barSize){var g=!1,x=i/f,_=o.reduce(function(j,P){return j+P.barSize||0},0);_+=(f-1)*c,_>=i&&(_-=(f-1)*c,c=0),_>=i&&x>0&&(g=!0,x*=.9,_=f*x);var w=(i-_)/2>>0,O={offset:w-c,size:0};h=o.reduce(function(j,P){var R={item:P.item,position:{offset:O.offset+O.size+c,size:g?x:P.barSize}},D=[].concat(oI(j),[R]);return O=D[D.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(U){D.push({item:U,position:O})}),D},m)}else{var S=Br(r,i,0,!0);i-2*S-(f-1)*c<=0&&(c=0);var T=(i-2*S-(f-1)*c)/f;T>1&&(T>>=0);var A=l===+l?Math.min(T,l):T;h=o.reduce(function(j,P,R){var D=[].concat(oI(j),[{item:P.item,position:{offset:S+(T+c)*R+(T-A)/2,size:A}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(U){D.push({item:U,position:D[D.length-1].position})}),D},m)}return h},S_e=function(t,n,r,i){var a=r.children,o=r.width,l=r.margin,f=o-(l.left||0)-(l.right||0),c=wq({children:a,legendWidth:f});if(c){var h=i||{},m=h.width,g=h.height,x=c.align,_=c.verticalAlign,w=c.layout;if((w==="vertical"||w==="horizontal"&&_==="middle")&&x!=="center"&&We(t[x]))return Rn(Rn({},t),{},Bf({},x,t[x]+(m||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&_!=="middle"&&We(t[_]))return Rn(Rn({},t),{},Bf({},_,t[_]+(g||0)))}return t},E_e=function(t,n,r){return ft(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Oq=function(t,n,r,i,a){var o=n.props.children,l=Vr(o,qd).filter(function(c){return E_e(i,a,c.props.direction)});if(l&&l.length){var f=l.map(function(c){return c.props.dataKey});return t.reduce(function(c,h){var m=mn(h,r);if(ft(m))return c;var g=Array.isArray(m)?[g_(m),wl(m)]:[m,m],x=f.reduce(function(_,w){var O=mn(h,w,0),S=g[0]-Math.abs(Array.isArray(O)?O[0]:O),T=g[1]+Math.abs(Array.isArray(O)?O[1]:O);return[Math.min(S,_[0]),Math.max(T,_[1])]},[1/0,-1/0]);return[Math.min(x[0],c[0]),Math.max(x[1],c[1])]},[1/0,-1/0])}return null},T_e=function(t,n,r,i,a){var o=n.map(function(l){return Oq(t,l,r,a,i)}).filter(function(l){return!ft(l)});return o&&o.length?o.reduce(function(l,f){return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]):null},Sq=function(t,n,r,i,a){var o=n.map(function(f){var c=f.props.dataKey;return r==="number"&&c&&Oq(t,f,c,i)||kp(t,c,r,a)});if(r==="number")return o.reduce(function(f,c){return[Math.min(f[0],c[0]),Math.max(f[1],c[1])]},[1/0,-1/0]);var l={};return o.reduce(function(f,c){for(var h=0,m=c.length;h<m;h++)l[c[h]]||(l[c[h]]=!0,f.push(c[h]));return f},[])},Eq=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Tq=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var a,o,l=t.map(function(f){return f.coordinate===n&&(a=!0),f.coordinate===r&&(o=!0),f.coordinate});return a||l.push(n),o||l.push(r),l},Zo=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/f:0;if(c=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Ur(l[0]-l[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(m){var g=a?a.indexOf(m):m;return{coordinate:i(g)+c,value:m,offset:c}});return h.filter(function(m){return!$d(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,g){return{coordinate:i(m)+c,value:m,index:g,offset:c}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(m){return{coordinate:i(m)+c,value:m,offset:c}}):i.domain().map(function(m,g){return{coordinate:i(m)+c,value:a?a[m]:m,index:g,offset:c}})},zS=new WeakMap,oy=function(t,n){if(typeof n!="function")return t;zS.has(t)||zS.set(t,new WeakMap);var r=zS.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},Cq=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:pm(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:Ib(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Dp(),realScaleType:"point"}:a==="category"?{scale:pm(),realScaleType:"band"}:{scale:Ib(),realScaleType:"linear"};if(uv(i)){var f="scale".concat(n_(i));return{scale:(W8[f]||Dp)(),realScaleType:W8[f]?f:"point"}}return ct(i)?{scale:i}:{scale:Dp(),realScaleType:"point"}},lI=1e-4,Aq=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-lI,o=Math.max(i[0],i[1])+lI,l=t(n[0]),f=t(n[r-1]);(l<a||l>o||f<a||f>o)&&t.domain([n[0],n[r-1]])}},C_e=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},A_e=function(t,n){if(!n||n.length!==2||!We(n[0])||!We(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),a=[t[0],t[1]];return(!We(t[0])||t[0]<r)&&(a[0]=r),(!We(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<r&&(a[1]=r),a},j_e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0,l=0;l<n;++l){var f=$d(t[l][r][1])?t[l][r][0]:t[l][r][1];f>=0?(t[l][r][0]=a,t[l][r][1]=a+f,a=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+f,o=t[l][r][1])}},P_e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0;o<n;++o){var l=$d(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=a,t[o][r][1]=a+l,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},R_e={sign:j_e,expand:gpe,none:Qf,silhouette:ype,wiggle:bpe,positive:P_e},M_e=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),a=R_e[r],o=vpe().keys(i).value(function(l,f){return+mn(l,f,0)}).order($C).offset(a);return o(t)},N_e=function(t,n,r,i,a,o){if(!t)return null;var l=o?n.reverse():n,f={},c=l.reduce(function(m,g){var x,_=(x=g.type)!==null&&x!==void 0&&x.defaultProps?Rn(Rn({},g.type.defaultProps),g.props):g.props,w=_.stackId,O=_.hide;if(O)return m;var S=_[r],T=m[S]||{hasStack:!1,stackGroups:{}};if(Kn(w)){var A=T.stackGroups[w]||{numericAxisId:r,cateAxisId:i,items:[]};A.items.push(g),T.hasStack=!0,T.stackGroups[w]=A}else T.stackGroups[Wl("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[g]};return Rn(Rn({},m),{},Bf({},S,T))},f),h={};return Object.keys(c).reduce(function(m,g){var x=c[g];if(x.hasStack){var _={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(w,O){var S=x.stackGroups[O];return Rn(Rn({},w),{},Bf({},O,{numericAxisId:r,cateAxisId:i,items:S.items,stackedData:M_e(t,S.items,a)}))},_)}return Rn(Rn({},m),{},Bf({},g,x))},h)},jq=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,l=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var h=G0e(c,a,l);return t.domain([g_(h),wl(h)]),{niceTicks:h}}if(a&&i==="number"){var m=t.domain(),g=Y0e(m,a,l);return{niceTicks:g}}return null};function sd(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ft(i[t.dataKey])){var l=bb(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var f=mn(i,ft(o)?t.dataKey:o);return ft(f)?null:t.scale(f)}var uI=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var f=mn(o,n.dataKey,n.domain[l]);return ft(f)?null:n.scale(f)-a/2+i},L_e=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},D_e=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Rn(Rn({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Kn(a)){var o=n[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},k_e=function(t){return t.reduce(function(n,r){return[g_(r.concat([n[0]]).filter(We)),wl(r.concat([n[1]]).filter(We))]},[1/0,-1/0])},Pq=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,f=l.reduce(function(c,h){var m=k_e(h.slice(n,r+1));return[Math.min(c[0],m[0]),Math.max(c[1],m[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},cI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uA=function(t,n,r){if(ct(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(We(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(cI.test(t[0])){var a=+cI.exec(t[0])[1];i[0]=n[0]-a}else ct(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(We(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(fI.test(t[1])){var o=+fI.exec(t[1])[1];i[1]=n[1]+o}else ct(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Vb=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=kP(n,function(m){return m.coordinate}),o=1/0,l=1,f=a.length;l<f;l++){var c=a[l],h=a[l-1];o=Math.min((c.coordinate||0)-(h.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},dI=function(t,n,r){return!t||!t.length||Il(t,Ti(r,"type.defaultProps.domain"))?n:t},Rq=function(t,n){var r=t.type.defaultProps?Rn(Rn({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,o=r.unit,l=r.formatter,f=r.tooltipType,c=r.chartType,h=r.hide;return Rn(Rn({},it(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:l3(t),value:mn(n,i),type:f,payload:n,chartType:c,hide:h})};function Om(e){"@babel/helpers - typeof";return Om=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},Om(e)}function hI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hI(Object(n),!0).forEach(function(r){Mq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mq(e,t,n){return t=I_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I_e(e){var t=$_e(e,"string");return Om(t)=="symbol"?t:t+""}function $_e(e,t){if(Om(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Om(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U_e(e,t){return q_e(e)||z_e(e,t)||F_e(e,t)||B_e()}function B_e(){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 F_e(e,t){if(e){if(typeof e=="string")return pI(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 pI(e,t)}}function pI(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 z_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function q_e(e){if(Array.isArray(e))return e}var Hb=Math.PI/180,V_e=function(t){return t*180/Math.PI},dn=function(t,n,r,i){return{x:t+Math.cos(-Hb*i)*r,y:n+Math.sin(-Hb*i)*r}},Nq=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},H_e=function(t,n,r,i,a){var o=t.width,l=t.height,f=t.startAngle,c=t.endAngle,h=Br(t.cx,o,o/2),m=Br(t.cy,l,l/2),g=Nq(o,l,r),x=Br(t.innerRadius,g,0),_=Br(t.outerRadius,g,g*.8),w=Object.keys(n);return w.reduce(function(O,S){var T=n[S],A=T.domain,j=T.reversed,P;if(ft(T.range))i==="angleAxis"?P=[f,c]:i==="radiusAxis"&&(P=[x,_]),j&&(P=[P[1],P[0]]);else{P=T.range;var R=P,D=U_e(R,2);f=D[0],c=D[1]}var U=Cq(T,a),z=U.realScaleType,F=U.scale;F.domain(A).range(P),Aq(F);var V=jq(F,Go(Go({},T),{},{realScaleType:z})),H=Go(Go(Go({},T),V),{},{range:P,radius:_,realScaleType:z,scale:F,cx:h,cy:m,innerRadius:x,outerRadius:_,startAngle:f,endAngle:c});return Go(Go({},O),{},Mq({},S,H))},{})},W_e=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-o,2))},G_e=function(t,n){var r=t.x,i=t.y,a=n.cx,o=n.cy,l=W_e({x:r,y:i},{x:a,y:o});if(l<=0)return{radius:l};var f=(r-a)/l,c=Math.acos(f);return i>o&&(c=2*Math.PI-c),{radius:l,angle:V_e(c),angleInRadian:c}},Y_e=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},K_e=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},mI=function(t,n){var r=t.x,i=t.y,a=G_e({x:r,y:i},n),o=a.radius,l=a.angle,f=n.innerRadius,c=n.outerRadius;if(o<f||o>c)return!1;if(o===0)return!0;var h=Y_e(n),m=h.startAngle,g=h.endAngle,x=l,_;if(m<=g){for(;x>g;)x-=360;for(;x<m;)x+=360;_=x>=m&&x<=g}else{for(;x>m;)x-=360;for(;x<g;)x+=360;_=x>=g&&x<=m}return _?Go(Go({},n),{},{radius:o,angle:K_e(x,n)}):null},Lq=function(t){return!I.isValidElement(t)&&!ct(t)&&typeof t!="boolean"?t.className:""};function Sm(e){"@babel/helpers - typeof";return Sm=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},Sm(e)}var Z_e=["offset"];function X_e(e){return t1e(e)||e1e(e)||J_e(e)||Q_e()}function Q_e(){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 J_e(e,t){if(e){if(typeof e=="string")return cA(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 cA(e,t)}}function e1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t1e(e){if(Array.isArray(e))return cA(e)}function cA(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 n1e(e,t){if(e==null)return{};var n=r1e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(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 vI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vI(Object(n),!0).forEach(function(r){i1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i1e(e,t,n){return t=a1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a1e(e){var t=o1e(e,"string");return Sm(t)=="symbol"?t:t+""}function o1e(e,t){if(Sm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Em(){return Em=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},Em.apply(this,arguments)}var s1e=function(t){var n=t.value,r=t.formatter,i=ft(t.children)?n:t.children;return ct(r)?r(i):i},l1e=function(t,n){var r=Ur(n-t),i=Math.min(Math.abs(n-t),360);return r*i},u1e=function(t,n,r){var i=t.position,a=t.viewBox,o=t.offset,l=t.className,f=a,c=f.cx,h=f.cy,m=f.innerRadius,g=f.outerRadius,x=f.startAngle,_=f.endAngle,w=f.clockWise,O=(m+g)/2,S=l1e(x,_),T=S>=0?1:-1,A,j;i==="insideStart"?(A=x+T*o,j=w):i==="insideEnd"?(A=_-T*o,j=!w):i==="end"&&(A=_+T*o,j=w),j=S<=0?j:!j;var P=dn(c,h,O,A),R=dn(c,h,O,A+(j?1:-1)*359),D="M".concat(P.x,",").concat(P.y,`
A`).concat(O,",").concat(O,",0,1,").concat(j?0:1,`,
`).concat(R.x,",").concat(R.y),U=ft(t.id)?Wl("recharts-radial-line-"):t.id;return J.createElement("text",Em({},r,{dominantBaseline:"central",className:Ve("recharts-radial-bar-label",l)}),J.createElement("defs",null,J.createElement("path",{id:U,d:D})),J.createElement("textPath",{xlinkHref:"#".concat(U)},n))},c1e=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,l=a.cy,f=a.innerRadius,c=a.outerRadius,h=a.startAngle,m=a.endAngle,g=(h+m)/2;if(i==="outside"){var x=dn(o,l,c+r,g),_=x.x,w=x.y;return{x:_,y:w,textAnchor:_>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var O=(f+c)/2,S=dn(o,l,O,g),T=S.x,A=S.y;return{x:T,y:A,textAnchor:"middle",verticalAnchor:"middle"}},f1e=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,l=o.x,f=o.y,c=o.width,h=o.height,m=h>=0?1:-1,g=m*i,x=m>0?"end":"start",_=m>0?"start":"end",w=c>=0?1:-1,O=w*i,S=w>0?"end":"start",T=w>0?"start":"end";if(a==="top"){var A={x:l+c/2,y:f-m*i,textAnchor:"middle",verticalAnchor:x};return Yn(Yn({},A),r?{height:Math.max(f-r.y,0),width:c}:{})}if(a==="bottom"){var j={x:l+c/2,y:f+h+g,textAnchor:"middle",verticalAnchor:_};return Yn(Yn({},j),r?{height:Math.max(r.y+r.height-(f+h),0),width:c}:{})}if(a==="left"){var P={x:l-O,y:f+h/2,textAnchor:S,verticalAnchor:"middle"};return Yn(Yn({},P),r?{width:Math.max(P.x-r.x,0),height:h}:{})}if(a==="right"){var R={x:l+c+O,y:f+h/2,textAnchor:T,verticalAnchor:"middle"};return Yn(Yn({},R),r?{width:Math.max(r.x+r.width-R.x,0),height:h}:{})}var D=r?{width:c,height:h}:{};return a==="insideLeft"?Yn({x:l+O,y:f+h/2,textAnchor:T,verticalAnchor:"middle"},D):a==="insideRight"?Yn({x:l+c-O,y:f+h/2,textAnchor:S,verticalAnchor:"middle"},D):a==="insideTop"?Yn({x:l+c/2,y:f+g,textAnchor:"middle",verticalAnchor:_},D):a==="insideBottom"?Yn({x:l+c/2,y:f+h-g,textAnchor:"middle",verticalAnchor:x},D):a==="insideTopLeft"?Yn({x:l+O,y:f+g,textAnchor:T,verticalAnchor:_},D):a==="insideTopRight"?Yn({x:l+c-O,y:f+g,textAnchor:S,verticalAnchor:_},D):a==="insideBottomLeft"?Yn({x:l+O,y:f+h-g,textAnchor:T,verticalAnchor:x},D):a==="insideBottomRight"?Yn({x:l+c-O,y:f+h-g,textAnchor:S,verticalAnchor:x},D):Id(a)&&(We(a.x)||Fu(a.x))&&(We(a.y)||Fu(a.y))?Yn({x:l+Br(a.x,c),y:f+Br(a.y,h),textAnchor:"end",verticalAnchor:"end"},D):Yn({x:l+c/2,y:f+h/2,textAnchor:"middle",verticalAnchor:"middle"},D)},d1e=function(t){return"cx"in t&&We(t.cx)};function lr(e){var t=e.offset,n=t===void 0?5:t,r=n1e(e,Z_e),i=Yn({offset:n},r),a=i.viewBox,o=i.position,l=i.value,f=i.children,c=i.content,h=i.className,m=h===void 0?"":h,g=i.textBreakAll;if(!a||ft(l)&&ft(f)&&!I.isValidElement(c)&&!ct(c))return null;if(I.isValidElement(c))return I.cloneElement(c,i);var x;if(ct(c)){if(x=I.createElement(c,i),I.isValidElement(x))return x}else x=s1e(i);var _=d1e(a),w=it(i,!0);if(_&&(o==="insideStart"||o==="insideEnd"||o==="end"))return u1e(i,x,w);var O=_?c1e(i):f1e(i);return J.createElement(sc,Em({className:Ve("recharts-label",m)},w,O,{breakAll:g}),x)}lr.displayName="Label";var Dq=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,f=t.radius,c=t.innerRadius,h=t.outerRadius,m=t.x,g=t.y,x=t.top,_=t.left,w=t.width,O=t.height,S=t.clockWise,T=t.labelViewBox;if(T)return T;if(We(w)&&We(O)){if(We(m)&&We(g))return{x:m,y:g,width:w,height:O};if(We(x)&&We(_))return{x,y:_,width:w,height:O}}return We(m)&&We(g)?{x:m,y:g,width:0,height:0}:We(n)&&We(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:h||f||l||0,clockWise:S}:t.viewBox?t.viewBox:{}},h1e=function(t,n){return t?t===!0?J.createElement(lr,{key:"label-implicit",viewBox:n}):Kn(t)?J.createElement(lr,{key:"label-implicit",viewBox:n,value:t}):I.isValidElement(t)?t.type===lr?I.cloneElement(t,{key:"label-implicit",viewBox:n}):J.createElement(lr,{key:"label-implicit",content:t,viewBox:n}):ct(t)?J.createElement(lr,{key:"label-implicit",content:t,viewBox:n}):Id(t)?J.createElement(lr,Em({viewBox:n},t,{key:"label-implicit"})):null:null},p1e=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 i=t.children,a=Dq(t),o=Vr(i,lr).map(function(f,c){return I.cloneElement(f,{viewBox:n||a,key:"label-".concat(c)})});if(!r)return o;var l=h1e(t.label,n||a);return[l].concat(X_e(o))};lr.parseViewBox=Dq;lr.renderCallByParent=p1e;var qS,gI;function m1e(){if(gI)return qS;gI=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return qS=e,qS}var v1e=m1e();const g1e=Dt(v1e);function Tm(e){"@babel/helpers - typeof";return Tm=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},Tm(e)}var y1e=["valueAccessor"],b1e=["data","dataKey","clockWise","id","textBreakAll"];function _1e(e){return S1e(e)||O1e(e)||w1e(e)||x1e()}function x1e(){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 w1e(e,t){if(e){if(typeof e=="string")return fA(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 fA(e,t)}}function O1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S1e(e){if(Array.isArray(e))return fA(e)}function fA(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 Wb(){return Wb=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},Wb.apply(this,arguments)}function yI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yI(Object(n),!0).forEach(function(r){E1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E1e(e,t,n){return t=T1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T1e(e){var t=C1e(e,"string");return Tm(t)=="symbol"?t:t+""}function C1e(e,t){if(Tm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _I(e,t){if(e==null)return{};var n=A1e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function A1e(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 j1e=function(t){return Array.isArray(t.value)?g1e(t.value):t.value};function xa(e){var t=e.valueAccessor,n=t===void 0?j1e:t,r=_I(e,y1e),i=r.data,a=r.dataKey,o=r.clockWise,l=r.id,f=r.textBreakAll,c=_I(r,b1e);return!i||!i.length?null:J.createElement(wt,{className:"recharts-label-list"},i.map(function(h,m){var g=ft(a)?n(h,m):mn(h&&h.payload,a),x=ft(l)?{}:{id:"".concat(l,"-").concat(m)};return J.createElement(lr,Wb({},it(h,!0),c,x,{parentViewBox:h.parentViewBox,value:g,textBreakAll:f,viewBox:lr.parseViewBox(ft(o)?h:bI(bI({},h),{},{clockWise:o})),key:"label-".concat(m),index:m}))}))}xa.displayName="LabelList";function P1e(e,t){return e?e===!0?J.createElement(xa,{key:"labelList-implicit",data:t}):J.isValidElement(e)||ct(e)?J.createElement(xa,{key:"labelList-implicit",data:t,content:e}):Id(e)?J.createElement(xa,Wb({data:t},e,{key:"labelList-implicit"})):null:null}function R1e(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,i=Vr(r,xa).map(function(o,l){return I.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var a=P1e(e.label,t);return[a].concat(_1e(i))}xa.renderCallByParent=R1e;function Cm(e){"@babel/helpers - typeof";return Cm=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},Cm(e)}function dA(){return dA=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},dA.apply(this,arguments)}function xI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xI(Object(n),!0).forEach(function(r){M1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M1e(e,t,n){return t=N1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N1e(e){var t=L1e(e,"string");return Cm(t)=="symbol"?t:t+""}function L1e(e,t){if(Cm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D1e=function(t,n){var r=Ur(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},sy=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,o=t.sign,l=t.isExternal,f=t.cornerRadius,c=t.cornerIsExternal,h=f*(l?1:-1)+i,m=Math.asin(f/h)/Hb,g=c?a:a+o*m,x=dn(n,r,h,g),_=dn(n,r,i,g),w=c?a-o*m:a,O=dn(n,r,h*Math.cos(m*Hb),w);return{center:x,circleTangency:_,lineTangency:O,theta:m}},kq=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,l=t.endAngle,f=D1e(o,l),c=o+f,h=dn(n,r,a,o),m=dn(n,r,a,c),g="M ".concat(h.x,",").concat(h.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(o>c),`,
`).concat(m.x,",").concat(m.y,`
`);if(i>0){var x=dn(n,r,i,o),_=dn(n,r,i,c);g+="L ".concat(_.x,",").concat(_.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(o<=c),`,
`).concat(x.x,",").concat(x.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},k1e=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,f=t.cornerIsExternal,c=t.startAngle,h=t.endAngle,m=Ur(h-c),g=sy({cx:n,cy:r,radius:a,angle:c,sign:m,cornerRadius:o,cornerIsExternal:f}),x=g.circleTangency,_=g.lineTangency,w=g.theta,O=sy({cx:n,cy:r,radius:a,angle:h,sign:-m,cornerRadius:o,cornerIsExternal:f}),S=O.circleTangency,T=O.lineTangency,A=O.theta,j=f?Math.abs(c-h):Math.abs(c-h)-w-A;if(j<0)return l?"M ".concat(_.x,",").concat(_.y,`
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
`):kq({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:c,endAngle:h});var P="M ".concat(_.x,",").concat(_.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,`
A`).concat(a,",").concat(a,",0,").concat(+(j>180),",").concat(+(m<0),",").concat(S.x,",").concat(S.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(T.x,",").concat(T.y,`
`);if(i>0){var R=sy({cx:n,cy:r,radius:i,angle:c,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),D=R.circleTangency,U=R.lineTangency,z=R.theta,F=sy({cx:n,cy:r,radius:i,angle:h,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),V=F.circleTangency,H=F.lineTangency,te=F.theta,ee=f?Math.abs(c-h):Math.abs(c-h)-z-te;if(ee<0&&o===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(H.x,",").concat(H.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(V.x,",").concat(V.y,`
A`).concat(i,",").concat(i,",0,").concat(+(ee>180),",").concat(+(m>0),",").concat(D.x,",").concat(D.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(U.x,",").concat(U.y,"Z")}else P+="L".concat(n,",").concat(r,"Z");return P},I1e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Iq=function(t){var n=wI(wI({},I1e),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,f=n.forceCornerRadius,c=n.cornerIsExternal,h=n.startAngle,m=n.endAngle,g=n.className;if(o<a||h===m)return null;var x=Ve("recharts-sector",g),_=o-a,w=Br(l,_,0,!0),O;return w>0&&Math.abs(h-m)<360?O=k1e({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(w,_/2),forceCornerRadius:f,cornerIsExternal:c,startAngle:h,endAngle:m}):O=kq({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m}),J.createElement("path",dA({},it(n,!0),{className:x,d:O,role:"img"}))};function Am(e){"@babel/helpers - typeof";return Am=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},Am(e)}function hA(){return hA=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},hA.apply(this,arguments)}function OI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OI(Object(n),!0).forEach(function(r){$1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $1e(e,t,n){return t=U1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U1e(e){var t=B1e(e,"string");return Am(t)=="symbol"?t:t+""}function B1e(e,t){if(Am(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Am(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EI={curveBasisClosed:ape,curveBasisOpen:ope,curveBasis:ipe,curveBumpX:Vhe,curveBumpY:Hhe,curveLinearClosed:spe,curveLinear:i_,curveMonotoneX:lpe,curveMonotoneY:upe,curveNatural:cpe,curveStep:fpe,curveStepAfter:hpe,curveStepBefore:dpe},ly=function(t){return t.x===+t.x&&t.y===+t.y},up=function(t){return t.x},cp=function(t){return t.y},F1e=function(t,n){if(ct(t))return t;var r="curve".concat(n_(t));return(r==="curveMonotone"||r==="curveBump")&&n?EI["".concat(r).concat(n==="vertical"?"Y":"X")]:EI[r]||i_},z1e=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,o=t.baseLine,l=t.layout,f=t.connectNulls,c=f===void 0?!1:f,h=F1e(r,l),m=c?a.filter(function(w){return ly(w)}):a,g;if(Array.isArray(o)){var x=c?o.filter(function(w){return ly(w)}):o,_=m.map(function(w,O){return SI(SI({},w),{},{base:x[O]})});return l==="vertical"?g=Jg().y(cp).x1(up).x0(function(w){return w.base.x}):g=Jg().x(up).y1(cp).y0(function(w){return w.base.y}),g.defined(ly).curve(h),g(_)}return l==="vertical"&&We(o)?g=Jg().y(cp).x1(up).x0(o):We(o)?g=Jg().x(up).y1(cp).y0(o):g=DF().x(up).y(cp),g.defined(ly).curve(h),g(m)},jl=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?z1e(t):i;return J.createElement("path",hA({},it(t,!1),_b(t),{className:Ve("recharts-curve",n),d:o,ref:a}))},q1e=Object.getOwnPropertyNames,V1e=Object.getOwnPropertySymbols,H1e=Object.prototype.hasOwnProperty;function TI(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function uy(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var a=i.cache,o=a.get(n),l=a.get(r);if(o&&l)return o===r&&l===n;a.set(n,r),a.set(r,n);var f=e(n,r,i);return a.delete(n),a.delete(r),f}}function CI(e){return q1e(e).concat(V1e(e))}var W1e=Object.hasOwn||function(e,t){return H1e.call(e,t)};function gc(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var G1e="__v",Y1e="__o",K1e="_owner",AI=Object.getOwnPropertyDescriptor,jI=Object.keys;function Z1e(e,t,n){var 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 X1e(e,t){return gc(e.getTime(),t.getTime())}function Q1e(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function J1e(e,t){return e===t}function PI(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.entries(),o,l,f=0;(o=a.next())&&!o.done;){for(var c=t.entries(),h=!1,m=0;(l=c.next())&&!l.done;){if(i[m]){m++;continue}var g=o.value,x=l.value;if(n.equals(g[0],x[0],f,m,e,t,n)&&n.equals(g[1],x[1],g[0],x[0],e,t,n)){h=i[m]=!0;break}m++}if(!h)return!1;f++}return!0}var exe=gc;function txe(e,t,n){var r=jI(e),i=r.length;if(jI(t).length!==i)return!1;for(;i-- >0;)if(!$q(e,t,n,r[i]))return!1;return!0}function fp(e,t,n){var r=CI(e),i=r.length;if(CI(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=r[i],!$q(e,t,n,a)||(o=AI(e,a),l=AI(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function nxe(e,t){return gc(e.valueOf(),t.valueOf())}function rxe(e,t){return e.source===t.source&&e.flags===t.flags}function RI(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.values(),o,l;(o=a.next())&&!o.done;){for(var f=t.values(),c=!1,h=0;(l=f.next())&&!l.done;){if(!i[h]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){c=i[h]=!0;break}h++}if(!c)return!1}return!0}function ixe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function axe(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 $q(e,t,n,r){return(r===K1e||r===Y1e||r===G1e)&&(e.$$typeof||t.$$typeof)?!0:W1e(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var oxe="[object Arguments]",sxe="[object Boolean]",lxe="[object Date]",uxe="[object Error]",cxe="[object Map]",fxe="[object Number]",dxe="[object Object]",hxe="[object RegExp]",pxe="[object Set]",mxe="[object String]",vxe="[object URL]",gxe=Array.isArray,MI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,NI=Object.assign,yxe=Object.prototype.toString.call.bind(Object.prototype.toString);function bxe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,h=e.areSetsEqual,m=e.areTypedArraysEqual,g=e.areUrlsEqual;return function(_,w,O){if(_===w)return!0;if(_==null||w==null)return!1;var S=typeof _;if(S!==typeof w)return!1;if(S!=="object")return S==="number"?o(_,w,O):S==="function"?i(_,w,O):!1;var T=_.constructor;if(T!==w.constructor)return!1;if(T===Object)return l(_,w,O);if(gxe(_))return t(_,w,O);if(MI!=null&&MI(_))return m(_,w,O);if(T===Date)return n(_,w,O);if(T===RegExp)return c(_,w,O);if(T===Map)return a(_,w,O);if(T===Set)return h(_,w,O);var A=yxe(_);return A===lxe?n(_,w,O):A===hxe?c(_,w,O):A===cxe?a(_,w,O):A===pxe?h(_,w,O):A===dxe?typeof _.then!="function"&&typeof w.then!="function"&&l(_,w,O):A===vxe?g(_,w,O):A===uxe?r(_,w,O):A===oxe?l(_,w,O):A===sxe||A===fxe||A===mxe?f(_,w,O):!1}}function _xe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?fp:Z1e,areDatesEqual:X1e,areErrorsEqual:Q1e,areFunctionsEqual:J1e,areMapsEqual:r?TI(PI,fp):PI,areNumbersEqual:exe,areObjectsEqual:r?fp:txe,arePrimitiveWrappersEqual:nxe,areRegExpsEqual:rxe,areSetsEqual:r?TI(RI,fp):RI,areTypedArraysEqual:r?fp:ixe,areUrlsEqual:axe};if(n&&(i=NI({},i,n(i))),t){var a=uy(i.areArraysEqual),o=uy(i.areMapsEqual),l=uy(i.areObjectsEqual),f=uy(i.areSetsEqual);i=NI({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:f})}return i}function xxe(e){return function(t,n,r,i,a,o,l){return e(t,n,l)}}function wxe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(f,c){var h=r(),m=h.cache,g=m===void 0?t?new WeakMap:void 0:m,x=h.meta;return n(f,c,{cache:g,equals:i,meta:x,strict:a})};if(t)return function(f,c){return n(f,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(f,c){return n(f,c,o)}}var Oxe=Kl();Kl({strict:!0});Kl({circular:!0});Kl({circular:!0,strict:!0});Kl({createInternalComparator:function(){return gc}});Kl({strict:!0,createInternalComparator:function(){return gc}});Kl({circular:!0,createInternalComparator:function(){return gc}});Kl({circular:!0,createInternalComparator:function(){return gc},strict:!0});function Kl(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=_xe(e),f=bxe(l),c=r?r(f):xxe(f);return wxe({circular:n,comparator:f,createState:i,equals:c,strict:o})}function Sxe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function LI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):Sxe(i)};requestAnimationFrame(r)}function pA(e){"@babel/helpers - typeof";return pA=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},pA(e)}function Exe(e){return jxe(e)||Axe(e)||Cxe(e)||Txe()}function Txe(){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 Cxe(e,t){if(e){if(typeof e=="string")return DI(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 DI(e,t)}}function DI(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 Axe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jxe(e){if(Array.isArray(e))return e}function Pxe(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,l=Exe(o),f=l[0],c=l.slice(1);if(typeof f=="number"){LI(i.bind(null,c),f);return}i(f),LI(i.bind(null,c));return}pA(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function jm(e){"@babel/helpers - typeof";return jm=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},jm(e)}function kI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function II(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kI(Object(n),!0).forEach(function(r){Uq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uq(e,t,n){return t=Rxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rxe(e){var t=Mxe(e,"string");return jm(t)==="symbol"?t:String(t)}function Mxe(e,t){if(jm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nxe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},Lxe=function(t){return t},Dxe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Ip=function(t,n){return Object.keys(n).reduce(function(r,i){return II(II({},r),{},Uq({},i,t(i,n[i])))},{})},$I=function(t,n,r){return t.map(function(i){return"".concat(Dxe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function kxe(e,t){return Uxe(e)||$xe(e,t)||Bq(e,t)||Ixe()}function Ixe(){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 $xe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function Uxe(e){if(Array.isArray(e))return e}function Bxe(e){return qxe(e)||zxe(e)||Bq(e)||Fxe()}function Fxe(){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 Bq(e,t){if(e){if(typeof e=="string")return mA(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 mA(e,t)}}function zxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qxe(e){if(Array.isArray(e))return mA(e)}function mA(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 Gb=1e-4,Fq=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},zq=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},UI=function(t,n){return function(r){var i=Fq(t,n);return zq(i,r)}},Vxe=function(t,n){return function(r){var i=Fq(t,n),a=[].concat(Bxe(i.map(function(o,l){return o*l}).slice(1)),[0]);return zq(a,r)}},BI=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,o=1,l=1;break;case"ease":i=.25,a=.1,o=.25,l=1;break;case"ease-in":i=.42,a=0,o=1,l=1;break;case"ease-out":i=.42,a=0,o=.58,l=1;break;case"ease-in-out":i=0,a=0,o=.58,l=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var c=f[1].split(")")[0].split(",").map(function(O){return parseFloat(O)}),h=kxe(c,4);i=h[0],a=h[1],o=h[2],l=h[3]}}}var m=UI(i,o),g=UI(a,l),x=Vxe(i,o),_=function(S){return S>1?1:S<0?0:S},w=function(S){for(var T=S>1?1:S,A=T,j=0;j<8;++j){var P=m(A)-T,R=x(A);if(Math.abs(P-T)<Gb||R<Gb)return g(A);A=_(A-P/R)}return g(A)};return w.isStepper=!1,w},Hxe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,f=function(h,m,g){var x=-(h-m)*r,_=g*a,w=g+(x-_)*l/1e3,O=g*l/1e3+h;return Math.abs(O-m)<Gb&&Math.abs(w)<Gb?[m,0]:[O,w]};return f.isStepper=!0,f.dt=l,f},Wxe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return BI(i);case"spring":return Hxe();default:if(i.split("(")[0]==="cubic-bezier")return BI(i)}return typeof i=="function"?i:null};function Pm(e){"@babel/helpers - typeof";return Pm=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},Pm(e)}function FI(e){return Kxe(e)||Yxe(e)||qq(e)||Gxe()}function Gxe(){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 Yxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kxe(e){if(Array.isArray(e))return gA(e)}function zI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zI(Object(n),!0).forEach(function(r){vA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vA(e,t,n){return t=Zxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zxe(e){var t=Xxe(e,"string");return Pm(t)==="symbol"?t:String(t)}function Xxe(e,t){if(Pm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qxe(e,t){return twe(e)||ewe(e,t)||qq(e,t)||Jxe()}function Jxe(){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 qq(e,t){if(e){if(typeof e=="string")return gA(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 gA(e,t)}}function gA(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 ewe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function twe(e){if(Array.isArray(e))return e}var Yb=function(t,n,r){return t+(n-t)*r},yA=function(t){var n=t.from,r=t.to;return n!==r},nwe=function e(t,n,r){var i=Ip(function(a,o){if(yA(o)){var l=t(o.from,o.to,o.velocity),f=Qxe(l,2),c=f[0],h=f[1];return yr(yr({},o),{},{from:c,velocity:h})}return o},n);return r<1?Ip(function(a,o){return yA(o)?yr(yr({},o),{},{velocity:Yb(o.velocity,i[a].velocity,r),from:Yb(o.from,i[a].from,r)}):o},n):e(t,i,r-1)};const rwe=function(e,t,n,r,i){var a=Nxe(e,t),o=a.reduce(function(O,S){return yr(yr({},O),{},vA({},S,[e[S],t[S]]))},{}),l=a.reduce(function(O,S){return yr(yr({},O),{},vA({},S,{from:e[S],velocity:0,to:t[S]}))},{}),f=-1,c,h,m=function(){return null},g=function(){return Ip(function(S,T){return T.from},l)},x=function(){return!Object.values(l).filter(yA).length},_=function(S){c||(c=S);var T=S-c,A=T/n.dt;l=nwe(n,l,A),i(yr(yr(yr({},e),t),g())),c=S,x()||(f=requestAnimationFrame(m))},w=function(S){h||(h=S);var T=(S-h)/r,A=Ip(function(P,R){return Yb.apply(void 0,FI(R).concat([n(T)]))},o);if(i(yr(yr(yr({},e),t),A)),T<1)f=requestAnimationFrame(m);else{var j=Ip(function(P,R){return Yb.apply(void 0,FI(R).concat([n(1)]))},o);i(yr(yr(yr({},e),t),j))}};return m=n.isStepper?_:w,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(f)}}};function ld(e){"@babel/helpers - typeof";return ld=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},ld(e)}var iwe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function awe(e,t){if(e==null)return{};var n=owe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function owe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function VS(e){return cwe(e)||uwe(e)||lwe(e)||swe()}function swe(){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 lwe(e,t){if(e){if(typeof e=="string")return bA(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 bA(e,t)}}function uwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cwe(e){if(Array.isArray(e))return bA(e)}function bA(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 qI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qI(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sp(e,t,n){return t=Vq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dwe(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,Vq(r.key),r)}}function hwe(e,t,n){return t&&dwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vq(e){var t=pwe(e,"string");return ld(t)==="symbol"?t:String(t)}function pwe(e,t){if(ld(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ld(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mwe(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&&_A(e,t)}function _A(e,t){return _A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_A(e,t)}function vwe(e){var t=gwe();return function(){var r=Kb(e),i;if(t){var a=Kb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return xA(this,i)}}function xA(e,t){if(t&&(ld(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wA(e)}function wA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gwe(){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 Kb(e){return Kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kb(e)}var ia=function(e){mwe(n,e);var t=vwe(n);function n(r,i){var a;fwe(this,n),a=t.call(this,r,i);var o=a.props,l=o.isActive,f=o.attributeName,c=o.from,h=o.to,m=o.steps,g=o.children,x=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(wA(a)),a.changeStyle=a.changeStyle.bind(wA(a)),!l||x<=0)return a.state={style:{}},typeof g=="function"&&(a.state={style:h}),xA(a);if(m&&m.length)a.state={style:m[0].style};else if(c){if(typeof g=="function")return a.state={style:c},xA(a);a.state={style:f?Sp({},f,c):c}}else a.state={style:{}};return a}return hwe(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,l=a.canBegin,f=a.attributeName,c=a.shouldReAnimate,h=a.to,m=a.from,g=this.state.style;if(l){if(!o){var x={style:f?Sp({},f,h):h};this.state&&g&&(f&&g[f]!==h||!f&&g!==h)&&this.setState(x);return}if(!(Oxe(i.to,h)&&i.canBegin&&i.isActive)){var _=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=_||c?m:i.to;if(this.state&&g){var O={style:f?Sp({},f,w):w};(f&&g[f]!==w||!f&&g!==w)&&this.setState(O)}this.runAnimation(ma(ma({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,l=i.to,f=i.duration,c=i.easing,h=i.begin,m=i.onAnimationEnd,g=i.onAnimationStart,x=rwe(o,l,Wxe(c),f,this.changeStyle),_=function(){a.stopJSAnimation=x()};this.manager.start([g,h,_,f,m])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,f=i.onAnimationStart,c=o[0],h=c.style,m=c.duration,g=m===void 0?0:m,x=function(w,O,S){if(S===0)return w;var T=O.duration,A=O.easing,j=A===void 0?"ease":A,P=O.style,R=O.properties,D=O.onAnimationEnd,U=S>0?o[S-1]:O,z=R||Object.keys(P);if(typeof j=="function"||j==="spring")return[].concat(VS(w),[a.runJSAnimation.bind(a,{from:U.style,to:P,duration:T,easing:j}),T]);var F=$I(z,T,j),V=ma(ma(ma({},U.style),P),{},{transition:F});return[].concat(VS(w),[V,T,D]).filter(Lxe)};return this.manager.start([f].concat(VS(o.reduce(x,[h,Math.max(g,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Pxe());var a=i.begin,o=i.duration,l=i.attributeName,f=i.to,c=i.easing,h=i.onAnimationStart,m=i.onAnimationEnd,g=i.steps,x=i.children,_=this.manager;if(this.unSubscribe=_.subscribe(this.handleStyleChange),typeof c=="function"||typeof x=="function"||c==="spring"){this.runJSAnimation(i);return}if(g.length>1){this.runStepAnimation(i);return}var w=l?Sp({},l,f):f,O=$I(Object.keys(w),o,c);_.start([h,a,ma(ma({},w),{},{transition:O}),o,m])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=awe(i,iwe),c=I.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!l||c===0||o<=0)return a;var m=function(x){var _=x.props,w=_.style,O=w===void 0?{}:w,S=_.className,T=I.cloneElement(x,ma(ma({},f),{},{style:ma(ma({},O),h),className:S}));return T};return c===1?m(I.Children.only(a)):J.createElement("div",null,I.Children.map(a,function(g){return m(g)}))}}]),n}(I.PureComponent);ia.displayName="Animate";ia.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ia.propTypes={from:W.oneOfType([W.object,W.string]),to:W.oneOfType([W.object,W.string]),attributeName:W.string,duration:W.number,begin:W.number,easing:W.oneOfType([W.string,W.func]),steps:W.arrayOf(W.shape({duration:W.number.isRequired,style:W.object.isRequired,easing:W.oneOfType([W.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),W.func]),properties:W.arrayOf("string"),onAnimationEnd:W.func})),children:W.oneOfType([W.node,W.func]),isActive:W.bool,canBegin:W.bool,onAnimationEnd:W.func,shouldReAnimate:W.bool,onAnimationStart:W.func,onAnimationReStart:W.func};function Rm(e){"@babel/helpers - typeof";return Rm=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},Rm(e)}function Zb(){return Zb=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},Zb.apply(this,arguments)}function ywe(e,t){return wwe(e)||xwe(e,t)||_we(e,t)||bwe()}function bwe(){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 _we(e,t){if(e){if(typeof e=="string")return VI(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 VI(e,t)}}function VI(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 xwe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function wwe(e){if(Array.isArray(e))return e}function HI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(n),!0).forEach(function(r){Owe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Owe(e,t,n){return t=Swe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Swe(e){var t=Ewe(e,"string");return Rm(t)=="symbol"?t:t+""}function Ewe(e,t){if(Rm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GI=function(t,n,r,i,a){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,f=r>=0?1:-1,c=i>=0&&r>=0||i<0&&r<0?1:0,h;if(o>0&&a instanceof Array){for(var m=[0,0,0,0],g=0,x=4;g<x;g++)m[g]=a[g]>o?o:a[g];h="M".concat(t,",").concat(n+l*m[0]),m[0]>0&&(h+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(c,",").concat(t+f*m[0],",").concat(n)),h+="L ".concat(t+r-f*m[1],",").concat(n),m[1]>0&&(h+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(c,`,
`).concat(t+r,",").concat(n+l*m[1])),h+="L ".concat(t+r,",").concat(n+i-l*m[2]),m[2]>0&&(h+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(c,`,
`).concat(t+r-f*m[2],",").concat(n+i)),h+="L ".concat(t+f*m[3],",").concat(n+i),m[3]>0&&(h+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(c,`,
`).concat(t,",").concat(n+i-l*m[3])),h+="Z"}else if(o>0&&a===+a&&a>0){var _=Math.min(o,a);h="M ".concat(t,",").concat(n+l*_,`
A `).concat(_,",").concat(_,",0,0,").concat(c,",").concat(t+f*_,",").concat(n,`
L `).concat(t+r-f*_,",").concat(n,`
A `).concat(_,",").concat(_,",0,0,").concat(c,",").concat(t+r,",").concat(n+l*_,`
L `).concat(t+r,",").concat(n+i-l*_,`
A `).concat(_,",").concat(_,",0,0,").concat(c,",").concat(t+r-f*_,",").concat(n+i,`
L `).concat(t+f*_,",").concat(n+i,`
A `).concat(_,",").concat(_,",0,0,").concat(c,",").concat(t,",").concat(n+i-l*_," Z")}else h="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return h},Twe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,l=n.width,f=n.height;if(Math.abs(l)>0&&Math.abs(f)>0){var c=Math.min(a,a+l),h=Math.max(a,a+l),m=Math.min(o,o+f),g=Math.max(o,o+f);return r>=c&&r<=h&&i>=m&&i<=g}return!1},Cwe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},u3=function(t){var n=WI(WI({},Cwe),t),r=I.useRef(),i=I.useState(-1),a=ywe(i,2),o=a[0],l=a[1];I.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&l(j)}catch{}},[]);var f=n.x,c=n.y,h=n.width,m=n.height,g=n.radius,x=n.className,_=n.animationEasing,w=n.animationDuration,O=n.animationBegin,S=n.isAnimationActive,T=n.isUpdateAnimationActive;if(f!==+f||c!==+c||h!==+h||m!==+m||h===0||m===0)return null;var A=Ve("recharts-rectangle",x);return T?J.createElement(ia,{canBegin:o>0,from:{width:h,height:m,x:f,y:c},to:{width:h,height:m,x:f,y:c},duration:w,animationEasing:_,isActive:T},function(j){var P=j.width,R=j.height,D=j.x,U=j.y;return J.createElement(ia,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:O,duration:w,isActive:S,easing:_},J.createElement("path",Zb({},it(n,!0),{className:A,d:GI(D,U,P,R,g),ref:r})))}):J.createElement("path",Zb({},it(n,!0),{className:A,d:GI(f,c,h,m,g)}))},Awe=["points","className","baseLinePoints","connectNulls"];function Rf(){return Rf=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},Rf.apply(this,arguments)}function jwe(e,t){if(e==null)return{};var n=Pwe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pwe(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 YI(e){return Lwe(e)||Nwe(e)||Mwe(e)||Rwe()}function Rwe(){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 Mwe(e,t){if(e){if(typeof e=="string")return OA(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 OA(e,t)}}function Nwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lwe(e){if(Array.isArray(e))return OA(e)}function OA(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 KI=function(t){return t&&t.x===+t.x&&t.y===+t.y},Dwe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){KI(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),KI(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},$p=function(t,n){var r=Dwe(t);n&&(r=[r.reduce(function(a,o){return[].concat(YI(a),YI(o))},[])]);var i=r.map(function(a){return a.reduce(function(o,l,f){return"".concat(o).concat(f===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},kwe=function(t,n,r){var i=$p(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat($p(n.reverse(),r).slice(1))},Iwe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,a=t.connectNulls,o=jwe(t,Awe);if(!n||!n.length)return null;var l=Ve("recharts-polygon",r);if(i&&i.length){var f=o.stroke&&o.stroke!=="none",c=kwe(n,i,a);return J.createElement("g",{className:l},J.createElement("path",Rf({},it(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),f?J.createElement("path",Rf({},it(o,!0),{fill:"none",d:$p(n,a)})):null,f?J.createElement("path",Rf({},it(o,!0),{fill:"none",d:$p(i,a)})):null)}var h=$p(n,a);return J.createElement("path",Rf({},it(o,!0),{fill:h.slice(-1)==="Z"?o.fill:"none",className:l,d:h}))};function SA(){return SA=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},SA.apply(this,arguments)}var mv=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,o=Ve("recharts-dot",a);return n===+n&&r===+r&&i===+i?J.createElement("circle",SA({},it(t,!1),_b(t),{className:o,cx:n,cy:r,r:i})):null};function Mm(e){"@babel/helpers - typeof";return Mm=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},Mm(e)}var $we=["x","y","top","left","width","height","className"];function EA(){return EA=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},EA.apply(this,arguments)}function ZI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uwe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZI(Object(n),!0).forEach(function(r){Bwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bwe(e,t,n){return t=Fwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fwe(e){var t=zwe(e,"string");return Mm(t)=="symbol"?t:t+""}function zwe(e,t){if(Mm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qwe(e,t){if(e==null)return{};var n=Vwe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vwe(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 Hwe=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},Wwe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,f=t.left,c=f===void 0?0:f,h=t.width,m=h===void 0?0:h,g=t.height,x=g===void 0?0:g,_=t.className,w=qwe(t,$we),O=Uwe({x:r,y:a,top:l,left:c,width:m,height:x},w);return!We(r)||!We(a)||!We(m)||!We(x)||!We(l)||!We(c)?null:J.createElement("path",EA({},it(O,!0),{className:Ve("recharts-cross",_),d:Hwe(r,a,m,x,l,c)}))},HS,XI;function Gwe(){if(XI)return HS;XI=1;var e=v_(),t=aq(),n=vo();function r(i,a){return i&&i.length?e(i,n(a,2),t):void 0}return HS=r,HS}var Ywe=Gwe();const Kwe=Dt(Ywe);var WS,QI;function Zwe(){if(QI)return WS;QI=1;var e=v_(),t=vo(),n=oq();function r(i,a){return i&&i.length?e(i,t(a,2),n):void 0}return WS=r,WS}var Xwe=Zwe();const Qwe=Dt(Xwe);var Jwe=["cx","cy","angle","ticks","axisLine"],e2e=["ticks","tick","angle","tickFormatter","stroke"];function ud(e){"@babel/helpers - typeof";return ud=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},ud(e)}function Up(){return Up=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},Up.apply(this,arguments)}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(n),!0).forEach(function(r){__(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e$(e,t){if(e==null)return{};var n=t2e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function t2e(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 n2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t$(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,Wq(r.key),r)}}function r2e(e,t,n){return t&&t$(e.prototype,t),n&&t$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i2e(e,t,n){return t=Xb(t),a2e(e,Hq()?Reflect.construct(t,n||[],Xb(e).constructor):t.apply(e,n))}function a2e(e,t){if(t&&(ud(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o2e(e)}function o2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hq=function(){return!!e})()}function Xb(e){return Xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xb(e)}function s2e(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&&TA(e,t)}function TA(e,t){return TA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TA(e,t)}function __(e,t,n){return t=Wq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wq(e){var t=l2e(e,"string");return ud(t)=="symbol"?t:t+""}function l2e(e,t){if(ud(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ud(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var x_=function(e){function t(){return n2e(this,t),i2e(this,t,arguments)}return s2e(t,e),r2e(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,a=this.props,o=a.angle,l=a.cx,f=a.cy;return dn(l,f,i,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,f=Kwe(l,function(h){return h.coordinate||0}),c=Qwe(l,function(h){return h.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,f=r.axisLine,c=e$(r,Jwe),h=l.reduce(function(_,w){return[Math.min(_[0],w.coordinate),Math.max(_[1],w.coordinate)]},[1/0,-1/0]),m=dn(i,a,h[0],o),g=dn(i,a,h[1],o),x=Cu(Cu(Cu({},it(c,!1)),{},{fill:"none"},it(f,!1)),{},{x1:m.x,y1:m.y,x2:g.x,y2:g.y});return J.createElement("line",Up({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.angle,f=i.tickFormatter,c=i.stroke,h=e$(i,e2e),m=this.getTickTextAnchor(),g=it(h,!1),x=it(o,!1),_=a.map(function(w,O){var S=r.getTickValueCoord(w),T=Cu(Cu(Cu(Cu({textAnchor:m,transform:"rotate(".concat(90-l,", ").concat(S.x,", ").concat(S.y,")")},g),{},{stroke:"none",fill:c},x),{},{index:O},S),{},{payload:w});return J.createElement(wt,Up({className:Ve("recharts-polar-radius-axis-tick",Lq(o)),key:"tick-".concat(w.coordinate)},kl(r.props,w,O)),t.renderTickItem(o,T,f?f(w.value,O):w.value))});return J.createElement(wt,{className:"recharts-polar-radius-axis-ticks"},_)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.axisLine,o=r.tick;return!i||!i.length?null:J.createElement(wt,{className:Ve("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),lr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return J.isValidElement(r)?o=J.cloneElement(r,i):ct(r)?o=r(i):o=J.createElement(sc,Up({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(I.PureComponent);__(x_,"displayName","PolarRadiusAxis");__(x_,"axisType","radiusAxis");__(x_,"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 cd(e){"@babel/helpers - typeof";return cd=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},cd(e)}function Iu(){return Iu=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},Iu.apply(this,arguments)}function n$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Au(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n$(Object(n),!0).forEach(function(r){w_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u2e(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,Yq(r.key),r)}}function c2e(e,t,n){return t&&r$(e.prototype,t),n&&r$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f2e(e,t,n){return t=Qb(t),d2e(e,Gq()?Reflect.construct(t,n||[],Qb(e).constructor):t.apply(e,n))}function d2e(e,t){if(t&&(cd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h2e(e)}function h2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gq=function(){return!!e})()}function Qb(e){return Qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qb(e)}function p2e(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&&CA(e,t)}function CA(e,t){return CA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},CA(e,t)}function w_(e,t,n){return t=Yq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yq(e){var t=m2e(e,"string");return cd(t)=="symbol"?t:t+""}function m2e(e,t){if(cd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var v2e=Math.PI/180,g2e=1e-5,O_=function(e){function t(){return u2e(this,t),f2e(this,t,arguments)}return p2e(t,e),c2e(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.cx,o=i.cy,l=i.radius,f=i.orientation,c=i.tickSize,h=c||8,m=dn(a,o,l,r.coordinate),g=dn(a,o,l+(f==="inner"?-1:1)*h,r.coordinate);return{x1:m.x,y1:m.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,a=Math.cos(-r.coordinate*v2e),o;return a>g2e?o=i==="outer"?"start":"end":a<-1e-5?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.radius,l=r.axisLine,f=r.axisLineType,c=Au(Au({},it(this.props,!1)),{},{fill:"none"},it(l,!1));if(f==="circle")return J.createElement(mv,Iu({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var h=this.props.ticks,m=h.map(function(g){return dn(i,a,o,g.coordinate)});return J.createElement(Iwe,Iu({className:"recharts-polar-angle-axis-line"},c,{points:m}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,f=i.tickFormatter,c=i.stroke,h=it(this.props,!1),m=it(o,!1),g=Au(Au({},h),{},{fill:"none"},it(l,!1)),x=a.map(function(_,w){var O=r.getTickLineCoord(_),S=r.getTickTextAnchor(_),T=Au(Au(Au({textAnchor:S},h),{},{stroke:"none",fill:c},m),{},{index:w,payload:_,x:O.x2,y:O.y2});return J.createElement(wt,Iu({className:Ve("recharts-polar-angle-axis-tick",Lq(o)),key:"tick-".concat(_.coordinate)},kl(r.props,_,w)),l&&J.createElement("line",Iu({className:"recharts-polar-angle-axis-tick-line"},g,O)),o&&t.renderTickItem(o,T,f?f(_.value,w):_.value))});return J.createElement(wt,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.radius,o=r.axisLine;return a<=0||!i||!i.length?null:J.createElement(wt,{className:Ve("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,a){var o;return J.isValidElement(r)?o=J.cloneElement(r,i):ct(r)?o=r(i):o=J.createElement(sc,Iu({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(I.PureComponent);w_(O_,"displayName","PolarAngleAxis");w_(O_,"axisType","angleAxis");w_(O_,"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 GS,i$;function y2e(){if(i$)return GS;i$=1;var e=iz(),t=e(Object.getPrototypeOf,Object);return GS=t,GS}var YS,a$;function b2e(){if(a$)return YS;a$=1;var e=gs(),t=y2e(),n=ys(),r="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,l=a.hasOwnProperty,f=o.call(Object);function c(h){if(!n(h)||e(h)!=r)return!1;var m=t(h);if(m===null)return!0;var g=l.call(m,"constructor")&&m.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==f}return YS=c,YS}var _2e=b2e();const x2e=Dt(_2e);var KS,o$;function w2e(){if(o$)return KS;o$=1;var e=gs(),t=ys(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return KS=r,KS}var O2e=w2e();const S2e=Dt(O2e);function Nm(e){"@babel/helpers - typeof";return Nm=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},Nm(e)}function Jb(){return Jb=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},Jb.apply(this,arguments)}function E2e(e,t){return j2e(e)||A2e(e,t)||C2e(e,t)||T2e()}function T2e(){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 C2e(e,t){if(e){if(typeof e=="string")return s$(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 s$(e,t)}}function s$(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 A2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function j2e(e){if(Array.isArray(e))return e}function l$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function u$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l$(Object(n),!0).forEach(function(r){P2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P2e(e,t,n){return t=R2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R2e(e){var t=M2e(e,"string");return Nm(t)=="symbol"?t:t+""}function M2e(e,t){if(Nm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c$=function(t,n,r,i,a){var o=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+a),l+="L ".concat(t+r-o/2-i,",").concat(n+a),l+="L ".concat(t,",").concat(n," Z"),l},N2e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},L2e=function(t){var n=u$(u$({},N2e),t),r=I.useRef(),i=I.useState(-1),a=E2e(i,2),o=a[0],l=a[1];I.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&l(A)}catch{}},[]);var f=n.x,c=n.y,h=n.upperWidth,m=n.lowerWidth,g=n.height,x=n.className,_=n.animationEasing,w=n.animationDuration,O=n.animationBegin,S=n.isUpdateAnimationActive;if(f!==+f||c!==+c||h!==+h||m!==+m||g!==+g||h===0&&m===0||g===0)return null;var T=Ve("recharts-trapezoid",x);return S?J.createElement(ia,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:c},to:{upperWidth:h,lowerWidth:m,height:g,x:f,y:c},duration:w,animationEasing:_,isActive:S},function(A){var j=A.upperWidth,P=A.lowerWidth,R=A.height,D=A.x,U=A.y;return J.createElement(ia,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:O,duration:w,easing:_},J.createElement("path",Jb({},it(n,!0),{className:T,d:c$(D,U,j,P,R),ref:r})))}):J.createElement("g",null,J.createElement("path",Jb({},it(n,!0),{className:T,d:c$(f,c,h,m,g)})))},D2e=["option","shapeType","propTransformer","activeClassName","isActive"];function Lm(e){"@babel/helpers - typeof";return Lm=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},Lm(e)}function k2e(e,t){if(e==null)return{};var n=I2e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I2e(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 f$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function e0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f$(Object(n),!0).forEach(function(r){$2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $2e(e,t,n){return t=U2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U2e(e){var t=B2e(e,"string");return Lm(t)=="symbol"?t:t+""}function B2e(e,t){if(Lm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F2e(e,t){return e0(e0({},t),e)}function z2e(e,t){return e==="symbols"}function d$(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return J.createElement(u3,n);case"trapezoid":return J.createElement(L2e,n);case"sector":return J.createElement(Iq,n);case"symbols":if(z2e(t))return J.createElement(o_,n);break;default:return null}}function q2e(e){return I.isValidElement(e)?e.props:e}function t0(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?F2e:r,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,f=k2e(e,D2e),c;if(I.isValidElement(t))c=I.cloneElement(t,e0(e0({},f),q2e(t)));else if(ct(t))c=t(f);else if(x2e(t)&&!S2e(t)){var h=i(t,f);c=J.createElement(d$,{shapeType:n,elementProps:h})}else{var m=f;c=J.createElement(d$,{shapeType:n,elementProps:m})}return l?J.createElement(wt,{className:o},c):c}function S_(e,t){return t!=null&&"trapezoids"in e.props}function E_(e,t){return t!=null&&"sectors"in e.props}function Dm(e,t){return t!=null&&"points"in e.props}function V2e(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function H2e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function W2e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function G2e(e,t){var n;return S_(e,t)?n=V2e:E_(e,t)?n=H2e:Dm(e,t)&&(n=W2e),n}function Y2e(e,t){var n;return S_(e,t)?n="trapezoids":E_(e,t)?n="sectors":Dm(e,t)&&(n="points"),n}function K2e(e,t){if(S_(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(E_(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 Dm(e,t)?t.payload:{}}function Z2e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Y2e(n,t),a=K2e(n,t),o=r.filter(function(f,c){var h=Il(a,f),m=n.props[i].filter(function(_){var w=G2e(n,t);return w(_,t)}),g=n.props[i].indexOf(m[m.length-1]),x=c===g;return h&&x}),l=r.indexOf(o[o.length-1]);return l}var Py;function fd(e){"@babel/helpers - typeof";return fd=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},fd(e)}function Mf(){return Mf=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},Mf.apply(this,arguments)}function h$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h$(Object(n),!0).forEach(function(r){Xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p$(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,Zq(r.key),r)}}function Q2e(e,t,n){return t&&p$(e.prototype,t),n&&p$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function J2e(e,t,n){return t=n0(t),eOe(e,Kq()?Reflect.construct(t,n||[],n0(e).constructor):t.apply(e,n))}function eOe(e,t){if(t&&(fd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tOe(e)}function tOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kq=function(){return!!e})()}function n0(e){return n0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},n0(e)}function nOe(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&&AA(e,t)}function AA(e,t){return AA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AA(e,t)}function Xi(e,t,n){return t=Zq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zq(e){var t=rOe(e,"string");return fd(t)=="symbol"?t:t+""}function rOe(e,t){if(fd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uo=function(e){function t(n){var r;return X2e(this,t),r=J2e(this,t,[n]),Xi(r,"pieRef",null),Xi(r,"sectorRefs",[]),Xi(r,"id",Wl("recharts-pie-")),Xi(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ct(i)&&i()}),Xi(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ct(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return nOe(t,e),Q2e(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{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 i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,l=a.labelLine,f=a.dataKey,c=a.valueKey,h=it(this.props,!1),m=it(o,!1),g=it(l,!1),x=o&&o.offsetRadius||20,_=r.map(function(w,O){var S=(w.startAngle+w.endAngle)/2,T=dn(w.cx,w.cy,w.outerRadius+x,S),A=cn(cn(cn(cn({},h),w),{},{stroke:"none"},m),{},{index:O,textAnchor:t.getTextAnchor(T.x,w.cx)},T),j=cn(cn(cn(cn({},h),w),{},{fill:"none",stroke:w.fill},g),{},{index:O,points:[dn(w.cx,w.cy,w.outerRadius,S),T]}),P=f;return ft(f)&&ft(c)?P="value":ft(f)&&(P=c),J.createElement(wt,{key:"label-".concat(w.startAngle,"-").concat(w.endAngle,"-").concat(w.midAngle,"-").concat(O)},l&&t.renderLabelLineItem(l,j,"line"),t.renderLabelItem(o,A,mn(w,P)))});return J.createElement(wt,{className:"recharts-pie-labels"},_)}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,o=a.activeShape,l=a.blendStroke,f=a.inactiveShape;return r.map(function(c,h){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var m=i.isActiveIndex(h),g=f&&i.hasActiveIndex()?f:null,x=m?o:g,_=cn(cn({},c),{},{stroke:l?c.fill:c.stroke,tabIndex:-1});return J.createElement(wt,Mf({ref:function(O){O&&!i.sectorRefs.includes(O)&&i.sectorRefs.push(O)},tabIndex:-1,className:"recharts-pie-sector"},kl(i.props,c,h),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(h)}),J.createElement(t0,Mf({option:x,isActive:m,shapeType:"sector"},_)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.sectors,o=i.isAnimationActive,l=i.animationBegin,f=i.animationDuration,c=i.animationEasing,h=i.animationId,m=this.state,g=m.prevSectors,x=m.prevIsAnimationActive;return J.createElement(ia,{begin:l,duration:f,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(h,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(_){var w=_.t,O=[],S=a&&a[0],T=S.startAngle;return a.forEach(function(A,j){var P=g&&g[j],R=j>0?Ti(A,"paddingAngle",0):0;if(P){var D=An(P.endAngle-P.startAngle,A.endAngle-A.startAngle),U=cn(cn({},A),{},{startAngle:T+R,endAngle:T+D(w)+R});O.push(U),T=U.endAngle}else{var z=A.endAngle,F=A.startAngle,V=An(0,z-F),H=V(w),te=cn(cn({},A),{},{startAngle:T+R,endAngle:T+H+R});O.push(te),T=te.endAngle}}),J.createElement(wt,null,r.renderSectorsStatically(O))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,a=r.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Il(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,f=i.label,c=i.cx,h=i.cy,m=i.innerRadius,g=i.outerRadius,x=i.isAnimationActive,_=this.state.isAnimationFinished;if(a||!o||!o.length||!We(c)||!We(h)||!We(m)||!We(g))return null;var w=Ve("recharts-pie",l);return J.createElement(wt,{tabIndex:this.props.rootTabIndex,className:w,ref:function(S){r.pieRef=S}},this.renderSectors(),f&&this.renderLabels(o),lr.renderCallByParent(this.props,null,!1),(!x||_)&&xa.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,a){if(J.isValidElement(r))return J.cloneElement(r,i);if(ct(r))return r(i);var o=Ve("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return J.createElement(jl,Mf({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,a){if(J.isValidElement(r))return J.cloneElement(r,i);var o=a;if(ct(r)&&(o=r(i),J.isValidElement(o)))return o;var l=Ve("recharts-pie-label-text",typeof r!="boolean"&&!ct(r)?r.className:"");return J.createElement(sc,Mf({},i,{alignmentBaseline:"middle",className:l}),o)}}])}(I.PureComponent);Py=uo;Xi(uo,"displayName","Pie");Xi(uo,"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:!bs.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Xi(uo,"parseDeltaAngle",function(e,t){var n=Ur(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Xi(uo,"getRealPieData",function(e){var t=e.data,n=e.children,r=it(e,!1),i=Vr(n,Cl);return t&&t.length?t.map(function(a,o){return cn(cn(cn({payload:a},r),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return cn(cn({},r),a.props)}):[]});Xi(uo,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=Nq(i,a),l=r+Br(e.cx,i,i/2),f=n+Br(e.cy,a,a/2),c=Br(e.innerRadius,o,0),h=Br(e.outerRadius,o,o*.8),m=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:f,innerRadius:c,outerRadius:h,maxRadius:m}});Xi(uo,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?cn(cn({},t.type.defaultProps),t.props):t.props,i=Py.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,l=r.endAngle,f=r.paddingAngle,c=r.dataKey,h=r.nameKey,m=r.valueKey,g=r.tooltipType,x=Math.abs(r.minAngle),_=Py.parseCoordinateOfPie(r,n),w=Py.parseDeltaAngle(o,l),O=Math.abs(w),S=c;ft(c)&&ft(m)?(_a(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),S="value"):ft(c)&&(_a(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),S=m);var T=i.filter(function(U){return mn(U,S,0)!==0}).length,A=(O>=360?T:T-1)*f,j=O-T*x-A,P=i.reduce(function(U,z){var F=mn(z,S,0);return U+(We(F)?F:0)},0),R;if(P>0){var D;R=i.map(function(U,z){var F=mn(U,S,0),V=mn(U,h,z),H=(We(F)?F:0)/P,te;z?te=D.endAngle+Ur(w)*f*(F!==0?1:0):te=o;var ee=te+Ur(w)*((F!==0?x:0)+H*j),re=(te+ee)/2,Q=(_.innerRadius+_.outerRadius)/2,oe=[{name:V,value:F,payload:U,dataKey:S,type:g}],le=dn(_.cx,_.cy,Q,re);return D=cn(cn(cn({percent:H,cornerRadius:a,name:V,tooltipPayload:oe,midAngle:re,middleRadius:Q,tooltipPosition:le},U),_),{},{value:mn(U,S),startAngle:te,endAngle:ee,payload:U,paddingAngle:Ur(w)*f}),D})}return cn(cn({},_),{},{sectors:R,data:i})});var ZS,m$;function iOe(){if(m$)return ZS;m$=1;var e=Math.ceil,t=Math.max;function n(r,i,a,o){for(var l=-1,f=t(e((i-r)/(a||1)),0),c=Array(f);f--;)c[o?f:++l]=r,r+=a;return c}return ZS=n,ZS}var XS,v$;function Xq(){if(v$)return XS;v$=1;var e=_z(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var a=i<0?-1:1;return a*n}return i===i?i:0}return XS=r,XS}var QS,g$;function aOe(){if(g$)return QS;g$=1;var e=iOe(),t=u_(),n=Xq();function r(i){return function(a,o,l){return l&&typeof l!="number"&&t(a,o,l)&&(o=l=void 0),a=n(a),o===void 0?(o=a,a=0):o=n(o),l=l===void 0?a<o?1:-1:n(l),e(a,o,l,i)}}return QS=r,QS}var JS,y$;function oOe(){if(y$)return JS;y$=1;var e=aOe(),t=e();return JS=t,JS}var sOe=oOe();const r0=Dt(sOe);function km(e){"@babel/helpers - typeof";return km=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},km(e)}function b$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b$(Object(n),!0).forEach(function(r){Qq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qq(e,t,n){return t=lOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lOe(e){var t=uOe(e,"string");return km(t)=="symbol"?t:t+""}function uOe(e,t){if(km(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(km(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cOe=["Webkit","Moz","O","ms"],fOe=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=cOe.reduce(function(a,o){return _$(_$({},a),{},Qq({},o+r,n))},{});return i[t]=n,i};function dd(e){"@babel/helpers - typeof";return dd=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},dd(e)}function i0(){return i0=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},i0.apply(this,arguments)}function x$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x$(Object(n),!0).forEach(function(r){wi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w$(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,eV(r.key),r)}}function hOe(e,t,n){return t&&w$(e.prototype,t),n&&w$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pOe(e,t,n){return t=a0(t),mOe(e,Jq()?Reflect.construct(t,n||[],a0(e).constructor):t.apply(e,n))}function mOe(e,t){if(t&&(dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vOe(e)}function vOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jq=function(){return!!e})()}function a0(e){return a0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},a0(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&&jA(e,t)}function jA(e,t){return jA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jA(e,t)}function wi(e,t,n){return t=eV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eV(e){var t=yOe(e,"string");return dd(t)=="symbol"?t:t+""}function yOe(e,t){if(dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bOe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,c=Dp().domain(r0(0,f)).range([a,a+o-l]),h=c.domain().map(function(m){return c(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(i),scale:c,scaleValues:h}},O$=function(t){return t.changedTouches&&!!t.changedTouches.length},hd=function(e){function t(n){var r;return dOe(this,t),r=pOe(this,t,[n]),wi(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),wi(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),wi(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),r.detachDragEndListener()}),wi(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),wi(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),wi(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),wi(r,"handleSlideDragStart",function(i){var a=O$(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return gOe(t,e),hOe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,l=this.props,f=l.gap,c=l.data,h=c.length-1,m=Math.min(i,a),g=Math.max(i,a),x=t.getIndexInRange(o,m),_=t.getIndexInRange(o,g);return{startIndex:x-x%f,endIndex:_===h?h:_-_%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,f=mn(a[r],l,r);return ct(o)?o(f,r):f}},{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 i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,f=this.props,c=f.x,h=f.width,m=f.travellerWidth,g=f.startIndex,x=f.endIndex,_=f.onChange,w=r.pageX-a;w>0?w=Math.min(w,c+h-m-l,c+h-m-o):w<0&&(w=Math.max(w,c-o,c-l));var O=this.getIndex({startX:o+w,endX:l+w});(O.startIndex!==g||O.endIndex!==x)&&_&&_(O),this.setState({startX:o+w,endX:l+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=O$(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,f=i.startX,c=this.state[o],h=this.props,m=h.x,g=h.width,x=h.travellerWidth,_=h.onChange,w=h.gap,O=h.data,S={startX:this.state.startX,endX:this.state.endX},T=r.pageX-a;T>0?T=Math.min(T,m+g-x-c):T<0&&(T=Math.max(T,m-c)),S[o]=c+T;var A=this.getIndex(S),j=A.startIndex,P=A.endIndex,R=function(){var U=O.length-1;return o==="startX"&&(l>f?j%w===0:P%w===0)||l<f&&P===U||o==="endX"&&(l>f?P%w===0:j%w===0)||l>f&&P===U};this.setState(wi(wi({},o,c+T),"brushMoveStartX",r.pageX),function(){_&&R()&&_(A)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,l=o.scaleValues,f=o.startX,c=o.endX,h=this.state[i],m=l.indexOf(h);if(m!==-1){var g=m+r;if(!(g===-1||g>=l.length)){var x=l[g];i==="startX"&&x>=c||i==="endX"&&x<=f||this.setState(wi({},i,x),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.fill,c=r.stroke;return J.createElement("rect",{stroke:c,fill:f,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.data,c=r.children,h=r.padding,m=I.Children.only(c);return m?J.cloneElement(m,{x:i,y:a,width:o,height:l,margin:h,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,o,l=this,f=this.props,c=f.y,h=f.travellerWidth,m=f.height,g=f.traveller,x=f.ariaLabel,_=f.data,w=f.startIndex,O=f.endIndex,S=Math.max(r,this.props.x),T=eE(eE({},it(this.props,!1)),{},{x:S,y:c,width:h,height:m}),A=x||"Min value: ".concat((a=_[w])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=_[O])===null||o===void 0?void 0:o.name);return J.createElement(wt,{tabIndex:0,role:"slider","aria-label":A,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),l.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,T))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,l=a.height,f=a.stroke,c=a.travellerWidth,h=Math.min(r,i)+c,m=Math.max(Math.abs(i-r)-c,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:h,y:o,width:m,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,l=r.height,f=r.travellerWidth,c=r.stroke,h=this.state,m=h.startX,g=h.endX,x=5,_={pointerEvents:"none",fill:c};return J.createElement(wt,{className:"recharts-brush-texts"},J.createElement(sc,i0({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,g)-x,y:o+l/2},_),this.getTextOfTick(i)),J.createElement(sc,i0({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,g)+f+x,y:o+l/2},_),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,l=r.x,f=r.y,c=r.width,h=r.height,m=r.alwaysShowText,g=this.state,x=g.startX,_=g.endX,w=g.isTextActive,O=g.isSlideMoving,S=g.isTravellerMoving,T=g.isTravellerFocused;if(!i||!i.length||!We(l)||!We(f)||!We(c)||!We(h)||c<=0||h<=0)return null;var A=Ve("recharts-brush",a),j=J.Children.count(o)===1,P=fOe("userSelect","none");return J.createElement(wt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),j&&this.renderPanorama(),this.renderSlide(x,_),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(_,"endX"),(w||O||S||T||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,l=r.height,f=r.stroke,c=Math.floor(a+l/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:i,y:a,width:o,height:l,fill:f,stroke:"none"}),J.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return J.isValidElement(r)?a=J.cloneElement(r,i):ct(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,l=r.x,f=r.travellerWidth,c=r.updateId,h=r.startIndex,m=r.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return eE({prevData:a,prevTravellerWidth:f,prevUpdateId:c,prevX:l,prevWidth:o},a&&a.length?bOe({data:a,width:o,x:l,travellerWidth:f,startIndex:h,endIndex:m}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([l,l+o-f]);var g=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:a,prevTravellerWidth:f,prevUpdateId:c,prevX:l,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,l=a-1;l-o>1;){var f=Math.floor((o+l)/2);r[f]>i?l=f:o=f}return i>=r[l]?l:o}}])}(I.PureComponent);wi(hd,"displayName","Brush");wi(hd,"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 tE,S$;function _Oe(){if(S$)return tE;S$=1;var e=DP();function t(n,r){var i;return e(n,function(a,o,l){return i=r(a,o,l),!i}),!!i}return tE=t,tE}var nE,E$;function xOe(){if(E$)return nE;E$=1;var e=XF(),t=vo(),n=_Oe(),r=ai(),i=u_();function a(o,l,f){var c=r(o)?e:n;return f&&i(o,l,f)&&(l=void 0),c(o,t(l,3))}return nE=a,nE}var wOe=xOe();const OOe=Dt(wOe);var ro=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},rE,T$;function SOe(){if(T$)return rE;T$=1;var e=mz();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return rE=t,rE}var iE,C$;function EOe(){if(C$)return iE;C$=1;var e=SOe(),t=hz(),n=vo();function r(i,a){var o={};return a=n(a,3),t(i,function(l,f,c){e(o,f,a(l,f,c))}),o}return iE=r,iE}var TOe=EOe();const COe=Dt(TOe);var aE,A$;function AOe(){if(A$)return aE;A$=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return aE=e,aE}var oE,j$;function jOe(){if(j$)return oE;j$=1;var e=DP();function t(n,r){var i=!0;return e(n,function(a,o,l){return i=!!r(a,o,l),i}),i}return oE=t,oE}var sE,P$;function POe(){if(P$)return sE;P$=1;var e=AOe(),t=jOe(),n=vo(),r=ai(),i=u_();function a(o,l,f){var c=r(o)?e:t;return f&&i(o,l,f)&&(l=void 0),c(o,n(l,3))}return sE=a,sE}var ROe=POe();const tV=Dt(ROe);var MOe=["x","y"];function Im(e){"@babel/helpers - typeof";return Im=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},Im(e)}function PA(){return PA=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},PA.apply(this,arguments)}function R$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R$(Object(n),!0).forEach(function(r){NOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NOe(e,t,n){return t=LOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LOe(e){var t=DOe(e,"string");return Im(t)=="symbol"?t:t+""}function DOe(e,t){if(Im(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Im(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kOe(e,t){if(e==null)return{};var n=IOe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IOe(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 $Oe(e,t){var n=e.x,r=e.y,i=kOe(e,MOe),a="".concat(n),o=parseInt(a,10),l="".concat(r),f=parseInt(l,10),c="".concat(t.height||i.height),h=parseInt(c,10),m="".concat(t.width||i.width),g=parseInt(m,10);return dp(dp(dp(dp(dp({},t),i),o?{x:o}:{}),f?{y:f}:{}),{},{height:h,width:g,name:t.name,radius:t.radius})}function M$(e){return J.createElement(t0,PA({shapeType:"rectangle",propTransformer:$Oe,activeClassName:"recharts-active-bar"},e))}var UOe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var a=typeof r=="number";return a?t(r,i):(a||uc(),n)}},BOe=["value","background"],nV;function pd(e){"@babel/helpers - typeof";return pd=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},pd(e)}function FOe(e,t){if(e==null)return{};var n=zOe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zOe(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 o0(){return o0=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},o0.apply(this,arguments)}function N$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N$(Object(n),!0).forEach(function(r){Ol(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L$(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,iV(r.key),r)}}function VOe(e,t,n){return t&&L$(e.prototype,t),n&&L$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function HOe(e,t,n){return t=s0(t),WOe(e,rV()?Reflect.construct(t,n||[],s0(e).constructor):t.apply(e,n))}function WOe(e,t){if(t&&(pd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GOe(e)}function GOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rV=function(){return!!e})()}function s0(e){return s0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},s0(e)}function YOe(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&&RA(e,t)}function RA(e,t){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RA(e,t)}function Ol(e,t,n){return t=iV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iV(e){var t=KOe(e,"string");return pd(t)=="symbol"?t:t+""}function KOe(e,t){if(pd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ts=function(e){function t(){var n;qOe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=HOe(this,t,[].concat(i)),Ol(n,"state",{isAnimationFinished:!1}),Ol(n,"id",Wl("recharts-bar-")),Ol(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ol(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return YOe(t,e),VOe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.dataKey,f=a.activeIndex,c=a.activeBar,h=it(this.props,!1);return r&&r.map(function(m,g){var x=g===f,_=x?c:o,w=zn(zn(zn({},h),m),{},{isActive:x,option:_,index:g,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return J.createElement(wt,o0({className:"recharts-bar-rectangle"},kl(i.props,m,g),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value)}),J.createElement(M$,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,a=i.data,o=i.layout,l=i.isAnimationActive,f=i.animationBegin,c=i.animationDuration,h=i.animationEasing,m=i.animationId,g=this.state.prevData;return J.createElement(ia,{begin:f,duration:c,isActive:l,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var _=x.t,w=a.map(function(O,S){var T=g&&g[S];if(T){var A=An(T.x,O.x),j=An(T.y,O.y),P=An(T.width,O.width),R=An(T.height,O.height);return zn(zn({},O),{},{x:A(_),y:j(_),width:P(_),height:R(_)})}if(o==="horizontal"){var D=An(0,O.height),U=D(_);return zn(zn({},O),{},{y:O.y+O.height-U,height:U})}var z=An(0,O.width),F=z(_);return zn(zn({},O),{},{width:F})});return J.createElement(wt,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,a=r.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Il(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,a=i.data,o=i.dataKey,l=i.activeIndex,f=it(this.props.background,!1);return a.map(function(c,h){c.value;var m=c.background,g=FOe(c,BOe);if(!m)return null;var x=zn(zn(zn(zn(zn({},g),{},{fill:"#eee"},m),f),kl(r.props,c,h)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:h,className:"recharts-bar-background-rectangle"});return J.createElement(M$,o0({key:"background-bar-".concat(h),option:r.props.background,isActive:h===l},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,l=a.xAxis,f=a.yAxis,c=a.layout,h=a.children,m=Vr(h,qd);if(!m)return null;var g=c==="vertical"?o[0].height/2:o[0].width/2,x=function(O,S){var T=Array.isArray(O.value)?O.value[1]:O.value;return{x:O.x,y:O.y,value:T,errorVal:mn(O,S)}},_={clipPath:r?"url(#clipPath-".concat(i,")"):null};return J.createElement(wt,_,m.map(function(w){return J.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:o,xAxis:l,yAxis:f,layout:c,offset:g,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.data,o=r.className,l=r.xAxis,f=r.yAxis,c=r.left,h=r.top,m=r.width,g=r.height,x=r.isAnimationActive,_=r.background,w=r.id;if(i||!a||!a.length)return null;var O=this.state.isAnimationFinished,S=Ve("recharts-bar",o),T=l&&l.allowDataOverflow,A=f&&f.allowDataOverflow,j=T||A,P=ft(w)?this.id:w;return J.createElement(wt,{className:S},T||A?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(P)},J.createElement("rect",{x:T?c:c-m/2,y:A?h:h-g/2,width:T?m:m*2,height:A?g:g*2}))):null,J.createElement(wt,{className:"recharts-bar-rectangles",clipPath:j?"url(#clipPath-".concat(P,")"):null},_?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(j,P),(!x||O)&&xa.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(I.PureComponent);nV=ts;Ol(ts,"displayName","Bar");Ol(ts,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!bs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ol(ts,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,l=e.xAxisTicks,f=e.yAxisTicks,c=e.stackedData,h=e.dataStartIndex,m=e.displayedData,g=e.offset,x=C_e(r,n);if(!x)return null;var _=t.layout,w=n.type.defaultProps,O=w!==void 0?zn(zn({},w),n.props):n.props,S=O.dataKey,T=O.children,A=O.minPointSize,j=_==="horizontal"?o:a,P=c?j.scale.domain():null,R=L_e({numericAxis:j}),D=Vr(T,Cl),U=m.map(function(z,F){var V,H,te,ee,re,Q;c?V=A_e(c[h+F],P):(V=mn(z,S),Array.isArray(V)||(V=[R,V]));var oe=UOe(A,nV.defaultProps.minPointSize)(V[1],F);if(_==="horizontal"){var le,X=[o.scale(V[0]),o.scale(V[1])],$=X[0],G=X[1];H=uI({axis:a,ticks:l,bandSize:i,offset:x.offset,entry:z,index:F}),te=(le=G??$)!==null&&le!==void 0?le:void 0,ee=x.size;var se=$-G;if(re=Number.isNaN(se)?0:se,Q={x:H,y:o.y,width:ee,height:o.height},Math.abs(oe)>0&&Math.abs(re)<Math.abs(oe)){var Z=Ur(re||oe)*(Math.abs(oe)-Math.abs(re));te-=Z,re+=Z}}else{var ue=[a.scale(V[0]),a.scale(V[1])],fe=ue[0],de=ue[1];if(H=fe,te=uI({axis:o,ticks:f,bandSize:i,offset:x.offset,entry:z,index:F}),ee=de-fe,re=x.size,Q={x:a.x,y:te,width:a.width,height:re},Math.abs(oe)>0&&Math.abs(ee)<Math.abs(oe)){var Se=Ur(ee||oe)*(Math.abs(oe)-Math.abs(ee));ee+=Se}}return zn(zn(zn({},z),{},{x:H,y:te,width:ee,height:re,value:c?V:V[1],payload:z,background:Q},D&&D[F]&&D[F].props),{},{tooltipPayload:[Rq(n,z)],tooltipPosition:{x:H+ee/2,y:te+re/2}})});return zn({data:U,layout:_},g)});function $m(e){"@babel/helpers - typeof";return $m=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},$m(e)}function ZOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D$(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,aV(r.key),r)}}function XOe(e,t,n){return t&&D$(e.prototype,t),n&&D$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?k$(Object(n),!0).forEach(function(r){T_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T_(e,t,n){return t=aV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aV(e){var t=QOe(e,"string");return $m(t)=="symbol"?t:t+""}function QOe(e,t){if($m(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($m(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oV=function(t,n,r,i,a){var o=t.width,l=t.height,f=t.layout,c=t.children,h=Object.keys(n),m={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},g=!!Oi(c,ts);return h.reduce(function(x,_){var w=n[_],O=w.orientation,S=w.domain,T=w.padding,A=T===void 0?{}:T,j=w.mirror,P=w.reversed,R="".concat(O).concat(j?"Mirror":""),D,U,z,F,V;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var H=S[1]-S[0],te=1/0,ee=w.categoricalDomain.sort();if(ee.forEach(function(ue,fe){fe>0&&(te=Math.min((ue||0)-(ee[fe-1]||0),te))}),Number.isFinite(te)){var re=te/H,Q=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(D=re*Q/2),w.padding==="no-gap"){var oe=Br(t.barCategoryGap,re*Q),le=re*Q/2;D=le-oe-(le-oe)/Q*oe}}}i==="xAxis"?U=[r.left+(A.left||0)+(D||0),r.left+r.width-(A.right||0)-(D||0)]:i==="yAxis"?U=f==="horizontal"?[r.top+r.height-(A.bottom||0),r.top+(A.top||0)]:[r.top+(A.top||0)+(D||0),r.top+r.height-(A.bottom||0)-(D||0)]:U=w.range,P&&(U=[U[1],U[0]]);var X=Cq(w,a,g),$=X.scale,G=X.realScaleType;$.domain(S).range(U),Aq($);var se=jq($,va(va({},w),{},{realScaleType:G}));i==="xAxis"?(V=O==="top"&&!j||O==="bottom"&&j,z=r.left,F=m[R]-V*w.height):i==="yAxis"&&(V=O==="left"&&!j||O==="right"&&j,z=m[R]-V*w.width,F=r.top);var Z=va(va(va({},w),se),{},{realScaleType:G,x:z,y:F,scale:$,width:i==="xAxis"?r.width:w.width,height:i==="yAxis"?r.height:w.height});return Z.bandSize=Vb(Z,se),!w.hide&&i==="xAxis"?m[R]+=(V?-1:1)*Z.height:w.hide||(m[R]+=(V?-1:1)*Z.width),va(va({},x),{},T_({},_,Z))},{})},sV=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},JOe=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return sV({x:n,y:r},{x:i,y:a})},lV=function(){function e(t){ZOe(this,e),this.scale=t}return XOe(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]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();T_(lV,"EPS",1e-4);var c3=function(t){var n=Object.keys(t).reduce(function(r,i){return va(va({},r),{},T_({},i,lV.create(t[i])))},{});return va(va({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return COe(i,function(f,c){return n[c].apply(f,{bandAware:o,position:l})})},isInRange:function(i){return tV(i,function(a,o){return n[o].isInRange(a)})}})};function eSe(e){return(e%180+180)%180}var tSe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=eSe(i),o=a*Math.PI/180,l=Math.atan(r/n),f=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(f)},lE,I$;function nSe(){if(I$)return lE;I$=1;var e=vo(),t=cv(),n=s_();function r(i){return function(a,o,l){var f=Object(a);if(!t(a)){var c=e(o,3);a=n(a),o=function(m){return c(f[m],m,f)}}var h=i(a,o,l);return h>-1?f[c?a[h]:h]:void 0}}return lE=r,lE}var uE,$$;function rSe(){if($$)return uE;$$=1;var e=Xq();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return uE=t,uE}var cE,U$;function iSe(){if(U$)return cE;U$=1;var e=lz(),t=vo(),n=rSe(),r=Math.max;function i(a,o,l){var f=a==null?0:a.length;if(!f)return-1;var c=l==null?0:n(l);return c<0&&(c=r(f+c,0)),e(a,t(o,3),c)}return cE=i,cE}var fE,B$;function aSe(){if(B$)return fE;B$=1;var e=nSe(),t=iSe(),n=e(t);return fE=n,fE}var oSe=aSe();const sSe=Dt(oSe);var lSe=OF();const uSe=Dt(lSe);var cSe=uSe(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("")}),f3=I.createContext(void 0),d3=I.createContext(void 0),uV=I.createContext(void 0),cV=I.createContext({}),fV=I.createContext(void 0),dV=I.createContext(0),hV=I.createContext(0),F$=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,l=t.children,f=t.width,c=t.height,h=cSe(a);return J.createElement(f3.Provider,{value:r},J.createElement(d3.Provider,{value:i},J.createElement(cV.Provider,{value:a},J.createElement(uV.Provider,{value:h},J.createElement(fV.Provider,{value:o},J.createElement(dV.Provider,{value:c},J.createElement(hV.Provider,{value:f},l)))))))},fSe=function(){return I.useContext(fV)},pV=function(t){var n=I.useContext(f3);n==null&&uc();var r=n[t];return r==null&&uc(),r},dSe=function(){var t=I.useContext(f3);return xl(t)},hSe=function(){var t=I.useContext(d3),n=sSe(t,function(r){return tV(r.domain,Number.isFinite)});return n||xl(t)},mV=function(t){var n=I.useContext(d3);n==null&&uc();var r=n[t];return r==null&&uc(),r},pSe=function(){var t=I.useContext(uV);return t},mSe=function(){return I.useContext(cV)},h3=function(){return I.useContext(hV)},p3=function(){return I.useContext(dV)};function md(e){"@babel/helpers - typeof";return md=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},md(e)}function vSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gSe(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,gV(r.key),r)}}function ySe(e,t,n){return t&&gSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bSe(e,t,n){return t=l0(t),_Se(e,vV()?Reflect.construct(t,n||[],l0(e).constructor):t.apply(e,n))}function _Se(e,t){if(t&&(md(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xSe(e)}function xSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vV=function(){return!!e})()}function l0(e){return l0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},l0(e)}function wSe(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&&MA(e,t)}function MA(e,t){return MA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MA(e,t)}function z$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z$(Object(n),!0).forEach(function(r){m3(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 m3(e,t,n){return t=gV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gV(e){var t=OSe(e,"string");return md(t)=="symbol"?t:t+""}function OSe(e,t){if(md(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(md(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function SSe(e,t){return ASe(e)||CSe(e,t)||TSe(e,t)||ESe()}function ESe(){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 TSe(e,t){if(e){if(typeof e=="string")return V$(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 V$(e,t)}}function V$(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 CSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function ASe(e){if(Array.isArray(e))return e}function NA(){return NA=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},NA.apply(this,arguments)}var jSe=function(t,n){var r;return J.isValidElement(t)?r=J.cloneElement(t,n):ct(t)?r=t(n):r=J.createElement("line",NA({},n,{className:"recharts-reference-line-line"})),r},PSe=function(t,n,r,i,a,o,l,f,c){var h=a.x,m=a.y,g=a.width,x=a.height;if(r){var _=c.y,w=t.y.apply(_,{position:o});if(ro(c,"discard")&&!t.y.isInRange(w))return null;var O=[{x:h+g,y:w},{x:h,y:w}];return f==="left"?O.reverse():O}if(n){var S=c.x,T=t.x.apply(S,{position:o});if(ro(c,"discard")&&!t.x.isInRange(T))return null;var A=[{x:T,y:m+x},{x:T,y:m}];return l==="top"?A.reverse():A}if(i){var j=c.segment,P=j.map(function(R){return t.apply(R,{position:o})});return ro(c,"discard")&&OOe(P,function(R){return!t.isInRange(R)})?null:P}return null};function RSe(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,f=e.alwaysShow,c=fSe(),h=pV(i),m=mV(a),g=pSe();if(!c||!g)return null;_a(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=c3({x:h.scale,y:m.scale}),_=Kn(t),w=Kn(n),O=r&&r.length===2,S=PSe(x,_,w,O,g,e.position,h.orientation,m.orientation,e);if(!S)return null;var T=SSe(S,2),A=T[0],j=A.x,P=A.y,R=T[1],D=R.x,U=R.y,z=ro(e,"hidden")?"url(#".concat(c,")"):void 0,F=q$(q$({clipPath:z},it(e,!0)),{},{x1:j,y1:P,x2:D,y2:U});return J.createElement(wt,{className:Ve("recharts-reference-line",l)},jSe(o,F),lr.renderCallByParent(e,JOe({x1:j,y1:P,x2:D,y2:U})))}var v3=function(e){function t(){return vSe(this,t),bSe(this,t,arguments)}return wSe(t,e),ySe(t,[{key:"render",value:function(){return J.createElement(RSe,this.props)}}])}(J.Component);m3(v3,"displayName","ReferenceLine");m3(v3,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function LA(){return LA=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},LA.apply(this,arguments)}function vd(e){"@babel/helpers - typeof";return vd=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},vd(e)}function H$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function W$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H$(Object(n),!0).forEach(function(r){C_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NSe(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,bV(r.key),r)}}function LSe(e,t,n){return t&&NSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DSe(e,t,n){return t=u0(t),kSe(e,yV()?Reflect.construct(t,n||[],u0(e).constructor):t.apply(e,n))}function kSe(e,t){if(t&&(vd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ISe(e)}function ISe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yV=function(){return!!e})()}function u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},u0(e)}function $Se(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&&DA(e,t)}function DA(e,t){return DA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},DA(e,t)}function C_(e,t,n){return t=bV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bV(e){var t=USe(e,"string");return vd(t)=="symbol"?t:t+""}function USe(e,t){if(vd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var BSe=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,o=c3({x:i.scale,y:a.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return ro(t,"discard")&&!o.isInRange(l)?null:l},A_=function(e){function t(){return MSe(this,t),DSe(this,t,arguments)}return $Se(t,e),LSe(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,o=r.r,l=r.alwaysShow,f=r.clipPathId,c=Kn(i),h=Kn(a);if(_a(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!h)return null;var m=BSe(this.props);if(!m)return null;var g=m.x,x=m.y,_=this.props,w=_.shape,O=_.className,S=ro(this.props,"hidden")?"url(#".concat(f,")"):void 0,T=W$(W$({clipPath:S},it(this.props,!0)),{},{cx:g,cy:x});return J.createElement(wt,{className:Ve("recharts-reference-dot",O)},t.renderDot(w,T),lr.renderCallByParent(this.props,{x:g-o,y:x-o,width:2*o,height:2*o}))}}])}(J.Component);C_(A_,"displayName","ReferenceDot");C_(A_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});C_(A_,"renderDot",function(e,t){var n;return J.isValidElement(e)?n=J.cloneElement(e,t):ct(e)?n=e(t):n=J.createElement(mv,LA({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function kA(){return kA=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},kA.apply(this,arguments)}function gd(e){"@babel/helpers - typeof";return gd=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},gd(e)}function G$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G$(Object(n),!0).forEach(function(r){j_(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 FSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zSe(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,xV(r.key),r)}}function qSe(e,t,n){return t&&zSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VSe(e,t,n){return t=c0(t),HSe(e,_V()?Reflect.construct(t,n||[],c0(e).constructor):t.apply(e,n))}function HSe(e,t){if(t&&(gd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WSe(e)}function WSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_V=function(){return!!e})()}function c0(e){return c0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},c0(e)}function GSe(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&&IA(e,t)}function IA(e,t){return IA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},IA(e,t)}function j_(e,t,n){return t=xV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xV(e){var t=YSe(e,"string");return gd(t)=="symbol"?t:t+""}function YSe(e,t){if(gd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KSe=function(t,n,r,i,a){var o=a.x1,l=a.x2,f=a.y1,c=a.y2,h=a.xAxis,m=a.yAxis;if(!h||!m)return null;var g=c3({x:h.scale,y:m.scale}),x={x:t?g.x.apply(o,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},_={x:n?g.x.apply(l,{position:"end"}):g.x.rangeMax,y:i?g.y.apply(c,{position:"end"}):g.y.rangeMax};return ro(a,"discard")&&(!g.isInRange(x)||!g.isInRange(_))?null:sV(x,_)},vv=function(e){function t(){return FSe(this,t),VSe(this,t,arguments)}return GSe(t,e),qSe(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,o=r.y1,l=r.y2,f=r.className,c=r.alwaysShow,h=r.clipPathId;_a(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Kn(i),g=Kn(a),x=Kn(o),_=Kn(l),w=this.props.shape;if(!m&&!g&&!x&&!_&&!w)return null;var O=KSe(m,g,x,_,this.props);if(!O&&!w)return null;var S=ro(this.props,"hidden")?"url(#".concat(h,")"):void 0;return J.createElement(wt,{className:Ve("recharts-reference-area",f)},t.renderRect(w,Y$(Y$({clipPath:S},it(this.props,!0)),O)),lr.renderCallByParent(this.props,O))}}])}(J.Component);j_(vv,"displayName","ReferenceArea");j_(vv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});j_(vv,"renderRect",function(e,t){var n;return J.isValidElement(e)?n=J.cloneElement(e,t):ct(e)?n=e(t):n=J.createElement(u3,kA({},t,{className:"recharts-reference-area-rect"})),n});function wV(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function ZSe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return tSe(r,n)}function XSe(e,t,n){var r=n==="width",i=e.x,a=e.y,o=e.width,l=e.height;return t===1?{start:r?i:a,end:r?i+o:a+l}:{start:r?i+o:a+l,end:r?i:a}}function f0(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function QSe(e,t){return wV(e,t+1)}function JSe(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,l=t.end,f=0,c=1,h=o,m=function(){var _=r==null?void 0:r[f];if(_===void 0)return{v:wV(r,c)};var w=f,O,S=function(){return O===void 0&&(O=n(_,w)),O},T=_.coordinate,A=f===0||f0(e,T,S,h,l);A||(f=0,h=o,c+=1),A&&(h=T+e*(S()/2+i),f+=c)},g;c<=a.length;)if(g=m(),g)return g.v;return[]}function Um(e){"@babel/helpers - typeof";return Um=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},Um(e)}function K$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K$(Object(n),!0).forEach(function(r){eEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eEe(e,t,n){return t=tEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tEe(e){var t=nEe(e,"string");return Um(t)=="symbol"?t:t+""}function nEe(e,t){if(Um(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Um(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rEe(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,l=t.start,f=t.end,c=function(g){var x=a[g],_,w=function(){return _===void 0&&(_=n(x,g)),_};if(g===o-1){var O=e*(x.coordinate+e*w()/2-f);a[g]=x=Tr(Tr({},x),{},{tickCoord:O>0?x.coordinate-O*e:x.coordinate})}else a[g]=x=Tr(Tr({},x),{},{tickCoord:x.coordinate});var S=f0(e,x.tickCoord,w,l,f);S&&(f=x.tickCoord-e*(w()/2+i),a[g]=Tr(Tr({},x),{},{isShow:!0}))},h=o-1;h>=0;h--)c(h);return a}function iEe(e,t,n,r,i,a){var o=(r||[]).slice(),l=o.length,f=t.start,c=t.end;if(a){var h=r[l-1],m=n(h,l-1),g=e*(h.coordinate+e*m/2-c);o[l-1]=h=Tr(Tr({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate});var x=f0(e,h.tickCoord,function(){return m},f,c);x&&(c=h.tickCoord-e*(m/2+i),o[l-1]=Tr(Tr({},h),{},{isShow:!0}))}for(var _=a?l-1:l,w=function(T){var A=o[T],j,P=function(){return j===void 0&&(j=n(A,T)),j};if(T===0){var R=e*(A.coordinate-e*P()/2-f);o[T]=A=Tr(Tr({},A),{},{tickCoord:R<0?A.coordinate-R*e:A.coordinate})}else o[T]=A=Tr(Tr({},A),{},{tickCoord:A.coordinate});var D=f0(e,A.tickCoord,P,f,c);D&&(f=A.tickCoord+e*(P()/2+i),o[T]=Tr(Tr({},A),{},{isShow:!0}))},O=0;O<_;O++)w(O);return o}function g3(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,l=e.orientation,f=e.interval,c=e.tickFormatter,h=e.unit,m=e.angle;if(!i||!i.length||!r)return[];if(We(f)||bs.isSsr)return QSe(i,typeof f=="number"&&We(f)?f:0);var g=[],x=l==="top"||l==="bottom"?"width":"height",_=h&&x==="width"?Lp(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(A,j){var P=ct(c)?c(A.value,j):A.value;return x==="width"?ZSe(Lp(P,{fontSize:t,letterSpacing:n}),_,m):Lp(P,{fontSize:t,letterSpacing:n})[x]},O=i.length>=2?Ur(i[1].coordinate-i[0].coordinate):1,S=XSe(a,O,x);return f==="equidistantPreserveStart"?JSe(O,S,w,i,o):(f==="preserveStart"||f==="preserveStartEnd"?g=iEe(O,S,w,i,o,f==="preserveStartEnd"):g=rEe(O,S,w,i,o),g.filter(function(T){return T.isShow}))}var aEe=["viewBox"],oEe=["viewBox"],sEe=["ticks"];function yd(e){"@babel/helpers - typeof";return yd=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},yd(e)}function Nf(){return Nf=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},Nf.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(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ir(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){y3(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 dE(e,t){if(e==null)return{};var n=lEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lEe(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 uEe(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,SV(r.key),r)}}function cEe(e,t,n){return t&&X$(e.prototype,t),n&&X$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fEe(e,t,n){return t=d0(t),dEe(e,OV()?Reflect.construct(t,n||[],d0(e).constructor):t.apply(e,n))}function dEe(e,t){if(t&&(yd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hEe(e)}function hEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OV=function(){return!!e})()}function d0(e){return d0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},d0(e)}function pEe(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&&$A(e,t)}function $A(e,t){return $A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$A(e,t)}function y3(e,t,n){return t=SV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SV(e){var t=mEe(e,"string");return yd(t)=="symbol"?t:t+""}function mEe(e,t){if(yd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vd=function(e){function t(n){var r;return uEe(this,t),r=fEe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return pEe(t,e),cEe(t,[{key:"shouldComponentUpdate",value:function(r,i){var a=r.viewBox,o=dE(r,aEe),l=this.props,f=l.viewBox,c=dE(l,oEe);return!If(a,f)||!If(o,c)||!If(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.x,o=i.y,l=i.width,f=i.height,c=i.orientation,h=i.tickSize,m=i.mirror,g=i.tickMargin,x,_,w,O,S,T,A=m?-1:1,j=r.tickSize||h,P=We(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":x=_=r.coordinate,O=o+ +!m*f,w=O-A*j,T=w-A*g,S=P;break;case"left":w=O=r.coordinate,_=a+ +!m*l,x=_-A*j,S=x-A*g,T=P;break;case"right":w=O=r.coordinate,_=a+ +m*l,x=_+A*j,S=x+A*g,T=P;break;default:x=_=r.coordinate,O=o+ +m*f,w=O+A*j,T=w+A*g,S=P;break}return{line:{x1:x,y1:w,x2:_,y2:O},tick:{x:S,y:T}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.orientation,c=r.mirror,h=r.axisLine,m=Ir(Ir(Ir({},it(this.props,!1)),it(h,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!c||f==="bottom"&&c);m=Ir(Ir({},m),{},{x1:i,y1:a+g*l,x2:i+o,y2:a+g*l})}else{var x=+(f==="left"&&!c||f==="right"&&c);m=Ir(Ir({},m),{},{x1:i+x*o,y1:a,x2:i+x*o,y2:a+l})}return J.createElement("line",Nf({},m,{className:Ve("recharts-cartesian-axis-line",Ti(h,"className"))}))}},{key:"renderTicks",value:function(r,i,a){var o=this,l=this.props,f=l.tickLine,c=l.stroke,h=l.tick,m=l.tickFormatter,g=l.unit,x=g3(Ir(Ir({},this.props),{},{ticks:r}),i,a),_=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),O=it(this.props,!1),S=it(h,!1),T=Ir(Ir({},O),{},{fill:"none"},it(f,!1)),A=x.map(function(j,P){var R=o.getTickLineCoord(j),D=R.line,U=R.tick,z=Ir(Ir(Ir(Ir({textAnchor:_,verticalAnchor:w},O),{},{stroke:"none",fill:c},S),U),{},{index:P,payload:j,visibleTicksCount:x.length,tickFormatter:m});return J.createElement(wt,Nf({className:"recharts-cartesian-axis-tick",key:"tick-".concat(j.value,"-").concat(j.coordinate,"-").concat(j.tickCoord)},kl(o.props,j,P)),f&&J.createElement("line",Nf({},T,D,{className:Ve("recharts-cartesian-axis-tick-line",Ti(f,"className"))})),h&&t.renderTickItem(h,z,"".concat(ct(m)?m(j.value,P):j.value).concat(g||"")))});return J.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var r=this,i=this.props,a=i.axisLine,o=i.width,l=i.height,f=i.ticksGenerator,c=i.className,h=i.hide;if(h)return null;var m=this.props,g=m.ticks,x=dE(m,sEe),_=g;return ct(f)&&(_=g&&g.length>0?f(this.props):f(x)),o<=0||l<=0||!_||!_.length?null:J.createElement(wt,{className:Ve("recharts-cartesian-axis",c),ref:function(O){r.layerReference=O}},a&&this.renderAxisLine(),this.renderTicks(_,this.state.fontSize,this.state.letterSpacing),lr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return J.isValidElement(r)?o=J.cloneElement(r,i):ct(r)?o=r(i):o=J.createElement(sc,Nf({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(I.Component);y3(Vd,"displayName","CartesianAxis");y3(Vd,"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 vEe=["x1","y1","x2","y2","key"],gEe=["offset"];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 Q$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?Q$(Object(n),!0).forEach(function(r){yEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yEe(e,t,n){return t=bEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bEe(e){var t=_Ee(e,"string");return cc(t)=="symbol"?t:t+""}function _Ee(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(t==="string"?String:Number)(e)}function Vu(){return Vu=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},Vu.apply(this,arguments)}function J$(e,t){if(e==null)return{};var n=xEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xEe(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 wEe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,a=t.y,o=t.width,l=t.height,f=t.ry;return J.createElement("rect",{x:i,y:a,ry:f,width:o,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function EV(e,t){var n;if(J.isValidElement(e))n=J.cloneElement(e,t);else if(ct(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,l=t.key,f=J$(t,vEe),c=it(f,!1);c.offset;var h=J$(c,gEe);n=J.createElement("line",Vu({},h,{x1:r,y1:i,x2:a,y2:o,fill:"none",key:l}))}return n}function OEe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,f){var c=Cr(Cr({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(f),index:f});return EV(i,c)});return J.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function SEe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,f){var c=Cr(Cr({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(f),index:f});return EV(i,c)});return J.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function EEe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,l=e.horizontalPoints,f=e.horizontal,c=f===void 0?!0:f;if(!c||!t||!t.length)return null;var h=l.map(function(g){return Math.round(g+i-i)}).sort(function(g,x){return g-x});i!==h[0]&&h.unshift(0);var m=h.map(function(g,x){var _=!h[x+1],w=_?i+o-g:h[x+1]-g;if(w<=0)return null;var O=x%t.length;return J.createElement("rect",{key:"react-".concat(x),y:g,x:r,height:w,width:a,stroke:"none",fill:t[O],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function TEe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,l=e.width,f=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var h=c.map(function(g){return Math.round(g+a-a)}).sort(function(g,x){return g-x});a!==h[0]&&h.unshift(0);var m=h.map(function(g,x){var _=!h[x+1],w=_?a+l-g:h[x+1]-g;if(w<=0)return null;var O=x%r.length;return J.createElement("rect",{key:"react-".concat(x),x:g,y:o,width:w,height:f,stroke:"none",fill:r[O],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var CEe=function(t,n){var r=t.xAxis,i=t.width,a=t.height,o=t.offset;return Tq(g3(Cr(Cr(Cr({},Vd.defaultProps),r),{},{ticks:Zo(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,n)},AEe=function(t,n){var r=t.yAxis,i=t.width,a=t.height,o=t.offset;return Tq(g3(Cr(Cr(Cr({},Vd.defaultProps),r),{},{ticks:Zo(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,n)},yf={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function b3(e){var t,n,r,i,a,o,l=h3(),f=p3(),c=mSe(),h=Cr(Cr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:yf.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:yf.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:yf.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:yf.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:yf.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:yf.verticalFill,x:We(e.x)?e.x:c.left,y:We(e.y)?e.y:c.top,width:We(e.width)?e.width:c.width,height:We(e.height)?e.height:c.height}),m=h.x,g=h.y,x=h.width,_=h.height,w=h.syncWithTicks,O=h.horizontalValues,S=h.verticalValues,T=dSe(),A=hSe();if(!We(x)||x<=0||!We(_)||_<=0||!We(m)||m!==+m||!We(g)||g!==+g)return null;var j=h.verticalCoordinatesGenerator||CEe,P=h.horizontalCoordinatesGenerator||AEe,R=h.horizontalPoints,D=h.verticalPoints;if((!R||!R.length)&&ct(P)){var U=O&&O.length,z=P({yAxis:A?Cr(Cr({},A),{},{ticks:U?O:A.ticks}):void 0,width:l,height:f,offset:c},U?!0:w);_a(Array.isArray(z),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(cc(z),"]")),Array.isArray(z)&&(R=z)}if((!D||!D.length)&&ct(j)){var F=S&&S.length,V=j({xAxis:T?Cr(Cr({},T),{},{ticks:F?S:T.ticks}):void 0,width:l,height:f,offset:c},F?!0:w);_a(Array.isArray(V),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(cc(V),"]")),Array.isArray(V)&&(D=V)}return J.createElement("g",{className:"recharts-cartesian-grid"},J.createElement(wEe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),J.createElement(OEe,Vu({},h,{offset:c,horizontalPoints:R,xAxis:T,yAxis:A})),J.createElement(SEe,Vu({},h,{offset:c,verticalPoints:D,xAxis:T,yAxis:A})),J.createElement(EEe,Vu({},h,{horizontalPoints:R})),J.createElement(TEe,Vu({},h,{verticalPoints:D})))}b3.displayName="CartesianGrid";var jEe=["type","layout","connectNulls","ref"],PEe=["key"];function bd(e){"@babel/helpers - typeof";return bd=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},bd(e)}function e7(e,t){if(e==null)return{};var n=REe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(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}function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bp.apply(this,arguments)}function t7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?t7(Object(n),!0).forEach(function(r){ga(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bf(e){return DEe(e)||LEe(e)||NEe(e)||MEe()}function MEe(){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 NEe(e,t){if(e){if(typeof e=="string")return UA(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 UA(e,t)}}function LEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DEe(e){if(Array.isArray(e))return UA(e)}function UA(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 kEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n7(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,CV(r.key),r)}}function IEe(e,t,n){return t&&n7(e.prototype,t),n&&n7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Ee(e,t,n){return t=h0(t),UEe(e,TV()?Reflect.construct(t,n||[],h0(e).constructor):t.apply(e,n))}function UEe(e,t){if(t&&(bd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BEe(e)}function BEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TV=function(){return!!e})()}function h0(e){return h0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},h0(e)}function FEe(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&&BA(e,t)}function BA(e,t){return BA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},BA(e,t)}function ga(e,t,n){return t=CV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CV(e){var t=zEe(e,"string");return bd(t)=="symbol"?t:t+""}function zEe(e,t){if(bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hd=function(e){function t(){var n;kEe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=$Ee(this,t,[].concat(i)),ga(n,"state",{isAnimationFinished:!0,totalLength:0}),ga(n,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),ga(n,"getStrokeDasharray",function(o,l,f){var c=f.reduce(function(S,T){return S+T});if(!c)return n.generateSimpleStrokeDasharray(l,o);for(var h=Math.floor(o/c),m=o%c,g=l-o,x=[],_=0,w=0;_<f.length;w+=f[_],++_)if(w+f[_]>m){x=[].concat(bf(f.slice(0,_)),[m-w]);break}var O=x.length%2===0?[0,g]:[g];return[].concat(bf(t.repeat(f,h)),bf(x),O).map(function(S){return"".concat(S,"px")}).join(", ")}),ga(n,"id",Wl("recharts-line-")),ga(n,"pathRef",function(o){n.mainCurve=o}),ga(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),ga(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return FEe(t,e),IEe(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,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,f=a.yAxis,c=a.layout,h=a.children,m=Vr(h,qd);if(!m)return null;var g=function(w,O){return{x:w.x,y:w.y,value:w.value,errorVal:mn(w.payload,O)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return J.createElement(wt,x,m.map(function(_){return J.cloneElement(_,{key:"bar-".concat(_.props.dataKey),data:o,xAxis:l,yAxis:f,layout:c,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,f=l.dot,c=l.points,h=l.dataKey,m=it(this.props,!1),g=it(f,!0),x=c.map(function(w,O){var S=_i(_i(_i({key:"dot-".concat(O),r:3},m),g),{},{value:w.value,dataKey:h,cx:w.x,cy:w.y,index:O,payload:w.payload});return t.renderDotItem(f,S)}),_={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return J.createElement(wt,Bp({className:"recharts-line-dots",key:"dots"},_),x)}},{key:"renderCurveStatically",value:function(r,i,a,o){var l=this.props,f=l.type,c=l.layout,h=l.connectNulls;l.ref;var m=e7(l,jEe),g=_i(_i(_i({},it(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:r},o),{},{type:f,layout:c,connectNulls:h});return J.createElement(jl,Bp({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var a=this,o=this.props,l=o.points,f=o.strokeDasharray,c=o.isAnimationActive,h=o.animationBegin,m=o.animationDuration,g=o.animationEasing,x=o.animationId,_=o.animateNewValues,w=o.width,O=o.height,S=this.state,T=S.prevPoints,A=S.totalLength;return J.createElement(ia,{begin:h,duration:m,isActive:c,easing:g,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var P=j.t;if(T){var R=T.length/l.length,D=l.map(function(H,te){var ee=Math.floor(te*R);if(T[ee]){var re=T[ee],Q=An(re.x,H.x),oe=An(re.y,H.y);return _i(_i({},H),{},{x:Q(P),y:oe(P)})}if(_){var le=An(w*2,H.x),X=An(O/2,H.y);return _i(_i({},H),{},{x:le(P),y:X(P)})}return _i(_i({},H),{},{x:H.x,y:H.y})});return a.renderCurveStatically(D,r,i)}var U=An(0,A),z=U(P),F;if(f){var V="".concat(f).split(/[,\s]+/gim).map(function(H){return parseFloat(H)});F=a.getStrokeDasharray(z,A,V)}else F=a.generateSimpleStrokeDasharray(A,z);return a.renderCurveStatically(l,r,i,{strokeDasharray:F})})}},{key:"renderCurve",value:function(r,i){var a=this.props,o=a.points,l=a.isAnimationActive,f=this.state,c=f.prevPoints,h=f.totalLength;return l&&o&&o.length&&(!c&&h>0||!Il(c,o))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(o,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,l=i.points,f=i.className,c=i.xAxis,h=i.yAxis,m=i.top,g=i.left,x=i.width,_=i.height,w=i.isAnimationActive,O=i.id;if(a||!l||!l.length)return null;var S=this.state.isAnimationFinished,T=l.length===1,A=Ve("recharts-line",f),j=c&&c.allowDataOverflow,P=h&&h.allowDataOverflow,R=j||P,D=ft(O)?this.id:O,U=(r=it(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},z=U.r,F=z===void 0?3:z,V=U.strokeWidth,H=V===void 0?2:V,te=AF(o)?o:{},ee=te.clipDot,re=ee===void 0?!0:ee,Q=F*2+H;return J.createElement(wt,{className:A},j||P?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(D)},J.createElement("rect",{x:j?g:g-x/2,y:P?m:m-_/2,width:j?x:x*2,height:P?_:_*2})),!re&&J.createElement("clipPath",{id:"clipPath-dots-".concat(D)},J.createElement("rect",{x:g-Q/2,y:m-Q/2,width:x+Q,height:_+Q}))):null,!T&&this.renderCurve(R,D),this.renderErrorBar(R,D),(T||o)&&this.renderDots(R,re,D),(!w||S)&&xa.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var a=r.length%2!==0?[].concat(bf(r),[0]):r,o=[],l=0;l<i;++l)o=[].concat(bf(o),bf(a));return o}},{key:"renderDotItem",value:function(r,i){var a;if(J.isValidElement(r))a=J.cloneElement(r,i);else if(ct(r))a=r(i);else{var o=i.key,l=e7(i,PEe),f=Ve("recharts-line-dot",typeof r!="boolean"?r.className:"");a=J.createElement(mv,Bp({key:o},l,{className:f}))}return a}}])}(I.PureComponent);ga(Hd,"displayName","Line");ga(Hd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!bs.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ga(Hd,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,l=e.bandSize,f=e.displayedData,c=e.offset,h=t.layout,m=f.map(function(g,x){var _=mn(g,o);return h==="horizontal"?{x:sd({axis:n,ticks:i,bandSize:l,entry:g,index:x}),y:ft(_)?null:r.scale(_),value:_,payload:g}:{x:ft(_)?null:n.scale(_),y:sd({axis:r,ticks:a,bandSize:l,entry:g,index:x}),value:_,payload:g}});return _i({points:m,layout:h},c)});var qEe=["layout","type","stroke","connectNulls","isRange","ref"],VEe=["key"],AV;function _d(e){"@babel/helpers - typeof";return _d=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},_d(e)}function jV(e,t){if(e==null)return{};var n=HEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HEe(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 Hu(){return Hu=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},Hu.apply(this,arguments)}function r7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r7(Object(n),!0).forEach(function(r){eo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i7(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,RV(r.key),r)}}function GEe(e,t,n){return t&&i7(e.prototype,t),n&&i7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function YEe(e,t,n){return t=p0(t),KEe(e,PV()?Reflect.construct(t,n||[],p0(e).constructor):t.apply(e,n))}function KEe(e,t){if(t&&(_d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZEe(e)}function ZEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PV=function(){return!!e})()}function p0(e){return p0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},p0(e)}function XEe(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&&FA(e,t)}function FA(e,t){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},FA(e,t)}function eo(e,t,n){return t=RV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RV(e){var t=QEe(e,"string");return _d(t)=="symbol"?t:t+""}function QEe(e,t){if(_d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_d(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yc=function(e){function t(){var n;WEe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=YEe(this,t,[].concat(i)),eo(n,"state",{isAnimationFinished:!0}),eo(n,"id",Wl("recharts-area-")),eo(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ct(o)&&o()}),eo(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ct(o)&&o()}),n}return XEe(t,e),GEe(t,[{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var f=this.props,c=f.dot,h=f.points,m=f.dataKey,g=it(this.props,!1),x=it(c,!0),_=h.map(function(O,S){var T=gl(gl(gl({key:"dot-".concat(S),r:3},g),x),{},{index:S,cx:O.x,cy:O.y,dataKey:m,value:O.value,payload:O.payload,points:h});return t.renderDotItem(c,T)}),w={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return J.createElement(wt,Hu({className:"recharts-area-dots"},w),_)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,a=i.baseLine,o=i.points,l=i.strokeWidth,f=o[0].x,c=o[o.length-1].x,h=r*Math.abs(f-c),m=wl(o.map(function(g){return g.y||0}));return We(a)&&typeof a=="number"?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(wl(a.map(function(g){return g.y||0})),m)),We(m)?J.createElement("rect",{x:f<c?f:f-h,y:0,width:h,height:Math.floor(m+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,a=i.baseLine,o=i.points,l=i.strokeWidth,f=o[0].y,c=o[o.length-1].y,h=r*Math.abs(f-c),m=wl(o.map(function(g){return g.x||0}));return We(a)&&typeof a=="number"?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(wl(a.map(function(g){return g.x||0})),m)),We(m)?J.createElement("rect",{x:0,y:f<c?f:f-h,width:m+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,a,o){var l=this.props,f=l.layout,c=l.type,h=l.stroke,m=l.connectNulls,g=l.isRange;l.ref;var x=jV(l,qEe);return J.createElement(wt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},J.createElement(jl,Hu({},it(x,!0),{points:r,connectNulls:m,type:c,baseLine:i,layout:f,stroke:"none",className:"recharts-area-area"})),h!=="none"&&J.createElement(jl,Hu({},it(this.props,!1),{className:"recharts-area-curve",layout:f,type:c,connectNulls:m,fill:"none",points:r})),h!=="none"&&g&&J.createElement(jl,Hu({},it(this.props,!1),{className:"recharts-area-curve",layout:f,type:c,connectNulls:m,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var a=this,o=this.props,l=o.points,f=o.baseLine,c=o.isAnimationActive,h=o.animationBegin,m=o.animationDuration,g=o.animationEasing,x=o.animationId,_=this.state,w=_.prevPoints,O=_.prevBaseLine;return J.createElement(ia,{begin:h,duration:m,isActive:c,easing:g,from:{t:0},to:{t:1},key:"area-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var T=S.t;if(w){var A=w.length/l.length,j=l.map(function(U,z){var F=Math.floor(z*A);if(w[F]){var V=w[F],H=An(V.x,U.x),te=An(V.y,U.y);return gl(gl({},U),{},{x:H(T),y:te(T)})}return U}),P;if(We(f)&&typeof f=="number"){var R=An(O,f);P=R(T)}else if(ft(f)||$d(f)){var D=An(O,0);P=D(T)}else P=f.map(function(U,z){var F=Math.floor(z*A);if(O[F]){var V=O[F],H=An(V.x,U.x),te=An(V.y,U.y);return gl(gl({},U),{},{x:H(T),y:te(T)})}return U});return a.renderAreaStatically(j,P,r,i)}return J.createElement(wt,null,J.createElement("defs",null,J.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(T))),J.createElement(wt,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(l,f,r,i)))})}},{key:"renderArea",value:function(r,i){var a=this.props,o=a.points,l=a.baseLine,f=a.isAnimationActive,c=this.state,h=c.prevPoints,m=c.prevBaseLine,g=c.totalLength;return f&&o&&o.length&&(!h&&g>0||!Il(h,o)||!Il(m,l))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(o,l,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,l=i.points,f=i.className,c=i.top,h=i.left,m=i.xAxis,g=i.yAxis,x=i.width,_=i.height,w=i.isAnimationActive,O=i.id;if(a||!l||!l.length)return null;var S=this.state.isAnimationFinished,T=l.length===1,A=Ve("recharts-area",f),j=m&&m.allowDataOverflow,P=g&&g.allowDataOverflow,R=j||P,D=ft(O)?this.id:O,U=(r=it(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},z=U.r,F=z===void 0?3:z,V=U.strokeWidth,H=V===void 0?2:V,te=AF(o)?o:{},ee=te.clipDot,re=ee===void 0?!0:ee,Q=F*2+H;return J.createElement(wt,{className:A},j||P?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(D)},J.createElement("rect",{x:j?h:h-x/2,y:P?c:c-_/2,width:j?x:x*2,height:P?_:_*2})),!re&&J.createElement("clipPath",{id:"clipPath-dots-".concat(D)},J.createElement("rect",{x:h-Q/2,y:c-Q/2,width:x+Q,height:_+Q}))):null,T?null:this.renderArea(R,D),(o||T)&&this.renderDots(R,re,D),(!w||S)&&xa.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(I.PureComponent);AV=yc;eo(yc,"displayName","Area");eo(yc,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!bs.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});eo(yc,"getBaseValue",function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue,l=o??a;if(We(l)&&typeof l=="number")return l;var f=i==="horizontal"?r:n,c=f.scale.domain();if(f.type==="number"){var h=Math.max(c[0],c[1]),m=Math.min(c[0],c[1]);return l==="dataMin"?m:l==="dataMax"||h<0?h:Math.max(Math.min(c[0],c[1]),0)}return l==="dataMin"?c[0]:l==="dataMax"?c[1]:c[0]});eo(yc,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,f=e.dataKey,c=e.stackedData,h=e.dataStartIndex,m=e.displayedData,g=e.offset,x=t.layout,_=c&&c.length,w=AV.getBaseValue(t,n,r,i),O=x==="horizontal",S=!1,T=m.map(function(j,P){var R;_?R=c[h+P]:(R=mn(j,f),Array.isArray(R)?S=!0:R=[w,R]);var D=R[1]==null||_&&mn(j,f)==null;return O?{x:sd({axis:r,ticks:a,bandSize:l,entry:j,index:P}),y:D?null:i.scale(R[1]),value:R,payload:j}:{x:D?null:r.scale(R[1]),y:sd({axis:i,ticks:o,bandSize:l,entry:j,index:P}),value:R,payload:j}}),A;return _||S?A=T.map(function(j){var P=Array.isArray(j.value)?j.value[0]:null;return O?{x:j.x,y:P!=null&&j.y!=null?i.scale(P):null}:{x:P!=null?r.scale(P):null,y:j.y}}):A=O?i.scale(w):r.scale(w),gl({points:T,baseLine:A,layout:x,isRange:S},g)});eo(yc,"renderDotItem",function(e,t){var n;if(J.isValidElement(e))n=J.cloneElement(e,t);else if(ct(e))n=e(t);else{var r=Ve("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=jV(t,VEe);n=J.createElement(mv,Hu({},a,{key:i,className:r}))}return n});function xd(e){"@babel/helpers - typeof";return xd=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},xd(e)}function JEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eTe(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,LV(r.key),r)}}function tTe(e,t,n){return t&&eTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nTe(e,t,n){return t=m0(t),rTe(e,MV()?Reflect.construct(t,n||[],m0(e).constructor):t.apply(e,n))}function rTe(e,t){if(t&&(xd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iTe(e)}function iTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MV=function(){return!!e})()}function m0(e){return m0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},m0(e)}function aTe(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&&zA(e,t)}function zA(e,t){return zA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zA(e,t)}function NV(e,t,n){return t=LV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LV(e){var t=oTe(e,"string");return xd(t)=="symbol"?t:t+""}function oTe(e,t){if(xd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var P_=function(e){function t(){return JEe(this,t),nTe(this,t,arguments)}return aTe(t,e),tTe(t,[{key:"render",value:function(){return null}}])}(J.Component);NV(P_,"displayName","ZAxis");NV(P_,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var sTe=["option","isActive"];function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fp.apply(this,arguments)}function lTe(e,t){if(e==null)return{};var n=uTe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uTe(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 cTe(e){var t=e.option,n=e.isActive,r=lTe(e,sTe);return typeof t=="string"?J.createElement(t0,Fp({option:J.createElement(o_,Fp({type:t},r)),isActive:n,shapeType:"symbols"},r)):J.createElement(t0,Fp({option:t,isActive:n,shapeType:"symbols"},r))}function wd(e){"@babel/helpers - typeof";return wd=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},wd(e)}function zp(){return zp=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},zp.apply(this,arguments)}function a7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a7(Object(n),!0).forEach(function(r){Sl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o7(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,kV(r.key),r)}}function dTe(e,t,n){return t&&o7(e.prototype,t),n&&o7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hTe(e,t,n){return t=v0(t),pTe(e,DV()?Reflect.construct(t,n||[],v0(e).constructor):t.apply(e,n))}function pTe(e,t){if(t&&(wd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mTe(e)}function mTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DV=function(){return!!e})()}function v0(e){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v0(e)}function vTe(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&&qA(e,t)}function qA(e,t){return qA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qA(e,t)}function Sl(e,t,n){return t=kV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kV(e){var t=gTe(e,"string");return wd(t)=="symbol"?t:t+""}function gTe(e,t){if(wd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var R_=function(e){function t(){var n;fTe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=hTe(this,t,[].concat(i)),Sl(n,"state",{isAnimationFinished:!1}),Sl(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Sl(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Sl(n,"id",Wl("recharts-scatter-")),n}return vTe(t,e),dTe(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.activeShape,f=a.activeIndex,c=it(this.props,!1);return r.map(function(h,m){var g=f===m,x=g?l:o,_=Yi(Yi({},c),h);return J.createElement(wt,zp({className:"recharts-scatter-symbol",key:"symbol-".concat(h==null?void 0:h.cx,"-").concat(h==null?void 0:h.cy,"-").concat(h==null?void 0:h.size,"-").concat(m)},kl(i.props,h,m),{role:"img"}),J.createElement(cTe,zp({option:x,isActive:g,key:"symbol-".concat(m)},_)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,a=i.points,o=i.isAnimationActive,l=i.animationBegin,f=i.animationDuration,c=i.animationEasing,h=i.animationId,m=this.state.prevPoints;return J.createElement(ia,{begin:l,duration:f,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t,_=a.map(function(w,O){var S=m&&m[O];if(S){var T=An(S.cx,w.cx),A=An(S.cy,w.cy),j=An(S.size,w.size);return Yi(Yi({},w),{},{cx:T(x),cy:A(x),size:j(x)})}var P=An(0,w.size);return Yi(Yi({},w),{},{size:P(x)})});return J.createElement(wt,null,r.renderSymbolsStatically(_))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,a=r.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!Il(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,l=i.yAxis,f=i.children,c=Vr(f,qd);return c?c.map(function(h,m){var g=h.props,x=g.direction,_=g.dataKey;return J.cloneElement(h,{key:"".concat(x,"-").concat(_,"-").concat(a[m]),data:a,xAxis:o,yAxis:l,layout:x==="x"?"vertical":"horizontal",dataPointFormatter:function(O,S){return{x:O.cx,y:O.cy,value:x==="x"?+O.node.x:+O.node.y,errorVal:mn(O,S)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,a=r.line,o=r.lineType,l=r.lineJointType,f=it(this.props,!1),c=it(a,!1),h,m;if(o==="joint")h=i.map(function(A){return{x:A.cx,y:A.cy}});else if(o==="fitting"){var g=mhe(i),x=g.xmin,_=g.xmax,w=g.a,O=g.b,S=function(j){return w*j+O};h=[{x,y:S(x)},{x:_,y:S(_)}]}var T=Yi(Yi(Yi({},f),{},{fill:"none",stroke:f&&f.fill},c),{},{points:h});return J.isValidElement(a)?m=J.cloneElement(a,T):ct(a)?m=a(T):m=J.createElement(jl,zp({},T,{type:l})),J.createElement(wt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},m)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.points,o=r.line,l=r.className,f=r.xAxis,c=r.yAxis,h=r.left,m=r.top,g=r.width,x=r.height,_=r.id,w=r.isAnimationActive;if(i||!a||!a.length)return null;var O=this.state.isAnimationFinished,S=Ve("recharts-scatter",l),T=f&&f.allowDataOverflow,A=c&&c.allowDataOverflow,j=T||A,P=ft(_)?this.id:_;return J.createElement(wt,{className:S,clipPath:j?"url(#clipPath-".concat(P,")"):null},T||A?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(P)},J.createElement("rect",{x:T?h:h-g/2,y:A?m:m-x/2,width:T?g:g*2,height:A?x:x*2}))):null,o&&this.renderLine(),this.renderErrorBar(),J.createElement(wt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!w||O)&&xa.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}}])}(I.PureComponent);Sl(R_,"displayName","Scatter");Sl(R_,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!bs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Sl(R_,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,l=e.yAxisTicks,f=e.offset,c=i.props.tooltipType,h=Vr(i.props.children,Cl),m=ft(t.dataKey)?i.props.dataKey:t.dataKey,g=ft(n.dataKey)?i.props.dataKey:n.dataKey,x=r&&r.dataKey,_=r?r.range:P_.defaultProps.range,w=_&&_[0],O=t.scale.bandwidth?t.scale.bandwidth():0,S=n.scale.bandwidth?n.scale.bandwidth():0,T=a.map(function(A,j){var P=mn(A,m),R=mn(A,g),D=!ft(x)&&mn(A,x)||"-",U=[{name:ft(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:P,payload:A,dataKey:m,type:c},{name:ft(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:R,payload:A,dataKey:g,type:c}];D!=="-"&&U.push({name:r.name||r.dataKey,unit:r.unit||"",value:D,payload:A,dataKey:x,type:c});var z=sd({axis:t,ticks:o,bandSize:O,entry:A,index:j,dataKey:m}),F=sd({axis:n,ticks:l,bandSize:S,entry:A,index:j,dataKey:g}),V=D!=="-"?r.scale(D):w,H=Math.sqrt(Math.max(V,0)/Math.PI);return Yi(Yi({},A),{},{cx:z,cy:F,x:z-H,y:F-H,xAxis:t,yAxis:n,zAxis:r,width:2*H,height:2*H,size:V,node:{x:P,y:R,z:D},tooltipPayload:U,tooltipPosition:{x:z,y:F},payload:A},h&&h[j]&&h[j].props)});return Yi({points:T},f)});function Od(e){"@babel/helpers - typeof";return Od=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},Od(e)}function yTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bTe(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,UV(r.key),r)}}function _Te(e,t,n){return t&&bTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xTe(e,t,n){return t=g0(t),wTe(e,IV()?Reflect.construct(t,n||[],g0(e).constructor):t.apply(e,n))}function wTe(e,t){if(t&&(Od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OTe(e)}function OTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IV=function(){return!!e})()}function g0(e){return g0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},g0(e)}function STe(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&&VA(e,t)}function VA(e,t){return VA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VA(e,t)}function $V(e,t,n){return t=UV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UV(e){var t=ETe(e,"string");return Od(t)=="symbol"?t:t+""}function ETe(e,t){if(Od(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Od(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function HA(){return HA=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},HA.apply(this,arguments)}function TTe(e){var t=e.xAxisId,n=h3(),r=p3(),i=pV(t);return i==null?null:J.createElement(Vd,HA({},i,{className:Ve("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return Zo(o,!0)}}))}var Wd=function(e){function t(){return yTe(this,t),xTe(this,t,arguments)}return STe(t,e),_Te(t,[{key:"render",value:function(){return J.createElement(TTe,this.props)}}])}(J.Component);$V(Wd,"displayName","XAxis");$V(Wd,"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 Sd(e){"@babel/helpers - typeof";return Sd=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},Sd(e)}function CTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ATe(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,zV(r.key),r)}}function jTe(e,t,n){return t&&ATe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PTe(e,t,n){return t=y0(t),RTe(e,BV()?Reflect.construct(t,n||[],y0(e).constructor):t.apply(e,n))}function RTe(e,t){if(t&&(Sd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MTe(e)}function MTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BV=function(){return!!e})()}function y0(e){return y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},y0(e)}function NTe(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&&WA(e,t)}function WA(e,t){return WA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},WA(e,t)}function FV(e,t,n){return t=zV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zV(e){var t=LTe(e,"string");return Sd(t)=="symbol"?t:t+""}function LTe(e,t){if(Sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function GA(){return GA=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},GA.apply(this,arguments)}var DTe=function(t){var n=t.yAxisId,r=h3(),i=p3(),a=mV(n);return a==null?null:J.createElement(Vd,GA({},a,{className:Ve("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return Zo(l,!0)}}))},Gd=function(e){function t(){return CTe(this,t),PTe(this,t,arguments)}return NTe(t,e),jTe(t,[{key:"render",value:function(){return J.createElement(DTe,this.props)}}])}(J.Component);FV(Gd,"displayName","YAxis");FV(Gd,"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 s7(e){return UTe(e)||$Te(e)||ITe(e)||kTe()}function kTe(){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 ITe(e,t){if(e){if(typeof e=="string")return YA(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 YA(e,t)}}function $Te(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UTe(e){if(Array.isArray(e))return YA(e)}function YA(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 KA=function(t,n,r,i,a){var o=Vr(t,v3),l=Vr(t,A_),f=[].concat(s7(o),s7(l)),c=Vr(t,vv),h="".concat(i,"Id"),m=i[0],g=n;if(f.length&&(g=f.reduce(function(w,O){if(O.props[h]===r&&ro(O.props,"extendDomain")&&We(O.props[m])){var S=O.props[m];return[Math.min(w[0],S),Math.max(w[1],S)]}return w},g)),c.length){var x="".concat(m,"1"),_="".concat(m,"2");g=c.reduce(function(w,O){if(O.props[h]===r&&ro(O.props,"extendDomain")&&We(O.props[x])&&We(O.props[_])){var S=O.props[x],T=O.props[_];return[Math.min(w[0],S,T),Math.max(w[1],S,T)]}return w},g)}return a&&a.length&&(g=a.reduce(function(w,O){return We(O)?[Math.min(w[0],O),Math.max(w[1],O)]:w},g)),g},hE={exports:{}},l7;function BTe(){return l7||(l7=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,c,h){this.fn=f,this.context=c,this.once=h||!1}function a(f,c,h,m,g){if(typeof h!="function")throw new TypeError("The listener must be a function");var x=new i(h,m||f,g),_=n?n+c:c;return f._events[_]?f._events[_].fn?f._events[_]=[f._events[_],x]:f._events[_].push(x):(f._events[_]=x,f._eventsCount++),f}function o(f,c){--f._eventsCount===0?f._events=new r:delete f._events[c]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],h,m;if(this._eventsCount===0)return c;for(m in h=this._events)t.call(h,m)&&c.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},l.prototype.listeners=function(c){var h=n?n+c:c,m=this._events[h];if(!m)return[];if(m.fn)return[m.fn];for(var g=0,x=m.length,_=new Array(x);g<x;g++)_[g]=m[g].fn;return _},l.prototype.listenerCount=function(c){var h=n?n+c:c,m=this._events[h];return m?m.fn?1:m.length:0},l.prototype.emit=function(c,h,m,g,x,_){var w=n?n+c:c;if(!this._events[w])return!1;var O=this._events[w],S=arguments.length,T,A;if(O.fn){switch(O.once&&this.removeListener(c,O.fn,void 0,!0),S){case 1:return O.fn.call(O.context),!0;case 2:return O.fn.call(O.context,h),!0;case 3:return O.fn.call(O.context,h,m),!0;case 4:return O.fn.call(O.context,h,m,g),!0;case 5:return O.fn.call(O.context,h,m,g,x),!0;case 6:return O.fn.call(O.context,h,m,g,x,_),!0}for(A=1,T=new Array(S-1);A<S;A++)T[A-1]=arguments[A];O.fn.apply(O.context,T)}else{var j=O.length,P;for(A=0;A<j;A++)switch(O[A].once&&this.removeListener(c,O[A].fn,void 0,!0),S){case 1:O[A].fn.call(O[A].context);break;case 2:O[A].fn.call(O[A].context,h);break;case 3:O[A].fn.call(O[A].context,h,m);break;case 4:O[A].fn.call(O[A].context,h,m,g);break;default:if(!T)for(P=1,T=new Array(S-1);P<S;P++)T[P-1]=arguments[P];O[A].fn.apply(O[A].context,T)}}return!0},l.prototype.on=function(c,h,m){return a(this,c,h,m,!1)},l.prototype.once=function(c,h,m){return a(this,c,h,m,!0)},l.prototype.removeListener=function(c,h,m,g){var x=n?n+c:c;if(!this._events[x])return this;if(!h)return o(this,x),this;var _=this._events[x];if(_.fn)_.fn===h&&(!g||_.once)&&(!m||_.context===m)&&o(this,x);else{for(var w=0,O=[],S=_.length;w<S;w++)(_[w].fn!==h||g&&!_[w].once||m&&_[w].context!==m)&&O.push(_[w]);O.length?this._events[x]=O.length===1?O[0]:O:o(this,x)}return this},l.prototype.removeAllListeners=function(c){var h;return c?(h=n?n+c:c,this._events[h]&&o(this,h)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(hE)),hE.exports}var FTe=BTe();const zTe=Dt(FTe);var pE=new zTe,mE="recharts.syncMouseEvents";function Bm(e){"@babel/helpers - typeof";return Bm=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},Bm(e)}function qTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VTe(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,qV(r.key),r)}}function HTe(e,t,n){return t&&VTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vE(e,t,n){return t=qV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qV(e){var t=WTe(e,"string");return Bm(t)=="symbol"?t:t+""}function WTe(e,t){if(Bm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GTe=function(){function e(){qTe(this,e),vE(this,"activeIndex",0),vE(this,"coordinateList",[]),vE(this,"layout","horizontal")}return HTe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,o=n.container,l=o===void 0?null:o,f=n.layout,c=f===void 0?null:f,h=n.offset,m=h===void 0?null:h,g=n.mouseHandlerCallback,x=g===void 0?null:g;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=c??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=x??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 i=this.container.getBoundingClientRect(),a=i.x,o=i.y,l=i.height,f=this.coordinateList[this.activeIndex].coordinate,c=((n=window)===null||n===void 0?void 0:n.scrollX)||0,h=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=a+f+c,g=o+this.offset.top+l/2+h;this.mouseHandlerCallback({pageX:m,pageY:g})}}}])}();function YTe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&We(r)&&We(i))return!0}return!1}function KTe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function VV(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=dn(t,n,r,i),l=dn(t,n,r,a);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function ZTe(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,f=t.cy,c=t.innerRadius,h=t.outerRadius,m=t.angle,g=dn(l,f,c,m),x=dn(l,f,h,m);r=g.x,i=g.y,a=x.x,o=x.y}else return VV(t);return[{x:r,y:i},{x:a,y:o}]}function Fm(e){"@babel/helpers - typeof";return Fm=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},Fm(e)}function u7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u7(Object(n),!0).forEach(function(r){XTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XTe(e,t,n){return t=QTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QTe(e){var t=JTe(e,"string");return Fm(t)=="symbol"?t:t+""}function JTe(e,t){if(Fm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eCe(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,f=e.offset,c=e.activeTooltipIndex,h=e.tooltipAxisBandSize,m=e.layout,g=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!a||!o||g!=="ScatterChart"&&i!=="axis")return null;var _,w=jl;if(g==="ScatterChart")_=o,w=Wwe;else if(g==="BarChart")_=KTe(m,o,f,h),w=u3;else if(m==="radial"){var O=VV(o),S=O.cx,T=O.cy,A=O.radius,j=O.startAngle,P=O.endAngle;_={cx:S,cy:T,startAngle:j,endAngle:P,innerRadius:A,outerRadius:A},w=Iq}else _={points:ZTe(m,o,f)},w=jl;var R=cy(cy(cy(cy({stroke:"#ccc",pointerEvents:"none"},f),_),it(x,!1)),{},{payload:l,payloadIndex:c,className:Ve("recharts-tooltip-cursor",x.className)});return I.isValidElement(x)?I.cloneElement(x,R):I.createElement(w,R)}var tCe=["item"],nCe=["children","className","width","height","style","compact","title","desc"];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 Lf(){return Lf=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},Lf.apply(this,arguments)}function c7(e,t){return aCe(e)||iCe(e,t)||WV(e,t)||rCe()}function rCe(){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 iCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,c=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){c=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function aCe(e){if(Array.isArray(e))return e}function f7(e,t){if(e==null)return{};var n=oCe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oCe(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 sCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lCe(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,GV(r.key),r)}}function uCe(e,t,n){return t&&lCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cCe(e,t,n){return t=b0(t),fCe(e,HV()?Reflect.construct(t,n||[],b0(e).constructor):t.apply(e,n))}function fCe(e,t){if(t&&(Ed(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dCe(e)}function dCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HV=function(){return!!e})()}function b0(e){return b0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b0(e)}function hCe(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&&ZA(e,t)}function ZA(e,t){return ZA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZA(e,t)}function Td(e){return vCe(e)||mCe(e)||WV(e)||pCe()}function pCe(){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 WV(e,t){if(e){if(typeof e=="string")return XA(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 XA(e,t)}}function mCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vCe(e){if(Array.isArray(e))return XA(e)}function XA(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 d7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d7(Object(n),!0).forEach(function(r){ht(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ht(e,t,n){return t=GV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GV(e){var t=gCe(e,"string");return Ed(t)=="symbol"?t:t+""}function gCe(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(t==="string"?String:Number)(e)}var yCe={xAxis:["bottom","top"],yAxis:["left","right"]},bCe={width:"100%",height:"100%"},YV={x:0,y:0};function fy(e){return e}var _Ce=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},xCe=function(t,n,r,i){var a=n.find(function(h){return h&&h.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,l=i.radius;return Pe(Pe(Pe({},i),dn(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var f=a.coordinate,c=i.angle;return Pe(Pe(Pe({},i),dn(i.cx,i.cy,f,c)),{},{angle:c,radius:f})}return YV},M_=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,o=(r??[]).reduce(function(l,f){var c=f.props.data;return c&&c.length?[].concat(Td(l),Td(c)):l},[]);return o.length>0?o:t&&t.length&&We(i)&&We(a)?t.slice(i,a+1):[]};function KV(e){return e==="number"?[0,"auto"]:void 0}var QA=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,l=M_(n,t);return r<0||!a||!a.length||r>=l.length?null:a.reduce(function(f,c){var h,m=(h=c.props.data)!==null&&h!==void 0?h:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(o.dataKey&&!o.allowDuplicatedCategory){var x=m===void 0?l:m;g=bb(x,o.dataKey,i)}else g=m&&m[r]||l[r];return g?[].concat(Td(f),[Rq(c,g)]):f},[])},h7=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=_Ce(a,r),l=t.orderedTooltipTicks,f=t.tooltipAxis,c=t.tooltipTicks,h=x_e(o,l,c,f);if(h>=0&&c){var m=c[h]&&c[h].value,g=QA(t,n,h,m),x=xCe(r,l,h,a);return{activeTooltipIndex:h,activeLabel:m,activePayload:g,activeCoordinate:x}}return null},wCe=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,h=t.layout,m=t.children,g=t.stackOffset,x=Eq(h,a);return r.reduce(function(_,w){var O,S=w.type.defaultProps!==void 0?Pe(Pe({},w.type.defaultProps),w.props):w.props,T=S.type,A=S.dataKey,j=S.allowDataOverflow,P=S.allowDuplicatedCategory,R=S.scale,D=S.ticks,U=S.includeHidden,z=S[o];if(_[z])return _;var F=M_(t.data,{graphicalItems:i.filter(function(se){var Z,ue=o in se.props?se.props[o]:(Z=se.type.defaultProps)===null||Z===void 0?void 0:Z[o];return ue===z}),dataStartIndex:f,dataEndIndex:c}),V=F.length,H,te,ee;YTe(S.domain,j,T)&&(H=uA(S.domain,null,j),x&&(T==="number"||R!=="auto")&&(ee=kp(F,A,"category")));var re=KV(T);if(!H||H.length===0){var Q,oe=(Q=S.domain)!==null&&Q!==void 0?Q:re;if(A){if(H=kp(F,A,T),T==="category"&&x){var le=phe(H);P&&le?(te=H,H=r0(0,V)):P||(H=dI(oe,H,w).reduce(function(se,Z){return se.indexOf(Z)>=0?se:[].concat(Td(se),[Z])},[]))}else if(T==="category")P?H=H.filter(function(se){return se!==""&&!ft(se)}):H=dI(oe,H,w).reduce(function(se,Z){return se.indexOf(Z)>=0||Z===""||ft(Z)?se:[].concat(Td(se),[Z])},[]);else if(T==="number"){var X=T_e(F,i.filter(function(se){var Z,ue,fe=o in se.props?se.props[o]:(Z=se.type.defaultProps)===null||Z===void 0?void 0:Z[o],de="hide"in se.props?se.props.hide:(ue=se.type.defaultProps)===null||ue===void 0?void 0:ue.hide;return fe===z&&(U||!de)}),A,a,h);X&&(H=X)}x&&(T==="number"||R!=="auto")&&(ee=kp(F,A,"category"))}else x?H=r0(0,V):l&&l[z]&&l[z].hasStack&&T==="number"?H=g==="expand"?[0,1]:Pq(l[z].stackGroups,f,c):H=Sq(F,i.filter(function(se){var Z=o in se.props?se.props[o]:se.type.defaultProps[o],ue="hide"in se.props?se.props.hide:se.type.defaultProps.hide;return Z===z&&(U||!ue)}),T,h,!0);if(T==="number")H=KA(m,H,z,a,D),oe&&(H=uA(oe,H,j));else if(T==="category"&&oe){var $=oe,G=H.every(function(se){return $.indexOf(se)>=0});G&&(H=$)}}return Pe(Pe({},_),{},ht({},z,Pe(Pe({},S),{},{axisType:a,domain:H,categoricalDomain:ee,duplicateDomain:te,originalDomain:(O=S.domain)!==null&&O!==void 0?O:re,isCategorical:x,layout:h})))},{})},OCe=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,h=t.layout,m=t.children,g=M_(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:c}),x=g.length,_=Eq(h,a),w=-1;return r.reduce(function(O,S){var T=S.type.defaultProps!==void 0?Pe(Pe({},S.type.defaultProps),S.props):S.props,A=T[o],j=KV("number");if(!O[A]){w++;var P;return _?P=r0(0,x):l&&l[A]&&l[A].hasStack?(P=Pq(l[A].stackGroups,f,c),P=KA(m,P,A,a)):(P=uA(j,Sq(g,r.filter(function(R){var D,U,z=o in R.props?R.props[o]:(D=R.type.defaultProps)===null||D===void 0?void 0:D[o],F="hide"in R.props?R.props.hide:(U=R.type.defaultProps)===null||U===void 0?void 0:U.hide;return z===A&&!F}),"number",h),i.defaultProps.allowDataOverflow),P=KA(m,P,A,a)),Pe(Pe({},O),{},ht({},A,Pe(Pe({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ti(yCe,"".concat(a,".").concat(w%2),null),domain:P,originalDomain:j,isCategorical:_,layout:h})))}return O},{})},SCe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,f=n.dataStartIndex,c=n.dataEndIndex,h=t.children,m="".concat(i,"Id"),g=Vr(h,a),x={};return g&&g.length?x=wCe(t,{axes:g,graphicalItems:o,axisType:i,axisIdKey:m,stackGroups:l,dataStartIndex:f,dataEndIndex:c}):o&&o.length&&(x=OCe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:m,stackGroups:l,dataStartIndex:f,dataEndIndex:c})),x},ECe=function(t){var n=xl(t),r=Zo(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:kP(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Vb(n,r)}},p7=function(t){var n=t.children,r=t.defaultShowTooltip,i=Oi(n,hd),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},TCe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Jo(n&&n.type);return r&&r.indexOf("Bar")>=0})},m7=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"}},CCe=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,f=l===void 0?{}:l,c=r.width,h=r.height,m=r.children,g=r.margin||{},x=Oi(m,hd),_=Oi(m,$f),w=Object.keys(f).reduce(function(P,R){var D=f[R],U=D.orientation;return!D.mirror&&!D.hide?Pe(Pe({},P),{},ht({},U,P[U]+D.width)):P},{left:g.left||0,right:g.right||0}),O=Object.keys(o).reduce(function(P,R){var D=o[R],U=D.orientation;return!D.mirror&&!D.hide?Pe(Pe({},P),{},ht({},U,Ti(P,"".concat(U))+D.height)):P},{top:g.top||0,bottom:g.bottom||0}),S=Pe(Pe({},O),w),T=S.bottom;x&&(S.bottom+=x.props.height||hd.defaultProps.height),_&&n&&(S=S_e(S,i,r,n));var A=c-S.left-S.right,j=h-S.top-S.bottom;return Pe(Pe({brushBottom:T},S),{},{width:Math.max(A,0),height:Math.max(j,0)})},ACe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},_3=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,f=t.axisComponents,c=t.legendContent,h=t.formatAxisMap,m=t.defaultProps,g=function(S,T){var A=T.graphicalItems,j=T.stackGroups,P=T.offset,R=T.updateId,D=T.dataStartIndex,U=T.dataEndIndex,z=S.barSize,F=S.layout,V=S.barGap,H=S.barCategoryGap,te=S.maxBarSize,ee=m7(F),re=ee.numericAxisName,Q=ee.cateAxisName,oe=TCe(A),le=[];return A.forEach(function(X,$){var G=M_(S.data,{graphicalItems:[X],dataStartIndex:D,dataEndIndex:U}),se=X.type.defaultProps!==void 0?Pe(Pe({},X.type.defaultProps),X.props):X.props,Z=se.dataKey,ue=se.maxBarSize,fe=se["".concat(re,"Id")],de=se["".concat(Q,"Id")],Se={},k=f.reduce(function(qe,Ye){var ye=T["".concat(Ye.axisType,"Map")],we=se["".concat(Ye.axisType,"Id")];ye&&ye[we]||Ye.axisType==="zAxis"||uc();var De=ye[we];return Pe(Pe({},qe),{},ht(ht({},Ye.axisType,De),"".concat(Ye.axisType,"Ticks"),Zo(De)))},Se),B=k[Q],K=k["".concat(Q,"Ticks")],ce=j&&j[fe]&&j[fe].hasStack&&D_e(X,j[fe].stackGroups),ae=Jo(X.type).indexOf("Bar")>=0,pe=Vb(B,K),Te=[],Fe=oe&&w_e({barSize:z,stackGroups:j,totalSize:ACe(k,Q)});if(ae){var ge,je,Me=ft(ue)?te:ue,Be=(ge=(je=Vb(B,K,!0))!==null&&je!==void 0?je:Me)!==null&&ge!==void 0?ge:0;Te=O_e({barGap:V,barCategoryGap:H,bandSize:Be!==pe?Be:pe,sizeList:Fe[de],maxBarSize:Me}),Be!==pe&&(Te=Te.map(function(qe){return Pe(Pe({},qe),{},{position:Pe(Pe({},qe.position),{},{offset:qe.position.offset-Be/2})})}))}var Xe=X&&X.type&&X.type.getComposedData;Xe&&le.push({props:Pe(Pe({},Xe(Pe(Pe({},k),{},{displayedData:G,props:S,dataKey:Z,item:X,bandSize:pe,barPosition:Te,offset:P,stackedData:ce,layout:F,dataStartIndex:D,dataEndIndex:U}))),{},ht(ht(ht({key:X.key||"item-".concat($)},re,k[re]),Q,k[Q]),"animationId",R)),childIndex:The(X,S.children),item:X})}),le},x=function(S,T){var A=S.props,j=S.dataStartIndex,P=S.dataEndIndex,R=S.updateId;if(!C6({props:A}))return null;var D=A.children,U=A.layout,z=A.stackOffset,F=A.data,V=A.reverseStackOrder,H=m7(U),te=H.numericAxisName,ee=H.cateAxisName,re=Vr(D,r),Q=N_e(F,re,"".concat(te,"Id"),"".concat(ee,"Id"),z,V),oe=f.reduce(function(se,Z){var ue="".concat(Z.axisType,"Map");return Pe(Pe({},se),{},ht({},ue,SCe(A,Pe(Pe({},Z),{},{graphicalItems:re,stackGroups:Z.axisType===te&&Q,dataStartIndex:j,dataEndIndex:P}))))},{}),le=CCe(Pe(Pe({},oe),{},{props:A,graphicalItems:re}),T==null?void 0:T.legendBBox);Object.keys(oe).forEach(function(se){oe[se]=h(A,oe[se],le,se.replace("Map",""),n)});var X=oe["".concat(ee,"Map")],$=ECe(X),G=g(A,Pe(Pe({},oe),{},{dataStartIndex:j,dataEndIndex:P,updateId:R,graphicalItems:re,stackGroups:Q,offset:le}));return Pe(Pe({formattedGraphicalItems:G,graphicalItems:re,offset:le,stackGroups:Q},$),oe)},_=function(O){function S(T){var A,j,P;return sCe(this,S),P=cCe(this,S,[T]),ht(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ht(P,"accessibilityManager",new GTe),ht(P,"handleLegendBBoxUpdate",function(R){if(R){var D=P.state,U=D.dataStartIndex,z=D.dataEndIndex,F=D.updateId;P.setState(Pe({legendBBox:R},x({props:P.props,dataStartIndex:U,dataEndIndex:z,updateId:F},Pe(Pe({},P.state),{},{legendBBox:R}))))}}),ht(P,"handleReceiveSyncEvent",function(R,D,U){if(P.props.syncId===R){if(U===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(D)}}),ht(P,"handleBrushChange",function(R){var D=R.startIndex,U=R.endIndex;if(D!==P.state.dataStartIndex||U!==P.state.dataEndIndex){var z=P.state.updateId;P.setState(function(){return Pe({dataStartIndex:D,dataEndIndex:U},x({props:P.props,dataStartIndex:D,dataEndIndex:U,updateId:z},P.state))}),P.triggerSyncEvent({dataStartIndex:D,dataEndIndex:U})}}),ht(P,"handleMouseEnter",function(R){var D=P.getMouseInfo(R);if(D){var U=Pe(Pe({},D),{},{isTooltipActive:!0});P.setState(U),P.triggerSyncEvent(U);var z=P.props.onMouseEnter;ct(z)&&z(U,R)}}),ht(P,"triggeredAfterMouseMove",function(R){var D=P.getMouseInfo(R),U=D?Pe(Pe({},D),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(U),P.triggerSyncEvent(U);var z=P.props.onMouseMove;ct(z)&&z(U,R)}),ht(P,"handleItemMouseEnter",function(R){P.setState(function(){return{isTooltipActive:!0,activeItem:R,activePayload:R.tooltipPayload,activeCoordinate:R.tooltipPosition||{x:R.cx,y:R.cy}}})}),ht(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),ht(P,"handleMouseMove",function(R){R.persist(),P.throttleTriggeredAfterMouseMove(R)}),ht(P,"handleMouseLeave",function(R){P.throttleTriggeredAfterMouseMove.cancel();var D={isTooltipActive:!1};P.setState(D),P.triggerSyncEvent(D);var U=P.props.onMouseLeave;ct(U)&&U(D,R)}),ht(P,"handleOuterEvent",function(R){var D=Ehe(R),U=Ti(P.props,"".concat(D));if(D&&ct(U)){var z,F;/.*touch.*/i.test(D)?F=P.getMouseInfo(R.changedTouches[0]):F=P.getMouseInfo(R),U((z=F)!==null&&z!==void 0?z:{},R)}}),ht(P,"handleClick",function(R){var D=P.getMouseInfo(R);if(D){var U=Pe(Pe({},D),{},{isTooltipActive:!0});P.setState(U),P.triggerSyncEvent(U);var z=P.props.onClick;ct(z)&&z(U,R)}}),ht(P,"handleMouseDown",function(R){var D=P.props.onMouseDown;if(ct(D)){var U=P.getMouseInfo(R);D(U,R)}}),ht(P,"handleMouseUp",function(R){var D=P.props.onMouseUp;if(ct(D)){var U=P.getMouseInfo(R);D(U,R)}}),ht(P,"handleTouchMove",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(R.changedTouches[0])}),ht(P,"handleTouchStart",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.handleMouseDown(R.changedTouches[0])}),ht(P,"handleTouchEnd",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.handleMouseUp(R.changedTouches[0])}),ht(P,"handleDoubleClick",function(R){var D=P.props.onDoubleClick;if(ct(D)){var U=P.getMouseInfo(R);D(U,R)}}),ht(P,"handleContextMenu",function(R){var D=P.props.onContextMenu;if(ct(D)){var U=P.getMouseInfo(R);D(U,R)}}),ht(P,"triggerSyncEvent",function(R){P.props.syncId!==void 0&&pE.emit(mE,P.props.syncId,R,P.eventEmitterSymbol)}),ht(P,"applySyncEvent",function(R){var D=P.props,U=D.layout,z=D.syncMethod,F=P.state.updateId,V=R.dataStartIndex,H=R.dataEndIndex;if(R.dataStartIndex!==void 0||R.dataEndIndex!==void 0)P.setState(Pe({dataStartIndex:V,dataEndIndex:H},x({props:P.props,dataStartIndex:V,dataEndIndex:H,updateId:F},P.state)));else if(R.activeTooltipIndex!==void 0){var te=R.chartX,ee=R.chartY,re=R.activeTooltipIndex,Q=P.state,oe=Q.offset,le=Q.tooltipTicks;if(!oe)return;if(typeof z=="function")re=z(le,R);else if(z==="value"){re=-1;for(var X=0;X<le.length;X++)if(le[X].value===R.activeLabel){re=X;break}}var $=Pe(Pe({},oe),{},{x:oe.left,y:oe.top}),G=Math.min(te,$.x+$.width),se=Math.min(ee,$.y+$.height),Z=le[re]&&le[re].value,ue=QA(P.state,P.props.data,re),fe=le[re]?{x:U==="horizontal"?le[re].coordinate:G,y:U==="horizontal"?se:le[re].coordinate}:YV;P.setState(Pe(Pe({},R),{},{activeLabel:Z,activeCoordinate:fe,activePayload:ue,activeTooltipIndex:re}))}else P.setState(R)}),ht(P,"renderCursor",function(R){var D,U=P.state,z=U.isTooltipActive,F=U.activeCoordinate,V=U.activePayload,H=U.offset,te=U.activeTooltipIndex,ee=U.tooltipAxisBandSize,re=P.getTooltipEventType(),Q=(D=R.props.active)!==null&&D!==void 0?D:z,oe=P.props.layout,le=R.key||"_recharts-cursor";return J.createElement(eCe,{key:le,activeCoordinate:F,activePayload:V,activeTooltipIndex:te,chartName:n,element:R,isActive:Q,layout:oe,offset:H,tooltipAxisBandSize:ee,tooltipEventType:re})}),ht(P,"renderPolarAxis",function(R,D,U){var z=Ti(R,"type.axisType"),F=Ti(P.state,"".concat(z,"Map")),V=R.type.defaultProps,H=V!==void 0?Pe(Pe({},V),R.props):R.props,te=F&&F[H["".concat(z,"Id")]];return I.cloneElement(R,Pe(Pe({},te),{},{className:Ve(z,te.className),key:R.key||"".concat(D,"-").concat(U),ticks:Zo(te,!0)}))}),ht(P,"renderPolarGrid",function(R){var D=R.props,U=D.radialLines,z=D.polarAngles,F=D.polarRadius,V=P.state,H=V.radiusAxisMap,te=V.angleAxisMap,ee=xl(H),re=xl(te),Q=re.cx,oe=re.cy,le=re.innerRadius,X=re.outerRadius;return I.cloneElement(R,{polarAngles:Array.isArray(z)?z:Zo(re,!0).map(function($){return $.coordinate}),polarRadius:Array.isArray(F)?F:Zo(ee,!0).map(function($){return $.coordinate}),cx:Q,cy:oe,innerRadius:le,outerRadius:X,key:R.key||"polar-grid",radialLines:U})}),ht(P,"renderLegend",function(){var R=P.state.formattedGraphicalItems,D=P.props,U=D.children,z=D.width,F=D.height,V=P.props.margin||{},H=z-(V.left||0)-(V.right||0),te=wq({children:U,formattedGraphicalItems:R,legendWidth:H,legendContent:c});if(!te)return null;var ee=te.item,re=f7(te,tCe);return I.cloneElement(ee,Pe(Pe({},re),{},{chartWidth:z,chartHeight:F,margin:V,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),ht(P,"renderTooltip",function(){var R,D=P.props,U=D.children,z=D.accessibilityLayer,F=Oi(U,Ki);if(!F)return null;var V=P.state,H=V.isTooltipActive,te=V.activeCoordinate,ee=V.activePayload,re=V.activeLabel,Q=V.offset,oe=(R=F.props.active)!==null&&R!==void 0?R:H;return I.cloneElement(F,{viewBox:Pe(Pe({},Q),{},{x:Q.left,y:Q.top}),active:oe,label:re,payload:oe?ee:[],coordinate:te,accessibilityLayer:z})}),ht(P,"renderBrush",function(R){var D=P.props,U=D.margin,z=D.data,F=P.state,V=F.offset,H=F.dataStartIndex,te=F.dataEndIndex,ee=F.updateId;return I.cloneElement(R,{key:R.key||"_recharts-brush",onChange:oy(P.handleBrushChange,R.props.onChange),data:z,x:We(R.props.x)?R.props.x:V.left,y:We(R.props.y)?R.props.y:V.top+V.height+V.brushBottom-(U.bottom||0),width:We(R.props.width)?R.props.width:V.width,startIndex:H,endIndex:te,updateId:"brush-".concat(ee)})}),ht(P,"renderReferenceElement",function(R,D,U){if(!R)return null;var z=P,F=z.clipPathId,V=P.state,H=V.xAxisMap,te=V.yAxisMap,ee=V.offset,re=R.type.defaultProps||{},Q=R.props,oe=Q.xAxisId,le=oe===void 0?re.xAxisId:oe,X=Q.yAxisId,$=X===void 0?re.yAxisId:X;return I.cloneElement(R,{key:R.key||"".concat(D,"-").concat(U),xAxis:H[le],yAxis:te[$],viewBox:{x:ee.left,y:ee.top,width:ee.width,height:ee.height},clipPathId:F})}),ht(P,"renderActivePoints",function(R){var D=R.item,U=R.activePoint,z=R.basePoint,F=R.childIndex,V=R.isRange,H=[],te=D.props.key,ee=D.item.type.defaultProps!==void 0?Pe(Pe({},D.item.type.defaultProps),D.item.props):D.item.props,re=ee.activeDot,Q=ee.dataKey,oe=Pe(Pe({index:F,dataKey:Q,cx:U.x,cy:U.y,r:4,fill:l3(D.item),strokeWidth:2,stroke:"#fff",payload:U.payload,value:U.value},it(re,!1)),_b(re));return H.push(S.renderActiveDot(re,oe,"".concat(te,"-activePoint-").concat(F))),z?H.push(S.renderActiveDot(re,Pe(Pe({},oe),{},{cx:z.x,cy:z.y}),"".concat(te,"-basePoint-").concat(F))):V&&H.push(null),H}),ht(P,"renderGraphicChild",function(R,D,U){var z=P.filterFormatItem(R,D,U);if(!z)return null;var F=P.getTooltipEventType(),V=P.state,H=V.isTooltipActive,te=V.tooltipAxis,ee=V.activeTooltipIndex,re=V.activeLabel,Q=P.props.children,oe=Oi(Q,Ki),le=z.props,X=le.points,$=le.isRange,G=le.baseLine,se=z.item.type.defaultProps!==void 0?Pe(Pe({},z.item.type.defaultProps),z.item.props):z.item.props,Z=se.activeDot,ue=se.hide,fe=se.activeBar,de=se.activeShape,Se=!!(!ue&&H&&oe&&(Z||fe||de)),k={};F!=="axis"&&oe&&oe.props.trigger==="click"?k={onClick:oy(P.handleItemMouseEnter,R.props.onClick)}:F!=="axis"&&(k={onMouseLeave:oy(P.handleItemMouseLeave,R.props.onMouseLeave),onMouseEnter:oy(P.handleItemMouseEnter,R.props.onMouseEnter)});var B=I.cloneElement(R,Pe(Pe({},z.props),k));function K(Ye){return typeof te.dataKey=="function"?te.dataKey(Ye.payload):null}if(Se)if(ee>=0){var ce,ae;if(te.dataKey&&!te.allowDuplicatedCategory){var pe=typeof te.dataKey=="function"?K:"payload.".concat(te.dataKey.toString());ce=bb(X,pe,re),ae=$&&G&&bb(G,pe,re)}else ce=X==null?void 0:X[ee],ae=$&&G&&G[ee];if(de||fe){var Te=R.props.activeIndex!==void 0?R.props.activeIndex:ee;return[I.cloneElement(R,Pe(Pe(Pe({},z.props),k),{},{activeIndex:Te})),null,null]}if(!ft(ce))return[B].concat(Td(P.renderActivePoints({item:z,activePoint:ce,basePoint:ae,childIndex:ee,isRange:$})))}else{var Fe,ge=(Fe=P.getItemByXY(P.state.activeCoordinate))!==null&&Fe!==void 0?Fe:{graphicalItem:B},je=ge.graphicalItem,Me=je.item,Be=Me===void 0?R:Me,Xe=je.childIndex,qe=Pe(Pe(Pe({},z.props),k),{},{activeIndex:Xe});return[I.cloneElement(Be,qe),null,null]}return $?[B,null,null]:[B,null]}),ht(P,"renderCustomized",function(R,D,U){return I.cloneElement(R,Pe(Pe({key:"recharts-customized-".concat(U)},P.props),P.state))}),ht(P,"renderMap",{CartesianGrid:{handler:fy,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:fy},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:fy},YAxis:{handler:fy},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((A=T.id)!==null&&A!==void 0?A:Wl("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=xz(P.triggeredAfterMouseMove,(j=T.throttleDelay)!==null&&j!==void 0?j:1e3/60),P.state={},P}return hCe(S,O),uCe(S,[{key:"componentDidMount",value:function(){var A,j;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var A=this.props,j=A.children,P=A.data,R=A.height,D=A.layout,U=Oi(j,Ki);if(U){var z=U.props.defaultIndex;if(!(typeof z!="number"||z<0||z>this.state.tooltipTicks.length-1)){var F=this.state.tooltipTicks[z]&&this.state.tooltipTicks[z].value,V=QA(this.state,P,z,F),H=this.state.tooltipTicks[z].coordinate,te=(this.state.offset.top+R)/2,ee=D==="horizontal",re=ee?{x:H,y:te}:{y:H,x:te},Q=this.state.formattedGraphicalItems.find(function(le){var X=le.item;return X.type.name==="Scatter"});Q&&(re=Pe(Pe({},re),Q.props.points[z].tooltipPosition),V=Q.props.points[z].tooltipPayload);var oe={activeTooltipIndex:z,isTooltipActive:!0,activeLabel:F,activePayload:V,activeCoordinate:re};this.setState(oe),this.renderCursor(U),this.accessibilityManager.setIndex(z)}}}},{key:"getSnapshotBeforeUpdate",value:function(A,j){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==j.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==A.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==A.margin){var P,R;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(R=this.props.margin.top)!==null&&R!==void 0?R:0}})}return null}},{key:"componentDidUpdate",value:function(A){RC([Oi(A.children,Ki)],[Oi(this.props.children,Ki)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=Oi(this.props.children,Ki);if(A&&typeof A.props.shared=="boolean"){var j=A.props.shared?"axis":"item";return l.indexOf(j)>=0?j:a}return a}},{key:"getMouseInfo",value:function(A){if(!this.container)return null;var j=this.container,P=j.getBoundingClientRect(),R=hge(P),D={chartX:Math.round(A.pageX-R.left),chartY:Math.round(A.pageY-R.top)},U=P.width/j.offsetWidth||1,z=this.inRange(D.chartX,D.chartY,U);if(!z)return null;var F=this.state,V=F.xAxisMap,H=F.yAxisMap,te=this.getTooltipEventType();if(te!=="axis"&&V&&H){var ee=xl(V).scale,re=xl(H).scale,Q=ee&&ee.invert?ee.invert(D.chartX):null,oe=re&&re.invert?re.invert(D.chartY):null;return Pe(Pe({},D),{},{xValue:Q,yValue:oe})}var le=h7(this.state,this.props.data,this.props.layout,z);return le?Pe(Pe({},D),le):null}},{key:"inRange",value:function(A,j){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=this.props.layout,D=A/P,U=j/P;if(R==="horizontal"||R==="vertical"){var z=this.state.offset,F=D>=z.left&&D<=z.left+z.width&&U>=z.top&&U<=z.top+z.height;return F?{x:D,y:U}:null}var V=this.state,H=V.angleAxisMap,te=V.radiusAxisMap;if(H&&te){var ee=xl(H);return mI({x:D,y:U},ee)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,j=this.getTooltipEventType(),P=Oi(A,Ki),R={};P&&j==="axis"&&(P.props.trigger==="click"?R={onClick:this.handleClick}:R={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 D=_b(this.props,this.handleOuterEvent);return Pe(Pe({},D),R)}},{key:"addListener",value:function(){pE.on(mE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pE.removeListener(mE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(A,j,P){for(var R=this.state.formattedGraphicalItems,D=0,U=R.length;D<U;D++){var z=R[D];if(z.item===A||z.props.key===A.key||j===Jo(z.item.type)&&P===z.childIndex)return z}return null}},{key:"renderClipPath",value:function(){var A=this.clipPathId,j=this.state.offset,P=j.left,R=j.top,D=j.height,U=j.width;return J.createElement("defs",null,J.createElement("clipPath",{id:A},J.createElement("rect",{x:P,y:R,height:D,width:U})))}},{key:"getXScales",value:function(){var A=this.state.xAxisMap;return A?Object.entries(A).reduce(function(j,P){var R=c7(P,2),D=R[0],U=R[1];return Pe(Pe({},j),{},ht({},D,U.scale))},{}):null}},{key:"getYScales",value:function(){var A=this.state.yAxisMap;return A?Object.entries(A).reduce(function(j,P){var R=c7(P,2),D=R[0],U=R[1];return Pe(Pe({},j),{},ht({},D,U.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(A){var j;return(j=this.state.xAxisMap)===null||j===void 0||(j=j[A])===null||j===void 0?void 0:j.scale}},{key:"getYScaleByAxisId",value:function(A){var j;return(j=this.state.yAxisMap)===null||j===void 0||(j=j[A])===null||j===void 0?void 0:j.scale}},{key:"getItemByXY",value:function(A){var j=this.state,P=j.formattedGraphicalItems,R=j.activeItem;if(P&&P.length)for(var D=0,U=P.length;D<U;D++){var z=P[D],F=z.props,V=z.item,H=V.type.defaultProps!==void 0?Pe(Pe({},V.type.defaultProps),V.props):V.props,te=Jo(V.type);if(te==="Bar"){var ee=(F.data||[]).find(function(le){return Twe(A,le)});if(ee)return{graphicalItem:z,payload:ee}}else if(te==="RadialBar"){var re=(F.data||[]).find(function(le){return mI(A,le)});if(re)return{graphicalItem:z,payload:re}}else if(S_(z,R)||E_(z,R)||Dm(z,R)){var Q=Z2e({graphicalItem:z,activeTooltipItem:R,itemData:H.data}),oe=H.activeIndex===void 0?Q:H.activeIndex;return{graphicalItem:Pe(Pe({},z),{},{childIndex:oe}),payload:Dm(z,R)?H.data[Q]:z.props.data[Q]}}}return null}},{key:"render",value:function(){var A=this;if(!C6(this))return null;var j=this.props,P=j.children,R=j.className,D=j.width,U=j.height,z=j.style,F=j.compact,V=j.title,H=j.desc,te=f7(j,nCe),ee=it(te,!1);if(F)return J.createElement(F$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement(NC,Lf({},ee,{width:D,height:U,title:V,desc:H}),this.renderClipPath(),j6(P,this.renderMap)));if(this.props.accessibilityLayer){var re,Q;ee.tabIndex=(re=this.props.tabIndex)!==null&&re!==void 0?re:0,ee.role=(Q=this.props.role)!==null&&Q!==void 0?Q:"application",ee.onKeyDown=function(le){A.accessibilityManager.keyboardEvent(le)},ee.onFocus=function(){A.accessibilityManager.focus()}}var oe=this.parseEventsOfWrapper();return J.createElement(F$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement("div",Lf({className:Ve("recharts-wrapper",R),style:Pe({position:"relative",cursor:"default",width:D,height:U},z)},oe,{ref:function(X){A.container=X}}),J.createElement(NC,Lf({},ee,{width:D,height:U,title:V,desc:H,style:bCe}),this.renderClipPath(),j6(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(I.Component);ht(_,"displayName",n),ht(_,"defaultProps",Pe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),ht(_,"getDerivedStateFromProps",function(O,S){var T=O.dataKey,A=O.data,j=O.children,P=O.width,R=O.height,D=O.layout,U=O.stackOffset,z=O.margin,F=S.dataStartIndex,V=S.dataEndIndex;if(S.updateId===void 0){var H=p7(O);return Pe(Pe(Pe({},H),{},{updateId:0},x(Pe(Pe({props:O},H),{},{updateId:0}),S)),{},{prevDataKey:T,prevData:A,prevWidth:P,prevHeight:R,prevLayout:D,prevStackOffset:U,prevMargin:z,prevChildren:j})}if(T!==S.prevDataKey||A!==S.prevData||P!==S.prevWidth||R!==S.prevHeight||D!==S.prevLayout||U!==S.prevStackOffset||!If(z,S.prevMargin)){var te=p7(O),ee={chartX:S.chartX,chartY:S.chartY,isTooltipActive:S.isTooltipActive},re=Pe(Pe({},h7(S,A,D)),{},{updateId:S.updateId+1}),Q=Pe(Pe(Pe({},te),ee),re);return Pe(Pe(Pe({},Q),x(Pe({props:O},Q),S)),{},{prevDataKey:T,prevData:A,prevWidth:P,prevHeight:R,prevLayout:D,prevStackOffset:U,prevMargin:z,prevChildren:j})}if(!RC(j,S.prevChildren)){var oe,le,X,$,G=Oi(j,hd),se=G&&(oe=(le=G.props)===null||le===void 0?void 0:le.startIndex)!==null&&oe!==void 0?oe:F,Z=G&&(X=($=G.props)===null||$===void 0?void 0:$.endIndex)!==null&&X!==void 0?X:V,ue=se!==F||Z!==V,fe=!ft(A),de=fe&&!ue?S.updateId:S.updateId+1;return Pe(Pe({updateId:de},x(Pe(Pe({props:O},S),{},{updateId:de,dataStartIndex:se,dataEndIndex:Z}),S)),{},{prevChildren:j,dataStartIndex:se,dataEndIndex:Z})}return null}),ht(_,"renderActiveDot",function(O,S,T){var A;return I.isValidElement(O)?A=I.cloneElement(O,S):ct(O)?A=O(S):A=J.createElement(mv,S),J.createElement(wt,{className:"recharts-active-dot",key:T},A)});var w=I.forwardRef(function(S,T){return J.createElement(_,Lf({},S,{ref:T}))});return w.displayName=_.displayName,w},jCe=_3({chartName:"LineChart",GraphicalChild:Hd,axisComponents:[{axisType:"xAxis",AxisComp:Wd},{axisType:"yAxis",AxisComp:Gd}],formatAxisMap:oV}),PCe=_3({chartName:"PieChart",GraphicalChild:uo,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:O_},{axisType:"radiusAxis",AxisComp:x_}],formatAxisMap:H_e,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),RCe=_3({chartName:"ComposedChart",GraphicalChild:[Hd,yc,ts,R_],axisComponents:[{axisType:"xAxis",AxisComp:Wd},{axisType:"yAxis",AxisComp:Gd},{axisType:"zAxis",AxisComp:P_}],formatAxisMap:oV});function ZV(e,t){const n=I.useRef(t);I.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const MCe=1;function NCe(e){return Object.freeze({__version:MCe,map:e})}function LCe(e,t){return Object.freeze({...e,...t})}const x3=I.createContext(null);function XV(){const e=I.use(x3);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function DCe(e){function t(n,r){const{instance:i,context:a}=e(n).current;I.useImperativeHandle(r,()=>i);const{children:o}=n;return o==null?null:J.createElement(x3,{value:a},o)}return I.forwardRef(t)}function kCe(e){function t(n,r){const[i,a]=I.useState(!1),{instance:o}=e(n,a).current;I.useImperativeHandle(r,()=>o),I.useEffect(function(){i&&o.update()},[o,i,n.children]);const l=o._contentNode;return l?Hj.createPortal(n.children,l):null}return I.forwardRef(t)}function ICe(e){function t(n,r){const{instance:i}=e(n).current;return I.useImperativeHandle(r,()=>i),null}return I.forwardRef(t)}function QV(e,t){const n=I.useRef(void 0);I.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function w3(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function $Ce(e,t){return function(r,i){const a=XV(),o=e(w3(r,a),a);return ZV(a.map,r.attribution),QV(o.current,r.eventHandlers),t(o.current,a,r,i),o}}var Ep={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var UCe=Ep.exports,v7;function BCe(){return v7||(v7=1,function(e,t){(function(n,r){r(t)})(UCe,function(n){var r="1.9.4";function i(d){var v,E,N,q;for(E=1,N=arguments.length;E<N;E++){q=arguments[E];for(v in q)d[v]=q[v]}return d}var a=Object.create||function(){function d(){}return function(v){return d.prototype=v,new d}}();function o(d,v){var E=Array.prototype.slice;if(d.bind)return d.bind.apply(d,E.call(arguments,1));var N=E.call(arguments,2);return function(){return d.apply(v,N.length?N.concat(E.call(arguments)):arguments)}}var l=0;function f(d){return"_leaflet_id"in d||(d._leaflet_id=++l),d._leaflet_id}function c(d,v,E){var N,q,ne,he;return he=function(){N=!1,q&&(ne.apply(E,q),q=!1)},ne=function(){N?q=arguments:(d.apply(E,arguments),setTimeout(he,v),N=!0)},ne}function h(d,v,E){var N=v[1],q=v[0],ne=N-q;return d===N&&E?d:((d-q)%ne+ne)%ne+q}function m(){return!1}function g(d,v){if(v===!1)return d;var E=Math.pow(10,v===void 0?6:v);return Math.round(d*E)/E}function x(d){return d.trim?d.trim():d.replace(/^\s+|\s+$/g,"")}function _(d){return x(d).split(/\s+/)}function w(d,v){Object.prototype.hasOwnProperty.call(d,"options")||(d.options=d.options?a(d.options):{});for(var E in v)d.options[E]=v[E];return d.options}function O(d,v,E){var N=[];for(var q in d)N.push(encodeURIComponent(E?q.toUpperCase():q)+"="+encodeURIComponent(d[q]));return(!v||v.indexOf("?")===-1?"?":"&")+N.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function T(d,v){return d.replace(S,function(E,N){var q=v[N];if(q===void 0)throw new Error("No value provided for variable "+E);return typeof q=="function"&&(q=q(v)),q})}var A=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"};function j(d,v){for(var E=0;E<d.length;E++)if(d[E]===v)return E;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(d){return window["webkit"+d]||window["moz"+d]||window["ms"+d]}var D=0;function U(d){var v=+new Date,E=Math.max(0,16-(v-D));return D=v+E,window.setTimeout(d,E)}var z=window.requestAnimationFrame||R("RequestAnimationFrame")||U,F=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(d){window.clearTimeout(d)};function V(d,v,E){if(E&&z===U)d.call(v);else return z.call(window,o(d,v))}function H(d){d&&F.call(window,d)}var te={__proto__:null,extend:i,create:a,bind:o,get lastId(){return l},stamp:f,throttle:c,wrapNum:h,falseFn:m,formatNum:g,trim:x,splitWords:_,setOptions:w,getParamString:O,template:T,isArray:A,indexOf:j,emptyImageUrl:P,requestFn:z,cancelFn:F,requestAnimFrame:V,cancelAnimFrame:H};function ee(){}ee.extend=function(d){var v=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},E=v.__super__=this.prototype,N=a(E);N.constructor=v,v.prototype=N;for(var q in this)Object.prototype.hasOwnProperty.call(this,q)&&q!=="prototype"&&q!=="__super__"&&(v[q]=this[q]);return d.statics&&i(v,d.statics),d.includes&&(re(d.includes),i.apply(null,[N].concat(d.includes))),i(N,d),delete N.statics,delete N.includes,N.options&&(N.options=E.options?a(E.options):{},i(N.options,d.options)),N._initHooks=[],N.callInitHooks=function(){if(!this._initHooksCalled){E.callInitHooks&&E.callInitHooks.call(this),this._initHooksCalled=!0;for(var ne=0,he=N._initHooks.length;ne<he;ne++)N._initHooks[ne].call(this)}},v},ee.include=function(d){var v=this.prototype.options;return i(this.prototype,d),d.options&&(this.prototype.options=v,this.mergeOptions(d.options)),this},ee.mergeOptions=function(d){return i(this.prototype.options,d),this},ee.addInitHook=function(d){var v=Array.prototype.slice.call(arguments,1),E=typeof d=="function"?d:function(){this[d].apply(this,v)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(E),this};function re(d){if(!(typeof L>"u"||!L||!L.Mixin)){d=A(d)?d:[d];for(var v=0;v<d.length;v++)d[v]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Q={on:function(d,v,E){if(typeof d=="object")for(var N in d)this._on(N,d[N],v);else{d=_(d);for(var q=0,ne=d.length;q<ne;q++)this._on(d[q],v,E)}return this},off:function(d,v,E){if(!arguments.length)delete this._events;else if(typeof d=="object")for(var N in d)this._off(N,d[N],v);else{d=_(d);for(var q=arguments.length===1,ne=0,he=d.length;ne<he;ne++)q?this._off(d[ne]):this._off(d[ne],v,E)}return this},_on:function(d,v,E,N){if(typeof v!="function"){console.warn("wrong listener type: "+typeof v);return}if(this._listens(d,v,E)===!1){E===this&&(E=void 0);var q={fn:v,ctx:E};N&&(q.once=!0),this._events=this._events||{},this._events[d]=this._events[d]||[],this._events[d].push(q)}},_off:function(d,v,E){var N,q,ne;if(this._events&&(N=this._events[d],!!N)){if(arguments.length===1){if(this._firingCount)for(q=0,ne=N.length;q<ne;q++)N[q].fn=m;delete this._events[d];return}if(typeof v!="function"){console.warn("wrong listener type: "+typeof v);return}var he=this._listens(d,v,E);if(he!==!1){var _e=N[he];this._firingCount&&(_e.fn=m,this._events[d]=N=N.slice()),N.splice(he,1)}}},fire:function(d,v,E){if(!this.listens(d,E))return this;var N=i({},v,{type:d,target:this,sourceTarget:v&&v.sourceTarget||this});if(this._events){var q=this._events[d];if(q){this._firingCount=this._firingCount+1||1;for(var ne=0,he=q.length;ne<he;ne++){var _e=q[ne],Ae=_e.fn;_e.once&&this.off(d,Ae,_e.ctx),Ae.call(_e.ctx||this,N)}this._firingCount--}}return E&&this._propagateEvent(N),this},listens:function(d,v,E,N){typeof d!="string"&&console.warn('"string" type argument expected');var q=v;typeof v!="function"&&(N=!!v,q=void 0,E=void 0);var ne=this._events&&this._events[d];if(ne&&ne.length&&this._listens(d,q,E)!==!1)return!0;if(N){for(var he in this._eventParents)if(this._eventParents[he].listens(d,v,E,N))return!0}return!1},_listens:function(d,v,E){if(!this._events)return!1;var N=this._events[d]||[];if(!v)return!!N.length;E===this&&(E=void 0);for(var q=0,ne=N.length;q<ne;q++)if(N[q].fn===v&&N[q].ctx===E)return q;return!1},once:function(d,v,E){if(typeof d=="object")for(var N in d)this._on(N,d[N],v,!0);else{d=_(d);for(var q=0,ne=d.length;q<ne;q++)this._on(d[q],v,E,!0)}return this},addEventParent:function(d){return this._eventParents=this._eventParents||{},this._eventParents[f(d)]=d,this},removeEventParent:function(d){return this._eventParents&&delete this._eventParents[f(d)],this},_propagateEvent:function(d){for(var v in this._eventParents)this._eventParents[v].fire(d.type,i({layer:d.target,propagatedFrom:d.target},d),!0)}};Q.addEventListener=Q.on,Q.removeEventListener=Q.clearAllEventListeners=Q.off,Q.addOneTimeEventListener=Q.once,Q.fireEvent=Q.fire,Q.hasEventListeners=Q.listens;var oe=ee.extend(Q);function le(d,v,E){this.x=E?Math.round(d):d,this.y=E?Math.round(v):v}var X=Math.trunc||function(d){return d>0?Math.floor(d):Math.ceil(d)};le.prototype={clone:function(){return new le(this.x,this.y)},add:function(d){return this.clone()._add($(d))},_add:function(d){return this.x+=d.x,this.y+=d.y,this},subtract:function(d){return this.clone()._subtract($(d))},_subtract:function(d){return this.x-=d.x,this.y-=d.y,this},divideBy:function(d){return this.clone()._divideBy(d)},_divideBy:function(d){return this.x/=d,this.y/=d,this},multiplyBy:function(d){return this.clone()._multiplyBy(d)},_multiplyBy:function(d){return this.x*=d,this.y*=d,this},scaleBy:function(d){return new le(this.x*d.x,this.y*d.y)},unscaleBy:function(d){return new le(this.x/d.x,this.y/d.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=X(this.x),this.y=X(this.y),this},distanceTo:function(d){d=$(d);var v=d.x-this.x,E=d.y-this.y;return Math.sqrt(v*v+E*E)},equals:function(d){return d=$(d),d.x===this.x&&d.y===this.y},contains:function(d){return d=$(d),Math.abs(d.x)<=Math.abs(this.x)&&Math.abs(d.y)<=Math.abs(this.y)},toString:function(){return"Point("+g(this.x)+", "+g(this.y)+")"}};function $(d,v,E){return d instanceof le?d:A(d)?new le(d[0],d[1]):d==null?d:typeof d=="object"&&"x"in d&&"y"in d?new le(d.x,d.y):new le(d,v,E)}function G(d,v){if(d)for(var E=v?[d,v]:d,N=0,q=E.length;N<q;N++)this.extend(E[N])}G.prototype={extend:function(d){var v,E;if(!d)return this;if(d instanceof le||typeof d[0]=="number"||"x"in d)v=E=$(d);else if(d=se(d),v=d.min,E=d.max,!v||!E)return this;return!this.min&&!this.max?(this.min=v.clone(),this.max=E.clone()):(this.min.x=Math.min(v.x,this.min.x),this.max.x=Math.max(E.x,this.max.x),this.min.y=Math.min(v.y,this.min.y),this.max.y=Math.max(E.y,this.max.y)),this},getCenter:function(d){return $((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,d)},getBottomLeft:function(){return $(this.min.x,this.max.y)},getTopRight:function(){return $(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(d){var v,E;return typeof d[0]=="number"||d instanceof le?d=$(d):d=se(d),d instanceof G?(v=d.min,E=d.max):v=E=d,v.x>=this.min.x&&E.x<=this.max.x&&v.y>=this.min.y&&E.y<=this.max.y},intersects:function(d){d=se(d);var v=this.min,E=this.max,N=d.min,q=d.max,ne=q.x>=v.x&&N.x<=E.x,he=q.y>=v.y&&N.y<=E.y;return ne&&he},overlaps:function(d){d=se(d);var v=this.min,E=this.max,N=d.min,q=d.max,ne=q.x>v.x&&N.x<E.x,he=q.y>v.y&&N.y<E.y;return ne&&he},isValid:function(){return!!(this.min&&this.max)},pad:function(d){var v=this.min,E=this.max,N=Math.abs(v.x-E.x)*d,q=Math.abs(v.y-E.y)*d;return se($(v.x-N,v.y-q),$(E.x+N,E.y+q))},equals:function(d){return d?(d=se(d),this.min.equals(d.getTopLeft())&&this.max.equals(d.getBottomRight())):!1}};function se(d,v){return!d||d instanceof G?d:new G(d,v)}function Z(d,v){if(d)for(var E=v?[d,v]:d,N=0,q=E.length;N<q;N++)this.extend(E[N])}Z.prototype={extend:function(d){var v=this._southWest,E=this._northEast,N,q;if(d instanceof fe)N=d,q=d;else if(d instanceof Z){if(N=d._southWest,q=d._northEast,!N||!q)return this}else return d?this.extend(de(d)||ue(d)):this;return!v&&!E?(this._southWest=new fe(N.lat,N.lng),this._northEast=new fe(q.lat,q.lng)):(v.lat=Math.min(N.lat,v.lat),v.lng=Math.min(N.lng,v.lng),E.lat=Math.max(q.lat,E.lat),E.lng=Math.max(q.lng,E.lng)),this},pad:function(d){var v=this._southWest,E=this._northEast,N=Math.abs(v.lat-E.lat)*d,q=Math.abs(v.lng-E.lng)*d;return new Z(new fe(v.lat-N,v.lng-q),new fe(E.lat+N,E.lng+q))},getCenter:function(){return new fe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new fe(this.getNorth(),this.getWest())},getSouthEast:function(){return new fe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(d){typeof d[0]=="number"||d instanceof fe||"lat"in d?d=de(d):d=ue(d);var v=this._southWest,E=this._northEast,N,q;return d instanceof Z?(N=d.getSouthWest(),q=d.getNorthEast()):N=q=d,N.lat>=v.lat&&q.lat<=E.lat&&N.lng>=v.lng&&q.lng<=E.lng},intersects:function(d){d=ue(d);var v=this._southWest,E=this._northEast,N=d.getSouthWest(),q=d.getNorthEast(),ne=q.lat>=v.lat&&N.lat<=E.lat,he=q.lng>=v.lng&&N.lng<=E.lng;return ne&&he},overlaps:function(d){d=ue(d);var v=this._southWest,E=this._northEast,N=d.getSouthWest(),q=d.getNorthEast(),ne=q.lat>v.lat&&N.lat<E.lat,he=q.lng>v.lng&&N.lng<E.lng;return ne&&he},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(d,v){return d?(d=ue(d),this._southWest.equals(d.getSouthWest(),v)&&this._northEast.equals(d.getNorthEast(),v)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ue(d,v){return d instanceof Z?d:new Z(d,v)}function fe(d,v,E){if(isNaN(d)||isNaN(v))throw new Error("Invalid LatLng object: ("+d+", "+v+")");this.lat=+d,this.lng=+v,E!==void 0&&(this.alt=+E)}fe.prototype={equals:function(d,v){if(!d)return!1;d=de(d);var E=Math.max(Math.abs(this.lat-d.lat),Math.abs(this.lng-d.lng));return E<=(v===void 0?1e-9:v)},toString:function(d){return"LatLng("+g(this.lat,d)+", "+g(this.lng,d)+")"},distanceTo:function(d){return k.distance(this,de(d))},wrap:function(){return k.wrapLatLng(this)},toBounds:function(d){var v=180*d/40075017,E=v/Math.cos(Math.PI/180*this.lat);return ue([this.lat-v,this.lng-E],[this.lat+v,this.lng+E])},clone:function(){return new fe(this.lat,this.lng,this.alt)}};function de(d,v,E){return d instanceof fe?d:A(d)&&typeof d[0]!="object"?d.length===3?new fe(d[0],d[1],d[2]):d.length===2?new fe(d[0],d[1]):null:d==null?d:typeof d=="object"&&"lat"in d?new fe(d.lat,"lng"in d?d.lng:d.lon,d.alt):v===void 0?null:new fe(d,v,E)}var Se={latLngToPoint:function(d,v){var E=this.projection.project(d),N=this.scale(v);return this.transformation._transform(E,N)},pointToLatLng:function(d,v){var E=this.scale(v),N=this.transformation.untransform(d,E);return this.projection.unproject(N)},project:function(d){return this.projection.project(d)},unproject:function(d){return this.projection.unproject(d)},scale:function(d){return 256*Math.pow(2,d)},zoom:function(d){return Math.log(d/256)/Math.LN2},getProjectedBounds:function(d){if(this.infinite)return null;var v=this.projection.bounds,E=this.scale(d),N=this.transformation.transform(v.min,E),q=this.transformation.transform(v.max,E);return new G(N,q)},infinite:!1,wrapLatLng:function(d){var v=this.wrapLng?h(d.lng,this.wrapLng,!0):d.lng,E=this.wrapLat?h(d.lat,this.wrapLat,!0):d.lat,N=d.alt;return new fe(E,v,N)},wrapLatLngBounds:function(d){var v=d.getCenter(),E=this.wrapLatLng(v),N=v.lat-E.lat,q=v.lng-E.lng;if(N===0&&q===0)return d;var ne=d.getSouthWest(),he=d.getNorthEast(),_e=new fe(ne.lat-N,ne.lng-q),Ae=new fe(he.lat-N,he.lng-q);return new Z(_e,Ae)}},k=i({},Se,{wrapLng:[-180,180],R:6371e3,distance:function(d,v){var E=Math.PI/180,N=d.lat*E,q=v.lat*E,ne=Math.sin((v.lat-d.lat)*E/2),he=Math.sin((v.lng-d.lng)*E/2),_e=ne*ne+Math.cos(N)*Math.cos(q)*he*he,Ae=2*Math.atan2(Math.sqrt(_e),Math.sqrt(1-_e));return this.R*Ae}}),B=6378137,K={R:B,MAX_LATITUDE:85.0511287798,project:function(d){var v=Math.PI/180,E=this.MAX_LATITUDE,N=Math.max(Math.min(E,d.lat),-E),q=Math.sin(N*v);return new le(this.R*d.lng*v,this.R*Math.log((1+q)/(1-q))/2)},unproject:function(d){var v=180/Math.PI;return new fe((2*Math.atan(Math.exp(d.y/this.R))-Math.PI/2)*v,d.x*v/this.R)},bounds:function(){var d=B*Math.PI;return new G([-d,-d],[d,d])}()};function ce(d,v,E,N){if(A(d)){this._a=d[0],this._b=d[1],this._c=d[2],this._d=d[3];return}this._a=d,this._b=v,this._c=E,this._d=N}ce.prototype={transform:function(d,v){return this._transform(d.clone(),v)},_transform:function(d,v){return v=v||1,d.x=v*(this._a*d.x+this._b),d.y=v*(this._c*d.y+this._d),d},untransform:function(d,v){return v=v||1,new le((d.x/v-this._b)/this._a,(d.y/v-this._d)/this._c)}};function ae(d,v,E,N){return new ce(d,v,E,N)}var pe=i({},k,{code:"EPSG:3857",projection:K,transformation:function(){var d=.5/(Math.PI*K.R);return ae(d,.5,-d,.5)}()}),Te=i({},pe,{code:"EPSG:900913"});function Fe(d){return document.createElementNS("http://www.w3.org/2000/svg",d)}function ge(d,v){var E="",N,q,ne,he,_e,Ae;for(N=0,ne=d.length;N<ne;N++){for(_e=d[N],q=0,he=_e.length;q<he;q++)Ae=_e[q],E+=(q?"L":"M")+Ae.x+" "+Ae.y;E+=v?at.svg?"z":"x":""}return E||"M0 0"}var je=document.documentElement.style,Me="ActiveXObject"in window,Be=Me&&!document.addEventListener,Xe="msLaunchUri"in navigator&&!("documentMode"in document),qe=Nn("webkit"),Ye=Nn("android"),ye=Nn("android 2")||Nn("android 3"),we=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),De=Ye&&Nn("Google")&&we<537&&!("AudioNode"in window),Le=!!window.opera,Ie=!Xe&&Nn("chrome"),Ge=Nn("gecko")&&!qe&&!Le&&!Me,Ze=!Ie&&Nn("safari"),Ot=Nn("phantom"),Et="OTransition"in je,bt=navigator.platform.indexOf("Win")===0,Zt=Me&&"transition"in je,Ht="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ye,nn="MozPerspective"in je,$n=!window.L_DISABLE_3D&&(Zt||Ht||nn)&&!Et&&!Ot,xr=typeof orientation<"u"||Nn("mobile"),Vn=xr&&qe,xs=xr&&Ht,oi=!window.PointerEvent&&window.MSPointerEvent,ws=!!(window.PointerEvent||oi),La="ontouchstart"in window||!!window.TouchEvent,_c=!window.L_NO_TOUCH&&(La||ws),Os=xr&&Le,Da=xr&&Ge,gn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,hn=function(){var d=!1;try{var v=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testPassiveEventSupport",m,v),window.removeEventListener("testPassiveEventSupport",m,v)}catch{}return d}(),Qn=function(){return!!document.createElement("canvas").getContext}(),Hn=!!(document.createElementNS&&Fe("svg").createSVGRect),rn=!!Hn&&function(){var d=document.createElement("div");return d.innerHTML="<svg/>",(d.firstChild&&d.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Nt=!Hn&&function(){try{var d=document.createElement("div");d.innerHTML='<v:shape adj="1"/>';var v=d.firstChild;return v.style.behavior="url(#default#VML)",v&&typeof v.adj=="object"}catch{return!1}}(),an=navigator.platform.indexOf("Mac")===0,Jn=navigator.platform.indexOf("Linux")===0;function Nn(d){return navigator.userAgent.toLowerCase().indexOf(d)>=0}var at={ie:Me,ielt9:Be,edge:Xe,webkit:qe,android:Ye,android23:ye,androidStock:De,opera:Le,chrome:Ie,gecko:Ge,safari:Ze,phantom:Ot,opera12:Et,win:bt,ie3d:Zt,webkit3d:Ht,gecko3d:nn,any3d:$n,mobile:xr,mobileWebkit:Vn,mobileWebkit3d:xs,msPointer:oi,pointer:ws,touch:_c,touchNative:La,mobileOpera:Os,mobileGecko:Da,retina:gn,passiveEvents:hn,canvas:Qn,svg:Hn,vml:Nt,inlineSvg:rn,mac:an,linux:Jn},Sv=at.msPointer?"MSPointerDown":"pointerdown",Qd=at.msPointer?"MSPointerMove":"pointermove",Ss=at.msPointer?"MSPointerUp":"pointerup",xc=at.msPointer?"MSPointerCancel":"pointercancel",ka={touchstart:Sv,touchmove:Qd,touchend:Ss,touchcancel:xc},go={touchstart:Cv,touchmove:Ql,touchend:Ql,touchcancel:Ql},Li={},yo=!1;function Un(d,v,E){return v==="touchstart"&&q_(),go[v]?(E=go[v].bind(this,E),d.addEventListener(ka[v],E,!1),E):(console.warn("wrong event specified:",v),m)}function Ev(d,v,E){if(!ka[v]){console.warn("wrong event specified:",v);return}d.removeEventListener(ka[v],E,!1)}function Tv(d){Li[d.pointerId]=d}function bo(d){Li[d.pointerId]&&(Li[d.pointerId]=d)}function _o(d){delete Li[d.pointerId]}function q_(){yo||(document.addEventListener(Sv,Tv,!0),document.addEventListener(Qd,bo,!0),document.addEventListener(Ss,_o,!0),document.addEventListener(xc,_o,!0),yo=!0)}function Ql(d,v){if(v.pointerType!==(v.MSPOINTER_TYPE_MOUSE||"mouse")){v.touches=[];for(var E in Li)v.touches.push(Li[E]);v.changedTouches=[v],d(v)}}function Cv(d,v){v.MSPOINTER_TYPE_TOUCH&&v.pointerType===v.MSPOINTER_TYPE_TOUCH&&jn(v),Ql(d,v)}function V_(d){var v={},E,N;for(N in d)E=d[N],v[N]=E&&E.bind?E.bind(d):E;return d=v,v.type="dblclick",v.detail=2,v.isTrusted=!1,v._simulated=!0,v}var wc=200;function Oc(d,v){d.addEventListener("dblclick",v);var E=0,N;function q(ne){if(ne.detail!==1){N=ne.detail;return}if(!(ne.pointerType==="mouse"||ne.sourceCapabilities&&!ne.sourceCapabilities.firesTouchEvents)){var he=th(ne);if(!(he.some(function(Ae){return Ae instanceof HTMLLabelElement&&Ae.attributes.for})&&!he.some(function(Ae){return Ae instanceof HTMLInputElement||Ae instanceof HTMLSelectElement}))){var _e=Date.now();_e-E<=wc?(N++,N===2&&v(V_(ne))):N=1,E=_e}}}return d.addEventListener("click",q),{dblclick:v,simDblclick:q}}function oa(d,v){d.removeEventListener("dblclick",v.dblclick),d.removeEventListener("click",v.simDblclick)}var Jl=As(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Es=As(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),xo=Es==="webkitTransition"||Es==="OTransition"?Es+"End":"transitionend";function Sc(d){return typeof d=="string"?document.getElementById(d):d}function wo(d,v){var E=d.style[v]||d.currentStyle&&d.currentStyle[v];if((!E||E==="auto")&&document.defaultView){var N=document.defaultView.getComputedStyle(d,null);E=N?N[v]:null}return E==="auto"?null:E}function kt(d,v,E){var N=document.createElement(d);return N.className=v||"",E&&E.appendChild(N),N}function on(d){var v=d.parentNode;v&&v.removeChild(d)}function fr(d){for(;d.firstChild;)d.removeChild(d.firstChild)}function Oo(d){var v=d.parentNode;v&&v.lastChild!==d&&v.appendChild(d)}function Ts(d){var v=d.parentNode;v&&v.firstChild!==d&&v.insertBefore(d,v.firstChild)}function Cs(d,v){if(d.classList!==void 0)return d.classList.contains(v);var E=dr(d);return E.length>0&&new RegExp("(^|\\s)"+v+"(\\s|$)").test(E)}function _t(d,v){if(d.classList!==void 0)for(var E=_(v),N=0,q=E.length;N<q;N++)d.classList.add(E[N]);else if(!Cs(d,v)){var ne=dr(d);Jd(d,(ne?ne+" ":"")+v)}}function sn(d,v){d.classList!==void 0?d.classList.remove(v):Jd(d,x((" "+dr(d)+" ").replace(" "+v+" "," ")))}function Jd(d,v){d.className.baseVal===void 0?d.className=v:d.className.baseVal=v}function dr(d){return d.correspondingElement&&(d=d.correspondingElement),d.className.baseVal===void 0?d.className:d.className.baseVal}function wr(d,v){"opacity"in d.style?d.style.opacity=v:"filter"in d.style&&Av(d,v)}function Av(d,v){var E=!1,N="DXImageTransform.Microsoft.Alpha";try{E=d.filters.item(N)}catch{if(v===1)return}v=Math.round(v*100),E?(E.Enabled=v!==100,E.Opacity=v):d.style.filter+=" progid:"+N+"(opacity="+v+")"}function As(d){for(var v=document.documentElement.style,E=0;E<d.length;E++)if(d[E]in v)return d[E];return!1}function Gr(d,v,E){var N=v||new le(0,0);d.style[Jl]=(at.ie3d?"translate("+N.x+"px,"+N.y+"px)":"translate3d("+N.x+"px,"+N.y+"px,0)")+(E?" scale("+E+")":"")}function En(d,v){d._leaflet_pos=v,at.any3d?Gr(d,v):(d.style.left=v.x+"px",d.style.top=v.y+"px")}function Ia(d){return d._leaflet_pos||new le(0,0)}var Di,eu,Ec;if("onselectstart"in document)Di=function(){gt(window,"selectstart",jn)},eu=function(){$t(window,"selectstart",jn)};else{var js=As(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Di=function(){if(js){var d=document.documentElement.style;Ec=d[js],d[js]="none"}},eu=function(){js&&(document.documentElement.style[js]=Ec,Ec=void 0)}}function tu(){gt(window,"dragstart",jn)}function eh(){$t(window,"dragstart",jn)}var Tc,Ps;function nu(d){for(;d.tabIndex===-1;)d=d.parentNode;d.style&&(Rs(),Tc=d,Ps=d.style.outlineStyle,d.style.outlineStyle="none",gt(window,"keydown",Rs))}function Rs(){Tc&&(Tc.style.outlineStyle=Ps,Tc=void 0,Ps=void 0,$t(window,"keydown",Rs))}function So(d){do d=d.parentNode;while((!d.offsetWidth||!d.offsetHeight)&&d!==document.body);return d}function $a(d){var v=d.getBoundingClientRect();return{x:v.width/d.offsetWidth||1,y:v.height/d.offsetHeight||1,boundingClientRect:v}}var jv={__proto__:null,TRANSFORM:Jl,TRANSITION:Es,TRANSITION_END:xo,get:Sc,getStyle:wo,create:kt,remove:on,empty:fr,toFront:Oo,toBack:Ts,hasClass:Cs,addClass:_t,removeClass:sn,setClass:Jd,getClass:dr,setOpacity:wr,testProp:As,setTransform:Gr,setPosition:En,getPosition:Ia,get disableTextSelection(){return Di},get enableTextSelection(){return eu},disableImageDrag:tu,enableImageDrag:eh,preventOutline:nu,restoreOutline:Rs,getSizedParentNode:So,getScale:$a};function gt(d,v,E,N){if(v&&typeof v=="object")for(var q in v)Eo(d,q,v[q],E);else{v=_(v);for(var ne=0,he=v.length;ne<he;ne++)Eo(d,v[ne],E,N)}return this}var si="_leaflet_events";function $t(d,v,E,N){if(arguments.length===1)ki(d),delete d[si];else if(v&&typeof v=="object")for(var q in v)Ii(d,q,v[q],E);else if(v=_(v),arguments.length===2)ki(d,function(_e){return j(v,_e)!==-1});else for(var ne=0,he=v.length;ne<he;ne++)Ii(d,v[ne],E,N);return this}function ki(d,v){for(var E in d[si]){var N=E.split(/\d/)[0];(!v||v(N))&&Ii(d,N,null,null,E)}}var ru={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Eo(d,v,E,N){var q=v+f(E)+(N?"_"+f(N):"");if(d[si]&&d[si][q])return this;var ne=function(_e){return E.call(N||d,_e||window.event)},he=ne;!at.touchNative&&at.pointer&&v.indexOf("touch")===0?ne=Un(d,v,ne):at.touch&&v==="dblclick"?ne=Oc(d,ne):"addEventListener"in d?v==="touchstart"||v==="touchmove"||v==="wheel"||v==="mousewheel"?d.addEventListener(ru[v]||v,ne,at.passiveEvents?{passive:!1}:!1):v==="mouseenter"||v==="mouseleave"?(ne=function(_e){_e=_e||window.event,Co(d,_e)&&he(_e)},d.addEventListener(ru[v],ne,!1)):d.addEventListener(v,he,!1):d.attachEvent("on"+v,ne),d[si]=d[si]||{},d[si][q]=ne}function Ii(d,v,E,N,q){q=q||v+f(E)+(N?"_"+f(N):"");var ne=d[si]&&d[si][q];if(!ne)return this;!at.touchNative&&at.pointer&&v.indexOf("touch")===0?Ev(d,v,ne):at.touch&&v==="dblclick"?oa(d,ne):"removeEventListener"in d?d.removeEventListener(ru[v]||v,ne,!1):d.detachEvent("on"+v,ne),d[si][q]=null}function sa(d){return d.stopPropagation?d.stopPropagation():d.originalEvent?d.originalEvent._stopped=!0:d.cancelBubble=!0,this}function Ms(d){return Eo(d,"wheel",sa),this}function Ns(d){return gt(d,"mousedown touchstart dblclick contextmenu",sa),d._leaflet_disable_click=!0,this}function jn(d){return d.preventDefault?d.preventDefault():d.returnValue=!1,this}function $i(d){return jn(d),sa(d),this}function th(d){if(d.composedPath)return d.composedPath();for(var v=[],E=d.target;E;)v.push(E),E=E.parentNode;return v}function hr(d,v){if(!v)return new le(d.clientX,d.clientY);var E=$a(v),N=E.boundingClientRect;return new le((d.clientX-N.left)/E.x-v.clientLeft,(d.clientY-N.top)/E.y-v.clientTop)}var To=at.linux&&at.chrome?window.devicePixelRatio:at.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function iu(d){return at.edge?d.wheelDeltaY/2:d.deltaY&&d.deltaMode===0?-d.deltaY/To:d.deltaY&&d.deltaMode===1?-d.deltaY*20:d.deltaY&&d.deltaMode===2?-d.deltaY*60:d.deltaX||d.deltaZ?0:d.wheelDelta?(d.wheelDeltaY||d.wheelDelta)/2:d.detail&&Math.abs(d.detail)<32765?-d.detail*20:d.detail?d.detail/-32765*60:0}function Co(d,v){var E=v.relatedTarget;if(!E)return!0;try{for(;E&&E!==d;)E=E.parentNode}catch{return!1}return E!==d}var H_={__proto__:null,on:gt,off:$t,stopPropagation:sa,disableScrollPropagation:Ms,disableClickPropagation:Ns,preventDefault:jn,stop:$i,getPropagationPath:th,getMousePosition:hr,getWheelDelta:iu,isExternalTarget:Co,addListener:gt,removeListener:$t},Cc=oe.extend({run:function(d,v,E,N){this.stop(),this._el=d,this._inProgress=!0,this._duration=E||.25,this._easeOutPower=1/Math.max(N||.5,.2),this._startPos=Ia(d),this._offset=v.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=V(this._animate,this),this._step()},_step:function(d){var v=+new Date-this._startTime,E=this._duration*1e3;v<E?this._runFrame(this._easeOut(v/E),d):(this._runFrame(1),this._complete())},_runFrame:function(d,v){var E=this._startPos.add(this._offset.multiplyBy(d));v&&E._round(),En(this._el,E),this.fire("step")},_complete:function(){H(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(d){return 1-Math.pow(1-d,this._easeOutPower)}}),Ct=oe.extend({options:{crs:pe,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(d,v){v=w(this,v),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(d),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),v.maxBounds&&this.setMaxBounds(v.maxBounds),v.zoom!==void 0&&(this._zoom=this._limitZoom(v.zoom)),v.center&&v.zoom!==void 0&&this.setView(de(v.center),v.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Es&&at.any3d&&!at.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),gt(this._proxy,xo,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(d,v,E){if(v=v===void 0?this._zoom:this._limitZoom(v),d=this._limitCenter(de(d),v,this.options.maxBounds),E=E||{},this._stop(),this._loaded&&!E.reset&&E!==!0){E.animate!==void 0&&(E.zoom=i({animate:E.animate},E.zoom),E.pan=i({animate:E.animate,duration:E.duration},E.pan));var N=this._zoom!==v?this._tryAnimatedZoom&&this._tryAnimatedZoom(d,v,E.zoom):this._tryAnimatedPan(d,E.pan);if(N)return clearTimeout(this._sizeTimer),this}return this._resetView(d,v,E.pan&&E.pan.noMoveStart),this},setZoom:function(d,v){return this._loaded?this.setView(this.getCenter(),d,{zoom:v}):(this._zoom=d,this)},zoomIn:function(d,v){return d=d||(at.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+d,v)},zoomOut:function(d,v){return d=d||(at.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-d,v)},setZoomAround:function(d,v,E){var N=this.getZoomScale(v),q=this.getSize().divideBy(2),ne=d instanceof le?d:this.latLngToContainerPoint(d),he=ne.subtract(q).multiplyBy(1-1/N),_e=this.containerPointToLatLng(q.add(he));return this.setView(_e,v,{zoom:E})},_getBoundsCenterZoom:function(d,v){v=v||{},d=d.getBounds?d.getBounds():ue(d);var E=$(v.paddingTopLeft||v.padding||[0,0]),N=$(v.paddingBottomRight||v.padding||[0,0]),q=this.getBoundsZoom(d,!1,E.add(N));if(q=typeof v.maxZoom=="number"?Math.min(v.maxZoom,q):q,q===1/0)return{center:d.getCenter(),zoom:q};var ne=N.subtract(E).divideBy(2),he=this.project(d.getSouthWest(),q),_e=this.project(d.getNorthEast(),q),Ae=this.unproject(he.add(_e).divideBy(2).add(ne),q);return{center:Ae,zoom:q}},fitBounds:function(d,v){if(d=ue(d),!d.isValid())throw new Error("Bounds are not valid.");var E=this._getBoundsCenterZoom(d,v);return this.setView(E.center,E.zoom,v)},fitWorld:function(d){return this.fitBounds([[-90,-180],[90,180]],d)},panTo:function(d,v){return this.setView(d,this._zoom,{pan:v})},panBy:function(d,v){if(d=$(d).round(),v=v||{},!d.x&&!d.y)return this.fire("moveend");if(v.animate!==!0&&!this.getSize().contains(d))return this._resetView(this.unproject(this.project(this.getCenter()).add(d)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Cc,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),v.noMoveStart||this.fire("movestart"),v.animate!==!1){_t(this._mapPane,"leaflet-pan-anim");var E=this._getMapPanePos().subtract(d).round();this._panAnim.run(this._mapPane,E,v.duration||.25,v.easeLinearity)}else this._rawPanBy(d),this.fire("move").fire("moveend");return this},flyTo:function(d,v,E){if(E=E||{},E.animate===!1||!at.any3d)return this.setView(d,v,E);this._stop();var N=this.project(this.getCenter()),q=this.project(d),ne=this.getSize(),he=this._zoom;d=de(d),v=v===void 0?he:v;var _e=Math.max(ne.x,ne.y),Ae=_e*this.getZoomScale(he,v),$e=q.distanceTo(N)||1,Je=1.42,tt=Je*Je;function rt(yn){var Fi=yn?-1:1,ca=yn?Ae:_e,qa=Ae*Ae-_e*_e+Fi*tt*tt*$e*$e,fa=2*ca*tt*$e,gu=qa/fa,Bc=Math.sqrt(gu*gu+1)-gu,yu=Bc<1e-9?-18:Math.log(Bc);return yu}function vt(yn){return(Math.exp(yn)-Math.exp(-yn))/2}function ln(yn){return(Math.exp(yn)+Math.exp(-yn))/2}function Tn(yn){return vt(yn)/ln(yn)}var tr=rt(0);function Yr(yn){return _e*(ln(tr)/ln(tr+Je*yn))}function Yv(yn){return _e*(ln(tr)*Tn(tr+Je*yn)-vt(tr))/tt}function Kv(yn){return 1-Math.pow(1-yn,1.5)}var vu=Date.now(),Hs=(rt(1)-tr)/Je,Zv=E.duration?1e3*E.duration:1e3*Hs*.8;function Ws(){var yn=(Date.now()-vu)/Zv,Fi=Kv(yn)*Hs;yn<=1?(this._flyToFrame=V(Ws,this),this._move(this.unproject(N.add(q.subtract(N).multiplyBy(Yv(Fi)/$e)),he),this.getScaleZoom(_e/Yr(Fi),he),{flyTo:!0})):this._move(d,v)._moveEnd(!0)}return this._moveStart(!0,E.noMoveStart),Ws.call(this),this},flyToBounds:function(d,v){var E=this._getBoundsCenterZoom(d,v);return this.flyTo(E.center,E.zoom,v)},setMaxBounds:function(d){return d=ue(d),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),d.isValid()?(this.options.maxBounds=d,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(d){var v=this.options.minZoom;return this.options.minZoom=d,this._loaded&&v!==d&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(d):this},setMaxZoom:function(d){var v=this.options.maxZoom;return this.options.maxZoom=d,this._loaded&&v!==d&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(d):this},panInsideBounds:function(d,v){this._enforcingBounds=!0;var E=this.getCenter(),N=this._limitCenter(E,this._zoom,ue(d));return E.equals(N)||this.panTo(N,v),this._enforcingBounds=!1,this},panInside:function(d,v){v=v||{};var E=$(v.paddingTopLeft||v.padding||[0,0]),N=$(v.paddingBottomRight||v.padding||[0,0]),q=this.project(this.getCenter()),ne=this.project(d),he=this.getPixelBounds(),_e=se([he.min.add(E),he.max.subtract(N)]),Ae=_e.getSize();if(!_e.contains(ne)){this._enforcingBounds=!0;var $e=ne.subtract(_e.getCenter()),Je=_e.extend(ne).getSize().subtract(Ae);q.x+=$e.x<0?-Je.x:Je.x,q.y+=$e.y<0?-Je.y:Je.y,this.panTo(this.unproject(q),v),this._enforcingBounds=!1}return this},invalidateSize:function(d){if(!this._loaded)return this;d=i({animate:!1,pan:!0},d===!0?{animate:!0}:d);var v=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var E=this.getSize(),N=v.divideBy(2).round(),q=E.divideBy(2).round(),ne=N.subtract(q);return!ne.x&&!ne.y?this:(d.animate&&d.pan?this.panBy(ne):(d.pan&&this._rawPanBy(ne),this.fire("move"),d.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:v,newSize:E}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(d){if(d=this._locateOptions=i({timeout:1e4,watch:!1},d),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var v=o(this._handleGeolocationResponse,this),E=o(this._handleGeolocationError,this);return d.watch?this._locationWatchId=navigator.geolocation.watchPosition(v,E,d):navigator.geolocation.getCurrentPosition(v,E,d),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(d){if(this._container._leaflet_id){var v=d.code,E=d.message||(v===1?"permission denied":v===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:v,message:"Geolocation error: "+E+"."})}},_handleGeolocationResponse:function(d){if(this._container._leaflet_id){var v=d.coords.latitude,E=d.coords.longitude,N=new fe(v,E),q=N.toBounds(d.coords.accuracy*2),ne=this._locateOptions;if(ne.setView){var he=this.getBoundsZoom(q);this.setView(N,ne.maxZoom?Math.min(he,ne.maxZoom):he)}var _e={latlng:N,bounds:q,timestamp:d.timestamp};for(var Ae in d.coords)typeof d.coords[Ae]=="number"&&(_e[Ae]=d.coords[Ae]);this.fire("locationfound",_e)}},addHandler:function(d,v){if(!v)return this;var E=this[d]=new v(this);return this._handlers.push(E),this.options[d]&&E.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),on(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(H(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var d;for(d in this._layers)this._layers[d].remove();for(d in this._panes)on(this._panes[d]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(d,v){var E="leaflet-pane"+(d?" leaflet-"+d.replace("Pane","")+"-pane":""),N=kt("div",E,v||this._mapPane);return d&&(this._panes[d]=N),N},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var d=this.getPixelBounds(),v=this.unproject(d.getBottomLeft()),E=this.unproject(d.getTopRight());return new Z(v,E)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(d,v,E){d=ue(d),E=$(E||[0,0]);var N=this.getZoom()||0,q=this.getMinZoom(),ne=this.getMaxZoom(),he=d.getNorthWest(),_e=d.getSouthEast(),Ae=this.getSize().subtract(E),$e=se(this.project(_e,N),this.project(he,N)).getSize(),Je=at.any3d?this.options.zoomSnap:1,tt=Ae.x/$e.x,rt=Ae.y/$e.y,vt=v?Math.max(tt,rt):Math.min(tt,rt);return N=this.getScaleZoom(vt,N),Je&&(N=Math.round(N/(Je/100))*(Je/100),N=v?Math.ceil(N/Je)*Je:Math.floor(N/Je)*Je),Math.max(q,Math.min(ne,N))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new le(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(d,v){var E=this._getTopLeftPoint(d,v);return new G(E,E.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(d){return this.options.crs.getProjectedBounds(d===void 0?this.getZoom():d)},getPane:function(d){return typeof d=="string"?this._panes[d]:d},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(d,v){var E=this.options.crs;return v=v===void 0?this._zoom:v,E.scale(d)/E.scale(v)},getScaleZoom:function(d,v){var E=this.options.crs;v=v===void 0?this._zoom:v;var N=E.zoom(d*E.scale(v));return isNaN(N)?1/0:N},project:function(d,v){return v=v===void 0?this._zoom:v,this.options.crs.latLngToPoint(de(d),v)},unproject:function(d,v){return v=v===void 0?this._zoom:v,this.options.crs.pointToLatLng($(d),v)},layerPointToLatLng:function(d){var v=$(d).add(this.getPixelOrigin());return this.unproject(v)},latLngToLayerPoint:function(d){var v=this.project(de(d))._round();return v._subtract(this.getPixelOrigin())},wrapLatLng:function(d){return this.options.crs.wrapLatLng(de(d))},wrapLatLngBounds:function(d){return this.options.crs.wrapLatLngBounds(ue(d))},distance:function(d,v){return this.options.crs.distance(de(d),de(v))},containerPointToLayerPoint:function(d){return $(d).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(d){return $(d).add(this._getMapPanePos())},containerPointToLatLng:function(d){var v=this.containerPointToLayerPoint($(d));return this.layerPointToLatLng(v)},latLngToContainerPoint:function(d){return this.layerPointToContainerPoint(this.latLngToLayerPoint(de(d)))},mouseEventToContainerPoint:function(d){return hr(d,this._container)},mouseEventToLayerPoint:function(d){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(d))},mouseEventToLatLng:function(d){return this.layerPointToLatLng(this.mouseEventToLayerPoint(d))},_initContainer:function(d){var v=this._container=Sc(d);if(v){if(v._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");gt(v,"scroll",this._onScroll,this),this._containerId=f(v)},_initLayout:function(){var d=this._container;this._fadeAnimated=this.options.fadeAnimation&&at.any3d,_t(d,"leaflet-container"+(at.touch?" leaflet-touch":"")+(at.retina?" leaflet-retina":"")+(at.ielt9?" leaflet-oldie":"")+(at.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var v=wo(d,"position");v!=="absolute"&&v!=="relative"&&v!=="fixed"&&v!=="sticky"&&(d.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var d=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),En(this._mapPane,new le(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(_t(d.markerPane,"leaflet-zoom-hide"),_t(d.shadowPane,"leaflet-zoom-hide"))},_resetView:function(d,v,E){En(this._mapPane,new le(0,0));var N=!this._loaded;this._loaded=!0,v=this._limitZoom(v),this.fire("viewprereset");var q=this._zoom!==v;this._moveStart(q,E)._move(d,v)._moveEnd(q),this.fire("viewreset"),N&&this.fire("load")},_moveStart:function(d,v){return d&&this.fire("zoomstart"),v||this.fire("movestart"),this},_move:function(d,v,E,N){v===void 0&&(v=this._zoom);var q=this._zoom!==v;return this._zoom=v,this._lastCenter=d,this._pixelOrigin=this._getNewPixelOrigin(d),N?E&&E.pinch&&this.fire("zoom",E):((q||E&&E.pinch)&&this.fire("zoom",E),this.fire("move",E)),this},_moveEnd:function(d){return d&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return H(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(d){En(this._mapPane,this._getMapPanePos().subtract(d))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(d){this._targets={},this._targets[f(this._container)]=this;var v=d?$t:gt;v(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&v(window,"resize",this._onResize,this),at.any3d&&this.options.transform3DLimit&&(d?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){H(this._resizeRequest),this._resizeRequest=V(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var d=this._getMapPanePos();Math.max(Math.abs(d.x),Math.abs(d.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(d,v){for(var E=[],N,q=v==="mouseout"||v==="mouseover",ne=d.target||d.srcElement,he=!1;ne;){if(N=this._targets[f(ne)],N&&(v==="click"||v==="preclick")&&this._draggableMoved(N)){he=!0;break}if(N&&N.listens(v,!0)&&(q&&!Co(ne,d)||(E.push(N),q))||ne===this._container)break;ne=ne.parentNode}return!E.length&&!he&&!q&&this.listens(v,!0)&&(E=[this]),E},_isClickDisabled:function(d){for(;d&&d!==this._container;){if(d._leaflet_disable_click)return!0;d=d.parentNode}},_handleDOMEvent:function(d){var v=d.target||d.srcElement;if(!(!this._loaded||v._leaflet_disable_events||d.type==="click"&&this._isClickDisabled(v))){var E=d.type;E==="mousedown"&&nu(v),this._fireDOMEvent(d,E)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(d,v,E){if(d.type==="click"){var N=i({},d);N.type="preclick",this._fireDOMEvent(N,N.type,E)}var q=this._findEventTargets(d,v);if(E){for(var ne=[],he=0;he<E.length;he++)E[he].listens(v,!0)&&ne.push(E[he]);q=ne.concat(q)}if(q.length){v==="contextmenu"&&jn(d);var _e=q[0],Ae={originalEvent:d};if(d.type!=="keypress"&&d.type!=="keydown"&&d.type!=="keyup"){var $e=_e.getLatLng&&(!_e._radius||_e._radius<=10);Ae.containerPoint=$e?this.latLngToContainerPoint(_e.getLatLng()):this.mouseEventToContainerPoint(d),Ae.layerPoint=this.containerPointToLayerPoint(Ae.containerPoint),Ae.latlng=$e?_e.getLatLng():this.layerPointToLatLng(Ae.layerPoint)}for(he=0;he<q.length;he++)if(q[he].fire(v,Ae,!0),Ae.originalEvent._stopped||q[he].options.bubblingMouseEvents===!1&&j(this._mouseEvents,v)!==-1)return}},_draggableMoved:function(d){return d=d.dragging&&d.dragging.enabled()?d:this,d.dragging&&d.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var d=0,v=this._handlers.length;d<v;d++)this._handlers[d].disable()},whenReady:function(d,v){return this._loaded?d.call(v||this,{target:this}):this.on("load",d,v),this},_getMapPanePos:function(){return Ia(this._mapPane)||new le(0,0)},_moved:function(){var d=this._getMapPanePos();return d&&!d.equals([0,0])},_getTopLeftPoint:function(d,v){var E=d&&v!==void 0?this._getNewPixelOrigin(d,v):this.getPixelOrigin();return E.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(d,v){var E=this.getSize()._divideBy(2);return this.project(d,v)._subtract(E)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(d,v,E){var N=this._getNewPixelOrigin(E,v);return this.project(d,v)._subtract(N)},_latLngBoundsToNewLayerBounds:function(d,v,E){var N=this._getNewPixelOrigin(E,v);return se([this.project(d.getSouthWest(),v)._subtract(N),this.project(d.getNorthWest(),v)._subtract(N),this.project(d.getSouthEast(),v)._subtract(N),this.project(d.getNorthEast(),v)._subtract(N)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(d){return this.latLngToLayerPoint(d).subtract(this._getCenterLayerPoint())},_limitCenter:function(d,v,E){if(!E)return d;var N=this.project(d,v),q=this.getSize().divideBy(2),ne=new G(N.subtract(q),N.add(q)),he=this._getBoundsOffset(ne,E,v);return Math.abs(he.x)<=1&&Math.abs(he.y)<=1?d:this.unproject(N.add(he),v)},_limitOffset:function(d,v){if(!v)return d;var E=this.getPixelBounds(),N=new G(E.min.add(d),E.max.add(d));return d.add(this._getBoundsOffset(N,v))},_getBoundsOffset:function(d,v,E){var N=se(this.project(v.getNorthEast(),E),this.project(v.getSouthWest(),E)),q=N.min.subtract(d.min),ne=N.max.subtract(d.max),he=this._rebound(q.x,-ne.x),_e=this._rebound(q.y,-ne.y);return new le(he,_e)},_rebound:function(d,v){return d+v>0?Math.round(d-v)/2:Math.max(0,Math.ceil(d))-Math.max(0,Math.floor(v))},_limitZoom:function(d){var v=this.getMinZoom(),E=this.getMaxZoom(),N=at.any3d?this.options.zoomSnap:1;return N&&(d=Math.round(d/N)*N),Math.max(v,Math.min(E,d))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){sn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(d,v){var E=this._getCenterOffset(d)._trunc();return(v&&v.animate)!==!0&&!this.getSize().contains(E)?!1:(this.panBy(E,v),!0)},_createAnimProxy:function(){var d=this._proxy=kt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(d),this.on("zoomanim",function(v){var E=Jl,N=this._proxy.style[E];Gr(this._proxy,this.project(v.center,v.zoom),this.getZoomScale(v.zoom,1)),N===this._proxy.style[E]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){on(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var d=this.getCenter(),v=this.getZoom();Gr(this._proxy,this.project(d,v),this.getZoomScale(v,1))},_catchTransitionEnd:function(d){this._animatingZoom&&d.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(d,v,E){if(this._animatingZoom)return!0;if(E=E||{},!this._zoomAnimated||E.animate===!1||this._nothingToAnimate()||Math.abs(v-this._zoom)>this.options.zoomAnimationThreshold)return!1;var N=this.getZoomScale(v),q=this._getCenterOffset(d)._divideBy(1-1/N);return E.animate!==!0&&!this.getSize().contains(q)?!1:(V(function(){this._moveStart(!0,E.noMoveStart||!1)._animateZoom(d,v,!0)},this),!0)},_animateZoom:function(d,v,E,N){this._mapPane&&(E&&(this._animatingZoom=!0,this._animateToCenter=d,this._animateToZoom=v,_t(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:d,zoom:v,noUpdate:N}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&sn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function au(d,v){return new Ct(d,v)}var Or=ee.extend({options:{position:"topright"},initialize:function(d){w(this,d)},getPosition:function(){return this.options.position},setPosition:function(d){var v=this._map;return v&&v.removeControl(this),this.options.position=d,v&&v.addControl(this),this},getContainer:function(){return this._container},addTo:function(d){this.remove(),this._map=d;var v=this._container=this.onAdd(d),E=this.getPosition(),N=d._controlCorners[E];return _t(v,"leaflet-control"),E.indexOf("bottom")!==-1?N.insertBefore(v,N.firstChild):N.appendChild(v),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(on(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(d){this._map&&d&&d.screenX>0&&d.screenY>0&&this._map.getContainer().focus()}}),Ls=function(d){return new Or(d)};Ct.include({addControl:function(d){return d.addTo(this),this},removeControl:function(d){return d.remove(),this},_initControlPos:function(){var d=this._controlCorners={},v="leaflet-",E=this._controlContainer=kt("div",v+"control-container",this._container);function N(q,ne){var he=v+q+" "+v+ne;d[q+ne]=kt("div",he,E)}N("top","left"),N("top","right"),N("bottom","left"),N("bottom","right")},_clearControlPos:function(){for(var d in this._controlCorners)on(this._controlCorners[d]);on(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Pv=Or.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(d,v,E,N){return E<N?-1:N<E?1:0}},initialize:function(d,v,E){w(this,E),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var N in d)this._addLayer(d[N],N);for(N in v)this._addLayer(v[N],N,!0)},onAdd:function(d){this._initLayout(),this._update(),this._map=d,d.on("zoomend",this._checkDisabledLayers,this);for(var v=0;v<this._layers.length;v++)this._layers[v].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(d){return Or.prototype.addTo.call(this,d),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(d,v){return this._addLayer(d,v),this._map?this._update():this},addOverlay:function(d,v){return this._addLayer(d,v,!0),this._map?this._update():this},removeLayer:function(d){d.off("add remove",this._onLayerChange,this);var v=this._getLayer(f(d));return v&&this._layers.splice(this._layers.indexOf(v),1),this._map?this._update():this},expand:function(){_t(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var d=this._map.getSize().y-(this._container.offsetTop+50);return d<this._section.clientHeight?(_t(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=d+"px"):sn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return sn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var d="leaflet-control-layers",v=this._container=kt("div",d),E=this.options.collapsed;v.setAttribute("aria-haspopup",!0),Ns(v),Ms(v);var N=this._section=kt("section",d+"-list");E&&(this._map.on("click",this.collapse,this),gt(v,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var q=this._layersLink=kt("a",d+"-toggle",v);q.href="#",q.title="Layers",q.setAttribute("role","button"),gt(q,{keydown:function(ne){ne.keyCode===13&&this._expandSafely()},click:function(ne){jn(ne),this._expandSafely()}},this),E||this.expand(),this._baseLayersList=kt("div",d+"-base",N),this._separator=kt("div",d+"-separator",N),this._overlaysList=kt("div",d+"-overlays",N),v.appendChild(N)},_getLayer:function(d){for(var v=0;v<this._layers.length;v++)if(this._layers[v]&&f(this._layers[v].layer)===d)return this._layers[v]},_addLayer:function(d,v,E){this._map&&d.on("add remove",this._onLayerChange,this),this._layers.push({layer:d,name:v,overlay:E}),this.options.sortLayers&&this._layers.sort(o(function(N,q){return this.options.sortFunction(N.layer,q.layer,N.name,q.name)},this)),this.options.autoZIndex&&d.setZIndex&&(this._lastZIndex++,d.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;fr(this._baseLayersList),fr(this._overlaysList),this._layerControlInputs=[];var d,v,E,N,q=0;for(E=0;E<this._layers.length;E++)N=this._layers[E],this._addItem(N),v=v||N.overlay,d=d||!N.overlay,q+=N.overlay?0:1;return this.options.hideSingleBase&&(d=d&&q>1,this._baseLayersList.style.display=d?"":"none"),this._separator.style.display=v&&d?"":"none",this},_onLayerChange:function(d){this._handlingClick||this._update();var v=this._getLayer(f(d.target)),E=v.overlay?d.type==="add"?"overlayadd":"overlayremove":d.type==="add"?"baselayerchange":null;E&&this._map.fire(E,v)},_createRadioElement:function(d,v){var E='<input type="radio" class="leaflet-control-layers-selector" name="'+d+'"'+(v?' checked="checked"':"")+"/>",N=document.createElement("div");return N.innerHTML=E,N.firstChild},_addItem:function(d){var v=document.createElement("label"),E=this._map.hasLayer(d.layer),N;d.overlay?(N=document.createElement("input"),N.type="checkbox",N.className="leaflet-control-layers-selector",N.defaultChecked=E):N=this._createRadioElement("leaflet-base-layers_"+f(this),E),this._layerControlInputs.push(N),N.layerId=f(d.layer),gt(N,"click",this._onInputClick,this);var q=document.createElement("span");q.innerHTML=" "+d.name;var ne=document.createElement("span");v.appendChild(ne),ne.appendChild(N),ne.appendChild(q);var he=d.overlay?this._overlaysList:this._baseLayersList;return he.appendChild(v),this._checkDisabledLayers(),v},_onInputClick:function(){if(!this._preventClick){var d=this._layerControlInputs,v,E,N=[],q=[];this._handlingClick=!0;for(var ne=d.length-1;ne>=0;ne--)v=d[ne],E=this._getLayer(v.layerId).layer,v.checked?N.push(E):v.checked||q.push(E);for(ne=0;ne<q.length;ne++)this._map.hasLayer(q[ne])&&this._map.removeLayer(q[ne]);for(ne=0;ne<N.length;ne++)this._map.hasLayer(N[ne])||this._map.addLayer(N[ne]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var d=this._layerControlInputs,v,E,N=this._map.getZoom(),q=d.length-1;q>=0;q--)v=d[q],E=this._getLayer(v.layerId).layer,v.disabled=E.options.minZoom!==void 0&&N<E.options.minZoom||E.options.maxZoom!==void 0&&N>E.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var d=this._section;this._preventClick=!0,gt(d,"click",jn),this.expand();var v=this;setTimeout(function(){$t(d,"click",jn),v._preventClick=!1})}}),W_=function(d,v,E){return new Pv(d,v,E)},nh=Or.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(d){var v="leaflet-control-zoom",E=kt("div",v+" leaflet-bar"),N=this.options;return this._zoomInButton=this._createButton(N.zoomInText,N.zoomInTitle,v+"-in",E,this._zoomIn),this._zoomOutButton=this._createButton(N.zoomOutText,N.zoomOutTitle,v+"-out",E,this._zoomOut),this._updateDisabled(),d.on("zoomend zoomlevelschange",this._updateDisabled,this),E},onRemove:function(d){d.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(d){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(d.shiftKey?3:1))},_zoomOut:function(d){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(d.shiftKey?3:1))},_createButton:function(d,v,E,N,q){var ne=kt("a",E,N);return ne.innerHTML=d,ne.href="#",ne.title=v,ne.setAttribute("role","button"),ne.setAttribute("aria-label",v),Ns(ne),gt(ne,"click",$i),gt(ne,"click",q,this),gt(ne,"click",this._refocusOnMap,this),ne},_updateDisabled:function(){var d=this._map,v="leaflet-disabled";sn(this._zoomInButton,v),sn(this._zoomOutButton,v),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||d._zoom===d.getMinZoom())&&(_t(this._zoomOutButton,v),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||d._zoom===d.getMaxZoom())&&(_t(this._zoomInButton,v),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ct.mergeOptions({zoomControl:!0}),Ct.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new nh,this.addControl(this.zoomControl))});var rh=function(d){return new nh(d)},Rv=Or.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(d){var v="leaflet-control-scale",E=kt("div",v),N=this.options;return this._addScales(N,v+"-line",E),d.on(N.updateWhenIdle?"moveend":"move",this._update,this),d.whenReady(this._update,this),E},onRemove:function(d){d.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(d,v,E){d.metric&&(this._mScale=kt("div",v,E)),d.imperial&&(this._iScale=kt("div",v,E))},_update:function(){var d=this._map,v=d.getSize().y/2,E=d.distance(d.containerPointToLatLng([0,v]),d.containerPointToLatLng([this.options.maxWidth,v]));this._updateScales(E)},_updateScales:function(d){this.options.metric&&d&&this._updateMetric(d),this.options.imperial&&d&&this._updateImperial(d)},_updateMetric:function(d){var v=this._getRoundNum(d),E=v<1e3?v+" m":v/1e3+" km";this._updateScale(this._mScale,E,v/d)},_updateImperial:function(d){var v=d*3.2808399,E,N,q;v>5280?(E=v/5280,N=this._getRoundNum(E),this._updateScale(this._iScale,N+" mi",N/E)):(q=this._getRoundNum(v),this._updateScale(this._iScale,q+" ft",q/v))},_updateScale:function(d,v,E){d.style.width=Math.round(this.options.maxWidth*E)+"px",d.innerHTML=v},_getRoundNum:function(d){var v=Math.pow(10,(Math.floor(d)+"").length-1),E=d/v;return E=E>=10?10:E>=5?5:E>=3?3:E>=2?2:1,v*E}}),G_=function(d){return new Rv(d)},Y_='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',ih=Or.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(at.inlineSvg?Y_+" ":"")+"Leaflet</a>"},initialize:function(d){w(this,d),this._attributions={}},onAdd:function(d){d.attributionControl=this,this._container=kt("div","leaflet-control-attribution"),Ns(this._container);for(var v in d._layers)d._layers[v].getAttribution&&this.addAttribution(d._layers[v].getAttribution());return this._update(),d.on("layeradd",this._addAttribution,this),this._container},onRemove:function(d){d.off("layeradd",this._addAttribution,this)},_addAttribution:function(d){d.layer.getAttribution&&(this.addAttribution(d.layer.getAttribution()),d.layer.once("remove",function(){this.removeAttribution(d.layer.getAttribution())},this))},setPrefix:function(d){return this.options.prefix=d,this._update(),this},addAttribution:function(d){return d?(this._attributions[d]||(this._attributions[d]=0),this._attributions[d]++,this._update(),this):this},removeAttribution:function(d){return d?(this._attributions[d]&&(this._attributions[d]--,this._update()),this):this},_update:function(){if(this._map){var d=[];for(var v in this._attributions)this._attributions[v]&&d.push(v);var E=[];this.options.prefix&&E.push(this.options.prefix),d.length&&E.push(d.join(", ")),this._container.innerHTML=E.join(' <span aria-hidden="true">|</span> ')}}});Ct.mergeOptions({attributionControl:!0}),Ct.addInitHook(function(){this.options.attributionControl&&new ih().addTo(this)});var K_=function(d){return new ih(d)};Or.Layers=Pv,Or.Zoom=nh,Or.Scale=Rv,Or.Attribution=ih,Ls.layers=W_,Ls.zoom=rh,Ls.scale=G_,Ls.attribution=K_;var li=ee.extend({initialize:function(d){this._map=d},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});li.addTo=function(d,v){return d.addHandler(v,this),this};var Z_={Events:Q},Mv=at.touch?"touchstart mousedown":"mousedown",Ua=oe.extend({options:{clickTolerance:3},initialize:function(d,v,E,N){w(this,N),this._element=d,this._dragStartTarget=v||d,this._preventOutline=E},enable:function(){this._enabled||(gt(this._dragStartTarget,Mv,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ua._dragging===this&&this.finishDrag(!0),$t(this._dragStartTarget,Mv,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(d){if(this._enabled&&(this._moved=!1,!Cs(this._element,"leaflet-zoom-anim"))){if(d.touches&&d.touches.length!==1){Ua._dragging===this&&this.finishDrag();return}if(!(Ua._dragging||d.shiftKey||d.which!==1&&d.button!==1&&!d.touches)&&(Ua._dragging=this,this._preventOutline&&nu(this._element),tu(),Di(),!this._moving)){this.fire("down");var v=d.touches?d.touches[0]:d,E=So(this._element);this._startPoint=new le(v.clientX,v.clientY),this._startPos=Ia(this._element),this._parentScale=$a(E);var N=d.type==="mousedown";gt(document,N?"mousemove":"touchmove",this._onMove,this),gt(document,N?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(d){if(this._enabled){if(d.touches&&d.touches.length>1){this._moved=!0;return}var v=d.touches&&d.touches.length===1?d.touches[0]:d,E=new le(v.clientX,v.clientY)._subtract(this._startPoint);!E.x&&!E.y||Math.abs(E.x)+Math.abs(E.y)<this.options.clickTolerance||(E.x/=this._parentScale.x,E.y/=this._parentScale.y,jn(d),this._moved||(this.fire("dragstart"),this._moved=!0,_t(document.body,"leaflet-dragging"),this._lastTarget=d.target||d.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),_t(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(E),this._moving=!0,this._lastEvent=d,this._updatePosition())}},_updatePosition:function(){var d={originalEvent:this._lastEvent};this.fire("predrag",d),En(this._element,this._newPos),this.fire("drag",d)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(d){sn(document.body,"leaflet-dragging"),this._lastTarget&&(sn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),$t(document,"mousemove touchmove",this._onMove,this),$t(document,"mouseup touchend touchcancel",this._onUp,this),eh(),eu();var v=this._moved&&this._moving;this._moving=!1,Ua._dragging=!1,v&&this.fire("dragend",{noInertia:d,distance:this._newPos.distanceTo(this._startPos)})}});function Nv(d,v,E){var N,q=[1,4,2,8],ne,he,_e,Ae,$e,Je,tt,rt;for(ne=0,Je=d.length;ne<Je;ne++)d[ne]._code=Ao(d[ne],v);for(_e=0;_e<4;_e++){for(tt=q[_e],N=[],ne=0,Je=d.length,he=Je-1;ne<Je;he=ne++)Ae=d[ne],$e=d[he],Ae._code&tt?$e._code&tt||(rt=jc($e,Ae,tt,v,E),rt._code=Ao(rt,v),N.push(rt)):($e._code&tt&&(rt=jc($e,Ae,tt,v,E),rt._code=Ao(rt,v),N.push(rt)),N.push(Ae));d=N}return d}function Ac(d,v){var E,N,q,ne,he,_e,Ae,$e,Je;if(!d||d.length===0)throw new Error("latlngs not passed");er(d)||(console.warn("latlngs are not flat! Only the first ring will be used"),d=d[0]);var tt=de([0,0]),rt=ue(d),vt=rt.getNorthWest().distanceTo(rt.getSouthWest())*rt.getNorthEast().distanceTo(rt.getNorthWest());vt<1700&&(tt=ah(d));var ln=d.length,Tn=[];for(E=0;E<ln;E++){var tr=de(d[E]);Tn.push(v.project(de([tr.lat-tt.lat,tr.lng-tt.lng])))}for(_e=Ae=$e=0,E=0,N=ln-1;E<ln;N=E++)q=Tn[E],ne=Tn[N],he=q.y*ne.x-ne.y*q.x,Ae+=(q.x+ne.x)*he,$e+=(q.y+ne.y)*he,_e+=he*3;_e===0?Je=Tn[0]:Je=[Ae/_e,$e/_e];var Yr=v.unproject($(Je));return de([Yr.lat+tt.lat,Yr.lng+tt.lng])}function ah(d){for(var v=0,E=0,N=0,q=0;q<d.length;q++){var ne=de(d[q]);v+=ne.lat,E+=ne.lng,N++}return de([v/N,E/N])}var X_={__proto__:null,clipPolygon:Nv,polygonCenter:Ac,centroid:ah};function Lv(d,v){if(!v||!d.length)return d.slice();var E=v*v;return d=e1(d,E),d=J_(d,E),d}function oh(d,v,E){return Math.sqrt(jo(d,v,E,!0))}function Q_(d,v,E){return jo(d,v,E)}function J_(d,v){var E=d.length,N=typeof Uint8Array<"u"?Uint8Array:Array,q=new N(E);q[0]=q[E-1]=1,sh(d,q,v,0,E-1);var ne,he=[];for(ne=0;ne<E;ne++)q[ne]&&he.push(d[ne]);return he}function sh(d,v,E,N,q){var ne=0,he,_e,Ae;for(_e=N+1;_e<=q-1;_e++)Ae=jo(d[_e],d[N],d[q],!0),Ae>ne&&(he=_e,ne=Ae);ne>E&&(v[he]=1,sh(d,v,E,N,he),sh(d,v,E,he,q))}function e1(d,v){for(var E=[d[0]],N=1,q=0,ne=d.length;N<ne;N++)t1(d[N],d[q])>v&&(E.push(d[N]),q=N);return q<ne-1&&E.push(d[ne-1]),E}var Dv;function kv(d,v,E,N,q){var ne=N?Dv:Ao(d,E),he=Ao(v,E),_e,Ae,$e;for(Dv=he;;){if(!(ne|he))return[d,v];if(ne&he)return!1;_e=ne||he,Ae=jc(d,v,_e,E,q),$e=Ao(Ae,E),_e===ne?(d=Ae,ne=$e):(v=Ae,he=$e)}}function jc(d,v,E,N,q){var ne=v.x-d.x,he=v.y-d.y,_e=N.min,Ae=N.max,$e,Je;return E&8?($e=d.x+ne*(Ae.y-d.y)/he,Je=Ae.y):E&4?($e=d.x+ne*(_e.y-d.y)/he,Je=_e.y):E&2?($e=Ae.x,Je=d.y+he*(Ae.x-d.x)/ne):E&1&&($e=_e.x,Je=d.y+he*(_e.x-d.x)/ne),new le($e,Je,q)}function Ao(d,v){var E=0;return d.x<v.min.x?E|=1:d.x>v.max.x&&(E|=2),d.y<v.min.y?E|=4:d.y>v.max.y&&(E|=8),E}function t1(d,v){var E=v.x-d.x,N=v.y-d.y;return E*E+N*N}function jo(d,v,E,N){var q=v.x,ne=v.y,he=E.x-q,_e=E.y-ne,Ae=he*he+_e*_e,$e;return Ae>0&&($e=((d.x-q)*he+(d.y-ne)*_e)/Ae,$e>1?(q=E.x,ne=E.y):$e>0&&(q+=he*$e,ne+=_e*$e)),he=d.x-q,_e=d.y-ne,N?he*he+_e*_e:new le(q,ne)}function er(d){return!A(d[0])||typeof d[0][0]!="object"&&typeof d[0][0]<"u"}function Iv(d){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),er(d)}function lh(d,v){var E,N,q,ne,he,_e,Ae,$e;if(!d||d.length===0)throw new Error("latlngs not passed");er(d)||(console.warn("latlngs are not flat! Only the first ring will be used"),d=d[0]);var Je=de([0,0]),tt=ue(d),rt=tt.getNorthWest().distanceTo(tt.getSouthWest())*tt.getNorthEast().distanceTo(tt.getNorthWest());rt<1700&&(Je=ah(d));var vt=d.length,ln=[];for(E=0;E<vt;E++){var Tn=de(d[E]);ln.push(v.project(de([Tn.lat-Je.lat,Tn.lng-Je.lng])))}for(E=0,N=0;E<vt-1;E++)N+=ln[E].distanceTo(ln[E+1])/2;if(N===0)$e=ln[0];else for(E=0,ne=0;E<vt-1;E++)if(he=ln[E],_e=ln[E+1],q=he.distanceTo(_e),ne+=q,ne>N){Ae=(ne-N)/q,$e=[_e.x-Ae*(_e.x-he.x),_e.y-Ae*(_e.y-he.y)];break}var tr=v.unproject($($e));return de([tr.lat+Je.lat,tr.lng+Je.lng])}var $v={__proto__:null,simplify:Lv,pointToSegmentDistance:oh,closestPointOnSegment:Q_,clipSegment:kv,_getEdgeIntersection:jc,_getBitCode:Ao,_sqClosestPointOnSegment:jo,isFlat:er,_flat:Iv,polylineCenter:lh},Pc={project:function(d){return new le(d.lng,d.lat)},unproject:function(d){return new fe(d.y,d.x)},bounds:new G([-180,-90],[180,90])},Rc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new G([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(d){var v=Math.PI/180,E=this.R,N=d.lat*v,q=this.R_MINOR/E,ne=Math.sqrt(1-q*q),he=ne*Math.sin(N),_e=Math.tan(Math.PI/4-N/2)/Math.pow((1-he)/(1+he),ne/2);return N=-E*Math.log(Math.max(_e,1e-10)),new le(d.lng*v*E,N)},unproject:function(d){for(var v=180/Math.PI,E=this.R,N=this.R_MINOR/E,q=Math.sqrt(1-N*N),ne=Math.exp(-d.y/E),he=Math.PI/2-2*Math.atan(ne),_e=0,Ae=.1,$e;_e<15&&Math.abs(Ae)>1e-7;_e++)$e=q*Math.sin(he),$e=Math.pow((1-$e)/(1+$e),q/2),Ae=Math.PI/2-2*Math.atan(ne*$e)-he,he+=Ae;return new fe(he*v,d.x*v/E)}},Uv={__proto__:null,LonLat:Pc,Mercator:Rc,SphericalMercator:K},Ds=i({},k,{code:"EPSG:3395",projection:Rc,transformation:function(){var d=.5/(Math.PI*Rc.R);return ae(d,.5,-d,.5)}()}),Bv=i({},k,{code:"EPSG:4326",projection:Pc,transformation:ae(1/180,1,-1/180,.5)}),n1=i({},Se,{projection:Pc,transformation:ae(1,0,-1,0),scale:function(d){return Math.pow(2,d)},zoom:function(d){return Math.log(d)/Math.LN2},distance:function(d,v){var E=v.lng-d.lng,N=v.lat-d.lat;return Math.sqrt(E*E+N*N)},infinite:!0});Se.Earth=k,Se.EPSG3395=Ds,Se.EPSG3857=pe,Se.EPSG900913=Te,Se.EPSG4326=Bv,Se.Simple=n1;var ui=oe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(d){return d.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(d){return d&&d.removeLayer(this),this},getPane:function(d){return this._map.getPane(d?this.options[d]||d:this.options.pane)},addInteractiveTarget:function(d){return this._map._targets[f(d)]=this,this},removeInteractiveTarget:function(d){return delete this._map._targets[f(d)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(d){var v=d.target;if(v.hasLayer(this)){if(this._map=v,this._zoomAnimated=v._zoomAnimated,this.getEvents){var E=this.getEvents();v.on(E,this),this.once("remove",function(){v.off(E,this)},this)}this.onAdd(v),this.fire("add"),v.fire("layeradd",{layer:this})}}});Ct.include({addLayer:function(d){if(!d._layerAdd)throw new Error("The provided object is not a Layer.");var v=f(d);return this._layers[v]?this:(this._layers[v]=d,d._mapToAdd=this,d.beforeAdd&&d.beforeAdd(this),this.whenReady(d._layerAdd,d),this)},removeLayer:function(d){var v=f(d);return this._layers[v]?(this._loaded&&d.onRemove(this),delete this._layers[v],this._loaded&&(this.fire("layerremove",{layer:d}),d.fire("remove")),d._map=d._mapToAdd=null,this):this},hasLayer:function(d){return f(d)in this._layers},eachLayer:function(d,v){for(var E in this._layers)d.call(v,this._layers[E]);return this},_addLayers:function(d){d=d?A(d)?d:[d]:[];for(var v=0,E=d.length;v<E;v++)this.addLayer(d[v])},_addZoomLimit:function(d){(!isNaN(d.options.maxZoom)||!isNaN(d.options.minZoom))&&(this._zoomBoundLayers[f(d)]=d,this._updateZoomLevels())},_removeZoomLimit:function(d){var v=f(d);this._zoomBoundLayers[v]&&(delete this._zoomBoundLayers[v],this._updateZoomLevels())},_updateZoomLevels:function(){var d=1/0,v=-1/0,E=this._getZoomSpan();for(var N in this._zoomBoundLayers){var q=this._zoomBoundLayers[N].options;d=q.minZoom===void 0?d:Math.min(d,q.minZoom),v=q.maxZoom===void 0?v:Math.max(v,q.maxZoom)}this._layersMaxZoom=v===-1/0?void 0:v,this._layersMinZoom=d===1/0?void 0:d,E!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Po=ui.extend({initialize:function(d,v){w(this,v),this._layers={};var E,N;if(d)for(E=0,N=d.length;E<N;E++)this.addLayer(d[E])},addLayer:function(d){var v=this.getLayerId(d);return this._layers[v]=d,this._map&&this._map.addLayer(d),this},removeLayer:function(d){var v=d in this._layers?d:this.getLayerId(d);return this._map&&this._layers[v]&&this._map.removeLayer(this._layers[v]),delete this._layers[v],this},hasLayer:function(d){var v=typeof d=="number"?d:this.getLayerId(d);return v in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(d){var v=Array.prototype.slice.call(arguments,1),E,N;for(E in this._layers)N=this._layers[E],N[d]&&N[d].apply(N,v);return this},onAdd:function(d){this.eachLayer(d.addLayer,d)},onRemove:function(d){this.eachLayer(d.removeLayer,d)},eachLayer:function(d,v){for(var E in this._layers)d.call(v,this._layers[E]);return this},getLayer:function(d){return this._layers[d]},getLayers:function(){var d=[];return this.eachLayer(d.push,d),d},setZIndex:function(d){return this.invoke("setZIndex",d)},getLayerId:function(d){return f(d)}}),Fv=function(d,v){return new Po(d,v)},Rr=Po.extend({addLayer:function(d){return this.hasLayer(d)?this:(d.addEventParent(this),Po.prototype.addLayer.call(this,d),this.fire("layeradd",{layer:d}))},removeLayer:function(d){return this.hasLayer(d)?(d in this._layers&&(d=this._layers[d]),d.removeEventParent(this),Po.prototype.removeLayer.call(this,d),this.fire("layerremove",{layer:d})):this},setStyle:function(d){return this.invoke("setStyle",d)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var d=new Z;for(var v in this._layers){var E=this._layers[v];d.extend(E.getBounds?E.getBounds():E.getLatLng())}return d}}),ou=function(d,v){return new Rr(d,v)},ks=ee.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(d){w(this,d)},createIcon:function(d){return this._createIcon("icon",d)},createShadow:function(d){return this._createIcon("shadow",d)},_createIcon:function(d,v){var E=this._getIconUrl(d);if(!E){if(d==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var N=this._createImg(E,v&&v.tagName==="IMG"?v:null);return this._setIconStyles(N,d),(this.options.crossOrigin||this.options.crossOrigin==="")&&(N.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),N},_setIconStyles:function(d,v){var E=this.options,N=E[v+"Size"];typeof N=="number"&&(N=[N,N]);var q=$(N),ne=$(v==="shadow"&&E.shadowAnchor||E.iconAnchor||q&&q.divideBy(2,!0));d.className="leaflet-marker-"+v+" "+(E.className||""),ne&&(d.style.marginLeft=-ne.x+"px",d.style.marginTop=-ne.y+"px"),q&&(d.style.width=q.x+"px",d.style.height=q.y+"px")},_createImg:function(d,v){return v=v||document.createElement("img"),v.src=d,v},_getIconUrl:function(d){return at.retina&&this.options[d+"RetinaUrl"]||this.options[d+"Url"]}});function Mc(d){return new ks(d)}var Is=ks.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(d){return typeof Is.imagePath!="string"&&(Is.imagePath=this._detectIconPath()),(this.options.imagePath||Is.imagePath)+ks.prototype._getIconUrl.call(this,d)},_stripUrl:function(d){var v=function(E,N,q){var ne=N.exec(E);return ne&&ne[q]};return d=v(d,/^url\((['"])?(.+)\1\)$/,2),d&&v(d,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var d=kt("div","leaflet-default-icon-path",document.body),v=wo(d,"background-image")||wo(d,"backgroundImage");if(document.body.removeChild(d),v=this._stripUrl(v),v)return v;var E=document.querySelector('link[href$="leaflet.css"]');return E?E.href.substring(0,E.href.length-11-1):""}}),uh=li.extend({initialize:function(d){this._marker=d},addHooks:function(){var d=this._marker._icon;this._draggable||(this._draggable=new Ua(d,d,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),_t(d,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&sn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(d){var v=this._marker,E=v._map,N=this._marker.options.autoPanSpeed,q=this._marker.options.autoPanPadding,ne=Ia(v._icon),he=E.getPixelBounds(),_e=E.getPixelOrigin(),Ae=se(he.min._subtract(_e).add(q),he.max._subtract(_e).subtract(q));if(!Ae.contains(ne)){var $e=$((Math.max(Ae.max.x,ne.x)-Ae.max.x)/(he.max.x-Ae.max.x)-(Math.min(Ae.min.x,ne.x)-Ae.min.x)/(he.min.x-Ae.min.x),(Math.max(Ae.max.y,ne.y)-Ae.max.y)/(he.max.y-Ae.max.y)-(Math.min(Ae.min.y,ne.y)-Ae.min.y)/(he.min.y-Ae.min.y)).multiplyBy(N);E.panBy($e,{animate:!1}),this._draggable._newPos._add($e),this._draggable._startPos._add($e),En(v._icon,this._draggable._newPos),this._onDrag(d),this._panRequest=V(this._adjustPan.bind(this,d))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(d){this._marker.options.autoPan&&(H(this._panRequest),this._panRequest=V(this._adjustPan.bind(this,d)))},_onDrag:function(d){var v=this._marker,E=v._shadow,N=Ia(v._icon),q=v._map.layerPointToLatLng(N);E&&En(E,N),v._latlng=q,d.latlng=q,d.oldLatLng=this._oldLatLng,v.fire("move",d).fire("drag",d)},_onDragEnd:function(d){H(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",d)}}),$s=ui.extend({options:{icon:new Is,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(d,v){w(this,v),this._latlng=de(d)},onAdd:function(d){this._zoomAnimated=this._zoomAnimated&&d.options.markerZoomAnimation,this._zoomAnimated&&d.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(d){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&d.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(d){var v=this._latlng;return this._latlng=de(d),this.update(),this.fire("move",{oldLatLng:v,latlng:this._latlng})},setZIndexOffset:function(d){return this.options.zIndexOffset=d,this.update()},getIcon:function(){return this.options.icon},setIcon:function(d){return this.options.icon=d,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var d=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(d)}return this},_initIcon:function(){var d=this.options,v="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),E=d.icon.createIcon(this._icon),N=!1;E!==this._icon&&(this._icon&&this._removeIcon(),N=!0,d.title&&(E.title=d.title),E.tagName==="IMG"&&(E.alt=d.alt||"")),_t(E,v),d.keyboard&&(E.tabIndex="0",E.setAttribute("role","button")),this._icon=E,d.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&gt(E,"focus",this._panOnFocus,this);var q=d.icon.createShadow(this._shadow),ne=!1;q!==this._shadow&&(this._removeShadow(),ne=!0),q&&(_t(q,v),q.alt=""),this._shadow=q,d.opacity<1&&this._updateOpacity(),N&&this.getPane().appendChild(this._icon),this._initInteraction(),q&&ne&&this.getPane(d.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$t(this._icon,"focus",this._panOnFocus,this),on(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&on(this._shadow),this._shadow=null},_setPos:function(d){this._icon&&En(this._icon,d),this._shadow&&En(this._shadow,d),this._zIndex=d.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(d){this._icon&&(this._icon.style.zIndex=this._zIndex+d)},_animateZoom:function(d){var v=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center).round();this._setPos(v)},_initInteraction:function(){if(this.options.interactive&&(_t(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),uh)){var d=this.options.draggable;this.dragging&&(d=this.dragging.enabled(),this.dragging.disable()),this.dragging=new uh(this),d&&this.dragging.enable()}},setOpacity:function(d){return this.options.opacity=d,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var d=this.options.opacity;this._icon&&wr(this._icon,d),this._shadow&&wr(this._shadow,d)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var d=this._map;if(d){var v=this.options.icon.options,E=v.iconSize?$(v.iconSize):$(0,0),N=v.iconAnchor?$(v.iconAnchor):$(0,0);d.panInside(this._latlng,{paddingTopLeft:N,paddingBottomRight:E.subtract(N)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ch(d,v){return new $s(d,v)}var la=ui.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(d){this._renderer=d.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(d){return w(this,d),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&d&&Object.prototype.hasOwnProperty.call(d,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),su=la.extend({options:{fill:!0,radius:10},initialize:function(d,v){w(this,v),this._latlng=de(d),this._radius=this.options.radius},setLatLng:function(d){var v=this._latlng;return this._latlng=de(d),this.redraw(),this.fire("move",{oldLatLng:v,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(d){return this.options.radius=this._radius=d,this.redraw()},getRadius:function(){return this._radius},setStyle:function(d){var v=d&&d.radius||this._radius;return la.prototype.setStyle.call(this,d),this.setRadius(v),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var d=this._radius,v=this._radiusY||d,E=this._clickTolerance(),N=[d+E,v+E];this._pxBounds=new G(this._point.subtract(N),this._point.add(N))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(d){return d.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function zv(d,v){return new su(d,v)}var fh=su.extend({initialize:function(d,v,E){if(typeof v=="number"&&(v=i({},E,{radius:v})),w(this,v),this._latlng=de(d),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(d){return this._mRadius=d,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var d=[this._radius,this._radiusY||this._radius];return new Z(this._map.layerPointToLatLng(this._point.subtract(d)),this._map.layerPointToLatLng(this._point.add(d)))},setStyle:la.prototype.setStyle,_project:function(){var d=this._latlng.lng,v=this._latlng.lat,E=this._map,N=E.options.crs;if(N.distance===k.distance){var q=Math.PI/180,ne=this._mRadius/k.R/q,he=E.project([v+ne,d]),_e=E.project([v-ne,d]),Ae=he.add(_e).divideBy(2),$e=E.unproject(Ae).lat,Je=Math.acos((Math.cos(ne*q)-Math.sin(v*q)*Math.sin($e*q))/(Math.cos(v*q)*Math.cos($e*q)))/q;(isNaN(Je)||Je===0)&&(Je=ne/Math.cos(Math.PI/180*v)),this._point=Ae.subtract(E.getPixelOrigin()),this._radius=isNaN(Je)?0:Ae.x-E.project([$e,d-Je]).x,this._radiusY=Ae.y-he.y}else{var tt=N.unproject(N.project(this._latlng).subtract([this._mRadius,0]));this._point=E.latLngToLayerPoint(this._latlng),this._radius=this._point.x-E.latLngToLayerPoint(tt).x}this._updateBounds()}});function r1(d,v,E){return new fh(d,v,E)}var ua=la.extend({options:{smoothFactor:1,noClip:!1},initialize:function(d,v){w(this,v),this._setLatLngs(d)},getLatLngs:function(){return this._latlngs},setLatLngs:function(d){return this._setLatLngs(d),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(d){for(var v=1/0,E=null,N=jo,q,ne,he=0,_e=this._parts.length;he<_e;he++)for(var Ae=this._parts[he],$e=1,Je=Ae.length;$e<Je;$e++){q=Ae[$e-1],ne=Ae[$e];var tt=N(d,q,ne,!0);tt<v&&(v=tt,E=N(d,q,ne))}return E&&(E.distance=Math.sqrt(v)),E},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return lh(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(d,v){return v=v||this._defaultShape(),d=de(d),v.push(d),this._bounds.extend(d),this.redraw()},_setLatLngs:function(d){this._bounds=new Z,this._latlngs=this._convertLatLngs(d)},_defaultShape:function(){return er(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(d){for(var v=[],E=er(d),N=0,q=d.length;N<q;N++)E?(v[N]=de(d[N]),this._bounds.extend(v[N])):v[N]=this._convertLatLngs(d[N]);return v},_project:function(){var d=new G;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,d),this._bounds.isValid()&&d.isValid()&&(this._rawPxBounds=d,this._updateBounds())},_updateBounds:function(){var d=this._clickTolerance(),v=new le(d,d);this._rawPxBounds&&(this._pxBounds=new G([this._rawPxBounds.min.subtract(v),this._rawPxBounds.max.add(v)]))},_projectLatlngs:function(d,v,E){var N=d[0]instanceof fe,q=d.length,ne,he;if(N){for(he=[],ne=0;ne<q;ne++)he[ne]=this._map.latLngToLayerPoint(d[ne]),E.extend(he[ne]);v.push(he)}else for(ne=0;ne<q;ne++)this._projectLatlngs(d[ne],v,E)},_clipPoints:function(){var d=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}var v=this._parts,E,N,q,ne,he,_e,Ae;for(E=0,q=0,ne=this._rings.length;E<ne;E++)for(Ae=this._rings[E],N=0,he=Ae.length;N<he-1;N++)_e=kv(Ae[N],Ae[N+1],d,N,!0),_e&&(v[q]=v[q]||[],v[q].push(_e[0]),(_e[1]!==Ae[N+1]||N===he-2)&&(v[q].push(_e[1]),q++))}},_simplifyPoints:function(){for(var d=this._parts,v=this.options.smoothFactor,E=0,N=d.length;E<N;E++)d[E]=Lv(d[E],v)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(d,v){var E,N,q,ne,he,_e,Ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(E=0,ne=this._parts.length;E<ne;E++)for(_e=this._parts[E],N=0,he=_e.length,q=he-1;N<he;q=N++)if(!(!v&&N===0)&&oh(d,_e[q],_e[N])<=Ae)return!0;return!1}});function i1(d,v){return new ua(d,v)}ua._flat=Iv;var Us=ua.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ac(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(d){var v=ua.prototype._convertLatLngs.call(this,d),E=v.length;return E>=2&&v[0]instanceof fe&&v[0].equals(v[E-1])&&v.pop(),v},_setLatLngs:function(d){ua.prototype._setLatLngs.call(this,d),er(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return er(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var d=this._renderer._bounds,v=this.options.weight,E=new le(v,v);if(d=new G(d.min.subtract(E),d.max.add(E)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}for(var N=0,q=this._rings.length,ne;N<q;N++)ne=Nv(this._rings[N],d,!0),ne.length&&this._parts.push(ne)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(d){var v=!1,E,N,q,ne,he,_e,Ae,$e;if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(ne=0,Ae=this._parts.length;ne<Ae;ne++)for(E=this._parts[ne],he=0,$e=E.length,_e=$e-1;he<$e;_e=he++)N=E[he],q=E[_e],N.y>d.y!=q.y>d.y&&d.x<(q.x-N.x)*(d.y-N.y)/(q.y-N.y)+N.x&&(v=!v);return v||ua.prototype._containsPoint.call(this,d,!0)}});function Mr(d,v){return new Us(d,v)}var Nr=Rr.extend({initialize:function(d,v){w(this,v),this._layers={},d&&this.addData(d)},addData:function(d){var v=A(d)?d:d.features,E,N,q;if(v){for(E=0,N=v.length;E<N;E++)q=v[E],(q.geometries||q.geometry||q.features||q.coordinates)&&this.addData(q);return this}var ne=this.options;if(ne.filter&&!ne.filter(d))return this;var he=lu(d,ne);return he?(he.feature=Bs(d),he.defaultOptions=he.options,this.resetStyle(he),ne.onEachFeature&&ne.onEachFeature(d,he),this.addLayer(he)):this},resetStyle:function(d){return d===void 0?this.eachLayer(this.resetStyle,this):(d.options=i({},d.defaultOptions),this._setLayerStyle(d,this.options.style),this)},setStyle:function(d){return this.eachLayer(function(v){this._setLayerStyle(v,d)},this)},_setLayerStyle:function(d,v){d.setStyle&&(typeof v=="function"&&(v=v(d.feature)),d.setStyle(v))}});function lu(d,v){var E=d.type==="Feature"?d.geometry:d,N=E?E.coordinates:null,q=[],ne=v&&v.pointToLayer,he=v&&v.coordsToLatLng||Nc,_e,Ae,$e,Je;if(!N&&!E)return null;switch(E.type){case"Point":return _e=he(N),dh(ne,d,_e,v);case"MultiPoint":for($e=0,Je=N.length;$e<Je;$e++)_e=he(N[$e]),q.push(dh(ne,d,_e,v));return new Rr(q);case"LineString":case"MultiLineString":return Ae=uu(N,E.type==="LineString"?0:1,he),new ua(Ae,v);case"Polygon":case"MultiPolygon":return Ae=uu(N,E.type==="Polygon"?1:2,he),new Us(Ae,v);case"GeometryCollection":for($e=0,Je=E.geometries.length;$e<Je;$e++){var tt=lu({geometry:E.geometries[$e],type:"Feature",properties:d.properties},v);tt&&q.push(tt)}return new Rr(q);case"FeatureCollection":for($e=0,Je=E.features.length;$e<Je;$e++){var rt=lu(E.features[$e],v);rt&&q.push(rt)}return new Rr(q);default:throw new Error("Invalid GeoJSON object.")}}function dh(d,v,E,N){return d?d(v,E):new $s(E,N&&N.markersInheritOptions&&N)}function Nc(d){return new fe(d[1],d[0],d[2])}function uu(d,v,E){for(var N=[],q=0,ne=d.length,he;q<ne;q++)he=v?uu(d[q],v-1,E):(E||Nc)(d[q]),N.push(he);return N}function cu(d,v){return d=de(d),d.alt!==void 0?[g(d.lng,v),g(d.lat,v),g(d.alt,v)]:[g(d.lng,v),g(d.lat,v)]}function Lc(d,v,E,N){for(var q=[],ne=0,he=d.length;ne<he;ne++)q.push(v?Lc(d[ne],er(d[ne])?0:v-1,E,N):cu(d[ne],N));return!v&&E&&q.length>0&&q.push(q[0].slice()),q}function ci(d,v){return d.feature?i({},d.feature,{geometry:v}):Bs(v)}function Bs(d){return d.type==="Feature"||d.type==="FeatureCollection"?d:{type:"Feature",properties:{},geometry:d}}var Ro={toGeoJSON:function(d){return ci(this,{type:"Point",coordinates:cu(this.getLatLng(),d)})}};$s.include(Ro),fh.include(Ro),su.include(Ro),ua.include({toGeoJSON:function(d){var v=!er(this._latlngs),E=Lc(this._latlngs,v?1:0,!1,d);return ci(this,{type:(v?"Multi":"")+"LineString",coordinates:E})}}),Us.include({toGeoJSON:function(d){var v=!er(this._latlngs),E=v&&!er(this._latlngs[0]),N=Lc(this._latlngs,E?2:v?1:0,!0,d);return v||(N=[N]),ci(this,{type:(E?"Multi":"")+"Polygon",coordinates:N})}}),Po.include({toMultiPoint:function(d){var v=[];return this.eachLayer(function(E){v.push(E.toGeoJSON(d).geometry.coordinates)}),ci(this,{type:"MultiPoint",coordinates:v})},toGeoJSON:function(d){var v=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(v==="MultiPoint")return this.toMultiPoint(d);var E=v==="GeometryCollection",N=[];return this.eachLayer(function(q){if(q.toGeoJSON){var ne=q.toGeoJSON(d);if(E)N.push(ne.geometry);else{var he=Bs(ne);he.type==="FeatureCollection"?N.push.apply(N,he.features):N.push(he)}}}),E?ci(this,{geometries:N,type:"GeometryCollection"}):{type:"FeatureCollection",features:N}}});function Dc(d,v){return new Nr(d,v)}var qv=Dc,Ui=ui.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(d,v,E){this._url=d,this._bounds=ue(v),w(this,E)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(_t(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){on(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(d){return this.options.opacity=d,this._image&&this._updateOpacity(),this},setStyle:function(d){return d.opacity&&this.setOpacity(d.opacity),this},bringToFront:function(){return this._map&&Oo(this._image),this},bringToBack:function(){return this._map&&Ts(this._image),this},setUrl:function(d){return this._url=d,this._image&&(this._image.src=d),this},setBounds:function(d){return this._bounds=ue(d),this._map&&this._reset(),this},getEvents:function(){var d={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var d=this._url.tagName==="IMG",v=this._image=d?this._url:kt("img");if(_t(v,"leaflet-image-layer"),this._zoomAnimated&&_t(v,"leaflet-zoom-animated"),this.options.className&&_t(v,this.options.className),v.onselectstart=m,v.onmousemove=m,v.onload=o(this.fire,this,"load"),v.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(v.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),d){this._url=v.src;return}v.src=this._url,v.alt=this.options.alt},_animateZoom:function(d){var v=this._map.getZoomScale(d.zoom),E=this._map._latLngBoundsToNewLayerBounds(this._bounds,d.zoom,d.center).min;Gr(this._image,E,v)},_reset:function(){var d=this._image,v=new G(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),E=v.getSize();En(d,v.min),d.style.width=E.x+"px",d.style.height=E.y+"px"},_updateOpacity:function(){wr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var d=this.options.errorOverlayUrl;d&&this._url!==d&&(this._url=d,this._image.src=d)},getCenter:function(){return this._bounds.getCenter()}}),Fs=function(d,v,E){return new Ui(d,v,E)},kc=Ui.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var d=this._url.tagName==="VIDEO",v=this._image=d?this._url:kt("video");if(_t(v,"leaflet-image-layer"),this._zoomAnimated&&_t(v,"leaflet-zoom-animated"),this.options.className&&_t(v,this.options.className),v.onselectstart=m,v.onmousemove=m,v.onloadeddata=o(this.fire,this,"load"),d){for(var E=v.getElementsByTagName("source"),N=[],q=0;q<E.length;q++)N.push(E[q].src);this._url=E.length>0?N:[v.src];return}A(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(v.style,"objectFit")&&(v.style.objectFit="fill"),v.autoplay=!!this.options.autoplay,v.loop=!!this.options.loop,v.muted=!!this.options.muted,v.playsInline=!!this.options.playsInline;for(var ne=0;ne<this._url.length;ne++){var he=kt("source");he.src=this._url[ne],v.appendChild(he)}}});function Vv(d,v,E){return new kc(d,v,E)}var Ba=Ui.extend({_initImage:function(){var d=this._image=this._url;_t(d,"leaflet-image-layer"),this._zoomAnimated&&_t(d,"leaflet-zoom-animated"),this.options.className&&_t(d,this.options.className),d.onselectstart=m,d.onmousemove=m}});function Hv(d,v,E){return new Ba(d,v,E)}var fi=ui.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(d,v){d&&(d instanceof fe||A(d))?(this._latlng=de(d),w(this,v)):(w(this,d),this._source=v),this.options.content&&(this._content=this.options.content)},openOn:function(d){return d=arguments.length?d:this._source._map,d.hasLayer(this)||d.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(d){return this._map?this.close():(arguments.length?this._source=d:d=this._source,this._prepareOpen(),this.openOn(d._map)),this},onAdd:function(d){this._zoomAnimated=d._zoomAnimated,this._container||this._initLayout(),d._fadeAnimated&&wr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),d._fadeAnimated&&wr(this._container,1),this.bringToFront(),this.options.interactive&&(_t(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(d){d._fadeAnimated?(wr(this._container,0),this._removeTimeout=setTimeout(o(on,void 0,this._container),200)):on(this._container),this.options.interactive&&(sn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(d){return this._latlng=de(d),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(d){return this._content=d,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var d={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Oo(this._container),this},bringToBack:function(){return this._map&&Ts(this._container),this},_prepareOpen:function(d){var v=this._source;if(!v._map)return!1;if(v instanceof Rr){v=null;var E=this._source._layers;for(var N in E)if(E[N]._map){v=E[N];break}if(!v)return!1;this._source=v}if(!d)if(v.getCenter)d=v.getCenter();else if(v.getLatLng)d=v.getLatLng();else if(v.getBounds)d=v.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(d),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var d=this._contentNode,v=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof v=="string")d.innerHTML=v;else{for(;d.hasChildNodes();)d.removeChild(d.firstChild);d.appendChild(v)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var d=this._map.latLngToLayerPoint(this._latlng),v=$(this.options.offset),E=this._getAnchor();this._zoomAnimated?En(this._container,d.add(E)):v=v.add(d).add(E);var N=this._containerBottom=-v.y,q=this._containerLeft=-Math.round(this._containerWidth/2)+v.x;this._container.style.bottom=N+"px",this._container.style.left=q+"px"}},_getAnchor:function(){return[0,0]}});Ct.include({_initOverlay:function(d,v,E,N){var q=v;return q instanceof d||(q=new d(N).setContent(v)),E&&q.setLatLng(E),q}}),ui.include({_initOverlay:function(d,v,E,N){var q=E;return q instanceof d?(w(q,N),q._source=this):(q=v&&!N?v:new d(N,this),q.setContent(E)),q}});var fu=fi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(d){return d=arguments.length?d:this._source._map,!d.hasLayer(this)&&d._popup&&d._popup.options.autoClose&&d.removeLayer(d._popup),d._popup=this,fi.prototype.openOn.call(this,d)},onAdd:function(d){fi.prototype.onAdd.call(this,d),d.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof la||this._source.on("preclick",sa))},onRemove:function(d){fi.prototype.onRemove.call(this,d),d.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof la||this._source.off("preclick",sa))},getEvents:function(){var d=fi.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(d.preclick=this.close),this.options.keepInView&&(d.moveend=this._adjustPan),d},_initLayout:function(){var d="leaflet-popup",v=this._container=kt("div",d+" "+(this.options.className||"")+" leaflet-zoom-animated"),E=this._wrapper=kt("div",d+"-content-wrapper",v);if(this._contentNode=kt("div",d+"-content",E),Ns(v),Ms(this._contentNode),gt(v,"contextmenu",sa),this._tipContainer=kt("div",d+"-tip-container",v),this._tip=kt("div",d+"-tip",this._tipContainer),this.options.closeButton){var N=this._closeButton=kt("a",d+"-close-button",v);N.setAttribute("role","button"),N.setAttribute("aria-label","Close popup"),N.href="#close",N.innerHTML='<span aria-hidden="true">&#215;</span>',gt(N,"click",function(q){jn(q),this.close()},this)}},_updateLayout:function(){var d=this._contentNode,v=d.style;v.width="",v.whiteSpace="nowrap";var E=d.offsetWidth;E=Math.min(E,this.options.maxWidth),E=Math.max(E,this.options.minWidth),v.width=E+1+"px",v.whiteSpace="",v.height="";var N=d.offsetHeight,q=this.options.maxHeight,ne="leaflet-popup-scrolled";q&&N>q?(v.height=q+"px",_t(d,ne)):sn(d,ne),this._containerWidth=this._container.offsetWidth},_animateZoom:function(d){var v=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center),E=this._getAnchor();En(this._container,v.add(E))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var d=this._map,v=parseInt(wo(this._container,"marginBottom"),10)||0,E=this._container.offsetHeight+v,N=this._containerWidth,q=new le(this._containerLeft,-E-this._containerBottom);q._add(Ia(this._container));var ne=d.layerPointToContainerPoint(q),he=$(this.options.autoPanPadding),_e=$(this.options.autoPanPaddingTopLeft||he),Ae=$(this.options.autoPanPaddingBottomRight||he),$e=d.getSize(),Je=0,tt=0;ne.x+N+Ae.x>$e.x&&(Je=ne.x+N-$e.x+Ae.x),ne.x-Je-_e.x<0&&(Je=ne.x-_e.x),ne.y+E+Ae.y>$e.y&&(tt=ne.y+E-$e.y+Ae.y),ne.y-tt-_e.y<0&&(tt=ne.y-_e.y),(Je||tt)&&(this.options.keepInView&&(this._autopanning=!0),d.fire("autopanstart").panBy([Je,tt]))}},_getAnchor:function(){return $(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),a1=function(d,v){return new fu(d,v)};Ct.mergeOptions({closePopupOnClick:!0}),Ct.include({openPopup:function(d,v,E){return this._initOverlay(fu,d,v,E).openOn(this),this},closePopup:function(d){return d=arguments.length?d:this._popup,d&&d.close(),this}}),ui.include({bindPopup:function(d,v){return this._popup=this._initOverlay(fu,this._popup,d,v),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(d){return this._popup&&(this instanceof Rr||(this._popup._source=this),this._popup._prepareOpen(d||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(d){return this._popup&&this._popup.setContent(d),this},getPopup:function(){return this._popup},_openPopup:function(d){if(!(!this._popup||!this._map)){$i(d);var v=d.layer||d.target;if(this._popup._source===v&&!(v instanceof la)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(d.latlng);return}this._popup._source=v,this.openPopup(d.latlng)}},_movePopup:function(d){this._popup.setLatLng(d.latlng)},_onKeyPress:function(d){d.originalEvent.keyCode===13&&this._openPopup(d)}});var Ic=fi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(d){fi.prototype.onAdd.call(this,d),this.setOpacity(this.options.opacity),d.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(d){fi.prototype.onRemove.call(this,d),d.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var d=fi.prototype.getEvents.call(this);return this.options.permanent||(d.preclick=this.close),d},_initLayout:function(){var d="leaflet-tooltip",v=d+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=kt("div",v),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(d){var v,E,N=this._map,q=this._container,ne=N.latLngToContainerPoint(N.getCenter()),he=N.layerPointToContainerPoint(d),_e=this.options.direction,Ae=q.offsetWidth,$e=q.offsetHeight,Je=$(this.options.offset),tt=this._getAnchor();_e==="top"?(v=Ae/2,E=$e):_e==="bottom"?(v=Ae/2,E=0):_e==="center"?(v=Ae/2,E=$e/2):_e==="right"?(v=0,E=$e/2):_e==="left"?(v=Ae,E=$e/2):he.x<ne.x?(_e="right",v=0,E=$e/2):(_e="left",v=Ae+(Je.x+tt.x)*2,E=$e/2),d=d.subtract($(v,E,!0)).add(Je).add(tt),sn(q,"leaflet-tooltip-right"),sn(q,"leaflet-tooltip-left"),sn(q,"leaflet-tooltip-top"),sn(q,"leaflet-tooltip-bottom"),_t(q,"leaflet-tooltip-"+_e),En(q,d)},_updatePosition:function(){var d=this._map.latLngToLayerPoint(this._latlng);this._setPosition(d)},setOpacity:function(d){this.options.opacity=d,this._container&&wr(this._container,d)},_animateZoom:function(d){var v=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center);this._setPosition(v)},_getAnchor:function(){return $(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),o1=function(d,v){return new Ic(d,v)};Ct.include({openTooltip:function(d,v,E){return this._initOverlay(Ic,d,v,E).openOn(this),this},closeTooltip:function(d){return d.close(),this}}),ui.include({bindTooltip:function(d,v){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ic,this._tooltip,d,v),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(d){if(!(!d&&this._tooltipHandlersAdded)){var v=d?"off":"on",E={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?E.add=this._openTooltip:(E.mouseover=this._openTooltip,E.mouseout=this.closeTooltip,E.click=this._openTooltip,this._map?this._addFocusListeners():E.add=this._addFocusListeners),this._tooltip.options.sticky&&(E.mousemove=this._moveTooltip),this[v](E),this._tooltipHandlersAdded=!d}},openTooltip:function(d){return this._tooltip&&(this instanceof Rr||(this._tooltip._source=this),this._tooltip._prepareOpen(d)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(d){return this._tooltip&&this._tooltip.setContent(d),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(d){var v=typeof d.getElement=="function"&&d.getElement();v&&(gt(v,"focus",function(){this._tooltip._source=d,this.openTooltip()},this),gt(v,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(d){var v=typeof d.getElement=="function"&&d.getElement();v&&v.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(d){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var v=this;this._map.once("moveend",function(){v._openOnceFlag=!1,v._openTooltip(d)});return}this._tooltip._source=d.layer||d.target,this.openTooltip(this._tooltip.options.sticky?d.latlng:void 0)}},_moveTooltip:function(d){var v=d.latlng,E,N;this._tooltip.options.sticky&&d.originalEvent&&(E=this._map.mouseEventToContainerPoint(d.originalEvent),N=this._map.containerPointToLayerPoint(E),v=this._map.layerPointToLatLng(N)),this._tooltip.setLatLng(v)}});var hh=ks.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(d){var v=d&&d.tagName==="DIV"?d:document.createElement("div"),E=this.options;if(E.html instanceof Element?(fr(v),v.appendChild(E.html)):v.innerHTML=E.html!==!1?E.html:"",E.bgPos){var N=$(E.bgPos);v.style.backgroundPosition=-N.x+"px "+-N.y+"px"}return this._setIconStyles(v,"icon"),v},createShadow:function(){return null}});function Wv(d){return new hh(d)}ks.Default=Is;var Mo=ui.extend({options:{tileSize:256,opacity:1,updateWhenIdle:at.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(d){w(this,d)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(d){d._addZoomLimit(this)},onRemove:function(d){this._removeAllTiles(),on(this._container),d._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Oo(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ts(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(d){return this.options.opacity=d,this._updateOpacity(),this},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var d=this._clampZoom(this._map.getZoom());d!==this._tileZoom&&(this._tileZoom=d,this._updateLevels()),this._update()}return this},getEvents:function(){var d={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),d.move=this._onMove),this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},createTile:function(){return document.createElement("div")},getTileSize:function(){var d=this.options.tileSize;return d instanceof le?d:new le(d,d)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(d){for(var v=this.getPane().children,E=-d(-1/0,1/0),N=0,q=v.length,ne;N<q;N++)ne=v[N].style.zIndex,v[N]!==this._container&&ne&&(E=d(E,+ne));isFinite(E)&&(this.options.zIndex=E+d(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!at.ielt9){wr(this._container,this.options.opacity);var d=+new Date,v=!1,E=!1;for(var N in this._tiles){var q=this._tiles[N];if(!(!q.current||!q.loaded)){var ne=Math.min(1,(d-q.loaded)/200);wr(q.el,ne),ne<1?v=!0:(q.active?E=!0:this._onOpaqueTile(q),q.active=!0)}}E&&!this._noPrune&&this._pruneTiles(),v&&(H(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=kt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var d=this._tileZoom,v=this.options.maxZoom;if(d!==void 0){for(var E in this._levels)E=Number(E),this._levels[E].el.children.length||E===d?(this._levels[E].el.style.zIndex=v-Math.abs(d-E),this._onUpdateLevel(E)):(on(this._levels[E].el),this._removeTilesAtZoom(E),this._onRemoveLevel(E),delete this._levels[E]);var N=this._levels[d],q=this._map;return N||(N=this._levels[d]={},N.el=kt("div","leaflet-tile-container leaflet-zoom-animated",this._container),N.el.style.zIndex=v,N.origin=q.project(q.unproject(q.getPixelOrigin()),d).round(),N.zoom=d,this._setZoomTransform(N,q.getCenter(),q.getZoom()),m(N.el.offsetWidth),this._onCreateLevel(N)),this._level=N,N}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var d,v,E=this._map.getZoom();if(E>this.options.maxZoom||E<this.options.minZoom){this._removeAllTiles();return}for(d in this._tiles)v=this._tiles[d],v.retain=v.current;for(d in this._tiles)if(v=this._tiles[d],v.current&&!v.active){var N=v.coords;this._retainParent(N.x,N.y,N.z,N.z-5)||this._retainChildren(N.x,N.y,N.z,N.z+2)}for(d in this._tiles)this._tiles[d].retain||this._removeTile(d)}},_removeTilesAtZoom:function(d){for(var v in this._tiles)this._tiles[v].coords.z===d&&this._removeTile(v)},_removeAllTiles:function(){for(var d in this._tiles)this._removeTile(d)},_invalidateAll:function(){for(var d in this._levels)on(this._levels[d].el),this._onRemoveLevel(Number(d)),delete this._levels[d];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(d,v,E,N){var q=Math.floor(d/2),ne=Math.floor(v/2),he=E-1,_e=new le(+q,+ne);_e.z=+he;var Ae=this._tileCoordsToKey(_e),$e=this._tiles[Ae];return $e&&$e.active?($e.retain=!0,!0):($e&&$e.loaded&&($e.retain=!0),he>N?this._retainParent(q,ne,he,N):!1)},_retainChildren:function(d,v,E,N){for(var q=2*d;q<2*d+2;q++)for(var ne=2*v;ne<2*v+2;ne++){var he=new le(q,ne);he.z=E+1;var _e=this._tileCoordsToKey(he),Ae=this._tiles[_e];if(Ae&&Ae.active){Ae.retain=!0;continue}else Ae&&Ae.loaded&&(Ae.retain=!0);E+1<N&&this._retainChildren(q,ne,E+1,N)}},_resetView:function(d){var v=d&&(d.pinch||d.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),v,v)},_animateZoom:function(d){this._setView(d.center,d.zoom,!0,d.noUpdate)},_clampZoom:function(d){var v=this.options;return v.minNativeZoom!==void 0&&d<v.minNativeZoom?v.minNativeZoom:v.maxNativeZoom!==void 0&&v.maxNativeZoom<d?v.maxNativeZoom:d},_setView:function(d,v,E,N){var q=Math.round(v);this.options.maxZoom!==void 0&&q>this.options.maxZoom||this.options.minZoom!==void 0&&q<this.options.minZoom?q=void 0:q=this._clampZoom(q);var ne=this.options.updateWhenZooming&&q!==this._tileZoom;(!N||ne)&&(this._tileZoom=q,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),q!==void 0&&this._update(d),E||this._pruneTiles(),this._noPrune=!!E),this._setZoomTransforms(d,v)},_setZoomTransforms:function(d,v){for(var E in this._levels)this._setZoomTransform(this._levels[E],d,v)},_setZoomTransform:function(d,v,E){var N=this._map.getZoomScale(E,d.zoom),q=d.origin.multiplyBy(N).subtract(this._map._getNewPixelOrigin(v,E)).round();at.any3d?Gr(d.el,q,N):En(d.el,q)},_resetGrid:function(){var d=this._map,v=d.options.crs,E=this._tileSize=this.getTileSize(),N=this._tileZoom,q=this._map.getPixelWorldBounds(this._tileZoom);q&&(this._globalTileRange=this._pxBoundsToTileRange(q)),this._wrapX=v.wrapLng&&!this.options.noWrap&&[Math.floor(d.project([0,v.wrapLng[0]],N).x/E.x),Math.ceil(d.project([0,v.wrapLng[1]],N).x/E.y)],this._wrapY=v.wrapLat&&!this.options.noWrap&&[Math.floor(d.project([v.wrapLat[0],0],N).y/E.x),Math.ceil(d.project([v.wrapLat[1],0],N).y/E.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(d){var v=this._map,E=v._animatingZoom?Math.max(v._animateToZoom,v.getZoom()):v.getZoom(),N=v.getZoomScale(E,this._tileZoom),q=v.project(d,this._tileZoom).floor(),ne=v.getSize().divideBy(N*2);return new G(q.subtract(ne),q.add(ne))},_update:function(d){var v=this._map;if(v){var E=this._clampZoom(v.getZoom());if(d===void 0&&(d=v.getCenter()),this._tileZoom!==void 0){var N=this._getTiledPixelBounds(d),q=this._pxBoundsToTileRange(N),ne=q.getCenter(),he=[],_e=this.options.keepBuffer,Ae=new G(q.getBottomLeft().subtract([_e,-_e]),q.getTopRight().add([_e,-_e]));if(!(isFinite(q.min.x)&&isFinite(q.min.y)&&isFinite(q.max.x)&&isFinite(q.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var $e in this._tiles){var Je=this._tiles[$e].coords;(Je.z!==this._tileZoom||!Ae.contains(new le(Je.x,Je.y)))&&(this._tiles[$e].current=!1)}if(Math.abs(E-this._tileZoom)>1){this._setView(d,E);return}for(var tt=q.min.y;tt<=q.max.y;tt++)for(var rt=q.min.x;rt<=q.max.x;rt++){var vt=new le(rt,tt);if(vt.z=this._tileZoom,!!this._isValidTile(vt)){var ln=this._tiles[this._tileCoordsToKey(vt)];ln?ln.current=!0:he.push(vt)}}if(he.sort(function(tr,Yr){return tr.distanceTo(ne)-Yr.distanceTo(ne)}),he.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Tn=document.createDocumentFragment();for(rt=0;rt<he.length;rt++)this._addTile(he[rt],Tn);this._level.el.appendChild(Tn)}}}},_isValidTile:function(d){var v=this._map.options.crs;if(!v.infinite){var E=this._globalTileRange;if(!v.wrapLng&&(d.x<E.min.x||d.x>E.max.x)||!v.wrapLat&&(d.y<E.min.y||d.y>E.max.y))return!1}if(!this.options.bounds)return!0;var N=this._tileCoordsToBounds(d);return ue(this.options.bounds).overlaps(N)},_keyToBounds:function(d){return this._tileCoordsToBounds(this._keyToTileCoords(d))},_tileCoordsToNwSe:function(d){var v=this._map,E=this.getTileSize(),N=d.scaleBy(E),q=N.add(E),ne=v.unproject(N,d.z),he=v.unproject(q,d.z);return[ne,he]},_tileCoordsToBounds:function(d){var v=this._tileCoordsToNwSe(d),E=new Z(v[0],v[1]);return this.options.noWrap||(E=this._map.wrapLatLngBounds(E)),E},_tileCoordsToKey:function(d){return d.x+":"+d.y+":"+d.z},_keyToTileCoords:function(d){var v=d.split(":"),E=new le(+v[0],+v[1]);return E.z=+v[2],E},_removeTile:function(d){var v=this._tiles[d];v&&(on(v.el),delete this._tiles[d],this.fire("tileunload",{tile:v.el,coords:this._keyToTileCoords(d)}))},_initTile:function(d){_t(d,"leaflet-tile");var v=this.getTileSize();d.style.width=v.x+"px",d.style.height=v.y+"px",d.onselectstart=m,d.onmousemove=m,at.ielt9&&this.options.opacity<1&&wr(d,this.options.opacity)},_addTile:function(d,v){var E=this._getTilePos(d),N=this._tileCoordsToKey(d),q=this.createTile(this._wrapCoords(d),o(this._tileReady,this,d));this._initTile(q),this.createTile.length<2&&V(o(this._tileReady,this,d,null,q)),En(q,E),this._tiles[N]={el:q,coords:d,current:!0},v.appendChild(q),this.fire("tileloadstart",{tile:q,coords:d})},_tileReady:function(d,v,E){v&&this.fire("tileerror",{error:v,tile:E,coords:d});var N=this._tileCoordsToKey(d);E=this._tiles[N],E&&(E.loaded=+new Date,this._map._fadeAnimated?(wr(E.el,0),H(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(E.active=!0,this._pruneTiles()),v||(_t(E.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:E.el,coords:d})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),at.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(d){return d.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(d){var v=new le(this._wrapX?h(d.x,this._wrapX):d.x,this._wrapY?h(d.y,this._wrapY):d.y);return v.z=d.z,v},_pxBoundsToTileRange:function(d){var v=this.getTileSize();return new G(d.min.unscaleBy(v).floor(),d.max.unscaleBy(v).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var d in this._tiles)if(!this._tiles[d].loaded)return!1;return!0}});function di(d){return new Mo(d)}var No=Mo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(d,v){this._url=d,v=w(this,v),v.detectRetina&&at.retina&&v.maxZoom>0?(v.tileSize=Math.floor(v.tileSize/2),v.zoomReverse?(v.zoomOffset--,v.minZoom=Math.min(v.maxZoom,v.minZoom+1)):(v.zoomOffset++,v.maxZoom=Math.max(v.minZoom,v.maxZoom-1)),v.minZoom=Math.max(0,v.minZoom)):v.zoomReverse?v.minZoom=Math.min(v.maxZoom,v.minZoom):v.maxZoom=Math.max(v.minZoom,v.maxZoom),typeof v.subdomains=="string"&&(v.subdomains=v.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(d,v){return this._url===d&&v===void 0&&(v=!0),this._url=d,v||this.redraw(),this},createTile:function(d,v){var E=document.createElement("img");return gt(E,"load",o(this._tileOnLoad,this,v,E)),gt(E,"error",o(this._tileOnError,this,v,E)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(E.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(E.referrerPolicy=this.options.referrerPolicy),E.alt="",E.src=this.getTileUrl(d),E},getTileUrl:function(d){var v={r:at.retina?"@2x":"",s:this._getSubdomain(d),x:d.x,y:d.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var E=this._globalTileRange.max.y-d.y;this.options.tms&&(v.y=E),v["-y"]=E}return T(this._url,i(v,this.options))},_tileOnLoad:function(d,v){at.ielt9?setTimeout(o(d,this,null,v),0):d(null,v)},_tileOnError:function(d,v,E){var N=this.options.errorTileUrl;N&&v.getAttribute("src")!==N&&(v.src=N),d(E,v)},_onTileRemove:function(d){d.tile.onload=null},_getZoomForUrl:function(){var d=this._tileZoom,v=this.options.maxZoom,E=this.options.zoomReverse,N=this.options.zoomOffset;return E&&(d=v-d),d+N},_getSubdomain:function(d){var v=Math.abs(d.x+d.y)%this.options.subdomains.length;return this.options.subdomains[v]},_abortLoading:function(){var d,v;for(d in this._tiles)if(this._tiles[d].coords.z!==this._tileZoom&&(v=this._tiles[d].el,v.onload=m,v.onerror=m,!v.complete)){v.src=P;var E=this._tiles[d].coords;on(v),delete this._tiles[d],this.fire("tileabort",{tile:v,coords:E})}},_removeTile:function(d){var v=this._tiles[d];if(v)return v.el.setAttribute("src",P),Mo.prototype._removeTile.call(this,d)},_tileReady:function(d,v,E){if(!(!this._map||E&&E.getAttribute("src")===P))return Mo.prototype._tileReady.call(this,d,v,E)}});function Lr(d,v){return new No(d,v)}var Dr=No.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(d,v){this._url=d;var E=i({},this.defaultWmsParams);for(var N in v)N in this.options||(E[N]=v[N]);v=w(this,v);var q=v.detectRetina&&at.retina?2:1,ne=this.getTileSize();E.width=ne.x*q,E.height=ne.y*q,this.wmsParams=E},onAdd:function(d){this._crs=this.options.crs||d.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var v=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[v]=this._crs.code,No.prototype.onAdd.call(this,d)},getTileUrl:function(d){var v=this._tileCoordsToNwSe(d),E=this._crs,N=se(E.project(v[0]),E.project(v[1])),q=N.min,ne=N.max,he=(this._wmsVersion>=1.3&&this._crs===Bv?[q.y,q.x,ne.y,ne.x]:[q.x,q.y,ne.x,ne.y]).join(","),_e=No.prototype.getTileUrl.call(this,d);return _e+O(this.wmsParams,_e,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+he},setParams:function(d,v){return i(this.wmsParams,d),v||this.redraw(),this}});function zs(d,v){return new Dr(d,v)}No.WMS=Dr,Lr.wms=zs;var hi=ui.extend({options:{padding:.1},initialize:function(d){w(this,d),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),_t(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var d={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(d.zoomanim=this._onAnimZoom),d},_onAnimZoom:function(d){this._updateTransform(d.center,d.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(d,v){var E=this._map.getZoomScale(v,this._zoom),N=this._map.getSize().multiplyBy(.5+this.options.padding),q=this._map.project(this._center,v),ne=N.multiplyBy(-E).add(q).subtract(this._map._getNewPixelOrigin(d,v));at.any3d?Gr(this._container,ne,E):En(this._container,ne)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var d in this._layers)this._layers[d]._reset()},_onZoomEnd:function(){for(var d in this._layers)this._layers[d]._project()},_updatePaths:function(){for(var d in this._layers)this._layers[d]._update()},_update:function(){var d=this.options.padding,v=this._map.getSize(),E=this._map.containerPointToLayerPoint(v.multiplyBy(-d)).round();this._bounds=new G(E,E.add(v.multiplyBy(1+d*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),du=hi.extend({options:{tolerance:0},getEvents:function(){var d=hi.prototype.getEvents.call(this);return d.viewprereset=this._onViewPreReset,d},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){hi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var d=this._container=document.createElement("canvas");gt(d,"mousemove",this._onMouseMove,this),gt(d,"click dblclick mousedown mouseup contextmenu",this._onClick,this),gt(d,"mouseout",this._handleMouseOut,this),d._leaflet_disable_events=!0,this._ctx=d.getContext("2d")},_destroyContainer:function(){H(this._redrawRequest),delete this._ctx,on(this._container),$t(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var d;this._redrawBounds=null;for(var v in this._layers)d=this._layers[v],d._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){hi.prototype._update.call(this);var d=this._bounds,v=this._container,E=d.getSize(),N=at.retina?2:1;En(v,d.min),v.width=N*E.x,v.height=N*E.y,v.style.width=E.x+"px",v.style.height=E.y+"px",at.retina&&this._ctx.scale(2,2),this._ctx.translate(-d.min.x,-d.min.y),this.fire("update")}},_reset:function(){hi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(d){this._updateDashArray(d),this._layers[f(d)]=d;var v=d._order={layer:d,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=v),this._drawLast=v,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(d){this._requestRedraw(d)},_removePath:function(d){var v=d._order,E=v.next,N=v.prev;E?E.prev=N:this._drawLast=N,N?N.next=E:this._drawFirst=E,delete d._order,delete this._layers[f(d)],this._requestRedraw(d)},_updatePath:function(d){this._extendRedrawBounds(d),d._project(),d._update(),this._requestRedraw(d)},_updateStyle:function(d){this._updateDashArray(d),this._requestRedraw(d)},_updateDashArray:function(d){if(typeof d.options.dashArray=="string"){var v=d.options.dashArray.split(/[, ]+/),E=[],N,q;for(q=0;q<v.length;q++){if(N=Number(v[q]),isNaN(N))return;E.push(N)}d.options._dashArray=E}else d.options._dashArray=d.options.dashArray},_requestRedraw:function(d){this._map&&(this._extendRedrawBounds(d),this._redrawRequest=this._redrawRequest||V(this._redraw,this))},_extendRedrawBounds:function(d){if(d._pxBounds){var v=(d.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new G,this._redrawBounds.extend(d._pxBounds.min.subtract([v,v])),this._redrawBounds.extend(d._pxBounds.max.add([v,v]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var d=this._redrawBounds;if(d){var v=d.getSize();this._ctx.clearRect(d.min.x,d.min.y,v.x,v.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var d,v=this._redrawBounds;if(this._ctx.save(),v){var E=v.getSize();this._ctx.beginPath(),this._ctx.rect(v.min.x,v.min.y,E.x,E.y),this._ctx.clip()}this._drawing=!0;for(var N=this._drawFirst;N;N=N.next)d=N.layer,(!v||d._pxBounds&&d._pxBounds.intersects(v))&&d._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(d,v){if(this._drawing){var E,N,q,ne,he=d._parts,_e=he.length,Ae=this._ctx;if(_e){for(Ae.beginPath(),E=0;E<_e;E++){for(N=0,q=he[E].length;N<q;N++)ne=he[E][N],Ae[N?"lineTo":"moveTo"](ne.x,ne.y);v&&Ae.closePath()}this._fillStroke(Ae,d)}}},_updateCircle:function(d){if(!(!this._drawing||d._empty())){var v=d._point,E=this._ctx,N=Math.max(Math.round(d._radius),1),q=(Math.max(Math.round(d._radiusY),1)||N)/N;q!==1&&(E.save(),E.scale(1,q)),E.beginPath(),E.arc(v.x,v.y/q,N,0,Math.PI*2,!1),q!==1&&E.restore(),this._fillStroke(E,d)}},_fillStroke:function(d,v){var E=v.options;E.fill&&(d.globalAlpha=E.fillOpacity,d.fillStyle=E.fillColor||E.color,d.fill(E.fillRule||"evenodd")),E.stroke&&E.weight!==0&&(d.setLineDash&&d.setLineDash(v.options&&v.options._dashArray||[]),d.globalAlpha=E.opacity,d.lineWidth=E.weight,d.strokeStyle=E.color,d.lineCap=E.lineCap,d.lineJoin=E.lineJoin,d.stroke())},_onClick:function(d){for(var v=this._map.mouseEventToLayerPoint(d),E,N,q=this._drawFirst;q;q=q.next)E=q.layer,E.options.interactive&&E._containsPoint(v)&&(!(d.type==="click"||d.type==="preclick")||!this._map._draggableMoved(E))&&(N=E);this._fireEvent(N?[N]:!1,d)},_onMouseMove:function(d){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var v=this._map.mouseEventToLayerPoint(d);this._handleMouseHover(d,v)}},_handleMouseOut:function(d){var v=this._hoveredLayer;v&&(sn(this._container,"leaflet-interactive"),this._fireEvent([v],d,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(d,v){if(!this._mouseHoverThrottled){for(var E,N,q=this._drawFirst;q;q=q.next)E=q.layer,E.options.interactive&&E._containsPoint(v)&&(N=E);N!==this._hoveredLayer&&(this._handleMouseOut(d),N&&(_t(this._container,"leaflet-interactive"),this._fireEvent([N],d,"mouseover"),this._hoveredLayer=N)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,d),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(d,v,E){this._map._fireDOMEvent(v,E||v.type,d)},_bringToFront:function(d){var v=d._order;if(v){var E=v.next,N=v.prev;if(E)E.prev=N;else return;N?N.next=E:E&&(this._drawFirst=E),v.prev=this._drawLast,this._drawLast.next=v,v.next=null,this._drawLast=v,this._requestRedraw(d)}},_bringToBack:function(d){var v=d._order;if(v){var E=v.next,N=v.prev;if(N)N.next=E;else return;E?E.prev=N:N&&(this._drawLast=N),v.prev=null,v.next=this._drawFirst,this._drawFirst.prev=v,this._drawFirst=v,this._requestRedraw(d)}}});function hu(d){return at.canvas?new du(d):null}var Lo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(d){return document.createElement("<lvml:"+d+' class="lvml">')}}catch{}return function(d){return document.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),qs={_initContainer:function(){this._container=kt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(hi.prototype._update.call(this),this.fire("update"))},_initPath:function(d){var v=d._container=Lo("shape");_t(v,"leaflet-vml-shape "+(this.options.className||"")),v.coordsize="1 1",d._path=Lo("path"),v.appendChild(d._path),this._updateStyle(d),this._layers[f(d)]=d},_addPath:function(d){var v=d._container;this._container.appendChild(v),d.options.interactive&&d.addInteractiveTarget(v)},_removePath:function(d){var v=d._container;on(v),d.removeInteractiveTarget(v),delete this._layers[f(d)]},_updateStyle:function(d){var v=d._stroke,E=d._fill,N=d.options,q=d._container;q.stroked=!!N.stroke,q.filled=!!N.fill,N.stroke?(v||(v=d._stroke=Lo("stroke")),q.appendChild(v),v.weight=N.weight+"px",v.color=N.color,v.opacity=N.opacity,N.dashArray?v.dashStyle=A(N.dashArray)?N.dashArray.join(" "):N.dashArray.replace(/( *, *)/g," "):v.dashStyle="",v.endcap=N.lineCap.replace("butt","flat"),v.joinstyle=N.lineJoin):v&&(q.removeChild(v),d._stroke=null),N.fill?(E||(E=d._fill=Lo("fill")),q.appendChild(E),E.color=N.fillColor||N.color,E.opacity=N.fillOpacity):E&&(q.removeChild(E),d._fill=null)},_updateCircle:function(d){var v=d._point.round(),E=Math.round(d._radius),N=Math.round(d._radiusY||E);this._setPath(d,d._empty()?"M0 0":"AL "+v.x+","+v.y+" "+E+","+N+" 0,"+65535*360)},_setPath:function(d,v){d._path.v=v},_bringToFront:function(d){Oo(d._container)},_bringToBack:function(d){Ts(d._container)}},pu=at.vml?Lo:Fe,Fa=hi.extend({_initContainer:function(){this._container=pu("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pu("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){on(this._container),$t(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){hi.prototype._update.call(this);var d=this._bounds,v=d.getSize(),E=this._container;(!this._svgSize||!this._svgSize.equals(v))&&(this._svgSize=v,E.setAttribute("width",v.x),E.setAttribute("height",v.y)),En(E,d.min),E.setAttribute("viewBox",[d.min.x,d.min.y,v.x,v.y].join(" ")),this.fire("update")}},_initPath:function(d){var v=d._path=pu("path");d.options.className&&_t(v,d.options.className),d.options.interactive&&_t(v,"leaflet-interactive"),this._updateStyle(d),this._layers[f(d)]=d},_addPath:function(d){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(d._path),d.addInteractiveTarget(d._path)},_removePath:function(d){on(d._path),d.removeInteractiveTarget(d._path),delete this._layers[f(d)]},_updatePath:function(d){d._project(),d._update()},_updateStyle:function(d){var v=d._path,E=d.options;v&&(E.stroke?(v.setAttribute("stroke",E.color),v.setAttribute("stroke-opacity",E.opacity),v.setAttribute("stroke-width",E.weight),v.setAttribute("stroke-linecap",E.lineCap),v.setAttribute("stroke-linejoin",E.lineJoin),E.dashArray?v.setAttribute("stroke-dasharray",E.dashArray):v.removeAttribute("stroke-dasharray"),E.dashOffset?v.setAttribute("stroke-dashoffset",E.dashOffset):v.removeAttribute("stroke-dashoffset")):v.setAttribute("stroke","none"),E.fill?(v.setAttribute("fill",E.fillColor||E.color),v.setAttribute("fill-opacity",E.fillOpacity),v.setAttribute("fill-rule",E.fillRule||"evenodd")):v.setAttribute("fill","none"))},_updatePoly:function(d,v){this._setPath(d,ge(d._parts,v))},_updateCircle:function(d){var v=d._point,E=Math.max(Math.round(d._radius),1),N=Math.max(Math.round(d._radiusY),1)||E,q="a"+E+","+N+" 0 1,0 ",ne=d._empty()?"M0 0":"M"+(v.x-E)+","+v.y+q+E*2+",0 "+q+-E*2+",0 ";this._setPath(d,ne)},_setPath:function(d,v){d._path.setAttribute("d",v)},_bringToFront:function(d){Oo(d._path)},_bringToBack:function(d){Ts(d._path)}});at.vml&&Fa.include(qs);function Do(d){return at.svg||at.vml?new Fa(d):null}Ct.include({getRenderer:function(d){var v=d.options.renderer||this._getPaneRenderer(d.options.pane)||this.options.renderer||this._renderer;return v||(v=this._renderer=this._createRenderer()),this.hasLayer(v)||this.addLayer(v),v},_getPaneRenderer:function(d){if(d==="overlayPane"||d===void 0)return!1;var v=this._paneRenderers[d];return v===void 0&&(v=this._createRenderer({pane:d}),this._paneRenderers[d]=v),v},_createRenderer:function(d){return this.options.preferCanvas&&hu(d)||Do(d)}});var Gv=Us.extend({initialize:function(d,v){Us.prototype.initialize.call(this,this._boundsToLatLngs(d),v)},setBounds:function(d){return this.setLatLngs(this._boundsToLatLngs(d))},_boundsToLatLngs:function(d){return d=ue(d),[d.getSouthWest(),d.getNorthWest(),d.getNorthEast(),d.getSouthEast()]}});function kr(d,v){return new Gv(d,v)}Fa.create=pu,Fa.pointsToPath=ge,Nr.geometryToLayer=lu,Nr.coordsToLatLng=Nc,Nr.coordsToLatLngs=uu,Nr.latLngToCoords=cu,Nr.latLngsToCoords=Lc,Nr.getFeature=ci,Nr.asFeature=Bs,Ct.mergeOptions({boxZoom:!0});var $c=li.extend({initialize:function(d){this._map=d,this._container=d._container,this._pane=d._panes.overlayPane,this._resetStateTimeout=0,d.on("unload",this._destroy,this)},addHooks:function(){gt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){$t(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){on(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(d){if(!d.shiftKey||d.which!==1&&d.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Di(),tu(),this._startPoint=this._map.mouseEventToContainerPoint(d),gt(document,{contextmenu:$i,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(d){this._moved||(this._moved=!0,this._box=kt("div","leaflet-zoom-box",this._container),_t(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(d);var v=new G(this._point,this._startPoint),E=v.getSize();En(this._box,v.min),this._box.style.width=E.x+"px",this._box.style.height=E.y+"px"},_finish:function(){this._moved&&(on(this._box),sn(this._container,"leaflet-crosshair")),eu(),eh(),$t(document,{contextmenu:$i,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(d){if(!(d.which!==1&&d.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var v=new Z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(v).fire("boxzoomend",{boxZoomBounds:v})}},_onKeyDown:function(d){d.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ct.addInitHook("addHandler","boxZoom",$c),Ct.mergeOptions({doubleClickZoom:!0});var Bi=li.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(d){var v=this._map,E=v.getZoom(),N=v.options.zoomDelta,q=d.originalEvent.shiftKey?E-N:E+N;v.options.doubleClickZoom==="center"?v.setZoom(q):v.setZoomAround(d.containerPoint,q)}});Ct.addInitHook("addHandler","doubleClickZoom",Bi),Ct.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ph=li.extend({addHooks:function(){if(!this._draggable){var d=this._map;this._draggable=new Ua(d._mapPane,d._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),d.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),d.on("zoomend",this._onZoomEnd,this),d.whenReady(this._onZoomEnd,this))}_t(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){sn(this._map._container,"leaflet-grab"),sn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var d=this._map;if(d._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var v=ue(this._map.options.maxBounds);this._offsetLimit=se(this._map.latLngToContainerPoint(v.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(v.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;d.fire("movestart").fire("dragstart"),d.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(d){if(this._map.options.inertia){var v=this._lastTime=+new Date,E=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(E),this._times.push(v),this._prunePositions(v)}this._map.fire("move",d).fire("drag",d)},_prunePositions:function(d){for(;this._positions.length>1&&d-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var d=this._map.getSize().divideBy(2),v=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=v.subtract(d).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(d,v){return d-(d-v)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var d=this._draggable._newPos.subtract(this._draggable._startPos),v=this._offsetLimit;d.x<v.min.x&&(d.x=this._viscousLimit(d.x,v.min.x)),d.y<v.min.y&&(d.y=this._viscousLimit(d.y,v.min.y)),d.x>v.max.x&&(d.x=this._viscousLimit(d.x,v.max.x)),d.y>v.max.y&&(d.y=this._viscousLimit(d.y,v.max.y)),this._draggable._newPos=this._draggable._startPos.add(d)}},_onPreDragWrap:function(){var d=this._worldWidth,v=Math.round(d/2),E=this._initialWorldOffset,N=this._draggable._newPos.x,q=(N-v+E)%d+v-E,ne=(N+v+E)%d-v-E,he=Math.abs(q+E)<Math.abs(ne+E)?q:ne;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=he},_onDragEnd:function(d){var v=this._map,E=v.options,N=!E.inertia||d.noInertia||this._times.length<2;if(v.fire("dragend",d),N)v.fire("moveend");else{this._prunePositions(+new Date);var q=this._lastPos.subtract(this._positions[0]),ne=(this._lastTime-this._times[0])/1e3,he=E.easeLinearity,_e=q.multiplyBy(he/ne),Ae=_e.distanceTo([0,0]),$e=Math.min(E.inertiaMaxSpeed,Ae),Je=_e.multiplyBy($e/Ae),tt=$e/(E.inertiaDeceleration*he),rt=Je.multiplyBy(-tt/2).round();!rt.x&&!rt.y?v.fire("moveend"):(rt=v._limitOffset(rt,v.options.maxBounds),V(function(){v.panBy(rt,{duration:tt,easeLinearity:he,noMoveStart:!0,animate:!0})}))}}});Ct.addInitHook("addHandler","dragging",ph),Ct.mergeOptions({keyboard:!0,keyboardPanDelta:80});var mu=li.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(d){this._map=d,this._setPanDelta(d.options.keyboardPanDelta),this._setZoomDelta(d.options.zoomDelta)},addHooks:function(){var d=this._map._container;d.tabIndex<=0&&(d.tabIndex="0"),gt(d,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),$t(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var d=document.body,v=document.documentElement,E=d.scrollTop||v.scrollTop,N=d.scrollLeft||v.scrollLeft;this._map._container.focus(),window.scrollTo(N,E)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(d){var v=this._panKeys={},E=this.keyCodes,N,q;for(N=0,q=E.left.length;N<q;N++)v[E.left[N]]=[-1*d,0];for(N=0,q=E.right.length;N<q;N++)v[E.right[N]]=[d,0];for(N=0,q=E.down.length;N<q;N++)v[E.down[N]]=[0,d];for(N=0,q=E.up.length;N<q;N++)v[E.up[N]]=[0,-1*d]},_setZoomDelta:function(d){var v=this._zoomKeys={},E=this.keyCodes,N,q;for(N=0,q=E.zoomIn.length;N<q;N++)v[E.zoomIn[N]]=d;for(N=0,q=E.zoomOut.length;N<q;N++)v[E.zoomOut[N]]=-d},_addHooks:function(){gt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){$t(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(d){if(!(d.altKey||d.ctrlKey||d.metaKey)){var v=d.keyCode,E=this._map,N;if(v in this._panKeys){if(!E._panAnim||!E._panAnim._inProgress)if(N=this._panKeys[v],d.shiftKey&&(N=$(N).multiplyBy(3)),E.options.maxBounds&&(N=E._limitOffset($(N),E.options.maxBounds)),E.options.worldCopyJump){var q=E.wrapLatLng(E.unproject(E.project(E.getCenter()).add(N)));E.panTo(q)}else E.panBy(N)}else if(v in this._zoomKeys)E.setZoom(E.getZoom()+(d.shiftKey?3:1)*this._zoomKeys[v]);else if(v===27&&E._popup&&E._popup.options.closeOnEscapeKey)E.closePopup();else return;$i(d)}}});Ct.addInitHook("addHandler","keyboard",mu),Ct.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var za=li.extend({addHooks:function(){gt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){$t(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(d){var v=iu(d),E=this._map.options.wheelDebounceTime;this._delta+=v,this._lastMousePos=this._map.mouseEventToContainerPoint(d),this._startTime||(this._startTime=+new Date);var N=Math.max(E-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),N),$i(d)},_performZoom:function(){var d=this._map,v=d.getZoom(),E=this._map.options.zoomSnap||0;d._stop();var N=this._delta/(this._map.options.wheelPxPerZoomLevel*4),q=4*Math.log(2/(1+Math.exp(-Math.abs(N))))/Math.LN2,ne=E?Math.ceil(q/E)*E:q,he=d._limitZoom(v+(this._delta>0?ne:-ne))-v;this._delta=0,this._startTime=null,he&&(d.options.scrollWheelZoom==="center"?d.setZoom(v+he):d.setZoomAround(this._lastMousePos,v+he))}});Ct.addInitHook("addHandler","scrollWheelZoom",za);var mh=600;Ct.mergeOptions({tapHold:at.touchNative&&at.safari&&at.mobile,tapTolerance:15});var Uc=li.extend({addHooks:function(){gt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){$t(this._map._container,"touchstart",this._onDown,this)},_onDown:function(d){if(clearTimeout(this._holdTimeout),d.touches.length===1){var v=d.touches[0];this._startPos=this._newPos=new le(v.clientX,v.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(gt(document,"touchend",jn),gt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",v))},this),mh),gt(document,"touchend touchcancel contextmenu",this._cancel,this),gt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function d(){$t(document,"touchend",jn),$t(document,"touchend touchcancel",d)},_cancel:function(){clearTimeout(this._holdTimeout),$t(document,"touchend touchcancel contextmenu",this._cancel,this),$t(document,"touchmove",this._onMove,this)},_onMove:function(d){var v=d.touches[0];this._newPos=new le(v.clientX,v.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(d,v){var E=new MouseEvent(d,{bubbles:!0,cancelable:!0,view:window,screenX:v.screenX,screenY:v.screenY,clientX:v.clientX,clientY:v.clientY});E._simulated=!0,v.target.dispatchEvent(E)}});Ct.addInitHook("addHandler","tapHold",Uc),Ct.mergeOptions({touchZoom:at.touch,bounceAtZoomLimits:!0});var ko=li.extend({addHooks:function(){_t(this._map._container,"leaflet-touch-zoom"),gt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){sn(this._map._container,"leaflet-touch-zoom"),$t(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(d){var v=this._map;if(!(!d.touches||d.touches.length!==2||v._animatingZoom||this._zooming)){var E=v.mouseEventToContainerPoint(d.touches[0]),N=v.mouseEventToContainerPoint(d.touches[1]);this._centerPoint=v.getSize()._divideBy(2),this._startLatLng=v.containerPointToLatLng(this._centerPoint),v.options.touchZoom!=="center"&&(this._pinchStartLatLng=v.containerPointToLatLng(E.add(N)._divideBy(2))),this._startDist=E.distanceTo(N),this._startZoom=v.getZoom(),this._moved=!1,this._zooming=!0,v._stop(),gt(document,"touchmove",this._onTouchMove,this),gt(document,"touchend touchcancel",this._onTouchEnd,this),jn(d)}},_onTouchMove:function(d){if(!(!d.touches||d.touches.length!==2||!this._zooming)){var v=this._map,E=v.mouseEventToContainerPoint(d.touches[0]),N=v.mouseEventToContainerPoint(d.touches[1]),q=E.distanceTo(N)/this._startDist;if(this._zoom=v.getScaleZoom(q,this._startZoom),!v.options.bounceAtZoomLimits&&(this._zoom<v.getMinZoom()&&q<1||this._zoom>v.getMaxZoom()&&q>1)&&(this._zoom=v._limitZoom(this._zoom)),v.options.touchZoom==="center"){if(this._center=this._startLatLng,q===1)return}else{var ne=E._add(N)._divideBy(2)._subtract(this._centerPoint);if(q===1&&ne.x===0&&ne.y===0)return;this._center=v.unproject(v.project(this._pinchStartLatLng,this._zoom).subtract(ne),this._zoom)}this._moved||(v._moveStart(!0,!1),this._moved=!0),H(this._animRequest);var he=o(v._move,v,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(he,this,!0),jn(d)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,H(this._animRequest),$t(document,"touchmove",this._onTouchMove,this),$t(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ct.addInitHook("addHandler","touchZoom",ko),Ct.BoxZoom=$c,Ct.DoubleClickZoom=Bi,Ct.Drag=ph,Ct.Keyboard=mu,Ct.ScrollWheelZoom=za,Ct.TapHold=Uc,Ct.TouchZoom=ko,n.Bounds=G,n.Browser=at,n.CRS=Se,n.Canvas=du,n.Circle=fh,n.CircleMarker=su,n.Class=ee,n.Control=Or,n.DivIcon=hh,n.DivOverlay=fi,n.DomEvent=H_,n.DomUtil=jv,n.Draggable=Ua,n.Evented=oe,n.FeatureGroup=Rr,n.GeoJSON=Nr,n.GridLayer=Mo,n.Handler=li,n.Icon=ks,n.ImageOverlay=Ui,n.LatLng=fe,n.LatLngBounds=Z,n.Layer=ui,n.LayerGroup=Po,n.LineUtil=$v,n.Map=Ct,n.Marker=$s,n.Mixin=Z_,n.Path=la,n.Point=le,n.PolyUtil=X_,n.Polygon=Us,n.Polyline=ua,n.Popup=fu,n.PosAnimation=Cc,n.Projection=Uv,n.Rectangle=Gv,n.Renderer=hi,n.SVG=Fa,n.SVGOverlay=Ba,n.TileLayer=No,n.Tooltip=Ic,n.Transformation=ce,n.Util=te,n.VideoOverlay=kc,n.bind=o,n.bounds=se,n.canvas=hu,n.circle=r1,n.circleMarker=zv,n.control=Ls,n.divIcon=Wv,n.extend=i,n.featureGroup=ou,n.geoJSON=Dc,n.geoJson=qv,n.gridLayer=di,n.icon=Mc,n.imageOverlay=Fs,n.latLng=de,n.latLngBounds=ue,n.layerGroup=Fv,n.map=au,n.marker=ch,n.point=$,n.polygon=Mr,n.polyline=i1,n.popup=a1,n.rectangle=kr,n.setOptions=w,n.stamp=f,n.svg=Do,n.svgOverlay=Hv,n.tileLayer=Lr,n.tooltip=o1,n.transformation=ae,n.version=r,n.videoOverlay=Vv;var Vs=window.L;n.noConflict=function(){return window.L=Vs,this},window.L=n})}(Ep,Ep.exports)),Ep.exports}var gv=BCe();const g7=Dt(gv);function O3(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function S3(e,t){return t==null?function(r,i){const a=I.useRef(void 0);return a.current||(a.current=e(r,i)),a}:function(r,i){const a=I.useRef(void 0);a.current||(a.current=e(r,i));const o=I.useRef(r),{instance:l}=a.current;return I.useEffect(function(){o.current!==r&&(t(l,r,o.current),o.current=r)},[l,r,t]),a}}function FCe(e,t){I.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var a;(a=t.layerContainer)==null||a.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function JV(e){return function(n){const r=XV(),i=e(w3(n,r),r);return ZV(r.map,n.attribution),QV(i.current,n.eventHandlers),FCe(i.current,r),i}}function zCe(e,t){const n=S3(e,t),r=JV(n);return DCe(r)}function qCe(e,t){const n=S3(e),r=$Ce(n,t);return kCe(r)}function VCe(e,t){const n=S3(e,t),r=JV(n);return ICe(r)}function HCe(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function WCe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:o,style:l,whenReady:f,zoom:c,...h},m){const[g]=I.useState({className:i,id:a,style:l}),[x,_]=I.useState(null),w=I.useRef(void 0);I.useImperativeHandle(m,()=>(x==null?void 0:x.map)??null,[x]);const O=I.useCallback(T=>{if(T!==null&&!w.current){const A=new gv.Map(T,h);w.current=A,n!=null&&c!=null?A.setView(n,c):e!=null&&A.fitBounds(e,t),f!=null&&A.whenReady(f),_(NCe(A))}},[]);I.useEffect(()=>()=>{x==null||x.map.remove()},[x]);const S=x?J.createElement(x3,{value:x},r):o??null;return J.createElement("div",{...g,ref:O},S)}const GCe=I.forwardRef(WCe),YCe=zCe(function({position:t,...n},r){const i=new gv.Marker(t,n);return O3(i,LCe(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),KCe=qCe(function(t,n){const r=new gv.Popup(t,n.overlayContainer);return O3(r,n)},function(t,n,{position:r},i){I.useEffect(function(){const{instance:o}=t;function l(c){c.popup===o&&(o.update(),i(!0))}function f(c){c.popup===o&&i(!1)}return n.map.on({popupopen:l,popupclose:f}),n.overlayContainer==null?(r!=null&&o.setLatLng(r),o.openOn(n.map)):n.overlayContainer.bindPopup(o),function(){var h;n.map.off({popupopen:l,popupclose:f}),(h=n.overlayContainer)==null||h.unbindPopup(),n.map.removeLayer(o)}},[t,n,i,r])}),ZCe=VCe(function({url:t,...n},r){const i=new gv.TileLayer(t,w3(n,r));return O3(i,r)},function(t,n,r){HCe(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),XCe={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},eH={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},kn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},$r={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},yl={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Ue{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=Ue.getVersionPrecision(t),a=Ue.getVersionPrecision(n);let o=Math.max(i,a),l=0;const f=Ue.map([t,n],c=>{const h=o-Ue.getVersionPrecision(c),m=c+new Array(h+1).join(".0");return Ue.map(m.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(r&&(l=o-Math.min(i,a)),o-=1;o>=l;){if(f[0][o]>f[1][o])return 1;if(f[0][o]===f[1][o]){if(o===l)return 0;o-=1}else if(f[0][o]<f[1][o])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const a=t[r];if(n(a,r))return a}}static assign(t,...n){const r=t;let i,a;if(Object.assign)return Object.assign(t,...n);for(i=0,a=n.length;i<a;i+=1){const o=n[i];typeof o=="object"&&o!==null&&Object.keys(o).forEach(f=>{r[f]=o[f]})}return t}static getBrowserAlias(t){return XCe[t]}static getBrowserTypeByAlias(t){return eH[t]||""}}const Qt=/version\/(\d+(\.?_?\d+)+)/i,QCe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Ue.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Ue.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Ue.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Ue.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Ue.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=Ue.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Ue.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Ue.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=Ue.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Ue.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Ue.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=Ue.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Ue.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Ue.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Ue.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=Ue.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Ue.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Ue.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=Ue.getFirstMatch(Qt,e)||Ue.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=Ue.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Ue.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Ue.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Ue.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=Ue.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Ue.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Ue.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Ue.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=Ue.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Ue.getFirstMatch(Qt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:Ue.getFirstMatch(i,e),version:Ue.getSecondMatch(i,e)}}}],JCe=[{test:[/Roku\/DVP/],describe(e){const t=Ue.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:$r.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Ue.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:$r.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Ue.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Ue.getWindowsVersionName(t);return{name:$r.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:$r.iOS},n=Ue.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Ue.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Ue.getMacOSVersionName(t),r={name:$r.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Ue.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:$r.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Ue.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Ue.getAndroidVersionName(t),r={name:$r.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Ue.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:$r.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Ue.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Ue.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Ue.getFirstMatch(/\bbb(\d+)/i,e);return{name:$r.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Ue.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:$r.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Ue.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:$r.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:$r.Linux}}},{test:[/CrOS/],describe(){return{name:$r.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Ue.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:$r.PlayStation4,version:t}}}],eAe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Ue.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:kn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:kn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:kn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:kn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:kn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:kn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:kn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Ue.getFirstMatch(/(ipod|iphone)/i,e);return{type:kn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:kn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:kn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:kn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:kn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:kn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:kn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:kn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:kn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:kn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:kn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:kn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:kn.tv}}}],tAe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:yl.Blink};const n=Ue.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:yl.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:yl.Trident},n=Ue.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:yl.Presto},n=Ue.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:yl.Gecko},n=Ue.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:yl.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:yl.WebKit},n=Ue.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class y7{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Ue.find(QCe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=Ue.find(JCe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=Ue.find(eAe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=Ue.find(tAe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Ue.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(l=>{const f=t[l];typeof f=="string"?(i[l]=f,a+=1):typeof f=="object"&&(n[l]=f,r+=1)}),r>0){const l=Object.keys(n),f=Ue.find(l,h=>this.isOS(h));if(f){const h=this.satisfies(n[f]);if(h!==void 0)return h}const c=Ue.find(l,h=>this.isPlatform(h));if(c){const h=this.satisfies(n[c]);if(h!==void 0)return h}}if(a>0){const l=Object.keys(i),f=Ue.find(l,c=>this.isBrowser(c,!0));if(f!==void 0)return this.compareVersion(i[f])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=Ue.getBrowserTypeByAlias(i);return n&&a&&(i=a.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const a=this.getBrowserVersion();if(typeof a=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(Ue.compareVersions(a,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
* Bowser - a browser detector
* https://github.com/lancedikson/bowser
* MIT License | (c) Dustin Diaz 2012-2015
* MIT License | (c) Denis Demchenko 2015-2019
*/class nAe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new y7(t,n)}static parse(t){return new y7(t).getResult()}static get BROWSER_MAP(){return eH}static get ENGINE_MAP(){return yl}static get OS_MAP(){return $r}static get PLATFORMS_MAP(){return kn}}var rAe=Object.defineProperty,iAe=(e,t,n)=>t in e?rAe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pl=(e,t,n)=>iAe(e,typeof t!="symbol"?t+"":t,n);const aAe=e=>(e==null?void 0:e.type)===uP.INVALID_ARGUMENT,oAe=e=>(e==null?void 0:e.type)===uP.INVALID_SHORT_URL_DELETION,sAe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Ni=e=>sAe(e)?e:void 0,E3=e=>"error"in e,co=({errorData:e,fallbackMessage:t})=>y.jsxs(y.Fragment,{children:[(e==null?void 0:e.detail)??t,aAe(e)&&y.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),fc=({style:e,className:t,...n})=>y.jsx("button",{type:"button",className:Ve("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),tH=I.createContext(""),lAe=tH.Provider,Zl=()=>I.useContext(tH),nH=I.createContext(void 0),{Provider:T3}=nH,N_=()=>I.useContext(nH),uAe=5,C3=()=>{const[e,t]=I.useState([]),n=I.useMemo(()=>e.length>=uAe,[e.length]),r=I.useCallback(l=>!n&&t(f=>[...f,l]),[n]),i=I.useCallback(l=>!n&&e.every(f=>f.name!==l),[e,n]),a=I.useCallback(l=>t(f=>f.filter(c=>c!==l)),[]),o=I.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:a,clearItemsToCompare:o,canAddItemWithName:i}},A3=({className:e,type:t})=>{const n=Zl(),r=N_(),i=I.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(f=>f.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:a,clearItemsToCompare:o,removeItemToCompare:l}=r;return y.jsx("div",{className:Ve("top-sticky",e),children:y.jsxs(Jt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[y.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:a.map((f,c)=>{var h;return y.jsxs("li",{className:Ve("badge pe-1",{"bg-secondary":!((h=f.style)!=null&&h.backgroundColor)}),style:f.style,children:[f.name,y.jsx(fc,{"aria-label":`Remove ${f.name}`,className:"fw-bold fs-6",onClick:()=>l(f),children:"×"})]},`${f.name}_${c}`)})}),y.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[y.jsxs(yt,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:a.length<2,tag:tn,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[y.jsx(Ke,{icon:L0,fixedWidth:!0,className:"me-1"}),"Compare (",a.length,"/5) »"]}),y.jsx(yt,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:o,children:"×"})]})]})})},cAe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||OC(e,n,">=");return(!t||OC(e,t,"<="))&&r},rH={shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},deviceLongUrls:{maxVersion:"3.*.*"},shortUrlRedirectRules:{minVersion:"4.0.0"},qrCodeColors:{minVersion:"4.0.0"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"}};Object.freeze(rH);const Wo=(e,t)=>cAe(t==="latest"?"999.99.99":t,rH[e]),iH=e=>({deviceLongUrls:Wo("deviceLongUrls",e),shortUrlVisitsDeletion:Wo("shortUrlVisitsDeletion",e),orphanVisitsDeletion:Wo("orphanVisitsDeletion",e),shortUrlRedirectRules:Wo("shortUrlRedirectRules",e),qrCodeColors:Wo("qrCodeColors",e),urlValidation:Wo("urlValidation",e),ipRedirectCondition:Wo("ipRedirectCondition",e),geolocationRedirectCondition:Wo("geolocationRedirectCondition",e),filterShortUrlsByDomain:Wo("filterShortUrlsByDomain",e)}),aH=I.createContext(iH("0.0.0")),fAe=aH.Provider,dAe=e=>I.useMemo(()=>iH(e),[e]),Ea=e=>I.useContext(aH)[e],Cd="DEFAULT",Ry=({className:e="",placement:t,children:n})=>{const r=na();return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:e,ref:r,children:y.jsx(Ke,{icon:Tj})}),y.jsx(Mi,{target:r,placement:t,children:n})]})},oH=e=>t=>{t.preventDefault(),e()},j3=(e,t,n=1)=>cP(n,e+1).map(t),hAe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,$u=e=>e!=null&&!hAe(e),gE=e=>e||null,JA=e=>e?"true":"false",yE=e=>e===void 0?void 0:JA(e),bE=({isLast:e,...t})=>y.jsx(Cy,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),pAe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,a,o;const[l,f]=I.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[c,h]=I.useState(((a=n.redirects)==null?void 0:a.regular404Redirect)??""),[m,g]=I.useState(((o=n.redirects)==null?void 0:o.invalidShortUrlRedirect)??""),x=oH(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:gE(l),regular404Redirect:gE(c),invalidShortUrlRedirect:gE(m)}}).then(t));return y.jsx(ii,{isOpen:e,toggle:t,centered:!0,children:y.jsxs("form",{name:"domainRedirectsModal",onSubmit:x,children:[y.jsxs(po,{toggle:t,children:["Edit redirects for ",y.jsx("b",{children:n.domain})]}),y.jsxs(Aa,{children:[y.jsxs(bE,{value:l,onChange:f,children:[y.jsxs(Ry,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",y.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),y.jsxs(bE,{value:c,onChange:h,children:[y.jsxs(Ry,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",y.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),y.jsxs(bE,{value:m,isLast:!0,onChange:g,children:[y.jsx(Ry,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),y.jsxs(ms,{children:[y.jsx(yt,{color:"link",type:"button",onClick:t,children:"Cancel"}),y.jsx(yt,{color:"primary",children:"Save"})]})]})})},mAe=({domain:e,editDomainRedirects:t})=>{const[n,r]=wn(),i=Zl(),a=N_(),o=Ea("filterShortUrlsByDomain");return y.jsxs(q0,{children:[y.jsxs(Qe,{tag:tn,to:`${i}/domain/${e.domain}${e.isDefault?`_${Cd}`:""}/visits`,children:[y.jsx(Ke,{icon:Ej,fixedWidth:!0})," Visit stats"]}),y.jsxs(Qe,{disabled:!a||!a.canAddItemWithName(e.domain),onClick:()=>a==null?void 0:a.addItemToCompare({name:e.domain,query:e.domain}),children:[y.jsx(Ke,{icon:L0,fixedWidth:!0})," Compare visits"]}),o&&y.jsxs(Qe,{tag:tn,to:`${i}/list-short-urls/1?domain=${e.isDefault?Cd:e.domain}`,children:[y.jsx(Ke,{icon:Oj,fixedWidth:!0})," Short URLs"]}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsxs(Qe,{onClick:r,children:[y.jsx(Ke,{icon:Sj,fixedWidth:!0})," Edit redirects"]}),y.jsx(pAe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},vAe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:a})=>a==null?void 0:a.contains("visits-table"))||document.querySelector(".modal")||r()};return xue({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},gAe=(e,t)=>{const[n,r]=I.useState(t),i=I.useCallback(a=>{const{location:o,history:l}=window,f=j9(o.search);f[e]=a,l.pushState(null,"",`${o.pathname}?${z0(f)}`),r(a)},[e]);return[n,i]},P3=e=>{const t=Dd();return I.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},yAe=()=>{const e=ho();return I.useCallback(()=>e(-1),[e])},R3=(e,t)=>{const n=I.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=I.useState(n());return I.useEffect(()=>{const a=()=>i(n());return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[n]),r},bAe=(e,t,n)=>{I.useEffect(()=>{if(!n)return()=>{};const r=i=>i.key===e&&t();return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[n,t,e])},_Ae=({status:e,matchMedia:t=window.matchMedia})=>{const n=na(),r=R3(991,t);return e==="validating"?y.jsx(Ke,{fixedWidth:!0,icon:QU,spin:!0}):y.jsxs(y.Fragment,{children:[y.jsx("span",{ref:n,children:e==="valid"?y.jsx(Ke,{fixedWidth:!0,icon:Gp,className:"text-muted"}):y.jsx(Ke,{fixedWidth:!0,icon:LE,className:"text-danger"})}),y.jsx(Mi,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":y.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",y.jsx("br",{}),"Check the ",y.jsx(ni,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},_E=({fallback:e})=>y.jsxs("span",{className:"text-muted",children:[!e&&y.jsx("small",{children:"No redirect"}),e&&y.jsxs(y.Fragment,{children:[e," ",y.jsx("small",{children:"(as fallback)"})]})]}),xAe=()=>y.jsxs(y.Fragment,{children:[y.jsx(Ke,{fixedWidth:!0,icon:QX,className:"text-primary",id:"defaultDomainIcon"}),y.jsx(Mi,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),wAe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:a,redirects:o,status:l}=e;return I.useEffect(()=>{n(e.domain)},[n,e.domain]),y.jsxs("tr",{className:"responsive-table__row",children:[y.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:a&&y.jsx(xAe,{})}),y.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),y.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(o==null?void 0:o.baseUrlRedirect)??y.jsx(_E,{fallback:r==null?void 0:r.baseUrlRedirect})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(o==null?void 0:o.regular404Redirect)??y.jsx(_E,{fallback:r==null?void 0:r.regular404Redirect})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(o==null?void 0:o.invalidShortUrlRedirect)??y.jsx(_E,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),y.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:y.jsx(_Ae,{status:l})}),y.jsx("td",{className:"responsive-table__cell text-end",children:y.jsx(mAe,{domain:e,editDomainRedirects:t})})]})},b7=[{value:"Is default domain",isHidden:!0},{value:"Domain",isHidden:!1},{value:"Base path redirect",isHidden:!1},{value:"Regular 404 redirect",isHidden:!1},{value:"Invalid short URL redirect",isHidden:!1},{value:"Domain status",isHidden:!0},{value:"Options",isHidden:!0}],OAe=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{var i;const{filteredDomains:a,defaultRedirects:o,loading:l,error:f,errorData:c}=e,h=o??((i=a.find(({isDefault:g})=>g))==null?void 0:i.redirects),m=C3();return l?y.jsx(os,{loading:!0}):y.jsxs(T3,{value:m,children:[y.jsx(rv,{className:"mb-3",onChange:t}),y.jsx(A3,{type:"domains",className:"mb-3"}),f?y.jsx(zr,{type:"error",children:y.jsx(co,{errorData:c,fallbackMessage:"Error loading domains :("})}):y.jsx(Jt,{children:y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsx("thead",{className:"responsive-table__header",children:y.jsx("tr",{children:b7.map((g,x)=>y.jsx("th",{children:y.jsx("span",{className:g.isHidden?"sr-only":void 0,children:g.value})},x))})}),y.jsxs("tbody",{children:[a.length<1&&y.jsx("tr",{children:y.jsx("td",{colSpan:b7.length,className:"text-center",children:"No results found"})}),a.map(g=>y.jsx(wAe,{domain:g,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:h},g.domain))]})]})})]})},Zn=(e,t)=>G9(e,t,{serializeError:n=>n}),SAe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",EAe=e=>Zn(SAe,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),dy="shlink/domainsList",hy={domains:[],filteredDomains:[],loading:!1,error:!1},_7=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},x7=(e,t)=>n=>n.domain!==e?n:{...n,status:t},TAe=(e,t,n)=>{const r=Zn(`${dy}/listDomains`,async()=>{const{data:l,defaultRedirects:f}=await e().listDomains();return{domains:l.map(c=>({...c,status:"validating"})),defaultRedirects:f}}),i=Zn(`${dy}/checkDomainHealth`,async l=>{try{const{status:f}=await e().health({domain:l});return{domain:l,status:f==="pass"?"valid":"invalid"}}catch{return{domain:l,status:"invalid"}}}),a=qr(`${dy}/filterDomains`),{reducer:o}=In({name:dy,initialState:hy,reducers:{},extraReducers:l=>{l.addCase(r.pending,()=>({...hy,loading:!0})),l.addCase(r.rejected,(f,{error:c})=>({...hy,error:!0,errorData:Ni(c)})),l.addCase(r.fulfilled,(f,{payload:c})=>({...hy,...c,filteredDomains:c.domains})),l.addCase(i.fulfilled,({domains:f,filteredDomains:c,...h},{payload:m})=>({...h,domains:f.map(x7(m.domain,m.status)),filteredDomains:c.map(x7(m.domain,m.status))})),l.addCase(a,(f,{payload:c})=>({...f,filteredDomains:f.domains.filter(({domain:h})=>h.toLowerCase().match(c.toLowerCase()))})),l.addCase(t.fulfilled,(f,{payload:c})=>({...f,domains:f.domains.map(_7(c)),filteredDomains:f.filteredDomains.map(_7(c))})),l.addCase(n.fulfilled,(f,{payload:c})=>{c.domain===null||f.domains.some(h=>h.domain===c.domain)||f.domains.push({domain:c.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:o,listDomains:r,checkDomainHealth:i,filterDomains:a}},CAe=(e,t)=>{e.serviceFactory("ManageDomains",()=>OAe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",TAe,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",EAe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},w7="shlink/mercure",AAe={loading:!0,error:!1},jAe=e=>{const t=Zn(`${w7}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=In({name:w7,initialState:AAe,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:a})=>({...a,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},PAe=e=>{e.serviceFactory("mercureInfoReducerCreator",jAe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function On(e){return I.useMemo(()=>e,[e])}function Sn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const RAe=(e,t,n,r)=>{const{mercureHubUrl:i,token:a,loading:o,error:l}=e;if(o||l||!i)return;const f=({data:m})=>n(JSON.parse(m)),c=({status:m})=>m===401&&r(),h=t.map(m=>{const g=new URL(i);g.searchParams.append("topic",m);const x=new Sue.EventSourcePolyfill(g,{headers:{Authorization:`Bearer ${a}`}});return x.onmessage=f,x.onerror=c,x});return()=>h.forEach(m=>m.close())};function Ma(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:a,mercureInfo:o}=r,l=Md();return I.useEffect(()=>{const{interval:f}=o,c=x=>f?n.add(x):i([x]),h=t(l),m=RAe(o,h,c,a);if(!f)return m;const g=setInterval(()=>{i([...n]),n.clear()},f*1e3*60);return()=>{clearInterval(g),m==null||m()}},[i,a,o,l]),y.jsx(e,{...r})}}class Hr{}Pl(Hr,"visits","https://shlink.io/new-visit"),Pl(Hr,"orphanVisits","https://shlink.io/new-orphan-visit"),Pl(Hr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const Yd=qr("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),qp=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,MAe=(e,t)=>!e.domain&&t===Cd?!0:e.domain===t,NAe=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},sH=e=>e.replaceAll("/","__"),M3=e=>e.replaceAll("__","/"),N3=({domain:e,shortCode:t})=>`${e??Cd}__${sH(t)}`,lH=e=>{const[t,n]=e.split(/__(.+)/);if(!n)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===Cd?null:t,shortCode:M3(n)}},L3="shlink/shortUrlDeletion",O7={shortCode:"",loading:!1,deleted:!1,error:!1},LAe=e=>Zn(`${L3}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl({shortCode:t,domain:n}),{shortCode:t,domain:n})),uH=qr(`${L3}/shortUrlDeleted`),DAe=e=>{const{actions:t,reducer:n}=In({name:L3,initialState:O7,reducers:{resetDeleteShortUrl:()=>O7},extraReducers:i=>{i.addCase(e.pending,a=>({...a,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(a,{error:o})=>({...a,errorData:Ni(o),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(a,{payload:o})=>({...a,shortCode:o.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},cH="shlink/shortUrlsList",fH=5,kAe={loading:!0,error:!1},IAe=e=>Zn(`${cH}/listShortUrls`,t=>e().listShortUrls(t??{})),$Ae=(e,t,n)=>In({name:cH,initialState:kAe,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:a})=>({loading:!1,error:!1,shortUrls:a})),r.addCase(n.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=[a,...i.shortUrls.data.slice(0,fH-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(o=>{const{shortCode:l,domain:f}=a;return qp(o,l,f)?a:o}))}),r.addCase(uH,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(o=>!qp(o,a.shortCode,a.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Yd,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(o=>{var l;return((l=a.createdVisits.findLast(({shortUrl:f})=>f&&qp(o,f.shortCode,f.domain)))==null?void 0:l.shortUrl)??o}))})}}),UAe=new Intl.NumberFormat("en-US"),Mn=e=>UAe.format(Number(e)),S7=10,BAe=e=>Math.ceil(e/S7)*S7,ej=({children:e,title:t,link:n,tooltip:r})=>{const i=na();return y.jsxs(y.Fragment,{children:[y.jsxs(Ri,{innerRef:i,className:"highlight-card",body:!0,tag:tn,to:n,children:[y.jsx(Ke,{size:"3x",className:"highlight-card__link-icon",icon:$ue}),y.jsx(v9,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),y.jsx(m9,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&y.jsx(Mi,{target:i,placement:"bottom",children:r})]})},E7=({loading:e,excludeBots:t,visitsSummary:n,...r})=>y.jsx(ej,{tooltip:n.bots!==void 0?y.jsxs(y.Fragment,{children:[t?"Plus":"Including"," ",y.jsx("strong",{children:Mn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Mn(t&&n.nonBots!==void 0?n.nonBots:n.total)}),T7=({children:e,titleLinkText:t,titleLink:n,title:r})=>y.jsxs(Ri,{children:[y.jsxs(ev,{className:"d-flex justify-content-between align-items-center",children:[y.jsx("span",{className:"d-sm-none",children:r}),y.jsx("h5",{className:"d-none d-sm-inline m-0",children:r}),y.jsxs(tn,{to:n,children:[t," »"]})]}),y.jsx(Jm,{children:e})]}),dH=Ma(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:a,CreateShortUrl:o}=On(dH),{loading:l,shortUrls:f}=e,{loading:c}=n,{loading:h,nonOrphanVisits:m,orphanVisits:g}=i,x=Zl(),_=ho(),w=Wr("visits");return I.useEffect(()=>{t({itemsPerPage:fH,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),y.jsxs(y.Fragment,{children:[y.jsxs(Qa,{children:[y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(E7,{title:"Visits",link:`${x}/non-orphan-visits`,excludeBots:(w==null?void 0:w.excludeBots)??!1,loading:h,visitsSummary:m})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(E7,{title:"Orphan visits",link:`${x}/orphan-visits`,excludeBots:(w==null?void 0:w.excludeBots)??!1,loading:h,visitsSummary:g})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(ej,{title:"Short URLs",link:`${x}/list-short-urls/1`,children:l?"Loading...":Mn((f==null?void 0:f.pagination.totalItems)??0)})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(ej,{title:"Tags",link:`${x}/manage-tags`,children:c?"Loading...":Mn(n.tags.length)})})]}),y.jsxs("div",{className:"d-flex flex-column gap-3",children:[y.jsx(T7,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${x}/create-short-url`,children:y.jsx(o,{basicMode:!0})}),y.jsx(T7,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${x}/list-short-urls/1`,children:y.jsx(a,{shortUrlsList:e,className:"mb-0",onTagClick:O=>_(`${x}/list-short-urls/1?tags=${encodeURIComponent(O)}`)})})]})]})},()=>[Hr.visits,Hr.orphanVisits]),FAe=Sn(dH,["ShortUrlsTable","CreateShortUrl"]);function zAe(e,t){e.factory("Overview",FAe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const hH="shlink/setShortUrlRedirectRules",C7={saving:!1,saved:!1,error:!1},qAe=e=>Zn(`${hH}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules({shortCode:r,domain:i},n)}),VAe=e=>{const{reducer:t,actions:n}=In({name:hH,initialState:C7,reducers:{resetSetRules:()=>C7},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:o})=>({saving:!1,saved:!1,error:!0,errorData:Ni(o)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},pH="shlink/getShortUrlRedirectRules",HAe={loading:!0,error:!1},WAe=e=>Zn(`${pH}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules({shortCode:t,domain:n})),GAe=e=>In({name:pH,initialState:HAe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({loading:!1,error:!1,...r}))}});function _r(e){e.preventDefault()}function Xl(e){e.stopPropagation()}function mH(){const e=new Map;return[function(t,n){e.get(t)&&e.get(t).forEach(r=>{r(n)})},function(t,n){const r=e.get(t)??[];r.push(n),e.set(t,r)}]}var[vH,gH]=mH();function YAe(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function Ff(e,t,n=!0,r=["__key"]){if(e===t)return!0;if(typeof t=="object"&&typeof e=="object"&&e!==null&&t!==null){if(e instanceof Map||e instanceof Set)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return YAe(e,t);if(e===null||t===null)return!1;const i=e,a=t;if(Object.keys(i).length!==Object.keys(a).length)return!1;for(const o of r)if((o in i||o in a)&&i[o]!==a[o])return!1;for(const o in i)if(!(o in a)||i[o]!==a[o]&&!n||n&&!Ff(i[o],a[o],n,r))return!1;return!0}return!1}function yH(e){return e.split(" ").filter(t=>t)}function Kd(e){return{x:e.clientX,y:e.clientY}}Array();var D3=typeof window<"u",Ar=new WeakMap,fo=new WeakMap;function A7(){return D3?"ontouchstart"in window||navigator.maxTouchPoints>0:!1}var KAe={activeDescendant:void 0,affectedNodes:[],coordinates:{x:0,y:0},currentTargetValue:void 0,on:gH,emit:vH,newActiveDescendant:void 0,originalZIndex:void 0,pointerSelection:!1,preventEnter:!1,rootUserSelect:void 0,nodePointerdown:void 0,longPress:!1,scrolling:!1,longPressTimeout:void 0,remapJustFinished:!1,selectedNodes:[],selectedParent:void 0,preventSynthDrag:!1,pointerDown:void 0},He=KAe,$l=!1,j7,P7,xE,Ad=!1,zm=!1;function ZAe(){He={activeDescendant:void 0,affectedNodes:[],coordinates:{x:0,y:0},on:gH,emit:vH,currentTargetValue:void 0,originalZIndex:void 0,pointerId:void 0,preventEnter:!1,remapJustFinished:!1,selectedNodes:[],nodePointerdown:void 0,rootUserSelect:void 0,preventSynthDrag:!1,scrolling:!1,selectedParent:void 0,pointerSelection:!1,synthScrollDirection:void 0,draggedNodeDisplay:void 0,synthDragScrolling:!1,longPress:!1,pointerDown:void 0,longPressTimeout:void 0}}function bH(e){return Object.assign(He,e),e.initialParent.data.emit("dragStarted",He),$l=!1,He.emit("dragStarted",He),He}function XAe(e){He.activeState&&ds(He.activeState.parent,void 0,He),He.selectedState&&Rl(He.selectedState.nodes,He.selectedState.parent,He),He.selectedState=He.activeState=void 0,e.pointerType==="mouse"?zm=!0:(e.pointerType==="touch"||e.pointerType==="pen")&&(zm=!1)}function QAe(e){if(_r(e),He.pointerDown&&(He.pointerDown.node.el.draggable=!0),He.pointerDown=void 0,!ao(He))return;const t=He.currentParent.data.config;ao(He)&&t.handleEnd(He)}function JAe(e){e.key==="Escape"&&(He.selectedState&&Rl(He.selectedState.nodes,He.selectedState.parent,He),He.activeState&&ds(He.activeState.parent,void 0,He),He.selectedState=He.activeState=void 0)}function eje(e){if(!io(He))return;$l=!0;const t=He.initialParent.data.config.handleEnd;t(He)}function tje(e){io(He)&&_r(e)}function nje(e){if(!He.pointerDown||!He.pointerDown.validated)return;const t=He.pointerDown.parent.data.config;if(!(zm||e.pointerType==="mouse"))if(!ao(He)&&(Ad||!Ad&&!t.nativeDrag)){if(_r(e),t.longPress&&!He.longPress){clearTimeout(He.longPressTimeout),He.longPress=!1;return}const n=t.draggedNodes(He.pointerDown);t.dragstartClasses(He.pointerDown.node,n,t,!0);const r=Mje(He.pointerDown.node,He.pointerDown.parent,e,He,n);He.rootUserSelect=window.getComputedStyle(document.documentElement).userSelect,document.body.style.userSelect="none",R7(e,r)}else ao(He)&&R7(e,He)}function rje({parent:e,getValues:t,setValues:n,config:r={}}){var i,a,o;if(!D3)return;if(Ad=A7(),!j7){j7=qm(document,{dragover:tje,pointerdown:XAe,pointerup:QAe,keydown:JAe,drop:eje,pointermove:nje,pointercancel:xi(r.handlePointercancel),touchmove:m=>{io(He)&&m.cancelable&&_r(m)}});const h=document.createElement("div");OH(h,{"aria-live":"polite","aria-atomic":"true","data-dnd-live-region":"true"}),Object.assign(h.style,{position:"absolute",top:"0px",left:"-9999px",width:"1px",height:"1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(h)}P7||(P7=qm(window,{resize:()=>{Ad=A7()}})),wH(e);const[l,f]=mH(),c={getValues:t,setValues:n,config:{dragDropEffect:r.dragDropEffect??"move",dragEffectAllowed:r.dragEffectAllowed??"move",draggedNodes:vje,dragstartClasses:_je,handleNodeKeydown:wje,handleParentKeydown:Oje,handleDragstart:yje,handleNodeDragover:Dje,handleParentDragover:kje,handleNodeDrop:Eje,handleNodeFocus:Tje,handleNodeBlur:Cje,handlePointercancel:jje,handleEnd:Pje,handleDragend:Aje,handleParentFocus:aje,handleNodePointerup:Rje,handleNodePointerover:Sje,handleParentPointerover:Ije,handleParentScroll:gje,handleNodePointerdown:bje,handleNodeDragenter:$je,handleNodeDragleave:Uje,handleParentDrop:sje,multiDrag:r.multiDrag??!1,nativeDrag:r.nativeDrag??!0,performSort:ije,performTransfer:oje,root:r.root??document,setupNode:uje,setupNodeRemap:SH,reapplyDragClasses:cje,tearDownNode:dje,tearDownNodeRemap:fje,remapFinished:pje,threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{},privateClasses:[],on:f,emit:l};new MutationObserver(hje).observe(e,{childList:!0}),Ar.set(e,c),(i=r.plugins)==null||i.forEach(h=>{var m,g;(g=(m=h(e))==null?void 0:m.tearDown)==null||g.call(m)}),(a=r.plugins)==null||a.forEach(h=>{var m,g;(g=(m=h(e))==null?void 0:m.tearDown)==null||g.call(m)}),(o=r.plugins)==null||o.forEach(h=>{var m,g;(g=(m=h(e))==null?void 0:m.setup)==null||g.call(m)}),lje(e,c),L_(e,!0)}function _H(e,t,n,r,i,a){const{x:o,y:l}=Kd(n),f=e.el.getBoundingClientRect();return{affectedNodes:[],ascendingDirection:!1,clonedDraggedEls:[],coordinates:{x:o,y:l},draggedNode:{el:e.el,data:e.data},draggedNodes:r,incomingDirection:void 0,initialIndex:e.data.index,initialParent:{el:t.el,data:t.data},currentParent:{el:t.el,data:t.data},longPress:t.data.config.longPress??!1,longPressTimeout:void 0,currentTargetValue:e.data.value,scrollEls:[],startLeft:i||o-f.left,startTop:a||l-f.top,targetIndex:e.data.index,transferred:!1}}function ije({parent:e,draggedNodes:t,targetNodes:n}){L_(e.el);const r=t.map(f=>f.data.value),i=jd(e.el,e.data),a=t[0].data.index,o=[...e.data.enabledNodes],l=[...i.filter(f=>!r.some(c=>Ff(f,c)))];l.splice(n[0].data.index,0,...r),"draggedNode"in He&&(He.currentTargetValue=n[0].data.value),tj(e.el,e.data,[...l]),e.data.config.onSort&&e.data.config.onSort({parent:{el:e.el,data:e.data},previousValues:[...i],previousNodes:[...o],nodes:[...e.data.enabledNodes],values:[...l],draggedNodes:t,previousPosition:a,position:n[0].data.index,targetNodes:n,state:He})}function ds(e,t,n){var r;const i=e.data.config.activeDescendantClass;if(n.activeState&&(wa([n.activeState.node.el],i),n.activeState.parent.el!==e.el&&n.activeState.parent.el.setAttribute("aria-activedescendant","")),!t){(r=n.activeState)==null||r.parent.el.setAttribute("aria-activedescendant",""),n.activeState=void 0;return}n.activeState={node:t,parent:e},Qu([t.el],i),n.activeState.parent.el.setAttribute("aria-activedescendant",n.activeState.node.el.id)}function Rl(e,t,n){const r=t.data.config.selectedClass;if(!n.selectedState)return;const i=Array.from(e);wa(e.map(a=>a.el),r);for(const a of i){a.el.setAttribute("aria-selected","false");const o=n.selectedState.nodes.findIndex(l=>l.el===a.el);o!==-1&&n.selectedState.nodes.splice(o,1)}xH(t)}function Wu(e,t,n,r,i=!1){r.pointerSelection=i;for(const o of t)o.el.setAttribute("aria-selected","true"),Qu([o.el],e.data.config.selectedClass,!0);r.selectedState={nodes:t,parent:e};const a=t.map(o=>o.el.getAttribute("aria-label"));if(a.length===0){r.selectedState=void 0,xH(e);return}ds(e,n,r),My(e,`${a.join(", ")} ready for dragging. Use arrow keys to navigate. Press enter to drop ${a.join(", ")}.`)}function My(e,t){const n=document.querySelector('[data-dnd-live-region="true"]');n&&(n.id=e.el.id+"-live-region",n.textContent=t)}function xH(e){const t=document.getElementById(e.el.id+"-live-region");t&&(t.textContent="")}function aje(e,t){const n=e.targetData.parent.data.enabledNodes[0];n&&(t.selectedState&&t.selectedState.parent.el!==e.targetData.parent.el?ds(e.targetData.parent,n,t):t.selectedState||ds(e.targetData.parent,n,t))}function oje({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,initialIndex:i,targetNodes:a,state:o}){L_(n.el);const l=r.map(g=>g.data.value),f=[...jd(e.el,e.data).filter(g=>!l.some(x=>Ff(g,x)))],c=jd(t.el,t.data),h=n.el===t.el&&t.data.config.sortable===!1;let m;a.length?(h?m=i:t.data.config.sortable===!1?m=t.data.enabledNodes.length:m=a[0].data.index,c.splice(m,0,...l)):(m=h?i:t.data.enabledNodes.length,c.splice(m,0,...l)),tj(e.el,e.data,f),tj(t.el,t.data,c),t.data.config.onTransfer&&t.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:m,state:o,targetNodes:a}),e.data.config.onTransfer&&e.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:m,state:o,targetNodes:a||[]})}function jd(e,t){return[...t.getValues(e)]}function tj(e,t,n){t.setValues(n,e)}function sje(e,t){Xl(e.e),$l=!0;const n=t.initialParent.data.config.handleEnd;n(t)}function wH(e){const t=Ar.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function io(e){return"draggedNode"in e&&!!e.draggedNode}function ao(e){return"synthDragging"in e&&!!e.synthDragging}function lje(e,t){t.abortControllers.mainParent=qm(e,{keydown:hp(t.config.handleParentKeydown),dragover:hp(t.config.handleParentDragover),handleParentPointerover:t.config.handleParentPointerover,scroll:hp(t.config.handleParentScroll),drop:hp(t.config.handleParentDrop),hasNestedParent:n=>{const r=Ar.get(n.target);r&&(r.nestedParent=n.detail.parent)},focus:hp(t.config.handleParentFocus)}),t.config.externalDragHandle&&t.config.externalDragHandle.el&&t.config.externalDragHandle.callback&&(t.abortControllers.externalDragHandle=qm(t.config.externalDragHandle.el,{pointerdown:n=>{if(!t.config.externalDragHandle||!t.config.externalDragHandle.callback)return;const r=t.config.externalDragHandle.callback();if(!k_(r)){console.warn("No draggable item found from external drag handle callback");return}const i=fo.get(r);if(!i)return;const a=r.parentNode;if(!(a instanceof HTMLElement))return;const o=Ar.get(a);o&&(He.pointerDown={parent:{el:a,data:o},node:{el:r,data:i},validated:!0},r.draggable=!0)}})),e.id&&OH(e,{role:"listbox",tabindex:"0","aria-multiselectable":t.config.multiDrag?"true":"false","aria-activedescendant":"","aria-describedby":e.id+"-live-region"})}function OH(e,t){for(const n in t)e.setAttribute(n,t[n])}function uje(e){var t;const n=e.parent.data.config;e.node.data.abortControllers.mainNode=qm(e.node.el,{keydown:xi(n.handleNodeKeydown),dragstart:xi(n.handleDragstart),dragover:xi(n.handleNodeDragover),dragenter:xi(n.handleNodeDragenter),dragleave:xi(n.handleNodeDragleave),dragend:xi(n.handleDragend),drop:xi(n.handleNodeDrop),focus:xi(n.handleNodeFocus),blur:xi(n.handleNodeBlur),pointerup:xi(n.handleNodePointerup),pointercancel:xi(n.handlePointercancel),pointerdown:xi(n.handleNodePointerdown),handleNodePointerover:n.handleNodePointerover,touchmove:r=>{io(He)&&r.cancelable&&_r(r)},contextmenu:r=>{Ad&&_r(r)}}),e.node.el.setAttribute("role","option"),e.node.el.setAttribute("aria-selected","false"),e.node.el.draggable=!0,n.reapplyDragClasses(e.node.el,e.parent.data),(t=e.parent.data.config.plugins)==null||t.forEach(r=>{var i,a;(a=(i=r(e.parent.el))==null?void 0:i.setupNode)==null||a.call(i,e)})}function SH(e){var t;fo.set(e.node.el,e.node.data),(t=e.parent.data.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent.el))==null?void 0:r.setupNodeRemap)==null||i.call(r,e)})}function cje(e,t){if(!io(He))return;const n=ao(He)?t.config.synthDropZoneClass:t.config.dropZoneClass;He.draggedNode.el===e&&Qu([e],n,!0)}function fje(e){var t;(t=e.parent.data.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent.el))==null?void 0:r.tearDownNodeRemap)==null||i.call(r,e)})}function dje(e){var t,n,r,i,a;(t=e.parent.data.config.plugins)==null||t.forEach(o=>{var l,f;(f=(l=o(e.parent.el))==null?void 0:l.tearDownNode)==null||f.call(l,e)}),e.node.el.draggable=!1,(r=(n=e.node.data)==null?void 0:n.abortControllers)!=null&&r.mainNode&&((a=(i=e.node.data)==null?void 0:i.abortControllers)==null||a.mainNode.abort())}function hje(e){if(e.length===1&&e[0].addedNodes.length===1&&!(e[0].addedNodes[0]instanceof HTMLElement))return;const t=e[0].target;if(!(t instanceof HTMLElement))return;const n=document.querySelectorAll('[aria-selected="true"]'),r=Ar.get(t);if(r){for(let i=0;i<n.length;i++){const a=n[i];a.setAttribute("aria-selected","false"),wa([a],r.config.selectedClass)}L_(t)}}function L_(e,t){var n;const r=Ar.get(e);if(!r)return;r.privateClasses=Array.from(e.classList);const i=[],a=r.config;for(let f=0;f<e.children.length;f++){const c=e.children[f];if(!k_(c)||c.id==="dnd-dragged-node-clone")continue;const h=fo.get(c);(t||!h)&&a.tearDownNode({parent:{el:e,data:r},node:{el:c,data:h}}),!a.disabled&&(!a.draggable||a.draggable&&a.draggable(c))&&i.push(c)}if(i.length!==r.getValues(e).length&&!a.disabled){console.warn("The number of draggable items defined in the parent element does not match the number of values. This may cause unexpected behavior.");return}const o=r.getValues(e),l=[];for(let f=0;f<i.length;f++){const c=i[f],h=fo.get(c);if(a.draggableValue&&!a.draggableValue(o[f]))continue;const m=Object.assign(h??{privateClasses:[],abortControllers:{}},{value:o[f],index:f});if(!io(He)&&He.newActiveDescendant&&Ff(He.newActiveDescendant.data.value,m.value)&&ds({data:r,el:e},{el:c,data:m},He),!io(He)&&He.activeState&&Ff(He.activeState.node.data.value,m.value)&&ds({data:r,el:e},{el:c,data:m},He),io(He)&&Ff(He.draggedNode.data.value,m.value)){He.draggedNode.data=m,He.draggedNode.el=c;const g=He.draggedNodes.find(x=>x.data.value===m.value);g&&(g.el=c)}l.push({el:c,data:m}),(t||!h)&&a.setupNode({parent:{el:e,data:r},node:{el:c,data:m}}),SH({parent:{el:e,data:r},node:{el:c,data:m}})}Ar.set(e,{...r,enabledNodes:l}),a.remapFinished(r),(n=r.config.plugins)==null||n.forEach(f=>{var c,h;(h=(c=f(e))==null?void 0:c.remapFinished)==null||h.call(c)})}function pje(){He.remapJustFinished=!0,"draggedNode"in He&&(He.affectedNodes=[])}function mje(e){return!!e.targetData.parent.data.config.nativeDrag}function vje(e){var t;if(e.parent.data.config.multiDrag){if(He.selectedState)return[e.node,...(t=He.selectedState)==null?void 0:t.nodes.filter(n=>n.el!==e.node.el)]}else return[e.node];return[]}function gje(e){io(He)&&(He.emit("scrollStarted",He),!ao(He)&&(He.preventEnter=!0,xE&&clearTimeout(xE),xE=setTimeout(()=>{He.preventEnter=!1,He.emit("scrollEnded",He)},100)))}function yje(e,t){const n=e.targetData.parent.data.config;if(!n.nativeDrag||!mje(e)||!EH({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:n})){_r(e.e);return}const r=n.draggedNodes({parent:e.targetData.parent,node:e.targetData.node});n.dragstartClasses(e.targetData.node,r,n);const i=xje(e,r);n.onDragstart&&n.onDragstart({parent:e.targetData.parent,values:jd(e.targetData.parent.el,e.targetData.parent.data),draggedNode:i.draggedNode,draggedNodes:i.draggedNodes,position:i.initialIndex,state:i})}function bje(e,t){var n,r;if(Xl(e.e),t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!1},e.e.pointerType==="mouse"?zm=!0:(e.e.pointerType==="touch"||e.e.pointerType==="pen")&&(zm=!1),!EH({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:e.targetData.parent.data.config}))return;t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!0},Nje(e,t,e.targetData.node);const i=e.targetData.parent.data;let a=[e.targetData.node];const o=e.e.ctrlKey||e.e.metaKey,l=e.e.shiftKey,f=e.targetData.node;if(o&&i.config.multiDrag){t.selectedState?t.selectedState.nodes.findIndex(c=>c.el===f.el)===-1?a=[...t.selectedState.nodes,f]:a=t.selectedState.nodes.filter(c=>c.el!==f.el):a=[f],Wu(e.targetData.parent,a,e.targetData.node,t,!0);return}if(l&&i.config.multiDrag){const c=e.targetData.parent.data.enabledNodes;if(t.selectedState&&t.activeState)if(t.selectedState.parent.el!==e.targetData.parent.el){Rl(t.selectedState.nodes,t.selectedState.parent,t),t.selectedState=void 0;for(let h=0;h<=f.data.index;h++)a.push(c[h])}else{const[h,m]=t.activeState.node.data.index<e.targetData.node.data.index?[t.activeState.node.data.index,e.targetData.node.data.index]:[e.targetData.node.data.index,t.activeState.node.data.index];a=c.slice(h,m+1)}else for(let h=0;h<=f.data.index;h++)a.push(c[h]);Wu(e.targetData.parent,a,e.targetData.node,t,!0);return}(r=(n=t.selectedState)==null?void 0:n.nodes)!=null&&r.length?t.selectedState.nodes.findIndex(c=>c.el===e.targetData.node.el)===-1&&(t.selectedState.parent.el!==e.targetData.parent.el?Rl(t.selectedState.nodes,e.targetData.parent,t):i.config.multiDrag&&Ad?a.push(...t.selectedState.nodes):Rl(t.selectedState.nodes,e.targetData.parent,t),Wu(e.targetData.parent,a,e.targetData.node,t,!0)):Wu(e.targetData.parent,[e.targetData.node],e.targetData.node,t,!0)}function _je(e,t,n,r=!1){Qu(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),setTimeout(()=>{wa(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),Qu(t.map(i=>i.el),r?n.synthDragPlaceholderClass:n.dragPlaceholderClass),Qu(t.map(i=>i.el),r?n.synthDropZoneClass:n.dropZoneClass),wa(t.map(i=>i.el),n.activeDescendantClass),wa(t.map(i=>i.el),n.selectedClass)})}function xje(e,t){Xl(e.e);const n=bH(_H(e.targetData.node,e.targetData.parent,e.e,t));if(e.e.dataTransfer){const r=e.targetData.parent.data.config;e.e.dataTransfer.dropEffect=r.dragDropEffect,e.e.dataTransfer.effectAllowed=r.dragEffectAllowed;let i;if(r.dragImage)i=r.dragImage(e,t);else{if(r.multiDrag){const a=document.createElement("div");for(const l of t){const f=l.el.cloneNode(!0);f.style.pointerEvents="none",f.id=l.el.id+"-clone",a.append(f)}const{width:o}=t[0].el.getBoundingClientRect();Object.assign(a.style,{display:"flex",flexDirection:"column",width:`${o}px`,position:"absolute",pointerEvents:"none",zIndex:"9999",left:"-9999px"}),i=a}else{e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY);const a=e.targetData.node.el.style.zIndex;return n.originalZIndex=a,e.targetData.node.el.style.zIndex="9999",n}document.body.appendChild(i)}e.e.dataTransfer.setDragImage(i,e.e.offsetX,e.e.offsetY),setTimeout(()=>{i==null||i.remove()})}return n}function EH({x:e,y:t,node:n,config:r}){if(r.externalDragHandle)return!1;if(!r.dragHandle)return!0;const i=n.el.querySelectorAll(r.dragHandle);if(!i)return!1;const a=r.root.elementFromPoint(e,t);if(!a)return!1;for(const o of Array.from(i))if(a===o||o.contains(a))return!0;return!1}function wje(e){}function Oje(e,t){var n;const r=(n=t.activeState)==null?void 0:n.node;if(!r)return;const i=e.targetData.parent.data,a=i.enabledNodes;if(!(e.e.target instanceof HTMLElement))return;const o=a.findIndex(l=>l.el===r.el);if(o!==-1){if(["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(e.e.key)){e.e.target===e.targetData.parent.el&&_r(e.e);const l=e.e.key==="ArrowDown"||e.e.key==="ArrowRight"?o+1:o-1;if(l<0||l>=a.length)return;const f=a[l];ds(e.targetData.parent,f,t)}else if(e.e.key===" ")e.e.target===e.targetData.parent.el&&_r(e.e),t.selectedState&&t.selectedState.nodes.includes(r)?Wu(e.targetData.parent,t.selectedState.nodes.filter(l=>l.el!==r.el),r,t):Wu(e.targetData.parent,[r],r,t);else if(e.e.key==="Enter"&&t.selectedState)if(t.selectedState.parent.el===e.targetData.parent.el&&t.activeState){if(t.selectedState.nodes[0].el===t.activeState.node.el){My(e.targetData.parent,"Cannot drop item on itself");return}t.newActiveDescendant=t.selectedState.nodes[0],i.config.performSort({parent:e.targetData.parent,draggedNodes:t.selectedState.nodes,targetNodes:[t.activeState.node]}),Rl([],e.targetData.parent,t),My(e.targetData.parent,"Drop successful")}else t.activeState&&t.selectedState.parent.el!==e.targetData.parent.el&&CH({currentParent:e.targetData.parent,targetParent:t.selectedState.parent,initialParent:t.selectedState.parent,draggedNodes:t.selectedState.nodes,state:t})&&(i.config.performTransfer({currentParent:t.selectedState.parent,targetParent:e.targetData.parent,initialParent:t.selectedState.parent,draggedNodes:t.selectedState.nodes,initialIndex:t.selectedState.nodes[0].data.index,state:t,targetNodes:[t.activeState.node]}),t.newActiveDescendant=t.selectedState.nodes[0],Wu(e.targetData.parent,[],void 0,t),My(e.targetData.parent,"Drop successful"))}}function Sje(e){e.detail.targetData.parent.el===e.detail.state.currentParent.el?AH(e.detail,e.detail.state):D_(e.detail,e.detail.state)}function Eje(e,t){const n=e.targetData.parent.data.config;n.nativeDrag&&(Xl(e.e),$l=!0,n.handleEnd(t))}function Tje(e){e.e.target!==e.e.currentTarget&&He.pointerDown&&(He.pointerDown.node.el.draggable=!1)}function Cje(e){e.e.target!==e.e.currentTarget&&He.pointerDown&&(He.pointerDown.node.el.draggable=!0)}function Aje(e,t){const n=e.targetData.parent.data.config;if(n.nativeDrag){if(_r(e.e),Xl(e.e),$l){$l=!1;return}n.handleEnd(t)}}function jje(e,t){var n;if(!ao(t))return;if(_r(e.e),$l){$l=!1;return}const r=(n=Ar.get(t.initialParent.el))==null?void 0:n.config;r!=null&&r.onDragend&&r.onDragend({parent:t.currentParent,values:jd(t.currentParent.el,t.currentParent.data),draggedNode:t.draggedNode,draggedNodes:t.draggedNodes,state:t}),r==null||r.handleEnd(t)}function Pje(e){var t,n,r,i,a,o;e.draggedNode&&(e.draggedNode.el.draggable=!0),document.body.style.userSelect=e.rootUserSelect||"",ao(e)&&(document.documentElement.style.overscrollBehavior=e.rootOverScrollBehavior||"",document.documentElement.style.touchAction=e.rootTouchAction||""),ao(e)&&TH(e),"longPressTimeout"in e&&e.longPressTimeout&&clearTimeout(e.longPressTimeout);const l=(t=Ar.get(e.initialParent.el))==null?void 0:t.config,f=ao(e),c=f?l==null?void 0:l.synthDropZoneClass:l==null?void 0:l.dropZoneClass;e.originalZIndex!==void 0&&(e.draggedNode.el.style.zIndex=e.originalZIndex),wa(e.draggedNodes.map(h=>h.el),c),wa(e.draggedNodes.map(h=>h.el),(r=(n=e.initialParent.data)==null?void 0:n.config)==null?void 0:r.longPressClass),wa(e.draggedNodes.map(h=>h.el),f?e.initialParent.data.config.synthDragPlaceholderClass:(a=(i=e.initialParent.data)==null?void 0:i.config)==null?void 0:a.dragPlaceholderClass),f&&e.clonedDraggedNode.remove(),Rl(e.draggedNodes,e.currentParent,e),ds(e.currentParent,void 0,e),ZAe(),e.selectedState=void 0,(o=l==null?void 0:l.onDragend)==null||o.call(l,{parent:e.currentParent,values:jd(e.currentParent.el,e.currentParent.data),draggedNode:e.draggedNode,draggedNodes:e.draggedNodes,state:e}),e.emit("dragEnded",e)}function Rje(e,t){Xl(e.e),!t.pointerSelection&&t.selectedState&&Rl(t.selectedState.nodes,e.targetData.parent,t);const n=e.targetData.parent.data.config;t.pointerSelection=!1,"longPressTimeout"in t&&t.longPressTimeout&&clearTimeout(t.longPressTimeout),wa(e.targetData.parent.data.enabledNodes.map(r=>r.el),n.longPressClass),io(t)&&n.handleEnd(t)}function Mje(e,t,n,r,i){var a,o;const l=t.data.config;let f,c=e.el.style.display,h;if(l.synthDragImage)h=l.synthDragImage(e,t,n,i),f=h.dragImage,f.setAttribute("popover","manual"),f.id="dnd-dragged-node-clone",c=f.style.display,Object.assign(f.style,{position:"absolute",zIndex:9999,pointerEvents:"none",margin:0,willChange:"transform",overflow:"hidden",display:"none"});else if(!l.multiDrag||i.length===1)f=e.el.cloneNode(!0),f.id="dnd-dragged-node-clone",c=f.style.display,f.setAttribute("popover","manual"),Object.assign(f.style,{position:"absolute",height:e.el.getBoundingClientRect().height+"px",width:e.el.getBoundingClientRect().width+"px",overflow:"hidden",margin:0,willChange:"transform",pointerEvents:"none",zIndex:9999});else{const x=document.createElement("div");x.setAttribute("popover","manual");for(const _ of i){const w=_.el.cloneNode(!0);w.style.pointerEvents="none",w.style.margin="0",x.append(w)}c=x.style.display,x.id="dnd-dragged-node-clone",f=x,Object.assign(f.style,{display:"flex",flexDirection:"column",position:"absolute",overflow:"hidden",margin:0,padding:0,pointerEvents:"none",zIndex:9999})}f.style.position="absolute",t.el.appendChild(f),f.showPopover();const m={clonedDraggedEls:[],clonedDraggedNode:f,draggedNodeDisplay:c,synthDragScrolling:!1,synthDragging:!0,rootScrollWidth:(a=document.scrollingElement)==null?void 0:a.scrollWidth,rootScrollHeight:(o=document.scrollingElement)==null?void 0:o.scrollHeight,rootOverScrollBehavior:document.documentElement.style.overscrollBehavior,rootTouchAction:document.documentElement.style.touchAction};document.documentElement.style.overscrollBehavior="none",document.documentElement.style.touchAction="none";const g=bH({..._H(e,t,n,i,h==null?void 0:h.offsetX,h==null?void 0:h.offsetY),...m});return g.clonedDraggedNode.style.display=g.draggedNodeDisplay||"",g}function Nje(e,t,n){const r=e.targetData.parent.data.config;r.longPress&&(t.longPressTimeout=setTimeout(()=>{t&&(t.longPress=!0,r.longPressClass&&e.e.cancelable&&Qu([n.el],r.longPressClass),_r(e.e))},r.longPressDuration||200))}function Lje(e,t){t.longPressClass&&wa(e.draggedNodes.map(n=>n.el),t==null?void 0:t.longPressClass)}function TH(e,t=!0,n=!0){t&&e.animationFrameIdX!==void 0&&(cancelAnimationFrame(e.animationFrameIdX),e.animationFrameIdX=void 0),n&&e.animationFrameIdY!==void 0&&(cancelAnimationFrame(e.animationFrameIdY),e.animationFrameIdY=void 0),!e.animationFrameIdX&&!e.animationFrameIdY&&(e.preventEnter=!1)}function k3(e,t,n=0,r=0){const{x:i,y:a}=Kd(e);t.coordinates.y=a,t.coordinates.x=i;const o=t.startLeft??0,l=t.startTop??0,f=i-o+window.scrollX,c=a-l+window.scrollY;t.clonedDraggedNode.style.transform=`translate(${f+n}px, ${c+r}px)`,e.cancelable&&_r(e),Lje(t,t.initialParent.data.config)}function R7(e,t){k3(e,t);const n=Kd(e);Wje(n,e,t);const r=Gje(n);if(!r){document.dispatchEvent(new CustomEvent("handleRootPointerover",{detail:{e,state:t}}));return}const i={e,targetData:r,state:t};"node"in r?r.node.el.dispatchEvent(new CustomEvent("handleNodePointerover",{detail:i})):r.parent.el.dispatchEvent(new CustomEvent("handleParentPointerover",{detail:i}))}function Dje(e,t){var n;if(!e.targetData.parent.data.config.nativeDrag)return;const{x:r,y:i}=Kd(e.e);t.coordinates.y=i,t.coordinates.x=r,_r(e.e),Xl(e.e),e.targetData.parent.el===((n=t.currentParent)==null?void 0:n.el)?AH(e,t):D_(e,t)}function kje(e,t){e.targetData.parent.data.config.nativeDrag&&(_r(e.e),Xl(e.e),Object.assign(Kd(e.e)),D_(e,t))}function Ije(e){e.detail.targetData.parent.el!==e.detail.state.currentParent.el&&D_(e.detail,e.detail.state)}function CH({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,state:i}){if(t.el===e.el)return!1;const a=t.data.config;if(r[0].el.contains(t.el)||a.dropZone===!1)return!1;const o=n.data.config;return a.accepts?a.accepts(t,n,e,i):!(!a.group||a.group!==o.group)}function $je(e,t){_r(e.e)}function Uje(e,t){_r(e.e)}function Bje(e,t,n,r){var i;if(t.affectedNodes.map(m=>m.data.value).includes(e.targetData.node.data.value))return!1;if(t.remapJustFinished)return t.remapJustFinished=!1,(e.targetData.node.data.value===t.currentTargetValue||t.draggedNodes.map(m=>m.el).includes(e.targetData.node.el))&&(t.currentTargetValue=e.targetData.node.data.value),!1;if(t.preventEnter)return!1;if(t.draggedNodes.map(m=>m.el).includes(e.targetData.node.el))return t.currentTargetValue=void 0,!1;if(e.targetData.node.data.value===t.currentTargetValue||e.targetData.parent.el!==((i=t.currentParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1||e.targetData.node.el.contains(t.draggedNodes[0].el))return!1;const a=e.targetData.node.el.getBoundingClientRect(),o=t.draggedNode.el.getBoundingClientRect(),l=a.y-o.y,f=a.x-o.x;let c;Math.abs(l)>Math.abs(f)?c=l>0?"above":"below":c=f>0?"left":"right";const h=t.currentParent.data.config.threshold;switch(c){case"left":if(n>a.x+a.width*h.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<a.x+a.width*(1-h.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>a.y+a.height*h.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<a.y+a.height*(1-h.vertical))return t.incomingDirection="below",!0;break}return!1}function AH(e,t){const{x:n,y:r}=Kd(e.e);if(!Bje(e,t,n,r))return;const i=t.draggedNode.data.index>e.targetData.node.data.index?[e.targetData.node.data.index,t.draggedNode.data.index]:[t.draggedNode.data.index,e.targetData.node.data.index];t.targetIndex=e.targetData.node.data.index,t.affectedNodes=e.targetData.parent.data.enabledNodes.filter(a=>i[0]<=a.data.index&&a.data.index<=i[1]&&a.el!==t.draggedNode.el),e.targetData.parent.data.config.performSort({parent:e.targetData.parent,draggedNodes:t.draggedNodes,targetNodes:[e.targetData.node]})}function xi(e){function t(n){const r=fo.get(n);if(!r)return;const i=Ar.get(n.parentNode);if(i)return{node:{el:n,data:r},parent:{el:n.parentNode,data:i}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r},He)}}function D_(e,t){e.e.preventDefault(),CH({currentParent:t.currentParent,targetParent:e.targetData.parent,initialParent:t.initialParent,draggedNodes:t.draggedNodes,state:t})&&(e.targetData.parent.data.config.performTransfer({currentParent:t.currentParent,targetParent:e.targetData.parent,initialParent:t.initialParent,draggedNodes:t.draggedNodes,initialIndex:t.initialIndex,state:t,targetNodes:"node"in e.targetData?[e.targetData.node]:[]}),t.currentParent=e.targetData.parent,t.transferred=!0)}function hp(e){function t(n){const r=Ar.get(n);if(r)return{parent:{el:n,data:r}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r},He)}}function Qu(e,t,n=!1){function r(i,a){fo.set(i,a)}for(const i of e){const a=fo.get(i),o=Fje(i,t,a,n);o&&r(i,o)}}function Fje(e,t,n,r=!1){if(!t)return;const i=yH(t);if(!i.length||i.includes("longPress"))return;if(!n){e.classList.add(...i);return}const a=[];for(const o of i)e.classList.contains(o)?e.classList.contains(o)&&r===!1&&a.push(o):e.classList.add(o);return n.privateClasses=a,n}function wa(e,t){if(!t)return;const n=yH(t);if(n.length)for(const r of e){if(!k_(r)){r.classList.remove(...n);continue}const i=fo.get(r)||Ar.get(r);if(i)for(const a of n)i.privateClasses.includes(a)||r.classList.remove(a)}}function zje(e,t,n,r,i){if(e===document.scrollingElement){const a=e.scrollLeft>0;return{right:e.scrollLeft+window.innerWidth<(i.rootScrollWidth||0)&&t.clientX>e.clientWidth*(1-.1),left:a&&t.clientX<e.clientWidth*.1}}if((n.overflowX==="auto"||n.overflowX==="scroll")&&e!==document.body&&e!==document.documentElement){const a=e.scrollWidth,o=e.offsetWidth,l=e.scrollLeft;return{right:t.clientX>r.left+o*(1-.1)&&l<a-o,left:t.clientX<r.left+o*.1&&l>0}}return{right:!1,left:!1}}function qje(e,t,n,r){if(e===document.scrollingElement)return{down:t.clientY>e.clientHeight*(1-.1),up:t.clientY<e.clientHeight*.1};if((n.overflowY==="auto"||n.overflowY==="scroll")&&e!==document.body&&e!==document.documentElement){const i=e.scrollHeight,a=e.offsetHeight,o=e.scrollTop;return{down:t.clientY>r.top+a*(1-.1)&&o<i-a,up:t.clientY<r.top+a*.1&&o>0}}return{down:!1,up:!1}}function Vje(e,t,n,r=!0){n.preventEnter=!0;const i=r?5:-5;function a(o){o.scrollBy({left:i}),k3(t,n,i,0),n.animationFrameIdX=requestAnimationFrame(a.bind(null,o))}n.animationFrameIdX=requestAnimationFrame(a.bind(null,e))}function Hje(e,t,n,r=!0){n.preventEnter=!0;const i=r?-5:5;function a(){e.scrollBy({top:i}),k3(t,n,0,i),n.animationFrameIdY=requestAnimationFrame(a)}n.animationFrameIdY=requestAnimationFrame(a)}function Wje(e,t,n){TH(n);const r={x:null,y:null},i=document.elementsFromPoint(e.x,e.y);for(const a of i){if(r.x&&r.y)break;if(!(a instanceof HTMLElement))continue;const o=a.getBoundingClientRect(),l=window.getComputedStyle(a);if(!r.x){const{left:f,right:c}=zje(a,t,l,o,n);(f||c)&&(r.x=a,Vje(a,t,n,c))}if(!r.y){const{up:f,down:c}=qje(a,t,l,o);(f||c)&&(r.y=a,Hje(a,t,n,f))}}}function Gje(e){let t=document.elementFromPoint(e.x,e.y);if(!k_(t))return;let n,r=!0;for(;t&&r;){if(fo.has(t)||Ar.has(t)){r=!1,n=Ar.has(t);break}t=t.parentNode}if(n){const i=Ar.get(t);return i?{parent:{el:t,data:i}}:void 0}else{const i=fo.get(t);if(!i)return;const a=Ar.get(t.parentNode);return a?{node:{el:t,data:i},parent:{el:t.parentNode,data:a}}:void 0}}function k_(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function qm(e,t){const n=new AbortController;for(const r in t){const i=t[r];e.addEventListener(r,i,{signal:n.signal,passive:!1,capture:r==="focus"||r==="blur"})}return n}function Yje(e){if(e instanceof HTMLElement)return e;if("current"in e&&e.current instanceof HTMLElement)return e.current;console.warn("Invalid parent element",e)}function Kje(e,t){const n=Yje(e);n&&t(n)}var _0=new WeakMap;function Zje(e){const t=_0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function Xje(e,t){const n=_0.get(t);n&&n[1](e),_0.set(t,[e,n[1]])}function Qje(e,t){return n=>{_0.set(n,t),rje({parent:n,getValues:Zje,setValues:Xje,config:e})}}function M7(e){D3&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;Kje(n,Qje(i,r))}))}function Jje(e,t={}){const n=I.useRef(null),[r,i]=I.useState(e);function a(o={}){M7({parent:n,state:[r,i],...o})}return I.useEffect(()=>{M7({parent:n,state:[r,i],...t})},[r]),I.useEffect(()=>()=>{n.current&&wH(n.current)},[]),[n,r,i,a]}const I_=()=>{const e=ho(),t=Zl(),n=Dd(),r=I.useMemo(()=>{const{orderBy:a,tags:o,excludeBots:l,excludeMaxVisitsReached:f,excludePastValidUntil:c,...h}=n,m=a?Qse(a):void 0,g=(o==null?void 0:o.split(","))??[];return{...h,orderBy:m,tags:g,excludeBots:l!==void 0?l==="true":void 0,excludeMaxVisitsReached:f!==void 0?f==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}},[n]),i=I.useCallback(a=>{const o={...r,...a},{orderBy:l,tags:f,excludeBots:c,excludeMaxVisitsReached:h,excludePastValidUntil:m,...g}=o,x={...g,orderBy:l&&Xse(l),tags:f.length>0?f.join(","):void 0,excludeBots:yE(c),excludeMaxVisitsReached:yE(h),excludePastValidUntil:yE(m)},_=z0(x),w=_?`?${_}`:"";e(`${t}/list-short-urls/1${w}`)},[r,e,t]);return[r,i]},I3=()=>{const{domain:e}=Dd(),{shortCode:t=""}=Md();return I.useMemo(()=>({shortCode:M3(t),domain:e}),[e,t])},$_=()=>{const e=yAe();return y.jsx(yt,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:y.jsx(Ke,{icon:fQ})})},ePe={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"East Timor",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",CG:"Republic of the Congo",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},tPe={android:"Android",ios:"iOS",desktop:"Desktop"},nPe=({deviceType:e,onDeviceTypeChange:t})=>{const n=I.useId();return y.jsxs("div",{children:[y.jsx("label",{htmlFor:n,children:"Device type:"}),y.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select type -"}),Object.entries(tPe).map(([r,i])=>y.jsx("option",{value:r,children:i},r))]})]})},$3=({value:e,onValueChange:t,label:n,placeholder:r})=>{const i=I.useId();return y.jsxs("div",{children:[y.jsxs("label",{htmlFor:i,children:[n,":"]}),y.jsx(sr,{id:i,value:e??"",onChange:a=>t(a.target.value),placeholder:r,required:!0})]})},rPe=({language:e,onLanguageChange:t})=>y.jsx($3,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),iPe=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=I.useId(),a=I.useId();return y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:i,children:"Param name:"}),y.jsx(sr,{id:i,value:e??"",onChange:o=>n(o.target.value),placeholder:"hello",required:!0})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:a,children:"Param value:"}),y.jsx(sr,{id:a,value:t??"",onChange:o=>r(o.target.value),placeholder:"world",required:!0})]})]})},aPe=({ipAddress:e,onIpAddressChange:t})=>y.jsx($3,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),oPe=({countryCode:e,onCountryCodeChange:t})=>{const n=I.useId();return y.jsxs("div",{children:[y.jsx("label",{htmlFor:n,children:"Country:"}),y.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select country -"}),Object.entries(ePe).map(([r,i])=>y.jsx("option",{value:r,children:i},r))]})]})},sPe=({cityName:e,onCityNameChange:t})=>y.jsx($3,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),lPe=({condition:e,onConditionChange:t,onDelete:n})=>{const r=I.useId(),i=I.useCallback(h=>t({type:h,matchValue:"",matchKey:null}),[t]),a=I.useCallback(h=>t({...e,matchValue:h}),[e,t]),o=I.useCallback(h=>t({...e,matchKey:h}),[e,t]),l=Ea("ipRedirectCondition"),f=Ea("geolocationRedirectCondition"),c=I.useMemo(()=>{const h={device:"Device type",language:"Language","query-param":"Query param"};return l&&(h["ip-address"]="IP address"),f&&(h["geolocation-country-code"]="Country (geolocation)",h["geolocation-city-name"]="City name (geolocation)"),h},[f,l]);return y.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2 position-relative",children:[y.jsxs("div",{children:[y.jsx(yt,{outline:!0,size:"sm",type:"button","aria-label":"Remove condition",onClick:n,className:"position-absolute rounded-circle redirect-rule-modal__remove-condition-button",children:y.jsx(Ke,{icon:tB,className:"redirect-rule-modal__remove-condition-button-icon"})}),y.jsx("label",{htmlFor:r,children:"Type:"}),y.jsx("select",{id:r,className:"form-select flex-grow-1",value:e.type,onChange:h=>i(h.target.value),children:Object.entries(c).map(([h,m])=>y.jsx("option",{value:h,children:m},h))})]}),e.type==="device"&&y.jsx(nPe,{deviceType:e.matchValue,onDeviceTypeChange:a}),e.type==="language"&&y.jsx(rPe,{language:e.matchValue,onLanguageChange:a}),e.type==="query-param"&&y.jsx(iPe,{value:e.matchValue,name:e.matchKey??"",onNameChange:o,onValueChange:a}),e.type==="ip-address"&&y.jsx(aPe,{ipAddress:e.matchValue,onIpAddressChange:a}),e.type==="geolocation-country-code"&&y.jsx(oPe,{countryCode:e.matchValue,onCountryCodeChange:a}),e.type==="geolocation-city-name"&&y.jsx(sPe,{cityName:e.matchValue,onCityNameChange:a})]})},jH=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,a]=I.useState(r??{longUrl:"",conditions:[]}),o=I.useCallback(x=>{x.preventDefault(),x.stopPropagation(),i&&n(i),t()},[n,i,t]),l=I.useCallback(()=>a(({longUrl:x,conditions:_})=>({longUrl:x,conditions:[..._,{type:"device",matchValue:"",matchKey:null}]})),[]),f=I.useCallback((x,_)=>a(({longUrl:w,conditions:O})=>{const S=[...O];return S[x]=_,{longUrl:w,conditions:S}}),[]),c=I.useCallback(x=>a(({longUrl:_,conditions:w})=>{const O=[...w];return O.splice(x,1),{longUrl:_,conditions:O}}),[]),h=na(),m=I.useCallback(()=>{var x;return(x=h==null?void 0:h.current)==null?void 0:x.focus()},[h]),g=I.useCallback(()=>a(r??{longUrl:"",conditions:[]}),[r]);return y.jsx(ii,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:m,onClosed:g,children:y.jsxs("form",{onSubmit:o,children:[y.jsx(po,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),y.jsxs(Aa,{children:[y.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),y.jsx(sr,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:x=>a(_=>({..._,longUrl:x.target.value})),required:!0,innerRef:h}),y.jsx("hr",{}),y.jsxs("div",{className:"d-flex justify-content-between",children:[y.jsx("b",{children:"Conditions:"}),y.jsx(yt,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:l,children:y.jsx(Ke,{icon:Ym})})]}),i.conditions.length===0&&y.jsx("div",{className:"text-center",children:y.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&y.jsx(Qa,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((x,_)=>y.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:y.jsx(lPe,{condition:x,onConditionChange:w=>f(_,w),onDelete:()=>c(_)})},`${_}_${x.type}`))})]}),y.jsxs(ms,{className:"sticky-bottom redirect-rule-modal__footer",children:[y.jsx(yt,{type:"button",color:"link",onClick:t,children:"Cancel"}),y.jsx(yt,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},uPe=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:a,onUpdate:o})=>{const[l,f]=wn();return y.jsxs(Jt,{children:[y.jsxs("div",{className:"d-flex align-content-center gap-3",children:[y.jsx("div",{className:"d-flex flex-column my-auto drag-n-drop-handler d-none d-md-block",style:{cursor:"grab"},children:y.jsx(Ke,{icon:gQ})}),y.jsxs("div",{className:"d-flex flex-column my-auto",children:[y.jsx(yt,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"rounded-0 rounded-top",style:{marginBottom:"-1px"},children:y.jsx(Ke,{icon:MQ})}),y.jsx(yt,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:a,className:"rounded-0 rounded-bottom",children:y.jsx(Ke,{icon:CQ})})]}),y.jsxs("div",{className:"flex-grow-1",children:[y.jsxs("div",{className:"mb-2",children:[y.jsx("b",{children:"Long URL:"})," ",y.jsx(ni,{href:n.longUrl,"data-testid":"rule-long-url"})]}),y.jsxs("div",{className:"d-flex flex-column flex-lg-row gap-2",children:[y.jsx("b",{children:"Conditions:"}),n.conditions.map((c,h)=>y.jsxs("div",{className:"badge bg-secondary",children:[c.type==="device"&&y.jsxs(y.Fragment,{children:["Device is ",c.matchValue]}),c.type==="language"&&y.jsxs(y.Fragment,{children:[c.matchValue," language is accepted"]}),c.type==="query-param"&&y.jsxs(y.Fragment,{children:["Query string contains ",c.matchKey,"=",c.matchValue]}),c.type==="ip-address"&&y.jsxs(y.Fragment,{children:["IP address matches ",c.matchValue]}),c.type==="geolocation-country-code"&&y.jsxs(y.Fragment,{children:["Country code is ",c.matchValue]}),c.type==="geolocation-city-name"&&y.jsxs(y.Fragment,{children:["City name is ",c.matchValue]})]},`${c.type}_${h}`))]})]}),y.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[y.jsx(yt,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:f,children:y.jsx(Ke,{icon:XU})}),y.jsx(yt,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:y.jsx(Ke,{icon:qX})})]})]}),y.jsx(jH,{onSave:o,isOpen:l,toggle:f,initialData:n})]})},cPe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:a,resetSetRules:o})=>{const l=I3(),{shortUrls:f}=r,c=l&&(f==null?void 0:f.get(l)),[h,m,g]=Jje([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:x,saved:_,errorData:w}=a,[O,S]=wn(),T=I.useCallback(z=>g((F=[])=>[...F,z]),[g]),A=I.useCallback(z=>g((F=[])=>{const V=[...F];return V.splice(z,1),V}),[g]),j=I.useCallback((z,F)=>g((V=[])=>{const H=[...V];return H[z]=F,H}),[g]),P=I.useCallback((z,F)=>g((V=[])=>{if(!V[F])return V;const H=[...V],te=H[F];return H[F]=H[z],H[z]=te,H}),[g]),R=I.useCallback(z=>P(z,z-1),[P]),D=I.useCallback(z=>P(z,z+1),[P]),U=I.useCallback(z=>{z.preventDefault(),m&&i({shortUrl:l,data:{redirectRules:m}})},[l,m,i]);return I.useEffect(()=>(t(l),n([l]),o),[t,n,l,o]),I.useEffect(()=>{e.redirectRules&&g(e.redirectRules)},[g,e.redirectRules]),y.jsxs("div",{className:"d-flex flex-column gap-3",children:[y.jsx("header",{children:y.jsxs(Ri,{body:!0,children:[y.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[y.jsx($_,{}),y.jsxs("div",{className:"text-center flex-grow-1",children:[r.loading&&y.jsx(y.Fragment,{children:"Loading..."}),!r.loading&&y.jsxs("small",{children:["Redirect rules for ",y.jsx(ni,{href:(c==null?void 0:c.shortUrl)??""})]})]})]}),y.jsx("hr",{}),y.jsxs("div",{children:[y.jsx("p",{className:"mb-2",children:"Configure dynamic conditions that will be checked at runtime."}),"If no conditions match, visitors will be redirected to: ",y.jsx(ni,{href:e.defaultLongUrl??""})]})]})}),y.jsx("div",{children:y.jsxs(yt,{outline:!0,color:"primary",onClick:S,children:[y.jsx(Ke,{icon:Ym,className:"me-1"})," Add rule"]})}),y.jsxs("form",{onSubmit:U,children:[e.loading&&y.jsx(os,{loading:!0}),m.length===0&&!e.loading&&y.jsx(Jt,{className:"text-center",children:y.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),y.jsx("div",{className:"d-flex flex-column gap-2",ref:h,children:m.map((z,F)=>y.jsx(uPe,{redirectRule:z,priority:F+1,isLast:F===m.length-1,onDelete:()=>A(F),onMoveUp:()=>R(F),onMoveDown:()=>D(F),onUpdate:V=>j(F,V)},`${z.longUrl}_${F}`))}),y.jsx("div",{className:"text-center mt-3",children:y.jsx(yt,{outline:!0,color:"primary",className:"btn-sm-block",disabled:x,"data-testid":"save-button",children:x?"Saving...":"Save rules"})})]}),w&&y.jsx(zr,{type:"error",children:y.jsx(co,{errorData:w,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),_&&y.jsx(zr,{type:"success",children:"Redirect rules properly saved."}),y.jsx(jH,{isOpen:O,toggle:S,onSave:T})]})},fPe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>cPe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",WAe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",qAe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",GAe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",VAe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},dPe=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),PH=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:a}=On(PH),o=Wr("shortUrlCreation"),l=I.useMemo(()=>dPe(o),[o]);return y.jsxs(y.Fragment,{children:[y.jsx(i,{initialState:l,saving:t.saving,basicMode:r,onSave:async f=>(n(),e(f))}),y.jsx(a,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},hPe=Sn(PH,["ShortUrlForm","CreateShortUrlResult"]),RH=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=On(RH),a=I3(),{loading:o,error:l,errorData:f,shortUrls:c}=e,h=a&&(c==null?void 0:c.get(a)),{saving:m,saved:g,error:x,errorData:_}=n,w=Wr("shortUrlCreation"),O=I.useMemo(()=>NAe(h,w),[h,w]);return I.useEffect(()=>{a&&t([a])},[t,a]),o?y.jsx(os,{loading:!0}):l?y.jsx(zr,{type:"error",children:y.jsx(co,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):y.jsxs(y.Fragment,{children:[y.jsx("header",{className:"mb-3",children:y.jsx(Ri,{body:!0,children:y.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[y.jsx($_,{}),y.jsx("div",{className:"text-center flex-grow-1",children:y.jsxs("small",{children:["Edit ",y.jsx(ni,{href:(h==null?void 0:h.shortUrl)??""})]})})]})})}),y.jsx(i,{initialState:O,saving:m,onSave:async S=>{h&&r({...h,data:S})}}),g&&x&&y.jsx(zr,{type:"error",className:"mt-3",children:y.jsx(co,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),g&&!x&&y.jsx(zr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},pPe=Sn(RH,["ShortUrlForm"]),MH=({text:e,onCopy:t},n=navigator)=>{var r;return(r=n.clipboard)==null?void 0:r.writeText(e).then(()=>t==null?void 0:t(e,!0)).catch(()=>t==null?void 0:t(e,!1))},NH=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=On(NH),[i,a]=r(),{error:o,saved:l}=e;if(I.useEffect(()=>{t()},[t]),o)return y.jsxs(zr,{type:"error",className:"mt-3",children:[n&&y.jsx(Ke,{"data-testid":"error-close-button",icon:LE,className:"float-end pointer",onClick:t}),y.jsx(co,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!l)return null;const{shortUrl:f}=e.result;return y.jsxs(zr,{type:"success",className:"mt-3",children:[n&&y.jsx(Ke,{"data-testid":"success-close-button",icon:LE,className:"float-end pointer",onClick:t}),y.jsxs("span",{children:[y.jsx("b",{children:"Great!"})," The short URL is ",y.jsx("b",{children:f})]}),y.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>MH({text:f,onCopy:a}),children:[y.jsx(Ke,{icon:iF})," Copy ",y.jsxs("span",{className:"sr-only",children:[f," to clipboard"]})]}),y.jsx(F0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},mPe=Sn(NH,["useTimeoutToggle"]),wE="delete",vPe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:a,shortUrlDeleted:o})=>{const[l,f]=I.useState("");I.useEffect(()=>i,[i]);const{loading:c,error:h,deleted:m,errorData:g}=r,x=I.useCallback(()=>{i(),t()},[i,t]),_=I.useCallback(w=>(w.preventDefault(),a(e).then(O=>!E3(O)&&t())),[a,e,t]);return y.jsx(ii,{isOpen:n,toggle:x,centered:!0,onClosed:()=>m&&o(e),children:y.jsxs("form",{onSubmit:_,children:[y.jsx(po,{toggle:x,children:y.jsx("span",{className:"text-danger",children:"Delete short URL"})}),y.jsxs(Aa,{children:[y.jsxs("p",{children:[y.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),y.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),y.jsxs("p",{children:["Write ",y.jsx("b",{children:wE})," to confirm deletion."]}),y.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${wE}`,value:l,onChange:w=>f(w.target.value)}),h&&y.jsx(zr,{type:oAe(g)?"warning":"error",small:!0,className:"mt-2",children:y.jsx(co,{errorData:g,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),y.jsxs(ms,{children:[y.jsx("button",{type:"button",className:"btn btn-link",onClick:x,children:"Cancel"}),y.jsx("button",{type:"submit",className:"btn btn-danger",disabled:l!==wE||c,children:c?"Deleting...":"Delete"})]})]})})},LH=({amount:e=0,loading:t=!1,...n})=>y.jsxs(yt,{...n,outline:!0,color:"primary",disabled:t,children:[y.jsx(Ke,{icon:YX})," ",t?"Exporting...":y.jsxs(y.Fragment,{children:["Export (",Mn(e),")"]})]}),N7=20,DH=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=On(DH),[{tags:r,search:i,startDate:a,endDate:o,orderBy:l,tagsMode:f}]=I_(),[c,,h,m]=wn(),g=I.useCallback(async()=>{const x=e/N7,_=async(O=1)=>{const{data:S}=await t().listShortUrls({page:`${O}`,tags:r,searchTerm:i,startDate:a,endDate:o,orderBy:l,tagsMode:f,itemsPerPage:N7});return O>=x?S:S.concat(await _(O+1))};h();const w=await _();n.exportShortUrls(w.map(O=>{var S;const{hostname:T,pathname:A}=new URL(O.shortUrl),j=A.substring(1);return{createdAt:O.dateCreated,domain:T,shortCode:j,shortUrl:O.shortUrl,longUrl:O.longUrl,title:O.title??"",tags:O.tags.join("|"),visits:((S=O==null?void 0:O.visitsSummary)==null?void 0:S.total)??O.visitsCount??0}})),m()},[e,t,o,l,n,i,a,h,m,r,f]);return y.jsx(LH,{loading:c,className:"btn-md-block",amount:e,onClick:g})},gPe=Sn(DH,["apiClientFactory","ReportExporter"]),kH=({text:e,onCopy:t,copyToClipboard:n=MH})=>y.jsx(fc,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>n({text:e,onCopy:t}),children:y.jsx(Ke,{icon:iF,className:"fs-5"})}),L7=e=>e&&e.startsWith("#")?e.substring(1):e,yPe=(e,{color:t,bgColor:n,...r})=>{const i=`${e}/qr-code`,a=z0({...r,color:L7(t),bgColor:L7(n)});return`${i}${a?`?${a}`:""}`},bPe=6,D7="0123456789ABCDEF",_Pe=128;function xPe(){return`#${j3(bPe,()=>D7[Math.floor(Math.random()*D7.length)]).join("")}`}function wPe(e,t,n){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*n**2))}function IH(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return wPe(t,n,r)>=_Pe}const $H=I.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>y.jsxs("div",{className:Ve("p-0 position-relative",r),style:{backgroundColor:t,borderColor:t},children:[y.jsx(Ke,{icon:sQ,className:"position-absolute top-50 start-50 translate-middle",style:{color:IH(t.substring(1))?"#000":"fff"}}),y.jsx(sr,{className:"form-control-color opacity-0",type:"color",value:t,onChange:a=>n(a.target.value),innerRef:i,name:e,"aria-label":e})]})),OPe=({color:e,onChange:t,name:n})=>{const r=na();return y.jsxs(tv,{children:[y.jsx($H,{name:n,color:e,onChange:t,className:"input-group-text",ref:r}),y.jsx(sr,{readOnly:!0,value:e,onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},"aria-label":n,"data-testid":"text-input"})]})},x0=({label:e,...t})=>y.jsx(yt,{outline:!0,color:"link",style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},"aria-label":e,title:e,...t}),k7=({name:e,color:t,initialColor:n,onChange:r})=>y.jsx(y.Fragment,{children:t===void 0?y.jsx(x0,{className:"text-start fst-italic w-100",onClick:()=>r(n),children:y.jsxs("span",{className:"indivisible",children:["Customize ",e]})}):y.jsxs("div",{className:"d-flex gap-1 w-100",children:[y.jsx(OPe,{color:t,onChange:r,name:e}),y.jsx(x0,{label:`Default ${e}`,onClick:()=>r(void 0),children:y.jsx(Ke,{icon:Cj})})]})}),I7=({name:e,value:t,step:n,min:r,max:i,onChange:a,initial:o=r})=>{const l=I.useId();return y.jsx(y.Fragment,{children:t===void 0?y.jsxs(x0,{className:"text-start fst-italic w-100",onClick:()=>a(o),children:["Customize ",e]}):y.jsxs("div",{className:"d-flex gap-1 w-100",children:[y.jsxs("div",{className:"d-flex flex-column flex-grow-1",children:[y.jsxs("label",{htmlFor:l,className:"text-capitalize",children:[e,": ",t,"px"]}),y.jsx("input",{id:l,type:"range",className:"form-control-range",value:t,step:n,min:r,max:i,onChange:f=>a(Number(f.target.value))})]}),y.jsx(x0,{label:`Default ${e}`,onClick:()=>a(void 0),children:y.jsx(Ke,{icon:Cj})})]})})},SPe=({errorCorrection:e,onChange:t})=>y.jsxs(vs,{text:e?`Error correction (${e})`:y.jsx("i",{children:"Default error correction"}),dropdownClassName:"w-100",children:[y.jsx(Qe,{active:!e,onClick:()=>t(void 0),children:"Default"}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsxs(Qe,{active:e==="L",onClick:()=>t("L"),children:[y.jsx("b",{children:"L"}),"ow"]}),y.jsxs(Qe,{active:e==="M",onClick:()=>t("M"),children:[y.jsx("b",{children:"M"}),"edium"]}),y.jsxs(Qe,{active:e==="Q",onClick:()=>t("Q"),children:[y.jsx("b",{children:"Q"}),"uartile"]}),y.jsxs(Qe,{active:e==="H",onClick:()=>t("H"),children:[y.jsx("b",{children:"H"}),"igh"]})]}),EPe=({format:e,onChange:t})=>y.jsxs(vs,{text:e?`Format (${e})`:y.jsx("i",{children:"Default format"}),dropdownClassName:"w-100",children:[y.jsx(Qe,{active:!e,onClick:()=>t(void 0),children:"Default"}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsx(Qe,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),y.jsx(Qe,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),UH=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=On(UH),[a,o]=I.useState(),[l,f]=I.useState(),[c,h]=I.useState(),[m,g]=I.useState(),[x,_]=I.useState(),[w,O]=I.useState(),S=Ea("qrCodeColors"),T=I.useMemo(()=>yPe(e,{size:a,format:c,margin:l,errorCorrection:m,color:x,bgColor:w}),[e,a,c,l,m,x,w]);return y.jsxs(ii,{isOpen:r,toggle:n,centered:!0,size:"lg",children:[y.jsxs(po,{toggle:n,children:["QR code for ",y.jsx(ni,{href:e,children:e})]}),y.jsxs(Aa,{className:"d-flex flex-column-reverse flex-lg-row gap-3",children:[y.jsx("div",{className:"flex-grow-1 d-flex align-items-center justify-content-around text-center",children:y.jsx("img",{src:T,alt:"QR code",className:"shadow",style:{maxWidth:"100%"}})}),y.jsxs("div",{className:"d-flex flex-column gap-2 qr-code-modal__controls",children:[y.jsx(I7,{name:"size",value:a,onChange:o,step:10,min:50,max:1e3,initial:300}),y.jsx(I7,{name:"margin",value:l,onChange:f,step:1,min:0,max:100}),y.jsx(EPe,{format:c,onChange:h}),y.jsx(SPe,{errorCorrection:m,onChange:g}),S&&y.jsxs(y.Fragment,{children:[y.jsx(k7,{name:"color",initialColor:"#000000",color:x,onChange:_}),y.jsx(k7,{name:"background",initialColor:"#ffffff",color:w,onChange:O})]}),y.jsx("div",{className:"mt-auto",children:y.jsxs(yt,{block:!0,color:"primary",onClick:()=>{i.saveImage(T,`${t}-qr-code.${c??"png"}`).catch(()=>{})},children:["Download ",y.jsx(Ke,{icon:eB,className:"ms-1"})]})})]})]}),y.jsx(ms,{className:"sticky-bottom justify-content-around",style:{backgroundColor:"var(--primary-color)",zIndex:"1"},children:y.jsxs("div",{className:"text-center",children:[y.jsx(ni,{href:T}),y.jsx(kH,{text:T})]})})]})},TPe=Sn(UH,["ImageDownloader"]),CPe="yyyy-MM-dd",BH="yyyy-MM-dd HH:mm",Ul=()=>new Date,U3=e=>typeof e!="string",B3=(e,t)=>!e||!U3(e)?e:t?mb(e,t):nfe(e),Bl=e=>B3(e,void 0),El=e=>B3(e,CPe),Vm=e=>B3(e,BH),Ei=e=>U3(e)?e:Dl(e),yv=(e,t,n)=>{const r=Ei(e),i=t&&Ei(t),a=n&&Ei(n);if(i&&a)try{return afe(r,{start:i,end:a})}catch{return!1}return i?EC(r,i)||ife(r,i):a?EC(r,a)||vb(r,a):!0},ju=(e,t)=>EC(e,t)||vb(e,t),w0=({date:e,format:t=BH,relative:n=!1})=>{const r=U3(e)?e:Dl(e);return y.jsx("time",{dateTime:`${rfe(r)}000`,children:n?`${tfe(Ul(),r)} ago`:mb(r,t)})},APe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${sH(t)}/${r}${i}`},Vp=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const a=Zl();return!n||!e?y.jsx("span",{...i,children:r}):y.jsx(tn,{to:APe(a,e,t),...i,children:r})},jPe=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:a,validUntil:o}=t,l=(r==null?void 0:r.total)??n??0;return i&&l>=i?{icon:BQ,className:"text-danger",description:y.jsxs(y.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",y.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:o&&vb(Ei(o),Ul())?{icon:m4,className:"text-danger",description:y.jsxs(y.Fragment,{children:["This short URL cannot be visited since ",y.jsx("b",{className:"indivisible",children:Vm(Ei(o))}),"."]})}:a&&vb(Ul(),Ei(a))?{icon:m4,className:"text-warning",description:y.jsxs(y.Fragment,{children:["This short URL will start working on ",y.jsx("b",{className:"indivisible",children:Vm(Ei(a))}),"."]})}:{icon:Gp,className:"text-primary",description:"This short URL can be visited normally."}},PPe=({shortUrl:e})=>{const t=na(),{icon:n,className:r,description:i}=jPe(e);return y.jsxs(y.Fragment,{children:[y.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:y.jsx(Ke,{icon:n,className:r})}),y.jsx(Mi,{target:t,placement:"bottom",children:i})]})},FH=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=na(),{maxVisits:a,validSince:o,validUntil:l}=(t==null?void 0:t.meta)??{},f=!!a||!!o||!!l,c=y.jsx(Vp,{shortUrl:t,suffix:"visits",asLink:r,children:y.jsx("strong",{className:Ve("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:Mn(e)})});return f?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"indivisible",children:[c,y.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[a&&y.jsxs(y.Fragment,{children:[" / ",Mn(a)]}),y.jsx("sup",{className:"ms-1",children:y.jsx(Ke,{icon:Tj})})]})]}),y.jsx(Mi,{target:i,placement:"bottom",children:y.jsxs("ul",{className:"list-unstyled mb-0",children:[a&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",y.jsx("b",{children:Mn(a)})," visit",a===1?"":"s","."]}),o&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",y.jsx("b",{className:"indivisible",children:Vm(Ei(o))}),"."]}),l&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",y.jsx("b",{className:"indivisible",children:Vm(Ei(l))}),"."]})]})})]}):c},RPe=e=>!!e.onClose,MPe=e=>!!e.onClick,U_=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,a=MPe(e),o=a?fc:"span",l=I.useMemo(()=>i.stylesForKey(t),[t,i]);return y.jsxs(o,{className:Ve("badge tag fw-bold",r,{pointer:a}),style:l,onClick:a?e.onClick:void 0,children:[n??t,RPe(e)&&y.jsx(fc,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},NPe=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?y.jsx("i",{className:"indivisible",children:y.jsx("small",{children:"No tags"})}):y.jsx(y.Fragment,{children:e.map(r=>y.jsx(U_,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),zH=({shortUrl:e,onTagClick:t})=>{var n,r,i,a;const{ShortUrlsRowMenu:o,ColorGenerator:l,useTimeoutToggle:f}=On(zH),[c,h]=f(),[m,g]=f(!1,500),x=I.useRef(!0),[{excludeBots:_}]=I_(),w=Wr("visits"),O=_??(w==null?void 0:w.excludeBots);return I.useEffect(()=>{x.current||g(),x.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,g]),y.jsxs("tr",{className:"responsive-table__row",children:[y.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:y.jsx(w0,{date:e.dateCreated})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:y.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[y.jsx("span",{className:"short-urls-row__short-url-wrapper",children:y.jsx(ni,{href:e.shortUrl})}),y.jsx(kH,{text:e.shortUrl,onCopy:h}),y.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!c,children:"Copied short URL!"})]})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:y.jsx(ni,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&y.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:y.jsx(ni,{href:e.longUrl})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:y.jsx(NPe,{tags:e.tags,colorGenerator:l,onTagClick:t})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:y.jsx(FH,{visitsCount:(O?(i=e.visitsSummary)==null?void 0:i.nonBots:(a=e.visitsSummary)==null?void 0:a.total)??e.visitsCount??0,shortUrl:e,active:m,asLink:!0})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:y.jsxs("div",{className:"d-flex gap-2",children:[y.jsx(PPe,{shortUrl:e}),e.hasRedirectRules&&y.jsx(Vp,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:y.jsx(Ke,{icon:rB})})]})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:y.jsx(o,{shortUrl:e})})]})},LPe=Sn(zH,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),qH=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r,QrCodeModal:i}=On(qH),[a,,o,l]=wn(),[f,,c,h]=wn(),m=N_(),g=Ea("shortUrlRedirectRules"),{confirmDeletions:x=!0}=Wr("shortUrlsList",{}),_=I.useCallback(async()=>{const w=await t(e);E3(w)||n(e)},[t,e,n]);return y.jsxs(q0,{minWidth:g?220:190,children:[y.jsxs(Qe,{tag:Vp,shortUrl:e,suffix:"visits",asLink:!0,children:[y.jsx(Ke,{icon:Ej,fixedWidth:!0})," Visit stats"]}),m&&y.jsxs(y.Fragment,{children:[y.jsxs(Qe,{disabled:!m.canAddItemWithName(e.shortUrl),onClick:()=>m.addItemToCompare({name:e.shortUrl,query:N3(e)}),children:[y.jsx(Ke,{icon:L0,fixedWidth:!0})," Compare visits"]}),y.jsx(Qe,{divider:!0,tag:"hr"})]}),y.jsxs(Qe,{tag:Vp,shortUrl:e,suffix:"edit",asLink:!0,children:[y.jsx(Ke,{icon:Sj,fixedWidth:!0})," Edit short URL"]}),g&&y.jsxs(Qe,{tag:Vp,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[y.jsx(Ke,{icon:rB,fixedWidth:!0})," Manage redirect rules"]}),y.jsxs(Qe,{onClick:o,children:[y.jsx(Ke,{icon:IQ,fixedWidth:!0})," QR code"]}),y.jsx(i,{shortUrl:e,isOpen:a,toggle:l}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsxs(Qe,{className:"dropdown-item--danger",onClick:x?c:_,children:[y.jsx(Ke,{icon:wj,fixedWidth:!0})," Delete short URL"]}),y.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:f,toggle:h})]})},DPe=Sn(qH,["DeleteShortUrlModal","QrCodeModal"]),VH="shlink/shortUrlCreation",$7={saving:!1,saved:!1,error:!1},kPe=e=>Zn(`${VH}/createShortUrl`,t=>e().createShortUrl(t)),IPe=e=>{const{reducer:t,actions:n}=In({name:VH,initialState:$7,reducers:{resetCreateShortUrl:()=>$7},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:o})=>({saving:!1,saved:!1,error:!0,errorData:Ni(o)})),i.addCase(e.fulfilled,(a,{payload:o})=>({result:o,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},HH="shlink/shortUrlEdition",$Pe={saving:!1,saved:!1,error:!1},UPe=e=>Zn(`${HH}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl({shortCode:t,domain:n},r)),BPe=e=>In({name:HH,initialState:$Pe,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:Ni(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),U7="shlink/shortUrlsDetails",B7={loading:!1,error:!1},FPe=e=>{const t=Zn(`${U7}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:a}=i(),o=await Promise.all(r.map(async l=>{var f;const{shortCode:c,domain:h}=l,m=(f=a==null?void 0:a.shortUrls)==null?void 0:f.data.find(g=>qp(g,c,h));return[l,m??await e().getShortUrl({shortCode:c,domain:h})]}));return new Map(o)}),{reducer:n}=In({name:U7,initialState:B7,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({loading:!1,error:!0,errorData:Ni(a)})),r.addCase(t.fulfilled,(i,{payload:a})=>({...B7,shortUrls:a}))}});return{reducer:n,getShortUrlsDetails:t}},zPe=({domains:e,value:t,onChange:n})=>{const[r,,i,a]=wn(),o=!t,l=I.useCallback(()=>{n(""),a()},[n,a]),f=I.useCallback(()=>{n(""),i()},[n,i]);return r?y.jsxs(tv,{children:[y.jsx(sr,{value:t??"",placeholder:"Domain",onChange:c=>n(c.target.value)}),y.jsx(yt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:l,children:y.jsx(Ke,{icon:vQ})}),y.jsx(Mi,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):y.jsxs(vs,{text:o?"Domain":`Domain: ${t}`,className:o?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[e.map(({domain:c,isDefault:h})=>y.jsxs(Qe,{active:(t===c||h)&&o,onClick:()=>n(c),className:"d-flex justify-content-between align-items-center",children:[c,h&&y.jsx("span",{className:"text-muted",children:"default"})]},c)),y.jsx(Qe,{divider:!0}),y.jsx(Qe,{onClick:f,children:y.jsx("i",{children:"New domain"})})]})},OE=({icon:e,className:t,...n})=>{const r=na();return y.jsxs("div",{className:"icon-input-container",children:[y.jsx(sr,{className:Ve("icon-input-container__input",t),innerRef:r,...n}),y.jsx(Ke,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},qPe=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...a})=>{const o=I.useCallback(({target:f})=>{if(!f.value){r==null||r(null);return}r==null||r(Ei(f.value))},[r]),l=I.useMemo(()=>i?Vm:El,[i]);return y.jsx(sr,{...a,type:i?"datetime-local":"date",value:l(n)??"",max:l(t)??void 0,min:l(e)??void 0,onChange:o})},O0=({label:e,id:t,...n})=>{const r=I.useId();return y.jsxs(y.Fragment,{children:[y.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),y.jsx(qPe,{id:t??r,...n})]})},SE=({children:e,infoTooltip:t,checked:n,onChange:r})=>y.jsxs("p",{children:[y.jsx(A9,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&y.jsx(Ry,{placement:"right",children:t})]}),VPe=({isOpen:e,toggle:t})=>y.jsxs(ii,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[y.jsx(po,{toggle:t,children:"Info"}),y.jsxs(Aa,{children:[y.jsxs("p",{children:["When the ",y.jsx("b",{children:y.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),y.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),y.jsxs("ul",{children:[y.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),y.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",y.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),y.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),HPe=()=>{const[e,t]=wn();return y.jsxs(y.Fragment,{children:[y.jsx(fc,{className:"p-0",title:"What does this mean?",onClick:t,children:y.jsx(Ke,{icon:Tj})}),y.jsx(VPe,{isOpen:e,toggle:t})]})},py=e=>typeof e=="string"?Dl(e):e,WPe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,WH=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:a})=>{var o,l,f;const{TagsSelector:c}=On(WH),[h,m]=I.useState(r),g=WPe(h),x=Ea("deviceLongUrls"),_=Ea("urlValidation"),w=_||g,O=I.useCallback(()=>m(r),[r]),S=I.useCallback((R,D)=>$u(R)?R:$u(D)?null:void 0,[]),T=I.useCallback((R,D)=>m(({deviceLongUrls:U={},...z})=>{var F;return{...z,deviceLongUrls:{...U,[R]:S(D,(F=r.deviceLongUrls)==null?void 0:F[R])}}}),[r.deviceLongUrls,S]),A=I.useCallback(R=>m(D=>({...D,tags:R})),[]),j=I.useCallback(async R=>(R.preventDefault(),n(h).then(D=>g&&!E3(D)&&O()).catch(()=>{})),[g,n,O,h]),P=I.useMemo(()=>y.jsxs("div",{className:"d-flex flex-column gap-3",children:[y.jsx(sr,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:h.longUrl,onChange:R=>m(D=>({...D,longUrl:R.target.value}))}),y.jsxs("div",{className:Ve("d-flex flex-column flex-lg-row gap-3",{"mb-3":e}),children:[e&&g&&y.jsx("div",{className:"w-100 w-lg-50",children:y.jsx(sr,{bsSize:"lg",placeholder:"Custom slug",value:h.customSlug??"",onChange:R=>m(D=>({...D,customSlug:R.target.value}))})}),y.jsx("div",{className:Ve("w-100",{"w-lg-50":e}),children:y.jsx(c,{tags:i.tags,selectedTags:h.tags??[],onChange:A})})]})]}),[c,e,A,g,h,i.tags]);return y.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:j,children:[e&&P,!e&&y.jsxs(y.Fragment,{children:[y.jsxs(Qa,{children:[y.jsx("div",{className:Ve("mb-3",{"col-sm-6":x,"col-12":!x}),children:y.jsx(Jt,{title:"Main options",children:P})}),x&&y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Jt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[y.jsx(OE,{type:"url",icon:wfe,placeholder:"Android-specific redirection",value:((o=h.deviceLongUrls)==null?void 0:o.android)??"",onChange:({target:R})=>T("android",R.value)}),y.jsx(OE,{type:"url",icon:xfe,placeholder:"iOS-specific redirection",value:((l=h.deviceLongUrls)==null?void 0:l.ios)??"",onChange:({target:R})=>T("ios",R.value)}),y.jsx(OE,{type:"url",icon:FQ,placeholder:"Desktop-specific redirection",value:((f=h.deviceLongUrls)==null?void 0:f.desktop)??"",onChange:({target:R})=>T("desktop",R.value)})]})})]}),y.jsxs(Qa,{children:[y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Jt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[y.jsx(sr,{placeholder:"Title",value:h.title??"",onChange:({target:R})=>m(D=>({...D,title:S(R.value,r.title)}))}),g&&y.jsxs(y.Fragment,{children:[y.jsxs(Qa,{children:[y.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:y.jsx(sr,{placeholder:"Custom slug",value:h.customSlug??"",onChange:R=>m(D=>({...D,customSlug:R.target.value})),disabled:$u(h.shortCodeLength)})}),y.jsx("div",{className:"col-lg-6",children:y.jsx(sr,{type:"number",placeholder:"Short code length",value:h.shortCodeLength??"",onChange:R=>m(D=>({...D,shortCodeLength:R.target.value})),min:4,disabled:$u(h.customSlug)})})]}),y.jsx(zPe,{value:h.domain,onChange:R=>m(D=>({...D,domain:R})),domains:a.domains})]})]})}),y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Jt,{title:"Limit access to the short URL",children:[y.jsxs("div",{className:"row mb-3",children:[y.jsx("div",{className:"col-lg-6",children:y.jsx(O0,{label:"Enabled since",withTime:!0,maxDate:h.validUntil?py(h.validUntil):void 0,value:h.validSince?py(h.validSince):null,onChange:R=>m(D=>({...D,validSince:Bl(R)}))})}),y.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:y.jsx(O0,{label:"Enabled until",withTime:!0,minDate:h.validSince?py(h.validSince):void 0,value:h.validUntil?py(h.validUntil):null,onChange:R=>m(D=>({...D,validUntil:Bl(R)}))})})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),y.jsx(sr,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:h.maxVisits??"",onChange:R=>m(D=>({...D,maxVisits:$u(R.target.value)?Number(R.target.value):null}))})]})]})})]}),y.jsxs(Qa,{children:[w&&y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Jt,{title:"Extra checks",children:[_&&y.jsx(SE,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:h.validateUrl,onChange:R=>m(D=>({...D,validateUrl:R})),children:"Validate URL"}),g&&y.jsxs("p",{children:[y.jsx(A9,{inline:!0,className:"me-2",checked:h.findIfExists,onChange:R=>m(D=>({...D,findIfExists:R})),children:"Use existing URL if found"}),y.jsx(HPe,{})]})]})}),y.jsx("div",{className:Ve("mb-3",{"col-sm-6":w}),children:y.jsxs(Jt,{title:"Configure behavior",children:[y.jsx(SE,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:h.crawlable,onChange:R=>m(D=>({...D,crawlable:R})),children:"Make it crawlable"}),y.jsx(SE,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:h.forwardQuery,onChange:R=>m(D=>({...D,forwardQuery:R})),children:"Forward query params on redirect"})]})})]})]}),y.jsx("div",{className:"text-center",children:y.jsx(yt,{outline:!0,color:"primary",disabled:t||!h.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},GPe=Sn(WH,["TagsSelector"]),B_="all",GH={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[B_]:void 0},YH=Object.keys(GH),YPe=e=>!e||!e.startDate&&!e.endDate,S0=e=>typeof e=="string"&&YH.includes(e),KPe=YH.filter(e=>e!==B_),F7=e=>e?Ei(e):null,KH=(e,t)=>({startDate:F7(e),endDate:F7(t)}),ZPe=e=>{if(!(!e||YPe(e)))return e.startDate&&!e.endDate?`Since ${El(e.startDate)}`:!e.startDate&&e.endDate?`Until ${El(e.endDate)}`:`${El(e.startDate)} - ${El(e.endDate)}`},ZH=e=>{if(!(!e||e===B_))return S0(e)?GH[e]:ZPe(e)},Zi=e=>oc(gb(Ul(),e)),_f=e=>({startDate:e,endDate:Xf(Ul())}),XH=e=>{var t;return((t=[[()=>e==="today",()=>_f(oc(Ul()))],[()=>e==="yesterday",()=>({startDate:Zi(1),endDate:Xf(gb(Ul(),1))})],[()=>e==="last7Days",()=>_f(Zi(7))],[()=>e==="last30Days",()=>_f(Zi(30))],[()=>e==="last90Days",()=>_f(Zi(90))],[()=>e==="last180Days",()=>_f(Zi(180))],[()=>e==="last365Days",()=>_f(Zi(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},XPe=e=>{var t;const n=Ei(e);return((t=[[()=>ju(oc(Ul()),n),"today"],[()=>ju(Zi(1),n),"yesterday"],[()=>ju(Zi(7),n),"last7Days"],[()=>ju(Zi(30),n),"last30Days"],[()=>ju(Zi(90),n),"last90Days"],[()=>ju(Zi(180),n),"last180Days"],[()=>ju(Zi(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??B_},QH=e=>S0(e)?XH(e):e,JH=e=>!!(e&&e.startDate),QPe=({startDate:e,endDate:t})=>{const n=lF(Xf(t??new Date),oc(e))+1,r=gb(oc(e),n),i=gb(Xf(e),1);return{startDate:r,endDate:i}},JPe=e=>{if(JH(e))return lF(e.endDate??new Date,e.startDate)},e3e=({active:e,allText:t,onChange:n})=>y.jsxs(y.Fragment,{children:[y.jsx(Qe,{active:e==="all",onClick:()=>n("all"),children:t}),y.jsx(Qe,{divider:!0,tag:"hr"}),KPe.map(r=>y.jsx(Qe,{active:e===r,onClick:()=>n(r),children:ZH(r)},r))]}),t3e=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>y.jsxs("div",{className:"row",children:[y.jsx("div",{className:"col-md-6",children:y.jsx(O0,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),y.jsx("div",{className:"col-md-6 mt-3 mt-md-0",children:y.jsx(O0,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:a=>i(a&&Xf(a))})})]}),F3=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=I.useMemo(()=>ZH(t)??n,[t,n]),[a,o]=I.useMemo(()=>S0(t)?[void 0,t]:[t,void 0],[t]),l=I.useCallback(f=>{S0(f)?e(XH(f),f):e(f)},[e]);return y.jsxs(vs,{disabled:r,text:i,children:[y.jsx(e3e,{allText:n,active:o,onChange:l}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsx("div",{className:"px-3 py-1",children:y.jsx(t3e,{...a,onStartDateChange:f=>l({...a,startDate:f}),onEndDateChange:f=>l({...a,endDate:f})})})]})},n3e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},r3e=({onChange:e,selected:t={},className:n,domains:r})=>{const i=Ea("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:l=!1,domain:f}=t,c=I.useCallback(m=>e({...t,...m}),[e,t]),h=I.useCallback(m=>c({[m]:!(t!=null&&t[m])}),[c,t]);return y.jsxs(vs,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[y.jsx(Qe,{header:!0,"aria-hidden":!0,children:"Visits:"}),y.jsx(Qe,{active:a,onClick:()=>h("excludeBots"),children:"Ignore visits from bots"}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsx(Qe,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),y.jsx(Qe,{active:o,onClick:()=>h("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),y.jsx(Qe,{active:l,onClick:()=>h("excludePastValidUntil"),children:"Exclude enabled in the past"}),i&&y.jsxs(y.Fragment,{children:[y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsxs(Qe,{header:!0,"aria-hidden":!0,children:["Domain: ",!r&&y.jsx("i",{children:"loading..."})]}),r==null?void 0:r.map(m=>{const g=m.isDefault?Cd:m.domain,x=f===g;return y.jsx(Qe,{active:x,onClick:()=>c({domain:x?void 0:g}),children:m.domain},m.domain)})]}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsx(Qe,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0&&t.domain===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0,domain:void 0}),className:"fst-italic",children:"Reset to defaults"})]})},eW=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:a})=>{const{ExportShortUrlsBtn:o,TagsSelector:l}=On(eW),[{search:f,tags:c,startDate:h,endDate:m,excludeBots:g,excludeMaxVisitsReached:x,excludePastValidUntil:_,domain:w,tagsMode:O="any"},S]=I_(),T=Wr("visits"),[A,j]=I.useState(),P=I.useCallback(({startDate:z,endDate:F},V)=>{S({startDate:Bl(z)??void 0,endDate:Bl(F)??void 0}),j(V)},[S]),R=I.useCallback(z=>S({search:z||void 0}),[S]),D=I.useCallback(z=>S({tags:z}),[S]),U=I.useCallback(()=>S({tagsMode:O==="any"?"all":"any"}),[O,S]);return y.jsxs("div",{className:Ve("short-urls-filtering-bar-container",e),children:[y.jsx(rv,{initialValue:f,onChange:R}),y.jsxs(tv,{className:"mt-3",children:[y.jsx(l,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:c,onChange:D}),c.length>1&&y.jsxs(y.Fragment,{children:[y.jsx(yt,{outline:!0,color:"secondary",onClick:U,id:"tagsModeBtn","aria-label":"Change tags mode",children:y.jsx(Ke,{className:"short-urls-filtering-bar__tags-icon",icon:O==="all"?JU:pQ})}),y.jsx(Mi,{target:"tagsModeBtn",placement:"left",children:O==="all"?"With all the tags.":"With any of the tags."})]})]}),y.jsxs(Qa,{className:"flex-lg-row-reverse",children:[y.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(F3,{defaultText:"All short URLs",dateRangeOrInterval:A??KH(h,m),onDatesChange:P})}),y.jsx(r3e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:g??(T==null?void 0:T.excludeBots),excludeMaxVisitsReached:x,excludePastValidUntil:_,domain:w},onChange:S,domains:a.loading?void 0:a.domains})]})}),y.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:y.jsx(o,{amount:t})}),y.jsx("div",{className:"col-6 d-lg-none mt-3",children:y.jsx(av,{prefixed:!1,items:n3e,order:n,onChange:r})})]})]})},i3e=Sn(eW,["ExportShortUrlsBtn","TagsSelector"]);function Hp({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:y.jsx(Ke,{icon:e.dir==="ASC"?oQ:yQ,className:n})}const xf=2,nj="...",tW=(e,t)=>{const n=cP(Math.max(xf,e-xf),Math.min(t-1,e+xf)+1);return e-xf>xf&&n.unshift(nj),e+xf<t-1&&n.push(nj),n.unshift(1),n.push(t),n},Hm=e=>e===nj,nW=e=>Hm(e)?e:Mn(e),rW=(e,t)=>Hm(e)?`${e}_${t}`:`${e}`,a3e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=Zl(),a=l=>`${i}/list-short-urls/${l}${t}`;if(r<=1)return y.jsx("div",{className:"pb-3"});const o=()=>tW(n,r).map((l,f)=>y.jsx(Yu,{disabled:Hm(l),active:n===l,children:y.jsx(Ku,{tag:tn,to:a(l),children:nW(l)})},rW(l,f)));return y.jsxs(rP,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[y.jsx(Yu,{disabled:n===1,children:y.jsx(Ku,{previous:!0,tag:tn,to:a(n-1)})}),o(),y.jsx(Yu,{disabled:n>=r,children:y.jsx(Ku,{next:!0,tag:tn,to:a(n+1)})})]})},o3e={field:"dateCreated",dir:"DESC"},iW=Ma(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:a,ShortUrlsFilteringBar:o}=On(iW),{page:l}=Md(),f=Pr(),[{tags:c,search:h,startDate:m,endDate:g,orderBy:x,tagsMode:_,excludeBots:w,excludePastValidUntil:O,excludeMaxVisitsReached:S,domain:T},A]=I_(),j=fP(),[P,R]=I.useState(x??((n=j.shortUrlsList)==null?void 0:n.defaultOrdering)??o3e),{pagination:D}=(t==null?void 0:t.shortUrls)??{},U=I.useMemo(()=>{var re;return w??((re=j.visits)==null?void 0:re.excludeBots)},[w,(r=j.visits)==null?void 0:r.excludeBots]),z=I.useCallback((re,Q)=>{A({orderBy:{field:re,dir:Q}}),R({field:re,dir:Q})},[A]),F=re=>()=>z(re,iv(re,P.field,P.dir)),V=re=>y.jsx(Hp,{currentOrder:P,field:re}),H=I.useCallback(re=>A({tags:[...new Set([...c,re])]}),[c,A]),te=I.useCallback(({field:re,dir:Q})=>U&&re==="visits"?{field:"nonBotVisits",dir:Q}:{field:re,dir:Q},[U]),ee=C3();return I.useEffect(()=>{e({page:l,searchTerm:h,tags:c,startDate:m,endDate:g,orderBy:te(P),tagsMode:_,excludePastValidUntil:O,excludeMaxVisitsReached:S,domain:T})},[e,te,l,h,c,m,g,P,_,O,S,T]),y.jsxs(T3,{value:ee,children:[y.jsx(o,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:P,handleOrderBy:z,className:"mb-3"}),y.jsx(A3,{type:"short-urls",className:"mb-3"}),y.jsxs(Ri,{body:!0,className:Ve({"pb-0":!t.loading}),children:[y.jsx(a,{shortUrlsList:t,orderByColumn:F,renderOrderIcon:V,onTagClick:H}),!t.loading&&y.jsx(a3e,{paginator:D,currentQueryString:f.search})]})]})},()=>[Hr.visits]),s3e=Sn(iW,["ShortUrlsTable","ShortUrlsFilteringBar"]),l3e=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:a}=e;return r?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):i?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!i&&(!a||a.data.length===0)?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):a==null?void 0:a.data.map(o=>y.jsx(n,{shortUrl:o,onTagClick:t},o.shortUrl))},aW=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:a}=On(aW),o=Ve({"short-urls-table__header-cell--with-action":!!e}),l=Ve("short-urls-table__header-cell",o),f=Ve("table table-hover responsive-table short-urls-table",i);return y.jsxs("table",{className:f,children:[y.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:y.jsxs("tr",{children:[y.jsxs("th",{className:l,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),y.jsxs("th",{className:l,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),y.jsxs("th",{className:"short-urls-table__header-cell",children:[y.jsxs(fc,{className:Ve("p-0",o),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]}),"  /  ",y.jsxs(fc,{className:Ve("p-0",o),onClick:e==null?void 0:e("longUrl"),children:[y.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),y.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),y.jsx("th",{className:l,onClick:e==null?void 0:e("visits"),children:y.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),y.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),y.jsx("tbody",{children:y.jsx(l3e,{ShortUrlsRow:a,shortUrlsList:n,onTagClick:r})})]})},u3e=Sn(aW,["ShortUrlsRow"]),c3e=(e,t)=>{e.factory("ShortUrlsList",s3e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",u3e),e.factory("ShortUrlsRow",LPe),e.factory("CreateShortUrlResult",mPe),e.factory("ShortUrlsRowMenu",DPe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",GPe),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",hPe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",pPe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>vPe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",TPe),e.factory("ExportShortUrlsBtn",gPe),e.factory("ShortUrlsFilteringBar",i3e),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",$Ae,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",IPe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",BPe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",DAe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",FPe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",IAe,"apiClientFactory"),e.serviceFactory("createShortUrl",kPe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",LAe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>uH),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",UPe,"apiClientFactory")},f3e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:a})=>{const{deleting:o,error:l,deleted:f,errorData:c}=i;return y.jsxs(ii,{toggle:t,isOpen:n,centered:!0,onClosed:()=>f&&a(e),children:[y.jsx(po,{toggle:t,className:"text-danger",children:"Delete tag"}),y.jsxs(Aa,{children:["Are you sure you want to delete tag ",y.jsx("b",{children:e}),"?",l&&y.jsx(zr,{type:"error",small:!0,className:"mt-2",children:y.jsx(co,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),y.jsxs(ms,{children:[y.jsx(yt,{color:"link",onClick:t,children:"Cancel"}),y.jsx(yt,{color:"danger",disabled:o,onClick:async()=>{await r(e),t()},children:o?"Deleting tag...":"Delete tag"})]})]})},oW=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:a})=>{const{ColorGenerator:o}=On(oW),[l,f]=I.useState(e),[c,h]=I.useState(o.getColorForKey(e)),{editing:m,error:g,edited:x,errorData:_}=a,w=oH(async()=>{await t({oldName:e,newName:l,color:c}),n()}),O=I.useCallback(()=>x&&r({oldName:e,newName:l,color:c}),[c,x,l,e,r]);return y.jsx(ii,{isOpen:i,toggle:n,centered:!0,onClosed:O,children:y.jsxs("form",{name:"editTag",onSubmit:w,children:[y.jsx(po,{toggle:n,children:"Edit tag"}),y.jsxs(Aa,{children:[y.jsxs(tv,{children:[y.jsx($H,{color:c,onChange:h,className:"input-group-text",name:"tag-color"}),y.jsx(sr,{value:l,placeholder:"Tag",required:!0,onChange:({target:S})=>f(S.value)})]}),g&&y.jsx(zr,{type:"error",small:!0,className:"mt-2",children:y.jsx(co,{errorData:_,fallbackMessage:"Something went wrong while editing the tag :("})})]}),y.jsxs(ms,{children:[y.jsx(yt,{type:"button",color:"link",onClick:n,children:"Cancel"}),y.jsx(yt,{color:"primary",disabled:m,children:m?"Saving...":"Save"})]})]})})},d3e=Sn(oW,["ColorGenerator"]),h3e=/\s+/g,sW=e=>e.trim().toLowerCase().replace(h3e,"-"),lW=({color:e})=>y.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),uW=({tag:e,colorGenerator:t})=>y.jsx(lW,{color:t.getColorForKey(e)});let z7=1;const cW="Tag not found",fW="Add tag",p3e=e=>e!==cW,m3e=e=>e===fW,q7=e=>(z7+=1,{label:e,value:`${e}${z7}`}),v3e=e=>({tag:t,onClick:n})=>y.jsx(U_,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),g3e=(e,t)=>({option:n,classNames:r,...i})=>{var a;const o=p3e(n.label),l=m3e(n.label);return y.jsx("div",{className:Ve(r.option,{[r.optionIsActive]:o&&n.active,"react-tags__listbox-option--not-selectable":!o}),...i,children:o?y.jsxs(y.Fragment,{children:[!l&&y.jsx(uW,{tag:`${n.label}`,colorGenerator:e}),l?y.jsxs("i",{children:['Add "',sW(((a=t.current)==null?void 0:a.input.value)??""),'"']}):n.label]}):y.jsx("i",{children:n.label})})},dW=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:a}=On(dW),o=Wr("shortUrlCreation"),l=(o==null?void 0:o.tagFilteringMode)??"startsWith",f=na();return y.jsx(_de,{ref:f,selected:e.map(q7),suggestions:r.filter(c=>!e.includes(c)).map(q7),renderTag:v3e(a),renderOption:g3e(a,f),activateFirstOption:!0,allowNew:!i,newOptionText:fW,noOptionsText:cW,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(c,h)=>{const m=c.toLowerCase().trim();return m.length<1?[]:[...h.filter(({label:g})=>l==="includes"?g.includes(m):g.startsWith(m))].slice(0,5)},onDelete:c=>{const h=[...e];h.splice(c,1),t(h)},onAdd:({label:c})=>t([...new Set([...e,...c.split(",").map(sW)])])})},y3e=Sn(dW,["ColorGenerator"]),rj="shlink/tagDelete",b3e={deleting:!1,deleted:!1,error:!1},hW=qr(`${rj}/tagDeleted`),_3e=e=>{const t=Zn(`${rj}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=In({name:rj,initialState:b3e,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({deleting:!1,deleted:!1,error:!0,errorData:Ni(a)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},z3="shlink/tagEdit",x3e={editing:!1,edited:!1,error:!1},pW=qr(`${z3}/tagEdited`),w3e=(e,t)=>Zn(`${z3}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag({oldName:n,newName:r}),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),O3e=e=>In({name:z3,initialState:x3e,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:Ni(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:a}=r;return{oldName:i,newName:a,editing:!1,edited:!0,error:!1}})}}),q3="shlink/tagsList",EE={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},V7=(e,t)=>n=>n===e?t:n,H7=(e,t)=>e.filter(n=>n!==t),S3e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:a,nonBots:o}=i,l=n[r];return{...n,[r]:{...l,visitsSummary:l.visitsSummary&&{total:l.visitsSummary.total+a+o,bots:l.visitsSummary.bots+a,nonBots:l.visitsSummary.nonBots+o},visitsCount:(l.visitsCount??0)+a+o}}},{...t}),E3e=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),T3e=e=>Zn(`${q3}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...a})=>(r[i]=a,r),{});return{tags:Object.keys(n),stats:n}}),mW=qr(`${q3}/filterTags`),C3e=(e,t)=>In({name:q3,initialState:EE,reducers:{},extraReducers:n=>{n.addCase(mW,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(a=>a.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...EE,error:!0,errorData:Ni(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...EE,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(hW,({tags:r,filteredTags:i,...a},{payload:o})=>({...a,tags:H7(r,o),filteredTags:H7(i,o)})),n.addCase(pW,({tags:r,filteredTags:i,stats:a,...o},{payload:l})=>({...o,stats:{...a,[l.newName]:a[l.oldName]},tags:r.map(V7(l.oldName,l.newName)).sort(),filteredTags:i.map(V7(l.oldName,l.newName)).sort()})),n.addCase(Yd,(r,{payload:i})=>({...r,stats:S3e(E3e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:a})=>({...i,tags:r.concat(a.tags.filter(o=>!r.includes(o)))}))}}),A3e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},vW=Ma(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=On(vW),a=fP(),[o,l]=I.useState(((n=a.tags)==null?void 0:n.defaultOrdering)??{}),f=I.useMemo(()=>{const h=t.filteredTags.map(m=>{var g,x,_;const w=t.stats[m],O=((g=a.visits)!=null&&g.excludeBots?(x=w==null?void 0:w.visitsSummary)==null?void 0:x.nonBots:(_=w==null?void 0:w.visitsSummary)==null?void 0:_.total)??(w==null?void 0:w.visitsCount)??0;return{tag:m,visits:O,shortUrls:(w==null?void 0:w.shortUrlsCount)??0}});return M9(h,o)},[o,(r=a.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),c=C3();return t.loading?y.jsx(os,{loading:!0}):t.error?y.jsx(zr,{type:"error",children:y.jsx(co,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):y.jsxs(T3,{value:c,children:[y.jsx(rv,{className:"mb-3",onChange:e}),y.jsx(Qa,{className:"mb-3",children:y.jsx("div",{className:"col-lg-6 offset-lg-6",children:y.jsx(av,{items:A3e,order:o,onChange:(h,m)=>l({field:h,dir:m})})})}),y.jsx(A3,{type:"tags",className:"mb-3"}),y.jsx(i,{sortedTags:f,currentOrder:o,orderByColumn:h=>()=>{const m=iv(h,o.field,o.dir);l({field:m?h:void 0,dir:m})}})]})},()=>[Hr.visits]),j3e=Sn(vW,["TagsTable"]),V3=({pagesCount:e,currentPage:t,onPageChange:n,centered:r=!0})=>{const i=I.useCallback(a=>!Hm(a)&&n(a),[n]);return e<2?null:y.jsxs(rP,{listClassName:Ve("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[y.jsx(Yu,{disabled:t<=1,children:y.jsx(Ku,{previous:!0,tag:"span",onClick:()=>i(t-1)})}),tW(t,e).map((a,o)=>y.jsx(Yu,{disabled:Hm(a),active:t===a,children:y.jsx(Ku,{role:"link",tag:"span",onClick:()=>i(a),children:nW(a)})},rW(a,o))),y.jsx(Yu,{disabled:t>=e,children:y.jsx(Ku,{next:!0,tag:"span",onClick:()=>i(t+1)})})]})},P3e=20,gW=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=On(gW),i=I.useRef(!0),{page:a=1}=Dd(),[o,l]=gAe("page",Number(a)),f=I.useCallback(g=>{l(g),scrollTo(0,0)},[l]),c=kf(e,P3e),h=c.length>1,m=c[o-1]??[];return I.useEffect(()=>{i.current||f(1),i.current=!1},[f,e]),y.jsxs(Jt,{bodyClassName:h?"pb-1":"",children:[y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsxs("thead",{className:"responsive-table__header",children:[y.jsxs("tr",{children:[y.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",y.jsx(Hp,{currentOrder:n,field:"tag"})]}),y.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",y.jsx(Hp,{currentOrder:n,field:"shortUrls"})]}),y.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",y.jsx(Hp,{currentOrder:n,field:"visits"})]}),y.jsx("th",{className:"tags-table__header-cell",children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),y.jsx("tr",{children:y.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),y.jsxs("tbody",{children:[m.length===0&&y.jsx("tr",{children:y.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),m.map(g=>y.jsx(r,{tag:g},g.tag))]})]}),h&&y.jsx("div",{className:"sticky-card-paginator",children:y.jsx(V3,{pagesCount:c.length,currentPage:o,onPageChange:f})})]},o)},R3e=Sn(gW,["TagsTableRow"]),yW=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=On(yW),[i,a]=wn(),[o,l]=wn(),f=Zl(),c=N_();return y.jsxs("tr",{className:"responsive-table__row",children:[y.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[y.jsx(uW,{tag:e.tag,colorGenerator:r})," ",e.tag]}),y.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:y.jsx(tn,{to:`${f}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Mn(e.shortUrls)})}),y.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:y.jsx(tn,{to:`${f}/tag/${e.tag}/visits`,children:Mn(e.visits)})}),y.jsx("td",{className:"responsive-table__cell text-lg-end",children:y.jsxs(q0,{children:[y.jsxs(Qe,{onClick:l,children:[y.jsx(Ke,{icon:XU,fixedWidth:!0,className:"me-1"})," Edit"]}),y.jsxs(Qe,{disabled:!c||!c.canAddItemWithName(e.tag),onClick:()=>c==null?void 0:c.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[y.jsx(Ke,{icon:L0,fixedWidth:!0})," Compare visits"]}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsxs(Qe,{className:"dropdown-item--danger",onClick:a,children:[y.jsx(Ke,{icon:cQ,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),y.jsx(n,{tag:e.tag,toggle:l,isOpen:o}),y.jsx(t,{tag:e.tag,toggle:a,isOpen:i})]})},M3e=Sn(yW,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),N3e=(e,t)=>{e.factory("TagsSelector",y3e),e.serviceFactory("DeleteTagConfirmModal",()=>f3e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",d3e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",M3e),e.factory("TagsTable",R3e),e.factory("TagsList",j3e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",O3e,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",_3e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",C3e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",T3e,"apiClientFactory"),e.serviceFactory("filterTags",()=>mW),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>hW),e.serviceFactory("editTag",w3e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>pW)},L3e=new _F,D3e=e=>L3e.parse(e),W7=e=>e.toLowerCase().trim();class k3e{constructor(t){Pl(this,"colors"),Pl(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=W7(t);return this.colors[n]||this.setColorForKey(n,xPe())}setColorForKey(t,n){var r;const i=W7(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);return this.lights[n]===void 0&&(this.lights[n]=IH(n)),this.lights[n]}}const bW=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},I3e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);bW(e,i,n)};class $3e{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(a=>a.blob()),i=URL.createObjectURL(r);bW(this.window,i,n)}}class U3e{constructor(t,n){Pl(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Pl(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Pl(this,"exportCsv",(r,i)=>{const a=this.jsonToCsv(i);I3e(this.window,a,r)}),this.window=t,this.jsonToCsv=n}}function B3e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",$3e,"fetch","window"),e.service("ColorGenerator",k3e,"TagColorsStorage"),e.constant("jsonToCsv",D3e),e.service("ReportExporter",U3e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>P9)}const bv=({visits:e,shortUrl:t,children:n,title:r})=>y.jsx("header",{children:y.jsxs(Ri,{body:!0,children:[y.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[y.jsx($_,{}),y.jsx("span",{className:"text-center d-none d-sm-block",children:y.jsx("small",{children:r})}),y.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",y.jsx(FH,{visitsCount:e.length,shortUrl:t})]})]}),y.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:y.jsx("small",{children:r})}),n&&y.jsx("div",{className:"mt-md-2",children:n})]})}),F_=({children:e,className:t})=>y.jsx("div",{className:Ve("d-flex justify-content-between align-items-center",t),children:e}),_W=({title:e,footer:t,children:n})=>y.jsxs(Ri,{role:"document",children:[y.jsx(ev,{className:"chart-card__header",children:e}),y.jsx(Jm,{children:n}),t&&y.jsx(p9,{className:"chart-card__footer--sticky",children:t})]}),xW=I.createContext(null),{Provider:y4e}=xW,H3=e=>{const t=I.useContext(xW)??void 0,n=I.useMemo(()=>t?{}:{width:"100%",height:e},[e,t]);return{ChartWrapper:t?I.Fragment:oge,dimensions:t,wrapperDimensions:n}},wW={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},F3e={marginBottom:"5px",fontWeight:"bold"},OW={contentStyle:wW,labelStyle:F3e,itemStyle:{padding:0}},G7=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],SW=e=>G7[e%G7.length],E0=()=>ov()?"#46e587":"#1DAA58",z3e=()=>ov()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",q3e=({chartData:e,showNumbers:t})=>y.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>y.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[y.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),y.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&y.jsxs("b",{children:[" (",Mn(i),")"]})]})]},n))}),Y7=e=>I.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:SW(r)})),[e]),V3e=({stats:e,prevStats:t,showNumbersInLegend:n})=>{const r=Y7(e),i=Y7(t),a=i.length>0,o=ov()?nle:tle,{ChartWrapper:l,dimensions:f,wrapperDimensions:c}=H3(300);return y.jsxs("div",{className:"row align-items-center",children:[y.jsx("div",{className:"col-sm-12 col-md-7",children:y.jsx("div",{style:c,children:y.jsx(l,{children:y.jsxs(PCe,{...f,children:[y.jsx(Ki,{formatter:Mn,contentStyle:wW,itemStyle:{color:"white"}}),y.jsx(uo,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:r.map((h,m)=>y.jsx(Cl,{fill:h.color,stroke:o},`${h.name}-${m}`))}),a&&y.jsx(uo,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:o,fill:E0()})]})})})}),y.jsx("div",{className:"col-sm-12 col-md-5",children:y.jsx(q3e,{chartData:r,showNumbers:n})})]})},K7=({title:e,...t})=>{const[n,r]=wn(!1);return y.jsx(_W,{title:y.jsxs(F_,{children:[e,y.jsx("div",{children:y.jsx(ss,{checked:n,onChange:r,children:"Show numbers"})})]}),children:y.jsx(V3e,{...t,showNumbersInLegend:n})})},H3e=I.forwardRef(({visitsGroups:e},t)=>{const n=I.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:y.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",ref:t,children:n.map(([r,i],a)=>y.jsxs("li",{className:"d-inline",children:[y.jsx(lW,{color:EW(i)}),y.jsxs("strong",{children:[r," (",Mn(i.length),")"]})]},`${r}${a}`))})}),W3e={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},G3e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},Y3e={hourly:Kue,daily:K0,weekly:Yue,monthly:pb},W3={hourly:e=>mb(e,"yyyy-MM-dd HH:00"),daily:e=>El(e),weekly(e){const t=El(om(e)),n=El(rce(e));return`${t} - ${n}`},monthly:e=>mb(e,"yyyy-MM")},K3e=e=>{var t;const n=Object.values(e).filter(o=>o.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(o=>Dl(o[o.length-1].date)),a=sF(i);return((t=[[()=>K0(r,a)<=2,"hourly"],[()=>pb(r,a)<=1,"daily"],[()=>pb(r,a)<=6,"weekly"]].find(([o])=>o()))==null?void 0:t[1])??"monthly"},Z3e=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=X9(t[r],i=>W3[e](Dl(i.date))),n),{}),X3e=(e,t)=>t.reduce((n,r)=>{const i=W3[e](Dl(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),Q3e=(e,t)=>{const n=Object.values(t).filter(h=>h.length>0).map(h=>[...h].reverse());if(n.length===0)return[];const r=Y3e[e],i=W3[e],a=G3e[e],o=n.flat(),l=Dl(o[0].date),f=Dl(o[o.length-1].date),c=r(f,l)||1;return[{formattedDate:i(l),date:l},...j3(c,h=>{const m=zue(l,a(h));return{formattedDate:i(m),date:m}})]},EW=e=>{if(e.color)return e.color;const t={main:nm,highlighted:vC,previous:E0()};return e.type?t[e.type]:nm},Z7=(e,t)=>I.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),J3e=(e,t,n)=>{const r=Z7(e,"main"),i=Z7(e,"highlighted"),a=I.useMemo(()=>n?X3e(t,r):{},[n,t,r]),o=I.useCallback((l,{payload:f})=>{const c=a[f.formattedDate]??[];n==null||n(c===i?[]:c)},[a,i,n]);return n&&{cursor:"pointer",onClick:o}},X7=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},TW=({visitsGroups:e,setSelectedVisits:t,matchMedia:n,onDateRangeChange:r})=>{const[i,a]=I.useState(K3e(e)),o=R3(767,n??window.matchMedia),l=I.useMemo(()=>{const H=Z3e(i,e),te=Object.keys(H);return Q3e(i,e).map(({formattedDate:ee,date:re})=>({date:re,formattedDate:ee,...te.reduce((Q,oe)=>(Q[oe]=H[oe][ee]??0,Q),{})}))},[i,e]),f=J3e(e,i,t),[c,h,,m]=wn(),g=na(),x=I.useId(),_=na(),[w,O]=I.useState(o?300:400);I.useLayoutEffect(()=>{if(!c)return O(o?300:400),()=>{};const H=new ResizeObserver(()=>{const{height:te}=g.current.getBoundingClientRect(),{height:ee}=_.current.getBoundingClientRect();O(te-ee-48)});return H.observe(g.current),H.observe(_.current),()=>H.disconnect()},[g,c,o,_]),bAe("Escape",m,c);const{ChartWrapper:S,dimensions:T,wrapperDimensions:A}=H3(w),[j,P]=I.useState(),[R,D]=I.useState(),U=I.useCallback(()=>{P(void 0),D(void 0)},[]),z=I.useCallback((H,te)=>{const ee=X7(H);te.button===0&&ee&&P(ee)},[]),F=I.useCallback(H=>{const te=X7(H);j&&te&&D(te)},[j]),V=I.useCallback(()=>{if(!j||!R)return;const H=[j.date,R.date],te=Hue(H),ee=sF(H);U(),r({startDate:te,endDate:ee})},[r,U,R,j]);return y.jsxs(Ri,{className:Ve({"fixed-top fixed-bottom":c}),"data-testid":"line-chart-card",children:[y.jsxs(ev,{role:"heading","aria-level":4,className:"d-flex justify-content-between align-items-center",children:["Visits over time",y.jsxs("div",{className:"d-flex align-content-center gap-1",children:[y.jsx(yt,{"aria-label":c?"Collapse":"Expand","aria-expanded":c,"aria-controls":x,size:"sm",color:"link",onClick:h,children:y.jsx(Ke,{icon:c?VX:UQ})}),y.jsxs(nv,{className:"d-flex align-items-center",children:[y.jsx(ps,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),y.jsx(Vl,{end:!0,children:Object.entries(W3e).map(([H,te])=>y.jsx(Qe,{active:i===H,onClick:()=>a(H),children:te},H))})]})]})]}),y.jsxs(Jm,{innerRef:g,id:x,children:[y.jsx(S,{...A,children:y.jsxs(jCe,{className:"user-select-none",data:l,...T,onMouseDown:z,onMouseMove:F,onMouseUp:V,children:[y.jsx(Wd,{dataKey:"formattedDate"}),y.jsx(Gd,{tickFormatter:Mn,yAxisId:"1"}),y.jsx(Ki,{formatter:Mn,...OW}),y.jsx(b3,{strokeOpacity:ov()?.1:.9}),Object.entries(e).map(([H,te])=>te.length>0&&y.jsx(Hd,{yAxisId:"1",dataKey:H,type:"monotone",stroke:EW(te),strokeWidth:2,activeDot:te.type==="previous"?void 0:f,strokeDasharray:te.type==="previous"?"8 3":void 0},H)),j&&R&&y.jsx(vv,{yAxisId:"1",x1:j.formattedDate,x2:R.formattedDate})]})}),y.jsx(H3e,{visitsGroups:e,ref:_})]})]})},eRe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>y.jsxs(nv,{children:[y.jsx(ps,{caret:!0,color:"link",className:e,children:"Paginate"}),y.jsxs(Vl,{end:!0,children:[t.map(i=>y.jsxs(Qe,{active:i===n,onClick:()=>r(i),children:[y.jsx("b",{children:i})," items per page"]},i)),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsx(Qe,{disabled:n===1/0,onClick:()=>r(1/0),children:y.jsx("i",{children:"Clear pagination"})})]})]}),Q7=e=>e.startsWith("hidden_"),tRe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:a})=>{const o=I.useMemo(()=>Object.entries(e).map(([m,g])=>{const x=(n==null?void 0:n[m])??0,_=(t==null?void 0:t[m])??0,w=Q7(m);return{name:m,amount:Math.max(g,_),nonHighlightedAmount:w?null:g-x,highlightedAmount:w?null:x,prevAmount:w?null:_}}),[e,t,n]),l=I.useMemo(()=>{const m=o.reduce((g,{name:x})=>g>x.length?g:x.length,0);return Math.min(150,m*7)},[o]),{ChartWrapper:f,dimensions:c,wrapperDimensions:h}=H3(Math.max(300,o.length*(t?44:22)));return y.jsx(f,{...h,children:y.jsxs(RCe,{layout:"vertical",data:o,barCategoryGap:3,...c,children:[y.jsx(Wd,{type:"number",dataKey:"amount",tickFormatter:Mn,domain:i?[0,i]:void 0}),y.jsx(Gd,{type:"category",dataKey:"name",width:l,interval:0,style:{fontSize:".8rem"},tickFormatter:m=>Q7(m)?"":m}),y.jsx(b3,{strokeOpacity:ov()?.05:.9}),y.jsx(Ki,{filterNull:!0,...OW,formatter:(m,g)=>[Mn(m),g==="highlightedAmount"?r:g==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),y.jsx(ts,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:nm,onClick:({name:m})=>a==null?void 0:a(m),children:o.map(m=>y.jsx(Cl,{fill:Jse,stroke:nm,strokeWidth:2},m.name))}),n&&y.jsx(ts,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:vC,onClick:({name:m})=>a==null?void 0:a(m),children:o.map(m=>y.jsx(Cl,{fill:ele,stroke:vC,strokeWidth:2},m.name))}),t&&y.jsx(ts,{dataKey:"prevAmount",fill:E0(),children:o.map(m=>y.jsx(Cl,{fill:z3e(),stroke:E0(),strokeWidth:2},m.name))})]})})},nRe=e=>typeof e=="string"?e.toLowerCase():e,rRe=([e])=>e,iRe=([,e])=>e,my=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:a,withPagination:o=!0,...l})=>{const[f,c]=I.useState({}),[h,m]=I.useState(1),[g,x]=I.useState(50),_=I.useCallback((U,z)=>{const F=Object.entries(U),V=f.field?cue(F,([H,te])=>nRe(f.field===Object.keys(z)[0]?H:te)):F;return!f.dir||f.dir==="ASC"?V:[...V].reverse()},[f.dir,f.field]),w=I.useCallback(U=>{const z=U[h-1];if(h<U.length)return z;const F=U[0].length;return[...z,...j3(F-z.length,V=>[`hidden_${V}`,0])]},[h]),O=I.useCallback(U=>y.jsx(V3,{currentPage:h,pagesCount:U,onPageChange:m}),[h]),S=I.useCallback((U,z,F,V)=>{const H=_(U,z),te=H.map(rRe),ee=F&&Object.entries({...JL(te,te.map(()=>0)),...F}),re=V&&Object.entries({...JL(te,te.map(()=>0)),...V});if(H.length<=g)return{currentPageStats:Object.fromEntries(H),currentPageHighlightedStats:ee&&Object.fromEntries(ee),currentPagePrevStats:re&&Object.fromEntries(re)};const Q=kf(H,g),oe=ee&&kf(ee,g),le=re&&kf(re,g);return{currentPageStats:Object.fromEntries(w(Q)),currentPageHighlightedStats:oe&&Object.fromEntries(w(oe)),currentPagePrevStats:le&&Object.fromEntries(w(le)),pagination:O(Q.length),max:BAe(Math.max(...H.map(iRe)))}},[w,_,g,O]),{currentPageStats:T,currentPagePrevStats:A,currentPageHighlightedStats:j,pagination:P,max:R}=I.useMemo(()=>S(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[S,n,t,i,e]),D=I.useMemo(()=>Object.keys(T),[T]);return y.jsx(_W,{title:y.jsxs(F_,{children:[r,y.jsxs("div",{className:"d-flex gap-3",children:[a==null?void 0:a(P?D:void 0),o&&Object.keys(e).length>50&&y.jsx(eRe,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:g,setValue:U=>{x(U),m(1)}}),y.jsx(av,{isButton:!1,right:!0,items:i,order:f,onChange:(U,z)=>{c({field:U,dir:z}),m(1)}})]})]}),footer:P,children:y.jsx(tRe,{stats:T,prevStats:A,highlightedStats:j,max:R,...l})})},G3=e=>e.type!==void 0,aRe=e=>e.type!==void 0,oRe=e=>{const t=Q9(e,n=>G3(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},CW=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:a,visit:o})=>a&&qp(a,t,n)&&yv(o.date,i,r)),AW=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>i&&MAe(i,t)&&yv(a.date,r,n)),jW=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>(i==null?void 0:i.tags.includes(t))&&yv(a.date,r,n)),vy=(e,t)=>X9(e,n=>n[t]),sRe=e=>{const t=((e==null?void 0:e.startDate)&&Bl(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&Bl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},ij=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=sRe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},lRe=e=>JH(e.dateRange),uRe=({dateRange:e,...t})=>({...t,dateRange:QPe(e)}),J7=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&Bl(t[e])||""},PW=()=>{const e=ho(),t=Dd(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:a,loadPrevInterval:o,...l}=t,f=I.useMemo(()=>({dateRange:n!=null||r!=null?KH(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:a!==void 0?a==="true":void 0},loadPrevInterval:o!==void 0?o==="true":void 0}),[r,a,o,i,n]),c=I.useCallback(h=>{const{dateRange:m,visitsFilter:g={},loadPrevInterval:x}=Y0(f,h),{excludeBots:_,orphanVisitsType:w}=g,O={...l,startDate:J7("startDate",m),endDate:J7("endDate",m),excludeBots:_===void 0?void 0:JA(_),orphanVisitsType:w,loadPrevInterval:x===void 0?void 0:JA(x)},S=z0(O),T=S?`?${S}`:"";e(T,{replace:!0,relative:"route"})},[f,e,l]);return[f,c]},cRe=()=>y.jsx(ZCe,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),fRe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:n})=>n)};const[{latLong:t}]=e;return{zoom:10,center:t}},RW=({toggle:e,isOpen:t,title:n,locations:r=[]})=>y.jsx(ii,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:y.jsxs(Aa,{className:"map-modal__modal-body",children:[y.jsxs(F_,{className:"map-modal__modal-title fs-4",children:[n,y.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),y.jsxs(GCe,{...fRe(r),children:[y.jsx(cRe,{}),r.map(({cityName:i,latLong:a,count:o},l)=>y.jsx(YCe,{position:a,children:y.jsxs(KCe,{children:[y.jsx("b",{children:o})," visit",o>1?"s":""," from ",y.jsx("b",{children:i})]})},l))]})]})}),dRe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,a]=wn(),[o,l]=wn(),[f,c]=I.useState([]),h=I.useCallback(m=>{c(m?n.filter(m):n),i()},[n,i]);return y.jsxs(y.Fragment,{children:[!t&&y.jsx(yt,{color:"link",className:"p-0",onClick:()=>h(),"aria-label":"Show in map",title:"Show in map",children:y.jsx(Ke,{icon:NE})}),t&&y.jsxs(ql,{isOpen:o,toggle:l,children:[y.jsx(ps,{color:"link",className:"p-0",title:"Show in map",children:y.jsx(Ke,{icon:NE})}),y.jsxs(Vl,{end:!0,children:[y.jsx(Qe,{onClick:()=>h(),children:"Show all locations"}),y.jsx(Qe,{onClick:()=>h(({cityName:m})=>t.includes(m)),children:"Show locations in current page"})]})]}),y.jsx(RW,{toggle:a,isOpen:r,title:e,locations:f})]})},MW=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:a})=>{const{orphanVisitsType:o,excludeBots:l=!1,loadPrevInterval:f=!1}=t,c=g=>({active:o===g,onClick:()=>e({...t,orphanVisitsType:g===o?void 0:g})}),h=I.useCallback(()=>e({...t,excludeBots:!l}),[l,e,t]),m=I.useCallback(()=>e({...t,loadPrevInterval:!f}),[f,e,t]);return y.jsxs(vs,{disabled:a,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&y.jsxs(y.Fragment,{children:[y.jsx(Qe,{active:f,onClick:m,children:"Compare with previous period"}),y.jsx(Qe,{divider:!0,tag:"hr"})]}),y.jsx(Qe,{header:!0,"aria-hidden":!0,children:"Bots:"}),y.jsx(Qe,{active:l,onClick:h,children:"Exclude potential bots"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsx(Qe,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),y.jsx(Qe,{...c("base_url"),children:"Base URL"}),y.jsx(Qe,{...c("invalid_short_url"),children:"Invalid short URL"}),y.jsx(Qe,{...c("regular_404"),children:"Regular 404"})]}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsx(Qe,{disabled:t.excludeBots===void 0&&t.loadPrevInterval===void 0&&t.orphanVisitsType===void 0,onClick:()=>e({excludeBots:void 0,loadPrevInterval:void 0,orphanVisitsType:void 0}),children:y.jsx("i",{children:"Reset to defaults"})})]})},NW=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return y.jsxs(y.Fragment,{children:[t&&r===null&&y.jsx(os,{loading:!0}),t&&r!==null&&y.jsxs(os,{loading:!0,children:["This is going to take a while... :S",y.jsx(b9,{value:r,striped:r>=100,className:"mt-3"})]}),n&&y.jsx(zr,{type:"error",children:y.jsx(co,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},Ny=({children:e,showFallback:t})=>y.jsxs(y.Fragment,{children:[t&&y.jsx(os,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&y.jsx(y.Fragment,{children:e})]}),hRe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=wn();return y.jsx(Jt,{title:y.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:y.jsxs(F_,{children:[y.jsxs("dl",{className:"m-0 me-3",children:[y.jsx("dt",{children:"Delete visits."}),y.jsxs("dd",{className:"m-0",children:["This will delete ",y.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&y.jsx(yt,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&y.jsxs(yt,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:a=>{a==null||a.focus()},children:[!n&&y.jsx(y.Fragment,{children:"Click again to confirm"}),n&&y.jsx(y.Fragment,{children:"Deleting..."})]})]})})},gy="Others",pRe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],mRe=e=>{if(!$u(e))return{browser:gy,os:gy};const{browser:{name:t},os:{name:n}}=nAe.parse(e);return{os:n??gy,browser:t&&pRe.includes(t)?t:gy}},vRe=e=>{var t;return $u(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},LW=(e,t)=>e[t]!==void 0,eU=e=>typeof e=="number"?e:e?parseFloat(e):0,gRe=(e,{os:t})=>{e[t]=(e[t]||0)+1},yRe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},bRe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},DW=e=>(t,n)=>{const r=LW(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},_Re=DW("country"),xRe=DW("city"),wRe=(e,t)=>{if(!LW(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,a=e[n]||{cityName:n,count:0,latLong:[eU(r),eU(i)]};a.count+=1,e[n]=a},ORe=(e,t)=>{if(!aRe(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},aj=e=>e.reduce((t,n)=>(gRe(t.os,n),yRe(t.browsers,n),bRe(t.referrers,n),_Re(t.countries,n),xRe(t.cities,n),wRe(t.citiesForMap,n),ORe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),T0=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:a,potentialBot:o}=t;return{date:r,potentialBot:o,userAgent:n,...mRe(n),referer:vRe(i),country:(a==null?void 0:a.countryName)||"Unknown",city:(a==null?void 0:a.cityName)||"Unknown",latitude:a==null?void 0:a.latitude,longitude:a==null?void 0:a.longitude,visitedUrl:t.visitedUrl,type:G3(t)?t.type:void 0}}),SRe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:T0,processStatsFromVisits:aj},Symbol.toStringTag,{value:"Module"})),Tp=20,ERe=({browser:e,os:t,referer:n,country:r,city:i,userAgent:a,...o},l,f)=>{const c=f?a:`${r} ${i}`;return`${e} ${t} ${n} ${c} ${o.visitedUrl}`.toLowerCase().includes(l.toLowerCase())},TRe=(e,t,n)=>t.filter(r=>ERe(r,e,n)),CRe=(e,t)=>M9(t,e),ARe=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?TRe(t,e,r):[...e],a=CRe(n,i),o=a.length;return{visitsGroups:kf(a,Tp),total:o}},Ya="visits-table__header-cell visits-table__sticky",jRe=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia})=>{var i;const a=R3(767,r),[o,l]=I.useState(),f=I.useCallback(U=>{l(U),O(1),n([])},[n]),[c,h]=I.useState({}),[m,g]=wn(),x=I.useCallback(()=>{g(),h({})},[g]),_=I.useMemo(()=>ARe({visits:e,searchTerm:o,order:c,searchInRawUserAgent:m}),[e,o,c,m]),[w,O]=I.useState(1),S=w*Tp,T=S-Tp,A=I.useMemo(()=>{var U,z;return!!((z=(U=_.visitsGroups[w-1])==null?void 0:U[0])!=null&&z.visitedUrl)},[w,_.visitsGroups]),j=6+Number(A)+(m?1:2),P=_.total>0,R=U=>h({field:U,dir:iv(U,c.field,c.dir)}),D=U=>y.jsx(Hp,{currentOrder:c,field:U,className:"visits-table__header-icon"});return y.jsx(Jt,{className:"mt-3",bodyClassName:"p-0 pb-1",title:y.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:["Visits list",y.jsx(ss,{checked:m,onChange:x,children:"Show user agent"})]}),children:y.jsx("div",{className:"table-responsive-md",children:y.jsxs("table",{className:Ve("table table-sm position-relative m-0 visits-table",{"table-hover":P}),children:[y.jsxs("thead",{className:"visits-table__header",children:[y.jsxs("tr",{children:[y.jsxs("th",{className:`${Ya} text-center`,onClick:()=>n(t.length<_.total?_.visitsGroups.flat():[]),children:[y.jsx("span",{className:"sr-only",children:"Is selected"}),y.jsx(Ke,{icon:Gp,className:Ve({"text-primary":t.length>0})})]}),y.jsxs("th",{className:`${Ya} text-center`,onClick:()=>R("potentialBot"),children:[y.jsx("span",{className:"sr-only",children:"Is bot"}),y.jsx(Ke,{icon:v4}),D("potentialBot")]}),y.jsxs("th",{className:Ya,onClick:()=>R("date"),children:["Date",D("date")]}),y.jsxs("th",{className:Ya,onClick:()=>R("country"),children:["Country",D("country")]}),y.jsxs("th",{className:Ya,onClick:()=>R("city"),children:["City",D("city")]}),m?y.jsxs("th",{className:Ya,onClick:()=>R("userAgent"),children:["User agent",D("userAgent")]}):y.jsxs(y.Fragment,{children:[y.jsxs("th",{className:Ya,onClick:()=>R("browser"),children:["Browser",D("browser")]}),y.jsxs("th",{className:Ya,onClick:()=>R("os"),children:["OS",D("os")]})]}),y.jsxs("th",{className:Ya,onClick:()=>R("referer"),children:["Referrer",D("referer")]}),A&&y.jsxs("th",{className:Ya,onClick:()=>R("visitedUrl"),children:["Visited URL",D("visitedUrl")]})]}),y.jsx("tr",{children:y.jsx("td",{colSpan:j,className:"p-0",children:y.jsx(rv,{noBorder:!0,large:!1,onChange:f})})})]}),y.jsxs("tbody",{children:[!P&&y.jsx("tr",{children:y.jsx("td",{colSpan:j,className:"text-center",children:"There are no visits matching current filter"})}),(i=_.visitsGroups[w-1])==null?void 0:i.map((U,z)=>{const F=t.includes(U);return y.jsxs("tr",{style:{cursor:"pointer"},className:Ve({"table-active":F}),onClick:()=>n(F?t.filter(V=>V!==U):[...t,U]),children:[y.jsx("td",{className:"text-center",children:F&&y.jsx(Ke,{icon:Gp,className:"text-primary"})}),y.jsx("td",{className:"text-center",children:U.potentialBot&&y.jsxs(y.Fragment,{children:[y.jsx(Ke,{icon:v4,id:`botIcon${z}`}),y.jsx(Mi,{placement:"right",target:`botIcon${z}`,children:"Potentially a visit from a bot or crawler"})]})}),y.jsx("td",{children:y.jsx(w0,{date:U.date})}),y.jsx("td",{children:U.country}),y.jsx("td",{children:U.city}),m?y.jsx("td",{children:U.userAgent}):y.jsxs(y.Fragment,{children:[y.jsx("td",{children:U.browser}),y.jsx("td",{children:U.os})]}),y.jsx("td",{children:U.referer}),U.visitedUrl&&y.jsx("td",{children:U.visitedUrl})]},z)})]}),_.total>Tp&&y.jsx("tfoot",{children:y.jsx("tr",{children:y.jsx("td",{colSpan:j,className:"visits-table__footer-cell visits-table__sticky",children:y.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-center gap-3 p-2",children:[y.jsx(V3,{pagesCount:Math.ceil(_.total/Tp),currentPage:w,onPageChange:O,centered:a}),y.jsxs("div",{children:["Visits ",y.jsx("b",{children:Mn(T+1)})," to"," ",y.jsx("b",{children:Mn(Math.min(S,_.total))})," of"," ",y.jsx("b",{children:Mn(_.total)})]})]})})})})]})})})},bl={byTime:{title:"By time",subPath:"by-time",icon:WX},byContext:{title:"By context",subPath:"by-context",icon:Ej},byLocation:{title:"By location",subPath:"by-location",icon:NE},list:{title:"List",subPath:"list",icon:Oj},options:{title:"Options",subPath:"options",icon:nB,shouldRender:({deletion:e})=>!!e}};Object.freeze(bl);const TE=({display:e})=>e&&y.jsx("div",{className:"mt-3 mx-auto w-75",children:y.jsx(Jt,{children:y.jsxs("div",{className:"d-flex gap-2",children:[y.jsx(Ke,{icon:qQ,className:"mt-1"}),y.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})}),_v=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:a,exportCsv:o,isOrphanVisits:l=!1}=e,{visits:f,prevVisits:c,loading:h,errorData:m,fallbackInterval:g}=n,[{dateRange:x,visitsFilter:_,loadPrevInterval:w},O]=PW(),S=Wr("visits"),[T,A]=I.useState(),j=I.useCallback(({startDate:K,endDate:ce},ae)=>{O({dateRange:{startDate:K??void 0,endDate:ce??void 0}}),A(ae)},[O]),[P,R]=I.useState(g??(S==null?void 0:S.defaultInterval)??"last30Days"),[D,U]=I.useState([]),[z,F]=I.useState(),V=I.useRef(!0),{search:H}=Pr(),te=I.useCallback(K=>K?`../${K}${H}`:H,[H]),ee=I.useMemo(()=>T0(f),[f]),re=I.useMemo(()=>c&&T0(c),[c]),{os:Q,browsers:oe,referrers:le,countries:X,cities:$,citiesForMap:G,visitedUrls:se}=I.useMemo(()=>aj(ee),[ee]),Z=I.useMemo(()=>aj(re??[]),[re]),ue=I.useMemo(()=>Object.fromEntries([["Visits",Object.assign(ee,{type:"main"})],re&&["Previous period",Object.assign(re,{type:"previous"})],D.length>0&&[z??"Selected",Object.assign(D,{type:"highlighted"})]].filter(Boolean)),[z,D,re,ee]),fe=I.useMemo(()=>({..._,excludeBots:_.excludeBots??(S==null?void 0:S.excludeBots),loadPrevInterval:w??(S==null?void 0:S.loadPrevInterval)}),[w,_,S==null?void 0:S.excludeBots,S==null?void 0:S.loadPrevInterval]),de=I.useMemo(()=>Object.values(G),[G]),Se=I.useRef(void 0),k=I.useCallback(K=>{Se.current=void 0,U(K)},[]),B=I.useCallback((K,ce)=>{const ae=`${K}_${ce}`;Se.current===ae?(U([]),F(void 0),Se.current=void 0):(U(ee.filter(pe=>pe[K]===ce)),F(ce),Se.current=ae)},[ee]);return I.useEffect(()=>i,[i]),I.useEffect(()=>{const K=x??QH(P),{loadPrevInterval:ce,...ae}=fe,pe={doIntervalFallback:V.current,loadPrevInterval:ce};r({dateRange:K,filter:ae},pe),k([]),V.current=!1},[P,x,r,fe,k]),I.useEffect(()=>{g&&P===((S==null?void 0:S.defaultInterval)??"last30Days")&&R(g)},[P,g,S==null?void 0:S.defaultInterval]),y.jsxs(y.Fragment,{children:[t,y.jsx("section",{className:"mt-3",children:y.jsxs("div",{className:"row flex-md-row-reverse",children:[y.jsx("div",{className:"col-lg-7 col-xl-6",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(F3,{disabled:h,dateRangeOrInterval:T??x??P,defaultText:"All visits",onDatesChange:j})}),y.jsx(MW,{disabled:h,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:l,withPrevInterval:!0,selected:fe,onChange:({loadPrevInterval:K,...ce})=>O({visitsFilter:ce,loadPrevInterval:K})})]})}),f.length>0&&y.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:y.jsxs("div",{className:"d-flex",children:[y.jsx(LH,{className:"btn-md-block",amount:ee.length,onClick:()=>o(ee)}),y.jsxs(yt,{outline:!0,disabled:D.length===0,className:"btn-md-block ms-2",onClick:()=>k([]),children:["Clear selection ",D.length>0&&y.jsxs(y.Fragment,{children:["(",Mn(D.length),")"]})]})]})})]})}),y.jsxs("section",{className:"mt-3",children:[y.jsx(NW,{info:n}),!h&&!m&&y.jsxs(y.Fragment,{children:[y.jsx(R9,{fill:!0,children:Object.values(bl).map(({title:K,icon:ce,subPath:ae,shouldRender:pe},Te)=>!pe||pe(e)?y.jsxs(Np,{to:te(ae),replace:!0,children:[y.jsx(Ke,{icon:ce}),y.jsx("span",{className:"ms-2 d-none d-lg-inline",children:K})]},Te):void 0).filter(Boolean)}),y.jsx(Qa,{children:y.jsxs(R0,{children:[y.jsx(xt,{path:bl.byTime.subPath,element:y.jsxs(Ny,{showFallback:f.length===0,children:[y.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:y.jsx(TW,{visitsGroups:ue,setSelectedVisits:k,onDateRangeChange:j})}),y.jsx(TE,{display:!!fe.loadPrevInterval&&!c})]})}),y.jsx(xt,{path:bl.byContext.subPath,element:y.jsxs(Ny,{showFallback:f.length===0,children:[y.jsx("div",{className:Ve("mt-3 col-lg-6",{"col-xl-4":!l}),children:y.jsx(K7,{title:"Operating systems",stats:Q,prevStats:Z.os})}),y.jsx("div",{className:Ve("mt-3 col-lg-6",{"col-xl-4":!l}),children:y.jsx(K7,{title:"Browsers",stats:oe,prevStats:Z.browsers})}),y.jsx("div",{className:Ve("mt-3",{"col-xl-4":!l,"col-lg-6":l}),children:y.jsx(my,{title:"Referrers",withPagination:!1,stats:le,prevStats:Z.referrers,highlightedStats:vy(D,"referer"),highlightedLabel:z,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:K=>B("referer",K)})}),l&&y.jsx("div",{className:"mt-3 col-lg-6",children:y.jsx(my,{title:"Visited URLs",stats:se,prevStats:Z.visitedUrls,highlightedStats:vy(D,"visitedUrl"),highlightedLabel:z,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:K=>B("visitedUrl",K)})}),y.jsx("div",{className:"col-12",children:y.jsx(TE,{display:!!fe.loadPrevInterval&&!c})})]})}),y.jsx(xt,{path:bl.byLocation.subPath,element:y.jsxs(Ny,{showFallback:f.length===0,children:[y.jsx("div",{className:"col-lg-6 mt-3",children:y.jsx(my,{title:"Countries",stats:X,prevStats:Z.countries,highlightedStats:vy(D,"country"),highlightedLabel:z,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:K=>B("country",K)})}),y.jsx("div",{className:"col-lg-6 mt-3",children:y.jsx(my,{title:"Cities",stats:$,prevStats:Z.cities,highlightedStats:vy(D,"city"),highlightedLabel:z,extraHeaderContent:K=>de.length>0&&y.jsx(dRe,{modalTitle:"Cities",locations:de,activeCities:K}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:K=>B("city",K)})}),y.jsx("div",{className:"col-12",children:y.jsx(TE,{display:!!fe.loadPrevInterval&&!c})})]})}),y.jsx(xt,{path:bl.list.subPath,element:y.jsx("div",{className:"col-12",children:y.jsx(jRe,{visits:ee,selectedVisits:D,setSelectedVisits:k})})}),a&&y.jsx(xt,{path:bl.options.subPath,element:y.jsx("div",{className:"col-12 mt-3",children:y.jsx(hRe,{...a})})}),y.jsx(xt,{path:"*",element:y.jsx(hj,{replace:!0,to:te(bl.byTime.subPath)})})]})})]})]})]})},kW=Ma(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=On(kW),{domain:i=""}=Md(),[a,o=a]=i.split("_"),l=I.useCallback((c,h)=>e({domain:o,options:h,params:c}),[o,e]),f=I.useCallback(c=>r.exportVisits(`domain_${a}_visits.csv`,c),[a,r]);return y.jsx(_v,{getVisits:l,cancelGetVisits:n,visitsInfo:t,exportCsv:f,children:y.jsx(bv,{visits:t.visits,title:`"${a}" visits`})})},()=>[Hr.visits]),PRe=Sn(kW,["ReportExporter"]),IW=Ma(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=On(IW),i=I.useCallback(o=>r.exportVisits("non_orphan_visits.csv",o),[r]),a=I.useCallback((o,l)=>e({options:l,params:o}),[e]);return y.jsx(_v,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:y.jsx(bv,{title:"Non-orphan visits",visits:t.visits})})},()=>[Hr.visits]),RRe=Sn(IW,["ReportExporter"]),$W=Ma(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const a=Ea("orphanVisitsDeletion"),{ReportExporter:o}=On($W),l=I.useCallback(h=>o.exportVisits("orphan_visits.csv",h),[o]),f=I.useCallback((h,m)=>{var g;return e({options:m,params:h,orphanVisitsType:(g=h.filter)==null?void 0:g.orphanVisitsType})},[e]),c=I.useMemo(()=>a?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,a]);return y.jsx(_v,{getVisits:f,cancelGetVisits:n,visitsInfo:t,exportCsv:l,deletion:c,isOrphanVisits:!0,children:y.jsx(bv,{title:"Orphan visits",visits:t.visits})})},()=>[Hr.orphanVisits]),MRe=Sn($W,["ReportExporter"]),tU=5e3,NRe=2,LRe=4,DRe=({currentPage:e,pagesCount:t})=>e>=t,kRe=(e,t)=>t*100/e,UW=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(o,l)=>Promise.all(l.map(async f=>e({...o,page:f,itemsPerPage:tU}).then(({data:c})=>c))).then(f=>f.flat()),a=async(o,l,f=0)=>{if(t())return[];const c=await i(o,l[f]);return n(kRe(l.length,f+1)),f<l.length-1?c.concat(await a(o,l,f+1)):c};return async o=>{const{pagination:l,data:f}=await e({...o,page:1,itemsPerPage:tU});if(DRe(l))return f;const c=cP(NRe,l.pagesCount+1),h=kf(c,r);return l.pagesCount-1>r&&n(0),f.concat(await a(o,h))}},xv=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),wv=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=qr(`${e}/progressChanged`),i=qr(`${e}/fallbackToInterval`),a=Zn(e,async(o,{getState:l,dispatch:f})=>{var c;const{params:h,options:m}=o,{visitsLoader:g,lastVisitLoader:x}=t(o),_=JPe(h.dateRange),w=ij(h),O=m.loadPrevInterval&&lRe(h)?ij(uRe(h)):void 0,S=LRe/(O?2:1),T=O?{main:0,prev:0}:{main:0},A=(U,z)=>{T[U]=z;const F=Object.values(T),V=F.reduce((H,te)=>H+te,0);f(r(V/F.length))},j=UW({visitsLoader:g,shouldCancel:()=>n(l),progressChanged:U=>A("main",U),batchSize:S}),[P,R,D]=await Promise.all([j(w),x((c=h.filter)==null?void 0:c.excludeBots),O?j(O).then(U=>U.map(z=>{if(_===void 0)return z;const{date:F,...V}=z,H=pP(Ei(F),_);return{...V,date:Bl(H)}})):Promise.resolve(void 0)]);return!P.length&&R&&f(i(XPe(R.date))),{...o,visits:P,prevVisits:D}});return Object.assign(a,{progressChanged:r,fallbackToInterval:i})},Ov=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:a,rejected:o,fulfilled:l,progressChanged:f,fallbackToInterval:c}=t,{reducer:h,actions:m}=In({name:e,initialState:n,reducers:{cancelGetVisits:x=>({...x,cancelLoad:!0})},extraReducers:x=>{x.addCase(a,()=>({...n,loading:!0})),x.addCase(o,(_,{error:w})=>({...n,errorData:Ni(w)??null})),x.addCase(l,(_,{payload:w})=>({..._,...w,loading:!1,progress:null,errorData:null})),x.addCase(f,(_,{payload:w})=>({..._,progress:w})),x.addCase(c,(_,{payload:w})=>({..._,fallbackInterval:w})),x.addCase(Yd,(_,{payload:w})=>{const{visits:O}=_,S=r(_,w.createdVisits).map(({visit:T})=>T);return S.length?{..._,visits:[...S,...O]}:_}),i==null||i(x)}}),{cancelGetVisits:g}=m;return{reducer:h,cancelGetVisits:g}},BW="shlink/domainVisits",IRe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},$Re=e=>wv({typePrefix:`${BW}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=l=>r.getDomainVisits(t,l),o=xv(i,l=>r.getDomainVisits(t,l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().domainVisits.cancelLoad}),URe=e=>Ov({name:BW,initialState:IRe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>AW(r,t,n==null?void 0:n.dateRange)}),FW="shlink/orphanVisits",BRe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},FRe=e=>wv({typePrefix:`${FW}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async o=>n.getNonOrphanVisits(o),a=xv(r,o=>n.getNonOrphanVisits(o));return{visitsLoader:i,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),zRe=e=>Ov({name:FW,initialState:BRe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:a})=>yv(a.date,r,i))}}),zW="shlink/orphanVisits",qRe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},VRe=(e,t)=>!t||t===e.type,HRe=({data:e,...t},n)=>{const r=e.filter(i=>G3(i)&&VRe(i,n));return{...t,data:r}},WRe=e=>wv({typePrefix:`${zW}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=async l=>r.getOrphanVisits({...l,type:t}).then(f=>HRe(f,t)),o=xv(i,l=>r.getOrphanVisits(l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),GRe=(e,t)=>Ov({name:zW,initialState:qRe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:a}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:o,shortUrl:l})=>!l&&yv(o.date,i,a))}}),qW="shlink/orphanVisitsDeletion",nU={deletedVisits:0,deleting:!1,error:!1},YRe=e=>Zn(`${qW}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),KRe=e=>In({name:qW,initialState:nU,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Ni(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...nU,deletedVisits:i}})}}),VW="shlink/shortUrlVisits",ZRe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},XRe=e=>wv({typePrefix:`${VW}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:a=!1}=r,o=f=>i.getShortUrlVisits({shortCode:t,domain:n},f),l=xv(a,f=>i.getShortUrlVisits({shortCode:t,domain:n},f));return{visitsLoader:o,lastVisitLoader:l}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),QRe=(e,t)=>Ov({name:VW,initialState:ZRe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},a)=>CW(a,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),HW="shlink/shortUrlVisitsDeletion",rU={shortCode:"",deletedVisits:0,deleting:!1,error:!1},JRe=e=>Zn(`${HW}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits({shortCode:t,domain:n}),shortCode:t,domain:n})),eMe=e=>In({name:HW,initialState:rU,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Ni(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:a,deletedVisits:o}=r;return{...rU,shortCode:i,domain:a,deletedVisits:o}})}}),WW="shlink/tagVisits",tMe={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},nMe=e=>wv({typePrefix:`${WW}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=l=>r.getTagVisits(t,l),o=xv(i,async l=>r.getTagVisits(t,l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().tagVisits.cancelLoad}),rMe=e=>Ov({name:WW,initialState:tMe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>jW(r,t,n==null?void 0:n.dateRange)}),GW="shlink/visitsOverview",yy={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},iU=e=>e.filter(({visit:t})=>t.potentialBot).length,iMe=e=>Zn(`${GW}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),aMe=e=>In({name:GW,initialState:yy,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...yy,loading:!0})),t.addCase(e.rejected,()=>({...yy,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...yy,...r})),t.addCase(Yd,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:a})=>{const{nonOrphanVisits:o,orphanVisits:l}=oRe(a.createdVisits),f=o.length,c=iU(o),h=f-c,m=l.length,g=iU(l),x=m-g;return{...i,nonOrphanVisits:{total:n.total+f,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+h},orphanVisits:{total:r.total+m,bots:r.bots&&r.bots+g,nonBots:r.nonBots&&r.nonBots+x}}})}}),oMe=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",a=(e==null?void 0:e.longUrl)??"",o=e==null?void 0:e.title;return y.jsxs(bv,{title:y.jsxs(y.Fragment,{children:["Visits for ",y.jsx(ni,{href:i})]}),visits:r,shortUrl:e,children:[y.jsx("hr",{}),y.jsxs("div",{children:["Created: ",e?y.jsxs("span",{children:[y.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:y.jsx(w0,{date:e.dateCreated,relative:!0})}),y.jsx(Mi,{placement:"bottom",target:"created",children:y.jsx(w0,{date:e.dateCreated})})]}):y.jsx("small",{children:"Loading..."})]}),y.jsxs("div",{className:"long-url-container",children:[`${o?"Title":"Long URL"}: `,t&&y.jsx("small",{children:"Loading..."}),!t&&y.jsx(ni,{href:a,children:o??a})]})]})},YW=Ma(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:a,cancelGetShortUrlVisits:o})=>{const l=Ea("shortUrlVisitsDeletion"),{ReportExporter:f}=On(YW),c=I3(),h=I.useMemo(()=>{var _;return(_=n.shortUrls)==null?void 0:_.get(c)},[c,n.shortUrls]),m=I.useCallback((_,w)=>r({...c,options:w,params:_}),[r,c]),g=I.useCallback(_=>f.exportVisits(`short-url_${h==null?void 0:h.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,_),[f,h==null?void 0:h.shortUrl]),x=I.useMemo(()=>l?{deleteVisits:()=>a(c),visitsDeletion:t}:void 0,[a,c,t,l]);return I.useEffect(()=>{i([c])},[c,i]),y.jsx(_v,{getVisits:m,cancelGetVisits:o,visitsInfo:e,exportCsv:g,deletion:x,children:y.jsx(oMe,{shortUrl:h,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[Hr.shortUrlVisits(M3(e.shortCode))]:[]),sMe=Sn(YW,["ReportExporter"]),lMe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return y.jsx(bv,{title:y.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[y.jsx("span",{className:"me-2",children:"Visits for"}),y.jsx(U_,{text:r,colorGenerator:t})]}),visits:n})},KW=Ma(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=On(KW),{tag:a=""}=Md(),o=I.useCallback((f,c)=>e({tag:a,params:f,options:c}),[e,a]),l=I.useCallback(f=>i.exportVisits(`tag_${a}_visits.csv`,f),[i,a]);return y.jsx(_v,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:l,children:y.jsx(lMe,{tagVisits:t,colorGenerator:r})})},()=>[Hr.visits]),uMe=Sn(KW,["ColorGenerator","ReportExporter"]),Y3=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:a,visitsGroups:o}=r,l=Wr("visits"),f=I.useMemo(()=>Object.keys(o).reduce((T,A,j)=>(T[A]=Object.assign(T0(o[A]),{color:(t==null?void 0:t[A])??SW(j)}),T),{}),[t,o]),c=I.useMemo(()=>Object.values(o).every(T=>T.length===0),[o]),[{dateRange:h,visitsFilter:m},g]=PW(),[x,_]=I.useState(),w=I.useCallback(({startDate:T,endDate:A},j)=>{g({dateRange:{startDate:T??void 0,endDate:A??void 0}}),_(j)},[g]),[O]=I.useState(()=>h??(l==null?void 0:l.defaultInterval)??"last30Days"),S=I.useMemo(()=>({...m,excludeBots:m.excludeBots??(l==null?void 0:l.excludeBots)}),[m,l==null?void 0:l.excludeBots]);return I.useEffect(()=>{const T=h??QH(O);return n({params:{dateRange:T,filter:S}}),i},[i,h,n,O,S]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"mb-3",children:y.jsxs(Jt,{bodyClassName:"d-flex",children:[y.jsx($_,{}),y.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),y.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(F3,{disabled:a,defaultText:"All visits",dateRangeOrInterval:x??h??O,onDatesChange:w})}),y.jsx(MW,{disabled:a,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:S,onChange:({orphanVisitsType:T,excludeBots:A})=>g({visitsFilter:{orphanVisitsType:T,excludeBots:A}})})]})}),y.jsx(NW,{info:r}),!a&&y.jsx(Ny,{showFallback:c,children:y.jsx(TW,{visitsGroups:f,onDateRangeChange:w})})]})},cMe=Ma(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=P3("domains"),i=I.useCallback(a=>e({...a,domains:r}),[r,e]);return y.jsx(Y3,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[Hr.visits]),fMe=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),a=Object.fromEntries(r.map(f=>[f,0])),o=(f,c)=>{a[f]=c;const h=Object.values(a),m=h.reduce((g,x)=>g+x,0);n(m/h.length)},l=Object.entries(e).map(([f,c])=>[f,UW({visitsLoader:c,batchSize:i,shouldCancel:t,progressChanged:h=>o(f,h)})]);return async f=>{const c=await Promise.all(l.map(async([h,m])=>{const g=await m(f);return[h,g]}));return Object.fromEntries(c)}},K3=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=qr(`${e}/progressChanged`),i=Zn(e,async(a,{getState:o,dispatch:l})=>{const f=t(a),c=await fMe({visitsLoaders:f,shouldCancel:()=>n(o),progressChanged:h=>l(r(h))})(ij(a.params));return{...a,visitsGroups:c}});return Object.assign(i,{progressChanged:r})},Z3=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:a,fulfilled:o,progressChanged:l}=t,{reducer:f,actions:c}=In({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(a,(g,{error:x})=>({...n,errorData:Ni(x)??null})),m.addCase(o,(g,{payload:x})=>({...g,...x,loading:!1,progress:null,errorData:null})),m.addCase(l,(g,{payload:x})=>({...g,progress:x})),m.addCase(Yd,(g,{payload:x})=>{const{visitsGroups:_,...w}=g,O=Object.keys(_).map(T=>{const A=r({...w,groupKey:T},x.createdVisits).map(({visit:j})=>j);return[T,[...A,..._[T]]]}),S=Object.fromEntries(O);return{...w,visitsGroups:S}})}}),{cancelGetVisits:h}=c;return{reducer:f,cancelGetVisits:h}},ZW="shlink/domainVisitsComparison",dMe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},hMe=e=>K3({typePrefix:`${ZW}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,a=>n.getDomainVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),pMe=e=>Z3({name:ZW,initialState:dMe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>AW(r,t,n==null?void 0:n.dateRange)}),XW="shlink/shortUrlVisitsComparison",mMe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},vMe=e=>K3({typePrefix:`${XW}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[N3(i),a=>n.getShortUrlVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),gMe=e=>Z3({name:XW,initialState:mMe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>CW(r,lH(t),n==null?void 0:n.dateRange)}),QW="shlink/tagVisitsComparison",yMe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},bMe=e=>K3({typePrefix:`${QW}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,a=>n.getTagVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),_Me=e=>Z3({name:QW,initialState:yMe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>jW(r,t,n==null?void 0:n.dateRange)}),xMe=Ma(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const a=P3("short-urls"),o=I.useMemo(()=>a.map(lH),[a]),l=I.useCallback(h=>e({...h,shortUrls:o}),[e,o]),f=I.useMemo(()=>{var h;return[...((h=r.shortUrls)==null?void 0:h.values())??[]]},[r.shortUrls]),c=I.useMemo(()=>{const{visitsGroups:h,loading:m,...g}=t,x=f.reduce((_,w)=>(_[w.shortUrl]=h[N3(w)]??[],_),{});return{...g,visitsGroups:x,loading:m||r.loading}},[t,r.loading,f]);return I.useEffect(()=>{o.length>0&&i(o)},[i,o]),y.jsx(Y3,{title:y.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${f.length} short URLs`}),getVisitsForComparison:l,visitsComparisonInfo:c,cancelGetVisitsComparison:n})},()=>[Hr.visits]),JW=Ma(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=On(JW),i=P3("tags"),a=I.useCallback(f=>e({...f,tags:i}),[e,i]),{visitsGroups:o}=t,l=I.useMemo(()=>Object.keys(o).reduce((f,c)=>(f[c]=r.getColorForKey(c),f),{}),[r,o]);return y.jsx(Y3,{title:y.jsxs(y.Fragment,{children:["Comparing ",i.map(f=>y.jsx(U_,{colorGenerator:r,text:f},f))]}),getVisitsForComparison:a,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:l})},()=>[Hr.visits]),wMe=Sn(JW,["ColorGenerator"]),OMe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>RW),e.factory("ShortUrlVisits",sMe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",uMe),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",wMe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>cMe),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>xMe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",PRe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",MRe),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",RRe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>SRe),e.serviceFactory("getShortUrlVisits",XRe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",vMe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",JRe,"apiClientFactory"),e.serviceFactory("getTagVisits",nMe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",bMe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",$Re,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",hMe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",WRe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",YRe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",FRe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Yd),e.serviceFactory("loadVisitsOverview",iMe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",aMe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",URe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",zRe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",GRe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",KRe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",QRe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",eMe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",rMe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",_Me,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",pMe,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",gMe,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},pp=({children:e,to:t,className:n,...r})=>y.jsx(vj,{className:({isActive:i})=>Ve("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),SMe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Pr(),r=Ve("aside-menu",{"aside-menu--hidden":!t}),i=a=>`${e}${a}`;return y.jsx("aside",{className:r,children:y.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[y.jsxs(pp,{to:i("/overview"),children:[y.jsx(Ke,{fixedWidth:!0,icon:wQ}),y.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),y.jsxs(pp,{to:i("/list-short-urls/1"),className:Ve({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[y.jsx(Ke,{fixedWidth:!0,icon:Oj}),y.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),y.jsxs(pp,{to:i("/create-short-url"),children:[y.jsx(Ke,{fixedWidth:!0,icon:AQ,flip:"horizontal"}),y.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),y.jsxs(pp,{to:i("/manage-tags"),children:[y.jsx(Ke,{fixedWidth:!0,icon:JU}),y.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),y.jsxs(pp,{to:i("/manage-domains"),children:[y.jsx(Ke,{fixedWidth:!0,icon:tQ}),y.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},eG=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:a,DomainVisits:o,OrphanVisits:l,NonOrphanVisits:f,Overview:c,EditShortUrl:h,ManageDomains:m,TagVisitsComparison:g,DomainVisitsComparison:x,ShortUrlVisitsComparison:_,ShortUrlRedirectRules:w}=On(eG),O=Pr(),S=Zl(),[T,A,j,P]=wn();I.useEffect(()=>P(),[O,P]);const R=Ve("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":T}),D=vAe(j,P),U=Ea("shortUrlRedirectRules");return y.jsxs(y.Fragment,{children:[y.jsx(Ke,{icon:ZX,className:R,onClick:A}),y.jsx("div",{...D,className:"shlink-layout__swipeable",children:y.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[y.jsx(SMe,{routePrefix:S,showOnMobile:T}),y.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>P(),children:y.jsx("div",{className:"container-xl",children:y.jsxs(R0,{children:[y.jsx(xt,{index:!0,element:y.jsx(hj,{replace:!0,to:"overview"})}),y.jsx(xt,{path:"/overview",element:y.jsx(c,{})}),y.jsx(xt,{path:"/list-short-urls/:page",element:y.jsx(n,{})}),y.jsx(xt,{path:"/create-short-url",element:y.jsx(r,{})}),y.jsx(xt,{path:"/short-code/:shortCode/visits",children:["","*"].map(z=>y.jsx(xt,{path:z,element:y.jsx(i,{})},z))}),y.jsx(xt,{path:"/short-code/:shortCode/edit",element:y.jsx(h,{})}),U&&y.jsx(xt,{path:"/short-code/:shortCode/redirect-rules",element:y.jsx(w,{})}),y.jsx(xt,{path:"/short-urls/compare-visits",element:y.jsx(_,{})}),y.jsx(xt,{path:"/tag/:tag/visits",children:["","*"].map(z=>y.jsx(xt,{path:z,element:y.jsx(a,{})},z))}),y.jsx(xt,{path:"/tags/compare-visits",element:y.jsx(g,{})}),y.jsx(xt,{path:"/domain/:domain/visits",children:["","*"].map(z=>y.jsx(xt,{path:z,element:y.jsx(o,{})},z))}),y.jsx(xt,{path:"/orphan-visits",children:["","*"].map(z=>y.jsx(xt,{path:z,element:y.jsx(l,{})},z))}),y.jsx(xt,{path:"/non-orphan-visits",children:["","*"].map(z=>y.jsx(xt,{path:z,element:y.jsx(f,{})},z))}),y.jsx(xt,{path:"/manage-tags",element:y.jsx(t,{})}),y.jsx(xt,{path:"/manage-domains",element:y.jsx(m,{})}),y.jsx(xt,{path:"/domains/compare-visits",element:y.jsx(x,{})}),e&&y.jsx(xt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},EMe=Sn(eG,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),TMe=e=>H9({devTools:!1,reducer:oP({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlsDetails:e.shortUrlsDetailsReducer,shortUrlVisits:e.shortUrlVisitsReducer,shortUrlVisitsDeletion:e.shortUrlVisitsDeletionReducer,shortUrlVisitsComparison:e.shortUrlVisitsComparisonReducer,tagVisits:e.tagVisitsReducer,tagVisitsComparison:e.tagVisitsComparisonReducer,domainVisits:e.domainVisitsReducer,domainVisitsComparison:e.domainVisitsComparisonReducer,orphanVisits:e.orphanVisitsReducer,orphanVisitsDeletion:e.orphanVisitsDeletionReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,shortUrlRedirectRules:e.shortUrlRedirectRulesReducer,shortUrlRedirectRulesSaving:e.setShortUrlRedirectRulesReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),CMe=e=>{e.factory("Main",EMe),e.factory("store",TMe)},Na=new GU,{container:AMe}=Na,jMe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),PMe=(e,t)=>(...n)=>e[t](...n),RMe=(e,t)=>({...e,[t]:PMe(AMe,t)}),Zd=(e,t=[])=>_U(e?jMe(e):null,t.reduce(RMe,{}));CMe(Na);c3e(Na,Zd);N3e(Na,Zd);OMe(Na,Zd);PAe(Na);CAe(Na,Zd);zAe(Na,Zd);B3e(Na);fPe(Na,Zd);let aU;const MMe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:a,tagColorsStorage:o})=>{const l=dAe(t),f=I.useRef(void 0),[c,h]=I.useState(),m=dc(),g=I.useMemo(()=>m?I.Fragment:LU,[m]);return I.useEffect(()=>{aU=n,e.value("apiClientFactory",()=>aU),o&&e.value("TagColorsStorage",o);const{container:x}=e,{Main:_,store:w,loadMercureInfo:O,listTags:S,listDomains:T}=x;f.current=y.jsx(_,{createNotFound:a}),h(w),w.dispatch(O(r)),w.dispatch(S()),w.dispatch(T())},[n,a,r,o]),c?y.jsx(xU,{store:c,children:y.jsx(rF,{value:r??{},children:y.jsx(fAe,{value:l,children:y.jsx(lAe,{value:i,children:y.jsx(g,{children:f.current})})})})}):y.jsx(y.Fragment,{})},NMe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",LMe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",DMe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",kMe=()=>{delete g7.Icon.Default.prototype._getIconUrl,g7.Icon.Default.mergeOptions({iconRetinaUrl:LMe,iconUrl:NMe,shadowUrl:DMe})};kMe();const IMe=MMe(Na);function C0(e){return t=>{const{resetSelectedServer:n}=t;return I.useEffect(()=>{n()},[n]),y.jsx(e,{...t})}}let $Me=class extends I.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return y.jsx("div",{className:"home",children:y.jsxs(Jt,{className:"p-4",children:[y.jsx("h1",{children:"Oops! This is awkward :S"}),y.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),y.jsx("br",{}),y.jsx(yt,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const UMe=({id:e,name:t})=>y.jsxs(S9,{tag:tn,to:`/server/${e}`,className:"servers-list__server-item",children:[t,y.jsx(Ke,{icon:NQ,className:"servers-list__server-item-icon"})]}),tG=({servers:e,children:t,embedded:n=!1})=>y.jsxs(y.Fragment,{children:[t&&y.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&y.jsx(w9,{"data-testid":"list",tag:"div",className:Ve("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>y.jsx(UMe,{id:r,name:i},r))})]}),nG=({color:e=nm,className:t})=>y.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{fill:e,children:[y.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),y.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),y.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),y.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})}),BMe=({servers:e})=>{const t=ho(),n=Object.values(e),r=n.length>0;return I.useEffect(()=>{const i=n.find(({autoConnect:a})=>a);i&&t(`/server/${i.id}`)},[n,t]),y.jsx("div",{className:"w-100",children:y.jsx(Ri,{className:"mx-auto",style:{maxWidth:"720px"},children:y.jsxs("div",{className:"d-flex flex-column flex-md-row",children:[y.jsx("div",{className:"p-4 d-none d-md-flex align-items-center",style:{width:"40%"},children:y.jsx("div",{className:"w-100",children:y.jsx(nG,{})})}),y.jsxs("div",{className:"home__servers-container flex-grow-1",children:[y.jsx("h1",{className:Ve("home__title p-4 text-center m-0",{"border-bottom":!r}),style:{borderColor:"var(--border-color) !important"},children:"Welcome!"}),y.jsx(tG,{embedded:!0,servers:n,children:!r&&y.jsxs("div",{className:"p-4 text-center d-flex flex-column gap-5",children:[y.jsx("p",{className:"mb-0",children:"This application will help you manage your Shlink servers."}),y.jsx("p",{className:"mb-0",children:y.jsxs(tn,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[y.jsx(Ke,{icon:Ym})," ",y.jsx("span",{className:"ms-1",children:"Add a server"})]})}),y.jsx("p",{className:"mb-0",children:y.jsx(ni,{href:"https://shlink.io/documentation",children:y.jsxs("small",{children:[y.jsx("span",{className:"me-2",children:"Learn more about Shlink"}),y.jsx(Ke,{icon:hQ})]})})})]})})]})]})})})},rG=()=>{const{ServersDropdown:e}=ja(rG),[t,n,,r]=wn(),i=Pr(),{pathname:a}=i;I.useEffect(r,[i,r]);const o="/settings",l=Ve("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return y.jsxs(HB,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[y.jsxs(WB,{tag:tn,to:"/",children:[y.jsx(nG,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),y.jsx(GB,{onClick:n,children:y.jsx(Ke,{icon:RQ,className:l})}),y.jsx(Jj,{navbar:!0,isOpen:t,children:y.jsxs(zj,{navbar:!0,className:"ms-auto",children:[y.jsx(qj,{children:y.jsxs(Vj,{tag:tn,to:o,active:a.startsWith(o),children:[y.jsx(Ke,{icon:kQ}),"  Settings"]})}),y.jsx(e,{})]})})]})},FMe=Pa(rG,["ServersDropdown"]),zMe=({children:e})=>{const t=Pr();return I.useEffect(()=>{scrollTo(0,0)},[t]),y.jsx(y.Fragment,{children:e})},iG=J9(e=>e,e=>{try{return OC(e,e,"=")}catch{return!1}}),aG=e=>iG(e)?`v${e}`:e,oG=(e,t="latest")=>iG(e)?e:t,qMe="%_VERSION_%",VMe=e=>aG(oG(e)),oU=({project:e,version:t})=>y.jsx(ni,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:y.jsx("b",{children:t})}),HMe=({selectedServer:e,clientVersion:t=qMe})=>{const n=VMe(t);return y.jsxs("small",{className:"text-muted",children:[xj(e)&&y.jsxs(y.Fragment,{children:["Server: ",y.jsx(oU,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",y.jsx(oU,{project:"shlink-web-client",version:n})]})},WMe=({selectedServer:e})=>y.jsx("div",{className:Ve("text-center",{"shlink-versions-container--with-sidebar":xj(e)}),children:y.jsx(HMe,{selectedServer:e})}),Xd=({children:e,className:t})=>y.jsx("div",{className:Ve("no-menu-wrapper container-xl",t),children:e});function sG(e){const t=n=>{const{ServerError:r}=ja(t),i=Md(),{selectServer:a,selectedServer:o}=n;return I.useEffect(()=>{i.serverId&&a(i.serverId)},[i.serverId,a]),o?kX(o)?y.jsx(r,{}):y.jsx(e,{...n}):y.jsx(Xd,{children:y.jsx(os,{loading:!0})})};return t}const lG=sG(I.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:a}=ja(lG);if(!xj(e))return y.jsx(a,{});const o=`/server/${e.id}`;return y.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:o,tagColorsStorage:r,createNotFound:l=>y.jsx(N9,{to:`${o}${l}`,children:"List short URLs"})})})),GMe=Pa(lG,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),YMe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",iue,"fetch"),e.serviceFactory("ScrollToTop",()=>zMe),e.factory("MainHeader",FMe),e.serviceFactory("Home",()=>BMe),e.decorator("Home",C0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>IMe),e.factory("ShlinkWebComponentContainer",GMe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>WMe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>$Me)},uG=()=>{const e=ho();return I.useCallback(()=>e(-1),[e])};function KMe(e){let t=e.url;try{const{host:n,pathname:r}=new URL(t);t=n;const i=r.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function ZMe(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const XMe=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function QMe(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=Q9(t,a=>XMe(n,a)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function A0(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const a=KMe(i);let o=a,l=1;for(;n.has(o);)o=`${a}-${l}`,l++;r.push({...i,id:o}),n.add(o)}),r}const cG=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return y.jsxs(ii,{centered:!0,isOpen:e,children:[y.jsxs(po,{children:["Duplicated server",i&&"s"]}),y.jsxs(Aa,{children:[y.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),y.jsx("ul",{children:t.map(({url:a,apiKey:o},l)=>i?y.jsxs("li",{children:[y.jsx("b",{children:a})," - ",y.jsx("b",{children:o})]},l):y.jsxs(I.Fragment,{children:[y.jsxs("li",{children:["URL: ",y.jsx("b",{children:a})]}),y.jsxs("li",{children:["API key: ",y.jsx("b",{children:o})]})]},l))}),y.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),y.jsxs(ms,{children:[y.jsx(yt,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),y.jsx(yt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},JMe=e=>t=>{t.preventDefault(),e()},fG=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,a]=I.useState((t==null?void 0:t.name)??""),[o,l]=I.useState((t==null?void 0:t.url)??""),[f,c]=I.useState((t==null?void 0:t.apiKey)??""),h=JMe(()=>e({name:i,url:o,apiKey:f}));return y.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:h,children:[y.jsxs(Jt,{className:"mb-3",title:r,children:[y.jsx(Cy,{value:i,onChange:a,children:"Name"}),y.jsx(Cy,{type:"url",value:o,onChange:l,children:"URL"}),y.jsx(Cy,{value:f,onChange:c,children:"API key"})]}),y.jsx("div",{className:"text-end",children:n})]})},sU=4e3,lU=({type:e})=>y.jsx("div",{className:"mt-3",children:y.jsxs(zr,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),dG=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=ja(dG),i=ho(),a=uG(),o=!!Object.keys(e).length,[l,f]=r(!1,sU),[c,h]=r(!1,sU),[m,g]=wn(),[x,_]=I.useState(),w=I.useCallback(S=>{const[T]=A0(e,[S]);t([T]),i(`/server/${T.id}`)},[t,i,e]),O=I.useCallback(S=>{_(S),Object.values(e).some(({url:A,apiKey:j})=>S.url===A&&S.apiKey===j)?g():w(S)},[w,e,g]);return y.jsxs(Xd,{children:[y.jsxs(fG,{title:y.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:O,children:[!o&&y.jsx(n,{tooltipPlacement:"top",onImport:f,onImportError:h}),o&&y.jsx(yt,{outline:!0,onClick:a,children:"Cancel"}),y.jsx(yt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),l&&y.jsx(lU,{type:"success"}),c&&y.jsx(lU,{type:"error"}),y.jsx(cG,{isOpen:m,duplicatedServers:x?[x]:[],onDiscard:a,onSave:()=>x&&w(x)})]})},eNe=Pa(dG,["ImportServersBtn","useTimeoutToggle"]),hG=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=ja(hG),[a,,o,l]=wn();return y.jsxs(y.Fragment,{children:[y.jsxs("button",{type:"button",className:Ve(t,"p-0 bg-transparent border-0"),onClick:o,children:[!n&&y.jsx(Ke,{fixedWidth:!0,icon:wj}),y.jsx("span",{className:r,children:n??"Remove this server"})]}),y.jsx(i,{server:e,isOpen:a,toggle:l})]})},tNe=Pa(hG,["DeleteServerModal"]),nNe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const a=ho(),o=I.useRef(!1),l=()=>{o.current=!0,t()},f=()=>{o.current&&(r(e),i&&a("/"))};return y.jsxs(ii,{isOpen:n,toggle:t,centered:!0,onClosed:f,children:[y.jsx(po,{toggle:t,className:"text-danger",children:"Remove server"}),y.jsxs(Aa,{children:[y.jsxs("p",{children:["Are you sure you want to remove ",y.jsx("b",{children:e?e.name:""}),"?"]}),y.jsx("p",{children:y.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),y.jsxs(ms,{children:[y.jsx(yt,{color:"link",onClick:t,children:"Cancel"}),y.jsx(yt,{color:"danger",onClick:l,children:"Delete"})]})]})},rNe=sG(({editServer:e,selectedServer:t,selectServer:n})=>{const r=uG(),{reconnect:i}=Dd();if(!Cp(t))return null;const a=o=>{e(t.id,o),i==="true"&&n(t.id),r()};return y.jsx(Xd,{children:y.jsxs(fG,{title:y.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:a,children:[y.jsx(yt,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),y.jsx(yt,{outline:!0,color:"primary",children:"Save"})]})})}),iNe=Pa(rNe,["ServerError"]),pG=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:a="bottom",className:o=""})=>{const{ServersImporter:l}=ja(pG),f=na(),[c,h]=I.useState([]),[m,,g,x]=wn(),_=I.useRef([]),w=I.useRef([]),O=I.useCallback(j=>{e(j),r()},[e,r]),S=I.useCallback(async({target:j})=>{var P;return l.importServersFromFile((P=j.files)==null?void 0:P[0]).then(R=>{const{duplicatedServers:D,newServers:U}=QMe(t,R);_.current=A0(t,R),w.current=A0(t,U),D.length===0?O(_.current):(h(D),g())}).then(()=>{j.value=null}).catch(i)},[O,i,t,l,g]),T=I.useCallback(()=>{O(_.current),x()},[O,x]),A=I.useCallback(()=>{O(w.current),x()},[O,x]);return y.jsxs(y.Fragment,{children:[y.jsxs(yt,{outline:!0,id:"importBtn",className:o,onClick:()=>{var j;return(j=f.current)==null?void 0:j.click()},children:[y.jsx(Ke,{icon:iQ,fixedWidth:!0})," ",n??"Import from file"]}),y.jsxs(Mi,{placement:a,target:"importBtn",children:["You can create servers by importing a CSV file with ",y.jsx("b",{children:"name"}),", ",y.jsx("b",{children:"apiKey"})," and ",y.jsx("b",{children:"url"})," columns."]}),y.jsx("input",{type:"file",accept:".csv",className:"d-none","aria-hidden":!0,ref:f,onChange:S,"data-testid":"csv-file-input"}),y.jsx(cG,{isOpen:m,duplicatedServers:c,onDiscard:A,onSave:T})]})},aNe=Pa(pG,["ServersImporter"]),mG=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=ja(mG);return y.jsx(Xd,{children:y.jsxs("div",{className:"server-error__container flex-column",children:[y.jsxs(os,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Cp(t)&&"Could not find this Shlink server.",Cp(t)&&y.jsxs(y.Fragment,{children:[y.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),y.jsx(tG,{servers:Object.values(e),children:y.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",y.jsx(tn,{to:"/server/create",children:"add a new one"}),"."]})}),Cp(t)&&y.jsx("div",{className:"container mt-3 mt-md-5",children:y.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have misconfigured this server, you can ",y.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",y.jsx(tn,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},oNe=Pa(mG,["DeleteServerButton"]),sNe=4e3,vG=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=ja(vG),[a,o]=I.useState(""),l=I.useMemo(()=>Object.values(e),[e]),f=I.useMemo(()=>l.filter(({name:g,url:x})=>`${g} ${x}`.toLowerCase().match(a.toLowerCase())),[l,a]),c=l.some(({autoConnect:g})=>!!g),[h,m]=r(!1,sNe);return y.jsxs(Xd,{className:"d-flex flex-column gap-3",children:[y.jsx(rv,{onChange:o}),y.jsxs("div",{className:"d-flex flex-column flex-md-row gap-2",children:[y.jsxs("div",{className:"d-flex gap-2",children:[y.jsx(n,{className:"flex-fill",onImportError:m,children:"Import servers"}),f.length>0&&y.jsxs(yt,{outline:!0,className:"flex-fill",onClick:async()=>t.exportServers(),children:[y.jsx(Ke,{icon:eB,fixedWidth:!0})," Export servers"]})]}),y.jsxs(yt,{outline:!0,color:"primary",className:"ms-md-auto",tag:tn,to:"/server/create",children:[y.jsx(Ke,{icon:Ym,fixedWidth:!0})," Add a server"]})]}),y.jsx(Jt,{children:y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsx("thead",{className:"responsive-table__header",children:y.jsxs("tr",{children:[c&&y.jsx("th",{style:{width:"50px"},children:y.jsx("span",{className:"sr-only",children:"Auto-connect"})}),y.jsx("th",{children:"Name"}),y.jsx("th",{children:"Base URL"}),y.jsx("th",{children:y.jsx("span",{className:"sr-only",children:"Options"})})]})}),y.jsxs("tbody",{children:[!f.length&&y.jsx("tr",{className:"text-center",children:y.jsx("td",{colSpan:4,children:"No servers found."})}),f.map(g=>y.jsx(i,{server:g,hasAutoConnect:c},g.id))]})]})}),h&&y.jsx("div",{children:y.jsx(zr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},lNe=Pa(vG,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),gG=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=ja(gG);return y.jsxs("tr",{className:"responsive-table__row",children:[t&&y.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&y.jsxs(y.Fragment,{children:[y.jsx(Ke,{icon:Gp,className:"text-primary",id:"autoConnectIcon"}),y.jsx(Mi,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),y.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:y.jsx(tn,{to:`/server/${e.id}`,children:e.name})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),y.jsx("td",{className:"responsive-table__cell text-end",children:y.jsx(n,{server:e})})]})},uNe=Pa(gG,["ManageServersRowDropdown"]),yG=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=ja(yG),[r,,i,a]=wn(),o=`/server/${e.id}`,{autoConnect:l}=e,f=l?nQ:Uue;return y.jsxs(q0,{minWidth:l?210:170,children:[y.jsxs(Qe,{tag:tn,to:o,children:[y.jsx(Ke,{icon:eQ,fixedWidth:!0})," Connect"]}),y.jsxs(Qe,{tag:tn,to:`${o}/edit`,children:[y.jsx(Ke,{icon:Sj,fixedWidth:!0})," Edit server"]}),y.jsxs(Qe,{onClick:()=>t(e,!l),children:[y.jsx(Ke,{icon:f,fixedWidth:!0})," ",l?"Do not a":"A","uto-connect"]}),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsxs(Qe,{className:"dropdown-item--danger",onClick:i,children:[y.jsx(Ke,{icon:wj,fixedWidth:!0})," Remove server"]}),y.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:a})]})},cNe=Pa(yG,["DeleteServerModal"]),bG=(e,t)=>G9(e,t,{serializeError:n=>n}),fNe={},{actions:dNe,reducer:hNe}=In({name:"shlink/servers",initialState:fNe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?{...e,[n]:{...e[n],...r}}:e}},deleteServer:(e,{payload:t})=>(delete e[t.id],e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,a])=>[i,{...a,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:ZMe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:pNe,deleteServer:mNe,setAutoConnect:vNe,createServers:_G}=dNe,gNe=hNe,yNe=e=>A0({},Array.isArray(e)?e.filter(ZU):[]),bNe=e=>bG("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${ky.homepage}/servers.json`),i=yNe(r);n(_G(i))}),X3="shlink/selectedServer",_Ne="1.0.0",xNe="999.999.999",wNe="latest",ONe=e=>oG(e===wNe?xNe:e,_Ne),SNe=J9(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:ONe(n),printableVersion:aG(n)}))),uU=null,Q3=qr(`${X3}/resetSelectedServer`),ENe=e=>bG(`${X3}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(Q3());const{servers:i}=r(),a=i[t];if(!a)return{serverNotFound:!0};try{const o=e(a),{version:l,printableVersion:f}=await SNe(a,()=>o.health());return{...a,version:l,printableVersion:f}}catch{return{...a,serverNotReachable:!0}}}),TNe=e=>In({name:X3,initialState:uU,reducers:{},extraReducers:t=>{t.addCase(Q3,()=>uU),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),CNe=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?y.jsxs(Qe,{tag:tn,to:"/server/create",children:[y.jsx(Ke,{icon:Ym})," ",y.jsx("span",{className:"ms-1",children:"Add a server"})]}):y.jsxs(y.Fragment,{children:[n.map(({name:i,id:a})=>y.jsx(Qe,{tag:tn,to:`/server/${a}`,active:IX(t)===a,children:i},a)),y.jsx(Qe,{divider:!0,tag:"hr"}),y.jsxs(Qe,{tag:tn,to:"/manage-servers",children:[y.jsx(Ke,{icon:p4})," ",y.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return y.jsxs(nv,{nav:!0,inNavbar:!0,children:[y.jsxs(ps,{nav:!0,caret:!0,children:[y.jsx(Ke,{icon:p4})," ",y.jsx("span",{className:"ms-1",children:"Servers"})]}),y.jsx(Vl,{end:!0,style:{right:0},children:r()})]})},ANe=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},jNe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);ANe(e,i,n)},PNe="shlink-servers.csv";class RNe{constructor(t,n,r){uf(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map($X);try{const n=this.jsonToCsv(t);jNe(this.window,n,PNe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const MNe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",NNe=e=>Array.isArray(e)&&e.every(MNe);class LNe{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.csvToJson(n);if(!NNe(r))throw new Error("Provided file does not have the right format.");return r}}const DNe=(e,t)=>{e.factory("ManageServers",lNe),e.decorator("ManageServers",C0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",uNe),e.factory("ManageServersRowDropdown",cNe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",eNe),e.decorator("CreateServer",C0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",iNe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>CNe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>nNe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",tNe),e.factory("ImportServersBtn",aNe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",oNe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",LNe,"csvToJson"),e.service("ServersExporter",RNe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",ENe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>_G),e.serviceFactory("deleteServer",()=>mNe),e.serviceFactory("editServer",()=>pNe),e.serviceFactory("setAutoConnect",()=>vNe),e.serviceFactory("fetchServers",bNe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>Q3),e.serviceFactory("selectedServerReducerCreator",TNe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},xG={field:"dateCreated",dir:"DESC"},kNe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:iP()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:xG}},{reducer:INe,actions:$Ne}=In({name:"shlink/settings",initialState:kNe,reducers:{setSettings:(e,{payload:t})=>Y0(e,t)}}),{setSettings:UNe}=$Ne,BNe=INe,FNe=({settings:e,setSettings:t})=>y.jsx(Xd,{children:y.jsx(kue,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:xG})}),zNe=(e,t)=>{e.serviceFactory("Settings",()=>FNe),e.decorator("Settings",C0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>UNe)};var CE,cU;function qNe(){return cU||(cU=1,CE=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var o in r)n.d(a,o,(function(l){return r[l]}).bind(null,o));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(_){var w=[];for(var O in _)w.push(O);return w};e.exports=m;var a=n(5);a.inherits=n(2);var o=n(23),l=n(14);a.inherits(m,o);for(var f=i(l.prototype),c=0;c<f.length;c++){var h=f[c];m.prototype[h]||(m.prototype[h]=l.prototype[h])}function m(_){if(!(this instanceof m))return new m(_);o.call(this,_),l.call(this,_),_&&_.readable===!1&&(this.readable=!1),_&&_.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,_&&_.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",g)}function g(){this.allowHalfOpen||this._writableState.ended||r.nextTick(x,this)}function x(_){_.end()}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(_){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}),m.prototype._destroy=function(_,w){this.push(null),this.end(),r.nextTick(w,_)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var i=n(38),a=n(39),o=n(40);function l(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(k,B){if(l()<B)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(k=new Uint8Array(B)).__proto__=c.prototype:(k===null&&(k=new c(B)),k.length=B),k}function c(k,B,K){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(k,B,K);if(typeof k=="number"){if(typeof B=="string")throw new Error("If encoding is specified then the first argument must be a string");return g(this,k)}return h(this,k,B,K)}function h(k,B,K,ce){if(typeof B=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&B instanceof ArrayBuffer?function(ae,pe,Te,Fe){if(pe.byteLength,Te<0||pe.byteLength<Te)throw new RangeError("'offset' is out of bounds");if(pe.byteLength<Te+(Fe||0))throw new RangeError("'length' is out of bounds");return pe=Te===void 0&&Fe===void 0?new Uint8Array(pe):Fe===void 0?new Uint8Array(pe,Te):new Uint8Array(pe,Te,Fe),c.TYPED_ARRAY_SUPPORT?(ae=pe).__proto__=c.prototype:ae=x(ae,pe),ae}(k,B,K,ce):typeof B=="string"?function(ae,pe,Te){if(typeof Te=="string"&&Te!==""||(Te="utf8"),!c.isEncoding(Te))throw new TypeError('"encoding" must be a valid string encoding');var Fe=0|w(pe,Te),ge=(ae=f(ae,Fe)).write(pe,Te);return ge!==Fe&&(ae=ae.slice(0,ge)),ae}(k,B,K):function(ae,pe){if(c.isBuffer(pe)){var Te=0|_(pe.length);return(ae=f(ae,Te)).length===0||pe.copy(ae,0,0,Te),ae}if(pe){if(typeof ArrayBuffer<"u"&&pe.buffer instanceof ArrayBuffer||"length"in pe)return typeof pe.length!="number"||function(Fe){return Fe!=Fe}(pe.length)?f(ae,0):x(ae,pe);if(pe.type==="Buffer"&&o(pe.data))return x(ae,pe.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(k,B)}function m(k){if(typeof k!="number")throw new TypeError('"size" argument must be a number');if(k<0)throw new RangeError('"size" argument must not be negative')}function g(k,B){if(m(B),k=f(k,B<0?0:0|_(B)),!c.TYPED_ARRAY_SUPPORT)for(var K=0;K<B;++K)k[K]=0;return k}function x(k,B){var K=B.length<0?0:0|_(B.length);k=f(k,K);for(var ce=0;ce<K;ce+=1)k[ce]=255&B[ce];return k}function _(k){if(k>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|k}function w(k,B){if(c.isBuffer(k))return k.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(k)||k instanceof ArrayBuffer))return k.byteLength;typeof k!="string"&&(k=""+k);var K=k.length;if(K===0)return 0;for(var ce=!1;;)switch(B){case"ascii":case"latin1":case"binary":return K;case"utf8":case"utf-8":case void 0:return fe(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*K;case"hex":return K>>>1;case"base64":return de(k).length;default:if(ce)return fe(k).length;B=(""+B).toLowerCase(),ce=!0}}function O(k,B,K){var ce=k[B];k[B]=k[K],k[K]=ce}function S(k,B,K,ce,ae){if(k.length===0)return-1;if(typeof K=="string"?(ce=K,K=0):K>2147483647?K=2147483647:K<-2147483648&&(K=-2147483648),K=+K,isNaN(K)&&(K=ae?0:k.length-1),K<0&&(K=k.length+K),K>=k.length){if(ae)return-1;K=k.length-1}else if(K<0){if(!ae)return-1;K=0}if(typeof B=="string"&&(B=c.from(B,ce)),c.isBuffer(B))return B.length===0?-1:T(k,B,K,ce,ae);if(typeof B=="number")return B&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ae?Uint8Array.prototype.indexOf.call(k,B,K):Uint8Array.prototype.lastIndexOf.call(k,B,K):T(k,[B],K,ce,ae);throw new TypeError("val must be string, number or Buffer")}function T(k,B,K,ce,ae){var pe,Te=1,Fe=k.length,ge=B.length;if(ce!==void 0&&((ce=String(ce).toLowerCase())==="ucs2"||ce==="ucs-2"||ce==="utf16le"||ce==="utf-16le")){if(k.length<2||B.length<2)return-1;Te=2,Fe/=2,ge/=2,K/=2}function je(qe,Ye){return Te===1?qe[Ye]:qe.readUInt16BE(Ye*Te)}if(ae){var Me=-1;for(pe=K;pe<Fe;pe++)if(je(k,pe)===je(B,Me===-1?0:pe-Me)){if(Me===-1&&(Me=pe),pe-Me+1===ge)return Me*Te}else Me!==-1&&(pe-=pe-Me),Me=-1}else for(K+ge>Fe&&(K=Fe-ge),pe=K;pe>=0;pe--){for(var Be=!0,Xe=0;Xe<ge;Xe++)if(je(k,pe+Xe)!==je(B,Xe)){Be=!1;break}if(Be)return pe}return-1}function A(k,B,K,ce){K=Number(K)||0;var ae=k.length-K;ce?(ce=Number(ce))>ae&&(ce=ae):ce=ae;var pe=B.length;if(pe%2!=0)throw new TypeError("Invalid hex string");ce>pe/2&&(ce=pe/2);for(var Te=0;Te<ce;++Te){var Fe=parseInt(B.substr(2*Te,2),16);if(isNaN(Fe))return Te;k[K+Te]=Fe}return Te}function j(k,B,K,ce){return Se(fe(B,k.length-K),k,K,ce)}function P(k,B,K,ce){return Se(function(ae){for(var pe=[],Te=0;Te<ae.length;++Te)pe.push(255&ae.charCodeAt(Te));return pe}(B),k,K,ce)}function R(k,B,K,ce){return P(k,B,K,ce)}function D(k,B,K,ce){return Se(de(B),k,K,ce)}function U(k,B,K,ce){return Se(function(ae,pe){for(var Te,Fe,ge,je=[],Me=0;Me<ae.length&&!((pe-=2)<0);++Me)Fe=(Te=ae.charCodeAt(Me))>>8,ge=Te%256,je.push(ge),je.push(Fe);return je}(B,k.length-K),k,K,ce)}function z(k,B,K){return B===0&&K===k.length?i.fromByteArray(k):i.fromByteArray(k.slice(B,K))}function F(k,B,K){K=Math.min(k.length,K);for(var ce=[],ae=B;ae<K;){var pe,Te,Fe,ge,je=k[ae],Me=null,Be=je>239?4:je>223?3:je>191?2:1;if(ae+Be<=K)switch(Be){case 1:je<128&&(Me=je);break;case 2:(192&(pe=k[ae+1]))==128&&(ge=(31&je)<<6|63&pe)>127&&(Me=ge);break;case 3:pe=k[ae+1],Te=k[ae+2],(192&pe)==128&&(192&Te)==128&&(ge=(15&je)<<12|(63&pe)<<6|63&Te)>2047&&(ge<55296||ge>57343)&&(Me=ge);break;case 4:pe=k[ae+1],Te=k[ae+2],Fe=k[ae+3],(192&pe)==128&&(192&Te)==128&&(192&Fe)==128&&(ge=(15&je)<<18|(63&pe)<<12|(63&Te)<<6|63&Fe)>65535&&ge<1114112&&(Me=ge)}Me===null?(Me=65533,Be=1):Me>65535&&(Me-=65536,ce.push(Me>>>10&1023|55296),Me=56320|1023&Me),ce.push(Me),ae+=Be}return function(Xe){var qe=Xe.length;if(qe<=V)return String.fromCharCode.apply(String,Xe);for(var Ye="",ye=0;ye<qe;)Ye+=String.fromCharCode.apply(String,Xe.slice(ye,ye+=V));return Ye}(ce)}t.Buffer=c,t.SlowBuffer=function(k){return+k!=k&&(k=0),c.alloc(+k)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var k=new Uint8Array(1);return k.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},k.foo()===42&&typeof k.subarray=="function"&&k.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=l(),c.poolSize=8192,c._augment=function(k){return k.__proto__=c.prototype,k},c.from=function(k,B,K){return h(null,k,B,K)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(k,B,K){return function(ce,ae,pe,Te){return m(ae),ae<=0?f(ce,ae):pe!==void 0?typeof Te=="string"?f(ce,ae).fill(pe,Te):f(ce,ae).fill(pe):f(ce,ae)}(null,k,B,K)},c.allocUnsafe=function(k){return g(null,k)},c.allocUnsafeSlow=function(k){return g(null,k)},c.isBuffer=function(k){return!(k==null||!k._isBuffer)},c.compare=function(k,B){if(!c.isBuffer(k)||!c.isBuffer(B))throw new TypeError("Arguments must be Buffers");if(k===B)return 0;for(var K=k.length,ce=B.length,ae=0,pe=Math.min(K,ce);ae<pe;++ae)if(k[ae]!==B[ae]){K=k[ae],ce=B[ae];break}return K<ce?-1:ce<K?1:0},c.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(k,B){if(!o(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return c.alloc(0);var K;if(B===void 0)for(B=0,K=0;K<k.length;++K)B+=k[K].length;var ce=c.allocUnsafe(B),ae=0;for(K=0;K<k.length;++K){var pe=k[K];if(!c.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(ce,ae),ae+=pe.length}return ce},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var B=0;B<k;B+=2)O(this,B,B+1);return this},c.prototype.swap32=function(){var k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var B=0;B<k;B+=4)O(this,B,B+3),O(this,B+1,B+2);return this},c.prototype.swap64=function(){var k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var B=0;B<k;B+=8)O(this,B,B+7),O(this,B+1,B+6),O(this,B+2,B+5),O(this,B+3,B+4);return this},c.prototype.toString=function(){var k=0|this.length;return k===0?"":arguments.length===0?F(this,0,k):(function(B,K,ce){var ae=!1;if((K===void 0||K<0)&&(K=0),K>this.length||((ce===void 0||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(K>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return ee(this,K,ce);case"utf8":case"utf-8":return F(this,K,ce);case"ascii":return H(this,K,ce);case"latin1":case"binary":return te(this,K,ce);case"base64":return z(this,K,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,K,ce);default:if(ae)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),ae=!0}}).apply(this,arguments)},c.prototype.equals=function(k){if(!c.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||c.compare(this,k)===0},c.prototype.inspect=function(){var k="",B=t.INSPECT_MAX_BYTES;return this.length>0&&(k=this.toString("hex",0,B).match(/.{2}/g).join(" "),this.length>B&&(k+=" ... ")),"<Buffer "+k+">"},c.prototype.compare=function(k,B,K,ce,ae){if(!c.isBuffer(k))throw new TypeError("Argument must be a Buffer");if(B===void 0&&(B=0),K===void 0&&(K=k?k.length:0),ce===void 0&&(ce=0),ae===void 0&&(ae=this.length),B<0||K>k.length||ce<0||ae>this.length)throw new RangeError("out of range index");if(ce>=ae&&B>=K)return 0;if(ce>=ae)return-1;if(B>=K)return 1;if(B>>>=0,K>>>=0,ce>>>=0,ae>>>=0,this===k)return 0;for(var pe=ae-ce,Te=K-B,Fe=Math.min(pe,Te),ge=this.slice(ce,ae),je=k.slice(B,K),Me=0;Me<Fe;++Me)if(ge[Me]!==je[Me]){pe=ge[Me],Te=je[Me];break}return pe<Te?-1:Te<pe?1:0},c.prototype.includes=function(k,B,K){return this.indexOf(k,B,K)!==-1},c.prototype.indexOf=function(k,B,K){return S(this,k,B,K,!0)},c.prototype.lastIndexOf=function(k,B,K){return S(this,k,B,K,!1)},c.prototype.write=function(k,B,K,ce){if(B===void 0)ce="utf8",K=this.length,B=0;else if(K===void 0&&typeof B=="string")ce=B,K=this.length,B=0;else{if(!isFinite(B))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");B|=0,isFinite(K)?(K|=0,ce===void 0&&(ce="utf8")):(ce=K,K=void 0)}var ae=this.length-B;if((K===void 0||K>ae)&&(K=ae),k.length>0&&(K<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var pe=!1;;)switch(ce){case"hex":return A(this,k,B,K);case"utf8":case"utf-8":return j(this,k,B,K);case"ascii":return P(this,k,B,K);case"latin1":case"binary":return R(this,k,B,K);case"base64":return D(this,k,B,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,k,B,K);default:if(pe)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),pe=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;function H(k,B,K){var ce="";K=Math.min(k.length,K);for(var ae=B;ae<K;++ae)ce+=String.fromCharCode(127&k[ae]);return ce}function te(k,B,K){var ce="";K=Math.min(k.length,K);for(var ae=B;ae<K;++ae)ce+=String.fromCharCode(k[ae]);return ce}function ee(k,B,K){var ce=k.length;(!B||B<0)&&(B=0),(!K||K<0||K>ce)&&(K=ce);for(var ae="",pe=B;pe<K;++pe)ae+=ue(k[pe]);return ae}function re(k,B,K){for(var ce=k.slice(B,K),ae="",pe=0;pe<ce.length;pe+=2)ae+=String.fromCharCode(ce[pe]+256*ce[pe+1]);return ae}function Q(k,B,K){if(k%1!=0||k<0)throw new RangeError("offset is not uint");if(k+B>K)throw new RangeError("Trying to access beyond buffer length")}function oe(k,B,K,ce,ae,pe){if(!c.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>ae||B<pe)throw new RangeError('"value" argument is out of bounds');if(K+ce>k.length)throw new RangeError("Index out of range")}function le(k,B,K,ce){B<0&&(B=65535+B+1);for(var ae=0,pe=Math.min(k.length-K,2);ae<pe;++ae)k[K+ae]=(B&255<<8*(ce?ae:1-ae))>>>8*(ce?ae:1-ae)}function X(k,B,K,ce){B<0&&(B=4294967295+B+1);for(var ae=0,pe=Math.min(k.length-K,4);ae<pe;++ae)k[K+ae]=B>>>8*(ce?ae:3-ae)&255}function $(k,B,K,ce,ae,pe){if(K+ce>k.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function G(k,B,K,ce,ae){return ae||$(k,0,K,4),a.write(k,B,K,ce,23,4),K+4}function se(k,B,K,ce,ae){return ae||$(k,0,K,8),a.write(k,B,K,ce,52,8),K+8}c.prototype.slice=function(k,B){var K,ce=this.length;if(k=~~k,B=B===void 0?ce:~~B,k<0?(k+=ce)<0&&(k=0):k>ce&&(k=ce),B<0?(B+=ce)<0&&(B=0):B>ce&&(B=ce),B<k&&(B=k),c.TYPED_ARRAY_SUPPORT)(K=this.subarray(k,B)).__proto__=c.prototype;else{var ae=B-k;K=new c(ae,void 0);for(var pe=0;pe<ae;++pe)K[pe]=this[pe+k]}return K},c.prototype.readUIntLE=function(k,B,K){k|=0,B|=0,K||Q(k,B,this.length);for(var ce=this[k],ae=1,pe=0;++pe<B&&(ae*=256);)ce+=this[k+pe]*ae;return ce},c.prototype.readUIntBE=function(k,B,K){k|=0,B|=0,K||Q(k,B,this.length);for(var ce=this[k+--B],ae=1;B>0&&(ae*=256);)ce+=this[k+--B]*ae;return ce},c.prototype.readUInt8=function(k,B){return B||Q(k,1,this.length),this[k]},c.prototype.readUInt16LE=function(k,B){return B||Q(k,2,this.length),this[k]|this[k+1]<<8},c.prototype.readUInt16BE=function(k,B){return B||Q(k,2,this.length),this[k]<<8|this[k+1]},c.prototype.readUInt32LE=function(k,B){return B||Q(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},c.prototype.readUInt32BE=function(k,B){return B||Q(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},c.prototype.readIntLE=function(k,B,K){k|=0,B|=0,K||Q(k,B,this.length);for(var ce=this[k],ae=1,pe=0;++pe<B&&(ae*=256);)ce+=this[k+pe]*ae;return ce>=(ae*=128)&&(ce-=Math.pow(2,8*B)),ce},c.prototype.readIntBE=function(k,B,K){k|=0,B|=0,K||Q(k,B,this.length);for(var ce=B,ae=1,pe=this[k+--ce];ce>0&&(ae*=256);)pe+=this[k+--ce]*ae;return pe>=(ae*=128)&&(pe-=Math.pow(2,8*B)),pe},c.prototype.readInt8=function(k,B){return B||Q(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},c.prototype.readInt16LE=function(k,B){B||Q(k,2,this.length);var K=this[k]|this[k+1]<<8;return 32768&K?4294901760|K:K},c.prototype.readInt16BE=function(k,B){B||Q(k,2,this.length);var K=this[k+1]|this[k]<<8;return 32768&K?4294901760|K:K},c.prototype.readInt32LE=function(k,B){return B||Q(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},c.prototype.readInt32BE=function(k,B){return B||Q(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},c.prototype.readFloatLE=function(k,B){return B||Q(k,4,this.length),a.read(this,k,!0,23,4)},c.prototype.readFloatBE=function(k,B){return B||Q(k,4,this.length),a.read(this,k,!1,23,4)},c.prototype.readDoubleLE=function(k,B){return B||Q(k,8,this.length),a.read(this,k,!0,52,8)},c.prototype.readDoubleBE=function(k,B){return B||Q(k,8,this.length),a.read(this,k,!1,52,8)},c.prototype.writeUIntLE=function(k,B,K,ce){k=+k,B|=0,K|=0,ce||oe(this,k,B,K,Math.pow(2,8*K)-1,0);var ae=1,pe=0;for(this[B]=255&k;++pe<K&&(ae*=256);)this[B+pe]=k/ae&255;return B+K},c.prototype.writeUIntBE=function(k,B,K,ce){k=+k,B|=0,K|=0,ce||oe(this,k,B,K,Math.pow(2,8*K)-1,0);var ae=K-1,pe=1;for(this[B+ae]=255&k;--ae>=0&&(pe*=256);)this[B+ae]=k/pe&255;return B+K},c.prototype.writeUInt8=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,1,255,0),c.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),this[B]=255&k,B+1},c.prototype.writeUInt16LE=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[B]=255&k,this[B+1]=k>>>8):le(this,k,B,!0),B+2},c.prototype.writeUInt16BE=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[B]=k>>>8,this[B+1]=255&k):le(this,k,B,!1),B+2},c.prototype.writeUInt32LE=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[B+3]=k>>>24,this[B+2]=k>>>16,this[B+1]=k>>>8,this[B]=255&k):X(this,k,B,!0),B+4},c.prototype.writeUInt32BE=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[B]=k>>>24,this[B+1]=k>>>16,this[B+2]=k>>>8,this[B+3]=255&k):X(this,k,B,!1),B+4},c.prototype.writeIntLE=function(k,B,K,ce){if(k=+k,B|=0,!ce){var ae=Math.pow(2,8*K-1);oe(this,k,B,K,ae-1,-ae)}var pe=0,Te=1,Fe=0;for(this[B]=255&k;++pe<K&&(Te*=256);)k<0&&Fe===0&&this[B+pe-1]!==0&&(Fe=1),this[B+pe]=(k/Te>>0)-Fe&255;return B+K},c.prototype.writeIntBE=function(k,B,K,ce){if(k=+k,B|=0,!ce){var ae=Math.pow(2,8*K-1);oe(this,k,B,K,ae-1,-ae)}var pe=K-1,Te=1,Fe=0;for(this[B+pe]=255&k;--pe>=0&&(Te*=256);)k<0&&Fe===0&&this[B+pe+1]!==0&&(Fe=1),this[B+pe]=(k/Te>>0)-Fe&255;return B+K},c.prototype.writeInt8=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,1,127,-128),c.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),k<0&&(k=255+k+1),this[B]=255&k,B+1},c.prototype.writeInt16LE=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[B]=255&k,this[B+1]=k>>>8):le(this,k,B,!0),B+2},c.prototype.writeInt16BE=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[B]=k>>>8,this[B+1]=255&k):le(this,k,B,!1),B+2},c.prototype.writeInt32LE=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[B]=255&k,this[B+1]=k>>>8,this[B+2]=k>>>16,this[B+3]=k>>>24):X(this,k,B,!0),B+4},c.prototype.writeInt32BE=function(k,B,K){return k=+k,B|=0,K||oe(this,k,B,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),c.TYPED_ARRAY_SUPPORT?(this[B]=k>>>24,this[B+1]=k>>>16,this[B+2]=k>>>8,this[B+3]=255&k):X(this,k,B,!1),B+4},c.prototype.writeFloatLE=function(k,B,K){return G(this,k,B,!0,K)},c.prototype.writeFloatBE=function(k,B,K){return G(this,k,B,!1,K)},c.prototype.writeDoubleLE=function(k,B,K){return se(this,k,B,!0,K)},c.prototype.writeDoubleBE=function(k,B,K){return se(this,k,B,!1,K)},c.prototype.copy=function(k,B,K,ce){if(K||(K=0),ce||ce===0||(ce=this.length),B>=k.length&&(B=k.length),B||(B=0),ce>0&&ce<K&&(ce=K),ce===K||k.length===0||this.length===0)return 0;if(B<0)throw new RangeError("targetStart out of bounds");if(K<0||K>=this.length)throw new RangeError("sourceStart out of bounds");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),k.length-B<ce-K&&(ce=k.length-B+K);var ae,pe=ce-K;if(this===k&&K<B&&B<ce)for(ae=pe-1;ae>=0;--ae)k[ae+B]=this[ae+K];else if(pe<1e3||!c.TYPED_ARRAY_SUPPORT)for(ae=0;ae<pe;++ae)k[ae+B]=this[ae+K];else Uint8Array.prototype.set.call(k,this.subarray(K,K+pe),B);return pe},c.prototype.fill=function(k,B,K,ce){if(typeof k=="string"){if(typeof B=="string"?(ce=B,B=0,K=this.length):typeof K=="string"&&(ce=K,K=this.length),k.length===1){var ae=k.charCodeAt(0);ae<256&&(k=ae)}if(ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!c.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce)}else typeof k=="number"&&(k&=255);if(B<0||this.length<B||this.length<K)throw new RangeError("Out of range index");if(K<=B)return this;var pe;if(B>>>=0,K=K===void 0?this.length:K>>>0,k||(k=0),typeof k=="number")for(pe=B;pe<K;++pe)this[pe]=k;else{var Te=c.isBuffer(k)?k:fe(new c(k,ce).toString()),Fe=Te.length;for(pe=0;pe<K-B;++pe)this[pe+B]=Te[pe%Fe]}return this};var Z=/[^+\/0-9A-Za-z-_]/g;function ue(k){return k<16?"0"+k.toString(16):k.toString(16)}function fe(k,B){var K;B=B||1/0;for(var ce=k.length,ae=null,pe=[],Te=0;Te<ce;++Te){if((K=k.charCodeAt(Te))>55295&&K<57344){if(!ae){if(K>56319){(B-=3)>-1&&pe.push(239,191,189);continue}if(Te+1===ce){(B-=3)>-1&&pe.push(239,191,189);continue}ae=K;continue}if(K<56320){(B-=3)>-1&&pe.push(239,191,189),ae=K;continue}K=65536+(ae-55296<<10|K-56320)}else ae&&(B-=3)>-1&&pe.push(239,191,189);if(ae=null,K<128){if((B-=1)<0)break;pe.push(K)}else if(K<2048){if((B-=2)<0)break;pe.push(K>>6|192,63&K|128)}else if(K<65536){if((B-=3)<0)break;pe.push(K>>12|224,K>>6&63|128,63&K|128)}else{if(!(K<1114112))throw new Error("Invalid code point");if((B-=4)<0)break;pe.push(K>>18|240,K>>12&63|128,K>>6&63|128,63&K|128)}}return pe}function de(k){return i.toByteArray(function(B){if((B=function(K){return K.trim?K.trim():K.replace(/^\s+|\s+$/g,"")}(B).replace(Z,"")).length<2)return"";for(;B.length%4!=0;)B+="=";return B}(k))}function Se(k,B,K,ce){for(var ae=0;ae<ce&&!(ae+K>=B.length||ae>=k.length);++ae)B[ae+K]=k[ae];return ae}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(O){if(n===setTimeout)return setTimeout(O,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(O,0);try{return n(O,0)}catch{try{return n.call(null,O,0)}catch{return n.call(this,O,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:o}catch{r=o}})();var f,c=[],h=!1,m=-1;function g(){h&&f&&(h=!1,f.length?c=f.concat(c):m=-1,c.length&&x())}function x(){if(!h){var O=l(g);h=!0;for(var S=c.length;S;){for(f=c,c=[];++m<S;)f&&f[m].run();m=-1,S=c.length}f=null,h=!1,function(T){if(r===clearTimeout)return clearTimeout(T);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(T);try{r(T)}catch{try{return r.call(null,T)}catch{return r.call(this,T)}}}(O)}}function _(O,S){this.fun=O,this.array=S}function w(){}i.nextTick=function(O){var S=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)S[T-1]=arguments[T];c.push(new _(O,S)),c.length!==1||h||l(x)},_.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=w,i.addListener=w,i.once=w,i.off=w,i.removeListener=w,i.removeAllListeners=w,i.emit=w,i.prependListener=w,i.prependOnceListener=w,i.listeners=function(O){return[]},i.binding=function(O){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(O){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(a){return Object.prototype.toString.call(a)}t.isArray=function(a){return Array.isArray?Array.isArray(a):i(a)==="[object Array]"},t.isBoolean=function(a){return typeof a=="boolean"},t.isNull=function(a){return a===null},t.isNullOrUndefined=function(a){return a==null},t.isNumber=function(a){return typeof a=="number"},t.isString=function(a){return typeof a=="string"},t.isSymbol=function(a){return typeof a=="symbol"},t.isUndefined=function(a){return a===void 0},t.isRegExp=function(a){return i(a)==="[object RegExp]"},t.isObject=function(a){return typeof a=="object"&&a!==null},t.isDate=function(a){return i(a)==="[object Date]"},t.isError=function(a){return i(a)==="[object Error]"||a instanceof Error},t.isFunction=function(a){return typeof a=="function"},t.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,a,o,l){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var f,c,h=arguments.length;switch(h){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,a)});case 3:return r.nextTick(function(){i.call(null,a,o)});case 4:return r.nextTick(function(){i.call(null,a,o,l)});default:for(f=new Array(h-1),c=0;c<f.length;)f[c++]=arguments[c];return r.nextTick(function(){i.apply(null,f)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function a(l,f){for(var c in l)f[c]=l[c]}function o(l,f,c){return i(l,f,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(l,f,c){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,f,c)},o.alloc=function(l,f,c){if(typeof l!="number")throw new TypeError("Argument must be a number");var h=i(l);return f!==void 0?typeof c=="string"?h.fill(f,c):h.fill(f):h.fill(0),h},o.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},o.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,a){for(var o=i.length;o--;)if(r(i[o][0],a))return o;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,a){var o=i.__data__;return r(a)?o[typeof a=="string"?"string":"hash"]:o.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function o(l,f){this._id=l,this._clearFn=f}t.setTimeout=function(){return new o(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new o(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(l){l&&l.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(l,f){clearTimeout(l._idleTimeoutId),l._idleTimeout=f},t.unenroll=function(l){clearTimeout(l._idleTimeoutId),l._idleTimeout=-1},t._unrefActive=t.active=function(l){clearTimeout(l._idleTimeoutId);var f=l._idleTimeout;f>=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},f))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(o){return typeof o=="function"}function i(o){return typeof o=="object"&&o!==null}function a(o){return o===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(o){if(!function(l){return typeof l=="number"}(o)||o<0||isNaN(o))throw TypeError("n must be a positive number");return this._maxListeners=o,this},n.prototype.emit=function(o){var l,f,c,h,m,g;if(this._events||(this._events={}),o==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((l=arguments[1])instanceof Error)throw l;var x=new Error('Uncaught, unspecified "error" event. ('+l+")");throw x.context=l,x}if(a(f=this._events[o]))return!1;if(r(f))switch(arguments.length){case 1:f.call(this);break;case 2:f.call(this,arguments[1]);break;case 3:f.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),f.apply(this,h)}else if(i(f))for(h=Array.prototype.slice.call(arguments,1),c=(g=f.slice()).length,m=0;m<c;m++)g[m].apply(this,h);return!0},n.prototype.addListener=function(o,l){var f;if(!r(l))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",o,r(l.listener)?l.listener:l),this._events[o]?i(this._events[o])?this._events[o].push(l):this._events[o]=[this._events[o],l]:this._events[o]=l,i(this._events[o])&&!this._events[o].warned&&(f=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&f>0&&this._events[o].length>f&&(this._events[o].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[o].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(o,l){if(!r(l))throw TypeError("listener must be a function");var f=!1;function c(){this.removeListener(o,c),f||(f=!0,l.apply(this,arguments))}return c.listener=l,this.on(o,c),this},n.prototype.removeListener=function(o,l){var f,c,h,m;if(!r(l))throw TypeError("listener must be a function");if(!this._events||!this._events[o])return this;if(h=(f=this._events[o]).length,c=-1,f===l||r(f.listener)&&f.listener===l)delete this._events[o],this._events.removeListener&&this.emit("removeListener",o,l);else if(i(f)){for(m=h;m-- >0;)if(f[m]===l||f[m].listener&&f[m].listener===l){c=m;break}if(c<0)return this;f.length===1?(f.length=0,delete this._events[o]):f.splice(c,1),this._events.removeListener&&this.emit("removeListener",o,l)}return this},n.prototype.removeAllListeners=function(o){var l,f;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[o]&&delete this._events[o],this;if(arguments.length===0){for(l in this._events)l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events={},this}if(r(f=this._events[o]))this.removeListener(o,f);else if(f)for(;f.length;)this.removeListener(o,f[f.length-1]);return delete this._events[o],this},n.prototype.listeners=function(o){return this._events&&this._events[o]?r(this._events[o])?[this._events[o]]:this._events[o].slice():[]},n.prototype.listenerCount=function(o){if(this._events){var l=this._events[o];if(r(l))return 1;if(l)return l.length}return 0},n.listenerCount=function(o,l){return o.listenerCount(l)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,a){var o=n(6);function l(F){var V=this;this.next=null,this.entry=null,this.finish=function(){(function(H,te,ee){var re=H.entry;for(H.entry=null;re;){var Q=re.callback;te.pendingcb--,Q(void 0),re=re.next}te.corkedRequestsFree?te.corkedRequestsFree.next=H:te.corkedRequestsFree=H})(V,F)}}e.exports=A;var f,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o.nextTick;A.WritableState=T;var h=n(5);h.inherits=n(2);var m,g={deprecate:n(44)},x=n(24),_=n(7).Buffer,w=a.Uint8Array||function(){},O=n(25);function S(){}function T(F,V){f=f||n(1),F=F||{};var H=V instanceof f;this.objectMode=!!F.objectMode,H&&(this.objectMode=this.objectMode||!!F.writableObjectMode);var te=F.highWaterMark,ee=F.writableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=te||te===0?te:H&&(ee||ee===0)?ee:re,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=F.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=F.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){(function(le,X){var $=le._writableState,G=$.sync,se=$.writecb;if(function(ue){ue.writing=!1,ue.writecb=null,ue.length-=ue.writelen,ue.writelen=0}($),X)(function(ue,fe,de,Se,k){--fe.pendingcb,de?(o.nextTick(k,Se),o.nextTick(z,ue,fe),ue._writableState.errorEmitted=!0,ue.emit("error",Se)):(k(Se),ue._writableState.errorEmitted=!0,ue.emit("error",Se),z(ue,fe))})(le,$,G,X,se);else{var Z=D($);Z||$.corked||$.bufferProcessing||!$.bufferedRequest||R(le,$),G?c(P,le,$,Z,se):P(le,$,Z,se)}})(V,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function A(F){if(f=f||n(1),!(m.call(A,this)||this instanceof f))return new A(F);this._writableState=new T(F,this),this.writable=!0,F&&(typeof F.write=="function"&&(this._write=F.write),typeof F.writev=="function"&&(this._writev=F.writev),typeof F.destroy=="function"&&(this._destroy=F.destroy),typeof F.final=="function"&&(this._final=F.final)),x.call(this)}function j(F,V,H,te,ee,re,Q){V.writelen=te,V.writecb=Q,V.writing=!0,V.sync=!0,H?F._writev(ee,V.onwrite):F._write(ee,re,V.onwrite),V.sync=!1}function P(F,V,H,te){H||function(ee,re){re.length===0&&re.needDrain&&(re.needDrain=!1,ee.emit("drain"))}(F,V),V.pendingcb--,te(),z(F,V)}function R(F,V){V.bufferProcessing=!0;var H=V.bufferedRequest;if(F._writev&&H&&H.next){var te=V.bufferedRequestCount,ee=new Array(te),re=V.corkedRequestsFree;re.entry=H;for(var Q=0,oe=!0;H;)ee[Q]=H,H.isBuf||(oe=!1),H=H.next,Q+=1;ee.allBuffers=oe,j(F,V,!0,V.length,ee,"",re.finish),V.pendingcb++,V.lastBufferedRequest=null,re.next?(V.corkedRequestsFree=re.next,re.next=null):V.corkedRequestsFree=new l(V),V.bufferedRequestCount=0}else{for(;H;){var le=H.chunk,X=H.encoding,$=H.callback;if(j(F,V,!1,V.objectMode?1:le.length,le,X,$),H=H.next,V.bufferedRequestCount--,V.writing)break}H===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=H,V.bufferProcessing=!1}function D(F){return F.ending&&F.length===0&&F.bufferedRequest===null&&!F.finished&&!F.writing}function U(F,V){F._final(function(H){V.pendingcb--,H&&F.emit("error",H),V.prefinished=!0,F.emit("prefinish"),z(F,V)})}function z(F,V){var H=D(V);return H&&(function(te,ee){ee.prefinished||ee.finalCalled||(typeof te._final=="function"?(ee.pendingcb++,ee.finalCalled=!0,o.nextTick(U,te,ee)):(ee.prefinished=!0,te.emit("prefinish")))}(F,V),V.pendingcb===0&&(V.finished=!0,F.emit("finish"))),H}h.inherits(A,x),T.prototype.getBuffer=function(){for(var F=this.bufferedRequest,V=[];F;)V.push(F),F=F.next;return V},function(){try{Object.defineProperty(T.prototype,"buffer",{get:g.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(F){return!!m.call(this,F)||this===A&&F&&F._writableState instanceof T}})):m=function(F){return F instanceof this},A.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},A.prototype.write=function(F,V,H){var te=this._writableState,ee=!1,re=!te.objectMode&&function(Q){return _.isBuffer(Q)||Q instanceof w}(F);return re&&!_.isBuffer(F)&&(F=function(Q){return _.from(Q)}(F)),typeof V=="function"&&(H=V,V=null),re?V="buffer":V||(V=te.defaultEncoding),typeof H!="function"&&(H=S),te.ended?function(Q,oe){var le=new Error("write after end");Q.emit("error",le),o.nextTick(oe,le)}(this,H):(re||function(Q,oe,le,X){var $=!0,G=!1;return le===null?G=new TypeError("May not write null values to stream"):typeof le=="string"||le===void 0||oe.objectMode||(G=new TypeError("Invalid non-string/buffer chunk")),G&&(Q.emit("error",G),o.nextTick(X,G),$=!1),$}(this,te,F,H))&&(te.pendingcb++,ee=function(Q,oe,le,X,$,G){if(!le){var se=function(de,Se,k){return de.objectMode||de.decodeStrings===!1||typeof Se!="string"||(Se=_.from(Se,k)),Se}(oe,X,$);X!==se&&(le=!0,$="buffer",X=se)}var Z=oe.objectMode?1:X.length;oe.length+=Z;var ue=oe.length<oe.highWaterMark;if(ue||(oe.needDrain=!0),oe.writing||oe.corked){var fe=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:X,encoding:$,isBuf:le,callback:G,next:null},fe?fe.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else j(Q,oe,!1,Z,X,$,G);return ue}(this,te,re,F,V,H)),ee},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var F=this._writableState;F.corked&&(F.corked--,F.writing||F.corked||F.finished||F.bufferProcessing||!F.bufferedRequest||R(this,F))},A.prototype.setDefaultEncoding=function(F){if(typeof F=="string"&&(F=F.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((F+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+F);return this._writableState.defaultEncoding=F,this},Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(F,V,H){H(new Error("_write() is not implemented"))},A.prototype._writev=null,A.prototype.end=function(F,V,H){var te=this._writableState;typeof F=="function"?(H=F,F=null,V=null):typeof V=="function"&&(H=V,V=null),F!=null&&this.write(F,V),te.corked&&(te.corked=1,this.uncork()),te.ending||te.finished||function(ee,re,Q){re.ending=!0,z(ee,re),Q&&(re.finished?o.nextTick(Q):ee.once("finish",Q)),re.ended=!0,ee.writable=!1}(this,te,H)},Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(F){this._writableState&&(this._writableState.destroyed=F)}}),A.prototype.destroy=O.destroy,A.prototype._undestroy=O.undestroy,A.prototype._destroy=function(F,V){this.end(),V(F)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,a){e.exports=function o(l,f,c){function h(x,_){if(!f[x]){if(!l[x]){var w=typeof _dereq_=="function"&&_dereq_;if(!_&&w)return w(x,!0);if(m)return m(x,!0);var O=new Error("Cannot find module '"+x+"'");throw O.code="MODULE_NOT_FOUND",O}var S=f[x]={exports:{}};l[x][0].call(S.exports,function(T){return h(l[x][1][T]||T)},S,S.exports,o,l,f,c)}return f[x].exports}for(var m=typeof _dereq_=="function"&&_dereq_,g=0;g<c.length;g++)h(c[g]);return h}({1:[function(o,l,f){l.exports=function(c){var h=c._SomePromiseArray;function m(g){var x=new h(g),_=x.promise();return x.setHowMany(1),x.setUnwrap(),x.init(),_}c.any=function(g){return m(g)},c.prototype.any=function(){return m(this)}}},{}],2:[function(o,l,f){var c;try{throw new Error}catch(S){c=S}var h=o("./schedule"),m=o("./queue"),g=o("./util");function x(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new m(16),this._normalQueue=new m(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var S=this;this.drainQueues=function(){S._drainQueues()},this._schedule=h}function _(S,T,A){this._lateQueue.push(S,T,A),this._queueTick()}function w(S,T,A){this._normalQueue.push(S,T,A),this._queueTick()}function O(S){this._normalQueue._pushOne(S),this._queueTick()}x.prototype.setScheduler=function(S){var T=this._schedule;return this._schedule=S,this._customScheduler=!0,T},x.prototype.hasCustomScheduler=function(){return this._customScheduler},x.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},x.prototype.disableTrampolineIfNecessary=function(){g.hasDevTools&&(this._trampolineEnabled=!1)},x.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},x.prototype.fatalError=function(S,T){T?(r.stderr.write("Fatal "+(S instanceof Error?S.stack:S)+`
`),r.exit(2)):this.throwLater(S)},x.prototype.throwLater=function(S,T){if(arguments.length===1&&(T=S,S=function(){throw T}),typeof setTimeout<"u")setTimeout(function(){S(T)},0);else try{this._schedule(function(){S(T)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}},g.hasDevTools?(x.prototype.invokeLater=function(S,T,A){this._trampolineEnabled?_.call(this,S,T,A):this._schedule(function(){setTimeout(function(){S.call(T,A)},100)})},x.prototype.invoke=function(S,T,A){this._trampolineEnabled?w.call(this,S,T,A):this._schedule(function(){S.call(T,A)})},x.prototype.settlePromises=function(S){this._trampolineEnabled?O.call(this,S):this._schedule(function(){S._settlePromises()})}):(x.prototype.invokeLater=_,x.prototype.invoke=w,x.prototype.settlePromises=O),x.prototype._drainQueue=function(S){for(;S.length()>0;){var T=S.shift();if(typeof T=="function"){var A=S.shift(),j=S.shift();T.call(A,j)}else T._settlePromises()}},x.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},x.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},x.prototype._reset=function(){this._isTickUsed=!1},l.exports=x,l.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(o,l,f){l.exports=function(c,h,m,g){var x=!1,_=function(T,A){this._reject(A)},w=function(T,A){A.promiseRejectionQueued=!0,A.bindingPromise._then(_,_,null,this,T)},O=function(T,A){(50397184&this._bitField)==0&&this._resolveCallback(A.target)},S=function(T,A){A.promiseRejectionQueued||this._reject(T)};c.prototype.bind=function(T){x||(x=!0,c.prototype._propagateFrom=g.propagateFromFunction(),c.prototype._boundValue=g.boundValueFunction());var A=m(T),j=new c(h);j._propagateFrom(this,1);var P=this._target();if(j._setBoundTo(A),A instanceof c){var R={promiseRejectionQueued:!1,promise:j,target:P,bindingPromise:A};P._then(h,w,void 0,j,R),A._then(O,S,void 0,j,R),j._setOnCancel(A)}else j._resolveCallback(P);return j},c.prototype._setBoundTo=function(T){T!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=T):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(T,A){return c.resolve(A).bind(T)}}},{}],4:[function(o,l,f){var c;typeof Promise<"u"&&(c=Promise);var h=o("./promise")();h.noConflict=function(){try{Promise===h&&(Promise=c)}catch{}return h},l.exports=h},{"./promise":22}],5:[function(o,l,f){var c=Object.create;if(c){var h=c(null),m=c(null);h[" size"]=m[" size"]=0}l.exports=function(g){var x=o("./util"),_=x.canEvaluate;function w(T){return function(A,j){var P;if(A!=null&&(P=A[j]),typeof P!="function"){var R="Object "+x.classString(A)+" has no method '"+x.toString(j)+"'";throw new g.TypeError(R)}return P}(T,this.pop()).apply(T,this)}function O(T){return T[this]}function S(T){var A=+this;return A<0&&(A=Math.max(0,A+T.length)),T[A]}x.isIdentifier,g.prototype.call=function(T){var A=[].slice.call(arguments,1);return A.push(T),this._then(w,void 0,void 0,A,void 0)},g.prototype.get=function(T){var A;if(typeof T=="number")A=S;else if(_){var j=(void 0)(T);A=j!==null?j:O}else A=O;return this._then(A,void 0,void 0,T,void 0)}}},{"./util":36}],6:[function(o,l,f){l.exports=function(c,h,m,g){var x=o("./util"),_=x.tryCatch,w=x.errorObj,O=c._async;c.prototype.break=c.prototype.cancel=function(){if(!g.cancellation())return this._warn("cancellation is disabled");for(var S=this,T=S;S._isCancellable();){if(!S._cancelBy(T)){T._isFollowing()?T._followee().cancel():T._cancelBranched();break}var A=S._cancellationParent;if(A==null||!A._isCancellable()){S._isFollowing()?S._followee().cancel():S._cancelBranched();break}S._isFollowing()&&S._followee().cancel(),S._setWillBeCancelled(),T=S,S=A}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(S){return S===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),O.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(S,T){if(x.isArray(S))for(var A=0;A<S.length;++A)this._doInvokeOnCancel(S[A],T);else if(S!==void 0)if(typeof S=="function"){if(!T){var j=_(S).call(this._boundValue());j===w&&(this._attachExtraTrace(j.e),O.throwLater(j.e))}}else S._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var S=this._onCancel();this._unsetOnCancel(),O.invoke(this._doInvokeOnCancel,this,S)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(o,l,f){l.exports=function(c){var h=o("./util"),m=o("./es5").keys,g=h.tryCatch,x=h.errorObj;return function(_,w,O){return function(S){var T=O._boundValue();e:for(var A=0;A<_.length;++A){var j=_[A];if(j===Error||j!=null&&j.prototype instanceof Error){if(S instanceof j)return g(w).call(T,S)}else if(typeof j=="function"){var P=g(j).call(T,S);if(P===x)return P;if(P)return g(w).call(T,S)}else if(h.isObject(S)){for(var R=m(j),D=0;D<R.length;++D){var U=R[D];if(j[U]!=S[U])continue e}return g(w).call(T,S)}}return c}}}},{"./es5":13,"./util":36}],8:[function(o,l,f){l.exports=function(c){var h=!1,m=[];function g(){this._trace=new g.CapturedTrace(x())}function x(){var _=m.length-1;if(_>=0)return m[_]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},g.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,m.push(this._trace))},g.prototype._popContext=function(){if(this._trace!==void 0){var _=m.pop(),w=_._promiseCreated;return _._promiseCreated=null,w}return null},g.CapturedTrace=null,g.create=function(){if(h)return new g},g.deactivateLongStackTraces=function(){},g.activateLongStackTraces=function(){var _=c.prototype._pushContext,w=c.prototype._popContext,O=c._peekContext,S=c.prototype._peekContext,T=c.prototype._promiseCreated;g.deactivateLongStackTraces=function(){c.prototype._pushContext=_,c.prototype._popContext=w,c._peekContext=O,c.prototype._peekContext=S,c.prototype._promiseCreated=T,h=!1},h=!0,c.prototype._pushContext=g.prototype._pushContext,c.prototype._popContext=g.prototype._popContext,c._peekContext=c.prototype._peekContext=x,c.prototype._promiseCreated=function(){var A=this._peekContext();A&&A._promiseCreated==null&&(A._promiseCreated=this)}},g}},{}],9:[function(o,l,f){l.exports=function(c,h){var m,g,x,_=c._getDomain,w=c._async,O=o("./errors").Warning,S=o("./util"),T=S.canAttachTrace,A=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,j=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,R=null,D=null,U=!1,z=S.env("BLUEBIRD_DEBUG")!=0,F=!(S.env("BLUEBIRD_WARNINGS")==0||!z&&!S.env("BLUEBIRD_WARNINGS")),V=!(S.env("BLUEBIRD_LONG_STACK_TRACES")==0||!z&&!S.env("BLUEBIRD_LONG_STACK_TRACES")),H=S.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(F||!!S.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ye=this._target();ye._bitField=-1048577&ye._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if((524288&this._bitField)==0){this._setRejectionIsUnhandled();var ye=this;setTimeout(function(){ye._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){Te("rejectionHandled",m,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ye=this._settledValue();this._setUnhandledRejectionIsNotified(),Te("unhandledRejection",g,ye,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(ye,we,De){return K(ye,we,De||this)},c.onPossiblyUnhandledRejection=function(ye){var we=_();g=typeof ye=="function"?we===null?ye:S.domainBind(we,ye):void 0},c.onUnhandledRejectionHandled=function(ye){var we=_();m=typeof ye=="function"?we===null?ye:S.domainBind(we,ye):void 0};var te=function(){};c.longStackTraces=function(){if(w.haveItemsQueued()&&!Ye.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!Ye.longStackTraces&&ge()){var ye=c.prototype._captureStackTrace,we=c.prototype._attachExtraTrace;Ye.longStackTraces=!0,te=function(){if(w.haveItemsQueued()&&!Ye.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);c.prototype._captureStackTrace=ye,c.prototype._attachExtraTrace=we,h.deactivateLongStackTraces(),w.enableTrampoline(),Ye.longStackTraces=!1},c.prototype._captureStackTrace=k,c.prototype._attachExtraTrace=B,h.activateLongStackTraces(),w.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Ye.longStackTraces&&ge()};var ee=function(){try{if(typeof CustomEvent=="function"){var ye=new CustomEvent("CustomEvent");return S.global.dispatchEvent(ye),function(we,De){var Le=new CustomEvent(we.toLowerCase(),{detail:De,cancelable:!0});return!S.global.dispatchEvent(Le)}}return typeof Event=="function"?(ye=new Event("CustomEvent"),S.global.dispatchEvent(ye),function(we,De){var Le=new Event(we.toLowerCase(),{cancelable:!0});return Le.detail=De,!S.global.dispatchEvent(Le)}):((ye=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),S.global.dispatchEvent(ye),function(we,De){var Le=document.createEvent("CustomEvent");return Le.initCustomEvent(we.toLowerCase(),!1,!0,De),!S.global.dispatchEvent(Le)})}catch{}return function(){return!1}}(),re=S.isNode?function(){return r.emit.apply(r,arguments)}:S.global?function(ye){var we="on"+ye.toLowerCase(),De=S.global[we];return!!De&&(De.apply(S.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Q(ye,we){return{promise:we}}var oe={promiseCreated:Q,promiseFulfilled:Q,promiseRejected:Q,promiseResolved:Q,promiseCancelled:Q,promiseChained:function(ye,we,De){return{promise:we,child:De}},warning:function(ye,we){return{warning:we}},unhandledRejection:function(ye,we,De){return{reason:we,promise:De}},rejectionHandled:Q},le=function(ye){var we=!1;try{we=re.apply(null,arguments)}catch(Le){w.throwLater(Le),we=!0}var De=!1;try{De=ee(ye,oe[ye].apply(null,arguments))}catch(Le){w.throwLater(Le),De=!0}return De||we};function X(){return!1}function $(ye,we,De){var Le=this;try{ye(we,De,function(Ie){if(typeof Ie!="function")throw new TypeError("onCancel must be a function, got: "+S.toString(Ie));Le._attachCancellationCallback(Ie)})}catch(Ie){return Ie}}function G(ye){if(!this._isCancellable())return this;var we=this._onCancel();we!==void 0?S.isArray(we)?we.push(ye):this._setOnCancel([we,ye]):this._setOnCancel(ye)}function se(){return this._onCancelField}function Z(ye){this._onCancelField=ye}function ue(){this._cancellationParent=void 0,this._onCancelField=void 0}function fe(ye,we){if((1&we)!=0){this._cancellationParent=ye;var De=ye._branchesRemainingToCancel;De===void 0&&(De=0),ye._branchesRemainingToCancel=De+1}(2&we)!=0&&ye._isBound()&&this._setBoundTo(ye._boundTo)}c.config=function(ye){if("longStackTraces"in(ye=Object(ye))&&(ye.longStackTraces?c.longStackTraces():!ye.longStackTraces&&c.hasLongStackTraces()&&te()),"warnings"in ye){var we=ye.warnings;Ye.warnings=!!we,H=Ye.warnings,S.isObject(we)&&"wForgottenReturn"in we&&(H=!!we.wForgottenReturn)}if("cancellation"in ye&&ye.cancellation&&!Ye.cancellation){if(w.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=ue,c.prototype._propagateFrom=fe,c.prototype._onCancel=se,c.prototype._setOnCancel=Z,c.prototype._attachCancellationCallback=G,c.prototype._execute=$,de=fe,Ye.cancellation=!0}return"monitoring"in ye&&(ye.monitoring&&!Ye.monitoring?(Ye.monitoring=!0,c.prototype._fireEvent=le):!ye.monitoring&&Ye.monitoring&&(Ye.monitoring=!1,c.prototype._fireEvent=X)),c},c.prototype._fireEvent=X,c.prototype._execute=function(ye,we,De){try{ye(we,De)}catch(Le){return Le}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ye){},c.prototype._attachCancellationCallback=function(ye){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ye,we){};var de=function(ye,we){(2&we)!=0&&ye._isBound()&&this._setBoundTo(ye._boundTo)};function Se(){var ye=this._boundTo;return ye!==void 0&&ye instanceof c?ye.isFulfilled()?ye.value():void 0:ye}function k(){this._trace=new Xe(this._peekContext())}function B(ye,we){if(T(ye)){var De=this._trace;if(De!==void 0&&we&&(De=De._parent),De!==void 0)De.attachExtraTrace(ye);else if(!ye.__stackCleaned__){var Le=ae(ye);S.notEnumerableProp(ye,"stack",Le.message+`
`+Le.stack.join(`
`)),S.notEnumerableProp(ye,"__stackCleaned__",!0)}}}function K(ye,we,De){if(Ye.warnings){var Le,Ie=new O(ye);if(we)De._attachExtraTrace(Ie);else if(Ye.longStackTraces&&(Le=c._peekContext()))Le.attachExtraTrace(Ie);else{var Ge=ae(Ie);Ie.stack=Ge.message+`
`+Ge.stack.join(`
`)}le("warning",Ie)||pe(Ie,"",!0)}}function ce(ye){for(var we=[],De=0;De<ye.length;++De){var Le=ye[De],Ie=Le===" (No stack trace)"||R.test(Le),Ge=Ie&&je(Le);Ie&&!Ge&&(U&&Le.charAt(0)!==" "&&(Le=" "+Le),we.push(Le))}return we}function ae(ye){var we=ye.stack,De=ye.toString();return we=typeof we=="string"&&we.length>0?function(Le){for(var Ie=Le.stack.replace(/\s+$/g,"").split(`
`),Ge=0;Ge<Ie.length;++Ge){var Ze=Ie[Ge];if(Ze===" (No stack trace)"||R.test(Ze))break}return Ge>0&&Le.name!="SyntaxError"&&(Ie=Ie.slice(Ge)),Ie}(ye):[" (No stack trace)"],{message:De,stack:ye.name=="SyntaxError"?we:ce(we)}}function pe(ye,we,De){if(typeof console<"u"){var Le;if(S.isObject(ye)){var Ie=ye.stack;Le=we+D(Ie,ye)}else Le=we+String(ye);typeof x=="function"?x(Le,De):typeof console.log!="function"&&typeof console.log!="object"||console.log(Le)}}function Te(ye,we,De,Le){var Ie=!1;try{typeof we=="function"&&(Ie=!0,ye==="rejectionHandled"?we(Le):we(De,Le))}catch(Ge){w.throwLater(Ge)}ye==="unhandledRejection"?le(ye,De,Le)||Ie||pe(De,"Unhandled rejection "):le(ye,Le)}function Fe(ye){var we;if(typeof ye=="function")we="[function "+(ye.name||"anonymous")+"]";else{if(we=ye&&typeof ye.toString=="function"?ye.toString():S.toString(ye),/\[object [a-zA-Z0-9$_]+\]/.test(we))try{we=JSON.stringify(ye)}catch{}we.length===0&&(we="(empty array)")}return"(<"+function(De){return De.length<41?De:De.substr(0,38)+"..."}(we)+">, no stack trace)"}function ge(){return typeof qe=="function"}var je=function(){return!1},Me=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Be(ye){var we=ye.match(Me);if(we)return{fileName:we[1],line:parseInt(we[2],10)}}function Xe(ye){this._parent=ye,this._promisesCreated=0;var we=this._length=1+(ye===void 0?0:ye._length);qe(this,Xe),we>32&&this.uncycle()}S.inherits(Xe,Error),h.CapturedTrace=Xe,Xe.prototype.uncycle=function(){var ye=this._length;if(!(ye<2)){for(var we=[],De={},Le=0,Ie=this;Ie!==void 0;++Le)we.push(Ie),Ie=Ie._parent;for(Le=(ye=this._length=Le)-1;Le>=0;--Le){var Ge=we[Le].stack;De[Ge]===void 0&&(De[Ge]=Le)}for(Le=0;Le<ye;++Le){var Ze=De[we[Le].stack];if(Ze!==void 0&&Ze!==Le){Ze>0&&(we[Ze-1]._parent=void 0,we[Ze-1]._length=1),we[Le]._parent=void 0,we[Le]._length=1;var Ot=Le>0?we[Le-1]:this;Ze<ye-1?(Ot._parent=we[Ze+1],Ot._parent.uncycle(),Ot._length=Ot._parent._length+1):(Ot._parent=void 0,Ot._length=1);for(var Et=Ot._length+1,bt=Le-2;bt>=0;--bt)we[bt]._length=Et,Et++;return}}}},Xe.prototype.attachExtraTrace=function(ye){if(!ye.__stackCleaned__){this.uncycle();for(var we=ae(ye),De=we.message,Le=[we.stack],Ie=this;Ie!==void 0;)Le.push(ce(Ie.stack.split(`
`))),Ie=Ie._parent;(function(Ge){for(var Ze=Ge[0],Ot=1;Ot<Ge.length;++Ot){for(var Et=Ge[Ot],bt=Ze.length-1,Zt=Ze[bt],Ht=-1,nn=Et.length-1;nn>=0;--nn)if(Et[nn]===Zt){Ht=nn;break}for(nn=Ht;nn>=0;--nn){var $n=Et[nn];if(Ze[bt]!==$n)break;Ze.pop(),bt--}Ze=Et}})(Le),function(Ge){for(var Ze=0;Ze<Ge.length;++Ze)(Ge[Ze].length===0||Ze+1<Ge.length&&Ge[Ze][0]===Ge[Ze+1][0])&&(Ge.splice(Ze,1),Ze--)}(Le),S.notEnumerableProp(ye,"stack",function(Ge,Ze){for(var Ot=0;Ot<Ze.length-1;++Ot)Ze[Ot].push("From previous event:"),Ze[Ot]=Ze[Ot].join(`
`);return Ot<Ze.length&&(Ze[Ot]=Ze[Ot].join(`
`)),Ge+`
`+Ze.join(`
`)}(De,Le)),S.notEnumerableProp(ye,"__stackCleaned__",!0)}};var qe=function(){var ye=/^\s*at\s*/,we=function(Ge,Ze){return typeof Ge=="string"?Ge:Ze.name!==void 0&&Ze.message!==void 0?Ze.toString():Fe(Ze)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,R=ye,D=we;var De=Error.captureStackTrace;return je=function(Ge){return A.test(Ge)},function(Ge,Ze){Error.stackTraceLimit+=6,De(Ge,Ze),Error.stackTraceLimit-=6}}var Le,Ie=new Error;if(typeof Ie.stack=="string"&&Ie.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return R=/@/,D=we,U=!0,function(Ge){Ge.stack=new Error().stack};try{throw new Error}catch(Ge){Le="stack"in Ge}return"stack"in Ie||!Le||typeof Error.stackTraceLimit!="number"?(D=function(Ge,Ze){return typeof Ge=="string"?Ge:typeof Ze!="object"&&typeof Ze!="function"||Ze.name===void 0||Ze.message===void 0?Fe(Ze):Ze.toString()},null):(R=ye,D=we,function(Ge){Error.stackTraceLimit+=6;try{throw new Error}catch(Ze){Ge.stack=Ze.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(x=function(ye){console.warn(ye)},S.isNode&&r.stderr.isTTY?x=function(ye,we){var De=we?"\x1B[33m":"\x1B[31m";console.warn(De+ye+`\x1B[0m
`)}:S.isNode||typeof new Error().stack!="string"||(x=function(ye,we){console.warn("%c"+ye,we?"color: darkorange":"color: red")}));var Ye={warnings:F,longStackTraces:!1,cancellation:!1,monitoring:!1};return V&&c.longStackTraces(),{longStackTraces:function(){return Ye.longStackTraces},warnings:function(){return Ye.warnings},cancellation:function(){return Ye.cancellation},monitoring:function(){return Ye.monitoring},propagateFromFunction:function(){return de},boundValueFunction:function(){return Se},checkForgottenReturns:function(ye,we,De,Le,Ie){if(ye===void 0&&we!==null&&H){if(Ie!==void 0&&Ie._returnedNonUndefined()||(65535&Le._bitField)==0)return;De&&(De+=" ");var Ge="",Ze="";if(we._trace){for(var Ot=we._trace.stack.split(`
`),Et=ce(Ot),bt=Et.length-1;bt>=0;--bt){var Zt=Et[bt];if(!j.test(Zt)){var Ht=Zt.match(P);Ht&&(Ge="at "+Ht[1]+":"+Ht[2]+":"+Ht[3]+" ");break}}if(Et.length>0){var nn=Et[0];for(bt=0;bt<Ot.length;++bt)if(Ot[bt]===nn){bt>0&&(Ze=`
`+Ot[bt-1]);break}}}var $n="a promise was created in a "+De+"handler "+Ge+"but was not returned from it, see http://goo.gl/rRqMUw"+Ze;Le._warn($n,!0,we)}},setBounds:function(ye,we){if(ge()){for(var De,Le,Ie=ye.stack.split(`
`),Ge=we.stack.split(`
`),Ze=-1,Ot=-1,Et=0;Et<Ie.length;++Et)if(bt=Be(Ie[Et])){De=bt.fileName,Ze=bt.line;break}for(Et=0;Et<Ge.length;++Et){var bt;if(bt=Be(Ge[Et])){Le=bt.fileName,Ot=bt.line;break}}Ze<0||Ot<0||!De||!Le||De!==Le||Ze>=Ot||(je=function(Zt){if(A.test(Zt))return!0;var Ht=Be(Zt);return!!(Ht&&Ht.fileName===De&&Ze<=Ht.line&&Ht.line<=Ot)})}},warn:K,deprecated:function(ye,we){var De=ye+" is deprecated and will be removed in a future version.";return we&&(De+=" Use "+we+" instead."),K(De)},CapturedTrace:Xe,fireDomEvent:ee,fireGlobalEvent:re}}},{"./errors":12,"./util":36}],10:[function(o,l,f){l.exports=function(c){function h(){return this.value}function m(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(g){return g instanceof c&&g.suppressUnhandledRejections(),this._then(h,void 0,void 0,{value:g},void 0)},c.prototype.throw=c.prototype.thenThrow=function(g){return this._then(m,void 0,void 0,{reason:g},void 0)},c.prototype.catchThrow=function(g){if(arguments.length<=1)return this._then(void 0,m,void 0,{reason:g},void 0);var x=arguments[1];return this.caught(g,function(){throw x})},c.prototype.catchReturn=function(g){if(arguments.length<=1)return g instanceof c&&g.suppressUnhandledRejections(),this._then(void 0,h,void 0,{value:g},void 0);var x=arguments[1];return x instanceof c&&x.suppressUnhandledRejections(),this.caught(g,function(){return x})}}},{}],11:[function(o,l,f){l.exports=function(c,h){var m=c.reduce,g=c.all;function x(){return g(this)}c.prototype.each=function(_){return m(this,_,h,0)._then(x,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(_){return m(this,_,h,h)},c.each=function(_,w){return m(_,w,h,0)._then(x,void 0,void 0,_,void 0)},c.mapSeries=function(_,w){return m(_,w,h,h)}}},{}],12:[function(o,l,f){var c,h,m=o("./es5"),g=m.freeze,x=o("./util"),_=x.inherits,w=x.notEnumerableProp;function O(F,V){function H(te){if(!(this instanceof H))return new H(te);w(this,"message",typeof te=="string"?te:V),w(this,"name",F),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return _(H,Error),H}var S=O("Warning","warning"),T=O("CancellationError","cancellation error"),A=O("TimeoutError","timeout error"),j=O("AggregateError","aggregate error");try{c=TypeError,h=RangeError}catch{c=O("TypeError","type error"),h=O("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),R=0;R<P.length;++R)typeof Array.prototype[P[R]]=="function"&&(j.prototype[P[R]]=Array.prototype[P[R]]);m.defineProperty(j.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),j.prototype.isOperational=!0;var D=0;function U(F){if(!(this instanceof U))return new U(F);w(this,"name","OperationalError"),w(this,"message",F),this.cause=F,this.isOperational=!0,F instanceof Error?(w(this,"message",F.message),w(this,"stack",F.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}j.prototype.toString=function(){var F=Array(4*D+1).join(" "),V=`
`+F+`AggregateError of:
`;D++,F=Array(4*D+1).join(" ");for(var H=0;H<this.length;++H){for(var te=this[H]===this?"[Circular AggregateError]":this[H]+"",ee=te.split(`
`),re=0;re<ee.length;++re)ee[re]=F+ee[re];V+=(te=ee.join(`
`))+`
`}return D--,V},_(U,Error);var z=Error.__BluebirdErrorTypes__;z||(z=g({CancellationError:T,TimeoutError:A,OperationalError:U,RejectionError:U,AggregateError:j}),m.defineProperty(Error,"__BluebirdErrorTypes__",{value:z,writable:!1,enumerable:!1,configurable:!1})),l.exports={Error,TypeError:c,RangeError:h,CancellationError:z.CancellationError,OperationalError:z.OperationalError,TimeoutError:z.TimeoutError,AggregateError:z.AggregateError,Warning:S}},{"./es5":13,"./util":36}],13:[function(o,l,f){var c=function(){return this===void 0}();if(c)l.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:c,propertyIsWritable:function(_,w){var O=Object.getOwnPropertyDescriptor(_,w);return!(O&&!O.writable&&!O.set)}};else{var h={}.hasOwnProperty,m={}.toString,g={}.constructor.prototype,x=function(_){var w=[];for(var O in _)h.call(_,O)&&w.push(O);return w};l.exports={isArray:function(_){try{return m.call(_)==="[object Array]"}catch{return!1}},keys:x,names:x,defineProperty:function(_,w,O){return _[w]=O.value,_},getDescriptor:function(_,w){return{value:_[w]}},freeze:function(_){return _},getPrototypeOf:function(_){try{return Object(_).constructor.prototype}catch{return g}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(o,l,f){l.exports=function(c,h){var m=c.map;c.prototype.filter=function(g,x){return m(this,g,x,h)},c.filter=function(g,x,_){return m(g,x,_,h)}}},{}],15:[function(o,l,f){l.exports=function(c,h,m){var g=o("./util"),x=c.CancellationError,_=g.errorObj,w=o("./catch_filter")(m);function O(R,D,U){this.promise=R,this.type=D,this.handler=U,this.called=!1,this.cancelPromise=null}function S(R){this.finallyHandler=R}function T(R,D){return R.cancelPromise!=null&&(arguments.length>1?R.cancelPromise._reject(D):R.cancelPromise._cancel(),R.cancelPromise=null,!0)}function A(){return P.call(this,this.promise._target()._settledValue())}function j(R){if(!T(this,R))return _.e=R,_}function P(R){var D=this.promise,U=this.handler;if(!this.called){this.called=!0;var z=this.isFinallyHandler()?U.call(D._boundValue()):U.call(D._boundValue(),R);if(z===m)return z;if(z!==void 0){D._setReturnedNonUndefined();var F=h(z,D);if(F instanceof c){if(this.cancelPromise!=null){if(F._isCancelled()){var V=new x("late cancellation observer");return D._attachExtraTrace(V),_.e=V,_}F.isPending()&&F._attachCancellationCallback(new S(this))}return F._then(A,j,void 0,this,void 0)}}}return D.isRejected()?(T(this),_.e=R,_):(T(this),R)}return O.prototype.isFinallyHandler=function(){return this.type===0},S.prototype._resultCancelled=function(){T(this.finallyHandler)},c.prototype._passThrough=function(R,D,U,z){return typeof R!="function"?this.then():this._then(U,z,void 0,new O(this,D,R),void 0)},c.prototype.lastly=c.prototype.finally=function(R){return this._passThrough(R,0,P,P)},c.prototype.tap=function(R){return this._passThrough(R,1,P)},c.prototype.tapCatch=function(R){var D=arguments.length;if(D===1)return this._passThrough(R,1,void 0,P);var U,z=new Array(D-1),F=0;for(U=0;U<D-1;++U){var V=arguments[U];if(!g.isObject(V))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+g.classString(V)));z[F++]=V}z.length=F;var H=arguments[U];return this._passThrough(w(z,H,this),1,void 0,P)},O}},{"./catch_filter":7,"./util":36}],16:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=o("./errors").TypeError,O=o("./util"),S=O.errorObj,T=O.tryCatch,A=[];function j(P,R,D,U){if(_.cancellation()){var z=new c(m),F=this._finallyPromise=new c(m);this._promise=z.lastly(function(){return F}),z._captureStackTrace(),z._setOnCancel(this)}else(this._promise=new c(m))._captureStackTrace();this._stack=U,this._generatorFunction=P,this._receiver=R,this._generator=void 0,this._yieldHandlers=typeof D=="function"?[D].concat(A):A,this._yieldedPromise=null,this._cancellationPhase=!1}O.inherits(j,x),j.prototype._isResolved=function(){return this._promise===null},j.prototype._cleanup=function(){this._promise=this._generator=null,_.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},j.prototype._promiseCancelled=function(){if(!this._isResolved()){var P;if(this._generator.return!==void 0)this._promise._pushContext(),P=T(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var R=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=R,this._promise._attachExtraTrace(R),this._promise._pushContext(),P=T(this._generator.throw).call(this._generator,R),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(P)}},j.prototype._promiseFulfilled=function(P){this._yieldedPromise=null,this._promise._pushContext();var R=T(this._generator.next).call(this._generator,P);this._promise._popContext(),this._continue(R)},j.prototype._promiseRejected=function(P){this._yieldedPromise=null,this._promise._attachExtraTrace(P),this._promise._pushContext();var R=T(this._generator.throw).call(this._generator,P);this._promise._popContext(),this._continue(R)},j.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var P=this._yieldedPromise;this._yieldedPromise=null,P.cancel()}},j.prototype.promise=function(){return this._promise},j.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},j.prototype._continue=function(P){var R=this._promise;if(P===S)return this._cleanup(),this._cancellationPhase?R.cancel():R._rejectCallback(P.e,!1);var D=P.value;if(P.done===!0)return this._cleanup(),this._cancellationPhase?R.cancel():R._resolveCallback(D);var U=g(D,this._promise);if(U instanceof c||(U=function(F,V,H){for(var te=0;te<V.length;++te){H._pushContext();var ee=T(V[te])(F);if(H._popContext(),ee===S){H._pushContext();var re=c.reject(S.e);return H._popContext(),re}var Q=g(ee,H);if(Q instanceof c)return Q}return null}(U,this._yieldHandlers,this._promise))!==null){var z=(U=U._target())._bitField;(50397184&z)==0?(this._yieldedPromise=U,U._proxy(this,null)):(33554432&z)!=0?c._async.invoke(this._promiseFulfilled,this,U._value()):(16777216&z)!=0?c._async.invoke(this._promiseRejected,this,U._reason()):this._promiseCancelled()}else this._promiseRejected(new w(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String(D))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},c.coroutine=function(P,R){if(typeof P!="function")throw new w(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var D=Object(R).yieldHandler,U=j,z=new Error().stack;return function(){var F=P.apply(this,arguments),V=new U(void 0,void 0,D,z),H=V.promise();return V._generator=F,V._promiseFulfilled(void 0),H}},c.coroutine.addYieldHandler=function(P){if(typeof P!="function")throw new w("expecting a function but got "+O.classString(P));A.push(P)},c.spawn=function(P){if(_.deprecated("Promise.spawn()","Promise.coroutine()"),typeof P!="function")return h(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var R=new j(P,this),D=R.promise();return R._run(c.spawn),D}}},{"./errors":12,"./util":36}],17:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=o("./util");w.canEvaluate,w.tryCatch,w.errorObj,c.join=function(){var O,S=arguments.length-1;S>0&&typeof arguments[S]=="function"&&(O=arguments[S]);var T=[].slice.call(arguments);O&&T.pop();var A=new h(T).promise();return O!==void 0?A.spread(O):A}}},{"./util":36}],18:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=c._getDomain,O=o("./util"),S=O.tryCatch,T=O.errorObj,A=c._async;function j(R,D,U,z){this.constructor$(R),this._promise._captureStackTrace();var F=w();this._callback=F===null?D:O.domainBind(F,D),this._preservedValues=z===x?new Array(this.length()):null,this._limit=U,this._inFlight=0,this._queue=[],A.invoke(this._asyncInit,this,void 0)}function P(R,D,U,z){if(typeof D!="function")return m("expecting a function but got "+O.classString(D));var F=0;if(U!==void 0){if(typeof U!="object"||U===null)return c.reject(new TypeError("options argument must be an object but it is "+O.classString(U)));if(typeof U.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+O.classString(U.concurrency)));F=U.concurrency}return new j(R,D,F=typeof F=="number"&&isFinite(F)&&F>=1?F:0,z).promise()}O.inherits(j,h),j.prototype._asyncInit=function(){this._init$(void 0,-2)},j.prototype._init=function(){},j.prototype._promiseFulfilled=function(R,D){var U=this._values,z=this.length(),F=this._preservedValues,V=this._limit;if(D<0){if(U[D=-1*D-1]=R,V>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(V>=1&&this._inFlight>=V)return U[D]=R,this._queue.push(D),!1;F!==null&&(F[D]=R);var H=this._promise,te=this._callback,ee=H._boundValue();H._pushContext();var re=S(te).call(ee,R,D,z),Q=H._popContext();if(_.checkForgottenReturns(re,Q,F!==null?"Promise.filter":"Promise.map",H),re===T)return this._reject(re.e),!0;var oe=g(re,this._promise);if(oe instanceof c){var le=(oe=oe._target())._bitField;if((50397184&le)==0)return V>=1&&this._inFlight++,U[D]=oe,oe._proxy(this,-1*(D+1)),!1;if((33554432&le)==0)return(16777216&le)!=0?(this._reject(oe._reason()),!0):(this._cancel(),!0);re=oe._value()}U[D]=re}return++this._totalResolved>=z&&(F!==null?this._filter(U,F):this._resolve(U),!0)},j.prototype._drainQueue=function(){for(var R=this._queue,D=this._limit,U=this._values;R.length>0&&this._inFlight<D;){if(this._isResolved())return;var z=R.pop();this._promiseFulfilled(U[z],z)}},j.prototype._filter=function(R,D){for(var U=D.length,z=new Array(U),F=0,V=0;V<U;++V)R[V]&&(z[F++]=D[V]);z.length=F,this._resolve(z)},j.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(R,D){return P(this,R,D,null)},c.map=function(R,D,U,z){return P(R,D,U,z)}}},{"./util":36}],19:[function(o,l,f){l.exports=function(c,h,m,g,x){var _=o("./util"),w=_.tryCatch;c.method=function(O){if(typeof O!="function")throw new c.TypeError("expecting a function but got "+_.classString(O));return function(){var S=new c(h);S._captureStackTrace(),S._pushContext();var T=w(O).apply(this,arguments),A=S._popContext();return x.checkForgottenReturns(T,A,"Promise.method",S),S._resolveFromSyncValue(T),S}},c.attempt=c.try=function(O){if(typeof O!="function")return g("expecting a function but got "+_.classString(O));var S,T=new c(h);if(T._captureStackTrace(),T._pushContext(),arguments.length>1){x.deprecated("calling Promise.try with more than 1 argument");var A=arguments[1],j=arguments[2];S=_.isArray(A)?w(O).apply(j,A):w(O).call(j,A)}else S=w(O)();var P=T._popContext();return x.checkForgottenReturns(S,P,"Promise.try",T),T._resolveFromSyncValue(S),T},c.prototype._resolveFromSyncValue=function(O){O===_.errorObj?this._rejectCallback(O.e,!1):this._resolveCallback(O,!0)}}},{"./util":36}],20:[function(o,l,f){var c=o("./util"),h=c.maybeWrapAsError,m=o("./errors").OperationalError,g=o("./es5"),x=/^(?:name|message|stack|cause)$/;function _(w){var O;if(function(j){return j instanceof Error&&g.getPrototypeOf(j)===Error.prototype}(w)){(O=new m(w)).name=w.name,O.message=w.message,O.stack=w.stack;for(var S=g.keys(w),T=0;T<S.length;++T){var A=S[T];x.test(A)||(O[A]=w[A])}return O}return c.markAsOriginatingFromRejection(w),w}l.exports=function(w,O){return function(S,T){if(w!==null){if(S){var A=_(h(S));w._attachExtraTrace(A),w._reject(A)}else if(O){var j=[].slice.call(arguments,1);w._fulfill(j)}else w._fulfill(T);w=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(o,l,f){l.exports=function(c){var h=o("./util"),m=c._async,g=h.tryCatch,x=h.errorObj;function _(S,T){if(!h.isArray(S))return w.call(this,S,T);var A=g(T).apply(this._boundValue(),[null].concat(S));A===x&&m.throwLater(A.e)}function w(S,T){var A=this._boundValue(),j=S===void 0?g(T).call(A,null):g(T).call(A,null,S);j===x&&m.throwLater(j.e)}function O(S,T){if(!S){var A=new Error(S+"");A.cause=S,S=A}var j=g(T).call(this._boundValue(),S);j===x&&m.throwLater(j.e)}c.prototype.asCallback=c.prototype.nodeify=function(S,T){if(typeof S=="function"){var A=w;T!==void 0&&Object(T).spread&&(A=_),this._then(A,O,void 0,this,S)}return this}}},{"./util":36}],22:[function(o,l,f){l.exports=function(){var c=function(){return new j(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},h=function(){return new X.PromiseInspection(this._target())},m=function(Z){return X.reject(new j(Z))};function g(){}var x,_={},w=o("./util");x=w.isNode?function(){var Z=r.domain;return Z===void 0&&(Z=null),Z}:function(){return null},w.notEnumerableProp(X,"_getDomain",x);var O=o("./es5"),S=o("./async"),T=new S;O.defineProperty(X,"_async",{value:T});var A=o("./errors"),j=X.TypeError=A.TypeError;X.RangeError=A.RangeError;var P=X.CancellationError=A.CancellationError;X.TimeoutError=A.TimeoutError,X.OperationalError=A.OperationalError,X.RejectionError=A.OperationalError,X.AggregateError=A.AggregateError;var R=function(){},D={},U={},z=o("./thenables")(X,R),F=o("./promise_array")(X,R,z,m,g),V=o("./context")(X),H=V.create,te=o("./debuggability")(X,V),ee=(te.CapturedTrace,o("./finally")(X,z,U)),re=o("./catch_filter")(U),Q=o("./nodeback"),oe=w.errorObj,le=w.tryCatch;function X(Z){Z!==R&&function(ue,fe){if(ue==null||ue.constructor!==X)throw new j(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`);if(typeof fe!="function")throw new j("expecting a function but got "+w.classString(fe))}(this,Z),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(Z),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function $(Z){this.promise._resolveCallback(Z)}function G(Z){this.promise._rejectCallback(Z,!1)}function se(Z){var ue=new X(R);ue._fulfillmentHandler0=Z,ue._rejectionHandler0=Z,ue._promise0=Z,ue._receiver0=Z}return X.prototype.toString=function(){return"[object Promise]"},X.prototype.caught=X.prototype.catch=function(Z){var ue=arguments.length;if(ue>1){var fe,de=new Array(ue-1),Se=0;for(fe=0;fe<ue-1;++fe){var k=arguments[fe];if(!w.isObject(k))return m("Catch statement predicate: expecting an object but got "+w.classString(k));de[Se++]=k}return de.length=Se,Z=arguments[fe],this.then(void 0,re(de,Z,this))}return this.then(void 0,Z)},X.prototype.reflect=function(){return this._then(h,h,void 0,this,void 0)},X.prototype.then=function(Z,ue){if(te.warnings()&&arguments.length>0&&typeof Z!="function"&&typeof ue!="function"){var fe=".then() only accepts functions but was passed: "+w.classString(Z);arguments.length>1&&(fe+=", "+w.classString(ue)),this._warn(fe)}return this._then(Z,ue,void 0,void 0,void 0)},X.prototype.done=function(Z,ue){this._then(Z,ue,void 0,void 0,void 0)._setIsFinal()},X.prototype.spread=function(Z){return typeof Z!="function"?m("expecting a function but got "+w.classString(Z)):this.all()._then(Z,void 0,void 0,D,void 0)},X.prototype.toJSON=function(){var Z={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(Z.fulfillmentValue=this.value(),Z.isFulfilled=!0):this.isRejected()&&(Z.rejectionReason=this.reason(),Z.isRejected=!0),Z},X.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new F(this).promise()},X.prototype.error=function(Z){return this.caught(w.originatesFromRejection,Z)},X.getNewLibraryCopy=l.exports,X.is=function(Z){return Z instanceof X},X.fromNode=X.fromCallback=function(Z){var ue=new X(R);ue._captureStackTrace();var fe=arguments.length>1&&!!Object(arguments[1]).multiArgs,de=le(Z)(Q(ue,fe));return de===oe&&ue._rejectCallback(de.e,!0),ue._isFateSealed()||ue._setAsyncGuaranteed(),ue},X.all=function(Z){return new F(Z).promise()},X.cast=function(Z){var ue=z(Z);return ue instanceof X||((ue=new X(R))._captureStackTrace(),ue._setFulfilled(),ue._rejectionHandler0=Z),ue},X.resolve=X.fulfilled=X.cast,X.reject=X.rejected=function(Z){var ue=new X(R);return ue._captureStackTrace(),ue._rejectCallback(Z,!0),ue},X.setScheduler=function(Z){if(typeof Z!="function")throw new j("expecting a function but got "+w.classString(Z));return T.setScheduler(Z)},X.prototype._then=function(Z,ue,fe,de,Se){var k=Se!==void 0,B=k?Se:new X(R),K=this._target(),ce=K._bitField;k||(B._propagateFrom(this,3),B._captureStackTrace(),de===void 0&&(2097152&this._bitField)!=0&&(de=(50397184&ce)!=0?this._boundValue():K===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,B));var ae=x();if((50397184&ce)!=0){var pe,Te,Fe=K._settlePromiseCtx;(33554432&ce)!=0?(Te=K._rejectionHandler0,pe=Z):(16777216&ce)!=0?(Te=K._fulfillmentHandler0,pe=ue,K._unsetRejectionIsUnhandled()):(Fe=K._settlePromiseLateCancellationObserver,Te=new P("late cancellation observer"),K._attachExtraTrace(Te),pe=ue),T.invoke(Fe,K,{handler:ae===null?pe:typeof pe=="function"&&w.domainBind(ae,pe),promise:B,receiver:de,value:Te})}else K._addCallbacks(Z,ue,B,de,ae);return B},X.prototype._length=function(){return 65535&this._bitField},X.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},X.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},X.prototype._setLength=function(Z){this._bitField=-65536&this._bitField|65535&Z},X.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},X.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},X.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},X.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},X.prototype._isFinal=function(){return(4194304&this._bitField)>0},X.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},X.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},X.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},X.prototype._setAsyncGuaranteed=function(){T.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},X.prototype._receiverAt=function(Z){var ue=Z===0?this._receiver0:this[4*Z-4+3];if(ue!==_)return ue===void 0&&this._isBound()?this._boundValue():ue},X.prototype._promiseAt=function(Z){return this[4*Z-4+2]},X.prototype._fulfillmentHandlerAt=function(Z){return this[4*Z-4+0]},X.prototype._rejectionHandlerAt=function(Z){return this[4*Z-4+1]},X.prototype._boundValue=function(){},X.prototype._migrateCallback0=function(Z){Z._bitField;var ue=Z._fulfillmentHandler0,fe=Z._rejectionHandler0,de=Z._promise0,Se=Z._receiverAt(0);Se===void 0&&(Se=_),this._addCallbacks(ue,fe,de,Se,null)},X.prototype._migrateCallbackAt=function(Z,ue){var fe=Z._fulfillmentHandlerAt(ue),de=Z._rejectionHandlerAt(ue),Se=Z._promiseAt(ue),k=Z._receiverAt(ue);k===void 0&&(k=_),this._addCallbacks(fe,de,Se,k,null)},X.prototype._addCallbacks=function(Z,ue,fe,de,Se){var k=this._length();if(k>=65531&&(k=0,this._setLength(0)),k===0)this._promise0=fe,this._receiver0=de,typeof Z=="function"&&(this._fulfillmentHandler0=Se===null?Z:w.domainBind(Se,Z)),typeof ue=="function"&&(this._rejectionHandler0=Se===null?ue:w.domainBind(Se,ue));else{var B=4*k-4;this[B+2]=fe,this[B+3]=de,typeof Z=="function"&&(this[B+0]=Se===null?Z:w.domainBind(Se,Z)),typeof ue=="function"&&(this[B+1]=Se===null?ue:w.domainBind(Se,ue))}return this._setLength(k+1),k},X.prototype._proxy=function(Z,ue){this._addCallbacks(void 0,void 0,ue,Z,null)},X.prototype._resolveCallback=function(Z,ue){if((117506048&this._bitField)==0){if(Z===this)return this._rejectCallback(c(),!1);var fe=z(Z,this);if(!(fe instanceof X))return this._fulfill(Z);ue&&this._propagateFrom(fe,2);var de=fe._target();if(de!==this){var Se=de._bitField;if((50397184&Se)==0){var k=this._length();k>0&&de._migrateCallback0(this);for(var B=1;B<k;++B)de._migrateCallbackAt(this,B);this._setFollowing(),this._setLength(0),this._setFollowee(de)}else if((33554432&Se)!=0)this._fulfill(de._value());else if((16777216&Se)!=0)this._reject(de._reason());else{var K=new P("late cancellation observer");de._attachExtraTrace(K),this._reject(K)}}else this._reject(c())}},X.prototype._rejectCallback=function(Z,ue,fe){var de=w.ensureErrorObject(Z),Se=de===Z;if(!Se&&!fe&&te.warnings()){var k="a promise was rejected with a non-error: "+w.classString(Z);this._warn(k,!0)}this._attachExtraTrace(de,!!ue&&Se),this._reject(Z)},X.prototype._resolveFromExecutor=function(Z){if(Z!==R){var ue=this;this._captureStackTrace(),this._pushContext();var fe=!0,de=this._execute(Z,function(Se){ue._resolveCallback(Se)},function(Se){ue._rejectCallback(Se,fe)});fe=!1,this._popContext(),de!==void 0&&ue._rejectCallback(de,!0)}},X.prototype._settlePromiseFromHandler=function(Z,ue,fe,de){var Se=de._bitField;if((65536&Se)==0){var k;de._pushContext(),ue===D?fe&&typeof fe.length=="number"?k=le(Z).apply(this._boundValue(),fe):(k=oe).e=new j("cannot .spread() a non-array: "+w.classString(fe)):k=le(Z).call(ue,fe);var B=de._popContext();(65536&(Se=de._bitField))==0&&(k===U?de._reject(fe):k===oe?de._rejectCallback(k.e,!1):(te.checkForgottenReturns(k,B,"",de,this),de._resolveCallback(k)))}},X.prototype._target=function(){for(var Z=this;Z._isFollowing();)Z=Z._followee();return Z},X.prototype._followee=function(){return this._rejectionHandler0},X.prototype._setFollowee=function(Z){this._rejectionHandler0=Z},X.prototype._settlePromise=function(Z,ue,fe,de){var Se=Z instanceof X,k=this._bitField,B=(134217728&k)!=0;(65536&k)!=0?(Se&&Z._invokeInternalOnCancel(),fe instanceof ee&&fe.isFinallyHandler()?(fe.cancelPromise=Z,le(ue).call(fe,de)===oe&&Z._reject(oe.e)):ue===h?Z._fulfill(h.call(fe)):fe instanceof g?fe._promiseCancelled(Z):Se||Z instanceof F?Z._cancel():fe.cancel()):typeof ue=="function"?Se?(B&&Z._setAsyncGuaranteed(),this._settlePromiseFromHandler(ue,fe,de,Z)):ue.call(fe,de,Z):fe instanceof g?fe._isResolved()||((33554432&k)!=0?fe._promiseFulfilled(de,Z):fe._promiseRejected(de,Z)):Se&&(B&&Z._setAsyncGuaranteed(),(33554432&k)!=0?Z._fulfill(de):Z._reject(de))},X.prototype._settlePromiseLateCancellationObserver=function(Z){var ue=Z.handler,fe=Z.promise,de=Z.receiver,Se=Z.value;typeof ue=="function"?fe instanceof X?this._settlePromiseFromHandler(ue,de,Se,fe):ue.call(de,Se,fe):fe instanceof X&&fe._reject(Se)},X.prototype._settlePromiseCtx=function(Z){this._settlePromise(Z.promise,Z.handler,Z.receiver,Z.value)},X.prototype._settlePromise0=function(Z,ue,fe){var de=this._promise0,Se=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(de,Z,Se,ue)},X.prototype._clearCallbackDataAtIndex=function(Z){var ue=4*Z-4;this[ue+2]=this[ue+3]=this[ue+0]=this[ue+1]=void 0},X.prototype._fulfill=function(Z){var ue=this._bitField;if(!((117506048&ue)>>>16)){if(Z===this){var fe=c();return this._attachExtraTrace(fe),this._reject(fe)}this._setFulfilled(),this._rejectionHandler0=Z,(65535&ue)>0&&((134217728&ue)!=0?this._settlePromises():T.settlePromises(this))}},X.prototype._reject=function(Z){var ue=this._bitField;if(!((117506048&ue)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=Z,this._isFinal())return T.fatalError(Z,w.isNode);(65535&ue)>0?T.settlePromises(this):this._ensurePossibleRejectionHandled()}},X.prototype._fulfillPromises=function(Z,ue){for(var fe=1;fe<Z;fe++){var de=this._fulfillmentHandlerAt(fe),Se=this._promiseAt(fe),k=this._receiverAt(fe);this._clearCallbackDataAtIndex(fe),this._settlePromise(Se,de,k,ue)}},X.prototype._rejectPromises=function(Z,ue){for(var fe=1;fe<Z;fe++){var de=this._rejectionHandlerAt(fe),Se=this._promiseAt(fe),k=this._receiverAt(fe);this._clearCallbackDataAtIndex(fe),this._settlePromise(Se,de,k,ue)}},X.prototype._settlePromises=function(){var Z=this._bitField,ue=65535&Z;if(ue>0){if((16842752&Z)!=0){var fe=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,fe,Z),this._rejectPromises(ue,fe)}else{var de=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,de,Z),this._fulfillPromises(ue,de)}this._setLength(0)}this._clearCancellationData()},X.prototype._settledValue=function(){var Z=this._bitField;return(33554432&Z)!=0?this._rejectionHandler0:(16777216&Z)!=0?this._fulfillmentHandler0:void 0},X.defer=X.pending=function(){return te.deprecated("Promise.defer","new Promise"),{promise:new X(R),resolve:$,reject:G}},w.notEnumerableProp(X,"_makeSelfResolutionError",c),o("./method")(X,R,z,m,te),o("./bind")(X,R,z,te),o("./cancel")(X,F,m,te),o("./direct_resolve")(X),o("./synchronous_inspection")(X),o("./join")(X,F,z,R,T,x),X.Promise=X,X.version="3.5.1",o("./map.js")(X,F,m,z,R,te),o("./call_get.js")(X),o("./using.js")(X,m,z,H,R,te),o("./timers.js")(X,R,te),o("./generators.js")(X,m,R,z,g,te),o("./nodeify.js")(X),o("./promisify.js")(X,R),o("./props.js")(X,F,z,m),o("./race.js")(X,R,z,m),o("./reduce.js")(X,F,m,z,R,te),o("./settle.js")(X,F,te),o("./some.js")(X,F,m),o("./filter.js")(X,R),o("./each.js")(X,R),o("./any.js")(X),w.toFastProperties(X),w.toFastProperties(X.prototype),se({a:1}),se({b:2}),se({c:3}),se(1),se(function(){}),se(void 0),se(!1),se(new X(R)),te.setBounds(S.firstLineError,w.lastLineError),X}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(o,l,f){l.exports=function(c,h,m,g,x){var _=o("./util");function w(O){var S=this._promise=new c(h);O instanceof c&&S._propagateFrom(O,3),S._setOnCancel(this),this._values=O,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return _.isArray,_.inherits(w,x),w.prototype.length=function(){return this._length},w.prototype.promise=function(){return this._promise},w.prototype._init=function O(S,T){var A=m(this._values,this._promise);if(A instanceof c){var j=(A=A._target())._bitField;if(this._values=A,(50397184&j)==0)return this._promise._setAsyncGuaranteed(),A._then(O,this._reject,void 0,this,T);if((33554432&j)==0)return(16777216&j)!=0?this._reject(A._reason()):this._cancel();A=A._value()}if((A=_.asArray(A))!==null)A.length!==0?this._iterate(A):T===-5?this._resolveEmptyArray():this._resolve(function(R){switch(T){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=g("expecting an array or an iterable object but got "+_.classString(A)).reason();this._promise._rejectCallback(P,!1)}},w.prototype._iterate=function(O){var S=this.getActualLength(O.length);this._length=S,this._values=this.shouldCopyValues()?new Array(S):this._values;for(var T=this._promise,A=!1,j=null,P=0;P<S;++P){var R=m(O[P],T);j=R instanceof c?(R=R._target())._bitField:null,A?j!==null&&R.suppressUnhandledRejections():j!==null?(50397184&j)==0?(R._proxy(this,P),this._values[P]=R):A=(33554432&j)!=0?this._promiseFulfilled(R._value(),P):(16777216&j)!=0?this._promiseRejected(R._reason(),P):this._promiseCancelled(P):A=this._promiseFulfilled(R,P)}A||T._setAsyncGuaranteed()},w.prototype._isResolved=function(){return this._values===null},w.prototype._resolve=function(O){this._values=null,this._promise._fulfill(O)},w.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},w.prototype._reject=function(O){this._values=null,this._promise._rejectCallback(O,!1)},w.prototype._promiseFulfilled=function(O,S){return this._values[S]=O,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},w.prototype._promiseCancelled=function(){return this._cancel(),!0},w.prototype._promiseRejected=function(O){return this._totalResolved++,this._reject(O),!0},w.prototype._resultCancelled=function(){if(!this._isResolved()){var O=this._values;if(this._cancel(),O instanceof c)O.cancel();else for(var S=0;S<O.length;++S)O[S]instanceof c&&O[S].cancel()}},w.prototype.shouldCopyValues=function(){return!0},w.prototype.getActualLength=function(O){return O},w}},{"./util":36}],24:[function(o,l,f){l.exports=function(c,h){var m={},g=o("./util"),x=o("./nodeback"),_=g.withAppended,w=g.maybeWrapAsError,O=g.canEvaluate,S=o("./errors").TypeError,T={__isPromisified__:!0},A=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),j=function(H){return g.isIdentifier(H)&&H.charAt(0)!=="_"&&H!=="constructor"};function P(H){return!A.test(H)}function R(H){try{return H.__isPromisified__===!0}catch{return!1}}function D(H,te,ee){var re=g.getDataPropertyOrDefault(H,te+ee,T);return!!re&&R(re)}function U(H,te,ee,re){for(var Q=g.inheritedDataKeys(H),oe=[],le=0;le<Q.length;++le){var X=Q[le],$=H[X],G=re===j||j(X);typeof $!="function"||R($)||D(H,X,te)||!re(X,$,H,G)||oe.push(X,$)}return function(se,Z,ue){for(var fe=0;fe<se.length;fe+=2){var de=se[fe];if(ue.test(de)){for(var Se=de.replace(ue,""),k=0;k<se.length;k+=2)if(se[k]===Se)throw new S(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
`.replace("%s",Z))}}}(oe,te,ee),oe}var z=function(H){return H.replace(/([$])/,"\\$")},F=O?void 0:function(H,te,ee,re,Q,oe){var le=function(){return this}(),X=H;function $(){var G=te;te===m&&(G=this);var se=new c(h);se._captureStackTrace();var Z=typeof X=="string"&&this!==le?this[X]:H,ue=x(se,oe);try{Z.apply(G,_(arguments,ue))}catch(fe){se._rejectCallback(w(fe),!0,!0)}return se._isFateSealed()||se._setAsyncGuaranteed(),se}return typeof X=="string"&&(H=re),g.notEnumerableProp($,"__isPromisified__",!0),$};function V(H,te,ee,re,Q){for(var oe=new RegExp(z(te)+"$"),le=U(H,te,oe,ee),X=0,$=le.length;X<$;X+=2){var G=le[X],se=le[X+1],Z=G+te;if(re===F)H[Z]=F(G,m,G,se,te,Q);else{var ue=re(se,function(){return F(G,m,G,se,te,Q)});g.notEnumerableProp(ue,"__isPromisified__",!0),H[Z]=ue}}return g.toFastProperties(H),H}c.promisify=function(H,te){if(typeof H!="function")throw new S("expecting a function but got "+g.classString(H));if(R(H))return H;var ee=(te=Object(te)).context===void 0?m:te.context,re=!!te.multiArgs,Q=function(oe,le,X){return F(oe,le,void 0,oe,null,re)}(H,ee);return g.copyDescriptors(H,Q,P),Q},c.promisifyAll=function(H,te){if(typeof H!="function"&&typeof H!="object")throw new S(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);var ee=!!(te=Object(te)).multiArgs,re=te.suffix;typeof re!="string"&&(re="Async");var Q=te.filter;typeof Q!="function"&&(Q=j);var oe=te.promisifier;if(typeof oe!="function"&&(oe=F),!g.isIdentifier(re))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var le=g.inheritedDataKeys(H),X=0;X<le.length;++X){var $=H[le[X]];le[X]!=="constructor"&&g.isClass($)&&(V($.prototype,re,Q,oe,ee),V($,re,Q,oe,ee))}return V(H,re,Q,oe,ee)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(o,l,f){l.exports=function(c,h,m,g){var x,_=o("./util"),w=_.isObject,O=o("./es5");typeof Map=="function"&&(x=Map);var S=function(){var j=0,P=0;function R(D,U){this[j]=D,this[j+P]=U,j++}return function(D){P=D.size,j=0;var U=new Array(2*D.size);return D.forEach(R,U),U}}();function T(j){var P,R=!1;if(x!==void 0&&j instanceof x)P=S(j),R=!0;else{var D=O.keys(j),U=D.length;P=new Array(2*U);for(var z=0;z<U;++z){var F=D[z];P[z]=j[F],P[z+U]=F}}this.constructor$(P),this._isMap=R,this._init$(void 0,R?-6:-3)}function A(j){var P,R=m(j);return w(R)?(P=R instanceof c?R._then(c.props,void 0,void 0,void 0,void 0):new T(R).promise(),R instanceof c&&P._propagateFrom(R,2),P):g(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}_.inherits(T,h),T.prototype._init=function(){},T.prototype._promiseFulfilled=function(j,P){if(this._values[P]=j,++this._totalResolved>=this._length){var R;if(this._isMap)R=function(F){for(var V=new x,H=F.length/2|0,te=0;te<H;++te){var ee=F[H+te],re=F[te];V.set(ee,re)}return V}(this._values);else{R={};for(var D=this.length(),U=0,z=this.length();U<z;++U)R[this._values[U+D]]=this._values[U]}return this._resolve(R),!0}return!1},T.prototype.shouldCopyValues=function(){return!1},T.prototype.getActualLength=function(j){return j>>1},c.prototype.props=function(){return A(this)},c.props=function(j){return A(j)}}},{"./es5":13,"./util":36}],26:[function(o,l,f){function c(h){this._capacity=h,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(h){return this._capacity<h},c.prototype._pushOne=function(h){var m=this.length();this._checkCapacity(m+1),this[this._front+m&this._capacity-1]=h,this._length=m+1},c.prototype.push=function(h,m,g){var x=this.length()+3;if(this._willBeOverCapacity(x))return this._pushOne(h),this._pushOne(m),void this._pushOne(g);var _=this._front+x-3;this._checkCapacity(x);var w=this._capacity-1;this[_+0&w]=h,this[_+1&w]=m,this[_+2&w]=g,this._length=x},c.prototype.shift=function(){var h=this._front,m=this[h];return this[h]=void 0,this._front=h+1&this._capacity-1,this._length--,m},c.prototype.length=function(){return this._length},c.prototype._checkCapacity=function(h){this._capacity<h&&this._resizeTo(this._capacity<<1)},c.prototype._resizeTo=function(h){var m=this._capacity;this._capacity=h,function(g,x,_,w,O){for(var S=0;S<O;++S)_[S+w]=g[S+0],g[S+0]=void 0}(this,0,this,m,this._front+this._length&m-1)},l.exports=c},{}],27:[function(o,l,f){l.exports=function(c,h,m,g){var x=o("./util"),_=function(O){return O.then(function(S){return w(S,O)})};function w(O,S){var T=m(O);if(T instanceof c)return _(T);if((O=x.asArray(O))===null)return g("expecting an array or an iterable object but got "+x.classString(O));var A=new c(h);S!==void 0&&A._propagateFrom(S,3);for(var j=A._fulfill,P=A._reject,R=0,D=O.length;R<D;++R){var U=O[R];(U!==void 0||R in O)&&c.cast(U)._then(j,P,void 0,A,null)}return A}c.race=function(O){return w(O,void 0)},c.prototype.race=function(){return w(this,void 0)}}},{"./util":36}],28:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=c._getDomain,O=o("./util"),S=O.tryCatch;function T(D,U,z,F){this.constructor$(D);var V=w();this._fn=V===null?U:O.domainBind(V,U),z!==void 0&&(z=c.resolve(z))._attachCancellationCallback(this),this._initialValue=z,this._currentCancellable=null,this._eachValues=F===x?Array(this._length):F===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function A(D,U){this.isFulfilled()?U._resolve(D):U._reject(D)}function j(D,U,z,F){return typeof U!="function"?m("expecting a function but got "+O.classString(U)):new T(D,U,z,F).promise()}function P(D){this.accum=D,this.array._gotAccum(D);var U=g(this.value,this.array._promise);return U instanceof c?(this.array._currentCancellable=U,U._then(R,void 0,void 0,this,void 0)):R.call(this,U)}function R(D){var U,z=this.array,F=z._promise,V=S(z._fn);F._pushContext(),(U=z._eachValues!==void 0?V.call(F._boundValue(),D,this.index,this.length):V.call(F._boundValue(),this.accum,D,this.index,this.length))instanceof c&&(z._currentCancellable=U);var H=F._popContext();return _.checkForgottenReturns(U,H,z._eachValues!==void 0?"Promise.each":"Promise.reduce",F),U}O.inherits(T,h),T.prototype._gotAccum=function(D){this._eachValues!==void 0&&this._eachValues!==null&&D!==x&&this._eachValues.push(D)},T.prototype._eachComplete=function(D){return this._eachValues!==null&&this._eachValues.push(D),this._eachValues},T.prototype._init=function(){},T.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},T.prototype.shouldCopyValues=function(){return!1},T.prototype._resolve=function(D){this._promise._resolveCallback(D),this._values=null},T.prototype._resultCancelled=function(D){if(D===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},T.prototype._iterate=function(D){var U,z;this._values=D;var F=D.length;if(this._initialValue!==void 0?(U=this._initialValue,z=0):(U=c.resolve(D[0]),z=1),this._currentCancellable=U,!U.isRejected())for(;z<F;++z){var V={accum:null,value:D[z],index:z,length:F,array:this};U=U._then(P,void 0,void 0,V,void 0)}this._eachValues!==void 0&&(U=U._then(this._eachComplete,void 0,void 0,this,void 0)),U._then(A,A,void 0,U,this)},c.prototype.reduce=function(D,U){return j(this,D,U,null)},c.reduce=function(D,U,z,F){return j(D,U,z,F)}}},{"./util":36}],29:[function(o,l,f){var c,h=o("./util"),m=h.getNativePromise();if(h.isNode&&typeof MutationObserver>"u"){var g=i.setImmediate,x=r.nextTick;c=h.isRecentNode?function(w){g.call(i,w)}:function(w){x.call(r,w)}}else if(typeof m=="function"&&typeof m.resolve=="function"){var _=m.resolve();c=function(w){_.then(w)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?a!==void 0?function(w){a(w)}:typeof setTimeout<"u"?function(w){setTimeout(w,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var w=document.createElement("div"),O={attributes:!0},S=!1,T=document.createElement("div");return new MutationObserver(function(){w.classList.toggle("foo"),S=!1}).observe(T,O),function(A){var j=new MutationObserver(function(){j.disconnect(),A()});j.observe(w,O),S||(S=!0,T.classList.toggle("foo"))}}();l.exports=c},{"./util":36}],30:[function(o,l,f){l.exports=function(c,h,m){var g=c.PromiseInspection;function x(_){this.constructor$(_)}o("./util").inherits(x,h),x.prototype._promiseResolved=function(_,w){return this._values[_]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},x.prototype._promiseFulfilled=function(_,w){var O=new g;return O._bitField=33554432,O._settledValueField=_,this._promiseResolved(w,O)},x.prototype._promiseRejected=function(_,w){var O=new g;return O._bitField=16777216,O._settledValueField=_,this._promiseResolved(w,O)},c.settle=function(_){return m.deprecated(".settle()",".reflect()"),new x(_).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(o,l,f){l.exports=function(c,h,m){var g=o("./util"),x=o("./errors").RangeError,_=o("./errors").AggregateError,w=g.isArray,O={};function S(A){this.constructor$(A),this._howMany=0,this._unwrap=!1,this._initialized=!1}function T(A,j){if((0|j)!==j||j<0)return m(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var P=new S(A),R=P.promise();return P.setHowMany(j),P.init(),R}g.inherits(S,h),S.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var A=w(this._values);!this._isResolved()&&A&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},S.prototype.init=function(){this._initialized=!0,this._init()},S.prototype.setUnwrap=function(){this._unwrap=!0},S.prototype.howMany=function(){return this._howMany},S.prototype.setHowMany=function(A){this._howMany=A},S.prototype._promiseFulfilled=function(A){return this._addFulfilled(A),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},S.prototype._promiseRejected=function(A){return this._addRejected(A),this._checkOutcome()},S.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(O),this._checkOutcome())},S.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var A=new _,j=this.length();j<this._values.length;++j)this._values[j]!==O&&A.push(this._values[j]);return A.length>0?this._reject(A):this._cancel(),!0}return!1},S.prototype._fulfilled=function(){return this._totalResolved},S.prototype._rejected=function(){return this._values.length-this.length()},S.prototype._addRejected=function(A){this._values.push(A)},S.prototype._addFulfilled=function(A){this._values[this._totalResolved++]=A},S.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},S.prototype._getRangeError=function(A){var j="Input array must contain at least "+this._howMany+" items but contains only "+A+" items";return new x(j)},S.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(A,j){return T(A,j)},c.prototype.some=function(A){return T(this,A)},c._SomePromiseArray=S}},{"./errors":12,"./util":36}],32:[function(o,l,f){l.exports=function(c){function h(S){S!==void 0?(S=S._target(),this._bitField=S._bitField,this._settledValueField=S._isFateSealed()?S._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}h.prototype._settledValue=function(){return this._settledValueField};var m=h.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},g=h.prototype.error=h.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},x=h.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},_=h.prototype.isRejected=function(){return(16777216&this._bitField)!=0},w=h.prototype.isPending=function(){return(50397184&this._bitField)==0},O=h.prototype.isResolved=function(){return(50331648&this._bitField)!=0};h.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return w.call(this._target())},c.prototype.isRejected=function(){return _.call(this._target())},c.prototype.isFulfilled=function(){return x.call(this._target())},c.prototype.isResolved=function(){return O.call(this._target())},c.prototype.value=function(){return m.call(this._target())},c.prototype.reason=function(){var S=this._target();return S._unsetRejectionIsUnhandled(),g.call(S)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=h}},{}],33:[function(o,l,f){l.exports=function(c,h){var m=o("./util"),g=m.errorObj,x=m.isObject,_={}.hasOwnProperty;return function(w,O){if(x(w)){if(w instanceof c)return w;var S=function(A){try{return function(j){return j.then}(A)}catch(j){return g.e=j,g}}(w);if(S===g){O&&O._pushContext();var T=c.reject(S.e);return O&&O._popContext(),T}if(typeof S=="function")return function(A){try{return _.call(A,"_promise0")}catch{return!1}}(w)?(T=new c(h),w._then(T._fulfill,T._reject,void 0,T,null),T):function(A,j,P){var R=new c(h),D=R;P&&P._pushContext(),R._captureStackTrace(),P&&P._popContext();var U=!0,z=m.tryCatch(j).call(A,function(F){R&&(R._resolveCallback(F),R=null)},function(F){R&&(R._rejectCallback(F,U,!0),R=null)});return U=!1,R&&z===g&&(R._rejectCallback(z.e,!0,!0),R=null),D}(w,S,O)}return w}}},{"./util":36}],34:[function(o,l,f){l.exports=function(c,h,m){var g=o("./util"),x=c.TimeoutError;function _(A){this.handle=A}_.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(A){return O(+this).thenReturn(A)},O=c.delay=function(A,j){var P,R;return j!==void 0?(P=c.resolve(j)._then(w,null,null,A,void 0),m.cancellation()&&j instanceof c&&P._setOnCancel(j)):(P=new c(h),R=setTimeout(function(){P._fulfill()},+A),m.cancellation()&&P._setOnCancel(new _(R)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function S(A){return clearTimeout(this.handle),A}function T(A){throw clearTimeout(this.handle),A}c.prototype.delay=function(A){return O(A,this)},c.prototype.timeout=function(A,j){var P,R;A=+A;var D=new _(setTimeout(function(){P.isPending()&&function(U,z,F){var V;V=typeof z!="string"?z instanceof Error?z:new x("operation timed out"):new x(z),g.markAsOriginatingFromRejection(V),U._attachExtraTrace(V),U._reject(V),F!=null&&F.cancel()}(P,j,R)},A));return m.cancellation()?(R=this.then(),(P=R._then(S,T,void 0,D,void 0))._setOnCancel(D)):P=this._then(S,T,void 0,D,void 0),P}}},{"./util":36}],35:[function(o,l,f){l.exports=function(c,h,m,g,x,_){var w=o("./util"),O=o("./errors").TypeError,S=o("./util").inherits,T=w.errorObj,A=w.tryCatch,j={};function P(V){setTimeout(function(){throw V},0)}function R(V,H){var te=0,ee=V.length,re=new c(x);return function Q(){if(te>=ee)return re._fulfill();var oe=function(le){var X=m(le);return X!==le&&typeof le._isDisposable=="function"&&typeof le._getDisposer=="function"&&le._isDisposable()&&X._setDisposable(le._getDisposer()),X}(V[te++]);if(oe instanceof c&&oe._isDisposable()){try{oe=m(oe._getDisposer().tryDispose(H),V.promise)}catch(le){return P(le)}if(oe instanceof c)return oe._then(Q,P,null,null,null)}Q()}(),re}function D(V,H,te){this._data=V,this._promise=H,this._context=te}function U(V,H,te){this.constructor$(V,H,te)}function z(V){return D.isDisposer(V)?(this.resources[this.index]._setDisposable(V),V.promise()):V}function F(V){this.length=V,this.promise=null,this[V-1]=null}D.prototype.data=function(){return this._data},D.prototype.promise=function(){return this._promise},D.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():j},D.prototype.tryDispose=function(V){var H=this.resource(),te=this._context;te!==void 0&&te._pushContext();var ee=H!==j?this.doDispose(H,V):null;return te!==void 0&&te._popContext(),this._promise._unsetDisposable(),this._data=null,ee},D.isDisposer=function(V){return V!=null&&typeof V.resource=="function"&&typeof V.tryDispose=="function"},S(U,D),U.prototype.doDispose=function(V,H){return this.data().call(V,V,H)},F.prototype._resultCancelled=function(){for(var V=this.length,H=0;H<V;++H){var te=this[H];te instanceof c&&te.cancel()}},c.using=function(){var V=arguments.length;if(V<2)return h("you must pass at least 2 arguments to Promise.using");var H,te=arguments[V-1];if(typeof te!="function")return h("expecting a function but got "+w.classString(te));var ee=!0;V===2&&Array.isArray(arguments[0])?(V=(H=arguments[0]).length,ee=!1):(H=arguments,V--);for(var re=new F(V),Q=0;Q<V;++Q){var oe=H[Q];if(D.isDisposer(oe)){var le=oe;(oe=oe.promise())._setDisposable(le)}else{var X=m(oe);X instanceof c&&(oe=X._then(z,null,null,{resources:re,index:Q},void 0))}re[Q]=oe}var $=new Array(re.length);for(Q=0;Q<$.length;++Q)$[Q]=c.resolve(re[Q]).reflect();var G=c.all($).then(function(Z){for(var ue=0;ue<Z.length;++ue){var fe=Z[ue];if(fe.isRejected())return T.e=fe.error(),T;if(!fe.isFulfilled())return void G.cancel();Z[ue]=fe.value()}se._pushContext(),te=A(te);var de=ee?te.apply(void 0,Z):te(Z),Se=se._popContext();return _.checkForgottenReturns(de,Se,"Promise.using",se),de}),se=G.lastly(function(){var Z=new c.PromiseInspection(G);return R(re,Z)});return re.promise=se,se._setOnCancel(re),se},c.prototype._setDisposable=function(V){this._bitField=131072|this._bitField,this._disposer=V},c.prototype._isDisposable=function(){return(131072&this._bitField)>0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(V){if(typeof V=="function")return new U(V,this,g());throw new O}}},{"./errors":12,"./util":36}],36:[function(o,l,f){var c,h=o("./es5"),m=typeof navigator>"u",g={e:{}},x=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function _(){try{var ee=c;return c=null,ee.apply(this,arguments)}catch(re){return g.e=re,g}}function w(ee){return ee==null||ee===!0||ee===!1||typeof ee=="string"||typeof ee=="number"}function O(ee,re,Q){if(w(ee))return ee;var oe={value:Q,configurable:!0,enumerable:!1,writable:!0};return h.defineProperty(ee,re,oe),ee}var S=function(){var ee=[Array.prototype,Object.prototype,Function.prototype],re=function(le){for(var X=0;X<ee.length;++X)if(ee[X]===le)return!0;return!1};if(h.isES5){var Q=Object.getOwnPropertyNames;return function(le){for(var X=[],$=Object.create(null);le!=null&&!re(le);){var G;try{G=Q(le)}catch{return X}for(var se=0;se<G.length;++se){var Z=G[se];if(!$[Z]){$[Z]=!0;var ue=Object.getOwnPropertyDescriptor(le,Z);ue!=null&&ue.get==null&&ue.set==null&&X.push(Z)}}le=h.getPrototypeOf(le)}return X}}var oe={}.hasOwnProperty;return function(le){if(re(le))return[];var X=[];e:for(var $ in le)if(oe.call(le,$))X.push($);else{for(var G=0;G<ee.length;++G)if(oe.call(ee[G],$))continue e;X.push($)}return X}}(),T=/this\s*\.\s*\S+\s*=/,A=/^[a-z$_][a-z$_0-9]*$/i;function j(ee){try{return ee+""}catch{return"[no string representation]"}}function P(ee){return ee instanceof Error||ee!==null&&typeof ee=="object"&&typeof ee.message=="string"&&typeof ee.name=="string"}function R(ee){return P(ee)&&h.propertyIsWritable(ee,"stack")}var D="stack"in new Error?function(ee){return R(ee)?ee:new Error(j(ee))}:function(ee){if(R(ee))return ee;try{throw new Error(j(ee))}catch(re){return re}};function U(ee){return{}.toString.call(ee)}var z=function(ee){return h.isArray(ee)?ee:null};if(typeof Symbol<"u"&&Symbol.iterator){var F=typeof Array.from=="function"?function(ee){return Array.from(ee)}:function(ee){for(var re,Q=[],oe=ee[Symbol.iterator]();!(re=oe.next()).done;)Q.push(re.value);return Q};z=function(ee){return h.isArray(ee)?ee:ee!=null&&typeof ee[Symbol.iterator]=="function"?F(ee):null}}var V=r!==void 0&&U(r).toLowerCase()==="[object process]",H=r!==void 0&&r.env!==void 0,te={isClass:function(ee){try{if(typeof ee=="function"){var re=h.names(ee.prototype),Q=h.isES5&&re.length>1,oe=re.length>0&&!(re.length===1&&re[0]==="constructor"),le=T.test(ee+"")&&h.names(ee).length>0;if(Q||oe||le)return!0}return!1}catch{return!1}},isIdentifier:function(ee){return A.test(ee)},inheritedDataKeys:S,getDataPropertyOrDefault:function(ee,re,Q){if(!h.isES5)return{}.hasOwnProperty.call(ee,re)?ee[re]:void 0;var oe=Object.getOwnPropertyDescriptor(ee,re);return oe!=null?oe.get==null&&oe.set==null?oe.value:Q:void 0},thrower:function(ee){throw ee},isArray:h.isArray,asArray:z,notEnumerableProp:O,isPrimitive:w,isObject:function(ee){return typeof ee=="function"||typeof ee=="object"&&ee!==null},isError:P,canEvaluate:m,errorObj:g,tryCatch:function(ee){return c=ee,_},inherits:function(ee,re){var Q={}.hasOwnProperty;function oe(){for(var le in this.constructor=ee,this.constructor$=re,re.prototype)Q.call(re.prototype,le)&&le.charAt(le.length-1)!=="$"&&(this[le+"$"]=re.prototype[le])}return oe.prototype=re.prototype,ee.prototype=new oe,ee.prototype},withAppended:function(ee,re){var Q,oe=ee.length,le=new Array(oe+1);for(Q=0;Q<oe;++Q)le[Q]=ee[Q];return le[Q]=re,le},maybeWrapAsError:function(ee){return w(ee)?new Error(j(ee)):ee},toFastProperties:function(ee){return ee},filledRange:function(ee,re,Q){for(var oe=new Array(ee),le=0;le<ee;++le)oe[le]=re+le+Q;return oe},toString:j,canAttachTrace:R,ensureErrorObject:D,originatesFromRejection:function(ee){return ee!=null&&(ee instanceof Error.__BluebirdErrorTypes__.OperationalError||ee.isOperational===!0)},markAsOriginatingFromRejection:function(ee){try{O(ee,"isOperational",!0)}catch{}},classString:U,copyDescriptors:function(ee,re,Q){for(var oe=h.names(ee),le=0;le<oe.length;++le){var X=oe[le];if(Q(X))try{h.defineProperty(re,X,h.getDescriptor(ee,X))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:V,hasEnvVariables:H,env:function(ee){return H?r.env[ee]:void 0},global:x,getNativePromise:function(){if(typeof Promise=="function")try{var ee=new Promise(function(){});if({}.toString.call(ee)==="[object Promise]")return Promise}catch{}},domainBind:function(ee,re){return ee.bind(re)}};te.isRecentNode=te.isNode&&function(){var ee=r.versions.node.split(".").map(Number);return ee[0]===0&&ee[1]>10||ee[0]>0}(),te.isNode&&te.toFastProperties(r);try{throw new Error}catch(ee){te.lastLineError=ee}l.exports=te},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var a=0,o=r.length;a<o;a++)if(r[a]==="\r"){if(r[a+1]===`
`){i.eol=`\r
`;break}if(r[a+1]){i.eol="\r";break}}else if(r[a]===`
`){i.eol=`
`;break}}return i.eol||`
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(a,o){var l=i(a,o);return r(l)?l:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},function(e,t){e.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(a){return typeof a=="symbol"||i(a)&&r(a)=="[object Symbol]"}},function(e,t,n){(function(r,i){var a=n(6);e.exports=j;var o,l=n(37);j.ReadableState=A,n(12).EventEmitter;var f=function($,G){return $.listeners(G).length},c=n(24),h=n(7).Buffer,m=r.Uint8Array||function(){},g=n(5);g.inherits=n(2);var x=n(41),_=void 0;_=x&&x.debuglog?x.debuglog("stream"):function(){};var w,O=n(42),S=n(25);g.inherits(j,c);var T=["error","close","destroy","pause","resume"];function A($,G){o=o||n(1),$=$||{};var se=G instanceof o;this.objectMode=!!$.objectMode,se&&(this.objectMode=this.objectMode||!!$.readableObjectMode);var Z=$.highWaterMark,ue=$.readableHighWaterMark,fe=this.objectMode?16:16384;this.highWaterMark=Z||Z===0?Z:se&&(ue||ue===0)?ue:fe,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new O,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding&&(w||(w=n(26).StringDecoder),this.decoder=new w($.encoding),this.encoding=$.encoding)}function j($){if(o=o||n(1),!(this instanceof j))return new j($);this._readableState=new A($,this),this.readable=!0,$&&(typeof $.read=="function"&&(this._read=$.read),typeof $.destroy=="function"&&(this._destroy=$.destroy)),c.call(this)}function P($,G,se,Z,ue){var fe,de=$._readableState;return G===null?(de.reading=!1,function(Se,k){if(!k.ended){if(k.decoder){var B=k.decoder.end();B&&B.length&&(k.buffer.push(B),k.length+=k.objectMode?1:B.length)}k.ended=!0,z(Se)}}($,de)):(ue||(fe=function(Se,k){var B;return function(K){return h.isBuffer(K)||K instanceof m}(k)||typeof k=="string"||k===void 0||Se.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B}(de,G)),fe?$.emit("error",fe):de.objectMode||G&&G.length>0?(typeof G=="string"||de.objectMode||Object.getPrototypeOf(G)===h.prototype||(G=function(Se){return h.from(Se)}(G)),Z?de.endEmitted?$.emit("error",new Error("stream.unshift() after end event")):R($,de,G,!0):de.ended?$.emit("error",new Error("stream.push() after EOF")):(de.reading=!1,de.decoder&&!se?(G=de.decoder.write(G),de.objectMode||G.length!==0?R($,de,G,!1):V($,de)):R($,de,G,!1))):Z||(de.reading=!1)),function(Se){return!Se.ended&&(Se.needReadable||Se.length<Se.highWaterMark||Se.length===0)}(de)}function R($,G,se,Z){G.flowing&&G.length===0&&!G.sync?($.emit("data",se),$.read(0)):(G.length+=G.objectMode?1:se.length,Z?G.buffer.unshift(se):G.buffer.push(se),G.needReadable&&z($)),V($,G)}Object.defineProperty(j.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function($){this._readableState&&(this._readableState.destroyed=$)}}),j.prototype.destroy=S.destroy,j.prototype._undestroy=S.undestroy,j.prototype._destroy=function($,G){this.push(null),G($)},j.prototype.push=function($,G){var se,Z=this._readableState;return Z.objectMode?se=!0:typeof $=="string"&&((G=G||Z.defaultEncoding)!==Z.encoding&&($=h.from($,G),G=""),se=!0),P(this,$,G,!1,se)},j.prototype.unshift=function($){return P(this,$,null,!0,!1)},j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function($){return w||(w=n(26).StringDecoder),this._readableState.decoder=new w($),this._readableState.encoding=$,this};var D=8388608;function U($,G){return $<=0||G.length===0&&G.ended?0:G.objectMode?1:$!=$?G.flowing&&G.length?G.buffer.head.data.length:G.length:($>G.highWaterMark&&(G.highWaterMark=function(se){return se>=D?se=D:(se--,se|=se>>>1,se|=se>>>2,se|=se>>>4,se|=se>>>8,se|=se>>>16,se++),se}($)),$<=G.length?$:G.ended?G.length:(G.needReadable=!0,0))}function z($){var G=$._readableState;G.needReadable=!1,G.emittedReadable||(_("emitReadable",G.flowing),G.emittedReadable=!0,G.sync?a.nextTick(F,$):F($))}function F($){_("emit readable"),$.emit("readable"),re($)}function V($,G){G.readingMore||(G.readingMore=!0,a.nextTick(H,$,G))}function H($,G){for(var se=G.length;!G.reading&&!G.flowing&&!G.ended&&G.length<G.highWaterMark&&(_("maybeReadMore read 0"),$.read(0),se!==G.length);)se=G.length;G.readingMore=!1}function te($){_("readable nexttick read 0"),$.read(0)}function ee($,G){G.reading||(_("resume read 0"),$.read(0)),G.resumeScheduled=!1,G.awaitDrain=0,$.emit("resume"),re($),G.flowing&&!G.reading&&$.read(0)}function re($){var G=$._readableState;for(_("flow",G.flowing);G.flowing&&$.read()!==null;);}function Q($,G){return G.length===0?null:(G.objectMode?se=G.buffer.shift():!$||$>=G.length?(se=G.decoder?G.buffer.join(""):G.buffer.length===1?G.buffer.head.data:G.buffer.concat(G.length),G.buffer.clear()):se=function(Z,ue,fe){var de;return Z<ue.head.data.length?(de=ue.head.data.slice(0,Z),ue.head.data=ue.head.data.slice(Z)):de=Z===ue.head.data.length?ue.shift():fe?function(Se,k){var B=k.head,K=1,ce=B.data;for(Se-=ce.length;B=B.next;){var ae=B.data,pe=Se>ae.length?ae.length:Se;if(pe===ae.length?ce+=ae:ce+=ae.slice(0,Se),(Se-=pe)==0){pe===ae.length?(++K,B.next?k.head=B.next:k.head=k.tail=null):(k.head=B,B.data=ae.slice(pe));break}++K}return k.length-=K,ce}(Z,ue):function(Se,k){var B=h.allocUnsafe(Se),K=k.head,ce=1;for(K.data.copy(B),Se-=K.data.length;K=K.next;){var ae=K.data,pe=Se>ae.length?ae.length:Se;if(ae.copy(B,B.length-Se,0,pe),(Se-=pe)==0){pe===ae.length?(++ce,K.next?k.head=K.next:k.head=k.tail=null):(k.head=K,K.data=ae.slice(pe));break}++ce}return k.length-=ce,B}(Z,ue),de}($,G.buffer,G.decoder),se);var se}function oe($){var G=$._readableState;if(G.length>0)throw new Error('"endReadable()" called on non-empty stream');G.endEmitted||(G.ended=!0,a.nextTick(le,G,$))}function le($,G){$.endEmitted||$.length!==0||($.endEmitted=!0,G.readable=!1,G.emit("end"))}function X($,G){for(var se=0,Z=$.length;se<Z;se++)if($[se]===G)return se;return-1}j.prototype.read=function($){_("read",$),$=parseInt($,10);var G=this._readableState,se=$;if($!==0&&(G.emittedReadable=!1),$===0&&G.needReadable&&(G.length>=G.highWaterMark||G.ended))return _("read: emitReadable",G.length,G.ended),G.length===0&&G.ended?oe(this):z(this),null;if(($=U($,G))===0&&G.ended)return G.length===0&&oe(this),null;var Z,ue=G.needReadable;return _("need readable",ue),(G.length===0||G.length-$<G.highWaterMark)&&_("length less than watermark",ue=!0),G.ended||G.reading?_("reading or ended",ue=!1):ue&&(_("do read"),G.reading=!0,G.sync=!0,G.length===0&&(G.needReadable=!0),this._read(G.highWaterMark),G.sync=!1,G.reading||($=U(se,G))),(Z=$>0?Q($,G):null)===null?(G.needReadable=!0,$=0):G.length-=$,G.length===0&&(G.ended||(G.needReadable=!0),se!==$&&G.ended&&oe(this)),Z!==null&&this.emit("data",Z),Z},j.prototype._read=function($){this.emit("error",new Error("_read() is not implemented"))},j.prototype.pipe=function($,G){var se=this,Z=this._readableState;switch(Z.pipesCount){case 0:Z.pipes=$;break;case 1:Z.pipes=[Z.pipes,$];break;default:Z.pipes.push($)}Z.pipesCount+=1,_("pipe count=%d opts=%j",Z.pipesCount,G);var ue=G&&G.end===!1||$===i.stdout||$===i.stderr?pe:fe;function fe(){_("onend"),$.end()}Z.endEmitted?a.nextTick(ue):se.once("end",ue),$.on("unpipe",function Te(Fe,ge){_("onunpipe"),Fe===se&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,_("cleanup"),$.removeListener("close",ce),$.removeListener("finish",ae),$.removeListener("drain",de),$.removeListener("error",K),$.removeListener("unpipe",Te),se.removeListener("end",fe),se.removeListener("end",pe),se.removeListener("data",B),Se=!0,!Z.awaitDrain||$._writableState&&!$._writableState.needDrain||de())});var de=function(Te){return function(){var Fe=Te._readableState;_("pipeOnDrain",Fe.awaitDrain),Fe.awaitDrain&&Fe.awaitDrain--,Fe.awaitDrain===0&&f(Te,"data")&&(Fe.flowing=!0,re(Te))}}(se);$.on("drain",de);var Se=!1,k=!1;function B(Te){_("ondata"),k=!1,$.write(Te)!==!1||k||((Z.pipesCount===1&&Z.pipes===$||Z.pipesCount>1&&X(Z.pipes,$)!==-1)&&!Se&&(_("false write response, pause",se._readableState.awaitDrain),se._readableState.awaitDrain++,k=!0),se.pause())}function K(Te){_("onerror",Te),pe(),$.removeListener("error",K),f($,"error")===0&&$.emit("error",Te)}function ce(){$.removeListener("finish",ae),pe()}function ae(){_("onfinish"),$.removeListener("close",ce),pe()}function pe(){_("unpipe"),se.unpipe($)}return se.on("data",B),function(Te,Fe,ge){if(typeof Te.prependListener=="function")return Te.prependListener(Fe,ge);Te._events&&Te._events[Fe]?l(Te._events[Fe])?Te._events[Fe].unshift(ge):Te._events[Fe]=[ge,Te._events[Fe]]:Te.on(Fe,ge)}($,"error",K),$.once("close",ce),$.once("finish",ae),$.emit("pipe",se),Z.flowing||(_("pipe resume"),se.resume()),$},j.prototype.unpipe=function($){var G=this._readableState,se={hasUnpiped:!1};if(G.pipesCount===0)return this;if(G.pipesCount===1)return $&&$!==G.pipes?this:($||($=G.pipes),G.pipes=null,G.pipesCount=0,G.flowing=!1,$&&$.emit("unpipe",this,se),this);if(!$){var Z=G.pipes,ue=G.pipesCount;G.pipes=null,G.pipesCount=0,G.flowing=!1;for(var fe=0;fe<ue;fe++)Z[fe].emit("unpipe",this,se);return this}var de=X(G.pipes,$);return de===-1?this:(G.pipes.splice(de,1),G.pipesCount-=1,G.pipesCount===1&&(G.pipes=G.pipes[0]),$.emit("unpipe",this,se),this)},j.prototype.on=function($,G){var se=c.prototype.on.call(this,$,G);if($==="data")this._readableState.flowing!==!1&&this.resume();else if($==="readable"){var Z=this._readableState;Z.endEmitted||Z.readableListening||(Z.readableListening=Z.needReadable=!0,Z.emittedReadable=!1,Z.reading?Z.length&&z(this):a.nextTick(te,this))}return se},j.prototype.addListener=j.prototype.on,j.prototype.resume=function(){var $=this._readableState;return $.flowing||(_("resume"),$.flowing=!0,function(G,se){se.resumeScheduled||(se.resumeScheduled=!0,a.nextTick(ee,G,se))}(this,$)),this},j.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},j.prototype.wrap=function($){var G=this,se=this._readableState,Z=!1;for(var ue in $.on("end",function(){if(_("wrapped end"),se.decoder&&!se.ended){var de=se.decoder.end();de&&de.length&&G.push(de)}G.push(null)}),$.on("data",function(de){_("wrapped data"),se.decoder&&(de=se.decoder.write(de)),(!se.objectMode||de!=null)&&(se.objectMode||de&&de.length)&&(G.push(de)||(Z=!0,$.pause()))}),$)this[ue]===void 0&&typeof $[ue]=="function"&&(this[ue]=function(de){return function(){return $[de].apply($,arguments)}}(ue));for(var fe=0;fe<T.length;fe++)$.on(T[fe],this.emit.bind(this,T[fe]));return this._read=function(de){_("wrapped _read",de),Z&&(Z=!1,$.resume())},this},Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),j._fromList=Q}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(a,o){a.emit("error",o)}e.exports={destroy:function(a,o){var l=this,f=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return f||c?(o?o(a):!a||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,a),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(h){!o&&h?(r.nextTick(i,l,h),l._writableState&&(l._writableState.errorEmitted=!0)):o&&o(h)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){var r=n(7).Buffer,i=r.isEncoding||function(_){switch((_=""+_)&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(_){var w;switch(this.encoding=function(O){var S=function(T){if(!T)return"utf8";for(var A;;)switch(T){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return T;default:if(A)return;T=(""+T).toLowerCase(),A=!0}}(O);if(typeof S!="string"&&(r.isEncoding===i||!i(O)))throw new Error("Unknown encoding: "+O);return S||O}(_),this.encoding){case"utf16le":this.text=f,this.end=c,w=4;break;case"utf8":this.fillLast=l,w=4;break;case"base64":this.text=h,this.end=m,w=3;break;default:return this.write=g,void(this.end=x)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(w)}function o(_){return _<=127?0:_>>5==6?2:_>>4==14?3:_>>3==30?4:_>>6==2?-1:-2}function l(_){var w=this.lastTotal-this.lastNeed,O=function(S,T,A){if((192&T[0])!=128)return S.lastNeed=0,"<22>";if(S.lastNeed>1&&T.length>1){if((192&T[1])!=128)return S.lastNeed=1,"<22>";if(S.lastNeed>2&&T.length>2&&(192&T[2])!=128)return S.lastNeed=2,"<22>"}}(this,_);return O!==void 0?O:this.lastNeed<=_.length?(_.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(_.copy(this.lastChar,w,0,_.length),void(this.lastNeed-=_.length))}function f(_,w){if((_.length-w)%2==0){var O=_.toString("utf16le",w);if(O){var S=O.charCodeAt(O.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",w,_.length-1)}function c(_){var w=_&&_.length?this.write(_):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,O)}return w}function h(_,w){var O=(_.length-w)%3;return O===0?_.toString("base64",w):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",w,_.length-O))}function m(_){var w=_&&_.length?this.write(_):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function g(_){return _.toString(this.encoding)}function x(_){return _&&_.length?this.write(_):""}t.StringDecoder=a,a.prototype.write=function(_){if(_.length===0)return"";var w,O;if(this.lastNeed){if((w=this.fillLast(_))===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<_.length?w?w+this.text(_,O):this.text(_,O):w||""},a.prototype.end=function(_){var w=_&&_.length?this.write(_):"";return this.lastNeed?w+"<22>":w},a.prototype.text=function(_,w){var O=function(T,A,j){var P=A.length-1;if(P<j)return 0;var R=o(A[P]);return R>=0?(R>0&&(T.lastNeed=R-1),R):--P<j||R===-2?0:(R=o(A[P]))>=0?(R>0&&(T.lastNeed=R-2),R):--P<j||R===-2?0:(R=o(A[P]))>=0?(R>0&&(R===2?R=0:T.lastNeed=R-3),R):0}(this,_,w);if(!this.lastNeed)return _.toString("utf8",w);this.lastTotal=O;var S=_.length-(O-this.lastNeed);return _.copy(this.lastChar,0,S),_.toString("utf8",w,S)},a.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length}},function(e,t,n){e.exports=a;var r=n(1),i=n(5);function a(f){if(!(this instanceof a))return new a(f);r.call(this,f),this._transformState={afterTransform:(function(c,h){var m=this._transformState;m.transforming=!1;var g=m.writecb;if(!g)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,h!=null&&this.push(h),g(c);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",o)}function o(){var f=this;typeof this._flush=="function"?this._flush(function(c,h){l(f,c,h)}):l(this,null,null)}function l(f,c,h){if(c)return f.emit("error",c);if(h!=null&&f.push(h),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}i.inherits=n(2),i.inherits(a,r),a.prototype.push=function(f,c){return this._transformState.needTransform=!1,r.prototype.push.call(this,f,c)},a.prototype._transform=function(f,c,h){throw new Error("_transform() is not implemented")},a.prototype._write=function(f,c,h){var m=this._transformState;if(m.writecb=h,m.writechunk=f,m.writeencoding=c,!m.transforming){var g=this._readableState;(m.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},a.prototype._read=function(f){var c=this._transformState;c.writechunk!==null&&c.writecb&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},a.prototype._destroy=function(f,c){var h=this;r.prototype._destroy.call(this,f,function(m){c(m),h.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var a=r.byteLength(i),o=r.allocUnsafe?r.allocUnsafe(a):new r(a);return o.write(i),o},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,a){for(var o=[],l=0;l<i.length;l++)a.indexOf(l)>-1&&o.push(i[l]);return o},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])};return function(o,l){function f(){this.constructor=o}a(o,l),o.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(a){function o(l,f,c){var h=a.call(this,"Error: "+l+". JSON Line number: "+f+(c?" near: "+c:""))||this;return h.err=l,h.line=f,h.extra=c,h.name="CSV Parse Error",h}return r(o,a),o.column_mismatched=function(l,f){return new o("column_mismatched",l,f)},o.unclosed_quote=function(l,f){return new o("unclosed_quote",l,f)},o.fromJSON=function(l){return new o(l.err,l.line,l.extra)},o.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},o}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),a=n(69),o=r?r.toStringTag:void 0;e.exports=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":o&&o in Object(l)?i(l):a(l)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(a,o){return new r.Converter(a,o)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,w){_.__proto__=w}||function(_,w){for(var O in w)w.hasOwnProperty(O)&&(_[O]=w[O])};return function(_,w){function O(){this.constructor=_}x(_,w),_.prototype=w===null?Object.create(w):(O.prototype=w.prototype,new O)}}(),a=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(36),l=n(50),f=n(51),c=a(n(15)),h=n(52),m=n(105),g=function(x){function _(w,O){O===void 0&&(O={});var S=x.call(this,O)||this;return S.options=O,S.params=l.mergeParams(w),S.runtime=f.initParseRuntime(S),S.result=new m.Result(S),S.processor=new h.ProcessorLocal(S),S.once("error",function(T){r(function(){S.result.processError(T),S.emit("done",T)})}),S.once("done",function(){S.processor.destroy()}),S}return i(_,x),_.prototype.preRawData=function(w){return this.runtime.preRawDataHook=w,this},_.prototype.preFileLine=function(w){return this.runtime.preFileLineHook=w,this},_.prototype.subscribe=function(w,O,S){return this.parseRuntime.subscribe={onNext:w,onError:O,onCompleted:S},this},_.prototype.fromFile=function(w,O){var S=this,T=n(!function(){var A=new Error("Cannot find module 'fs'");throw A.code="MODULE_NOT_FOUND",A}());return T.exists(w,function(A){A?T.createReadStream(w,O).pipe(S):S.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},_.prototype.fromStream=function(w){return w.pipe(this),this},_.prototype.fromString=function(w){w.toString();var O=new o.Readable,S=0;return O._read=function(T){if(S>=w.length)this.push(null);else{var A=w.substr(S,T);this.push(A),S+=T}},this.fromStream(O)},_.prototype.then=function(w,O){var S=this;return new c.default(function(T,A){S.parseRuntime.then={onfulfilled:function(j){T(w?w(j):j)},onrejected:function(j){O?T(O(j)):A(j)}}})},Object.defineProperty(_.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),_.prototype._transform=function(w,O,S){var T=this;this.processor.process(w).then(function(A){if(A.length>0)return T.runtime.started=!0,T.result.processResult(A)}).then(function(){T.emit("drained"),S()},function(A){T.runtime.hasError=!0,T.runtime.error=A,T.emit("error",A),S()})},_.prototype._flush=function(w){var O=this;this.processor.flush().then(function(S){if(S.length>0)return O.result.processResult(S)}).then(function(){O.processEnd(w)},function(S){O.emit("error",S),w()})},_.prototype.processEnd=function(w){this.result.endProcess(),this.emit("done"),w()},Object.defineProperty(_.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),_}(o.Transform);t.Converter=g}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(a,o){if(!a.setImmediate){var l,f=1,c={},h=!1,m=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,{}.toString.call(a.process)==="[object process]"?l=function(w){i.nextTick(function(){_(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,O=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=O,w}}()?function(){var w="setImmediate$"+Math.random()+"$",O=function(S){S.source===a&&typeof S.data=="string"&&S.data.indexOf(w)===0&&_(+S.data.slice(w.length))};a.addEventListener?a.addEventListener("message",O,!1):a.attachEvent("onmessage",O),l=function(S){a.postMessage(w+S,"*")}}():a.MessageChannel?function(){var w=new MessageChannel;w.port1.onmessage=function(O){_(O.data)},l=function(O){w.port2.postMessage(O)}}():m&&"onreadystatechange"in m.createElement("script")?function(){var w=m.documentElement;l=function(O){var S=m.createElement("script");S.onreadystatechange=function(){_(O),S.onreadystatechange=null,w.removeChild(S),S=null},w.appendChild(S)}}():l=function(w){setTimeout(_,0,w)},g.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var O=new Array(arguments.length-1),S=0;S<O.length;S++)O[S]=arguments[S+1];var T={callback:w,args:O};return c[f]=T,l(f),f++},g.clearImmediate=x}function x(w){delete c[w]}function _(w){if(h)setTimeout(_,0,w);else{var O=c[w];if(O){h=!0;try{(function(S){var T=S.callback,A=S.args;switch(A.length){case 0:T();break;case 1:T(A[0]);break;case 2:T(A[0],A[1]);break;case 3:T(A[0],A[1],A[2]);break;default:T.apply(o,A)}})(O)}finally{x(w),h=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(a,o){var l=this;function f(w){a.writable&&a.write(w)===!1&&l.pause&&l.pause()}function c(){l.readable&&l.resume&&l.resume()}l.on("data",f),a.on("drain",c),a._isStdio||o&&o.end===!1||(l.on("end",m),l.on("close",g));var h=!1;function m(){h||(h=!0,a.end())}function g(){h||(h=!0,typeof a.destroy=="function"&&a.destroy())}function x(w){if(_(),r.listenerCount(this,"error")===0)throw w}function _(){l.removeListener("data",f),a.removeListener("drain",c),l.removeListener("end",m),l.removeListener("close",g),l.removeListener("error",x),a.removeListener("error",x),l.removeListener("end",_),l.removeListener("close",_),a.removeListener("close",_)}return l.on("error",x),a.on("error",x),l.on("end",_),l.on("close",_),a.on("close",_),a.emit("pipe",l),a}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(g){var x=c(g),_=x[0],w=x[1];return 3*(_+w)/4-w},t.toByteArray=function(g){for(var x,_=c(g),w=_[0],O=_[1],S=new a(3*(w+O)/4-O),T=0,A=O>0?w-4:w,j=0;j<A;j+=4)x=i[g.charCodeAt(j)]<<18|i[g.charCodeAt(j+1)]<<12|i[g.charCodeAt(j+2)]<<6|i[g.charCodeAt(j+3)],S[T++]=x>>16&255,S[T++]=x>>8&255,S[T++]=255&x;return O===2&&(x=i[g.charCodeAt(j)]<<2|i[g.charCodeAt(j+1)]>>4,S[T++]=255&x),O===1&&(x=i[g.charCodeAt(j)]<<10|i[g.charCodeAt(j+1)]<<4|i[g.charCodeAt(j+2)]>>2,S[T++]=x>>8&255,S[T++]=255&x),S},t.fromByteArray=function(g){for(var x,_=g.length,w=_%3,O=[],S=0,T=_-w;S<T;S+=16383)O.push(m(g,S,S+16383>T?T:S+16383));return w===1?(x=g[_-1],O.push(r[x>>2]+r[x<<4&63]+"==")):w===2&&(x=(g[_-2]<<8)+g[_-1],O.push(r[x>>10]+r[x>>4&63]+r[x<<2&63]+"=")),O.join("")};for(var r=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,f=o.length;l<f;++l)r[l]=o[l],i[o.charCodeAt(l)]=l;function c(g){var x=g.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=g.indexOf("=");return _===-1&&(_=x),[_,_===x?0:4-_%4]}function h(g){return r[g>>18&63]+r[g>>12&63]+r[g>>6&63]+r[63&g]}function m(g,x,_){for(var w,O=[],S=x;S<_;S+=3)w=(g[S]<<16&16711680)+(g[S+1]<<8&65280)+(255&g[S+2]),O.push(h(w));return O.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,a,o){var l,f,c=8*o-a-1,h=(1<<c)-1,m=h>>1,g=-7,x=i?o-1:0,_=i?-1:1,w=n[r+x];for(x+=_,l=w&(1<<-g)-1,w>>=-g,g+=c;g>0;l=256*l+n[r+x],x+=_,g-=8);for(f=l&(1<<-g)-1,l>>=-g,g+=a;g>0;f=256*f+n[r+x],x+=_,g-=8);if(l===0)l=1-m;else{if(l===h)return f?NaN:1/0*(w?-1:1);f+=Math.pow(2,a),l-=m}return(w?-1:1)*f*Math.pow(2,l-a)},t.write=function(n,r,i,a,o,l){var f,c,h,m=8*l-o-1,g=(1<<m)-1,x=g>>1,_=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=a?0:l-1,O=a?1:-1,S=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,f=g):(f=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-f))<1&&(f--,h*=2),(r+=f+x>=1?_/h:_*Math.pow(2,1-x))*h>=2&&(f++,h/=2),f+x>=g?(c=0,f=g):f+x>=1?(c=(r*h-1)*Math.pow(2,o),f+=x):(c=r*Math.pow(2,x-1)*Math.pow(2,o),f=0));o>=8;n[i+w]=255&c,w+=O,c/=256,o-=8);for(f=f<<o|c,m+=o;m>0;n[i+w]=255&f,w+=O,f/=256,m-=8);n[i+w-O]|=128*S}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function a(o,l,f){o.copy(l,f)}e.exports=function(){function o(){(function(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(l){var f={data:l,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},o.prototype.unshift=function(l){var f={data:l,next:this.head};this.length===0&&(this.tail=f),this.head=f,++this.length},o.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(l){if(this.length===0)return"";for(var f=this.head,c=""+f.data;f=f.next;)c+=l+f.data;return c},o.prototype.concat=function(l){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var f=r.allocUnsafe(l>>>0),c=this.head,h=0;c;)a(c.data,f,h),h+=c.data.length,c=c.next;return f},o}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var o=i.inspect({length:this.length});return this.constructor.name+" "+o})},function(e,t){},function(e,t,n){(function(r){function i(a){try{if(!r.localStorage)return!1}catch{return!1}var o=r.localStorage[a];return o!=null&&String(o).toLowerCase()==="true"}e.exports=function(a,o){if(i("noDeprecation"))return a;var l=!1;return function(){if(!l){if(i("throwDeprecation"))throw new Error(o);i("traceDeprecation")?console.trace(o):console.warn(o),l=!0}return a.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=a;var r=n(27),i=n(5);function a(o){if(!(this instanceof a))return new a(o);r.call(this,o)}i.inherits=n(2),i.inherits(a,r),a.prototype._transform=function(o,l,f){f(null,o)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var a in r||(r={}),r)r.hasOwnProperty(a)&&(Array.isArray(r[a])?i[a]=[].concat(r[a]):i[a]=r[a]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,a={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(a.needProcessIgnoreColumn=!0),i.includeColumns&&(a.needProcessIncludeColumn=!0),a}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,T){S.__proto__=T}||function(S,T){for(var A in T)T.hasOwnProperty(A)&&(S[A]=T[A])};return function(S,T){function A(){this.constructor=S}O(S,T),S.prototype=T===null?Object.create(T):(A.prototype=T.prototype,new A)}}(),a=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(53),l=a(n(15)),f=n(54),c=a(n(16)),h=n(57),m=n(28),g=n(58),x=a(n(59)),_=a(n(29)),w=function(O){function S(){var T=O!==null&&O.apply(this,arguments)||this;return T.rowSplit=new g.RowSplit(T.converter),T.eolEmitted=!1,T._needEmitEol=void 0,T.headEmitted=!1,T._needEmitHead=void 0,T}return i(S,O),S.prototype.flush=function(){var T=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var A=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(A,!0).then(function(j){return T.runtime.csvLineBuffer&&T.runtime.csvLineBuffer.length>0?l.default.reject(_.default.unclosed_quote(T.runtime.parsedLineNumber,T.runtime.csvLineBuffer.toString())):l.default.resolve(j)})}return l.default.resolve([])},S.prototype.destroy=function(){return l.default.resolve()},Object.defineProperty(S.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),S.prototype.process=function(T,A){var j,P=this;return A===void 0&&(A=!1),j=A?T.toString():f.prepareData(T,this.converter.parseRuntime),l.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(j):j}).then(function(R){return R&&R.length>0?P.processCSV(R,A):l.default.resolve([])})},S.prototype.processCSV=function(T,A){var j=this,P=this.params,R=this.runtime;R.eol||c.default(T,R),this.needEmitEol&&!this.eolEmitted&&R.eol&&(this.converter.emit("eol",R.eol),this.eolEmitted=!0),P.ignoreEmpty&&!R.started&&(T=m.trimLeft(T));var D=h.stringToLines(T,R);return A?(D.lines.push(D.partial),D.partial=""):this.prependLeftBuf(m.bufFromString(D.partial)),D.lines.length>0?(R.preFileLineHook?this.runPreLineHook(D.lines):l.default.resolve(D.lines)).then(function(U){return R.started||j.runtime.headers?j.processCSVBody(U):j.processDataWithHead(U)}):l.default.resolve([])},S.prototype.processDataWithHead=function(T){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var A="",j=[];T.length;){var P=A+T.shift(),R=this.rowSplit.parse(P);if(R.closed){j=R.cells,A="";break}A=P+c.default(P,this.runtime)}if(this.prependLeftBuf(m.bufFromString(A)),j.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=j}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(T)},S.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var T=this.runtime.headers,A=0;A<T.length;A++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(T[A])){if(!this.params.includeColumns||!this.params.includeColumns.test(T[A]))continue;this.runtime.selectedColumns.push(A)}else this.runtime.selectedColumns.push(A);else this.params.includeColumns?this.params.includeColumns.test(T[A])&&this.runtime.selectedColumns.push(A):this.runtime.selectedColumns.push(A);this.runtime.headers=m.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},S.prototype.processCSVBody=function(T){if(this.params.output==="line")return T;var A=this.rowSplit.parseMultiLines(T);return this.prependLeftBuf(m.bufFromString(A.partial)),this.params.output==="csv"?A.rowsCells:x.default(A.rowsCells,this.converter)},S.prototype.prependLeftBuf=function(T){T&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([T,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=T)},S.prototype.runPreLineHook=function(T){var A=this;return new l.default(function(j,P){(function R(D,U,z,F){if(z>=D.length)F();else if(U.preFileLineHook){var V=D[z],H=U.preFileLineHook(V,U.parsedLineNumber+z);if(z++,H&&H.then)H.then(function(te){D[z-1]=te,R(D,U,z,F)});else{for(D[z-1]=H;z<D.length;)D[z]=U.preFileLineHook(D[z],U.parsedLineNumber+z),z++;F()}}else F()})(T,A.runtime,0,function(R){R?P(R):j(T)})})},S}(o.Processor);t.ProcessorLocal=w}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(55));t.prepareData=function(o,l){var f=function(h,m){return m.csvLineBuffer&&m.csvLineBuffer.length>0?r.concat([m.csvLineBuffer,h]):h}(o,l);l.csvLineBuffer=void 0;var c=function(h,m){var g=h.length-1;if((128&h[g])!=0){for(;(192&h[g])==128;)g--;g--}return g!=h.length-1?(m.csvLineBuffer=h.slice(g+1),h.slice(0,g+1)):h}(f,l).toString("utf8");return l.started===!1?a.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(a){return typeof a=="string"&&a.charCodeAt(0)===65279?a.slice(1):r.isBuffer(a)&&i(a)&&a[0]===239&&a[1]===187&&a[2]===191?a.slice(3):a}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(a,o){var l=i.default(a,o),f=a.split(l);return{lines:f,partial:f.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),a=n(28),o=[",","|"," ",";",":"],l=function(){function f(c){this.conv=c,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=c.parseParam.quote,this.trim=c.parseParam.trim,this.escape=c.parseParam.escape}return Object.defineProperty(f.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),f.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var h=this.quote,m=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var g=this.conv.parseRuntime.delimiter,x=c.split(g);if(h==="off"){if(m)for(var _=0;_<x.length;_++)x[_]=x[_].trim();return{cells:x,closed:!0}}return this.toCSVRow(x,m,h,g)},f.prototype.toCSVRow=function(c,h,m,g){for(var x=[],_=!1,w="",O=0,S=c.length;O<S;O++){var T=c[O];!_&&h&&(T=a.trimLeft(T));var A=T.length;if(_)this.isQuoteClose(T)?(_=!1,w+=g+(T=T.substr(0,A-1)),w=this.escapeQuote(w),h&&(w=a.trimRight(w)),x.push(w),w=""):w+=g+T;else{if(A===2&&T===this.quote+this.quote){x.push("");continue}if(this.isQuoteOpen(T)){if(T=T.substr(1),this.isQuoteClose(T)){T=T.substring(0,T.lastIndexOf(m)),T=this.escapeQuote(T),x.push(T);continue}if(T.indexOf(m)!==-1){for(var j=0,P="",R=0,D=T;R<D.length;R++){var U=D[R];U===m&&P!==this.escape?(j++,P=""):P=U}if(j%2==1){h&&(T=a.trimRight(T)),x.push(m+T);continue}_=!0,w+=T;continue}_=!0,w+=T;continue}h&&(T=a.trimRight(T)),x.push(T)}}return{cells:x,closed:!_}},f.prototype.getDelimiter=function(c){var h;if(this.conv.parseParam.delimiter==="auto")h=o;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;h=this.conv.parseParam.delimiter}var m=0,g=",";return h.forEach(function(x){var _=c.split(x).length;_>m&&(g=x,m=_)}),g},f.prototype.isQuoteOpen=function(c){var h=this.quote,m=this.escape;return c[0]===h&&(c[1]!==h||c[1]===m&&(c[2]===h||c.length===2))},f.prototype.isQuoteClose=function(c){var h=this.quote,m=this.escape;this.conv.parseParam.trim&&(c=a.trimRight(c));for(var g=0,x=c.length-1;c[x]===h||c[x]===m;)x--,g++;return g%2!=0},f.prototype.escapeQuote=function(c){var h="es|"+this.quote+"|"+this.escape;this.cachedRegExp[h]===void 0&&(this.cachedRegExp[h]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var m=this.cachedRegExp[h];return c.replace(m,this.quote)},f.prototype.parseMultiLines=function(c){for(var h=[],m="";c.length;){var g=m+c.shift(),x=this.parse(g);x.cells.length===0&&this.conv.parseParam.ignoreEmpty||(x.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?h.push(a.filterArray(x.cells,this.conv.parseRuntime.selectedColumns)):h.push(x.cells),m=""):m=g+(i.default(g,this.conv.parseRuntime)||`
`))}return{rowsCells:h,partial:m}},f}();t.RowSplit=l},function(e,t,n){var r=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),a=r(n(60)),o=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function l(S,T,A){if(T.parseParam.checkColumn&&T.parseRuntime.headers&&S.length!==T.parseRuntime.headers.length)throw i.default.column_mismatched(T.parseRuntime.parsedLineNumber+A);return function(j,P,R){for(var D=!1,U={},z=0,F=j.length;z<F;z++){var V=j[z];if(!R.parseParam.ignoreEmpty||V!==""){D=!0;var H=P[z];H&&H!==""||(H=P[z]="field"+(z+1));var te=c(H,z,R);if(te){var ee=te(V,H,U,j,z);ee!==void 0&&h(U,H,ee,R,z)}else R.parseParam.checkType&&(V=x(V,H,z,R)(V)),V!==void 0&&h(U,H,V,R,z)}}return D?U:null}(S,T.parseRuntime.headers||[],T)||null}t.default=function(S,T){for(var A=[],j=0,P=S.length;j<P;j++){var R=l(S[j],T,j);R&&A.push(R)}return A};var f={string:w,number:_,omit:function(){}};function c(S,T,A){if(A.parseRuntime.columnConv[T]!==void 0)return A.parseRuntime.columnConv[T];var j=A.parseParam.colParser[S];if(j===void 0)return A.parseRuntime.columnConv[T]=null;if(typeof j=="object"&&(j=j.cellParser||"string"),typeof j=="string"){j=j.trim().toLowerCase();var P=f[j];return A.parseRuntime.columnConv[T]=P||null}return A.parseRuntime.columnConv[T]=typeof j=="function"?j:null}function h(S,T,A,j,P){if(!j.parseRuntime.columnValueSetter[P])if(j.parseParam.flatKeys)j.parseRuntime.columnValueSetter[P]=m;else if(T.indexOf(".")>-1){for(var R=T.split("."),D=!0;R.length>0;)if(R.shift().length===0){D=!1;break}!D||j.parseParam.colParser[T]&&j.parseParam.colParser[T].flat?j.parseRuntime.columnValueSetter[P]=m:j.parseRuntime.columnValueSetter[P]=g}else j.parseRuntime.columnValueSetter[P]=m;j.parseParam.nullObject===!0&&A==="null"&&(A=null),j.parseRuntime.columnValueSetter[P](S,T,A)}function m(S,T,A){S[T]=A}function g(S,T,A){a.default(S,T,A)}function x(S,T,A,j){return j.parseRuntime.headerType[A]?j.parseRuntime.headerType[A]:T.indexOf("number#!")>-1?j.parseRuntime.headerType[A]=_:T.indexOf("string#!")>-1?j.parseRuntime.headerType[A]=w:j.parseParam.checkType?j.parseRuntime.headerType[A]=O:j.parseRuntime.headerType[A]=w}function _(S){var T=parseFloat(S);return isNaN(T)?S:T}function w(S){return S.toString()}function O(S){var T=S.trim();return T===""?w(S):o.test(T)?_(S):T.length===5&&T.toLowerCase()==="false"||T.length===4&&T.toLowerCase()==="true"?function(A){var j=A.trim();return j.length!==5||j.toLowerCase()!=="false"}(S):T[0]==="{"&&T[T.length-1]==="}"||T[0]==="["&&T[T.length-1]==="]"?function(A){try{return JSON.parse(A)}catch{return A}}(S):w(S)}},function(e,t,n){var r=n(61);e.exports=function(i,a,o){return i==null?i:r(i,a,o)}},function(e,t,n){var r=n(62),i=n(74),a=n(103),o=n(20),l=n(104);e.exports=function(f,c,h,m){if(!o(f))return f;for(var g=-1,x=(c=i(c,f)).length,_=x-1,w=f;w!=null&&++g<x;){var O=l(c[g]),S=h;if(g!=_){var T=w[O];(S=m?m(T,O,w):void 0)===void 0&&(S=o(T)?T:a(c[g+1])?[]:{})}r(w,O,S),w=w[O]}return f}},function(e,t,n){var r=n(63),i=n(31),a=Object.prototype.hasOwnProperty;e.exports=function(o,l,f){var c=o[l];a.call(o,l)&&i(c,f)&&(f!==void 0||l in o)||r(o,l,f)}},function(e,t,n){var r=n(64);e.exports=function(i,a,o){a=="__proto__"&&r?r(i,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):i[a]=o}},function(e,t,n){var r=n(17),i=function(){try{var a=r(Object,"defineProperty");return a({},"",{}),a}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),a=n(20),o=n(72),l=/^\[object .+?Constructor\]$/,f=Function.prototype,c=Object.prototype,h=f.toString,m=c.hasOwnProperty,g=RegExp("^"+h.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(x){return!(!a(x)||i(x))&&(r(x)?g:l).test(o(x))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(a){if(!i(a))return!1;var o=r(a);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,l=r?r.toStringTag:void 0;e.exports=function(f){var c=a.call(f,l),h=f[l];try{f[l]=void 0;var m=!0}catch{}var g=o.call(f);return m&&(c?f[l]=h:delete f[l]),g}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();e.exports=function(a){return!!i&&i in a}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),a=n(77),o=n(100);e.exports=function(l,f){return r(l)?l:i(l,f)?[l]:a(o(l))}},function(e,t,n){var r=n(21),i=n(22),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(l,f){if(r(l))return!1;var c=typeof l;return!(c!="number"&&c!="symbol"&&c!="boolean"&&l!=null&&!i(l))||o.test(l)||!a.test(l)||f!=null&&l in Object(f)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(78)(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(r,function(f,c,h,m){l.push(h?m.replace(i,"$1"):c||f)}),l});e.exports=a},function(e,t,n){var r=n(79);e.exports=function(i){var a=r(i,function(l){return o.size===500&&o.clear(),l}),o=a.cache;return a}},function(e,t,n){var r=n(80),i="Expected a function";function a(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new TypeError(i);var f=function(){var c=arguments,h=l?l.apply(this,c):c[0],m=f.cache;if(m.has(h))return m.get(h);var g=o.apply(this,c);return f.cache=m.set(h,g)||m,g};return f.cache=new(a.Cache||r),f}a.Cache=r,e.exports=a},function(e,t,n){var r=n(81),i=n(95),a=n(97),o=n(98),l=n(99);function f(c){var h=-1,m=c==null?0:c.length;for(this.clear();++h<m;){var g=c[h];this.set(g[0],g[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},function(e,t,n){var r=n(82),i=n(88),a=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),a=n(85),o=n(86),l=n(87);function f(c){var h=-1,m=c==null?0:c.length;for(this.clear();++h<m;){var g=c[h];this.set(g[0],g[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(a){var o=this.__data__;if(r){var l=o[a];return l==="__lodash_hash_undefined__"?void 0:l}return i.call(o,a)?o[a]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(a){var o=this.__data__;return r?o[a]!==void 0:i.call(o,a)}},function(e,t,n){var r=n(8);e.exports=function(i,a){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=r&&a===void 0?"__lodash_hash_undefined__":a,this}},function(e,t,n){var r=n(89),i=n(90),a=n(91),o=n(92),l=n(93);function f(c){var h=-1,m=c==null?0:c.length;for(this.clear();++h<m;){var g=c[h];this.set(g[0],g[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(a){var o=this.__data__,l=r(o,a);return!(l<0||(l==o.length-1?o.pop():i.call(o,l,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var a=this.__data__,o=r(a,i);return o<0?void 0:a[o][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,a){var o=this.__data__,l=r(o,i);return l<0?(++this.size,o.push([i,a])):o[l][1]=a,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var a=r(this,i).delete(i);return this.size-=a?1:0,a}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,a){var o=r(this,i),l=o.size;return o.set(i,a),this.size+=o.size==l?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),a=n(21),o=n(22),l=r?r.prototype:void 0,f=l?l.toString:void 0;e.exports=function c(h){if(typeof h=="string")return h;if(a(h))return i(h,c)+"";if(o(h))return f?f.call(h):"";var m=h+"";return m=="0"&&1/h==-1/0?"-0":m}},function(e,t){e.exports=function(n,r){for(var i=-1,a=n==null?0:n.length,o=Array(a);++i<a;)o[i]=r(n[i],i,n);return o}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var a=typeof r;return!!(i=i??9007199254740991)&&(a=="number"||a!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var a=i+"";return a=="0"&&1/i==-1/0?"-0":a}},function(e,t,n){var r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),a=n(106),o=function(){function f(c){this.converter=c,this.finalResult=[]}return Object.defineProperty(f.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"needPushDownstream",{get:function(){return this._needPushDownstream===void 0&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),f.prototype.processResult=function(c){var h=this,m=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&m===0&&l(this.converter,"["+a.EOL),new i.default(function(g,x){h.needEmitLine?function _(w,O,S,T,A){if(S>=w.length)A();else if(O.parseRuntime.subscribe&&O.parseRuntime.subscribe.onNext){var j=O.parseRuntime.subscribe.onNext,P=w[S],R=j(P,O.parseRuntime.parsedLineNumber+S);if(S++,R&&R.then)R.then(function(){(function(U,z,F,V,H,te,ee){H&&l(F,ee),_(U,F,V,H,te)})(w,0,O,S,T,A,P)},A);else{for(T&&l(O,P);S<w.length;){var D=w[S];j(D,O.parseRuntime.parsedLineNumber+S),S++,T&&l(O,D)}A()}}else{if(T)for(;S<w.length;)D=w[S++],l(O,D);A()}}(c,h.converter,0,h.needPushDownstream,function(_){_?x(_):(h.appendFinalResult(c),g())}):(h.appendFinalResult(c),g())})},f.prototype.appendFinalResult=function(c){this.needEmitAll&&(this.finalResult=this.finalResult.concat(c)),this.converter.parseRuntime.parsedLineNumber+=c.length},f.prototype.processError=function(c){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(c),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(c)},f.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&l(this.converter,"]"+a.EOL)},f}();function l(f,c){if(typeof c!="object"||f.options.objectMode)f.push(c);else{var h=JSON.stringify(c);f.push(h+(f.parseParam.downstreamFormat==="array"?","+a.EOL:a.EOL),"utf8")}}t.Result=o},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
`,t.homedir=function(){return"/"}}])),CE}var VNe=qNe();const HNe=Dt(VNe),WNe=e=>new Promise(t=>{HNe().fromString(e).then(t)}),GNe=new _F,YNe=e=>GNe.parse(e),KNe="shlink",fU=e=>`${KNe}.${e}`;class ZNe{constructor(t){uf(this,"get",t=>{const n=this.localStorage.getItem(fU(t));return n?JSON.parse(n):void 0});uf(this,"set",(t,n)=>this.localStorage.setItem(fU(t),JSON.stringify(n)));this.localStorage=t}}class XNe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const QNe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",ZNe,"localStorage"),e.service("TagColorsStorage",XNe,"Storage"),e.constant("csvToJson",WNe),e.constant("jsonToCsv",YNe),e.serviceFactory("useTimeoutToggle",()=>P9)},bc=new GU,{container:J3}=bc,JNe=(e,t)=>(...n)=>e[t](...n),e4e=(e,t)=>({...e,[t]:JNe(J3,t)}),t4e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),z_=(e,t=[])=>_U(e?t4e(e):null,t.reduce(e4e,{}));tue(bc,z_);YMe(bc,z_);zX(bc);DNe(bc,z_);QNe(bc);zNe(bc,z_);var AE={},by={exports:{}},dU;function n4e(){return dU||(dU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return r.apply(void 0,c)}t.main=n,n.clone=a,n.isPlainObject=o,n.recursive=i;function r(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return f(c[0]===!0,!1,c)}t.merge=r;function i(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return f(c[0]===!0,!0,c)}t.recursive=i;function a(c){if(Array.isArray(c)){for(var h=[],m=0;m<c.length;++m)h.push(a(c[m]));return h}else if(o(c)){var h={};for(var m in c)h[m]=a(c[m]);return h}else return c}t.clone=a;function o(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=o;function l(c,h){if(!o(c))return h;for(var m in h)m==="__proto__"||m==="constructor"||m==="prototype"||(c[m]=o(c[m])&&o(h[m])?l(c[m],h[m]):h[m]);return c}function f(c,h,m){var g;(c||!o(g=m.shift()))&&(g={});for(var x=0;x<m.length;++x){var _=m[x];if(o(_)){for(var w in _)if(!(w==="__proto__"||w==="constructor"||w==="prototype")){var O=c?a(_[w]):_[w];g[w]=h?l(g[w],O):O}}}return g}}(by,by.exports)),by.exports}var hU;function r4e(){return hU||(hU=1,function(e){var t=n(n4e());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=te,e.combineLoads=H,e.load=V,e.save=F;function n(X){return X&&X.__esModule?X:{default:X}}function r(X,$){return f(X)||l(X,$)||a(X,$)||i()}function i(){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 a(X,$){if(X){if(typeof X=="string")return o(X,$);var G=Object.prototype.toString.call(X).slice(8,-1);return G==="Object"&&X.constructor&&(G=X.constructor.name),G==="Map"||G==="Set"?Array.from(X):G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G)?o(X,$):void 0}}function o(X,$){($==null||$>X.length)&&($=X.length);for(var G=0,se=Array($);G<$;G++)se[G]=X[G];return se}function l(X,$){var G=X==null?null:typeof Symbol<"u"&&X[Symbol.iterator]||X["@@iterator"];if(G!=null){var se,Z,ue=[],fe=!0,de=!1;try{for(G=G.call(X);!(fe=(se=G.next()).done)&&(ue.push(se.value),!($&&ue.length===$));fe=!0);}catch(Se){de=!0,Z=Se}finally{try{fe||G.return==null||G.return()}finally{if(de)throw Z}}return ue}}function f(X){if(Array.isArray(X))return X}function c(X){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},c(X)}function h(X,$,G){return $ in X?Object.defineProperty(X,$,{value:G,enumerable:!0,configurable:!0,writable:!0}):X[$]=G,X}var m="[Redux-LocalStorage-Simple]",g="redux_localstorage_simple",x="_",_=[],w=[],O=0,S=!1,T=!1,A=new Map;function j(X){console.warn(m,X)}function P(){}var R=function(X){return X?P:j};function D(X,$){return $===void 0?null:X.length===1?$[X[0]]:D(X.slice(1),$[X[0]])}function U(X){function $(se,Z){return se.length===0?Z:$(se.slice(1),h({},se[0],Z))}var G=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return $(X.split(".").reverse(),G)}function z(X){this.warnFn=X||j}Object.defineProperty(z.prototype,"length",{get:function(){try{return localStorage.length}catch(X){this.warnFn(X)}return 0},configurable:!0,enumerable:!0}),z.prototype.key=function(X){try{return localStorage.key(X)}catch($){this.warnFn($)}return null},z.prototype.setItem=function(X,$){try{localStorage.setItem(X,JSON.stringify($))}catch(G){this.warnFn(G)}},z.prototype.getItem=function(X){try{return JSON.parse(localStorage.getItem(X))}catch($){this.warnFn($)}return null},z.prototype.removeItem=function(X){try{localStorage.removeItem(X)}catch($){this.warnFn($)}};function F(){var X=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},$=X.states,G=$===void 0?_:$,se=X.ignoreStates,Z=se===void 0?w:se,ue=X.namespace,fe=ue===void 0?g:ue,de=X.namespaceSeparator,Se=de===void 0?x:de,k=X.debounce,B=k===void 0?O:k,K=X.disableWarnings,ce=K===void 0?T:K;return function(ae){return function(pe){return function(Te){function Fe(qe,Ye){return 1<qe.split(".").length?D(qe.split("."),Ye):D([qe],Ye)}function ge(){G.length===0?Xe.setItem(fe,je):G.forEach(function(qe){var Ye=fe+Se+qe,ye=Fe(qe,je);ye?Xe.setItem(Ye,ye):Xe.removeItem(Ye)})}var je,Me=R(ce),Be=pe(Te);ee(G)||(console.error(m,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),G=_),ee(Z)||(console.error(m,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),Z=w),0<Z.length&&(Z=Z.filter(function(qe){return re(qe)?qe:void console.error(m,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),re(fe)||(console.error(m,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),fe=g),re(Se)||(console.error(m,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),Se=x),Q(B)||(console.error(m,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),B=O),je=0<Z.length?le(Z,ae.getState()):ae.getState();var Xe=new z(Me);return B?(A.get(G+fe)&&clearTimeout(A.get(G+fe)),A.set(G+fe,setTimeout(function(){ge()},B))):ge(),Be}}}}function V(){var X=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},$=X.states,G=$===void 0?_:$,se=X.immutablejs,Z=se===void 0?S:se,ue=X.namespace,fe=ue===void 0?g:ue,de=X.namespaceSeparator,Se=de===void 0?x:de,k=X.preloadedState,B=k===void 0?{}:k,K=X.disableWarnings,ce=K===void 0?T:K,ae=R(ce);ee(G)||(console.error(m,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),G=_),re(fe)||(console.error(m,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),fe=g),re(Se)||(console.error(m,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),Se=x),Z===!0&&ae("Support for Immutable.js data structures has been deprecated as of version 2.0.0. Please use version 1.4.0 if you require this functionality.");var pe=new z(ae),Te=B;if(G.length===0){var Fe=pe.getItem(fe);Fe&&(Te=Fe)}else G.forEach(function(ge){var je=fe+Se+ge,Me=pe.getItem(je);Me?Te=t.default.recursive(Te,U(ge,Me)):ae("Invalid load '"+je+"' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.")});return Te}function H(){for(var X={},$=arguments.length,G=Array($),se=0;se<$;se++)G[se]=arguments[se];return G.forEach(function(Z){for(var ue in oe(Z)||(console.error(m,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),Z={}),Z)X[ue]=Z[ue]}),X}function te(){var X=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},$=X.namespace,G=$===void 0?g:$,se=X.disableWarnings,Z=se===void 0?T:se,ue=R(Z);re(G)||(console.error(m,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),G=g);for(var fe,de=new z(ue),Se=de.length,k=0;k<Se;k++)fe=de.key(k),fe&&fe.slice(0,G.length)===G&&de.removeItem(fe)}function ee(X){return Object.prototype.toString.call(X)==="[object Array]"}function re(X){return typeof X=="string"}function Q(X){return typeof X=="number"&&isFinite(X)&&Math.floor(X)===X}function oe(X){return X!==null&&c(X)==="object"}function le(X,$){var G=Object.entries($).reduce(function(se,Z){var ue=r(Z,2),fe=ue[0];return ue[1],X.indexOf(fe)===-1&&(se[fe]=$[fe]),se},{});return G}}(AE)),AE}var wG=r4e();const i4e=e=>oP({appUpdated:eue,servers:gNe,selectedServer:e.selectedServerReducer,settings:BNe}),a4e=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),OG={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},o4e=a4e(wG.load(OG)),s4e=e=>H9({devTools:!1,reducer:i4e(e),preloadedState:o4e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(wG.save(OG))}),l4e=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function u4e(e){if("serviceWorker"in navigator){if(new URL(ky.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${ky.homepage}/service-worker.js`;l4e?(c4e(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):SG(n,e)})}}function SG(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function c4e(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):SG(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const EG=s4e(J3),{App:f4e,ScrollToTop:d4e,ErrorHandler:h4e,appUpdateAvailable:p4e}=J3;ZY.createRoot(document.getElementById("root")).render(y.jsx(xU,{store:EG,children:y.jsx(LU,{basename:ky.homepage,children:y.jsx(h4e,{children:y.jsx(d4e,{children:y.jsx(f4e,{})})})})}));u4e({onUpdate(){EG.dispatch(p4e())}});