shlink-web-client/dependabot/npm_and_yarn/vite-plugin-pwa-0.17.4/assets/index-n4jr-iLJ.js

1039 lines
1.6 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 CG=Object.defineProperty;var kG=(e,t,n)=>t in e?CG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xu=(e,t,n)=>(kG(e,typeof t!="symbol"?t+"":t,n),n);function jG(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Tu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L8={exports:{}},l_={},R8={exports:{}},dt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Hm=Symbol.for("react.element"),PG=Symbol.for("react.portal"),AG=Symbol.for("react.fragment"),NG=Symbol.for("react.strict_mode"),MG=Symbol.for("react.profiler"),LG=Symbol.for("react.provider"),RG=Symbol.for("react.context"),DG=Symbol.for("react.forward_ref"),IG=Symbol.for("react.suspense"),FG=Symbol.for("react.memo"),UG=Symbol.for("react.lazy"),BN=Symbol.iterator;function $G(e){return e===null||typeof e!="object"?null:(e=BN&&e[BN]||e["@@iterator"],typeof e=="function"?e:null)}var D8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I8=Object.assign,F8={};function nd(e,t,n){this.props=e,this.context=t,this.refs=F8,this.updater=n||D8}nd.prototype.isReactComponent={};nd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};nd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function U8(){}U8.prototype=nd.prototype;function GC(e,t,n){this.props=e,this.context=t,this.refs=F8,this.updater=n||D8}var qC=GC.prototype=new U8;qC.constructor=GC;I8(qC,nd.prototype);qC.isPureReactComponent=!0;var zN=Array.isArray,$8=Object.prototype.hasOwnProperty,KC={current:null},B8={key:!0,ref:!0,__self:!0,__source:!0};function z8(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)$8.call(t,r)&&!B8.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Hm,type:e,key:o,ref:a,props:i,_owner:KC.current}}function BG(e,t){return{$$typeof:Hm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ZC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hm}function zG(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var VN=/\/+/g;function lx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zG(""+e.key):t.toString(36)}function ny(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Hm:case PG:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+lx(a,0):r,zN(i)?(n="",e!=null&&(n=e.replace(VN,"$&/")+"/"),ny(i,t,n,"",function(u){return u})):i!=null&&(ZC(i)&&(i=BG(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(VN,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",zN(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+lx(o,s);a+=ny(o,t,n,l,i)}else if(l=$G(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+lx(o,s++),a+=ny(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Qv(e,t,n){if(e==null)return e;var r=[],i=0;return ny(e,r,"","",function(o){return t.call(n,o,i++)}),r}function VG(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Lr={current:null},ry={transition:null},HG={ReactCurrentDispatcher:Lr,ReactCurrentBatchConfig:ry,ReactCurrentOwner:KC};dt.Children={map:Qv,forEach:function(e,t,n){Qv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Qv(e,function(){t++}),t},toArray:function(e){return Qv(e,function(t){return t})||[]},only:function(e){if(!ZC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};dt.Component=nd;dt.Fragment=AG;dt.Profiler=MG;dt.PureComponent=GC;dt.StrictMode=NG;dt.Suspense=IG;dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HG;dt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=I8({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=KC.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)$8.call(t,l)&&!B8.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Hm,type:e.type,key:i,ref:o,props:r,_owner:a}};dt.createContext=function(e){return e={$$typeof:RG,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:LG,_context:e},e.Consumer=e};dt.createElement=z8;dt.createFactory=function(e){var t=z8.bind(null,e);return t.type=e,t};dt.createRef=function(){return{current:null}};dt.forwardRef=function(e){return{$$typeof:DG,render:e}};dt.isValidElement=ZC;dt.lazy=function(e){return{$$typeof:UG,_payload:{_status:-1,_result:e},_init:VG}};dt.memo=function(e,t){return{$$typeof:FG,type:e,compare:t===void 0?null:t}};dt.startTransition=function(e){var t=ry.transition;ry.transition={};try{e()}finally{ry.transition=t}};dt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};dt.useCallback=function(e,t){return Lr.current.useCallback(e,t)};dt.useContext=function(e){return Lr.current.useContext(e)};dt.useDebugValue=function(){};dt.useDeferredValue=function(e){return Lr.current.useDeferredValue(e)};dt.useEffect=function(e,t){return Lr.current.useEffect(e,t)};dt.useId=function(){return Lr.current.useId()};dt.useImperativeHandle=function(e,t,n){return Lr.current.useImperativeHandle(e,t,n)};dt.useInsertionEffect=function(e,t){return Lr.current.useInsertionEffect(e,t)};dt.useLayoutEffect=function(e,t){return Lr.current.useLayoutEffect(e,t)};dt.useMemo=function(e,t){return Lr.current.useMemo(e,t)};dt.useReducer=function(e,t,n){return Lr.current.useReducer(e,t,n)};dt.useRef=function(e){return Lr.current.useRef(e)};dt.useState=function(e){return Lr.current.useState(e)};dt.useSyncExternalStore=function(e,t,n){return Lr.current.useSyncExternalStore(e,t,n)};dt.useTransition=function(){return Lr.current.useTransition()};dt.version="18.2.0";R8.exports=dt;var F=R8.exports;const M=Tu(F),l1=jG({__proto__:null,default:M},[F]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var WG=F,YG=Symbol.for("react.element"),GG=Symbol.for("react.fragment"),qG=Object.prototype.hasOwnProperty,KG=WG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZG={key:!0,ref:!0,__self:!0,__source:!0};function V8(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)qG.call(t,r)&&!ZG.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:YG,type:e,key:o,ref:a,props:i,_owner:KG.current}}l_.Fragment=GG;l_.jsx=V8;l_.jsxs=V8;L8.exports=l_;var b=L8.exports,H8={exports:{}},hi={},W8={exports:{}},Y8={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(X,$){var V=X.length;X.push($);e:for(;0<V;){var W=V-1>>>1,re=X[W];if(0<i(re,$))X[W]=$,X[V]=re,V=W;else break e}}function n(X){return X.length===0?null:X[0]}function r(X){if(X.length===0)return null;var $=X[0],V=X.pop();if(V!==$){X[0]=V;e:for(var W=0,re=X.length,q=re>>>1;W<q;){var ee=2*(W+1)-1,ie=X[ee],se=ee+1,fe=X[se];if(0>i(ie,V))se<re&&0>i(fe,ie)?(X[W]=fe,X[se]=V,W=se):(X[W]=ie,X[ee]=V,W=ee);else if(se<re&&0>i(fe,V))X[W]=fe,X[se]=V,W=se;else break e}}return $}function i(X,$){var V=X.sortIndex-$.sortIndex;return V!==0?V:X.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,d=null,p=3,m=!1,v=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(X){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=X)r(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(u)}}function O(X){if(g=!1,x(X),!v)if(n(l)!==null)v=!0,Z(E);else{var $=n(u);$!==null&&te(O,$.startTime-X)}}function E(X,$){v=!1,g&&(g=!1,y(A),A=-1),m=!0;var V=p;try{for(x($),d=n(l);d!==null&&(!(d.expirationTime>$)||X&&!I());){var W=d.callback;if(typeof W=="function"){d.callback=null,p=d.priorityLevel;var re=W(d.expirationTime<=$);$=e.unstable_now(),typeof re=="function"?d.callback=re:d===n(l)&&r(l),x($)}else r(l);d=n(l)}if(d!==null)var q=!0;else{var ee=n(u);ee!==null&&te(O,ee.startTime-$),q=!1}return q}finally{d=null,p=V,m=!1}}var T=!1,k=null,A=-1,D=5,R=-1;function I(){return!(e.unstable_now()-R<D)}function z(){if(k!==null){var X=e.unstable_now();R=X;var $=!0;try{$=k(!0,X)}finally{$?G():(T=!1,k=null)}}else T=!1}var G;if(typeof _=="function")G=function(){_(z)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Q=H.port2;H.port1.onmessage=z,G=function(){Q.postMessage(null)}}else G=function(){w(z,0)};function Z(X){k=X,T||(T=!0,G())}function te(X,$){A=w(function(){X(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,Z(E))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(X){switch(p){case 1:case 2:case 3:var $=3;break;default:$=p}var V=p;p=$;try{return X()}finally{p=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,$){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var V=p;p=X;try{return $()}finally{p=V}},e.unstable_scheduleCallback=function(X,$,V){var W=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?W+V:W):V=W,X){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=V+re,X={id:f++,callback:$,priorityLevel:X,startTime:V,expirationTime:re,sortIndex:-1},V>W?(X.sortIndex=V,t(u,X),n(l)===null&&X===n(u)&&(g?(y(A),A=-1):g=!0,te(O,V-W))):(X.sortIndex=re,t(l,X),v||m||(v=!0,Z(E))),X},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(X){var $=p;return function(){var V=p;p=$;try{return X.apply(this,arguments)}finally{p=V}}}})(Y8);W8.exports=Y8;var XG=W8.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var G8=F,si=XG;function Te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var q8=new Set,ph={};function Cu(e,t){ef(e,t),ef(e+"Capture",t)}function ef(e,t){for(ph[e]=t,e=0;e<t.length;e++)q8.add(t[e])}var ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u1=Object.prototype.hasOwnProperty,QG=/^[: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]*$/,HN={},WN={};function JG(e){return u1.call(WN,e)?!0:u1.call(HN,e)?!1:QG.test(e)?WN[e]=!0:(HN[e]=!0,!1)}function eq(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tq(e,t,n,r){if(t===null||typeof t>"u"||eq(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Rr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fr[e]=new Rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fr[t]=new Rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fr[e]=new Rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fr[e]=new Rr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fr[e]=new Rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fr[e]=new Rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fr[e]=new Rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fr[e]=new Rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fr[e]=new Rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var XC=/[\-:]([a-z])/g;function QC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(XC,QC);fr[t]=new Rr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(XC,QC);fr[t]=new Rr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(XC,QC);fr[t]=new Rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fr[e]=new Rr(e,1,!1,e.toLowerCase(),null,!1,!1)});fr.xlinkHref=new Rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fr[e]=new Rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function JC(e,t,n,r){var i=fr.hasOwnProperty(t)?fr[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(tq(t,n,i,r)&&(n=null),r||i===null?JG(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ha=G8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Jv=Symbol.for("react.element"),gc=Symbol.for("react.portal"),yc=Symbol.for("react.fragment"),ek=Symbol.for("react.strict_mode"),c1=Symbol.for("react.profiler"),K8=Symbol.for("react.provider"),Z8=Symbol.for("react.context"),tk=Symbol.for("react.forward_ref"),f1=Symbol.for("react.suspense"),d1=Symbol.for("react.suspense_list"),nk=Symbol.for("react.memo"),vs=Symbol.for("react.lazy"),X8=Symbol.for("react.offscreen"),YN=Symbol.iterator;function qd(e){return e===null||typeof e!="object"?null:(e=YN&&e[YN]||e["@@iterator"],typeof e=="function"?e:null)}var on=Object.assign,ux;function _p(e){if(ux===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ux=t&&t[1]||""}return`
`+ux+e}var cx=!1;function fx(e,t){if(!e||cx)return"";cx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{cx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_p(e):""}function nq(e){switch(e.tag){case 5:return _p(e.type);case 16:return _p("Lazy");case 13:return _p("Suspense");case 19:return _p("SuspenseList");case 0:case 2:case 15:return e=fx(e.type,!1),e;case 11:return e=fx(e.type.render,!1),e;case 1:return e=fx(e.type,!0),e;default:return""}}function p1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yc:return"Fragment";case gc:return"Portal";case c1:return"Profiler";case ek:return"StrictMode";case f1:return"Suspense";case d1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z8:return(e.displayName||"Context")+".Consumer";case K8:return(e._context.displayName||"Context")+".Provider";case tk:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nk:return t=e.displayName||null,t!==null?t:p1(e.type)||"Memo";case vs:t=e._payload,e=e._init;try{return p1(e(t))}catch{}}return null}function rq(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return p1(t);case 8:return t===ek?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ws(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Q8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iq(e){var t=Q8(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eg(e){e._valueTracker||(e._valueTracker=iq(e))}function J8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q8(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function My(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function h1(e,t){var n=t.checked;return on({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function GN(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ws(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function eF(e,t){t=t.checked,t!=null&&JC(e,"checked",t,!1)}function m1(e,t){eF(e,t);var n=Ws(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?v1(e,t.type,n):t.hasOwnProperty("defaultValue")&&v1(e,t.type,Ws(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qN(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function v1(e,t,n){(t!=="number"||My(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wp=Array.isArray;function zc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ws(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function g1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Te(91));return on({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function KN(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Te(92));if(wp(n)){if(1<n.length)throw Error(Te(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ws(n)}}function tF(e,t){var n=Ws(t.value),r=Ws(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ZN(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nF(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function y1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nF(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var tg,rF=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(tg=tg||document.createElement("div"),tg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},oq=["Webkit","ms","Moz","O"];Object.keys(Lp).forEach(function(e){oq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lp[t]=Lp[e]})});function iF(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lp.hasOwnProperty(e)&&Lp[e]?(""+t).trim():t+"px"}function oF(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=iF(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var aq=on({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function b1(e,t){if(t){if(aq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function _1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var w1=null;function rk(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var x1=null,Vc=null,Hc=null;function XN(e){if(e=Gm(e)){if(typeof x1!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=p_(t),x1(e.stateNode,e.type,t))}}function aF(e){Vc?Hc?Hc.push(e):Hc=[e]:Vc=e}function sF(){if(Vc){var e=Vc,t=Hc;if(Hc=Vc=null,XN(e),t)for(e=0;e<t.length;e++)XN(t[e])}}function lF(e,t){return e(t)}function uF(){}var dx=!1;function cF(e,t,n){if(dx)return e(t,n);dx=!0;try{return lF(e,t,n)}finally{dx=!1,(Vc!==null||Hc!==null)&&(uF(),sF())}}function mh(e,t){var n=e.stateNode;if(n===null)return null;var r=p_(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Te(231,t,typeof n));return n}var O1=!1;if(ka)try{var Kd={};Object.defineProperty(Kd,"passive",{get:function(){O1=!0}}),window.addEventListener("test",Kd,Kd),window.removeEventListener("test",Kd,Kd)}catch{O1=!1}function sq(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Rp=!1,Ly=null,Ry=!1,S1=null,lq={onError:function(e){Rp=!0,Ly=e}};function uq(e,t,n,r,i,o,a,s,l){Rp=!1,Ly=null,sq.apply(lq,arguments)}function cq(e,t,n,r,i,o,a,s,l){if(uq.apply(this,arguments),Rp){if(Rp){var u=Ly;Rp=!1,Ly=null}else throw Error(Te(198));Ry||(Ry=!0,S1=u)}}function ku(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function fF(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function QN(e){if(ku(e)!==e)throw Error(Te(188))}function fq(e){var t=e.alternate;if(!t){if(t=ku(e),t===null)throw Error(Te(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return QN(i),e;if(o===r)return QN(i),t;o=o.sibling}throw Error(Te(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Te(189))}}if(n.alternate!==r)throw Error(Te(190))}if(n.tag!==3)throw Error(Te(188));return n.stateNode.current===n?e:t}function dF(e){return e=fq(e),e!==null?pF(e):null}function pF(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pF(e);if(t!==null)return t;e=e.sibling}return null}var hF=si.unstable_scheduleCallback,JN=si.unstable_cancelCallback,dq=si.unstable_shouldYield,pq=si.unstable_requestPaint,mn=si.unstable_now,hq=si.unstable_getCurrentPriorityLevel,ik=si.unstable_ImmediatePriority,mF=si.unstable_UserBlockingPriority,Dy=si.unstable_NormalPriority,mq=si.unstable_LowPriority,vF=si.unstable_IdlePriority,u_=null,Bo=null;function vq(e){if(Bo&&typeof Bo.onCommitFiberRoot=="function")try{Bo.onCommitFiberRoot(u_,e,void 0,(e.current.flags&128)===128)}catch{}}var mo=Math.clz32?Math.clz32:bq,gq=Math.log,yq=Math.LN2;function bq(e){return e>>>=0,e===0?32:31-(gq(e)/yq|0)|0}var ng=64,rg=4194304;function xp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Iy(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=xp(s):(o&=a,o!==0&&(r=xp(o)))}else a=n&~i,a!==0?r=xp(a):o!==0&&(r=xp(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-mo(t),i=1<<n,r|=e[n],t&=~i;return r}function _q(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wq(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-mo(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=_q(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function E1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gF(){var e=ng;return ng<<=1,!(ng&4194240)&&(ng=64),e}function px(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wm(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mo(t),e[t]=n}function xq(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-mo(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function ok(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-mo(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var jt=0;function yF(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bF,ak,_F,wF,xF,T1=!1,ig=[],Ns=null,Ms=null,Ls=null,vh=new Map,gh=new Map,ws=[],Oq="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function e3(e,t){switch(e){case"focusin":case"focusout":Ns=null;break;case"dragenter":case"dragleave":Ms=null;break;case"mouseover":case"mouseout":Ls=null;break;case"pointerover":case"pointerout":vh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gh.delete(t.pointerId)}}function Zd(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Gm(t),t!==null&&ak(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Sq(e,t,n,r,i){switch(t){case"focusin":return Ns=Zd(Ns,e,t,n,r,i),!0;case"dragenter":return Ms=Zd(Ms,e,t,n,r,i),!0;case"mouseover":return Ls=Zd(Ls,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return vh.set(o,Zd(vh.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,gh.set(o,Zd(gh.get(o)||null,e,t,n,r,i)),!0}return!1}function OF(e){var t=$l(e.target);if(t!==null){var n=ku(t);if(n!==null){if(t=n.tag,t===13){if(t=fF(n),t!==null){e.blockedOn=t,xF(e.priority,function(){_F(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function iy(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=C1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);w1=r,n.target.dispatchEvent(r),w1=null}else return t=Gm(n),t!==null&&ak(t),e.blockedOn=n,!1;t.shift()}return!0}function t3(e,t,n){iy(e)&&n.delete(t)}function Eq(){T1=!1,Ns!==null&&iy(Ns)&&(Ns=null),Ms!==null&&iy(Ms)&&(Ms=null),Ls!==null&&iy(Ls)&&(Ls=null),vh.forEach(t3),gh.forEach(t3)}function Xd(e,t){e.blockedOn===t&&(e.blockedOn=null,T1||(T1=!0,si.unstable_scheduleCallback(si.unstable_NormalPriority,Eq)))}function yh(e){function t(i){return Xd(i,e)}if(0<ig.length){Xd(ig[0],e);for(var n=1;n<ig.length;n++){var r=ig[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ns!==null&&Xd(Ns,e),Ms!==null&&Xd(Ms,e),Ls!==null&&Xd(Ls,e),vh.forEach(t),gh.forEach(t),n=0;n<ws.length;n++)r=ws[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ws.length&&(n=ws[0],n.blockedOn===null);)OF(n),n.blockedOn===null&&ws.shift()}var Wc=Ha.ReactCurrentBatchConfig,Fy=!0;function Tq(e,t,n,r){var i=jt,o=Wc.transition;Wc.transition=null;try{jt=1,sk(e,t,n,r)}finally{jt=i,Wc.transition=o}}function Cq(e,t,n,r){var i=jt,o=Wc.transition;Wc.transition=null;try{jt=4,sk(e,t,n,r)}finally{jt=i,Wc.transition=o}}function sk(e,t,n,r){if(Fy){var i=C1(e,t,n,r);if(i===null)Ox(e,t,r,Uy,n),e3(e,r);else if(Sq(i,e,t,n,r))r.stopPropagation();else if(e3(e,r),t&4&&-1<Oq.indexOf(e)){for(;i!==null;){var o=Gm(i);if(o!==null&&bF(o),o=C1(e,t,n,r),o===null&&Ox(e,t,r,Uy,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ox(e,t,r,null,n)}}var Uy=null;function C1(e,t,n,r){if(Uy=null,e=rk(r),e=$l(e),e!==null)if(t=ku(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fF(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Uy=e,null}function SF(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hq()){case ik:return 1;case mF:return 4;case Dy:case mq:return 16;case vF:return 536870912;default:return 16}default:return 16}}var Os=null,lk=null,oy=null;function EF(){if(oy)return oy;var e,t=lk,n=t.length,r,i="value"in Os?Os.value:Os.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return oy=i.slice(e,1<r?1-r:void 0)}function ay(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function og(){return!0}function n3(){return!1}function mi(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?og:n3,this.isPropagationStopped=n3,this}return on(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=og)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=og)},persist:function(){},isPersistent:og}),t}var rd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uk=mi(rd),Ym=on({},rd,{view:0,detail:0}),kq=mi(Ym),hx,mx,Qd,c_=on({},Ym,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ck,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qd&&(Qd&&e.type==="mousemove"?(hx=e.screenX-Qd.screenX,mx=e.screenY-Qd.screenY):mx=hx=0,Qd=e),hx)},movementY:function(e){return"movementY"in e?e.movementY:mx}}),r3=mi(c_),jq=on({},c_,{dataTransfer:0}),Pq=mi(jq),Aq=on({},Ym,{relatedTarget:0}),vx=mi(Aq),Nq=on({},rd,{animationName:0,elapsedTime:0,pseudoElement:0}),Mq=mi(Nq),Lq=on({},rd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rq=mi(Lq),Dq=on({},rd,{data:0}),i3=mi(Dq),Iq={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fq={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"},Uq={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $q(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uq[e])?!!t[e]:!1}function ck(){return $q}var Bq=on({},Ym,{key:function(e){if(e.key){var t=Iq[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ay(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fq[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ck,charCode:function(e){return e.type==="keypress"?ay(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ay(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zq=mi(Bq),Vq=on({},c_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),o3=mi(Vq),Hq=on({},Ym,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ck}),Wq=mi(Hq),Yq=on({},rd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gq=mi(Yq),qq=on({},c_,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Kq=mi(qq),Zq=[9,13,27,32],fk=ka&&"CompositionEvent"in window,Dp=null;ka&&"documentMode"in document&&(Dp=document.documentMode);var Xq=ka&&"TextEvent"in window&&!Dp,TF=ka&&(!fk||Dp&&8<Dp&&11>=Dp),a3=String.fromCharCode(32),s3=!1;function CF(e,t){switch(e){case"keyup":return Zq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kF(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bc=!1;function Qq(e,t){switch(e){case"compositionend":return kF(t);case"keypress":return t.which!==32?null:(s3=!0,a3);case"textInput":return e=t.data,e===a3&&s3?null:e;default:return null}}function Jq(e,t){if(bc)return e==="compositionend"||!fk&&CF(e,t)?(e=EF(),oy=lk=Os=null,bc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return TF&&t.locale!=="ko"?null:t.data;default:return null}}var eK={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 l3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eK[e.type]:t==="textarea"}function jF(e,t,n,r){aF(r),t=$y(t,"onChange"),0<t.length&&(n=new uk("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ip=null,bh=null;function tK(e){$F(e,0)}function f_(e){var t=xc(e);if(J8(t))return e}function nK(e,t){if(e==="change")return t}var PF=!1;if(ka){var gx;if(ka){var yx="oninput"in document;if(!yx){var u3=document.createElement("div");u3.setAttribute("oninput","return;"),yx=typeof u3.oninput=="function"}gx=yx}else gx=!1;PF=gx&&(!document.documentMode||9<document.documentMode)}function c3(){Ip&&(Ip.detachEvent("onpropertychange",AF),bh=Ip=null)}function AF(e){if(e.propertyName==="value"&&f_(bh)){var t=[];jF(t,bh,e,rk(e)),cF(tK,t)}}function rK(e,t,n){e==="focusin"?(c3(),Ip=t,bh=n,Ip.attachEvent("onpropertychange",AF)):e==="focusout"&&c3()}function iK(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return f_(bh)}function oK(e,t){if(e==="click")return f_(t)}function aK(e,t){if(e==="input"||e==="change")return f_(t)}function sK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bo=typeof Object.is=="function"?Object.is:sK;function _h(e,t){if(bo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!u1.call(t,i)||!bo(e[i],t[i]))return!1}return!0}function f3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function d3(e,t){var n=f3(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=f3(n)}}function NF(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NF(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function MF(){for(var e=window,t=My();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=My(e.document)}return t}function dk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lK(e){var t=MF(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NF(n.ownerDocument.documentElement,n)){if(r!==null&&dk(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=d3(n,o);var a=d3(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var uK=ka&&"documentMode"in document&&11>=document.documentMode,_c=null,k1=null,Fp=null,j1=!1;function p3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;j1||_c==null||_c!==My(r)||(r=_c,"selectionStart"in r&&dk(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fp&&_h(Fp,r)||(Fp=r,r=$y(k1,"onSelect"),0<r.length&&(t=new uk("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_c)))}function ag(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wc={animationend:ag("Animation","AnimationEnd"),animationiteration:ag("Animation","AnimationIteration"),animationstart:ag("Animation","AnimationStart"),transitionend:ag("Transition","TransitionEnd")},bx={},LF={};ka&&(LF=document.createElement("div").style,"AnimationEvent"in window||(delete wc.animationend.animation,delete wc.animationiteration.animation,delete wc.animationstart.animation),"TransitionEvent"in window||delete wc.transitionend.transition);function d_(e){if(bx[e])return bx[e];if(!wc[e])return e;var t=wc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in LF)return bx[e]=t[n];return e}var RF=d_("animationend"),DF=d_("animationiteration"),IF=d_("animationstart"),FF=d_("transitionend"),UF=new Map,h3="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function nl(e,t){UF.set(e,t),Cu(t,[e])}for(var _x=0;_x<h3.length;_x++){var wx=h3[_x],cK=wx.toLowerCase(),fK=wx[0].toUpperCase()+wx.slice(1);nl(cK,"on"+fK)}nl(RF,"onAnimationEnd");nl(DF,"onAnimationIteration");nl(IF,"onAnimationStart");nl("dblclick","onDoubleClick");nl("focusin","onFocus");nl("focusout","onBlur");nl(FF,"onTransitionEnd");ef("onMouseEnter",["mouseout","mouseover"]);ef("onMouseLeave",["mouseout","mouseover"]);ef("onPointerEnter",["pointerout","pointerover"]);ef("onPointerLeave",["pointerout","pointerover"]);Cu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cu("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Op="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(" "),dK=new Set("cancel close invalid load scroll toggle".split(" ").concat(Op));function m3(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,cq(r,t,void 0,e),e.currentTarget=null}function $F(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;m3(i,s,u),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;m3(i,s,u),o=l}}}if(Ry)throw e=S1,Ry=!1,S1=null,e}function Ft(e,t){var n=t[L1];n===void 0&&(n=t[L1]=new Set);var r=e+"__bubble";n.has(r)||(BF(t,e,2,!1),n.add(r))}function xx(e,t,n){var r=0;t&&(r|=4),BF(n,e,r,t)}var sg="_reactListening"+Math.random().toString(36).slice(2);function wh(e){if(!e[sg]){e[sg]=!0,q8.forEach(function(n){n!=="selectionchange"&&(dK.has(n)||xx(n,!1,e),xx(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[sg]||(t[sg]=!0,xx("selectionchange",!1,t))}}function BF(e,t,n,r){switch(SF(t)){case 1:var i=Tq;break;case 4:i=Cq;break;default:i=sk}n=i.bind(null,t,n,e),i=void 0,!O1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ox(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=$l(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}cF(function(){var u=o,f=rk(n),d=[];e:{var p=UF.get(e);if(p!==void 0){var m=uk,v=e;switch(e){case"keypress":if(ay(n)===0)break e;case"keydown":case"keyup":m=zq;break;case"focusin":v="focus",m=vx;break;case"focusout":v="blur",m=vx;break;case"beforeblur":case"afterblur":m=vx;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=r3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Pq;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Wq;break;case RF:case DF:case IF:m=Mq;break;case FF:m=Gq;break;case"scroll":m=kq;break;case"wheel":m=Kq;break;case"copy":case"cut":case"paste":m=Rq;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=o3}var g=(t&4)!==0,w=!g&&e==="scroll",y=g?p!==null?p+"Capture":null:p;g=[];for(var _=u,x;_!==null;){x=_;var O=x.stateNode;if(x.tag===5&&O!==null&&(x=O,y!==null&&(O=mh(_,y),O!=null&&g.push(xh(_,O,x)))),w)break;_=_.return}0<g.length&&(p=new m(p,v,null,n,f),d.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==w1&&(v=n.relatedTarget||n.fromElement)&&($l(v)||v[ja]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?$l(v):null,v!==null&&(w=ku(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(g=r3,O="onMouseLeave",y="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(g=o3,O="onPointerLeave",y="onPointerEnter",_="pointer"),w=m==null?p:xc(m),x=v==null?p:xc(v),p=new g(O,_+"leave",m,n,f),p.target=w,p.relatedTarget=x,O=null,$l(f)===u&&(g=new g(y,_+"enter",v,n,f),g.target=x,g.relatedTarget=w,O=g),w=O,m&&v)t:{for(g=m,y=v,_=0,x=g;x;x=Qu(x))_++;for(x=0,O=y;O;O=Qu(O))x++;for(;0<_-x;)g=Qu(g),_--;for(;0<x-_;)y=Qu(y),x--;for(;_--;){if(g===y||y!==null&&g===y.alternate)break t;g=Qu(g),y=Qu(y)}g=null}else g=null;m!==null&&v3(d,p,m,g,!1),v!==null&&w!==null&&v3(d,w,v,g,!0)}}e:{if(p=u?xc(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var E=nK;else if(l3(p))if(PF)E=aK;else{E=iK;var T=rK}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=oK);if(E&&(E=E(e,u))){jF(d,E,n,f);break e}T&&T(e,p,u),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&v1(p,"number",p.value)}switch(T=u?xc(u):window,e){case"focusin":(l3(T)||T.contentEditable==="true")&&(_c=T,k1=u,Fp=null);break;case"focusout":Fp=k1=_c=null;break;case"mousedown":j1=!0;break;case"contextmenu":case"mouseup":case"dragend":j1=!1,p3(d,n,f);break;case"selectionchange":if(uK)break;case"keydown":case"keyup":p3(d,n,f)}var k;if(fk)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else bc?CF(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(TF&&n.locale!=="ko"&&(bc||A!=="onCompositionStart"?A==="onCompositionEnd"&&bc&&(k=EF()):(Os=f,lk="value"in Os?Os.value:Os.textContent,bc=!0)),T=$y(u,A),0<T.length&&(A=new i3(A,e,null,n,f),d.push({event:A,listeners:T}),k?A.data=k:(k=kF(n),k!==null&&(A.data=k)))),(k=Xq?Qq(e,n):Jq(e,n))&&(u=$y(u,"onBeforeInput"),0<u.length&&(f=new i3("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=k))}$F(d,t)})}function xh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $y(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=mh(e,n),o!=null&&r.unshift(xh(e,o,i)),o=mh(e,t),o!=null&&r.push(xh(e,o,i))),e=e.return}return r}function Qu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function v3(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=mh(n,o),l!=null&&a.unshift(xh(n,l,s))):i||(l=mh(n,o),l!=null&&a.push(xh(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var pK=/\r\n?/g,hK=/\u0000|\uFFFD/g;function g3(e){return(typeof e=="string"?e:""+e).replace(pK,`
`).replace(hK,"")}function lg(e,t,n){if(t=g3(t),g3(e)!==t&&n)throw Error(Te(425))}function By(){}var P1=null,A1=null;function N1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var M1=typeof setTimeout=="function"?setTimeout:void 0,mK=typeof clearTimeout=="function"?clearTimeout:void 0,y3=typeof Promise=="function"?Promise:void 0,vK=typeof queueMicrotask=="function"?queueMicrotask:typeof y3<"u"?function(e){return y3.resolve(null).then(e).catch(gK)}:M1;function gK(e){setTimeout(function(){throw e})}function Sx(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),yh(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);yh(t)}function Rs(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function b3(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var id=Math.random().toString(36).slice(2),Ro="__reactFiber$"+id,Oh="__reactProps$"+id,ja="__reactContainer$"+id,L1="__reactEvents$"+id,yK="__reactListeners$"+id,bK="__reactHandles$"+id;function $l(e){var t=e[Ro];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ja]||n[Ro]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=b3(e);e!==null;){if(n=e[Ro])return n;e=b3(e)}return t}e=n,n=e.parentNode}return null}function Gm(e){return e=e[Ro]||e[ja],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Te(33))}function p_(e){return e[Oh]||null}var R1=[],Oc=-1;function rl(e){return{current:e}}function Ht(e){0>Oc||(e.current=R1[Oc],R1[Oc]=null,Oc--)}function Dt(e,t){Oc++,R1[Oc]=e.current,e.current=t}var Ys={},yr=rl(Ys),Br=rl(!1),uu=Ys;function tf(e,t){var n=e.type.contextTypes;if(!n)return Ys;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zr(e){return e=e.childContextTypes,e!=null}function zy(){Ht(Br),Ht(yr)}function _3(e,t,n){if(yr.current!==Ys)throw Error(Te(168));Dt(yr,t),Dt(Br,n)}function zF(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Te(108,rq(e)||"Unknown",i));return on({},n,r)}function Vy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ys,uu=yr.current,Dt(yr,e),Dt(Br,Br.current),!0}function w3(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=zF(e,t,uu),r.__reactInternalMemoizedMergedChildContext=e,Ht(Br),Ht(yr),Dt(yr,e)):Ht(Br),Dt(Br,n)}var pa=null,h_=!1,Ex=!1;function VF(e){pa===null?pa=[e]:pa.push(e)}function _K(e){h_=!0,VF(e)}function il(){if(!Ex&&pa!==null){Ex=!0;var e=0,t=jt;try{var n=pa;for(jt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pa=null,h_=!1}catch(i){throw pa!==null&&(pa=pa.slice(e+1)),hF(ik,il),i}finally{jt=t,Ex=!1}}return null}var Sc=[],Ec=0,Hy=null,Wy=0,Ei=[],Ti=0,cu=null,ga=1,ya="";function kl(e,t){Sc[Ec++]=Wy,Sc[Ec++]=Hy,Hy=e,Wy=t}function HF(e,t,n){Ei[Ti++]=ga,Ei[Ti++]=ya,Ei[Ti++]=cu,cu=e;var r=ga;e=ya;var i=32-mo(r)-1;r&=~(1<<i),n+=1;var o=32-mo(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ga=1<<32-mo(t)+i|n<<i|r,ya=o+e}else ga=1<<o|n<<i|r,ya=e}function pk(e){e.return!==null&&(kl(e,1),HF(e,1,0))}function hk(e){for(;e===Hy;)Hy=Sc[--Ec],Sc[Ec]=null,Wy=Sc[--Ec],Sc[Ec]=null;for(;e===cu;)cu=Ei[--Ti],Ei[Ti]=null,ya=Ei[--Ti],Ei[Ti]=null,ga=Ei[--Ti],Ei[Ti]=null}var ri=null,ti=null,qt=!1,ao=null;function WF(e,t){var n=Pi(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function x3(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ri=e,ti=Rs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ri=e,ti=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cu!==null?{id:ga,overflow:ya}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Pi(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ri=e,ti=null,!0):!1;default:return!1}}function D1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function I1(e){if(qt){var t=ti;if(t){var n=t;if(!x3(e,t)){if(D1(e))throw Error(Te(418));t=Rs(n.nextSibling);var r=ri;t&&x3(e,t)?WF(r,n):(e.flags=e.flags&-4097|2,qt=!1,ri=e)}}else{if(D1(e))throw Error(Te(418));e.flags=e.flags&-4097|2,qt=!1,ri=e}}}function O3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ri=e}function ug(e){if(e!==ri)return!1;if(!qt)return O3(e),qt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!N1(e.type,e.memoizedProps)),t&&(t=ti)){if(D1(e))throw YF(),Error(Te(418));for(;t;)WF(e,t),t=Rs(t.nextSibling)}if(O3(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Te(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ti=Rs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ti=null}}else ti=ri?Rs(e.stateNode.nextSibling):null;return!0}function YF(){for(var e=ti;e;)e=Rs(e.nextSibling)}function nf(){ti=ri=null,qt=!1}function mk(e){ao===null?ao=[e]:ao.push(e)}var wK=Ha.ReactCurrentBatchConfig;function no(e,t){if(e&&e.defaultProps){t=on({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Yy=rl(null),Gy=null,Tc=null,vk=null;function gk(){vk=Tc=Gy=null}function yk(e){var t=Yy.current;Ht(Yy),e._currentValue=t}function F1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yc(e,t){Gy=e,vk=Tc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fr=!0),e.firstContext=null)}function Fi(e){var t=e._currentValue;if(vk!==e)if(e={context:e,memoizedValue:t,next:null},Tc===null){if(Gy===null)throw Error(Te(308));Tc=e,Gy.dependencies={lanes:0,firstContext:e}}else Tc=Tc.next=e;return t}var Bl=null;function bk(e){Bl===null?Bl=[e]:Bl.push(e)}function GF(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,bk(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pa(e,r)}function Pa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gs=!1;function _k(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ds(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,gt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Pa(e,n)}return i=r.interleaved,i===null?(t.next=t,bk(r)):(t.next=i.next,i.next=t),r.interleaved=t,Pa(e,n)}function sy(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ok(e,n)}}function S3(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qy(e,t,n,r){var i=e.updateQueue;gs=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,f=u=l=null,s=o;do{var p=s.lane,m=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,g=s;switch(p=t,m=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){d=v.call(m,d,p);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,p=typeof v=="function"?v.call(m,d,p):v,p==null)break e;d=on({},d,p);break e;case 2:gs=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=m,l=d):f=f.next=m,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);du|=a,e.lanes=a,e.memoizedState=d}}function E3(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Te(191,i));i.call(r)}}}var KF=new G8.Component().refs;function U1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:on({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var m_={isMounted:function(e){return(e=e._reactInternals)?ku(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nr(),i=Fs(e),o=Oa(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ds(e,o,i),t!==null&&(vo(t,e,i,r),sy(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nr(),i=Fs(e),o=Oa(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ds(e,o,i),t!==null&&(vo(t,e,i,r),sy(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nr(),r=Fs(e),i=Oa(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ds(e,i,r),t!==null&&(vo(t,e,r,n),sy(t,e,r))}};function T3(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!_h(n,r)||!_h(i,o):!0}function ZF(e,t,n){var r=!1,i=Ys,o=t.contextType;return typeof o=="object"&&o!==null?o=Fi(o):(i=zr(t)?uu:yr.current,r=t.contextTypes,o=(r=r!=null)?tf(e,i):Ys),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=m_,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function C3(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&m_.enqueueReplaceState(t,t.state,null)}function $1(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=KF,_k(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Fi(o):(o=zr(t)?uu:yr.current,i.context=tf(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(U1(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&m_.enqueueReplaceState(i,i.state,null),qy(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Jd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Te(309));var r=n.stateNode}if(!r)throw Error(Te(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;s===KF&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Te(284));if(!n._owner)throw Error(Te(290,e))}return e}function cg(e,t){throw e=Object.prototype.toString.call(t),Error(Te(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function k3(e){var t=e._init;return t(e._payload)}function XF(e){function t(y,_){if(e){var x=y.deletions;x===null?(y.deletions=[_],y.flags|=16):x.push(_)}}function n(y,_){if(!e)return null;for(;_!==null;)t(y,_),_=_.sibling;return null}function r(y,_){for(y=new Map;_!==null;)_.key!==null?y.set(_.key,_):y.set(_.index,_),_=_.sibling;return y}function i(y,_){return y=Us(y,_),y.index=0,y.sibling=null,y}function o(y,_,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<_?(y.flags|=2,_):x):(y.flags|=2,_)):(y.flags|=1048576,_)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,_,x,O){return _===null||_.tag!==6?(_=Nx(x,y.mode,O),_.return=y,_):(_=i(_,x),_.return=y,_)}function l(y,_,x,O){var E=x.type;return E===yc?f(y,_,x.props.children,O,x.key):_!==null&&(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vs&&k3(E)===_.type)?(O=i(_,x.props),O.ref=Jd(y,_,x),O.return=y,O):(O=py(x.type,x.key,x.props,null,y.mode,O),O.ref=Jd(y,_,x),O.return=y,O)}function u(y,_,x,O){return _===null||_.tag!==4||_.stateNode.containerInfo!==x.containerInfo||_.stateNode.implementation!==x.implementation?(_=Mx(x,y.mode,O),_.return=y,_):(_=i(_,x.children||[]),_.return=y,_)}function f(y,_,x,O,E){return _===null||_.tag!==7?(_=Ql(x,y.mode,O,E),_.return=y,_):(_=i(_,x),_.return=y,_)}function d(y,_,x){if(typeof _=="string"&&_!==""||typeof _=="number")return _=Nx(""+_,y.mode,x),_.return=y,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Jv:return x=py(_.type,_.key,_.props,null,y.mode,x),x.ref=Jd(y,null,_),x.return=y,x;case gc:return _=Mx(_,y.mode,x),_.return=y,_;case vs:var O=_._init;return d(y,O(_._payload),x)}if(wp(_)||qd(_))return _=Ql(_,y.mode,x,null),_.return=y,_;cg(y,_)}return null}function p(y,_,x,O){var E=_!==null?_.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return E!==null?null:s(y,_,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Jv:return x.key===E?l(y,_,x,O):null;case gc:return x.key===E?u(y,_,x,O):null;case vs:return E=x._init,p(y,_,E(x._payload),O)}if(wp(x)||qd(x))return E!==null?null:f(y,_,x,O,null);cg(y,x)}return null}function m(y,_,x,O,E){if(typeof O=="string"&&O!==""||typeof O=="number")return y=y.get(x)||null,s(_,y,""+O,E);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Jv:return y=y.get(O.key===null?x:O.key)||null,l(_,y,O,E);case gc:return y=y.get(O.key===null?x:O.key)||null,u(_,y,O,E);case vs:var T=O._init;return m(y,_,x,T(O._payload),E)}if(wp(O)||qd(O))return y=y.get(x)||null,f(_,y,O,E,null);cg(_,O)}return null}function v(y,_,x,O){for(var E=null,T=null,k=_,A=_=0,D=null;k!==null&&A<x.length;A++){k.index>A?(D=k,k=null):D=k.sibling;var R=p(y,k,x[A],O);if(R===null){k===null&&(k=D);break}e&&k&&R.alternate===null&&t(y,k),_=o(R,_,A),T===null?E=R:T.sibling=R,T=R,k=D}if(A===x.length)return n(y,k),qt&&kl(y,A),E;if(k===null){for(;A<x.length;A++)k=d(y,x[A],O),k!==null&&(_=o(k,_,A),T===null?E=k:T.sibling=k,T=k);return qt&&kl(y,A),E}for(k=r(y,k);A<x.length;A++)D=m(k,y,A,x[A],O),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?A:D.key),_=o(D,_,A),T===null?E=D:T.sibling=D,T=D);return e&&k.forEach(function(I){return t(y,I)}),qt&&kl(y,A),E}function g(y,_,x,O){var E=qd(x);if(typeof E!="function")throw Error(Te(150));if(x=E.call(x),x==null)throw Error(Te(151));for(var T=E=null,k=_,A=_=0,D=null,R=x.next();k!==null&&!R.done;A++,R=x.next()){k.index>A?(D=k,k=null):D=k.sibling;var I=p(y,k,R.value,O);if(I===null){k===null&&(k=D);break}e&&k&&I.alternate===null&&t(y,k),_=o(I,_,A),T===null?E=I:T.sibling=I,T=I,k=D}if(R.done)return n(y,k),qt&&kl(y,A),E;if(k===null){for(;!R.done;A++,R=x.next())R=d(y,R.value,O),R!==null&&(_=o(R,_,A),T===null?E=R:T.sibling=R,T=R);return qt&&kl(y,A),E}for(k=r(y,k);!R.done;A++,R=x.next())R=m(k,y,A,R.value,O),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?A:R.key),_=o(R,_,A),T===null?E=R:T.sibling=R,T=R);return e&&k.forEach(function(z){return t(y,z)}),qt&&kl(y,A),E}function w(y,_,x,O){if(typeof x=="object"&&x!==null&&x.type===yc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Jv:e:{for(var E=x.key,T=_;T!==null;){if(T.key===E){if(E=x.type,E===yc){if(T.tag===7){n(y,T.sibling),_=i(T,x.props.children),_.return=y,y=_;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vs&&k3(E)===T.type){n(y,T.sibling),_=i(T,x.props),_.ref=Jd(y,T,x),_.return=y,y=_;break e}n(y,T);break}else t(y,T);T=T.sibling}x.type===yc?(_=Ql(x.props.children,y.mode,O,x.key),_.return=y,y=_):(O=py(x.type,x.key,x.props,null,y.mode,O),O.ref=Jd(y,_,x),O.return=y,y=O)}return a(y);case gc:e:{for(T=x.key;_!==null;){if(_.key===T)if(_.tag===4&&_.stateNode.containerInfo===x.containerInfo&&_.stateNode.implementation===x.implementation){n(y,_.sibling),_=i(_,x.children||[]),_.return=y,y=_;break e}else{n(y,_);break}else t(y,_);_=_.sibling}_=Mx(x,y.mode,O),_.return=y,y=_}return a(y);case vs:return T=x._init,w(y,_,T(x._payload),O)}if(wp(x))return v(y,_,x,O);if(qd(x))return g(y,_,x,O);cg(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,_!==null&&_.tag===6?(n(y,_.sibling),_=i(_,x),_.return=y,y=_):(n(y,_),_=Nx(x,y.mode,O),_.return=y,y=_),a(y)):n(y,_)}return w}var rf=XF(!0),QF=XF(!1),qm={},zo=rl(qm),Sh=rl(qm),Eh=rl(qm);function zl(e){if(e===qm)throw Error(Te(174));return e}function wk(e,t){switch(Dt(Eh,t),Dt(Sh,e),Dt(zo,qm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:y1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=y1(t,e)}Ht(zo),Dt(zo,t)}function of(){Ht(zo),Ht(Sh),Ht(Eh)}function JF(e){zl(Eh.current);var t=zl(zo.current),n=y1(t,e.type);t!==n&&(Dt(Sh,e),Dt(zo,n))}function xk(e){Sh.current===e&&(Ht(zo),Ht(Sh))}var Jt=rl(0);function Ky(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tx=[];function Ok(){for(var e=0;e<Tx.length;e++)Tx[e]._workInProgressVersionPrimary=null;Tx.length=0}var ly=Ha.ReactCurrentDispatcher,Cx=Ha.ReactCurrentBatchConfig,fu=0,nn=null,kn=null,zn=null,Zy=!1,Up=!1,Th=0,xK=0;function dr(){throw Error(Te(321))}function Sk(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bo(e[n],t[n]))return!1;return!0}function Ek(e,t,n,r,i,o){if(fu=o,nn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ly.current=e===null||e.memoizedState===null?TK:CK,e=n(r,i),Up){o=0;do{if(Up=!1,Th=0,25<=o)throw Error(Te(301));o+=1,zn=kn=null,t.updateQueue=null,ly.current=kK,e=n(r,i)}while(Up)}if(ly.current=Xy,t=kn!==null&&kn.next!==null,fu=0,zn=kn=nn=null,Zy=!1,t)throw Error(Te(300));return e}function Tk(){var e=Th!==0;return Th=0,e}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zn===null?nn.memoizedState=zn=e:zn=zn.next=e,zn}function Ui(){if(kn===null){var e=nn.alternate;e=e!==null?e.memoizedState:null}else e=kn.next;var t=zn===null?nn.memoizedState:zn.next;if(t!==null)zn=t,kn=e;else{if(e===null)throw Error(Te(310));kn=e,e={memoizedState:kn.memoizedState,baseState:kn.baseState,baseQueue:kn.baseQueue,queue:kn.queue,next:null},zn===null?nn.memoizedState=zn=e:zn=zn.next=e}return zn}function Ch(e,t){return typeof t=="function"?t(e):t}function kx(e){var t=Ui(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=kn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var f=u.lane;if((fu&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,nn.lanes|=f,du|=f}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,bo(r,t.memoizedState)||(Fr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,nn.lanes|=o,du|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jx(e){var t=Ui(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);bo(o,t.memoizedState)||(Fr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function eU(){}function tU(e,t){var n=nn,r=Ui(),i=t(),o=!bo(r.memoizedState,i);if(o&&(r.memoizedState=i,Fr=!0),r=r.queue,Ck(iU.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||zn!==null&&zn.memoizedState.tag&1){if(n.flags|=2048,kh(9,rU.bind(null,n,r,i,t),void 0,null),Hn===null)throw Error(Te(349));fu&30||nU(n,t,i)}return i}function nU(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=nn.updateQueue,t===null?(t={lastEffect:null,stores:null},nn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rU(e,t,n,r){t.value=n,t.getSnapshot=r,oU(t)&&aU(e)}function iU(e,t,n){return n(function(){oU(t)&&aU(e)})}function oU(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bo(e,n)}catch{return!0}}function aU(e){var t=Pa(e,1);t!==null&&vo(t,e,1,-1)}function j3(e){var t=Mo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:e},t.queue=e,e=e.dispatch=EK.bind(null,nn,e),[t.memoizedState,e]}function kh(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=nn.updateQueue,t===null?(t={lastEffect:null,stores:null},nn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function sU(){return Ui().memoizedState}function uy(e,t,n,r){var i=Mo();nn.flags|=e,i.memoizedState=kh(1|t,n,void 0,r===void 0?null:r)}function v_(e,t,n,r){var i=Ui();r=r===void 0?null:r;var o=void 0;if(kn!==null){var a=kn.memoizedState;if(o=a.destroy,r!==null&&Sk(r,a.deps)){i.memoizedState=kh(t,n,o,r);return}}nn.flags|=e,i.memoizedState=kh(1|t,n,o,r)}function P3(e,t){return uy(8390656,8,e,t)}function Ck(e,t){return v_(2048,8,e,t)}function lU(e,t){return v_(4,2,e,t)}function uU(e,t){return v_(4,4,e,t)}function cU(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fU(e,t,n){return n=n!=null?n.concat([e]):null,v_(4,4,cU.bind(null,t,e),n)}function kk(){}function dU(e,t){var n=Ui();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sk(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pU(e,t){var n=Ui();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sk(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hU(e,t,n){return fu&21?(bo(n,t)||(n=gF(),nn.lanes|=n,du|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Fr=!0),e.memoizedState=n)}function OK(e,t){var n=jt;jt=n!==0&&4>n?n:4,e(!0);var r=Cx.transition;Cx.transition={};try{e(!1),t()}finally{jt=n,Cx.transition=r}}function mU(){return Ui().memoizedState}function SK(e,t,n){var r=Fs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vU(e))gU(t,n);else if(n=GF(e,t,n,r),n!==null){var i=Nr();vo(n,e,r,i),yU(n,t,r)}}function EK(e,t,n){var r=Fs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vU(e))gU(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,bo(s,a)){var l=t.interleaved;l===null?(i.next=i,bk(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=GF(e,t,i,r),n!==null&&(i=Nr(),vo(n,e,r,i),yU(n,t,r))}}function vU(e){var t=e.alternate;return e===nn||t!==null&&t===nn}function gU(e,t){Up=Zy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yU(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ok(e,n)}}var Xy={readContext:Fi,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useInsertionEffect:dr,useLayoutEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useMutableSource:dr,useSyncExternalStore:dr,useId:dr,unstable_isNewReconciler:!1},TK={readContext:Fi,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:Fi,useEffect:P3,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,uy(4194308,4,cU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return uy(4194308,4,e,t)},useInsertionEffect:function(e,t){return uy(4,2,e,t)},useMemo:function(e,t){var n=Mo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=SK.bind(null,nn,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:j3,useDebugValue:kk,useDeferredValue:function(e){return Mo().memoizedState=e},useTransition:function(){var e=j3(!1),t=e[0];return e=OK.bind(null,e[1]),Mo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=nn,i=Mo();if(qt){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),Hn===null)throw Error(Te(349));fu&30||nU(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,P3(iU.bind(null,r,o,e),[e]),r.flags|=2048,kh(9,rU.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mo(),t=Hn.identifierPrefix;if(qt){var n=ya,r=ga;n=(r&~(1<<32-mo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Th++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=xK++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},CK={readContext:Fi,useCallback:dU,useContext:Fi,useEffect:Ck,useImperativeHandle:fU,useInsertionEffect:lU,useLayoutEffect:uU,useMemo:pU,useReducer:kx,useRef:sU,useState:function(){return kx(Ch)},useDebugValue:kk,useDeferredValue:function(e){var t=Ui();return hU(t,kn.memoizedState,e)},useTransition:function(){var e=kx(Ch)[0],t=Ui().memoizedState;return[e,t]},useMutableSource:eU,useSyncExternalStore:tU,useId:mU,unstable_isNewReconciler:!1},kK={readContext:Fi,useCallback:dU,useContext:Fi,useEffect:Ck,useImperativeHandle:fU,useInsertionEffect:lU,useLayoutEffect:uU,useMemo:pU,useReducer:jx,useRef:sU,useState:function(){return jx(Ch)},useDebugValue:kk,useDeferredValue:function(e){var t=Ui();return kn===null?t.memoizedState=e:hU(t,kn.memoizedState,e)},useTransition:function(){var e=jx(Ch)[0],t=Ui().memoizedState;return[e,t]},useMutableSource:eU,useSyncExternalStore:tU,useId:mU,unstable_isNewReconciler:!1};function af(e,t){try{var n="",r=t;do n+=nq(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Px(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function B1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jK=typeof WeakMap=="function"?WeakMap:Map;function bU(e,t,n){n=Oa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jy||(Jy=!0,X1=r),B1(e,t)},n}function _U(e,t,n){n=Oa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){B1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){B1(e,t),typeof r!="function"&&(Is===null?Is=new Set([this]):Is.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function A3(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jK;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=VK.bind(null,e,t,n),t.then(e,e))}function N3(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function M3(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Oa(-1,1),t.tag=2,Ds(n,t,1))),n.lanes|=1),e)}var PK=Ha.ReactCurrentOwner,Fr=!1;function Tr(e,t,n,r){t.child=e===null?QF(t,null,n,r):rf(t,e.child,n,r)}function L3(e,t,n,r,i){n=n.render;var o=t.ref;return Yc(t,i),r=Ek(e,t,n,r,o,i),n=Tk(),e!==null&&!Fr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Aa(e,t,i)):(qt&&n&&pk(t),t.flags|=1,Tr(e,t,r,i),t.child)}function R3(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Dk(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,wU(e,t,o,r,i)):(e=py(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_h,n(a,r)&&e.ref===t.ref)return Aa(e,t,i)}return t.flags|=1,e=Us(o,r),e.ref=t.ref,e.return=t,t.child=e}function wU(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(_h(o,r)&&e.ref===t.ref)if(Fr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Fr=!0);else return t.lanes=e.lanes,Aa(e,t,i)}return z1(e,t,n,r,i)}function xU(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dt(kc,Jr),Jr|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Dt(kc,Jr),Jr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Dt(kc,Jr),Jr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Dt(kc,Jr),Jr|=r;return Tr(e,t,i,n),t.child}function OU(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function z1(e,t,n,r,i){var o=zr(n)?uu:yr.current;return o=tf(t,o),Yc(t,i),n=Ek(e,t,n,r,o,i),r=Tk(),e!==null&&!Fr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Aa(e,t,i)):(qt&&r&&pk(t),t.flags|=1,Tr(e,t,n,i),t.child)}function D3(e,t,n,r,i){if(zr(n)){var o=!0;Vy(t)}else o=!1;if(Yc(t,i),t.stateNode===null)cy(e,t),ZF(t,n,r),$1(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Fi(u):(u=zr(n)?uu:yr.current,u=tf(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&C3(t,a,r,u),gs=!1;var p=t.memoizedState;a.state=p,qy(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Br.current||gs?(typeof f=="function"&&(U1(t,n,f,r),l=t.memoizedState),(s=gs||T3(t,n,s,r,p,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,qF(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:no(t.type,s),a.props=u,d=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Fi(l):(l=zr(n)?uu:yr.current,l=tf(t,l));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==l)&&C3(t,a,r,l),gs=!1,p=t.memoizedState,a.state=p,qy(t,r,a,i);var v=t.memoizedState;s!==d||p!==v||Br.current||gs?(typeof m=="function"&&(U1(t,n,m,r),v=t.memoizedState),(u=gs||T3(t,n,u,r,p,v,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return V1(e,t,n,r,o,i)}function V1(e,t,n,r,i,o){OU(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&w3(t,n,!1),Aa(e,t,o);r=t.stateNode,PK.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=rf(t,e.child,null,o),t.child=rf(t,null,s,o)):Tr(e,t,s,o),t.memoizedState=r.state,i&&w3(t,n,!0),t.child}function SU(e){var t=e.stateNode;t.pendingContext?_3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_3(e,t.context,!1),wk(e,t.containerInfo)}function I3(e,t,n,r,i){return nf(),mk(i),t.flags|=256,Tr(e,t,n,r),t.child}var H1={dehydrated:null,treeContext:null,retryLane:0};function W1(e){return{baseLanes:e,cachePool:null,transitions:null}}function EU(e,t,n){var r=t.pendingProps,i=Jt.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Dt(Jt,i&1),e===null)return I1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=b_(a,r,0,null),e=Ql(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=W1(n),t.memoizedState=H1,e):jk(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return AK(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Us(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Us(s,o):(o=Ql(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?W1(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=H1,r}return o=e.child,e=o.sibling,r=Us(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function jk(e,t){return t=b_({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fg(e,t,n,r){return r!==null&&mk(r),rf(t,e.child,null,n),e=jk(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function AK(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Px(Error(Te(422))),fg(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=b_({mode:"visible",children:r.children},i,0,null),o=Ql(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&rf(t,e.child,null,a),t.child.memoizedState=W1(a),t.memoizedState=H1,o);if(!(t.mode&1))return fg(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Te(419)),r=Px(o,r,void 0),fg(e,t,a,r)}if(s=(a&e.childLanes)!==0,Fr||s){if(r=Hn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Pa(e,i),vo(r,e,i,-1))}return Rk(),r=Px(Error(Te(421))),fg(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=HK.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ti=Rs(i.nextSibling),ri=t,qt=!0,ao=null,e!==null&&(Ei[Ti++]=ga,Ei[Ti++]=ya,Ei[Ti++]=cu,ga=e.id,ya=e.overflow,cu=t),t=jk(t,r.children),t.flags|=4096,t)}function F3(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),F1(e.return,t,n)}function Ax(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function TU(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Tr(e,t,r.children,n),r=Jt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&F3(e,n,t);else if(e.tag===19)F3(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Dt(Jt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ky(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ax(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ky(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ax(t,!0,n,null,o);break;case"together":Ax(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cy(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Aa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),du|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Te(153));if(t.child!==null){for(e=t.child,n=Us(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Us(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function NK(e,t,n){switch(t.tag){case 3:SU(t),nf();break;case 5:JF(t);break;case 1:zr(t.type)&&Vy(t);break;case 4:wk(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Dt(Yy,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Dt(Jt,Jt.current&1),t.flags|=128,null):n&t.child.childLanes?EU(e,t,n):(Dt(Jt,Jt.current&1),e=Aa(e,t,n),e!==null?e.sibling:null);Dt(Jt,Jt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return TU(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Dt(Jt,Jt.current),r)break;return null;case 22:case 23:return t.lanes=0,xU(e,t,n)}return Aa(e,t,n)}var CU,Y1,kU,jU;CU=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Y1=function(){};kU=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zl(zo.current);var o=null;switch(n){case"input":i=h1(e,i),r=h1(e,r),o=[];break;case"select":i=on({},i,{value:void 0}),r=on({},r,{value:void 0}),o=[];break;case"textarea":i=g1(e,i),r=g1(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=By)}b1(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ph.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ph.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ft("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};jU=function(e,t,n,r){n!==r&&(t.flags|=4)};function ep(e,t){if(!qt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function MK(e,t,n){var r=t.pendingProps;switch(hk(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pr(t),null;case 1:return zr(t.type)&&zy(),pr(t),null;case 3:return r=t.stateNode,of(),Ht(Br),Ht(yr),Ok(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ug(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ao!==null&&(eS(ao),ao=null))),Y1(e,t),pr(t),null;case 5:xk(t);var i=zl(Eh.current);if(n=t.type,e!==null&&t.stateNode!=null)kU(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Te(166));return pr(t),null}if(e=zl(zo.current),ug(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ro]=t,r[Oh]=o,e=(t.mode&1)!==0,n){case"dialog":Ft("cancel",r),Ft("close",r);break;case"iframe":case"object":case"embed":Ft("load",r);break;case"video":case"audio":for(i=0;i<Op.length;i++)Ft(Op[i],r);break;case"source":Ft("error",r);break;case"img":case"image":case"link":Ft("error",r),Ft("load",r);break;case"details":Ft("toggle",r);break;case"input":GN(r,o),Ft("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ft("invalid",r);break;case"textarea":KN(r,o),Ft("invalid",r)}b1(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&lg(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&lg(r.textContent,s,e),i=["children",""+s]):ph.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ft("scroll",r)}switch(n){case"input":eg(r),qN(r,o,!0);break;case"textarea":eg(r),ZN(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=By)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nF(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ro]=t,e[Oh]=r,CU(e,t,!1,!1),t.stateNode=e;e:{switch(a=_1(n,r),n){case"dialog":Ft("cancel",e),Ft("close",e),i=r;break;case"iframe":case"object":case"embed":Ft("load",e),i=r;break;case"video":case"audio":for(i=0;i<Op.length;i++)Ft(Op[i],e);i=r;break;case"source":Ft("error",e),i=r;break;case"img":case"image":case"link":Ft("error",e),Ft("load",e),i=r;break;case"details":Ft("toggle",e),i=r;break;case"input":GN(e,r),i=h1(e,r),Ft("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=on({},r,{value:void 0}),Ft("invalid",e);break;case"textarea":KN(e,r),i=g1(e,r),Ft("invalid",e);break;default:i=r}b1(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?oF(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&rF(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&hh(e,l):typeof l=="number"&&hh(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ph.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ft("scroll",e):l!=null&&JC(e,o,l,a))}switch(n){case"input":eg(e),qN(e,r,!1);break;case"textarea":eg(e),ZN(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ws(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?zc(e,!!r.multiple,o,!1):r.defaultValue!=null&&zc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=By)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pr(t),null;case 6:if(e&&t.stateNode!=null)jU(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Te(166));if(n=zl(Eh.current),zl(zo.current),ug(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ro]=t,(o=r.nodeValue!==n)&&(e=ri,e!==null))switch(e.tag){case 3:lg(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&lg(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ro]=t,t.stateNode=r}return pr(t),null;case 13:if(Ht(Jt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(qt&&ti!==null&&t.mode&1&&!(t.flags&128))YF(),nf(),t.flags|=98560,o=!1;else if(o=ug(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Te(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Te(317));o[Ro]=t}else nf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pr(t),o=!1}else ao!==null&&(eS(ao),ao=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Jt.current&1?jn===0&&(jn=3):Rk())),t.updateQueue!==null&&(t.flags|=4),pr(t),null);case 4:return of(),Y1(e,t),e===null&&wh(t.stateNode.containerInfo),pr(t),null;case 10:return yk(t.type._context),pr(t),null;case 17:return zr(t.type)&&zy(),pr(t),null;case 19:if(Ht(Jt),o=t.memoizedState,o===null)return pr(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)ep(o,!1);else{if(jn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ky(e),a!==null){for(t.flags|=128,ep(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Dt(Jt,Jt.current&1|2),t.child}e=e.sibling}o.tail!==null&&mn()>sf&&(t.flags|=128,r=!0,ep(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ky(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ep(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!qt)return pr(t),null}else 2*mn()-o.renderingStartTime>sf&&n!==1073741824&&(t.flags|=128,r=!0,ep(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=mn(),t.sibling=null,n=Jt.current,Dt(Jt,r?n&1|2:n&1),t):(pr(t),null);case 22:case 23:return Lk(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Jr&1073741824&&(pr(t),t.subtreeFlags&6&&(t.flags|=8192)):pr(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function LK(e,t){switch(hk(t),t.tag){case 1:return zr(t.type)&&zy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return of(),Ht(Br),Ht(yr),Ok(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xk(t),null;case 13:if(Ht(Jt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));nf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ht(Jt),null;case 4:return of(),null;case 10:return yk(t.type._context),null;case 22:case 23:return Lk(),null;case 24:return null;default:return null}}var dg=!1,vr=!1,RK=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Cc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){un(e,t,r)}else n.current=null}function G1(e,t,n){try{n()}catch(r){un(e,t,r)}}var U3=!1;function DK(e,t){if(P1=Fy,e=MF(),dk(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++f===r&&(l=a),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(A1={focusedElem:e,selectionRange:n},Fy=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,w=v.memoizedState,y=t.stateNode,_=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:no(t.type,g),w);y.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(O){un(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return v=U3,U3=!1,v}function $p(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&G1(t,n,o)}i=i.next}while(i!==r)}}function g_(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function q1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function PU(e){var t=e.alternate;t!==null&&(e.alternate=null,PU(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ro],delete t[Oh],delete t[L1],delete t[yK],delete t[bK])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function AU(e){return e.tag===5||e.tag===3||e.tag===4}function $3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||AU(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function K1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=By));else if(r!==4&&(e=e.child,e!==null))for(K1(e,t,n),e=e.sibling;e!==null;)K1(e,t,n),e=e.sibling}function Z1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Z1(e,t,n),e=e.sibling;e!==null;)Z1(e,t,n),e=e.sibling}var lr=null,ro=!1;function is(e,t,n){for(n=n.child;n!==null;)NU(e,t,n),n=n.sibling}function NU(e,t,n){if(Bo&&typeof Bo.onCommitFiberUnmount=="function")try{Bo.onCommitFiberUnmount(u_,n)}catch{}switch(n.tag){case 5:vr||Cc(n,t);case 6:var r=lr,i=ro;lr=null,is(e,t,n),lr=r,ro=i,lr!==null&&(ro?(e=lr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lr.removeChild(n.stateNode));break;case 18:lr!==null&&(ro?(e=lr,n=n.stateNode,e.nodeType===8?Sx(e.parentNode,n):e.nodeType===1&&Sx(e,n),yh(e)):Sx(lr,n.stateNode));break;case 4:r=lr,i=ro,lr=n.stateNode.containerInfo,ro=!0,is(e,t,n),lr=r,ro=i;break;case 0:case 11:case 14:case 15:if(!vr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&G1(n,t,a),i=i.next}while(i!==r)}is(e,t,n);break;case 1:if(!vr&&(Cc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){un(n,t,s)}is(e,t,n);break;case 21:is(e,t,n);break;case 22:n.mode&1?(vr=(r=vr)||n.memoizedState!==null,is(e,t,n),vr=r):is(e,t,n);break;default:is(e,t,n)}}function B3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RK),t.forEach(function(r){var i=WK.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function eo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:lr=s.stateNode,ro=!1;break e;case 3:lr=s.stateNode.containerInfo,ro=!0;break e;case 4:lr=s.stateNode.containerInfo,ro=!0;break e}s=s.return}if(lr===null)throw Error(Te(160));NU(o,a,i),lr=null,ro=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){un(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)MU(t,e),t=t.sibling}function MU(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(eo(t,e),jo(e),r&4){try{$p(3,e,e.return),g_(3,e)}catch(g){un(e,e.return,g)}try{$p(5,e,e.return)}catch(g){un(e,e.return,g)}}break;case 1:eo(t,e),jo(e),r&512&&n!==null&&Cc(n,n.return);break;case 5:if(eo(t,e),jo(e),r&512&&n!==null&&Cc(n,n.return),e.flags&32){var i=e.stateNode;try{hh(i,"")}catch(g){un(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&eF(i,o),_1(s,a);var u=_1(s,o);for(a=0;a<l.length;a+=2){var f=l[a],d=l[a+1];f==="style"?oF(i,d):f==="dangerouslySetInnerHTML"?rF(i,d):f==="children"?hh(i,d):JC(i,f,d,u)}switch(s){case"input":m1(i,o);break;case"textarea":tF(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?zc(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?zc(i,!!o.multiple,o.defaultValue,!0):zc(i,!!o.multiple,o.multiple?[]:"",!1))}i[Oh]=o}catch(g){un(e,e.return,g)}}break;case 6:if(eo(t,e),jo(e),r&4){if(e.stateNode===null)throw Error(Te(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){un(e,e.return,g)}}break;case 3:if(eo(t,e),jo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{yh(t.containerInfo)}catch(g){un(e,e.return,g)}break;case 4:eo(t,e),jo(e);break;case 13:eo(t,e),jo(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Nk=mn())),r&4&&B3(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(vr=(u=vr)||f,eo(t,e),vr=u):eo(t,e),jo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for($e=e,f=e.child;f!==null;){for(d=$e=f;$e!==null;){switch(p=$e,m=p.child,p.tag){case 0:case 11:case 14:case 15:$p(4,p,p.return);break;case 1:Cc(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){un(r,n,g)}}break;case 5:Cc(p,p.return);break;case 22:if(p.memoizedState!==null){V3(d);continue}}m!==null?(m.return=p,$e=m):V3(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=iF("display",a))}catch(g){un(e,e.return,g)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){un(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:eo(t,e),jo(e),r&4&&B3(e);break;case 21:break;default:eo(t,e),jo(e)}}function jo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(AU(n)){var r=n;break e}n=n.return}throw Error(Te(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(hh(i,""),r.flags&=-33);var o=$3(e);Z1(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=$3(e);K1(e,s,a);break;default:throw Error(Te(161))}}catch(l){un(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function IK(e,t,n){$e=e,LU(e)}function LU(e,t,n){for(var r=(e.mode&1)!==0;$e!==null;){var i=$e,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||dg;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||vr;s=dg;var u=vr;if(dg=a,(vr=l)&&!u)for($e=i;$e!==null;)a=$e,l=a.child,a.tag===22&&a.memoizedState!==null?H3(i):l!==null?(l.return=a,$e=l):H3(i);for(;o!==null;)$e=o,LU(o),o=o.sibling;$e=i,dg=s,vr=u}z3(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$e=o):z3(e)}}function z3(e){for(;$e!==null;){var t=$e;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:vr||g_(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!vr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:no(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&E3(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}E3(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&yh(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Te(163))}vr||t.flags&512&&q1(t)}catch(p){un(t,t.return,p)}}if(t===e){$e=null;break}if(n=t.sibling,n!==null){n.return=t.return,$e=n;break}$e=t.return}}function V3(e){for(;$e!==null;){var t=$e;if(t===e){$e=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$e=n;break}$e=t.return}}function H3(e){for(;$e!==null;){var t=$e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{g_(4,t)}catch(l){un(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){un(t,i,l)}}var o=t.return;try{q1(t)}catch(l){un(t,o,l)}break;case 5:var a=t.return;try{q1(t)}catch(l){un(t,a,l)}}}catch(l){un(t,t.return,l)}if(t===e){$e=null;break}var s=t.sibling;if(s!==null){s.return=t.return,$e=s;break}$e=t.return}}var FK=Math.ceil,Qy=Ha.ReactCurrentDispatcher,Pk=Ha.ReactCurrentOwner,Ni=Ha.ReactCurrentBatchConfig,gt=0,Hn=null,On=null,ur=0,Jr=0,kc=rl(0),jn=0,jh=null,du=0,y_=0,Ak=0,Bp=null,Ir=null,Nk=0,sf=1/0,fa=null,Jy=!1,X1=null,Is=null,pg=!1,Ss=null,e0=0,zp=0,Q1=null,fy=-1,dy=0;function Nr(){return gt&6?mn():fy!==-1?fy:fy=mn()}function Fs(e){return e.mode&1?gt&2&&ur!==0?ur&-ur:wK.transition!==null?(dy===0&&(dy=gF()),dy):(e=jt,e!==0||(e=window.event,e=e===void 0?16:SF(e.type)),e):1}function vo(e,t,n,r){if(50<zp)throw zp=0,Q1=null,Error(Te(185));Wm(e,n,r),(!(gt&2)||e!==Hn)&&(e===Hn&&(!(gt&2)&&(y_|=n),jn===4&&xs(e,ur)),Vr(e,r),n===1&&gt===0&&!(t.mode&1)&&(sf=mn()+500,h_&&il()))}function Vr(e,t){var n=e.callbackNode;wq(e,t);var r=Iy(e,e===Hn?ur:0);if(r===0)n!==null&&JN(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&JN(n),t===1)e.tag===0?_K(W3.bind(null,e)):VF(W3.bind(null,e)),vK(function(){!(gt&6)&&il()}),n=null;else{switch(yF(r)){case 1:n=ik;break;case 4:n=mF;break;case 16:n=Dy;break;case 536870912:n=vF;break;default:n=Dy}n=zU(n,RU.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function RU(e,t){if(fy=-1,dy=0,gt&6)throw Error(Te(327));var n=e.callbackNode;if(Gc()&&e.callbackNode!==n)return null;var r=Iy(e,e===Hn?ur:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=t0(e,r);else{t=r;var i=gt;gt|=2;var o=IU();(Hn!==e||ur!==t)&&(fa=null,sf=mn()+500,Xl(e,t));do try{BK();break}catch(s){DU(e,s)}while(1);gk(),Qy.current=o,gt=i,On!==null?t=0:(Hn=null,ur=0,t=jn)}if(t!==0){if(t===2&&(i=E1(e),i!==0&&(r=i,t=J1(e,i))),t===1)throw n=jh,Xl(e,0),xs(e,r),Vr(e,mn()),n;if(t===6)xs(e,r);else{if(i=e.current.alternate,!(r&30)&&!UK(i)&&(t=t0(e,r),t===2&&(o=E1(e),o!==0&&(r=o,t=J1(e,o))),t===1))throw n=jh,Xl(e,0),xs(e,r),Vr(e,mn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Te(345));case 2:jl(e,Ir,fa);break;case 3:if(xs(e,r),(r&130023424)===r&&(t=Nk+500-mn(),10<t)){if(Iy(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Nr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=M1(jl.bind(null,e,Ir,fa),t);break}jl(e,Ir,fa);break;case 4:if(xs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-mo(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=mn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FK(r/1960))-r,10<r){e.timeoutHandle=M1(jl.bind(null,e,Ir,fa),r);break}jl(e,Ir,fa);break;case 5:jl(e,Ir,fa);break;default:throw Error(Te(329))}}}return Vr(e,mn()),e.callbackNode===n?RU.bind(null,e):null}function J1(e,t){var n=Bp;return e.current.memoizedState.isDehydrated&&(Xl(e,t).flags|=256),e=t0(e,t),e!==2&&(t=Ir,Ir=n,t!==null&&eS(t)),e}function eS(e){Ir===null?Ir=e:Ir.push.apply(Ir,e)}function UK(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!bo(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xs(e,t){for(t&=~Ak,t&=~y_,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mo(t),r=1<<n;e[n]=-1,t&=~r}}function W3(e){if(gt&6)throw Error(Te(327));Gc();var t=Iy(e,0);if(!(t&1))return Vr(e,mn()),null;var n=t0(e,t);if(e.tag!==0&&n===2){var r=E1(e);r!==0&&(t=r,n=J1(e,r))}if(n===1)throw n=jh,Xl(e,0),xs(e,t),Vr(e,mn()),n;if(n===6)throw Error(Te(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jl(e,Ir,fa),Vr(e,mn()),null}function Mk(e,t){var n=gt;gt|=1;try{return e(t)}finally{gt=n,gt===0&&(sf=mn()+500,h_&&il())}}function pu(e){Ss!==null&&Ss.tag===0&&!(gt&6)&&Gc();var t=gt;gt|=1;var n=Ni.transition,r=jt;try{if(Ni.transition=null,jt=1,e)return e()}finally{jt=r,Ni.transition=n,gt=t,!(gt&6)&&il()}}function Lk(){Jr=kc.current,Ht(kc)}function Xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mK(n)),On!==null)for(n=On.return;n!==null;){var r=n;switch(hk(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zy();break;case 3:of(),Ht(Br),Ht(yr),Ok();break;case 5:xk(r);break;case 4:of();break;case 13:Ht(Jt);break;case 19:Ht(Jt);break;case 10:yk(r.type._context);break;case 22:case 23:Lk()}n=n.return}if(Hn=e,On=e=Us(e.current,null),ur=Jr=t,jn=0,jh=null,Ak=y_=du=0,Ir=Bp=null,Bl!==null){for(t=0;t<Bl.length;t++)if(n=Bl[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Bl=null}return e}function DU(e,t){do{var n=On;try{if(gk(),ly.current=Xy,Zy){for(var r=nn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Zy=!1}if(fu=0,zn=kn=nn=null,Up=!1,Th=0,Pk.current=null,n===null||n.return===null){jn=1,jh=t,On=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ur,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=N3(a);if(m!==null){m.flags&=-257,M3(m,a,s,o,t),m.mode&1&&A3(o,u,t),t=m,l=u;var v=t.updateQueue;if(v===null){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}else{if(!(t&1)){A3(o,u,t),Rk();break e}l=Error(Te(426))}}else if(qt&&s.mode&1){var w=N3(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),M3(w,a,s,o,t),mk(af(l,s));break e}}o=l=af(l,s),jn!==4&&(jn=2),Bp===null?Bp=[o]:Bp.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=bU(o,l,t);S3(o,y);break e;case 1:s=l;var _=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof _.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Is===null||!Is.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=_U(o,s,t);S3(o,O);break e}}o=o.return}while(o!==null)}UU(n)}catch(E){t=E,On===n&&n!==null&&(On=n=n.return);continue}break}while(1)}function IU(){var e=Qy.current;return Qy.current=Xy,e===null?Xy:e}function Rk(){(jn===0||jn===3||jn===2)&&(jn=4),Hn===null||!(du&268435455)&&!(y_&268435455)||xs(Hn,ur)}function t0(e,t){var n=gt;gt|=2;var r=IU();(Hn!==e||ur!==t)&&(fa=null,Xl(e,t));do try{$K();break}catch(i){DU(e,i)}while(1);if(gk(),gt=n,Qy.current=r,On!==null)throw Error(Te(261));return Hn=null,ur=0,jn}function $K(){for(;On!==null;)FU(On)}function BK(){for(;On!==null&&!dq();)FU(On)}function FU(e){var t=BU(e.alternate,e,Jr);e.memoizedProps=e.pendingProps,t===null?UU(e):On=t,Pk.current=null}function UU(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=LK(n,t),n!==null){n.flags&=32767,On=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{jn=6,On=null;return}}else if(n=MK(n,t,Jr),n!==null){On=n;return}if(t=t.sibling,t!==null){On=t;return}On=t=e}while(t!==null);jn===0&&(jn=5)}function jl(e,t,n){var r=jt,i=Ni.transition;try{Ni.transition=null,jt=1,zK(e,t,n,r)}finally{Ni.transition=i,jt=r}return null}function zK(e,t,n,r){do Gc();while(Ss!==null);if(gt&6)throw Error(Te(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Te(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(xq(e,o),e===Hn&&(On=Hn=null,ur=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pg||(pg=!0,zU(Dy,function(){return Gc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ni.transition,Ni.transition=null;var a=jt;jt=1;var s=gt;gt|=4,Pk.current=null,DK(e,n),MU(n,e),lK(A1),Fy=!!P1,A1=P1=null,e.current=n,IK(n),pq(),gt=s,jt=a,Ni.transition=o}else e.current=n;if(pg&&(pg=!1,Ss=e,e0=i),o=e.pendingLanes,o===0&&(Is=null),vq(n.stateNode),Vr(e,mn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Jy)throw Jy=!1,e=X1,X1=null,e;return e0&1&&e.tag!==0&&Gc(),o=e.pendingLanes,o&1?e===Q1?zp++:(zp=0,Q1=e):zp=0,il(),null}function Gc(){if(Ss!==null){var e=yF(e0),t=Ni.transition,n=jt;try{if(Ni.transition=null,jt=16>e?16:e,Ss===null)var r=!1;else{if(e=Ss,Ss=null,e0=0,gt&6)throw Error(Te(331));var i=gt;for(gt|=4,$e=e.current;$e!==null;){var o=$e,a=o.child;if($e.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for($e=u;$e!==null;){var f=$e;switch(f.tag){case 0:case 11:case 15:$p(8,f,o)}var d=f.child;if(d!==null)d.return=f,$e=d;else for(;$e!==null;){f=$e;var p=f.sibling,m=f.return;if(PU(f),f===u){$e=null;break}if(p!==null){p.return=m,$e=p;break}$e=m}}}var v=o.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}$e=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,$e=a;else e:for(;$e!==null;){if(o=$e,o.flags&2048)switch(o.tag){case 0:case 11:case 15:$p(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,$e=y;break e}$e=o.return}}var _=e.current;for($e=_;$e!==null;){a=$e;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,$e=x;else e:for(a=_;$e!==null;){if(s=$e,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:g_(9,s)}}catch(E){un(s,s.return,E)}if(s===a){$e=null;break e}var O=s.sibling;if(O!==null){O.return=s.return,$e=O;break e}$e=s.return}}if(gt=i,il(),Bo&&typeof Bo.onPostCommitFiberRoot=="function")try{Bo.onPostCommitFiberRoot(u_,e)}catch{}r=!0}return r}finally{jt=n,Ni.transition=t}}return!1}function Y3(e,t,n){t=af(n,t),t=bU(e,t,1),e=Ds(e,t,1),t=Nr(),e!==null&&(Wm(e,1,t),Vr(e,t))}function un(e,t,n){if(e.tag===3)Y3(e,e,n);else for(;t!==null;){if(t.tag===3){Y3(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Is===null||!Is.has(r))){e=af(n,e),e=_U(t,e,1),t=Ds(t,e,1),e=Nr(),t!==null&&(Wm(t,1,e),Vr(t,e));break}}t=t.return}}function VK(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Nr(),e.pingedLanes|=e.suspendedLanes&n,Hn===e&&(ur&n)===n&&(jn===4||jn===3&&(ur&130023424)===ur&&500>mn()-Nk?Xl(e,0):Ak|=n),Vr(e,t)}function $U(e,t){t===0&&(e.mode&1?(t=rg,rg<<=1,!(rg&130023424)&&(rg=4194304)):t=1);var n=Nr();e=Pa(e,t),e!==null&&(Wm(e,t,n),Vr(e,n))}function HK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$U(e,n)}function WK(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),$U(e,n)}var BU;BU=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Br.current)Fr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fr=!1,NK(e,t,n);Fr=!!(e.flags&131072)}else Fr=!1,qt&&t.flags&1048576&&HF(t,Wy,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cy(e,t),e=t.pendingProps;var i=tf(t,yr.current);Yc(t,n),i=Ek(null,t,r,e,i,n);var o=Tk();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zr(r)?(o=!0,Vy(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_k(t),i.updater=m_,t.stateNode=i,i._reactInternals=t,$1(t,r,e,n),t=V1(null,t,r,!0,o,n)):(t.tag=0,qt&&o&&pk(t),Tr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cy(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=GK(r),e=no(r,e),i){case 0:t=z1(null,t,r,e,n);break e;case 1:t=D3(null,t,r,e,n);break e;case 11:t=L3(null,t,r,e,n);break e;case 14:t=R3(null,t,r,no(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:no(r,i),z1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:no(r,i),D3(e,t,r,i,n);case 3:e:{if(SU(t),e===null)throw Error(Te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,qF(e,t),qy(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=af(Error(Te(423)),t),t=I3(e,t,r,n,i);break e}else if(r!==i){i=af(Error(Te(424)),t),t=I3(e,t,r,n,i);break e}else for(ti=Rs(t.stateNode.containerInfo.firstChild),ri=t,qt=!0,ao=null,n=QF(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nf(),r===i){t=Aa(e,t,n);break e}Tr(e,t,r,n)}t=t.child}return t;case 5:return JF(t),e===null&&I1(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,N1(r,i)?a=null:o!==null&&N1(r,o)&&(t.flags|=32),OU(e,t),Tr(e,t,a,n),t.child;case 6:return e===null&&I1(t),null;case 13:return EU(e,t,n);case 4:return wk(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rf(t,null,r,n):Tr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:no(r,i),L3(e,t,r,i,n);case 7:return Tr(e,t,t.pendingProps,n),t.child;case 8:return Tr(e,t,t.pendingProps.children,n),t.child;case 12:return Tr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Dt(Yy,r._currentValue),r._currentValue=a,o!==null)if(bo(o.value,a)){if(o.children===i.children&&!Br.current){t=Aa(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Oa(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),F1(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Te(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),F1(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Tr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yc(t,n),i=Fi(i),r=r(i),t.flags|=1,Tr(e,t,r,n),t.child;case 14:return r=t.type,i=no(r,t.pendingProps),i=no(r.type,i),R3(e,t,r,i,n);case 15:return wU(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:no(r,i),cy(e,t),t.tag=1,zr(r)?(e=!0,Vy(t)):e=!1,Yc(t,n),ZF(t,r,i),$1(t,r,i,n),V1(null,t,r,!0,e,n);case 19:return TU(e,t,n);case 22:return xU(e,t,n)}throw Error(Te(156,t.tag))};function zU(e,t){return hF(e,t)}function YK(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pi(e,t,n,r){return new YK(e,t,n,r)}function Dk(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GK(e){if(typeof e=="function")return Dk(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tk)return 11;if(e===nk)return 14}return 2}function Us(e,t){var n=e.alternate;return n===null?(n=Pi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function py(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Dk(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yc:return Ql(n.children,i,o,t);case ek:a=8,i|=8;break;case c1:return e=Pi(12,n,t,i|2),e.elementType=c1,e.lanes=o,e;case f1:return e=Pi(13,n,t,i),e.elementType=f1,e.lanes=o,e;case d1:return e=Pi(19,n,t,i),e.elementType=d1,e.lanes=o,e;case X8:return b_(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K8:a=10;break e;case Z8:a=9;break e;case tk:a=11;break e;case nk:a=14;break e;case vs:a=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Pi(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ql(e,t,n,r){return e=Pi(7,e,r,t),e.lanes=n,e}function b_(e,t,n,r){return e=Pi(22,e,r,t),e.elementType=X8,e.lanes=n,e.stateNode={isHidden:!1},e}function Nx(e,t,n){return e=Pi(6,e,null,t),e.lanes=n,e}function Mx(e,t,n){return t=Pi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qK(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=px(0),this.expirationTimes=px(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=px(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ik(e,t,n,r,i,o,a,s,l){return e=new qK(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Pi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_k(o),e}function KK(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function VU(e){if(!e)return Ys;e=e._reactInternals;e:{if(ku(e)!==e||e.tag!==1)throw Error(Te(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Te(171))}if(e.tag===1){var n=e.type;if(zr(n))return zF(e,n,t)}return t}function HU(e,t,n,r,i,o,a,s,l){return e=Ik(n,r,!0,e,i,o,a,s,l),e.context=VU(null),n=e.current,r=Nr(),i=Fs(n),o=Oa(r,i),o.callback=t??null,Ds(n,o,i),e.current.lanes=i,Wm(e,i,r),Vr(e,r),e}function __(e,t,n,r){var i=t.current,o=Nr(),a=Fs(i);return n=VU(n),t.context===null?t.context=n:t.pendingContext=n,t=Oa(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ds(i,t,a),e!==null&&(vo(e,i,a,o),sy(e,i,a)),a}function n0(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function G3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fk(e,t){G3(e,t),(e=e.alternate)&&G3(e,t)}function ZK(){return null}var WU=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uk(e){this._internalRoot=e}w_.prototype.render=Uk.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Te(409));__(e,t,null,null)};w_.prototype.unmount=Uk.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pu(function(){__(null,e,null,null)}),t[ja]=null}};function w_(e){this._internalRoot=e}w_.prototype.unstable_scheduleHydration=function(e){if(e){var t=wF();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ws.length&&t!==0&&t<ws[n].priority;n++);ws.splice(n,0,e),n===0&&OF(e)}};function $k(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function q3(){}function XK(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=n0(a);o.call(u)}}var a=HU(t,r,e,0,null,!1,!1,"",q3);return e._reactRootContainer=a,e[ja]=a.current,wh(e.nodeType===8?e.parentNode:e),pu(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=n0(l);s.call(u)}}var l=Ik(e,0,!1,null,null,!1,!1,"",q3);return e._reactRootContainer=l,e[ja]=l.current,wh(e.nodeType===8?e.parentNode:e),pu(function(){__(t,l,n,r)}),l}function O_(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=n0(a);s.call(l)}}__(t,a,e,i)}else a=XK(n,t,e,i,r);return n0(a)}bF=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xp(t.pendingLanes);n!==0&&(ok(t,n|1),Vr(t,mn()),!(gt&6)&&(sf=mn()+500,il()))}break;case 13:pu(function(){var r=Pa(e,1);if(r!==null){var i=Nr();vo(r,e,1,i)}}),Fk(e,1)}};ak=function(e){if(e.tag===13){var t=Pa(e,134217728);if(t!==null){var n=Nr();vo(t,e,134217728,n)}Fk(e,134217728)}};_F=function(e){if(e.tag===13){var t=Fs(e),n=Pa(e,t);if(n!==null){var r=Nr();vo(n,e,t,r)}Fk(e,t)}};wF=function(){return jt};xF=function(e,t){var n=jt;try{return jt=e,t()}finally{jt=n}};x1=function(e,t,n){switch(t){case"input":if(m1(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=p_(r);if(!i)throw Error(Te(90));J8(r),m1(r,i)}}}break;case"textarea":tF(e,n);break;case"select":t=n.value,t!=null&&zc(e,!!n.multiple,t,!1)}};lF=Mk;uF=pu;var QK={usingClientEntryPoint:!1,Events:[Gm,xc,p_,aF,sF,Mk]},tp={findFiberByHostInstance:$l,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},JK={bundleType:tp.bundleType,version:tp.version,rendererPackageName:tp.rendererPackageName,rendererConfig:tp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ha.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dF(e),e===null?null:e.stateNode},findFiberByHostInstance:tp.findFiberByHostInstance||ZK,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hg.isDisabled&&hg.supportsFiber)try{u_=hg.inject(JK),Bo=hg}catch{}}hi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QK;hi.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$k(t))throw Error(Te(200));return KK(e,t,null,n)};hi.createRoot=function(e,t){if(!$k(e))throw Error(Te(299));var n=!1,r="",i=WU;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ik(e,1,!1,null,null,n,!1,r,i),e[ja]=t.current,wh(e.nodeType===8?e.parentNode:e),new Uk(t)};hi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Te(188)):(e=Object.keys(e).join(","),Error(Te(268,e)));return e=dF(t),e=e===null?null:e.stateNode,e};hi.flushSync=function(e){return pu(e)};hi.hydrate=function(e,t,n){if(!x_(t))throw Error(Te(200));return O_(null,e,t,!0,n)};hi.hydrateRoot=function(e,t,n){if(!$k(e))throw Error(Te(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=WU;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=HU(t,null,e,1,n??null,i,!1,o,a),e[ja]=t.current,wh(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new w_(t)};hi.render=function(e,t,n){if(!x_(t))throw Error(Te(200));return O_(null,e,t,!1,n)};hi.unmountComponentAtNode=function(e){if(!x_(e))throw Error(Te(40));return e._reactRootContainer?(pu(function(){O_(null,null,e,!1,function(){e._reactRootContainer=null,e[ja]=null})}),!0):!1};hi.unstable_batchedUpdates=Mk;hi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!x_(n))throw Error(Te(200));if(e==null||e._reactInternals===void 0)throw Error(Te(38));return O_(e,t,n,!1,r)};hi.version="18.2.0-next-9e3b772b8-20220608";function YU(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YU)}catch(e){console.error(e)}}YU(),H8.exports=hi;var ju=H8.exports;const Jl=Tu(ju);var GU,K3=ju;GU=K3.createRoot,K3.hydrateRoot;var eZ={};/**
* @license React
* use-sync-external-store-with-selector.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 Km=F;function tZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nZ=typeof Object.is=="function"?Object.is:tZ,rZ=Km.useSyncExternalStore,iZ=Km.useRef,oZ=Km.useEffect,aZ=Km.useMemo,sZ=Km.useDebugValue;eZ.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=iZ(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=aZ(function(){function l(m){if(!u){if(u=!0,f=m,m=r(m),i!==void 0&&a.hasValue){var v=a.value;if(i(v,m))return d=v}return d=m}if(v=d,nZ(f,m))return v;var g=r(m);return i!==void 0&&i(v,g)?v:(f=m,d=g)}var u=!1,f,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=rZ(e,o[0],o[1]);return oZ(function(){a.hasValue=!0,a.value=s},[s]),sZ(s),s};function lZ(e){e()}var qU=lZ,uZ=e=>qU=e,cZ=()=>qU,St="default"in l1?M:l1,Z3=Symbol.for("react-redux-context"),X3=typeof globalThis<"u"?globalThis:{};function fZ(){if(!St.createContext)return{};const e=X3[Z3]??(X3[Z3]=new Map);let t=e.get(St.createContext);return t||(t=St.createContext(null),e.set(St.createContext,t)),t}var KU=fZ(),dZ=()=>{throw new Error("uSES not initialized!")},pZ=Symbol.for("react.element"),hZ=Symbol.for("react.portal"),mZ=Symbol.for("react.fragment"),vZ=Symbol.for("react.strict_mode"),gZ=Symbol.for("react.profiler"),yZ=Symbol.for("react.provider"),bZ=Symbol.for("react.context"),_Z=Symbol.for("react.server_context"),ZU=Symbol.for("react.forward_ref"),wZ=Symbol.for("react.suspense"),xZ=Symbol.for("react.suspense_list"),Bk=Symbol.for("react.memo"),OZ=Symbol.for("react.lazy"),SZ=ZU,EZ=Bk;function TZ(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case pZ:{const n=e.type;switch(n){case mZ:case gZ:case vZ:case wZ:case xZ:return n;default:{const r=n&&n.$$typeof;switch(r){case _Z:case bZ:case ZU:case OZ:case Bk:case yZ:return r;default:return t}}}}case hZ:return t}}}function CZ(e){return TZ(e)===Bk}function kZ(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,u,f,d,p;function m(_,x){return l=_,u=x,f=e(l,u),d=t(r,u),p=n(f,d,u),s=!0,p}function v(){return f=e(l,u),t.dependsOnOwnProps&&(d=t(r,u)),p=n(f,d,u),p}function g(){return e.dependsOnOwnProps&&(f=e(l,u)),t.dependsOnOwnProps&&(d=t(r,u)),p=n(f,d,u),p}function w(){const _=e(l,u),x=!a(_,f);return f=_,x&&(p=n(f,d,u)),p}function y(_,x){const O=!o(x,u),E=!i(_,l,x,u);return l=_,u=x,O&&E?v():O?g():E?w():p}return function(x,O){return s?y(x,O):m(x,O)}}function jZ(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return kZ(o,a,s,e,i)}function PZ(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function tS(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Q3(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function XU(e,t){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=Q3(e);let u=o(s,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=Q3(u),u=o(s,l)),u},o}}function zk(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function AZ(e){return e&&typeof e=="object"?tS(t=>PZ(e,t)):e?typeof e=="function"?XU(e):zk(e,"mapDispatchToProps"):tS(t=>({dispatch:t}))}function NZ(e){return e?typeof e=="function"?XU(e):zk(e,"mapStateToProps"):tS(()=>({}))}function MZ(e,t,n){return{...n,...e,...t}}function LZ(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,u,f){const d=e(l,u,f);return o?i(d,a)||(a=d):(o=!0,a=d),a}}}function RZ(e){return e?typeof e=="function"?LZ(e):zk(e,"mergeProps"):()=>MZ}function DZ(){const e=cZ();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var J3={notify(){},get:()=>[]};function QU(e,t){let n,r=J3,i=0,o=!1;function a(g){f();const w=r.subscribe(g);let y=!1;return()=>{y||(y=!0,w(),d())}}function s(){r.notify()}function l(){v.onStateChange&&v.onStateChange()}function u(){return o}function f(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=DZ())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=J3)}function p(){o||(o=!0,f())}function m(){o&&(o=!1,d())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:m,getListeners:()=>r};return v}var IZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r0=IZ?St.useLayoutEffect:St.useEffect;function eM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Lx(e,t){if(eM(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])||!eM(e[n[i]],t[n[i]]))return!1;return!0}var FZ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},UZ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$Z={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},JU={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},BZ={[SZ]:$Z,[EZ]:JU};function tM(e){return CZ(e)?JU:BZ[e.$$typeof]||FZ}var zZ=Object.defineProperty,VZ=Object.getOwnPropertyNames,nM=Object.getOwnPropertySymbols,HZ=Object.getOwnPropertyDescriptor,WZ=Object.getPrototypeOf,rM=Object.prototype;function nS(e,t){if(typeof t!="string"){if(rM){const o=WZ(t);o&&o!==rM&&nS(e,o)}let n=VZ(t);nM&&(n=n.concat(nM(t)));const r=tM(e),i=tM(t);for(let o=0;o<n.length;++o){const a=n[o];if(!UZ[a]&&!(i&&i[a])&&!(r&&r[a])){const s=HZ(t,a);try{zZ(e,a,s)}catch{}}}}return e}var e$=dZ,YZ=e=>{e$=e},GZ=[null,null];function qZ(e,t,n){r0(()=>e(...t),n)}function KZ(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function ZZ(e,t,n,r,i,o,a,s,l,u,f){if(!e)return()=>{};let d=!1,p=null;const m=()=>{if(d||!s.current)return;const g=t.getState();let w,y;try{w=r(g,i.current)}catch(_){y=_,p=_}y||(p=null),w===o.current?a.current||u():(o.current=w,l.current=w,a.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function XZ(e,t){return e===t}function QZ(e,t,n,{pure:r,areStatesEqual:i=XZ,areOwnPropsEqual:o=Lx,areStatePropsEqual:a=Lx,areMergedPropsEqual:s=Lx,forwardRef:l=!1,context:u=KU}={}){const f=u,d=NZ(e),p=AZ(t),m=RZ(n),v=!!e;return w=>{const y=w.displayName||w.name||"Component",_=`Connect(${y})`,x={shouldHandleStateChanges:v,displayName:_,wrappedComponentName:y,WrappedComponent:w,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function O(k){const[A,D,R]=St.useMemo(()=>{const{reactReduxForwardedRef:K,...le}=k;return[k.context,K,le]},[k]),I=St.useMemo(()=>{let K=f;return A!=null&&A.Consumer,K},[A,f]),z=St.useContext(I),G=!!k.store&&!!k.store.getState&&!!k.store.dispatch,H=!!z&&!!z.store,Q=G?k.store:z.store,Z=H?z.getServerState:Q.getState,te=St.useMemo(()=>jZ(Q.dispatch,x),[Q]),[X,$]=St.useMemo(()=>{if(!v)return GZ;const K=QU(Q,G?void 0:z.subscription),le=K.notifyNestedSubs.bind(K);return[K,le]},[Q,G,z]),V=St.useMemo(()=>G?z:{...z,subscription:X},[G,z,X]),W=St.useRef(),re=St.useRef(R),q=St.useRef(),ee=St.useRef(!1);St.useRef(!1);const ie=St.useRef(!1),se=St.useRef();r0(()=>(ie.current=!0,()=>{ie.current=!1}),[]);const fe=St.useMemo(()=>()=>q.current&&R===re.current?q.current:te(Q.getState(),R),[Q,R]),j=St.useMemo(()=>le=>X?ZZ(v,Q,X,te,re,W,ee,ie,q,$,le):()=>{},[X]);qZ(KZ,[re,W,ee,R,q,$]);let P;try{P=e$(j,fe,Z?()=>te(Z(),R):fe)}catch(K){throw se.current&&(K.message+=`
The error may be correlated with this previous error:
${se.current.stack}
`),K}r0(()=>{se.current=void 0,q.current=void 0,W.current=P});const B=St.useMemo(()=>St.createElement(w,{...P,ref:D}),[D,w,P]);return St.useMemo(()=>v?St.createElement(I.Provider,{value:V},B):B,[I,B,V])}const T=St.memo(O);if(T.WrappedComponent=w,T.displayName=O.displayName=_,l){const A=St.forwardRef(function(R,I){return St.createElement(T,{...R,reactReduxForwardedRef:I})});return A.displayName=_,A.WrappedComponent=w,nS(A,w)}return nS(T,w)}}var t$=QZ;function JZ({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=St.useMemo(()=>{const u=QU(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=St.useMemo(()=>e.getState(),[e]);r0(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||KU;return St.createElement(l.Provider,{value:a},n)}var n$=JZ;YZ(F.useSyncExternalStore);uZ(ju.unstable_batchedUpdates);/**
* @remix-run/router v1.13.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
*/function Ph(){return Ph=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},Ph.apply(this,arguments)}var Es;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Es||(Es={}));const iM="popstate";function eX(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return rS("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:i0(i)}return nX(t,n,null,e)}function rn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vk(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tX(){return Math.random().toString(36).substr(2,8)}function oM(e,t){return{usr:e.state,key:e.key,idx:t}}function rS(e,t,n,r){return n===void 0&&(n=null),Ph({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?od(t):t,{state:n,key:t&&t.key||r||tX()})}function i0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function od(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nX(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Es.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(Ph({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Es.Pop;let w=f(),y=w==null?null:w-u;u=w,l&&l({action:s,location:g.location,delta:y})}function p(w,y){s=Es.Push;let _=rS(g.location,w,y);n&&n(_,w),u=f()+1;let x=oM(_,u),O=g.createHref(_);try{a.pushState(x,"",O)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(O)}o&&l&&l({action:s,location:g.location,delta:1})}function m(w,y){s=Es.Replace;let _=rS(g.location,w,y);n&&n(_,w),u=f();let x=oM(_,u),O=g.createHref(_);a.replaceState(x,"",O),o&&l&&l({action:s,location:g.location,delta:0})}function v(w){let y=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof w=="string"?w:i0(w);return rn(y,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,y)}let g={get action(){return s},get location(){return e(i,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(iM,d),l=w,()=>{i.removeEventListener(iM,d),l=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let y=v(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:m,go(w){return a.go(w)}};return g}var aM;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(aM||(aM={}));function rX(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?od(t):t,i=Ah(r.pathname||"/",n);if(i==null)return null;let o=r$(e);iX(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=pX(o[s],mX(i));return a}function r$(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(rn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=$s([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(rn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),r$(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:fX(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of i$(o.path))i(o,a,l)}),t}function i$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=i$(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function iX(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dX(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oX=/^:\w+$/,aX=3,sX=2,lX=1,uX=10,cX=-2,sM=e=>e==="*";function fX(e,t){let n=e.split("/"),r=n.length;return n.some(sM)&&(r+=cX),t&&(r+=sX),n.filter(i=>!sM(i)).reduce((i,o)=>i+(oX.test(o)?aX:o===""?lX:uX),r)}function dX(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 pX(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",f=iS({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!f)return null;Object.assign(r,f.params);let d=s.route;o.push({params:r,pathname:$s([i,f.pathname]),pathnameBase:bX($s([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=$s([i,f.pathnameBase]))}return o}function iS(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hX(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,f,d)=>{let{paramName:p,isOptional:m}=f;if(p==="*"){let g=s[d]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const v=s[d];return m&&!v?u[p]=void 0:u[p]=vX(v||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function hX(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vk(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,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function mX(e){try{return decodeURI(e)}catch(t){return Vk(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function vX(e,t){try{return decodeURIComponent(e)}catch(n){return Vk(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Ah(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 gX(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?od(e):e;return{pathname:n?n.startsWith("/")?n:yX(n,t):t,search:_X(r),hash:wX(i)}}function yX(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 Rx(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 Hk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Wk(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=od(e):(i=Ph({},e),rn(!i.pathname||!i.pathname.includes("?"),Rx("?","pathname","search",i)),rn(!i.pathname||!i.pathname.includes("#"),Rx("#","pathname","hash",i)),rn(!i.search||!i.search.includes("#"),Rx("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else if(r){let d=t[t.length-1].replace(/^\//,"").split("/");if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d.pop();i.pathname=p.join("/")}s="/"+d.join("/")}else{let d=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=gX(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const $s=e=>e.join("/").replace(/\/\/+/g,"/"),bX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_X=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wX=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xX(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o$=["post","put","patch","delete"];new Set(o$);const OX=["get",...o$];new Set(OX);/**
* React Router v6.20.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
*/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)}const S_=F.createContext(null),a$=F.createContext(null),Pu=F.createContext(null),E_=F.createContext(null),Wa=F.createContext({outlet:null,matches:[],isDataRoute:!1}),s$=F.createContext(null);function SX(e,t){let{relative:n}=t===void 0?{}:t;Au()||rn(!1);let{basename:r,navigator:i}=F.useContext(Pu),{hash:o,pathname:a,search:s}=T_(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:$s([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Au(){return F.useContext(E_)!=null}function Nn(){return Au()||rn(!1),F.useContext(E_).location}function l$(e){F.useContext(Pu).static||F.useLayoutEffect(e)}function ta(){let{isDataRoute:e}=F.useContext(Wa);return e?IX():EX()}function EX(){Au()||rn(!1);let e=F.useContext(S_),{basename:t,navigator:n}=F.useContext(Pu),{matches:r}=F.useContext(Wa),{pathname:i}=Nn(),o=JSON.stringify(Hk(r).map(l=>l.pathnameBase)),a=F.useRef(!1);return l$(()=>{a.current=!0}),F.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let f=Wk(l,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$s([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,o,i,e])}function ad(){let{matches:e}=F.useContext(Wa),t=e[e.length-1];return t?t.params:{}}function T_(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=F.useContext(Wa),{pathname:i}=Nn(),o=JSON.stringify(Hk(r).map(a=>a.pathnameBase));return F.useMemo(()=>Wk(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function TX(e,t){return CX(e,t)}function CX(e,t,n){Au()||rn(!1);let{navigator:r}=F.useContext(Pu),{matches:i}=F.useContext(Wa),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=Nn(),u;if(t){var f;let g=typeof t=="string"?od(t):t;s==="/"||(f=g.pathname)!=null&&f.startsWith(s)||rn(!1),u=g}else u=l;let d=u.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",m=rX(e,{pathname:p}),v=NX(m&&m.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:$s([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:$s([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n);return t&&v?F.createElement(E_.Provider,{value:{location:o0({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Es.Pop}},v):v}function kX(){let e=DX(),t=xX(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},t),n?F.createElement("pre",{style:i},n):null,o)}const jX=F.createElement(kX,null);class PX extends F.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?F.createElement(Wa.Provider,{value:this.props.routeContext},F.createElement(s$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function AX(e){let{routeContext:t,match:n,children:r}=e,i=F.useContext(S_);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),F.createElement(Wa.Provider,{value:t},r)}function NX(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=o.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||rn(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,l,u)=>{let f=l.route.id?a==null?void 0:a[l.route.id]:null,d=null;n&&(d=l.route.errorElement||jX);let p=t.concat(o.slice(0,u+1)),m=()=>{let v;return f?v=d:l.route.Component?v=F.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,F.createElement(AX,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?F.createElement(PX,{location:n.location,revalidation:n.revalidation,component:d,error:f,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var u$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(u$||{}),a0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(a0||{});function MX(e){let t=F.useContext(S_);return t||rn(!1),t}function LX(e){let t=F.useContext(a$);return t||rn(!1),t}function RX(e){let t=F.useContext(Wa);return t||rn(!1),t}function c$(e){let t=RX(),n=t.matches[t.matches.length-1];return n.route.id||rn(!1),n.route.id}function DX(){var e;let t=F.useContext(s$),n=LX(a0.UseRouteError),r=c$(a0.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function IX(){let{router:e}=MX(u$.UseNavigateStable),t=c$(a0.UseNavigateStable),n=F.useRef(!1);return l$(()=>{n.current=!0}),F.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,o0({fromRouteId:t},o)))},[e,t])}function Yk(e){let{to:t,replace:n,state:r,relative:i}=e;Au()||rn(!1);let{matches:o}=F.useContext(Wa),{pathname:a}=Nn(),s=ta(),l=Wk(t,Hk(o).map(f=>f.pathnameBase),a,i==="path"),u=JSON.stringify(l);return F.useEffect(()=>s(JSON.parse(u),{replace:n,state:r,relative:i}),[s,u,i,n,r]),null}function Et(e){rn(!1)}function FX(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Es.Pop,navigator:o,static:a=!1}=e;Au()&&rn(!1);let s=t.replace(/^\/*/,"/"),l=F.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=od(r));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:m="default"}=r,v=F.useMemo(()=>{let g=Ah(u,s);return g==null?null:{location:{pathname:g,search:f,hash:d,state:p,key:m},navigationType:i}},[s,u,f,d,p,m,i]);return v==null?null:F.createElement(Pu.Provider,{value:l},F.createElement(E_.Provider,{children:n,value:v}))}function C_(e){let{children:t,location:n}=e;return TX(oS(t),n)}new Promise(()=>{});function oS(e,t){t===void 0&&(t=[]);let n=[];return F.Children.forEach(e,(r,i)=>{if(!F.isValidElement(r))return;let o=[...t,i];if(r.type===F.Fragment){n.push.apply(n,oS(r.props.children,o));return}r.type!==Et&&rn(!1),!r.props.index||!r.props.children||rn(!1);let a={id:r.props.id||o.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,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=oS(r.props.children,o)),n.push(a)}),n}/**
* React Router DOM v6.20.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
*/function s0(){return s0=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},s0.apply(this,arguments)}function f$(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function UX(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $X(e,t){return e.button===0&&(!t||t==="_self")&&!UX(e)}const BX=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],zX=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],VX=F.createContext({isTransitioning:!1}),HX="startTransition",lM=l1[HX];function d$(e){let{basename:t,children:n,future:r,window:i}=e,o=F.useRef();o.current==null&&(o.current=eX({window:i,v5Compat:!0}));let a=o.current,[s,l]=F.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=F.useCallback(d=>{u&&lM?lM(()=>l(d)):l(d)},[l,u]);return F.useLayoutEffect(()=>a.listen(f),[a,f]),F.createElement(FX,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}const WX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",YX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yt=F.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f,unstable_viewTransition:d}=t,p=f$(t,BX),{basename:m}=F.useContext(Pu),v,g=!1;if(typeof u=="string"&&YX.test(u)&&(v=u,WX))try{let x=new URL(window.location.href),O=u.startsWith("//")?new URL(x.protocol+u):new URL(u),E=Ah(O.pathname,m);O.origin===x.origin&&E!=null?u=E+O.search+O.hash:g=!0}catch{}let w=SX(u,{relative:i}),y=qX(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:d});function _(x){r&&r(x),x.defaultPrevented||y(x)}return F.createElement("a",s0({},p,{href:v||w,onClick:g||o?r:_,ref:n,target:l}))}),p$=F.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:f}=t,d=f$(t,zX),p=T_(l,{relative:d.relative}),m=Nn(),v=F.useContext(a$),{navigator:g}=F.useContext(Pu),w=v!=null&&KX(p)&&u===!0,y=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,_=m.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(_=_.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase());const O=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let E=_===y||!a&&_.startsWith(y)&&_.charAt(O)==="/",T=x!=null&&(x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/"),k={isActive:E,isPending:T,isTransitioning:w},A=E?r:void 0,D;typeof o=="function"?D=o(k):D=[o,E?"active":null,T?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let R=typeof s=="function"?s(k):s;return F.createElement(Yt,s0({},d,{"aria-current":A,className:D,ref:n,style:R,to:l,unstable_viewTransition:u}),typeof f=="function"?f(k):f)});var aS;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(aS||(aS={}));var uM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(uM||(uM={}));function GX(e){let t=F.useContext(S_);return t||rn(!1),t}function qX(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=ta(),u=Nn(),f=T_(e,{relative:a});return F.useCallback(d=>{if($X(d,n)){d.preventDefault();let p=r!==void 0?r:i0(u)===i0(f);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,f,r,i,n,e,o,a,s])}function KX(e,t){t===void 0&&(t={});let n=F.useContext(VX);n==null&&rn(!1);let{basename:r}=GX(aS.useViewTransitionState),i=T_(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Ah(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Ah(n.nextLocation.pathname,r)||n.nextLocation.pathname;return iS(i.pathname,a)!=null||iS(i.pathname,o)!=null}const ZX="shlink-web-client",XX="A React-based progressive web application for shlink",QX="/shlink-web-client/dependabot/npm_and_yarn/vite-plugin-pwa-0.17.4",JX="https://github.com/shlinkio/shlink-web-client",eQ="MIT",tQ={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},nQ={"@fortawesome/fontawesome-free":"^6.5.1","@fortawesome/fontawesome-svg-core":"^6.5.1","@fortawesome/free-brands-svg-icons":"^6.5.1","@fortawesome/free-regular-svg-icons":"^6.5.1","@fortawesome/free-solid-svg-icons":"^6.5.1","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^7.0.3","@reduxjs/toolkit":"^2.0.1","@shlinkio/data-manipulation":"^1.0.2","@shlinkio/shlink-frontend-kit":"^0.4.0","@shlinkio/shlink-js-sdk":"^0.2.0","@shlinkio/shlink-web-component":"^0.4.1",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.0.0","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^2.30.0",react:"^18.2.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-redux":"^9.0.2","react-router-dom":"^6.20.1",reactstrap:"^9.2.1","redux-localstorage-simple":"^2.5.1",uuid:"^9.0.1","workbox-core":"^7.0.0","workbox-expiration":"^7.0.0","workbox-precaching":"^7.0.0","workbox-routing":"^7.0.0","workbox-strategies":"^7.0.0"},rQ={"@shlinkio/eslint-config-js-coding-standard":"~2.3.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.1.2","@testing-library/user-event":"^14.5.1","@total-typescript/shoehorn":"^0.1.1","@types/react":"^18.2.40","@types/react-dom":"^18.2.17","@types/uuid":"^9.0.7","@vitejs/plugin-react":"^4.2.0","@vitest/coverage-v8":"^1.0.4","adm-zip":"^0.5.10","axe-core":"^4.8.2",chalk:"^5.3.0",eslint:"^8.54.0",history:"^5.3.0",jsdom:"^23.0.1",sass:"^1.69.5",stylelint:"^15.11.0",typescript:"^5.3.3",vite:"^5.0.5","vite-plugin-pwa":"^0.17.4",vitest:"^1.0.4"},iQ=[">0.2%","not dead","not ie <= 11","not op_mini all"],l0={name:ZX,description:XX,private:!1,homepage:QX,repository:JX,license:eQ,scripts:tQ,dependencies:nQ,devDependencies:rQ,browserslist:iQ};var _o,Zo=".",h$="function",m$="string",v$="__global__",Gk="Provider",oQ=0,qk=Array.prototype.slice,aQ=function(t,n){var r=t[n];if(r===void 0&&_o.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},k_=function(t){var n;return this.nested[t]||(n=_o.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},g$=function(t){return t.split(Zo).reduce(aQ,this)},sQ=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,l=function(f){if(f)throw f;t[s]&&t[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},lQ=function(t,n){var r,i;return typeof t===h$&&(n=t,t=v$),r=t.split(Zo),i=r.shift(),r.length?k_.call(this,i).middleware(r.join(Zo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},uQ=function(t,n){return n(t)},cM=function(t,n){return(t[n]||[]).concat(t.__global__||[])},cQ=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+Gk,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var u=new n;return delete o[r],o[r]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=o[r],f;return u&&(f=cM(a,t).reduce(uQ,u.$get(o)),delete o[r],delete o[t]),f===void 0?f:sQ(cM(s,t),t,f,o)}},Object.defineProperties(o,i),this},y$=function(t,n){var r,i;return r=t.split(Zo),this.providerMap[t]&&r.length===1&&!this.container[t+Gk]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(k_.call(this,i).provider(r.join(Zo),n),this):cQ.call(this,i,n))},Kk=function(t,n){return y$.call(this,t,function(){this.$get=n})},b$=function(t,n,r){var i=arguments.length>3?qk.call(arguments,3):[],o=this;return Kk.call(this,t,function(){var s=n,l=i.map(g$,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},fQ=function(t,n){return b$.apply(this,[t,n,!0].concat(qk.call(arguments,2)))},dQ=function(t,n){return b$.apply(this,[t,n,!1].concat(qk.call(arguments,2)))},_$=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},w$=function(t,n){var r=t[n];return r||(r={},_$.call(t,n,r)),r},pQ=function(t,n){var r;return r=t.split(Zo),t=r.pop(),_$.call(r.reduce(w$,this.container),t,n),this},hQ=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},mQ=function(t,n){var r=t.split(Zo);return t=r.pop(),hQ.call(r.reduce(w$,this.container),t,n),this},x$=function(t,n){var r,i;return typeof t===h$&&(n=t,t=v$),r=t.split(Zo),i=r.shift(),r.length?k_.call(this,i).decorator(r.join(Zo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},vQ=function(t){return this.deferred.push(t),this},gQ=function(t){return(t||[]).map(g$,this.container)},yQ=function(t,n){return Kk.call(this,t,function(i){return{instance:n.bind(n,i)}})},bQ=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},Zk=function(t){return Object.keys(t||this.container||{}).filter(bQ)},u0={},_Q=function(t){var n;return typeof t===m$?(n=u0[t],n||(u0[t]=n=new _o,n.constant("BOTTLE_NAME",t)),n):new _o},wQ=function(t){typeof t===m$?delete u0[t]:u0={}},O$=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},fM=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+Gk]},xQ=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(Zo);a.length>1&&a.forEach(fM,k_.call(this,a[0])),fM.call(this,o),this.provider(o,n[o])}},this)},OQ=function(t){return this.deferred.forEach(function(r){r(t)}),this};_o=function e(t){if(!(this instanceof e))return e.pop(t);this.id=oQ++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:x$.bind(this),$register:O$.bind(this),$list:Zk.bind(this)}};_o.prototype={constant:mQ,decorator:x$,defer:vQ,digest:gQ,factory:Kk,instanceFactory:yQ,list:Zk,middleware:lQ,provider:y$,resetProviders:xQ,register:O$,resolve:OQ,service:fQ,serviceFactory:dQ,value:pQ};_o.pop=_Q;_o.clear=wQ;_o.list=Zk;_o.config={strict:!1};const SQ=_o;var S$=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(S$||{}),E$=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(E$||{}),EQ=Object.defineProperty,TQ=(e,t,n)=>t in e?EQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CQ=(e,t,n)=>(TQ(e,typeof t!="symbol"?t+"":t,n),n);const kQ=(e,t)=>`${e}/rest/v${t}`,jQ=e=>e.dir?`${e.field}-${e.dir}`:void 0,PQ=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:jQ(e)}),AQ=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===S$.NOT_FOUND||e.type===E$.NOT_FOUND)&&e.status===404,NQ=(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("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},MQ=(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()};class LQ{constructor(t,n){CQ(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:PQ(t)}).then(({shortUrls:n})=>n)}async createShortUrl(t){const n=Object.entries(t).reduce((r,[i,o])=>(o&&(r[i]=o),r),{});return this.performRequest({url:"/short-urls",method:"POST",body:n})}async getShortUrlVisits(t,n){return this.performRequest({url:`/short-urls/${t}/visits`,query:n}).then(({visits:r})=>r)}async deleteShortUrlVisits(t,n){const r=n?{domain:n}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:r})}async getTagVisits(t,n){return this.performRequest({url:`/tags/${t}/visits`,query:n}).then(({visits:r})=>r)}async getDomainVisits(t,n){return this.performRequest({url:`/domains/${t}/visits`,query:n}).then(({visits:r})=>r)}async getOrphanVisits(t){return this.performRequest({url:"/visits/orphan",query:t}).then(({visits:n})=>n)}async deleteOrphanVisits(){return this.performRequest({method:"DELETE",url:"/visits/orphan"})}async getNonOrphanVisits(t){return this.performRequest({url:"/visits/non-orphan",query:t}).then(({visits:n})=>n)}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrl(t,n){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n}})}async deleteShortUrl(t,n){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}})}async updateShortUrl(t,n,r){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r})}async listTags(){return this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t).then(({data:t,stats:n=[]})=>({tags:t,stats:n}))}async tagsStats(){return this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t}))}async deleteTags(t){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t}))}async editTag(t,n){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n}))}async health(t){return this.performRequest({url:"/health",domain:t})}async mercureInfo(){return this.performRequest({url:"/mercure-info"})}async listDomains(){return this.performRequest({url:"/domains"}).then(({domains:t})=>t)}async editDomainRedirects(t){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.jsonRequest(...this.toFetchParams(t))))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.emptyRequest(...this.toFetchParams(t))))}toFetchParams({url:t,method:n="GET",query:r={},body:i,domain:o}){const a=MQ(r),s=a?`?${a}`:"",l=o?NQ(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${kQ(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}handleFetchError(t){return n=>{if(!AQ(n))throw n;return this.apiVersion=2,t()}}}const T$=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Vp=e=>!!(e!=null&&e.id),C$=e=>!!(e!=null&&e.version),RQ=e=>!!(e!=null&&e.serverNotFound),DQ=e=>Vp(e)?e.id:"",IQ=({id:e,autoConnect:t,...n})=>n,dM={},FQ=e=>typeof e=="function",UQ=e=>{const{selectedServer:t}=e();if(!T$(t))throw new Error("There's no selected server or it is not found");return t},$Q=e=>t=>{const{url:n,apiKey:r}=FQ(t)?UQ(t):t,i=`${r}_${n}`,o=dM[i]??new LQ(e,{apiKey:r,baseUrl:n});return dM[i]=o,o},BQ=e=>{e.serviceFactory("buildShlinkApiClient",$Q,"HttpClient")};var zQ={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},VQ=zQ,HQ={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 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Xk=HQ,WQ={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM200 352h16c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-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.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.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 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-8.8 7.2-16 16-16s16 7.2 16 16v31.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.6V368c0-8.8 7.2-16 16-16z"]},YQ={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.1v32c0 8.8 7.2 16 16 16h32zM362.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"]},GQ=YQ,k$={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"]},qQ={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},j$={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},KQ={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"]},ZQ=KQ,XQ={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 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},Qk=XQ,QQ={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},JQ={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.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 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.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.6H344.3c-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 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},eJ={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"]},pM={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 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 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 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"]},tJ={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-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-31V408z"]},nJ=tJ,rJ={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 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.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"]},sS=rJ,iJ={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.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},oJ={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.3H344c-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"]},aJ={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.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.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-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},sJ=aJ,Jk={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.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 288H558.4z"]},P$={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.5V80C0 53.5 21.5 32 48 32H197.5c17 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"]},hM={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 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"]},lJ={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},A$={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"]},uJ={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.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},cJ=uJ,fJ={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.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.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},dJ={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 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-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"]},ej=dJ,pJ={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.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"]},hJ=pJ,mJ={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"]},vJ={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"]},gJ=vJ,yJ={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.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-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"]},bJ=yJ,_J={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.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},wJ=_J,xJ={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-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 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},N$=xJ,OJ={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"]},SJ={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"]},EJ={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"]},TJ=EJ,CJ={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"]},tj={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},kJ={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"]},lS=kJ,jJ={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"]},PJ={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},AJ=PJ,mM={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 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 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},M$={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 8h-.7c-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"]},NJ=M$,MJ={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 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"]},LJ={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"]},RJ={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 162zM116.6 187.9L60.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.9zM220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3L220.9 270z"]},DJ={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},Nh={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"]};function vM(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vM(Object(n),!0).forEach(function(r){An(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c0(e){"@babel/helpers - typeof";return c0=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},c0(e)}function IJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gM(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 FJ(e,t,n){return t&&gM(e.prototype,t),n&&gM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nj(e,t){return $J(e)||zJ(e,t)||L$(e,t)||HJ()}function Zm(e){return UJ(e)||BJ(e)||L$(e)||VJ()}function UJ(e){if(Array.isArray(e))return uS(e)}function $J(e){if(Array.isArray(e))return e}function BJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function L$(e,t){if(e){if(typeof e=="string")return uS(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 uS(e,t)}}function uS(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 VJ(){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 HJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yM=function(){},rj={},R$={},D$=null,I$={mark:yM,measure:yM};try{typeof window<"u"&&(rj=window),typeof document<"u"&&(R$=document),typeof MutationObserver<"u"&&(D$=MutationObserver),typeof performance<"u"&&(I$=performance)}catch{}var WJ=rj.navigator||{},bM=WJ.userAgent,_M=bM===void 0?"":bM,Gs=rj,Wt=R$,wM=D$,mg=I$;Gs.document;var Ya=!!Wt.documentElement&&!!Wt.head&&typeof Wt.addEventListener=="function"&&typeof Wt.createElement=="function",F$=~_M.indexOf("MSIE")||~_M.indexOf("Trident/"),vg,gg,yg,bg,_g,Na="___FONT_AWESOME___",cS=16,U$="fa",$$="svg-inline--fa",hu="data-fa-i2svg",fS="data-fa-pseudo-element",YJ="data-fa-pseudo-element-pending",ij="data-prefix",oj="data-icon",xM="fontawesome-i2svg",GJ="async",qJ=["HTML","HEAD","STYLE","SCRIPT"],B$=function(){try{return!0}catch{return!1}}(),zt="classic",cn="sharp",aj=[zt,cn];function Xm(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[zt]}})}var Mh=Xm((vg={},An(vg,zt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),An(vg,cn,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),vg)),Lh=Xm((gg={},An(gg,zt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),An(gg,cn,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),gg)),Rh=Xm((yg={},An(yg,zt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),An(yg,cn,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),yg)),KJ=Xm((bg={},An(bg,zt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),An(bg,cn,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),bg)),ZJ=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,z$="fa-layers-text",XJ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,QJ=Xm((_g={},An(_g,zt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),An(_g,cn,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),_g)),V$=[1,2,3,4,5,6,7,8,9,10],JJ=V$.concat([11,12,13,14,15,16,17,18,19,20]),eee=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Vl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Dh=new Set;Object.keys(Lh[zt]).map(Dh.add.bind(Dh));Object.keys(Lh[cn]).map(Dh.add.bind(Dh));var tee=[].concat(aj,Zm(Dh),["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",Vl.GROUP,Vl.SWAP_OPACITY,Vl.PRIMARY,Vl.SECONDARY]).concat(V$.map(function(e){return"".concat(e,"x")})).concat(JJ.map(function(e){return"w-".concat(e)})),Hp=Gs.FontAwesomeConfig||{};function nee(e){var t=Wt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function ree(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Wt&&typeof Wt.querySelector=="function"){var iee=[["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"]];iee.forEach(function(e){var t=nj(e,2),n=t[0],r=t[1],i=ree(nee(n));i!=null&&(Hp[r]=i)})}var H$={styleDefault:"solid",familyDefault:"classic",cssPrefix:U$,replacementClass:$$,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Hp.familyPrefix&&(Hp.cssPrefix=Hp.familyPrefix);var lf=Fe(Fe({},H$),Hp);lf.autoReplaceSvg||(lf.observeMutations=!1);var He={};Object.keys(H$).forEach(function(e){Object.defineProperty(He,e,{enumerable:!0,set:function(n){lf[e]=n,Wp.forEach(function(r){return r(He)})},get:function(){return lf[e]}})});Object.defineProperty(He,"familyPrefix",{enumerable:!0,set:function(t){lf.cssPrefix=t,Wp.forEach(function(n){return n(He)})},get:function(){return lf.cssPrefix}});Gs.FontAwesomeConfig=He;var Wp=[];function oee(e){return Wp.push(e),function(){Wp.splice(Wp.indexOf(e),1)}}var os=cS,Fo={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function aee(e){if(!(!e||!Ya)){var t=Wt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Wt.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Wt.head.insertBefore(t,r),e}}var see="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ih(){for(var e=12,t="";e-- >0;)t+=see[Math.random()*62|0];return t}function sd(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function sj(e){return e.classList?sd(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function W$(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function lee(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(W$(e[n]),'" ')},"").trim()}function j_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function lj(e){return e.size!==Fo.size||e.x!==Fo.x||e.y!==Fo.y||e.rotate!==Fo.rotate||e.flipX||e.flipY}function uee(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function cee(e){var t=e.transform,n=e.width,r=n===void 0?cS:n,i=e.height,o=i===void 0?cS:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&F$?l+="translate(".concat(t.x/os-r/2,"em, ").concat(t.y/os-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/os,"em), calc(-50% + ").concat(t.y/os,"em)) "):l+="translate(".concat(t.x/os,"em, ").concat(t.y/os,"em) "),l+="scale(".concat(t.size/os*(t.flipX?-1:1),", ").concat(t.size/os*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var fee=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--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-brands: normal 400 1em/1 "Font Awesome 6 Brands";
}
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 {
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transform-origin: center center;
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);
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
transform: scale(var(--fa-counter-scale, 0.25));
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: bottom right;
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: bottom left;
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: top left;
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(var(--fa-li-width, 2em) * -1);
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 {
-webkit-animation-name: fa-beat;
animation-name: fa-beat;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
-webkit-animation-name: fa-bounce;
animation-name: fa-bounce;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
-webkit-animation-name: fa-fade;
animation-name: fa-fade;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
-webkit-animation-name: fa-beat-fade;
animation-name: fa-beat-fade;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
-webkit-animation-name: fa-flip;
animation-name: fa-flip;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
-webkit-animation-name: fa-shake;
animation-name: fa-shake;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 2s);
animation-duration: var(--fa-animation-duration, 2s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
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 {
-webkit-animation-delay: -1ms;
animation-delay: -1ms;
-webkit-animation-duration: 1ms;
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s;
}
}
@-webkit-keyframes fa-beat {
0%, 90% {
-webkit-transform: scale(1);
transform: scale(1);
}
45% {
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-beat {
0%, 90% {
-webkit-transform: scale(1);
transform: scale(1);
}
45% {
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@-webkit-keyframes fa-bounce {
0% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
10% {
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
-webkit-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));
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% {
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
100% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-bounce {
0% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
10% {
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
-webkit-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));
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% {
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
100% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
}
@-webkit-keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@-webkit-keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
opacity: 1;
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
opacity: 1;
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@-webkit-keyframes fa-flip {
50% {
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-flip {
50% {
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@-webkit-keyframes fa-shake {
0% {
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
}
4% {
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
}
8%, 24% {
-webkit-transform: rotate(-18deg);
transform: rotate(-18deg);
}
12%, 28% {
-webkit-transform: rotate(18deg);
transform: rotate(18deg);
}
16% {
-webkit-transform: rotate(-22deg);
transform: rotate(-22deg);
}
20% {
-webkit-transform: rotate(22deg);
transform: rotate(22deg);
}
32% {
-webkit-transform: rotate(-12deg);
transform: rotate(-12deg);
}
36% {
-webkit-transform: rotate(12deg);
transform: rotate(12deg);
}
40%, 100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@keyframes fa-shake {
0% {
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
}
4% {
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
}
8%, 24% {
-webkit-transform: rotate(-18deg);
transform: rotate(-18deg);
}
12%, 28% {
-webkit-transform: rotate(18deg);
transform: rotate(18deg);
}
16% {
-webkit-transform: rotate(-22deg);
transform: rotate(-22deg);
}
20% {
-webkit-transform: rotate(22deg);
transform: rotate(22deg);
}
32% {
-webkit-transform: rotate(-12deg);
transform: rotate(-12deg);
}
36% {
-webkit-transform: rotate(12deg);
transform: rotate(12deg);
}
40%, 100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.fa-rotate-90 {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
-webkit-transform: scale(1, -1);
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
-webkit-transform: scale(-1, -1);
transform: scale(-1, -1);
}
.fa-rotate-by {
-webkit-transform: rotate(var(--fa-rotate-angle, none));
transform: rotate(var(--fa-rotate-angle, none));
}
.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;
}
.fad.fa-inverse,
.fa-duotone.fa-inverse {
color: var(--fa-inverse, #fff);
}`;function Y$(){var e=U$,t=$$,n=He.cssPrefix,r=He.replacementClass,i=fee;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var OM=!1;function Dx(){He.autoAddCss&&!OM&&(aee(Y$()),OM=!0)}var dee={mixout:function(){return{dom:{css:Y$,insertCss:Dx}}},hooks:function(){return{beforeDOMElementCreation:function(){Dx()},beforeI2svg:function(){Dx()}}}},Ma=Gs||{};Ma[Na]||(Ma[Na]={});Ma[Na].styles||(Ma[Na].styles={});Ma[Na].hooks||(Ma[Na].hooks={});Ma[Na].shims||(Ma[Na].shims=[]);var fo=Ma[Na],G$=[],pee=function e(){Wt.removeEventListener("DOMContentLoaded",e),f0=1,G$.map(function(t){return t()})},f0=!1;Ya&&(f0=(Wt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Wt.readyState),f0||Wt.addEventListener("DOMContentLoaded",pee));function hee(e){Ya&&(f0?setTimeout(e,0):G$.push(e))}function Qm(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?W$(e):"<".concat(t," ").concat(lee(r),">").concat(o.map(Qm).join(""),"</").concat(t,">")}function SM(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var mee=function(t,n){return function(r,i,o,a){return t.call(n,r,i,o,a)}},Ix=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=i!==void 0?mee(n,i):n,l,u,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<a;l++)u=o[l],f=s(f,t[u],u,t);return f};function vee(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function dS(e){var t=vee(e);return t.length===1?t[0].toString(16):null}function gee(e,t){var n=e.length,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 EM(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function pS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=EM(t);typeof fo.hooks.addPack=="function"&&!i?fo.hooks.addPack(e,EM(t)):fo.styles[e]=Fe(Fe({},fo.styles[e]||{}),o),e==="fas"&&pS("fa",t)}var wg,xg,Og,jc=fo.styles,yee=fo.shims,bee=(wg={},An(wg,zt,Object.values(Rh[zt])),An(wg,cn,Object.values(Rh[cn])),wg),uj=null,q$={},K$={},Z$={},X$={},Q$={},_ee=(xg={},An(xg,zt,Object.keys(Mh[zt])),An(xg,cn,Object.keys(Mh[cn])),xg);function wee(e){return~tee.indexOf(e)}function xee(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!wee(i)?i:null}var J$=function(){var t=function(o){return Ix(jc,function(a,s,l){return a[l]=Ix(s,o,{}),a},{})};q$=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var s=o[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){i[l.toString(16)]=a})}return i}),K$=t(function(i,o,a){if(i[a]=a,o[2]){var s=o[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){i[l]=a})}return i}),Q$=t(function(i,o,a){var s=o[2];return i[a]=a,s.forEach(function(l){i[l]=a}),i});var n="far"in jc||He.autoFetchSvg,r=Ix(yee,function(i,o){var a=o[0],s=o[1],l=o[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(i.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:s,iconName:l}),i},{names:{},unicodes:{}});Z$=r.names,X$=r.unicodes,uj=P_(He.styleDefault,{family:He.familyDefault})};oee(function(e){uj=P_(e.styleDefault,{family:He.familyDefault})});J$();function cj(e,t){return(q$[e]||{})[t]}function Oee(e,t){return(K$[e]||{})[t]}function Hl(e,t){return(Q$[e]||{})[t]}function e7(e){return Z$[e]||{prefix:null,iconName:null}}function See(e){var t=X$[e],n=cj("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function qs(){return uj}var fj=function(){return{prefix:null,iconName:null,rest:[]}};function P_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?zt:n,i=Mh[r][e],o=Lh[r][e]||Lh[r][i],a=e in fo.styles?e:null;return o||a||null}var TM=(Og={},An(Og,zt,Object.keys(Rh[zt])),An(Og,cn,Object.keys(Rh[cn])),Og);function A_(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},An(t,zt,"".concat(He.cssPrefix,"-").concat(zt)),An(t,cn,"".concat(He.cssPrefix,"-").concat(cn)),t),a=null,s=zt;(e.includes(o[zt])||e.some(function(u){return TM[zt].includes(u)}))&&(s=zt),(e.includes(o[cn])||e.some(function(u){return TM[cn].includes(u)}))&&(s=cn);var l=e.reduce(function(u,f){var d=xee(He.cssPrefix,f);if(jc[f]?(f=bee[s].includes(f)?KJ[s][f]:f,a=f,u.prefix=f):_ee[s].indexOf(f)>-1?(a=f,u.prefix=P_(f,{family:s})):d?u.iconName=d:f!==He.replacementClass&&f!==o[zt]&&f!==o[cn]&&u.rest.push(f),!i&&u.prefix&&u.iconName){var p=a==="fa"?e7(u.iconName):{},m=Hl(u.prefix,u.iconName);p.prefix&&(a=null),u.iconName=p.iconName||m||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!jc.far&&jc.fas&&!He.autoFetchSvg&&(u.prefix="fas")}return u},fj());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===cn&&(jc.fass||He.autoFetchSvg)&&(l.prefix="fass",l.iconName=Hl(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=qs()||"fas"),l}var Eee=function(){function e(){IJ(this,e),this.definitions={}}return FJ(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=Fe(Fe({},n.definitions[s]||{}),a[s]),pS(s,a[s]);var l=Rh[zt][s];l&&pS(l,a[s]),J$()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var a=i[o],s=a.prefix,l=a.iconName,u=a.icon,f=u[2];n[s]||(n[s]={}),f.length>0&&f.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),CM=[],Pc={},qc={},Tee=Object.keys(qc);function Cee(e,t){var n=t.mixoutsTo;return CM=e,Pc={},Object.keys(qc).forEach(function(r){Tee.indexOf(r)===-1&&delete qc[r]}),CM.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),c0(i[a])==="object"&&Object.keys(i[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){Pc[a]||(Pc[a]=[]),Pc[a].push(o[a])})}r.provides&&r.provides(qc)}),n}function hS(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];var o=Pc[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function mu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Pc[e]||[];i.forEach(function(o){o.apply(null,n)})}function La(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qc[e]?qc[e].apply(null,t):void 0}function mS(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||qs();if(t)return t=Hl(n,t)||t,SM(t7.definitions,n,t)||SM(fo.styles,n,t)}var t7=new Eee,kee=function(){He.autoReplaceSvg=!1,He.observeMutations=!1,mu("noAuto")},jee={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ya?(mu("beforeI2svg",t),La("pseudoElements2svg",t),La("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;He.autoReplaceSvg===!1&&(He.autoReplaceSvg=!0),He.observeMutations=!0,hee(function(){Aee({autoReplaceSvgRoot:n}),mu("watch",t)})}},Pee={icon:function(t){if(t===null)return null;if(c0(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Hl(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=P_(t[0]);return{prefix:r,iconName:Hl(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match(ZJ))){var i=A_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||qs(),iconName:Hl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=qs();return{prefix:o,iconName:Hl(o,t)||t}}}},vi={noAuto:kee,config:He,dom:jee,parse:Pee,library:t7,findIconDefinition:mS,toHtml:Qm},Aee=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Wt:n;(Object.keys(fo.styles).length>0||He.autoFetchSvg)&&Ya&&He.autoReplaceSvg&&vi.dom.i2svg({node:r})};function N_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Qm(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Ya){var r=Wt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Nee(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(lj(a)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};i.style=j_(Fe(Fe({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function Mee(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(He.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Fe(Fe({},i),{},{id:a}),children:r}]}]}function dj(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,u=e.maskId,f=e.titleId,d=e.extra,p=e.watchable,m=p===void 0?!1:p,v=r.found?r:n,g=v.width,w=v.height,y=i==="fak",_=[He.replacementClass,o?"".concat(He.cssPrefix,"-").concat(o):""].filter(function(D){return d.classes.indexOf(D)===-1}).filter(function(D){return D!==""||!!D}).concat(d.classes).join(" "),x={children:[],attributes:Fe(Fe({},d.attributes),{},{"data-prefix":i,"data-icon":o,class:_,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(w)})},O=y&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/w*16*.0625,"em")}:{};m&&(x.attributes[hu]=""),l&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||Ih())},children:[l]}),delete x.attributes.title);var E=Fe(Fe({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:Fe(Fe({},O),d.styles)}),T=r.found&&n.found?La("generateAbstractMask",E)||{children:[],attributes:{}}:La("generateAbstractIcon",E)||{children:[],attributes:{}},k=T.children,A=T.attributes;return E.children=k,E.attributes=A,s?Mee(E):Nee(E)}function kM(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=s===void 0?!1:s,u=Fe(Fe(Fe({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[hu]="");var f=Fe({},a.styles);lj(i)&&(f.transform=cee({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var d=j_(f);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function Lee(e){var t=e.content,n=e.title,r=e.extra,i=Fe(Fe(Fe({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=j_(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var Fx=fo.styles;function vS(e){var t=e[0],n=e[1],r=e.slice(4),i=nj(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(He.cssPrefix,"-").concat(Vl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Vl.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Vl.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var Ree={found:!1,width:512,height:512};function Dee(e,t){!B$&&!He.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function gS(e,t){var n=t;return t==="fa"&&He.styleDefault!==null&&(t=qs()),new Promise(function(r,i){if(La("missingIconAbstract"),n==="fa"){var o=e7(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Fx[t]&&Fx[t][e]){var a=Fx[t][e];return r(vS(a))}Dee(e,t),r(Fe(Fe({},Ree),{},{icon:He.showMissingIcons&&e?La("missingIconAbstract")||{}:{}}))})}var jM=function(){},yS=He.measurePerformance&&mg&&mg.mark&&mg.measure?mg:{mark:jM,measure:jM},Sp='FA "6.5.1"',Iee=function(t){return yS.mark("".concat(Sp," ").concat(t," begins")),function(){return n7(t)}},n7=function(t){yS.mark("".concat(Sp," ").concat(t," ends")),yS.measure("".concat(Sp," ").concat(t),"".concat(Sp," ").concat(t," begins"),"".concat(Sp," ").concat(t," ends"))},pj={begin:Iee,end:n7},hy=function(){};function PM(e){var t=e.getAttribute?e.getAttribute(hu):null;return typeof t=="string"}function Fee(e){var t=e.getAttribute?e.getAttribute(ij):null,n=e.getAttribute?e.getAttribute(oj):null;return t&&n}function Uee(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function $ee(){if(He.autoReplaceSvg===!0)return my.replace;var e=my[He.autoReplaceSvg];return e||my.replace}function Bee(e){return Wt.createElementNS("http://www.w3.org/2000/svg",e)}function zee(e){return Wt.createElement(e)}function r7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Bee:zee:n;if(typeof e=="string")return Wt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(r7(a,{ceFn:r}))}),i}function Vee(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var my={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(r7(i),n)}),n.getAttribute(hu)===null&&He.keepOriginalSource){var r=Wt.createComment(Vee(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~sj(n).indexOf(He.replacementClass))return my.replace(t);var i=new RegExp("".concat(He.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(s,l){return l===He.replacementClass||l.match(i)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(s){return Qm(s)}).join(`
`);n.setAttribute(hu,""),n.innerHTML=a}};function AM(e){e()}function i7(e,t){var n=typeof t=="function"?t:hy;if(e.length===0)n();else{var r=AM;He.mutateApproach===GJ&&(r=Gs.requestAnimationFrame||AM),r(function(){var i=$ee(),o=pj.begin("mutate");e.map(i),o(),n()})}}var hj=!1;function o7(){hj=!0}function bS(){hj=!1}var d0=null;function NM(e){if(wM&&He.observeMutations){var t=e.treeCallback,n=t===void 0?hy:t,r=e.nodeCallback,i=r===void 0?hy:r,o=e.pseudoElementsCallback,a=o===void 0?hy:o,s=e.observeMutationsRoot,l=s===void 0?Wt:s;d0=new wM(function(u){if(!hj){var f=qs();sd(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!PM(d.addedNodes[0])&&(He.searchPseudoElements&&a(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&He.searchPseudoElements&&a(d.target.parentNode),d.type==="attributes"&&PM(d.target)&&~eee.indexOf(d.attributeName))if(d.attributeName==="class"&&Fee(d.target)){var p=A_(sj(d.target)),m=p.prefix,v=p.iconName;d.target.setAttribute(ij,m||f),v&&d.target.setAttribute(oj,v)}else Uee(d.target)&&i(d.target)})}}),Ya&&d0.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Hee(){d0&&d0.disconnect()}function Wee(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function Yee(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=A_(sj(e));return i.prefix||(i.prefix=qs()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Oee(i.prefix,e.innerText)||cj(i.prefix,dS(e.innerText))),!i.iconName&&He.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Gee(e){var t=sd(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return He.autoA11y&&(n?t["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(r||Ih()):(t["aria-hidden"]="true",t.focusable="false")),t}function qee(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Fo,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function MM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Yee(e),r=n.iconName,i=n.prefix,o=n.rest,a=Gee(e),s=hS("parseNodeAttributes",{},e),l=t.styleParser?Wee(e):[];return Fe({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Fo,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var Kee=fo.styles;function a7(e){var t=He.autoReplaceSvg==="nest"?MM(e,{styleParser:!1}):MM(e);return~t.extra.classes.indexOf(z$)?La("generateLayersText",e,t):La("generateSvgReplacementMutation",e,t)}var Ks=new Set;aj.map(function(e){Ks.add("fa-".concat(e))});Object.keys(Mh[zt]).map(Ks.add.bind(Ks));Object.keys(Mh[cn]).map(Ks.add.bind(Ks));Ks=Zm(Ks);function LM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ya)return Promise.resolve();var n=Wt.documentElement.classList,r=function(d){return n.add("".concat(xM,"-").concat(d))},i=function(d){return n.remove("".concat(xM,"-").concat(d))},o=He.autoFetchSvg?Ks:aj.map(function(f){return"fa-".concat(f)}).concat(Object.keys(Kee));o.includes("fa")||o.push("fa");var a=[".".concat(z$,":not([").concat(hu,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(hu,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=sd(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=pj.begin("onTree"),u=s.reduce(function(f,d){try{var p=a7(d);p&&f.push(p)}catch(m){B$||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,d){Promise.all(u).then(function(p){i7(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),d(p)})})}function Zee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;a7(e).then(function(n){n&&i7([n],t)})}function Xee(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:mS(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:mS(i||{})),e(r,Fe(Fe({},n),{},{mask:i}))}}var Qee=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Fo:r,o=n.symbol,a=o===void 0?!1:o,s=n.mask,l=s===void 0?null:s,u=n.maskId,f=u===void 0?null:u,d=n.title,p=d===void 0?null:d,m=n.titleId,v=m===void 0?null:m,g=n.classes,w=g===void 0?[]:g,y=n.attributes,_=y===void 0?{}:y,x=n.styles,O=x===void 0?{}:x;if(t){var E=t.prefix,T=t.iconName,k=t.icon;return N_(Fe({type:"icon"},t),function(){return mu("beforeDOMElementCreation",{iconDefinition:t,params:n}),He.autoA11y&&(p?_["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(v||Ih()):(_["aria-hidden"]="true",_.focusable="false")),dj({icons:{main:vS(k),mask:l?vS(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:T,transform:Fe(Fe({},Fo),i),symbol:a,title:p,maskId:f,titleId:v,extra:{attributes:_,styles:O,classes:w}})})}},Jee={mixout:function(){return{icon:Xee(Qee)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=LM,n.nodeCallback=Zee,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Wt:r,o=n.callback,a=o===void 0?function(){}:o;return LM(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,a=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,f=r.mask,d=r.maskId,p=r.extra;return new Promise(function(m,v){Promise.all([gS(i,s),f.iconName?gS(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var w=nj(g,2),y=w[0],_=w[1];m([n,dj({icons:{main:y,mask:_},prefix:s,iconName:i,transform:l,symbol:u,maskId:d,title:o,titleId:a,extra:p,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=j_(s);l.length>0&&(i.style=l);var u;return lj(a)&&(u=La("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},ete={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return N_({type:"layer"},function(){mu("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(He.cssPrefix,"-layers")].concat(Zm(o)).join(" ")},children:a}]})}}}},tte={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,a=r.classes,s=a===void 0?[]:a,l=r.attributes,u=l===void 0?{}:l,f=r.styles,d=f===void 0?{}:f;return N_({type:"counter",content:n},function(){return mu("beforeDOMElementCreation",{content:n,params:r}),Lee({content:n.toString(),title:o,extra:{attributes:u,styles:d,classes:["".concat(He.cssPrefix,"-layers-counter")].concat(Zm(s))}})})}}}},nte={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Fo:i,a=r.title,s=a===void 0?null:a,l=r.classes,u=l===void 0?[]:l,f=r.attributes,d=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return N_({type:"text",content:n},function(){return mu("beforeDOMElementCreation",{content:n,params:r}),kM({content:n,transform:Fe(Fe({},Fo),o),title:s,extra:{attributes:d,styles:m,classes:["".concat(He.cssPrefix,"-layers-text")].concat(Zm(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(F$){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/u,l=f.height/u}return He.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([n,kM({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},rte=new RegExp('"',"ug"),RM=[1105920,1112319];function ite(e){var t=e.replace(rte,""),n=gee(t,0),r=n>=RM[0]&&n<=RM[1],i=t.length===2?t[0]===t[1]:!1;return{value:dS(i?t[0]:t),isSecondary:r||i}}function DM(e,t){var n="".concat(YJ).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=sd(e.children),a=o.filter(function(k){return k.getAttribute(fS)===t})[0],s=Gs.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(XJ),u=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&f!=="none"&&f!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?cn:zt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Lh[p][l[2].toLowerCase()]:QJ[p][u],v=ite(d),g=v.value,w=v.isSecondary,y=l[0].startsWith("FontAwesome"),_=cj(m,g),x=_;if(y){var O=See(g);O.iconName&&O.prefix&&(_=O.iconName,m=O.prefix)}if(_&&!w&&(!a||a.getAttribute(ij)!==m||a.getAttribute(oj)!==x)){e.setAttribute(n,x),a&&e.removeChild(a);var E=qee(),T=E.extra;T.attributes[fS]=t,gS(_,m).then(function(k){var A=dj(Fe(Fe({},E),{},{icons:{main:k,mask:fj()},prefix:m,iconName:x,extra:T,watchable:!0})),D=Wt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(D,e.firstChild):e.appendChild(D),D.outerHTML=A.map(function(R){return Qm(R)}).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ote(e){return Promise.all([DM(e,"::before"),DM(e,"::after")])}function ate(e){return e.parentNode!==document.head&&!~qJ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(fS)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function IM(e){if(Ya)return new Promise(function(t,n){var r=sd(e.querySelectorAll("*")).filter(ate).map(ote),i=pj.begin("searchPseudoElements");o7(),Promise.all(r).then(function(){i(),bS(),t()}).catch(function(){i(),bS(),n()})})}var ste={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=IM,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Wt:r;He.searchPseudoElements&&IM(i)}}},FM=!1,lte={mixout:function(){return{dom:{unwatch:function(){o7(),FM=!0}}}},hooks:function(){return{bootstrap:function(){NM(hS("mutationObserverCallbacks",{}))},noAuto:function(){Hee()},watch:function(n){var r=n.observeMutationsRoot;FM?bS():NM(hS("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},UM=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],s=o.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},ute={mixout:function(){return{parse:{transform:function(n){return UM(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=UM(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(f)},p={transform:"translate(".concat(a/2*-1," -256)")},m={outer:s,inner:d,path:p};return{tag:"g",attributes:Fe({},m.outer),children:[{tag:"g",attributes:Fe({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Fe(Fe({},r.icon.attributes),m.path)}]}]}}}},Ux={x:0,y:0,width:"100%",height:"100%"};function $M(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function cte(e){return e.tag==="g"?e.children:[e]}var fte={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?A_(i.split(" ").map(function(a){return a.trim()})):fj();return o.prefix||(o.prefix=qs()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,s=n.maskId,l=n.transform,u=o.width,f=o.icon,d=a.width,p=a.icon,m=uee({transform:l,containerWidth:d,iconWidth:u}),v={tag:"rect",attributes:Fe(Fe({},Ux),{},{fill:"white"})},g=f.children?{children:f.children.map($M)}:{},w={tag:"g",attributes:Fe({},m.inner),children:[$M(Fe({tag:f.tag,attributes:Fe(Fe({},f.attributes),m.path)},g))]},y={tag:"g",attributes:Fe({},m.outer),children:[w]},_="mask-".concat(s||Ih()),x="clip-".concat(s||Ih()),O={tag:"mask",attributes:Fe(Fe({},Ux),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,y]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:cte(p)},O]};return r.push(E,{tag:"rect",attributes:Fe({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(_,")")},Ux)}),{children:r,attributes:i}}}},dte={provides:function(t){var n=!1;Gs.matchMedia&&(n=Gs.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Fe(Fe({},i),{},{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"})});var a=Fe(Fe({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Fe(Fe({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:Fe(Fe({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:Fe(Fe({},i),{},{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:n?[]:[{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Fe(Fe({},i),{},{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:Fe(Fe({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},pte={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},hte=[dee,Jee,ete,tte,nte,ste,lte,ute,fte,dte,pte];Cee(hte,{mixoutsTo:vi});vi.noAuto;vi.config;vi.library;vi.dom;var _S=vi.parse;vi.findIconDefinition;vi.toHtml;var mte=vi.icon;vi.layer;vi.text;vi.counter;var s7={exports:{}},vte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gte=vte,yte=gte;function l7(){}function u7(){}u7.resetWarningCache=l7;var bte=function(){function e(r,i,o,a,s,l){if(l!==yte){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:u7,resetWarningCache:l7};return n.PropTypes=n,n};s7.exports=bte();var _te=s7.exports;const U=Tu(_te);function BM(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 Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BM(Object(n),!0).forEach(function(r){Ac(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p0(e){"@babel/helpers - typeof";return p0=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},p0(e)}function Ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function xte(e,t){if(e==null)return{};var n=wte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wS(e){return Ote(e)||Ste(e)||Ete(e)||Tte()}function Ote(e){if(Array.isArray(e))return xS(e)}function Ste(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ete(e,t){if(e){if(typeof e=="string")return xS(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 xS(e,t)}}function xS(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 Tte(){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 Cte(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,f=e.spinReverse,d=e.pulse,p=e.fixedWidth,m=e.inverse,v=e.border,g=e.listItem,w=e.flip,y=e.size,_=e.rotation,x=e.pull,O=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":p,"fa-inverse":m,"fa-border":v,"fa-li":g,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Ac(t,"fa-".concat(y),typeof y<"u"&&y!==null),Ac(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),Ac(t,"fa-pull-".concat(x),typeof x<"u"&&x!==null),Ac(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(O).map(function(E){return O[E]?E:null}).filter(function(E){return E})}function kte(e){return e=e-0,e===e}function c7(e){return kte(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var jte=["style"];function Pte(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=c7(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[Pte(i)]=o:t[i]=o,t},{})}function f7(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(l){return f7(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=Ate(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[c7(u)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=xte(n,jte);return i.attrs.style=Ts(Ts({},i.attrs.style),a),e.apply(void 0,[t.tag,Ts(Ts({},i.attrs),s)].concat(wS(r)))}var d7=!1;try{d7=!0}catch{}function Nte(){if(!d7&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function zM(e){if(e&&p0(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(_S.icon)return _S.icon(e);if(e===null)return null;if(e&&p0(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 $x(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ac({},e,t):{}}var Le=M.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,u=zM(n),f=$x("classes",[].concat(wS(Cte(e)),wS(o.split(" ")))),d=$x("transform",typeof e.transform=="string"?_S.transform(e.transform):e.transform),p=$x("mask",zM(r)),m=mte(u,Ts(Ts(Ts(Ts({},f),d),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!m)return Nte("Could not find icon",u),null;var v=m.abstract,g={ref:t};return Object.keys(e).forEach(function(w){Le.defaultProps.hasOwnProperty(w)||(g[w]=e[w])}),Mte(v[0],g)});Le.displayName="FontAwesomeIcon";Le.propTypes={beat:U.bool,border:U.bool,beatFade:U.bool,bounce:U.bool,className:U.string,fade:U.bool,flash:U.bool,mask:U.oneOfType([U.object,U.array,U.string]),maskId:U.string,fixedWidth:U.bool,inverse:U.bool,flip:U.oneOf([!0,!1,"horizontal","vertical","both"]),icon:U.oneOfType([U.object,U.array,U.string]),listItem:U.bool,pull:U.oneOf(["right","left"]),pulse:U.bool,rotation:U.oneOf([0,90,180,270]),shake:U.bool,size:U.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:U.bool,spinPulse:U.bool,spinReverse:U.bool,symbol:U.oneOfType([U.bool,U.string]),title:U.string,titleId:U.string,transform:U.oneOfType([U.string,U.object]),swapOpacity:U.bool};Le.defaultProps={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};var Mte=f7.bind(null,M.createElement),p7={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(p7);var Lte=p7.exports;const Xe=Tu(Lte);function uf(e){"@babel/helpers - typeof";return uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uf(e)}function Rte(){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 h7(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function Dte(){return document.body.clientWidth<window.innerWidth}function Ite(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function Fte(){var e=Rte(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;Dte()&&h7(n+e)}var Ute;function qe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ute;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ol(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function m7(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var VM={};function OS(e){VM[e]||(typeof console<"u"&&console.error(e),VM[e]=!0)}function v7(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&OS('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return e.apply(void 0,[r,i,o].concat(s))}}var $te=(typeof window>"u"?"undefined":uf(window))==="object"&&window.Element||function(){};function mj(e,t,n){if(!(e[t]instanceof $te))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var cf=U.oneOfType([U.string,U.func,mj,U.shape({current:U.any})]),ft=U.oneOfType([U.func,U.string,U.shape({$$typeof:U.symbol,render:U.func}),U.arrayOf(U.oneOfType([U.func,U.string,U.shape({$$typeof:U.symbol,render:U.func})]))]),h0={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},m0=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Sg={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},kt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},Bte=["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"],vj=!!(typeof window<"u"&&window.document&&window.document.createElement);function zte(e){return e&&uf(e)==="object"?"current"in e:!1}function g7(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function SS(e){var t=uf(e);return e!=null&&(t==="object"||t==="function")}function HM(e){var t=uf(e),n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&g7(e)==="[object Symbol]")return n;if(SS(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=SS(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 Vte(e){if(!SS(e))return!1;var t=g7(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function Hte(e){if(zte(e))return e.current;if(Vte(e))return e();if(typeof e=="string"&&vj){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 WM(e){return e===null?!1:Array.isArray(e)||vj&&typeof e.length=="number"}function Fh(e,t){var n=Hte(e);return t?WM(n)?n:n===null?[]:[n]:WM(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"])'],Yte=["className","cssModule","noGutters","tag","widths"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES.apply(this,arguments)}function Gte(e,t){if(e==null)return{};var n=qte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Kte=["xs","sm","md","lg","xl","xxl"],Ju=U.oneOfType([U.number,U.string]),Zte={tag:ft,noGutters:v7(U.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:U.string,cssModule:U.object,xs:Ju,sm:Ju,md:Ju,lg:Ju,xl:Ju,xxl:Ju,widths:U.array};function kr(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?Kte:a,l=Gte(e,Yte),u=[];s.forEach(function(d,p){var m=e[d];if(delete l[d],!!m){var v=!p;u.push(v?"row-cols-".concat(m):"row-cols-".concat(d,"-").concat(m))}});var f=qe(Xe(t,r?"gx-0":null,"row",u),n);return M.createElement(o,ES({},l,{className:f}))}kr.propTypes=Zte;var Xte=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function TS(){return TS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TS.apply(this,arguments)}function Bx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qte(e,t){if(e==null)return{};var n=Jte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ene={children:U.node,className:U.string,color:U.string,container:U.oneOfType([U.bool,U.string]),cssModule:U.object,dark:U.bool,expand:U.oneOfType([U.bool,U.string]),fixed:U.string,light:U.bool,role:U.string,sticky:U.string,tag:ft},tne=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function y7(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,l=e.fixed,u=e.sticky,f=e.color,d=e.container,p=d===void 0?"fluid":d,m=e.tag,v=m===void 0?"nav":m,g=e.children,w=Qte(e,Xte),y=qe(Xe(i,"navbar",tne(r),(t={"navbar-light":a,"navbar-dark":s},Bx(t,"bg-".concat(f),f),Bx(t,"fixed-".concat(l),l),Bx(t,"sticky-".concat(u),u),t)),o),_=p&&p===!0?"container":"container-".concat(p);return M.createElement(v,TS({},w,{className:y}),p?M.createElement("div",{className:_},g):g)}y7.propTypes=ene;var nne=["className","cssModule","tag"];function CS(){return CS=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},CS.apply(this,arguments)}function rne(e,t){if(e==null)return{};var n=ine(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ine(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var one={className:U.string,cssModule:U.object,tag:ft};function b7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=rne(e,nne),a=qe(Xe(t,"navbar-brand"),n);return M.createElement(i,CS({},o,{className:a}))}b7.propTypes=one;var ane=["className","cssModule","children","tag"];function kS(){return kS=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},kS.apply(this,arguments)}function YM(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 sne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YM(Object(n),!0).forEach(function(r){lne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function une(e,t){if(e==null)return{};var n=cne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var fne={className:U.string,cssModule:U.object,tag:ft,type:U.string,children:U.node};function _7(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=une(e,ane),s=qe(Xe(t,"navbar-toggler"),n);return M.createElement(o,kS({"aria-label":"Toggle navigation"},sne({type:"button"},a),{className:s}),r||M.createElement("span",{className:qe("navbar-toggler-icon",n)}))}_7.propTypes=fne;var dne=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function jS(){return jS=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},jS.apply(this,arguments)}function pne(e,t){if(e==null)return{};var n=hne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mne={card:U.bool,className:U.string,cssModule:U.object,fill:U.bool,horizontal:U.oneOf(["center","end"]),justified:U.bool,navbar:U.bool,pills:U.bool,tabs:U.bool,tag:ft,vertical:U.oneOfType([U.bool,U.string])},vne=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function gj(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,l=e.justified,u=e.fill,f=e.navbar,d=e.card,p=e.tag,m=p===void 0?"ul":p,v=pne(e,dne),g=qe(Xe(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,vne(a),{"nav-tabs":r,"card-header-tabs":d&&r,"nav-pills":i,"card-header-pills":d&&i,"nav-justified":l,"nav-fill":u}),n);return M.createElement(m,jS({},v,{className:g}))}gj.propTypes=mne;var gne=["className","cssModule","active","tag"];function PS(){return PS=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},PS.apply(this,arguments)}function yne(e,t){if(e==null)return{};var n=bne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _ne={active:U.bool,className:U.string,cssModule:U.object,tag:ft};function yj(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=yne(e,gne),s=qe(Xe(t,"nav-item",r?"active":!1),n);return M.createElement(o,PS({},a,{className:s}))}yj.propTypes=_ne;function AS(e){"@babel/helpers - typeof";return AS=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},AS(e)}var wne=["className","cssModule","active","tag","innerRef"];function NS(){return NS=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},NS.apply(this,arguments)}function xne(e,t){if(e==null)return{};var n=One(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function One(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Sne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GM(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 Ene(e,t,n){return t&&GM(e.prototype,t),n&&GM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tne(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&&MS(e,t)}function MS(e,t){return MS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MS(e,t)}function Cne(e){var t=jne();return function(){var r=v0(e),i;if(t){var o=v0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kne(this,i)}}function kne(e,t){if(t&&(AS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w7(e)}function w7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jne(){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 v0(e){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v0(e)}var Pne={active:U.bool,className:U.string,cssModule:U.object,disabled:U.bool,href:U.any,innerRef:U.oneOfType([U.object,U.func,U.string]),onClick:U.func,tag:ft},x7=function(e){Tne(n,e);var t=Cne(n);function n(r){var i;return Sne(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(w7(i)),i}return Ene(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,o=i.className,a=i.cssModule,s=i.active,l=i.tag,u=l===void 0?"a":l,f=i.innerRef,d=xne(i,wne),p=qe(Xe(o,"nav-link",{disabled:d.disabled,active:s}),a);return M.createElement(u,NS({},d,{ref:f,onClick:this.onClick,className:p}))}}]),n}(M.Component);x7.propTypes=Pne;const O7=x7;var Ane=["className","cssModule","variant","innerRef"];function LS(){return LS=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},LS.apply(this,arguments)}function qM(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 Nne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qM(Object(n),!0).forEach(function(r){Mne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lne(e,t){if(e==null)return{};var n=Rne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Dne={active:U.bool,"aria-label":U.string,onClick:U.func,variant:U.oneOf(["white"]),className:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func])};function S7(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=Lne(e,Ane),o=qe(Xe(t,"btn-close",n&&"btn-close-".concat(n)));return M.createElement("button",LS({ref:r,type:"button",className:o},Nne({"aria-label":"close"},i)))}S7.propTypes=Dne;var Ine=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function RS(){return RS=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},RS.apply(this,arguments)}function Fne(e,t){if(e==null)return{};var n=Une(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Une(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $ne={active:U.bool,"aria-label":U.string,block:U.bool,children:U.node,className:U.string,cssModule:U.object,close:U.bool,color:U.string,disabled:U.bool,innerRef:U.oneOfType([U.object,U.func,U.string]),onClick:U.func,outline:U.bool,size:U.string,tag:ft};function wt(e){var t=F.useCallback(function(_){if(e.disabled){_.preventDefault();return}if(e.onClick)return e.onClick(_)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,u=l===void 0?"secondary":l,f=e.outline,d=e.size,p=e.tag,m=p===void 0?"button":p,v=e.innerRef,g=Fne(e,Ine);if(a)return M.createElement(S7,g);var w="btn".concat(f?"-outline":"","-").concat(u),y=qe(Xe(o,"btn",w,d?"btn-".concat(d):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return g.href&&m==="button"&&(m="a"),M.createElement(m,RS({type:m==="button"&&g.onClick?"button":void 0},g,{className:y,ref:v,onClick:t,"aria-label":r}))}wt.propTypes=$ne;var E7=F.createContext(),T7=F.createContext();function KM(e){var t=e.children,n=F.useState(null),r=n[0],i=n[1],o=F.useRef(!1);F.useEffect(function(){return function(){o.current=!0}},[]);var a=F.useCallback(function(s){o.current||i(s)},[]);return F.createElement(E7.Provider,{value:r},F.createElement(T7.Provider,{value:a},t))}var C7=function(t){return Array.isArray(t)?t[0]:t},k7=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)}},DS=function(t,n){if(typeof t=="function")return k7(t,n);t!=null&&(t.current=n)},ZM=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},XM=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,Hr="top",$i="bottom",Bi="right",Wr="left",bj="auto",Jm=[Hr,$i,Bi,Wr],ff="start",Uh="end",Bne="clippingParents",j7="viewport",np="popper",zne="reference",QM=Jm.reduce(function(e,t){return e.concat([t+"-"+ff,t+"-"+Uh])},[]),P7=[].concat(Jm,[bj]).reduce(function(e,t){return e.concat([t,t+"-"+ff,t+"-"+Uh])},[]),Vne="beforeRead",Hne="read",Wne="afterRead",Yne="beforeMain",Gne="main",qne="afterMain",Kne="beforeWrite",Zne="write",Xne="afterWrite",Qne=[Vne,Hne,Wne,Yne,Gne,qne,Kne,Zne,Xne];function Xo(e){return e?(e.nodeName||"").toLowerCase():null}function li(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vu(e){var t=li(e).Element;return e instanceof t||e instanceof Element}function Mi(e){var t=li(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _j(e){if(typeof ShadowRoot>"u")return!1;var t=li(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Mi(o)||!Xo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function ere(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],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Mi(i)||!Xo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const tre={name:"applyStyles",enabled:!0,phase:"write",fn:Jne,effect:ere,requires:["computeStyles"]};function Vo(e){return e.split("-")[0]}var eu=Math.max,g0=Math.min,df=Math.round;function IS(){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 A7(){return!/^((?!chrome|android).)*safari/i.test(IS())}function pf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Mi(e)&&(i=e.offsetWidth>0&&df(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&df(r.height)/e.offsetHeight||1);var a=vu(e)?li(e):window,s=a.visualViewport,l=!A7()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:u+d,bottom:f+p,left:u,x:u,y:f}}function wj(e){var t=pf(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 N7(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_j(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ra(e){return li(e).getComputedStyle(e)}function nre(e){return["table","td","th"].indexOf(Xo(e))>=0}function al(e){return((vu(e)?e.ownerDocument:e.document)||window.document).documentElement}function M_(e){return Xo(e)==="html"?e:e.assignedSlot||e.parentNode||(_j(e)?e.host:null)||al(e)}function JM(e){return!Mi(e)||Ra(e).position==="fixed"?null:e.offsetParent}function rre(e){var t=/firefox/i.test(IS()),n=/Trident/i.test(IS());if(n&&Mi(e)){var r=Ra(e);if(r.position==="fixed")return null}var i=M_(e);for(_j(i)&&(i=i.host);Mi(i)&&["html","body"].indexOf(Xo(i))<0;){var o=Ra(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function ev(e){for(var t=li(e),n=JM(e);n&&nre(n)&&Ra(n).position==="static";)n=JM(n);return n&&(Xo(n)==="html"||Xo(n)==="body"&&Ra(n).position==="static")?t:n||rre(e)||t}function xj(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yp(e,t,n){return eu(e,g0(t,n))}function ire(e,t,n){var r=Yp(e,t,n);return r>n?n:r}function M7(){return{top:0,right:0,bottom:0,left:0}}function L7(e){return Object.assign({},M7(),e)}function R7(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ore=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,L7(typeof t!="number"?t:R7(t,Jm))};function are(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Vo(n.placement),l=xj(s),u=[Wr,Bi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=ore(i.padding,n),p=wj(o),m=l==="y"?Hr:Wr,v=l==="y"?$i:Bi,g=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],w=a[l]-n.rects.reference[l],y=ev(o),_=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=g/2-w/2,O=d[m],E=_-p[f]-d[v],T=_/2-p[f]/2+x,k=Yp(O,T,E),A=l;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-T,t)}}function sre(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)||N7(t.elements.popper,i)&&(t.elements.arrow=i))}const lre={name:"arrow",enabled:!0,phase:"main",fn:are,effect:sre,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hf(e){return e.split("-")[1]}var ure={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cre(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:df(n*i)/i||0,y:df(r*i)/i||0}}function eL(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,g=v===void 0?0:v,w=typeof f=="function"?f({x:m,y:g}):{x:m,y:g};m=w.x,g=w.y;var y=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),x=Wr,O=Hr,E=window;if(u){var T=ev(n),k="clientHeight",A="clientWidth";if(T===li(n)&&(T=al(n),Ra(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",A="scrollWidth")),T=T,i===Hr||(i===Wr||i===Bi)&&o===Uh){O=$i;var D=d&&T===E&&E.visualViewport?E.visualViewport.height:T[k];g-=D-r.height,g*=l?1:-1}if(i===Wr||(i===Hr||i===$i)&&o===Uh){x=Bi;var R=d&&T===E&&E.visualViewport?E.visualViewport.width:T[A];m-=R-r.width,m*=l?1:-1}}var I=Object.assign({position:s},u&&ure),z=f===!0?cre({x:m,y:g},li(n)):{x:m,y:g};if(m=z.x,g=z.y,l){var G;return Object.assign({},I,(G={},G[O]=_?"0":"",G[x]=y?"0":"",G.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",G))}return Object.assign({},I,(t={},t[O]=_?g+"px":"",t[x]=y?m+"px":"",t.transform="",t))}function fre(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Vo(t.placement),variation:hf(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,eL(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,eL(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fre,data:{}};var Eg={passive:!0};function pre(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=li(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,Eg)}),s&&l.addEventListener("resize",n.update,Eg),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Eg)}),s&&l.removeEventListener("resize",n.update,Eg)}}const hre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pre,data:{}};var mre={left:"right",right:"left",bottom:"top",top:"bottom"};function vy(e){return e.replace(/left|right|bottom|top/g,function(t){return mre[t]})}var vre={start:"end",end:"start"};function tL(e){return e.replace(/start|end/g,function(t){return vre[t]})}function Oj(e){var t=li(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sj(e){return pf(al(e)).left+Oj(e).scrollLeft}function gre(e,t){var n=li(e),r=al(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=A7();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Sj(e),y:l}}function yre(e){var t,n=al(e),r=Oj(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=eu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=eu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Sj(e),l=-r.scrollTop;return Ra(i||n).direction==="rtl"&&(s+=eu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Ej(e){var t=Ra(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function D7(e){return["html","body","#document"].indexOf(Xo(e))>=0?e.ownerDocument.body:Mi(e)&&Ej(e)?e:D7(M_(e))}function Gp(e,t){var n;t===void 0&&(t=[]);var r=D7(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=li(r),a=i?[o].concat(o.visualViewport||[],Ej(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Gp(M_(a)))}function FS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bre(e,t){var n=pf(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 nL(e,t,n){return t===j7?FS(gre(e,n)):vu(t)?bre(t,n):FS(yre(al(e)))}function _re(e){var t=Gp(M_(e)),n=["absolute","fixed"].indexOf(Ra(e).position)>=0,r=n&&Mi(e)?ev(e):e;return vu(r)?t.filter(function(i){return vu(i)&&N7(i,r)&&Xo(i)!=="body"}):[]}function wre(e,t,n,r){var i=t==="clippingParents"?_re(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=nL(e,u,r);return l.top=eu(f.top,l.top),l.right=g0(f.right,l.right),l.bottom=g0(f.bottom,l.bottom),l.left=eu(f.left,l.left),l},nL(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function I7(e){var t=e.reference,n=e.element,r=e.placement,i=r?Vo(r):null,o=r?hf(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Hr:l={x:a,y:t.y-n.height};break;case $i:l={x:a,y:t.y+t.height};break;case Bi:l={x:t.x+t.width,y:s};break;case Wr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?xj(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case ff:l[u]=l[u]-(t[f]/2-n[f]/2);break;case Uh:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function $h(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Bne:s,u=n.rootBoundary,f=u===void 0?j7:u,d=n.elementContext,p=d===void 0?np:d,m=n.altBoundary,v=m===void 0?!1:m,g=n.padding,w=g===void 0?0:g,y=L7(typeof w!="number"?w:R7(w,Jm)),_=p===np?zne:np,x=e.rects.popper,O=e.elements[v?_:p],E=wre(vu(O)?O:O.contextElement||al(e.elements.popper),l,f,a),T=pf(e.elements.reference),k=I7({reference:T,element:x,strategy:"absolute",placement:i}),A=FS(Object.assign({},x,k)),D=p===np?A:T,R={top:E.top-D.top+y.top,bottom:D.bottom-E.bottom+y.bottom,left:E.left-D.left+y.left,right:D.right-E.right+y.right},I=e.modifiersData.offset;if(p===np&&I){var z=I[i];Object.keys(R).forEach(function(G){var H=[Bi,$i].indexOf(G)>=0?1:-1,Q=[Hr,$i].indexOf(G)>=0?"y":"x";R[G]+=z[Q]*H})}return R}function xre(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?P7:l,f=hf(r),d=f?s?QM:QM.filter(function(v){return hf(v)===f}):Jm,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var m=p.reduce(function(v,g){return v[g]=$h(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Vo(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function Ore(e){if(Vo(e)===bj)return[];var t=vy(e);return[tL(e),t,tL(t)]}function Sre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,g=n.allowedAutoPlacements,w=t.options.placement,y=Vo(w),_=y===w,x=l||(_||!v?[vy(w)]:Ore(w)),O=[w].concat(x).reduce(function(ee,ie){return ee.concat(Vo(ie)===bj?xre(t,{placement:ie,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:g}):ie)},[]),E=t.rects.reference,T=t.rects.popper,k=new Map,A=!0,D=O[0],R=0;R<O.length;R++){var I=O[R],z=Vo(I),G=hf(I)===ff,H=[Hr,$i].indexOf(z)>=0,Q=H?"width":"height",Z=$h(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=H?G?Bi:Wr:G?$i:Hr;E[Q]>T[Q]&&(te=vy(te));var X=vy(te),$=[];if(o&&$.push(Z[z]<=0),s&&$.push(Z[te]<=0,Z[X]<=0),$.every(function(ee){return ee})){D=I,A=!1;break}k.set(I,$)}if(A)for(var V=v?3:1,W=function(ie){var se=O.find(function(fe){var j=k.get(fe);if(j)return j.slice(0,ie).every(function(P){return P})});if(se)return D=se,"break"},re=V;re>0;re--){var q=W(re);if(q==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const Ere={name:"flip",enabled:!0,phase:"main",fn:Sre,requiresIfExists:["offset"],data:{_skip:!1}};function rL(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 iL(e){return[Hr,Bi,$i,Wr].some(function(t){return e[t]>=0})}function Tre(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=$h(t,{elementContext:"reference"}),s=$h(t,{altBoundary:!0}),l=rL(a,r),u=rL(s,i,o),f=iL(l),d=iL(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const Cre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tre};function kre(e,t,n){var r=Vo(e),i=[Wr,Hr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Wr,Bi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function jre(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=P7.reduce(function(f,d){return f[d]=kre(d,t.rects,o),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Pre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jre};function Are(e){var t=e.state,n=e.name;t.modifiersData[n]=I7({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Nre={name:"popperOffsets",enabled:!0,phase:"read",fn:Are,data:{}};function Mre(e){return e==="x"?"y":"x"}function Lre(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,g=v===void 0?0:v,w=$h(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),y=Vo(t.placement),_=hf(t.placement),x=!_,O=xj(y),E=Mre(O),T=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(T){if(o){var G,H=O==="y"?Hr:Wr,Q=O==="y"?$i:Bi,Z=O==="y"?"height":"width",te=T[O],X=te+w[H],$=te-w[Q],V=m?-A[Z]/2:0,W=_===ff?k[Z]:A[Z],re=_===ff?-A[Z]:-k[Z],q=t.elements.arrow,ee=m&&q?wj(q):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:M7(),se=ie[H],fe=ie[Q],j=Yp(0,k[Z],ee[Z]),P=x?k[Z]/2-V-j-se-R.mainAxis:W-j-se-R.mainAxis,B=x?-k[Z]/2+V+j+fe+R.mainAxis:re+j+fe+R.mainAxis,J=t.elements.arrow&&ev(t.elements.arrow),K=J?O==="y"?J.clientTop||0:J.clientLeft||0:0,le=(G=I==null?void 0:I[O])!=null?G:0,he=te+P-le-K,Ee=te+B-le,ue=Yp(m?g0(X,he):X,te,m?eu($,Ee):$);T[O]=ue,z[O]=ue-te}if(s){var ve,ge=O==="x"?Hr:Wr,Oe=O==="x"?$i:Bi,Ce=T[E],ke=E==="y"?"height":"width",Ae=Ce+w[ge],ce=Ce-w[Oe],de=[Hr,Wr].indexOf(y)!==-1,_e=(ve=I==null?void 0:I[E])!=null?ve:0,be=de?Ae:Ce-k[ke]-A[ke]-_e+R.altAxis,Se=de?Ce+k[ke]+A[ke]-_e-R.altAxis:ce,Me=m&&de?ire(be,Ce,Se):Yp(m?be:Ae,Ce,m?Se:ce);T[E]=Me,z[E]=Me-Ce}t.modifiersData[r]=z}}const Rre={name:"preventOverflow",enabled:!0,phase:"main",fn:Lre,requiresIfExists:["offset"]};function Dre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ire(e){return e===li(e)||!Mi(e)?Oj(e):Dre(e)}function Fre(e){var t=e.getBoundingClientRect(),n=df(t.width)/e.offsetWidth||1,r=df(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ure(e,t,n){n===void 0&&(n=!1);var r=Mi(t),i=Mi(t)&&Fre(t),o=al(t),a=pf(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Xo(t)!=="body"||Ej(o))&&(s=Ire(t)),Mi(t)?(l=pf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Sj(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function $re(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Bre(e){var t=$re(e);return Qne.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function zre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Vre(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 oL={placement:"bottom",modifiers:[],strategy:"absolute"};function aL(){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 Hre(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?oL:i;return function(s,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},oL,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:f,setOptions:function(y){var _=typeof y=="function"?y(f.options):y;g(),f.options=Object.assign({},o,f.options,_),f.scrollParents={reference:vu(s)?Gp(s):s.contextElement?Gp(s.contextElement):[],popper:Gp(l)};var x=Bre(Vre([].concat(r,f.options.modifiers)));return f.orderedModifiers=x.filter(function(O){return O.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var y=f.elements,_=y.reference,x=y.popper;if(aL(_,x)){f.rects={reference:Ure(_,ev(x),f.options.strategy==="fixed"),popper:wj(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.data)});for(var O=0;O<f.orderedModifiers.length;O++){if(f.reset===!0){f.reset=!1,O=-1;continue}var E=f.orderedModifiers[O],T=E.fn,k=E.options,A=k===void 0?{}:k,D=E.name;typeof T=="function"&&(f=T({state:f,options:A,name:D,instance:m})||f)}}}},update:zre(function(){return new Promise(function(w){m.forceUpdate(),w(f)})}),destroy:function(){g(),p=!0}};if(!aL(s,l))return m;m.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function v(){f.orderedModifiers.forEach(function(w){var y=w.name,_=w.options,x=_===void 0?{}:_,O=w.effect;if(typeof O=="function"){var E=O({state:f,name:y,instance:m,options:x}),T=function(){};d.push(E||T)}})}function g(){d.forEach(function(w){return w()}),d=[]}return m}}var Wre=[hre,Nre,dre,tre,Pre,Ere,Rre,lre,Cre],Yre=Hre({defaultModifiers:Wre}),Gre=typeof Element<"u",qre=typeof Map=="function",Kre=typeof Set=="function",Zre=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gy(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!gy(e[r],t[r]))return!1;return!0}var o;if(qre&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!gy(r.value[1],t.get(r.value[0])))return!1;return!0}if(Kre&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Zre&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Gre&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!gy(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Xre=function(t,n){try{return gy(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Qre=Tu(Xre);var Jre=[],eie=function(t,n,r){r===void 0&&(r={});var i=F.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Jre},a=F.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],u=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var v=m.state,g=Object.keys(v.elements);ju.flushSync(function(){l({styles:ZM(g.map(function(w){return[w,v.styles[w]||{}]})),attributes:ZM(g.map(function(w){return[w,v.attributes[w]]}))})})},requires:["computeStyles"]}},[]),f=F.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Qre(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),d=F.useRef();return XM(function(){d.current&&d.current.setOptions(f)},[f]),XM(function(){if(!(t==null||n==null)){var p=r.createPopper||Yre,m=p(t,n,f);return d.current=m,function(){m.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},tie=function(){},nie=function(){return Promise.resolve(null)},rie=[];function F7(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?rie:o,s=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,d=F.useContext(E7),p=F.useState(null),m=p[0],v=p[1],g=F.useState(null),w=g[0],y=g[1];F.useEffect(function(){DS(u,m)},[u,m]);var _=F.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,l,a,w]),x=eie(s||d,m,_),O=x.state,E=x.styles,T=x.forceUpdate,k=x.update,A=F.useMemo(function(){return{ref:v,style:E.popper,placement:O?O.placement:n,hasPopperEscaped:O&&O.modifiersData.hide?O.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:O&&O.modifiersData.hide?O.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:E.arrow,ref:y},forceUpdate:T||tie,update:k||nie}},[v,y,n,O,E,k,T]);return C7(f)(A)}var iie=function(){},oie=iie;const aie=Tu(oie);function sie(e){var t=e.children,n=e.innerRef,r=F.useContext(T7),i=F.useCallback(function(o){DS(n,o),k7(r,o)},[n,r]);return F.useEffect(function(){return function(){return DS(n,null)}},[]),F.useEffect(function(){aie(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),C7(t)({ref:i})}var Bh=M.createContext({}),U7=M.createContext({});function US(e){"@babel/helpers - typeof";return US=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},US(e)}var lie=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function $S(){return $S=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},$S.apply(this,arguments)}function as(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,t){if(e==null)return{};var n=cie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sL(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 die(e,t,n){return t&&sL(e.prototype,t),n&&sL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pie(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&&BS(e,t)}function BS(e,t){return BS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},BS(e,t)}function hie(e){var t=vie();return function(){var r=y0(e),i;if(t){var o=y0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return mie(this,i)}}function mie(e,t){if(t&&(US(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return us(e)}function us(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vie(){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 y0(e){return y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},y0(e)}var gie={a11y:U.bool,disabled:U.bool,direction:U.oneOf(["up","down","start","end","left","right"]),group:U.bool,isOpen:U.bool,nav:U.bool,active:U.bool,size:U.string,tag:ft,toggle:U.func,children:U.node,className:U.string,cssModule:U.object,dropup:U.bool,inNavbar:U.bool,setActiveFromChild:U.bool,menuRole:U.oneOf(["listbox","menu"])},yie={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},bie=[kt.space,kt.enter,kt.up,kt.down,kt.end,kt.home],L_=function(e){pie(n,e);var t=hie(n);function n(r){var i;return fie(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(us(i)),i.handleDocumentClick=i.handleDocumentClick.bind(us(i)),i.handleKeyDown=i.handleKeyDown.bind(us(i)),i.removeEvents=i.removeEvents.bind(us(i)),i.toggle=i.toggle.bind(us(i)),i.handleMenuRef=i.handleMenuRef.bind(us(i)),i.handleToggleRef=i.handleToggleRef.bind(us(i)),i.containerRef=M.createRef(),i.menuRef=M.createRef(),i.toggleRef=M.createRef(),i}return die(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!==kt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle(),l=s.contains(i.target),u=a&&a.contains(i.target)&&a!==i.target,f=!1;o&&(f=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((l&&!f||u)&&(i.type!=="keyup"||i.which===kt.tab))&&this.toggle(i)}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,l=kt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&((bie.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([kt.space,kt.enter,kt.up,kt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var _;return(_=o.getMenuItems()[0])===null||_===void 0?void 0:_.focus()});else if(this.props.isOpen&&l){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===kt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([kt.tab,kt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([kt.space,kt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([kt.down,kt.up].indexOf(i.which)>-1||[kt.n,kt.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),d=f.indexOf(i.target);kt.up===i.which||kt.p===i.which&&i.ctrlKey?d=d!==0?d-1:f.length-1:(kt.down===i.which||kt.n===i.which&&i.ctrlKey)&&(d=d===f.length-1?0:d+1),f[d].focus()}else if(kt.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(kt.home===i.which){var m=this.getMenuItems();m[0].focus()}else if(i.which>=48&&i.which<=90)for(var v=this.getMenuItems(),g=String.fromCharCode(i.which).toLowerCase(),w=0;w<v.length;w+=1){var y=v[w].textContent&&v[w].textContent[0].toLowerCase();if(y===g){v[w].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(o){return document.addEventListener(o,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.removeEventListener(o,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,o=this,a=ol(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,l=a.cssModule,u=a.direction,f=a.isOpen,d=a.group,p=a.size,m=a.nav,v=a.setActiveFromChild,g=a.active,w=a.tag;a.menuRole;var y=uie(a,lie),_=w||(m?"li":"div"),x=!1;v&&M.Children.map(this.props.children[1].props.children,function(E){E&&E.props.active&&(x=!0)});var O=qe(Xe(s,m&&g?"active":!1,v&&x?"active":!1,(i={"btn-group":d},as(i,"btn-group-".concat(p),!!p),as(i,"dropdown",!d),as(i,"dropup",u==="up"),as(i,"dropstart",u==="start"||u==="left"),as(i,"dropend",u==="end"||u==="right"),as(i,"show",f),as(i,"nav-item",m),i)),l);return this.context.insideInputGroup?M.createElement(Bh.Provider,{value:this.getContextValue()},M.createElement(KM,null,M.Children.map(this.props.children,function(E){return M.cloneElement(E,{onKeyDown:o.handleKeyDown})}))):M.createElement(Bh.Provider,{value:this.getContextValue()},M.createElement(KM,null,M.createElement(_,$S({},y,as({},typeof _=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:O}))))}}]),n}(M.Component);L_.propTypes=gie;L_.defaultProps=yie;L_.contextType=U7;const tv=L_;function zS(e){"@babel/helpers - typeof";return zS=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},zS(e)}var _ie=["className","cssModule","divider","tag","header","active","text"];function VS(){return VS=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},VS.apply(this,arguments)}function wie(e,t){if(e==null)return{};var n=xie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Oie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lL(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 Sie(e,t,n){return t&&lL(e.prototype,t),n&&lL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eie(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&&HS(e,t)}function HS(e,t){return HS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},HS(e,t)}function Tie(e){var t=kie();return function(){var r=b0(e),i;if(t){var o=b0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Cie(this,i)}}function Cie(e,t){if(t&&(zS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WS(e)}function WS(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 b0(e){return b0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b0(e)}var jie={children:U.node,active:U.bool,disabled:U.bool,divider:U.bool,tag:ft,header:U.bool,onClick:U.func,className:U.string,cssModule:U.object,toggle:U.bool,text:U.bool},Tj=function(e){Eie(n,e);var t=Tie(n);function n(r){var i;return Oie(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(WS(i)),i.getTabIndex=i.getTabIndex.bind(WS(i)),i}return Sie(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,l=a.header,u=a.divider,f=a.text;if(s||l||u||f){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,l=i.text;return o||a||s||l?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=ol(this.props,["toggle"]),s=a.className,l=a.cssModule,u=a.divider,f=a.tag,d=f===void 0?"button":f,p=a.header,m=a.active,v=a.text,g=wie(a,_ie),w=qe(Xe(s,{disabled:g.disabled,"dropdown-item":!u&&!p&&!v,active:m,"dropdown-header":p,"dropdown-divider":u,"dropdown-item-text":v}),l);return d==="button"&&(p?d="h6":u?d="div":g.href?d="a":v&&(d="span")),M.createElement(d,VS({type:d==="button"&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:i,role:o,className:w,onClick:this.onClick}))}}]),n}(M.Component);Tj.propTypes=jie;Tj.contextType=Bh;const ze=Tj;function YS(e){"@babel/helpers - typeof";return YS=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},YS(e)}var Pie=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function _0(){return _0=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},_0.apply(this,arguments)}function uL(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 zx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uL(Object(n),!0).forEach(function(r){Aie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nie(e){return Die(e)||Rie(e)||Lie(e)||Mie()}function Mie(){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 Lie(e,t){if(e){if(typeof e=="string")return GS(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 GS(e,t)}}function Rie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Die(e){if(Array.isArray(e))return GS(e)}function GS(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 Iie(e,t){if(e==null)return{};var n=Fie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cL(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 $ie(e,t,n){return t&&cL(e.prototype,t),n&&cL(e,n),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&&qS(e,t)}function qS(e,t){return qS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qS(e,t)}function zie(e){var t=Wie();return function(){var r=w0(e),i;if(t){var o=w0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vie(this,i)}}function Vie(e,t){if(t&&(YS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hie(e)}function Hie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wie(){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 w0(e){return w0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},w0(e)}var Yie={tag:ft,children:U.node.isRequired,dark:U.bool,end:U.bool,flip:U.bool,modifiers:U.array,className:U.string,cssModule:U.object,style:U.object,persist:U.bool,strategy:U.string,container:cf,updateOnSelect:U.bool,right:v7(U.bool,'Please use "end" instead.')},Gie={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},Cj=function(e){Bie(n,e);var t=zie(n);function n(){return Uie(this,n),t.apply(this,arguments)}return $ie(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,l=o.dark,u=o.end,f=o.right,d=o.tag,p=d===void 0?"div":d,m=o.flip,v=m===void 0?!0:m,g=o.modifiers,w=g===void 0?[]:g,y=o.persist,_=o.strategy,x=o.container,O=o.updateOnSelect,E=Iie(o,Pie),T=qe(Xe(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":u||f,show:this.context.isOpen}),s),k=p;if(y||this.context.isOpen&&!this.context.inNavbar){var A=Gie[this.context.direction]||"bottom",D=u||f?"end":"start",R="".concat(A,"-").concat(D),I=[].concat(Nie(w),[{name:"flip",enabled:!!v}]),z={};y&&(z.display="block",z.visibility=this.context.isOpen?"visible":"hidden");var G=M.createElement(F7,{placement:R,modifiers:I,strategy:_},function(Q){var Z=Q.ref,te=Q.style,X=Q.placement,$=Q.update,V=zx(zx(zx({},i.props.style),z),te),W=function(q){Z(q);var ee=i.context.onMenuRef;ee&&ee(q)};return M.createElement(k,_0({tabIndex:"-1",role:i.getRole(),ref:W},E,{style:V,"aria-hidden":!i.context.isOpen,className:T,"data-popper-placement":X,onClick:function(){return O&&$()}}))});return x?Jl.createPortal(G,Fh(x)):G}var H=this.context.onMenuRef;return M.createElement(k,_0({tabIndex:"-1",role:this.getRole()},E,{ref:H,"aria-hidden":!this.context.isOpen,className:T,"data-popper-placement":E.placement,"data-bs-popper":"static"}))}}]),n}(M.Component);Cj.propTypes=Yie;Cj.contextType=Bh;const ld=Cj;function KS(e){"@babel/helpers - typeof";return KS=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},KS(e)}var qie=["className","color","cssModule","caret","split","nav","tag","innerRef"];function Kie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x0(){return x0=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},x0.apply(this,arguments)}function Zie(e,t){if(e==null)return{};var n=Xie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Qie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fL(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 Jie(e,t,n){return t&&fL(e.prototype,t),n&&fL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eoe(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&&ZS(e,t)}function ZS(e,t){return ZS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZS(e,t)}function toe(e){var t=roe();return function(){var r=O0(e),i;if(t){var o=O0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return noe(this,i)}}function noe(e,t){if(t&&(KS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $7(e)}function $7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function roe(){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 O0(e){return O0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},O0(e)}var ioe={caret:U.bool,color:U.string,children:U.node,className:U.string,cssModule:U.object,disabled:U.bool,onClick:U.func,"aria-haspopup":U.bool,split:U.bool,tag:ft,nav:U.bool,innerRef:U.oneOfType([U.object,U.string,U.func])},ooe={color:"secondary","aria-haspopup":!0},R_=function(e){eoe(n,e);var t=toe(n);function n(r){var i;return Qie(this,n),i=t.call(this,r),i.onClick=i.onClick.bind($7(i)),i}return Jie(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,o=this.props,a=o.className,s=o.color,l=o.cssModule,u=o.caret,f=o.split,d=o.nav,p=o.tag,m=o.innerRef,v=Zie(o,qie),g=v["aria-label"]||"Toggle Dropdown",w=qe(Xe(a,{"dropdown-toggle":u||f,"dropdown-toggle-split":f,"nav-link":d}),l),y=typeof v.children<"u"?v.children:M.createElement("span",{className:"visually-hidden"},g),_;return d&&!p?(_="a",v.href="#"):p?_=p:(_=wt,v.color=s,v.cssModule=l),this.context.inNavbar?M.createElement(_,x0({},v,{className:w,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:y})):M.createElement(sie,{innerRef:m},function(x){var O=x.ref,E=function(k){O(k);var A=i.context.onToggleRef;A&&A(k)};return M.createElement(_,x0({},v,Kie({},typeof _=="string"?"ref":"innerRef",E),{className:w,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:y}))})}}]),n}(M.Component);R_.propTypes=ioe;R_.defaultProps=ooe;R_.contextType=Bh;const ud=R_;function aoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function XS(e,t){return XS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},XS(e,t)}function soe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,XS(e,t)}const dL={disabled:!1},B7=M.createContext(null);var Ep="unmounted",Pl="exited",Al="entering",dc="entered",QS="exiting",Ga=function(e){soe(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Pl,o.appearStatus=Al):l=dc:r.unmountOnExit||r.mountOnEnter?l=Ep:l=Pl,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Ep?{status:Pl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Al&&a!==dc&&(o=Al):(a===Al||a===dc)&&(o=QS)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Al?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Pl&&this.setState({status:Ep})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Jl.findDOMNode(this),s],u=l[0],f=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||dL.disabled){this.safeSetState({status:dc},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Al},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:dc},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Jl.findDOMNode(this);if(!o||dL.disabled){this.safeSetState({status:Pl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:QS},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Pl},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Jl.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ep)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=aoe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(B7.Provider,{value:null},typeof a=="function"?a(i,s):M.cloneElement(M.Children.only(a),s))},t}(M.Component);Ga.contextType=B7;Ga.propTypes={};function ec(){}Ga.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ec,onEntering:ec,onEntered:ec,onExit:ec,onExiting:ec,onExited:ec};Ga.UNMOUNTED=Ep;Ga.EXITED=Pl;Ga.ENTERING=Al;Ga.ENTERED=dc;Ga.EXITING=QS;const cd=Ga;var loe=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function S0(){return S0=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},S0.apply(this,arguments)}function uoe(e,t){if(e==null)return{};var n=coe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function coe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}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 zh(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){foe(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 foe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var doe=zh(zh({},cd.propTypes),{},{children:U.oneOfType([U.arrayOf(U.node),U.node]),tag:ft,baseClass:U.string,baseClassActive:U.string,className:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func])}),z7=zh(zh({},cd.defaultProps),{},{timeout:h0.Fade,appear:!0,enter:!0,exit:!0,in:!0});function jr(e){var t=F.useRef(null),n=e.tag,r=n===void 0?"div":n,i=e.baseClass,o=i===void 0?"fade":i,a=e.baseClassActive,s=a===void 0?"show":a,l=e.className,u=e.cssModule,f=e.children,d=e.innerRef,p=d===void 0?t:d,m=uoe(e,loe),v=m7(zh({defaultProps:z7},m),m0),g=ol(m,m0);return M.createElement(cd,S0({nodeRef:p},v),function(w){var y=w==="entered",_=qe(Xe(l,o,y&&s),u);return M.createElement(r,S0({className:_},g,{ref:p}),f)})}jr.propTypes=doe;jr.defaultProps=z7;function JS(e){"@babel/helpers - typeof";return JS=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},JS(e)}var poe=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],tc;function E0(){return E0=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},E0.apply(this,arguments)}function hoe(e,t){if(e==null)return{};var n=moe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function moe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function voe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hL(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&&hL(e.prototype,t),n&&hL(e,n),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&&eE(e,t)}function eE(e,t){return eE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},eE(e,t)}function boe(e){var t=woe();return function(){var r=T0(e),i;if(t){var o=T0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _oe(this,i)}}function _oe(e,t){if(t&&(JS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V7(e)}function V7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function woe(){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 T0(e){return T0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},T0(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 mf(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){Nc(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 Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xoe=mf(mf({},cd.propTypes),{},{horizontal:U.bool,isOpen:U.bool,children:U.oneOfType([U.arrayOf(U.node),U.node]),tag:ft,className:U.node,navbar:U.bool,cssModule:U.object,innerRef:U.shape({current:U.object})}),Ooe=mf(mf({},cd.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:h0.Collapse}),Soe=(tc={},Nc(tc,Sg.ENTERING,"collapsing"),Nc(tc,Sg.ENTERED,"collapse show"),Nc(tc,Sg.EXITING,"collapsing"),Nc(tc,Sg.EXITED,"collapse"),tc);function Eoe(e){return Soe[e]||"collapse"}var kj=function(e){yoe(n,e);var t=boe(n);function n(r){var i;return voe(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||M.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(o){i[o]=i[o].bind(V7(i))}),i}return goe(n,[{key:"onEntering",value:function(i,o){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,o)}},{key:"onEntered",value:function(i,o){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,o)}},{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,o=this.props,a=o.tag,s=o.horizontal,l=o.isOpen,u=o.className,f=o.navbar,d=o.cssModule,p=o.children;o.innerRef;var m=hoe(o,poe),v=this.state.dimension,g=m7(m,m0),w=ol(m,m0);return M.createElement(cd,E0({},g,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(y){var _=Eoe(y),x=qe(Xe(u,s&&"collapse-horizontal",_,f&&"navbar-collapse"),d),O=v===null?null:Nc({},s?"width":"height",v);return M.createElement(a,E0({},w,{style:mf(mf({},w.style),O),className:x,ref:i.nodeRef}),p)})}}]),n}(F.Component);kj.propTypes=xoe;kj.defaultProps=Ooe;const Toe=kj;var Coe=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function tE(){return tE=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},tE.apply(this,arguments)}function koe(e,t){if(e==null)return{};var n=joe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function joe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Poe={body:U.bool,className:U.string,color:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func]),inverse:U.bool,outline:U.bool,tag:ft};function ui(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,l=s===void 0?"div":s,u=e.innerRef,f=koe(e,Coe),d=qe(Xe(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return M.createElement(l,tE({},f,{className:d,ref:u}))}ui.propTypes=Poe;var Aoe=["className","cssModule","innerRef","tag"];function nE(){return nE=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},nE.apply(this,arguments)}function Noe(e,t){if(e==null)return{};var n=Moe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Moe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Loe={className:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func]),tag:ft};function vf(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Noe(e,Aoe),s=qe(Xe(t,"card-body"),n);return M.createElement(o,nE({},a,{className:s,ref:r}))}vf.propTypes=Loe;var Roe=["className","cssModule","tag"];function rE(){return rE=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},rE.apply(this,arguments)}function Doe(e,t){if(e==null)return{};var n=Ioe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Foe={className:U.string,cssModule:U.object,tag:ft};function H7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Doe(e,Roe),a=qe(Xe(t,"card-footer"),n);return M.createElement(i,rE({},o,{className:a}))}H7.propTypes=Foe;var Uoe=["className","cssModule","tag"];function iE(){return iE=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},iE.apply(this,arguments)}function $oe(e,t){if(e==null)return{};var n=Boe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Boe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zoe={className:U.string,cssModule:U.object,tag:ft};function gf(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=$oe(e,Uoe),a=qe(Xe(t,"card-header"),n);return M.createElement(i,iE({},o,{className:a}))}gf.propTypes=zoe;var Voe=["className","cssModule","tag"];function oE(){return oE=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},oE.apply(this,arguments)}function Hoe(e,t){if(e==null)return{};var n=Woe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Woe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Yoe={className:U.string,cssModule:U.object,tag:ft};function W7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=Hoe(e,Voe),a=qe(Xe(t,"card-text"),n);return M.createElement(i,oE({},o,{className:a}))}W7.propTypes=Yoe;var Goe=["className","cssModule","tag"];function aE(){return aE=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},aE.apply(this,arguments)}function qoe(e,t){if(e==null)return{};var n=Koe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Koe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Zoe={className:U.string,cssModule:U.object,tag:ft};function Y7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=qoe(e,Goe),a=qe(Xe(t,"card-title"),n);return M.createElement(i,aE({},o,{className:a}))}Y7.propTypes=Zoe;function sE(e){"@babel/helpers - typeof";return sE=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},sE(e)}var Xoe=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function lE(){return lE=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},lE.apply(this,arguments)}function vL(e){return tae(e)||eae(e)||Joe(e)||Qoe()}function Qoe(){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 Joe(e,t){if(e){if(typeof e=="string")return uE(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 uE(e,t)}}function eae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tae(e){if(Array.isArray(e))return uE(e)}function uE(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 nae(e,t){if(e==null)return{};var n=rae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function iae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gL(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 oae(e,t,n){return t&&gL(e.prototype,t),n&&gL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aae(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&&cE(e,t)}function cE(e,t){return cE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cE(e,t)}function sae(e){var t=uae();return function(){var r=C0(e),i;if(t){var o=C0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return lae(this,i)}}function lae(e,t){if(t&&(sE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tp(e)}function Tp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uae(){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 C0(e){return C0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},C0(e)}function yL(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 yy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yL(Object(n),!0).forEach(function(r){cae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fae(){}var dae={children:U.oneOfType([U.node,U.func]).isRequired,popperClassName:U.string,placement:U.string,placementPrefix:U.string,arrowClassName:U.string,hideArrow:U.bool,tag:ft,isOpen:U.bool,cssModule:U.object,offset:U.arrayOf(U.number),fallbackPlacements:U.array,flip:U.bool,container:cf,target:cf.isRequired,modifiers:U.array,strategy:U.string,boundariesElement:U.oneOfType([U.string,mj]),onClosed:U.func,fade:U.bool,transition:U.shape(jr.propTypes)},pae={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:fae,fade:!0,transition:yy({},jr.defaultProps)},jj=function(e){aae(n,e);var t=sae(n);function n(r){var i;return iae(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(Tp(i)),i.getTargetNode=i.getTargetNode.bind(Tp(i)),i.getRef=i.getRef.bind(Tp(i)),i.onClosed=i.onClosed.bind(Tp(i)),i.state={isOpen:r.isOpen},i}return oae(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 Fh(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Fh(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,l=i.flip;i.target;var u=i.offset,f=i.fallbackPlacements,d=i.placementPrefix,p=i.arrowClassName,m=i.hideArrow,v=i.popperClassName,g=i.tag;i.container;var w=i.modifiers,y=i.strategy,_=i.boundariesElement;i.onClosed;var x=i.fade,O=i.transition,E=i.placement,T=nae(i,Xoe),k=qe(Xe("arrow",p),o),A=qe(Xe(v,d?"".concat(d,"-auto"):""),this.props.cssModule),D=w.map(function(G){return G.name}),R=[{name:"offset",options:{offset:u}},{name:"flip",enabled:l,options:{fallbackPlacements:f}},{name:"preventOverflow",options:{boundary:_}}].filter(function(G){return!D.includes(G.name)}),I=[].concat(vL(R),vL(w)),z=yy(yy(yy({},jr.defaultProps),O),{},{baseClass:x?O.baseClass:"",timeout:x?O.timeout:0});return M.createElement(jr,lE({},z,T,{in:s,onExited:this.onClosed,tag:g}),M.createElement(F7,{referenceElement:this.targetNode,modifiers:I,placement:E,strategy:y},function(G){var H=G.ref,Q=G.style,Z=G.placement,te=G.isReferenceHidden,X=G.arrowProps,$=G.update;return M.createElement("div",{ref:H,style:Q,className:A,"data-popper-placement":Z,"data-popper-reference-hidden":te?"true":void 0},typeof a=="function"?a({update:$}):a,!m&&M.createElement("span",{ref:X.ref,className:k,style:X.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Jl.createPortal(M.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(M.Component);jj.propTypes=dae;jj.defaultProps=pae;const hae=jj;function fE(){return fE=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},fE.apply(this,arguments)}function Vh(e){"@babel/helpers - typeof";return Vh=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},Vh(e)}function mae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bL(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 vae(e,t,n){return t&&bL(e.prototype,t),n&&bL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gae(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&&dE(e,t)}function dE(e,t){return dE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dE(e,t)}function yae(e){var t=_ae();return function(){var r=k0(e),i;if(t){var o=k0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bae(this,i)}}function bae(e,t){if(t&&(Vh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zr(e)}function Zr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _ae(){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 k0(e){return k0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},k0(e)}var Pj={children:U.oneOfType([U.node,U.func]),placement:U.oneOf(Bte),target:cf.isRequired,container:cf,isOpen:U.bool,disabled:U.bool,hideArrow:U.bool,boundariesElement:U.oneOfType([U.string,mj]),className:U.string,innerClassName:U.string,arrowClassName:U.string,popperClassName:U.string,cssModule:U.object,toggle:U.func,autohide:U.bool,placementPrefix:U.string,delay:U.oneOfType([U.shape({show:U.number,hide:U.number}),U.number]),modifiers:U.array,strategy:U.string,offset:U.arrayOf(U.number),innerRef:U.oneOfType([U.func,U.string,U.object]),trigger:U.string,fade:U.bool,flip:U.bool},G7={show:0,hide:50},wae={isOpen:!1,hideArrow:!1,autohide:!1,delay:G7,toggle:function(){},trigger:"click",fade:!0};function q7(e,t){return t&&(e===t||t.contains(e))}function _L(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return q7(e,n)})[0]}var Aj=function(e){gae(n,e);var t=yae(n);function n(r){var i;return mae(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(Zr(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Zr(i)),i.removeTargetEvents=i.removeTargetEvents.bind(Zr(i)),i.toggle=i.toggle.bind(Zr(i)),i.showWithDelay=i.showWithDelay.bind(Zr(i)),i.hideWithDelay=i.hideWithDelay.bind(Zr(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(Zr(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(Zr(i)),i.show=i.show.bind(Zr(i)),i.hide=i.hide.bind(Zr(i)),i.onEscKeyDown=i.onEscKeyDown.bind(Zr(i)),i.getRef=i.getRef.bind(Zr(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return vae(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 o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||_L(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!q7(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&_L(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 o=this.props.innerRef;o&&(typeof o=="function"?o(i):Vh(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return Vh(o)==="object"?isNaN(o[i])?G7[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]: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 o=i.composedPath();this.currentTargetElement=o&&o[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,o,a){this._targets.forEach(function(s){s.addEventListener(i,o,a)})}},{key:"removeEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.removeEventListener(i,o,a)})}},{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=Fh(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 o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,l=a.cssModule,u=a.innerClassName,f=a.isOpen,d=a.hideArrow,p=a.boundariesElement,m=a.placement,v=a.placementPrefix,g=a.arrowClassName,w=a.popperClassName,y=a.container,_=a.modifiers,x=a.strategy,O=a.offset,E=a.fade,T=a.flip,k=a.children,A=ol(this.props,Object.keys(Pj)),D=qe(w,l),R=qe(u,l);return M.createElement(hae,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:p,placement:m,placementPrefix:v,arrowClassName:g,popperClassName:D,container:y,modifiers:_,strategy:x,offset:O,cssModule:l,fade:E,flip:T},function(I){var z=I.update;return M.createElement("div",fE({},A,{ref:i.getRef,className:R,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof k=="function"?k({update:z}):k)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(M.Component);Aj.propTypes=Pj;Aj.defaultProps=wae;const xae=Aj;var Oae=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function j0(){return j0=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},j0.apply(this,arguments)}function wL(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 Vx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wL(Object(n),!0).forEach(function(r){Sae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eae(e,t){if(e==null)return{};var n=Tae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cae={animated:U.bool,bar:U.bool,barAriaLabelledBy:U.string,barAriaValueText:U.string,barClassName:U.string,barStyle:U.object,children:U.node,className:U.string,cssModule:U.object,color:U.string,max:U.oneOfType([U.string,U.number]),min:U.oneOfType([U.string,U.number]),multi:U.bool,striped:U.bool,style:U.object,tag:ft,value:U.oneOfType([U.string,U.number])};function K7(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,l=s===void 0?0:s,u=e.max,f=u===void 0?100:u,d=e.animated,p=e.striped,m=e.color,v=e.bar,g=e.multi,w=e.tag,y=w===void 0?"div":w,_=e.style,x=_===void 0?{}:_,O=e.barStyle,E=O===void 0?{}:O,T=e.barAriaValueText,k=e.barAriaLabelledBy,A=Eae(e,Oae),D=HM(a)/HM(f)*100,R=qe(Xe(n,"progress"),i),I=qe(Xe("progress-bar",v&&n||r,d?"progress-bar-animated":null,m?"bg-".concat(m):null,p||d?"progress-bar-striped":null),i),z={className:I,style:Vx(Vx(Vx({},v?x:{}),E),{},{width:"".concat(D,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":l,"aria-valuemax":f,"aria-valuetext":T,"aria-labelledby":k,children:t};return v?M.createElement(y,j0({},A,z)):M.createElement(y,j0({},A,{style:x,className:R}),g?t:M.createElement("div",z))}K7.propTypes=Cae;function pE(e){"@babel/helpers - typeof";return pE=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},pE(e)}function kae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xL(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 jae(e,t,n){return t&&xL(e.prototype,t),n&&xL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pae(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&&hE(e,t)}function hE(e,t){return hE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hE(e,t)}function Aae(e){var t=Lae();return function(){var r=P0(e),i;if(t){var o=P0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Nae(this,i)}}function Nae(e,t){if(t&&(pE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mae(e)}function Mae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lae(){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 P0(e){return P0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},P0(e)}var Rae={children:U.node.isRequired,node:U.any},Z7=function(e){Pae(n,e);var t=Aae(n);function n(){return kae(this,n),t.apply(this,arguments)}return jae(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return vj?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Jl.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(M.Component);Z7.propTypes=Rae;const Dae=Z7;function mE(e){"@babel/helpers - typeof";return mE=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},mE(e)}function OL(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 nc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OL(Object(n),!0).forEach(function(r){pc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qp(){return qp=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},qp.apply(this,arguments)}function pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SL(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 Fae(e,t,n){return t&&SL(e.prototype,t),n&&SL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uae(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&&vE(e,t)}function vE(e,t){return vE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vE(e,t)}function $ae(e){var t=zae();return function(){var r=A0(e),i;if(t){var o=A0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bae(this,i)}}function Bae(e,t){if(t&&(mE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oi(e)}function Oi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zae(){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 A0(e){return A0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},A0(e)}function N0(){}var EL=U.shape(jr.propTypes),X7={autoFocus:U.bool,backdrop:U.oneOfType([U.bool,U.oneOf(["static"])]),backdropClassName:U.string,backdropTransition:EL,centered:U.bool,children:U.node,contentClassName:U.string,className:U.string,container:cf,cssModule:U.object,external:U.node,fade:U.bool,fullscreen:U.oneOfType([U.bool,U.oneOf(["sm","md","lg","xl"])]),innerRef:U.oneOfType([U.object,U.string,U.func]),isOpen:U.bool,keyboard:U.bool,labelledBy:U.string,modalClassName:U.string,modalTransition:EL,onClosed:U.func,onEnter:U.func,onExit:U.func,onOpened:U.func,returnFocusAfterClose:U.bool,role:U.string,scrollable:U.bool,size:U.string,toggle:U.func,trapFocus:U.bool,unmountOnClose:U.bool,wrapClassName:U.string,zIndex:U.oneOfType([U.number,U.string])},Vae=Object.keys(X7),Hae={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:N0,onClosed:N0,modalTransition:{timeout:h0.Modal},backdropTransition:{mountOnEnter:!0,timeout:h0.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},nv=function(e){Uae(n,e);var t=$ae(n);function n(r){var i;return Iae(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Oi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Oi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Oi(i)),i.handleEscape=i.handleEscape.bind(Oi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Oi(i)),i.handleTab=i.handleTab.bind(Oi(i)),i.onOpened=i.onOpened.bind(Oi(i)),i.onClosed=i.onClosed.bind(Oi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Oi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Oi(i)),i.trapFocus=i.trapFocus.bind(Oi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return Fae(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.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 o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var o=this.getFocusableChildren(),a=o.length;if(a!==0){for(var s=this.getFocusedChild(),l=0,u=0;u<a;u+=1)if(o[u]===s){l=u;break}i.shiftKey&&l===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&l===a-1&&(i.preventDefault(),o[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===kt.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,o){this.props.onOpened(),(this.props.modalTransition.onEntered||N0)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||N0)(i),o&&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,o=this.getFocusableChildren();try{i=document.activeElement}catch{i=o[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 o=this.getFocusableChildren(),a=0;a<o.length;a+=1)if(o[a]===i.target)return;o.length>0&&(i.preventDefault(),i.stopPropagation(),o[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=Fh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Ite(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),Fte(),n.openCount===0&&(document.body.className=Xe(document.body.className,qe("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=qe("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),h7(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=ol(this.props,Vae),s="modal-dialog";return M.createElement("div",qp({},a,{className:qe(Xe(s,this.props.className,(i={},pc(i,"modal-".concat(this.props.size),this.props.size),pc(i,"".concat(s,"-centered"),this.props.centered),pc(i,"".concat(s,"-scrollable"),this.props.scrollable),pc(i,"modal-fullscreen",this.props.fullscreen===!0),pc(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(u){o._dialog=u}}),M.createElement("div",{className:qe(Xe("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 o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,l=a.modalClassName,u=a.backdropClassName,f=a.cssModule,d=a.isOpen,p=a.backdrop,m=a.role,v=a.labelledBy,g=a.external,w=a.innerRef,y={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":v,"aria-modal":!0,role:m,tabIndex:"-1"},_=this.props.fade,x=nc(nc(nc({},jr.defaultProps),this.props.modalTransition),{},{baseClass:_?this.props.modalTransition.baseClass:"",timeout:_?this.props.modalTransition.timeout:0}),O=nc(nc(nc({},jr.defaultProps),this.props.backdropTransition),{},{baseClass:_?this.props.backdropTransition.baseClass:"",timeout:_?this.props.backdropTransition.timeout:0}),E=p&&(_?M.createElement(jr,qp({},O,{in:d&&!!p,cssModule:f,className:qe(Xe("modal-backdrop",u),f)})):M.createElement("div",{className:qe(Xe("modal-backdrop","show",u),f)}));return M.createElement(Dae,{node:this._element},M.createElement("div",{className:qe(s)},M.createElement(jr,qp({},y,x,{in:d,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:qe(Xe("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:w}),g,this.renderModalDialog()),E))}return null}}]),n}(M.Component);nv.propTypes=X7;nv.defaultProps=Hae;nv.openCount=0;nv.originalBodyOverflow=null;const qa=nv;var Wae=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function gE(){return gE=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},gE.apply(this,arguments)}function Yae(e,t){if(e==null)return{};var n=Gae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qae={children:U.node,className:U.string,close:U.object,closeAriaLabel:U.string,cssModule:U.object,tag:ft,toggle:U.func,wrapTag:ft};function Ka(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,l=e.wrapTag,u=l===void 0?"div":l,f=e.closeAriaLabel,d=f===void 0?"Close":f,p=e.close,m=Yae(e,Wae),v=qe(Xe(n,"modal-header"),r);return!p&&o&&(t=M.createElement("button",{type:"button",onClick:o,className:qe("btn-close",r),"aria-label":d})),M.createElement(u,gE({},m,{className:v}),M.createElement(s,{className:qe("modal-title",r)},i),p||t)}Ka.propTypes=qae;var Kae=["className","cssModule","tag"];function yE(){return yE=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},yE.apply(this,arguments)}function Zae(e,t){if(e==null)return{};var n=Xae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qae={className:U.string,cssModule:U.object,tag:ft};function na(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Zae(e,Kae),a=qe(Xe(t,"modal-body"),n);return M.createElement(i,yE({},o,{className:a}))}na.propTypes=Qae;var Jae=["className","cssModule","tag"];function bE(){return bE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bE.apply(this,arguments)}function ese(e,t){if(e==null)return{};var n=tse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nse={className:U.string,cssModule:U.object,tag:ft};function Nu(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=ese(e,Jae),a=qe(Xe(t,"modal-footer"),n);return M.createElement(i,bE({},o,{className:a}))}Nu.propTypes=nse;function _E(){return _E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_E.apply(this,arguments)}var rse={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function rv(e){var t=Xe("tooltip-arrow",e.arrowClassName),n=Xe("tooltip","show",e.popperClassName),r=Xe("tooltip-inner",e.innerClassName);return M.createElement(xae,_E({},e,{arrowClassName:t,popperClassName:n,innerClassName:r}))}rv.propTypes=Pj;rv.defaultProps=rse;var ise=["className","cssModule","tag","flush","horizontal","numbered"];function wE(){return wE=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},wE.apply(this,arguments)}function ose(e,t){if(e==null)return{};var n=ase(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var sse={className:U.string,cssModule:U.object,flush:U.bool,horizontal:U.oneOfType([U.bool,U.string]),numbered:U.bool,tag:ft},lse=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function Q7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,l=e.numbered,u=l===void 0?!1:l,f=ose(e,ise),d=qe(Xe(t,"list-group",o?"list-group-flush":lse(s),{"list-group-numbered":u}),n);return M.createElement(i,wE({},f,{className:d}))}Q7.propTypes=sse;var use=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function xE(){return xE=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},xE.apply(this,arguments)}function cse(e,t){if(e==null)return{};var n=fse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dse={children:U.node,row:U.bool,check:U.bool,switch:U.bool,inline:U.bool,floating:U.bool,noMargin:U.bool,disabled:U.bool,tag:ft,className:U.string,cssModule:U.object};function ni(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,l=e.noMargin,u=e.tag,f=u===void 0?"div":u,d=e.switch,p=cse(e,use),m=o||d,v=qe(Xe(t,r?"row":!1,m?"form-check":!1,d?"form-switch":!1,m||l?!1:"mb-3",m&&a?"form-check-inline":!1,m&&i?"disabled":!1,s&&"form-floating"),n);return f==="fieldset"&&(p.disabled=i),M.createElement(f,xE({},p,{className:v}))}ni.propTypes=dse;function OE(e){"@babel/helpers - typeof";return OE=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},OE(e)}var pse=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function SE(){return SE=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},SE.apply(this,arguments)}function hse(e,t){if(e==null)return{};var n=mse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function vse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TL(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 gse(e,t,n){return t&&TL(e.prototype,t),n&&TL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yse(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&&EE(e,t)}function EE(e,t){return EE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},EE(e,t)}function bse(e){var t=wse();return function(){var r=M0(e),i;if(t){var o=M0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _se(this,i)}}function _se(e,t){if(t&&(OE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TE(e)}function TE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wse(){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 M0(e){return M0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},M0(e)}var xse={children:U.node,type:U.string,size:U.oneOfType([U.number,U.string]),bsSize:U.string,valid:U.bool,invalid:U.bool,tag:ft,innerRef:U.oneOfType([U.object,U.func,U.string]),plaintext:U.bool,addon:U.bool,className:U.string,cssModule:U.object},J7=function(e){yse(n,e);var t=bse(n);function n(r){var i;return vse(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(TE(i)),i.focus=i.focus.bind(TE(i)),i}return gse(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,o=i.className,a=i.cssModule,s=i.type,l=s===void 0?"text":s,u=i.bsSize,f=i.valid,d=i.invalid,p=i.tag,m=i.addon,v=i.plaintext,g=i.innerRef,w=hse(i,pse),y=["switch","radio","checkbox"].indexOf(l)>-1,_=/\D/g,x=l==="textarea",O=l==="select",E=l==="range",T=p||(O||x?l:"input"),k="form-control";v?(k="".concat(k,"-plaintext"),T=p||"input"):E?k="form-range":O?k="form-select":y&&(m?k=null:k="form-check-input"),w.size&&_.test(w.size)&&(OS(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=w.size,delete w.size);var A=qe(Xe(o,d&&"is-invalid",f&&"is-valid",u?O?"form-select-".concat(u):"form-control-".concat(u):!1,k),a);return(T==="input"||p&&typeof p=="function")&&(w.type=l==="switch"?"checkbox":l),w.children&&!(v||l==="select"||typeof T!="string"||T==="select")&&(OS('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete w.children),M.createElement(T,SE({},w,{ref:g,className:A,"aria-invalid":d}))}}]),n}(M.Component);J7.propTypes=xse;const gu=J7;var Ose=["className","cssModule","tag","type","size"];function L0(){return L0=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},L0.apply(this,arguments)}function Sse(e,t){if(e==null)return{};var n=Ese(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ese(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tse={className:U.string,cssModule:U.object,size:U.string,tag:ft,type:U.string};function D_(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=Sse(e,Ose),s=qe(Xe(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?M.createElement(tv,L0({},a,{className:s})):M.createElement(U7.Provider,{value:{insideInputGroup:!0}},M.createElement(i,L0({},a,{className:s})))}D_.propTypes=Tse;var Cse=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function CE(){return CE=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},CE.apply(this,arguments)}function kse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jse(e,t){if(e==null)return{};var n=Pse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ase={children:U.node,className:U.string,listClassName:U.string,cssModule:U.object,size:U.string,tag:ft,listTag:ft,"aria-label":U.string};function Nj(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,l=s===void 0?"ul":s,u=e["aria-label"],f=u===void 0?"pagination":u,d=jse(e,Cse),p=qe(Xe(t),r),m=qe(Xe(n,"pagination",kse({},"pagination-".concat(i),!!i)),r);return M.createElement(a,{className:p,"aria-label":f},M.createElement(l,CE({},d,{className:m})))}Nj.propTypes=Ase;var Nse=["active","className","cssModule","disabled","tag"];function kE(){return kE=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},kE.apply(this,arguments)}function Mse(e,t){if(e==null)return{};var n=Lse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Rse={active:U.bool,children:U.node,className:U.string,cssModule:U.object,disabled:U.bool,tag:ft};function tu(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Mse(e,Nse),l=qe(Xe(n,"page-item",{active:t,disabled:i}),r);return M.createElement(a,kE({},s,{className:l}))}tu.propTypes=Rse;var Dse=["className","cssModule","next","previous","first","last","tag"];function jE(){return jE=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},jE.apply(this,arguments)}function Ise(e,t){if(e==null)return{};var n=Fse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Use={"aria-label":U.string,children:U.node,className:U.string,cssModule:U.object,next:U.bool,previous:U.bool,first:U.bool,last:U.bool,tag:ft};function nu(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,l=s===void 0?"a":s,u=Ise(e,Dse),f=qe(Xe(t,"page-link"),n),d;i?d="Previous":r?d="Next":o?d="First":a&&(d="Last");var p=e["aria-label"]||d,m;i?m="":r?m="":o?m="«":a&&(m="»");var v=e.children;return v&&Array.isArray(v)&&v.length===0&&(v=null),!u.href&&l==="a"&&(l="button"),(i||r||o||a)&&(v=[M.createElement("span",{"aria-hidden":"true",key:"caret"},v||m),M.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),M.createElement(l,jE({},u,{className:f,"aria-label":p}),v)}nu.propTypes=Use;var $se=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function PE(){return PE=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},PE.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 rp(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){Bse(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 Bse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zse(e,t){if(e==null)return{};var n=Vse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Hse={children:U.node,className:U.string,closeClassName:U.string,closeAriaLabel:U.string,color:U.string,cssModule:U.object,fade:U.bool,innerRef:U.oneOfType([U.object,U.string,U.func]),isOpen:U.bool,tag:ft,toggle:U.func,transition:U.shape(jr.propTypes)};function eB(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,l=e.color,u=l===void 0?"success":l,f=e.isOpen,d=f===void 0?!0:f,p=e.toggle,m=e.children,v=e.transition,g=v===void 0?rp(rp({},jr.defaultProps),{},{unmountOnExit:!0}):v,w=e.fade,y=w===void 0?!0:w,_=e.innerRef,x=zse(e,$se),O=qe(Xe(t,"alert","alert-".concat(u),{"alert-dismissible":p}),o),E=qe(Xe("btn-close",n),o),T=rp(rp(rp({},jr.defaultProps),g),{},{baseClass:y?g.baseClass:"",timeout:y?g.timeout:0});return M.createElement(jr,PE({},x,T,{tag:s,className:O,in:d,role:"alert",innerRef:_}),p?M.createElement("button",{type:"button",className:E,"aria-label":i,onClick:p}):null,m)}eB.propTypes=Hse;var Wse=["className","cssModule","tag","active","disabled","action","color"];function AE(){return AE=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},AE.apply(this,arguments)}function Yse(e,t){if(e==null)return{};var n=Gse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qse={action:U.bool,active:U.bool,className:U.string,cssModule:U.object,color:U.string,disabled:U.bool,tag:ft},Kse=function(t){t.preventDefault()};function tB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,l=e.color,u=Yse(e,Wse),f=qe(Xe(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,l?"list-group-item-".concat(l):!1,"list-group-item"),n);return a&&(u.onClick=Kse),M.createElement(i,AE({},u,{className:f}))}tB.propTypes=qse;function NE(e){"@babel/helpers - typeof";return NE=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},NE(e)}function kL(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 Zse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kL(Object(n),!0).forEach(function(r){Xse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kL(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 ME(){return ME=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},ME.apply(this,arguments)}function Qse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jL(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 Jse(e,t,n){return t&&jL(e.prototype,t),n&&jL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ele(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&&LE(e,t)}function LE(e,t){return LE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LE(e,t)}function tle(e){var t=rle();return function(){var r=R0(e),i;if(t){var o=R0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nle(this,i)}}function nle(e,t){if(t&&(NE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nB(e)}function nB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rle(){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 R0(e){return R0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},R0(e)}var ile=["defaultOpen"],iv=function(e){ele(n,e);var t=tle(n);function n(r){var i;return Qse(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(nB(i)),i}return Jse(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return M.createElement(tv,ME({isOpen:this.state.isOpen,toggle:this.toggle},ol(this.props,ile)))}}]),n}(F.Component);iv.propTypes=Zse({defaultOpen:U.bool,onToggle:U.func},tv.propTypes);function RE(e){"@babel/helpers - typeof";return RE=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},RE(e)}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 ole(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){ale(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 ale(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DE(){return DE=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},DE.apply(this,arguments)}function sle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AL(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 lle(e,t,n){return t&&AL(e.prototype,t),n&&AL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ule(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&&IE(e,t)}function IE(e,t){return IE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},IE(e,t)}function cle(e){var t=dle();return function(){var r=D0(e),i;if(t){var o=D0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return fle(this,i)}}function fle(e,t){if(t&&(RE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rB(e)}function rB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dle(){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 D0(e){return D0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},D0(e)}var ple=["defaultOpen"],qr=function(e){ule(n,e);var t=cle(n);function n(r){var i;return sle(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(rB(i)),i}return lle(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return M.createElement(rv,DE({isOpen:this.state.isOpen,toggle:this.toggle},ol(this.props,ple)))}}]),n}(F.Component);qr.propTypes=ole({defaultOpen:U.bool},rv.propTypes);function iB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hle(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var oB={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(oB);var mle=oB.exports;const Li=iB(mle),vle=e=>({error:"border-danger",default:""})[e],gle=e=>({error:"text-danger",default:"text-muted"})[e],Da=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Li({"col-md-12":i,"col-md-10 offset-md-1":!i});return b.jsx(kr,{className:Li("g-0",e),children:b.jsx("div",{className:o,children:b.jsx(ui,{className:vle(r),body:!0,children:b.jsxs("h3",{className:Li("text-center mb-0",gle(r)),children:[n&&b.jsx(Le,{icon:k$,spin:!0}),n&&b.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},vn=({title:e,children:t,bodyClassName:n,...r})=>b.jsxs(ui,{...r,children:[e&&b.jsx(gf,{role:"heading","aria-level":4,children:e}),b.jsx(vf,{className:n,children:t})]}),ii=({children:e,type:t,className:n,small:r=!1})=>b.jsx(kr,{className:n,children:b.jsx("div",{className:Li({"col-md-10 offset-md-1":!r,"col-12":r}),children:b.jsx(vn,{role:"document",className:Li("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Li({"p-2":r}),children:e})})});let Tg;const yle=new Uint8Array(16);function ble(){if(!Tg&&(Tg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Tg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Tg(yle)}const ir=[];for(let e=0;e<256;++e)ir.push((e+256).toString(16).slice(1));function _le(e,t=0){return ir[e[t+0]]+ir[e[t+1]]+ir[e[t+2]]+ir[e[t+3]]+"-"+ir[e[t+4]]+ir[e[t+5]]+"-"+ir[e[t+6]]+ir[e[t+7]]+"-"+ir[e[t+8]]+ir[e[t+9]]+"-"+ir[e[t+10]]+ir[e[t+11]]+ir[e[t+12]]+ir[e[t+13]]+ir[e[t+14]]+ir[e[t+15]]}const wle=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),NL={randomUUID:wle};function xle(e,t,n){if(NL.randomUUID&&!t&&!e)return NL.randomUUID();e=e||{};const r=e.random||(e.rng||ble)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return _le(r)}const En=(e=!1)=>{const[t,n]=F.useState(e),r=F.useCallback(()=>n(a=>!a),[]),i=F.useCallback(()=>n(!0),[]),o=F.useCallback(()=>n(!1),[]);return[t,r,i,o]},aB=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=F.useState(e),a=F.useRef(e),s=F.useRef(),l=F.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,l]},I_=()=>{const{current:e}=F.useRef(`dom-${xle()}`);return e},sl=()=>F.useRef(null),sB=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=I_(),s=f=>t==null?void 0:t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},u=o?{display:"inline-block"}:{};return b.jsxs("span",{className:Li("form-check",l,n),style:u,children:[b.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),b.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},lB=e=>b.jsx(sB,{type:"checkbox",...e}),yf=e=>b.jsx(sB,{type:"switch",...e}),fd=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>b.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[b.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),by=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=I_();return b.jsx(fd,{label:b.jsxs(b.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:l,children:b.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:u=>n(u.target.value)})})},Ole=500;let _y;const ML=()=>{_y&&clearTimeout(_y),_y=null},ov=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=F.useState(i),l=(u,f=Ole)=>{s(u),ML(),_y=o(()=>{e(u),ML()},f)};return b.jsxs("div",{className:Li("search-field",t),children:[b.jsx("input",{type:"text",className:Li("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:u=>l(u.target.value)}),b.jsx(Le,{icon:TJ,className:"search-field__icon"}),b.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},Za=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:l,size:u,...f})=>{const[d,p]=En(),m=Li("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),v={minWidth:s&&`${s}px`};return b.jsxs(tv,{isOpen:d,toggle:p,disabled:t,className:i,children:[b.jsx(ud,{size:u,caret:!o,className:m,color:"primary",...f,children:e}),b.jsx(ld,{className:"w-100",end:a,style:v,children:r})]})},F_=({children:e,minWidth:t,label:n="Options"})=>b.jsx(Za,{text:b.jsx(Le,{className:"px-1",icon:gJ}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Kp=({children:e,...t})=>b.jsx(yj,{children:b.jsx(O7,{className:"nav-pills__nav-link",tag:p$,...t,children:e})}),uB=({children:e,fill:t=!1,className:n=""})=>b.jsx(ui,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:b.jsx(gj,{pills:!0,fill:t,children:F.Children.map(e,r=>{if(!F.isValidElement(r)||r.type!==Kp)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),U_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",cB=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),Sle=e=>e.dir?`${e.field}-${e.dir}`:void 0,Ele=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:o=!0}){const a=s=>()=>{const l=U_(s,t.field,t.dir);n(l?s:void 0,l)};return b.jsxs(iv,{children:[b.jsxs(ud,{caret:!0,color:r?"primary":"link",className:Li({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&b.jsx(b.Fragment,{children:"Order by"}),r&&!t.field&&b.jsx("i",{children:"Order by..."}),r&&t.field&&b.jsxs(b.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",b.jsx("small",{children:t.dir??"DESC"})]})]}),b.jsxs(ld,{end:i,className:Li("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>b.jsxs(ze,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&b.jsx(Le,{icon:t.dir==="ASC"?wJ:sJ,className:"ordering-dropdown__sort-icon"})]},s)),b.jsx(ze,{divider:!0}),b.jsx(ze,{disabled:!t.field,onClick:()=>n(),children:b.jsx("i",{children:"Clear selection"})})]})]})}const I0="#4696e5",Tle="rgba(70, 150, 229, 0.4)",FE="#f77f28",Cle="rgba(247, 127, 40, 0.4)",kle="white",jle="#161b22",Ple=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},Mj=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"};var Ale=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0},LL=typeof Symbol<"u"&&Symbol,Nle=Ale,Mle=function(){return typeof LL!="function"||typeof Symbol!="function"||typeof LL("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Nle()},RL={foo:{}},Lle=Object,Rle=function(){return{__proto__:RL}.foo===RL.foo&&!({__proto__:null}instanceof Lle)},Dle="Function.prototype.bind called on incompatible ",Hx=Array.prototype.slice,Ile=Object.prototype.toString,Fle="[object Function]",Ule=function(e){var t=this;if(typeof t!="function"||Ile.call(t)!==Fle)throw new TypeError(Dle+t);for(var n=Hx.call(arguments,1),r,i=function(){if(this instanceof r){var u=t.apply(this,n.concat(Hx.call(arguments)));return Object(u)===u?u:this}else return t.apply(e,n.concat(Hx.call(arguments)))},o=Math.max(0,t.length-n.length),a=[],s=0;s<o;s++)a.push("$"+s);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var l=function(){};l.prototype=t.prototype,r.prototype=new l,l.prototype=null}return r},$le=Ule,Lj=Function.prototype.bind||$le,Ble=Lj,zle=Ble.call(Function.call,Object.prototype.hasOwnProperty),pt,bf=SyntaxError,fB=Function,Kc=TypeError,Wx=function(e){try{return fB('"use strict"; return ('+e+").constructor;")()}catch{}},ru=Object.getOwnPropertyDescriptor;if(ru)try{ru({},"")}catch{ru=null}var Yx=function(){throw new Kc},Vle=ru?function(){try{return arguments.callee,Yx}catch{try{return ru(arguments,"callee").get}catch{return Yx}}}():Yx,rc=Mle(),Hle=Rle(),$n=Object.getPrototypeOf||(Hle?function(e){return e.__proto__}:null),hc={},Wle=typeof Uint8Array>"u"||!$n?pt:$n(Uint8Array),iu={"%AggregateError%":typeof AggregateError>"u"?pt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pt:ArrayBuffer,"%ArrayIteratorPrototype%":rc&&$n?$n([][Symbol.iterator]()):pt,"%AsyncFromSyncIteratorPrototype%":pt,"%AsyncFunction%":hc,"%AsyncGenerator%":hc,"%AsyncGeneratorFunction%":hc,"%AsyncIteratorPrototype%":hc,"%Atomics%":typeof Atomics>"u"?pt:Atomics,"%BigInt%":typeof BigInt>"u"?pt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?pt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pt:FinalizationRegistry,"%Function%":fB,"%GeneratorFunction%":hc,"%Int8Array%":typeof Int8Array>"u"?pt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":rc&&$n?$n($n([][Symbol.iterator]())):pt,"%JSON%":typeof JSON=="object"?JSON:pt,"%Map%":typeof Map>"u"?pt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!rc||!$n?pt:$n(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pt:Promise,"%Proxy%":typeof Proxy>"u"?pt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?pt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!rc||!$n?pt:$n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":rc&&$n?$n(""[Symbol.iterator]()):pt,"%Symbol%":rc?Symbol:pt,"%SyntaxError%":bf,"%ThrowTypeError%":Vle,"%TypedArray%":Wle,"%TypeError%":Kc,"%Uint8Array%":typeof Uint8Array>"u"?pt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?pt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pt:WeakSet};if($n)try{null.error}catch(e){var Yle=$n($n(e));iu["%Error.prototype%"]=Yle}var Gle=function e(t){var n;if(t==="%AsyncFunction%")n=Wx("async function () {}");else if(t==="%GeneratorFunction%")n=Wx("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Wx("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&$n&&(n=$n(i.prototype))}return iu[t]=n,n},DL={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},sv=Lj,F0=zle,qle=sv.call(Function.call,Array.prototype.concat),Kle=sv.call(Function.apply,Array.prototype.splice),IL=sv.call(Function.call,String.prototype.replace),U0=sv.call(Function.call,String.prototype.slice),Zle=sv.call(Function.call,RegExp.prototype.exec),Xle=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qle=/\\(\\)?/g,Jle=function(e){var t=U0(e,0,1),n=U0(e,-1);if(t==="%"&&n!=="%")throw new bf("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new bf("invalid intrinsic syntax, expected opening `%`");var r=[];return IL(e,Xle,function(i,o,a,s){r[r.length]=a?IL(s,Qle,"$1"):o||i}),r},eue=function(e,t){var n=e,r;if(F0(DL,n)&&(r=DL[n],n="%"+r[0]+"%"),F0(iu,n)){var i=iu[n];if(i===hc&&(i=Gle(n)),typeof i>"u"&&!t)throw new Kc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new bf("intrinsic "+e+" does not exist!")},Rj=function(e,t){if(typeof e!="string"||e.length===0)throw new Kc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Kc('"allowMissing" argument must be a boolean');if(Zle(/^%?[^%]*%?$/,e)===null)throw new bf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Jle(e),r=n.length>0?n[0]:"",i=eue("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],Kle(n,qle([0,1],l)));for(var u=1,f=!0;u<n.length;u+=1){var d=n[u],p=U0(d,0,1),m=U0(d,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new bf("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),r+="."+d,o="%"+r+"%",F0(iu,o))a=iu[o];else if(a!=null){if(!(d in a)){if(!t)throw new Kc("base intrinsic for "+e+" exists, but the property is not available.");return}if(ru&&u+1>=n.length){var v=ru(a,d);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[d]}else f=F0(a,d),a=a[d];f&&!s&&(iu[o]=a)}}return a},dB={exports:{}};(function(e){var t=Lj,n=Rj,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(f){var d=o(t,i,arguments);if(a&&s){var p=a(d,"length");p.configurable&&s(d,"length",{value:1+l(0,f.length-(arguments.length-1))})}return d};var u=function(){return o(t,r,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u})(dB);var tue=dB.exports,pB=Rj,hB=tue,nue=hB(pB("String.prototype.indexOf")),rue=function(e,t){var n=pB(e,!!t);return typeof n=="function"&&nue(e,".prototype.")>-1?hB(n):n};const iue={},oue=Object.freeze(Object.defineProperty({__proto__:null,default:iue},Symbol.toStringTag,{value:"Module"})),aue=hle(oue);var Dj=typeof Map=="function"&&Map.prototype,Gx=Object.getOwnPropertyDescriptor&&Dj?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,$0=Dj&&Gx&&typeof Gx.get=="function"?Gx.get:null,FL=Dj&&Map.prototype.forEach,Ij=typeof Set=="function"&&Set.prototype,qx=Object.getOwnPropertyDescriptor&&Ij?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,B0=Ij&&qx&&typeof qx.get=="function"?qx.get:null,UL=Ij&&Set.prototype.forEach,sue=typeof WeakMap=="function"&&WeakMap.prototype,Zp=sue?WeakMap.prototype.has:null,lue=typeof WeakSet=="function"&&WeakSet.prototype,Xp=lue?WeakSet.prototype.has:null,uue=typeof WeakRef=="function"&&WeakRef.prototype,$L=uue?WeakRef.prototype.deref:null,cue=Boolean.prototype.valueOf,fue=Object.prototype.toString,due=Function.prototype.toString,pue=String.prototype.match,Fj=String.prototype.slice,Cs=String.prototype.replace,hue=String.prototype.toUpperCase,BL=String.prototype.toLowerCase,mB=RegExp.prototype.test,zL=Array.prototype.concat,Lo=Array.prototype.join,mue=Array.prototype.slice,VL=Math.floor,UE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Kx=Object.getOwnPropertySymbols,$E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,_f=typeof Symbol=="function"&&typeof Symbol.iterator=="object",br=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_f||"symbol")?Symbol.toStringTag:null,vB=Object.prototype.propertyIsEnumerable,HL=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function WL(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||mB.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-VL(-e):VL(e);if(r!==e){var i=String(r),o=Fj.call(t,i.length+1);return Cs.call(i,n,"$&_")+"."+Cs.call(Cs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Cs.call(t,n,"$&_")}var BE=aue,YL=BE.custom,GL=yB(YL)?YL:null,vue=function e(t,n,r,i){var o=n||{};if(ys(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ys(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ys(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ys(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ys(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return _B(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?WL(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?WL(t,u):u}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return zE(t)?"[Array]":"[Object]";var d=Lue(o,r);if(typeof i>"u")i=[];else if(bB(i,t)>=0)return"[Circular]";function p(G,H,Q){if(H&&(i=mue.call(i),i.push(H)),Q){var Z={depth:o.depth};return ys(o,"quoteStyle")&&(Z.quoteStyle=o.quoteStyle),e(G,Z,r+1,i)}return e(G,o,r+1,i)}if(typeof t=="function"&&!qL(t)){var m=Eue(t),v=Cg(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+Lo.call(v,", ")+" }":"")}if(yB(t)){var g=_f?Cs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):$E.call(t);return typeof t=="object"&&!_f?ip(g):g}if(Aue(t)){for(var w="<"+BL.call(String(t.nodeName)),y=t.attributes||[],_=0;_<y.length;_++)w+=" "+y[_].name+"="+gB(gue(y[_].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+BL.call(String(t.nodeName))+">",w}if(zE(t)){if(t.length===0)return"[]";var x=Cg(t,p);return d&&!Mue(x)?"["+VE(x,d)+"]":"[ "+Lo.call(x,", ")+" ]"}if(bue(t)){var O=Cg(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!vB.call(t,"cause")?"{ ["+String(t)+"] "+Lo.call(zL.call("[cause]: "+p(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Lo.call(O,", ")+" }"}if(typeof t=="object"&&a){if(GL&&typeof t[GL]=="function"&&BE)return BE(t,{depth:f-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Tue(t)){var E=[];return FL&&FL.call(t,function(G,H){E.push(p(H,t,!0)+" => "+p(G,t))}),KL("Map",$0.call(t),E,d)}if(jue(t)){var T=[];return UL&&UL.call(t,function(G){T.push(p(G,t))}),KL("Set",B0.call(t),T,d)}if(Cue(t))return Zx("WeakMap");if(Pue(t))return Zx("WeakSet");if(kue(t))return Zx("WeakRef");if(wue(t))return ip(p(Number(t)));if(Oue(t))return ip(p(UE.call(t)));if(xue(t))return ip(cue.call(t));if(_ue(t))return ip(p(String(t)));if(!yue(t)&&!qL(t)){var k=Cg(t,p),A=HL?HL(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",R=!A&&br&&Object(t)===t&&br in t?Fj.call(ll(t),8,-1):D?"Object":"",I=A||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",z=I+(R||D?"["+Lo.call(zL.call([],R||[],D||[]),": ")+"] ":"");return k.length===0?z+"{}":d?z+"{"+VE(k,d)+"}":z+"{ "+Lo.call(k,", ")+" }"}return String(t)};function gB(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function gue(e){return Cs.call(String(e),/"/g,"&quot;")}function zE(e){return ll(e)==="[object Array]"&&(!br||!(typeof e=="object"&&br in e))}function yue(e){return ll(e)==="[object Date]"&&(!br||!(typeof e=="object"&&br in e))}function qL(e){return ll(e)==="[object RegExp]"&&(!br||!(typeof e=="object"&&br in e))}function bue(e){return ll(e)==="[object Error]"&&(!br||!(typeof e=="object"&&br in e))}function _ue(e){return ll(e)==="[object String]"&&(!br||!(typeof e=="object"&&br in e))}function wue(e){return ll(e)==="[object Number]"&&(!br||!(typeof e=="object"&&br in e))}function xue(e){return ll(e)==="[object Boolean]"&&(!br||!(typeof e=="object"&&br in e))}function yB(e){if(_f)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!$E)return!1;try{return $E.call(e),!0}catch{}return!1}function Oue(e){if(!e||typeof e!="object"||!UE)return!1;try{return UE.call(e),!0}catch{}return!1}var Sue=Object.prototype.hasOwnProperty||function(e){return e in this};function ys(e,t){return Sue.call(e,t)}function ll(e){return fue.call(e)}function Eue(e){if(e.name)return e.name;var t=pue.call(due.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function bB(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Tue(e){if(!$0||!e||typeof e!="object")return!1;try{$0.call(e);try{B0.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Cue(e){if(!Zp||!e||typeof e!="object")return!1;try{Zp.call(e,Zp);try{Xp.call(e,Xp)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function kue(e){if(!$L||!e||typeof e!="object")return!1;try{return $L.call(e),!0}catch{}return!1}function jue(e){if(!B0||!e||typeof e!="object")return!1;try{B0.call(e);try{$0.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Pue(e){if(!Xp||!e||typeof e!="object")return!1;try{Xp.call(e,Xp);try{Zp.call(e,Zp)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Aue(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function _B(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return _B(Fj.call(e,0,t.maxStringLength),t)+r}var i=Cs.call(Cs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Nue);return gB(i,"single",t)}function Nue(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+hue.call(t.toString(16))}function ip(e){return"Object("+e+")"}function Zx(e){return e+" { ? }"}function KL(e,t,n,r){var i=r?VE(n,r):Lo.call(n,", ");return e+" ("+t+") {"+i+"}"}function Mue(e){for(var t=0;t<e.length;t++)if(bB(e[t],`
`)>=0)return!1;return!0}function Lue(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Lo.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Lo.call(Array(t+1),n)}}function VE(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+Lo.call(e,","+n)+`
`+t.prev}function Cg(e,t){var n=zE(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=ys(e,i)?t(e[i],e):""}var o=typeof Kx=="function"?Kx(e):[],a;if(_f){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)ys(e,l)&&(n&&String(Number(l))===l&&l<e.length||_f&&a["$"+l]instanceof Symbol||(mB.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof Kx=="function")for(var u=0;u<o.length;u++)vB.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var Uj=Rj,dd=rue,Rue=vue,Due=Uj("%TypeError%"),kg=Uj("%WeakMap%",!0),jg=Uj("%Map%",!0),Iue=dd("WeakMap.prototype.get",!0),Fue=dd("WeakMap.prototype.set",!0),Uue=dd("WeakMap.prototype.has",!0),$ue=dd("Map.prototype.get",!0),Bue=dd("Map.prototype.set",!0),zue=dd("Map.prototype.has",!0),$j=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Vue=function(e,t){var n=$j(e,t);return n&&n.value},Hue=function(e,t,n){var r=$j(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Wue=function(e,t){return!!$j(e,t)},Yue=function(){var e,t,n,r={assert:function(i){if(!r.has(i))throw new Due("Side channel does not contain "+Rue(i))},get:function(i){if(kg&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Iue(e,i)}else if(jg){if(t)return $ue(t,i)}else if(n)return Vue(n,i)},has:function(i){if(kg&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Uue(e,i)}else if(jg){if(t)return zue(t,i)}else if(n)return Wue(n,i);return!1},set:function(i,o){kg&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new kg),Fue(e,i,o)):jg?(t||(t=new jg),Bue(t,i,o)):(n||(n={key:{},next:null}),Hue(n,i,o))}};return r},Gue=String.prototype.replace,que=/%20/g,Xx={RFC1738:"RFC1738",RFC3986:"RFC3986"},Bj={default:Xx.RFC3986,formatters:{RFC1738:function(e){return Gue.call(e,que,"+")},RFC3986:function(e){return String(e)}},RFC1738:Xx.RFC1738,RFC3986:Xx.RFC3986},Kue=Bj,Qx=Object.prototype.hasOwnProperty,Fl=Array.isArray,Po=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Zue=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Fl(n)){for(var r=[],i=0;i<n.length;++i)typeof n[i]<"u"&&r.push(n[i]);t.obj[t.prop]=r}}},wB=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(n[r]=e[r]);return n},Xue=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Fl(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Qx.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return Fl(t)&&!Fl(n)&&(i=wB(t,r)),Fl(t)&&Fl(n)?(n.forEach(function(o,a){if(Qx.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,r):t.push(o)}else t[a]=o}),t):Object.keys(n).reduce(function(o,a){var s=n[a];return Qx.call(o,a)?o[a]=e(o[a],s,r):o[a]=s,o},i)},Que=function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=t[r],n},e)},Jue=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},ece=function(e,t,n,r,i){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var a="",s=0;s<o.length;++s){var l=o.charCodeAt(s);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Kue.RFC1738&&(l===40||l===41)){a+=o.charAt(s);continue}if(l<128){a=a+Po[l];continue}if(l<2048){a=a+(Po[192|l>>6]+Po[128|l&63]);continue}if(l<55296||l>=57344){a=a+(Po[224|l>>12]+Po[128|l>>6&63]+Po[128|l&63]);continue}s+=1,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a+=Po[240|l>>18]+Po[128|l>>12&63]+Po[128|l>>6&63]+Po[128|l&63]}return a},tce=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],u=o[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(t.push({obj:o,prop:l}),n.push(u))}return Zue(t),e},nce=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},rce=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},ice=function(e,t){return[].concat(e,t)},oce=function(e,t){if(Fl(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},xB={arrayToObject:wB,assign:Que,combine:ice,compact:tce,decode:Jue,encode:ece,isBuffer:rce,isRegExp:nce,maybeMap:oce,merge:Xue},OB=Yue,wy=xB,Qp=Bj,ace=Object.prototype.hasOwnProperty,ZL={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},ha=Array.isArray,sce=Array.prototype.push,SB=function(e,t){sce.apply(e,ha(t)?t:[t])},lce=Date.prototype.toISOString,XL=Qp.default,hr={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:wy.encode,encodeValuesOnly:!1,format:XL,formatter:Qp.formatters[XL],indices:!1,serializeDate:function(e){return lce.call(e)},skipNulls:!1,strictNullHandling:!1},uce=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Jx={},cce=function e(t,n,r,i,o,a,s,l,u,f,d,p,m,v,g,w){for(var y=t,_=w,x=0,O=!1;(_=_.get(Jx))!==void 0&&!O;){var E=_.get(t);if(x+=1,typeof E<"u"){if(E===x)throw new RangeError("Cyclic object value");O=!0}typeof _.get(Jx)>"u"&&(x=0)}if(typeof l=="function"?y=l(n,y):y instanceof Date?y=d(y):r==="comma"&&ha(y)&&(y=wy.maybeMap(y,function(Z){return Z instanceof Date?d(Z):Z})),y===null){if(o)return s&&!v?s(n,hr.encoder,g,"key",p):n;y=""}if(uce(y)||wy.isBuffer(y)){if(s){var T=v?n:s(n,hr.encoder,g,"key",p);return[m(T)+"="+m(s(y,hr.encoder,g,"value",p))]}return[m(n)+"="+m(String(y))]}var k=[];if(typeof y>"u")return k;var A;if(r==="comma"&&ha(y))v&&s&&(y=wy.maybeMap(y,s)),A=[{value:y.length>0?y.join(",")||null:void 0}];else if(ha(l))A=l;else{var D=Object.keys(y);A=u?D.sort(u):D}for(var R=i&&ha(y)&&y.length===1?n+"[]":n,I=0;I<A.length;++I){var z=A[I],G=typeof z=="object"&&typeof z.value<"u"?z.value:y[z];if(!(a&&G===null)){var H=ha(y)?typeof r=="function"?r(R,z):R:R+(f?"."+z:"["+z+"]");w.set(t,x);var Q=OB();Q.set(Jx,w),SB(k,e(G,H,r,i,o,a,r==="comma"&&v&&ha(y)?null:s,l,u,f,d,p,m,v,g,Q))}}return k},fce=function(e){if(!e)return hr;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||hr.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Qp.default;if(typeof e.format<"u"){if(!ace.call(Qp.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Qp.formatters[n],i=hr.filter;return(typeof e.filter=="function"||ha(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:hr.addQueryPrefix,allowDots:typeof e.allowDots>"u"?hr.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:hr.charsetSentinel,delimiter:typeof e.delimiter>"u"?hr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:hr.encode,encoder:typeof e.encoder=="function"?e.encoder:hr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:hr.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:hr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:hr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:hr.strictNullHandling}},dce=function(e,t){var n=e,r=fce(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ha(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s;t&&t.arrayFormat in ZL?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=ZL[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=OB(),d=0;d<i.length;++d){var p=i[d];r.skipNulls&&n[p]===null||SB(a,cce(n[p],p,l,u,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var m=a.join(r.delimiter),v=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""},wf=xB,HE=Object.prototype.hasOwnProperty,pce=Array.isArray,Fn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:wf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},hce=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},EB=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},mce="utf8=%26%2310003%3B",vce="utf8=%E2%9C%93",gce=function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,s,l=t.charset;if(t.charsetSentinel)for(s=0;s<o.length;++s)o[s].indexOf("utf8=")===0&&(o[s]===vce?l="utf-8":o[s]===mce&&(l="iso-8859-1"),a=s,s=o.length);for(s=0;s<o.length;++s)if(s!==a){var u=o[s],f=u.indexOf("]="),d=f===-1?u.indexOf("="):f+1,p,m;d===-1?(p=t.decoder(u,Fn.decoder,l,"key"),m=t.strictNullHandling?null:""):(p=t.decoder(u.slice(0,d),Fn.decoder,l,"key"),m=wf.maybeMap(EB(u.slice(d+1),t),function(v){return t.decoder(v,Fn.decoder,l,"value")})),m&&t.interpretNumericEntities&&l==="iso-8859-1"&&(m=hce(m)),u.indexOf("[]=")>-1&&(m=pce(m)?[m]:m),HE.call(n,p)?n[p]=wf.combine(n[p],m):n[p]=m}return n},yce=function(e,t,n,r){for(var i=r?t:EB(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,u=parseInt(l,10);!n.parseArrays&&l===""?a={0:i}:!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},bce=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&o.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&HE.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(s=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&HE.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),yce(u,t,n,r)}},_ce=function(e){if(!e)return Fn;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?Fn.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Fn.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Fn.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Fn.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Fn.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Fn.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Fn.comma,decoder:typeof e.decoder=="function"?e.decoder:Fn.decoder,delimiter:typeof e.delimiter=="string"||wf.isRegExp(e.delimiter)?e.delimiter:Fn.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Fn.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Fn.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Fn.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Fn.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Fn.strictNullHandling}},wce=function(e,t){var n=_ce(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?gce(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=bce(s,r[s],n,typeof e=="string");i=wf.merge(i,l,n)}return n.allowSparse===!0?i:wf.compact(i)},xce=dce,Oce=wce,Sce=Bj,Ece={formats:Sce,parse:Oce,stringify:xce};const TB=iB(Ece),pd=e=>TB.parse(e,{ignoreQueryPrefix:!0}),$_=e=>TB.stringify(e,{arrayFormat:"brackets"});function CB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=CB(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function hd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=CB(e))&&(r&&(r+=" "),r+=t);return r}const Tce=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=En(),o=()=>{i(),n()};return b.jsxs(eB,{className:"app-update-banner",isOpen:e,toggle:t,tag:vn,color:"secondary",children:[b.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),b.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",b.jsxs(wt,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&b.jsxs(b.Fragment,{children:["Restart now ",b.jsx(Le,{icon:AJ,className:"ms-1"})]}),r&&b.jsx(b.Fragment,{children:"Restarting..."})]})]})]})},kB=({to:e="/",children:t="Home"})=>b.jsx("div",{className:"home",children:b.jsxs(vn,{className:"p-4",children:[b.jsx("h2",{children:"Oops! We could not find requested route."}),b.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),b.jsx("br",{}),b.jsx(Yt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Gi(e){return F.useRef(e).current}function qi(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const Cce=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"})})},jB=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var w;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:l,EditServer:u,Settings:f,ManageServers:d,ShlinkVersionsContainer:p}=Gi(jB),m=Nn(),v=F.useRef(t),g=m.pathname==="/";return F.useEffect(()=>{Object.keys(v.current).length===0&&e()},[e]),F.useEffect(()=>{var y;Ple(((y=n.ui)==null?void 0:y.theme)??"light")},[(w=n.ui)==null?void 0:w.theme]),b.jsxs("div",{className:"container-fluid app-container",children:[b.jsx(o,{}),b.jsxs("div",{className:"app",children:[b.jsx("div",{className:hd("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:b.jsxs(C_,{children:[b.jsx(Et,{index:!0,element:b.jsx(a,{})}),b.jsx(Et,{path:"/settings/*",element:b.jsx(f,{})}),b.jsx(Et,{path:"/manage-servers",element:b.jsx(d,{})}),b.jsx(Et,{path:"/server/create",element:b.jsx(l,{})}),b.jsx(Et,{path:"/server/:serverId/edit",element:b.jsx(u,{})}),b.jsx(Et,{path:"/server/:serverId/*",element:b.jsx(s,{})}),b.jsx(Et,{path:"*",element:b.jsx(kB,{})})]})}),b.jsx("div",{className:"shlink-footer",children:b.jsx(p,{})})]}),b.jsx(Tce,{isOpen:r,toggle:i,forceUpdate:Cce})]})},kce=qi(jB,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function ar(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 jce=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),QL=jce,eO=()=>Math.random().toString(36).substring(7).split("").join("."),Pce={INIT:`@@redux/INIT${eO()}`,REPLACE:`@@redux/REPLACE${eO()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${eO()}`},z0=Pce;function zj(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}function PB(e,t,n){if(typeof e!="function")throw new Error(ar(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ar(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ar(1));return n(PB)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((w,y)=>{a.set(y,w)}))}function f(){if(l)throw new Error(ar(3));return i}function d(w){if(typeof w!="function")throw new Error(ar(4));if(l)throw new Error(ar(5));let y=!0;u();const _=s++;return a.set(_,w),function(){if(y){if(l)throw new Error(ar(6));y=!1,u(),a.delete(_),o=null}}}function p(w){if(!zj(w))throw new Error(ar(7));if(typeof w.type>"u")throw new Error(ar(8));if(typeof w.type!="string")throw new Error(ar(17));if(l)throw new Error(ar(9));try{l=!0,i=r(i,w)}finally{l=!1}return(o=a).forEach(_=>{_()}),w}function m(w){if(typeof w!="function")throw new Error(ar(10));r=w,p({type:z0.REPLACE})}function v(){const w=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(ar(11));function _(){const O=y;O.next&&O.next(f())}return _(),{unsubscribe:w(_)}},[QL](){return this}}}return p({type:z0.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:m,[QL]:v}}function Ace(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:z0.INIT})>"u")throw new Error(ar(12));if(typeof n(void 0,{type:z0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ar(13))})}function Vj(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let i;try{Ace(n)}catch(o){i=o}return function(a={},s){if(i)throw i;let l=!1;const u={};for(let f=0;f<r.length;f++){const d=r[f],p=n[d],m=a[d],v=p(m,s);if(typeof v>"u")throw s&&s.type,new Error(ar(14));u[d]=v,l=l||v!==m}return l=l||r.length!==Object.keys(a).length,l?u:a}}function V0(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Nce(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(ar(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=V0(...s)(i.dispatch),{...i,dispatch:o}}}function Mce(e){return zj(e)&&"type"in e&&typeof e.type=="string"}var AB=Symbol.for("immer-nothing"),JL=Symbol.for("immer-draftable"),ci=Symbol.for("immer-state");function lo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var xf=Object.getPrototypeOf;function Zs(e){return!!e&&!!e[ci]}function Ia(e){var t;return e?NB(e)||Array.isArray(e)||!!e[JL]||!!((t=e.constructor)!=null&&t[JL])||z_(e)||V_(e):!1}var Lce=Object.prototype.constructor.toString();function NB(e){if(!e||typeof e!="object")return!1;const t=xf(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)===Lce}function Hh(e,t){B_(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function B_(e){const t=e[ci];return t?t.type_:Array.isArray(e)?1:z_(e)?2:V_(e)?3:0}function WE(e,t){return B_(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function MB(e,t,n){const r=B_(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Rce(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function z_(e){return e instanceof Map}function V_(e){return e instanceof Set}function Nl(e){return e.copy_||e.base_}function YE(e,t){if(z_(e))return new Map(e);if(V_(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&NB(e))return xf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[ci];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(xf(e),n)}function Hj(e,t=!1){return H_(e)||Zs(e)||!Ia(e)||(B_(e)>1&&(e.set=e.add=e.clear=e.delete=Dce),Object.freeze(e),t&&Hh(e,(n,r)=>Hj(r,!0))),e}function Dce(){lo(2)}function H_(e){return Object.isFrozen(e)}var Ice={};function yu(e){const t=Ice[e];return t||lo(0,e),t}var Wh;function LB(){return Wh}function Fce(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function eR(e,t){t&&(yu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function GE(e){qE(e),e.drafts_.forEach(Uce),e.drafts_=null}function qE(e){e===Wh&&(Wh=e.parent_)}function tR(e){return Wh=Fce(Wh,e)}function Uce(e){const t=e[ci];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nR(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ci].modified_&&(GE(t),lo(4)),Ia(e)&&(e=H0(t,e),t.parent_||W0(t,e)),t.patches_&&yu("Patches").generateReplacementPatches_(n[ci].base_,e,t.patches_,t.inversePatches_)):e=H0(t,n,[]),GE(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AB?e:void 0}function H0(e,t,n){if(H_(t))return t;const r=t[ci];if(!r)return Hh(t,(i,o)=>rR(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return W0(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),Hh(o,(s,l)=>rR(e,r,i,s,l,n,a)),W0(e,i,!1),n&&e.patches_&&yu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function rR(e,t,n,r,i,o,a){if(Zs(i)){const s=o&&t&&t.type_!==3&&!WE(t.assigned_,r)?o.concat(r):void 0,l=H0(e,i,s);if(MB(n,r,l),Zs(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Ia(i)&&!H_(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;H0(e,i),(!t||!t.scope_.parent_)&&W0(e,i)}}function W0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hj(t,n)}function $ce(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:LB(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Wj;n&&(i=[r],o=Yh);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var Wj={get(e,t){if(t===ci)return e;const n=Nl(e);if(!WE(n,t))return Bce(e,n,t);const r=n[t];return e.finalized_||!Ia(r)?r:r===tO(e.base_,t)?(nO(e),e.copy_[t]=ZE(r,e)):r},has(e,t){return t in Nl(e)},ownKeys(e){return Reflect.ownKeys(Nl(e))},set(e,t,n){const r=RB(Nl(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=tO(Nl(e),t),o=i==null?void 0:i[ci];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Rce(n,i)&&(n!==void 0||WE(e.base_,t)))return!0;nO(e),KE(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 tO(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,nO(e),KE(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Nl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){lo(11)},getPrototypeOf(e){return xf(e.base_)},setPrototypeOf(){lo(12)}},Yh={};Hh(Wj,(e,t)=>{Yh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Yh.deleteProperty=function(e,t){return Yh.set.call(this,e,t,void 0)};Yh.set=function(e,t,n){return Wj.set.call(this,e[0],t,n,e[0])};function tO(e,t){const n=e[ci];return(n?Nl(n):e)[t]}function Bce(e,t,n){var i;const r=RB(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function RB(e,t){if(!(t in e))return;let n=xf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=xf(n)}}function KE(e){e.modified_||(e.modified_=!0,e.parent_&&KE(e.parent_))}function nO(e){e.copy_||(e.copy_=YE(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var zce=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...u){return a.produce(l,f=>n.call(this,f,...u))}}typeof n!="function"&&lo(6),r!==void 0&&typeof r!="function"&&lo(7);let i;if(Ia(t)){const o=tR(this),a=ZE(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?GE(o):qE(o)}return eR(o,r),nR(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===AB&&(i=void 0),this.autoFreeze_&&Hj(i,!0),r){const o=[],a=[];yu("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else lo(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),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){Ia(e)||lo(8),Zs(e)&&(e=DB(e));const t=tR(this),n=ZE(e,void 0);return n[ci].isManual_=!0,qE(t),n}finishDraft(e,t){const n=e&&e[ci];(!n||!n.isManual_)&&lo(9);const{scope_:r}=n;return eR(r,t),nR(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=yu("Patches").applyPatches_;return Zs(e)?r(e,t):this.produce(e,i=>r(i,t))}};function ZE(e,t){const n=z_(e)?yu("MapSet").proxyMap_(e,t):V_(e)?yu("MapSet").proxySet_(e,t):$ce(e,t);return(t?t.scope_:LB()).drafts_.push(n),n}function DB(e){return Zs(e)||lo(10,e),IB(e)}function IB(e){if(!Ia(e)||H_(e))return e;const t=e[ci];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=YE(e,t.scope_.immer_.useStrictShallowCopy_)}else n=YE(e,!0);return Hh(n,(r,i)=>{MB(n,r,IB(i))}),t&&(t.finalized_=!1),n}var fi=new zce,FB=fi.produce;fi.produceWithPatches.bind(fi);fi.setAutoFreeze.bind(fi);fi.setUseStrictShallowCopy.bind(fi);fi.applyPatches.bind(fi);fi.createDraft.bind(fi);fi.finishDraft.bind(fi);function Vce(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Hce(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var iR=e=>Array.isArray(e)?e:[e];function Wce(e){const t=Array.isArray(e[0])?e[0]:e;return Hce(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Yce(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Gce=class{constructor(e){this.value=e}deref(){return this.value}},qce=typeof WeakRef<"u"?WeakRef:Gce,Kce=0,oR=1;function Pg(){return{s:Kce,v:void 0,o:null,p:null}}function UB(e,t={}){let n=Pg();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let s=n;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const m=arguments[d];if(typeof m=="function"||typeof m=="object"&&m!==null){let v=s.o;v===null&&(s.o=v=new WeakMap);const g=v.get(m);g===void 0?(s=Pg(),v.set(m,s)):s=g}else{let v=s.p;v===null&&(s.p=v=new Map);const g=v.get(m);g===void 0?(s=Pg(),v.set(m,s)):s=g}}const u=s;let f;if(s.s===oR?f=s.v:(f=e.apply(null,arguments),o++),u.s=oR,r){const d=(i==null?void 0:i.deref())??i;d!=null&&r(d,f)&&(f=d,o!==0&&o--),i=typeof f=="object"&&f!==null||typeof f=="function"?new qce(f):f}return u.v=f,f}return a.clearCache=()=>{n=Pg(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Zce(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),Vce(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const f={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:m=UB,argsMemoizeOptions:v=[],devModeChecks:g={}}=f,w=iR(p),y=iR(v),_=Wce(i),x=d(function(){return o++,u.apply(null,arguments)},...w),O=m(function(){a++;const T=Yce(_,arguments);return s=x.apply(null,T),s},...y);return Object.assign(O,{resultFunc:u,memoizedResultFunc:x,dependencies:_,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:m})}}function $B(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Xce=$B(),Qce=$B,Jce=(...e)=>{const t=Zce(...e);return(...n)=>{const r=t(...n),i=(o,...a)=>r(Zs(o)?DB(o):o,...a);return Object.assign(i,r),i}};Jce(UB);var efe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?V0:V0.apply(null,arguments)},tfe=e=>e&&typeof e.match=="function";function Wn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(go(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=>Mce(r)&&r.type===e,n}var BB=class Cp extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Cp.prototype)}static get[Symbol.species](){return Cp}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Cp(...t[0].concat(this)):new Cp(...t.concat(this))}};function aR(e){return Ia(e)?FB(e,()=>{}):e}function sR(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(go(10));const r=n.insert(t,e);return e.set(t,r),r}function nfe(e){return typeof e=="boolean"}var rfe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new BB;return n&&(nfe(n)?a.push(Xce):a.push(Qce(n.extraArgument))),a},ife="RTK_autoBatch",zB=e=>t=>{setTimeout(t,e)},ofe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zB(10),afe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?ofe:e.type==="callback"?e.queueNotification:zB(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const d=()=>i&&f(),p=r.subscribe(d);return s.add(f),()=>{p(),s.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[ife]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(f)}finally{i=!0}}})},sfe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new BB(e);return r&&i.push(afe(typeof r=="object"?r:void 0)),i},lfe=!0;function VB(e){const t=rfe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(zj(n))s=Vj(n);else throw new Error(go(1));let l;typeof r=="function"?l=r(t):l=t();let u=V0;i&&(u=efe({trace:!lfe,...typeof i=="object"&&i}));const f=Nce(...l),d=sfe(f);let p=typeof a=="function"?a(d):d();const m=u(...p);return PB(s,o,m)}function HB(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(go(28));if(s in t)throw new Error(go(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function ufe(e){return typeof e=="function"}function cfe(e,t){let[n,r,i]=HB(t),o;if(ufe(e))o=()=>aR(e());else{const s=aR(e);o=()=>s}function a(s=o(),l){let u=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return u.filter(f=>!!f).length===0&&(u=[i]),u.reduce((f,d)=>{if(d)if(Zs(f)){const m=d(f,l);return m===void 0?f:m}else{if(Ia(f))return FB(f,p=>d(p,l));{const p=d(f,l);if(p===void 0){if(f===null)return f;throw new Error(go(9))}return p}}return f},s)}return a.getInitialState=o,a}var ffe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dfe=(e=21)=>{let t="",n=e;for(;n--;)t+=ffe[Math.random()*64|0];return t},pfe=(e,t)=>tfe(e)?e.match(t):e(t);function hfe(...e){return t=>e.some(n=>pfe(n,t))}var mfe=["name","message","stack","code"],rO=class{constructor(e,t){Xu(this,"_type");this.payload=e,this.meta=t}},lR=class{constructor(e,t){Xu(this,"_type");this.payload=e,this.meta=t}},vfe=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of mfe)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},WB=(()=>{function e(t,n,r){const i=Wn(t+"/fulfilled",(l,u,f,d)=>({payload:l,meta:{...d||{},arg:f,requestId:u,requestStatus:"fulfilled"}})),o=Wn(t+"/pending",(l,u,f)=>({payload:void 0,meta:{...f||{},arg:u,requestId:l,requestStatus:"pending"}})),a=Wn(t+"/rejected",(l,u,f,d,p)=>({payload:d,error:(r&&r.serializeError||vfe)(l||"Rejected"),meta:{...p||{},arg:f,requestId:u,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,f,d)=>{const p=r!=null&&r.idGenerator?r.idGenerator(l):dfe(),m=new AbortController;let v;function g(y){v=y,m.abort()}const w=async function(){var x,O;let y;try{let E=(x=r==null?void 0:r.condition)==null?void 0:x.call(r,l,{getState:f,extra:d});if(yfe(E)&&(E=await E),E===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((k,A)=>m.signal.addEventListener("abort",()=>A({name:"AbortError",message:v||"Aborted"})));u(o(p,l,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:p,arg:l},{getState:f,extra:d}))),y=await Promise.race([T,Promise.resolve(n(l,{dispatch:u,getState:f,extra:d,requestId:p,signal:m.signal,abort:g,rejectWithValue:(k,A)=>new rO(k,A),fulfillWithValue:(k,A)=>new lR(k,A)})).then(k=>{if(k instanceof rO)throw k;return k instanceof lR?i(k.payload,p,l,k.meta):i(k,p,l)})])}catch(E){y=E instanceof rO?a(null,p,l,E.payload,E.meta):a(E,p,l)}return r&&!r.dispatchConditionRejection&&a.match(y)&&y.meta.condition||u(y),y}();return Object.assign(w,{abort:g,requestId:p,arg:l,unwrap(){return w.then(gfe)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:hfe(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function gfe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function yfe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bfe=Symbol.for("rtk-slice-createasyncthunk");function _fe(e,t){return`${e}/${t}`}function wfe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[bfe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(go(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Ofe()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(w,y){const _=typeof w=="string"?w:w.type;if(!_)throw new Error(go(12));if(_ in u.sliceCaseReducersByType)throw new Error(go(13));return u.sliceCaseReducersByType[_]=y,f},addMatcher(w,y){return u.sliceMatchers.push({matcher:w,reducer:y}),f},exposeAction(w,y){return u.actionCreators[w]=y,f},exposeCaseReducer(w,y){return u.sliceCaseReducersByName[w]=y,f}};l.forEach(w=>{const y=s[w],_={reducerName:w,type:_fe(o,w),createNotation:typeof i.reducers=="function"};Efe(y)?Cfe(_,y,f,t):Sfe(_,y,f)});function d(){const[w={},y=[],_=void 0]=typeof i.extraReducers=="function"?HB(i.extraReducers):[i.extraReducers],x={...w,...u.sliceCaseReducersByType};return cfe(i.initialState,O=>{for(let E in x)O.addCase(E,x[E]);for(let E of u.sliceMatchers)O.addMatcher(E.matcher,E.reducer);for(let E of y)O.addMatcher(E.matcher,E.reducer);_&&O.addDefaultCase(_)})}const p=w=>w,m=new WeakMap;let v;const g={name:o,reducerPath:a,reducer(w,y){return v||(v=d()),v(w,y)},actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState(){return v||(v=d()),v.getInitialState()},getSelectors(w=p){const y=sR(m,this,{insert:()=>new WeakMap});return sR(y,w,{insert:()=>{const _={};for(const[x,O]of Object.entries(i.selectors??{}))_[x]=xfe(this,O,w,this!==g);return _}})},selectSlice(w){let y=w[this.reducerPath];return typeof y>"u"&&this!==g&&(y=this.getInitialState()),y},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(w,{reducerPath:y,..._}={}){const x=y??this.reducerPath;return w.inject({reducerPath:x,reducer:this.reducer},_),{...this,reducerPath:x}}};return g}}function xfe(e,t,n,r){function i(o,...a){let s=n.call(e,o);return typeof s>"u"&&r&&(s=e.getInitialState()),t(s,...a)}return i.unwrapped=t,i}var Yn=wfe();function Ofe(){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 Sfe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!Tfe(r))throw new Error(go(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Wn(e,a):Wn(e))}function Efe(e){return e._reducerDefinitionType==="asyncThunk"}function Tfe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Cfe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(go(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:f}=n,d=i(e,o,f);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||Ag,pending:s||Ag,rejected:l||Ag,settled:u||Ag})}function Ag(){}var Yj="listenerMiddleware";Wn(`${Yj}/add`);Wn(`${Yj}/removeAll`);Wn(`${Yj}/remove`);function go(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:kfe,reducer:jfe}=Yn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Pfe,resetAppUpdate:Afe}=kfe,Nfe=jfe,Mfe=(e,t)=>{e.factory("App",kce),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Pfe),e.serviceFactory("resetAppUpdate",()=>Afe)},uR={"Content-Type":"application/json"},cR=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...uR}}:{headers:uR}:e;class Lfe{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,cR(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,cR(n)).then(async r=>{if(!r.ok)throw await r.json()})}}var Gj=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(Gj||{}),qj=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(qj||{}),Rfe={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},Dfe=Rfe,Ife={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 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},Ffe=Ife,Ufe={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"]},YB={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]},$fe={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"]},Bfe={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"]},zfe=Object.defineProperty,Vfe=(e,t,n)=>t in e?zfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uo=(e,t,n)=>(Vfe(e,typeof t!="symbol"?t+"":t,n),n),wo,Qo=".",GB="function",qB="string",KB="__global__",Kj="Provider",Hfe=0,Zj=Array.prototype.slice,Wfe=function(e,t){var n=e[t];if(n===void 0&&wo.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},W_=function(e){var t;return this.nested[e]||(t=wo.pop(),this.nested[e]=t,this.factory(e,function(){return t.container})),this.nested[e]},ZB=function(e){return e.split(Qo).reduce(Wfe,this)},Yfe=function(e,t,n,r){var i={configurable:!0,enumerable:!0};return e.length?i.get=function(){var o=0,a=function(s){if(s)throw s;e[o]&&e[o++](n,a)};return a(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,t,i),r[t]},Gfe=function(e,t){var n,r;return typeof e===GB&&(t=e,e=KB),n=e.split(Qo),r=n.shift(),n.length?W_.call(this,r).middleware(n.join(Qo),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},qfe=function(e,t){return t(e)},fR=function(e,t){return(e[t]||[]).concat(e.__global__||[])},Kfe=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+Kj,r=Object.create(null),r[n]={configurable:!0,enumerable:!0,get:function(){var s=new t;return delete i[n],i[n]=s,s}},r[e]={configurable:!0,enumerable:!0,get:function(){var s=i[n],l;return s&&(l=fR(o,e).reduce(qfe,s.$get(i)),delete i[n],delete i[e]),l===void 0?l:Yfe(fR(a,e),e,l,i)}},Object.defineProperties(i,r),this},XB=function(e,t){var n,r;return n=e.split(Qo),this.providerMap[e]&&n.length===1&&!this.container[e+Kj]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(W_.call(this,r).provider(n.join(Qo),t),this):Kfe.call(this,r,t))},Xj=function(e,t){return XB.call(this,e,function(){this.$get=t})},QB=function(e,t,n){var r=arguments.length>3?Zj.call(arguments,3):[],i=this;return Xj.call(this,e,function(){var o=t,a=r.map(ZB,i.container);return n?new(t.bind.apply(t,[null].concat(a))):o.apply(null,a)})},Zfe=function(e,t){return QB.apply(this,[e,t,!0].concat(Zj.call(arguments,2)))},Xfe=function(e,t){return QB.apply(this,[e,t,!1].concat(Zj.call(arguments,2)))},JB=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},e2=function(e,t){var n=e[t];return n||(n={},JB.call(e,t,n)),n},Qfe=function(e,t){var n;return n=e.split(Qo),e=n.pop(),JB.call(n.reduce(e2,this.container),e,t),this},Jfe=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},ede=function(e,t){var n=e.split(Qo);return e=n.pop(),Jfe.call(n.reduce(e2,this.container),e,t),this},t2=function(e,t){var n,r;return typeof e===GB&&(t=e,e=KB),n=e.split(Qo),r=n.shift(),n.length?W_.call(this,r).decorator(n.join(Qo),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},tde=function(e){return this.deferred.push(e),this},nde=function(e){return(e||[]).map(ZB,this.container)},rde=function(e,t){return Xj.call(this,e,function(n){return{instance:t.bind(t,n)}})},ide=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},Qj=function(e){return Object.keys(e||this.container||{}).filter(ide)},Y0={},ode=function(e){var t;return typeof e===qB?(t=Y0[e],t||(Y0[e]=t=new wo,t.constant("BOTTLE_NAME",e)),t):new wo},ade=function(e){typeof e===qB?delete Y0[e]:Y0={}},n2=function(e){var t=e.$value===void 0?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},dR=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+Kj]},sde=function(e){var t=this.originalProviders,n=Array.isArray(e);Object.keys(this.originalProviders).forEach(function(r){if(!(n&&e.indexOf(r)===-1)){var i=r.split(Qo);i.length>1&&i.forEach(dR,W_.call(this,i[0])),dR.call(this,r),this.provider(r,t[r])}},this)},lde=function(e){return this.deferred.forEach(function(t){t(e)}),this};wo=function e(t){if(!(this instanceof e))return e.pop(t);this.id=Hfe++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:t2.bind(this),$register:n2.bind(this),$list:Qj.bind(this)}};wo.prototype={constant:ede,decorator:t2,defer:tde,digest:nde,factory:Xj,instanceFactory:rde,list:Qj,middleware:Gfe,provider:XB,resetProviders:sde,register:n2,resolve:lde,service:Zfe,serviceFactory:Xfe,value:Qfe};wo.pop=ode;wo.clear=ade;wo.list=Qj;wo.config={strict:!1};const ude=wo,cde=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,a]=En(),{domains:s}=n,l=!t,u=F.useCallback(()=>{r(""),a()},[r,a]),f=F.useCallback(()=>{r(""),o()},[r,o]);return F.useEffect(()=>{e()},[e]),i?b.jsxs(D_,{children:[b.jsx(gu,{value:t??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),b.jsx(wt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:u,children:b.jsx(Le,{icon:hJ})}),b.jsx(qr,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):b.jsxs(Za,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:d,isDefault:p})=>b.jsxs(ze,{active:(t===d||p)&&l,onClick:()=>r(d),children:[d,p&&b.jsx("span",{className:"float-end text-muted",children:"default"})]},d)),b.jsx(ze,{divider:!0}),b.jsx(ze,{onClick:f,children:b.jsx("i",{children:"New domain"})})]})},fde=e=>(e==null?void 0:e.type)===Gj.INVALID_ARGUMENT||(e==null?void 0:e.type)===qj.INVALID_ARGUMENT,dde=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===Gj.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===qj.INVALID_SHORT_URL_DELETION,pde=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),xo=e=>pde(e)?e:void 0,Fa=({errorData:e,fallbackMessage:t})=>b.jsxs(b.Fragment,{children:[(e==null?void 0:e.detail)??t,fde(e)&&b.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),hde=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,pR=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(hde);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},hR=e=>e==="*"||e==="x"||e==="X",mR=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},mde=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],vde=(e,t)=>{if(hR(e)||hR(t))return 0;const[n,r]=mde(mR(e),mR(t));return n>r?1:n<r?-1:0},vR=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=vde(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},gde=(e,t)=>{const n=pR(e),r=pR(t),i=n.pop(),o=r.pop(),a=vR(n,r);return a!==0?a:i&&o?vR(i.split("."),o.split(".")):i||o?i?-1:1:0},gR=(e,t,n)=>{yde(n);const r=gde(e,t);return r2[n].includes(r)},r2={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},yR=Object.keys(r2),yde=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(yR.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${yR.join("|")}`)},bde=(e,{maxVersion:t,minVersion:n})=>{const r=!n||gR(e,n,">=");return(!t||gR(e,t,"<="))&&r},i2={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0",shortUrlVisitsDeletion:"3.6.0",orphanVisitsDeletion:"3.6.0"};Object.freeze(i2);const ic=(e,t)=>t==="latest"||bde(t,{minVersion:i2[e]}),o2=e=>({domainVisits:ic("domainVisits",e),excludeBotsOnShortUrls:ic("excludeBotsOnShortUrls",e),filterDisabledUrls:ic("filterDisabledUrls",e),deviceLongUrls:ic("deviceLongUrls",e),shortUrlVisitsDeletion:ic("shortUrlVisitsDeletion",e),orphanVisitsDeletion:ic("orphanVisitsDeletion",e)}),a2=F.createContext(o2("0.0.0")),_de=a2.Provider,wde=e=>F.useMemo(()=>o2(e),[e]),Mu=e=>F.useContext(a2)[e],s2=F.createContext(""),xde=s2.Provider,Lu=()=>F.useContext(s2),Jp=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Ode=(e,t)=>!e.domain&&t===B2?!0:e.domain===t,Sde=(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}},l2="__",Ede=e=>e.replaceAll("/",l2),u2=e=>e.replaceAll(l2,"/");function di(e){"@babel/helpers - typeof";return di=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},di(e)}function Je(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Pe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ne(e){Pe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||di(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ru(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function zi(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Tde(e,t){if(Pe(2,arguments),!t||di(t)!=="object")return new Date(NaN);var n=t.years?Je(t.years):0,r=t.months?Je(t.months):0,i=t.weeks?Je(t.weeks):0,o=t.days?Je(t.days):0,a=t.hours?Je(t.hours):0,s=t.minutes?Je(t.minutes):0,l=t.seconds?Je(t.seconds):0,u=Ne(e),f=r||n?zi(u,r+n*12):u,d=o||i?Ru(f,o+i*7):f,p=s+a*60,m=l+p*60,v=m*1e3,g=new Date(d.getTime()+v);return g}function Jj(e,t){Pe(2,arguments);var n=Ne(e).getTime(),r=Je(t);return new Date(n+r)}var Cde=36e5;function kde(e,t){Pe(2,arguments);var n=Je(t);return Jj(e,n*Cde)}var jde={};function Xa(){return jde}function c2(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Xa(),d=Je((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ne(e),m=p.getDay(),v=(m<d?7:0)+m-d;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function Gh(e){return Pe(1,arguments),c2(e,{weekStartsOn:1})}function Pde(e){Pe(1,arguments);var t=Ne(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=Gh(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=Gh(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Ade(e){Pe(1,arguments);var t=Pde(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Gh(n);return r}function Of(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function oi(e){Pe(1,arguments);var t=Ne(e);return t.setHours(0,0,0,0),t}var Nde=864e5;function qh(e,t){Pe(2,arguments);var n=oi(e),r=oi(t),i=n.getTime()-Of(n),o=r.getTime()-Of(r);return Math.round((i-o)/Nde)}var Mde=6e4;function XE(e,t){Pe(2,arguments);var n=Je(t);return Jj(e,n*Mde)}function f2(e,t){Pe(2,arguments);var n=Je(t),r=n*3;return zi(e,r)}function G0(e,t){Pe(2,arguments);var n=Je(t),r=n*7;return Ru(e,r)}function Sf(e,t){Pe(2,arguments);var n=Je(t);return zi(e,n*12)}function bR(e){Pe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(di(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Ne(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function _R(e){Pe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(di(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Ne(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function xy(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var eP=6e4,Y_=36e5,Lde=1e3;function Rde(e,t){Pe(2,arguments);var n=oi(e),r=oi(t);return n.getTime()===r.getTime()}function G_(e){return Pe(1,arguments),e instanceof Date||di(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Kh(e){if(Pe(1,arguments),!G_(e)&&typeof e!="number")return!1;var t=Ne(e);return!isNaN(Number(t))}function Zh(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Mc(e){Pe(1,arguments);var t=Ne(e),n=Math.floor(t.getMonth()/3)+1;return n}function q0(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t);return n.getFullYear()-r.getFullYear()}function wR(e,t){var 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 tP(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t),i=wR(n,r),o=Math.abs(qh(n,r));n.setDate(n.getDate()-i*o);var a=+(wR(n,r)===-i),s=i*(o-a);return s===0?0:s}function d2(e,t){return Pe(2,arguments),Ne(e).getTime()-Ne(t).getTime()}var xR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Dde="trunc";function nP(e){return e?xR[e]:xR[Dde]}function Ide(e,t,n){Pe(2,arguments);var r=d2(e,t)/Y_;return nP(n==null?void 0:n.roundingMethod)(r)}function bu(e){Pe(1,arguments);var t=Ne(e);return t.setHours(23,59,59,999),t}function p2(e){Pe(1,arguments);var t=Ne(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Fde(e){Pe(1,arguments);var t=Ne(e);return bu(t).getTime()===p2(t).getTime()}function K0(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t),i=xy(n,r),o=Math.abs(Zh(n,r)),a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var s=xy(n,r)===-i;Fde(Ne(e))&&o===1&&xy(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function Ude(e,t,n){Pe(2,arguments);var r=d2(e,t)/1e3;return nP(n==null?void 0:n.roundingMethod)(r)}function $de(e,t,n){Pe(2,arguments);var r=tP(e,t)/7;return nP(n==null?void 0:n.roundingMethod)(r)}function QE(e){Pe(1,arguments);var t=Ne(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function h2(e){Pe(1,arguments);var t=Ne(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Bde(e){Pe(1,arguments);var t=Ne(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function m2(e){Pe(1,arguments);var t=Ne(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function zde(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Xa(),d=Je((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ne(e),m=p.getDay(),v=(m<d?-7:0)+6-(m-d);return p.setDate(p.getDate()+v),p.setHours(23,59,59,999),p}function Vde(e){return Pe(1,arguments),zde(e,{weekStartsOn:1})}function v2(e,t){Pe(2,arguments);var n=Je(t);return Jj(e,-n)}var Hde=864e5;function Wde(e){Pe(1,arguments);var t=Ne(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/Hde)+1}function Ef(e){Pe(1,arguments);var t=1,n=Ne(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function g2(e){Pe(1,arguments);var t=Ne(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Ef(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Ef(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Yde(e){Pe(1,arguments);var t=g2(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ef(n);return r}var Gde=6048e5;function y2(e){Pe(1,arguments);var t=Ne(e),n=Ef(t).getTime()-Yde(t).getTime();return Math.round(n/Gde)+1}function _u(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Xa(),d=Je((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ne(e),m=p.getUTCDay(),v=(m<d?7:0)+m-d;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function rP(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Ne(e),d=f.getUTCFullYear(),p=Xa(),m=Je((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,m),v.setUTCHours(0,0,0,0);var g=_u(v,t),w=new Date(0);w.setUTCFullYear(d,0,m),w.setUTCHours(0,0,0,0);var y=_u(w,t);return f.getTime()>=g.getTime()?d+1:f.getTime()>=y.getTime()?d:d-1}function qde(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Xa(),d=Je((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=rP(e,t),m=new Date(0);m.setUTCFullYear(p,0,d),m.setUTCHours(0,0,0,0);var v=_u(m,t);return v}var Kde=6048e5;function b2(e,t){Pe(1,arguments);var n=Ne(e),r=_u(n,t).getTime()-qde(n,t).getTime();return Math.round(r/Kde)+1}function ct(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Zde={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return ct(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):ct(n+1,2)},d:function(e,t){return ct(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/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:function(e,t){return ct(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ct(e.getUTCHours(),t.length)},m:function(e,t){return ct(e.getUTCMinutes(),t.length)},s:function(e,t){return ct(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return ct(i,t.length)}};const ss=Zde;var oc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xde={G:function(e,t,n){var r=e.getUTCFullYear()>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"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return ss.y(e,t)},Y:function(e,t,n,r){var i=rP(e,r),o=i>0?i:1-i;if(t==="YY"){var a=o%100;return ct(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):ct(o,t.length)},R:function(e,t){var n=g2(e);return ct(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return ct(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ct(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){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ct(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){var r=e.getUTCMonth();switch(t){case"M":case"MM":return ss.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){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return ct(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){var i=b2(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ct(i,t.length)},I:function(e,t,n){var r=y2(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ct(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ss.d(e,t)},D:function(e,t,n){var r=Wde(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ct(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();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){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ct(o,2);case"eo":return n.ordinalNumber(o,{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){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ct(o,t.length);case"co":return n.ordinalNumber(o,{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){var r=e.getUTCDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return ct(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){var r=e.getUTCHours(),i=r/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){var r=e.getUTCHours(),i;switch(r===12?i=oc.noon:r===0?i=oc.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){var r=e.getUTCHours(),i;switch(r>=17?i=oc.evening:r>=12?i=oc.afternoon:r>=4?i=oc.morning:i=oc.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"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ss.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ss.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ct(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ct(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ss.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ss.s(e,t)},S:function(e,t){return ss.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return SR(o);case"XXXX":case"XX":return Ml(o);case"XXXXX":case"XXX":default:return Ml(o,":")}},x:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return SR(o);case"xxxx":case"xx":return Ml(o);case"xxxxx":case"xxx":default:return Ml(o,":")}},O:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+OR(o,":");case"OOOO":default:return"GMT"+Ml(o,":")}},z:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+OR(o,":");case"zzzz":default:return"GMT"+Ml(o,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return ct(o,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,o=i.getTime();return ct(o,t.length)}};function OR(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t||"";return n+String(i)+a+ct(o,2)}function SR(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ct(Math.abs(e)/60,2)}return Ml(e,t)}function Ml(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=ct(Math.floor(i/60),2),a=ct(i%60,2);return r+o+n+a}const Qde=Xde;var ER=function(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"})}},_2=function(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"})}},Jde=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return ER(e,t);var o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",ER(r,t)).replace("{{time}}",_2(i,t))},epe={p:_2,P:Jde};const JE=epe;var tpe=["D","DD"],npe=["YY","YYYY"];function w2(e){return tpe.indexOf(e)!==-1}function x2(e){return npe.indexOf(e)!==-1}function Z0(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var rpe={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"}},ipe=function(e,t,n){var r,i=rpe[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};const ope=ipe;function iO(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var ape={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},spe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lpe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},upe={date:iO({formats:ape,defaultWidth:"full"}),time:iO({formats:spe,defaultWidth:"full"}),dateTime:iO({formats:lpe,defaultWidth:"full"})};const cpe=upe;var fpe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dpe=function(e,t,n,r){return fpe[e]};const ppe=dpe;function op(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var hpe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mpe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vpe={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"]},gpe={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"]},ype={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"}},bpe={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"}},_pe=function(e,t){var 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"},wpe={ordinalNumber:_pe,era:op({values:hpe,defaultWidth:"wide"}),quarter:op({values:mpe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:op({values:vpe,defaultWidth:"wide"}),day:op({values:gpe,defaultWidth:"wide"}),dayPeriod:op({values:ype,defaultWidth:"wide",formattingValues:bpe,defaultFormattingWidth:"wide"})};const xpe=wpe;function ap(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Spe(s,function(d){return d.test(a)}):Ope(s,function(d){return d.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var f=t.slice(a.length);return{value:u,rest:f}}}function Ope(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Spe(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Epe(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var Tpe=/^(\d+)(th|st|nd|rd)?/i,Cpe=/\d+/i,kpe={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},jpe={any:[/^b/i,/^(a|c)/i]},Ppe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ape={any:[/1/i,/2/i,/3/i,/4/i]},Npe={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},Mpe={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]},Lpe={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},Rpe={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]},Dpe={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},Ipe={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}},Fpe={ordinalNumber:Epe({matchPattern:Tpe,parsePattern:Cpe,valueCallback:function(e){return parseInt(e,10)}}),era:ap({matchPatterns:kpe,defaultMatchWidth:"wide",parsePatterns:jpe,defaultParseWidth:"any"}),quarter:ap({matchPatterns:Ppe,defaultMatchWidth:"wide",parsePatterns:Ape,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ap({matchPatterns:Npe,defaultMatchWidth:"wide",parsePatterns:Mpe,defaultParseWidth:"any"}),day:ap({matchPatterns:Lpe,defaultMatchWidth:"wide",parsePatterns:Rpe,defaultParseWidth:"any"}),dayPeriod:ap({matchPatterns:Dpe,defaultMatchWidth:"any",parsePatterns:Ipe,defaultParseWidth:"any"})};const Upe=Fpe;var $pe={code:"en-US",formatDistance:ope,formatLong:cpe,formatRelative:ppe,localize:xpe,match:Upe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const iP=$pe;var Bpe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zpe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vpe=/^'([^]*?)'?$/,Hpe=/''/g,Wpe=/[a-zA-Z]/;function Tf(e,t,n){var r,i,o,a,s,l,u,f,d,p,m,v,g,w,y,_,x,O;Pe(2,arguments);var E=String(t),T=Xa(),k=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:T.locale)!==null&&r!==void 0?r:iP,A=Je((o=(a=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&a!==void 0?a:(d=T.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Je((m=(v=(g=(w=n==null?void 0:n.weekStartsOn)!==null&&w!==void 0?w:n==null||(y=n.locale)===null||y===void 0||(_=y.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&g!==void 0?g:T.weekStartsOn)!==null&&v!==void 0?v:(x=T.locale)===null||x===void 0||(O=x.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&m!==void 0?m:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var R=Ne(e);if(!Kh(R))throw new RangeError("Invalid time value");var I=Of(R),z=v2(R,I),G={firstWeekContainsDate:A,weekStartsOn:D,locale:k,_originalDate:R},H=E.match(zpe).map(function(Q){var Z=Q[0];if(Z==="p"||Z==="P"){var te=JE[Z];return te(Q,k.formatLong)}return Q}).join("").match(Bpe).map(function(Q){if(Q==="''")return"'";var Z=Q[0];if(Z==="'")return Ype(Q);var te=Qde[Z];if(te)return!(n!=null&&n.useAdditionalWeekYearTokens)&&x2(Q)&&Z0(Q,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&w2(Q)&&Z0(Q,t,String(e)),te(z,Q,k.localize,G);if(Z.match(Wpe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return Q}).join("");return H}function Ype(e){var t=e.match(Vpe);return t?t[1].replace(Hpe,"'"):e}function oP(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Gpe(e){return oP({},e)}var TR=1440,qpe=2520,oO=43200,Kpe=86400;function Zpe(e,t,n){var r,i;Pe(2,arguments);var o=Xa(),a=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:iP;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=xy(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l=oP(Gpe(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:s}),u,f;s>0?(u=Ne(t),f=Ne(e)):(u=Ne(e),f=Ne(t));var d=Ude(f,u),p=(Of(f)-Of(u))/1e3,m=Math.round((d-p)/60),v;if(m<2)return n!=null&&n.includeSeconds?d<5?a.formatDistance("lessThanXSeconds",5,l):d<10?a.formatDistance("lessThanXSeconds",10,l):d<20?a.formatDistance("lessThanXSeconds",20,l):d<40?a.formatDistance("halfAMinute",0,l):d<60?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",1,l):m===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",m,l);if(m<45)return a.formatDistance("xMinutes",m,l);if(m<90)return a.formatDistance("aboutXHours",1,l);if(m<TR){var g=Math.round(m/60);return a.formatDistance("aboutXHours",g,l)}else{if(m<qpe)return a.formatDistance("xDays",1,l);if(m<oO){var w=Math.round(m/TR);return a.formatDistance("xDays",w,l)}else if(m<Kpe)return v=Math.round(m/oO),a.formatDistance("aboutXMonths",v,l)}if(v=K0(f,u),v<12){var y=Math.round(m/oO);return a.formatDistance("xMonths",y,l)}else{var _=v%12,x=Math.floor(v/12);return _<3?a.formatDistance("aboutXYears",x,l):_<9?a.formatDistance("overXYears",x,l):a.formatDistance("almostXYears",x+1,l)}}function Xpe(e,t){var n,r;Pe(1,arguments);var i=Ne(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),a=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",u=o==="extended"?"-":"",f=o==="extended"?":":"";if(a!=="time"){var d=ct(i.getDate(),2),p=ct(i.getMonth()+1,2),m=ct(i.getFullYear(),4);s="".concat(m).concat(u).concat(p).concat(u).concat(d)}if(a!=="date"){var v=i.getTimezoneOffset();if(v!==0){var g=Math.abs(v),w=ct(Math.floor(g/60),2),y=ct(g%60,2),_=v<0?"+":"-";l="".concat(_).concat(w,":").concat(y)}else l="Z";var x=ct(i.getHours(),2),O=ct(i.getMinutes(),2),E=ct(i.getSeconds(),2),T=s===""?"":"T",k=[x,O,E].join(f);s="".concat(s).concat(T).concat(k).concat(l)}return s}function CR(e){Pe(1,arguments);var t=Ne(e),n=t.getDate();return n}function Qpe(e){Pe(1,arguments);var t=Ne(e),n=t.getDay();return n}function Jpe(e){Pe(1,arguments);var t=Ne(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Ho(e){Pe(1,arguments);var t=Ne(e),n=t.getHours();return n}var ehe=6048e5;function the(e){Pe(1,arguments);var t=Ne(e),n=Gh(t).getTime()-Ade(t).getTime();return Math.round(n/ehe)+1}function Wo(e){Pe(1,arguments);var t=Ne(e),n=t.getMinutes();return n}function gr(e){Pe(1,arguments);var t=Ne(e),n=t.getMonth();return n}function kR(e){Pe(1,arguments);var t=Ne(e),n=t.getSeconds();return n}function X0(e){Pe(1,arguments);var t=Ne(e),n=t.getTime();return n}function nhe(e){return Pe(1,arguments),Math.floor(X0(e)/1e3)}function lt(e){return Pe(1,arguments),Ne(e).getFullYear()}function Xs(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t);return n.getTime()>r.getTime()}function po(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t);return n.getTime()<r.getTime()}function O2(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t);return n.getTime()===r.getTime()}function jR(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 rhe(e,t){if(e){if(typeof e=="string")return jR(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 jR(e,t)}}function PR(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=rhe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eT(e,t){return eT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},eT(e,t)}function yt(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 Q0(e){return Q0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q0(e)}function ihe(){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 ohe(e,t){if(t&&(di(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ue(e)}function bt(e){var t=ihe();return function(){var n=Q0(e),r;if(t){var i=Q0(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ohe(this,r)}}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ahe(e,t){if(di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S2(e){var t=ahe(e,"string");return di(t)==="symbol"?t:String(t)}function AR(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,S2(r.key),r)}}function mt(e,t,n){return t&&AR(e.prototype,t),n&&AR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Re(e,t,n){return t=S2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var she=10,E2=function(){function e(){ht(this,e),Re(this,"priority",void 0),Re(this,"subPriority",0)}return mt(e,[{key:"validate",value:function(t,n){return!0}}]),e}(),lhe=function(e){yt(n,e);var t=bt(n);function n(r,i,o,a,s){var l;return ht(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return mt(n,[{key:"validate",value:function(r,i){return this.validateValue(r,this.value,i)}},{key:"set",value:function(r,i,o){return this.setValue(r,i,this.value,o)}}]),n}(E2),uhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",she),Re(Ue(r),"subPriority",-1),r}return mt(n,[{key:"set",value:function(r,i){if(i.timestampIsSet)return r;var o=new Date(0);return o.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),o.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),o}}]),n}(E2),Tt=function(){function e(){ht(this,e),Re(this,"incompatibleTokens",void 0),Re(this,"priority",void 0),Re(this,"subPriority",void 0)}return mt(e,[{key:"run",value:function(t,n,r,i){var o=this.parse(t,n,r,i);return o?{setter:new lhe(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,n,r){return!0}}]),e}(),che=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",140),Re(Ue(r),"incompatibleTokens",["R","u","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"});case"GGGGG":return o.era(r,{width:"narrow"});case"GGGG":default:return o.era(r,{width:"wide"})||o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"})}}},{key:"set",value:function(r,i,o){return i.era=o,r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),gn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Do={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function yn(e,t){return e&&{value:t(e.value),rest:e.rest}}function tn(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Io(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*Y_+o*eP+a*Lde),rest:t.slice(n[0].length)}}function T2(e){return tn(gn.anyDigitsSigned,e)}function fn(e,t){switch(e){case 1:return tn(gn.singleDigit,t);case 2:return tn(gn.twoDigits,t);case 3:return tn(gn.threeDigits,t);case 4:return tn(gn.fourDigits,t);default:return tn(new RegExp("^\\d{1,"+e+"}"),t)}}function C2(e,t){switch(e){case 1:return tn(gn.singleDigitSigned,t);case 2:return tn(gn.twoDigitsSigned,t);case 3:return tn(gn.threeDigitsSigned,t);case 4:return tn(gn.fourDigitsSigned,t);default:return tn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function aP(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function k2(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function j2(e){return e%400===0||e%4===0&&e%100!==0}var fhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",130),Re(Ue(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return{year:s,isTwoDigitYear:i==="yy"}};switch(i){case"y":return yn(fn(4,r),a);case"yo":return yn(o.ordinalNumber(r,{unit:"year"}),a);default:return yn(fn(i.length,r),a)}}},{key:"validate",value:function(r,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(r,i,o){var a=r.getUTCFullYear();if(o.isTwoDigitYear){var s=k2(o.year,a);return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}var l=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(l,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),dhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",130),Re(Ue(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return{year:s,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return yn(fn(4,r),a);case"Yo":return yn(o.ordinalNumber(r,{unit:"year"}),a);default:return yn(fn(i.length,r),a)}}},{key:"validate",value:function(r,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(r,i,o,a){var s=rP(r,a);if(o.isTwoDigitYear){var l=k2(o.year,s);return r.setUTCFullYear(l,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),_u(r,a)}var u=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(u,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),_u(r,a)}}]),n}(Tt),phe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",130),Re(Ue(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i){return C2(i==="R"?4:i.length,r)}},{key:"set",value:function(r,i,o){var a=new Date(0);return a.setUTCFullYear(o,0,4),a.setUTCHours(0,0,0,0),Ef(a)}}]),n}(Tt),hhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",130),Re(Ue(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i){return C2(i==="u"?4:i.length,r)}},{key:"set",value:function(r,i,o){return r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),mhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",120),Re(Ue(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"Q":case"QQ":return fn(i.length,r);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(r,{width:"wide",context:"formatting"})||o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,i){return i>=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),vhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",120),Re(Ue(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"q":case"qq":return fn(i.length,r);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(r,{width:"wide",context:"standalone"})||o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,i){return i>=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),ghe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Re(Ue(r),"priority",110),r}return mt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s-1};switch(i){case"M":return yn(tn(gn.month,r),a);case"MM":return yn(fn(2,r),a);case"Mo":return yn(o.ordinalNumber(r,{unit:"month"}),a);case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(r,{width:"wide",context:"formatting"})||o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),yhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",110),Re(Ue(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s-1};switch(i){case"L":return yn(tn(gn.month,r),a);case"LL":return yn(fn(2,r),a);case"Lo":return yn(o.ordinalNumber(r,{unit:"month"}),a);case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(r,{width:"wide",context:"standalone"})||o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(Tt);function bhe(e,t,n){Pe(2,arguments);var r=Ne(e),i=Je(t),o=b2(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var _he=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",100),Re(Ue(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"w":return tn(gn.week,r);case"wo":return o.ordinalNumber(r,{unit:"week"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=53}},{key:"set",value:function(r,i,o,a){return _u(bhe(r,o,a),a)}}]),n}(Tt);function whe(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t),i=y2(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var xhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",100),Re(Ue(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"I":return tn(gn.week,r);case"Io":return o.ordinalNumber(r,{unit:"week"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=53}},{key:"set",value:function(r,i,o){return Ef(whe(r,o))}}]),n}(Tt),Ohe=[31,28,31,30,31,30,31,31,30,31,30,31],She=[31,29,31,30,31,30,31,31,30,31,30,31],Ehe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",90),Re(Ue(r),"subPriority",1),Re(Ue(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"d":return tn(gn.date,r);case"do":return o.ordinalNumber(r,{unit:"date"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){var o=r.getUTCFullYear(),a=j2(o),s=r.getUTCMonth();return a?i>=1&&i<=She[s]:i>=1&&i<=Ohe[s]}},{key:"set",value:function(r,i,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),The=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",90),Re(Ue(r),"subpriority",1),Re(Ue(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"D":case"DD":return tn(gn.dayOfYear,r);case"Do":return o.ordinalNumber(r,{unit:"date"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){var o=r.getUTCFullYear(),a=j2(o);return a?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(r,i,o){return r.setUTCMonth(0,o),r.setUTCHours(0,0,0,0),r}}]),n}(Tt);function sP(e,t,n){var r,i,o,a,s,l,u,f;Pe(2,arguments);var d=Xa(),p=Je((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&i!==void 0?i:(u=d.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Ne(e),v=Je(t),g=m.getUTCDay(),w=v%7,y=(w+7)%7,_=(y<p?7:0)+v-g;return m.setUTCDate(m.getUTCDate()+_),m}var Che=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",90),Re(Ue(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=sP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),khe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",90),Re(Ue(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o,a){var s=function(l){var u=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+u};switch(i){case"e":case"ee":return yn(fn(i.length,r),s);case"eo":return yn(o.ordinalNumber(r,{unit:"day"}),s);case"eee":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"eeeee":return o.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=sP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),jhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",90),Re(Ue(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o,a){var s=function(l){var u=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+u};switch(i){case"c":case"cc":return yn(fn(i.length,r),s);case"co":return yn(o.ordinalNumber(r,{unit:"day"}),s);case"ccc":return o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});case"ccccc":return o.day(r,{width:"narrow",context:"standalone"});case"cccccc":return o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(r,{width:"wide",context:"standalone"})||o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,i){return i>=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=sP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Tt);function Phe(e,t){Pe(2,arguments);var n=Je(t);n%7===0&&(n=n-7);var r=1,i=Ne(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}var Ahe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",90),Re(Ue(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s===0?7:s};switch(i){case"i":case"ii":return fn(i.length,r);case"io":return o.ordinalNumber(r,{unit:"day"});case"iii":return yn(o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiii":return yn(o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiiii":return yn(o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);case"iiii":default:return yn(o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(r,i){return i>=1&&i<=7}},{key:"set",value:function(r,i,o){return r=Phe(r,o),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),Nhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",80),Re(Ue(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,i,o){return r.setUTCHours(aP(o),0,0,0),r}}]),n}(Tt),Mhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",80),Re(Ue(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,i,o){return r.setUTCHours(aP(o),0,0,0),r}}]),n}(Tt),Lhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",80),Re(Ue(r),"incompatibleTokens",["a","b","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,i,o){return r.setUTCHours(aP(o),0,0,0),r}}]),n}(Tt),Rhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",70),Re(Ue(r),"incompatibleTokens",["H","K","k","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"h":return tn(gn.hour12h,r);case"ho":return o.ordinalNumber(r,{unit:"hour"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=12}},{key:"set",value:function(r,i,o){var a=r.getUTCHours()>=12;return a&&o<12?r.setUTCHours(o+12,0,0,0):!a&&o===12?r.setUTCHours(0,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(Tt),Dhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",70),Re(Ue(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"H":return tn(gn.hour23h,r);case"Ho":return o.ordinalNumber(r,{unit:"hour"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=0&&i<=23}},{key:"set",value:function(r,i,o){return r.setUTCHours(o,0,0,0),r}}]),n}(Tt),Ihe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",70),Re(Ue(r),"incompatibleTokens",["h","H","k","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"K":return tn(gn.hour11h,r);case"Ko":return o.ordinalNumber(r,{unit:"hour"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=0&&i<=11}},{key:"set",value:function(r,i,o){var a=r.getUTCHours()>=12;return a&&o<12?r.setUTCHours(o+12,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(Tt),Fhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",70),Re(Ue(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"k":return tn(gn.hour24h,r);case"ko":return o.ordinalNumber(r,{unit:"hour"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=24}},{key:"set",value:function(r,i,o){var a=o<=24?o%24:o;return r.setUTCHours(a,0,0,0),r}}]),n}(Tt),Uhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",60),Re(Ue(r),"incompatibleTokens",["t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"m":return tn(gn.minute,r);case"mo":return o.ordinalNumber(r,{unit:"minute"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCMinutes(o,0,0),r}}]),n}(Tt),$he=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",50),Re(Ue(r),"incompatibleTokens",["t","T"]),r}return mt(n,[{key:"parse",value:function(r,i,o){switch(i){case"s":return tn(gn.second,r);case"so":return o.ordinalNumber(r,{unit:"second"});default:return fn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCSeconds(o,0),r}}]),n}(Tt),Bhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",30),Re(Ue(r),"incompatibleTokens",["t","T"]),r}return mt(n,[{key:"parse",value:function(r,i){var o=function(a){return Math.floor(a*Math.pow(10,-i.length+3))};return yn(fn(i.length,r),o)}},{key:"set",value:function(r,i,o){return r.setUTCMilliseconds(o),r}}]),n}(Tt),zhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",10),Re(Ue(r),"incompatibleTokens",["t","T","x"]),r}return mt(n,[{key:"parse",value:function(r,i){switch(i){case"X":return Io(Do.basicOptionalMinutes,r);case"XX":return Io(Do.basic,r);case"XXXX":return Io(Do.basicOptionalSeconds,r);case"XXXXX":return Io(Do.extendedOptionalSeconds,r);case"XXX":default:return Io(Do.extended,r)}}},{key:"set",value:function(r,i,o){return i.timestampIsSet?r:new Date(r.getTime()-o)}}]),n}(Tt),Vhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",10),Re(Ue(r),"incompatibleTokens",["t","T","X"]),r}return mt(n,[{key:"parse",value:function(r,i){switch(i){case"x":return Io(Do.basicOptionalMinutes,r);case"xx":return Io(Do.basic,r);case"xxxx":return Io(Do.basicOptionalSeconds,r);case"xxxxx":return Io(Do.extendedOptionalSeconds,r);case"xxx":default:return Io(Do.extended,r)}}},{key:"set",value:function(r,i,o){return i.timestampIsSet?r:new Date(r.getTime()-o)}}]),n}(Tt),Hhe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",40),Re(Ue(r),"incompatibleTokens","*"),r}return mt(n,[{key:"parse",value:function(r){return T2(r)}},{key:"set",value:function(r,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),n}(Tt),Whe=function(e){yt(n,e);var t=bt(n);function n(){var r;ht(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Re(Ue(r),"priority",20),Re(Ue(r),"incompatibleTokens","*"),r}return mt(n,[{key:"parse",value:function(r){return T2(r)}},{key:"set",value:function(r,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),n}(Tt),Yhe={G:new che,y:new fhe,Y:new dhe,R:new phe,u:new hhe,Q:new mhe,q:new vhe,M:new ghe,L:new yhe,w:new _he,I:new xhe,d:new Ehe,D:new The,E:new Che,e:new khe,c:new jhe,i:new Ahe,a:new Nhe,b:new Mhe,B:new Lhe,h:new Rhe,H:new Dhe,K:new Ihe,k:new Fhe,m:new Uhe,s:new $he,S:new Bhe,X:new zhe,x:new Vhe,t:new Hhe,T:new Whe},Ghe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qhe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Khe=/^'([^]*?)'?$/,Zhe=/''/g,Xhe=/\S/,Qhe=/[a-zA-Z]/;function aO(e,t,n,r){var i,o,a,s,l,u,f,d,p,m,v,g,w,y,_,x,O,E;Pe(3,arguments);var T=String(e),k=String(t),A=Xa(),D=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:A.locale)!==null&&i!==void 0?i:iP;if(!D.match)throw new RangeError("locale must contain match property");var R=Je((a=(s=(l=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(f=r.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:A.firstWeekContainsDate)!==null&&s!==void 0?s:(p=A.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Je((v=(g=(w=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(_=r.locale)===null||_===void 0||(x=_.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&w!==void 0?w:A.weekStartsOn)!==null&&g!==void 0?g:(O=A.locale)===null||O===void 0||(E=O.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&v!==void 0?v:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return T===""?Ne(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:I,locale:D},G=[new uhe],H=k.match(qhe).map(function(j){var P=j[0];if(P in JE){var B=JE[P];return B(j,D.formatLong)}return j}).join("").match(Ghe),Q=[],Z=PR(H),te;try{var X=function(){var j=te.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&x2(j)&&Z0(j,k,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&w2(j)&&Z0(j,k,e);var P=j[0],B=Yhe[P];if(B){var J=B.incompatibleTokens;if(Array.isArray(J)){var K=Q.find(function(he){return J.includes(he.token)||he.token===P});if(K)throw new RangeError("The format string mustn't contain `".concat(K.fullToken,"` and `").concat(j,"` at the same time"))}else if(B.incompatibleTokens==="*"&&Q.length>0)throw new RangeError("The format string mustn't contain `".concat(j,"` and any other token at the same time"));Q.push({token:P,fullToken:j});var le=B.run(T,j,D.match,z);if(!le)return{v:new Date(NaN)};G.push(le.setter),T=le.rest}else{if(P.match(Qhe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");if(j==="''"?j="'":P==="'"&&(j=Jhe(j)),T.indexOf(j)===0)T=T.slice(j.length);else return{v:new Date(NaN)}}};for(Z.s();!(te=Z.n()).done;){var $=X();if(di($)==="object")return $.v}}catch(j){Z.e(j)}finally{Z.f()}if(T.length>0&&Xhe.test(T))return new Date(NaN);var V=G.map(function(j){return j.priority}).sort(function(j,P){return P-j}).filter(function(j,P,B){return B.indexOf(j)===P}).map(function(j){return G.filter(function(P){return P.priority===j}).sort(function(P,B){return B.subPriority-P.subPriority})}).map(function(j){return j[0]}),W=Ne(n);if(isNaN(W.getTime()))return new Date(NaN);var re=v2(W,Of(W)),q={},ee=PR(V),ie;try{for(ee.s();!(ie=ee.n()).done;){var se=ie.value;if(!se.validate(re,z))return new Date(NaN);var fe=se.set(re,q,z);Array.isArray(fe)?(re=fe[0],oP(q,fe[1])):re=fe}}catch(j){ee.e(j)}finally{ee.f()}return re}function Jhe(e){return e.match(Khe)[1].replace(Zhe,"'")}function eme(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function tme(e,t){Pe(2,arguments);var n=QE(e),r=QE(t);return n.getTime()===r.getTime()}function nme(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t);return n.getFullYear()===r.getFullYear()}function Cf(e,t){Pe(2,arguments);var n=Ne(e).getTime(),r=Ne(t.start).getTime(),i=Ne(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function lP(e,t){Pe(2,arguments);var n=Je(t);return Ru(e,-n)}function Ua(e,t){var n;Pe(1,arguments);var r=Je((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=ame(e),o;if(i.date){var a=sme(i.date,r);o=lme(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,u;if(i.time&&(l=ume(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(u=cme(i.timezone),isNaN(u))return new Date(NaN)}else{var f=new Date(s+l),d=new Date(0);return d.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),d.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),d}return new Date(s+l+u)}var Ng={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},rme=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ime=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ome=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ame(e){var t={},n=e.split(Ng.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Ng.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ng.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Ng.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function sme(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function lme(e,t){if(t===null)return new Date(NaN);var n=e.match(rme);if(!n)return new Date(NaN);var r=!!n[4],i=sp(n[1]),o=sp(n[2])-1,a=sp(n[3]),s=sp(n[4]),l=sp(n[5])-1;if(r)return mme(t,s,l)?fme(t,s,l):new Date(NaN);var u=new Date(0);return!pme(t,o,a)||!hme(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}function sp(e){return e?parseInt(e):1}function ume(e){var t=e.match(ime);if(!t)return NaN;var n=sO(t[1]),r=sO(t[2]),i=sO(t[3]);return vme(n,r,i)?n*Y_+r*eP+i*1e3:NaN}function sO(e){return e&&parseFloat(e.replace(",","."))||0}function cme(e){if(e==="Z")return 0;var t=e.match(ome);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return gme(r,i)?n*(r*Y_+i*eP):NaN}function fme(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var dme=[31,null,31,30,31,30,31,31,30,31,30,31];function P2(e){return e%400===0||e%4===0&&e%100!==0}function pme(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(dme[t]||(P2(e)?29:28))}function hme(e,t){return t>=1&&t<=(P2(e)?366:365)}function mme(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function vme(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function gme(e,t){return t>=0&&t<=59}function Cr(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=Jpe(a);return n.setMonth(r,Math.min(o,s)),n}function yme(e,t){if(Pe(2,arguments),di(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Ne(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Cr(n,t.month)),t.date!=null&&n.setDate(Je(t.date)),t.hours!=null&&n.setHours(Je(t.hours)),t.minutes!=null&&n.setMinutes(Je(t.minutes)),t.seconds!=null&&n.setSeconds(Je(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Je(t.milliseconds)),n)}function Oy(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t);return n.setHours(r),n}function Sy(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t);return n.setMinutes(r),n}function ac(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return Cr(n,n.getMonth()+o*3)}function bme(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t);return n.setSeconds(r),n}function ma(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function kf(e,t){Pe(2,arguments);var n=Je(t);return zi(e,-n)}function _me(e,t){Pe(2,arguments);var n=Je(t);return f2(e,-n)}function NR(e,t){Pe(2,arguments);var n=Je(t);return G0(e,-n)}function Xh(e,t){Pe(2,arguments);var n=Je(t);return Sf(e,-n)}const A2="yyyy-MM-dd",uP="yyyy-MM-dd HH:mm",Qs=()=>new Date,cP=e=>typeof e!="string",fP=(e,t)=>!e||!cP(e)?e:t?Tf(e,t):Xpe(e),Js=e=>fP(e,void 0),Wl=e=>fP(e,A2),J0=e=>fP(e,uP),ho=e=>cP(e)?e:Ua(e),lv=(e,t,n)=>{try{return Cf(ho(e),{start:ho(t??e),end:ho(n??e)})}catch{return!1}},xl=(e,t)=>O2(e,t)||po(e,t),N2=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),wme=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),lO=e=>Object.prototype.toString.call(e)==="[object Object]",M2=(e,t)=>{const n={...e};return!lO(e)||!lO(t)||Object.keys(t).forEach(r=>{lO(t[r])?n[r]=r in e?M2(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},dP=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),xme=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Qh=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},Ome=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),uv="all",L2={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[uv]:void 0},R2=Object.keys(L2),D2=e=>!e||!e.startDate&&!e.endDate,eb=e=>typeof e=="string"&&R2.includes(e),Sme=R2.filter(e=>e!==uv),MR=e=>e?ho(e):null,I2=(e,t)=>({startDate:MR(e),endDate:MR(t)}),Eme=e=>{if(!(!e||D2(e)))return e.startDate&&!e.endDate?`Since ${Wl(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Wl(e.endDate)}`:`${Wl(e.startDate)} - ${Wl(e.endDate)}`},F2=e=>{if(!(!e||e===uv))return eb(e)?L2[e]:Eme(e)},Ci=e=>oi(lP(Qs(),e)),sc=e=>({startDate:e,endDate:bu(Qs())}),U2=e=>{var t;return((t=[[()=>e==="today",()=>sc(oi(Qs()))],[()=>e==="yesterday",()=>({startDate:Ci(1),endDate:bu(lP(Qs(),1))})],[()=>e==="last7Days",()=>sc(Ci(7))],[()=>e==="last30Days",()=>sc(Ci(30))],[()=>e==="last90Days",()=>sc(Ci(90))],[()=>e==="last180Days",()=>sc(Ci(180))],[()=>e==="last365Days",()=>sc(Ci(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},Tme=e=>{var t;const n=ho(e);return((t=[[()=>xl(oi(Qs()),n),"today"],[()=>xl(Ci(1),n),"yesterday"],[()=>xl(Ci(7),n),"last7Days"],[()=>xl(Ci(30),n),"last30Days"],[()=>xl(Ci(90),n),"last90Days"],[()=>xl(Ci(180),n),"last180Days"],[()=>xl(Ci(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??uv},Cme=e=>eb(e)?U2(e):e,_r=(e,t)=>WB(e,t,{serializeError:n=>n}),cv=Wn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),LR=5e3,RR=4,DR=2,kme=({currentPage:e,pagesCount:t})=>e>=t,jme=(e,t)=>t*100/e,fv=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=Wn(`${e}/progressChanged`),o=Wn(`${e}/large`),a=Wn(`${e}/fallbackToInterval`),s=_r(e,async(l,{getState:u,dispatch:f})=>{var d;const[p,m]=t(l),v=async x=>Promise.all(x.map(async O=>p(O,LR).then(({data:E})=>E))).then(O=>O.flat()),g=async(x,O=0)=>{if(r(u))return[];const E=await v(x[O]);return f(i(jme(x.length,O+DR))),O<x.length-1?E.concat(await g(x,O+1)):E},w=async(x=1)=>{const{pagination:O,data:E}=await p(x,LR);if(!O||kme(O))return E;const T=dP(DR,O.pagesCount+1),k=Qh(T,RR);return O.pagesCount-1>RR&&f(o()),E.concat(await g(k))},[y,_]=await Promise.all([w(),m((d=l.query)==null?void 0:d.excludeBots)]);return!y.length&&_&&f(a(Tme(_.date))),{...n(l),visits:y}});return Object.assign(s,{progressChanged:i,large:o,fallbackToInterval:a})},dv=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),pv=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,large:l,progressChanged:u,fallbackToInterval:f}=t,{reducer:d,actions:p}=Yn({name:e,initialState:n,reducers:{cancelGetVisits:v=>({...v,cancelLoad:!0})},extraReducers:v=>{v.addCase(o,()=>({...n,loading:!0})),v.addCase(a,(g,{error:w})=>({...n,error:!0,errorData:xo(w)})),v.addCase(s,(g,{payload:w})=>({...g,...w,loading:!1,loadingLarge:!1,error:!1})),v.addCase(l,g=>({...g,loadingLarge:!0})),v.addCase(u,(g,{payload:w})=>({...g,progress:w})),v.addCase(f,(g,{payload:w})=>({...g,fallbackInterval:w})),v.addCase(cv,(g,{payload:w})=>{const{visits:y}=g,_=r(g,w.createdVisits).map(({visit:x})=>x);return _.length?{...g,visits:[..._,...y]}:g}),i==null||i(v)}}),{cancelGetVisits:m}=p;return{reducer:d,cancelGetVisits:m}},$2="shlink/domainVisits",B2="DEFAULT",Pme={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Ame=e=>fv({typePrefix:`${$2}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1})=>{const i=e(),o=async(s,l)=>i.getDomainVisits(t,{...n,page:s,itemsPerPage:l}),a=dv(r,async s=>i.getDomainVisits(t,s));return[o,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),Nme=e=>pv({name:$2,initialState:Pme,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>a&&Ode(a,t)&&lv(s.date,i,o))}}),Ey=({className:e="",placement:t,children:n})=>{const r=sl();return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:e,ref:r,children:b.jsx(Le,{icon:ej})}),b.jsx(qr,{target:r,placement:t,children:n})]})},pP=e=>t=>{t.preventDefault(),e()},hP=(e,t,n=1)=>dP(n,e+1).map(t),Mme=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,va=e=>e!=null&&!Mme(e),uO=e=>e||null,z2=e=>e?"true":"false",cO=e=>e===void 0?void 0:z2(e),fO=({isLast:e,...t})=>b.jsx(by,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),Lme=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,l]=F.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,f]=F.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[d,p]=F.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),m=pP(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:uO(s),regular404Redirect:uO(u),invalidShortUrlRedirect:uO(d)}}).then(t));return b.jsx(qa,{isOpen:e,toggle:t,centered:!0,children:b.jsxs("form",{name:"domainRedirectsModal",onSubmit:m,children:[b.jsxs(Ka,{toggle:t,children:["Edit redirects for ",b.jsx("b",{children:n.domain})]}),b.jsxs(na,{children:[b.jsxs(fO,{value:s,onChange:l,children:[b.jsxs(Ey,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",b.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),b.jsxs(fO,{value:u,onChange:f,children:[b.jsxs(Ey,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",b.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),b.jsxs(fO,{value:d,isLast:!0,onChange:p,children:[b.jsx(Ey,{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"]})]}),b.jsxs(Nu,{children:[b.jsx(wt,{color:"link",type:"button",onClick:t,children:"Cancel"}),b.jsx(wt,{color:"primary",children:"Save"})]})]})})},Rme=({domain:e,editDomainRedirects:t})=>{const[n,r]=En(),i=Mu("domainVisits"),o=Lu();return b.jsxs(F_,{children:[i&&b.jsxs(ze,{tag:Yt,to:`${o}/domain/${e.domain}${e.isDefault?`_${B2}`:""}/visits`,children:[b.jsx(Le,{icon:Jk,fixedWidth:!0})," Visit stats"]}),b.jsxs(ze,{onClick:r,children:[b.jsx(Le,{fixedWidth:!0,icon:Qk})," Edit redirects"]}),b.jsx(Lme,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Sa=({href:e,children:t,rel:n,...r})=>b.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Dme="Left",Ime="Right",Fme="Up",Ume="Down",Lc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},tT={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},IR="mousemove",FR="mouseup",$me="touchend",Bme="touchmove",zme="touchstart";function Vme(e,t,n,r){return e>t?n>0?Ime:Dme:r>0?Ume:Fme}function UR(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 Hme(e,t){const n=u=>{const f="touches"in u;f&&u.touches.length>1||e((d,p)=>{p.trackMouse&&!f&&(document.addEventListener(IR,r),document.addEventListener(FR,a));const{clientX:m,clientY:v}=f?u.touches[0]:u,g=UR([m,v],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},d),tT),{initial:g.slice(),xy:g,start:u.timeStamp||0})})},r=u=>{e((f,d)=>{const p="touches"in u;if(p&&u.touches.length>1)return f;if(u.timeStamp-f.start>d.swipeDuration)return f.swiping?Object.assign(Object.assign({},f),{swiping:!1}):f;const{clientX:m,clientY:v}=p?u.touches[0]:u,[g,w]=UR([m,v],d.rotationAngle),y=g-f.xy[0],_=w-f.xy[1],x=Math.abs(y),O=Math.abs(_),E=(u.timeStamp||0)-f.start,T=Math.sqrt(x*x+O*O)/(E||1),k=[y/(E||1),_/(E||1)],A=Vme(x,O,y,_),D=typeof d.delta=="number"?d.delta:d.delta[A.toLowerCase()]||Lc.delta;if(x<D&&O<D&&!f.swiping)return f;const R={absX:x,absY:O,deltaX:y,deltaY:_,dir:A,event:u,first:f.first,initial:f.initial,velocity:T,vxvy:k};R.first&&d.onSwipeStart&&d.onSwipeStart(R),d.onSwiping&&d.onSwiping(R);let I=!1;return(d.onSwiping||d.onSwiped||d[`onSwiped${A}`])&&(I=!0),I&&d.preventScrollOnSwipe&&d.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},f),{first:!1,eventData:R,swiping:!0})})},i=u=>{e((f,d)=>{let p;if(f.swiping&&f.eventData){if(u.timeStamp-f.start<d.swipeDuration){p=Object.assign(Object.assign({},f.eventData),{event:u}),d.onSwiped&&d.onSwiped(p);const m=d[`onSwiped${p.dir}`];m&&m(p)}}else d.onTap&&d.onTap({event:u});return d.onTouchEndOrOnMouseUp&&d.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},f),tT),{eventData:p})})},o=()=>{document.removeEventListener(IR,r),document.removeEventListener(FR,a)},a=u=>{o(),i(u)},s=(u,f)=>{let d=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},Lc.touchEventOptions),f.touchEventOptions),m=[[zme,n,p],[Bme,r,Object.assign(Object.assign({},p),f.preventScrollOnSwipe?{passive:!1}:{})],[$me,i,p]];m.forEach(([v,g,w])=>u.addEventListener(v,g,w)),d=()=>m.forEach(([v,g])=>u.removeEventListener(v,g))}return d},l={ref:u=>{u!==null&&e((f,d)=>{if(f.el===u)return f;const p={};return f.el&&f.el!==u&&f.cleanUpTouch&&(f.cleanUpTouch(),p.cleanUpTouch=void 0),d.trackTouch&&u&&(p.cleanUpTouch=s(u,d)),Object.assign(Object.assign(Object.assign({},f),{el:u}),p)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function Wme(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 Yme(e){const{trackMouse:t}=e,n=F.useRef(Object.assign({},tT)),r=F.useRef(Object.assign({},Lc)),i=F.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Lc),e);let o;for(o in Lc)r.current[o]===void 0&&(r.current[o]=Lc[o]);const[a,s]=F.useMemo(()=>Hme(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=Wme(n.current,r.current,i.current,s),a}const Gme=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return Yme({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},qme=(e,t)=>{const[n,r]=F.useState(t),i=F.useCallback(o=>{const{location:a,history:s}=window,l=pd(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${$_(l)}`),r(o)},[e]);return[n,i]},Kme=(e,t)=>{const n=F.useRef(!0);F.useEffect(()=>{!n.current&&e(),n.current=!1},t)},md=()=>{const e=ta();return F.useCallback(()=>e(-1),[e])},V2=()=>{const{search:e}=Nn();return F.useMemo(()=>pd(e),[e])},mP=(e,t)=>{const n=F.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=F.useState(n());return F.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},Zme=({status:e,matchMedia:t=window.matchMedia})=>{const n=sl(),r=mP(991,t);return e==="validating"?b.jsx(Le,{fixedWidth:!0,icon:k$,spin:!0}):b.jsxs(b.Fragment,{children:[b.jsx("span",{ref:n,children:e==="valid"?b.jsx(Le,{fixedWidth:!0,icon:Nh,className:"text-muted"}):b.jsx(Le,{fixedWidth:!0,icon:lS,className:"text-danger"})}),b.jsx(qr,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":b.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",b.jsx("br",{}),"Check the ",b.jsx(Sa,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},dO=({fallback:e})=>b.jsxs("span",{className:"text-muted",children:[!e&&b.jsx("small",{children:"No redirect"}),e&&b.jsxs(b.Fragment,{children:[e," ",b.jsx("small",{children:"(as fallback)"})]})]}),Xme=()=>b.jsxs(b.Fragment,{children:[b.jsx(Le,{fixedWidth:!0,icon:ZQ,className:"text-primary",id:"defaultDomainIcon"}),b.jsx(qr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),Qme=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return F.useEffect(()=>{n(e.domain)},[n,e.domain]),b.jsxs("tr",{className:"responsive-table__row",children:[b.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&b.jsx(Xme,{})}),b.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),b.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??b.jsx(dO,{fallback:r==null?void 0:r.baseUrlRedirect})}),b.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??b.jsx(dO,{fallback:r==null?void 0:r.regular404Redirect})}),b.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??b.jsx(dO,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),b.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:b.jsx(Zme,{status:s})}),b.jsx("td",{className:"responsive-table__cell text-end",children:b.jsx(Rme,{domain:e,editDomainRedirects:t})})]})},$R=[{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}],Jme=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var o;const{filteredDomains:a,defaultRedirects:s,loading:l,error:u,errorData:f}=t,d=s??((o=a.find(({isDefault:p})=>p))==null?void 0:o.redirects);return F.useEffect(()=>{e()},[e]),l?b.jsx(Da,{loading:!0}):b.jsxs(b.Fragment,{children:[b.jsx(ov,{className:"mb-3",onChange:n}),(()=>u?b.jsx(ii,{type:"error",children:b.jsx(Fa,{errorData:f,fallbackMessage:"Error loading domains :("})}):b.jsx(vn,{children:b.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[b.jsx("thead",{className:"responsive-table__header",children:b.jsx("tr",{children:$R.map((p,m)=>b.jsx("th",{children:b.jsx("span",{className:p.isHidden?"sr-only":void 0,children:p.value})},m))})}),b.jsxs("tbody",{children:[a.length<1&&b.jsx("tr",{children:b.jsx("td",{colSpan:$R.length,className:"text-center",children:"No results found"})}),a.map(p=>b.jsx(Qme,{domain:p,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:d},p.domain))]})]})}))()]})},eve="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",tve=e=>_r(eve,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Mg="shlink/domainsList",Lg={domains:[],filteredDomains:[],loading:!1,error:!1},BR=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},zR=(e,t)=>n=>n.domain!==e?n:{...n,status:t},nve=(e,t)=>{const n=_r(`${Mg}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=_r(`${Mg}/checkDomainHealth`,async a=>{try{const{status:s}=await e().health(a);return{domain:a,status:s==="pass"?"valid":"invalid"}}catch{return{domain:a,status:"invalid"}}}),i=Wn(`${Mg}/filterDomains`),{reducer:o}=Yn({name:Mg,initialState:Lg,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...Lg,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...Lg,error:!0,errorData:xo(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...Lg,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...u},{payload:f})=>({...u,domains:s.map(zR(f.domain,f.status)),filteredDomains:l.map(zR(f.domain,f.status))})),a.addCase(i,(s,{payload:l})=>({...s,filteredDomains:s.domains.filter(({domain:u})=>u.toLowerCase().match(l.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:l})=>({...s,domains:s.domains.map(BR(l)),filteredDomains:s.filteredDomains.map(BR(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},rve=(e,t)=>{e.serviceFactory("DomainSelector",()=>cde),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>Jme),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",nve,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",tve,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},VR="shlink/mercure",ive={loading:!0,error:!1},ove=e=>{const t=_r(`${VR}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Yn({name:VR,initialState:ive,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:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},ave=e=>{e.serviceFactory("mercureInfoReducerCreator",ove,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function an(e){return F.useRef(e).current}function sn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}var Rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nT={exports:{}};/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,u=n.document,f=n.Promise,d=n.fetch,p=n.Response,m=n.TextDecoder,v=n.TextEncoder,g=n.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(ue){u.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ue){function ve(){}return ve.prototype=ue,new ve}),Date.now||(Date.now=function(){return new Date().getTime()}),g==null){var w=d;d=function(ue,ve){var ge=ve.signal;return w(ue,{headers:ve.headers,credentials:ve.credentials,cache:ve.cache}).then(function(Oe){var Ce=Oe.body.getReader();return ge._reader=Ce,ge._aborted&&ge._reader.cancel(),{status:Oe.status,statusText:Oe.statusText,headers:Oe.headers,body:{getReader:function(){return Ce}}}})},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function y(){this.bitsNeeded=0,this.codePoint=0}y.prototype.decode=function(ue){function ve(_e,be,Se){if(Se===1)return _e>=128>>be&&_e<<be<=2047;if(Se===2)return _e>=2048>>be&&_e<<be<=55295||_e>=57344>>be&&_e<<be<=65535;if(Se===3)return _e>=65536>>be&&_e<<be<=1114111;throw new Error}function ge(_e,be){if(_e===6*1)return be>>6>15?3:be>31?2:1;if(_e===6*2)return be>15?3:2;if(_e===6*3)return 3;throw new Error}for(var Oe=65533,Ce="",ke=this.bitsNeeded,Ae=this.codePoint,ce=0;ce<ue.length;ce+=1){var de=ue[ce];ke!==0&&(de<128||de>191||!ve(Ae<<6|de&63,ke-6,ge(ke,Ae)))&&(ke=0,Ae=Oe,Ce+=String.fromCharCode(Ae)),ke===0?(de>=0&&de<=127?(ke=0,Ae=de):de>=192&&de<=223?(ke=6*1,Ae=de&31):de>=224&&de<=239?(ke=6*2,Ae=de&15):de>=240&&de<=247?(ke=6*3,Ae=de&7):(ke=0,Ae=Oe),ke!==0&&!ve(Ae,ke,ge(ke,Ae))&&(ke=0,Ae=Oe)):(ke-=6,Ae=Ae<<6|de&63),ke===0&&(Ae<=65535?Ce+=String.fromCharCode(Ae):(Ce+=String.fromCharCode(55296+(Ae-65535-1>>10)),Ce+=String.fromCharCode(56320+(Ae-65535-1&1023))))}return this.bitsNeeded=ke,this.codePoint=Ae,Ce};var _=function(){try{return new m().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(m==null||v==null||!_())&&(m=y);var x=function(){};function O(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=x,this.onload=x,this.onerror=x,this.onreadystatechange=x,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=x}O.prototype.open=function(ue,ve){this._abort(!0);var ge=this,Oe=this._xhr,Ce=1,ke=0;this._abort=function(Se){ge._sendTimeout!==0&&(i(ge._sendTimeout),ge._sendTimeout=0),(Ce===1||Ce===2||Ce===3)&&(Ce=4,Oe.onload=x,Oe.onerror=x,Oe.onabort=x,Oe.onprogress=x,Oe.onreadystatechange=x,Oe.abort(),ke!==0&&(i(ke),ke=0),Se||(ge.readyState=4,ge.onabort(null),ge.onreadystatechange())),Ce=0};var Ae=function(){if(Ce===1){var Se=0,Me="",De=void 0;if("contentType"in Oe)Se=200,Me="OK",De=Oe.contentType;else try{Se=Oe.status,Me=Oe.statusText,De=Oe.getResponseHeader("Content-Type")}catch{Se=0,Me="",De=void 0}Se!==0&&(Ce=2,ge.readyState=2,ge.status=Se,ge.statusText=Me,ge._contentType=De,ge.onreadystatechange())}},ce=function(){if(Ae(),Ce===2||Ce===3){Ce=3;var Se="";try{Se=Oe.responseText}catch{}ge.readyState=3,ge.responseText=Se,ge.onprogress()}},de=function(Se,Me){if((Me==null||Me.preventDefault==null)&&(Me={preventDefault:x}),ce(),Ce===1||Ce===2||Ce===3){if(Ce=4,ke!==0&&(i(ke),ke=0),ge.readyState=4,Se==="load")ge.onload(Me);else if(Se==="error")ge.onerror(Me);else if(Se==="abort")ge.onabort(Me);else throw new TypeError;ge.onreadystatechange()}},_e=function(Se){Oe!=null&&(Oe.readyState===4?(!("onload"in Oe)||!("onerror"in Oe)||!("onabort"in Oe))&&de(Oe.responseText===""?"error":"load",Se):Oe.readyState===3?"onprogress"in Oe||ce():Oe.readyState===2&&Ae())},be=function(){ke=r(function(){be()},500),Oe.readyState===3&&ce()};"onload"in Oe&&(Oe.onload=function(Se){de("load",Se)}),"onerror"in Oe&&(Oe.onerror=function(Se){de("error",Se)}),"onabort"in Oe&&(Oe.onabort=function(Se){de("abort",Se)}),"onprogress"in Oe&&(Oe.onprogress=ce),"onreadystatechange"in Oe&&(Oe.onreadystatechange=function(Se){_e(Se)}),("contentType"in Oe||!("ontimeout"in o.prototype))&&(ve+=(ve.indexOf("?")===-1?"?":"&")+"padding=true"),Oe.open(ue,ve,!0),"readyState"in Oe&&(ke=r(function(){be()},0))},O.prototype.abort=function(){this._abort(!1)},O.prototype.getResponseHeader=function(ue){return this._contentType},O.prototype.setRequestHeader=function(ue,ve){var ge=this._xhr;"setRequestHeader"in ge&&ge.setRequestHeader(ue,ve)},O.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},O.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var ue=this;ue._sendTimeout=r(function(){ue._sendTimeout=0,ue.send()},4);return}var ve=this._xhr;"withCredentials"in ve&&(ve.withCredentials=this.withCredentials);try{ve.send(void 0)}catch(ge){throw ge}};function E(ue){return ue.replace(/[A-Z]/g,function(ve){return String.fromCharCode(ve.charCodeAt(0)+32)})}function T(ue){for(var ve=Object.create(null),ge=ue.split(`\r
`),Oe=0;Oe<ge.length;Oe+=1){var Ce=ge[Oe],ke=Ce.split(": "),Ae=ke.shift(),ce=ke.join(": ");ve[E(Ae)]=ce}this._map=ve}T.prototype.get=function(ue){return this._map[E(ue)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function k(){}k.prototype.open=function(ue,ve,ge,Oe,Ce,ke,Ae){ue.open("GET",Ce);var ce=0;ue.onprogress=function(){var _e=ue.responseText,be=_e.slice(ce);ce+=be.length,ge(be)},ue.onerror=function(_e){_e.preventDefault(),Oe(new Error("NetworkError"))},ue.onload=function(){Oe(null)},ue.onabort=function(){Oe(null)},ue.onreadystatechange=function(){if(ue.readyState===o.HEADERS_RECEIVED){var _e=ue.status,be=ue.statusText,Se=ue.getResponseHeader("Content-Type"),Me=ue.getAllResponseHeaders();ve(_e,be,Se,new T(Me))}},ue.withCredentials=ke;for(var de in Ae)Object.prototype.hasOwnProperty.call(Ae,de)&&ue.setRequestHeader(de,Ae[de]);return ue.send(),ue};function A(ue){this._headers=ue}A.prototype.get=function(ue){return this._headers.get(ue)};function D(){}D.prototype.open=function(ue,ve,ge,Oe,Ce,ke,Ae){var ce=null,de=new g,_e=de.signal,be=new m;return d(Ce,{headers:Ae,credentials:ke?"include":"same-origin",signal:_e,cache:"no-store"}).then(function(Se){return ce=Se.body.getReader(),ve(Se.status,Se.statusText,Se.headers.get("Content-Type"),new A(Se.headers)),new f(function(Me,De){var at=function(){ce.read().then(function(ut){if(ut.done)Me(void 0);else{var et=be.decode(ut.value,{stream:!0});ge(et),at()}}).catch(function(ut){De(ut)})};at()})}).catch(function(Se){if(Se.name!=="AbortError")return Se}).then(function(Se){Oe(Se)}),{abort:function(){ce!=null&&ce.cancel(),de.abort()}}};function R(){this._listeners=Object.create(null)}function I(ue){r(function(){throw ue},0)}R.prototype.dispatchEvent=function(ue){ue.target=this;var ve=this._listeners[ue.type];if(ve!=null)for(var ge=ve.length,Oe=0;Oe<ge;Oe+=1){var Ce=ve[Oe];try{typeof Ce.handleEvent=="function"?Ce.handleEvent(ue):Ce.call(this,ue)}catch(ke){I(ke)}}},R.prototype.addEventListener=function(ue,ve){ue=String(ue);var ge=this._listeners,Oe=ge[ue];Oe==null&&(Oe=[],ge[ue]=Oe);for(var Ce=!1,ke=0;ke<Oe.length;ke+=1)Oe[ke]===ve&&(Ce=!0);Ce||Oe.push(ve)},R.prototype.removeEventListener=function(ue,ve){ue=String(ue);var ge=this._listeners,Oe=ge[ue];if(Oe!=null){for(var Ce=[],ke=0;ke<Oe.length;ke+=1)Oe[ke]!==ve&&Ce.push(Oe[ke]);Ce.length===0?delete ge[ue]:ge[ue]=Ce}};function z(ue){this.type=ue,this.target=void 0}function G(ue,ve){z.call(this,ue),this.data=ve.data,this.lastEventId=ve.lastEventId}G.prototype=Object.create(z.prototype);function H(ue,ve){z.call(this,ue),this.status=ve.status,this.statusText=ve.statusText,this.headers=ve.headers}H.prototype=Object.create(z.prototype);function Q(ue,ve){z.call(this,ue),this.error=ve.error}Q.prototype=Object.create(z.prototype);var Z=-1,te=0,X=1,$=2,V=-1,W=0,re=1,q=2,ee=3,ie=/^text\/event\-stream(;.*)?$/i,se=1e3,fe=18e6,j=function(ue,ve){var ge=ue==null?ve:parseInt(ue,10);return ge!==ge&&(ge=ve),P(ge)},P=function(ue){return Math.min(Math.max(ue,se),fe)},B=function(ue,ve,ge){try{typeof ve=="function"&&ve.call(ue,ge)}catch(Oe){I(Oe)}};function J(ue,ve){R.call(this),ve=ve||{},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,he(this,ue,ve)}function K(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var le=d!=null&&p!=null&&"body"in p.prototype;function he(ue,ve,ge){ve=String(ve);var Oe=!!ge.withCredentials,Ce=ge.lastEventIdQueryParameterName||"lastEventId",ke=P(1e3),Ae=j(ge.heartbeatTimeout,45e3),ce="",de=ke,_e=!1,be=0,Se=ge.headers||{},Me=ge.Transport,De=le&&Me==null?void 0:new O(Me!=null?new Me:K()),at=Me!=null&&typeof Me!="string"?new Me:De==null?new D:new k,ut=void 0,et=0,ln=Z,Xt="",Ln="",wr="",So="",Jn=W,Ld=0,Eo=0,Av=function(_n,dn,xr,er){if(ln===te)if(_n===200&&xr!=null&&ie.test(xr)){ln=X,_e=Date.now(),de=ke,ue.readyState=X;var tr=new H("open",{status:_n,statusText:dn,headers:er});ue.dispatchEvent(tr),B(ue,ue.onopen,tr)}else{var Tn="";_n!==200?(dn&&(dn=dn.replace(/\s+/g," ")),Tn="EventSource's response has a status "+_n+" "+dn+" that is not 200. Aborting the connection."):Tn="EventSource's response has a Content-Type specifying an unsupported type: "+(xr==null?"-":xr.replace(/\s+/g," "))+". Aborting the connection.",Rd();var tr=new H("error",{status:_n,statusText:dn,headers:er});ue.dispatchEvent(tr),B(ue,ue.onerror,tr),console.error(Tn)}},Nv=function(_n){if(ln===X){for(var dn=-1,xr=0;xr<_n.length;xr+=1){var er=_n.charCodeAt(xr);(er===`
`.charCodeAt(0)||er==="\r".charCodeAt(0))&&(dn=xr)}var tr=(dn!==-1?So:"")+_n.slice(0,dn+1);So=(dn===-1?So:"")+_n.slice(dn+1),_n!==""&&(_e=Date.now(),be+=_n.length);for(var Tn=0;Tn<tr.length;Tn+=1){var er=tr.charCodeAt(Tn);if(Jn===V&&er===`
`.charCodeAt(0))Jn=W;else if(Jn===V&&(Jn=W),er==="\r".charCodeAt(0)||er===`
`.charCodeAt(0)){if(Jn!==W){Jn===re&&(Eo=Tn+1);var Zi=tr.slice(Ld,Eo-1),Xi=tr.slice(Eo+(Eo<Tn&&tr.charCodeAt(Eo)===" ".charCodeAt(0)?1:0),Tn);Zi==="data"?(Xt+=`
`,Xt+=Xi):Zi==="id"?Ln=Xi:Zi==="event"?wr=Xi:Zi==="retry"?(ke=j(Xi,ke),de=ke):Zi==="heartbeatTimeout"&&(Ae=j(Xi,Ae),et!==0&&(i(et),et=r(function(){vl()},Ae)))}if(Jn===W){if(Xt!==""){ce=Ln,wr===""&&(wr="message");var nr=new G(wr,{data:Xt.slice(1),lastEventId:Ln});if(ue.dispatchEvent(nr),wr==="open"?B(ue,ue.onopen,nr):wr==="message"?B(ue,ue.onmessage,nr):wr==="error"&&B(ue,ue.onerror,nr),ln===$)return}Xt="",wr=""}Jn=er==="\r".charCodeAt(0)?V:W}else Jn===W&&(Ld=Tn,Jn=re),Jn===re?er===":".charCodeAt(0)&&(Eo=Tn+1,Jn=q):Jn===q&&(Jn=ee)}}},Mv=function(_n){if(ln===X||ln===te){ln=Z,et!==0&&(i(et),et=0),et=r(function(){vl()},de),de=P(Math.min(ke*16,de*2)),ue.readyState=te;var dn=new Q("error",{error:_n});ue.dispatchEvent(dn),B(ue,ue.onerror,dn),_n!=null&&console.error(_n)}},Rd=function(){ln=$,ut!=null&&(ut.abort(),ut=void 0),et!==0&&(i(et),et=0),ue.readyState=$},vl=function(){if(et=0,ln!==Z){if(!_e&&ut!=null)Mv(new Error("No activity within "+Ae+" milliseconds. "+(ln===te?"No response received.":be+" chars received.")+" Reconnecting.")),ut!=null&&(ut.abort(),ut=void 0);else{var _n=Math.max((_e||Date.now())+Ae-Date.now(),1);_e=!1,et=r(function(){vl()},_n)}return}_e=!1,be=0,et=r(function(){vl()},Ae),ln=te,Xt="",wr="",Ln=ce,So="",Ld=0,Eo=0,Jn=W;var dn=ve;if(ve.slice(0,5)!=="data:"&&ve.slice(0,5)!=="blob:"&&ce!==""){var xr=ve.indexOf("?");dn=xr===-1?ve:ve.slice(0,xr+1)+ve.slice(xr+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Xi,nr){return nr===Ce?"":Xi}),dn+=(ve.indexOf("?")===-1?"?":"&")+Ce+"="+encodeURIComponent(ce)}var er=ue.withCredentials,tr={};tr.Accept="text/event-stream";var Tn=ue.headers;if(Tn!=null)for(var Zi in Tn)Object.prototype.hasOwnProperty.call(Tn,Zi)&&(tr[Zi]=Tn[Zi]);try{ut=at.open(De,Av,Nv,Mv,dn,er,tr)}catch(Xi){throw Rd(),Xi}};ue.url=ve,ue.readyState=te,ue.withCredentials=Oe,ue.headers=Se,ue._close=Rd,vl()}J.prototype=Object.create(R.prototype),J.prototype.CONNECTING=te,J.prototype.OPEN=X,J.prototype.CLOSED=$,J.prototype.close=function(){this._close()},J.CONNECTING=te,J.OPEN=X,J.CLOSED=$,J.prototype.withCredentials=void 0;var Ee=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Ee=J),function(ue){{var ve=ue(t);ve!==void 0&&(e.exports=ve)}}(function(ue){ue.EventSourcePolyfill=J,ue.NativeEventSource=l,ue.EventSource=Ee})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Rc:globalThis)})(nT,nT.exports);var sve=nT.exports;const lve=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const l=({data:d})=>n(JSON.parse(d)),u=({status:d})=>d===401&&r(),f=t.map(d=>{const p=new URL(i);p.searchParams.append("topic",d);const m=new sve.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=u,m});return()=>f.forEach(d=>d.close())};function ul(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=ad();return F.useEffect(()=>{const{interval:l}=a,u=m=>l?n.add(m):i([m]),f=t(s),d=lve(a,f,u,o);if(!l)return d;const p=setInterval(()=>{i([...n]),n.clear()},l*1e3*60);return()=>{clearInterval(p),d==null||d()}},[i,o,a,s]),b.jsx(e,{...r})}}class Ri{}uo(Ri,"visits","https://shlink.io/new-visit"),uo(Ri,"orphanVisits","https://shlink.io/new-orphan-visit"),uo(Ri,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const vP="shlink/shortUrlDeletion",HR={shortCode:"",loading:!1,deleted:!1,error:!1},uve=e=>_r(`${vP}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),H2=Wn(`${vP}/shortUrlDeleted`),cve=e=>{const{actions:t,reducer:n}=Yn({name:vP,initialState:HR,reducers:{resetDeleteShortUrl:()=>HR},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:xo(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},W2="shlink/shortUrlsList",Y2=5,fve={loading:!0,error:!1},dve=e=>_r(`${W2}/listShortUrls`,t=>e().listShortUrls(t??{})),pve=(e,t,n)=>Yn({name:W2,initialState:fve,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:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,Y2-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:l}=o;return Jp(a,s,l)?o:a}))}),r.addCase(H2,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Jp(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(cv,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:l})=>l&&Jp(a,l.shortCode,l.domain)))==null?void 0:s.shortUrl)??a}))})}}),WR=10,{ceil:hve}=Math,mve=new Intl.NumberFormat("en-US"),bn=e=>mve.format(Number(e)),vve=e=>hve(e/WR)*WR,gve={field:"dateCreated",dir:"DESC"},G2={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:gve}},q2=F.createContext(G2),yve=q2.Provider,gP=()=>F.useContext(q2)??G2,Du=e=>gP()[e],rT=({children:e,title:t,link:n,tooltip:r})=>{const i=sl();return b.jsxs(b.Fragment,{children:[b.jsxs(ui,{innerRef:i,className:"highlight-card",body:!0,tag:Yt,to:n,children:[b.jsx(Le,{size:"3x",className:"highlight-card__link-icon",icon:Ffe}),b.jsx(Y7,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),b.jsx(W7,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&b.jsx(qr,{target:i,placement:"bottom",children:r})]})},YR=({loading:e,excludeBots:t,visitsSummary:n,...r})=>b.jsx(rT,{tooltip:n.bots!==void 0?b.jsxs(b.Fragment,{children:[t?"Plus":"Including"," ",b.jsx("strong",{children:bn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":bn(t&&n.nonBots?n.nonBots:n.total)}),K2=ul(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=an(K2),{loading:s,shortUrls:l}=e,{loading:u}=n,{loading:f,nonOrphanVisits:d,orphanVisits:p}=i,m=Lu(),v=ta(),g=Du("visits");return F.useEffect(()=>{t({itemsPerPage:Y2,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),b.jsxs(b.Fragment,{children:[b.jsxs(kr,{children:[b.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:b.jsx(YR,{title:"Visits",link:`${m}/non-orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:d})}),b.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:b.jsx(YR,{title:"Orphan visits",link:`${m}/orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:p})}),b.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:b.jsx(rT,{title:"Short URLs",link:`${m}/list-short-urls/1`,children:s?"Loading...":bn((l==null?void 0:l.pagination.totalItems)??0)})}),b.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:b.jsx(rT,{title:"Tags",link:`${m}/manage-tags`,children:u?"Loading...":bn(n.tags.length)})})]}),b.jsxs(ui,{className:"mb-3",children:[b.jsxs(gf,{children:[b.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),b.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),b.jsx(Yt,{className:"float-end",to:`${m}/create-short-url`,children:"Advanced options »"})]}),b.jsx(vf,{children:b.jsx(a,{basicMode:!0})})]}),b.jsxs(ui,{children:[b.jsxs(gf,{children:[b.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),b.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),b.jsx(Yt,{className:"float-end",to:`${m}/list-short-urls/1`,children:"See all »"})]}),b.jsx(vf,{children:b.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:w=>v(`${m}/list-short-urls/1?tags=${encodeURIComponent(w)}`)})})]})]})},()=>[Ri.visits,Ri.orphanVisits]),bve=sn(K2,["ShortUrlsTable","CreateShortUrl"]);function _ve(e,t){e.factory("Overview",bve),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const wve=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}),Z2=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=an(Z2),a=Du("shortUrlCreation"),s=F.useMemo(()=>wve(a),[a]);return b.jsxs(b.Fragment,{children:[b.jsx(i,{initialState:s,saving:t.saving,mode:r?"create-basic":"create",onSave:async l=>(n(),e(l))}),b.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},xve=sn(Z2,["ShortUrlForm","CreateShortUrlResult"]),q_=()=>{const e=ta(),t=Lu(),n=V2(),r=F.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:u,...f}=n,d=o?Ele(o):void 0,p=(a==null?void 0:a.split(","))??[];return{...f,orderBy:d,tags:p,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:u!==void 0?u==="true":void 0}},[n]),i=F.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:u,excludeMaxVisitsReached:f,excludePastValidUntil:d,...p}=a,m={...p,orderBy:s&&Sle(s),tags:l.length>0?l.join(","):void 0,excludeBots:cO(u),excludeMaxVisitsReached:cO(f),excludePastValidUntil:cO(d)},v=$_(m),g=v?`?${v}`:"";e(`${t}/list-short-urls/1${g}`)},[r,e,t]);return[r,i]},X2=()=>{const{shortCode:e=""}=ad();return F.useMemo(()=>u2(e),[e])},Q2=({shortUrlDetail:e,getShortUrlDetail:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=an(Q2),{search:o}=Nn(),a=X2(),s=md(),{loading:l,error:u,errorData:f,shortUrl:d}=e,{saving:p,saved:m,error:v,errorData:g}=n,{domain:w}=pd(o),y=Du("shortUrlCreation"),_=F.useMemo(()=>Sde(d,y),[d,y]);return F.useEffect(()=>{a&&t({shortCode:a,domain:w})},[w,t,a]),l?b.jsx(Da,{loading:!0}):u?b.jsx(ii,{type:"error",children:b.jsx(Fa,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):b.jsxs(b.Fragment,{children:[b.jsx("header",{className:"mb-3",children:b.jsx(ui,{body:!0,children:b.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[b.jsx(wt,{color:"link",size:"lg",className:"p-0 me-3",onClick:s,"aria-label":"Go back",children:b.jsx(Le,{icon:A$})}),b.jsx("span",{className:"text-center",children:b.jsxs("small",{children:["Edit ",b.jsx(Sa,{href:(d==null?void 0:d.shortUrl)??""})]})}),b.jsx("span",{})]})})}),b.jsx(i,{initialState:_,saving:p,mode:"edit",onSave:async x=>{d&&r({...d,data:x})}}),m&&v&&b.jsx(ii,{type:"error",className:"mt-3",children:b.jsx(Fa,{errorData:g,fallbackMessage:"An error occurred while updating short URL :("})}),m&&!v&&b.jsx(ii,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},Ove=sn(Q2,["ShortUrlForm"]);var K_={},Sve=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},Eve=Sve,GR={"text/plain":"Text","text/html":"Url",default:"Text"},Tve="Copy to clipboard: #{key}, Enter";function Cve(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function kve(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=Eve(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(f){if(f.stopPropagation(),t.format)if(f.preventDefault(),typeof f.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=GR[t.format]||GR.default;window.clipboardData.setData(d,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Cve("message"in t?t.message:Tve),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var jve=kve;function iT(e){"@babel/helpers - typeof";return iT=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},iT(e)}Object.defineProperty(K_,"__esModule",{value:!0});K_.CopyToClipboard=void 0;var Rg=J2(M),Pve=J2(jve),Ave=["text","onCopy","options","children"];function J2(e){return e&&e.__esModule?e:{default:e}}function qR(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 KR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qR(Object(n),!0).forEach(function(r){yP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nve(e,t){if(e==null)return{};var n=Mve(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Lve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZR(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 Rve(e,t,n){return t&&ZR(e.prototype,t),n&&ZR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dve(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&&oT(e,t)}function oT(e,t){return oT=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},oT(e,t)}function Ive(e){var t=Uve();return function(){var n=tb(e),r;if(t){var i=tb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Fve(this,r)}}function Fve(e,t){if(t&&(iT(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 Uve(){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 tb(e){return tb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},tb(e)}function yP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var t9=function(e){Dve(n,e);var t=Ive(n);function n(){var r;Lve(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),yP(e9(r),"onClick",function(s){var l=r.props,u=l.text,f=l.onCopy,d=l.children,p=l.options,m=Rg.default.Children.only(d),v=(0,Pve.default)(u,p);f&&f(u,v),m&&m.props&&typeof m.props.onClick=="function"&&m.props.onClick(s)}),r}return Rve(n,[{key:"render",value:function(){var r=this.props;r.text,r.onCopy,r.options;var i=r.children,o=Nve(r,Ave),a=Rg.default.Children.only(i);return Rg.default.cloneElement(a,KR(KR({},o),{},{onClick:this.onClick}))}}]),n}(Rg.default.PureComponent);K_.CopyToClipboard=t9;yP(t9,"defaultProps",{onCopy:void 0,options:void 0});var $ve=K_,aT=$ve.CopyToClipboard;aT.CopyToClipboard=aT;var Bve=aT;const n9=Ot(Bve),r9=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=an(r9),[i,o]=r(),{error:a,saved:s}=e;if(F.useEffect(()=>{t()},[t]),a)return b.jsxs(ii,{type:"error",className:"mt-3",children:[n&&b.jsx(Le,{"data-testid":"error-close-button",icon:lS,className:"float-end pointer",onClick:t}),b.jsx(Fa,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=e.result;return b.jsxs(ii,{type:"success",className:"mt-3",children:[n&&b.jsx(Le,{"data-testid":"success-close-button",icon:lS,className:"float-end pointer",onClick:t}),b.jsxs("span",{children:[b.jsx("b",{children:"Great!"})," The short URL is ",b.jsx("b",{children:l})]}),b.jsx(n9,{text:l,onCopy:o,children:b.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[b.jsx(Le,{icon:YB})," Copy"]})}),b.jsx(rv,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},zve=sn(r9,["useTimeoutToggle"]),pO="delete",Vve=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=F.useState("");F.useEffect(()=>i,[i]);const{loading:u,error:f,deleted:d,errorData:p}=r,m=F.useCallback(()=>{i(),t()},[i,t]),v=F.useCallback(g=>(g.preventDefault(),o(e).then(t)),[o,e,t]);return b.jsx(qa,{isOpen:n,toggle:m,centered:!0,onClosed:()=>d&&a(e),children:b.jsxs("form",{onSubmit:v,children:[b.jsx(Ka,{toggle:m,children:b.jsx("span",{className:"text-danger",children:"Delete short URL"})}),b.jsxs(na,{children:[b.jsxs("p",{children:[b.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),b.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),b.jsxs("p",{children:["Write ",b.jsx("b",{children:pO})," to confirm deletion."]}),b.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${pO}`,value:s,onChange:g=>l(g.target.value)}),f&&b.jsx(ii,{type:dde(p)?"warning":"error",small:!0,className:"mt-2",children:b.jsx(Fa,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),b.jsxs(Nu,{children:[b.jsx("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),b.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==pO||u,children:u?"Deleting...":"Delete"})]})]})})},i9=({amount:e=0,loading:t=!1,...n})=>b.jsxs(wt,{...n,outline:!0,color:"primary",disabled:t,children:[b.jsx(Le,{icon:WQ})," ",t?"Exporting...":b.jsxs(b.Fragment,{children:["Export (",bn(e),")"]})]}),XR=20,o9=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=an(o9),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=q_(),[u,,f,d]=En(),p=F.useCallback(async()=>{const m=e/XR,v=async(w=1)=>{const{data:y}=await t().listShortUrls({page:`${w}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:XR});return w>=m?y:y.concat(await v(w+1))};f();const g=await v();n.exportShortUrls(g.map(w=>{var y;const{hostname:_,pathname:x}=new URL(w.shortUrl),O=x.substring(1);return{createdAt:w.dateCreated,domain:_,shortCode:O,shortUrl:w.shortUrl,longUrl:w.longUrl,title:w.title??"",tags:w.tags.join("|"),visits:((y=w==null?void 0:w.visitsSummary)==null?void 0:y.total)??w.visitsCount}})),d()},[e,t,a,s,n,i,o,f,d,r,l]);return b.jsx(i9,{loading:u,className:"btn-md-block",amount:e,onClick:p})},Hve=sn(o9,["apiClientFactory","ReportExporter"]),a9=({text:e,onCopy:t})=>b.jsx(n9,{text:e,onCopy:t,children:b.jsx(Le,{icon:YB,className:"ms-2 copy-to-clipboard-icon"})}),Wve=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=$_({...n,margin:t>0?t:void 0});return`${r}${i?`?${i}`:""}`},Yve=({errorCorrection:e,setErrorCorrection:t})=>b.jsxs(Za,{text:`Error correction (${e})`,children:[b.jsxs(ze,{active:e==="L",onClick:()=>t("L"),children:[b.jsx("b",{children:"L"}),"ow"]}),b.jsxs(ze,{active:e==="M",onClick:()=>t("M"),children:[b.jsx("b",{children:"M"}),"edium"]}),b.jsxs(ze,{active:e==="Q",onClick:()=>t("Q"),children:[b.jsx("b",{children:"Q"}),"uartile"]}),b.jsxs(ze,{active:e==="H",onClick:()=>t("H"),children:[b.jsx("b",{children:"H"}),"igh"]})]}),Gve=({format:e,setFormat:t})=>b.jsxs(Za,{text:`Format (${e})`,children:[b.jsx(ze,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),b.jsx(ze,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),s9=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=an(s9),[o,a]=F.useState(300),[s,l]=F.useState(0),[u,f]=F.useState("png"),[d,p]=F.useState("L"),m=F.useMemo(()=>Wve(e,{size:o,format:u,margin:s,errorCorrection:d}),[e,o,u,s,d]),v=F.useMemo(()=>o+s,[o,s]),g=F.useMemo(()=>{if(!(v<500))return v<800?"lg":"xl"},[v]);return b.jsxs(qa,{isOpen:r,toggle:n,centered:!0,size:g,children:[b.jsxs(Ka,{toggle:n,children:["QR code for ",b.jsx(Sa,{href:e,children:e})]}),b.jsxs(na,{children:[b.jsxs(kr,{children:[b.jsxs(ni,{className:"d-grid col-md-6",children:[b.jsxs("label",{htmlFor:"sizeControl",children:["Size: ",o,"px"]}),b.jsx("input",{id:"sizeControl",type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:w=>a(Number(w.target.value))})]}),b.jsxs(ni,{className:"d-grid col-md-6",children:[b.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),b.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:s,step:1,min:0,max:100,onChange:w=>l(Number(w.target.value))})]}),b.jsx(ni,{className:"d-grid col-md-6",children:b.jsx(Gve,{format:u,setFormat:f})}),b.jsx(ni,{className:"col-md-6",children:b.jsx(Yve,{errorCorrection:d,setErrorCorrection:p})})]}),b.jsxs("div",{className:"text-center",children:[b.jsxs("div",{className:"mb-3",children:[b.jsx(Sa,{href:m}),b.jsx(a9,{text:m})]}),b.jsx("img",{src:m,className:"qr-code-modal__img",alt:"QR code"}),b.jsx("div",{className:"mt-3",children:b.jsxs(wt,{block:!0,color:"primary",onClick:()=>{i.saveImage(m,`${t}-qr-code.${u}`).catch(()=>{})},children:["Download ",b.jsx(Le,{icon:N$,className:"ms-1"})]})})]})]})]})},qve=sn(s9,["ImageDownloader"]),nb=({date:e,format:t=uP,relative:n=!1})=>{const r=cP(e)?e:Ua(e);return b.jsx("time",{dateTime:`${nhe(r)}000`,children:n?`${Zpe(Qs(),r)} ago`:Tf(r,t)})},Kve=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n;return i&&s>=i?{icon:RJ,className:"text-danger",description:b.jsxs(b.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",b.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&po(ho(a),Qs())?{icon:hM,className:"text-danger",description:b.jsxs(b.Fragment,{children:["This short URL cannot be visited since ",b.jsx("b",{className:"indivisible",children:J0(ho(a))}),"."]})}:o&&po(Qs(),ho(o))?{icon:hM,className:"text-warning",description:b.jsxs(b.Fragment,{children:["This short URL will start working on ",b.jsx("b",{className:"indivisible",children:J0(ho(o))}),"."]})}:{icon:Nh,className:"text-primary",description:"This short URL can be visited normally."}},Zve=({shortUrl:e})=>{const t=sl(),{icon:n,className:r,description:i}=Kve(e);return b.jsxs(b.Fragment,{children:[b.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:b.jsx(Le,{icon:n,className:r})}),b.jsx(qr,{target:t,placement:"bottom",children:i})]})};function l9(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=l9(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function We(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=l9(e))&&(r&&(r+=" "),r+=t);return r}const Xve=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${Ede(t)}/${r}${i}`},sT=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=Lu();return!n||!e?b.jsx("span",{...i,children:r}):b.jsx(Yt,{to:Xve(o,e,t),...i,children:r})},u9=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=sl(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},l=!!o||!!a||!!s,u=b.jsx(sT,{shortUrl:t,suffix:"visits",asLink:r,children:b.jsx("strong",{className:We("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:bn(e)})});return l?b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"indivisible",children:[u,b.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&b.jsxs(b.Fragment,{children:[" / ",bn(o)]}),b.jsx("sup",{className:"ms-1",children:b.jsx(Le,{icon:ej})})]})]}),b.jsx(qr,{target:i,placement:"bottom",children:b.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&b.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",b.jsx("b",{children:bn(o)})," visit",o===1?"":"s","."]}),a&&b.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",b.jsx("b",{className:"indivisible",children:J0(ho(a))}),"."]}),s&&b.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",b.jsx("b",{className:"indivisible",children:J0(ho(s))}),"."]})]})})]}):u},Jh=({style:e,className:t,...n})=>b.jsx("button",{type:"button",className:We("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",...e},...n}),Qve=e=>!!e.onClose,Jve=e=>!!e.onClick,bP=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=Jve(e),a=o?Jh:"span",s=F.useMemo(()=>i.isColorLightForKey(t),[t,i]);return b.jsxs(a,{className:We("badge tag fw-bold",r,{"tag--light-bg":s,pointer:o}),style:{backgroundColor:i.getColorForKey(t)},onClick:o?e.onClick:void 0,children:[n??t,Qve(e)&&b.jsx(Jh,{"aria-label":`Remove ${t}`,className:We("bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",{"tag--light-bg":s}),onClick:e.onClose,children:"×"})]})},ege=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?b.jsx("i",{className:"indivisible",children:b.jsx("small",{children:"No tags"})}):b.jsx(b.Fragment,{children:e.map(r=>b.jsx(bP,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),c9=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:l}=an(c9),[u,f]=l(),[d,p]=l(!1,500),m=F.useRef(!0),[{excludeBots:v}]=q_(),g=Du("visits"),w=v??(g==null?void 0:g.excludeBots);return F.useEffect(()=>{!m.current&&p(),m.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,p]),b.jsxs("tr",{className:"responsive-table__row",children:[b.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:b.jsx(nb,{date:e.dateCreated})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:b.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[b.jsx("span",{className:"short-urls-row__short-url-wrapper",children:b.jsx(Sa,{href:e.shortUrl})}),b.jsx(a9,{text:e.shortUrl,onCopy:f}),b.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:b.jsx(Sa,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&b.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:b.jsx(Sa,{href:e.longUrl})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:b.jsx(ege,{tags:e.tags,colorGenerator:s,onTagClick:t})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:b.jsx(u9,{visitsCount:(w?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount,shortUrl:e,active:d,asLink:!0})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:b.jsx(Zve,{shortUrl:e})}),b.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:b.jsx(a,{shortUrl:e})})]})},tge=sn(c9,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),f9=({shortUrl:e})=>{const{DeleteShortUrlModal:t,QrCodeModal:n}=an(f9),[r,,i,o]=En(),[a,,s,l]=En();return b.jsxs(F_,{minWidth:190,children:[b.jsxs(ze,{tag:sT,shortUrl:e,suffix:"visits",asLink:!0,children:[b.jsx(Le,{icon:Jk,fixedWidth:!0})," Visit stats"]}),b.jsxs(ze,{tag:sT,shortUrl:e,suffix:"edit",asLink:!0,children:[b.jsx(Le,{icon:Qk,fixedWidth:!0})," Edit short URL"]}),b.jsxs(ze,{onClick:i,children:[b.jsx(Le,{icon:MJ,fixedWidth:!0})," QR code"]}),b.jsx(n,{shortUrl:e,isOpen:r,toggle:o}),b.jsx(ze,{divider:!0,tag:"hr"}),b.jsxs(ze,{className:"dropdown-item--danger",onClick:s,children:[b.jsx(Le,{icon:Xk,fixedWidth:!0})," Delete short URL"]}),b.jsx(t,{shortUrl:e,isOpen:a,toggle:l})]})},nge=sn(f9,["DeleteShortUrlModal","QrCodeModal"]),d9="shlink/shortUrlCreation",QR={saving:!1,saved:!1,error:!1},rge=e=>_r(`${d9}/createShortUrl`,t=>e().createShortUrl(t)),ige=e=>{const{reducer:t,actions:n}=Yn({name:d9,initialState:QR,reducers:{resetCreateShortUrl:()=>QR},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:xo(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},JR="shlink/shortUrlDetail",eD={loading:!1,error:!1},oge=e=>{const t=_r(`${JR}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var a;const{shortUrlsList:s}=o();return((a=s==null?void 0:s.shortUrls)==null?void 0:a.data.find(l=>Jp(l,r,i)))??await e().getShortUrl(r,i)}),{reducer:n}=Yn({name:JR,initialState:eD,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:xo(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...eD,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},p9="shlink/shortUrlEdition",age={saving:!1,saved:!1,error:!1},sge=e=>_r(`${p9}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),lge=e=>Yn({name:p9,initialState:age,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:xo(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),uge=({icon:e,className:t,...n})=>{const r=sl();return b.jsxs("div",{className:"icon-input-container",children:[b.jsx(gu,{className:We("icon-input-container__input",t),innerRef:r,...n}),b.jsx(Le,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})};var h9={exports:{}},hO,tD;function cge(){if(tD)return hO;tD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hO=e,hO}var mO,nD;function fge(){if(nD)return mO;nD=1;var e=cge();function t(){}function n(){}return n.resetWarningCache=t,mO=function(){function r(a,s,l,u,f,d){if(d!==e){var p=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 p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={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 o.PropTypes=o,o},mO}h9.exports=fge()();var dge=h9.exports;const rt=Ot(dge);var m9={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(m9);var pge=m9.exports;const cr=Ot(pge);function hge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lT(e,t)}function lT(e,t){return lT=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},lT(e,t)}function mge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vge(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function gge(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&vge(e,t,n))return!0;e=e.parentNode||e.host}return e}function yge(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var bge=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};function _ge(e){return e===void 0&&(e=0),function(){return++e}}var wge=_ge(),uT,Dg={},vO={},xge=["touchstart","touchmove"],Oge="ignore-react-onclickoutside";function iD(e,t){var n={},r=xge.indexOf(t)!==-1;return r&&uT&&(n.passive=!e.props.preventDefault),n}function Z_(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){hge(a,o);function a(l){var u;return u=o.call(this,l)||this,u.__outsideClickHandler=function(f){if(typeof u.__clickOutsideHandlerProp=="function"){u.__clickOutsideHandlerProp(f);return}var d=u.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(f);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},u.__getComponentNode=function(){var f=u.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():ju.findDOMNode(f)},u.enableOnClickOutside=function(){if(!(typeof document>"u"||vO[u._uid])){typeof uT>"u"&&(uT=bge()),vO[u._uid]=!0;var f=u.props.eventTypes;f.forEach||(f=[f]),Dg[u._uid]=function(d){if(u.componentNode!==null&&(u.props.preventDefault&&d.preventDefault(),u.props.stopPropagation&&d.stopPropagation(),!(u.props.excludeScrollbar&&yge(d)))){var p=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;gge(p,u.componentNode,u.props.outsideClickIgnoreClass)===document&&u.__outsideClickHandler(d)}},f.forEach(function(d){document.addEventListener(d,Dg[u._uid],iD(rD(u),d))})}},u.disableOnClickOutside=function(){delete vO[u._uid];var f=Dg[u._uid];if(f&&typeof document<"u"){var d=u.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(p){return document.removeEventListener(p,f,iD(rD(u),p))}),delete Dg[u._uid]}},u.getRef=function(f){return u.instanceRef=f},u._uid=wge(),u}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var l=this.instanceRef;return l.getInstance?l.getInstance():l},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var l=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(l),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var l=this.props;l.excludeScrollbar;var u=mge(l,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,F.createElement(e,u)},a}(F.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:Oge,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var v9=F.createContext(),g9=F.createContext();function Sge(e){var t=e.children,n=F.useState(null),r=n[0],i=n[1],o=F.useRef(!1);F.useEffect(function(){return function(){o.current=!0}},[]);var a=F.useCallback(function(s){o.current||i(s)},[]);return F.createElement(v9.Provider,{value:r},F.createElement(g9.Provider,{value:a},t))}var y9=function(e){return Array.isArray(e)?e[0]:e},b9=function(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},cT=function(e,t){if(typeof e=="function")return b9(e,t);e!=null&&(e.current=t)},oD=function(e){return e.reduce(function(t,n){var r=n[0],i=n[1];return t[r]=i,t},{})},aD=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,Yr="top",Vi="bottom",Hi="right",Gr="left",_P="auto",hv=[Yr,Vi,Hi,Gr],jf="start",em="end",Ege="clippingParents",_9="viewport",lp="popper",Tge="reference",sD=hv.reduce(function(e,t){return e.concat([t+"-"+jf,t+"-"+em])},[]),w9=[].concat(hv,[_P]).reduce(function(e,t){return e.concat([t,t+"-"+jf,t+"-"+em])},[]),Cge="beforeRead",kge="read",jge="afterRead",Pge="beforeMain",Age="main",Nge="afterMain",Mge="beforeWrite",Lge="write",Rge="afterWrite",Dge=[Cge,kge,jge,Pge,Age,Nge,Mge,Lge,Rge];function Jo(e){return e?(e.nodeName||"").toLowerCase():null}function pi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wu(e){var t=pi(e).Element;return e instanceof t||e instanceof Element}function Di(e){var t=pi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wP(e){if(typeof ShadowRoot>"u")return!1;var t=pi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ige(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Di(o)||!Jo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Fge(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],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Di(i)||!Jo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Uge={name:"applyStyles",enabled:!0,phase:"write",fn:Ige,effect:Fge,requires:["computeStyles"]};function Yo(e){return e.split("-")[0]}var ou=Math.max,rb=Math.min,Pf=Math.round;function fT(){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 x9(){return!/^((?!chrome|android).)*safari/i.test(fT())}function Af(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Di(e)&&(i=e.offsetWidth>0&&Pf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Pf(r.height)/e.offsetHeight||1);var a=wu(e)?pi(e):window,s=a.visualViewport,l=!x9()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:u+d,bottom:f+p,left:u,x:u,y:f}}function xP(e){var t=Af(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 O9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $a(e){return pi(e).getComputedStyle(e)}function $ge(e){return["table","td","th"].indexOf(Jo(e))>=0}function cl(e){return((wu(e)?e.ownerDocument:e.document)||window.document).documentElement}function X_(e){return Jo(e)==="html"?e:e.assignedSlot||e.parentNode||(wP(e)?e.host:null)||cl(e)}function lD(e){return!Di(e)||$a(e).position==="fixed"?null:e.offsetParent}function Bge(e){var t=/firefox/i.test(fT()),n=/Trident/i.test(fT());if(n&&Di(e)){var r=$a(e);if(r.position==="fixed")return null}var i=X_(e);for(wP(i)&&(i=i.host);Di(i)&&["html","body"].indexOf(Jo(i))<0;){var o=$a(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function mv(e){for(var t=pi(e),n=lD(e);n&&$ge(n)&&$a(n).position==="static";)n=lD(n);return n&&(Jo(n)==="html"||Jo(n)==="body"&&$a(n).position==="static")?t:n||Bge(e)||t}function OP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function eh(e,t,n){return ou(e,rb(t,n))}function zge(e,t,n){var r=eh(e,t,n);return r>n?n:r}function S9(){return{top:0,right:0,bottom:0,left:0}}function E9(e){return Object.assign({},S9(),e)}function T9(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Vge=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,E9(typeof e!="number"?e:T9(e,hv))};function Hge(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Yo(n.placement),l=OP(s),u=[Gr,Hi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=Vge(i.padding,n),p=xP(o),m=l==="y"?Yr:Gr,v=l==="y"?Vi:Hi,g=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],w=a[l]-n.rects.reference[l],y=mv(o),_=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=g/2-w/2,O=d[m],E=_-p[f]-d[v],T=_/2-p[f]/2+x,k=eh(O,T,E),A=l;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-T,t)}}function Wge(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)||O9(t.elements.popper,i)&&(t.elements.arrow=i))}const Yge={name:"arrow",enabled:!0,phase:"main",fn:Hge,effect:Wge,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nf(e){return e.split("-")[1]}var Gge={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qge(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Pf(n*i)/i||0,y:Pf(r*i)/i||0}}function uD(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,g=v===void 0?0:v,w=typeof f=="function"?f({x:m,y:g}):{x:m,y:g};m=w.x,g=w.y;var y=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),x=Gr,O=Yr,E=window;if(u){var T=mv(n),k="clientHeight",A="clientWidth";if(T===pi(n)&&(T=cl(n),$a(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",A="scrollWidth")),T=T,i===Yr||(i===Gr||i===Hi)&&o===em){O=Vi;var D=d&&T===E&&E.visualViewport?E.visualViewport.height:T[k];g-=D-r.height,g*=l?1:-1}if(i===Gr||(i===Yr||i===Vi)&&o===em){x=Hi;var R=d&&T===E&&E.visualViewport?E.visualViewport.width:T[A];m-=R-r.width,m*=l?1:-1}}var I=Object.assign({position:s},u&&Gge),z=f===!0?qge({x:m,y:g},pi(n)):{x:m,y:g};if(m=z.x,g=z.y,l){var G;return Object.assign({},I,(G={},G[O]=_?"0":"",G[x]=y?"0":"",G.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",G))}return Object.assign({},I,(t={},t[O]=_?g+"px":"",t[x]=y?m+"px":"",t.transform="",t))}function Kge(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Yo(t.placement),variation:Nf(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,uD(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,uD(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zge={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kge,data:{}};var Ig={passive:!0};function Xge(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=pi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,Ig)}),s&&l.addEventListener("resize",n.update,Ig),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Ig)}),s&&l.removeEventListener("resize",n.update,Ig)}}const Qge={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xge,data:{}};var Jge={left:"right",right:"left",bottom:"top",top:"bottom"};function Ty(e){return e.replace(/left|right|bottom|top/g,function(t){return Jge[t]})}var eye={start:"end",end:"start"};function cD(e){return e.replace(/start|end/g,function(t){return eye[t]})}function SP(e){var t=pi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function EP(e){return Af(cl(e)).left+SP(e).scrollLeft}function tye(e,t){var n=pi(e),r=cl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=x9();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+EP(e),y:l}}function nye(e){var t,n=cl(e),r=SP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ou(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ou(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+EP(e),l=-r.scrollTop;return $a(i||n).direction==="rtl"&&(s+=ou(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function TP(e){var t=$a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function C9(e){return["html","body","#document"].indexOf(Jo(e))>=0?e.ownerDocument.body:Di(e)&&TP(e)?e:C9(X_(e))}function th(e,t){var n;t===void 0&&(t=[]);var r=C9(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=pi(r),a=i?[o].concat(o.visualViewport||[],TP(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(th(X_(a)))}function dT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rye(e,t){var n=Af(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 fD(e,t,n){return t===_9?dT(tye(e,n)):wu(t)?rye(t,n):dT(nye(cl(e)))}function iye(e){var t=th(X_(e)),n=["absolute","fixed"].indexOf($a(e).position)>=0,r=n&&Di(e)?mv(e):e;return wu(r)?t.filter(function(i){return wu(i)&&O9(i,r)&&Jo(i)!=="body"}):[]}function oye(e,t,n,r){var i=t==="clippingParents"?iye(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=fD(e,u,r);return l.top=ou(f.top,l.top),l.right=rb(f.right,l.right),l.bottom=rb(f.bottom,l.bottom),l.left=ou(f.left,l.left),l},fD(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function k9(e){var t=e.reference,n=e.element,r=e.placement,i=r?Yo(r):null,o=r?Nf(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Yr:l={x:a,y:t.y-n.height};break;case Vi:l={x:a,y:t.y+t.height};break;case Hi:l={x:t.x+t.width,y:s};break;case Gr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?OP(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case jf:l[u]=l[u]-(t[f]/2-n[f]/2);break;case em:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function tm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Ege:s,u=n.rootBoundary,f=u===void 0?_9:u,d=n.elementContext,p=d===void 0?lp:d,m=n.altBoundary,v=m===void 0?!1:m,g=n.padding,w=g===void 0?0:g,y=E9(typeof w!="number"?w:T9(w,hv)),_=p===lp?Tge:lp,x=e.rects.popper,O=e.elements[v?_:p],E=oye(wu(O)?O:O.contextElement||cl(e.elements.popper),l,f,a),T=Af(e.elements.reference),k=k9({reference:T,element:x,strategy:"absolute",placement:i}),A=dT(Object.assign({},x,k)),D=p===lp?A:T,R={top:E.top-D.top+y.top,bottom:D.bottom-E.bottom+y.bottom,left:E.left-D.left+y.left,right:D.right-E.right+y.right},I=e.modifiersData.offset;if(p===lp&&I){var z=I[i];Object.keys(R).forEach(function(G){var H=[Hi,Vi].indexOf(G)>=0?1:-1,Q=[Yr,Vi].indexOf(G)>=0?"y":"x";R[G]+=z[Q]*H})}return R}function aye(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?w9:l,f=Nf(r),d=f?s?sD:sD.filter(function(v){return Nf(v)===f}):hv,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var m=p.reduce(function(v,g){return v[g]=tm(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Yo(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function sye(e){if(Yo(e)===_P)return[];var t=Ty(e);return[cD(e),t,cD(t)]}function lye(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,g=n.allowedAutoPlacements,w=t.options.placement,y=Yo(w),_=y===w,x=l||(_||!v?[Ty(w)]:sye(w)),O=[w].concat(x).reduce(function(ee,ie){return ee.concat(Yo(ie)===_P?aye(t,{placement:ie,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:g}):ie)},[]),E=t.rects.reference,T=t.rects.popper,k=new Map,A=!0,D=O[0],R=0;R<O.length;R++){var I=O[R],z=Yo(I),G=Nf(I)===jf,H=[Yr,Vi].indexOf(z)>=0,Q=H?"width":"height",Z=tm(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=H?G?Hi:Gr:G?Vi:Yr;E[Q]>T[Q]&&(te=Ty(te));var X=Ty(te),$=[];if(o&&$.push(Z[z]<=0),s&&$.push(Z[te]<=0,Z[X]<=0),$.every(function(ee){return ee})){D=I,A=!1;break}k.set(I,$)}if(A)for(var V=v?3:1,W=function(ee){var ie=O.find(function(se){var fe=k.get(se);if(fe)return fe.slice(0,ee).every(function(j){return j})});if(ie)return D=ie,"break"},re=V;re>0;re--){var q=W(re);if(q==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const uye={name:"flip",enabled:!0,phase:"main",fn:lye,requiresIfExists:["offset"],data:{_skip:!1}};function dD(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 pD(e){return[Yr,Hi,Vi,Gr].some(function(t){return e[t]>=0})}function cye(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=tm(t,{elementContext:"reference"}),s=tm(t,{altBoundary:!0}),l=dD(a,r),u=dD(s,i,o),f=pD(l),d=pD(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const fye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cye};function dye(e,t,n){var r=Yo(e),i=[Gr,Yr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Gr,Hi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function pye(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=w9.reduce(function(f,d){return f[d]=dye(d,t.rects,o),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const hye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pye};function mye(e){var t=e.state,n=e.name;t.modifiersData[n]=k9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const vye={name:"popperOffsets",enabled:!0,phase:"read",fn:mye,data:{}};function gye(e){return e==="x"?"y":"x"}function yye(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,g=v===void 0?0:v,w=tm(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),y=Yo(t.placement),_=Nf(t.placement),x=!_,O=OP(y),E=gye(O),T=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(T){if(o){var G,H=O==="y"?Yr:Gr,Q=O==="y"?Vi:Hi,Z=O==="y"?"height":"width",te=T[O],X=te+w[H],$=te-w[Q],V=m?-A[Z]/2:0,W=_===jf?k[Z]:A[Z],re=_===jf?-A[Z]:-k[Z],q=t.elements.arrow,ee=m&&q?xP(q):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:S9(),se=ie[H],fe=ie[Q],j=eh(0,k[Z],ee[Z]),P=x?k[Z]/2-V-j-se-R.mainAxis:W-j-se-R.mainAxis,B=x?-k[Z]/2+V+j+fe+R.mainAxis:re+j+fe+R.mainAxis,J=t.elements.arrow&&mv(t.elements.arrow),K=J?O==="y"?J.clientTop||0:J.clientLeft||0:0,le=(G=I==null?void 0:I[O])!=null?G:0,he=te+P-le-K,Ee=te+B-le,ue=eh(m?rb(X,he):X,te,m?ou($,Ee):$);T[O]=ue,z[O]=ue-te}if(s){var ve,ge=O==="x"?Yr:Gr,Oe=O==="x"?Vi:Hi,Ce=T[E],ke=E==="y"?"height":"width",Ae=Ce+w[ge],ce=Ce-w[Oe],de=[Yr,Gr].indexOf(y)!==-1,_e=(ve=I==null?void 0:I[E])!=null?ve:0,be=de?Ae:Ce-k[ke]-A[ke]-_e+R.altAxis,Se=de?Ce+k[ke]+A[ke]-_e-R.altAxis:ce,Me=m&&de?zge(be,Ce,Se):eh(m?be:Ae,Ce,m?Se:ce);T[E]=Me,z[E]=Me-Ce}t.modifiersData[r]=z}}const bye={name:"preventOverflow",enabled:!0,phase:"main",fn:yye,requiresIfExists:["offset"]};function _ye(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wye(e){return e===pi(e)||!Di(e)?SP(e):_ye(e)}function xye(e){var t=e.getBoundingClientRect(),n=Pf(t.width)/e.offsetWidth||1,r=Pf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Oye(e,t,n){n===void 0&&(n=!1);var r=Di(t),i=Di(t)&&xye(t),o=cl(t),a=Af(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Jo(t)!=="body"||TP(o))&&(s=wye(t)),Di(t)?(l=Af(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=EP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Sye(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Eye(e){var t=Sye(e);return Dge.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Tye(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Cye(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 hD={placement:"bottom",modifiers:[],strategy:"absolute"};function mD(){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 kye(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?hD:i;return function(a,s,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hD,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},f=[],d=!1,p={state:u,setOptions:function(g){var w=typeof g=="function"?g(u.options):g;v(),u.options=Object.assign({},o,u.options,w),u.scrollParents={reference:wu(a)?th(a):a.contextElement?th(a.contextElement):[],popper:th(s)};var y=Eye(Cye([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(_){return _.enabled}),m(),p.update()},forceUpdate:function(){if(!d){var g=u.elements,w=g.reference,y=g.popper;if(mD(w,y)){u.rects={reference:Oye(w,mv(y),u.options.strategy==="fixed"),popper:xP(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var x=u.orderedModifiers[_],O=x.fn,E=x.options,T=E===void 0?{}:E,k=x.name;typeof O=="function"&&(u=O({state:u,options:T,name:k,instance:p})||u)}}}},update:Tye(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){v(),d=!0}};if(!mD(a,s))return p;p.setOptions(l).then(function(g){!d&&l.onFirstUpdate&&l.onFirstUpdate(g)});function m(){u.orderedModifiers.forEach(function(g){var w=g.name,y=g.options,_=y===void 0?{}:y,x=g.effect;if(typeof x=="function"){var O=x({state:u,name:w,instance:p,options:_}),E=function(){};f.push(O||E)}})}function v(){f.forEach(function(g){return g()}),f=[]}return p}}var jye=[Qge,vye,Zge,Uge,hye,uye,bye,Yge,fye],Pye=kye({defaultModifiers:jye}),Aye=typeof Element<"u",Nye=typeof Map=="function",Mye=typeof Set=="function",Lye=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Cy(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Cy(e[r],t[r]))return!1;return!0}var o;if(Nye&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Cy(r.value[1],t.get(r.value[0])))return!1;return!0}if(Mye&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Lye&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Aye&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Cy(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Rye=function(e,t){try{return Cy(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Dye=Ot(Rye);var Iye=[],Fye=function(e,t,n){n===void 0&&(n={});var r=F.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Iye},o=F.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],s=o[1],l=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(d){var p=d.state,m=Object.keys(p.elements);ju.flushSync(function(){s({styles:oD(m.map(function(v){return[v,p.styles[v]||{}]})),attributes:oD(m.map(function(v){return[v,p.attributes[v]]}))})})},requires:["computeStyles"]}},[]),u=F.useMemo(function(){var d={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Dye(r.current,d)?r.current||d:(r.current=d,d)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),f=F.useRef();return aD(function(){f.current&&f.current.setOptions(u)},[u]),aD(function(){if(!(e==null||t==null)){var d=n.createPopper||Pye,p=d(e,t,u);return f.current=p,function(){p.destroy(),f.current=null}}},[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:a.styles,attributes:a.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Uye=function(){},$ye=function(){return Promise.resolve(null)},Bye=[];function zye(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?Bye:o,s=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,d=F.useContext(v9),p=F.useState(null),m=p[0],v=p[1],g=F.useState(null),w=g[0],y=g[1];F.useEffect(function(){cT(u,m)},[u,m]);var _=F.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,l,a,w]),x=Fye(s||d,m,_),O=x.state,E=x.styles,T=x.forceUpdate,k=x.update,A=F.useMemo(function(){return{ref:v,style:E.popper,placement:O?O.placement:n,hasPopperEscaped:O&&O.modifiersData.hide?O.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:O&&O.modifiersData.hide?O.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:E.arrow,ref:y},forceUpdate:T||Uye,update:k||$ye}},[v,y,n,O,E,k,T]);return y9(f)(A)}var Vye=function(){},Hye=Vye;const Wye=Ot(Hye);function Yye(e){var t=e.children,n=e.innerRef,r=F.useContext(g9),i=F.useCallback(function(o){cT(n,o),b9(r,o)},[n,r]);return F.useEffect(function(){return function(){return cT(n,null)}},[]),F.useEffect(function(){Wye(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),y9(t)({ref:i})}function vD(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 ib(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pT(e){return pT=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},pT(e)}function Gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gD(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,j9(r.key),r)}}function qn(e,t,n){return t&&gD(e.prototype,t),n&&gD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ne(e,t,n){return(t=j9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nm(){return nm=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},nm.apply(this,arguments)}function Kn(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&&hT(e,t)}function ob(e){return ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ob(e)}function hT(e,t){return hT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hT(e,t)}function oe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zn(e){var t=function(){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}}();return function(){var n,r=ob(e);if(t){var i=ob(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(o)}(this,n)}}function rm(e){return function(t){if(Array.isArray(t))return gO(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return gO(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gO(t,n)}}(e)||function(){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 gO(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 j9(e){var t=function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return typeof t=="symbol"?t:String(t)}var yD=function(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"});default:return t.date({width:"full"})}},bD=function(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"});default:return t.time({width:"full"})}},Gye={p:bD,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return yD(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",yD(i,t)).replace("{{time}}",bD(o,t))}},nh=12,qye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Nt(e){var t=e?typeof e=="string"||e instanceof String?Ua(e):Ne(e):new Date;return bs(t)?t:null}function bs(e,t){return t=t||new Date("1/1/1000"),Kh(e)&&!po(e,t)}function Kt(e,t,n){if(n==="en")return Tf(e,t,{awareOfUnicodeTokens:!0});var r=zs(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&au()&&zs(au())&&(r=zs(au())),Tf(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function Ao(e,t){var n=t.dateFormat,r=t.locale;return e&&Kt(e,Array.isArray(n)?n[0]:n,r)||""}function _D(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,a=t.second;return Oy(Sy(bme(e,a===void 0?0:a),o),r)}function Go(e,t,n){var r=zs(t||au());return c2(e,{locale:r,weekStartsOn:n})}function Bs(e){return h2(e)}function kp(e){return m2(e)}function wD(e){return QE(e)}function xD(){return oi(Nt())}function ks(e,t){return e&&t?nme(e,t):!e&&!t}function so(e,t){return e&&t?eme(e,t):!e&&!t}function ab(e,t){return e&&t?tme(e,t):!e&&!t}function Rt(e,t){return e&&t?Rde(e,t):!e&&!t}function Yl(e,t){return e&&t?O2(e,t):!e&&!t}function ky(e,t,n){var r,i=oi(t),o=bu(n);try{r=Cf(e,{start:i,end:o})}catch{r=!1}return r}function au(){return(typeof window<"u"?window:globalThis).__localeId__}function zs(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function CP(e,t){return Kt(Cr(Nt(),e),"LLLL",t)}function P9(e,t){return Kt(Cr(Nt(),e),"LLL",t)}function Q_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return J_(e,{minDate:n,maxDate:r})||i&&i.some(function(u){return Rt(e,u)})||o&&o.some(function(u){var f=u.start,d=u.end;return Cf(e,{start:f,end:d})})||a&&!a.some(function(u){return Rt(e,u)})||s&&!s.some(function(u){var f=u.start,d=u.end;return Cf(e,{start:f,end:d})})||l&&!l(Nt(e))||!1}function kP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,a=i.end;return Cf(e,{start:o,end:a})}):n&&n.some(function(i){return Rt(e,i)})||!1}function A9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return J_(e,{minDate:h2(n),maxDate:p2(r)})||i&&i.some(function(s){return so(e,s)})||o&&!o.some(function(s){return so(e,s)})||a&&!a(Nt(e))||!1}function yO(e,t,n,r){var i=lt(e),o=gr(e),a=lt(t),s=gr(t),l=lt(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function Kye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return J_(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return ab(e,s)})||o&&!o.some(function(s){return ab(e,s)})||a&&!a(Nt(e))||!1}function bO(e,t,n){if(!Kh(t)||!Kh(n))return!1;var r=lt(t),i=lt(n);return r<=e&&i>=e}function N9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return J_(s,{minDate:m2(n),maxDate:Bde(r)})||i&&i.some(function(l){return ks(s,l)})||o&&!o.some(function(l){return ks(s,l)})||a&&!a(Nt(s))||!1}function _O(e,t,n,r){var i=lt(e),o=Mc(e),a=lt(t),s=Mc(t),l=lt(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function J_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&qh(e,n)<0||r&&qh(e,r)>0}function OD(e,t){return t.some(function(n){return Ho(n)===Ho(e)&&Wo(n)===Wo(e)})}function SD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&OD(e,n)||r&&!OD(e,r)||i&&!i(e)||!1}function ED(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Nt(),a=Oy(Sy(o,Wo(e)),Ho(e)),s=Oy(Sy(o,Wo(n)),Ho(n)),l=Oy(Sy(o,Wo(r)),Ho(r));try{i=!Cf(a,{start:s,end:l})}catch{i=!1}return i}function TD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=kf(e,1);return n&&Zh(n,i)>0||r&&r.every(function(o){return Zh(o,i)>0})||!1}function CD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=zi(e,1);return n&&Zh(i,n)>0||r&&r.every(function(o){return Zh(i,o)>0})||!1}function kD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Xh(e,1);return n&&q0(n,i)>0||r&&r.every(function(o){return q0(o,i)>0})||!1}function jD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Sf(e,1);return n&&q0(i,n)>0||r&&r.every(function(o){return q0(i,o)>0})||!1}function M9(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return qh(i,t)>=0});return _R(r)}return n?_R(n):t}function L9(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return qh(i,t)<=0});return bR(r)}return n?bR(n):t}function PD(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(G_(o)){var a=Kt(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if(pT(o)==="object"){var l=Object.keys(o),u=l[0],f=o[l[0]];if(typeof u=="string"&&f.constructor===Array)for(var d=0,p=f.length;d<p;d++){var m=Kt(f[d],"MM.dd.yyyy"),v=n.get(m)||[];v.includes(u)||(v.push(u),n.set(m,v))}}}return n}function Zye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach(function(r){var i=r.date,o=r.holidayName;if(G_(i)){var a=Kt(i,"MM.dd.yyyy"),s=n.get(a)||{};if(!("className"in s)||s.className!==t||(l=s.holidayNames,u=[o],l.length!==u.length||!l.every(function(d,p){return d===u[p]}))){var l,u;s.className=t;var f=s.holidayNames;s.holidayNames=f?[].concat(rm(f),[o]):[o],n.set(a,s)}}}),n}function Xye(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=XE(kde(e,Ho(i[s])),Wo(i[s])),u=XE(e,(n+1)*r);Xs(l,t)&&po(l,u)&&a.push(i[s])}return a}function AD(e){return e<10?"0".concat(e):"".concat(e)}function Dc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nh,n=Math.ceil(lt(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function ND(e){var t=e.getSeconds(),n=e.getMilliseconds();return Ne(e.getTime()-1e3*t-n)}function Qye(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=lt(n)<=a),r&&s&&(s=lt(r)>=a),s&&i.push(a)}return i}var Jye=Z_(function(e){Kn(n,M.Component);var t=Zn(n);function n(r){var i;Gn(this,n),ne(oe(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,u=i.state.yearsList.map(function(p){return M.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(oe(i),p),"aria-selected":l===p?"true":void 0},l===p?M.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?lt(i.props.minDate):null,d=i.props.maxDate?lt(i.props.maxDate):null;return d&&i.state.yearsList.find(function(p){return p===d})||u.unshift(M.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},M.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||u.push(M.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},M.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),u}),ne(oe(i),"onChange",function(l){i.props.onChange(l)}),ne(oe(i),"handleClickOutside",function(){i.props.onCancel()}),ne(oe(i),"shiftYears",function(l){var u=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:u})}),ne(oe(i),"incrementYears",function(){return i.shiftYears(1)}),ne(oe(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Qye(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=F.createRef(),i}return qn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find(function(a){return a.ariaSelected}):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=cr({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return M.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),e0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ne(oe(r),"renderSelectOptions",function(){for(var s=r.props.minDate?lt(r.props.minDate):1900,l=r.props.maxDate?lt(r.props.maxDate):2100,u=[],f=s;f<=l;f++)u.push(M.createElement("option",{key:f,value:f},f));return u}),ne(oe(r),"onSelectChange",function(s){r.onChange(s.target.value)}),ne(oe(r),"renderSelectMode",function(){return M.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),ne(oe(r),"renderReadView",function(s){return M.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},M.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),M.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),ne(oe(r),"renderDropdown",function(){return M.createElement(Jye,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),ne(oe(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),ne(oe(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)}),ne(oe(r),"toggleDropdown",function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)})}),ne(oe(r),"handleYearChange",function(s,l){r.onSelect(s,l),r.setOpen()}),ne(oe(r),"onSelect",function(s,l){r.props.onSelect&&r.props.onSelect(s,l)}),ne(oe(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return qn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return M.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),t0e=Z_(function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",function(s){return r.props.month===s}),ne(oe(r),"renderOptions",function(){return r.props.monthNames.map(function(s,l){return M.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:r.onChange.bind(oe(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?M.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),ne(oe(r),"onChange",function(s){return r.props.onChange(s)}),ne(oe(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return qn(n,[{key:"render",value:function(){return M.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),n0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ne(oe(r),"renderSelectOptions",function(s){return s.map(function(l,u){return M.createElement("option",{key:u,value:u},l)})}),ne(oe(r),"renderSelectMode",function(s){return M.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(s))}),ne(oe(r),"renderReadView",function(s,l){return M.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},M.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),M.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))}),ne(oe(r),"renderDropdown",function(s){return M.createElement(t0e,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})}),ne(oe(r),"renderScrollMode",function(s){var l=r.state.dropdownVisible,u=[r.renderReadView(!l,s)];return l&&u.unshift(r.renderDropdown(s)),u}),ne(oe(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)}),ne(oe(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return qn(n,[{key:"render",value:function(){var r,i=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return P9(a,i.props.locale)}:function(a){return CP(a,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return M.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function r0e(e,t){for(var n=[],r=Bs(e),i=Bs(t);!Xs(r,i);)n.push(Nt(r)),r=zi(r,1);return n}var i0e=Z_(function(e){Kn(n,M.Component);var t=Zn(n);function n(r){var i;return Gn(this,n),ne(oe(i=t.call(this,r)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var a=X0(o),s=ks(i.props.date,o)&&so(i.props.date,o);return M.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:i.onChange.bind(oe(i),a),"aria-selected":s?"true":void 0},s?M.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Kt(o,i.props.dateFormat,i.props.locale))})}),ne(oe(i),"onChange",function(o){return i.props.onChange(o)}),ne(oe(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:r0e(i.props.minDate,i.props.maxDate)},i}return qn(n,[{key:"render",value:function(){var r=cr({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return M.createElement("div",{className:r},this.renderOptions())}}]),n}()),o0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ne(oe(r),"renderSelectOptions",function(){for(var s=Bs(r.props.minDate),l=Bs(r.props.maxDate),u=[];!Xs(s,l);){var f=X0(s);u.push(M.createElement("option",{key:f,value:f},Kt(s,r.props.dateFormat,r.props.locale))),s=zi(s,1)}return u}),ne(oe(r),"onSelectChange",function(s){r.onChange(s.target.value)}),ne(oe(r),"renderSelectMode",function(){return M.createElement("select",{value:X0(Bs(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),ne(oe(r),"renderReadView",function(s){var l=Kt(r.props.date,r.props.dateFormat,r.props.locale);return M.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(u){return r.toggleDropdown(u)}},M.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),M.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))}),ne(oe(r),"renderDropdown",function(){return M.createElement(i0e,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})}),ne(oe(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),ne(oe(r),"onChange",function(s){r.toggleDropdown();var l=Nt(parseInt(s));ks(r.props.date,l)&&so(r.props.date,l)||r.props.onChange(l)}),ne(oe(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return qn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return M.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),a0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"dayEl",M.createRef()),ne(oe(r),"handleClick",function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)}),ne(oe(r),"handleMouseEnter",function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)}),ne(oe(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),ne(oe(r),"isSameDay",function(s){return Rt(r.props.day,s)}),ne(oe(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!(r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected))&&(r.isSameDay(r.props.preSelection)||r.isSameWeek(r.props.preSelection))}),ne(oe(r),"isDisabled",function(){return Q_(r.props.day,r.props)}),ne(oe(r),"isExcluded",function(){return kP(r.props.day,r.props)}),ne(oe(r),"isStartOfWeek",function(){return Rt(r.props.day,Go(r.props.day,r.props.locale,r.props.calendarStartDay))}),ne(oe(r),"isSameWeek",function(s){return r.props.showWeekPicker&&Rt(s,Go(r.props.day,r.props.locale,r.props.calendarStartDay))}),ne(oe(r),"getHighLightedClass",function(){var s=r.props,l=s.day,u=s.highlightDates;if(!u)return!1;var f=Kt(l,"MM.dd.yyyy");return u.get(f)}),ne(oe(r),"getHolidaysClass",function(){var s=r.props,l=s.day,u=s.holidays;if(!u)return!1;var f=Kt(l,"MM.dd.yyyy");return u.has(f)?[u.get(f).className]:void 0}),ne(oe(r),"isInRange",function(){var s=r.props,l=s.day,u=s.startDate,f=s.endDate;return!(!u||!f)&&ky(l,u,f)}),ne(oe(r),"isInSelectingRange",function(){var s,l=r.props,u=l.day,f=l.selectsStart,d=l.selectsEnd,p=l.selectsRange,m=l.selectsDisabledDaysInRange,v=l.startDate,g=l.endDate,w=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(f||d||p)||!w||!m&&r.isDisabled())&&(f&&g&&(po(w,g)||Yl(w,g))?ky(u,w,g):(d&&v&&(Xs(w,v)||Yl(w,v))||!(!p||!v||g||!Xs(w,v)&&!Yl(w,v)))&&ky(u,v,w))}),ne(oe(r),"isSelectingRangeStart",function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,u=l.day,f=l.startDate,d=l.selectsStart,p=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return Rt(u,d?p:f)}),ne(oe(r),"isSelectingRangeEnd",function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,u=l.day,f=l.endDate,d=l.selectsEnd,p=l.selectsRange,m=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return Rt(u,d||p?m:f)}),ne(oe(r),"isRangeStart",function(){var s=r.props,l=s.day,u=s.startDate,f=s.endDate;return!(!u||!f)&&Rt(u,l)}),ne(oe(r),"isRangeEnd",function(){var s=r.props,l=s.day,u=s.startDate,f=s.endDate;return!(!u||!f)&&Rt(f,l)}),ne(oe(r),"isWeekend",function(){var s=Qpe(r.props.day);return s===0||s===6}),ne(oe(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===gr(r.props.day)}),ne(oe(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(gr(r.props.day)+1)%12===r.props.month}),ne(oe(r),"isCurrentDay",function(){return r.isSameDay(Nt())}),ne(oe(r),"isSelected",function(){return r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected)}),ne(oe(r),"getClassNames",function(s){var l,u=r.props.dayClassName?r.props.dayClassName(s):void 0;return cr("react-datepicker__day",u,"react-datepicker__day--"+Kt(r.props.day,"ddd",l),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"),r.getHolidaysClass())}),ne(oe(r),"getAriaLabel",function(){var s=r.props,l=s.day,u=s.ariaLabelPrefixWhenEnabled,f=u===void 0?"Choose":u,d=s.ariaLabelPrefixWhenDisabled,p=d===void 0?"Not available":d,m=r.isDisabled()||r.isExcluded()?p:f;return"".concat(m," ").concat(Kt(l,"PPPP",r.props.locale))}),ne(oe(r),"getTitle",function(){var s=r.props,l=s.day,u=s.holidays,f=u===void 0?new Map:u,d=Kt(l,"MM.dd.yyyy");return f.has(d)&&f.get(d).holidayNames.length>0?f.get(d).holidayNames.join(", "):""}),ne(oe(r),"getTabIndex",function(s,l){var u=s||r.props.selected,f=l||r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(u)&&Rt(f,u))?0:-1}),ne(oe(r),"handleFocusDay",function(){var s,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=!1;r.getTabIndex()===0&&!l.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(u=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(u=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(u=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(u=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(u=!1)),u&&((s=r.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))}),ne(oe(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(CR(r.props.day),r.props.day):CR(r.props.day)}),ne(oe(r),"render",function(){return M.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&M.createElement("span",{className:"holiday-overlay"},r.getTitle()))}),r}return qn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),s0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"weekNumberEl",M.createRef()),ne(oe(r),"handleClick",function(s){r.props.onClick&&r.props.onClick(s)}),ne(oe(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),ne(oe(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!Rt(r.props.date,r.props.selected)&&Rt(r.props.date,r.props.preSelection)}),ne(oe(r),"getTabIndex",function(){return r.props.showWeekPicker&&r.props.showWeekNumber&&(r.isKeyboardSelected()||Rt(r.props.date,r.props.selected)&&Rt(r.props.preSelection,r.props.selected))?0:-1}),ne(oe(r),"handleFocusWeekNumber",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.isInputFocused&&Rt(r.props.date,r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(l=!0)),l&&r.weekNumberEl.current&&r.weekNumberEl.current.focus({preventScroll:!0})}),r}return qn(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(r){this.handleFocusWeekNumber(r)}},{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,a=o===void 0?"week ":o,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick,"react-datepicker__week-number--selected":Rt(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return M.createElement("div",{ref:this.weekNumberEl,className:cr(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},i)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(),l0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l)}),ne(oe(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),ne(oe(r),"handleWeekClick",function(s,l,u){if(typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,l,u),r.props.showWeekPicker){var f=Go(s,r.props.locale,r.props.calendarStartDay);r.handleDayClick(f,u)}r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),ne(oe(r),"formatWeekNumber",function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):function(l,u){var f=u&&zs(u)||au()&&zs(au());return the(l,f?{locale:f}:null)}(s)}),ne(oe(r),"renderDays",function(){var s=Go(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],u=r.formatWeekNumber(s);if(r.props.showWeekNumber){var f=r.props.onWeekSelect||r.props.showWeekPicker?r.handleWeekClick.bind(oe(r),s,u):void 0;l.push(M.createElement(s0e,{key:"W",weekNumber:u,date:s,onClick:f,selected:r.props.selected,preSelection:r.props.preSelection,ariaLabelPrefix:r.props.ariaLabelPrefix,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef}))}return l.concat([0,1,2,3,4,5,6].map(function(d){var p=Ru(s,d);return M.createElement(a0e,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(oe(r),p),onMouseEnter:r.handleDayMouseEnter.bind(oe(r),p),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})}))}),ne(oe(r),"startOfWeek",function(){return Go(r.props.day,r.props.locale,r.props.calendarStartDay)}),ne(oe(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!Rt(r.startOfWeek(),r.props.selected)&&Rt(r.startOfWeek(),r.props.preSelection)}),r}return qn(n,[{key:"render",value:function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":Rt(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return M.createElement("div",{className:cr(r)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),R9="two_columns",D9="three_columns",I9="four_columns",wO=ne(ne(ne({},R9,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),D9,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),I9,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function MD(e,t){return e?I9:t?R9:D9}var u0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",rm(Array(12)).map(function(){return M.createRef()})),ne(oe(r),"QUARTER_REFS",rm(Array(4)).map(function(){return M.createRef()})),ne(oe(r),"isDisabled",function(s){return Q_(s,r.props)}),ne(oe(r),"isExcluded",function(s){return kP(s,r.props)}),ne(oe(r),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l,r.props.orderInDisplay)}),ne(oe(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),ne(oe(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),ne(oe(r),"isRangeStartMonth",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate;return!(!f||!d)&&so(Cr(u,s),f)}),ne(oe(r),"isRangeStartQuarter",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate;return!(!f||!d)&&ab(ac(u,s),f)}),ne(oe(r),"isRangeEndMonth",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate;return!(!f||!d)&&so(Cr(u,s),d)}),ne(oe(r),"isRangeEndQuarter",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate;return!(!f||!d)&&ab(ac(u,s),d)}),ne(oe(r),"isInSelectingRangeMonth",function(s){var l,u=r.props,f=u.day,d=u.selectsStart,p=u.selectsEnd,m=u.selectsRange,v=u.startDate,g=u.endDate,w=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||p||m)||!w)&&(d&&g?yO(w,g,s,f):(p&&v||!(!m||!v||g))&&yO(v,w,s,f))}),ne(oe(r),"isSelectingMonthRangeStart",function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var u=r.props,f=u.day,d=u.startDate,p=u.selectsStart,m=Cr(f,s),v=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return so(m,p?v:d)}),ne(oe(r),"isSelectingMonthRangeEnd",function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var u=r.props,f=u.day,d=u.endDate,p=u.selectsEnd,m=u.selectsRange,v=Cr(f,s),g=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return so(v,p||m?g:d)}),ne(oe(r),"isInSelectingRangeQuarter",function(s){var l,u=r.props,f=u.day,d=u.selectsStart,p=u.selectsEnd,m=u.selectsRange,v=u.startDate,g=u.endDate,w=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||p||m)||!w)&&(d&&g?_O(w,g,s,f):(p&&v||!(!m||!v||g))&&_O(v,w,s,f))}),ne(oe(r),"isWeekInMonth",function(s){var l=r.props.day,u=Ru(s,6);return so(s,l)||so(u,l)}),ne(oe(r),"isCurrentMonth",function(s,l){return lt(s)===lt(Nt())&&l===gr(Nt())}),ne(oe(r),"isCurrentQuarter",function(s,l){return lt(s)===lt(Nt())&&l===Mc(Nt())}),ne(oe(r),"isSelectedMonth",function(s,l,u){return gr(u)===l&&lt(s)===lt(u)}),ne(oe(r),"isSelectedQuarter",function(s,l,u){return Mc(s)===l&&lt(s)===lt(u)}),ne(oe(r),"renderWeeks",function(){for(var s=[],l=r.props.fixedHeight,u=0,f=!1,d=Go(Bs(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(M.createElement(l0e,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:u,day:d,month:gr(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,showWeekPicker:r.props.showWeekPicker,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!f;){u++,d=G0(d,1);var p=l&&u>=6,m=!l&&!r.isWeekInMonth(d);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return s}),ne(oe(r),"onMonthClick",function(s,l){r.handleDayClick(Bs(Cr(r.props.day,l)),s)}),ne(oe(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(Bs(Cr(r.props.day,s)))}),ne(oe(r),"handleMonthNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),ne(oe(r),"onMonthKeyDown",function(s,l){var u=r.props,f=u.selected,d=u.preSelection,p=u.disabledKeyboardNavigation,m=u.showTwoColumnMonthYearPicker,v=u.showFourColumnMonthYearPicker,g=u.setPreSelection,w=s.key;if(w!=="Tab"&&s.preventDefault(),!p){var y=MD(v,m),_=wO[y].verticalNavigationOffset,x=wO[y].grid;switch(w){case"Enter":r.onMonthClick(s,l),g(f);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,zi(d,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,kf(d,1));break;case"ArrowUp":r.handleMonthNavigation(x[0].includes(l)?l+12-_:l-_,kf(d,_));break;case"ArrowDown":r.handleMonthNavigation(x[x.length-1].includes(l)?l-12+_:l+_,zi(d,_))}}}),ne(oe(r),"onQuarterClick",function(s,l){r.handleDayClick(wD(ac(r.props.day,l)),s)}),ne(oe(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(wD(ac(r.props.day,s)))}),ne(oe(r),"handleQuarterNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())}),ne(oe(r),"onQuarterKeyDown",function(s,l){var u=s.key;if(!r.props.disabledKeyboardNavigation)switch(u){case"Enter":r.onQuarterClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(l===4?1:l+1,f2(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,_me(r.props.preSelection,1))}}),ne(oe(r),"getMonthClassNames",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,g=l.preSelection,w=l.monthClassName,y=l.excludeDates,_=l.includeDates,x=w?w(Cr(u,s)):void 0,O=Cr(u,s);return cr("react-datepicker__month-text","react-datepicker__month-".concat(s),x,{"react-datepicker__month-text--disabled":(m||v||y||_)&&A9(O,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(u,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&gr(g)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":yO(f,d,s,u),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(u,s)})}),ne(oe(r),"getTabIndex",function(s){var l=gr(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),ne(oe(r),"getQuarterTabIndex",function(s){var l=Mc(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),ne(oe(r),"getAriaLabel",function(s){var l=r.props,u=l.chooseDayAriaLabelPrefix,f=u===void 0?"Choose":u,d=l.disabledDayAriaLabelPrefix,p=d===void 0?"Not available":d,m=l.day,v=Cr(m,s),g=r.isDisabled(v)||r.isExcluded(v)?p:f;return"".concat(g," ").concat(Kt(v,"MMMM yyyy"))}),ne(oe(r),"getQuarterClassNames",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,g=l.preSelection,w=l.disabledKeyboardNavigation;return cr("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(m||v)&&Kye(ac(u,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(u,s,p),"react-datepicker__quarter-text--keyboard-selected":!w&&Mc(g)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":_O(f,d,s,u),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})}),ne(oe(r),"getMonthContent",function(s){var l=r.props,u=l.showFullMonthYearPicker,f=l.renderMonthContent,d=l.locale,p=P9(s,d),m=CP(s,d);return f?f(s,p,m):u?m:p}),ne(oe(r),"getQuarterContent",function(s){var l=r.props,u=l.renderQuarterContent,f=function(d,p){return Kt(ac(Nt(),d),"QQQ",p)}(s,l.locale);return u?u(s,f):f}),ne(oe(r),"renderMonths",function(){var s=r.props,l=s.showTwoColumnMonthYearPicker,u=s.showFourColumnMonthYearPicker,f=s.day,d=s.selected;return wO[MD(u,l)].grid.map(function(p,m){return M.createElement("div",{className:"react-datepicker__month-wrapper",key:m},p.map(function(v,g){return M.createElement("div",{ref:r.MONTH_REFS[v],key:g,onClick:function(w){r.onMonthClick(w,v)},onKeyDown:function(w){r.onMonthKeyDown(w,v)},onMouseEnter:function(){return r.onMonthMouseEnter(v)},tabIndex:r.getTabIndex(v),className:r.getMonthClassNames(v),role:"option","aria-label":r.getAriaLabel(v),"aria-current":r.isCurrentMonth(f,v)?"date":void 0,"aria-selected":r.isSelectedMonth(f,v,d)},r.getMonthContent(v))}))})}),ne(oe(r),"renderQuarters",function(){var s=r.props,l=s.day,u=s.selected;return M.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,d){return M.createElement("div",{key:d,ref:r.QUARTER_REFS[d],role:"option",onClick:function(p){r.onQuarterClick(p,f)},onKeyDown:function(p){r.onQuarterKeyDown(p,f)},onMouseEnter:function(){return r.onQuarterMouseEnter(f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,u),tabIndex:r.getQuarterTabIndex(f),"aria-current":r.isCurrentQuarter(l,f)?"date":void 0},r.getQuarterContent(f))}))}),ne(oe(r),"getClassNames",function(){var s=r.props,l=s.selectingDate,u=s.selectsStart,f=s.selectsEnd,d=s.showMonthYearPicker,p=s.showQuarterYearPicker,m=s.showWeekPicker;return cr("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(u||f)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":p},{"react-datepicker__weekPicker":m})}),r}return qn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return M.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(Kt(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),F9=function(e){Kn(n,M.Component);var t=Zn(n);function n(){var r;Gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(oe(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),ne(oe(r),"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){r.list&&(r.list.scrollTop=r.centerLi&&n.calcCenterPosition(r.props.monthRef?r.props.monthRef.clientHeight-r.header.clientHeight:r.list.clientHeight,r.centerLi))})}),ne(oe(r),"handleClick",function(s){(r.props.minTime||r.props.maxTime)&&ED(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&SD(s,r.props)||r.props.onChange(s)}),ne(oe(r),"isSelectedTime",function(s){return r.props.selected&&(l=r.props.selected,u=s,ND(l).getTime()===ND(u).getTime());var l,u}),ne(oe(r),"isDisabledTime",function(s){return(r.props.minTime||r.props.maxTime)&&ED(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&SD(s,r.props)}),ne(oe(r),"liClasses",function(s){var l=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(s):void 0];return r.isSelectedTime(s)&&l.push("react-datepicker__time-list-item--selected"),r.isDisabledTime(s)&&l.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Ho(s)+Wo(s))%r.props.intervals!=0&&l.push("react-datepicker__time-list-item--injected"),l.join(" ")}),ne(oe(r),"handleOnKeyDown",function(s,l){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key!=="ArrowUp"&&s.key!=="ArrowLeft"||!s.target.previousSibling||(s.preventDefault(),s.target.previousSibling.focus()),s.key!=="ArrowDown"&&s.key!=="ArrowRight"||!s.target.nextSibling||(s.preventDefault(),s.target.nextSibling.focus()),s.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(s)}),ne(oe(r),"renderTimes",function(){for(var s=[],l=r.props.format?r.props.format:"p",u=r.props.intervals,f=r.props.selected||r.props.openToDate||Nt(),d=oi(f),p=r.props.injectTimes&&r.props.injectTimes.sort(function(x,O){return x-O}),m=60*function(x){var O=new Date(x.getFullYear(),x.getMonth(),x.getDate()),E=new Date(x.getFullYear(),x.getMonth(),x.getDate(),24);return Math.round((+E-+O)/36e5)}(f),v=m/u,g=0;g<v;g++){var w=XE(d,g*u);if(s.push(w),p){var y=Xye(d,w,g,u,p);s=s.concat(y)}}var _=s.reduce(function(x,O){return O.getTime()<=f.getTime()?O:x},s[0]);return s.map(function(x,O){return M.createElement("li",{key:O,onClick:r.handleClick.bind(oe(r),x),className:r.liClasses(x),ref:function(E){x===_&&(r.centerLi=E)},onKeyDown:function(E){r.handleOnKeyDown(E,x)},tabIndex:x===_?0:-1,role:"option","aria-selected":r.isSelectedTime(x)?"true":void 0,"aria-disabled":r.isDisabledTime(x)?"true":void 0},Kt(x,l,r.props.locale))})}),r}return qn(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,i=this.state.height;return M.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},M.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){r.header=o}},M.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),M.createElement("div",{className:"react-datepicker__time"},M.createElement("div",{className:"react-datepicker__time-box"},M.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();ne(F9,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var c0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(r){var i;return Gn(this,n),ne(oe(i=t.call(this,r)),"YEAR_REFS",rm(Array(i.props.yearItemNumber)).map(function(){return M.createRef()})),ne(oe(i),"isDisabled",function(o){return Q_(o,i.props)}),ne(oe(i),"isExcluded",function(o){return kP(o,i.props)}),ne(oe(i),"selectingDate",function(){var o;return(o=i.props.selectingDate)!==null&&o!==void 0?o:i.props.preSelection}),ne(oe(i),"updateFocusOnPaginate",function(o){var a=(function(){this.YEAR_REFS[o].current.focus()}).bind(oe(i));window.requestAnimationFrame(a)}),ne(oe(i),"handleYearClick",function(o,a){i.props.onDayClick&&i.props.onDayClick(o,a)}),ne(oe(i),"handleYearNavigation",function(o,a){var s=i.props,l=s.date,u=s.yearItemNumber,f=Dc(l,u).startPeriod;i.isDisabled(a)||i.isExcluded(a)||(i.props.setPreSelection(a),o-f==-1?i.updateFocusOnPaginate(u-1):o-f===u?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-f].current.focus())}),ne(oe(i),"isSameDay",function(o,a){return Rt(o,a)}),ne(oe(i),"isCurrentYear",function(o){return o===lt(Nt())}),ne(oe(i),"isRangeStart",function(o){return i.props.startDate&&i.props.endDate&&ks(ma(Nt(),o),i.props.startDate)}),ne(oe(i),"isRangeEnd",function(o){return i.props.startDate&&i.props.endDate&&ks(ma(Nt(),o),i.props.endDate)}),ne(oe(i),"isInRange",function(o){return bO(o,i.props.startDate,i.props.endDate)}),ne(oe(i),"isInSelectingRange",function(o){var a=i.props,s=a.selectsStart,l=a.selectsEnd,u=a.selectsRange,f=a.startDate,d=a.endDate;return!(!(s||l||u)||!i.selectingDate())&&(s&&d?bO(o,i.selectingDate(),d):(l&&f||!(!u||!f||d))&&bO(o,f,i.selectingDate()))}),ne(oe(i),"isSelectingRangeStart",function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.startDate,l=a.selectsStart,u=ma(Nt(),o);return ks(u,l?i.selectingDate():s)}),ne(oe(i),"isSelectingRangeEnd",function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.endDate,l=a.selectsEnd,u=a.selectsRange,f=ma(Nt(),o);return ks(f,l||u?i.selectingDate():s)}),ne(oe(i),"isKeyboardSelected",function(o){var a=kp(ma(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!Rt(a,kp(i.props.selected))&&Rt(a,kp(i.props.preSelection))}),ne(oe(i),"onYearClick",function(o,a){var s=i.props.date;i.handleYearClick(kp(ma(s,a)),o)}),ne(oe(i),"onYearKeyDown",function(o,a){var s=o.key;if(!i.props.disabledKeyboardNavigation)switch(s){case"Enter":i.onYearClick(o,a),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(a+1,Sf(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(a-1,Xh(i.props.preSelection,1))}}),ne(oe(i),"getYearClassNames",function(o){var a=i.props,s=a.minDate,l=a.maxDate,u=a.selected,f=a.excludeDates,d=a.includeDates,p=a.filterDate;return cr("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===lt(u),"react-datepicker__year-text--disabled":(s||l||f||d||p)&&N9(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--range-start":i.isRangeStart(o),"react-datepicker__year-text--range-end":i.isRangeEnd(o),"react-datepicker__year-text--in-range":i.isInRange(o),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})}),ne(oe(i),"getYearTabIndex",function(o){return i.props.disabledKeyboardNavigation?"-1":o===lt(i.props.preSelection)?"0":"-1"}),ne(oe(i),"getYearContainerClassNames",function(){var o=i.props,a=o.selectingDate,s=o.selectsStart,l=o.selectsEnd,u=o.selectsRange;return cr("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(s||l||u)})}),ne(oe(i),"getYearContent",function(o){return i.props.renderYearContent?i.props.renderYearContent(o):o}),i}return qn(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,a=o.date,s=o.yearItemNumber,l=o.onYearMouseEnter,u=o.onYearMouseLeave,f=Dc(a,s),d=f.startPeriod,p=f.endPeriod,m=function(g){i.push(M.createElement("div",{ref:r.YEAR_REFS[g-d],onClick:function(w){r.onYearClick(w,g)},onKeyDown:function(w){r.onYearKeyDown(w,g)},tabIndex:r.getYearTabIndex(g),className:r.getYearClassNames(g),onMouseEnter:function(w){return l(w,g)},onMouseLeave:function(w){return u(w,g)},key:g,"aria-current":r.isCurrentYear(g)?"date":void 0},r.getYearContent(g)))},v=d;v<=p;v++)m(v);return M.createElement("div",{className:this.getYearContainerClassNames()},M.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},i))}}]),n}(),f0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(r){var i;return Gn(this,n),ne(oe(i=t.call(this,r)),"onTimeChange",function(o){i.setState({time:o});var a=i.props.date,s=a instanceof Date&&!isNaN(a)?a:new Date;s.setHours(o.split(":")[0]),s.setMinutes(o.split(":")[1]),i.props.onChange(s)}),ne(oe(i),"renderTimeInput",function(){var o=i.state.time,a=i.props,s=a.date,l=a.timeString,u=a.customTimeInput;return u?M.cloneElement(u,{date:s,value:o,onChange:i.onTimeChange}):M.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(f){i.onTimeChange(f.target.value||l)}})}),i.state={time:i.props.timeString},i}return qn(n,[{key:"render",value:function(){return M.createElement("div",{className:"react-datepicker__input-time-container"},M.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),M.createElement("div",{className:"react-datepicker-time__input-container"},M.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.timeString!==i.time?{time:r.timeString}:null}}]),n}();function d0e(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return M.createElement("div",{className:t},r&&M.createElement("div",nm({className:"react-datepicker__triangle"},o)),n)}var p0e=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],h0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(r){var i;return Gn(this,n),ne(oe(i=t.call(this,r)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),ne(oe(i),"setClickOutsideRef",function(){return i.containerRef.current}),ne(oe(i),"handleDropdownFocus",function(o){(function(){var a=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return p0e.some(function(s){return a.indexOf(s)>=0})})(o.target)&&i.props.onDropdownFocus()}),ne(oe(i),"getDateInView",function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,u=M9(i.props),f=L9(i.props),d=Nt(),p=l||s||a;return p||(u&&po(d,u)?u:f&&Xs(d,f)?f:d)}),ne(oe(i),"increaseMonth",function(){i.setState(function(o){var a=o.date;return{date:zi(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),ne(oe(i),"decreaseMonth",function(){i.setState(function(o){var a=o.date;return{date:kf(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),ne(oe(i),"handleDayClick",function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)}),ne(oe(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),ne(oe(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),ne(oe(i),"handleYearMouseEnter",function(o,a){i.setState({selectingDate:ma(Nt(),a)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,a)}),ne(oe(i),"handleYearMouseLeave",function(o,a){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,a)}),ne(oe(i),"handleYearChange",function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ne(oe(i),"handleMonthChange",function(o){i.handleCustomMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ne(oe(i),"handleCustomMonthChange",function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))}),ne(oe(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),ne(oe(i),"changeYear",function(o){i.setState(function(a){var s=a.date;return{date:ma(s,o)}},function(){return i.handleYearChange(i.state.date)})}),ne(oe(i),"changeMonth",function(o){i.setState(function(a){var s=a.date;return{date:Cr(s,o)}},function(){return i.handleMonthChange(i.state.date)})}),ne(oe(i),"changeMonthYear",function(o){i.setState(function(a){var s=a.date;return{date:ma(Cr(s,gr(o)),lt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),ne(oe(i),"header",function(){var o=Go(arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(M.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var l=Ru(o,s),u=i.formatWeekday(l,i.props.locale),f=i.props.weekDayClassName?i.props.weekDayClassName(l):void 0;return M.createElement("div",{key:s,className:cr("react-datepicker__day-name",f)},u)}))}),ne(oe(i),"formatWeekday",function(o,a){return i.props.formatWeekDay?function(s,l,u){return l(Kt(s,"EEEE",u))}(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?function(s,l){return Kt(s,"EEE",l)}(o,a):function(s,l){return Kt(s,"EEEEEE",l)}(o,a)}),ne(oe(i),"decreaseYear",function(){i.setState(function(o){var a=o.date;return{date:Xh(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ne(oe(i),"clearSelectingDate",function(){i.setState({selectingDate:null})}),ne(oe(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=kD(i.state.date,i.props);break;case i.props.showYearPicker:o=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=_.minDate,O=_.yearItemNumber,E=O===void 0?nh:O,T=Dc(kp(Xh(y,E)),E).endPeriod,k=x&&lt(x);return k&&k>T||!1}(i.state.date,i.props);break;default:o=TD(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,u=i.props,f=u.previousMonthButtonLabel,d=u.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,v=m===void 0?typeof f=="string"?f:"Previous Month":m,g=p.previousYearAriaLabel,w=g===void 0?typeof d=="string"?d:"Previous Year":g;return M.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?w:v},M.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),ne(oe(i),"increaseYear",function(){i.setState(function(o){var a=o.date;return{date:Sf(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ne(oe(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=jD(i.state.date,i.props);break;case i.props.showYearPicker:o=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=_.maxDate,O=_.yearItemNumber,E=O===void 0?nh:O,T=Dc(Sf(y,E),E).startPeriod,k=x&&lt(x);return k&&k<T||!1}(i.state.date,i.props);break;default:o=CD(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var s=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,u=i.props,f=u.nextMonthButtonLabel,d=u.nextYearButtonLabel,p=i.props,m=p.nextMonthAriaLabel,v=m===void 0?typeof f=="string"?f:"Next Month":m,g=p.nextYearAriaLabel,w=g===void 0?typeof d=="string"?d:"Next Year":g;return M.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?w:v},M.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),ne(oe(i),"renderCurrentMonth",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),M.createElement("div",{className:a.join(" ")},Kt(o,i.props.dateFormat,i.props.locale))}),ne(oe(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return M.createElement(e0e,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:lt(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),ne(oe(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return M.createElement(n0e,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:gr(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),ne(oe(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return M.createElement(o0e,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),ne(oe(i),"handleTodayButtonClick",function(o){i.props.onSelect(xD(),o),i.props.setPreSelection&&i.props.setPreSelection(xD())}),ne(oe(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return M.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)}},i.props.todayButton)}),ne(oe(i),"renderDefaultHeader",function(o){var a=o.monthDate,s=o.i;return M.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(a),M.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),M.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),ne(oe(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,s=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=TD(i.state.date,i.props),u=CD(i.state.date,i.props),f=kD(i.state.date,i.props),d=jD(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return M.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(ib(ib({},i.state),{},{customHeaderCount:s,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:u,prevYearButtonDisabled:f,nextYearButtonDisabled:d})),p&&M.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),ne(oe(i),"renderYearHeader",function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=Dc(o,a.yearItemNumber),u=l.startPeriod,f=l.endPeriod;return M.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(u," - ").concat(f):lt(o))}),ne(oe(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),ne(oe(i),"renderMonths",function(){var o;if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var a=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,l=kf(i.state.date,s),u=(o=i.props.monthSelectedIn)!==null&&o!==void 0?o:s,f=0;f<i.props.monthsShown;++f){var d=zi(l,f-u+s),p="month-".concat(f),m=f<i.props.monthsShown-1,v=f>0;a.push(M.createElement("div",{key:p,ref:function(g){i.monthContainer=g},className:"react-datepicker__month-container"},i.renderHeader({monthDate:d,i:f}),M.createElement(u0e,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:d,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:f,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,holidays:i.props.holidays,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showWeekPicker:i.props.showWeekPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:v})))}return a}}),ne(oe(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?M.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),M.createElement(c0e,nm({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0}),ne(oe(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return M.createElement(F9,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),ne(oe(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),a=bs(o)&&i.props.selected?"".concat(AD(o.getHours()),":").concat(AD(o.getMinutes())):"";if(i.props.showTimeInput)return M.createElement(f0e,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),ne(oe(i),"renderAriaLiveRegion",function(){var o,a=Dc(i.state.date,i.props.yearItemNumber),s=a.startPeriod,l=a.endPeriod;return o=i.props.showYearPicker?"".concat(s," - ").concat(l):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?lt(i.state.date):"".concat(CP(gr(i.state.date),i.props.locale)," ").concat(lt(i.state.date)),M.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)}),ne(oe(i),"renderChildren",function(){if(i.props.children)return M.createElement("div",{className:"react-datepicker__children-container"},i.props.children)}),i.containerRef=M.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return qn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var i=this;if(!this.props.preSelection||Rt(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!Rt(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!so(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&i.handleCustomMonthChange(i.state.date)})}}},{key:"render",value:function(){var r=this.props.container||d0e;return M.createElement("div",{style:{display:"contents"},ref:this.containerRef},M.createElement(r,{className:cr("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:nh}}}]),n}(),m0e=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i="react-datepicker__calendar-icon";return M.isValidElement(t)?M.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(r)}):typeof t=="string"?M.createElement("i",{className:"".concat(i," ").concat(t," ").concat(r),"aria-hidden":"true"}):M.createElement("svg",{className:"".concat(i," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},M.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},U9=function(e){Kn(n,M.Component);var t=Zn(n);function n(r){var i;return Gn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return qn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return Jl.createPortal(this.props.children,this.el)}}]),n}(),v0e=function(e){return!e.disabled&&e.tabIndex!==-1},$9=function(e){Kn(n,M.Component);var t=Zn(n);function n(r){var i;return Gn(this,n),ne(oe(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(v0e)}),ne(oe(i),"handleFocusStart",function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),ne(oe(i),"handleFocusEnd",function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()}),i.tabLoopRef=M.createRef(),i}return qn(n,[{key:"render",value:function(){return this.props.enableTabLoop?M.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},M.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,M.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),g0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(){return Gn(this,n),t.apply(this,arguments)}return qn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,u=i.popperModifiers,f=i.popperPlacement,d=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,v=i.popperOnKeyDown,g=i.portalId,w=i.portalHost;if(!s){var y=cr("react-datepicker-popper",o);r=M.createElement(zye,nm({modifiers:u,placement:f},d),function(x){var O=x.ref,E=x.style,T=x.placement,k=x.arrowProps;return M.createElement($9,{enableTabLoop:m},M.createElement("div",{ref:O,style:E,className:y,"data-placement":T,onKeyDown:v},M.cloneElement(l,{arrowProps:k})))})}this.props.popperContainer&&(r=M.createElement(this.props.popperContainer,{},r)),g&&!s&&(r=M.createElement(U9,{portalId:g,portalHost:w},r));var _=cr("react-datepicker-wrapper",a);return M.createElement(Sge,{className:"react-datepicker-manager"},M.createElement(Yye,null,function(x){var O=x.ref;return M.createElement("div",{ref:O,className:_},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),LD="react-datepicker-ignore-onclickoutside",y0e=Z_(h0e),xO="Date input not valid.",b0e=function(e){Kn(n,M.Component);var t=Zn(n);function n(r){var i;return Gn(this,n),ne(oe(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:Nt()}),ne(oe(i),"modifyHolidays",function(){var o;return(o=i.props.holidays)===null||o===void 0?void 0:o.reduce(function(a,s){var l=new Date(s.date);return Kh(l)?[].concat(rm(a),[ib(ib({},s),{},{date:l})]):a},[])}),ne(oe(i),"calcInitialState",function(){var o,a=i.getPreSelection(),s=M9(i.props),l=L9(i.props),u=s&&po(a,oi(s))?s:l&&Xs(a,bu(l))?l:a;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:u,highlightDates:PD(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),ne(oe(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),ne(oe(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),ne(oe(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),ne(oe(i),"setOpen",function(o){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:OO},function(){o||i.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&i.setBlur(),i.setState({inputValue:null})})})}),ne(oe(i),"inputOk",function(){return G_(i.state.preSelection)}),ne(oe(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),ne(oe(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),ne(oe(i),"sendFocusBackToInput",function(){i.preventFocusTimeout&&i.clearPreventFocusTimeout(),i.setState({preventFocus:!0},function(){i.preventFocusTimeout=setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})})}),ne(oe(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),ne(oe(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),ne(oe(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),ne(oe(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),ne(oe(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),ne(oe(i),"handleChange",function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(oe(i),a),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:_0e});var u,f,d,p,m,v,g,w,y=(u=l.target.value,f=i.props.dateFormat,d=i.props.locale,p=i.props.strictParsing,m=i.props.minDate,v=null,g=zs(d)||zs(au()),w=!0,Array.isArray(f)?(f.forEach(function(_){var x=aO(u,_,new Date,{locale:g});p&&(w=bs(x,m)&&u===Kt(x,_,d)),bs(x,m)&&w&&(v=x)}),v):(v=aO(u,f,new Date,{locale:g}),p?w=bs(v)&&u===Kt(v,f,d):bs(v)||(f=f.match(qye).map(function(_){var x=_[0];return x==="p"||x==="P"?g?(0,Gye[x])(_,g.formatLong):x:_}).join(""),u.length>0&&(v=aO(u,f.slice(0,u.length),new Date)),bs(v)||(v=new Date(u))),bs(v)&&w?v:null));i.props.showTimeSelectOnly&&i.props.selected&&y&&!Rt(y,i.props.selected)&&(y=yme(i.props.selected,{hours:Ho(y),minutes:Wo(y),seconds:kR(y)})),!y&&l.target.value||(i.props.showWeekPicker&&(y=Go(y,i.props.locale,i.props.calendarStartDay)),i.setSelected(y,l,!0))}}),ne(oe(i),"handleSelect",function(o,a,s){if(i.props.shouldCloseOnSelect&&!i.props.showTimeSelect&&i.sendFocusBackToInput(),i.props.onChangeRaw&&i.props.onChangeRaw(a),i.props.showWeekPicker&&(o=Go(o,i.props.locale,i.props.calendarStartDay)),i.setSelected(o,a,!1,s),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,u=l.startDate,f=l.endDate;!u||f||po(o,u)||i.setOpen(!1)}}),ne(oe(i),"setSelected",function(o,a,s,l){var u=o;if(i.props.showYearPicker){if(u!==null&&N9(lt(u),i.props))return}else if(i.props.showMonthYearPicker){if(u!==null&&A9(u,i.props))return}else if(u!==null&&Q_(u,i.props))return;var f=i.props,d=f.onChange,p=f.selectsRange,m=f.startDate,v=f.endDate;if(!Yl(i.props.selected,u)||i.props.allowSameDay||p)if(u!==null&&(!i.props.selected||s&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(u=_D(u,{hour:Ho(i.props.selected),minute:Wo(i.props.selected),second:kR(i.props.selected)})),i.props.inline||i.setState({preSelection:u}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var g=m&&!v,w=m&&v;!m&&!v?d([u,null],a):g&&(po(u,m)?d([u,null],a):d([m,u],a)),w&&d([u,null],a)}else d(u,a);s||(i.props.onSelect(u,a),i.setState({inputValue:null}))}),ne(oe(i),"setPreSelection",function(o){var a=i.props.minDate!==void 0,s=i.props.maxDate!==void 0,l=!0;if(o){i.props.showWeekPicker&&(o=Go(o,i.props.locale,i.props.calendarStartDay));var u=oi(o);if(a&&s)l=ky(o,i.props.minDate,i.props.maxDate);else if(a){var f=oi(i.props.minDate);l=Xs(o,f)||Yl(u,f)}else if(s){var d=bu(i.props.maxDate);l=po(o,d)||Yl(u,d)}}l&&i.setState({preSelection:o})}),ne(oe(i),"handleTimeChange",function(o){var a=i.props.selected?i.props.selected:i.getPreSelection(),s=i.props.selected?o:_D(a,{hour:Ho(o),minute:Wo(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&(i.sendFocusBackToInput(),i.setOpen(!1)),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})}),ne(oe(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),ne(oe(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var a=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(a==="ArrowDown"||a==="ArrowUp"){o.preventDefault();var s=i.props.showWeekPicker&&i.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',l=i.calendar.componentNode&&i.calendar.componentNode.querySelector(s);return void(l&&l.focus({preventScroll:!0}))}var u=Nt(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===OO?(i.handleSelect(u,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(u)):i.setOpen(!1)):a==="Escape"?(o.preventDefault(),i.sendFocusBackToInput(),i.setOpen(!1)):a==="Tab"&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:xO})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()}),ne(oe(i),"onPortalKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),ne(oe(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var a=o.key,s=Nt(i.state.preSelection);if(a==="Enter")o.preventDefault(),i.handleSelect(s,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(s);else if(a==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:xO});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=i.props.showWeekPicker?NR(s,1):lP(s,1);break;case"ArrowRight":l=i.props.showWeekPicker?G0(s,1):Ru(s,1);break;case"ArrowUp":l=NR(s,1);break;case"ArrowDown":l=G0(s,1);break;case"PageUp":l=kf(s,1);break;case"PageDown":l=zi(s,1);break;case"Home":l=Xh(s,1);break;case"End":l=Sf(s,1);break;default:l=null}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:xO}));if(o.preventDefault(),i.setState({lastPreSelectChange:OO}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var u=gr(s),f=gr(l),d=lt(s),p=lt(l);u!==f||d!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),ne(oe(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.sendFocusBackToInput())}),ne(oe(i),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),i.sendFocusBackToInput(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})}),ne(oe(i),"clear",function(){i.onClearClick()}),ne(oe(i),"onScroll",function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)}),ne(oe(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?M.createElement(y0e,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,holidays:Zye(i.modifyHolidays()),includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:LD,fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showDateSelect:i.props.showDateSelect,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showWeekPicker:i.props.showWeekPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null}),ne(oe(i),"renderAriaLiveRegion",function(){var o,a=i.props,s=a.dateFormat,l=a.locale,u=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return o=i.props.selectsRange?"Selected start date: ".concat(Ao(i.props.startDate,{dateFormat:u,locale:l}),". ").concat(i.props.endDate?"End date: "+Ao(i.props.endDate,{dateFormat:u,locale:l}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(Ao(i.props.selected,{dateFormat:s,locale:l})):i.props.showYearPicker?"Selected year: ".concat(Ao(i.props.selected,{dateFormat:"yyyy",locale:l})):i.props.showMonthYearPicker?"Selected month: ".concat(Ao(i.props.selected,{dateFormat:"MMMM yyyy",locale:l})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(Ao(i.props.selected,{dateFormat:"yyyy, QQQ",locale:l})):"Selected date: ".concat(Ao(i.props.selected,{dateFormat:u,locale:l})),M.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)}),ne(oe(i),"renderDateInput",function(){var o,a=cr(i.props.className,ne({},LD,i.state.open)),s=i.props.customInput||M.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",u=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?function(f,d,p){if(!f)return"";var m=Ao(f,p),v=d?Ao(d,p):"";return"".concat(m," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):Ao(i.props.selected,i.props);return M.cloneElement(s,(ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(o={},l,function(f){i.input=f}),"value",u),"onBlur",i.handleBlur),"onChange",i.handleChange),"onClick",i.onInputClick),"onFocus",i.handleFocus),"onKeyDown",i.onInputKeyDown),"id",i.props.id),"name",i.props.name),"form",i.props.form),ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(o,"autoFocus",i.props.autoFocus),"placeholder",i.props.placeholderText),"disabled",i.props.disabled),"autoComplete",i.props.autoComplete),"className",cr(s.props.className,a)),"title",i.props.title),"readOnly",i.props.readOnly),"required",i.props.required),"tabIndex",i.props.tabIndex),"aria-describedby",i.props.ariaDescribedBy),ne(ne(ne(o,"aria-invalid",i.props.ariaInvalid),"aria-labelledby",i.props.ariaLabelledBy),"aria-required",i.props.ariaRequired)))}),ne(oe(i),"renderClearButton",function(){var o=i.props,a=o.isClearable,s=o.disabled,l=o.selected,u=o.startDate,f=o.endDate,d=o.clearButtonTitle,p=o.clearButtonClassName,m=p===void 0?"":p,v=o.ariaLabelClose,g=v===void 0?"Close":v;return!a||l==null&&u==null&&f==null?null:M.createElement("button",{type:"button",className:cr("react-datepicker__close-icon",m,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":g,onClick:i.onClearClick,title:d,tabIndex:-1})}),i.state=i.calcInitialState(),i.preventFocusTimeout=null,i}return qn(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,a;r.inline&&(o=r.selected,a=this.props.selected,o&&a?gr(o)!==gr(a)||lt(o)!==lt(a):o!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:PD(this.props.highlightDates)}),i.focused||Yl(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props,i=r.showIcon,o=r.icon,a=r.calendarIconClassname;return M.createElement("div",{className:"react-datepicker__input-container".concat(i?" react-datepicker__view-calendar-icon":"")},i&&M.createElement(m0e,{icon:o,className:a}),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?M.createElement($9,{enableTabLoop:this.props.enableTabLoop},M.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=M.createElement(U9,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),M.createElement("div",null,this.renderInputContainer(),i)}return M.createElement(g0e,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:nh,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),_0e="input",OO="navigate";const mT=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||!r,a=F.useRef();return b.jsxs("div",{className:"icon-input-container",children:[b.jsx(b0e,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??A2,className:We("icon-input-container__input form-control",t),ref:a}),o&&b.jsx(Le,{icon:Dfe,className:"icon-input-container__icon",onClick:()=>{var s;return(s=a.current)==null?void 0:s.input.focus()}})]})},w0e=e=>b.jsx(mT,{...e,dateFormat:uP,showTimeSelect:!0,timeIntervals:10}),SO=({children:e,infoTooltip:t,checked:n,onChange:r})=>b.jsxs("p",{children:[b.jsx(lB,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&b.jsx(Ey,{placement:"right",children:t})]}),x0e=({isOpen:e,toggle:t})=>b.jsxs(qa,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[b.jsx(Ka,{toggle:t,children:"Info"}),b.jsxs(na,{children:[b.jsxs("p",{children:["When the ",b.jsx("b",{children:b.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),b.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),b.jsxs("ul",{children:[b.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."}),b.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.",b.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),b.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"})]})]})]}),O0e=()=>{const[e,t]=En();return b.jsxs(b.Fragment,{children:[b.jsx(Jh,{className:"p-0",title:"What does this mean?",onClick:t,children:b.jsx(Le,{icon:ej})}),b.jsx(x0e,{isOpen:e,toggle:t})]})},EO=e=>typeof e=="string"?Ua(e):e,S0e=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,E0e=e=>"error"in e,B9=({mode:e,saving:t,onSave:n,initialState:r,tagsList:i})=>{const{TagsSelector:o,DomainSelector:a}=an(B9),[s,l]=F.useState(r),u=()=>l(r),f=Mu("deviceLongUrls"),d=e==="edit",p=S0e(s),m=e==="create-basic",v=E=>l(T=>({...T,tags:E})),g=(E,T)=>va(E)?E:va(T)?null:void 0,w=pP(async()=>n({...s,validSince:Js(s.validSince)??null,validUntil:Js(s.validUntil)??null,maxVisits:va(s.maxVisits)?Number(s.maxVisits):null}).then(E=>!d&&!E0e(E)&&u()).catch(()=>{}));F.useEffect(()=>{l(r)},[r]);const y=(E,T,k="text",A={},D={})=>b.jsx(ni,{...D,children:b.jsx(gu,{name:E,id:E,type:k,placeholder:T,value:s[E]??"",onChange:A.onChange??(R=>l(I=>({...I,[E]:R.target.value}))),...A})}),_=(E,T,k)=>{var A;return b.jsx(uge,{icon:k,name:E,id:E,type:"url",placeholder:T,value:((A=s.deviceLongUrls)==null?void 0:A[E])??"",onChange:D=>l(R=>{var I;return{...R,deviceLongUrls:{...R.deviceLongUrls??{},[E]:g(D.target.value,(I=r.deviceLongUrls)==null?void 0:I[E])}}})})},x=(E,T,k={})=>b.jsx(w0e,{name:E,selected:s[E]?EO(s[E]):null,placeholderText:T,isClearable:!0,onChange:A=>l(D=>({...D,[E]:A})),...k}),O=b.jsxs(b.Fragment,{children:[b.jsx(ni,{children:b.jsx(gu,{name:"longUrl",bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:s.longUrl,onChange:E=>l(T=>({...T,longUrl:E.target.value}))})}),b.jsxs(kr,{children:[m&&y("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),b.jsx("div",{className:m?"col-lg-6 mb-3":"col-12",children:b.jsx(o,{tags:i.tags,selectedTags:s.tags??[],onChange:v})})]})]});return b.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:w,children:[m&&O,!m&&b.jsxs(b.Fragment,{children:[b.jsxs(kr,{children:[b.jsx("div",{className:We("mb-3",{"col-sm-6":f,"col-12":!f}),children:b.jsx(vn,{title:"Main options",className:"mb-3",children:O})}),f&&b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(vn,{title:"Device-specific long URLs",children:[b.jsx(ni,{children:_("android","Android-specific redirection",Bfe)}),b.jsx(ni,{children:_("ios","iOS-specific redirection",$fe)}),_("desktop","Desktop-specific redirection",DJ)]})})]}),b.jsxs(kr,{children:[b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(vn,{title:"Customize the short URL",children:[y("title","Title","text",{onChange:({target:E})=>l(T=>({...T,title:g(E.value,r.title)}))}),!d&&p&&b.jsxs(b.Fragment,{children:[b.jsxs(kr,{children:[b.jsx("div",{className:"col-lg-6",children:y("customSlug","Custom slug","text",{disabled:va(s.shortCodeLength)})}),b.jsx("div",{className:"col-lg-6",children:y("shortCodeLength","Short code length","number",{min:4,disabled:va(s.customSlug)})})]}),b.jsx(a,{value:s.domain,onChange:E=>l(T=>({...T,domain:E}))})]})]})}),b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(vn,{title:"Limit access to the short URL",children:[y("maxVisits","Maximum number of visits allowed","number",{min:1}),b.jsx("div",{className:"mb-3",children:x("validSince","Enabled since...",{maxDate:s.validUntil?EO(s.validUntil):void 0})}),x("validUntil","Enabled until...",{minDate:s.validSince?EO(s.validSince):void 0})]})})]}),b.jsxs(kr,{children:[b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(vn,{title:"Extra checks",children:[b.jsx(SO,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:s.validateUrl,onChange:E=>l(T=>({...T,validateUrl:E})),children:"Validate URL"}),!d&&p&&b.jsxs("p",{children:[b.jsx(lB,{inline:!0,className:"me-2",checked:s.findIfExists,onChange:E=>l(T=>({...T,findIfExists:E})),children:"Use existing URL if found"}),b.jsx(O0e,{})]})]})}),b.jsx("div",{className:"col-sm-6 mb-3",children:b.jsxs(vn,{title:"Configure behavior",children:[b.jsx(SO,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:s.crawlable,onChange:E=>l(T=>({...T,crawlable:E})),children:"Make it crawlable"}),b.jsx(SO,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:s.forwardQuery,onChange:E=>l(T=>({...T,forwardQuery:E})),children:"Forward query params on redirect"})]})})]})]}),b.jsx("div",{className:"text-center",children:b.jsx(wt,{outline:!0,color:"primary",disabled:t||!s.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},T0e=sn(B9,["TagsSelector","DomainSelector"]),C0e=({active:e,allText:t,onChange:n})=>b.jsxs(b.Fragment,{children:[b.jsx(ze,{active:e==="all",onClick:()=>n("all"),children:t}),b.jsx(ze,{divider:!0,tag:"hr"}),Sme.map(r=>b.jsx(ze,{active:e===r,onClick:()=>n(r),children:F2(r)},r))]}),k0e=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-md-6",children:b.jsx(mT,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),b.jsx("div",{className:"col-md-6",children:b.jsx(mT,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&bu(o))})})]}),z9=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=eb(t),[a,s]=F.useState(o?t:void 0),[l,u]=F.useState(o?void 0:t),f=p=>{s(D2(p)?uv:void 0),u(p),e(p)},d=p=>{s(p),u(void 0),e(U2(p))};return Kme(()=>{if(!i)return;const p=eb(t);p&&d(t),t&&!p&&f(t)},[t,i]),b.jsxs(Za,{disabled:r,text:F2(a??l)??n,children:[b.jsx(C0e,{allText:n,active:a,onChange:d}),b.jsx(ze,{divider:!0,tag:"hr"}),b.jsx(ze,{header:!0,"aria-hidden":!0,children:"Custom:"}),b.jsx(ze,{text:!0,children:b.jsx(k0e,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})},j0e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},P0e=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return b.jsxs(Za,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[b.jsx(ze,{header:!0,"aria-hidden":!0,children:"Visits:"}),b.jsx(ze,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&b.jsxs(b.Fragment,{children:[b.jsx(ze,{divider:!0,tag:"hr"}),b.jsx(ze,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),b.jsx(ze,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),b.jsx(ze,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),b.jsx(ze,{divider:!0,tag:"hr"}),b.jsx(ze,{disabled:!va(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:b.jsx("i",{children:"Clear filters"})})]})},V9=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i})=>{const{ExportShortUrlsBtn:o,TagsSelector:a}=an(V9),[s,l]=q_(),{search:u,tags:f,startDate:d,endDate:p,excludeBots:m,excludeMaxVisitsReached:v,excludePastValidUntil:g,tagsMode:w="any"}=s,y=Mu("filterDisabledUrls"),_=Du("visits"),x=F.useCallback(({startDate:k,endDate:A})=>l({startDate:Js(k)??void 0,endDate:Js(A)??void 0}),[l]),O=F.useCallback(k=>l({search:k||void 0}),[l]),E=F.useCallback(k=>l({tags:k}),[l]),T=F.useCallback(()=>l({tagsMode:w==="any"?"all":"any"}),[w,l]);return b.jsxs("div",{className:We("short-urls-filtering-bar-container",e),children:[b.jsx(ov,{initialValue:u,onChange:O}),b.jsxs(D_,{className:"mt-3",children:[b.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:f,onChange:E}),f.length>1&&b.jsxs(b.Fragment,{children:[b.jsx(wt,{outline:!0,color:"secondary",onClick:T,id:"tagsModeBtn","aria-label":"Change tags mode",children:b.jsx(Le,{className:"short-urls-filtering-bar__tags-icon",icon:w==="all"?P$:fJ})}),b.jsx(qr,{target:"tagsModeBtn",placement:"left",children:w==="all"?"With all the tags.":"With any of the tags."})]})]}),b.jsxs(kr,{className:"flex-lg-row-reverse",children:[b.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:b.jsxs("div",{className:"d-md-flex",children:[b.jsx("div",{className:"flex-fill",children:b.jsx(z9,{defaultText:"All short URLs",initialDateRange:I2(d,p),onDatesChange:x})}),b.jsx(P0e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:m??(_==null?void 0:_.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:g},onChange:l,supportsDisabledFiltering:y})]})}),b.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:b.jsx(o,{amount:t})}),b.jsx("div",{className:"col-6 d-lg-none mt-3",children:b.jsx(av,{prefixed:!1,items:j0e,order:n,onChange:r})})]})]})},A0e=sn(V9,["ExportShortUrlsBtn","TagsSelector"]);function rh({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:b.jsx(Le,{icon:e.dir==="ASC"?iJ:mJ,className:n})}const lc=2,vT="...",H9=(e,t)=>{const n=dP(Math.max(lc,e-lc),Math.min(t-1,e+lc)+1);return e-lc>lc&&n.unshift(vT),e+lc<t-1&&n.push(vT),n.unshift(1),n.push(t),n},im=e=>e===vT,W9=e=>im(e)?e:bn(e),Y9=(e,t)=>im(e)?`${e}_${t}`:`${e}`,N0e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=Lu(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return b.jsx("div",{className:"pb-3"});const a=()=>H9(n,r).map((s,l)=>b.jsx(tu,{disabled:im(s),active:n===s,children:b.jsx(nu,{tag:Yt,to:o(s),children:W9(s)})},Y9(s,l)));return b.jsxs(Nj,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[b.jsx(tu,{disabled:n===1,children:b.jsx(nu,{previous:!0,tag:Yt,to:o(n-1)})}),a(),b.jsx(tu,{disabled:n>=r,children:b.jsx(nu,{next:!0,tag:Yt,to:o(n+1)})})]})},M0e={field:"dateCreated",dir:"DESC"},G9=ul(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=an(G9),{page:s}=ad(),l=Nn(),[u,f]=q_(),d=gP(),{tags:p,search:m,startDate:v,endDate:g,orderBy:w,tagsMode:y,excludeBots:_,excludePastValidUntil:x,excludeMaxVisitsReached:O}=u,[E,T]=F.useState(w??((n=d.shortUrlsList)==null?void 0:n.defaultOrdering)??M0e),{pagination:k}=(t==null?void 0:t.shortUrls)??{},A=F.useMemo(()=>{var Q;return _??((Q=d.visits)==null?void 0:Q.excludeBots)},[_,(r=d.visits)==null?void 0:r.excludeBots]),D=Mu("excludeBotsOnShortUrls"),R=F.useCallback((Q,Z)=>{f({orderBy:{field:Q,dir:Z}}),T({field:Q,dir:Z})},[f]),I=Q=>()=>R(Q,U_(Q,E.field,E.dir)),z=Q=>b.jsx(rh,{currentOrder:E,field:Q}),G=F.useCallback(Q=>f({tags:[...new Set([...p,Q])]}),[p,f]),H=F.useCallback(({field:Q,dir:Z})=>D&&A&&Q==="visits"?{field:"nonBotVisits",dir:Z}:{field:Q,dir:Z},[A,D]);return F.useEffect(()=>{e({page:s,searchTerm:m,tags:p,startDate:v,endDate:g,orderBy:H(E),tagsMode:y,excludePastValidUntil:x,excludeMaxVisitsReached:O})},[e,H,s,m,p,v,g,E,y,x,O]),b.jsxs(b.Fragment,{children:[b.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:E,handleOrderBy:R,className:"mb-3"}),b.jsxs(ui,{body:!0,className:"pb-0",children:[b.jsx(o,{shortUrlsList:t,orderByColumn:I,renderOrderIcon:z,onTagClick:G}),b.jsx(N0e,{paginator:k,currentQueryString:l.search})]})]})},()=>[Ri.visits]),L0e=sn(G9,["ShortUrlsTable","ShortUrlsFilteringBar"]),q9=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=an(q9),{error:a,loading:s,shortUrls:l}=n,u=We({"short-urls-table__header-cell--with-action":!!e}),f=We("short-urls-table__header-cell",u),d=We("table table-hover responsive-table short-urls-table",i),p=()=>a?b.jsx("tr",{children:b.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?b.jsx("tr",{children:b.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&(!l||l.data.length===0)?b.jsx("tr",{children:b.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(m=>b.jsx(o,{shortUrl:m,onTagClick:r},m.shortUrl));return b.jsxs("table",{className:d,children:[b.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:b.jsxs("tr",{children:[b.jsxs("th",{className:f,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),b.jsxs("th",{className:f,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),b.jsxs("th",{className:"short-urls-table__header-cell",children:[b.jsxs(Jh,{className:We("p-0",u),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]}),"  /  ",b.jsxs(Jh,{className:We("p-0",u),onClick:e==null?void 0:e("longUrl"),children:[b.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),b.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),b.jsx("th",{className:f,onClick:e==null?void 0:e("visits"),children:b.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),b.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),b.jsx("tbody",{children:p()})]})},R0e=sn(q9,["ShortUrlsRow"]),D0e=(e,t)=>{e.factory("ShortUrlsList",L0e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",R0e),e.factory("ShortUrlsRow",tge),e.factory("ShortUrlsRowMenu",nge),e.factory("CreateShortUrlResult",zve),e.factory("ShortUrlForm",T0e),e.decorator("ShortUrlForm",t(["tagsList"])),e.factory("CreateShortUrl",xve),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",Ove),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>Vve),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.factory("QrCodeModal",qve),e.factory("ExportShortUrlsBtn",Hve),e.factory("ShortUrlsFilteringBar",A0e),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",pve,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",ige,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",lge,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",cve,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",oge,"apiClientFactory"),e.serviceFactory("shortUrlDetailReducer",n=>n.reducer,"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",dve,"apiClientFactory"),e.serviceFactory("createShortUrl",rge,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",uve,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>H2),e.serviceFactory("getShortUrlDetail",n=>n.getShortUrlDetail,"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",sge,"apiClientFactory")},I0e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:u}=i;return b.jsxs(qa,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[b.jsx(Ka,{toggle:t,className:"text-danger",children:"Delete tag"}),b.jsxs(na,{children:["Are you sure you want to delete tag ",b.jsx("b",{children:e}),"?",s&&b.jsx(ii,{type:"error",small:!0,className:"mt-2",children:b.jsx(Fa,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),b.jsxs(Nu,{children:[b.jsx(wt,{color:"link",onClick:t,children:"Cancel"}),b.jsx(wt,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},K9=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=an(K9),[s,l]=F.useState(e),[u,f]=F.useState(a.getColorForKey(e)),{editing:d,error:p,edited:m,errorData:v}=o,g=pP(async()=>{await t({oldName:e,newName:s,color:u}),n()}),w=F.useCallback(()=>m&&r({oldName:e,newName:s,color:u}),[u,m,s,e,r]);return b.jsx(qa,{isOpen:i,toggle:n,centered:!0,onClosed:w,children:b.jsxs("form",{name:"editTag",onSubmit:g,children:[b.jsx(Ka,{toggle:n,children:"Edit tag"}),b.jsxs(na,{children:[b.jsxs(D_,{children:[b.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:u,borderColor:u},children:[b.jsx(Le,{icon:oJ,className:"position-absolute top-50 start-50 translate-middle text-white"}),b.jsx(gu,{className:"form-control-color opacity-0",type:"color",value:u,onChange:y=>f(y.target.value)})]}),b.jsx(gu,{value:s,placeholder:"Tag",required:!0,onChange:({target:y})=>l(y.value)})]}),p&&b.jsx(ii,{type:"error",small:!0,className:"mt-2",children:b.jsx(Fa,{errorData:v,fallbackMessage:"Something went wrong while editing the tag :("})})]}),b.jsxs(Nu,{children:[b.jsx(wt,{type:"button",color:"link",onClick:n,children:"Cancel"}),b.jsx(wt,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},F0e=sn(K9,["ColorGenerator"]),Ll={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},jP=Symbol("Create new tag"),Z9=Symbol("No options"),mc=()=>{},Xn=M.createContext(void 0);function RD(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function U0e(e){return e.selectionStart===0&&e.selectionEnd===0}function $0e(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function ew(e){return`${e}-label`}function B0e(e){return`${e}-combobox`}function z0e(e){return`${e}-input`}function X9(e){return`${e}-listbox`}function Q9(e,t){return`${e}-option-${K0e(t)}`}function V0e(e,t){if((e==null?void 0:e.value)===jP&&e.disabled===!1)return{value:t,label:t}}function H0e(e){const t=V0e(e.activeOption,e.value)||e.activeOption||J0e(e.value,e.options);return t&&!t.disabled?t:void 0}function W0e(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const Y0e=/%value%/;function sb(e,t){return e.replace(Y0e,t)}function G0e(e,t){const n=ez(t),r=e.match(n);if(r){const i=r[0],o=r.index+i.length;return[e.slice(0,r.index),e.slice(r.index,o),e.slice(o)]}}const q0e=/\s+/g;function gT(e){return`${String(e.value)}-${e.label}`}function K0e(e){return gT(e).replace(q0e,"_")}function yT(e,t){return t.findIndex(({value:n})=>n===e.value)}const Z0e=/[-\\^$*+?.()|[\]{}]/g;function J9(e){return e.replace(Z0e,"\\$&")}function ez(e){return new RegExp(J9(e),"i")}function X0e(e){return new RegExp(`^${J9(e)}$`,"i")}function Q0e(e,t){if(e){const n=ez(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function J0e(e,t){const n=X0e(e);return t.find(r=>n.test(r.label))||null}const ebe={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function tbe({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:l,managerRef:u}=F.useContext(Xn),f=F.useMemo(()=>{const v=D=>{const R=D.currentTarget.value;u.current.updateInputValue(R),document.activeElement===a.current&&u.current.listBoxExpand(R)},g=()=>{u.current.listBoxExpand()},w=D=>{var R;((R=o.current)==null?void 0:R.contains(D.relatedTarget))===!1&&u.current.listBoxCollapse()},y=()=>{u.current.listBoxExpand()},_=D=>{const{activeIndex:R,isExpanded:I}=u.current.state;I?(D.preventDefault(),u.current.updateActiveIndex(R+1)):($0e(D.currentTarget)||D.altKey)&&(D.preventDefault(),u.current.listBoxExpand())},x=D=>{const{activeIndex:R,isExpanded:I}=u.current.state;I?(D.preventDefault(),u.current.updateActiveIndex(R-1)):U0e(D.currentTarget)&&(D.preventDefault(),u.current.listBoxExpand())},O=D=>{const{isExpanded:R,options:I}=u.current.state;R&&(D.preventDefault(),u.current.updateActiveIndex(I.length-1))},E=D=>{u.current.state.isExpanded&&(D.preventDefault(),u.current.updateActiveIndex(0))},T=()=>{u.current.state.isExpanded?u.current.listBoxCollapse():u.current.updateInputValue("")},k=()=>{if(e){const{value:D,selected:R}=u.current.state,I=R[R.length-1];D===""&&I&&u.current.selectTag(I)}},A=D=>{u.current.state.isExpanded&&(D.preventDefault(),u.current.selectTag())};return{onBlur:w,onChange:v,onClick:y,onFocus:g,onKeyDown:D=>{if(D.key===Ll.UpArrow)return x(D);if(D.key===Ll.DownArrow)return _(D);if(D.key===Ll.PageUp)return E(D);if(D.key===Ll.PageDown)return O(D);if(D.key===Ll.Escape)return T();if(D.key===Ll.Backspace)return k();if(r.includes(D.key))return A(D)}}},[e,o,r,a,u]),{activeOption:d,isExpanded:p,value:m}=u.current.state;return{...ebe,"aria-autocomplete":"list","aria-activedescendant":d?Q9(i,d):void 0,"aria-controls":X9(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":l&&n||void 0,"aria-invalid":l,"aria-labelledby":ew(i),"aria-expanded":p,id:z0e(i),onBlur:s?mc:f.onBlur,onChange:s?mc:f.onChange,onClick:s?mc:f.onClick,onFocus:s?mc:f.onFocus,onKeyDown:s?mc:f.onKeyDown,ref:a,role:"combobox",type:"text",value:m}}const nbe={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},rbe=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function ibe({allowResize:e=!0,text:t}){const n=F.useRef(null),{inputRef:r}=F.useContext(Xn),[i,o]=F.useState(null);return F.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);rbe.forEach(s=>{const l=a.getPropertyValue(s);n.current.style.setProperty(s,l)})}},[e,r,n]),F.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=n.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:nbe}}}function obe(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=F.useContext(Xn),i=r.current.state.activeIndex===-1,o=F.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return F.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":ew(e),id:X9(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function abe({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:a,onCollapse:s,onExpand:l,onInput:u,onShouldCollapse:f,onShouldExpand:d,onValidate:p,selected:m,suggestions:v,suggestionsTransform:g}){const w=F.useRef(),[y,_]=F.useState(null),[x,O]=F.useState(!1),[E,T]=F.useState(""),k=F.useMemo(()=>{const H=g(E,v);return E&&(t&&H.push({disabled:p?!p(E):!1,label:r,value:jP}),H.length===0&&H.push({disabled:!0,label:i,value:Z9})),H},[t,r,i,p,v,g,E]),A=y?yT(y,k):-1,D=e?Math.max(A,0):A,R=k[D],I={activeIndex:D,activeOption:R,isExpanded:x,options:k,selected:m,value:E},z={tagsAdded:w.current?RD(m,w.current.state.selected):[],tagsDeleted:w.current?RD(w.current.state.selected,m):[]},G={listBoxCollapse(H){x&&(!f||f(H??I.value))&&(O(!1),_(null),s==null||s())},listBoxExpand(H){x||(!d||d(H??I.value))&&(O(!0),_(k[D]),l==null||l())},updateActiveIndex(H){const Q=W0e(H,k.length,e?0:-1);_(k[Q])},updateInputValue(H){E!==H&&(T(H),u==null||u(H))},selectTag(H){if(H??(H=H0e(I)),H){const Q=yT(H,I.selected);Q>-1?a(Q):o(H),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return w.current={...G,flags:z,state:I},w}function sbe(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=F.useContext(Xn),o=F.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,l=a.disabled??!1,u=yT(a,i.current.state.selected)>-1,f=F.useCallback(()=>{var p;i.current.selectTag(),(p=n.current)==null||p.focus()},[n,i]),d=F.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return cbe(o,r,s),{option:{...a,active:s,disabled:l,index:e,selected:u},optionProps:{"aria-disabled":l,"aria-posinset":e+1,"aria-selected":l?void 0:u,"aria-setsize":i.current.state.options.length,id:Q9(t,a),onClick:f,onMouseDown:d,ref:o,role:"option",tabIndex:-1}}}function lbe({inputRef:e,managerRef:t}){return F.useRef({input:{blur(){var n;(n=e.current)==null||n.blur()},focus(){var n;(n=e.current)==null||n.focus()},get value(){return t.current.state.value},set value(n){typeof n!="string"&&(n=String(n)),t.current.updateInputValue(n)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(n){t.current.selectTag(n)}}).current}function ube({onBlur:e,onFocus:t}){const[n,r]=F.useState(!1),{id:i,inputRef:o}=F.useContext(Xn),a=F.useRef(null),s=F.useMemo(()=>({"aria-describedby":ew(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var l;(l=a.current)!=null&&l.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var l;document.activeElement===a.current&&((l=o.current)==null||l.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function cbe(e,t,n){F.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,l=(i=e.current)==null?void 0:i.offsetTop,u=(o=t.current)==null?void 0:o.offsetHeight,f=(a=t.current)==null?void 0:a.scrollTop;l<f&&t.current.scrollTo(0,l),l+s>f+u&&t.current.scrollTo(0,l+s-u)}},[n,t,e])}function fbe(e,t){const{isDisabled:n,managerRef:r}=F.useContext(Xn),i=r.current.state.selected[e],o=F.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:sb(t,i.label),onClick:n?mc:o}}}function dbe(){var e;const{inputRef:t,managerRef:n}=F.useContext(Xn),r=F.useRef(),i=n.current.flags.tagsDeleted.length,o=(e=r.current)==null?void 0:e.contains(document.activeElement);return F.useLayoutEffect(()=>{var a,s;if(i){const l=(a=r.current)==null?void 0:a.contains(document.activeElement);o&&!l&&((s=t.current)==null||s.focus({preventScroll:!0}))}},[t,o,r,i]),{listRef:r}}const pbe={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function hbe({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=F.useContext(Xn),r=F.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(sb(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(sb(t,i.label))}),M.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:pbe},r.current.join(`
`))}function mbe({children:e}){const{classNames:t,comboBoxRef:n,id:r}=F.useContext(Xn);return M.createElement("div",{className:t.comboBox,id:B0e(r),ref:n},e)}const vbe=({classNames:e,text:t})=>M.createElement("mark",{className:e.highlight},t);function gbe({option:e,query:t,render:n=vbe}){const{classNames:r}=F.useContext(Xn);if(e.value===jP||e.value===Z9)return M.createElement(M.Fragment,null,sb(e.label,t));if(t){const i=G0e(e.label,t);if(i){const o=n({text:i[1],classNames:r});return M.createElement(M.Fragment,null,i[0],o,i[2])}}return M.createElement(M.Fragment,null,e.label)}const ybe=M.memo(gbe),bbe=({classNames:e,inputWidth:t,...n})=>M.createElement("input",{className:e.input,style:{width:t},...n});function _be({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=bbe}){const{classNames:s}=F.useContext(Xn),{value:l,...u}=tbe({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=l.length<o.length?o:l,{width:d,sizerProps:p}=ibe({allowResize:t,text:f});return M.createElement(M.Fragment,null,a({classNames:s,inputWidth:d,placeholder:o,value:l,...u}),t?M.createElement("div",{...p},f):null)}const wbe=({children:e,classNames:t,id:n})=>M.createElement("div",{className:t.label,id:n},e);function xbe({children:e,render:t=wbe}){const{classNames:n,id:r}=F.useContext(Xn);return t({children:e,classNames:n,id:ew(r)})}const Obe=({children:e,classNames:t,...n})=>M.createElement("div",{className:t.listBox,...n},e);function Sbe({children:e,render:t=Obe}){const{classNames:n,managerRef:r}=F.useContext(Xn),i=obe();return!r.current.state.isExpanded||M.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Ebe=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),M.createElement("div",{className:i.join(" "),...r},e)};function Tbe({children:e,index:t,render:n=Ebe}){const{classNames:r}=F.useContext(Xn),{option:i,optionProps:o}=sbe(t);return n({classNames:r,children:e,option:i,...o})}const Cbe=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const a=[t.root];return n&&a.push(t.rootIsActive),r&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),M.createElement("div",{className:a.join(" "),...o},e)};function kbe({children:e,onBlur:t,onFocus:n,render:r=Cbe}){const{classNames:i,isDisabled:o,isInvalid:a}=F.useContext(Xn),{isActive:s,rootProps:l}=ube({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const jbe=({classNames:e,tag:t,...n})=>M.createElement("button",{type:"button",className:e.tag,...n},M.createElement("span",{className:e.tagName},t.label));function Pbe({render:e=jbe,index:t,title:n}){const{classNames:r}=F.useContext(Xn),{tag:i,tagProps:o}=fbe(t,n);return e({classNames:r,tag:i,...o})}function Abe({children:e,label:t}){const{classNames:n}=F.useContext(Xn),{listRef:r}=dbe();return M.createElement("ul",{className:n.tagList,"aria-label":t,ref:r,role:"list"},e.map(i=>M.createElement("li",{className:n.tagListItem,key:i.key,role:"listitem"},i)))}const Nbe={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"},Mbe=[Ll.Enter];function Lbe({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:l=Nbe,collapseOnSelect:u=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=Mbe,id:p="react-tags",isDisabled:m=!1,isInvalid:v=!1,labelText:g="Select tags",newOptionText:w="Add %value%",noOptionsText:y="No options found for %value%",onAdd:_,onBlur:x,onCollapse:O,onDelete:E,onExpand:T,onFocus:k,onInput:A,onShouldCollapse:D,onShouldExpand:R,onValidate:I,placeholderText:z="Add a tag",renderHighlight:G,renderInput:H,renderLabel:Q,renderListBox:Z,renderOption:te,renderRoot:X,renderTag:$,selected:V=[],suggestions:W=[],suggestionsTransform:re=Q0e,tagListLabelText:q="Selected tags"},ee){const ie=F.useRef(null),se=F.useRef(null),fe=F.useRef(null),j=abe({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionText:w,noOptionsText:y,onAdd:_,onDelete:E,onCollapse:O,onExpand:T,onInput:A,onShouldCollapse:D,onShouldExpand:R,onValidate:I,selected:V,suggestions:W,suggestionsTransform:re}),P=lbe({inputRef:se,managerRef:j});return ee&&(typeof ee=="function"?ee(P):ee.current=P),M.createElement(Xn.Provider,{value:{classNames:l,comboBoxRef:ie,id:p,inputRef:se,isDisabled:m,isInvalid:v,listBoxRef:fe,managerRef:j}},M.createElement(kbe,{onBlur:x,onFocus:k,render:X},M.createElement(xbe,{render:Q},g),M.createElement(Abe,{label:q},j.current.state.selected.map((B,J)=>M.createElement(Pbe,{key:gT(B),index:J,render:$,title:f}))),M.createElement(mbe,null,M.createElement(_be,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:z,render:H}),M.createElement(Sbe,{render:Z},j.current.state.options.map((B,J)=>M.createElement(Tbe,{key:gT(B),index:J,render:te},M.createElement(ybe,{option:B,query:j.current.state.value,render:G}))))),M.createElement(hbe,{ariaAddedText:i,ariaDeletedText:s})))}const Rbe=M.forwardRef(Lbe),Dbe=/\s+/g,tz=e=>e.trim().toLowerCase().replace(Dbe,"-"),nz=({tag:e,colorGenerator:t})=>b.jsx("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"});let DD=1;const rz="Tag not found",iz="Add tag",Ibe=e=>e!==rz,Fbe=e=>e===iz,ID=e=>(DD+=1,{label:e,value:`${e}${DD}`}),Ube=e=>({tag:t,onClick:n})=>b.jsx(bP,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),$be=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=Ibe(n.label),s=Fbe(n.label);return b.jsx("div",{className:We(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?b.jsxs(b.Fragment,{children:[!s&&b.jsx(nz,{tag:`${n.label}`,colorGenerator:e}),s?b.jsxs("i",{children:['Add "',tz(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):b.jsx("i",{children:n.label})})},oz=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=an(oz),a=Du("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=sl();return b.jsx(Rbe,{ref:l,selected:e.map(ID),suggestions:r.filter(u=>!e.includes(u)).map(ID),renderTag:Ube(o),renderOption:$be(o,l),activateFirstOption:!0,allowNew:!i,newOptionText:iz,noOptionsText:rz,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(u,f)=>{const d=u.toLowerCase().trim();return d.length<1?[]:[...f.filter(({label:p})=>s==="includes"?p.includes(d):p.startsWith(d))].slice(0,5)},onDelete:u=>{const f=[...e];f.splice(u,1),t(f)},onAdd:({label:u})=>t([...new Set([...e,...u.split(",").map(tz)])])})},Bbe=sn(oz,["ColorGenerator"]),bT="shlink/tagDelete",zbe={deleting:!1,deleted:!1,error:!1},az=Wn(`${bT}/tagDeleted`),Vbe=e=>{const t=_r(`${bT}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Yn({name:bT,initialState:zbe,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:xo(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},PP="shlink/tagEdit",Hbe={editing:!1,edited:!1,error:!1},sz=Wn(`${PP}/tagEdited`),Wbe=(e,t)=>_r(`${PP}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Ybe=e=>Yn({name:PP,initialState:Hbe,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:xo(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:o}=r;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),AP="shlink/tagsList",TO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},FD=(e,t)=>n=>n===e?t:n,UD=(e,t)=>e.filter(n=>n!==t),Gbe=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:s.visitsCount+o+a}}},{...t}),qbe=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),{})),Kbe=e=>_r(`${AP}/listTags`,async()=>{const{tags:t,stats:n}=await e().tagsStats(),r=n.reduce((i,{tag:o,...a})=>(i[o]=a,i),{});return{tags:t,stats:r}}),lz=Wn(`${AP}/filterTags`),Zbe=(e,t)=>Yn({name:AP,initialState:TO,reducers:{},extraReducers:n=>{n.addCase(lz,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...TO,error:!0,errorData:xo(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...TO,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(az,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:UD(r,a),filteredTags:UD(i,a)})),n.addCase(sz,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(FD(s.oldName,s.newName)).sort(),filteredTags:i.map(FD(s.oldName,s.newName)).sort()})),n.addCase(cv,(r,{payload:i})=>({...r,stats:Gbe(qbe(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),Xbe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},uz=ul(({filterTags:e,tagsList:t})=>{var n;const{TagsTable:r}=an(uz),i=gP(),[o,a]=F.useState(((n=i.tags)==null?void 0:n.defaultOrdering)??{}),s=()=>{const u=t.filteredTags.map(f=>{var d,p,m;const v=t.stats[f],g=((d=i.visits)!=null&&d.excludeBots?(p=v==null?void 0:v.visitsSummary)==null?void 0:p.nonBots:(m=v==null?void 0:v.visitsSummary)==null?void 0:m.total)??(v==null?void 0:v.visitsCount)??0;return{tag:f,visits:g,shortUrls:(v==null?void 0:v.shortUrlsCount)??0}});return cB(u,o)};if(t.loading)return b.jsx(Da,{loading:!0});if(t.error)return b.jsx(ii,{type:"error",children:b.jsx(Fa,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})});const l=u=>()=>{const f=U_(u,o.field,o.dir);a({field:f?u:void 0,dir:f})};return b.jsxs(b.Fragment,{children:[b.jsx(ov,{className:"mb-3",onChange:e}),b.jsx(kr,{className:"mb-3",children:b.jsx("div",{className:"col-lg-6 offset-lg-6",children:b.jsx(av,{items:Xbe,order:o,onChange:(u,f)=>a({field:u,dir:f})})})}),(()=>{if(t.filteredTags.length<1)return b.jsx(Da,{children:"No tags found"});const u=s();return b.jsx(r,{sortedTags:u,currentOrder:o,orderByColumn:l})})()]})},()=>[Ri.visits]),Qbe=sn(uz,["TagsTable"]),NP=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!im(o)&&n(o);return b.jsxs(Nj,{listClassName:We("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[b.jsx(tu,{disabled:t<=1,children:b.jsx(nu,{previous:!0,tag:"span",onClick:i(t-1)})}),H9(t,e).map((o,a)=>b.jsx(tu,{disabled:im(o),active:t===o,children:b.jsx(nu,{role:"link",tag:"span",onClick:i(o),children:W9(o)})},Y9(o,a))),b.jsx(tu,{disabled:t>=e,children:b.jsx(nu,{next:!0,tag:"span",onClick:i(t+1)})})]})},Jbe=20,cz=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=an(cz),i=F.useRef(!0),{search:o}=Nn(),{page:a=1}=pd(o),[s,l]=qme("page",Number(a)),u=Qh(e,Jbe),f=u.length>1,d=u[s-1]??[];return F.useEffect(()=>{!i.current&&l(1),i.current=!1},[l,e]),F.useEffect(()=>{scrollTo(0,0)},[s]),b.jsxs(vn,{bodyClassName:f?"pb-1":"",children:[b.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[b.jsxs("thead",{className:"responsive-table__header",children:[b.jsxs("tr",{children:[b.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",b.jsx(rh,{currentOrder:n,field:"tag"})]}),b.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",b.jsx(rh,{currentOrder:n,field:"shortUrls"})]}),b.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",b.jsx(rh,{currentOrder:n,field:"visits"})]}),b.jsx("th",{className:"tags-table__header-cell",children:b.jsx("span",{className:"sr-only",children:"Options"})})]}),b.jsx("tr",{children:b.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),b.jsxs("tbody",{children:[d.length===0&&b.jsx("tr",{children:b.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),d.map(p=>b.jsx(r,{tag:p},p.tag))]})]}),f&&b.jsx("div",{className:"sticky-card-paginator",children:b.jsx(NP,{pagesCount:u.length,currentPage:s,setCurrentPage:l})})]},s)},e_e=sn(cz,["TagsTableRow"]),fz=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=an(fz),[i,o]=En(),[a,s]=En(),l=Lu();return b.jsxs("tr",{className:"responsive-table__row",children:[b.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[b.jsx(nz,{tag:e.tag,colorGenerator:r})," ",e.tag]}),b.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:b.jsx(Yt,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:bn(e.shortUrls)})}),b.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:b.jsx(Yt,{to:`${l}/tag/${e.tag}/visits`,children:bn(e.visits)})}),b.jsx("td",{className:"responsive-table__cell text-lg-end",children:b.jsxs(F_,{children:[b.jsxs(ze,{onClick:s,children:[b.jsx(Le,{icon:GQ,fixedWidth:!0,className:"me-1"})," Edit"]}),b.jsxs(ze,{onClick:o,children:[b.jsx(Le,{icon:lJ,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),b.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),b.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},t_e=sn(fz,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),n_e=(e,t)=>{e.factory("TagsSelector",Bbe),e.serviceFactory("DeleteTagConfirmModal",()=>I0e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",F0e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",t_e),e.factory("TagsTable",e_e),e.factory("TagsList",Qbe),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Ybe,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",Vbe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Zbe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",Kbe,"apiClientFactory"),e.serviceFactory("filterTags",()=>lz),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>az),e.serviceFactory("editTag",Wbe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>sz)};function CO(e){return e==null?"":`${e}`}function r_e(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 MP(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;return!t||t===n?r=>r:r=>(r.includes(t)&&(r=r.replace(new RegExp(t,"g"),n)),`${t}${r}${t}`)}function i_e(e={stringFormatter:MP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function o_e(e={stringFormatter:MP()}){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 a_e=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function s_e(e){var t,n,r;const i=[];let o;for(;o=a_e.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function $D(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:s_e(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function dz(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function _T(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var BD;(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"})(BD||(BD={}));class l_e{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||MP(),i=o_e({stringFormatter:r}),o={header:r,undefined:CO,boolean:CO,number:r_e(),bigint:CO,string:r,symbol:i_e({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),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=>$D(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>$D(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return _T(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(dz,[]),[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 _T(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 u_e extends l_e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,a)=>(Object.keys(a).forEach(s=>{o.includes(s)||o.push(s)}),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(dz,[])}processData(t){return _T(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Dn;(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"})(Dn||(Dn={}));Dn.QUOTATION_MARK+"",Dn.QUOTATION_MARK,Dn.REVERSE_SOLIDUS+"",Dn.REVERSE_SOLIDUS,Dn.SOLIDUS+"",Dn.SOLIDUS,Dn.LATIN_SMALL_LETTER_B+"",Dn.BACKSPACE,Dn.LATIN_SMALL_LETTER_F+"",Dn.FORM_FEED,Dn.LATIN_SMALL_LETTER_N+"",Dn.NEWLINE,Dn.LATIN_SMALL_LETTER_R+"",Dn.CARRIAGE_RETURN,Dn.LATIN_SMALL_LETTER_T+"",Dn.TAB;var zD;(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"})(zD||(zD={}));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"})(VD||(VD={}));var HD;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(HD||(HD={}));var WD;(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"})(WD||(WD={}));const c_e=new u_e,f_e=e=>c_e.parse(e),d_e=6,YD="0123456789ABCDEF",p_e=128,{floor:h_e,random:m_e,sqrt:v_e,round:g_e}=Math,y_e=()=>`#${hP(d_e,()=>YD[h_e(m_e()*YD.length)]).join("")}`,GD=e=>e.toLowerCase().trim(),b_e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),__e=(e=0,t=0,n=0)=>g_e(v_e(.299*e**2+.587*t**2+.114*n**2));class w_e{constructor(t){uo(this,"colors"),uo(this,"lights"),uo(this,"getColorForKey",r=>{const i=GD(r);return this.colors[i]||this.setColorForKey(i,y_e())}),uo(this,"setColorForKey",(r,i)=>{var o;const a=GD(r);return this.colors[a]=i,(o=this.storage)==null||o.storeTagColors(this.colors),i}),uo(this,"isColorLightForKey",r=>{const i=this.getColorForKey(r).substring(1);if(this.lights[i]===void 0){const o=b_e(i);this.lights[i]=__e(...o)>=p_e}return this.lights[i]});var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}}const pz=({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)},x_e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);pz(e,i,n)};class O_e{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);pz(this.window,i,n)}}class S_e{constructor(t,n){uo(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),uo(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),uo(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);x_e(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function E_e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",O_e,"fetch","window"),e.service("ColorGenerator",w_e,"TagColorsStorage"),e.constant("jsonToCsv",f_e),e.service("ReportExporter",S_e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>aB)}const LP=e=>e.visitedUrl!==void 0,T_e=e=>e.visitedUrl!==void 0,C_e=e=>{const t=wme(e,n=>LP(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},Fg=(e,t)=>N2(e,n=>n[t]),vv=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&Js(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&Js(r==null?void 0:r.endDate))??void 0,a=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:a}},gv=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>b.jsx("header",{children:b.jsxs(ui,{body:!0,children:[b.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[b.jsx(wt,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,"aria-label":"Go back",children:b.jsx(Le,{icon:A$})}),b.jsx("span",{className:"text-center d-none d-sm-block",children:b.jsx("small",{children:i})}),b.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",b.jsx(u9,{visitsCount:e.length,shortUrl:n})]})]}),b.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:b.jsx("small",{children:i})}),r&&b.jsx("div",{className:"mt-md-2",children:r})]})}),hz=({title:e,footer:t,children:n})=>b.jsxs(ui,{role:"document",children:[b.jsx(gf,{className:"chart-card__header",children:e}),b.jsx(vf,{children:n}),t&&b.jsx(H7,{className:"chart-card__footer--sticky",children:t})]});var k_e=Array.isArray,Kr=k_e,j_e=typeof Rc=="object"&&Rc&&Rc.Object===Object&&Rc,mz=j_e,P_e=mz,A_e=typeof self=="object"&&self&&self.Object===Object&&self,N_e=P_e||A_e||Function("return this")(),ra=N_e,M_e=ra,L_e=M_e.Symbol,yv=L_e,qD=yv,vz=Object.prototype,R_e=vz.hasOwnProperty,D_e=vz.toString,up=qD?qD.toStringTag:void 0;function I_e(e){var t=R_e.call(e,up),n=e[up];try{e[up]=void 0;var r=!0}catch{}var i=D_e.call(e);return r&&(t?e[up]=n:delete e[up]),i}var F_e=I_e,U_e=Object.prototype,$_e=U_e.toString;function B_e(e){return $_e.call(e)}var z_e=B_e,KD=yv,V_e=F_e,H_e=z_e,W_e="[object Null]",Y_e="[object Undefined]",ZD=KD?KD.toStringTag:void 0;function G_e(e){return e==null?e===void 0?Y_e:W_e:ZD&&ZD in Object(e)?V_e(e):H_e(e)}var Qa=G_e;function q_e(e){return e!=null&&typeof e=="object"}var Ja=q_e,K_e=Qa,Z_e=Ja,X_e="[object Symbol]";function Q_e(e){return typeof e=="symbol"||Z_e(e)&&K_e(e)==X_e}var vd=Q_e,J_e=Kr,ewe=vd,twe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nwe=/^\w*$/;function rwe(e,t){if(J_e(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ewe(e)?!0:nwe.test(e)||!twe.test(e)||t!=null&&e in Object(t)}var RP=rwe;function iwe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fl=iwe;const gd=Ot(fl);var owe=Qa,awe=fl,swe="[object AsyncFunction]",lwe="[object Function]",uwe="[object GeneratorFunction]",cwe="[object Proxy]";function fwe(e){if(!awe(e))return!1;var t=owe(e);return t==lwe||t==uwe||t==swe||t==cwe}var DP=fwe;const Qe=Ot(DP);var dwe=ra,pwe=dwe["__core-js_shared__"],hwe=pwe,kO=hwe,XD=function(){var e=/[^.]+$/.exec(kO&&kO.keys&&kO.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mwe(e){return!!XD&&XD in e}var vwe=mwe,gwe=Function.prototype,ywe=gwe.toString;function bwe(e){if(e!=null){try{return ywe.call(e)}catch{}try{return e+""}catch{}}return""}var gz=bwe,_we=DP,wwe=vwe,xwe=fl,Owe=gz,Swe=/[\\^$.*+?()[\]{}|]/g,Ewe=/^\[object .+?Constructor\]$/,Twe=Function.prototype,Cwe=Object.prototype,kwe=Twe.toString,jwe=Cwe.hasOwnProperty,Pwe=RegExp("^"+kwe.call(jwe).replace(Swe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Awe(e){if(!xwe(e)||wwe(e))return!1;var t=_we(e)?Pwe:Ewe;return t.test(Owe(e))}var Nwe=Awe;function Mwe(e,t){return e==null?void 0:e[t]}var Lwe=Mwe,Rwe=Nwe,Dwe=Lwe;function Iwe(e,t){var n=Dwe(e,t);return Rwe(n)?n:void 0}var Iu=Iwe,Fwe=Iu,Uwe=Fwe(Object,"create"),tw=Uwe,QD=tw;function $we(){this.__data__=QD?QD(null):{},this.size=0}var Bwe=$we;function zwe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vwe=zwe,Hwe=tw,Wwe="__lodash_hash_undefined__",Ywe=Object.prototype,Gwe=Ywe.hasOwnProperty;function qwe(e){var t=this.__data__;if(Hwe){var n=t[e];return n===Wwe?void 0:n}return Gwe.call(t,e)?t[e]:void 0}var Kwe=qwe,Zwe=tw,Xwe=Object.prototype,Qwe=Xwe.hasOwnProperty;function Jwe(e){var t=this.__data__;return Zwe?t[e]!==void 0:Qwe.call(t,e)}var exe=Jwe,txe=tw,nxe="__lodash_hash_undefined__";function rxe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=txe&&t===void 0?nxe:t,this}var ixe=rxe,oxe=Bwe,axe=Vwe,sxe=Kwe,lxe=exe,uxe=ixe;function yd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yd.prototype.clear=oxe;yd.prototype.delete=axe;yd.prototype.get=sxe;yd.prototype.has=lxe;yd.prototype.set=uxe;var cxe=yd;function fxe(){this.__data__=[],this.size=0}var dxe=fxe;function pxe(e,t){return e===t||e!==e&&t!==t}var IP=pxe,hxe=IP;function mxe(e,t){for(var n=e.length;n--;)if(hxe(e[n][0],t))return n;return-1}var nw=mxe,vxe=nw,gxe=Array.prototype,yxe=gxe.splice;function bxe(e){var t=this.__data__,n=vxe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yxe.call(t,n,1),--this.size,!0}var _xe=bxe,wxe=nw;function xxe(e){var t=this.__data__,n=wxe(t,e);return n<0?void 0:t[n][1]}var Oxe=xxe,Sxe=nw;function Exe(e){return Sxe(this.__data__,e)>-1}var Txe=Exe,Cxe=nw;function kxe(e,t){var n=this.__data__,r=Cxe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var jxe=kxe,Pxe=dxe,Axe=_xe,Nxe=Oxe,Mxe=Txe,Lxe=jxe;function bd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bd.prototype.clear=Pxe;bd.prototype.delete=Axe;bd.prototype.get=Nxe;bd.prototype.has=Mxe;bd.prototype.set=Lxe;var rw=bd,Rxe=Iu,Dxe=ra,Ixe=Rxe(Dxe,"Map"),FP=Ixe,JD=cxe,Fxe=rw,Uxe=FP;function $xe(){this.size=0,this.__data__={hash:new JD,map:new(Uxe||Fxe),string:new JD}}var Bxe=$xe;function zxe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Vxe=zxe,Hxe=Vxe;function Wxe(e,t){var n=e.__data__;return Hxe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var iw=Wxe,Yxe=iw;function Gxe(e){var t=Yxe(this,e).delete(e);return this.size-=t?1:0,t}var qxe=Gxe,Kxe=iw;function Zxe(e){return Kxe(this,e).get(e)}var Xxe=Zxe,Qxe=iw;function Jxe(e){return Qxe(this,e).has(e)}var eOe=Jxe,tOe=iw;function nOe(e,t){var n=tOe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var rOe=nOe,iOe=Bxe,oOe=qxe,aOe=Xxe,sOe=eOe,lOe=rOe;function _d(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_d.prototype.clear=iOe;_d.prototype.delete=oOe;_d.prototype.get=aOe;_d.prototype.has=sOe;_d.prototype.set=lOe;var UP=_d,yz=UP,uOe="Expected a function";function $P(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(uOe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new($P.Cache||yz),n}$P.Cache=yz;var cOe=$P,fOe=cOe,dOe=500;function pOe(e){var t=fOe(e,function(r){return n.size===dOe&&n.clear(),r}),n=t.cache;return t}var hOe=pOe,mOe=hOe,vOe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gOe=/\\(\\)?/g,yOe=mOe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vOe,function(n,r,i,o){t.push(i?o.replace(gOe,"$1"):r||n)}),t}),bOe=yOe;function _Oe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var BP=_Oe,eI=yv,wOe=BP,xOe=Kr,OOe=vd,SOe=1/0,tI=eI?eI.prototype:void 0,nI=tI?tI.toString:void 0;function bz(e){if(typeof e=="string")return e;if(xOe(e))return wOe(e,bz)+"";if(OOe(e))return nI?nI.call(e):"";var t=e+"";return t=="0"&&1/e==-SOe?"-0":t}var EOe=bz,TOe=EOe;function COe(e){return e==null?"":TOe(e)}var _z=COe,kOe=Kr,jOe=RP,POe=bOe,AOe=_z;function NOe(e,t){return kOe(e)?e:jOe(e,t)?[e]:POe(AOe(e))}var wz=NOe,MOe=vd,LOe=1/0;function ROe(e){if(typeof e=="string"||MOe(e))return e;var t=e+"";return t=="0"&&1/e==-LOe?"-0":t}var ow=ROe,DOe=wz,IOe=ow;function FOe(e,t){t=DOe(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[IOe(t[n++])];return n&&n==r?e:void 0}var zP=FOe,UOe=zP;function $Oe(e,t,n){var r=e==null?void 0:UOe(e,t);return r===void 0?n:r}var xz=$Oe;const ai=Ot(xz);function BOe(e){return e==null}var zOe=BOe;const Ze=Ot(zOe);var VOe=Qa,HOe=Kr,WOe=Ja,YOe="[object String]";function GOe(e){return typeof e=="string"||!HOe(e)&&WOe(e)&&VOe(e)==YOe}var qOe=GOe;const bv=Ot(qOe);var Oz={exports:{}},Ct={};/** @license React v16.13.1
* 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 rI;function KOe(){if(rI)return Ct;rI=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case l:case u:case r:case o:case i:case d:return E;default:switch(E=E&&E.$$typeof,E){case s:case f:case v:case m:case a:return E;default:return T}}case n:return T}}}function O(E){return x(E)===u}return Ct.AsyncMode=l,Ct.ConcurrentMode=u,Ct.ContextConsumer=s,Ct.ContextProvider=a,Ct.Element=t,Ct.ForwardRef=f,Ct.Fragment=r,Ct.Lazy=v,Ct.Memo=m,Ct.Portal=n,Ct.Profiler=o,Ct.StrictMode=i,Ct.Suspense=d,Ct.isAsyncMode=function(E){return O(E)||x(E)===l},Ct.isConcurrentMode=O,Ct.isContextConsumer=function(E){return x(E)===s},Ct.isContextProvider=function(E){return x(E)===a},Ct.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ct.isForwardRef=function(E){return x(E)===f},Ct.isFragment=function(E){return x(E)===r},Ct.isLazy=function(E){return x(E)===v},Ct.isMemo=function(E){return x(E)===m},Ct.isPortal=function(E){return x(E)===n},Ct.isProfiler=function(E){return x(E)===o},Ct.isStrictMode=function(E){return x(E)===i},Ct.isSuspense=function(E){return x(E)===d},Ct.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===u||E===o||E===i||E===d||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===m||E.$$typeof===a||E.$$typeof===s||E.$$typeof===f||E.$$typeof===w||E.$$typeof===y||E.$$typeof===_||E.$$typeof===g)},Ct.typeOf=x,Ct}Oz.exports=KOe();var wT=Oz.exports,ZOe=Qa,XOe=Ja,QOe="[object Number]";function JOe(e){return typeof e=="number"||XOe(e)&&ZOe(e)==QOe}var Sz=JOe;const e1e=Ot(Sz);var t1e=Sz;function n1e(e){return t1e(e)&&e!=+e}var r1e=n1e;const wd=Ot(r1e);var Pr=function(e){return e===0?0:e>0?1:-1},Gl=function(e){return bv(e)&&e.indexOf("%")===e.length-1},je=function(e){return e1e(e)&&!wd(e)},Pn=function(e){return je(e)||bv(e)},i1e=0,dl=function(e){var t=++i1e;return"".concat(e||"").concat(t)},Ur=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!je(e)&&!bv(e))return n;var i;if(Gl(e)){var o=e.indexOf("%");i=t*parseFloat(e.slice(0,o))/100}else i=+e;return wd(i)&&(i=n),r&&i>t&&(i=t),i},cs=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},o1e=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},en=function(e,t){return je(e)&&je(t)?function(n){return e+n*(t-e)}:function(){return t}};function lb(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):ai(r,t))===n})}var a1e=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,o=0,a=1/0,s=-1/0,l=0,u=0,f=0;f<t;f++)l=e[f].cx||0,u=e[f].cy||0,n+=l,r+=u,i+=l*u,o+=l*l,a=Math.min(a,l),s=Math.max(s,l);var d=t*o!==n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:s,a:d,b:(r-d*n)/t}};function Zc(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 xT(e){"@babel/helpers - typeof";return xT=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},xT(e)}var s1e=["viewBox","children"],l1e=["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"],iI=["points","pathLength"],oI={svg:s1e,polygon:iI,polyline:iI},VP=["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"],ub=function(e,t){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(F.isValidElement(e)&&(n=e.props),!gd(n))return null;var r={};return Object.keys(n).forEach(function(i){VP.includes(i)&&(r[i]=t||function(o){return n[i](n,o)})}),r},u1e=function(e,t,n){return function(r){return e(t,n,r),null}},el=function(e,t,n){if(!gd(e)||xT(e)!=="object")return null;var r=null;return Object.keys(e).forEach(function(i){var o=e[i];VP.includes(i)&&typeof o=="function"&&(r||(r={}),r[i]=u1e(o,t,n))}),r},c1e=["children"],f1e=["children"];function aI(e,t){if(e==null)return{};var n=d1e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function d1e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}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 sI={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ea=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},lI=null,jO=null,HP=function e(t){if(t===lI&&Array.isArray(jO))return jO;var n=[];return F.Children.forEach(t,function(r){Ze(r)||(wT.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),jO=n,lI=t,n};function Mr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ea(i)}):r=[Ea(t)],HP(e).forEach(function(i){var o=ai(i,"type.displayName")||ai(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function ba(e,t){var n=Mr(e,t);return n&&n[0]}var uI=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!je(n)||n<=0||!je(r)||r<=0)},p1e=["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"],h1e=function(e){return e&&e.type&&bv(e.type)&&p1e.indexOf(e.type)>=0},Ez=function(e){return e&&OT(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},m1e=function(e,t,n,r){var i,o=(i=oI==null?void 0:oI[r])!==null&&i!==void 0?i:[];return!Qe(e)&&(r&&o.includes(t)||l1e.includes(t))||n&&VP.includes(t)},Ve=function(e,t,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(F.isValidElement(e)&&(r=e.props),!gd(r))return null;var i={};return Object.keys(r).forEach(function(o){var a;m1e((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},Tz=function e(t,n){if(t===n)return!0;var r=F.Children.count(t);if(r!==F.Children.count(n))return!1;if(r===0)return!0;if(r===1)return cI(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!cI(o,a))return!1}return!0},cI=function(e,t){if(Ze(e)&&Ze(t))return!0;if(!Ze(e)&&!Ze(t)){var n=e.props||{},r=n.children,i=aI(n,c1e),o=t.props||{},a=o.children,s=aI(o,f1e);return r&&a?Zc(i,s)&&Tz(r,a):!r&&!a?Zc(i,s):!1}return!1},fI=function(e,t){var n=[],r={};return HP(e).forEach(function(i,o){if(h1e(i))n.push(i);else if(i){var a=Ea(i.type),s=t[a]||{},l=s.handler,u=s.once;if(l&&(!u||!r[a])){var f=l(i,a,o);n.push(f),r[a]=!0}}}),n},v1e=function(e){var t=e&&e.type;return t&&sI[t]?sI[t]:null},g1e=function(e,t){return HP(t).indexOf(e)},y1e=["children","width","height","viewBox","className","style","title","desc"];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 b1e(e,t){if(e==null)return{};var n=_1e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _1e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ET(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=b1e(e,y1e),f=i||{width:n,height:r,x:0,y:0},d=We("recharts-surface",o);return M.createElement("svg",ST({},Ve(u,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),M.createElement("title",null,s),M.createElement("desc",null,l),t)}var w1e=["children","className"];function TT(){return TT=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},TT.apply(this,arguments)}function x1e(e,t){if(e==null)return{};var n=O1e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O1e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nt=M.forwardRef(function(e,t){var n=e.children,r=e.className,i=x1e(e,w1e),o=We("recharts-layer",r);return M.createElement("g",TT({className:o},Ve(i,!0),{ref:t}),n)}),Ta=function(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]};function S1e(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var E1e=S1e,T1e=E1e;function C1e(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:T1e(e,t,n)}var k1e=C1e,j1e="\\ud800-\\udfff",P1e="\\u0300-\\u036f",A1e="\\ufe20-\\ufe2f",N1e="\\u20d0-\\u20ff",M1e=P1e+A1e+N1e,L1e="\\ufe0e\\ufe0f",R1e="\\u200d",D1e=RegExp("["+R1e+j1e+M1e+L1e+"]");function I1e(e){return D1e.test(e)}var Cz=I1e;function F1e(e){return e.split("")}var U1e=F1e,kz="\\ud800-\\udfff",$1e="\\u0300-\\u036f",B1e="\\ufe20-\\ufe2f",z1e="\\u20d0-\\u20ff",V1e=$1e+B1e+z1e,H1e="\\ufe0e\\ufe0f",W1e="["+kz+"]",CT="["+V1e+"]",kT="\\ud83c[\\udffb-\\udfff]",Y1e="(?:"+CT+"|"+kT+")",jz="[^"+kz+"]",Pz="(?:\\ud83c[\\udde6-\\uddff]){2}",Az="[\\ud800-\\udbff][\\udc00-\\udfff]",G1e="\\u200d",Nz=Y1e+"?",Mz="["+H1e+"]?",q1e="(?:"+G1e+"(?:"+[jz,Pz,Az].join("|")+")"+Mz+Nz+")*",K1e=Mz+Nz+q1e,Z1e="(?:"+[jz+CT+"?",CT,Pz,Az,W1e].join("|")+")",X1e=RegExp(kT+"(?="+kT+")|"+Z1e+K1e,"g");function Q1e(e){return e.match(X1e)||[]}var J1e=Q1e,eSe=U1e,tSe=Cz,nSe=J1e;function rSe(e){return tSe(e)?nSe(e):eSe(e)}var iSe=rSe,oSe=k1e,aSe=Cz,sSe=iSe,lSe=_z;function uSe(e){return function(t){t=lSe(t);var n=aSe(t)?sSe(t):void 0,r=n?n[0]:t.charAt(0),i=n?oSe(n,1).join(""):t.slice(1);return r[e]()+i}}var cSe=uSe,fSe=cSe,dSe=fSe("toUpperCase"),pSe=dSe;const aw=Ot(pSe);function $t(e){return function(){return e}}const Lz=Math.cos,cb=Math.sin,Oo=Math.sqrt,fb=Math.PI,sw=2*fb,jT=Math.PI,PT=2*jT,Rl=1e-6,hSe=PT-Rl;function Rz(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function mSe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Rz;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class vSe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Rz:mSe(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,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,u=i-n,f=a-t,d=s-n,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>Rl)if(!(Math.abs(d*l-u*f)>Rl)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-a,v=i-s,g=l*l+u*u,w=m*m+v*v,y=Math.sqrt(g),_=Math.sqrt(p),x=o*Math.tan((jT-Math.acos((g+p-w)/(2*y*_)))/2),O=x/_,E=x/y;Math.abs(O-1)>Rl&&this._append`L${t+O*f},${n+O*d}`,this._append`A${o},${o},0,0,${+(d*m>f*v)},${this._x1=t+E*l},${this._y1=n+E*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Rl||Math.abs(this._y1-f)>Rl)&&this._append`L${u},${f}`,r&&(p<0&&(p=p%PT+PT),p>hSe?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:p>Rl&&this._append`A${r},${r},0,${+(p>=jT)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}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 WP(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 vSe(t)}function YP(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Dz(e){this._context=e}Dz.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 lw(e){return new Dz(e)}function Iz(e){return e[0]}function Fz(e){return e[1]}function Uz(e,t){var n=$t(!0),r=null,i=lw,o=null,a=WP(s);e=typeof e=="function"?e:e===void 0?Iz:$t(e),t=typeof t=="function"?t:t===void 0?Fz:$t(t);function s(l){var u,f=(l=YP(l)).length,d,p=!1,m;for(r==null&&(o=i(m=a())),u=0;u<=f;++u)!(u<f&&n(d=l[u],u,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,u,l),+t(d,u,l));if(m)return o=null,m+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:$t(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:$t(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:$t(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function Ug(e,t,n){var r=null,i=$t(!0),o=null,a=lw,s=null,l=WP(u);e=typeof e=="function"?e:e===void 0?Iz:$t(+e),t=typeof t=="function"?t:$t(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Fz:$t(+n);function u(d){var p,m,v,g=(d=YP(d)).length,w,y=!1,_,x=new Array(g),O=new Array(g);for(o==null&&(s=a(_=l())),p=0;p<=g;++p){if(!(p<g&&i(w=d[p],p,d))===y)if(y=!y)m=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=p-1;v>=m;--v)s.point(x[v],O[v]);s.lineEnd(),s.areaEnd()}y&&(x[p]=+e(w,p,d),O[p]=+t(w,p,d),s.point(r?+r(w,p,d):x[p],n?+n(w,p,d):O[p]))}if(_)return s=null,_+""||null}function f(){return Uz().defined(i).curve(a).context(o)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:$t(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:$t(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:$t(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:$t(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:$t(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:$t(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:$t(!!d),u):i},u.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),u):a},u.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),u):o},u}class $z{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 gSe(e){return new $z(e,!0)}function ySe(e){return new $z(e,!1)}const GP={draw(e,t){const n=Oo(t/fb);e.moveTo(n,0),e.arc(0,0,n,0,sw)}},bSe={draw(e,t){const n=Oo(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()}},Bz=Oo(1/3),_Se=Bz*2,wSe={draw(e,t){const n=Oo(t/_Se),r=n*Bz;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},xSe={draw(e,t){const n=Oo(t),r=-n/2;e.rect(r,r,n,n)}},OSe=.8908130915292852,zz=cb(fb/10)/cb(7*fb/10),SSe=cb(sw/10)*zz,ESe=-Lz(sw/10)*zz,TSe={draw(e,t){const n=Oo(t*OSe),r=SSe*n,i=ESe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=sw*o/5,s=Lz(a),l=cb(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},PO=Oo(3),CSe={draw(e,t){const n=-Oo(t/(PO*3));e.moveTo(0,n*2),e.lineTo(-PO*n,-n),e.lineTo(PO*n,-n),e.closePath()}},_i=-.5,wi=Oo(3)/2,AT=1/Oo(12),kSe=(AT/2+1)*3,jSe={draw(e,t){const n=Oo(t/kSe),r=n/2,i=n*AT,o=r,a=n*AT+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(_i*r-wi*i,wi*r+_i*i),e.lineTo(_i*o-wi*a,wi*o+_i*a),e.lineTo(_i*s-wi*l,wi*s+_i*l),e.lineTo(_i*r+wi*i,_i*i-wi*r),e.lineTo(_i*o+wi*a,_i*a-wi*o),e.lineTo(_i*s+wi*l,_i*l-wi*s),e.closePath()}};function PSe(e,t){let n=null,r=WP(i);e=typeof e=="function"?e:$t(e||GP),t=typeof t=="function"?t:$t(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:$t(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:$t(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function db(){}function pb(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 Vz(e){this._context=e}Vz.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:pb(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:pb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ASe(e){return new Vz(e)}function Hz(e){this._context=e}Hz.prototype={areaStart:db,areaEnd:db,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:pb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NSe(e){return new Hz(e)}function Wz(e){this._context=e}Wz.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:pb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MSe(e){return new Wz(e)}function Yz(e){this._context=e}Yz.prototype={areaStart:db,areaEnd:db,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 LSe(e){return new Yz(e)}function dI(e){return e<0?-1:1}function pI(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(dI(o)+dI(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function hI(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function AO(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function hb(e){this._context=e}hb.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:AO(this,this._t0,hI(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,AO(this,hI(this,n=pI(this,e,t)),n);break;default:AO(this,this._t0,n=pI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Gz(e){this._context=new qz(e)}(Gz.prototype=Object.create(hb.prototype)).point=function(e,t){hb.prototype.point.call(this,t,e)};function qz(e){this._context=e}qz.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function RSe(e){return new hb(e)}function DSe(e){return new Gz(e)}function Kz(e){this._context=e}Kz.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=mI(e),i=mI(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function mI(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function ISe(e){return new Kz(e)}function uw(e,t){this._context=e,this._t=t}uw.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 FSe(e){return new uw(e,.5)}function USe(e){return new uw(e,0)}function $Se(e){return new uw(e,1)}function Mf(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function NT(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function BSe(e,t){return e[t]}function zSe(e){const t=[];return t.key=e,t}function VSe(){var e=$t([]),t=NT,n=Mf,r=BSe;function i(o){var a=Array.from(e.apply(this,arguments),zSe),s,l=a.length,u=-1,f;for(const d of o)for(s=0,++u;s<l;++s)(a[s][u]=[0,+r(d,a[s].key,u,o)]).data=d;for(s=0,f=YP(t(a));s<l;++s)a[f[s]].index=s;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:$t(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:$t(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?NT:typeof o=="function"?o:$t(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Mf,i):n},i}function HSe(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Mf(e,t)}}function WSe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Mf(e,t)}}function YSe(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,u=0;s<a;++s){for(var f=e[t[s]],d=f[r][1]||0,p=f[r-1][1]||0,m=(d-p)/2,v=0;v<s;++v){var g=e[t[v]],w=g[r][1]||0,y=g[r-1][1]||0;m+=w-y}l+=d,u+=m*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=u/l)}i[r-1][1]+=i[r-1][0]=n,Mf(e,t)}}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)}var GSe=["type","size","sizeType"];function MT(){return MT=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},MT.apply(this,arguments)}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 gI(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){qSe(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 qSe(e,t,n){return t=KSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KSe(e){var t=ZSe(e,"string");return om(t)==="symbol"?t:String(t)}function ZSe(e,t){if(om(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(om(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XSe(e,t){if(e==null)return{};var n=QSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QSe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Zz={symbolCircle:GP,symbolCross:bSe,symbolDiamond:wSe,symbolSquare:xSe,symbolStar:TSe,symbolTriangle:CSe,symbolWye:jSe},JSe=Math.PI/180,eEe=function(e){var t="symbol".concat(aw(e));return Zz[t]||GP},tEe=function(e,t,n){if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*JSe;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.pow(Math.tan(r),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},nEe=function(e,t){Zz["symbol".concat(aw(e))]=t},cw=function(e){var t=e.type,n=t===void 0?"circle":t,r=e.size,i=r===void 0?64:r,o=e.sizeType,a=o===void 0?"area":o,s=XSe(e,GSe),l=gI(gI({},s),{},{type:n,size:i,sizeType:a}),u=function(){var v=eEe(n),g=PSe().type(v).size(tEe(i,a,n));return g()},f=l.className,d=l.cx,p=l.cy,m=Ve(l,!0);return d===+d&&p===+p&&i===+i?M.createElement("path",MT({},m,{className:We("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:u()})):null};cw.registerSymbol=nEe;function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function 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 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 rEe(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){am(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 iEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bI(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,Xz(r.key),r)}}function oEe(e,t,n){return t&&bI(e.prototype,t),n&&bI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aEe(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&&RT(e,t)}function RT(e,t){return RT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},RT(e,t)}function sEe(e){var t=cEe();return function(){var n=mb(e),r;if(t){var i=mb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return lEe(this,r)}}function lEe(e,t){if(t&&(Lf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uEe(e)}function uEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cEe(){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 mb(e){return mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mb(e)}function am(e,t,n){return t=Xz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xz(e){var t=fEe(e,"string");return Lf(t)==="symbol"?t:String(t)}function fEe(e,t){if(Lf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xi=32,qP=function(e){aEe(n,e);var t=sEe(n);function n(){return iEe(this,n),t.apply(this,arguments)}return oEe(n,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=xi/2,a=xi/6,s=xi/3,l=r.inactive?i:r.color;if(r.type==="plainline")return M.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:xi,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return M.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,`
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
H`).concat(xi,"M").concat(2*s,",").concat(o,`
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return M.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(xi/8,"h").concat(xi,"v").concat(xi*3/4,"h").concat(-xi,"z"),className:"recharts-legend-icon"});if(M.isValidElement(r.legendIcon)){var u=rEe({},r);return delete u.legendIcon,M.cloneElement(r.legendIcon,u)}return M.createElement(cw,{fill:l,cx:o,cy:o,size:xi,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:xi,height:xi},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(m,v){var g,w=m.formatter||l,y=We((g={"recharts-legend-item":!0},am(g,"legend-item-".concat(v),!0),am(g,"inactive",m.inactive),g));if(m.type==="none")return null;var _=Qe(m.value)?null:m.value;Ta(!Qe(m.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 x=m.inactive?u:m.color;return M.createElement("li",LT({className:y,style:d,key:"legend-item-".concat(v)},el(r.props,m,v)),M.createElement(ET,{width:a,height:a,viewBox:f,style:p},r.renderIcon(m)),M.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},w?w(_,m,v):_))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return M.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}]),n}(F.PureComponent);am(qP,"displayName","Legend");am(qP,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dEe=rw;function pEe(){this.__data__=new dEe,this.size=0}var hEe=pEe;function mEe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var vEe=mEe;function gEe(e){return this.__data__.get(e)}var yEe=gEe;function bEe(e){return this.__data__.has(e)}var _Ee=bEe,wEe=rw,xEe=FP,OEe=UP,SEe=200;function EEe(e,t){var n=this.__data__;if(n instanceof wEe){var r=n.__data__;if(!xEe||r.length<SEe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new OEe(r)}return n.set(e,t),this.size=n.size,this}var TEe=EEe,CEe=rw,kEe=hEe,jEe=vEe,PEe=yEe,AEe=_Ee,NEe=TEe;function xd(e){var t=this.__data__=new CEe(e);this.size=t.size}xd.prototype.clear=kEe;xd.prototype.delete=jEe;xd.prototype.get=PEe;xd.prototype.has=AEe;xd.prototype.set=NEe;var Qz=xd,MEe="__lodash_hash_undefined__";function LEe(e){return this.__data__.set(e,MEe),this}var REe=LEe;function DEe(e){return this.__data__.has(e)}var IEe=DEe,FEe=UP,UEe=REe,$Ee=IEe;function vb(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new FEe;++t<n;)this.add(e[t])}vb.prototype.add=vb.prototype.push=UEe;vb.prototype.has=$Ee;var Jz=vb;function BEe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var eV=BEe;function zEe(e,t){return e.has(t)}var tV=zEe,VEe=Jz,HEe=eV,WEe=tV,YEe=1,GEe=2;function qEe(e,t,n,r,i,o){var a=n&YEe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,m=n&GEe?new VEe:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var v=e[d],g=t[d];if(r)var w=a?r(g,v,d,t,e,o):r(v,g,d,e,t,o);if(w!==void 0){if(w)continue;p=!1;break}if(m){if(!HEe(t,function(y,_){if(!WEe(m,_)&&(v===y||i(v,y,n,r,o)))return m.push(_)})){p=!1;break}}else if(!(v===g||i(v,g,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var nV=qEe,KEe=ra,ZEe=KEe.Uint8Array,XEe=ZEe;function QEe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var JEe=QEe;function eTe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var KP=eTe,_I=yv,wI=XEe,tTe=IP,nTe=nV,rTe=JEe,iTe=KP,oTe=1,aTe=2,sTe="[object Boolean]",lTe="[object Date]",uTe="[object Error]",cTe="[object Map]",fTe="[object Number]",dTe="[object RegExp]",pTe="[object Set]",hTe="[object String]",mTe="[object Symbol]",vTe="[object ArrayBuffer]",gTe="[object DataView]",xI=_I?_I.prototype:void 0,NO=xI?xI.valueOf:void 0;function yTe(e,t,n,r,i,o,a){switch(n){case gTe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vTe:return!(e.byteLength!=t.byteLength||!o(new wI(e),new wI(t)));case sTe:case lTe:case fTe:return tTe(+e,+t);case uTe:return e.name==t.name&&e.message==t.message;case dTe:case hTe:return e==t+"";case cTe:var s=rTe;case pTe:var l=r&oTe;if(s||(s=iTe),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=aTe,a.set(e,t);var f=nTe(s(e),s(t),r,i,o,a);return a.delete(e),f;case mTe:if(NO)return NO.call(e)==NO.call(t)}return!1}var bTe=yTe;function _Te(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var rV=_Te,wTe=rV,xTe=Kr;function OTe(e,t,n){var r=t(e);return xTe(e)?r:wTe(r,n(e))}var STe=OTe;function ETe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var TTe=ETe;function CTe(){return[]}var kTe=CTe,jTe=TTe,PTe=kTe,ATe=Object.prototype,NTe=ATe.propertyIsEnumerable,OI=Object.getOwnPropertySymbols,MTe=OI?function(e){return e==null?[]:(e=Object(e),jTe(OI(e),function(t){return NTe.call(e,t)}))}:PTe,LTe=MTe;function RTe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var DTe=RTe,ITe=Qa,FTe=Ja,UTe="[object Arguments]";function $Te(e){return FTe(e)&&ITe(e)==UTe}var BTe=$Te,SI=BTe,zTe=Ja,iV=Object.prototype,VTe=iV.hasOwnProperty,HTe=iV.propertyIsEnumerable,WTe=SI(function(){return arguments}())?SI:function(e){return zTe(e)&&VTe.call(e,"callee")&&!HTe.call(e,"callee")},ZP=WTe,gb={exports:{}};function YTe(){return!1}var GTe=YTe;gb.exports;(function(e,t){var n=ra,r=GTe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(gb,gb.exports);var oV=gb.exports,qTe=9007199254740991,KTe=/^(?:0|[1-9]\d*)$/;function ZTe(e,t){var n=typeof e;return t=t??qTe,!!t&&(n=="number"||n!="symbol"&&KTe.test(e))&&e>-1&&e%1==0&&e<t}var XP=ZTe,XTe=9007199254740991;function QTe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=XTe}var QP=QTe,JTe=Qa,eCe=QP,tCe=Ja,nCe="[object Arguments]",rCe="[object Array]",iCe="[object Boolean]",oCe="[object Date]",aCe="[object Error]",sCe="[object Function]",lCe="[object Map]",uCe="[object Number]",cCe="[object Object]",fCe="[object RegExp]",dCe="[object Set]",pCe="[object String]",hCe="[object WeakMap]",mCe="[object ArrayBuffer]",vCe="[object DataView]",gCe="[object Float32Array]",yCe="[object Float64Array]",bCe="[object Int8Array]",_Ce="[object Int16Array]",wCe="[object Int32Array]",xCe="[object Uint8Array]",OCe="[object Uint8ClampedArray]",SCe="[object Uint16Array]",ECe="[object Uint32Array]",Ut={};Ut[gCe]=Ut[yCe]=Ut[bCe]=Ut[_Ce]=Ut[wCe]=Ut[xCe]=Ut[OCe]=Ut[SCe]=Ut[ECe]=!0;Ut[nCe]=Ut[rCe]=Ut[mCe]=Ut[iCe]=Ut[vCe]=Ut[oCe]=Ut[aCe]=Ut[sCe]=Ut[lCe]=Ut[uCe]=Ut[cCe]=Ut[fCe]=Ut[dCe]=Ut[pCe]=Ut[hCe]=!1;function TCe(e){return tCe(e)&&eCe(e.length)&&!!Ut[JTe(e)]}var CCe=TCe;function kCe(e){return function(t){return e(t)}}var aV=kCe,yb={exports:{}};yb.exports;(function(e,t){var n=mz,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(yb,yb.exports);var jCe=yb.exports,PCe=CCe,ACe=aV,EI=jCe,TI=EI&&EI.isTypedArray,NCe=TI?ACe(TI):PCe,sV=NCe,MCe=DTe,LCe=ZP,RCe=Kr,DCe=oV,ICe=XP,FCe=sV,UCe=Object.prototype,$Ce=UCe.hasOwnProperty;function BCe(e,t){var n=RCe(e),r=!n&&LCe(e),i=!n&&!r&&DCe(e),o=!n&&!r&&!i&&FCe(e),a=n||r||i||o,s=a?MCe(e.length,String):[],l=s.length;for(var u in e)(t||$Ce.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ICe(u,l)))&&s.push(u);return s}var zCe=BCe,VCe=Object.prototype;function HCe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||VCe;return e===n}var WCe=HCe;function YCe(e,t){return function(n){return e(t(n))}}var lV=YCe,GCe=lV,qCe=GCe(Object.keys,Object),KCe=qCe,ZCe=WCe,XCe=KCe,QCe=Object.prototype,JCe=QCe.hasOwnProperty;function eke(e){if(!ZCe(e))return XCe(e);var t=[];for(var n in Object(e))JCe.call(e,n)&&n!="constructor"&&t.push(n);return t}var tke=eke,nke=DP,rke=QP;function ike(e){return e!=null&&rke(e.length)&&!nke(e)}var _v=ike,oke=zCe,ake=tke,ske=_v;function lke(e){return ske(e)?oke(e):ake(e)}var fw=lke,uke=STe,cke=LTe,fke=fw;function dke(e){return uke(e,fke,cke)}var pke=dke,CI=pke,hke=1,mke=Object.prototype,vke=mke.hasOwnProperty;function gke(e,t,n,r,i,o){var a=n&hke,s=CI(e),l=s.length,u=CI(t),f=u.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:vke.call(t,p)))return!1}var m=o.get(e),v=o.get(t);if(m&&v)return m==t&&v==e;var g=!0;o.set(e,t),o.set(t,e);for(var w=a;++d<l;){p=s[d];var y=e[p],_=t[p];if(r)var x=a?r(_,y,p,t,e,o):r(y,_,p,e,t,o);if(!(x===void 0?y===_||i(y,_,n,r,o):x)){g=!1;break}w||(w=p=="constructor")}if(g&&!w){var O=e.constructor,E=t.constructor;O!=E&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof E=="function"&&E instanceof E)&&(g=!1)}return o.delete(e),o.delete(t),g}var yke=gke,bke=Iu,_ke=ra,wke=bke(_ke,"DataView"),xke=wke,Oke=Iu,Ske=ra,Eke=Oke(Ske,"Promise"),Tke=Eke,Cke=Iu,kke=ra,jke=Cke(kke,"Set"),uV=jke,Pke=Iu,Ake=ra,Nke=Pke(Ake,"WeakMap"),Mke=Nke,DT=xke,IT=FP,FT=Tke,UT=uV,$T=Mke,cV=Qa,Od=gz,kI="[object Map]",Lke="[object Object]",jI="[object Promise]",PI="[object Set]",AI="[object WeakMap]",NI="[object DataView]",Rke=Od(DT),Dke=Od(IT),Ike=Od(FT),Fke=Od(UT),Uke=Od($T),Dl=cV;(DT&&Dl(new DT(new ArrayBuffer(1)))!=NI||IT&&Dl(new IT)!=kI||FT&&Dl(FT.resolve())!=jI||UT&&Dl(new UT)!=PI||$T&&Dl(new $T)!=AI)&&(Dl=function(e){var t=cV(e),n=t==Lke?e.constructor:void 0,r=n?Od(n):"";if(r)switch(r){case Rke:return NI;case Dke:return kI;case Ike:return jI;case Fke:return PI;case Uke:return AI}return t});var $ke=Dl,MO=Qz,Bke=nV,zke=bTe,Vke=yke,MI=$ke,LI=Kr,RI=oV,Hke=sV,Wke=1,DI="[object Arguments]",II="[object Array]",$g="[object Object]",Yke=Object.prototype,FI=Yke.hasOwnProperty;function Gke(e,t,n,r,i,o){var a=LI(e),s=LI(t),l=a?II:MI(e),u=s?II:MI(t);l=l==DI?$g:l,u=u==DI?$g:u;var f=l==$g,d=u==$g,p=l==u;if(p&&RI(e)){if(!RI(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new MO),a||Hke(e)?Bke(e,t,n,r,i,o):zke(e,t,l,n,r,i,o);if(!(n&Wke)){var m=f&&FI.call(e,"__wrapped__"),v=d&&FI.call(t,"__wrapped__");if(m||v){var g=m?e.value():e,w=v?t.value():t;return o||(o=new MO),i(g,w,n,r,o)}}return p?(o||(o=new MO),Vke(e,t,n,r,i,o)):!1}var qke=Gke,Kke=qke,UI=Ja;function fV(e,t,n,r,i){return e===t?!0:e==null||t==null||!UI(e)&&!UI(t)?e!==e&&t!==t:Kke(e,t,n,r,fV,i)}var JP=fV,Zke=Qz,Xke=JP,Qke=1,Jke=2;function eje(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],u=e[l],f=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var d=new Zke;if(r)var p=r(u,f,l,e,t,d);if(!(p===void 0?Xke(f,u,Qke|Jke,r,d):p))return!1}}return!0}var tje=eje,nje=fl;function rje(e){return e===e&&!nje(e)}var dV=rje,ije=dV,oje=fw;function aje(e){for(var t=oje(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ije(i)]}return t}var sje=aje;function lje(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var pV=lje,uje=tje,cje=sje,fje=pV;function dje(e){var t=cje(e);return t.length==1&&t[0][2]?fje(t[0][0],t[0][1]):function(n){return n===e||uje(n,e,t)}}var pje=dje;function hje(e,t){return e!=null&&t in Object(e)}var mje=hje,vje=wz,gje=ZP,yje=Kr,bje=XP,_je=QP,wje=ow;function xje(e,t,n){t=vje(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=wje(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&_je(i)&&bje(a,i)&&(yje(e)||gje(e)))}var Oje=xje,Sje=mje,Eje=Oje;function Tje(e,t){return e!=null&&Eje(e,t,Sje)}var Cje=Tje,kje=JP,jje=xz,Pje=Cje,Aje=RP,Nje=dV,Mje=pV,Lje=ow,Rje=1,Dje=2;function Ije(e,t){return Aje(e)&&Nje(t)?Mje(Lje(e),t):function(n){var r=jje(n,e);return r===void 0&&r===t?Pje(n,e):kje(t,r,Rje|Dje)}}var Fje=Ije;function Uje(e){return e}var Sd=Uje;function $je(e){return function(t){return t==null?void 0:t[e]}}var Bje=$je,zje=zP;function Vje(e){return function(t){return zje(t,e)}}var Hje=Vje,Wje=Bje,Yje=Hje,Gje=RP,qje=ow;function Kje(e){return Gje(e)?Wje(qje(e)):Yje(e)}var Zje=Kje,Xje=pje,Qje=Fje,Jje=Sd,ePe=Kr,tPe=Zje;function nPe(e){return typeof e=="function"?e:e==null?Jje:typeof e=="object"?ePe(e)?Qje(e[0],e[1]):Xje(e):tPe(e)}var ia=nPe;function rPe(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var hV=rPe;function iPe(e){return e!==e}var oPe=iPe;function aPe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var sPe=aPe,lPe=hV,uPe=oPe,cPe=sPe;function fPe(e,t,n){return t===t?cPe(e,t,n):lPe(e,uPe,n)}var dPe=fPe,pPe=dPe;function hPe(e,t){var n=e==null?0:e.length;return!!n&&pPe(e,t,0)>-1}var mPe=hPe;function vPe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var gPe=vPe;function yPe(){}var bPe=yPe,LO=uV,_Pe=bPe,wPe=KP,xPe=1/0,OPe=LO&&1/wPe(new LO([,-0]))[1]==xPe?function(e){return new LO(e)}:_Pe,SPe=OPe,EPe=Jz,TPe=mPe,CPe=gPe,kPe=tV,jPe=SPe,PPe=KP,APe=200;function NPe(e,t,n){var r=-1,i=TPe,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=CPe;else if(o>=APe){var u=t?null:jPe(e);if(u)return PPe(u);a=!1,i=kPe,l=new EPe}else l=t?[]:s;e:for(;++r<o;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,a&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(f)}else i(l,d,n)||(l!==s&&l.push(d),s.push(f))}return s}var MPe=NPe,LPe=ia,RPe=MPe;function DPe(e,t){return e&&e.length?RPe(e,LPe(t)):[]}var IPe=DPe;const $I=Ot(IPe);function mV(e,t,n){return t===!0?$I(e,n):Qe(t)?$I(e,t):e}function Rf(e){"@babel/helpers - typeof";return Rf=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},Rf(e)}var FPe=["ref"];function BI(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 Ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BI(Object(n),!0).forEach(function(r){dw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zI(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 $Pe(e,t,n){return t&&zI(e.prototype,t),n&&zI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function BPe(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&&BT(e,t)}function BT(e,t){return BT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},BT(e,t)}function zPe(e){var t=HPe();return function(){var n=bb(e),r;if(t){var i=bb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return VPe(this,r)}}function VPe(e,t){if(t&&(Rf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vV(e)}function vV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HPe(){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 bb(e){return bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bb(e)}function dw(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=WPe(e,"string");return Rf(t)==="symbol"?t:String(t)}function WPe(e,t){if(Rf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YPe(e,t){if(e==null)return{};var n=GPe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GPe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function qPe(e){return e.value}function KPe(e,t){if(M.isValidElement(e))return M.cloneElement(e,t);if(typeof e=="function")return M.createElement(e,t);t.ref;var n=YPe(t,FPe);return M.createElement(qP,n)}var VI=1,sm=function(e){BPe(n,e);var t=zPe(n);function n(){var r;UPe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),dw(vV(r),"lastBoundingBox",{width:-1,height:-1}),r}return $Pe(n,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-this.lastBoundingBox.width)>VI||Math.abs(i.height-this.lastBoundingBox.height)>VI)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i))}else(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?Ol({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,d,p;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var m=this.getBBoxSnapshot();d={left:((u||0)-m.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var v=this.getBBoxSnapshot();p={top:((f||0)-v.height)/2}}else p=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Ol(Ol({},d),p)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,d=Ol(Ol({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return M.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},KPe(o,Ol(Ol({},this.props),{},{payload:mV(f,u,qPe)})))}}],[{key:"getWithHeight",value:function(r,i){var o=r.props.layout;return o==="vertical"&&je(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}]),n}(F.PureComponent);dw(sm,"displayName","Legend");dw(sm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var HI=yv,ZPe=ZP,XPe=Kr,WI=HI?HI.isConcatSpreadable:void 0;function QPe(e){return XPe(e)||ZPe(e)||!!(WI&&e&&e[WI])}var JPe=QPe,eAe=rV,tAe=JPe;function yV(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=tAe),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yV(s,t-1,n,r,i):eAe(i,s):r||(i[i.length]=s)}return i}var bV=yV;function nAe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var rAe=nAe,iAe=rAe,oAe=iAe(),aAe=oAe,sAe=aAe,lAe=fw;function uAe(e,t){return e&&sAe(e,t,lAe)}var _V=uAe,cAe=_v;function fAe(e,t){return function(n,r){if(n==null)return n;if(!cAe(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var dAe=fAe,pAe=_V,hAe=dAe,mAe=hAe(pAe),eA=mAe,vAe=eA,gAe=_v;function yAe(e,t){var n=-1,r=gAe(e)?Array(e.length):[];return vAe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var wV=yAe;function bAe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var _Ae=bAe,YI=vd;function wAe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=YI(e),a=t!==void 0,s=t===null,l=t===t,u=YI(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var xAe=wAe,OAe=xAe;function SAe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=OAe(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var EAe=SAe,RO=BP,TAe=zP,CAe=ia,kAe=wV,jAe=_Ae,PAe=aV,AAe=EAe,NAe=Sd,MAe=Kr;function LAe(e,t,n){t.length?t=RO(t,function(o){return MAe(o)?function(a){return TAe(a,o.length===1?o[0]:o)}:o}):t=[NAe];var r=-1;t=RO(t,PAe(CAe));var i=kAe(e,function(o,a,s){var l=RO(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return jAe(i,function(o,a){return AAe(o,a,n)})}var RAe=LAe;function DAe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var IAe=DAe,FAe=IAe,GI=Math.max;function UAe(e,t,n){return t=GI(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=GI(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),FAe(e,this,s)}}var $Ae=UAe;function BAe(e){return function(){return e}}var zAe=BAe,VAe=Iu,HAe=function(){try{var e=VAe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),xV=HAe,WAe=zAe,qI=xV,YAe=Sd,GAe=qI?function(e,t){return qI(e,"toString",{configurable:!0,enumerable:!1,value:WAe(t),writable:!0})}:YAe,qAe=GAe,KAe=800,ZAe=16,XAe=Date.now;function QAe(e){var t=0,n=0;return function(){var r=XAe(),i=ZAe-(r-n);if(n=r,i>0){if(++t>=KAe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var JAe=QAe,eNe=qAe,tNe=JAe,nNe=tNe(eNe),rNe=nNe,iNe=Sd,oNe=$Ae,aNe=rNe;function sNe(e,t){return aNe(oNe(e,t,iNe),e+"")}var lNe=sNe,uNe=IP,cNe=_v,fNe=XP,dNe=fl;function pNe(e,t,n){if(!dNe(n))return!1;var r=typeof t;return(r=="number"?cNe(n)&&fNe(t,n.length):r=="string"&&t in n)?uNe(n[t],e):!1}var pw=pNe,hNe=bV,mNe=RAe,vNe=lNe,KI=pw,gNe=vNe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&KI(e,t[0],t[1])?t=[]:n>2&&KI(t[0],t[1],t[2])&&(t=[t[0]]),mNe(e,hNe(t,1),[])}),yNe=gNe;const tA=Ot(yNe);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 bNe(e,t){return ONe(e)||xNe(e,t)||wNe(e,t)||_Ne()}function _Ne(){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 wNe(e,t){if(e){if(typeof e=="string")return ZI(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 ZI(e,t)}}function ZI(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 xNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function ONe(e){if(Array.isArray(e))return e}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 DO(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){SNe(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 SNe(e,t,n){return t=ENe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ENe(e){var t=TNe(e,"string");return lm(t)==="symbol"?t:String(t)}function TNe(e,t){if(lm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CNe(e){return Array.isArray(e)&&Pn(e[0])&&Pn(e[1])?e.join(" ~ "):e}var kNe=function(e){var t=e.separator,n=t===void 0?" : ":t,r=e.contentStyle,i=r===void 0?{}:r,o=e.itemStyle,a=o===void 0?{}:o,s=e.labelStyle,l=s===void 0?{}:s,u=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,m=e.labelClassName,v=e.label,g=e.labelFormatter,w=function(){if(u&&u.length){var k={padding:0,margin:0},A=(d?tA(u,d):u).map(function(D,R){if(D.type==="none")return null;var I=DO({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},a),z=D.formatter||f||CNe,G=D.value,H=D.name,Q=G,Z=H;if(z&&Q!=null&&Z!=null){var te=z(G,H,D,R,u);if(Array.isArray(te)){var X=bNe(te,2);Q=X[0],Z=X[1]}else Q=te}return M.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:I},Pn(Z)?M.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,Pn(Z)?M.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,M.createElement("span",{className:"recharts-tooltip-item-value"},Q),M.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return M.createElement("ul",{className:"recharts-tooltip-item-list",style:k},A)}return null},y=DO({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),_=DO({margin:0},l),x=!Ze(v),O=x?v:"",E=We("recharts-default-tooltip",p),T=We("recharts-tooltip-label",m);return x&&g&&u!==void 0&&u!==null&&(O=g(v,u)),M.createElement("div",{className:E,style:y},M.createElement("p",{className:T,style:_},M.isValidElement(O)?O:"".concat(O)),w())},jNe=Object.getOwnPropertyNames,PNe=Object.getOwnPropertySymbols,ANe=Object.prototype.hasOwnProperty;function QI(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function Bg(e){return function(t,n,r){if(!t||!n||typeof t!="object"||typeof n!="object")return e(t,n,r);var i=r.cache,o=i.get(t),a=i.get(n);if(o&&a)return o===n&&a===t;i.set(t,n),i.set(n,t);var s=e(t,n,r);return i.delete(t),i.delete(n),s}}function JI(e){return jNe(e).concat(PNe(e))}var OV=Object.hasOwn||function(e,t){return ANe.call(e,t)};function Ed(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var SV="_owner",e4=Object.getOwnPropertyDescriptor,t4=Object.keys;function NNe(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 MNe(e,t){return Ed(e.getTime(),t.getTime())}function n4(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var d=a.value,p=d[0],m=d[1],v=s.value,g=v[0],w=v[1];!u&&!r[f]&&(u=n.equals(p,g,o,f,e,t,n)&&n.equals(m,w,p,g,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;o++}return!0}function LNe(e,t,n){var r=t4(e),i=r.length;if(t4(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===SV&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!OV(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function cp(e,t,n){var r=JI(e),i=r.length;if(JI(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===SV&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!OV(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=e4(e,o),s=e4(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function RNe(e,t){return Ed(e.valueOf(),t.valueOf())}function DNe(e,t){return e.source===t.source&&e.flags===t.flags}function r4(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),l=!1,u=0;(a=s.next())&&!a.done;)!l&&!r[u]&&(l=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function INe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var FNe="[object Arguments]",UNe="[object Boolean]",$Ne="[object Date]",BNe="[object Map]",zNe="[object Number]",VNe="[object Object]",HNe="[object RegExp]",WNe="[object Set]",YNe="[object String]",GNe=Array.isArray,i4=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,o4=Object.assign,qNe=Object.prototype.toString.call.bind(Object.prototype.toString);function KNe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(u,f,d){if(u===f)return!0;if(u==null||f==null||typeof u!="object"||typeof f!="object")return u!==u&&f!==f;var p=u.constructor;if(p!==f.constructor)return!1;if(p===Object)return i(u,f,d);if(GNe(u))return t(u,f,d);if(i4!=null&&i4(u))return l(u,f,d);if(p===Date)return n(u,f,d);if(p===RegExp)return a(u,f,d);if(p===Map)return r(u,f,d);if(p===Set)return s(u,f,d);var m=qNe(u);return m===$Ne?n(u,f,d):m===HNe?a(u,f,d):m===BNe?r(u,f,d):m===WNe?s(u,f,d):m===VNe?typeof u.then!="function"&&typeof f.then!="function"&&i(u,f,d):m===FNe?i(u,f,d):m===UNe||m===zNe||m===YNe?o(u,f,d):!1}}function ZNe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?cp:NNe,areDatesEqual:MNe,areMapsEqual:r?QI(n4,cp):n4,areObjectsEqual:r?cp:LNe,arePrimitiveWrappersEqual:RNe,areRegExpsEqual:DNe,areSetsEqual:r?QI(r4,cp):r4,areTypedArraysEqual:r?cp:INe};if(n&&(i=o4({},i,n(i))),t){var o=Bg(i.areArraysEqual),a=Bg(i.areMapsEqual),s=Bg(i.areObjectsEqual),l=Bg(i.areSetsEqual);i=o4({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function XNe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function QNe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(s,l){var u=r(),f=u.cache,d=f===void 0?t?new WeakMap:void 0:f,p=u.meta;return n(s,l,{cache:d,equals:i,meta:p,strict:o})};if(t)return function(s,l){return n(s,l,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(s,l){return n(s,l,a)}}var JNe=pl();pl({strict:!0});pl({circular:!0});pl({circular:!0,strict:!0});pl({createInternalComparator:function(){return Ed}});pl({strict:!0,createInternalComparator:function(){return Ed}});pl({circular:!0,createInternalComparator:function(){return Ed}});pl({circular:!0,createInternalComparator:function(){return Ed},strict:!0});function pl(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=ZNe(e),l=KNe(s),u=r?r(l):XNe(l);return QNe({circular:n,comparator:l,createState:i,equals:u,strict:a})}function e3e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function a4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):e3e(i)};requestAnimationFrame(r)}function zT(e){"@babel/helpers - typeof";return zT=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},zT(e)}function t3e(e){return o3e(e)||i3e(e)||r3e(e)||n3e()}function n3e(){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 r3e(e,t){if(e){if(typeof e=="string")return s4(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 s4(e,t)}}function s4(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 i3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o3e(e){if(Array.isArray(e))return e}function a3e(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,s=t3e(a),l=s[0],u=s.slice(1);if(typeof l=="number"){a4(i.bind(null,u),l);return}i(l),a4(i.bind(null,u));return}zT(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}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 l4(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 Df(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l4(Object(n),!0).forEach(function(r){_b(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _b(e,t,n){return t=s3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s3e(e){var t=l3e(e,"string");return um(t)==="symbol"?t:String(t)}function l3e(e,t){if(um(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(um(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u3e=["Webkit","Moz","O","ms"],c3e=["-webkit-","-moz-","-o-","-ms-"],f3e=["transform","transformOrigin","transition"],d3e=function(e,t){return[Object.keys(e),Object.keys(t)].reduce(function(n,r){return n.filter(function(i){return r.includes(i)})})},p3e=function(e){return e},h3e=function(e){return e.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})},m3e=function(e,t){if(f3e.indexOf(e)===-1)return _b({},e,Number.isNaN(t)?0:t);var n=e==="transition",r=e.replace(/(\w)/,function(o){return o.toUpperCase()}),i=t;return u3e.reduce(function(o,a,s){return n&&(i=t.replace(/(transform|transform-origin)/gim,"".concat(c3e[s],"$1"))),Df(Df({},o),{},_b({},a+r,i))},{})},ih=function(e,t){return Object.keys(t).reduce(function(n,r){return Df(Df({},n),{},_b({},r,e(r,t[r])))},{})},nA=function(e){return Object.keys(e).reduce(function(t,n){return Df(Df({},t),m3e(n,t[n]))},e)},u4=function(e,t,n){return e.map(function(r){return"".concat(h3e(r)," ").concat(t,"ms ").concat(n)}).join(",")};function v3e(e,t){return b3e(e)||y3e(e,t)||EV(e,t)||g3e()}function g3e(){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 y3e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function b3e(e){if(Array.isArray(e))return e}function _3e(e){return O3e(e)||x3e(e)||EV(e)||w3e()}function w3e(){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 EV(e,t){if(e){if(typeof e=="string")return VT(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 VT(e,t)}}function x3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function O3e(e){if(Array.isArray(e))return VT(e)}function VT(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 wb=1e-4,TV=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},CV=function(e,t){return e.map(function(n,r){return n*Math.pow(t,r)}).reduce(function(n,r){return n+r})},c4=function(e,t){return function(n){var r=TV(e,t);return CV(r,n)}},S3e=function(e,t){return function(n){var r=TV(e,t),i=[].concat(_3e(r.map(function(o,a){return o*a}).slice(1)),[0]);return CV(i,n)}},f4=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];if(t.length===1)switch(t[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:{var s=t[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var l=s[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),u=v3e(l,4);r=u[0],i=u[1],o=u[2],a=u[3]}}}var f=c4(r,o),d=c4(i,a),p=S3e(r,o),m=function(g){return g>1?1:g<0?0:g},v=function(g){for(var w=g>1?1:g,y=w,_=0;_<8;++_){var x=f(y)-w,O=p(y);if(Math.abs(x-w)<wb||O<wb)return d(y);y=m(y-x/O)}return d(y)};return v.isStepper=!1,v},E3e=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,o=e.dt,a=o===void 0?17:o,s=function(l,u,f){var d=-(l-u)*n,p=f*i,m=f+(d-p)*a/1e3,v=f*a/1e3+l;return Math.abs(v-u)<wb&&Math.abs(m)<wb?[u,0]:[v,m]};return s.isStepper=!0,s.dt=a,s},T3e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if(typeof r=="string")switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return f4(r);case"spring":return E3e();default:if(r.split("(")[0]==="cubic-bezier")return f4(r)}return typeof r=="function"?r:null};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 d4(e){return j3e(e)||k3e(e)||kV(e)||C3e()}function C3e(){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 k3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j3e(e){if(Array.isArray(e))return WT(e)}function p4(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 sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p4(Object(n),!0).forEach(function(r){HT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HT(e,t,n){return t=P3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P3e(e){var t=A3e(e,"string");return cm(t)==="symbol"?t:String(t)}function A3e(e,t){if(cm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N3e(e,t){return R3e(e)||L3e(e,t)||kV(e,t)||M3e()}function M3e(){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 kV(e,t){if(e){if(typeof e=="string")return WT(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 WT(e,t)}}function WT(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 L3e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function R3e(e){if(Array.isArray(e))return e}var xb=function(e,t,n){return e+(t-e)*n},YT=function(e){var t=e.from,n=e.to;return t!==n},D3e=function e(t,n,r){var i=ih(function(o,a){if(YT(a)){var s=t(a.from,a.to,a.velocity),l=N3e(s,2),u=l[0],f=l[1];return sr(sr({},a),{},{from:u,velocity:f})}return a},n);return r<1?ih(function(o,a){return YT(a)?sr(sr({},a),{},{velocity:xb(a.velocity,i[o].velocity,r),from:xb(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const I3e=function(e,t,n,r,i){var o=d3e(e,t),a=o.reduce(function(w,y){return sr(sr({},w),{},HT({},y,[e[y],t[y]]))},{}),s=o.reduce(function(w,y){return sr(sr({},w),{},HT({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,u,f,d=function(){return null},p=function(){return ih(function(w,y){return y.from},s)},m=function(){return!Object.values(s).filter(YT).length},v=function(w){u||(u=w);var y=w-u,_=y/n.dt;s=D3e(n,s,_),i(sr(sr(sr({},e),t),p())),u=w,m()||(l=requestAnimationFrame(d))},g=function(w){f||(f=w);var y=(w-f)/r,_=ih(function(O,E){return xb.apply(void 0,d4(E).concat([n(y)]))},a);if(i(sr(sr(sr({},e),t),_)),y<1)l=requestAnimationFrame(d);else{var x=ih(function(O,E){return xb.apply(void 0,d4(E).concat([n(1)]))},a);i(sr(sr(sr({},e),t),x))}};return d=n.isStepper?v:g,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}var F3e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function U3e(e,t){if(e==null)return{};var n=$3e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $3e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function IO(e){return H3e(e)||V3e(e)||z3e(e)||B3e()}function B3e(){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 z3e(e,t){if(e){if(typeof e=="string")return GT(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 GT(e,t)}}function V3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function H3e(e){if(Array.isArray(e))return GT(e)}function GT(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 h4(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 to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h4(Object(n),!0).forEach(function(r){jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jp(e,t,n){return t=jV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m4(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,jV(r.key),r)}}function Y3e(e,t,n){return t&&m4(e.prototype,t),n&&m4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jV(e){var t=G3e(e,"string");return If(t)==="symbol"?t:String(t)}function G3e(e,t){if(If(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(If(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q3e(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&&qT(e,t)}function qT(e,t){return qT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qT(e,t)}function K3e(e){var t=Z3e();return function(){var n=Ob(e),r;if(t){var i=Ob(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return KT(this,r)}}function KT(e,t){if(t&&(If(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZT(e)}function ZT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z3e(){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(t){return t.__proto__||Object.getPrototypeOf(t)},Ob(e)}var Wi=function(e){q3e(n,e);var t=K3e(n);function n(r,i){var o;W3e(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,f=a.to,d=a.steps,p=a.children,m=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(ZT(o)),o.changeStyle=o.changeStyle.bind(ZT(o)),!s||m<=0)return o.state={style:{}},typeof p=="function"&&(o.state={style:f}),KT(o);if(d&&d.length)o.state={style:d[0].style};else if(u){if(typeof p=="function")return o.state={style:u},KT(o);o.state={style:l?jp({},l,u):u}}else o.state={style:{}};return o}return Y3e(n,[{key:"componentDidMount",value:function(){var r=this.props,i=r.isActive,o=r.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(r){var i=this.props,o=i.isActive,a=i.canBegin,s=i.attributeName,l=i.shouldReAnimate,u=i.to,f=i.from,d=this.state.style;if(a){if(!o){var p={style:s?jp({},s,u):u};this.state&&d&&(s&&d[s]!==u||!s&&d!==u)&&this.setState(p);return}if(!(JNe(r.to,u)&&r.canBegin&&r.isActive)){var m=!r.canBegin||!r.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||l?f:r.to;if(this.state&&d){var g={style:s?jp({},s,v):v};(s&&[s]!==v||!s&&d!==v)&&this.setState(g)}this.runAnimation(to(to({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var r=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),r&&r()}},{key:"handleStyleChange",value:function(r){this.changeStyle(r)}},{key:"changeStyle",value:function(r){this.mounted&&this.setState({style:r})}},{key:"runJSAnimation",value:function(r){var i=this,o=r.from,a=r.to,s=r.duration,l=r.easing,u=r.begin,f=r.onAnimationEnd,d=r.onAnimationStart,p=I3e(o,a,T3e(l),s,this.changeStyle),m=function(){i.stopJSAnimation=p()};this.manager.start([d,u,m,s,f])}},{key:"runStepAnimation",value:function(r){var i=this,o=r.steps,a=r.begin,s=r.onAnimationStart,l=o[0],u=l.style,f=l.duration,d=f===void 0?0:f,p=function(m,v,g){if(g===0)return m;var w=v.duration,y=v.easing,_=y===void 0?"ease":y,x=v.style,O=v.properties,E=v.onAnimationEnd,T=g>0?o[g-1]:v,k=O||Object.keys(x);if(typeof _=="function"||_==="spring")return[].concat(IO(m),[i.runJSAnimation.bind(i,{from:T.style,to:x,duration:w,easing:_}),w]);var A=u4(k,w,_),D=to(to(to({},T.style),x),{},{transition:A});return[].concat(IO(m),[D,w,E]).filter(p3e)};return this.manager.start([s].concat(IO(o.reduce(p,[u,Math.max(d,a)])),[r.onAnimationEnd]))}},{key:"runAnimation",value:function(r){this.manager||(this.manager=a3e());var i=r.begin,o=r.duration,a=r.attributeName,s=r.to,l=r.easing,u=r.onAnimationStart,f=r.onAnimationEnd,d=r.steps,p=r.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(r);return}if(d.length>1){this.runStepAnimation(r);return}var v=a?jp({},a,s):s,g=u4(Object.keys(v),o,l);m.start([u,i,to(to({},v),{},{transition:g}),o,f])}},{key:"render",value:function(){var r=this.props,i=r.children;r.begin;var o=r.duration;r.attributeName,r.easing;var a=r.isActive;r.steps,r.from,r.to,r.canBegin,r.onAnimationEnd,r.shouldReAnimate,r.onAnimationReStart;var s=U3e(r,F3e),l=F.Children.count(i),u=nA(this.state.style);if(typeof i=="function")return i(u);if(!a||l===0||o<=0)return i;var f=function(d){var p=d.props,m=p.style,v=m===void 0?{}:m,g=p.className,w=F.cloneElement(d,to(to({},s),{},{style:to(to({},v),u),className:g}));return w};return l===1?f(F.Children.only(i)):M.createElement("div",null,F.Children.map(i,function(d){return f(d)}))}}]),n}(F.PureComponent);Wi.displayName="Animate";Wi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Wi.propTypes={from:rt.oneOfType([rt.object,rt.string]),to:rt.oneOfType([rt.object,rt.string]),attributeName:rt.string,duration:rt.number,begin:rt.number,easing:rt.oneOfType([rt.string,rt.func]),steps:rt.arrayOf(rt.shape({duration:rt.number.isRequired,style:rt.object.isRequired,easing:rt.oneOfType([rt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),rt.func]),properties:rt.arrayOf("string"),onAnimationEnd:rt.func})),children:rt.oneOfType([rt.node,rt.func]),isActive:rt.bool,canBegin:rt.bool,onAnimationEnd:rt.func,shouldReAnimate:rt.bool,onAnimationStart:rt.func,onAnimationReStart:rt.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});rt.object,rt.object,rt.object,rt.element;rt.object,rt.object,rt.object,rt.oneOfType([rt.array,rt.element]),rt.any;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 zg(e,t,n){return t=X3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X3e(e){var t=Q3e(e,"string");return fm(t)==="symbol"?t:String(t)}function Q3e(e,t){if(fm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fp="recharts-tooltip-wrapper",J3e={visibility:"hidden"};function eMe(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return We(fp,(t={},zg(t,"".concat(fp,"-right"),je(r)&&n&&je(n.x)&&r>=n.x),zg(t,"".concat(fp,"-left"),je(r)&&n&&je(n.x)&&r<n.x),zg(t,"".concat(fp,"-bottom"),je(i)&&n&&je(n.y)&&i>=n.y),zg(t,"".concat(fp,"-top"),je(i)&&n&&je(n.y)&&i<n.y),t))}function v4(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(o&&je(o[r]))return o[r];var f=n[r]-s-i,d=n[r]+i;if(t[r])return a[r]?f:d;if(a[r]){var p=f,m=l[r];return p<m?Math.max(d,l[r]):Math.max(f,l[r])}var v=d+s,g=l[r]+u;return v>g?Math.max(f,l[r]):Math.max(d,l[r])}function tMe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return nA({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function nMe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,d;return a.height>0&&a.width>0&&n?(f=v4({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=v4({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=tMe({translateX:f,translateY:d,useTranslate3d:s})):u=J3e,{cssProperties:u,cssClasses:eMe({translateX:f,translateY:d,coordinate:n})}}function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function 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 FO(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){Py(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 rMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y4(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,PV(r.key),r)}}function iMe(e,t,n){return t&&y4(e.prototype,t),n&&y4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oMe(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(n,r){return n.__proto__=r,n},XT(e,t)}function aMe(e){var t=lMe();return function(){var n=Sb(e),r;if(t){var i=Sb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return sMe(this,r)}}function sMe(e,t){if(t&&(Ff(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jy(e)}function jy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lMe(){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 Sb(e){return Sb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sb(e)}function Py(e,t,n){return t=PV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PV(e){var t=uMe(e,"string");return Ff(t)==="symbol"?t:String(t)}function uMe(e,t){if(Ff(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ff(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b4=1,cMe=function(e){oMe(n,e);var t=aMe(n);function n(){var r;rMe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Py(jy(r),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Py(jy(r),"lastBoundingBox",{width:-1,height:-1}),Py(jy(r),"handleKeyDown",function(s){if(s.key==="Escape"){var l,u,f,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&l!==void 0?l:0,y:(f=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&f!==void 0?f:0}})}}),r}return iMe(n,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.lastBoundingBox.width)>b4||Math.abs(r.height-this.lastBoundingBox.height)>b4)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.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,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,d=i.hasPayload,p=i.isAnimationActive,m=i.offset,v=i.position,g=i.reverseDirection,w=i.useTranslate3d,y=i.viewBox,_=i.wrapperStyle,x=nMe({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:m,position:v,reverseDirection:g,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:w,viewBox:y}),O=x.cssClasses,E=x.cssProperties,T=FO(FO(FO({},p&&o&&nA({transition:"transform ".concat(s,"ms ").concat(l)})),E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},_);return M.createElement("div",{tabIndex:-1,role:"dialog",className:O,style:T,ref:function(k){r.wrapperNode=k}},u)}}]),n}(F.PureComponent),fMe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ii={isSsr:fMe(),get:function(e){return Ii[e]},set:function(e,t){if(typeof e=="string")Ii[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(r){Ii[r]=e[r]})}}};function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function _4(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 w4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_4(Object(n),!0).forEach(function(r){rA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x4(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 pMe(e,t,n){return t&&x4(e.prototype,t),n&&x4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hMe(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&&QT(e,t)}function QT(e,t){return QT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},QT(e,t)}function mMe(e){var t=yMe();return function(){var n=Eb(e),r;if(t){var i=Eb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return vMe(this,r)}}function vMe(e,t){if(t&&(Uf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gMe(e)}function gMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yMe(){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(t){return t.__proto__||Object.getPrototypeOf(t)},Eb(e)}function rA(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=bMe(e,"string");return Uf(t)==="symbol"?t:String(t)}function bMe(e,t){if(Uf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _Me(e){return e.dataKey}function wMe(e,t){return M.isValidElement(e)?M.cloneElement(e,t):typeof e=="function"?M.createElement(e,t):M.createElement(kNe,t)}var _a=function(e){hMe(n,e);var t=mMe(n);function n(){return dMe(this,n),t.apply(this,arguments)}return pMe(n,[{key:"render",value:function(){var r=this.props,i=r.active,o=r.allowEscapeViewBox,a=r.animationDuration,s=r.animationEasing,l=r.content,u=r.coordinate,f=r.filterNull,d=r.isAnimationActive,p=r.offset,m=r.payload,v=r.payloadUniqBy,g=r.position,w=r.reverseDirection,y=r.useTranslate3d,_=r.viewBox,x=r.wrapperStyle,O=m??[];f&&O.length&&(O=mV(m.filter(function(T){return T.value!=null}),v,_Me));var E=O.length>0;return M.createElement(cMe,{allowEscapeViewBox:o,animationDuration:a,animationEasing:s,isAnimationActive:d,active:i,coordinate:u,hasPayload:E,offset:p,position:g,reverseDirection:w,useTranslate3d:y,viewBox:_,wrapperStyle:x},wMe(l,w4(w4({},this.props),{},{payload:O})))}}]),n}(F.PureComponent);rA(_a,"displayName","Tooltip");rA(_a,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ii.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 xMe=ra,OMe=function(){return xMe.Date.now()},SMe=OMe,EMe=/\s/;function TMe(e){for(var t=e.length;t--&&EMe.test(e.charAt(t)););return t}var CMe=TMe,kMe=CMe,jMe=/^\s+/;function PMe(e){return e&&e.slice(0,kMe(e)+1).replace(jMe,"")}var AMe=PMe,NMe=AMe,O4=fl,MMe=vd,S4=0/0,LMe=/^[-+]0x[0-9a-f]+$/i,RMe=/^0b[01]+$/i,DMe=/^0o[0-7]+$/i,IMe=parseInt;function FMe(e){if(typeof e=="number")return e;if(MMe(e))return S4;if(O4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=O4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=NMe(e);var n=RMe.test(e);return n||DMe.test(e)?IMe(e.slice(2),n?2:8):LMe.test(e)?S4:+e}var NV=FMe,UMe=fl,UO=SMe,E4=NV,$Me="Expected a function",BMe=Math.max,zMe=Math.min;function VMe(e,t,n){var r,i,o,a,s,l,u=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError($Me);t=E4(t)||0,UMe(n)&&(f=!!n.leading,d="maxWait"in n,o=d?BMe(E4(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function m(T){var k=r,A=i;return r=i=void 0,u=T,a=e.apply(A,k),a}function v(T){return u=T,s=setTimeout(y,t),f?m(T):a}function g(T){var k=T-l,A=T-u,D=t-k;return d?zMe(D,o-A):D}function w(T){var k=T-l,A=T-u;return l===void 0||k>=t||k<0||d&&A>=o}function y(){var T=UO();if(w(T))return _(T);s=setTimeout(y,g(T))}function _(T){return s=void 0,p&&r?m(T):(r=i=void 0,a)}function x(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function O(){return s===void 0?a:_(UO())}function E(){var T=UO(),k=w(T);if(r=arguments,i=this,l=T,k){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(y,t),m(l)}return s===void 0&&(s=setTimeout(y,t)),a}return E.cancel=x,E.flush=O,E}var HMe=VMe,WMe=HMe,YMe=fl,GMe="Expected a function";function qMe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(GMe);return YMe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),WMe(e,t,{leading:r,maxWait:t,trailing:i})}var KMe=qMe;const MV=Ot(KMe);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 T4(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 Vg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T4(Object(n),!0).forEach(function(r){ZMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZMe(e,t,n){return t=XMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XMe(e){var t=QMe(e,"string");return dm(t)==="symbol"?t:String(t)}function QMe(e,t){if(dm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JMe(e,t){return rLe(e)||nLe(e,t)||tLe(e,t)||eLe()}function eLe(){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 tLe(e,t){if(e){if(typeof e=="string")return C4(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 C4(e,t)}}function C4(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 nLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function rLe(e){if(Array.isArray(e))return e}var iA=F.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,p=e.maxHeight,m=e.children,v=e.debounce,g=v===void 0?0:v,w=e.id,y=e.className,_=e.onResize,x=e.style,O=x===void 0?{}:x,E=F.useRef(null),T=F.useRef();T.current=_,F.useImperativeHandle(t,function(){return E});var k=F.useState({containerWidth:i.width,containerHeight:i.height}),A=JMe(k,2),D=A[0],R=A[1],I=F.useCallback(function(G,H){R(function(Q){var Z=Math.round(G),te=Math.round(H);return Q.containerWidth===Z&&Q.containerHeight===te?Q:{containerWidth:Z,containerHeight:te}})},[]);F.useEffect(function(){var G=function(X){var $,V=X[0].contentRect,W=V.width,re=V.height;I(W,re),($=T.current)===null||$===void 0||$.call(T,W,re)};g>0&&(G=MV(G,g,{trailing:!0,leading:!1}));var H=new ResizeObserver(G),Q=E.current.getBoundingClientRect(),Z=Q.width,te=Q.height;return I(Z,te),H.observe(E.current),function(){H.disconnect()}},[I,g]);var z=F.useMemo(function(){var G=D.containerWidth,H=D.containerHeight;if(G<0||H<0)return null;Ta(Gl(a)||Gl(l),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,a,l),Ta(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Q=Gl(a)?G:a,Z=Gl(l)?H:l;n&&n>0&&(Q?Z=Q/n:Z&&(Q=Z*n),p&&Z>p&&(Z=p)),Ta(Q>0||Z>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.`,Q,Z,a,l,f,d,n);var te=!Array.isArray(m)&&wT.isElement(m)&&Ea(m.type).endsWith("Chart");return M.Children.map(m,function(X){return wT.isElement(X)?F.cloneElement(X,Vg({width:Q,height:Z},te?{style:Vg({height:"100%",width:"100%",maxHeight:Z,maxWidth:Q},X.props.style)}:{})):X})},[n,m,l,p,d,f,D,a]);return M.createElement("div",{id:w?"".concat(w):void 0,className:We("recharts-responsive-container",y),style:Vg(Vg({},O),{},{width:a,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:E},z)}),xu=function(e){return null};xu.displayName="Cell";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 k4(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 JT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k4(Object(n),!0).forEach(function(r){iLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iLe(e,t,n){return t=oLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oLe(e){var t=aLe(e,"string");return pm(t)==="symbol"?t:String(t)}function aLe(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||"default");if(pm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uc={widthCache:{},cacheCount:0},sLe=2e3,lLe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},j4="recharts_measurement_span";function uLe(e){var t=JT({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var oh=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Ii.isSsr)return{width:0,height:0};var n=uLe(t),r=JSON.stringify({text:e,copyStyle:n});if(uc.widthCache[r])return uc.widthCache[r];try{var i=document.getElementById(j4);i||(i=document.createElement("span"),i.setAttribute("id",j4),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=JT(JT({},lLe),n);Object.assign(i.style,o),i.textContent="".concat(e);var a=i.getBoundingClientRect(),s={width:a.width,height:a.height};return uc.widthCache[r]=s,++uc.cacheCount>sLe&&(uc.cacheCount=0,uc.widthCache={}),s}catch{return{width:0,height:0}}},cLe=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.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 Tb(e,t){return hLe(e)||pLe(e,t)||dLe(e,t)||fLe()}function fLe(){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 dLe(e,t){if(e){if(typeof e=="string")return P4(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 P4(e,t)}}function P4(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 pLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function hLe(e){if(Array.isArray(e))return e}function mLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A4(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,gLe(r.key),r)}}function vLe(e,t,n){return t&&A4(e.prototype,t),n&&A4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gLe(e){var t=yLe(e,"string");return hm(t)==="symbol"?t:String(t)}function yLe(e,t){if(hm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,M4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bLe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,_Le=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,LV={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},wLe=Object.keys(LV),Ic="NaN";function xLe(e,t){return e*LV[t]}var Hg=function(){function e(t,n){mLe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!bLe.test(n)&&(this.num=NaN,this.unit=""),wLe.includes(n)&&(this.num=xLe(t,n),this.unit="px")}return vLe(e,[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.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(t){var n,r=(n=_Le.exec(t))!==null&&n!==void 0?n:[],i=Tb(r,3),o=i[1],a=i[2];return new e(parseFloat(o),a??"")}}]),e}();function RV(e){if(e.includes(Ic))return Ic;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=N4.exec(t))!==null&&n!==void 0?n:[],i=Tb(r,4),o=i[1],a=i[2],s=i[3],l=Hg.parse(o??""),u=Hg.parse(s??""),f=a==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Ic;t=t.replace(N4,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=M4.exec(t))!==null&&d!==void 0?d:[],m=Tb(p,4),v=m[1],g=m[2],w=m[3],y=Hg.parse(v??""),_=Hg.parse(w??""),x=g==="+"?y.add(_):y.subtract(_);if(x.isNaN())return Ic;t=t.replace(M4,x.toString())}return t}var L4=/\(([^()]*)\)/;function OLe(e){for(var t=e;t.includes("(");){var n=L4.exec(t),r=Tb(n,2),i=r[1];t=t.replace(L4,RV(i))}return t}function SLe(e){var t=e.replace(/\s+/g,"");return t=OLe(t),t=RV(t),t}function ELe(e){try{return SLe(e)}catch{return Ic}}function $O(e){var t=ELe(e.slice(5,-1));return t===Ic?"":t}var TLe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],CLe=["dx","dy","angle","className","breakAll"];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 R4(e,t){if(e==null)return{};var n=kLe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function D4(e,t){return NLe(e)||ALe(e,t)||PLe(e,t)||jLe()}function jLe(){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 PLe(e,t){if(e){if(typeof e=="string")return I4(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 I4(e,t)}}function I4(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 ALe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function NLe(e){if(Array.isArray(e))return e}var DV=/[ \f\n\r\t\v\u2028\u2029]+/,IV=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var i=[];Ze(t)||(n?i=t.toString().split(""):i=t.toString().split(DV));var o=i.map(function(s){return{word:s,width:oh(s,r).width}}),a=n?0:oh(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch{return null}},MLe=function(e,t,n,r,i){var o=e.maxLines,a=e.children,s=e.style,l=e.breakAll,u=je(o),f=a,d=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return G.reduce(function(H,Q){var Z=Q.word,te=Q.width,X=H[H.length-1];if(X&&(r==null||i||X.width+te+n<Number(r)))X.words.push(Z),X.width+=te+n;else{var $={words:[Z],width:te};H.push($)}return H},[])},p=d(t),m=function(G){return G.reduce(function(H,Q){return H.width>Q.width?H:Q})};if(!u)return p;for(var v="…",g=function(G){var H=f.slice(0,G),Q=IV({breakAll:l,style:s,children:H+v}).wordsWithComputedWidth,Z=d(Q),te=Z.length>o||m(Z).width>Number(r);return[te,Z]},w=0,y=f.length-1,_=0,x;w<=y&&_<=f.length-1;){var O=Math.floor((w+y)/2),E=O-1,T=g(E),k=D4(T,2),A=k[0],D=k[1],R=g(O),I=D4(R,1),z=I[0];if(!A&&!z&&(w=O+1),A&&z&&(y=O-1),!A&&z){x=D;break}_++}return x||p},F4=function(e){var t=Ze(e)?[]:e.toString().split(DV);return[{words:t}]},LLe=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,o=e.breakAll,a=e.maxLines;if((t||n)&&!Ii.isSsr){var s,l,u=IV({breakAll:o,children:r,style:i});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;s=f,l=d}else return F4(r);return MLe({breakAll:o,children:r,maxLines:a,style:i},s,l,t,n)}return F4(r)},U4="#808080",Ou=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,o=e.lineHeight,a=o===void 0?"1em":o,s=e.capHeight,l=s===void 0?"0.71em":s,u=e.scaleToFit,f=u===void 0?!1:u,d=e.textAnchor,p=d===void 0?"start":d,m=e.verticalAnchor,v=m===void 0?"end":m,g=e.fill,w=g===void 0?U4:g,y=R4(e,TLe),_=F.useMemo(function(){return LLe({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:f,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,f,y.style,y.width]),x=y.dx,O=y.dy,E=y.angle,T=y.className,k=y.breakAll,A=R4(y,CLe);if(!Pn(n)||!Pn(i))return null;var D=n+(je(x)?x:0),R=i+(je(O)?O:0),I;switch(v){case"start":I=$O("calc(".concat(l,")"));break;case"middle":I=$O("calc(".concat((_.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:I=$O("calc(".concat(_.length-1," * -").concat(a,")"));break}var z=[];if(f){var G=_[0].width,H=y.width;z.push("scale(".concat((je(H)?H/G:1)/G,")"))}return E&&z.push("rotate(".concat(E,", ").concat(D,", ").concat(R,")")),z.length&&(A.transform=z.join(" ")),M.createElement("text",eC({},Ve(A,!0),{x:D,y:R,className:We("recharts-text",T),textAnchor:p,fill:w.includes("url")?U4:w}),_.map(function(Q,Z){var te=Q.words.join(k?"":" ");return M.createElement("tspan",{x:D,dy:Z===0?I:a,key:te},te)}))};function Vs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function RLe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oA(e){let t,n,r;e.length!==2?(t=Vs,n=(s,l)=>Vs(e(s),l),r=(s,l)=>e(s)-l):(t=e===Vs||e===RLe?e:DLe,n=e,r=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const d=u+f>>>1;n(s[d],l)<0?u=d+1:f=d}while(u<f)}return u}function o(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const d=u+f>>>1;n(s[d],l)<=0?u=d+1:f=d}while(u<f)}return u}function a(s,l,u=0,f=s.length){const d=i(s,l,u,f-1);return d>u&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function DLe(){return 0}function FV(e){return e===null?NaN:+e}function*ILe(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const FLe=oA(Vs),ULe=FLe.right;oA(FV).center;const wv=ULe;class $4 extends Map{constructor(t,n=zLe){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(B4(this,t))}has(t){return super.has(B4(this,t))}set(t,n){return super.set($Le(this,t),n)}delete(t){return super.delete(BLe(this,t))}}function B4({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function $Le({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function BLe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function zLe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function VLe(e=Vs){if(e===Vs)return UV;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 UV(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const HLe=Math.sqrt(50),WLe=Math.sqrt(10),YLe=Math.sqrt(2);function Cb(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=HLe?10:o>=WLe?5:o>=YLe?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?Cb(e,t,n*2):[s,l,u]}function tC(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Cb(t,e,n):Cb(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)l[u]=(o-u)/-a;else for(let u=0;u<s;++u)l[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)l[u]=(i+u)/-a;else for(let u=0;u<s;++u)l[u]=(i+u)*a;return l}function nC(e,t,n){return t=+t,e=+e,n=+n,Cb(e,t,n)[2]}function rC(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?nC(t,e,n):nC(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function z4(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function V4(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function $V(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?UV:VLe(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),m=Math.max(n,Math.floor(t-u*d/l+p)),v=Math.min(r,Math.floor(t+(l-u)*d/l+p));$V(e,t,m,v,i)}const o=e[t];let a=n,s=r;for(dp(e,n,t),i(e[r],o)>0&&dp(e,n,r);a<s;){for(dp(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?dp(e,n,s):(++s,dp(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function dp(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function GLe(e,t,n){if(e=Float64Array.from(ILe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return V4(e);if(t>=1)return z4(e);var r,i=(r-1)*t,o=Math.floor(i),a=z4($V(e,o).subarray(0,o+1)),s=V4(e.subarray(o+1));return a+(s-a)*(i-o)}}function qLe(e,t,n=FV){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,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function KLe(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,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Ki(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function es(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 iC=Symbol("implicit");function aA(){var e=new $4,t=[],n=[],r=iC;function i(o){let a=e.get(o);if(a===void 0){if(r!==iC)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new $4;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return aA(t,n).unknown(r)},Ki.apply(i,arguments),i}function mm(){var e=aA().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,u=0,f=.5;delete e.unknown;function d(){var p=t().length,m=i<r,v=m?i:r,g=m?r:i;o=(g-v)/Math.max(1,p-l+u*2),s&&(o=Math.floor(o)),v+=(g-v-o*(p-l))*f,a=o*(1-l),s&&(v=Math.round(v),a=Math.round(a));var w=KLe(p).map(function(y){return v+o*y});return n(m?w.reverse():w)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,u=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(u=+p,d()):u},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return mm(t(),[r,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},Ki.apply(d(),arguments)}function BV(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return BV(t())},e}function ah(){return BV(mm.apply(null,arguments).paddingInner(1))}function sA(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zV(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xv(){}var vm=.7,kb=1/vm,Xc="\\s*([+-]?\\d+)\\s*",gm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ZLe=/^#([0-9a-f]{3,8})$/,XLe=new RegExp(`^rgb\\(${Xc},${Xc},${Xc}\\)$`),QLe=new RegExp(`^rgb\\(${qo},${qo},${qo}\\)$`),JLe=new RegExp(`^rgba\\(${Xc},${Xc},${Xc},${gm}\\)$`),eRe=new RegExp(`^rgba\\(${qo},${qo},${qo},${gm}\\)$`),tRe=new RegExp(`^hsl\\(${gm},${qo},${qo}\\)$`),nRe=new RegExp(`^hsla\\(${gm},${qo},${qo},${gm}\\)$`),H4={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};sA(xv,ym,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:W4,formatHex:W4,formatHex8:rRe,formatHsl:iRe,formatRgb:Y4,toString:Y4});function W4(){return this.rgb().formatHex()}function rRe(){return this.rgb().formatHex8()}function iRe(){return VV(this).formatHsl()}function Y4(){return this.rgb().formatRgb()}function ym(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ZLe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?G4(t):n===3?new $r(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Wg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Wg(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=XLe.exec(e))?new $r(t[1],t[2],t[3],1):(t=QLe.exec(e))?new $r(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=JLe.exec(e))?Wg(t[1],t[2],t[3],t[4]):(t=eRe.exec(e))?Wg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tRe.exec(e))?Z4(t[1],t[2]/100,t[3]/100,1):(t=nRe.exec(e))?Z4(t[1],t[2]/100,t[3]/100,t[4]):H4.hasOwnProperty(e)?G4(H4[e]):e==="transparent"?new $r(NaN,NaN,NaN,0):null}function G4(e){return new $r(e>>16&255,e>>8&255,e&255,1)}function Wg(e,t,n,r){return r<=0&&(e=t=n=NaN),new $r(e,t,n,r)}function oRe(e){return e instanceof xv||(e=ym(e)),e?(e=e.rgb(),new $r(e.r,e.g,e.b,e.opacity)):new $r}function oC(e,t,n,r){return arguments.length===1?oRe(e):new $r(e,t,n,r??1)}function $r(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}sA($r,oC,zV(xv,{brighter(e){return e=e==null?kb:Math.pow(kb,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vm:Math.pow(vm,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $r(su(this.r),su(this.g),su(this.b),jb(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:q4,formatHex:q4,formatHex8:aRe,formatRgb:K4,toString:K4}));function q4(){return`#${ql(this.r)}${ql(this.g)}${ql(this.b)}`}function aRe(){return`#${ql(this.r)}${ql(this.g)}${ql(this.b)}${ql((isNaN(this.opacity)?1:this.opacity)*255)}`}function K4(){const e=jb(this.opacity);return`${e===1?"rgb(":"rgba("}${su(this.r)}, ${su(this.g)}, ${su(this.b)}${e===1?")":`, ${e})`}`}function jb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function su(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ql(e){return e=su(e),(e<16?"0":"")+e.toString(16)}function Z4(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new co(e,t,n,r)}function VV(e){if(e instanceof co)return new co(e.h,e.s,e.l,e.opacity);if(e instanceof xv||(e=ym(e)),!e)return new co;if(e instanceof co)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new co(a,s,l,e.opacity)}function sRe(e,t,n,r){return arguments.length===1?VV(e):new co(e,t,n,r??1)}function co(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}sA(co,sRe,zV(xv,{brighter(e){return e=e==null?kb:Math.pow(kb,e),new co(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vm:Math.pow(vm,e),new co(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 $r(BO(e>=240?e-240:e+120,i,r),BO(e,i,r),BO(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new co(X4(this.h),Yg(this.s),Yg(this.l),jb(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=jb(this.opacity);return`${e===1?"hsl(":"hsla("}${X4(this.h)}, ${Yg(this.s)*100}%, ${Yg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function X4(e){return e=(e||0)%360,e<0?e+360:e}function Yg(e){return Math.max(0,Math.min(1,e||0))}function BO(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 lA=e=>()=>e;function lRe(e,t){return function(n){return e+n*t}}function uRe(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 cRe(e){return(e=+e)==1?HV:function(t,n){return n-t?uRe(t,n,e):lA(isNaN(t)?n:t)}}function HV(e,t){var n=t-e;return n?lRe(e,n):lA(isNaN(e)?t:e)}const Q4=function e(t){var n=cRe(t);function r(i,o){var a=n((i=oC(i)).r,(o=oC(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=HV(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function fRe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function dRe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function pRe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Td(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function hRe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pb(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mRe(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]=Td(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var aC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zO=new RegExp(aC.source,"g");function vRe(e){return function(){return e}}function gRe(e){return function(t){return e(t)+""}}function yRe(e,t){var n=aC.lastIndex=zO.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=aC.exec(e))&&(i=zO.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Pb(r,i)})),n=zO.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?gRe(l[0].x):vRe(t):(t=l.length,function(u){for(var f=0,d;f<t;++f)s[(d=l[f]).i]=d.x(u);return s.join("")})}function Td(e,t){var n=typeof t,r;return t==null||n==="boolean"?lA(t):(n==="number"?Pb:n==="string"?(r=ym(t))?(t=r,Q4):yRe:t instanceof ym?Q4:t instanceof Date?hRe:dRe(t)?fRe:Array.isArray(t)?pRe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?mRe:Pb)(e,t)}function uA(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function bRe(e,t){t===void 0&&(t=e,e=Td);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function _Re(e){return function(){return e}}function Ab(e){return+e}var J4=[0,1];function Ar(e){return e}function sC(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:_Re(isNaN(t)?NaN:.5)}function wRe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function xRe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=sC(i,r),o=n(a,o)):(r=sC(r,i),o=n(o,a)),function(s){return o(r(s))}}function ORe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=sC(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=wv(e,s,1,r)-1;return o[l](i[l](s))}}function Ov(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function hw(){var e=J4,t=J4,n=Td,r,i,o,a=Ar,s,l,u;function f(){var p=Math.min(e.length,t.length);return a!==Ar&&(a=wRe(e[0],e[p-1])),s=p>2?ORe:xRe,l=u=null,d}function d(p){return p==null||isNaN(p=+p)?o:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((u||(u=s(t,e.map(r),Pb)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Ab),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=uA,f()},d.clamp=function(p){return arguments.length?(a=p?!0:Ar,f()):a!==Ar},d.interpolate=function(p){return arguments.length?(n=p,f()):n},d.unknown=function(p){return arguments.length?(o=p,d):o},function(p,m){return r=p,i=m,f()}}function cA(){return hw()(Ar,Ar)}function SRe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Nb(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 $f(e){return e=Nb(Math.abs(e)),e?e[1]:NaN}function ERe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function TRe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var CRe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bm(e){if(!(t=CRe.exec(e)))throw new Error("invalid format: "+e);var t;return new fA({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]})}bm.prototype=fA.prototype;function fA(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+""}fA.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 kRe(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 WV;function jRe(e,t){var n=Nb(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(WV=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Nb(e,Math.max(0,t+o-1))[0]}function e6(e,t){var n=Nb(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 t6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:SRe,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)=>e6(e*100,t),r:e6,s:jRe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function n6(e){return e}var r6=Array.prototype.map,i6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function PRe(e){var t=e.grouping===void 0||e.thousands===void 0?n6:ERe(r6.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+"",o=e.numerals===void 0?n6:TRe(r6.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=bm(d);var p=d.fill,m=d.align,v=d.sign,g=d.symbol,w=d.zero,y=d.width,_=d.comma,x=d.precision,O=d.trim,E=d.type;E==="n"?(_=!0,E="g"):t6[E]||(x===void 0&&(x=12),O=!0,E="g"),(w||p==="0"&&m==="=")&&(w=!0,p="0",m="=");var T=g==="$"?n:g==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k=g==="$"?r:/[%p]/.test(E)?a:"",A=t6[E],D=/[defgprs%]/.test(E);x=x===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R(I){var z=T,G=k,H,Q,Z;if(E==="c")G=A(I)+G,I="";else{I=+I;var te=I<0||1/I<0;if(I=isNaN(I)?l:A(Math.abs(I),x),O&&(I=kRe(I)),te&&+I==0&&v!=="+"&&(te=!1),z=(te?v==="("?v:s:v==="-"||v==="("?"":v)+z,G=(E==="s"?i6[8+WV/3]:"")+G+(te&&v==="("?")":""),D){for(H=-1,Q=I.length;++H<Q;)if(Z=I.charCodeAt(H),48>Z||Z>57){G=(Z===46?i+I.slice(H+1):I.slice(H))+G,I=I.slice(0,H);break}}}_&&!w&&(I=t(I,1/0));var X=z.length+I.length+G.length,$=X<y?new Array(y-X+1).join(p):"";switch(_&&w&&(I=t($+I,$.length?y-G.length:1/0),$=""),m){case"<":I=z+I+G+$;break;case"=":I=z+$+I+G;break;case"^":I=$.slice(0,X=$.length>>1)+z+I+G+$.slice(X);break;default:I=$+z+I+G;break}return o(I)}return R.toString=function(){return d+""},R}function f(d,p){var m=u((d=bm(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor($f(p)/3)))*3,g=Math.pow(10,-v),w=i6[8+v/3];return function(y){return m(g*y)+w}}return{format:u,formatPrefix:f}}var Gg,dA,YV;ARe({thousands:",",grouping:[3],currency:["$",""]});function ARe(e){return Gg=PRe(e),dA=Gg.format,YV=Gg.formatPrefix,Gg}function NRe(e){return Math.max(0,-$f(Math.abs(e)))}function MRe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($f(t)/3)))*3-$f(Math.abs(e)))}function LRe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$f(t)-$f(e))+1}function GV(e,t,n,r){var i=rC(e,t,n),o;switch(r=bm(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=MRe(i,a))&&(r.precision=o),YV(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=LRe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=NRe(i))&&(r.precision=o-(r.type==="%")*2);break}}return dA(r)}function hl(e){var t=e.domain;return e.ticks=function(n){var r=t();return tC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return GV(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,u,f=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);f-- >0;){if(u=nC(a,s,n),u===l)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Mb(){var e=cA();return e.copy=function(){return Ov(e,Mb())},Ki.apply(e,arguments),hl(e)}function qV(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,Ab),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return qV(e).unknown(t)},e=arguments.length?Array.from(e,Ab):[0,1],hl(n)}function KV(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function o6(e){return Math.log(e)}function a6(e){return Math.exp(e)}function RRe(e){return-Math.log(-e)}function DRe(e){return-Math.exp(-e)}function IRe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function FRe(e){return e===10?IRe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function URe(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 s6(e){return(t,n)=>-e(-t,n)}function pA(e){const t=e(o6,a6),n=t.domain;let r=10,i,o;function a(){return i=URe(r),o=FRe(r),n()[0]<0?(i=s6(i),o=s6(o),e(RRe,DRe)):e(o6,a6),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const d=f<u;d&&([u,f]=[f,u]);let p=i(u),m=i(f),v,g;const w=s==null?10:+s;let y=[];if(!(r%1)&&m-p<w){if(p=Math.floor(p),m=Math.ceil(m),u>0){for(;p<=m;++p)for(v=1;v<r;++v)if(g=p<0?v/o(-p):v*o(p),!(g<u)){if(g>f)break;y.push(g)}}else for(;p<=m;++p)for(v=r-1;v>=1;--v)if(g=p>0?v/o(-p):v*o(p),!(g<u)){if(g>f)break;y.push(g)}y.length*2<w&&(y=tC(u,f,w))}else y=tC(p,m,Math.min(m-p,w)).map(o);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=bm(l)).precision==null&&(l.trim=!0),l=dA(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/o(Math.round(i(f)));return d*r<r-.5&&(d*=r),d<=u?l(f):""}},t.nice=()=>n(KV(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function ZV(){const e=pA(hw()).domain([1,10]);return e.copy=()=>Ov(e,ZV()).base(e.base()),Ki.apply(e,arguments),e}function l6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function u6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hA(e){var t=1,n=e(l6(t),u6(t));return n.constant=function(r){return arguments.length?e(l6(t=+r),u6(t)):t},hl(n)}function XV(){var e=hA(hw());return e.copy=function(){return Ov(e,XV()).constant(e.constant())},Ki.apply(e,arguments)}function c6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $Re(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function BRe(e){return e<0?-e*e:e*e}function mA(e){var t=e(Ar,Ar),n=1;function r(){return n===1?e(Ar,Ar):n===.5?e($Re,BRe):e(c6(n),c6(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},hl(t)}function vA(){var e=mA(hw());return e.copy=function(){return Ov(e,vA()).exponent(e.exponent())},Ki.apply(e,arguments),e}function zRe(){return vA.apply(null,arguments).exponent(.5)}function f6(e){return Math.sign(e)*e*e}function VRe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function QV(){var e=cA(),t=[0,1],n=!1,r;function i(o){var a=VRe(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(f6(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Ab)).map(f6)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return QV(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ki.apply(i,arguments),hl(i)}function JV(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=qLe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[wv(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Vs),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return JV().domain(e).range(t).unknown(r)},Ki.apply(o,arguments)}function eH(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[wv(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return eH().domain([e,t]).range(i).unknown(o)},Ki.apply(hl(a),arguments)}function tH(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[wv(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return tH().domain(e).range(t).unknown(n)},Ki.apply(i,arguments)}const VO=new Date,HO=new Date;function Mn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return l},i.filter=o=>Mn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(VO.setTime(+o),HO.setTime(+a),e(VO),e(HO),Math.floor(n(VO,HO))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Lb=Mn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Lb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Mn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Lb);Lb.range;const wa=1e3,Ai=wa*60,xa=Ai*60,Ba=xa*24,gA=Ba*7,d6=Ba*30,WO=Ba*365,Kl=Mn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*wa)},(e,t)=>(t-e)/wa,e=>e.getUTCSeconds());Kl.range;const yA=Mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wa)},(e,t)=>{e.setTime(+e+t*Ai)},(e,t)=>(t-e)/Ai,e=>e.getMinutes());yA.range;const bA=Mn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ai)},(e,t)=>(t-e)/Ai,e=>e.getUTCMinutes());bA.range;const _A=Mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wa-e.getMinutes()*Ai)},(e,t)=>{e.setTime(+e+t*xa)},(e,t)=>(t-e)/xa,e=>e.getHours());_A.range;const wA=Mn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*xa)},(e,t)=>(t-e)/xa,e=>e.getUTCHours());wA.range;const Sv=Mn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ai)/Ba,e=>e.getDate()-1);Sv.range;const mw=Mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ba,e=>e.getUTCDate()-1);mw.range;const nH=Mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ba,e=>Math.floor(e/Ba));nH.range;function Fu(e){return Mn(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())*Ai)/gA)}const vw=Fu(0),Rb=Fu(1),HRe=Fu(2),WRe=Fu(3),Bf=Fu(4),YRe=Fu(5),GRe=Fu(6);vw.range;Rb.range;HRe.range;WRe.range;Bf.range;YRe.range;GRe.range;function Uu(e){return Mn(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)/gA)}const gw=Uu(0),Db=Uu(1),qRe=Uu(2),KRe=Uu(3),zf=Uu(4),ZRe=Uu(5),XRe=Uu(6);gw.range;Db.range;qRe.range;KRe.range;zf.range;ZRe.range;XRe.range;const xA=Mn(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());xA.range;const OA=Mn(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());OA.range;const za=Mn(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());za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Mn(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)});za.range;const Va=Mn(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());Va.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Mn(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)});Va.range;function rH(e,t,n,r,i,o){const a=[[Kl,1,wa],[Kl,5,5*wa],[Kl,15,15*wa],[Kl,30,30*wa],[o,1,Ai],[o,5,5*Ai],[o,15,15*Ai],[o,30,30*Ai],[i,1,xa],[i,3,3*xa],[i,6,6*xa],[i,12,12*xa],[r,1,Ba],[r,2,2*Ba],[n,1,gA],[t,1,d6],[t,3,3*d6],[e,1,WO]];function s(u,f,d){const p=f<u;p&&([u,f]=[f,u]);const m=d&&typeof d.range=="function"?d:l(u,f,d),v=m?m.range(u,+f+1):[];return p?v.reverse():v}function l(u,f,d){const p=Math.abs(f-u)/d,m=oA(([,,w])=>w).right(a,p);if(m===a.length)return e.every(rC(u/WO,f/WO,d));if(m===0)return Lb.every(Math.max(rC(u,f,d),1));const[v,g]=a[p/a[m-1][2]<a[m][2]/p?m-1:m];return v.every(g)}return[s,l]}const[QRe,JRe]=rH(Va,OA,gw,nH,wA,bA),[eDe,tDe]=rH(za,xA,vw,Sv,_A,yA);function YO(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 GO(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 pp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nDe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=hp(i),f=mp(i),d=hp(o),p=mp(o),m=hp(a),v=mp(a),g=hp(s),w=mp(s),y=hp(l),_=mp(l),x={a:te,A:X,b:$,B:V,c:null,d:y6,e:y6,f:EDe,g:RDe,G:IDe,H:xDe,I:ODe,j:SDe,L:iH,m:TDe,M:CDe,p:W,q:re,Q:w6,s:x6,S:kDe,u:jDe,U:PDe,V:ADe,w:NDe,W:MDe,x:null,X:null,y:LDe,Y:DDe,Z:FDe,"%":_6},O={a:q,A:ee,b:ie,B:se,c:null,d:b6,e:b6,f:zDe,g:QDe,G:eIe,H:UDe,I:$De,j:BDe,L:aH,m:VDe,M:HDe,p:fe,q:j,Q:w6,s:x6,S:WDe,u:YDe,U:GDe,V:qDe,w:KDe,W:ZDe,x:null,X:null,y:XDe,Y:JDe,Z:tIe,"%":_6},E={a:R,A:I,b:z,B:G,c:H,d:v6,e:v6,f:yDe,g:m6,G:h6,H:g6,I:g6,j:hDe,L:gDe,m:pDe,M:mDe,p:D,q:dDe,Q:_De,s:wDe,S:vDe,u:sDe,U:lDe,V:uDe,w:aDe,W:cDe,x:Q,X:Z,y:m6,Y:h6,Z:fDe,"%":bDe};x.x=T(n,x),x.X=T(r,x),x.c=T(t,x),O.x=T(n,O),O.X=T(r,O),O.c=T(t,O);function T(P,B){return function(J){var K=[],le=-1,he=0,Ee=P.length,ue,ve,ge;for(J instanceof Date||(J=new Date(+J));++le<Ee;)P.charCodeAt(le)===37&&(K.push(P.slice(he,le)),(ve=p6[ue=P.charAt(++le)])!=null?ue=P.charAt(++le):ve=ue==="e"?" ":"0",(ge=B[ue])&&(ue=ge(J,ve)),K.push(ue),he=le+1);return K.push(P.slice(he,le)),K.join("")}}function k(P,B){return function(J){var K=pp(1900,void 0,1),le=A(K,P,J+="",0),he,Ee;if(le!=J.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(K.s*1e3+("L"in K?K.L:0));if(B&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+K.p*12),K.m===void 0&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(he=GO(pp(K.y,0,1)),Ee=he.getUTCDay(),he=Ee>4||Ee===0?Db.ceil(he):Db(he),he=mw.offset(he,(K.V-1)*7),K.y=he.getUTCFullYear(),K.m=he.getUTCMonth(),K.d=he.getUTCDate()+(K.w+6)%7):(he=YO(pp(K.y,0,1)),Ee=he.getDay(),he=Ee>4||Ee===0?Rb.ceil(he):Rb(he),he=Sv.offset(he,(K.V-1)*7),K.y=he.getFullYear(),K.m=he.getMonth(),K.d=he.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),Ee="Z"in K?GO(pp(K.y,0,1)).getUTCDay():YO(pp(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(Ee+5)%7:K.w+K.U*7-(Ee+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,GO(K)):YO(K)}}function A(P,B,J,K){for(var le=0,he=B.length,Ee=J.length,ue,ve;le<he;){if(K>=Ee)return-1;if(ue=B.charCodeAt(le++),ue===37){if(ue=B.charAt(le++),ve=E[ue in p6?B.charAt(le++):ue],!ve||(K=ve(P,J,K))<0)return-1}else if(ue!=J.charCodeAt(K++))return-1}return K}function D(P,B,J){var K=u.exec(B.slice(J));return K?(P.p=f.get(K[0].toLowerCase()),J+K[0].length):-1}function R(P,B,J){var K=m.exec(B.slice(J));return K?(P.w=v.get(K[0].toLowerCase()),J+K[0].length):-1}function I(P,B,J){var K=d.exec(B.slice(J));return K?(P.w=p.get(K[0].toLowerCase()),J+K[0].length):-1}function z(P,B,J){var K=y.exec(B.slice(J));return K?(P.m=_.get(K[0].toLowerCase()),J+K[0].length):-1}function G(P,B,J){var K=g.exec(B.slice(J));return K?(P.m=w.get(K[0].toLowerCase()),J+K[0].length):-1}function H(P,B,J){return A(P,t,B,J)}function Q(P,B,J){return A(P,n,B,J)}function Z(P,B,J){return A(P,r,B,J)}function te(P){return a[P.getDay()]}function X(P){return o[P.getDay()]}function $(P){return l[P.getMonth()]}function V(P){return s[P.getMonth()]}function W(P){return i[+(P.getHours()>=12)]}function re(P){return 1+~~(P.getMonth()/3)}function q(P){return a[P.getUTCDay()]}function ee(P){return o[P.getUTCDay()]}function ie(P){return l[P.getUTCMonth()]}function se(P){return s[P.getUTCMonth()]}function fe(P){return i[+(P.getUTCHours()>=12)]}function j(P){return 1+~~(P.getUTCMonth()/3)}return{format:function(P){var B=T(P+="",x);return B.toString=function(){return P},B},parse:function(P){var B=k(P+="",!1);return B.toString=function(){return P},B},utcFormat:function(P){var B=T(P+="",O);return B.toString=function(){return P},B},utcParse:function(P){var B=k(P+="",!0);return B.toString=function(){return P},B}}}var p6={"-":"",_:" ",0:"0"},Qn=/^\s*\d+/,rDe=/^%/,iDe=/[\\^$*+?|[\]().{}]/g;function xt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function oDe(e){return e.replace(iDe,"\\$&")}function hp(e){return new RegExp("^(?:"+e.map(oDe).join("|")+")","i")}function mp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function aDe(e,t,n){var r=Qn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function sDe(e,t,n){var r=Qn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function cDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function h6(e,t,n){var r=Qn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function m6(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function fDe(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 dDe(e,t,n){var r=Qn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function pDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function v6(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function hDe(e,t,n){var r=Qn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function g6(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function vDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function gDe(e,t,n){var r=Qn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yDe(e,t,n){var r=Qn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bDe(e,t,n){var r=rDe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _De(e,t,n){var r=Qn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wDe(e,t,n){var r=Qn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function y6(e,t){return xt(e.getDate(),t,2)}function xDe(e,t){return xt(e.getHours(),t,2)}function ODe(e,t){return xt(e.getHours()%12||12,t,2)}function SDe(e,t){return xt(1+Sv.count(za(e),e),t,3)}function iH(e,t){return xt(e.getMilliseconds(),t,3)}function EDe(e,t){return iH(e,t)+"000"}function TDe(e,t){return xt(e.getMonth()+1,t,2)}function CDe(e,t){return xt(e.getMinutes(),t,2)}function kDe(e,t){return xt(e.getSeconds(),t,2)}function jDe(e){var t=e.getDay();return t===0?7:t}function PDe(e,t){return xt(vw.count(za(e)-1,e),t,2)}function oH(e){var t=e.getDay();return t>=4||t===0?Bf(e):Bf.ceil(e)}function ADe(e,t){return e=oH(e),xt(Bf.count(za(e),e)+(za(e).getDay()===4),t,2)}function NDe(e){return e.getDay()}function MDe(e,t){return xt(Rb.count(za(e)-1,e),t,2)}function LDe(e,t){return xt(e.getFullYear()%100,t,2)}function RDe(e,t){return e=oH(e),xt(e.getFullYear()%100,t,2)}function DDe(e,t){return xt(e.getFullYear()%1e4,t,4)}function IDe(e,t){var n=e.getDay();return e=n>=4||n===0?Bf(e):Bf.ceil(e),xt(e.getFullYear()%1e4,t,4)}function FDe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xt(t/60|0,"0",2)+xt(t%60,"0",2)}function b6(e,t){return xt(e.getUTCDate(),t,2)}function UDe(e,t){return xt(e.getUTCHours(),t,2)}function $De(e,t){return xt(e.getUTCHours()%12||12,t,2)}function BDe(e,t){return xt(1+mw.count(Va(e),e),t,3)}function aH(e,t){return xt(e.getUTCMilliseconds(),t,3)}function zDe(e,t){return aH(e,t)+"000"}function VDe(e,t){return xt(e.getUTCMonth()+1,t,2)}function HDe(e,t){return xt(e.getUTCMinutes(),t,2)}function WDe(e,t){return xt(e.getUTCSeconds(),t,2)}function YDe(e){var t=e.getUTCDay();return t===0?7:t}function GDe(e,t){return xt(gw.count(Va(e)-1,e),t,2)}function sH(e){var t=e.getUTCDay();return t>=4||t===0?zf(e):zf.ceil(e)}function qDe(e,t){return e=sH(e),xt(zf.count(Va(e),e)+(Va(e).getUTCDay()===4),t,2)}function KDe(e){return e.getUTCDay()}function ZDe(e,t){return xt(Db.count(Va(e)-1,e),t,2)}function XDe(e,t){return xt(e.getUTCFullYear()%100,t,2)}function QDe(e,t){return e=sH(e),xt(e.getUTCFullYear()%100,t,2)}function JDe(e,t){return xt(e.getUTCFullYear()%1e4,t,4)}function eIe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?zf(e):zf.ceil(e),xt(e.getUTCFullYear()%1e4,t,4)}function tIe(){return"+0000"}function _6(){return"%"}function w6(e){return+e}function x6(e){return Math.floor(+e/1e3)}var cc,lH,uH;nIe({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 nIe(e){return cc=nDe(e),lH=cc.format,cc.parse,uH=cc.utcFormat,cc.utcParse,cc}function rIe(e){return new Date(e)}function iIe(e){return e instanceof Date?+e:+new Date(+e)}function SA(e,t,n,r,i,o,a,s,l,u){var f=cA(),d=f.invert,p=f.domain,m=u(".%L"),v=u(":%S"),g=u("%I:%M"),w=u("%I %p"),y=u("%a %d"),_=u("%b %d"),x=u("%B"),O=u("%Y");function E(T){return(l(T)<T?m:s(T)<T?v:a(T)<T?g:o(T)<T?w:r(T)<T?i(T)<T?y:_:n(T)<T?x:O)(T)}return f.invert=function(T){return new Date(d(T))},f.domain=function(T){return arguments.length?p(Array.from(T,iIe)):p().map(rIe)},f.ticks=function(T){var k=p();return e(k[0],k[k.length-1],T??10)},f.tickFormat=function(T,k){return k==null?E:u(k)},f.nice=function(T){var k=p();return(!T||typeof T.range!="function")&&(T=t(k[0],k[k.length-1],T??10)),T?p(KV(k,T)):f},f.copy=function(){return Ov(f,SA(e,t,n,r,i,o,a,s,l,u))},f}function oIe(){return Ki.apply(SA(eDe,tDe,za,xA,vw,Sv,_A,yA,Kl,lH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function aIe(){return Ki.apply(SA(QRe,JRe,Va,OA,gw,mw,wA,bA,Kl,uH).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function yw(){var e=0,t=1,n,r,i,o,a=Ar,s=!1,l;function u(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(s=!!d,u):s},u.interpolator=function(d){return arguments.length?(a=d,u):a};function f(d){return function(p){var m,v;return arguments.length?([m,v]=p,a=d(m,v),u):[a(0),a(1)]}}return u.range=f(Td),u.rangeRound=f(uA),u.unknown=function(d){return arguments.length?(l=d,u):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),u}}function ml(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function cH(){var e=hl(yw()(Ar));return e.copy=function(){return ml(e,cH())},es.apply(e,arguments)}function fH(){var e=pA(yw()).domain([1,10]);return e.copy=function(){return ml(e,fH()).base(e.base())},es.apply(e,arguments)}function dH(){var e=hA(yw());return e.copy=function(){return ml(e,dH()).constant(e.constant())},es.apply(e,arguments)}function EA(){var e=mA(yw());return e.copy=function(){return ml(e,EA()).exponent(e.exponent())},es.apply(e,arguments)}function sIe(){return EA.apply(null,arguments).exponent(.5)}function pH(){var e=[],t=Ar;function n(r){if(r!=null&&!isNaN(r=+r))return t((wv(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(Vs),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,o)=>GLe(e,o/r))},n.copy=function(){return pH(t).domain(e)},es.apply(n,arguments)}function bw(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,u=Ar,f,d=!1,p;function m(g){return isNaN(g=+g)?p:(g=.5+((g=+f(g))-o)*(r*g<r*o?s:l),u(d?Math.max(0,Math.min(1,g)):g))}m.domain=function(g){return arguments.length?([e,t,n]=g,i=f(e=+e),o=f(t=+t),a=f(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,m):[e,t,n]},m.clamp=function(g){return arguments.length?(d=!!g,m):d},m.interpolator=function(g){return arguments.length?(u=g,m):u};function v(g){return function(w){var y,_,x;return arguments.length?([y,_,x]=w,u=bRe(g,[y,_,x]),m):[u(0),u(.5),u(1)]}}return m.range=v(Td),m.rangeRound=v(uA),m.unknown=function(g){return arguments.length?(p=g,m):p},function(g){return f=g,i=g(e),o=g(t),a=g(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,m}}function hH(){var e=hl(bw()(Ar));return e.copy=function(){return ml(e,hH())},es.apply(e,arguments)}function mH(){var e=pA(bw()).domain([.1,1,10]);return e.copy=function(){return ml(e,mH()).base(e.base())},es.apply(e,arguments)}function vH(){var e=hA(bw());return e.copy=function(){return ml(e,vH()).constant(e.constant())},es.apply(e,arguments)}function TA(){var e=mA(bw());return e.copy=function(){return ml(e,TA()).exponent(e.exponent())},es.apply(e,arguments)}function lIe(){return TA.apply(null,arguments).exponent(.5)}const O6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:mm,scaleDiverging:hH,scaleDivergingLog:mH,scaleDivergingPow:TA,scaleDivergingSqrt:lIe,scaleDivergingSymlog:vH,scaleIdentity:qV,scaleImplicit:iC,scaleLinear:Mb,scaleLog:ZV,scaleOrdinal:aA,scalePoint:ah,scalePow:vA,scaleQuantile:JV,scaleQuantize:eH,scaleRadial:QV,scaleSequential:cH,scaleSequentialLog:fH,scaleSequentialPow:EA,scaleSequentialQuantile:pH,scaleSequentialSqrt:sIe,scaleSequentialSymlog:dH,scaleSqrt:zRe,scaleSymlog:XV,scaleThreshold:tH,scaleTime:oIe,scaleUtc:aIe,tickFormat:GV},Symbol.toStringTag,{value:"Module"}));var uIe=vd;function cIe(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(a!=null&&(s===void 0?a===a&&!uIe(a):n(a,s)))var s=a,l=o}return l}var _w=cIe;function fIe(e,t){return e>t}var gH=fIe,dIe=_w,pIe=gH,hIe=Sd;function mIe(e){return e&&e.length?dIe(e,hIe,pIe):void 0}var vIe=mIe;const js=Ot(vIe);function gIe(e,t){return e<t}var yH=gIe,yIe=_w,bIe=yH,_Ie=Sd;function wIe(e){return e&&e.length?yIe(e,_Ie,bIe):void 0}var xIe=wIe;const ww=Ot(xIe);var OIe=BP,SIe=ia,EIe=wV,TIe=Kr;function CIe(e,t){var n=TIe(e)?OIe:EIe;return n(e,SIe(t))}var kIe=CIe,jIe=bV,PIe=kIe;function AIe(e,t){return jIe(PIe(e,t),1)}var NIe=AIe;const MIe=Ot(NIe);var LIe=JP;function RIe(e,t){return LIe(e,t)}var DIe=RIe;const tl=Ot(DIe);var Cd=1e9,IIe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kA,Zt=!0,Yi="[DecimalError] ",lu=Yi+"Invalid argument: ",CA=Yi+"Exponent out of range: ",kd=Math.floor,Il=Math.pow,FIe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ei,Bn=1e7,Bt=7,bH=9007199254740991,Ib=kd(bH/Bt),Be={};Be.absoluteValue=Be.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Be.comparedTo=Be.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Be.decimalPlaces=Be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Bt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Be.dividedBy=Be.div=function(e){return Ca(this,new this.constructor(e))};Be.dividedToIntegerBy=Be.idiv=function(e){var t=this,n=t.constructor;return Mt(Ca(t,new n(e),0,1),n.precision)};Be.equals=Be.eq=function(e){return!this.cmp(e)};Be.exponent=function(){return Sn(this)};Be.greaterThan=Be.gt=function(e){return this.cmp(e)>0};Be.greaterThanOrEqualTo=Be.gte=function(e){return this.cmp(e)>=0};Be.isInteger=Be.isint=function(){return this.e>this.d.length-2};Be.isNegative=Be.isneg=function(){return this.s<0};Be.isPositive=Be.ispos=function(){return this.s>0};Be.isZero=function(){return this.s===0};Be.lessThan=Be.lt=function(e){return this.cmp(e)<0};Be.lessThanOrEqualTo=Be.lte=function(e){return this.cmp(e)<1};Be.logarithm=Be.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(ei))throw Error(Yi+"NaN");if(n.s<1)throw Error(Yi+(n.s?"NaN":"-Infinity"));return n.eq(ei)?new r(0):(Zt=!1,t=Ca(_m(n,o),_m(e,o),o),Zt=!0,Mt(t,i))};Be.minus=Be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xH(t,e):_H(t,(e.s=-e.s,e))};Be.modulo=Be.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Yi+"NaN");return n.s?(Zt=!1,t=Ca(n,e,0,1).times(e),Zt=!0,n.minus(t)):Mt(new r(n),i)};Be.naturalExponential=Be.exp=function(){return wH(this)};Be.naturalLogarithm=Be.ln=function(){return _m(this)};Be.negated=Be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Be.plus=Be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_H(t,e):xH(t,(e.s=-e.s,e))};Be.precision=Be.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(lu+e);if(t=Sn(i)+1,r=i.d.length-1,n=r*Bt+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};Be.squareRoot=Be.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Yi+"NaN")}for(e=Sn(s),Zt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Uo(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=kd((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 l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(Ca(s,o,a+2)).times(.5),Uo(o.d).slice(0,a)===(t=Uo(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Mt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return Zt=!0,Mt(r,n)};Be.times=Be.mul=function(e){var t,n,r,i,o,a,s,l,u,f=this,d=f.constructor,p=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=p.length,u=m.length,l<u&&(o=p,p=m,m=o,a=l,l=u,u=a),o=[],a=l+u,r=a;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+m[r]*p[i-r-1]+t,o[i--]=s%Bn|0,t=s/Bn|0;o[i]=(o[i]+t)%Bn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Zt?Mt(e,d.precision):e};Be.toDecimalPlaces=Be.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ea(e,0,Cd),t===void 0?t=r.rounding:ea(t,0,8),Mt(n,e+Sn(n)+1,t))};Be.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Su(r,!0):(ea(e,0,Cd),t===void 0?t=i.rounding:ea(t,0,8),r=Mt(new i(r),e+1,t),n=Su(r,!0,e+1)),n};Be.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Su(i):(ea(e,0,Cd),t===void 0?t=o.rounding:ea(t,0,8),r=Mt(new o(i),e+Sn(i)+1,t),n=Su(r.abs(),!1,e+Sn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Be.toInteger=Be.toint=function(){var e=this,t=e.constructor;return Mt(new t(e),Sn(e)+1,t.rounding)};Be.toNumber=function(){return+this};Be.toPower=Be.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(ei);if(s=new l(s),!s.s){if(e.s<1)throw Error(Yi+"Infinity");return s}if(s.eq(ei))return s;if(r=l.precision,e.eq(ei))return Mt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=bH){for(i=new l(ei),t=Math.ceil(r/Bt+4),Zt=!1;n%2&&(i=i.times(s),E6(i.d,t)),n=kd(n/2),n!==0;)s=s.times(s),E6(s.d,t);return Zt=!0,e.s<0?new l(ei).div(i):Mt(i,r)}}else if(o<0)throw Error(Yi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Zt=!1,i=e.times(_m(s,r+u)),Zt=!0,i=wH(i),i.s=o,i};Be.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Sn(i),r=Su(i,n<=o.toExpNeg||n>=o.toExpPos)):(ea(e,1,Cd),t===void 0?t=o.rounding:ea(t,0,8),i=Mt(new o(i),e,t),n=Sn(i),r=Su(i,e<=n||n<=o.toExpNeg,e)),r};Be.toSignificantDigits=Be.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ea(e,1,Cd),t===void 0?t=r.rounding:ea(t,0,8)),Mt(new r(n),e,t)};Be.toString=Be.valueOf=Be.val=Be.toJSON=Be[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Sn(e),n=e.constructor;return Su(e,t<=n.toExpNeg||t>=n.toExpPos)};function _H(e,t){var n,r,i,o,a,s,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Zt?Mt(t,d):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=u.length):(r=u,i=a,s=l.length),a=Math.ceil(d/Bt),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/Bn|0,l[o]%=Bn;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Zt?Mt(t,d):t}function ea(e,t,n){if(e!==~~e||e<t||e>n)throw Error(lu+e)}function Uo(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=Bt-r.length,n&&(o+=_s(n)),o+=r;a=e[t],r=a+"",n=Bt-r.length,n&&(o+=_s(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Ca=function(){function e(r,i){var o,a=0,s=r.length;for(r=r.slice();s--;)o=r[s]*i+a,r[s]=o%Bn|0,a=o/Bn|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*Bn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,l,u,f,d,p,m,v,g,w,y,_,x,O,E,T,k,A,D=r.constructor,R=r.s==i.s?1:-1,I=r.d,z=i.d;if(!r.s)return new D(r);if(!i.s)throw Error(Yi+"Division by zero");for(l=r.e-i.e,k=z.length,E=I.length,m=new D(R),v=m.d=[],u=0;z[u]==(I[u]||0);)++u;if(z[u]>(I[u]||0)&&--l,o==null?_=o=D.precision:a?_=o+(Sn(r)-Sn(i))+1:_=o,_<0)return new D(0);if(_=_/Bt+2|0,u=0,k==1)for(f=0,z=z[0],_++;(u<E||f)&&_--;u++)x=f*Bn+(I[u]||0),v[u]=x/z|0,f=x%z|0;else{for(f=Bn/(z[0]+1)|0,f>1&&(z=e(z,f),I=e(I,f),k=z.length,E=I.length),O=k,g=I.slice(0,k),w=g.length;w<k;)g[w++]=0;A=z.slice(),A.unshift(0),T=z[0],z[1]>=Bn/2&&++T;do f=0,s=t(z,g,k,w),s<0?(y=g[0],k!=w&&(y=y*Bn+(g[1]||0)),f=y/T|0,f>1?(f>=Bn&&(f=Bn-1),d=e(z,f),p=d.length,w=g.length,s=t(d,g,p,w),s==1&&(f--,n(d,k<p?A:z,p))):(f==0&&(s=f=1),d=z.slice()),p=d.length,p<w&&d.unshift(0),n(g,d,w),s==-1&&(w=g.length,s=t(z,g,k,w),s<1&&(f++,n(g,k<w?A:z,w))),w=g.length):s===0&&(f++,g=[0]),v[u++]=f,s&&g[0]?g[w++]=I[O]||0:(g=[I[O]],w=1);while((O++<E||g[0]!==void 0)&&_--)}return v[0]||v.shift(),m.e=l,Mt(m,a?o+Sn(m)+1:o)}}();function wH(e,t){var n,r,i,o,a,s,l=0,u=0,f=e.constructor,d=f.precision;if(Sn(e)>16)throw Error(CA+Sn(e));if(!e.s)return new f(ei);for(t==null?(Zt=!1,s=d):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Il(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new f(ei),f.precision=s;;){if(i=Mt(i.times(e),s),n=n.times(++l),a=o.plus(Ca(i,n,s)),Uo(a.d).slice(0,s)===Uo(o.d).slice(0,s)){for(;u--;)o=Mt(o.times(o),s);return f.precision=d,t==null?(Zt=!0,Mt(o,d)):o}o=a}}function Sn(e){for(var t=e.e*Bt,n=e.d[0];n>=10;n/=10)t++;return t}function qO(e,t,n){if(t>e.LN10.sd())throw Zt=!0,n&&(e.precision=n),Error(Yi+"LN10 precision limit exceeded");return Mt(new e(e.LN10),t)}function _s(e){for(var t="";e--;)t+="0";return t}function _m(e,t){var n,r,i,o,a,s,l,u,f,d=1,p=10,m=e,v=m.d,g=m.constructor,w=g.precision;if(m.s<1)throw Error(Yi+(m.s?"NaN":"-Infinity"));if(m.eq(ei))return new g(0);if(t==null?(Zt=!1,u=w):u=t,m.eq(10))return t==null&&(Zt=!0),qO(g,u);if(u+=p,g.precision=u,n=Uo(v),r=n.charAt(0),o=Sn(m),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Uo(m.d),r=n.charAt(0),d++;o=Sn(m),r>1?(m=new g("0."+n),o++):m=new g(r+"."+n.slice(1))}else return l=qO(g,u+2,w).times(o+""),m=_m(new g(r+"."+n.slice(1)),u-p).plus(l),g.precision=w,t==null?(Zt=!0,Mt(m,w)):m;for(s=a=m=Ca(m.minus(ei),m.plus(ei),u),f=Mt(m.times(m),u),i=3;;){if(a=Mt(a.times(f),u),l=s.plus(Ca(a,new g(i),u)),Uo(l.d).slice(0,u)===Uo(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(qO(g,u+2,w).times(o+""))),s=Ca(s,new g(d),u),g.precision=w,t==null?(Zt=!0,Mt(s,w)):s;s=l,i+=2}}function S6(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=kd(n/Bt),e.d=[],r=(n+1)%Bt,n<0&&(r+=Bt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Bt;r<i;)e.d.push(+t.slice(r,r+=Bt));t=t.slice(r),r=Bt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Zt&&(e.e>Ib||e.e<-Ib))throw Error(CA+n)}else e.s=0,e.e=0,e.d=[0];return e}function Mt(e,t,n){var r,i,o,a,s,l,u,f,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Bt,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/Bt),o=d.length,f>=o)return e;for(u=o=d[f],a=1;o>=10;o/=10)a++;r%=Bt,i=r-Bt+a}if(n!==void 0&&(o=Il(10,a-i-1),s=u/o%10|0,l=t<0||d[f+1]!==void 0||u%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Il(10,a-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=Sn(e),d.length=1,t=t-o-1,d[0]=Il(10,(Bt-t%Bt)%Bt),e.e=kd(-t/Bt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,o=1,f--):(d.length=f+1,o=Il(10,Bt-r),d[f]=i>0?(u/Il(10,a-i)%Il(10,i)|0)*o:0),l)for(;;)if(f==0){(d[0]+=o)==Bn&&(d[0]=1,++e.e);break}else{if(d[f]+=o,d[f]!=Bn)break;d[f--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(Zt&&(e.e>Ib||e.e<-Ib))throw Error(CA+Sn(e));return e}function xH(e,t){var n,r,i,o,a,s,l,u,f,d,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Zt?Mt(t,m):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(f=a<0,f?(n=l,a=-a,s=d.length):(n=d,r=u,s=l.length),i=Math.max(Math.ceil(m/Bt),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){f=l[i]<d[i];break}a=0}for(f&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(o=i;o&&l[--o]===0;)l[o]=Bn-1;--l[o],l[i]+=Bn}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Zt?Mt(t,m):t):new p(0)}function Su(e,t,n){var r,i=Sn(e),o=Uo(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+_s(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+_s(-i-1)+o,n&&(r=n-a)>0&&(o+=_s(r))):i>=a?(o+=_s(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+_s(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=_s(r))),e.s<0?"-"+o:o}function E6(e,t){if(e.length>t)return e.length=t,!0}function OH(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(lu+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return S6(a,o.toString())}else if(typeof o!="string")throw Error(lu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,FIe.test(o))S6(a,o);else throw Error(lu+o)}if(i.prototype=Be,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=OH,i.config=i.set=UIe,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 UIe(e){if(!e||typeof e!="object")throw Error(Yi+"Object expected");var t,n,r,i=["precision",1,Cd,"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(kd(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(lu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(lu+n+": "+r);return this}var kA=OH(IIe);ei=new kA(1);const Pt=kA;function $Ie(e){return HIe(e)||VIe(e)||zIe(e)||BIe()}function BIe(){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 zIe(e,t){if(e){if(typeof e=="string")return lC(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 lC(e,t)}}function VIe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function HIe(e){if(Array.isArray(e))return lC(e)}function lC(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 WIe=function(e){return e},SH={"@@functional/placeholder":!0},EH=function(e){return e===SH},T6=function(e){return function t(){return arguments.length===0||arguments.length===1&&EH(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},YIe=function e(t,n){return t===1?n:T6(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==SH}).length;return a>=t?n.apply(void 0,i):e(t-a,T6(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(d){return EH(d)?l.shift():d});return n.apply(void 0,$Ie(f).concat(l))}))})},xw=function(e){return YIe(e.length,e)},uC=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},GIe=xw(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),qIe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return WIe;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce(function(a,s){return s(a)},i.apply(void 0,arguments))}},cC=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},TH=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every(function(a,s){return a===t[s]})||(t=i,n=e.apply(void 0,i)),n}};function KIe(e){var t;return e===0?t=1:t=Math.floor(new Pt(e).abs().log(10).toNumber())+1,t}function ZIe(e,t,n){for(var r=new Pt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var XIe=xw(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),QIe=xw(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),JIe=xw(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Ow={rangeStep:ZIe,getDigitCount:KIe,interpolateNumber:XIe,uninterpolateNumber:QIe,uninterpolateTruncation:JIe};function fC(e){return n4e(e)||t4e(e)||CH(e)||e4e()}function e4e(){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 t4e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function n4e(e){if(Array.isArray(e))return dC(e)}function wm(e,t){return o4e(e)||i4e(e,t)||CH(e,t)||r4e()}function r4e(){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 CH(e,t){if(e){if(typeof e=="string")return dC(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 dC(e,t)}}function dC(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 i4e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function o4e(e){if(Array.isArray(e))return e}function kH(e){var t=wm(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function jH(e,t,n){if(e.lte(0))return new Pt(0);var r=Ow.getDigitCount(e.toNumber()),i=new Pt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new Pt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?l:new Pt(Math.ceil(l))}function a4e(e,t,n){var r=1,i=new Pt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Pt(10).pow(Ow.getDigitCount(e)-1),i=new Pt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Pt(Math.floor(e)))}else e===0?i=new Pt(Math.floor((t-1)/2)):n||(i=new Pt(Math.floor(e)));var a=Math.floor((t-1)/2),s=qIe(GIe(function(l){return i.add(new Pt(l-a).mul(r)).toNumber()}),uC);return s(0,t)}function PH(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 Pt(0),tickMin:new Pt(0),tickMax:new Pt(0)};var o=jH(new Pt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new Pt(0):(a=new Pt(e).add(t).div(2),a=a.sub(new Pt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new Pt(t).sub(a).div(o).toNumber()),u=s+l+1;return u>n?PH(e,t,n,r,i+1):(u<n&&(l=t>0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:o,tickMin:a.sub(new Pt(s).mul(o)),tickMax:a.add(new Pt(l).mul(o))})}function s4e(e){var t=wm(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=kH([n,r]),l=wm(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(fC(uC(0,i-1).map(function(){return 1/0}))):[].concat(fC(uC(0,i-1).map(function(){return-1/0})),[f]);return n>r?cC(d):d}if(u===f)return a4e(u,i,o);var p=PH(u,f,a,o),m=p.step,v=p.tickMin,g=p.tickMax,w=Ow.rangeStep(v,g.add(new Pt(.1).mul(m)),m);return n>r?cC(w):w}function l4e(e,t){var n=wm(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=kH([r,i]),s=wm(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),d=jH(new Pt(u).sub(l).div(f-1),o,0),p=[].concat(fC(Ow.rangeStep(new Pt(l),new Pt(u).sub(new Pt(.99).mul(d)),d)),[u]);return r>i?cC(p):p}var u4e=TH(s4e),c4e=TH(l4e),f4e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Fb(){return Fb=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},Fb.apply(this,arguments)}function d4e(e,t){return v4e(e)||m4e(e,t)||h4e(e,t)||p4e()}function p4e(){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 h4e(e,t){if(e){if(typeof e=="string")return C6(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 C6(e,t)}}function C6(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 m4e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function v4e(e){if(Array.isArray(e))return e}function g4e(e,t){if(e==null)return{};var n=y4e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y4e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jd(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=g4e(e,f4e),f=Ve(u),d=o.map(function(p){var m=a(p,i),v=m.x,g=m.y,w=m.value,y=m.errorVal;if(!y)return null;var _=[],x,O;if(Array.isArray(y)){var E=d4e(y,2);x=E[0],O=E[1]}else x=O=y;if(n==="vertical"){var T=s.scale,k=g+t,A=k+r,D=k-r,R=T(w-x),I=T(w+O);_.push({x1:I,y1:A,x2:I,y2:D}),_.push({x1:R,y1:k,x2:I,y2:k}),_.push({x1:R,y1:A,x2:R,y2:D})}else if(n==="horizontal"){var z=l.scale,G=v+t,H=G-r,Q=G+r,Z=z(w-x),te=z(w+O);_.push({x1:H,y1:te,x2:Q,y2:te}),_.push({x1:G,y1:Z,x2:G,y2:te}),_.push({x1:H,y1:Z,x2:Q,y2:Z})}return M.createElement(nt,Fb({className:"recharts-errorBar",key:"bar-".concat(_.map(function(X){return"".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))},f),_.map(function(X){return M.createElement("line",Fb({},X,{key:"line-".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))}))});return M.createElement(nt,{className:"recharts-errorBars"},d)}jd.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};jd.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 k6(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 KO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k6(Object(n),!0).forEach(function(r){b4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b4e(e,t,n){return t=_4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _4e(e){var t=w4e(e,"string");return xm(t)==="symbol"?t:String(t)}function w4e(e,t){if(xm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AH=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,i=e.legendContent,o=ba(t,sm);if(!o)return null;var a;return o.props&&o.props.payload?a=o.props&&o.props.payload:i==="children"?a=(n||[]).reduce(function(s,l){var u=l.item,f=l.props,d=f.sectors||f.data||[];return s.concat(d.map(function(p){return{type:o.props.iconType||u.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):a=(n||[]).map(function(s){var l=s.item,u=l.props,f=u.dataKey,d=u.name,p=u.legendType,m=u.hide;return{inactive:m,dataKey:f,type:o.props.iconType||p||"square",color:jA(l),value:d||f,payload:l.props}}),KO(KO(KO({},o.props),sm.getWithHeight(o,r)),{},{payload:a,item:o})};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 j6(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 ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j6(Object(n),!0).forEach(function(r){Qc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qc(e,t,n){return t=x4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x4e(e){var t=O4e(e,"string");return Om(t)==="symbol"?t:String(t)}function O4e(e,t){if(Om(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Om(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P6(e){return C4e(e)||T4e(e)||E4e(e)||S4e()}function S4e(){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 E4e(e,t){if(e){if(typeof e=="string")return pC(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 pC(e,t)}}function T4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function C4e(e){if(Array.isArray(e))return pC(e)}function pC(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 Vt(e,t,n){return Ze(e)||Ze(t)?n:Pn(t)?ai(e,t,n):Qe(t)?t(e):n}function Ay(e,t,n,r){var i=MIe(e,function(s){return Vt(s,t)});if(n==="number"){var o=i.filter(function(s){return je(s)||parseFloat(s)});return o.length?[ww(o),js(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!Ze(s)}):i;return a.map(function(s){return Pn(s)||s instanceof Date?s:""})}var k4e=function(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=(t=n==null?void 0:n.length)!==null&&t!==void 0?t:0;if(a<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,l=0;l<a;l++){var u=l>0?r[l-1].coordinate:r[a-1].coordinate,f=r[l].coordinate,d=l>=a-1?r[0].coordinate:r[l+1].coordinate,p=void 0;if(Pr(f-u)!==Pr(d-f)){var m=[];if(Pr(d-f)===Pr(s[1]-s[0])){p=d;var v=f+s[1]-s[0];m[0]=Math.min(v,(v+u)/2),m[1]=Math.max(v,(v+u)/2)}else{p=u;var g=d+s[1]-s[0];m[0]=Math.min(f,(g+f)/2),m[1]=Math.max(f,(g+f)/2)}var w=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(e>w[0]&&e<=w[1]||e>=m[0]&&e<=m[1]){o=r[l].index;break}}else{var y=Math.min(u,d),_=Math.max(u,d);if(e>(y+f)/2&&e<=(_+f)/2){o=r[l].index;break}}}else for(var x=0;x<a;x++)if(x===0&&e<=(n[x].coordinate+n[x+1].coordinate)/2||x>0&&x<a-1&&e>(n[x].coordinate+n[x-1].coordinate)/2&&e<=(n[x].coordinate+n[x+1].coordinate)/2||x===a-1&&e>(n[x].coordinate+n[x-1].coordinate)/2){o=n[x].index;break}return o},jA=function(e){var t=e,n=t.type.displayName,r=e.props,i=r.stroke,o=r.fill,a;switch(n){case"Line":a=i;break;case"Area":case"Radar":a=i&&i!=="none"?i:o;break;default:a=o;break}return a},j4e=function(e){var t=e.barSize,n=e.stackGroups,r=n===void 0?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var l=r[o[a]].stackGroups,u=Object.keys(l),f=0,d=u.length;f<d;f++){var p=l[u[f]],m=p.items,v=p.cateAxisId,g=m.filter(function(_){return Ea(_.type).indexOf("Bar")>=0});if(g&&g.length){var w=g[0].props.barSize,y=g[0].props[v];i[y]||(i[y]=[]),i[y].push({item:g[0],stackList:g.slice(1),barSize:Ze(w)?t:w})}}return i},P4e=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=i===void 0?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var l=Ur(t,r,0,!0),u,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=r/s,m=o.reduce(function(x,O){return x+O.barSize||0},0);m+=(s-1)*l,m>=r&&(m-=(s-1)*l,l=0),m>=r&&p>0&&(d=!0,p*=.9,m=s*p);var v=(r-m)/2>>0,g={offset:v-l,size:0};u=o.reduce(function(x,O){var E={item:O.item,position:{offset:g.offset+g.size+l,size:d?p:O.barSize}},T=[].concat(P6(x),[E]);return g=T[T.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){T.push({item:k,position:g})}),T},f)}else{var w=Ur(n,r,0,!0);r-2*w-(s-1)*l<=0&&(l=0);var y=(r-2*w-(s-1)*l)/s;y>1&&(y>>=0);var _=a===+a?Math.min(y,a):y;u=o.reduce(function(x,O,E){var T=[].concat(P6(x),[{item:O.item,position:{offset:w+(y+l)*E+(y-_)/2,size:_}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){T.push({item:k,position:T[T.length-1].position})}),T},f)}return u},A4e=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),l=AH({children:i,legendWidth:s});if(l){var u=r||{},f=u.width,d=u.height,p=l.align,m=l.verticalAlign,v=l.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&je(e[p]))return ki(ki({},e),{},Qc({},p,e[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&je(e[m]))return ki(ki({},e),{},Qc({},m,e[m]+(d||0)))}return e},N4e=function(e,t,n){return Ze(t)?!0:e==="horizontal"?t==="yAxis":e==="vertical"||n==="x"?t==="xAxis":n==="y"?t==="yAxis":!0},NH=function(e,t,n,r,i){var o=t.props.children,a=Mr(o,jd).filter(function(l){return N4e(r,i,l.props.direction)});if(a&&a.length){var s=a.map(function(l){return l.props.dataKey});return e.reduce(function(l,u){var f=Vt(u,n,0),d=Array.isArray(f)?[ww(f),js(f)]:[f,f],p=s.reduce(function(m,v){var g=Vt(u,v,0),w=d[0]-Math.abs(Array.isArray(g)?g[0]:g),y=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(w,m[0]),Math.max(y,m[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},M4e=function(e,t,n,r,i){var o=t.map(function(a){return NH(e,a,n,i,r)}).filter(function(a){return!Ze(a)});return o&&o.length?o.reduce(function(a,s){return[Math.min(a[0],s[0]),Math.max(a[1],s[1])]},[1/0,-1/0]):null},MH=function(e,t,n,r,i){var o=t.map(function(s){var l=s.props.dataKey;return n==="number"&&l&&NH(e,s,l,r)||Ay(e,l,n,i)});if(n==="number")return o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);var a={};return o.reduce(function(s,l){for(var u=0,f=l.length;u<f;u++)a[l[u]]||(a[l[u]]=!0,s.push(l[u]));return s},[])},LH=function(e,t){return e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis"},A6=function(e,t,n,r){if(r)return e.map(function(s){return s.coordinate});var i,o,a=e.map(function(s){return s.coordinate===t&&(i=!0),s.coordinate===n&&(o=!0),s.coordinate});return i||a.push(t),o||a.push(n),a},fs=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s=e.realScaleType==="scaleBand"?r.bandwidth()/2:2,l=(t||n)&&o==="category"&&r.bandwidth?r.bandwidth()/s:0;if(l=e.axisType==="angleAxis"&&(a==null?void 0:a.length)>=2?Pr(a[0]-a[1])*2*l:l,t&&(e.ticks||e.niceTicks)){var u=(e.ticks||e.niceTicks).map(function(f){var d=i?i.indexOf(f):f;return{coordinate:r(d)+l,value:f,offset:l}});return u.filter(function(f){return!wd(f.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(f,d){return{coordinate:r(f)+l,value:f,index:d,offset:l}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(f){return{coordinate:r(f)+l,value:f,offset:l}}):r.domain().map(function(f,d){return{coordinate:r(f)+l,value:i?i[f]:f,index:d,offset:l}})},ZO=new WeakMap,qg=function(e,t){if(typeof t!="function")return e;ZO.has(e)||ZO.set(e,new WeakMap);var n=ZO.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},RH=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if(r==="auto")return o==="radial"&&a==="radiusAxis"?{scale:mm(),realScaleType:"band"}:o==="radial"&&a==="angleAxis"?{scale:Mb(),realScaleType:"linear"}:i==="category"&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:ah(),realScaleType:"point"}:i==="category"?{scale:mm(),realScaleType:"band"}:{scale:Mb(),realScaleType:"linear"};if(bv(r)){var s="scale".concat(aw(r));return{scale:(O6[s]||ah)(),realScaleType:O6[s]?s:"point"}}return Qe(r)?{scale:r}:{scale:ah(),realScaleType:"point"}},N6=1e-4,DH=function(e){var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-N6,o=Math.max(r[0],r[1])+N6,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},L4e=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},R4e=function(e,t){if(!t||t.length!==2||!je(t[0])||!je(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!je(e[0])||e[0]<n)&&(i[0]=n),(!je(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},D4e=function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=wd(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},I4e=function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=wd(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},F4e={sign:D4e,expand:HSe,none:Mf,silhouette:WSe,wiggle:YSe,positive:I4e},U4e=function(e,t,n){var r=t.map(function(a){return a.props.dataKey}),i=F4e[n],o=VSe().keys(r).value(function(a,s){return+Vt(a,s,0)}).order(NT).offset(i);return o(e)},$4e=function(e,t,n,r,i,o){if(!e)return null;var a=o?t.reverse():t,s={},l=a.reduce(function(f,d){var p=d.props,m=p.stackId,v=p.hide;if(v)return f;var g=d.props[n],w=f[g]||{hasStack:!1,stackGroups:{}};if(Pn(m)){var y=w.stackGroups[m]||{numericAxisId:n,cateAxisId:r,items:[]};y.items.push(d),w.hasStack=!0,w.stackGroups[m]=y}else w.stackGroups[dl("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[d]};return ki(ki({},f),{},Qc({},g,w))},s),u={};return Object.keys(l).reduce(function(f,d){var p=l[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,g){var w=p.stackGroups[g];return ki(ki({},v),{},Qc({},g,{numericAxisId:n,cateAxisId:r,items:w.items,stackedData:U4e(e,w.items,i)}))},m)}return ki(ki({},f),{},Qc({},d,p))},u)},IH=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if(s!=="auto"&&s!=="linear")return null;if(i&&r==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=e.domain();if(!l.length)return null;var u=u4e(l,i,a);return e.domain([ww(u),js(u)]),{niceTicks:u}}if(i&&r==="number"){var f=e.domain(),d=c4e(f,i,a);return{niceTicks:d}}return null},Vf=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ze(i[t.dataKey])){var s=lb(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=Vt(i,Ze(a)?t.dataKey:a);return Ze(l)?null:t.scale(l)},M6=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if(t.type==="category")return n[a]?n[a].coordinate+r:null;var s=Vt(o,t.dataKey,t.domain[a]);return Ze(s)?null:t.scale(s)-i/2+r},B4e=function(e){var t=e.numericAxis,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},z4e=function(e,t){var n=e.props.stackId;if(Pn(n)){var r=t[n];if(r){var i=r.items.indexOf(e);return i>=0?r.stackedData[i]:null}}return null},V4e=function(e){return e.reduce(function(t,n){return[ww(n.concat([t[0]]).filter(je)),js(n.concat([t[1]]).filter(je))]},[1/0,-1/0])},FH=function(e,t,n){return Object.keys(e).reduce(function(r,i){var o=e[i],a=o.stackedData,s=a.reduce(function(l,u){var f=V4e(u.slice(t,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]).map(function(r){return r===1/0||r===-1/0?0:r})},L6=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,R6=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hC=function(e,t,n){if(Qe(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(je(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(L6.test(e[0])){var i=+L6.exec(e[0])[1];r[0]=t[0]-i}else Qe(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(je(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(R6.test(e[1])){var o=+R6.exec(e[1])[1];r[1]=t[1]+o}else Qe(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Ub=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=tA(t,function(f){return f.coordinate}),o=1/0,a=1,s=i.length;a<s;a++){var l=i[a],u=i[a-1];o=Math.min((l.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},D6=function(e,t,n){return!e||!e.length||tl(e,ai(n,"type.defaultProps.domain"))?t:e},UH=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType,l=n.chartType;return ki(ki({},Ve(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:jA(e),value:Vt(t,r),type:s,payload:t,chartType:l})};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)}function I6(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 da(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I6(Object(n),!0).forEach(function(r){$H(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $H(e,t,n){return t=H4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H4e(e){var t=W4e(e,"string");return Sm(t)==="symbol"?t:String(t)}function W4e(e,t){if(Sm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y4e(e,t){return Z4e(e)||K4e(e,t)||q4e(e,t)||G4e()}function G4e(){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 q4e(e,t){if(e){if(typeof e=="string")return F6(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 F6(e,t)}}function F6(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 K4e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Z4e(e){if(Array.isArray(e))return e}var $b=Math.PI/180,X4e=function(e){return e*180/Math.PI},It=function(e,t,n,r){return{x:e+Math.cos(-$b*r)*n,y:t+Math.sin(-$b*r)*n}},BH=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},Q4e=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.startAngle,l=e.endAngle,u=Ur(e.cx,o,o/2),f=Ur(e.cy,a,a/2),d=BH(o,a,n),p=Ur(e.innerRadius,d,0),m=Ur(e.outerRadius,d,d*.8),v=Object.keys(t);return v.reduce(function(g,w){var y=t[w],_=y.domain,x=y.reversed,O;if(Ze(y.range))r==="angleAxis"?O=[s,l]:r==="radiusAxis"&&(O=[p,m]),x&&(O=[O[1],O[0]]);else{O=y.range;var E=O,T=Y4e(E,2);s=T[0],l=T[1]}var k=RH(y,i),A=k.realScaleType,D=k.scale;D.domain(_).range(O),DH(D);var R=IH(D,da(da({},y),{},{realScaleType:A})),I=da(da(da({},y),R),{},{range:O,radius:m,realScaleType:A,scale:D,cx:u,cy:f,innerRadius:p,outerRadius:m,startAngle:s,endAngle:l});return da(da({},g),{},$H({},w,I))},{})},J4e=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))},e6e=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=J4e({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,l=Math.acos(s);return r>o&&(l=2*Math.PI-l),{radius:a,angle:X4e(l),angleInRadian:l}},t6e=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},n6e=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return e+a*360},U6=function(e,t){var n=e.x,r=e.y,i=e6e({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,l=t.outerRadius;if(o<s||o>l)return!1;if(o===0)return!0;var u=t6e(t),f=u.startAngle,d=u.endAngle,p=a,m;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=f}return m?da(da({},t),{},{radius:o,angle:n6e(p,t)}):null};function Em(e){"@babel/helpers - typeof";return Em=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},Em(e)}var r6e=["offset"];function i6e(e){return l6e(e)||s6e(e)||a6e(e)||o6e()}function o6e(){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 a6e(e,t){if(e){if(typeof e=="string")return mC(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 mC(e,t)}}function s6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l6e(e){if(Array.isArray(e))return mC(e)}function mC(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 u6e(e,t){if(e==null)return{};var n=c6e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c6e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $6(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?$6(Object(n),!0).forEach(function(r){f6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f6e(e,t,n){return t=d6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d6e(e){var t=p6e(e,"string");return Em(t)==="symbol"?t:String(t)}function p6e(e,t){if(Em(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Em(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tm(){return Tm=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},Tm.apply(this,arguments)}var h6e=function(e){var t=e.value,n=e.formatter,r=Ze(e.children)?t:e.children;return Qe(n)?n(r):r},m6e=function(e,t){var n=Pr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},v6e=function(e,t,n){var r=e.position,i=e.viewBox,o=e.offset,a=e.className,s=i,l=s.cx,u=s.cy,f=s.innerRadius,d=s.outerRadius,p=s.startAngle,m=s.endAngle,v=s.clockWise,g=(f+d)/2,w=m6e(p,m),y=w>=0?1:-1,_,x;r==="insideStart"?(_=p+y*o,x=v):r==="insideEnd"?(_=m-y*o,x=!v):r==="end"&&(_=m+y*o,x=v),x=w<=0?x:!x;var O=It(l,u,g,_),E=It(l,u,g,_+(x?1:-1)*359),T="M".concat(O.x,",").concat(O.y,`
A`).concat(g,",").concat(g,",0,1,").concat(x?0:1,`,
`).concat(E.x,",").concat(E.y),k=Ze(e.id)?dl("recharts-radial-line-"):e.id;return M.createElement("text",Tm({},n,{dominantBaseline:"central",className:We("recharts-radial-bar-label",a)}),M.createElement("defs",null,M.createElement("path",{id:k,d:T})),M.createElement("textPath",{xlinkHref:"#".concat(k)},t))},g6e=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,s=i.innerRadius,l=i.outerRadius,u=i.startAngle,f=i.endAngle,d=(u+f)/2;if(r==="outside"){var p=It(o,a,l+n,d),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var g=(s+l)/2,w=It(o,a,g,d),y=w.x,_=w.y;return{x:y,y:_,textAnchor:"middle",verticalAnchor:"middle"}},y6e=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,s=o.y,l=o.width,u=o.height,f=u>=0?1:-1,d=f*r,p=f>0?"end":"start",m=f>0?"start":"end",v=l>=0?1:-1,g=v*r,w=v>0?"end":"start",y=v>0?"start":"end";if(i==="top"){var _={x:a+l/2,y:s-f*r,textAnchor:"middle",verticalAnchor:p};return Cn(Cn({},_),n?{height:Math.max(s-n.y,0),width:l}:{})}if(i==="bottom"){var x={x:a+l/2,y:s+u+d,textAnchor:"middle",verticalAnchor:m};return Cn(Cn({},x),n?{height:Math.max(n.y+n.height-(s+u),0),width:l}:{})}if(i==="left"){var O={x:a-g,y:s+u/2,textAnchor:w,verticalAnchor:"middle"};return Cn(Cn({},O),n?{width:Math.max(O.x-n.x,0),height:u}:{})}if(i==="right"){var E={x:a+l+g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return Cn(Cn({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:u}:{})}var T=n?{width:l,height:u}:{};return i==="insideLeft"?Cn({x:a+g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},T):i==="insideRight"?Cn({x:a+l-g,y:s+u/2,textAnchor:w,verticalAnchor:"middle"},T):i==="insideTop"?Cn({x:a+l/2,y:s+d,textAnchor:"middle",verticalAnchor:m},T):i==="insideBottom"?Cn({x:a+l/2,y:s+u-d,textAnchor:"middle",verticalAnchor:p},T):i==="insideTopLeft"?Cn({x:a+g,y:s+d,textAnchor:y,verticalAnchor:m},T):i==="insideTopRight"?Cn({x:a+l-g,y:s+d,textAnchor:w,verticalAnchor:m},T):i==="insideBottomLeft"?Cn({x:a+g,y:s+u-d,textAnchor:y,verticalAnchor:p},T):i==="insideBottomRight"?Cn({x:a+l-g,y:s+u-d,textAnchor:w,verticalAnchor:p},T):gd(i)&&(je(i.x)||Gl(i.x))&&(je(i.y)||Gl(i.y))?Cn({x:a+Ur(i.x,l),y:s+Ur(i.y,u),textAnchor:"end",verticalAnchor:"end"},T):Cn({x:a+l/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},T)},b6e=function(e){return"cx"in e&&je(e.cx)};function Vn(e){var t=e.offset,n=t===void 0?5:t,r=u6e(e,r6e),i=Cn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,f=i.className,d=f===void 0?"":f,p=i.textBreakAll;if(!o||Ze(s)&&Ze(l)&&!F.isValidElement(u)&&!Qe(u))return null;if(F.isValidElement(u))return F.cloneElement(u,i);var m;if(Qe(u)){if(m=F.createElement(u,i),F.isValidElement(m))return m}else m=h6e(i);var v=b6e(o),g=Ve(i,!0);if(v&&(a==="insideStart"||a==="insideEnd"||a==="end"))return v6e(i,m,g);var w=v?g6e(i):y6e(i);return M.createElement(Ou,Tm({className:We("recharts-label",d)},g,w,{breakAll:p}),m)}Vn.displayName="Label";var zH=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,l=e.innerRadius,u=e.outerRadius,f=e.x,d=e.y,p=e.top,m=e.left,v=e.width,g=e.height,w=e.clockWise,y=e.labelViewBox;if(y)return y;if(je(v)&&je(g)){if(je(f)&&je(d))return{x:f,y:d,width:v,height:g};if(je(p)&&je(m))return{x:p,y:m,width:v,height:g}}return je(f)&&je(d)?{x:f,y:d,width:0,height:0}:je(t)&&je(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:l||0,outerRadius:u||s||a||0,clockWise:w}:e.viewBox?e.viewBox:{}},_6e=function(e,t){return e?e===!0?M.createElement(Vn,{key:"label-implicit",viewBox:t}):Pn(e)?M.createElement(Vn,{key:"label-implicit",viewBox:t,value:e}):F.isValidElement(e)?e.type===Vn?F.cloneElement(e,{key:"label-implicit",viewBox:t}):M.createElement(Vn,{key:"label-implicit",content:e,viewBox:t}):Qe(e)?M.createElement(Vn,{key:"label-implicit",content:e,viewBox:t}):gd(e)?M.createElement(Vn,Tm({viewBox:t},e,{key:"label-implicit"})):null:null},w6e=function(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=zH(e),o=Mr(r,Vn).map(function(s,l){return F.cloneElement(s,{viewBox:t||i,key:"label-".concat(l)})});if(!n)return o;var a=_6e(e.label,t||i);return[a].concat(i6e(o))};Vn.parseViewBox=zH;Vn.renderCallByParent=w6e;function x6e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var O6e=x6e;const S6e=Ot(O6e);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)}var E6e=["valueAccessor"],T6e=["data","dataKey","clockWise","id","textBreakAll"];function C6e(e){return A6e(e)||P6e(e)||j6e(e)||k6e()}function k6e(){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 j6e(e,t){if(e){if(typeof e=="string")return vC(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 vC(e,t)}}function P6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A6e(e){if(Array.isArray(e))return vC(e)}function vC(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 Bb(){return Bb=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},Bb.apply(this,arguments)}function B6(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 z6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B6(Object(n),!0).forEach(function(r){N6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N6e(e,t,n){return t=M6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M6e(e){var t=L6e(e,"string");return Cm(t)==="symbol"?t:String(t)}function L6e(e,t){if(Cm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V6(e,t){if(e==null)return{};var n=R6e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R6e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var D6e=function(e){return Array.isArray(e.value)?S6e(e.value):e.value};function yo(e){var t=e.valueAccessor,n=t===void 0?D6e:t,r=V6(e,E6e),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=V6(r,T6e);return!i||!i.length?null:M.createElement(nt,{className:"recharts-label-list"},i.map(function(f,d){var p=Ze(o)?n(f,d):Vt(f&&f.payload,o),m=Ze(s)?{}:{id:"".concat(s,"-").concat(d)};return M.createElement(Vn,Bb({},Ve(f,!0),u,m,{parentViewBox:f.parentViewBox,value:p,textBreakAll:l,viewBox:Vn.parseViewBox(Ze(a)?f:z6(z6({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}yo.displayName="LabelList";function I6e(e,t){return e?e===!0?M.createElement(yo,{key:"labelList-implicit",data:t}):M.isValidElement(e)||Qe(e)?M.createElement(yo,{key:"labelList-implicit",data:t,content:e}):gd(e)?M.createElement(yo,Bb({data:t},e,{key:"labelList-implicit"})):null:null}function F6e(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=Mr(r,yo).map(function(a,s){return F.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=I6e(e.label,t);return[o].concat(C6e(i))}yo.renderCallByParent=F6e;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 gC(){return gC=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},gC.apply(this,arguments)}function H6(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 W6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H6(Object(n),!0).forEach(function(r){U6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U6e(e,t,n){return t=$6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $6e(e){var t=B6e(e,"string");return km(t)==="symbol"?t:String(t)}function B6e(e,t){if(km(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(km(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z6e=function(e,t){var n=Pr(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Kg=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,s=e.cornerRadius,l=e.cornerIsExternal,u=s*(a?1:-1)+r,f=Math.asin(s/u)/$b,d=l?i:i+o*f,p=It(t,n,u,d),m=It(t,n,r,d),v=l?i-o*f:i,g=It(t,n,u*Math.cos(f*$b),v);return{center:p,circleTangency:m,lineTangency:g,theta:f}},VH=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=e.endAngle,s=z6e(o,a),l=o+s,u=It(t,n,i,o),f=It(t,n,i,l),d="M ".concat(u.x,",").concat(u.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(s)>180),",").concat(+(o>l),`,
`).concat(f.x,",").concat(f.y,`
`);if(r>0){var p=It(t,n,r,o),m=It(t,n,r,l);d+="L ".concat(m.x,",").concat(m.y,`
A `).concat(r,",").concat(r,`,0,
`).concat(+(Math.abs(s)>180),",").concat(+(o<=l),`,
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},V6e=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,f=Pr(u-l),d=Kg({cx:t,cy:n,radius:i,angle:l,sign:f,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,m=d.lineTangency,v=d.theta,g=Kg({cx:t,cy:n,radius:i,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:s}),w=g.circleTangency,y=g.lineTangency,_=g.theta,x=s?Math.abs(l-u):Math.abs(l-u)-v-_;if(x<0)return a?"M ".concat(m.x,",").concat(m.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
`):VH({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:u});var O="M ".concat(m.x,",").concat(m.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
A`).concat(i,",").concat(i,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
`);if(r>0){var E=Kg({cx:t,cy:n,radius:r,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),T=E.circleTangency,k=E.lineTangency,A=E.theta,D=Kg({cx:t,cy:n,radius:r,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),R=D.circleTangency,I=D.lineTangency,z=D.theta,G=s?Math.abs(l-u):Math.abs(l-u)-A-z;if(G<0&&o===0)return"".concat(O,"L").concat(t,",").concat(n,"Z");O+="L".concat(I.x,",").concat(I.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(R.x,",").concat(R.y,`
A`).concat(r,",").concat(r,",0,").concat(+(G>180),",").concat(+(f>0),",").concat(T.x,",").concat(T.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else O+="L".concat(t,",").concat(n,"Z");return O},H6e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},HH=function(e){var t=W6(W6({},H6e),e),n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=t.className;if(o<i||u===f)return null;var p=We("recharts-sector",d),m=o-i,v=Ur(a,m,0,!0),g;return v>0&&Math.abs(u-f)<360?g=V6e({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:f}):g=VH({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f}),M.createElement("path",gC({},Ve(t,!0),{className:p,d:g,role:"img"}))};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 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 Y6(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 G6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y6(Object(n),!0).forEach(function(r){W6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W6e(e,t,n){return t=Y6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y6e(e){var t=G6e(e,"string");return jm(t)==="symbol"?t:String(t)}function G6e(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||"default");if(jm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q6={curveBasisClosed:NSe,curveBasisOpen:MSe,curveBasis:ASe,curveBumpX:gSe,curveBumpY:ySe,curveLinearClosed:LSe,curveLinear:lw,curveMonotoneX:RSe,curveMonotoneY:DSe,curveNatural:ISe,curveStep:FSe,curveStepAfter:$Se,curveStepBefore:USe},Zg=function(e){return e.x===+e.x&&e.y===+e.y},vp=function(e){return e.x},gp=function(e){return e.y},q6e=function(e,t){if(Qe(e))return e;var n="curve".concat(aw(e));return(n==="curveMonotone"||n==="curveBump")&&t?q6["".concat(n).concat(t==="vertical"?"Y":"X")]:q6[n]||lw},K6e=function(e){var t=e.type,n=t===void 0?"linear":t,r=e.points,i=r===void 0?[]:r,o=e.baseLine,a=e.layout,s=e.connectNulls,l=s===void 0?!1:s,u=q6e(n,a),f=l?i.filter(function(v){return Zg(v)}):i,d;if(Array.isArray(o)){var p=l?o.filter(function(v){return Zg(v)}):o,m=f.map(function(v,g){return G6(G6({},v),{},{base:p[g]})});return a==="vertical"?d=Ug().y(gp).x1(vp).x0(function(v){return v.base.x}):d=Ug().x(vp).y1(gp).y0(function(v){return v.base.y}),d.defined(Zg).curve(u),d(m)}return a==="vertical"&&je(o)?d=Ug().y(gp).x1(vp).x0(o):je(o)?d=Ug().x(vp).y1(gp).y0(o):d=Uz().x(vp).y(gp),d.defined(Zg).curve(u),d(f)},Hs=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var o=n&&n.length?K6e(e):r;return M.createElement("path",yC({},Ve(e),ub(e),{className:We("recharts-curve",t),d:o,ref:i}))};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 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 Z6e(e,t){return e5e(e)||J6e(e,t)||Q6e(e,t)||X6e()}function X6e(){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 Q6e(e,t){if(e){if(typeof e=="string")return K6(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 K6(e,t)}}function K6(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 J6e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function e5e(e){if(Array.isArray(e))return e}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 X6(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){t5e(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 t5e(e,t,n){return t=n5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n5e(e){var t=r5e(e,"string");return Pm(t)==="symbol"?t:String(t)}function r5e(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||"default");if(Pm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q6=function(e,t,n,r,i){var o=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0,u;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],d=0,p=4;d<p;d++)f[d]=i[d]>o?o:i[d];u="M".concat(e,",").concat(t+a*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(e+s*f[0],",").concat(t)),u+="L ".concat(e+n-s*f[1],",").concat(t),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`,
`).concat(e+n,",").concat(t+a*f[1])),u+="L ".concat(e+n,",").concat(t+r-a*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`,
`).concat(e+n-s*f[2],",").concat(t+r)),u+="L ".concat(e+s*f[3],",").concat(t+r),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`,
`).concat(e,",").concat(t+r-a*f[3])),u+="Z"}else if(o>0&&i===+i&&i>0){var m=Math.min(o,i);u="M ".concat(e,",").concat(t+a*m,`
A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+s*m,",").concat(t,`
L `).concat(e+n-s*m,",").concat(t,`
A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+n,",").concat(t+a*m,`
L `).concat(e+n,",").concat(t+r-a*m,`
A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+n-s*m,",").concat(t+r,`
L `).concat(e+s*m,",").concat(t+r,`
A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e,",").concat(t+r-a*m," Z")}else u="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return u},i5e=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),f=Math.min(o,o+s),d=Math.max(o,o+s);return n>=l&&n<=u&&r>=f&&r<=d}return!1},o5e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PA=function(e){var t=X6(X6({},o5e),e),n=F.useRef(),r=F.useState(-1),i=Z6e(r,2),o=i[0],a=i[1];F.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&a(x)}catch{}},[]);var s=t.x,l=t.y,u=t.width,f=t.height,d=t.radius,p=t.className,m=t.animationEasing,v=t.animationDuration,g=t.animationBegin,w=t.isAnimationActive,y=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||f!==+f||u===0||f===0)return null;var _=We("recharts-rectangle",p);return y?M.createElement(Wi,{canBegin:o>0,from:{width:u,height:f,x:s,y:l},to:{width:u,height:f,x:s,y:l},duration:v,animationEasing:m,isActive:y},function(x){var O=x.width,E=x.height,T=x.x,k=x.y;return M.createElement(Wi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,isActive:w,easing:m},M.createElement("path",zb({},Ve(t,!0),{className:_,d:Q6(T,k,O,E,d),ref:n})))}):M.createElement("path",zb({},Ve(t,!0),{className:_,d:Q6(s,l,u,f,d)}))},a5e=["points","className","baseLinePoints","connectNulls"];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 s5e(e,t){if(e==null)return{};var n=l5e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function l5e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function J6(e){return d5e(e)||f5e(e)||c5e(e)||u5e()}function u5e(){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 c5e(e,t){if(e){if(typeof e=="string")return bC(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 bC(e,t)}}function f5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d5e(e){if(Array.isArray(e))return bC(e)}function bC(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 e5=function(e){return e&&e.x===+e.x&&e.y===+e.y},p5e=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];return e.forEach(function(n){e5(n)?t[t.length-1].push(n):t[t.length-1].length>0&&t.push([])}),e5(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},sh=function(e,t){var n=p5e(e);t&&(n=[n.reduce(function(i,o){return[].concat(J6(i),J6(o))},[])]);var r=n.map(function(i){return i.reduce(function(o,a,s){return"".concat(o).concat(s===0?"M":"L").concat(a.x,",").concat(a.y)},"")}).join("");return n.length===1?"".concat(r,"Z"):r},h5e=function(e,t,n){var r=sh(e,n);return"".concat(r.slice(-1)==="Z"?r.slice(0,-1):r,"L").concat(sh(t.reverse(),n).slice(1))},m5e=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,o=s5e(e,a5e);if(!t||!t.length)return null;var a=We("recharts-polygon",n);if(r&&r.length){var s=o.stroke&&o.stroke!=="none",l=h5e(t,r,i);return M.createElement("g",{className:a},M.createElement("path",Fc({},Ve(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:l})),s?M.createElement("path",Fc({},Ve(o,!0),{fill:"none",d:sh(t,i)})):null,s?M.createElement("path",Fc({},Ve(o,!0),{fill:"none",d:sh(r,i)})):null)}var u=sh(t,i);return M.createElement("path",Fc({},Ve(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:a,d:u}))};function _C(){return _C=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},_C.apply(this,arguments)}var Ev=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.className,o=We("recharts-dot",i);return t===+t&&n===+n&&r===+r?M.createElement("circle",_C({},Ve(e),ub(e),{className:o,cx:t,cy:n,r})):null};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)}var v5e=["x","y","top","left","width","height","className"];function wC(){return wC=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},wC.apply(this,arguments)}function t5(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 g5e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t5(Object(n),!0).forEach(function(r){y5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y5e(e,t,n){return t=b5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b5e(e){var t=_5e(e,"string");return Am(t)==="symbol"?t:String(t)}function _5e(e,t){if(Am(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Am(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w5e(e,t){if(e==null)return{};var n=x5e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x5e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var O5e=function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)},S5e=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,o=e.top,a=o===void 0?0:o,s=e.left,l=s===void 0?0:s,u=e.width,f=u===void 0?0:u,d=e.height,p=d===void 0?0:d,m=e.className,v=w5e(e,v5e),g=g5e({x:n,y:i,top:a,left:l,width:f,height:p},v);return!je(n)||!je(i)||!je(f)||!je(p)||!je(a)||!je(l)?null:M.createElement("path",wC({},Ve(g,!0),{className:We("recharts-cross",m),d:O5e(n,i,f,p,a,l)}))},E5e=_w,T5e=gH,C5e=ia;function k5e(e,t){return e&&e.length?E5e(e,C5e(t),T5e):void 0}var j5e=k5e;const P5e=Ot(j5e);var A5e=_w,N5e=ia,M5e=yH;function L5e(e,t){return e&&e.length?A5e(e,N5e(t),M5e):void 0}var R5e=L5e;const D5e=Ot(R5e);var I5e=["cx","cy","angle","ticks","axisLine"],F5e=["ticks","tick","angle","tickFormatter","stroke"];function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function lh(){return lh=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},lh.apply(this,arguments)}function n5(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 Sl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n5(Object(n),!0).forEach(function(r){Sw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r5(e,t){if(e==null)return{};var n=U5e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U5e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i5(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,WH(r.key),r)}}function B5e(e,t,n){return t&&i5(e.prototype,t),n&&i5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function z5e(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&&xC(e,t)}function xC(e,t){return xC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xC(e,t)}function V5e(e){var t=Y5e();return function(){var n=Vb(e),r;if(t){var i=Vb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return H5e(this,r)}}function H5e(e,t){if(t&&(Hf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W5e(e)}function W5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y5e(){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 Vb(e){return Vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vb(e)}function Sw(e,t,n){return t=WH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WH(e){var t=G5e(e,"string");return Hf(t)==="symbol"?t:String(t)}function G5e(e,t){if(Hf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ew=function(e){z5e(n,e);var t=V5e(n);function n(){return $5e(this,n),t.apply(this,arguments)}return B5e(n,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,l=o.cy;return It(s,l,i,a)}},{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,o=r.cy,a=r.angle,s=r.ticks,l=P5e(s,function(f){return f.coordinate||0}),u=D5e(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,l=r.axisLine,u=r5(r,I5e),f=s.reduce(function(v,g){return[Math.min(v[0],g.coordinate),Math.max(v[1],g.coordinate)]},[1/0,-1/0]),d=It(i,o,f[0],a),p=It(i,o,f[1],a),m=Sl(Sl(Sl({},Ve(u)),{},{fill:"none"},Ve(l)),{},{x1:d.x,y1:d.y,x2:p.x,y2:p.y});return M.createElement("line",lh({className:"recharts-polar-radius-axis-line"},m))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=r5(i,F5e),d=this.getTickTextAnchor(),p=Ve(f),m=Ve(a),v=o.map(function(g,w){var y=r.getTickValueCoord(g),_=Sl(Sl(Sl(Sl({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},p),{},{stroke:"none",fill:u},m),{},{index:w},y),{},{payload:g});return M.createElement(nt,lh({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(g.coordinate)},el(r.props,g,w)),n.renderTickItem(a,_,l?l(g.value,w):g.value))});return M.createElement(nt,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:M.createElement(nt,{className:"recharts-polar-radius-axis"},o&&this.renderAxisLine(),a&&this.renderTicks(),Vn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Qe(r)?a=r(i):a=M.createElement(Ou,lh({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}]),n}(F.PureComponent);Sw(Ew,"displayName","PolarRadiusAxis");Sw(Ew,"axisType","radiusAxis");Sw(Ew,"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 Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function Ul(){return Ul=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},Ul.apply(this,arguments)}function o5(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 El(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o5(Object(n),!0).forEach(function(r){Tw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a5(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,YH(r.key),r)}}function K5e(e,t,n){return t&&a5(e.prototype,t),n&&a5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z5e(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&&OC(e,t)}function OC(e,t){return OC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},OC(e,t)}function X5e(e){var t=e8e();return function(){var n=Hb(e),r;if(t){var i=Hb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Q5e(this,r)}}function Q5e(e,t){if(t&&(Wf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J5e(e)}function J5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e8e(){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 Hb(e){return Hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hb(e)}function Tw(e,t,n){return t=YH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YH(e){var t=t8e(e,"string");return Wf(t)==="symbol"?t:String(t)}function t8e(e,t){if(Wf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n8e=Math.PI/180,s5=1e-5,Cw=function(e){Z5e(n,e);var t=X5e(n);function n(){return q5e(this,n),t.apply(this,arguments)}return K5e(n,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,d=It(o,a,s,r.coordinate),p=It(o,a,s+(l==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*n8e),a;return o>s5?a=i==="outer"?"start":"end":o<-s5?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,u=El(El({},Ve(this.props)),{},{fill:"none"},Ve(s));if(l==="circle")return M.createElement(Ev,Ul({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var f=this.props.ticks,d=f.map(function(p){return It(i,o,a,p.coordinate)});return M.createElement(m5e,Ul({className:"recharts-polar-angle-axis-line"},u,{points:d}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=Ve(this.props),d=Ve(a),p=El(El({},f),{},{fill:"none"},Ve(s)),m=o.map(function(v,g){var w=r.getTickLineCoord(v),y=r.getTickTextAnchor(v),_=El(El(El({textAnchor:y},f),{},{stroke:"none",fill:u},d),{},{index:g,payload:v,x:w.x2,y:w.y2});return M.createElement(nt,Ul({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(v.coordinate)},el(r.props,v,g)),s&&M.createElement("line",Ul({className:"recharts-polar-angle-axis-tick-line"},p,w)),a&&n.renderTickItem(a,_,l?l(v.value,g):v.value))});return M.createElement(nt,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:M.createElement(nt,{className:"recharts-polar-angle-axis"},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Qe(r)?a=r(i):a=M.createElement(Ou,Ul({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}]),n}(F.PureComponent);Tw(Cw,"displayName","PolarAngleAxis");Tw(Cw,"axisType","angleAxis");Tw(Cw,"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 r8e=lV,i8e=r8e(Object.getPrototypeOf,Object),o8e=i8e,a8e=Qa,s8e=o8e,l8e=Ja,u8e="[object Object]",c8e=Function.prototype,f8e=Object.prototype,GH=c8e.toString,d8e=f8e.hasOwnProperty,p8e=GH.call(Object);function h8e(e){if(!l8e(e)||a8e(e)!=u8e)return!1;var t=s8e(e);if(t===null)return!0;var n=d8e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&GH.call(n)==p8e}var m8e=h8e;const v8e=Ot(m8e);var g8e=Qa,y8e=Ja,b8e="[object Boolean]";function _8e(e){return e===!0||e===!1||y8e(e)&&g8e(e)==b8e}var w8e=_8e;const x8e=Ot(w8e);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 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 O8e(e,t){return C8e(e)||T8e(e,t)||E8e(e,t)||S8e()}function S8e(){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 E8e(e,t){if(e){if(typeof e=="string")return l5(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 l5(e,t)}}function l5(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 T8e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function C8e(e){if(Array.isArray(e))return e}function u5(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 c5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u5(Object(n),!0).forEach(function(r){k8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k8e(e,t,n){return t=j8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j8e(e){var t=P8e(e,"string");return Nm(t)==="symbol"?t:String(t)}function P8e(e,t){if(Nm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f5=function(e,t,n,r,i){var o=n-r,a;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-o/2,",").concat(t+i),a+="L ".concat(e+n-o/2-r,",").concat(t+i),a+="L ".concat(e,",").concat(t," Z"),a},A8e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},N8e=function(e){var t=c5(c5({},A8e),e),n=F.useRef(),r=F.useState(-1),i=O8e(r,2),o=i[0],a=i[1];F.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&a(_)}catch{}},[]);var s=t.x,l=t.y,u=t.upperWidth,f=t.lowerWidth,d=t.height,p=t.className,m=t.animationEasing,v=t.animationDuration,g=t.animationBegin,w=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||f!==+f||d!==+d||u===0&&f===0||d===0)return null;var y=We("recharts-trapezoid",p);return w?M.createElement(Wi,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:l},to:{upperWidth:u,lowerWidth:f,height:d,x:s,y:l},duration:v,animationEasing:m,isActive:w},function(_){var x=_.upperWidth,O=_.lowerWidth,E=_.height,T=_.x,k=_.y;return M.createElement(Wi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,easing:m},M.createElement("path",Wb({},Ve(t,!0),{className:y,d:f5(T,k,x,O,E),ref:n})))}):M.createElement("g",null,M.createElement("path",Wb({},Ve(t,!0),{className:y,d:f5(s,l,u,f,d)})))},M8e=["option","shapeType","propTransformer","activeClassName","isActive"];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)}function L8e(e,t){if(e==null)return{};var n=R8e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R8e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function d5(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 Yb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d5(Object(n),!0).forEach(function(r){D8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D8e(e,t,n){return t=I8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I8e(e){var t=F8e(e,"string");return Mm(t)==="symbol"?t:String(t)}function F8e(e,t){if(Mm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U8e(e,t){return Yb(Yb({},t),e)}function $8e(e,t){return e==="symbols"}function p5(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return M.createElement(PA,n);case"trapezoid":return M.createElement(N8e,n);case"sector":return M.createElement(HH,n);case"symbols":if($8e(t))return M.createElement(cw,n);break;default:return null}}function B8e(e){return F.isValidElement(e)?e.props:e}function Gb(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?U8e:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=L8e(e,M8e),u;if(F.isValidElement(t))u=F.cloneElement(t,Yb(Yb({},l),B8e(t)));else if(Qe(t))u=t(l);else if(v8e(t)&&!x8e(t)){var f=i(t,l);u=M.createElement(p5,{shapeType:n,elementProps:f})}else{var d=l;u=M.createElement(p5,{shapeType:n,elementProps:d})}return s?M.createElement(nt,{className:a},u):u}function kw(e,t){return t!=null&&"trapezoids"in e.props}function jw(e,t){return t!=null&&"sectors"in e.props}function Lm(e,t){return t!=null&&"points"in e.props}function z8e(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,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function V8e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function H8e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function W8e(e,t){var n;return kw(e,t)?n=z8e:jw(e,t)?n=V8e:Lm(e,t)&&(n=H8e),n}function Y8e(e,t){var n;return kw(e,t)?n="trapezoids":jw(e,t)?n="sectors":Lm(e,t)&&(n="points"),n}function G8e(e,t){if(kw(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(jw(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 Lm(e,t)?t.payload:{}}function q8e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Y8e(n,t),o=G8e(n,t),a=r.filter(function(l,u){var f=tl(o,l),d=n.props[i].filter(function(v){var g=W8e(n,t);return g(v,t)}),p=n.props[i].indexOf(d[d.length-1]),m=u===p;return f&&m}),s=r.indexOf(a[a.length-1]);return s}var Ny;function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function 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 h5(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h5(Object(n),!0).forEach(function(r){ji(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m5(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,qH(r.key),r)}}function Z8e(e,t,n){return t&&m5(e.prototype,t),n&&m5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function X8e(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&&SC(e,t)}function SC(e,t){return SC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},SC(e,t)}function Q8e(e){var t=eFe();return function(){var n=qb(e),r;if(t){var i=qb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return J8e(this,r)}}function J8e(e,t){if(t&&(Yf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vc(e)}function vc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eFe(){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 qb(e){return qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qb(e)}function ji(e,t,n){return t=qH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qH(e){var t=tFe(e,"string");return Yf(t)==="symbol"?t:String(t)}function tFe(e,t){if(Yf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ts=function(e){X8e(n,e);var t=Q8e(n);function n(r){var i;return K8e(this,n),i=t.call(this,r),ji(vc(i),"pieRef",null),ji(vc(i),"sectorRefs",[]),ji(vc(i),"id",dl("recharts-pie-")),ji(vc(i),"handleAnimationEnd",function(){var o=i.props.onAnimationEnd;i.setState({isAnimationFinished:!0}),Qe(o)&&o()}),ji(vc(i),"handleAnimationStart",function(){var o=i.props.onAnimationStart;i.setState({isAnimationFinished:!1}),Qe(o)&&o()}),i.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},i}return Z8e(n,[{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 o=this.props,a=o.label,s=o.labelLine,l=o.dataKey,u=o.valueKey,f=Ve(this.props),d=Ve(a),p=Ve(s),m=a&&a.offsetRadius||20,v=r.map(function(g,w){var y=(g.startAngle+g.endAngle)/2,_=It(g.cx,g.cy,g.outerRadius+m,y),x=Gt(Gt(Gt(Gt({},f),g),{},{stroke:"none"},d),{},{index:w,textAnchor:n.getTextAnchor(_.x,g.cx)},_),O=Gt(Gt(Gt(Gt({},f),g),{},{fill:"none",stroke:g.fill},p),{},{index:w,points:[It(g.cx,g.cy,g.outerRadius,y),_],key:"line"}),E=l;return Ze(l)&&Ze(u)?E="value":Ze(l)&&(E=u),M.createElement(nt,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle)},s&&n.renderLabelLineItem(s,O),n.renderLabelItem(a,x,Vt(g,E)))});return M.createElement(nt,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,l=o.inactiveShape;return r.map(function(u,f){var d=i.isActiveIndex(f),p=l&&i.hasActiveIndex()?l:null,m=d?a:p,v=Gt(Gt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return M.createElement(nt,Uc({ref:function(g){g&&!i.sectorRefs.includes(g)&&i.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},el(i.props,u,f),{key:"sector-".concat(f)}),M.createElement(Gb,Uc({option:m,isActive:d,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,d=this.state,p=d.prevSectors,m=d.prevIsAnimationActive;return M.createElement(Wi,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(m),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var g=v.t,w=[],y=o&&o[0],_=y.startAngle;return o.forEach(function(x,O){var E=p&&p[O],T=O>0?ai(x,"paddingAngle",0):0;if(E){var k=en(E.endAngle-E.startAngle,x.endAngle-x.startAngle),A=Gt(Gt({},x),{},{startAngle:_+T,endAngle:_+k(g)+T});w.push(A),_=A.endAngle}else{var D=x.endAngle,R=x.startAngle,I=en(0,D-R),z=I(g),G=Gt(Gt({},x),{},{startAngle:_+T,endAngle:_+z+T});w.push(G),_=G.endAngle}}),M.createElement(nt,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});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,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!tl(a,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,o=i.hide,a=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,d=i.innerRadius,p=i.outerRadius,m=i.isAnimationActive,v=this.state.isAnimationFinished;if(o||!a||!a.length||!je(u)||!je(f)||!je(d)||!je(p))return null;var g=We("recharts-pie",s);return M.createElement(nt,{tabIndex:this.props.rootTabIndex,className:g,ref:function(w){r.pieRef=w}},this.renderSectors(),l&&this.renderLabels(a),Vn.renderCallByParent(this.props,null,!1),(!m||v)&&yo.renderCallByParent(this.props,a,!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){return M.isValidElement(r)?M.cloneElement(r,i):Qe(r)?r(i):M.createElement(Hs,Uc({},i,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(r,i,o){if(M.isValidElement(r))return M.cloneElement(r,i);var a=o;return Qe(r)&&(a=r(i),M.isValidElement(a))?a:M.createElement(Ou,Uc({},i,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),a)}}]),n}(F.PureComponent);Ny=ts;ji(ts,"displayName","Pie");ji(ts,"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:!Ii.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ji(ts,"parseDeltaAngle",function(e,t){var n=Pr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});ji(ts,"getRealPieData",function(e){var t=e.props,n=t.data,r=t.children,i=Ve(e.props),o=Mr(r,xu);return n&&n.length?n.map(function(a,s){return Gt(Gt(Gt({payload:a},i),a),o&&o[s]&&o[s].props)}):o&&o.length?o.map(function(a){return Gt(Gt({},i),a.props)}):[]});ji(ts,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=BH(i,o),s=r+Ur(e.props.cx,i,i/2),l=n+Ur(e.props.cy,o,o/2),u=Ur(e.props.innerRadius,a,0),f=Ur(e.props.outerRadius,a,a*.8),d=e.props.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:d}});ji(ts,"getComposedData",function(e){var t=e.item,n=e.offset,r=Ny.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,s=i.endAngle,l=i.paddingAngle,u=i.dataKey,f=i.nameKey,d=i.valueKey,p=i.tooltipType,m=Math.abs(t.props.minAngle),v=Ny.parseCoordinateOfPie(t,n),g=Ny.parseDeltaAngle(a,s),w=Math.abs(g),y=u;Ze(u)&&Ze(d)?(Ta(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),y="value"):Ze(u)&&(Ta(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),y=d);var _=r.filter(function(A){return Vt(A,y,0)!==0}).length,x=(w>=360?_:_-1)*l,O=w-_*m-x,E=r.reduce(function(A,D){var R=Vt(D,y,0);return A+(je(R)?R:0)},0),T;if(E>0){var k;T=r.map(function(A,D){var R=Vt(A,y,0),I=Vt(A,f,D),z=(je(R)?R:0)/E,G;D?G=k.endAngle+Pr(g)*l*(R!==0?1:0):G=a;var H=G+Pr(g)*((R!==0?m:0)+z*O),Q=(G+H)/2,Z=(v.innerRadius+v.outerRadius)/2,te=[{name:I,value:R,payload:A,dataKey:y,type:p}],X=It(v.cx,v.cy,Z,Q);return k=Gt(Gt(Gt({percent:z,cornerRadius:o,name:I,tooltipPayload:te,midAngle:Q,middleRadius:Z,tooltipPosition:X},A),v),{},{value:Vt(A,y),startAngle:G,endAngle:H,payload:A,paddingAngle:Pr(g)*l}),k})}return Gt(Gt({},v),{},{sectors:T,data:r})});var nFe=Math.ceil,rFe=Math.max;function iFe(e,t,n,r){for(var i=-1,o=rFe(nFe((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var oFe=iFe,aFe=NV,v5=1/0,sFe=17976931348623157e292;function lFe(e){if(!e)return e===0?e:0;if(e=aFe(e),e===v5||e===-v5){var t=e<0?-1:1;return t*sFe}return e===e?e:0}var KH=lFe,uFe=oFe,cFe=pw,XO=KH;function fFe(e){return function(t,n,r){return r&&typeof r!="number"&&cFe(t,n,r)&&(n=r=void 0),t=XO(t),n===void 0?(n=t,t=0):n=XO(n),r=r===void 0?t<n?1:-1:XO(r),uFe(t,n,r,e)}}var dFe=fFe,pFe=dFe,hFe=pFe(),mFe=hFe;const Kb=Ot(mFe);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 g5(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 y5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g5(Object(n),!0).forEach(function(r){ZH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZH(e,t,n){return t=vFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vFe(e){var t=gFe(e,"string");return Rm(t)==="symbol"?t:String(t)}function gFe(e,t){if(Rm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yFe=["Webkit","Moz","O","ms"],bFe=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(i){return i.toUpperCase()}),r=yFe.reduce(function(i,o){return y5(y5({},i),{},ZH({},o+n,t))},{});return r[e]=t,r};function Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}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 b5(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 QO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b5(Object(n),!0).forEach(function(r){Qr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _5(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,XH(r.key),r)}}function wFe(e,t,n){return t&&_5(e.prototype,t),n&&_5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xFe(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&&EC(e,t)}function EC(e,t){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},EC(e,t)}function OFe(e){var t=EFe();return function(){var n=Xb(e),r;if(t){var i=Xb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return SFe(this,r)}}function SFe(e,t){if(t&&(Gf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return No(e)}function No(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EFe(){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 Xb(e){return Xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xb(e)}function Qr(e,t,n){return t=XH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XH(e){var t=TFe(e,"string");return Gf(t)==="symbol"?t:String(t)}function TFe(e,t){if(Gf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CFe=function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=ah().domain(Kb(0,s)).range([i,i+o-a]),u=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:u}},w5=function(e){return e.changedTouches&&!!e.changedTouches.length},Dm=function(e){xFe(n,e);var t=OFe(n);function n(r){var i;return _Fe(this,n),i=t.call(this,r),Qr(No(i),"handleDrag",function(o){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(o):i.state.isSlideMoving&&i.handleSlideDrag(o)}),Qr(No(i),"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&i.handleDrag(o.changedTouches[0])}),Qr(No(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=i.props,a=o.endIndex,s=o.onDragEnd,l=o.startIndex;s==null||s({endIndex:a,startIndex:l})}),i.detachDragEndListener()}),Qr(No(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),Qr(No(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),Qr(No(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),Qr(No(i),"handleSlideDragStart",function(o){var a=w5(o)?o.changedTouches[0]:o;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(No(i),"startX"),endX:i.handleTravellerDragStart.bind(No(i),"endX")},i.state={},i}return wFe(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,d=Math.min(i,o),p=Math.max(i,o),m=n.getIndexInRange(a,d),v=n.getIndexInRange(a,p);return{startIndex:m-m%l,endIndex:v===f?f:v-v%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=Vt(o[r],s,r);return Qe(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,d=l.travellerWidth,p=l.startIndex,m=l.endIndex,v=l.onChange,g=r.pageX-o;g>0?g=Math.min(g,u+f-d-s,u+f-d-a):g<0&&(g=Math.max(g,u-a,u-s));var w=this.getIndex({startX:a+g,endX:s+g});(w.startIndex!==p||w.endIndex!==m)&&v&&v(w),this.setState({startX:a+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=w5(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i,o=this.state,a=o.brushMoveStartX,s=o.movingTravellerId,l=o.endX,u=o.startX,f=this.state[s],d=this.props,p=d.x,m=d.width,v=d.travellerWidth,g=d.onChange,w=d.gap,y=d.data,_={startX:this.state.startX,endX:this.state.endX},x=r.pageX-a;x>0?x=Math.min(x,p+m-v-f):x<0&&(x=Math.max(x,p-f)),_[s]=f+x;var O=this.getIndex(_),E=O.startIndex,T=O.endIndex,k=function(){var A=y.length-1;return s==="startX"&&(l>u?E%w===0:T%w===0)||l<u&&T===A||s==="endX"&&(l>u?T%w===0:E%w===0)||l>u&&T===A};this.setState((i={},Qr(i,s,f+x),Qr(i,"brushMoveStartX",r.pageX),i),function(){g&&k()&&g(O)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,f=this.state[i],d=s.indexOf(f);if(d!==-1){var p=d+r;if(!(p===-1||p>=s.length)){var m=s[p];i==="startX"&&m>=u||i==="endX"&&m<=l||this.setState(Qr({},i,m),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.fill,u=r.stroke;return M.createElement("rect",{stroke:u,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.data,u=r.children,f=r.padding,d=F.Children.only(u);return d?M.cloneElement(d,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var o=this,a=this.props,s=a.y,l=a.travellerWidth,u=a.height,f=a.traveller,d=a.ariaLabel,p=a.data,m=a.startIndex,v=a.endIndex,g=Math.max(r,this.props.x),w=QO(QO({},Ve(this.props)),{},{x:g,y:s,width:l,height:u}),y=d||"Min value: ".concat(p[m].name,", Max value: ").concat(p[v].name);return M.createElement(nt,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),o.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(f,w))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,f=Math.min(r,i)+u,d=Math.max(Math.abs(i-r)-u,0);return M.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,p=f.endX,m=5,v={pointerEvents:"none",fill:u};return M.createElement(nt,{className:"recharts-brush-texts"},M.createElement(Ou,Zb({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-m,y:a+s/2},v),this.getTextOfTick(i)),M.createElement(Ou,Zb({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+l+m,y:a+s/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,l=r.y,u=r.width,f=r.height,d=r.alwaysShowText,p=this.state,m=p.startX,v=p.endX,g=p.isTextActive,w=p.isSlideMoving,y=p.isTravellerMoving,_=p.isTravellerFocused;if(!i||!i.length||!je(s)||!je(l)||!je(u)||!je(f)||u<=0||f<=0)return null;var x=We("recharts-brush",o),O=M.Children.count(a)===1,E=bFe("userSelect","none");return M.createElement(nt,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(m,v),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(v,"endX"),(g||w||y||_||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,l=r.stroke,u=Math.floor(o+s/2)-1;return M.createElement(M.Fragment,null,M.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),M.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),M.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return M.isValidElement(r)?o=M.cloneElement(r,i):Qe(r)?o=r(i):o=n.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,s=r.x,l=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return QO({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?CFe({data:o,width:a,x:s,travellerWidth:l,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var p=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>i?s=l:a=l}return i>=r[s]?s:a}}]),n}(F.PureComponent);Qr(Dm,"displayName","Brush");Qr(Dm,"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 kFe=eA;function jFe(e,t){var n;return kFe(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var PFe=jFe,AFe=eV,NFe=ia,MFe=PFe,LFe=Kr,RFe=pw;function DFe(e,t,n){var r=LFe(e)?AFe:MFe;return n&&RFe(e,t,n)&&(t=void 0),r(e,NFe(t))}var IFe=DFe;const FFe=Ot(IFe);var Ko=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},x5=xV;function UFe(e,t,n){t=="__proto__"&&x5?x5(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var $Fe=UFe,BFe=$Fe,zFe=_V,VFe=ia;function HFe(e,t){var n={};return t=VFe(t),zFe(e,function(r,i,o){BFe(n,i,t(r,i,o))}),n}var WFe=HFe;const YFe=Ot(WFe);function GFe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var qFe=GFe,KFe=eA;function ZFe(e,t){var n=!0;return KFe(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var XFe=ZFe,QFe=qFe,JFe=XFe,eUe=ia,tUe=Kr,nUe=pw;function rUe(e,t,n){var r=tUe(e)?QFe:JFe;return n&&nUe(e,t,n)&&(t=void 0),r(e,eUe(t))}var iUe=rUe;const QH=Ot(iUe);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)}var oUe=["x","y"];function TC(){return TC=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},TC.apply(this,arguments)}function O5(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 yp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O5(Object(n),!0).forEach(function(r){aUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aUe(e,t,n){return t=sUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sUe(e){var t=lUe(e,"string");return Im(t)==="symbol"?t:String(t)}function lUe(e,t){if(Im(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Im(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uUe(e,t){if(e==null)return{};var n=cUe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fUe(e,t){var n=e.x,r=e.y,i=uUe(e,oUe),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),d="".concat(t.width||i.width),p=parseInt(d,10);return yp(yp(yp(yp(yp({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function S5(e){return M.createElement(Gb,TC({shapeType:"rectangle",propTransformer:fUe,activeClassName:"recharts-active-bar"},e))}var dUe=["value","background"];function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function pUe(e,t){if(e==null)return{};var n=hUe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hUe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Qb(){return Qb=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},Qb.apply(this,arguments)}function E5(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 Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E5(Object(n),!0).forEach(function(r){Ps(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T5(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,JH(r.key),r)}}function vUe(e,t,n){return t&&T5(e.prototype,t),n&&T5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gUe(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&&CC(e,t)}function CC(e,t){return CC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},CC(e,t)}function yUe(e){var t=_Ue();return function(){var n=Jb(e),r;if(t){var i=Jb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return bUe(this,r)}}function bUe(e,t){if(t&&(qf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pp(e)}function Pp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _Ue(){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 Jb(e){return Jb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jb(e)}function Ps(e,t,n){return t=JH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JH(e){var t=wUe(e,"string");return qf(t)==="symbol"?t:String(t)}function wUe(e,t){if(qf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eu=function(e){gUe(n,e);var t=yUe(n);function n(){var r;mUe(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Ps(Pp(r),"state",{isAnimationFinished:!1}),Ps(Pp(r),"id",dl("recharts-bar-")),Ps(Pp(r),"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),s&&s()}),Ps(Pp(r),"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),s&&s()}),r}return vUe(n,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.dataKey,l=o.activeIndex,u=o.activeBar,f=Ve(this.props);return r&&r.map(function(d,p){var m=p===l,v=m?u:a,g=Un(Un(Un({},f),d),{},{isActive:m,option:v,index:p,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return M.createElement(nt,Qb({className:"recharts-bar-rectangle"},el(i.props,d,p),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value)}),M.createElement(S5,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,f=i.animationEasing,d=i.animationId,p=this.state.prevData;return M.createElement(Wi,{begin:l,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var v=m.t,g=o.map(function(w,y){var _=p&&p[y];if(_){var x=en(_.x,w.x),O=en(_.y,w.y),E=en(_.width,w.width),T=en(_.height,w.height);return Un(Un({},w),{},{x:x(v),y:O(v),width:E(v),height:T(v)})}if(a==="horizontal"){var k=en(0,w.height),A=k(v);return Un(Un({},w),{},{y:w.y+w.height-A,height:A})}var D=en(0,w.width),R=D(v);return Un(Un({},w),{},{width:R})});return M.createElement(nt,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!tl(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,l=Ve(this.props.background);return o.map(function(u,f){u.value;var d=u.background,p=pUe(u,dUe);if(!d)return null;var m=Un(Un(Un(Un(Un({},p),{},{fill:"#eee"},d),l),el(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,key:"background-bar-".concat(f),className:"recharts-bar-background-rectangle"});return M.createElement(S5,Qb({option:r.props.background,isActive:f===s},m))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,d=Mr(f,jd);if(!d)return null;var p=u==="vertical"?a[0].height/2:a[0].width/2,m=function(g,w){var y=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:y,errorVal:Vt(g,w)}},v={clipPath:r?"url(#clipPath-".concat(i,")"):null};return M.createElement(nt,v,d.map(function(g){return M.cloneElement(g,{key:"error-bar-".concat(i,"-").concat(g.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,offset:p,dataPointFormatter:m})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,s=r.xAxis,l=r.yAxis,u=r.left,f=r.top,d=r.width,p=r.height,m=r.isAnimationActive,v=r.background,g=r.id;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,y=We("recharts-bar",a),_=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,O=_||x,E=Ze(g)?this.id:g;return M.createElement(nt,{className:y},_||x?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(E)},M.createElement("rect",{x:_?u:u-d/2,y:x?f:f-p/2,width:_?d:d*2,height:x?p:p*2}))):null,M.createElement(nt,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(E,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,E),(!m||w)&&yo.renderCallByParent(this.props,o))}}],[{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}}]),n}(F.PureComponent);Ps(Eu,"displayName","Bar");Ps(Eu,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!Ii.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ps(Eu,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,m=L4e(r,n);if(!m)return null;var v=t.layout,g=n.props,w=g.dataKey,y=g.children,_=g.minPointSize,x=v==="horizontal"?a:o,O=u?x.scale.domain():null,E=B4e({numericAxis:x}),T=Mr(y,xu),k=d.map(function(A,D){var R,I,z,G,H,Q;if(u?R=R4e(u[f+D],O):(R=Vt(A,w),Array.isArray(R)||(R=[E,R])),v==="horizontal"){var Z,te=[a.scale(R[0]),a.scale(R[1])],X=te[0],$=te[1];I=M6({axis:o,ticks:s,bandSize:i,offset:m.offset,entry:A,index:D}),z=(Z=$??X)!==null&&Z!==void 0?Z:void 0,G=m.size;var V=X-$;if(H=Number.isNaN(V)?0:V,Q={x:I,y:a.y,width:G,height:a.height},Math.abs(_)>0&&Math.abs(H)<Math.abs(_)){var W=Pr(H||_)*(Math.abs(_)-Math.abs(H));z-=W,H+=W}}else{var re=[o.scale(R[0]),o.scale(R[1])],q=re[0],ee=re[1];if(I=q,z=M6({axis:a,ticks:l,bandSize:i,offset:m.offset,entry:A,index:D}),G=ee-q,H=m.size,Q={x:o.x,y:z,width:o.width,height:H},Math.abs(_)>0&&Math.abs(G)<Math.abs(_)){var ie=Pr(G||_)*(Math.abs(_)-Math.abs(G));G+=ie}}return Un(Un(Un({},A),{},{x:I,y:z,width:G,height:H,value:u?R:R[1],payload:A,background:Q},T&&T[D]&&T[D].props),{},{tooltipPayload:[UH(n,A)],tooltipPosition:{x:I+G/2,y:z+H/2}})});return Un({data:k,layout:v},p)});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 xUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C5(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,eW(r.key),r)}}function OUe(e,t,n){return t&&C5(e.prototype,t),n&&C5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),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 io(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){Pw(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 Pw(e,t,n){return t=eW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eW(e){var t=SUe(e,"string");return Fm(t)==="symbol"?t:String(t)}function SUe(e,t){if(Fm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tW=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.layout,l=e.children,u=Object.keys(t),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},d=!!ba(l,Eu);return u.reduce(function(p,m){var v=t[m],g=v.orientation,w=v.domain,y=v.padding,_=y===void 0?{}:y,x=v.mirror,O=v.reversed,E="".concat(g).concat(x?"Mirror":""),T,k,A,D,R;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var I=w[1]-w[0],z=1/0,G=v.categoricalDomain.sort();G.forEach(function(q,ee){ee>0&&(z=Math.min((q||0)-(G[ee-1]||0),z))});var H=z/I,Q=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(T=H*Q/2),v.padding==="no-gap"){var Z=Ur(e.barCategoryGap,H*Q),te=H*Q/2;T=te-Z-(te-Z)/Q*Z}}r==="xAxis"?k=[n.left+(_.left||0)+(T||0),n.left+n.width-(_.right||0)-(T||0)]:r==="yAxis"?k=s==="horizontal"?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(T||0),n.top+n.height-(_.bottom||0)-(T||0)]:k=v.range,O&&(k=[k[1],k[0]]);var X=RH(v,i,d),$=X.scale,V=X.realScaleType;$.domain(w).range(k),DH($);var W=IH($,io(io({},v),{},{realScaleType:V}));r==="xAxis"?(R=g==="top"&&!x||g==="bottom"&&x,A=n.left,D=f[E]-R*v.height):r==="yAxis"&&(R=g==="left"&&!x||g==="right"&&x,A=f[E]-R*v.width,D=n.top);var re=io(io(io({},v),W),{},{realScaleType:V,x:A,y:D,scale:$,width:r==="xAxis"?n.width:v.width,height:r==="yAxis"?n.height:v.height});return re.bandSize=Ub(re,W),!v.hide&&r==="xAxis"?f[E]+=(R?-1:1)*re.height:v.hide||(f[E]+=(R?-1:1)*re.width),io(io({},p),{},Pw({},m,re))},{})},nW=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},EUe=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return nW({x:t,y:n},{x:r,y:i})},rW=function(){function e(t){xUe(this,e),this.scale=t}return OUe(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(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.bandAware,i=n.position;if(t!==void 0){if(i)switch(i){case"start":return this.scale(t);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}},{key:"isInRange",value:function(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}],[{key:"create",value:function(t){return new e(t)}}]),e}();Pw(rW,"EPS",1e-4);var AA=function(e){var t=Object.keys(e).reduce(function(n,r){return io(io({},n),{},Pw({},r,rW.create(e[r])))},{});return io(io({},t),{},{apply:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;return YFe(n,function(a,s){return t[s].apply(a,{bandAware:i,position:o})})},isInRange:function(n){return QH(n,function(r,i){return t[i].isInRange(r)})}})};function TUe(e){return(e%180+180)%180}var CUe=function(e){var t=e.width,n=e.height,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=TUe(r),o=i*Math.PI/180,a=Math.atan(n/t),s=o>a&&o<Math.PI-a?n/Math.sin(o):t/Math.cos(o);return Math.abs(s)};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 j5(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 P5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j5(Object(n),!0).forEach(function(r){kUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kUe(e,t,n){return t=jUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jUe(e){var t=PUe(e,"string");return Um(t)==="symbol"?t:String(t)}function PUe(e,t){if(Um(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Um(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AUe(e,t){return RUe(e)||LUe(e,t)||MUe(e,t)||NUe()}function NUe(){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 MUe(e,t){if(e){if(typeof e=="string")return A5(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 A5(e,t)}}function A5(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 LUe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function RUe(e){if(Array.isArray(e))return e}function kC(){return kC=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},kC.apply(this,arguments)}var DUe=function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Qe(e)?n=e(t):n=M.createElement("line",kC({},t,{className:"recharts-reference-line-line"})),n},IUe=function(e,t,n,r,i){var o=i.viewBox,a=o.x,s=o.y,l=o.width,u=o.height,f=i.position;if(n){var d=i.y,p=i.yAxis.orientation,m=e.y.apply(d,{position:f});if(Ko(i,"discard")&&!e.y.isInRange(m))return null;var v=[{x:a+l,y:m},{x:a,y:m}];return p==="left"?v.reverse():v}if(t){var g=i.x,w=i.xAxis.orientation,y=e.x.apply(g,{position:f});if(Ko(i,"discard")&&!e.x.isInRange(y))return null;var _=[{x:y,y:s+u},{x:y,y:s}];return w==="top"?_.reverse():_}if(r){var x=i.segment,O=x.map(function(E){return e.apply(E,{position:f})});return Ko(i,"discard")&&FFe(O,function(E){return!e.isInRange(E)})?null:O}return null};function NA(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxis,o=e.yAxis,a=e.shape,s=e.className,l=e.alwaysShow,u=e.clipPathId;Ta(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=AA({x:i.scale,y:o.scale}),d=Pn(t),p=Pn(n),m=r&&r.length===2,v=IUe(f,d,p,m,e);if(!v)return null;var g=AUe(v,2),w=g[0],y=w.x,_=w.y,x=g[1],O=x.x,E=x.y,T=Ko(e,"hidden")?"url(#".concat(u,")"):void 0,k=P5(P5({clipPath:T},Ve(e,!0)),{},{x1:y,y1:_,x2:O,y2:E});return M.createElement(nt,{className:We("recharts-reference-line",s)},DUe(a,k),Vn.renderCallByParent(e,EUe({x1:y,y1:_,x2:O,y2:E})))}NA.displayName="ReferenceLine";NA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};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 jC(){return jC=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},jC.apply(this,arguments)}function N5(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 M5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N5(Object(n),!0).forEach(function(r){FUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FUe(e,t,n){return t=UUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UUe(e){var t=$Ue(e,"string");return $m(t)==="symbol"?t:String(t)}function $Ue(e,t){if($m(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($m(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BUe=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=AA({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return Ko(e,"discard")&&!o.isInRange(a)?null:a};function Tv(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,o=e.clipPathId,a=Pn(t),s=Pn(n);if(Ta(i===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!s)return null;var l=BUe(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,m=Ko(e,"hidden")?"url(#".concat(o,")"):void 0,v=M5(M5({clipPath:m},Ve(e,!0)),{},{cx:u,cy:f});return M.createElement(nt,{className:We("recharts-reference-dot",p)},Tv.renderDot(d,v),Vn.renderCallByParent(e,{x:u-r,y:f-r,width:2*r,height:2*r}))}Tv.displayName="ReferenceDot";Tv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};Tv.renderDot=function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Qe(e)?n=e(t):n=M.createElement(Ev,jC({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};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 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 L5(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 R5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L5(Object(n),!0).forEach(function(r){zUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zUe(e,t,n){return t=VUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VUe(e){var t=HUe(e,"string");return Bm(t)==="symbol"?t:String(t)}function HUe(e,t){if(Bm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WUe=function(e,t,n,r,i){var o=i.x1,a=i.x2,s=i.y1,l=i.y2,u=i.xAxis,f=i.yAxis;if(!u||!f)return null;var d=AA({x:u.scale,y:f.scale}),p={x:e?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},m={x:t?d.x.apply(a,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return Ko(i,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:nW(p,m)};function Cv(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,o=e.className,a=e.alwaysShow,s=e.clipPathId;Ta(a===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Pn(t),u=Pn(n),f=Pn(r),d=Pn(i),p=e.shape;if(!l&&!u&&!f&&!d&&!p)return null;var m=WUe(l,u,f,d,e);if(!m&&!p)return null;var v=Ko(e,"hidden")?"url(#".concat(s,")"):void 0;return M.createElement(nt,{className:We("recharts-reference-area",o)},Cv.renderRect(p,R5(R5({clipPath:v},Ve(e,!0)),m)),Vn.renderCallByParent(e,m))}Cv.displayName="ReferenceArea";Cv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};Cv.renderRect=function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Qe(e)?n=e(t):n=M.createElement(PA,PC({},t,{className:"recharts-reference-area-rect"})),n};function iW(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)if(n===void 0||n(e[i])===!0)r.push(e[i]);else return;return r}function YUe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return CUe(r,n)}function GUe(e,t,n){var r=n==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}function e_(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function qUe(e,t){return iW(e,t+1)}function KUe(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,l=0,u=1,f=a,d=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:iW(r,u)};var v=l,g,w=function(){return g===void 0&&(g=n(m,v)),g},y=m.coordinate,_=l===0||e_(e,y,w,f,s);_||(l=0,f=a,u+=1),_&&(f=y+e*(w()/2+i),l+=u)},p;u<=o.length;)if(p=d(),p)return p.v;return[]}function zm(e){"@babel/helpers - typeof";return zm=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},zm(e)}function D5(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 mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D5(Object(n),!0).forEach(function(r){ZUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZUe(e,t,n){return t=XUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XUe(e){var t=QUe(e,"string");return zm(t)==="symbol"?t:String(t)}function QUe(e,t){if(zm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JUe(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=t.start,l=t.end,u=function(d){var p=o[d],m,v=function(){return m===void 0&&(m=n(p,d)),m};if(d===a-1){var g=e*(p.coordinate+e*v()/2-l);o[d]=p=mr(mr({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else o[d]=p=mr(mr({},p),{},{tickCoord:p.coordinate});var w=e_(e,p.tickCoord,v,s,l);w&&(l=p.tickCoord-e*(v()/2+i),o[d]=mr(mr({},p),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return o}function e$e(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,l=t.start,u=t.end;if(o){var f=r[s-1],d=n(f,s-1),p=e*(f.coordinate+e*d/2-u);a[s-1]=f=mr(mr({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var m=e_(e,f.tickCoord,function(){return d},l,u);m&&(u=f.tickCoord-e*(d/2+i),a[s-1]=mr(mr({},f),{},{isShow:!0}))}for(var v=o?s-1:s,g=function(y){var _=a[y],x,O=function(){return x===void 0&&(x=n(_,y)),x};if(y===0){var E=e*(_.coordinate-e*O()/2-l);a[y]=_=mr(mr({},_),{},{tickCoord:E<0?_.coordinate-E*e:_.coordinate})}else a[y]=_=mr(mr({},_),{},{tickCoord:_.coordinate});var T=e_(e,_.tickCoord,O,l,u);T&&(l=_.tickCoord+e*(O()/2+i),a[y]=mr(mr({},_),{},{isShow:!0}))},w=0;w<v;w++)g(w);return a}function AC(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(je(l)||Ii.isSsr)return qUe(i,typeof l=="number"&&je(l)?l:0);var p=[],m=s==="top"||s==="bottom"?"width":"height",v=f&&m==="width"?oh(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(_,x){var O=Qe(u)?u(_.value,x):_.value;return m==="width"?YUe(oh(O,{fontSize:t,letterSpacing:n}),v,d):oh(O,{fontSize:t,letterSpacing:n})[m]},w=i.length>=2?Pr(i[1].coordinate-i[0].coordinate):1,y=GUe(o,w,m);return l==="equidistantPreserveStart"?KUe(w,y,g,i,a):(l==="preserveStart"||l==="preserveStartEnd"?p=e$e(w,y,g,i,a,l==="preserveStartEnd"):p=JUe(w,y,g,i,a),p.filter(function(_){return _.isShow}))}var t$e=["viewBox"],n$e=["viewBox"],r$e=["ticks"];function Kf(e){"@babel/helpers - typeof";return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kf(e)}function $c(){return $c=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},$c.apply(this,arguments)}function I5(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 Sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I5(Object(n),!0).forEach(function(r){MA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JO(e,t){if(e==null)return{};var n=i$e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function o$e(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,oW(r.key),r)}}function a$e(e,t,n){return t&&F5(e.prototype,t),n&&F5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s$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&&NC(e,t)}function NC(e,t){return NC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},NC(e,t)}function l$e(e){var t=f$e();return function(){var n=t_(e),r;if(t){var i=t_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u$e(this,r)}}function u$e(e,t){if(t&&(Kf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c$e(e)}function c$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f$e(){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 t_(e){return t_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t_(e)}function MA(e,t,n){return t=oW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oW(e){var t=d$e(e,"string");return Kf(t)==="symbol"?t:String(t)}function d$e(e,t){if(Kf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Kf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uh=function(e){s$e(n,e);var t=l$e(n);function n(r){var i;return o$e(this,n),i=t.call(this,r),i.state={fontSize:"",letterSpacing:""},i}return a$e(n,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=JO(r,t$e),s=this.props,l=s.viewBox,u=JO(s,n$e);return!Zc(o,l)||!Zc(a,u)||!Zc(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,o=i.x,a=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,d=i.mirror,p=i.tickMargin,m,v,g,w,y,_,x=d?-1:1,O=r.tickSize||f,E=je(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":m=v=r.coordinate,w=a+ +!d*l,g=w-x*O,_=g-x*p,y=E;break;case"left":g=w=r.coordinate,v=o+ +!d*s,m=v-x*O,y=m-x*p,_=E;break;case"right":g=w=r.coordinate,v=o+ +d*s,m=v+x*O,y=m+x*p,_=E;break;default:m=v=r.coordinate,w=a+ +d*l,g=w+x*O,_=g+x*p,y=E;break}return{line:{x1:m,y1:g,x2:v,y2:w},tick:{x:y,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.orientation,u=r.mirror,f=r.axisLine,d=Sr(Sr(Sr({},Ve(this.props)),Ve(f)),{},{fill:"none"});if(l==="top"||l==="bottom"){var p=+(l==="top"&&!u||l==="bottom"&&u);d=Sr(Sr({},d),{},{x1:i,y1:o+p*s,x2:i+a,y2:o+p*s})}else{var m=+(l==="left"&&!u||l==="right"&&u);d=Sr(Sr({},d),{},{x1:i+m*a,y1:o,x2:i+m*a,y2:o+s})}return M.createElement("line",$c({},d,{className:We("recharts-cartesian-axis-line",ai(f,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,d=s.tickFormatter,p=s.unit,m=AC(Sr(Sr({},this.props),{},{ticks:r}),i,o),v=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),w=Ve(this.props),y=Ve(f),_=Sr(Sr({},w),{},{fill:"none"},Ve(l)),x=m.map(function(O,E){var T=a.getTickLineCoord(O),k=T.line,A=T.tick,D=Sr(Sr(Sr(Sr({textAnchor:v,verticalAnchor:g},w),{},{stroke:"none",fill:u},y),A),{},{index:E,payload:O,visibleTicksCount:m.length,tickFormatter:d});return M.createElement(nt,$c({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},el(a.props,O,E)),l&&M.createElement("line",$c({},_,k,{className:We("recharts-cartesian-axis-tick-line",ai(l,"className"))})),f&&n.renderTickItem(f,D,"".concat(Qe(d)?d(O.value,E):O.value).concat(p||"")))});return M.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var d=this.props,p=d.ticks,m=JO(d,r$e),v=p;return Qe(l)&&(v=p&&p.length>0?l(this.props):l(m)),a<=0||s<=0||!v||!v.length?null:M.createElement(nt,{className:We("recharts-cartesian-axis",u),ref:function(g){r.layerReference=g}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Vn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Qe(r)?a=r(i):a=M.createElement(Ou,$c({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}]),n}(F.Component);MA(uh,"displayName","CartesianAxis");MA(uh,"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 p$e=["x1","y1","x2","y2","key"],h$e=["offset"];function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function 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 U5(e,t){if(e==null)return{};var n=m$e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function m$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}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 ls(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){LA(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 v$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B5(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,aW(r.key),r)}}function g$e(e,t,n){return t&&B5(e.prototype,t),n&&B5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y$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&&LC(e,t)}function LC(e,t){return LC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},LC(e,t)}function b$e(e){var t=x$e();return function(){var n=n_(e),r;if(t){var i=n_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _$e(this,r)}}function _$e(e,t){if(t&&(Zf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w$e(e)}function w$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x$e(){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 n_(e){return n_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n_(e)}function LA(e,t,n){return t=aW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aW(e){var t=O$e(e,"string");return Zf(t)==="symbol"?t:String(t)}function O$e(e,t){if(Zf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Aw=function(e){y$e(n,e);var t=b$e(n);function n(){return v$e(this,n),t.apply(this,arguments)}return g$e(n,[{key:"renderHorizontal",value:function(r){var i=this,o=this.props,a=o.x,s=o.width,l=o.horizontal;if(!r||!r.length)return null;var u=r.map(function(f,d){var p=ls(ls({},i.props),{},{x1:a,y1:f,x2:a+s,y2:f,key:"line-".concat(d),index:d});return n.renderLineItem(l,p)});return M.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(r){var i=this,o=this.props,a=o.y,s=o.height,l=o.vertical;if(!r||!r.length)return null;var u=r.map(function(f,d){var p=ls(ls({},i.props),{},{x1:f,y1:a,x2:f,y2:a+s,key:"line-".concat(d),index:d});return n.renderLineItem(l,p)});return M.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(r){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,a=o.fillOpacity,s=o.x,l=o.y,u=o.width,f=o.height,d=r.map(function(m){return Math.round(m+s-s)}).sort(function(m,v){return m-v});s!==d[0]&&d.unshift(0);var p=d.map(function(m,v){var g=!d[v+1],w=g?s+u-m:d[v+1]-m;if(w<=0)return null;var y=v%i.length;return M.createElement("rect",{key:"react-".concat(v),x:m,y:l,width:w,height:f,stroke:"none",fill:i[y],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return M.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}},{key:"renderHorizontalStripes",value:function(r){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,a=o.fillOpacity,s=o.x,l=o.y,u=o.width,f=o.height,d=r.map(function(m){return Math.round(m+l-l)}).sort(function(m,v){return m-v});l!==d[0]&&d.unshift(0);var p=d.map(function(m,v){var g=!d[v+1],w=g?l+f-m:d[v+1]-m;if(w<=0)return null;var y=v%i.length;return M.createElement("rect",{key:"react-".concat(v),y:m,x:s,height:w,width:u,stroke:"none",fill:i[y],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return M.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}},{key:"renderBackground",value:function(){var r=this.props.fill;if(!r||r==="none")return null;var i=this.props,o=i.fillOpacity,a=i.x,s=i.y,l=i.width,u=i.height;return M.createElement("rect",{x:a,y:s,width:l,height:u,stroke:"none",fill:r,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.horizontal,u=r.vertical,f=r.horizontalCoordinatesGenerator,d=r.verticalCoordinatesGenerator,p=r.xAxis,m=r.yAxis,v=r.offset,g=r.chartWidth,w=r.chartHeight,y=r.syncWithTicks,_=r.horizontalValues,x=r.verticalValues;if(!je(a)||a<=0||!je(s)||s<=0||!je(i)||i!==+i||!je(o)||o!==+o)return null;var O=this.props,E=O.horizontalPoints,T=O.verticalPoints;if((!E||!E.length)&&Qe(f)){var k=_&&_.length;E=f({yAxis:m?ls(ls({},m),{},{ticks:k?_:m.ticks}):void 0,width:g,height:w,offset:v},k?!0:y)}if((!T||!T.length)&&Qe(d)){var A=x&&x.length;T=d({xAxis:p?ls(ls({},p),{},{ticks:A?x:p.ticks}):void 0,width:g,height:w,offset:v},A?!0:y)}return M.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),l&&this.renderHorizontal(E),u&&this.renderVertical(T),l&&this.renderHorizontalStripes(E),u&&this.renderVerticalStripes(T))}}],[{key:"renderLineItem",value:function(r,i){var o;if(M.isValidElement(r))o=M.cloneElement(r,i);else if(Qe(r))o=r(i);else{var a=i.x1,s=i.y1,l=i.x2,u=i.y2,f=i.key,d=U5(i,p$e),p=Ve(d);p.offset;var m=U5(p,h$e);o=M.createElement("line",MC({},m,{x1:a,y1:s,x2:l,y2:u,fill:"none",key:f}))}return o}}]),n}(F.PureComponent);LA(Aw,"displayName","CartesianGrid");LA(Aw,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var S$e=["type","layout","connectNulls","ref"];function Xf(e){"@babel/helpers - typeof";return Xf=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},Xf(e)}function E$e(e,t){if(e==null)return{};var n=T$e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ch(){return ch=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},ch.apply(this,arguments)}function z5(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 Xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z5(Object(n),!0).forEach(function(r){oo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fc(e){return P$e(e)||j$e(e)||k$e(e)||C$e()}function C$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 k$e(e,t){if(e){if(typeof e=="string")return RC(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 RC(e,t)}}function j$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P$e(e){if(Array.isArray(e))return RC(e)}function RC(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 A$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V5(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,sW(r.key),r)}}function N$e(e,t,n){return t&&V5(e.prototype,t),n&&V5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M$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&&DC(e,t)}function DC(e,t){return DC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},DC(e,t)}function L$e(e){var t=D$e();return function(){var n=r_(e),r;if(t){var i=r_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return R$e(this,r)}}function R$e(e,t){if(t&&(Xf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ds(e)}function ds(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D$e(){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 r_(e){return r_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r_(e)}function oo(e,t,n){return t=sW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sW(e){var t=I$e(e,"string");return Xf(t)==="symbol"?t:String(t)}function I$e(e,t){if(Xf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pd=function(e){M$e(n,e);var t=L$e(n);function n(){var r;A$e(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),oo(ds(r),"state",{isAnimationFinished:!0,totalLength:0}),oo(ds(r),"generateSimpleStrokeDasharray",function(s,l){return"".concat(l,"px ").concat(s-l,"px")}),oo(ds(r),"getStrokeDasharray",function(s,l,u){var f=u.reduce(function(_,x){return _+x});if(!f)return r.generateSimpleStrokeDasharray(l,s);for(var d=Math.floor(s/f),p=s%f,m=l-s,v=[],g=0,w=0;g<u.length;w+=u[g],++g)if(w+u[g]>p){v=[].concat(fc(u.slice(0,g)),[p-w]);break}var y=v.length%2===0?[0,m]:[m];return[].concat(fc(n.repeat(u,d)),fc(v),y).map(function(_){return"".concat(_,"px")}).join(", ")}),oo(ds(r),"id",dl("recharts-line-")),oo(ds(r),"pathRef",function(s){r.mainCurve=s}),oo(ds(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),oo(ds(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return N$e(n,[{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 o=this.props,a=o.points,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,d=Mr(f,jd);if(!d)return null;var p=function(v,g){return{x:v.x,y:v.y,value:v.value,errorVal:Vt(v.payload,g)}},m={clipPath:r?"url(#clipPath-".concat(i,")"):null};return M.createElement(nt,m,d.map(function(v){return M.cloneElement(v,{key:"bar-".concat(v.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,dataPointFormatter:p})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,f=s.dataKey,d=Ve(this.props),p=Ve(l,!0),m=u.map(function(g,w){var y=Xr(Xr(Xr({key:"dot-".concat(w),r:3},d),p),{},{value:g.value,dataKey:f,cx:g.x,cy:g.y,index:w,payload:g.payload});return n.renderDotItem(l,y)}),v={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return M.createElement(nt,ch({className:"recharts-line-dots",key:"dots"},v),m)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,l=s.type,u=s.layout,f=s.connectNulls;s.ref;var d=E$e(s,S$e),p=Xr(Xr(Xr({},Ve(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:l,layout:u,connectNulls:f});return M.createElement(Hs,ch({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,l=a.strokeDasharray,u=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,m=a.animationId,v=a.animateNewValues,g=a.width,w=a.height,y=this.state,_=y.prevPoints,x=y.totalLength;return M.createElement(Wi,{begin:f,duration:d,isActive:u,easing:p,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var E=O.t;if(_){var T=_.length/s.length,k=s.map(function(z,G){var H=Math.floor(G*T);if(_[H]){var Q=_[H],Z=en(Q.x,z.x),te=en(Q.y,z.y);return Xr(Xr({},z),{},{x:Z(E),y:te(E)})}if(v){var X=en(g*2,z.x),$=en(w/2,z.y);return Xr(Xr({},z),{},{x:X(E),y:$(E)})}return Xr(Xr({},z),{},{x:z.x,y:z.y})});return o.renderCurveStatically(k,r,i)}var A=en(0,x),D=A(E),R;if(l){var I="".concat(l).split(/[,\s]+/gim).map(function(z){return parseFloat(z)});R=o.getStrokeDasharray(D,x,I)}else R=o.generateSimpleStrokeDasharray(x,D);return o.renderCurveStatically(s,r,i,{strokeDasharray:R})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,l=this.state,u=l.prevPoints,f=l.totalLength;return s&&a&&a.length&&(!u&&f>0||!tl(u,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.xAxis,f=i.yAxis,d=i.top,p=i.left,m=i.width,v=i.height,g=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var y=this.state.isAnimationFinished,_=s.length===1,x=We("recharts-line",l),O=u&&u.allowDataOverflow,E=f&&f.allowDataOverflow,T=O||E,k=Ze(w)?this.id:w,A=(r=Ve(a))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=A.r,R=D===void 0?3:D,I=A.strokeWidth,z=I===void 0?2:I,G=Ez(a)?a:{},H=G.clipDot,Q=H===void 0?!0:H,Z=R*2+z;return M.createElement(nt,{className:x},O||E?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(k)},M.createElement("rect",{x:O?p:p-m/2,y:E?d:d-v/2,width:O?m:m*2,height:E?v:v*2})),!Q&&M.createElement("clipPath",{id:"clipPath-dots-".concat(k)},M.createElement("rect",{x:p-Z/2,y:d-Z/2,width:m+Z,height:v+Z}))):null,!_&&this.renderCurve(T,k),this.renderErrorBar(T,k),(_||a)&&this.renderDots(T,Q,k),(!g||y)&&yo.renderCallByParent(this.props,s))}}],[{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 o=r.length%2!==0?[].concat(fc(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(fc(a),fc(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(M.isValidElement(r))o=M.cloneElement(r,i);else if(Qe(r))o=r(i);else{var a=We("recharts-line-dot",r?r.className:"");o=M.createElement(Ev,ch({},i,{className:a}))}return o}}]),n}(F.PureComponent);oo(Pd,"displayName","Line");oo(Pd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ii.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});oo(Pd,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,f=t.layout,d=l.map(function(p,m){var v=Vt(p,a);return f==="horizontal"?{x:Vf({axis:n,ticks:i,bandSize:s,entry:p,index:m}),y:Ze(v)?null:r.scale(v),value:v,payload:p}:{x:Ze(v)?null:n.scale(v),y:Vf({axis:r,ticks:o,bandSize:s,entry:p,index:m}),value:v,payload:p}});return Xr({points:d,layout:f},u)});var F$e=["layout","type","stroke","connectNulls","isRange","ref"],lW;function Qf(e){"@babel/helpers - typeof";return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}function U$e(e,t){if(e==null)return{};var n=$$e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Zl(){return Zl=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},Zl.apply(this,arguments)}function H5(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 ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H5(Object(n),!0).forEach(function(r){$o(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W5(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,uW(r.key),r)}}function z$e(e,t,n){return t&&W5(e.prototype,t),n&&W5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function V$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&&IC(e,t)}function IC(e,t){return IC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},IC(e,t)}function H$e(e){var t=Y$e();return function(){var n=i_(e),r;if(t){var i=i_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return W$e(this,r)}}function W$e(e,t){if(t&&(Qf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ap(e)}function Ap(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y$e(){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 i_(e){return i_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i_(e)}function $o(e,t,n){return t=uW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uW(e){var t=G$e(e,"string");return Qf(t)==="symbol"?t:String(t)}function G$e(e,t){if(Qf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $u=function(e){V$e(n,e);var t=H$e(n);function n(){var r;B$e(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),$o(Ap(r),"state",{isAnimationFinished:!0}),$o(Ap(r),"id",dl("recharts-area-")),$o(Ap(r),"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Qe(s)&&s()}),$o(Ap(r),"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Qe(s)&&s()}),r}return z$e(n,[{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var l=this.props,u=l.dot,f=l.points,d=l.dataKey,p=Ve(this.props),m=Ve(u,!0),v=f.map(function(w,y){var _=ps(ps(ps({key:"dot-".concat(y),r:3},p),m),{},{dataKey:d,cx:w.x,cy:w.y,index:y,value:w.value,payload:w.payload});return n.renderDotItem(u,_)}),g={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return M.createElement(nt,Zl({className:"recharts-area-dots"},g),v)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,l=a[0].x,u=a[a.length-1].x,f=r*Math.abs(l-u),d=js(a.map(function(p){return p.y||0}));return je(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(js(o.map(function(p){return p.y||0})),d)),je(d)?M.createElement("rect",{x:l<u?l:l-f,y:0,width:f,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,l=a[0].y,u=a[a.length-1].y,f=r*Math.abs(l-u),d=js(a.map(function(p){return p.x||0}));return je(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(js(o.map(function(p){return p.x||0})),d)),je(d)?M.createElement("rect",{x:0,y:l<u?l:l-f,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):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,o,a){var s=this.props,l=s.layout,u=s.type,f=s.stroke,d=s.connectNulls,p=s.isRange;s.ref;var m=U$e(s,F$e);return M.createElement(nt,{clipPath:o?"url(#clipPath-".concat(a,")"):null},M.createElement(Hs,Zl({},Ve(m,!0),{points:r,connectNulls:d,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&M.createElement(Hs,Zl({},Ve(this.props),{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:r})),f!=="none"&&p&&M.createElement(Hs,Zl({},Ve(this.props),{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,l=a.baseLine,u=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,m=a.animationId,v=this.state,g=v.prevPoints,w=v.prevBaseLine;return M.createElement(Wi,{begin:f,duration:d,isActive:u,easing:p,from:{t:0},to:{t:1},key:"area-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var _=y.t;if(g){var x=g.length/s.length,O=s.map(function(A,D){var R=Math.floor(D*x);if(g[R]){var I=g[R],z=en(I.x,A.x),G=en(I.y,A.y);return ps(ps({},A),{},{x:z(_),y:G(_)})}return A}),E;if(je(l)&&typeof l=="number"){var T=en(w,l);E=T(_)}else if(Ze(l)||wd(l)){var k=en(w,0);E=k(_)}else E=l.map(function(A,D){var R=Math.floor(D*x);if(w[R]){var I=w[R],z=en(I.x,A.x),G=en(I.y,A.y);return ps(ps({},A),{},{x:z(_),y:G(_)})}return A});return o.renderAreaStatically(O,E,r,i)}return M.createElement(nt,null,M.createElement("defs",null,M.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(_))),M.createElement(nt,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,l,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,a=o.points,s=o.baseLine,l=o.isAnimationActive,u=this.state,f=u.prevPoints,d=u.prevBaseLine,p=u.totalLength;return l&&a&&a.length&&(!f&&p>0||!tl(f,a)||!tl(d,s))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(a,s,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,d=i.xAxis,p=i.yAxis,m=i.width,v=i.height,g=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var y=this.state.isAnimationFinished,_=s.length===1,x=We("recharts-area",l),O=d&&d.allowDataOverflow,E=p&&p.allowDataOverflow,T=O||E,k=Ze(w)?this.id:w,A=(r=Ve(a))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=A.r,R=D===void 0?3:D,I=A.strokeWidth,z=I===void 0?2:I,G=Ez(a)?a:{},H=G.clipDot,Q=H===void 0?!0:H,Z=R*2+z;return M.createElement(nt,{className:x},O||E?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(k)},M.createElement("rect",{x:O?f:f-m/2,y:E?u:u-v/2,width:O?m:m*2,height:E?v:v*2})),!Q&&M.createElement("clipPath",{id:"clipPath-dots-".concat(k)},M.createElement("rect",{x:f-Z/2,y:u-Z/2,width:m+Z,height:v+Z}))):null,_?null:this.renderArea(T,k),(a||_)&&this.renderDots(T,Q,k),(!g||y)&&yo.renderCallByParent(this.props,s))}}],[{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}}]),n}(F.PureComponent);lW=$u;$o($u,"displayName","Area");$o($u,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ii.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});$o($u,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(je(s)&&typeof s=="number")return s;var l=i==="horizontal"?r:n,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return s==="dataMin"?d:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});$o($u,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,m=t.layout,v=u&&u.length,g=lW.getBaseValue(t,n,r,i),w=m==="horizontal",y=!1,_=d.map(function(O,E){var T;v?T=u[f+E]:(T=Vt(O,l),Array.isArray(T)?y=!0:T=[g,T]);var k=T[1]==null||v&&Vt(O,l)==null;return w?{x:Vf({axis:r,ticks:o,bandSize:s,entry:O,index:E}),y:k?null:i.scale(T[1]),value:T,payload:O}:{x:k?null:r.scale(T[1]),y:Vf({axis:i,ticks:a,bandSize:s,entry:O,index:E}),value:T,payload:O}}),x;return v||y?x=_.map(function(O){var E=Array.isArray(O.value)?O.value[0]:null;return w?{x:O.x,y:E!=null&&O.y!=null?i.scale(E):null}:{x:E!=null?r.scale(E):null,y:O.y}}):x=w?i.scale(g):r.scale(g),ps({points:_,baseLine:x,layout:m,isRange:y},p)});$o($u,"renderDotItem",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Qe(e)?n=e(t):n=M.createElement(Ev,Zl({},t,{className:"recharts-area-dot"})),n});var Nw=function(){return null};Nw.displayName="ZAxis";Nw.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var q$e=["option","isActive"];function fh(){return fh=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},fh.apply(this,arguments)}function K$e(e,t){if(e==null)return{};var n=Z$e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function X$e(e){var t=e.option,n=e.isActive,r=K$e(e,q$e);return typeof t=="string"?M.createElement(Gb,fh({option:M.createElement(cw,fh({type:t},r)),isActive:n,shapeType:"symbols"},r)):M.createElement(Gb,fh({option:t,isActive:n,shapeType:"symbols"},r))}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 dh(){return dh=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},dh.apply(this,arguments)}function Y5(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?Y5(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G5(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,cW(r.key),r)}}function J$e(e,t,n){return t&&G5(e.prototype,t),n&&G5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function e7e(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(n,r){return n.__proto__=r,n},FC(e,t)}function t7e(e){var t=r7e();return function(){var n=o_(e),r;if(t){var i=o_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return n7e(this,r)}}function n7e(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 Np(e)}function Np(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r7e(){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 o_(e){return o_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o_(e)}function As(e,t,n){return t=cW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cW(e){var t=i7e(e,"string");return Jf(t)==="symbol"?t:String(t)}function i7e(e,t){if(Jf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mw=function(e){e7e(n,e);var t=t7e(n);function n(){var r;Q$e(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),As(Np(r),"state",{isAnimationFinished:!1}),As(Np(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),As(Np(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),As(Np(r),"id",dl("recharts-scatter-")),r}return J$e(n,[{key:"renderSymbolsStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.activeShape,l=o.activeIndex,u=Ve(this.props);return r.map(function(f,d){var p=l===d,m=p?s:a,v=Si(Si({key:"symbol-".concat(d)},u),f);return M.createElement(nt,dh({className:"recharts-scatter-symbol"},el(i.props,f,d),{key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size),role:"img"}),M.createElement(X$e,dh({option:m,isActive:p},v)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,o=i.points,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,d=this.state.prevPoints;return M.createElement(Wi,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,v=o.map(function(g,w){var y=d&&d[w];if(y){var _=en(y.cx,g.cx),x=en(y.cy,g.cy),O=en(y.size,g.size);return Si(Si({},g),{},{cx:_(m),cy:x(m),size:O(m)})}var E=en(0,g.size);return Si(Si({},g),{},{size:E(m)})});return M.createElement(nt,null,r.renderSymbolsStatically(v))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,o=r.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!tl(a,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,o=i.points,a=i.xAxis,s=i.yAxis,l=i.children,u=Mr(l,jd);return u?u.map(function(f,d){var p=f.props,m=p.direction,v=p.dataKey;return M.cloneElement(f,{key:"".concat(m,"-").concat(v,"-").concat(o[d]),data:o,xAxis:a,yAxis:s,layout:m==="x"?"vertical":"horizontal",dataPointFormatter:function(g,w){return{x:g.cx,y:g.cy,value:m==="x"?+g.node.x:+g.node.y,errorVal:Vt(g,w)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,o=r.line,a=r.lineType,s=r.lineJointType,l=Ve(this.props),u=Ve(o),f,d;if(a==="joint")f=i.map(function(x){return{x:x.cx,y:x.cy}});else if(a==="fitting"){var p=a1e(i),m=p.xmin,v=p.xmax,g=p.a,w=p.b,y=function(x){return g*x+w};f=[{x:m,y:y(m)},{x:v,y:y(v)}]}var _=Si(Si(Si({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:f});return M.isValidElement(o)?d=M.cloneElement(o,_):Qe(o)?d=o(_):d=M.createElement(Hs,dh({},_,{type:s})),M.createElement(nt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},d)}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.points,a=r.line,s=r.className,l=r.xAxis,u=r.yAxis,f=r.left,d=r.top,p=r.width,m=r.height,v=r.id,g=r.isAnimationActive;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,y=We("recharts-scatter",s),_=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,O=_||x,E=Ze(v)?this.id:v;return M.createElement(nt,{className:y,clipPath:O?"url(#clipPath-".concat(E,")"):null},_||x?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(E)},M.createElement("rect",{x:_?f:f-p/2,y:x?d:d-m/2,width:_?p:p*2,height:x?m:m*2}))):null,a&&this.renderLine(),this.renderErrorBar(),M.createElement(nt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!g||w)&&yo.renderCallByParent(this.props,o))}}],[{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}}]),n}(F.PureComponent);As(Mw,"displayName","Scatter");As(Mw,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Ii.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});As(Mw,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,f=Mr(i.props.children,xu),d=Ze(t.dataKey)?i.props.dataKey:t.dataKey,p=Ze(n.dataKey)?i.props.dataKey:n.dataKey,m=r&&r.dataKey,v=r?r.range:Nw.defaultProps.range,g=v&&v[0],w=t.scale.bandwidth?t.scale.bandwidth():0,y=n.scale.bandwidth?n.scale.bandwidth():0,_=o.map(function(x,O){var E=Vt(x,d),T=Vt(x,p),k=!Ze(m)&&Vt(x,m)||"-",A=[{name:Ze(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:E,payload:x,dataKey:d,type:u},{name:Ze(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:T,payload:x,dataKey:p,type:u}];k!=="-"&&A.push({name:r.name||r.dataKey,unit:r.unit||"",value:k,payload:x,dataKey:m,type:u});var D=Vf({axis:t,ticks:a,bandSize:w,entry:x,index:O,dataKey:d}),R=Vf({axis:n,ticks:s,bandSize:y,entry:x,index:O,dataKey:p}),I=k!=="-"?r.scale(k):g,z=Math.sqrt(Math.max(I,0)/Math.PI);return Si(Si({},x),{},{cx:D,cy:R,x:D-z,y:R-z,xAxis:t,yAxis:n,zAxis:r,width:2*z,height:2*z,size:I,node:{x:E,y:T,z:k},tooltipPayload:A,tooltipPosition:{x:D,y:R},payload:x},f&&f[O]&&f[O].props)});return Si({points:_},l)});var Ad=function(){return null};Ad.displayName="XAxis";Ad.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};var Nd=function(){return null};Nd.displayName="YAxis";Nd.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};var o7e=ia,a7e=_v,s7e=fw;function l7e(e){return function(t,n,r){var i=Object(t);if(!a7e(t)){var o=o7e(n);t=s7e(t),n=function(s){return o(i[s],s,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}var u7e=l7e,c7e=KH;function f7e(e){var t=c7e(e),n=t%1;return t===t?n?t-n:t:0}var d7e=f7e,p7e=hV,h7e=ia,m7e=d7e,v7e=Math.max;function g7e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:m7e(n);return i<0&&(i=v7e(r+i,0)),p7e(e,h7e(t),i)}var y7e=g7e,b7e=u7e,_7e=y7e,w7e=b7e(_7e),x7e=w7e;const O7e=Ot(x7e);var S7e="Invariant failed";function E7e(e,t){if(!e)throw new Error(S7e)}function fW(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=It(t,n,r,i),s=It(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function q5(e){return j7e(e)||k7e(e)||C7e(e)||T7e()}function T7e(){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 C7e(e,t){if(e){if(typeof e=="string")return UC(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 UC(e,t)}}function k7e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j7e(e){if(Array.isArray(e))return UC(e)}function UC(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 $C=function(e,t,n,r,i){var o=Mr(e,NA),a=Mr(e,Tv),s=[].concat(q5(o),q5(a)),l=Mr(e,Cv),u="".concat(r,"Id"),f=r[0],d=t;if(s.length&&(d=s.reduce(function(v,g){if(g.props[u]===n&&Ko(g.props,"extendDomain")&&je(g.props[f])){var w=g.props[f];return[Math.min(v[0],w),Math.max(v[1],w)]}return v},d)),l.length){var p="".concat(f,"1"),m="".concat(f,"2");d=l.reduce(function(v,g){if(g.props[u]===n&&Ko(g.props,"extendDomain")&&je(g.props[p])&&je(g.props[m])){var w=g.props[p],y=g.props[m];return[Math.min(v[0],w,y),Math.max(v[1],w,y)]}return v},d)}return i&&i.length&&(d=i.reduce(function(v,g){return je(g)?[Math.min(v[0],g),Math.max(v[1],g)]:v},d)),d},dW={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function o(l,u,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var m=new i(f,d||l,p),v=n?n+u:u;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],m]:l._events[v].push(m):(l._events[v]=m,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)t.call(u,f)&&l.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},s.prototype.listeners=function(l){var u=n?n+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,m=new Array(p);d<p;d++)m[d]=f[d].fn;return m},s.prototype.listenerCount=function(l){var u=n?n+l:l,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(l,u,f,d,p,m){var v=n?n+l:l;if(!this._events[v])return!1;var g=this._events[v],w=arguments.length,y,_;if(g.fn){switch(g.once&&this.removeListener(l,g.fn,void 0,!0),w){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,f),!0;case 4:return g.fn.call(g.context,u,f,d),!0;case 5:return g.fn.call(g.context,u,f,d,p),!0;case 6:return g.fn.call(g.context,u,f,d,p,m),!0}for(_=1,y=new Array(w-1);_<w;_++)y[_-1]=arguments[_];g.fn.apply(g.context,y)}else{var x=g.length,O;for(_=0;_<x;_++)switch(g[_].once&&this.removeListener(l,g[_].fn,void 0,!0),w){case 1:g[_].fn.call(g[_].context);break;case 2:g[_].fn.call(g[_].context,u);break;case 3:g[_].fn.call(g[_].context,u,f);break;case 4:g[_].fn.call(g[_].context,u,f,d);break;default:if(!y)for(O=1,y=new Array(w-1);O<w;O++)y[O-1]=arguments[O];g[_].fn.apply(g[_].context,y)}}return!0},s.prototype.on=function(l,u,f){return o(this,l,u,f,!1)},s.prototype.once=function(l,u,f){return o(this,l,u,f,!0)},s.prototype.removeListener=function(l,u,f,d){var p=n?n+l:l;if(!this._events[p])return this;if(!u)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===u&&(!d||m.once)&&(!f||m.context===f)&&a(this,p);else{for(var v=0,g=[],w=m.length;v<w;v++)(m[v].fn!==u||d&&!m[v].once||f&&m[v].context!==f)&&g.push(m[v]);g.length?this._events[p]=g.length===1?g[0]:g:a(this,p)}return this},s.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(dW);var P7e=dW.exports;const A7e=Ot(P7e);var e1=new A7e,t1="recharts.syncMouseEvents";function Vm(e){"@babel/helpers - typeof";return Vm=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},Vm(e)}function N7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K5(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,pW(r.key),r)}}function M7e(e,t,n){return t&&K5(e.prototype,t),n&&K5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n1(e,t,n){return t=pW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pW(e){var t=L7e(e,"string");return Vm(t)==="symbol"?t:String(t)}function L7e(e,t){if(Vm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R7e=function(){function e(){N7e(this,e),n1(this,"activeIndex",0),n1(this,"coordinateList",[]),n1(this,"layout","horizontal")}return M7e(e,[{key:"setDetails",value:function(t){var n=t.coordinateList,r=n===void 0?[]:n,i=t.container,o=i===void 0?null:i,a=t.layout,s=a===void 0?null:a,l=t.offset,u=l===void 0?null:l,f=t.mouseHandlerCallback,d=f===void 0?null:f;this.coordinateList=r??this.coordinateList,this.container=o??this.container,this.layout=s??this.layout,this.offset=u??this.offset,this.mouseHandlerCallback=d??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(t){if(this.coordinateList.length!==0)switch(t.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:"spoofMouse",value:function(){var t,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var r=this.container.getBoundingClientRect(),i=r.x,o=r.y,a=r.height,s=this.coordinateList[this.activeIndex].coordinate,l=((t=window)===null||t===void 0?void 0:t.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+s+l,d=o+this.offset.top+a/2+u;this.mouseHandlerCallback({pageX:f,pageY:d})}}}]),e}();function D7e(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&&je(r)&&je(i))return!0}return!1}function I7e(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,p=It(s,l,u,d),m=It(s,l,f,d);r=p.x,i=p.y,o=m.x,a=m.y}else return fW(t);return[{x:r,y:i},{x:o,y:a}]}function F7e(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}}var U7e=["item"],$7e=["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 Z5(e,t){return V7e(e)||z7e(e,t)||hW(e,t)||B7e()}function B7e(){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 z7e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function V7e(e){if(Array.isArray(e))return 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 X5(e,t){if(e==null)return{};var n=H7e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function H7e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function W7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q5(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,mW(r.key),r)}}function Y7e(e,t,n){return t&&Q5(e.prototype,t),n&&Q5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G7e(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&&BC(e,t)}function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},BC(e,t)}function q7e(e){var t=Z7e();return function(){var n=a_(e),r;if(t){var i=a_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return K7e(this,r)}}function K7e(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 ot(e)}function ot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z7e(){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 a_(e){return a_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a_(e)}function td(e){return J7e(e)||Q7e(e)||hW(e)||X7e()}function X7e(){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 hW(e,t){if(e){if(typeof e=="string")return zC(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 zC(e,t)}}function Q7e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function J7e(e){if(Array.isArray(e))return zC(e)}function zC(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 J5(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 ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J5(Object(n),!0).forEach(function(r){Ge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ge(e,t,n){return t=mW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mW(e){var t=eBe(e,"string");return ed(t)==="symbol"?t:String(t)}function eBe(e,t){if(ed(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ed(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tBe={xAxis:["bottom","top"],yAxis:["left","right"]},nBe={width:"100%",height:"100%"},vW={x:0,y:0},rBe=function(e,t){return t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius},iBe=function(e,t,n,r){var i=t.find(function(u){return u&&u.index===n});if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,a=r.radius;return ye(ye(ye({},r),It(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,l=r.angle;return ye(ye(ye({},r),It(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return vW},Lw=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,i=t.dataEndIndex,o=(n??[]).reduce(function(a,s){var l=s.props.data;return l&&l.length?[].concat(td(a),td(l)):a},[]);return o.length>0?o:e&&e.length&&je(r)&&je(i)?e.slice(r,i+1):[]};function gW(e){return e==="number"?[0,"auto"]:void 0}var yW=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=Lw(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce(function(s,l){var u,f=l.props.hide;if(f)return s;var d=(u=l.props.data)!==null&&u!==void 0?u:t;d&&e.dataStartIndex+e.dataEndIndex!==0&&(d=d.slice(e.dataStartIndex,e.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var m=d===void 0?a:d;p=lb(m,o.dataKey,r)}else p=d&&d[n]||a[n];return p?[].concat(td(s),[UH(l,p)]):s},[])},e8=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=rBe(i,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,u=k4e(o,a,l,s);if(u>=0&&l){var f=l[u]&&l[u].value,d=yW(e,t,u,f),p=iBe(n,a,u,i);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},oBe=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,f=e.children,d=e.stackOffset,p=LH(u,i);return n.reduce(function(m,v){var g,w=v.props,y=w.type,_=w.dataKey,x=w.allowDataOverflow,O=w.allowDuplicatedCategory,E=w.scale,T=w.ticks,k=w.includeHidden,A=v.props[o];if(m[A])return m;var D=Lw(e.data,{graphicalItems:r.filter(function(W){return W.props[o]===A}),dataStartIndex:s,dataEndIndex:l}),R=D.length,I,z,G;D7e(v.props.domain,x,y)&&(I=hC(v.props.domain,null,x),p&&(y==="number"||E!=="auto")&&(G=Ay(D,_,"category")));var H=gW(y);if(!I||I.length===0){var Q,Z=(Q=v.props.domain)!==null&&Q!==void 0?Q:H;if(_){if(I=Ay(D,_,y),y==="category"&&p){var te=o1e(I);O&&te?(z=I,I=Kb(0,R)):O||(I=D6(Z,I,v).reduce(function(W,re){return W.indexOf(re)>=0?W:[].concat(td(W),[re])},[]))}else if(y==="category")O?I=I.filter(function(W){return W!==""&&!Ze(W)}):I=D6(Z,I,v).reduce(function(W,re){return W.indexOf(re)>=0||re===""||Ze(re)?W:[].concat(td(W),[re])},[]);else if(y==="number"){var X=M4e(D,r.filter(function(W){return W.props[o]===A&&(k||!W.props.hide)}),_,i,u);X&&(I=X)}p&&(y==="number"||E!=="auto")&&(G=Ay(D,_,"category"))}else p?I=Kb(0,R):a&&a[A]&&a[A].hasStack&&y==="number"?I=d==="expand"?[0,1]:FH(a[A].stackGroups,s,l):I=MH(D,r.filter(function(W){return W.props[o]===A&&(k||!W.props.hide)}),y,u,!0);if(y==="number")I=$C(f,I,A,i,T),Z&&(I=hC(Z,I,x));else if(y==="category"&&Z){var $=Z,V=I.every(function(W){return $.indexOf(W)>=0});V&&(I=$)}}return ye(ye({},m),{},Ge({},A,ye(ye({},v.props),{},{axisType:i,domain:I,categoricalDomain:G,duplicateDomain:z,originalDomain:(g=v.props.domain)!==null&&g!==void 0?g:H,isCategorical:p,layout:u})))},{})},aBe=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,f=e.children,d=Lw(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,m=LH(u,i),v=-1;return n.reduce(function(g,w){var y=w.props[o],_=gW("number");if(!g[y]){v++;var x;return m?x=Kb(0,p):a&&a[y]&&a[y].hasStack?(x=FH(a[y].stackGroups,s,l),x=$C(f,x,y,i)):(x=hC(_,MH(d,n.filter(function(O){return O.props[o]===y&&!O.props.hide}),"number",u),r.defaultProps.allowDataOverflow),x=$C(f,x,y,i)),ye(ye({},g),{},Ge({},y,ye(ye({axisType:i},r.defaultProps),{},{hide:!0,orientation:ai(tBe,"".concat(i,".").concat(v%2),null),domain:x,originalDomain:_,isCategorical:m,layout:u})))}return g},{})},sBe=function(e,t){var n=t.axisType,r=n===void 0?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.children,f="".concat(r,"Id"),d=Mr(u,i),p={};return d&&d.length?p=oBe(e,{axes:d,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=aBe(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),p},lBe=function(e){var t=cs(e),n=fs(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:tA(n,function(r){return r.coordinate}),tooltipAxis:t,tooltipAxisBandSize:Ub(t,n)}},t8=function(e){var t=e.children,n=e.defaultShowTooltip,r=ba(t,Dm),i=0,o=0;return e.data&&e.data.length!==0&&(o=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},uBe=function(e){return!e||!e.length?!1:e.some(function(t){var n=Ea(t&&t.type);return n&&n.indexOf("Bar")>=0})},n8=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},cBe=function(e,t){var n=e.props,r=e.graphicalItems,i=e.xAxisMap,o=i===void 0?{}:i,a=e.yAxisMap,s=a===void 0?{}:a,l=n.width,u=n.height,f=n.children,d=n.margin||{},p=ba(f,Dm),m=ba(f,sm),v=Object.keys(s).reduce(function(O,E){var T=s[E],k=T.orientation;return!T.mirror&&!T.hide?ye(ye({},O),{},Ge({},k,O[k]+T.width)):O},{left:d.left||0,right:d.right||0}),g=Object.keys(o).reduce(function(O,E){var T=o[E],k=T.orientation;return!T.mirror&&!T.hide?ye(ye({},O),{},Ge({},k,ai(O,"".concat(k))+T.height)):O},{top:d.top||0,bottom:d.bottom||0}),w=ye(ye({},g),v),y=w.bottom;p&&(w.bottom+=p.props.height||Dm.defaultProps.height),m&&t&&(w=A4e(w,r,n,t));var _=l-w.left-w.right,x=u-w.top-w.bottom;return ye(ye({brushBottom:y},w),{},{width:Math.max(_,0),height:Math.max(x,0)})},RA=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,o=i===void 0?"axis":i,a=e.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(v,g){var w=g.graphicalItems,y=g.stackGroups,_=g.offset,x=g.updateId,O=g.dataStartIndex,E=g.dataEndIndex,T=v.barSize,k=v.layout,A=v.barGap,D=v.barCategoryGap,R=v.maxBarSize,I=n8(k),z=I.numericAxisName,G=I.cateAxisName,H=uBe(w),Q=H&&j4e({barSize:T,stackGroups:y}),Z=[];return w.forEach(function(te,X){var $=Lw(v.data,{graphicalItems:[te],dataStartIndex:O,dataEndIndex:E}),V=te.props,W=V.dataKey,re=V.maxBarSize,q=te.props["".concat(z,"Id")],ee=te.props["".concat(G,"Id")],ie={},se=l.reduce(function(Oe,Ce){var ke,Ae=g["".concat(Ce.axisType,"Map")],ce=te.props["".concat(Ce.axisType,"Id")];Ae&&Ae[ce]||Ce.axisType==="zAxis"||E7e(!1);var de=Ae[ce];return ye(ye({},Oe),{},(ke={},Ge(ke,Ce.axisType,de),Ge(ke,"".concat(Ce.axisType,"Ticks"),fs(de)),ke))},ie),fe=se[G],j=se["".concat(G,"Ticks")],P=y&&y[q]&&y[q].hasStack&&z4e(te,y[q].stackGroups),B=Ea(te.type).indexOf("Bar")>=0,J=Ub(fe,j),K=[];if(B){var le,he,Ee=Ze(re)?R:re,ue=(le=(he=Ub(fe,j,!0))!==null&&he!==void 0?he:Ee)!==null&&le!==void 0?le:0;K=P4e({barGap:A,barCategoryGap:D,bandSize:ue!==J?ue:J,sizeList:Q[ee],maxBarSize:Ee}),ue!==J&&(K=K.map(function(Oe){return ye(ye({},Oe),{},{position:ye(ye({},Oe.position),{},{offset:Oe.position.offset-ue/2})})}))}var ve=te&&te.type&&te.type.getComposedData;if(ve){var ge;Z.push({props:ye(ye({},ve(ye(ye({},se),{},{displayedData:$,props:v,dataKey:W,item:te,bandSize:J,barPosition:K,offset:_,stackedData:P,layout:k,dataStartIndex:O,dataEndIndex:E}))),{},(ge={key:te.key||"item-".concat(X)},Ge(ge,z,se[z]),Ge(ge,G,se[G]),Ge(ge,"animationId",x),ge)),childIndex:g1e(te,v.children),item:te})}}),Z},m=function(v,g){var w=v.props,y=v.dataStartIndex,_=v.dataEndIndex,x=v.updateId;if(!uI({props:w}))return null;var O=w.children,E=w.layout,T=w.stackOffset,k=w.data,A=w.reverseStackOrder,D=n8(E),R=D.numericAxisName,I=D.cateAxisName,z=Mr(O,r),G=$4e(k,z,"".concat(R,"Id"),"".concat(I,"Id"),T,A),H=l.reduce(function($,V){var W="".concat(V.axisType,"Map");return ye(ye({},$),{},Ge({},W,sBe(w,ye(ye({},V),{},{graphicalItems:z,stackGroups:V.axisType===R&&G,dataStartIndex:y,dataEndIndex:_}))))},{}),Q=cBe(ye(ye({},H),{},{props:w,graphicalItems:z}),g==null?void 0:g.legendBBox);Object.keys(H).forEach(function($){H[$]=f(w,H[$],Q,$.replace("Map",""),n)});var Z=H["".concat(I,"Map")],te=lBe(Z),X=p(w,ye(ye({},H),{},{dataStartIndex:y,dataEndIndex:_,updateId:x,graphicalItems:z,stackGroups:G,offset:Q}));return ye(ye({formattedGraphicalItems:X,graphicalItems:z,offset:Q,stackGroups:G},te),H)};return t=function(v){G7e(w,v);var g=q7e(w);function w(y){var _,x,O;return W7e(this,w),O=g.call(this,y),Ge(ot(O),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ge(ot(O),"accessibilityManager",new R7e),Ge(ot(O),"handleLegendBBoxUpdate",function(E){if(E){var T=O.state,k=T.dataStartIndex,A=T.dataEndIndex,D=T.updateId;O.setState(ye({legendBBox:E},m({props:O.props,dataStartIndex:k,dataEndIndex:A,updateId:D},ye(ye({},O.state),{},{legendBBox:E}))))}}),Ge(ot(O),"handleReceiveSyncEvent",function(E,T,k){if(O.props.syncId===E){if(k===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(T)}}),Ge(ot(O),"handleBrushChange",function(E){var T=E.startIndex,k=E.endIndex;if(T!==O.state.dataStartIndex||k!==O.state.dataEndIndex){var A=O.state.updateId;O.setState(function(){return ye({dataStartIndex:T,dataEndIndex:k},m({props:O.props,dataStartIndex:T,dataEndIndex:k,updateId:A},O.state))}),O.triggerSyncEvent({dataStartIndex:T,dataEndIndex:k})}}),Ge(ot(O),"handleMouseEnter",function(E){var T=O.getMouseInfo(E);if(T){var k=ye(ye({},T),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var A=O.props.onMouseEnter;Qe(A)&&A(k,E)}}),Ge(ot(O),"triggeredAfterMouseMove",function(E){var T=O.getMouseInfo(E),k=T?ye(ye({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(k),O.triggerSyncEvent(k);var A=O.props.onMouseMove;Qe(A)&&A(k,E)}),Ge(ot(O),"handleItemMouseEnter",function(E){O.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),Ge(ot(O),"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Ge(ot(O),"handleMouseMove",function(E){E.persist(),O.throttleTriggeredAfterMouseMove(E)}),Ge(ot(O),"handleMouseLeave",function(E){var T={isTooltipActive:!1};O.setState(T),O.triggerSyncEvent(T);var k=O.props.onMouseLeave;Qe(k)&&k(T,E)}),Ge(ot(O),"handleOuterEvent",function(E){var T=v1e(E),k=ai(O.props,"".concat(T));if(T&&Qe(k)){var A,D;/.*touch.*/i.test(T)?D=O.getMouseInfo(E.changedTouches[0]):D=O.getMouseInfo(E),k((A=D)!==null&&A!==void 0?A:{},E)}}),Ge(ot(O),"handleClick",function(E){var T=O.getMouseInfo(E);if(T){var k=ye(ye({},T),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var A=O.props.onClick;Qe(A)&&A(k,E)}}),Ge(ot(O),"handleMouseDown",function(E){var T=O.props.onMouseDown;if(Qe(T)){var k=O.getMouseInfo(E);T(k,E)}}),Ge(ot(O),"handleMouseUp",function(E){var T=O.props.onMouseUp;if(Qe(T)){var k=O.getMouseInfo(E);T(k,E)}}),Ge(ot(O),"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),Ge(ot(O),"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.handleMouseDown(E.changedTouches[0])}),Ge(ot(O),"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.handleMouseUp(E.changedTouches[0])}),Ge(ot(O),"triggerSyncEvent",function(E){O.props.syncId!==void 0&&e1.emit(t1,O.props.syncId,E,O.eventEmitterSymbol)}),Ge(ot(O),"applySyncEvent",function(E){var T=O.props,k=T.layout,A=T.syncMethod,D=O.state.updateId,R=E.dataStartIndex,I=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)O.setState(ye({dataStartIndex:R,dataEndIndex:I},m({props:O.props,dataStartIndex:R,dataEndIndex:I,updateId:D},O.state)));else if(E.activeTooltipIndex!==void 0){var z=E.chartX,G=E.chartY,H=E.activeTooltipIndex,Q=O.state,Z=Q.offset,te=Q.tooltipTicks;if(!Z)return;if(typeof A=="function")H=A(te,E);else if(A==="value"){H=-1;for(var X=0;X<te.length;X++)if(te[X].value===E.activeLabel){H=X;break}}var $=ye(ye({},Z),{},{x:Z.left,y:Z.top}),V=Math.min(z,$.x+$.width),W=Math.min(G,$.y+$.height),re=te[H]&&te[H].value,q=yW(O.state,O.props.data,H),ee=te[H]?{x:k==="horizontal"?te[H].coordinate:V,y:k==="horizontal"?W:te[H].coordinate}:vW;O.setState(ye(ye({},E),{},{activeLabel:re,activeCoordinate:ee,activePayload:q,activeTooltipIndex:H}))}else O.setState(E)}),Ge(ot(O),"verticalCoordinatesGenerator",function(E,T){var k=E.xAxis,A=E.width,D=E.height,R=E.offset;return A6(AC(ye(ye(ye({},uh.defaultProps),k),{},{ticks:fs(k,!0),viewBox:{x:0,y:0,width:A,height:D}})),R.left,R.left+R.width,T)}),Ge(ot(O),"horizontalCoordinatesGenerator",function(E,T){var k=E.yAxis,A=E.width,D=E.height,R=E.offset;return A6(AC(ye(ye(ye({},uh.defaultProps),k),{},{ticks:fs(k,!0),viewBox:{x:0,y:0,width:A,height:D}})),R.top,R.top+R.height,T)}),Ge(ot(O),"axesTicksGenerator",function(E){return fs(E,!0)}),Ge(ot(O),"renderCursor",function(E){var T,k=O.state,A=k.isTooltipActive,D=k.activeCoordinate,R=k.activePayload,I=k.offset,z=k.activeTooltipIndex,G=k.tooltipAxisBandSize,H=O.getTooltipEventType(),Q=(T=E.props.active)!==null&&T!==void 0?T:A;if(!E||!E.props.cursor||!Q||!D||n!=="ScatterChart"&&H!=="axis")return null;var Z=O.props.layout,te,X=Hs;if(n==="ScatterChart")te=D,X=S5e;else if(n==="BarChart")te=F7e(Z,D,I,G),X=PA;else if(Z==="radial"){var $=fW(D),V=$.cx,W=$.cy,re=$.radius,q=$.startAngle,ee=$.endAngle;te={cx:V,cy:W,startAngle:q,endAngle:ee,innerRadius:re,outerRadius:re},X=HH}else te={points:I7e(Z,D,I)},X=Hs;var ie=E.key||"_recharts-cursor",se=ye(ye(ye(ye({stroke:"#ccc",pointerEvents:"none"},I),te),Ve(E.props.cursor)),{},{payload:R,payloadIndex:z,key:ie,className:"recharts-tooltip-cursor"});return F.isValidElement(E.props.cursor)?F.cloneElement(E.props.cursor,se):F.createElement(X,se)}),Ge(ot(O),"renderPolarAxis",function(E,T,k){var A=ai(E,"type.axisType"),D=ai(O.state,"".concat(A,"Map")),R=D&&D[E.props["".concat(A,"Id")]];return F.cloneElement(E,ye(ye({},R),{},{className:A,key:E.key||"".concat(T,"-").concat(k),ticks:fs(R,!0)}))}),Ge(ot(O),"renderXAxis",function(E,T,k){var A=O.state.xAxisMap,D=A[E.props.xAxisId];return O.renderAxis(D,E,T,k)}),Ge(ot(O),"renderYAxis",function(E,T,k){var A=O.state.yAxisMap,D=A[E.props.yAxisId];return O.renderAxis(D,E,T,k)}),Ge(ot(O),"renderGrid",function(E){var T=O.state,k=T.xAxisMap,A=T.yAxisMap,D=T.offset,R=O.props,I=R.width,z=R.height,G=cs(k),H=O7e(A,function(te){return QH(te.domain,Number.isFinite)}),Q=H||cs(A),Z=E.props||{};return F.cloneElement(E,{key:E.key||"grid",x:je(Z.x)?Z.x:D.left,y:je(Z.y)?Z.y:D.top,width:je(Z.width)?Z.width:D.width,height:je(Z.height)?Z.height:D.height,xAxis:G,yAxis:Q,offset:D,chartWidth:I,chartHeight:z,verticalCoordinatesGenerator:Z.verticalCoordinatesGenerator||O.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:Z.horizontalCoordinatesGenerator||O.horizontalCoordinatesGenerator})}),Ge(ot(O),"renderPolarGrid",function(E){var T=E.props,k=T.radialLines,A=T.polarAngles,D=T.polarRadius,R=O.state,I=R.radiusAxisMap,z=R.angleAxisMap,G=cs(I),H=cs(z),Q=H.cx,Z=H.cy,te=H.innerRadius,X=H.outerRadius;return F.cloneElement(E,{polarAngles:Array.isArray(A)?A:fs(H,!0).map(function($){return $.coordinate}),polarRadius:Array.isArray(D)?D:fs(G,!0).map(function($){return $.coordinate}),cx:Q,cy:Z,innerRadius:te,outerRadius:X,key:E.key||"polar-grid",radialLines:k})}),Ge(ot(O),"renderLegend",function(){var E=O.state.formattedGraphicalItems,T=O.props,k=T.children,A=T.width,D=T.height,R=O.props.margin||{},I=A-(R.left||0)-(R.right||0),z=AH({children:k,formattedGraphicalItems:E,legendWidth:I,legendContent:u});if(!z)return null;var G=z.item,H=X5(z,U7e);return F.cloneElement(G,ye(ye({},H),{},{chartWidth:A,chartHeight:D,margin:R,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Ge(ot(O),"renderTooltip",function(){var E,T=O.props.children,k=ba(T,_a);if(!k)return null;var A=O.state,D=A.isTooltipActive,R=A.activeCoordinate,I=A.activePayload,z=A.activeLabel,G=A.offset,H=(E=k.props.active)!==null&&E!==void 0?E:D;return F.cloneElement(k,{viewBox:ye(ye({},G),{},{x:G.left,y:G.top}),active:H,label:z,payload:H?I:[],coordinate:R})}),Ge(ot(O),"renderBrush",function(E){var T=O.props,k=T.margin,A=T.data,D=O.state,R=D.offset,I=D.dataStartIndex,z=D.dataEndIndex,G=D.updateId;return F.cloneElement(E,{key:E.key||"_recharts-brush",onChange:qg(O.handleBrushChange,E.props.onChange),data:A,x:je(E.props.x)?E.props.x:R.left,y:je(E.props.y)?E.props.y:R.top+R.height+R.brushBottom-(k.bottom||0),width:je(E.props.width)?E.props.width:R.width,startIndex:I,endIndex:z,updateId:"brush-".concat(G)})}),Ge(ot(O),"renderReferenceElement",function(E,T,k){if(!E)return null;var A=ot(O),D=A.clipPathId,R=O.state,I=R.xAxisMap,z=R.yAxisMap,G=R.offset,H=E.props,Q=H.xAxisId,Z=H.yAxisId;return F.cloneElement(E,{key:E.key||"".concat(T,"-").concat(k),xAxis:I[Q],yAxis:z[Z],viewBox:{x:G.left,y:G.top,width:G.width,height:G.height},clipPathId:D})}),Ge(ot(O),"renderActivePoints",function(E){var T=E.item,k=E.activePoint,A=E.basePoint,D=E.childIndex,R=E.isRange,I=[],z=T.props.key,G=T.item.props,H=G.activeDot,Q=G.dataKey,Z=ye(ye({index:D,dataKey:Q,cx:k.x,cy:k.y,r:4,fill:jA(T.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value,key:"".concat(z,"-activePoint-").concat(D)},Ve(H)),ub(H));return I.push(w.renderActiveDot(H,Z)),A?I.push(w.renderActiveDot(H,ye(ye({},Z),{},{cx:A.x,cy:A.y,key:"".concat(z,"-basePoint-").concat(D)}))):R&&I.push(null),I}),Ge(ot(O),"renderGraphicChild",function(E,T,k){var A=O.filterFormatItem(E,T,k);if(!A)return null;var D=O.getTooltipEventType(),R=O.state,I=R.isTooltipActive,z=R.tooltipAxis,G=R.activeTooltipIndex,H=R.activeLabel,Q=O.props.children,Z=ba(Q,_a),te=A.props,X=te.points,$=te.isRange,V=te.baseLine,W=A.item.props,re=W.activeDot,q=W.hide,ee=W.activeBar,ie=W.activeShape,se=!!(!q&&I&&Z&&(re||ee||ie)),fe={};D!=="axis"&&Z&&Z.props.trigger==="click"?fe={onClick:qg(O.handleItemMouseEnter,E.props.onClick)}:D!=="axis"&&(fe={onMouseLeave:qg(O.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:qg(O.handleItemMouseEnter,E.props.onMouseEnter)});var j=F.cloneElement(E,ye(ye({},A.props),fe));function P(ke){return typeof z.dataKey=="function"?z.dataKey(ke.payload):null}if(se)if(G>=0){var B,J;if(z.dataKey&&!z.allowDuplicatedCategory){var K=typeof z.dataKey=="function"?P:"payload.".concat(z.dataKey.toString());B=lb(X,K,H),J=$&&V&&lb(V,K,H)}else B=X==null?void 0:X[G],J=$&&V&&V[G];if(ie||ee){var le=E.props.activeIndex!==void 0?E.props.activeIndex:G;return[F.cloneElement(E,ye(ye(ye({},A.props),fe),{},{activeIndex:le})),null,null]}if(!Ze(B))return[j].concat(td(O.renderActivePoints({item:A,activePoint:B,basePoint:J,childIndex:G,isRange:$})))}else{var he,Ee=(he=O.getItemByXY(O.state.activeCoordinate))!==null&&he!==void 0?he:{graphicalItem:j},ue=Ee.graphicalItem,ve=ue.item,ge=ve===void 0?E:ve,Oe=ue.childIndex,Ce=ye(ye(ye({},A.props),fe),{},{activeIndex:Oe});return[F.cloneElement(ge,Ce),null,null]}return $?[j,null,null]:[j,null]}),Ge(ot(O),"renderCustomized",function(E,T,k){return F.cloneElement(E,ye(ye({key:"recharts-customized-".concat(k)},O.props),O.state))}),Ge(ot(O),"renderMap",{CartesianGrid:{handler:O.renderGrid,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:O.renderReferenceElement},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:O.renderXAxis},YAxis:{handler:O.renderYAxis},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((_=y.id)!==null&&_!==void 0?_:dl("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=MV(O.triggeredAfterMouseMove,(x=y.throttleDelay)!==null&&x!==void 0?x:1e3/60),O.state={},O}return Y7e(w,[{key:"componentDidMount",value:function(){var y,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(y,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==y.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==y.margin){var x,O;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var y=ba(this.props.children,_a);if(y&&typeof y.props.shared=="boolean"){var _=y.props.shared?"axis":"item";return s.indexOf(_)>=0?_:o}return o}},{key:"getMouseInfo",value:function(y){if(!this.container)return null;var _=this.container,x=_.getBoundingClientRect(),O=cLe(x),E={chartX:Math.round(y.pageX-O.left),chartY:Math.round(y.pageY-O.top)},T=x.width/_.offsetWidth||1,k=this.inRange(E.chartX,E.chartY,T);if(!k)return null;var A=this.state,D=A.xAxisMap,R=A.yAxisMap,I=this.getTooltipEventType();if(I!=="axis"&&D&&R){var z=cs(D).scale,G=cs(R).scale,H=z&&z.invert?z.invert(E.chartX):null,Q=G&&G.invert?G.invert(E.chartY):null;return ye(ye({},E),{},{xValue:H,yValue:Q})}var Z=e8(this.state,this.props.data,this.props.layout,k);return Z?ye(ye({},E),Z):null}},{key:"inRange",value:function(y,_){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,E=y/x,T=_/x;if(O==="horizontal"||O==="vertical"){var k=this.state.offset,A=E>=k.left&&E<=k.left+k.width&&T>=k.top&&T<=k.top+k.height;return A?{x:E,y:T}:null}var D=this.state,R=D.angleAxisMap,I=D.radiusAxisMap;if(R&&I){var z=cs(R);return U6({x:E,y:T},z)}return null}},{key:"parseEventsOfWrapper",value:function(){var y=this.props.children,_=this.getTooltipEventType(),x=ba(y,_a),O={};x&&_==="axis"&&(x.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var E=ub(this.props,this.handleOuterEvent);return ye(ye({},E),O)}},{key:"addListener",value:function(){e1.on(t1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){e1.removeListener(t1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(y,_,x){for(var O=this.state.formattedGraphicalItems,E=0,T=O.length;E<T;E++){var k=O[E];if(k.item===y||k.props.key===y.key||_===Ea(k.item.type)&&x===k.childIndex)return k}return null}},{key:"renderAxis",value:function(y,_,x,O){var E=this.props,T=E.width,k=E.height;return M.createElement(uh,Bc({},y,{className:We("recharts-".concat(y.axisType," ").concat(y.axisType),y.className),key:_.key||"".concat(x,"-").concat(O),viewBox:{x:0,y:0,width:T,height:k},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var y=this.clipPathId,_=this.state.offset,x=_.left,O=_.top,E=_.height,T=_.width;return M.createElement("defs",null,M.createElement("clipPath",{id:y},M.createElement("rect",{x,y:O,height:E,width:T})))}},{key:"getXScales",value:function(){var y=this.state.xAxisMap;return y?Object.entries(y).reduce(function(_,x){var O=Z5(x,2),E=O[0],T=O[1];return ye(ye({},_),{},Ge({},E,T.scale))},{}):null}},{key:"getYScales",value:function(){var y=this.state.yAxisMap;return y?Object.entries(y).reduce(function(_,x){var O=Z5(x,2),E=O[0],T=O[1];return ye(ye({},_),{},Ge({},E,T.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(y){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[y])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(y){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[y])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(y){var _=this.state,x=_.formattedGraphicalItems,O=_.activeItem;if(x&&x.length)for(var E=0,T=x.length;E<T;E++){var k=x[E],A=k.props,D=k.item,R=Ea(D.type);if(R==="Bar"){var I=(A.data||[]).find(function(Q){return i5e(y,Q)});if(I)return{graphicalItem:k,payload:I}}else if(R==="RadialBar"){var z=(A.data||[]).find(function(Q){return U6(y,Q)});if(z)return{graphicalItem:k,payload:z}}else if(kw(k,O)||jw(k,O)||Lm(k,O)){var G=q8e({graphicalItem:k,activeTooltipItem:O,itemData:D.props.data}),H=D.props.activeIndex===void 0?G:D.props.activeIndex;return{graphicalItem:ye(ye({},k),{},{childIndex:H}),payload:Lm(k,O)?D.props.data[G]:k.props.data[G]}}}return null}},{key:"render",value:function(){var y=this;if(!uI(this))return null;var _=this.props,x=_.children,O=_.className,E=_.width,T=_.height,k=_.style,A=_.compact,D=_.title,R=_.desc,I=X5(_,$7e),z=Ve(I);if(A)return M.createElement(ET,Bc({},z,{width:E,height:T,title:D,desc:R}),this.renderClipPath(),fI(x,this.renderMap));if(this.props.accessibilityLayer){var G,H;z.tabIndex=(G=this.props.tabIndex)!==null&&G!==void 0?G:0,z.role=(H=this.props.role)!==null&&H!==void 0?H:"img",z.onKeyDown=function(Z){y.accessibilityManager.keyboardEvent(Z)},z.onFocus=function(){y.accessibilityManager.focus()}}var Q=this.parseEventsOfWrapper();return M.createElement("div",Bc({className:We("recharts-wrapper",O),style:ye({position:"relative",cursor:"default",width:E,height:T},k)},Q,{ref:function(Z){y.container=Z},role:"region"}),M.createElement(ET,Bc({},z,{width:E,height:T,title:D,desc:R,style:nBe}),this.renderClipPath(),fI(x,this.renderMap)),this.renderLegend(),this.renderTooltip())}}]),w}(F.Component),Ge(t,"displayName",n),Ge(t,"defaultProps",ye({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Ge(t,"getDerivedStateFromProps",function(v,g){var w=v.dataKey,y=v.data,_=v.children,x=v.width,O=v.height,E=v.layout,T=v.stackOffset,k=v.margin;if(g.updateId===void 0){var A=t8(v);return ye(ye(ye({},A),{},{updateId:0},m(ye(ye({props:v},A),{},{updateId:0}),g)),{},{prevDataKey:w,prevData:y,prevWidth:x,prevHeight:O,prevLayout:E,prevStackOffset:T,prevMargin:k,prevChildren:_})}if(w!==g.prevDataKey||y!==g.prevData||x!==g.prevWidth||O!==g.prevHeight||E!==g.prevLayout||T!==g.prevStackOffset||!Zc(k,g.prevMargin)){var D=t8(v),R={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=ye(ye({},e8(g,y,E)),{},{updateId:g.updateId+1}),z=ye(ye(ye({},D),R),I);return ye(ye(ye({},z),m(ye({props:v},z),g)),{},{prevDataKey:w,prevData:y,prevWidth:x,prevHeight:O,prevLayout:E,prevStackOffset:T,prevMargin:k,prevChildren:_})}if(!Tz(_,g.prevChildren)){var G=!Ze(y),H=G?g.updateId:g.updateId+1;return ye(ye({updateId:H},m(ye(ye({props:v},g),{},{updateId:H}),g)),{},{prevChildren:_})}return null}),Ge(t,"renderActiveDot",function(v,g){var w;return F.isValidElement(v)?w=F.cloneElement(v,g):Qe(v)?w=v(g):w=M.createElement(Ev,g),M.createElement(nt,{className:"recharts-active-dot",key:g.key},w)}),t},fBe=RA({chartName:"LineChart",GraphicalChild:Pd,axisComponents:[{axisType:"xAxis",AxisComp:Ad},{axisType:"yAxis",AxisComp:Nd}],formatAxisMap:tW}),dBe=RA({chartName:"PieChart",GraphicalChild:ts,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Cw},{axisType:"radiusAxis",AxisComp:Ew}],formatAxisMap:Q4e,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),pBe=RA({chartName:"ComposedChart",GraphicalChild:[Pd,$u,Eu,Mw],axisComponents:[{axisType:"xAxis",AxisComp:Ad},{axisType:"yAxis",AxisComp:Nd},{axisType:"zAxis",AxisComp:Nw}],formatAxisMap:tW});const DA={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},r8=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],hBe=({chartData:e,showNumbers:t})=>b.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>b.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[b.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),b.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&b.jsxs("b",{children:[" (",bn(i),")"]})]})]},n))}),mBe=({stats:e,showNumbersInLegend:t,dimensions:n})=>{const r=F.useMemo(()=>Object.entries(e).map(([o,a],s)=>({name:o,value:a,color:r8[s%r8.length]})),[e]),i=Mj()?jle:kle;return b.jsxs("div",{className:"row align-items-center",children:[b.jsx("div",{className:"col-sm-12 col-md-7",children:b.jsx("div",{style:n??{width:"100%",height:300},children:b.jsx(n?F.Fragment:iA,{children:b.jsxs(dBe,{...n,children:[b.jsx(_a,{formatter:bn,contentStyle:DA,itemStyle:{color:"white"}}),b.jsx(ts,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:"50%",animationBegin:0,children:r.map((o,a)=>b.jsx(xu,{fill:o.color,stroke:i},`${o.name}-${a}`))})]})})})}),b.jsx("div",{className:"col-sm-12 col-md-5",children:b.jsx(hBe,{chartData:r,showNumbers:t})})]})},i8=({title:e,stats:t,dimensions:n})=>{const[r,i]=En(!1);return b.jsx(hz,{title:b.jsxs(b.Fragment,{children:[e,b.jsx("div",{className:"float-end",children:b.jsx(yf,{checked:r,onChange:i,children:"Show numbers"})})]}),children:b.jsx(mBe,{stats:t,showNumbersInLegend:r,dimensions:n})})},vBe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},gBe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},yBe={hourly:Ide,daily:tP,weekly:$de,monthly:K0},IA={hourly:e=>Tf(e,"yyyy-MM-dd HH:00"),daily:e=>Wl(e),weekly(e){const t=Wl(Gh(e)),n=Wl(Vde(e));return`${t} - ${n}`},monthly:e=>Tf(e,"yyyy-MM")},bBe=e=>{var t;const n=new Date,r=Ua(e);return((t=[[()=>tP(n,r)<=2,"hourly"],[()=>K0(n,r)<=1,"daily"],[()=>K0(n,r)<=6,"weekly"]].find(([i])=>i()))==null?void 0:t[1])??"monthly"},o8=(e,t)=>N2(t,n=>IA[e](Ua(n.date))),_Be=(e,t)=>t.reduce((n,r)=>{const i=IA[e](Ua(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),wBe=(e,t)=>{const n=t[0],r=t[t.length-1];if(!n||!r)return{};const i=yBe[e],o=IA[e],a=gBe[e],s=Ua(n.date),l=Ua(r.date),u=i(s,l);return[o(l),...hP(u,f=>o(Tde(l,a(f))))].reduce((f,d)=>(f[d]=0,f),{})},a8=({onDotClick:e,dataKey:t,color:n})=>b.jsx(Pd,{type:"monotone",dataKey:t,stroke:n,strokeWidth:3,activeDot:{cursor:"pointer",onClick:e}}),xBe=({visits:e,title:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i,dimensions:o,matchMedia:a})=>{const[s,l]=F.useState(e.length>0?bBe(e[e.length-1].date):"monthly"),u=mP(767,a??window.matchMedia),f=F.useMemo(()=>{const g=o8(s,[...e].reverse()),w=o8(s,[...n].reverse()),y={...wBe(s,e),...g};return Object.entries(y).map(([_,x])=>({date:_,amount:x,highlightedAmount:w[_]??0}))},[s,e,n]),d=F.useMemo(()=>_Be(s,e),[s,e]),p=F.useCallback((g,{payload:w})=>{const y=d[w.date]??[];i==null||i(y===n?[]:y)},[d,n,i]),m=o?F.Fragment:iA,v=o?{}:{width:"100%",height:u?300:400};return b.jsxs(ui,{children:[b.jsxs(gf,{role:"heading","aria-level":4,children:[t,b.jsx("div",{className:"float-end",children:b.jsxs(iv,{children:[b.jsx(ud,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),b.jsx(ld,{end:!0,children:Object.entries(vBe).map(([g,w])=>b.jsx(ze,{active:s===g,onClick:()=>l(g),children:w},g))})]})})]}),b.jsx(vf,{children:b.jsx(m,{...v,children:b.jsxs(fBe,{data:f,...o,children:[b.jsx(Ad,{dataKey:"date"}),b.jsx(Nd,{dataKey:"amount",tickFormatter:bn}),b.jsx(_a,{formatter:(g,w)=>[bn(g),w==="amount"?"Visits":r],contentStyle:DA}),b.jsx(Aw,{strokeOpacity:Mj()?.1:.9}),a8({color:I0,dataKey:"amount",onDotClick:p}),n.length>0&&a8({color:FE,dataKey:"highlightedAmount",onDotClick:p})]})})})]})},OBe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>b.jsxs(iv,{children:[b.jsx(ud,{caret:!0,color:"link",className:e,children:"Paginate"}),b.jsxs(ld,{end:!0,children:[t.map(i=>b.jsxs(ze,{active:i===n,onClick:()=>r(i),children:[b.jsx("b",{children:i})," items per page"]},i)),b.jsx(ze,{divider:!0,tag:"hr"}),b.jsx(ze,{disabled:n===1/0,onClick:()=>r(1/0),children:b.jsx("i",{children:"Clear pagination"})})]})]}),s8=e=>e.startsWith("hidden_"),SBe=({stats:e,highlightedStats:t,highlightedLabel:n,max:r,onClick:i,dimensions:o})=>{const a=F.useMemo(()=>Object.entries(e).map(([f,d])=>{const p=(t==null?void 0:t[f])??0,m=s8(f);return{name:f,amount:m?null:d-p,highlightedAmount:m?null:p}}),[e,t]),s=F.useMemo(()=>{const f=a.reduce((d,{name:p})=>d>p.length?d:p.length,0);return Math.min(150,f*7)},[a]),l=o?F.Fragment:iA,u=F.useMemo(()=>o?{}:{width:"100%",height:Math.max(300,a.length*22)},[o,a]);return b.jsx(l,{...u,children:b.jsxs(pBe,{layout:"vertical",data:a,barCategoryGap:3,...o,children:[b.jsx(Ad,{type:"number",dataKey:"amount",tickFormatter:bn,domain:r?[0,r]:void 0}),b.jsx(Nd,{type:"category",dataKey:"name",width:s,interval:0,style:{fontSize:".8rem"},tickFormatter:f=>s8(f)?"":f}),b.jsx(Aw,{strokeOpacity:Mj()?.05:.9}),b.jsx(_a,{filterNull:!0,contentStyle:DA,formatter:(f,d)=>{const p=bn(f);return d==="highlightedAmount"?[p,n]:[p,t?"Non-selected":"Visits"]}}),b.jsx(Eu,{dataKey:"amount",stackId:"main",cursor:"pointer",fill:I0,onClick:({name:f})=>i==null?void 0:i(f),children:a.map(f=>b.jsx(xu,{fill:Tle,stroke:I0,strokeWidth:2},f.name))}),t&&b.jsx(Eu,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:FE,onClick:({name:f})=>i==null?void 0:i(f),children:a.map(f=>b.jsx(xu,{fill:Cle,stroke:FE,strokeWidth:2},f.name))})]})})},EBe=e=>typeof e=="string"?e.toLowerCase():e,TBe=([e])=>e,CBe=([,e])=>e,Xg=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...a})=>{const[s,l]=F.useState({}),[u,f]=F.useState(1),[d,p]=F.useState(50),m=(T,k)=>{const A=Object.entries(T),D=s.field?xme(A,([R,I])=>EBe(s.field===Object.keys(k)[0]?R:I)):A;return!s.dir||s.dir==="ASC"?D:[...D].reverse()},v=T=>{const k=T[u-1];if(u<T.length)return k;const A=T[0].length;return[...k,...hP(A-k.length,D=>[`hidden_${D}`,0])]},g=T=>b.jsx(NP,{currentPage:u,pagesCount:T,setCurrentPage:f}),w=(T,k,A)=>{const D=m(T,k),R=D.map(TBe),I=A&&Object.entries({...Ome(R,R.map(()=>0)),...A});if(D.length<=d)return{currentPageStats:Object.fromEntries(D),currentPageHighlightedStats:I&&Object.fromEntries(I)};const z=Qh(D,d),G=I&&Qh(I,d);return{currentPageStats:Object.fromEntries(v(z)),currentPageHighlightedStats:G&&Object.fromEntries(v(G)),pagination:g(z.length),max:vve(Math.max(...D.map(CBe)))}},{currentPageStats:y,currentPageHighlightedStats:_,pagination:x,max:O}=w(e,r,t&&Object.keys(t).length>0?t:void 0),E=Object.keys(y);return b.jsx(hz,{title:b.jsxs(b.Fragment,{children:[n,b.jsx("div",{className:"float-end",children:b.jsx(av,{isButton:!1,right:!0,items:r,order:s,onChange:(T,k)=>{l({field:T,dir:k}),f(1)}})}),o&&Object.keys(e).length>50&&b.jsx("div",{className:"float-end",children:b.jsx(OBe,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:d,setValue:T=>{p(T),f(1)}})}),i&&b.jsx("div",{className:"float-end",children:i(x?E:void 0)})]}),footer:x,children:b.jsx(SBe,{stats:y,highlightedStats:_,max:O,...a})})},kBe=()=>{const e=ta(),t=V2(),{filtering:n,domain:r}=F.useMemo(()=>{const{startDate:o,endDate:a,orphanVisitsType:s,excludeBots:l,domain:u}=t;return{domain:u,filtering:{dateRange:o!=null||a!=null?I2(o,a):void 0,visitsFilter:{orphanVisitsType:s,excludeBots:l!==void 0?l==="true":void 0}}}},[t]),i=F.useCallback(o=>{const{dateRange:a,visitsFilter:s={}}=M2(n,o),{excludeBots:l,orphanVisitsType:u}=s,f={startDate:(a==null?void 0:a.startDate)&&Js(a.startDate)||"",endDate:(a==null?void 0:a.endDate)&&Js(a.endDate)||"",excludeBots:l===void 0?void 0:z2(l),orphanVisitsType:u,domain:r},d=$_(f),p=d?`?${d}`:"";e(p,{replace:!0,relative:"route"})},[n,e,r]);return[n,i]};function bW(e,t){const n=F.useRef(t);F.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 jBe=1;function PBe(e){return Object.freeze({__version:jBe,map:e})}function ABe(e,t){return Object.freeze({...e,...t})}const _W=F.createContext(null),wW=_W.Provider;function xW(){const e=F.useContext(_W);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function NBe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return F.useImperativeHandle(r,()=>i),n.children==null?null:M.createElement(wW,{value:o},n.children)}return F.forwardRef(t)}function MBe(e){function t(n,r){const[i,o]=F.useState(!1),{instance:a}=e(n,o).current;F.useImperativeHandle(r,()=>a),F.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?ju.createPortal(n.children,s):null}return F.forwardRef(t)}function LBe(e){function t(n,r){const{instance:i}=e(n).current;return F.useImperativeHandle(r,()=>i),null}return F.forwardRef(t)}function OW(e,t){const n=F.useRef();F.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 FA(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function RBe(e,t){return function(n,r){const i=xW(),o=e(FA(n,i),i);return bW(i.map,n.attribution),OW(o.current,n.eventHandlers),t(o.current,i,n,r),o}}var VC={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/(function(e,t){(function(n,r){r(t)})(Rc,function(n){var r="1.9.4";function i(c){var h,S,C,N;for(S=1,C=arguments.length;S<C;S++){N=arguments[S];for(h in N)c[h]=N[h]}return c}var o=Object.create||function(){function c(){}return function(h){return c.prototype=h,new c}}();function a(c,h){var S=Array.prototype.slice;if(c.bind)return c.bind.apply(c,S.call(arguments,1));var C=S.call(arguments,2);return function(){return c.apply(h,C.length?C.concat(S.call(arguments)):arguments)}}var s=0;function l(c){return"_leaflet_id"in c||(c._leaflet_id=++s),c._leaflet_id}function u(c,h,S){var C,N,Y,ae;return ae=function(){C=!1,N&&(Y.apply(S,N),N=!1)},Y=function(){C?N=arguments:(c.apply(S,arguments),setTimeout(ae,h),C=!0)},Y}function f(c,h,S){var C=h[1],N=h[0],Y=C-N;return c===C&&S?c:((c-N)%Y+Y)%Y+N}function d(){return!1}function p(c,h){if(h===!1)return c;var S=Math.pow(10,h===void 0?6:h);return Math.round(c*S)/S}function m(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function v(c){return m(c).split(/\s+/)}function g(c,h){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?o(c.options):{});for(var S in h)c.options[S]=h[S];return c.options}function w(c,h,S){var C=[];for(var N in c)C.push(encodeURIComponent(S?N.toUpperCase():N)+"="+encodeURIComponent(c[N]));return(!h||h.indexOf("?")===-1?"?":"&")+C.join("&")}var y=/\{ *([\w_ -]+) *\}/g;function _(c,h){return c.replace(y,function(S,C){var N=h[C];if(N===void 0)throw new Error("No value provided for variable "+S);return typeof N=="function"&&(N=N(h)),N})}var x=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function O(c,h){for(var S=0;S<c.length;S++)if(c[S]===h)return S;return-1}var E="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function T(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var k=0;function A(c){var h=+new Date,S=Math.max(0,16-(h-k));return k=h+S,window.setTimeout(c,S)}var D=window.requestAnimationFrame||T("RequestAnimationFrame")||A,R=window.cancelAnimationFrame||T("CancelAnimationFrame")||T("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function I(c,h,S){if(S&&D===A)c.call(h);else return D.call(window,a(c,h))}function z(c){c&&R.call(window,c)}var G={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:l,throttle:u,wrapNum:f,falseFn:d,formatNum:p,trim:m,splitWords:v,setOptions:g,getParamString:w,template:_,isArray:x,indexOf:O,emptyImageUrl:E,requestFn:D,cancelFn:R,requestAnimFrame:I,cancelAnimFrame:z};function H(){}H.extend=function(c){var h=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},S=h.__super__=this.prototype,C=o(S);C.constructor=h,h.prototype=C;for(var N in this)Object.prototype.hasOwnProperty.call(this,N)&&N!=="prototype"&&N!=="__super__"&&(h[N]=this[N]);return c.statics&&i(h,c.statics),c.includes&&(Q(c.includes),i.apply(null,[C].concat(c.includes))),i(C,c),delete C.statics,delete C.includes,C.options&&(C.options=S.options?o(S.options):{},i(C.options,c.options)),C._initHooks=[],C.callInitHooks=function(){if(!this._initHooksCalled){S.callInitHooks&&S.callInitHooks.call(this),this._initHooksCalled=!0;for(var Y=0,ae=C._initHooks.length;Y<ae;Y++)C._initHooks[Y].call(this)}},h},H.include=function(c){var h=this.prototype.options;return i(this.prototype,c),c.options&&(this.prototype.options=h,this.mergeOptions(c.options)),this},H.mergeOptions=function(c){return i(this.prototype.options,c),this},H.addInitHook=function(c){var h=Array.prototype.slice.call(arguments,1),S=typeof c=="function"?c:function(){this[c].apply(this,h)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(S),this};function Q(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=x(c)?c:[c];for(var h=0;h<c.length;h++)c[h]===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 Z={on:function(c,h,S){if(typeof c=="object")for(var C in c)this._on(C,c[C],h);else{c=v(c);for(var N=0,Y=c.length;N<Y;N++)this._on(c[N],h,S)}return this},off:function(c,h,S){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var C in c)this._off(C,c[C],h);else{c=v(c);for(var N=arguments.length===1,Y=0,ae=c.length;Y<ae;Y++)N?this._off(c[Y]):this._off(c[Y],h,S)}return this},_on:function(c,h,S,C){if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}if(this._listens(c,h,S)===!1){S===this&&(S=void 0);var N={fn:h,ctx:S};C&&(N.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(N)}},_off:function(c,h,S){var C,N,Y;if(this._events&&(C=this._events[c],!!C)){if(arguments.length===1){if(this._firingCount)for(N=0,Y=C.length;N<Y;N++)C[N].fn=d;delete this._events[c];return}if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}var ae=this._listens(c,h,S);if(ae!==!1){var pe=C[ae];this._firingCount&&(pe.fn=d,this._events[c]=C=C.slice()),C.splice(ae,1)}}},fire:function(c,h,S){if(!this.listens(c,S))return this;var C=i({},h,{type:c,target:this,sourceTarget:h&&h.sourceTarget||this});if(this._events){var N=this._events[c];if(N){this._firingCount=this._firingCount+1||1;for(var Y=0,ae=N.length;Y<ae;Y++){var pe=N[Y],me=pe.fn;pe.once&&this.off(c,me,pe.ctx),me.call(pe.ctx||this,C)}this._firingCount--}}return S&&this._propagateEvent(C),this},listens:function(c,h,S,C){typeof c!="string"&&console.warn('"string" type argument expected');var N=h;typeof h!="function"&&(C=!!h,N=void 0,S=void 0);var Y=this._events&&this._events[c];if(Y&&Y.length&&this._listens(c,N,S)!==!1)return!0;if(C){for(var ae in this._eventParents)if(this._eventParents[ae].listens(c,h,S,C))return!0}return!1},_listens:function(c,h,S){if(!this._events)return!1;var C=this._events[c]||[];if(!h)return!!C.length;S===this&&(S=void 0);for(var N=0,Y=C.length;N<Y;N++)if(C[N].fn===h&&C[N].ctx===S)return N;return!1},once:function(c,h,S){if(typeof c=="object")for(var C in c)this._on(C,c[C],h,!0);else{c=v(c);for(var N=0,Y=c.length;N<Y;N++)this._on(c[N],h,S,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[l(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[l(c)],this},_propagateEvent:function(c){for(var h in this._eventParents)this._eventParents[h].fire(c.type,i({layer:c.target,propagatedFrom:c.target},c),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var te=H.extend(Z);function X(c,h,S){this.x=S?Math.round(c):c,this.y=S?Math.round(h):h}var $=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};X.prototype={clone:function(){return new X(this.x,this.y)},add:function(c){return this.clone()._add(V(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(V(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new X(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new X(this.x/c.x,this.y/c.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=$(this.x),this.y=$(this.y),this},distanceTo:function(c){c=V(c);var h=c.x-this.x,S=c.y-this.y;return Math.sqrt(h*h+S*S)},equals:function(c){return c=V(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=V(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function V(c,h,S){return c instanceof X?c:x(c)?new X(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new X(c.x,c.y):new X(c,h,S)}function W(c,h){if(c)for(var S=h?[c,h]:c,C=0,N=S.length;C<N;C++)this.extend(S[C])}W.prototype={extend:function(c){var h,S;if(!c)return this;if(c instanceof X||typeof c[0]=="number"||"x"in c)h=S=V(c);else if(c=re(c),h=c.min,S=c.max,!h||!S)return this;return!this.min&&!this.max?(this.min=h.clone(),this.max=S.clone()):(this.min.x=Math.min(h.x,this.min.x),this.max.x=Math.max(S.x,this.max.x),this.min.y=Math.min(h.y,this.min.y),this.max.y=Math.max(S.y,this.max.y)),this},getCenter:function(c){return V((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return V(this.min.x,this.max.y)},getTopRight:function(){return V(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(c){var h,S;return typeof c[0]=="number"||c instanceof X?c=V(c):c=re(c),c instanceof W?(h=c.min,S=c.max):h=S=c,h.x>=this.min.x&&S.x<=this.max.x&&h.y>=this.min.y&&S.y<=this.max.y},intersects:function(c){c=re(c);var h=this.min,S=this.max,C=c.min,N=c.max,Y=N.x>=h.x&&C.x<=S.x,ae=N.y>=h.y&&C.y<=S.y;return Y&&ae},overlaps:function(c){c=re(c);var h=this.min,S=this.max,C=c.min,N=c.max,Y=N.x>h.x&&C.x<S.x,ae=N.y>h.y&&C.y<S.y;return Y&&ae},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var h=this.min,S=this.max,C=Math.abs(h.x-S.x)*c,N=Math.abs(h.y-S.y)*c;return re(V(h.x-C,h.y-N),V(S.x+C,S.y+N))},equals:function(c){return c?(c=re(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function re(c,h){return!c||c instanceof W?c:new W(c,h)}function q(c,h){if(c)for(var S=h?[c,h]:c,C=0,N=S.length;C<N;C++)this.extend(S[C])}q.prototype={extend:function(c){var h=this._southWest,S=this._northEast,C,N;if(c instanceof ie)C=c,N=c;else if(c instanceof q){if(C=c._southWest,N=c._northEast,!C||!N)return this}else return c?this.extend(se(c)||ee(c)):this;return!h&&!S?(this._southWest=new ie(C.lat,C.lng),this._northEast=new ie(N.lat,N.lng)):(h.lat=Math.min(C.lat,h.lat),h.lng=Math.min(C.lng,h.lng),S.lat=Math.max(N.lat,S.lat),S.lng=Math.max(N.lng,S.lng)),this},pad:function(c){var h=this._southWest,S=this._northEast,C=Math.abs(h.lat-S.lat)*c,N=Math.abs(h.lng-S.lng)*c;return new q(new ie(h.lat-C,h.lng-N),new ie(S.lat+C,S.lng+N))},getCenter:function(){return new ie((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 ie(this.getNorth(),this.getWest())},getSouthEast:function(){return new ie(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(c){typeof c[0]=="number"||c instanceof ie||"lat"in c?c=se(c):c=ee(c);var h=this._southWest,S=this._northEast,C,N;return c instanceof q?(C=c.getSouthWest(),N=c.getNorthEast()):C=N=c,C.lat>=h.lat&&N.lat<=S.lat&&C.lng>=h.lng&&N.lng<=S.lng},intersects:function(c){c=ee(c);var h=this._southWest,S=this._northEast,C=c.getSouthWest(),N=c.getNorthEast(),Y=N.lat>=h.lat&&C.lat<=S.lat,ae=N.lng>=h.lng&&C.lng<=S.lng;return Y&&ae},overlaps:function(c){c=ee(c);var h=this._southWest,S=this._northEast,C=c.getSouthWest(),N=c.getNorthEast(),Y=N.lat>h.lat&&C.lat<S.lat,ae=N.lng>h.lng&&C.lng<S.lng;return Y&&ae},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,h){return c?(c=ee(c),this._southWest.equals(c.getSouthWest(),h)&&this._northEast.equals(c.getNorthEast(),h)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ee(c,h){return c instanceof q?c:new q(c,h)}function ie(c,h,S){if(isNaN(c)||isNaN(h))throw new Error("Invalid LatLng object: ("+c+", "+h+")");this.lat=+c,this.lng=+h,S!==void 0&&(this.alt=+S)}ie.prototype={equals:function(c,h){if(!c)return!1;c=se(c);var S=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return S<=(h===void 0?1e-9:h)},toString:function(c){return"LatLng("+p(this.lat,c)+", "+p(this.lng,c)+")"},distanceTo:function(c){return j.distance(this,se(c))},wrap:function(){return j.wrapLatLng(this)},toBounds:function(c){var h=180*c/40075017,S=h/Math.cos(Math.PI/180*this.lat);return ee([this.lat-h,this.lng-S],[this.lat+h,this.lng+S])},clone:function(){return new ie(this.lat,this.lng,this.alt)}};function se(c,h,S){return c instanceof ie?c:x(c)&&typeof c[0]!="object"?c.length===3?new ie(c[0],c[1],c[2]):c.length===2?new ie(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new ie(c.lat,"lng"in c?c.lng:c.lon,c.alt):h===void 0?null:new ie(c,h,S)}var fe={latLngToPoint:function(c,h){var S=this.projection.project(c),C=this.scale(h);return this.transformation._transform(S,C)},pointToLatLng:function(c,h){var S=this.scale(h),C=this.transformation.untransform(c,S);return this.projection.unproject(C)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var h=this.projection.bounds,S=this.scale(c),C=this.transformation.transform(h.min,S),N=this.transformation.transform(h.max,S);return new W(C,N)},infinite:!1,wrapLatLng:function(c){var h=this.wrapLng?f(c.lng,this.wrapLng,!0):c.lng,S=this.wrapLat?f(c.lat,this.wrapLat,!0):c.lat,C=c.alt;return new ie(S,h,C)},wrapLatLngBounds:function(c){var h=c.getCenter(),S=this.wrapLatLng(h),C=h.lat-S.lat,N=h.lng-S.lng;if(C===0&&N===0)return c;var Y=c.getSouthWest(),ae=c.getNorthEast(),pe=new ie(Y.lat-C,Y.lng-N),me=new ie(ae.lat-C,ae.lng-N);return new q(pe,me)}},j=i({},fe,{wrapLng:[-180,180],R:6371e3,distance:function(c,h){var S=Math.PI/180,C=c.lat*S,N=h.lat*S,Y=Math.sin((h.lat-c.lat)*S/2),ae=Math.sin((h.lng-c.lng)*S/2),pe=Y*Y+Math.cos(C)*Math.cos(N)*ae*ae,me=2*Math.atan2(Math.sqrt(pe),Math.sqrt(1-pe));return this.R*me}}),P=6378137,B={R:P,MAX_LATITUDE:85.0511287798,project:function(c){var h=Math.PI/180,S=this.MAX_LATITUDE,C=Math.max(Math.min(S,c.lat),-S),N=Math.sin(C*h);return new X(this.R*c.lng*h,this.R*Math.log((1+N)/(1-N))/2)},unproject:function(c){var h=180/Math.PI;return new ie((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*h,c.x*h/this.R)},bounds:function(){var c=P*Math.PI;return new W([-c,-c],[c,c])}()};function J(c,h,S,C){if(x(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=h,this._c=S,this._d=C}J.prototype={transform:function(c,h){return this._transform(c.clone(),h)},_transform:function(c,h){return h=h||1,c.x=h*(this._a*c.x+this._b),c.y=h*(this._c*c.y+this._d),c},untransform:function(c,h){return h=h||1,new X((c.x/h-this._b)/this._a,(c.y/h-this._d)/this._c)}};function K(c,h,S,C){return new J(c,h,S,C)}var le=i({},j,{code:"EPSG:3857",projection:B,transformation:function(){var c=.5/(Math.PI*B.R);return K(c,.5,-c,.5)}()}),he=i({},le,{code:"EPSG:900913"});function Ee(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function ue(c,h){var S="",C,N,Y,ae,pe,me;for(C=0,Y=c.length;C<Y;C++){for(pe=c[C],N=0,ae=pe.length;N<ae;N++)me=pe[N],S+=(N?"L":"M")+me.x+" "+me.y;S+=h?Ye.svg?"z":"x":""}return S||"M0 0"}var ve=document.documentElement.style,ge="ActiveXObject"in window,Oe=ge&&!document.addEventListener,Ce="msLaunchUri"in navigator&&!("documentMode"in document),ke=nr("webkit"),Ae=nr("android"),ce=nr("android 2")||nr("android 3"),de=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),_e=Ae&&nr("Google")&&de<537&&!("AudioNode"in window),be=!!window.opera,Se=!Ce&&nr("chrome"),Me=nr("gecko")&&!ke&&!be&&!ge,De=!Se&&nr("safari"),at=nr("phantom"),ut="OTransition"in ve,et=navigator.platform.indexOf("Win")===0,ln=ge&&"transition"in ve,Xt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ce,Ln="MozPerspective"in ve,wr=!window.L_DISABLE_3D&&(ln||Xt||Ln)&&!ut&&!at,So=typeof orientation<"u"||nr("mobile"),Jn=So&&ke,Ld=So&&Xt,Eo=!window.PointerEvent&&window.MSPointerEvent,Av=!!(window.PointerEvent||Eo),Nv="ontouchstart"in window||!!window.TouchEvent,Mv=!window.L_NO_TOUCH&&(Nv||Av),Rd=So&&be,vl=So&&Me,_n=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,dn=function(){var c=!1;try{var h=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",d,h),window.removeEventListener("testPassiveEventSupport",d,h)}catch{}return c}(),xr=function(){return!!document.createElement("canvas").getContext}(),er=!!(document.createElementNS&&Ee("svg").createSVGRect),tr=!!er&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Tn=!er&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var h=c.firstChild;return h.style.behavior="url(#default#VML)",h&&typeof h.adj=="object"}catch{return!1}}(),Zi=navigator.platform.indexOf("Mac")===0,Xi=navigator.platform.indexOf("Linux")===0;function nr(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var Ye={ie:ge,ielt9:Oe,edge:Ce,webkit:ke,android:Ae,android23:ce,androidStock:_e,opera:be,chrome:Se,gecko:Me,safari:De,phantom:at,opera12:ut,win:et,ie3d:ln,webkit3d:Xt,gecko3d:Ln,any3d:wr,mobile:So,mobileWebkit:Jn,mobileWebkit3d:Ld,msPointer:Eo,pointer:Av,touch:Mv,touchNative:Nv,mobileOpera:Rd,mobileGecko:vl,retina:_n,passiveEvents:dn,canvas:xr,svg:er,vml:Tn,inlineSvg:tr,mac:Zi,linux:Xi},YA=Ye.msPointer?"MSPointerDown":"pointerdown",GA=Ye.msPointer?"MSPointerMove":"pointermove",qA=Ye.msPointer?"MSPointerUp":"pointerup",KA=Ye.msPointer?"MSPointerCancel":"pointercancel",Dw={touchstart:YA,touchmove:GA,touchend:qA,touchcancel:KA},ZA={touchstart:CY,touchmove:Lv,touchend:Lv,touchcancel:Lv},zu={},XA=!1;function xY(c,h,S){return h==="touchstart"&&TY(),ZA[h]?(S=ZA[h].bind(this,S),c.addEventListener(Dw[h],S,!1),S):(console.warn("wrong event specified:",h),d)}function OY(c,h,S){if(!Dw[h]){console.warn("wrong event specified:",h);return}c.removeEventListener(Dw[h],S,!1)}function SY(c){zu[c.pointerId]=c}function EY(c){zu[c.pointerId]&&(zu[c.pointerId]=c)}function QA(c){delete zu[c.pointerId]}function TY(){XA||(document.addEventListener(YA,SY,!0),document.addEventListener(GA,EY,!0),document.addEventListener(qA,QA,!0),document.addEventListener(KA,QA,!0),XA=!0)}function Lv(c,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var S in zu)h.touches.push(zu[S]);h.changedTouches=[h],c(h)}}function CY(c,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&rr(h),Lv(c,h)}function kY(c){var h={},S,C;for(C in c)S=c[C],h[C]=S&&S.bind?S.bind(c):S;return c=h,h.type="dblclick",h.detail=2,h.isTrusted=!1,h._simulated=!0,h}var jY=200;function PY(c,h){c.addEventListener("dblclick",h);var S=0,C;function N(Y){if(Y.detail!==1){C=Y.detail;return}if(!(Y.pointerType==="mouse"||Y.sourceCapabilities&&!Y.sourceCapabilities.firesTouchEvents)){var ae=rN(Y);if(!(ae.some(function(me){return me instanceof HTMLLabelElement&&me.attributes.for})&&!ae.some(function(me){return me instanceof HTMLInputElement||me instanceof HTMLSelectElement}))){var pe=Date.now();pe-S<=jY?(C++,C===2&&h(kY(Y))):C=1,S=pe}}}return c.addEventListener("click",N),{dblclick:h,simDblclick:N}}function AY(c,h){c.removeEventListener("dblclick",h.dblclick),c.removeEventListener("click",h.simDblclick)}var Iw=Iv(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Dd=Iv(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),JA=Dd==="webkitTransition"||Dd==="OTransition"?Dd+"End":"transitionend";function eN(c){return typeof c=="string"?document.getElementById(c):c}function Id(c,h){var S=c.style[h]||c.currentStyle&&c.currentStyle[h];if((!S||S==="auto")&&document.defaultView){var C=document.defaultView.getComputedStyle(c,null);S=C?C[h]:null}return S==="auto"?null:S}function _t(c,h,S){var C=document.createElement(c);return C.className=h||"",S&&S.appendChild(C),C}function Qt(c){var h=c.parentNode;h&&h.removeChild(c)}function Rv(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function Vu(c){var h=c.parentNode;h&&h.lastChild!==c&&h.appendChild(c)}function Hu(c){var h=c.parentNode;h&&h.firstChild!==c&&h.insertBefore(c,h.firstChild)}function Fw(c,h){if(c.classList!==void 0)return c.classList.contains(h);var S=Dv(c);return S.length>0&&new RegExp("(^|\\s)"+h+"(\\s|$)").test(S)}function it(c,h){if(c.classList!==void 0)for(var S=v(h),C=0,N=S.length;C<N;C++)c.classList.add(S[C]);else if(!Fw(c,h)){var Y=Dv(c);Uw(c,(Y?Y+" ":"")+h)}}function pn(c,h){c.classList!==void 0?c.classList.remove(h):Uw(c,m((" "+Dv(c)+" ").replace(" "+h+" "," ")))}function Uw(c,h){c.className.baseVal===void 0?c.className=h:c.className.baseVal=h}function Dv(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function gi(c,h){"opacity"in c.style?c.style.opacity=h:"filter"in c.style&&NY(c,h)}function NY(c,h){var S=!1,C="DXImageTransform.Microsoft.Alpha";try{S=c.filters.item(C)}catch{if(h===1)return}h=Math.round(h*100),S?(S.Enabled=h!==100,S.Opacity=h):c.style.filter+=" progid:"+C+"(opacity="+h+")"}function Iv(c){for(var h=document.documentElement.style,S=0;S<c.length;S++)if(c[S]in h)return c[S];return!1}function gl(c,h,S){var C=h||new X(0,0);c.style[Iw]=(Ye.ie3d?"translate("+C.x+"px,"+C.y+"px)":"translate3d("+C.x+"px,"+C.y+"px,0)")+(S?" scale("+S+")":"")}function wn(c,h){c._leaflet_pos=h,Ye.any3d?gl(c,h):(c.style.left=h.x+"px",c.style.top=h.y+"px")}function yl(c){return c._leaflet_pos||new X(0,0)}var Fd,Ud,$w;if("onselectstart"in document)Fd=function(){tt(window,"selectstart",rr)},Ud=function(){Lt(window,"selectstart",rr)};else{var $d=Iv(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Fd=function(){if($d){var c=document.documentElement.style;$w=c[$d],c[$d]="none"}},Ud=function(){$d&&(document.documentElement.style[$d]=$w,$w=void 0)}}function Bw(){tt(window,"dragstart",rr)}function zw(){Lt(window,"dragstart",rr)}var Fv,Vw;function Hw(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(Uv(),Fv=c,Vw=c.style.outlineStyle,c.style.outlineStyle="none",tt(window,"keydown",Uv))}function Uv(){Fv&&(Fv.style.outlineStyle=Vw,Fv=void 0,Vw=void 0,Lt(window,"keydown",Uv))}function tN(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function Ww(c){var h=c.getBoundingClientRect();return{x:h.width/c.offsetWidth||1,y:h.height/c.offsetHeight||1,boundingClientRect:h}}var MY={__proto__:null,TRANSFORM:Iw,TRANSITION:Dd,TRANSITION_END:JA,get:eN,getStyle:Id,create:_t,remove:Qt,empty:Rv,toFront:Vu,toBack:Hu,hasClass:Fw,addClass:it,removeClass:pn,setClass:Uw,getClass:Dv,setOpacity:gi,testProp:Iv,setTransform:gl,setPosition:wn,getPosition:yl,get disableTextSelection(){return Fd},get enableTextSelection(){return Ud},disableImageDrag:Bw,enableImageDrag:zw,preventOutline:Hw,restoreOutline:Uv,getSizedParentNode:tN,getScale:Ww};function tt(c,h,S,C){if(h&&typeof h=="object")for(var N in h)Gw(c,N,h[N],S);else{h=v(h);for(var Y=0,ae=h.length;Y<ae;Y++)Gw(c,h[Y],S,C)}return this}var To="_leaflet_events";function Lt(c,h,S,C){if(arguments.length===1)nN(c),delete c[To];else if(h&&typeof h=="object")for(var N in h)qw(c,N,h[N],S);else if(h=v(h),arguments.length===2)nN(c,function(pe){return O(h,pe)!==-1});else for(var Y=0,ae=h.length;Y<ae;Y++)qw(c,h[Y],S,C);return this}function nN(c,h){for(var S in c[To]){var C=S.split(/\d/)[0];(!h||h(C))&&qw(c,C,null,null,S)}}var Yw={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Gw(c,h,S,C){var N=h+l(S)+(C?"_"+l(C):"");if(c[To]&&c[To][N])return this;var Y=function(pe){return S.call(C||c,pe||window.event)},ae=Y;!Ye.touchNative&&Ye.pointer&&h.indexOf("touch")===0?Y=xY(c,h,Y):Ye.touch&&h==="dblclick"?Y=PY(c,Y):"addEventListener"in c?h==="touchstart"||h==="touchmove"||h==="wheel"||h==="mousewheel"?c.addEventListener(Yw[h]||h,Y,Ye.passiveEvents?{passive:!1}:!1):h==="mouseenter"||h==="mouseleave"?(Y=function(pe){pe=pe||window.event,Zw(c,pe)&&ae(pe)},c.addEventListener(Yw[h],Y,!1)):c.addEventListener(h,ae,!1):c.attachEvent("on"+h,Y),c[To]=c[To]||{},c[To][N]=Y}function qw(c,h,S,C,N){N=N||h+l(S)+(C?"_"+l(C):"");var Y=c[To]&&c[To][N];if(!Y)return this;!Ye.touchNative&&Ye.pointer&&h.indexOf("touch")===0?OY(c,h,Y):Ye.touch&&h==="dblclick"?AY(c,Y):"removeEventListener"in c?c.removeEventListener(Yw[h]||h,Y,!1):c.detachEvent("on"+h,Y),c[To][N]=null}function bl(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function Kw(c){return Gw(c,"wheel",bl),this}function Bd(c){return tt(c,"mousedown touchstart dblclick contextmenu",bl),c._leaflet_disable_click=!0,this}function rr(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function _l(c){return rr(c),bl(c),this}function rN(c){if(c.composedPath)return c.composedPath();for(var h=[],S=c.target;S;)h.push(S),S=S.parentNode;return h}function iN(c,h){if(!h)return new X(c.clientX,c.clientY);var S=Ww(h),C=S.boundingClientRect;return new X((c.clientX-C.left)/S.x-h.clientLeft,(c.clientY-C.top)/S.y-h.clientTop)}var LY=Ye.linux&&Ye.chrome?window.devicePixelRatio:Ye.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function oN(c){return Ye.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/LY:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function Zw(c,h){var S=h.relatedTarget;if(!S)return!0;try{for(;S&&S!==c;)S=S.parentNode}catch{return!1}return S!==c}var RY={__proto__:null,on:tt,off:Lt,stopPropagation:bl,disableScrollPropagation:Kw,disableClickPropagation:Bd,preventDefault:rr,stop:_l,getPropagationPath:rN,getMousePosition:iN,getWheelDelta:oN,isExternalTarget:Zw,addListener:tt,removeListener:Lt},aN=te.extend({run:function(c,h,S,C){this.stop(),this._el=c,this._inProgress=!0,this._duration=S||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=yl(c),this._offset=h.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=I(this._animate,this),this._step()},_step:function(c){var h=+new Date-this._startTime,S=this._duration*1e3;h<S?this._runFrame(this._easeOut(h/S),c):(this._runFrame(1),this._complete())},_runFrame:function(c,h){var S=this._startPos.add(this._offset.multiplyBy(c));h&&S._round(),wn(this._el,S),this.fire("step")},_complete:function(){z(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),vt=te.extend({options:{crs:le,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(c,h){h=g(this,h),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),h.maxBounds&&this.setMaxBounds(h.maxBounds),h.zoom!==void 0&&(this._zoom=this._limitZoom(h.zoom)),h.center&&h.zoom!==void 0&&this.setView(se(h.center),h.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Dd&&Ye.any3d&&!Ye.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),tt(this._proxy,JA,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(c,h,S){if(h=h===void 0?this._zoom:this._limitZoom(h),c=this._limitCenter(se(c),h,this.options.maxBounds),S=S||{},this._stop(),this._loaded&&!S.reset&&S!==!0){S.animate!==void 0&&(S.zoom=i({animate:S.animate},S.zoom),S.pan=i({animate:S.animate,duration:S.duration},S.pan));var C=this._zoom!==h?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,h,S.zoom):this._tryAnimatedPan(c,S.pan);if(C)return clearTimeout(this._sizeTimer),this}return this._resetView(c,h,S.pan&&S.pan.noMoveStart),this},setZoom:function(c,h){return this._loaded?this.setView(this.getCenter(),c,{zoom:h}):(this._zoom=c,this)},zoomIn:function(c,h){return c=c||(Ye.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,h)},zoomOut:function(c,h){return c=c||(Ye.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,h)},setZoomAround:function(c,h,S){var C=this.getZoomScale(h),N=this.getSize().divideBy(2),Y=c instanceof X?c:this.latLngToContainerPoint(c),ae=Y.subtract(N).multiplyBy(1-1/C),pe=this.containerPointToLatLng(N.add(ae));return this.setView(pe,h,{zoom:S})},_getBoundsCenterZoom:function(c,h){h=h||{},c=c.getBounds?c.getBounds():ee(c);var S=V(h.paddingTopLeft||h.padding||[0,0]),C=V(h.paddingBottomRight||h.padding||[0,0]),N=this.getBoundsZoom(c,!1,S.add(C));if(N=typeof h.maxZoom=="number"?Math.min(h.maxZoom,N):N,N===1/0)return{center:c.getCenter(),zoom:N};var Y=C.subtract(S).divideBy(2),ae=this.project(c.getSouthWest(),N),pe=this.project(c.getNorthEast(),N),me=this.unproject(ae.add(pe).divideBy(2).add(Y),N);return{center:me,zoom:N}},fitBounds:function(c,h){if(c=ee(c),!c.isValid())throw new Error("Bounds are not valid.");var S=this._getBoundsCenterZoom(c,h);return this.setView(S.center,S.zoom,h)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,h){return this.setView(c,this._zoom,{pan:h})},panBy:function(c,h){if(c=V(c).round(),h=h||{},!c.x&&!c.y)return this.fire("moveend");if(h.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new aN,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),h.noMoveStart||this.fire("movestart"),h.animate!==!1){it(this._mapPane,"leaflet-pan-anim");var S=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,S,h.duration||.25,h.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,h,S){if(S=S||{},S.animate===!1||!Ye.any3d)return this.setView(c,h,S);this._stop();var C=this.project(this.getCenter()),N=this.project(c),Y=this.getSize(),ae=this._zoom;c=se(c),h=h===void 0?ae:h;var pe=Math.max(Y.x,Y.y),me=pe*this.getZoomScale(ae,h),xe=N.distanceTo(C)||1,Ie=1.42,Ke=Ie*Ie;function st(xn){var Xv=xn?-1:1,OG=xn?me:pe,SG=me*me-pe*pe+Xv*Ke*Ke*xe*xe,EG=2*OG*Ke*xe,sx=SG/EG,$N=Math.sqrt(sx*sx+1)-sx,TG=$N<1e-9?-18:Math.log($N);return TG}function Or(xn){return(Math.exp(xn)-Math.exp(-xn))/2}function Rn(xn){return(Math.exp(xn)+Math.exp(-xn))/2}function bi(xn){return Or(xn)/Rn(xn)}var Dr=st(0);function Zu(xn){return pe*(Rn(Dr)/Rn(Dr+Ie*xn))}function bG(xn){return pe*(Rn(Dr)*bi(Dr+Ie*xn)-Or(Dr))/Ke}function _G(xn){return 1-Math.pow(1-xn,1.5)}var wG=Date.now(),FN=(st(1)-Dr)/Ie,xG=S.duration?1e3*S.duration:1e3*FN*.8;function UN(){var xn=(Date.now()-wG)/xG,Xv=_G(xn)*FN;xn<=1?(this._flyToFrame=I(UN,this),this._move(this.unproject(C.add(N.subtract(C).multiplyBy(bG(Xv)/xe)),ae),this.getScaleZoom(pe/Zu(Xv),ae),{flyTo:!0})):this._move(c,h)._moveEnd(!0)}return this._moveStart(!0,S.noMoveStart),UN.call(this),this},flyToBounds:function(c,h){var S=this._getBoundsCenterZoom(c,h);return this.flyTo(S.center,S.zoom,h)},setMaxBounds:function(c){return c=ee(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var h=this.options.minZoom;return this.options.minZoom=c,this._loaded&&h!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var h=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&h!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,h){this._enforcingBounds=!0;var S=this.getCenter(),C=this._limitCenter(S,this._zoom,ee(c));return S.equals(C)||this.panTo(C,h),this._enforcingBounds=!1,this},panInside:function(c,h){h=h||{};var S=V(h.paddingTopLeft||h.padding||[0,0]),C=V(h.paddingBottomRight||h.padding||[0,0]),N=this.project(this.getCenter()),Y=this.project(c),ae=this.getPixelBounds(),pe=re([ae.min.add(S),ae.max.subtract(C)]),me=pe.getSize();if(!pe.contains(Y)){this._enforcingBounds=!0;var xe=Y.subtract(pe.getCenter()),Ie=pe.extend(Y).getSize().subtract(me);N.x+=xe.x<0?-Ie.x:Ie.x,N.y+=xe.y<0?-Ie.y:Ie.y,this.panTo(this.unproject(N),h),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=i({animate:!1,pan:!0},c===!0?{animate:!0}:c);var h=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var S=this.getSize(),C=h.divideBy(2).round(),N=S.divideBy(2).round(),Y=C.subtract(N);return!Y.x&&!Y.y?this:(c.animate&&c.pan?this.panBy(Y):(c.pan&&this._rawPanBy(Y),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:h,newSize:S}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=i({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var h=a(this._handleGeolocationResponse,this),S=a(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(h,S,c):navigator.geolocation.getCurrentPosition(h,S,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var h=c.code,S=c.message||(h===1?"permission denied":h===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:h,message:"Geolocation error: "+S+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var h=c.coords.latitude,S=c.coords.longitude,C=new ie(h,S),N=C.toBounds(c.coords.accuracy*2),Y=this._locateOptions;if(Y.setView){var ae=this.getBoundsZoom(N);this.setView(C,Y.maxZoom?Math.min(ae,Y.maxZoom):ae)}var pe={latlng:C,bounds:N,timestamp:c.timestamp};for(var me in c.coords)typeof c.coords[me]=="number"&&(pe[me]=c.coords[me]);this.fire("locationfound",pe)}},addHandler:function(c,h){if(!h)return this;var S=this[c]=new h(this);return this._handlers.push(S),this.options[c]&&S.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(),Qt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)Qt(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,h){var S="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),C=_t("div",S,h||this._mapPane);return c&&(this._panes[c]=C),C},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),h=this.unproject(c.getBottomLeft()),S=this.unproject(c.getTopRight());return new q(h,S)},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(c,h,S){c=ee(c),S=V(S||[0,0]);var C=this.getZoom()||0,N=this.getMinZoom(),Y=this.getMaxZoom(),ae=c.getNorthWest(),pe=c.getSouthEast(),me=this.getSize().subtract(S),xe=re(this.project(pe,C),this.project(ae,C)).getSize(),Ie=Ye.any3d?this.options.zoomSnap:1,Ke=me.x/xe.x,st=me.y/xe.y,Or=h?Math.max(Ke,st):Math.min(Ke,st);return C=this.getScaleZoom(Or,C),Ie&&(C=Math.round(C/(Ie/100))*(Ie/100),C=h?Math.ceil(C/Ie)*Ie:Math.floor(C/Ie)*Ie),Math.max(N,Math.min(Y,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new X(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,h){var S=this._getTopLeftPoint(c,h);return new W(S,S.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,h){var S=this.options.crs;return h=h===void 0?this._zoom:h,S.scale(c)/S.scale(h)},getScaleZoom:function(c,h){var S=this.options.crs;h=h===void 0?this._zoom:h;var C=S.zoom(c*S.scale(h));return isNaN(C)?1/0:C},project:function(c,h){return h=h===void 0?this._zoom:h,this.options.crs.latLngToPoint(se(c),h)},unproject:function(c,h){return h=h===void 0?this._zoom:h,this.options.crs.pointToLatLng(V(c),h)},layerPointToLatLng:function(c){var h=V(c).add(this.getPixelOrigin());return this.unproject(h)},latLngToLayerPoint:function(c){var h=this.project(se(c))._round();return h._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(se(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(ee(c))},distance:function(c,h){return this.options.crs.distance(se(c),se(h))},containerPointToLayerPoint:function(c){return V(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return V(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var h=this.containerPointToLayerPoint(V(c));return this.layerPointToLatLng(h)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(c)))},mouseEventToContainerPoint:function(c){return iN(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var h=this._container=eN(c);if(h){if(h._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");tt(h,"scroll",this._onScroll,this),this._containerId=l(h)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ye.any3d,it(c,"leaflet-container"+(Ye.touch?" leaflet-touch":"")+(Ye.retina?" leaflet-retina":"")+(Ye.ielt9?" leaflet-oldie":"")+(Ye.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var h=Id(c,"position");h!=="absolute"&&h!=="relative"&&h!=="fixed"&&h!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),wn(this._mapPane,new X(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(it(c.markerPane,"leaflet-zoom-hide"),it(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,h,S){wn(this._mapPane,new X(0,0));var C=!this._loaded;this._loaded=!0,h=this._limitZoom(h),this.fire("viewprereset");var N=this._zoom!==h;this._moveStart(N,S)._move(c,h)._moveEnd(N),this.fire("viewreset"),C&&this.fire("load")},_moveStart:function(c,h){return c&&this.fire("zoomstart"),h||this.fire("movestart"),this},_move:function(c,h,S,C){h===void 0&&(h=this._zoom);var N=this._zoom!==h;return this._zoom=h,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),C?S&&S.pinch&&this.fire("zoom",S):((N||S&&S.pinch)&&this.fire("zoom",S),this.fire("move",S)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){wn(this._mapPane,this._getMapPanePos().subtract(c))},_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(c){this._targets={},this._targets[l(this._container)]=this;var h=c?Lt:tt;h(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&h(window,"resize",this._onResize,this),Ye.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=I(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,h){for(var S=[],C,N=h==="mouseout"||h==="mouseover",Y=c.target||c.srcElement,ae=!1;Y;){if(C=this._targets[l(Y)],C&&(h==="click"||h==="preclick")&&this._draggableMoved(C)){ae=!0;break}if(C&&C.listens(h,!0)&&(N&&!Zw(Y,c)||(S.push(C),N))||Y===this._container)break;Y=Y.parentNode}return!S.length&&!ae&&!N&&this.listens(h,!0)&&(S=[this]),S},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var h=c.target||c.srcElement;if(!(!this._loaded||h._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(h))){var S=c.type;S==="mousedown"&&Hw(h),this._fireDOMEvent(c,S)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,h,S){if(c.type==="click"){var C=i({},c);C.type="preclick",this._fireDOMEvent(C,C.type,S)}var N=this._findEventTargets(c,h);if(S){for(var Y=[],ae=0;ae<S.length;ae++)S[ae].listens(h,!0)&&Y.push(S[ae]);N=Y.concat(N)}if(N.length){h==="contextmenu"&&rr(c);var pe=N[0],me={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var xe=pe.getLatLng&&(!pe._radius||pe._radius<=10);me.containerPoint=xe?this.latLngToContainerPoint(pe.getLatLng()):this.mouseEventToContainerPoint(c),me.layerPoint=this.containerPointToLayerPoint(me.containerPoint),me.latlng=xe?pe.getLatLng():this.layerPointToLatLng(me.layerPoint)}for(ae=0;ae<N.length;ae++)if(N[ae].fire(h,me,!0),me.originalEvent._stopped||N[ae].options.bubblingMouseEvents===!1&&O(this._mouseEvents,h)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,h=this._handlers.length;c<h;c++)this._handlers[c].disable()},whenReady:function(c,h){return this._loaded?c.call(h||this,{target:this}):this.on("load",c,h),this},_getMapPanePos:function(){return yl(this._mapPane)||new X(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,h){var S=c&&h!==void 0?this._getNewPixelOrigin(c,h):this.getPixelOrigin();return S.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,h){var S=this.getSize()._divideBy(2);return this.project(c,h)._subtract(S)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,h,S){var C=this._getNewPixelOrigin(S,h);return this.project(c,h)._subtract(C)},_latLngBoundsToNewLayerBounds:function(c,h,S){var C=this._getNewPixelOrigin(S,h);return re([this.project(c.getSouthWest(),h)._subtract(C),this.project(c.getNorthWest(),h)._subtract(C),this.project(c.getSouthEast(),h)._subtract(C),this.project(c.getNorthEast(),h)._subtract(C)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,h,S){if(!S)return c;var C=this.project(c,h),N=this.getSize().divideBy(2),Y=new W(C.subtract(N),C.add(N)),ae=this._getBoundsOffset(Y,S,h);return Math.abs(ae.x)<=1&&Math.abs(ae.y)<=1?c:this.unproject(C.add(ae),h)},_limitOffset:function(c,h){if(!h)return c;var S=this.getPixelBounds(),C=new W(S.min.add(c),S.max.add(c));return c.add(this._getBoundsOffset(C,h))},_getBoundsOffset:function(c,h,S){var C=re(this.project(h.getNorthEast(),S),this.project(h.getSouthWest(),S)),N=C.min.subtract(c.min),Y=C.max.subtract(c.max),ae=this._rebound(N.x,-Y.x),pe=this._rebound(N.y,-Y.y);return new X(ae,pe)},_rebound:function(c,h){return c+h>0?Math.round(c-h)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(h))},_limitZoom:function(c){var h=this.getMinZoom(),S=this.getMaxZoom(),C=Ye.any3d?this.options.zoomSnap:1;return C&&(c=Math.round(c/C)*C),Math.max(h,Math.min(S,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){pn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,h){var S=this._getCenterOffset(c)._trunc();return(h&&h.animate)!==!0&&!this.getSize().contains(S)?!1:(this.panBy(S,h),!0)},_createAnimProxy:function(){var c=this._proxy=_t("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(h){var S=Iw,C=this._proxy.style[S];gl(this._proxy,this.project(h.center,h.zoom),this.getZoomScale(h.zoom,1)),C===this._proxy.style[S]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Qt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),h=this.getZoom();gl(this._proxy,this.project(c,h),this.getZoomScale(h,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,h,S){if(this._animatingZoom)return!0;if(S=S||{},!this._zoomAnimated||S.animate===!1||this._nothingToAnimate()||Math.abs(h-this._zoom)>this.options.zoomAnimationThreshold)return!1;var C=this.getZoomScale(h),N=this._getCenterOffset(c)._divideBy(1-1/C);return S.animate!==!0&&!this.getSize().contains(N)?!1:(I(function(){this._moveStart(!0,S.noMoveStart||!1)._animateZoom(c,h,!0)},this),!0)},_animateZoom:function(c,h,S,C){this._mapPane&&(S&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=h,it(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:h,noUpdate:C}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&pn(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 DY(c,h){return new vt(c,h)}var Qi=H.extend({options:{position:"topright"},initialize:function(c){g(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var h=this._map;return h&&h.removeControl(this),this.options.position=c,h&&h.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var h=this._container=this.onAdd(c),S=this.getPosition(),C=c._controlCorners[S];return it(h,"leaflet-control"),S.indexOf("bottom")!==-1?C.insertBefore(h,C.firstChild):C.appendChild(h),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Qt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),zd=function(c){return new Qi(c)};vt.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},h="leaflet-",S=this._controlContainer=_t("div",h+"control-container",this._container);function C(N,Y){var ae=h+N+" "+h+Y;c[N+Y]=_t("div",ae,S)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)Qt(this._controlCorners[c]);Qt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var sN=Qi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,h,S,C){return S<C?-1:C<S?1:0}},initialize:function(c,h,S){g(this,S),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var C in c)this._addLayer(c[C],C);for(C in h)this._addLayer(h[C],C,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var h=0;h<this._layers.length;h++)this._layers[h].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return Qi.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,h){return this._addLayer(c,h),this._map?this._update():this},addOverlay:function(c,h){return this._addLayer(c,h,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var h=this._getLayer(l(c));return h&&this._layers.splice(this._layers.indexOf(h),1),this._map?this._update():this},expand:function(){it(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(it(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):pn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return pn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",h=this._container=_t("div",c),S=this.options.collapsed;h.setAttribute("aria-haspopup",!0),Bd(h),Kw(h);var C=this._section=_t("section",c+"-list");S&&(this._map.on("click",this.collapse,this),tt(h,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var N=this._layersLink=_t("a",c+"-toggle",h);N.href="#",N.title="Layers",N.setAttribute("role","button"),tt(N,{keydown:function(Y){Y.keyCode===13&&this._expandSafely()},click:function(Y){rr(Y),this._expandSafely()}},this),S||this.expand(),this._baseLayersList=_t("div",c+"-base",C),this._separator=_t("div",c+"-separator",C),this._overlaysList=_t("div",c+"-overlays",C),h.appendChild(C)},_getLayer:function(c){for(var h=0;h<this._layers.length;h++)if(this._layers[h]&&l(this._layers[h].layer)===c)return this._layers[h]},_addLayer:function(c,h,S){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:h,overlay:S}),this.options.sortLayers&&this._layers.sort(a(function(C,N){return this.options.sortFunction(C.layer,N.layer,C.name,N.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Rv(this._baseLayersList),Rv(this._overlaysList),this._layerControlInputs=[];var c,h,S,C,N=0;for(S=0;S<this._layers.length;S++)C=this._layers[S],this._addItem(C),h=h||C.overlay,c=c||!C.overlay,N+=C.overlay?0:1;return this.options.hideSingleBase&&(c=c&&N>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=h&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var h=this._getLayer(l(c.target)),S=h.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;S&&this._map.fire(S,h)},_createRadioElement:function(c,h){var S='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(h?' checked="checked"':"")+"/>",C=document.createElement("div");return C.innerHTML=S,C.firstChild},_addItem:function(c){var h=document.createElement("label"),S=this._map.hasLayer(c.layer),C;c.overlay?(C=document.createElement("input"),C.type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=S):C=this._createRadioElement("leaflet-base-layers_"+l(this),S),this._layerControlInputs.push(C),C.layerId=l(c.layer),tt(C,"click",this._onInputClick,this);var N=document.createElement("span");N.innerHTML=" "+c.name;var Y=document.createElement("span");h.appendChild(Y),Y.appendChild(C),Y.appendChild(N);var ae=c.overlay?this._overlaysList:this._baseLayersList;return ae.appendChild(h),this._checkDisabledLayers(),h},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,h,S,C=[],N=[];this._handlingClick=!0;for(var Y=c.length-1;Y>=0;Y--)h=c[Y],S=this._getLayer(h.layerId).layer,h.checked?C.push(S):h.checked||N.push(S);for(Y=0;Y<N.length;Y++)this._map.hasLayer(N[Y])&&this._map.removeLayer(N[Y]);for(Y=0;Y<C.length;Y++)this._map.hasLayer(C[Y])||this._map.addLayer(C[Y]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,h,S,C=this._map.getZoom(),N=c.length-1;N>=0;N--)h=c[N],S=this._getLayer(h.layerId).layer,h.disabled=S.options.minZoom!==void 0&&C<S.options.minZoom||S.options.maxZoom!==void 0&&C>S.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,tt(c,"click",rr),this.expand();var h=this;setTimeout(function(){Lt(c,"click",rr),h._preventClick=!1})}}),IY=function(c,h,S){return new sN(c,h,S)},Xw=Qi.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(c){var h="leaflet-control-zoom",S=_t("div",h+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,h+"-in",S,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.zoomOutTitle,h+"-out",S,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),S},onRemove:function(c){c.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(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,h,S,C,N){var Y=_t("a",S,C);return Y.innerHTML=c,Y.href="#",Y.title=h,Y.setAttribute("role","button"),Y.setAttribute("aria-label",h),Bd(Y),tt(Y,"click",_l),tt(Y,"click",N,this),tt(Y,"click",this._refocusOnMap,this),Y},_updateDisabled:function(){var c=this._map,h="leaflet-disabled";pn(this._zoomInButton,h),pn(this._zoomOutButton,h),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(it(this._zoomOutButton,h),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(it(this._zoomInButton,h),this._zoomInButton.setAttribute("aria-disabled","true"))}});vt.mergeOptions({zoomControl:!0}),vt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Xw,this.addControl(this.zoomControl))});var FY=function(c){return new Xw(c)},lN=Qi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var h="leaflet-control-scale",S=_t("div",h),C=this.options;return this._addScales(C,h+"-line",S),c.on(C.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),S},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,h,S){c.metric&&(this._mScale=_t("div",h,S)),c.imperial&&(this._iScale=_t("div",h,S))},_update:function(){var c=this._map,h=c.getSize().y/2,S=c.distance(c.containerPointToLatLng([0,h]),c.containerPointToLatLng([this.options.maxWidth,h]));this._updateScales(S)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var h=this._getRoundNum(c),S=h<1e3?h+" m":h/1e3+" km";this._updateScale(this._mScale,S,h/c)},_updateImperial:function(c){var h=c*3.2808399,S,C,N;h>5280?(S=h/5280,C=this._getRoundNum(S),this._updateScale(this._iScale,C+" mi",C/S)):(N=this._getRoundNum(h),this._updateScale(this._iScale,N+" ft",N/h))},_updateScale:function(c,h,S){c.style.width=Math.round(this.options.maxWidth*S)+"px",c.innerHTML=h},_getRoundNum:function(c){var h=Math.pow(10,(Math.floor(c)+"").length-1),S=c/h;return S=S>=10?10:S>=5?5:S>=3?3:S>=2?2:1,h*S}}),UY=function(c){return new lN(c)},$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>',Qw=Qi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ye.inlineSvg?$Y+" ":"")+"Leaflet</a>"},initialize:function(c){g(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=_t("div","leaflet-control-attribution"),Bd(this._container);for(var h in c._layers)c._layers[h].getAttribution&&this.addAttribution(c._layers[h].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var h in this._attributions)this._attributions[h]&&c.push(h);var S=[];this.options.prefix&&S.push(this.options.prefix),c.length&&S.push(c.join(", ")),this._container.innerHTML=S.join(' <span aria-hidden="true">|</span> ')}}});vt.mergeOptions({attributionControl:!0}),vt.addInitHook(function(){this.options.attributionControl&&new Qw().addTo(this)});var BY=function(c){return new Qw(c)};Qi.Layers=sN,Qi.Zoom=Xw,Qi.Scale=lN,Qi.Attribution=Qw,zd.layers=IY,zd.zoom=FY,zd.scale=UY,zd.attribution=BY;var Co=H.extend({initialize:function(c){this._map=c},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}});Co.addTo=function(c,h){return c.addHandler(h,this),this};var zY={Events:Z},uN=Ye.touch?"touchstart mousedown":"mousedown",ns=te.extend({options:{clickTolerance:3},initialize:function(c,h,S,C){g(this,C),this._element=c,this._dragStartTarget=h||c,this._preventOutline=S},enable:function(){this._enabled||(tt(this._dragStartTarget,uN,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ns._dragging===this&&this.finishDrag(!0),Lt(this._dragStartTarget,uN,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!Fw(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){ns._dragging===this&&this.finishDrag();return}if(!(ns._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(ns._dragging=this,this._preventOutline&&Hw(this._element),Bw(),Fd(),!this._moving)){this.fire("down");var h=c.touches?c.touches[0]:c,S=tN(this._element);this._startPoint=new X(h.clientX,h.clientY),this._startPos=yl(this._element),this._parentScale=Ww(S);var C=c.type==="mousedown";tt(document,C?"mousemove":"touchmove",this._onMove,this),tt(document,C?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var h=c.touches&&c.touches.length===1?c.touches[0]:c,S=new X(h.clientX,h.clientY)._subtract(this._startPoint);!S.x&&!S.y||Math.abs(S.x)+Math.abs(S.y)<this.options.clickTolerance||(S.x/=this._parentScale.x,S.y/=this._parentScale.y,rr(c),this._moved||(this.fire("dragstart"),this._moved=!0,it(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),it(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(S),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),wn(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){pn(document.body,"leaflet-dragging"),this._lastTarget&&(pn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Lt(document,"mousemove touchmove",this._onMove,this),Lt(document,"mouseup touchend touchcancel",this._onUp,this),zw(),Ud();var h=this._moved&&this._moving;this._moving=!1,ns._dragging=!1,h&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function cN(c,h,S){var C,N=[1,4,2,8],Y,ae,pe,me,xe,Ie,Ke,st;for(Y=0,Ie=c.length;Y<Ie;Y++)c[Y]._code=wl(c[Y],h);for(pe=0;pe<4;pe++){for(Ke=N[pe],C=[],Y=0,Ie=c.length,ae=Ie-1;Y<Ie;ae=Y++)me=c[Y],xe=c[ae],me._code&Ke?xe._code&Ke||(st=$v(xe,me,Ke,h,S),st._code=wl(st,h),C.push(st)):(xe._code&Ke&&(st=$v(xe,me,Ke,h,S),st._code=wl(st,h),C.push(st)),C.push(me));c=C}return c}function fN(c,h){var S,C,N,Y,ae,pe,me,xe,Ie;if(!c||c.length===0)throw new Error("latlngs not passed");yi(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Ke=se([0,0]),st=ee(c),Or=st.getNorthWest().distanceTo(st.getSouthWest())*st.getNorthEast().distanceTo(st.getNorthWest());Or<1700&&(Ke=Jw(c));var Rn=c.length,bi=[];for(S=0;S<Rn;S++){var Dr=se(c[S]);bi.push(h.project(se([Dr.lat-Ke.lat,Dr.lng-Ke.lng])))}for(pe=me=xe=0,S=0,C=Rn-1;S<Rn;C=S++)N=bi[S],Y=bi[C],ae=N.y*Y.x-Y.y*N.x,me+=(N.x+Y.x)*ae,xe+=(N.y+Y.y)*ae,pe+=ae*3;pe===0?Ie=bi[0]:Ie=[me/pe,xe/pe];var Zu=h.unproject(V(Ie));return se([Zu.lat+Ke.lat,Zu.lng+Ke.lng])}function Jw(c){for(var h=0,S=0,C=0,N=0;N<c.length;N++){var Y=se(c[N]);h+=Y.lat,S+=Y.lng,C++}return se([h/C,S/C])}var VY={__proto__:null,clipPolygon:cN,polygonCenter:fN,centroid:Jw};function dN(c,h){if(!h||!c.length)return c.slice();var S=h*h;return c=YY(c,S),c=WY(c,S),c}function pN(c,h,S){return Math.sqrt(Vd(c,h,S,!0))}function HY(c,h,S){return Vd(c,h,S)}function WY(c,h){var S=c.length,C=typeof Uint8Array!=void 0+""?Uint8Array:Array,N=new C(S);N[0]=N[S-1]=1,ex(c,N,h,0,S-1);var Y,ae=[];for(Y=0;Y<S;Y++)N[Y]&&ae.push(c[Y]);return ae}function ex(c,h,S,C,N){var Y=0,ae,pe,me;for(pe=C+1;pe<=N-1;pe++)me=Vd(c[pe],c[C],c[N],!0),me>Y&&(ae=pe,Y=me);Y>S&&(h[ae]=1,ex(c,h,S,C,ae),ex(c,h,S,ae,N))}function YY(c,h){for(var S=[c[0]],C=1,N=0,Y=c.length;C<Y;C++)GY(c[C],c[N])>h&&(S.push(c[C]),N=C);return N<Y-1&&S.push(c[Y-1]),S}var hN;function mN(c,h,S,C,N){var Y=C?hN:wl(c,S),ae=wl(h,S),pe,me,xe;for(hN=ae;;){if(!(Y|ae))return[c,h];if(Y&ae)return!1;pe=Y||ae,me=$v(c,h,pe,S,N),xe=wl(me,S),pe===Y?(c=me,Y=xe):(h=me,ae=xe)}}function $v(c,h,S,C,N){var Y=h.x-c.x,ae=h.y-c.y,pe=C.min,me=C.max,xe,Ie;return S&8?(xe=c.x+Y*(me.y-c.y)/ae,Ie=me.y):S&4?(xe=c.x+Y*(pe.y-c.y)/ae,Ie=pe.y):S&2?(xe=me.x,Ie=c.y+ae*(me.x-c.x)/Y):S&1&&(xe=pe.x,Ie=c.y+ae*(pe.x-c.x)/Y),new X(xe,Ie,N)}function wl(c,h){var S=0;return c.x<h.min.x?S|=1:c.x>h.max.x&&(S|=2),c.y<h.min.y?S|=4:c.y>h.max.y&&(S|=8),S}function GY(c,h){var S=h.x-c.x,C=h.y-c.y;return S*S+C*C}function Vd(c,h,S,C){var N=h.x,Y=h.y,ae=S.x-N,pe=S.y-Y,me=ae*ae+pe*pe,xe;return me>0&&(xe=((c.x-N)*ae+(c.y-Y)*pe)/me,xe>1?(N=S.x,Y=S.y):xe>0&&(N+=ae*xe,Y+=pe*xe)),ae=c.x-N,pe=c.y-Y,C?ae*ae+pe*pe:new X(N,Y)}function yi(c){return!x(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function vN(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),yi(c)}function gN(c,h){var S,C,N,Y,ae,pe,me,xe;if(!c||c.length===0)throw new Error("latlngs not passed");yi(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Ie=se([0,0]),Ke=ee(c),st=Ke.getNorthWest().distanceTo(Ke.getSouthWest())*Ke.getNorthEast().distanceTo(Ke.getNorthWest());st<1700&&(Ie=Jw(c));var Or=c.length,Rn=[];for(S=0;S<Or;S++){var bi=se(c[S]);Rn.push(h.project(se([bi.lat-Ie.lat,bi.lng-Ie.lng])))}for(S=0,C=0;S<Or-1;S++)C+=Rn[S].distanceTo(Rn[S+1])/2;if(C===0)xe=Rn[0];else for(S=0,Y=0;S<Or-1;S++)if(ae=Rn[S],pe=Rn[S+1],N=ae.distanceTo(pe),Y+=N,Y>C){me=(Y-C)/N,xe=[pe.x-me*(pe.x-ae.x),pe.y-me*(pe.y-ae.y)];break}var Dr=h.unproject(V(xe));return se([Dr.lat+Ie.lat,Dr.lng+Ie.lng])}var qY={__proto__:null,simplify:dN,pointToSegmentDistance:pN,closestPointOnSegment:HY,clipSegment:mN,_getEdgeIntersection:$v,_getBitCode:wl,_sqClosestPointOnSegment:Vd,isFlat:yi,_flat:vN,polylineCenter:gN},tx={project:function(c){return new X(c.lng,c.lat)},unproject:function(c){return new ie(c.y,c.x)},bounds:new W([-180,-90],[180,90])},nx={R:6378137,R_MINOR:6356752314245179e-9,bounds:new W([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var h=Math.PI/180,S=this.R,C=c.lat*h,N=this.R_MINOR/S,Y=Math.sqrt(1-N*N),ae=Y*Math.sin(C),pe=Math.tan(Math.PI/4-C/2)/Math.pow((1-ae)/(1+ae),Y/2);return C=-S*Math.log(Math.max(pe,1e-10)),new X(c.lng*h*S,C)},unproject:function(c){for(var h=180/Math.PI,S=this.R,C=this.R_MINOR/S,N=Math.sqrt(1-C*C),Y=Math.exp(-c.y/S),ae=Math.PI/2-2*Math.atan(Y),pe=0,me=.1,xe;pe<15&&Math.abs(me)>1e-7;pe++)xe=N*Math.sin(ae),xe=Math.pow((1-xe)/(1+xe),N/2),me=Math.PI/2-2*Math.atan(Y*xe)-ae,ae+=me;return new ie(ae*h,c.x*h/S)}},KY={__proto__:null,LonLat:tx,Mercator:nx,SphericalMercator:B},ZY=i({},j,{code:"EPSG:3395",projection:nx,transformation:function(){var c=.5/(Math.PI*nx.R);return K(c,.5,-c,.5)}()}),yN=i({},j,{code:"EPSG:4326",projection:tx,transformation:K(1/180,1,-1/180,.5)}),XY=i({},fe,{projection:tx,transformation:K(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,h){var S=h.lng-c.lng,C=h.lat-c.lat;return Math.sqrt(S*S+C*C)},infinite:!0});fe.Earth=j,fe.EPSG3395=ZY,fe.EPSG3857=le,fe.EPSG900913=he,fe.EPSG4326=yN,fe.Simple=XY;var Ji=te.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[l(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[l(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var h=c.target;if(h.hasLayer(this)){if(this._map=h,this._zoomAnimated=h._zoomAnimated,this.getEvents){var S=this.getEvents();h.on(S,this),this.once("remove",function(){h.off(S,this)},this)}this.onAdd(h),this.fire("add"),h.fire("layeradd",{layer:this})}}});vt.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var h=l(c);return this._layers[h]?this:(this._layers[h]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var h=l(c);return this._layers[h]?(this._loaded&&c.onRemove(this),delete this._layers[h],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return l(c)in this._layers},eachLayer:function(c,h){for(var S in this._layers)c.call(h,this._layers[S]);return this},_addLayers:function(c){c=c?x(c)?c:[c]:[];for(var h=0,S=c.length;h<S;h++)this.addLayer(c[h])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[l(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var h=l(c);this._zoomBoundLayers[h]&&(delete this._zoomBoundLayers[h],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,h=-1/0,S=this._getZoomSpan();for(var C in this._zoomBoundLayers){var N=this._zoomBoundLayers[C].options;c=N.minZoom===void 0?c:Math.min(c,N.minZoom),h=N.maxZoom===void 0?h:Math.max(h,N.maxZoom)}this._layersMaxZoom=h===-1/0?void 0:h,this._layersMinZoom=c===1/0?void 0:c,S!==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 Wu=Ji.extend({initialize:function(c,h){g(this,h),this._layers={};var S,C;if(c)for(S=0,C=c.length;S<C;S++)this.addLayer(c[S])},addLayer:function(c){var h=this.getLayerId(c);return this._layers[h]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var h=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[h]&&this._map.removeLayer(this._layers[h]),delete this._layers[h],this},hasLayer:function(c){var h=typeof c=="number"?c:this.getLayerId(c);return h in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var h=Array.prototype.slice.call(arguments,1),S,C;for(S in this._layers)C=this._layers[S],C[c]&&C[c].apply(C,h);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,h){for(var S in this._layers)c.call(h,this._layers[S]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return l(c)}}),QY=function(c,h){return new Wu(c,h)},aa=Wu.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),Wu.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),Wu.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new q;for(var h in this._layers){var S=this._layers[h];c.extend(S.getBounds?S.getBounds():S.getLatLng())}return c}}),JY=function(c,h){return new aa(c,h)},Yu=H.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){g(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,h){var S=this._getIconUrl(c);if(!S){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var C=this._createImg(S,h&&h.tagName==="IMG"?h:null);return this._setIconStyles(C,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(C.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),C},_setIconStyles:function(c,h){var S=this.options,C=S[h+"Size"];typeof C=="number"&&(C=[C,C]);var N=V(C),Y=V(h==="shadow"&&S.shadowAnchor||S.iconAnchor||N&&N.divideBy(2,!0));c.className="leaflet-marker-"+h+" "+(S.className||""),Y&&(c.style.marginLeft=-Y.x+"px",c.style.marginTop=-Y.y+"px"),N&&(c.style.width=N.x+"px",c.style.height=N.y+"px")},_createImg:function(c,h){return h=h||document.createElement("img"),h.src=c,h},_getIconUrl:function(c){return Ye.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function eG(c){return new Yu(c)}var Hd=Yu.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(c){return typeof Hd.imagePath!="string"&&(Hd.imagePath=this._detectIconPath()),(this.options.imagePath||Hd.imagePath)+Yu.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var h=function(S,C,N){var Y=C.exec(S);return Y&&Y[N]};return c=h(c,/^url\((['"])?(.+)\1\)$/,2),c&&h(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=_t("div","leaflet-default-icon-path",document.body),h=Id(c,"background-image")||Id(c,"backgroundImage");if(document.body.removeChild(c),h=this._stripUrl(h),h)return h;var S=document.querySelector('link[href$="leaflet.css"]');return S?S.href.substring(0,S.href.length-11-1):""}}),bN=Co.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new ns(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),it(c,"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&&pn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var h=this._marker,S=h._map,C=this._marker.options.autoPanSpeed,N=this._marker.options.autoPanPadding,Y=yl(h._icon),ae=S.getPixelBounds(),pe=S.getPixelOrigin(),me=re(ae.min._subtract(pe).add(N),ae.max._subtract(pe).subtract(N));if(!me.contains(Y)){var xe=V((Math.max(me.max.x,Y.x)-me.max.x)/(ae.max.x-me.max.x)-(Math.min(me.min.x,Y.x)-me.min.x)/(ae.min.x-me.min.x),(Math.max(me.max.y,Y.y)-me.max.y)/(ae.max.y-me.max.y)-(Math.min(me.min.y,Y.y)-me.min.y)/(ae.min.y-me.min.y)).multiplyBy(C);S.panBy(xe,{animate:!1}),this._draggable._newPos._add(xe),this._draggable._startPos._add(xe),wn(h._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=I(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(z(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,c)))},_onDrag:function(c){var h=this._marker,S=h._shadow,C=yl(h._icon),N=h._map.layerPointToLatLng(C);S&&wn(S,C),h._latlng=N,c.latlng=N,c.oldLatLng=this._oldLatLng,h.fire("move",c).fire("drag",c)},_onDragEnd:function(c){z(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Bv=Ji.extend({options:{icon:new Hd,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(c,h){g(this,h),this._latlng=se(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.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(c){var h=this._latlng;return this._latlng=se(c),this.update(),this.fire("move",{oldLatLng:h,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,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 c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,h="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),S=c.icon.createIcon(this._icon),C=!1;S!==this._icon&&(this._icon&&this._removeIcon(),C=!0,c.title&&(S.title=c.title),S.tagName==="IMG"&&(S.alt=c.alt||"")),it(S,h),c.keyboard&&(S.tabIndex="0",S.setAttribute("role","button")),this._icon=S,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&tt(S,"focus",this._panOnFocus,this);var N=c.icon.createShadow(this._shadow),Y=!1;N!==this._shadow&&(this._removeShadow(),Y=!0),N&&(it(N,h),N.alt=""),this._shadow=N,c.opacity<1&&this._updateOpacity(),C&&this.getPane().appendChild(this._icon),this._initInteraction(),N&&Y&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Lt(this._icon,"focus",this._panOnFocus,this),Qt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Qt(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&wn(this._icon,c),this._shadow&&wn(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var h=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(h)},_initInteraction:function(){if(this.options.interactive&&(it(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),bN)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new bN(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&gi(this._icon,c),this._shadow&&gi(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var h=this.options.icon.options,S=h.iconSize?V(h.iconSize):V(0,0),C=h.iconAnchor?V(h.iconAnchor):V(0,0);c.panInside(this._latlng,{paddingTopLeft:C,paddingBottomRight:S.subtract(C)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function tG(c,h){return new Bv(c,h)}var rs=Ji.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(c){this._renderer=c.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(c){return g(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"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)}}),zv=rs.extend({options:{fill:!0,radius:10},initialize:function(c,h){g(this,h),this._latlng=se(c),this._radius=this.options.radius},setLatLng:function(c){var h=this._latlng;return this._latlng=se(c),this.redraw(),this.fire("move",{oldLatLng:h,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var h=c&&c.radius||this._radius;return rs.prototype.setStyle.call(this,c),this.setRadius(h),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,h=this._radiusY||c,S=this._clickTolerance(),C=[c+S,h+S];this._pxBounds=new W(this._point.subtract(C),this._point.add(C))},_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(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function nG(c,h){return new zv(c,h)}var rx=zv.extend({initialize:function(c,h,S){if(typeof h=="number"&&(h=i({},S,{radius:h})),g(this,h),this._latlng=se(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new q(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:rs.prototype.setStyle,_project:function(){var c=this._latlng.lng,h=this._latlng.lat,S=this._map,C=S.options.crs;if(C.distance===j.distance){var N=Math.PI/180,Y=this._mRadius/j.R/N,ae=S.project([h+Y,c]),pe=S.project([h-Y,c]),me=ae.add(pe).divideBy(2),xe=S.unproject(me).lat,Ie=Math.acos((Math.cos(Y*N)-Math.sin(h*N)*Math.sin(xe*N))/(Math.cos(h*N)*Math.cos(xe*N)))/N;(isNaN(Ie)||Ie===0)&&(Ie=Y/Math.cos(Math.PI/180*h)),this._point=me.subtract(S.getPixelOrigin()),this._radius=isNaN(Ie)?0:me.x-S.project([xe,c-Ie]).x,this._radiusY=me.y-ae.y}else{var Ke=C.unproject(C.project(this._latlng).subtract([this._mRadius,0]));this._point=S.latLngToLayerPoint(this._latlng),this._radius=this._point.x-S.latLngToLayerPoint(Ke).x}this._updateBounds()}});function rG(c,h,S){return new rx(c,h,S)}var sa=rs.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,h){g(this,h),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var h=1/0,S=null,C=Vd,N,Y,ae=0,pe=this._parts.length;ae<pe;ae++)for(var me=this._parts[ae],xe=1,Ie=me.length;xe<Ie;xe++){N=me[xe-1],Y=me[xe];var Ke=C(c,N,Y,!0);Ke<h&&(h=Ke,S=C(c,N,Y))}return S&&(S.distance=Math.sqrt(h)),S},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return gN(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,h){return h=h||this._defaultShape(),c=se(c),h.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new q,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return yi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var h=[],S=yi(c),C=0,N=c.length;C<N;C++)S?(h[C]=se(c[C]),this._bounds.extend(h[C])):h[C]=this._convertLatLngs(c[C]);return h},_project:function(){var c=new W;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),h=new X(c,c);this._rawPxBounds&&(this._pxBounds=new W([this._rawPxBounds.min.subtract(h),this._rawPxBounds.max.add(h)]))},_projectLatlngs:function(c,h,S){var C=c[0]instanceof ie,N=c.length,Y,ae;if(C){for(ae=[],Y=0;Y<N;Y++)ae[Y]=this._map.latLngToLayerPoint(c[Y]),S.extend(ae[Y]);h.push(ae)}else for(Y=0;Y<N;Y++)this._projectLatlngs(c[Y],h,S)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var h=this._parts,S,C,N,Y,ae,pe,me;for(S=0,N=0,Y=this._rings.length;S<Y;S++)for(me=this._rings[S],C=0,ae=me.length;C<ae-1;C++)pe=mN(me[C],me[C+1],c,C,!0),pe&&(h[N]=h[N]||[],h[N].push(pe[0]),(pe[1]!==me[C+1]||C===ae-2)&&(h[N].push(pe[1]),N++))}},_simplifyPoints:function(){for(var c=this._parts,h=this.options.smoothFactor,S=0,C=c.length;S<C;S++)c[S]=dN(c[S],h)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,h){var S,C,N,Y,ae,pe,me=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(S=0,Y=this._parts.length;S<Y;S++)for(pe=this._parts[S],C=0,ae=pe.length,N=ae-1;C<ae;N=C++)if(!(!h&&C===0)&&pN(c,pe[N],pe[C])<=me)return!0;return!1}});function iG(c,h){return new sa(c,h)}sa._flat=vN;var Gu=sa.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 fN(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var h=sa.prototype._convertLatLngs.call(this,c),S=h.length;return S>=2&&h[0]instanceof ie&&h[0].equals(h[S-1])&&h.pop(),h},_setLatLngs:function(c){sa.prototype._setLatLngs.call(this,c),yi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return yi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,h=this.options.weight,S=new X(h,h);if(c=new W(c.min.subtract(S),c.max.add(S)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var C=0,N=this._rings.length,Y;C<N;C++)Y=cN(this._rings[C],c,!0),Y.length&&this._parts.push(Y)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var h=!1,S,C,N,Y,ae,pe,me,xe;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(Y=0,me=this._parts.length;Y<me;Y++)for(S=this._parts[Y],ae=0,xe=S.length,pe=xe-1;ae<xe;pe=ae++)C=S[ae],N=S[pe],C.y>c.y!=N.y>c.y&&c.x<(N.x-C.x)*(c.y-C.y)/(N.y-C.y)+C.x&&(h=!h);return h||sa.prototype._containsPoint.call(this,c,!0)}});function oG(c,h){return new Gu(c,h)}var la=aa.extend({initialize:function(c,h){g(this,h),this._layers={},c&&this.addData(c)},addData:function(c){var h=x(c)?c:c.features,S,C,N;if(h){for(S=0,C=h.length;S<C;S++)N=h[S],(N.geometries||N.geometry||N.features||N.coordinates)&&this.addData(N);return this}var Y=this.options;if(Y.filter&&!Y.filter(c))return this;var ae=Vv(c,Y);return ae?(ae.feature=Yv(c),ae.defaultOptions=ae.options,this.resetStyle(ae),Y.onEachFeature&&Y.onEachFeature(c,ae),this.addLayer(ae)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=i({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(h){this._setLayerStyle(h,c)},this)},_setLayerStyle:function(c,h){c.setStyle&&(typeof h=="function"&&(h=h(c.feature)),c.setStyle(h))}});function Vv(c,h){var S=c.type==="Feature"?c.geometry:c,C=S?S.coordinates:null,N=[],Y=h&&h.pointToLayer,ae=h&&h.coordsToLatLng||ix,pe,me,xe,Ie;if(!C&&!S)return null;switch(S.type){case"Point":return pe=ae(C),_N(Y,c,pe,h);case"MultiPoint":for(xe=0,Ie=C.length;xe<Ie;xe++)pe=ae(C[xe]),N.push(_N(Y,c,pe,h));return new aa(N);case"LineString":case"MultiLineString":return me=Hv(C,S.type==="LineString"?0:1,ae),new sa(me,h);case"Polygon":case"MultiPolygon":return me=Hv(C,S.type==="Polygon"?1:2,ae),new Gu(me,h);case"GeometryCollection":for(xe=0,Ie=S.geometries.length;xe<Ie;xe++){var Ke=Vv({geometry:S.geometries[xe],type:"Feature",properties:c.properties},h);Ke&&N.push(Ke)}return new aa(N);case"FeatureCollection":for(xe=0,Ie=S.features.length;xe<Ie;xe++){var st=Vv(S.features[xe],h);st&&N.push(st)}return new aa(N);default:throw new Error("Invalid GeoJSON object.")}}function _N(c,h,S,C){return c?c(h,S):new Bv(S,C&&C.markersInheritOptions&&C)}function ix(c){return new ie(c[1],c[0],c[2])}function Hv(c,h,S){for(var C=[],N=0,Y=c.length,ae;N<Y;N++)ae=h?Hv(c[N],h-1,S):(S||ix)(c[N]),C.push(ae);return C}function ox(c,h){return c=se(c),c.alt!==void 0?[p(c.lng,h),p(c.lat,h),p(c.alt,h)]:[p(c.lng,h),p(c.lat,h)]}function Wv(c,h,S,C){for(var N=[],Y=0,ae=c.length;Y<ae;Y++)N.push(h?Wv(c[Y],yi(c[Y])?0:h-1,S,C):ox(c[Y],C));return!h&&S&&N.length>0&&N.push(N[0].slice()),N}function qu(c,h){return c.feature?i({},c.feature,{geometry:h}):Yv(h)}function Yv(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var ax={toGeoJSON:function(c){return qu(this,{type:"Point",coordinates:ox(this.getLatLng(),c)})}};Bv.include(ax),rx.include(ax),zv.include(ax),sa.include({toGeoJSON:function(c){var h=!yi(this._latlngs),S=Wv(this._latlngs,h?1:0,!1,c);return qu(this,{type:(h?"Multi":"")+"LineString",coordinates:S})}}),Gu.include({toGeoJSON:function(c){var h=!yi(this._latlngs),S=h&&!yi(this._latlngs[0]),C=Wv(this._latlngs,S?2:h?1:0,!0,c);return h||(C=[C]),qu(this,{type:(S?"Multi":"")+"Polygon",coordinates:C})}}),Wu.include({toMultiPoint:function(c){var h=[];return this.eachLayer(function(S){h.push(S.toGeoJSON(c).geometry.coordinates)}),qu(this,{type:"MultiPoint",coordinates:h})},toGeoJSON:function(c){var h=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(h==="MultiPoint")return this.toMultiPoint(c);var S=h==="GeometryCollection",C=[];return this.eachLayer(function(N){if(N.toGeoJSON){var Y=N.toGeoJSON(c);if(S)C.push(Y.geometry);else{var ae=Yv(Y);ae.type==="FeatureCollection"?C.push.apply(C,ae.features):C.push(ae)}}}),S?qu(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function wN(c,h){return new la(c,h)}var aG=wN,Gv=Ji.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,h,S){this._url=c,this._bounds=ee(h),g(this,S)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(it(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Qt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&Vu(this._image),this},bringToBack:function(){return this._map&&Hu(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=ee(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",h=this._image=c?this._url:_t("img");if(it(h,"leaflet-image-layer"),this._zoomAnimated&&it(h,"leaflet-zoom-animated"),this.options.className&&it(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onload=a(this.fire,this,"load"),h.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=h.src;return}h.src=this._url,h.alt=this.options.alt},_animateZoom:function(c){var h=this._map.getZoomScale(c.zoom),S=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;gl(this._image,S,h)},_reset:function(){var c=this._image,h=new W(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),S=h.getSize();wn(c,h.min),c.style.width=S.x+"px",c.style.height=S.y+"px"},_updateOpacity:function(){gi(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 c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),sG=function(c,h,S){return new Gv(c,h,S)},xN=Gv.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",h=this._image=c?this._url:_t("video");if(it(h,"leaflet-image-layer"),this._zoomAnimated&&it(h,"leaflet-zoom-animated"),this.options.className&&it(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onloadeddata=a(this.fire,this,"load"),c){for(var S=h.getElementsByTagName("source"),C=[],N=0;N<S.length;N++)C.push(S[N].src);this._url=S.length>0?C:[h.src];return}x(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(h.style,"objectFit")&&(h.style.objectFit="fill"),h.autoplay=!!this.options.autoplay,h.loop=!!this.options.loop,h.muted=!!this.options.muted,h.playsInline=!!this.options.playsInline;for(var Y=0;Y<this._url.length;Y++){var ae=_t("source");ae.src=this._url[Y],h.appendChild(ae)}}});function lG(c,h,S){return new xN(c,h,S)}var ON=Gv.extend({_initImage:function(){var c=this._image=this._url;it(c,"leaflet-image-layer"),this._zoomAnimated&&it(c,"leaflet-zoom-animated"),this.options.className&&it(c,this.options.className),c.onselectstart=d,c.onmousemove=d}});function uG(c,h,S){return new ON(c,h,S)}var ko=Ji.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,h){c&&(c instanceof ie||x(c))?(this._latlng=se(c),g(this,h)):(g(this,c),this._source=h),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&gi(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&gi(this._container,1),this.bringToFront(),this.options.interactive&&(it(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(gi(this._container,0),this._removeTimeout=setTimeout(a(Qt,void 0,this._container),200)):Qt(this._container),this.options.interactive&&(pn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=se(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,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 c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Vu(this._container),this},bringToBack:function(){return this._map&&Hu(this._container),this},_prepareOpen:function(c){var h=this._source;if(!h._map)return!1;if(h instanceof aa){h=null;var S=this._source._layers;for(var C in S)if(S[C]._map){h=S[C];break}if(!h)return!1;this._source=h}if(!c)if(h.getCenter)c=h.getCenter();else if(h.getLatLng)c=h.getLatLng();else if(h.getBounds)c=h.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,h=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof h=="string")c.innerHTML=h;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(h)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),h=V(this.options.offset),S=this._getAnchor();this._zoomAnimated?wn(this._container,c.add(S)):h=h.add(c).add(S);var C=this._containerBottom=-h.y,N=this._containerLeft=-Math.round(this._containerWidth/2)+h.x;this._container.style.bottom=C+"px",this._container.style.left=N+"px"}},_getAnchor:function(){return[0,0]}});vt.include({_initOverlay:function(c,h,S,C){var N=h;return N instanceof c||(N=new c(C).setContent(h)),S&&N.setLatLng(S),N}}),Ji.include({_initOverlay:function(c,h,S,C){var N=S;return N instanceof c?(g(N,C),N._source=this):(N=h&&!C?h:new c(C,this),N.setContent(S)),N}});var qv=ko.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(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,ko.prototype.openOn.call(this,c)},onAdd:function(c){ko.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof rs||this._source.on("preclick",bl))},onRemove:function(c){ko.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof rs||this._source.off("preclick",bl))},getEvents:function(){var c=ko.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",h=this._container=_t("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),S=this._wrapper=_t("div",c+"-content-wrapper",h);if(this._contentNode=_t("div",c+"-content",S),Bd(h),Kw(this._contentNode),tt(h,"contextmenu",bl),this._tipContainer=_t("div",c+"-tip-container",h),this._tip=_t("div",c+"-tip",this._tipContainer),this.options.closeButton){var C=this._closeButton=_t("a",c+"-close-button",h);C.setAttribute("role","button"),C.setAttribute("aria-label","Close popup"),C.href="#close",C.innerHTML='<span aria-hidden="true">&#215;</span>',tt(C,"click",function(N){rr(N),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,h=c.style;h.width="",h.whiteSpace="nowrap";var S=c.offsetWidth;S=Math.min(S,this.options.maxWidth),S=Math.max(S,this.options.minWidth),h.width=S+1+"px",h.whiteSpace="",h.height="";var C=c.offsetHeight,N=this.options.maxHeight,Y="leaflet-popup-scrolled";N&&C>N?(h.height=N+"px",it(c,Y)):pn(c,Y),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var h=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),S=this._getAnchor();wn(this._container,h.add(S))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,h=parseInt(Id(this._container,"marginBottom"),10)||0,S=this._container.offsetHeight+h,C=this._containerWidth,N=new X(this._containerLeft,-S-this._containerBottom);N._add(yl(this._container));var Y=c.layerPointToContainerPoint(N),ae=V(this.options.autoPanPadding),pe=V(this.options.autoPanPaddingTopLeft||ae),me=V(this.options.autoPanPaddingBottomRight||ae),xe=c.getSize(),Ie=0,Ke=0;Y.x+C+me.x>xe.x&&(Ie=Y.x+C-xe.x+me.x),Y.x-Ie-pe.x<0&&(Ie=Y.x-pe.x),Y.y+S+me.y>xe.y&&(Ke=Y.y+S-xe.y+me.y),Y.y-Ke-pe.y<0&&(Ke=Y.y-pe.y),(Ie||Ke)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Ie,Ke]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),cG=function(c,h){return new qv(c,h)};vt.mergeOptions({closePopupOnClick:!0}),vt.include({openPopup:function(c,h,S){return this._initOverlay(qv,c,h,S).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),Ji.include({bindPopup:function(c,h){return this._popup=this._initOverlay(qv,this._popup,c,h),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(c){return this._popup&&(this instanceof aa||(this._popup._source=this),this._popup._prepareOpen(c||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(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){_l(c);var h=c.layer||c.target;if(this._popup._source===h&&!(h instanceof rs)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=h,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var Kv=ko.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){ko.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){ko.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=ko.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",h=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=_t("div",h),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var h,S,C=this._map,N=this._container,Y=C.latLngToContainerPoint(C.getCenter()),ae=C.layerPointToContainerPoint(c),pe=this.options.direction,me=N.offsetWidth,xe=N.offsetHeight,Ie=V(this.options.offset),Ke=this._getAnchor();pe==="top"?(h=me/2,S=xe):pe==="bottom"?(h=me/2,S=0):pe==="center"?(h=me/2,S=xe/2):pe==="right"?(h=0,S=xe/2):pe==="left"?(h=me,S=xe/2):ae.x<Y.x?(pe="right",h=0,S=xe/2):(pe="left",h=me+(Ie.x+Ke.x)*2,S=xe/2),c=c.subtract(V(h,S,!0)).add(Ie).add(Ke),pn(N,"leaflet-tooltip-right"),pn(N,"leaflet-tooltip-left"),pn(N,"leaflet-tooltip-top"),pn(N,"leaflet-tooltip-bottom"),it(N,"leaflet-tooltip-"+pe),wn(N,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&gi(this._container,c)},_animateZoom:function(c){var h=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(h)},_getAnchor:function(){return V(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),fG=function(c,h){return new Kv(c,h)};vt.include({openTooltip:function(c,h,S){return this._initOverlay(Kv,c,h,S).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),Ji.include({bindTooltip:function(c,h){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Kv,this._tooltip,c,h),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(c){if(!(!c&&this._tooltipHandlersAdded)){var h=c?"off":"on",S={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?S.add=this._openTooltip:(S.mouseover=this._openTooltip,S.mouseout=this.closeTooltip,S.click=this._openTooltip,this._map?this._addFocusListeners():S.add=this._addFocusListeners),this._tooltip.options.sticky&&(S.mousemove=this._moveTooltip),this[h](S),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof aa||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(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(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var h=typeof c.getElement=="function"&&c.getElement();h&&(tt(h,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),tt(h,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var h=typeof c.getElement=="function"&&c.getElement();h&&h.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var h=this;this._map.once("moveend",function(){h._openOnceFlag=!1,h._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var h=c.latlng,S,C;this._tooltip.options.sticky&&c.originalEvent&&(S=this._map.mouseEventToContainerPoint(c.originalEvent),C=this._map.containerPointToLayerPoint(S),h=this._map.layerPointToLatLng(C)),this._tooltip.setLatLng(h)}});var SN=Yu.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var h=c&&c.tagName==="DIV"?c:document.createElement("div"),S=this.options;if(S.html instanceof Element?(Rv(h),h.appendChild(S.html)):h.innerHTML=S.html!==!1?S.html:"",S.bgPos){var C=V(S.bgPos);h.style.backgroundPosition=-C.x+"px "+-C.y+"px"}return this._setIconStyles(h,"icon"),h},createShadow:function(){return null}});function dG(c){return new SN(c)}Yu.Default=Hd;var Wd=Ji.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ye.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(c){g(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),Qt(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Vu(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Hu(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof X?c:new X(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var h=this.getPane().children,S=-c(-1/0,1/0),C=0,N=h.length,Y;C<N;C++)Y=h[C].style.zIndex,h[C]!==this._container&&Y&&(S=c(S,+Y));isFinite(S)&&(this.options.zIndex=S+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ye.ielt9){gi(this._container,this.options.opacity);var c=+new Date,h=!1,S=!1;for(var C in this._tiles){var N=this._tiles[C];if(!(!N.current||!N.loaded)){var Y=Math.min(1,(c-N.loaded)/200);gi(N.el,Y),Y<1?h=!0:(N.active?S=!0:this._onOpaqueTile(N),N.active=!0)}}S&&!this._noPrune&&this._pruneTiles(),h&&(z(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=_t("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,h=this.options.maxZoom;if(c!==void 0){for(var S in this._levels)S=Number(S),this._levels[S].el.children.length||S===c?(this._levels[S].el.style.zIndex=h-Math.abs(c-S),this._onUpdateLevel(S)):(Qt(this._levels[S].el),this._removeTilesAtZoom(S),this._onRemoveLevel(S),delete this._levels[S]);var C=this._levels[c],N=this._map;return C||(C=this._levels[c]={},C.el=_t("div","leaflet-tile-container leaflet-zoom-animated",this._container),C.el.style.zIndex=h,C.origin=N.project(N.unproject(N.getPixelOrigin()),c).round(),C.zoom=c,this._setZoomTransform(C,N.getCenter(),N.getZoom()),d(C.el.offsetWidth),this._onCreateLevel(C)),this._level=C,C}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var c,h,S=this._map.getZoom();if(S>this.options.maxZoom||S<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)h=this._tiles[c],h.retain=h.current;for(c in this._tiles)if(h=this._tiles[c],h.current&&!h.active){var C=h.coords;this._retainParent(C.x,C.y,C.z,C.z-5)||this._retainChildren(C.x,C.y,C.z,C.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var h in this._tiles)this._tiles[h].coords.z===c&&this._removeTile(h)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)Qt(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,h,S,C){var N=Math.floor(c/2),Y=Math.floor(h/2),ae=S-1,pe=new X(+N,+Y);pe.z=+ae;var me=this._tileCoordsToKey(pe),xe=this._tiles[me];return xe&&xe.active?(xe.retain=!0,!0):(xe&&xe.loaded&&(xe.retain=!0),ae>C?this._retainParent(N,Y,ae,C):!1)},_retainChildren:function(c,h,S,C){for(var N=2*c;N<2*c+2;N++)for(var Y=2*h;Y<2*h+2;Y++){var ae=new X(N,Y);ae.z=S+1;var pe=this._tileCoordsToKey(ae),me=this._tiles[pe];if(me&&me.active){me.retain=!0;continue}else me&&me.loaded&&(me.retain=!0);S+1<C&&this._retainChildren(N,Y,S+1,C)}},_resetView:function(c){var h=c&&(c.pinch||c.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),h,h)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var h=this.options;return h.minNativeZoom!==void 0&&c<h.minNativeZoom?h.minNativeZoom:h.maxNativeZoom!==void 0&&h.maxNativeZoom<c?h.maxNativeZoom:c},_setView:function(c,h,S,C){var N=Math.round(h);this.options.maxZoom!==void 0&&N>this.options.maxZoom||this.options.minZoom!==void 0&&N<this.options.minZoom?N=void 0:N=this._clampZoom(N);var Y=this.options.updateWhenZooming&&N!==this._tileZoom;(!C||Y)&&(this._tileZoom=N,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),N!==void 0&&this._update(c),S||this._pruneTiles(),this._noPrune=!!S),this._setZoomTransforms(c,h)},_setZoomTransforms:function(c,h){for(var S in this._levels)this._setZoomTransform(this._levels[S],c,h)},_setZoomTransform:function(c,h,S){var C=this._map.getZoomScale(S,c.zoom),N=c.origin.multiplyBy(C).subtract(this._map._getNewPixelOrigin(h,S)).round();Ye.any3d?gl(c.el,N,C):wn(c.el,N)},_resetGrid:function(){var c=this._map,h=c.options.crs,S=this._tileSize=this.getTileSize(),C=this._tileZoom,N=this._map.getPixelWorldBounds(this._tileZoom);N&&(this._globalTileRange=this._pxBoundsToTileRange(N)),this._wrapX=h.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,h.wrapLng[0]],C).x/S.x),Math.ceil(c.project([0,h.wrapLng[1]],C).x/S.y)],this._wrapY=h.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([h.wrapLat[0],0],C).y/S.x),Math.ceil(c.project([h.wrapLat[1],0],C).y/S.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var h=this._map,S=h._animatingZoom?Math.max(h._animateToZoom,h.getZoom()):h.getZoom(),C=h.getZoomScale(S,this._tileZoom),N=h.project(c,this._tileZoom).floor(),Y=h.getSize().divideBy(C*2);return new W(N.subtract(Y),N.add(Y))},_update:function(c){var h=this._map;if(h){var S=this._clampZoom(h.getZoom());if(c===void 0&&(c=h.getCenter()),this._tileZoom!==void 0){var C=this._getTiledPixelBounds(c),N=this._pxBoundsToTileRange(C),Y=N.getCenter(),ae=[],pe=this.options.keepBuffer,me=new W(N.getBottomLeft().subtract([pe,-pe]),N.getTopRight().add([pe,-pe]));if(!(isFinite(N.min.x)&&isFinite(N.min.y)&&isFinite(N.max.x)&&isFinite(N.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var xe in this._tiles){var Ie=this._tiles[xe].coords;(Ie.z!==this._tileZoom||!me.contains(new X(Ie.x,Ie.y)))&&(this._tiles[xe].current=!1)}if(Math.abs(S-this._tileZoom)>1){this._setView(c,S);return}for(var Ke=N.min.y;Ke<=N.max.y;Ke++)for(var st=N.min.x;st<=N.max.x;st++){var Or=new X(st,Ke);if(Or.z=this._tileZoom,!!this._isValidTile(Or)){var Rn=this._tiles[this._tileCoordsToKey(Or)];Rn?Rn.current=!0:ae.push(Or)}}if(ae.sort(function(Dr,Zu){return Dr.distanceTo(Y)-Zu.distanceTo(Y)}),ae.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var bi=document.createDocumentFragment();for(st=0;st<ae.length;st++)this._addTile(ae[st],bi);this._level.el.appendChild(bi)}}}},_isValidTile:function(c){var h=this._map.options.crs;if(!h.infinite){var S=this._globalTileRange;if(!h.wrapLng&&(c.x<S.min.x||c.x>S.max.x)||!h.wrapLat&&(c.y<S.min.y||c.y>S.max.y))return!1}if(!this.options.bounds)return!0;var C=this._tileCoordsToBounds(c);return ee(this.options.bounds).overlaps(C)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var h=this._map,S=this.getTileSize(),C=c.scaleBy(S),N=C.add(S),Y=h.unproject(C,c.z),ae=h.unproject(N,c.z);return[Y,ae]},_tileCoordsToBounds:function(c){var h=this._tileCoordsToNwSe(c),S=new q(h[0],h[1]);return this.options.noWrap||(S=this._map.wrapLatLngBounds(S)),S},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var h=c.split(":"),S=new X(+h[0],+h[1]);return S.z=+h[2],S},_removeTile:function(c){var h=this._tiles[c];h&&(Qt(h.el),delete this._tiles[c],this.fire("tileunload",{tile:h.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){it(c,"leaflet-tile");var h=this.getTileSize();c.style.width=h.x+"px",c.style.height=h.y+"px",c.onselectstart=d,c.onmousemove=d,Ye.ielt9&&this.options.opacity<1&&gi(c,this.options.opacity)},_addTile:function(c,h){var S=this._getTilePos(c),C=this._tileCoordsToKey(c),N=this.createTile(this._wrapCoords(c),a(this._tileReady,this,c));this._initTile(N),this.createTile.length<2&&I(a(this._tileReady,this,c,null,N)),wn(N,S),this._tiles[C]={el:N,coords:c,current:!0},h.appendChild(N),this.fire("tileloadstart",{tile:N,coords:c})},_tileReady:function(c,h,S){h&&this.fire("tileerror",{error:h,tile:S,coords:c});var C=this._tileCoordsToKey(c);S=this._tiles[C],S&&(S.loaded=+new Date,this._map._fadeAnimated?(gi(S.el,0),z(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(S.active=!0,this._pruneTiles()),h||(it(S.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:S.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ye.ielt9||!this._map._fadeAnimated?I(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var h=new X(this._wrapX?f(c.x,this._wrapX):c.x,this._wrapY?f(c.y,this._wrapY):c.y);return h.z=c.z,h},_pxBoundsToTileRange:function(c){var h=this.getTileSize();return new W(c.min.unscaleBy(h).floor(),c.max.unscaleBy(h).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function pG(c){return new Wd(c)}var Ku=Wd.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,h){this._url=c,h=g(this,h),h.detectRetina&&Ye.retina&&h.maxZoom>0?(h.tileSize=Math.floor(h.tileSize/2),h.zoomReverse?(h.zoomOffset--,h.minZoom=Math.min(h.maxZoom,h.minZoom+1)):(h.zoomOffset++,h.maxZoom=Math.max(h.minZoom,h.maxZoom-1)),h.minZoom=Math.max(0,h.minZoom)):h.zoomReverse?h.minZoom=Math.min(h.maxZoom,h.minZoom):h.maxZoom=Math.max(h.minZoom,h.maxZoom),typeof h.subdomains=="string"&&(h.subdomains=h.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,h){return this._url===c&&h===void 0&&(h=!0),this._url=c,h||this.redraw(),this},createTile:function(c,h){var S=document.createElement("img");return tt(S,"load",a(this._tileOnLoad,this,h,S)),tt(S,"error",a(this._tileOnError,this,h,S)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(S.referrerPolicy=this.options.referrerPolicy),S.alt="",S.src=this.getTileUrl(c),S},getTileUrl:function(c){var h={r:Ye.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var S=this._globalTileRange.max.y-c.y;this.options.tms&&(h.y=S),h["-y"]=S}return _(this._url,i(h,this.options))},_tileOnLoad:function(c,h){Ye.ielt9?setTimeout(a(c,this,null,h),0):c(null,h)},_tileOnError:function(c,h,S){var C=this.options.errorTileUrl;C&&h.getAttribute("src")!==C&&(h.src=C),c(S,h)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,h=this.options.maxZoom,S=this.options.zoomReverse,C=this.options.zoomOffset;return S&&(c=h-c),c+C},_getSubdomain:function(c){var h=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[h]},_abortLoading:function(){var c,h;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(h=this._tiles[c].el,h.onload=d,h.onerror=d,!h.complete)){h.src=E;var S=this._tiles[c].coords;Qt(h),delete this._tiles[c],this.fire("tileabort",{tile:h,coords:S})}},_removeTile:function(c){var h=this._tiles[c];if(h)return h.el.setAttribute("src",E),Wd.prototype._removeTile.call(this,c)},_tileReady:function(c,h,S){if(!(!this._map||S&&S.getAttribute("src")===E))return Wd.prototype._tileReady.call(this,c,h,S)}});function EN(c,h){return new Ku(c,h)}var TN=Ku.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,h){this._url=c;var S=i({},this.defaultWmsParams);for(var C in h)C in this.options||(S[C]=h[C]);h=g(this,h);var N=h.detectRetina&&Ye.retina?2:1,Y=this.getTileSize();S.width=Y.x*N,S.height=Y.y*N,this.wmsParams=S},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var h=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[h]=this._crs.code,Ku.prototype.onAdd.call(this,c)},getTileUrl:function(c){var h=this._tileCoordsToNwSe(c),S=this._crs,C=re(S.project(h[0]),S.project(h[1])),N=C.min,Y=C.max,ae=(this._wmsVersion>=1.3&&this._crs===yN?[N.y,N.x,Y.y,Y.x]:[N.x,N.y,Y.x,Y.y]).join(","),pe=Ku.prototype.getTileUrl.call(this,c);return pe+w(this.wmsParams,pe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+ae},setParams:function(c,h){return i(this.wmsParams,c),h||this.redraw(),this}});function hG(c,h){return new TN(c,h)}Ku.WMS=TN,EN.wms=hG;var ua=Ji.extend({options:{padding:.1},initialize:function(c){g(this,c),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),it(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 c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,h){var S=this._map.getZoomScale(h,this._zoom),C=this._map.getSize().multiplyBy(.5+this.options.padding),N=this._map.project(this._center,h),Y=C.multiplyBy(-S).add(N).subtract(this._map._getNewPixelOrigin(c,h));Ye.any3d?gl(this._container,Y,S):wn(this._container,Y)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,h=this._map.getSize(),S=this._map.containerPointToLayerPoint(h.multiplyBy(-c)).round();this._bounds=new W(S,S.add(h.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),CN=ua.extend({options:{tolerance:0},getEvents:function(){var c=ua.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ua.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");tt(c,"mousemove",this._onMouseMove,this),tt(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),tt(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,Qt(this._container),Lt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var h in this._layers)c=this._layers[h],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ua.prototype._update.call(this);var c=this._bounds,h=this._container,S=c.getSize(),C=Ye.retina?2:1;wn(h,c.min),h.width=C*S.x,h.height=C*S.y,h.style.width=S.x+"px",h.style.height=S.y+"px",Ye.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){ua.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[l(c)]=c;var h=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=h),this._drawLast=h,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var h=c._order,S=h.next,C=h.prev;S?S.prev=C:this._drawLast=C,C?C.next=S:this._drawFirst=S,delete c._order,delete this._layers[l(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var h=c.options.dashArray.split(/[, ]+/),S=[],C,N;for(N=0;N<h.length;N++){if(C=Number(h[N]),isNaN(C))return;S.push(C)}c.options._dashArray=S}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||I(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var h=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new W,this._redrawBounds.extend(c._pxBounds.min.subtract([h,h])),this._redrawBounds.extend(c._pxBounds.max.add([h,h]))}},_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 c=this._redrawBounds;if(c){var h=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,h.x,h.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 c,h=this._redrawBounds;if(this._ctx.save(),h){var S=h.getSize();this._ctx.beginPath(),this._ctx.rect(h.min.x,h.min.y,S.x,S.y),this._ctx.clip()}this._drawing=!0;for(var C=this._drawFirst;C;C=C.next)c=C.layer,(!h||c._pxBounds&&c._pxBounds.intersects(h))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,h){if(this._drawing){var S,C,N,Y,ae=c._parts,pe=ae.length,me=this._ctx;if(pe){for(me.beginPath(),S=0;S<pe;S++){for(C=0,N=ae[S].length;C<N;C++)Y=ae[S][C],me[C?"lineTo":"moveTo"](Y.x,Y.y);h&&me.closePath()}this._fillStroke(me,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var h=c._point,S=this._ctx,C=Math.max(Math.round(c._radius),1),N=(Math.max(Math.round(c._radiusY),1)||C)/C;N!==1&&(S.save(),S.scale(1,N)),S.beginPath(),S.arc(h.x,h.y/N,C,0,Math.PI*2,!1),N!==1&&S.restore(),this._fillStroke(S,c)}},_fillStroke:function(c,h){var S=h.options;S.fill&&(c.globalAlpha=S.fillOpacity,c.fillStyle=S.fillColor||S.color,c.fill(S.fillRule||"evenodd")),S.stroke&&S.weight!==0&&(c.setLineDash&&c.setLineDash(h.options&&h.options._dashArray||[]),c.globalAlpha=S.opacity,c.lineWidth=S.weight,c.strokeStyle=S.color,c.lineCap=S.lineCap,c.lineJoin=S.lineJoin,c.stroke())},_onClick:function(c){for(var h=this._map.mouseEventToLayerPoint(c),S,C,N=this._drawFirst;N;N=N.next)S=N.layer,S.options.interactive&&S._containsPoint(h)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(S))&&(C=S);this._fireEvent(C?[C]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var h=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,h)}},_handleMouseOut:function(c){var h=this._hoveredLayer;h&&(pn(this._container,"leaflet-interactive"),this._fireEvent([h],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,h){if(!this._mouseHoverThrottled){for(var S,C,N=this._drawFirst;N;N=N.next)S=N.layer,S.options.interactive&&S._containsPoint(h)&&(C=S);C!==this._hoveredLayer&&(this._handleMouseOut(c),C&&(it(this._container,"leaflet-interactive"),this._fireEvent([C],c,"mouseover"),this._hoveredLayer=C)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,h,S){this._map._fireDOMEvent(h,S||h.type,c)},_bringToFront:function(c){var h=c._order;if(h){var S=h.next,C=h.prev;if(S)S.prev=C;else return;C?C.next=S:S&&(this._drawFirst=S),h.prev=this._drawLast,this._drawLast.next=h,h.next=null,this._drawLast=h,this._requestRedraw(c)}},_bringToBack:function(c){var h=c._order;if(h){var S=h.next,C=h.prev;if(C)C.next=S;else return;S?S.prev=C:C&&(this._drawLast=C),h.prev=null,h.next=this._drawFirst,this._drawFirst.prev=h,this._drawFirst=h,this._requestRedraw(c)}}});function kN(c){return Ye.canvas?new CN(c):null}var Yd=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),mG={_initContainer:function(){this._container=_t("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ua.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var h=c._container=Yd("shape");it(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",c._path=Yd("path"),h.appendChild(c._path),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){var h=c._container;this._container.appendChild(h),c.options.interactive&&c.addInteractiveTarget(h)},_removePath:function(c){var h=c._container;Qt(h),c.removeInteractiveTarget(h),delete this._layers[l(c)]},_updateStyle:function(c){var h=c._stroke,S=c._fill,C=c.options,N=c._container;N.stroked=!!C.stroke,N.filled=!!C.fill,C.stroke?(h||(h=c._stroke=Yd("stroke")),N.appendChild(h),h.weight=C.weight+"px",h.color=C.color,h.opacity=C.opacity,C.dashArray?h.dashStyle=x(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=C.lineCap.replace("butt","flat"),h.joinstyle=C.lineJoin):h&&(N.removeChild(h),c._stroke=null),C.fill?(S||(S=c._fill=Yd("fill")),N.appendChild(S),S.color=C.fillColor||C.color,S.opacity=C.fillOpacity):S&&(N.removeChild(S),c._fill=null)},_updateCircle:function(c){var h=c._point.round(),S=Math.round(c._radius),C=Math.round(c._radiusY||S);this._setPath(c,c._empty()?"M0 0":"AL "+h.x+","+h.y+" "+S+","+C+" 0,"+65535*360)},_setPath:function(c,h){c._path.v=h},_bringToFront:function(c){Vu(c._container)},_bringToBack:function(c){Hu(c._container)}},Zv=Ye.vml?Yd:Ee,Gd=ua.extend({_initContainer:function(){this._container=Zv("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zv("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Qt(this._container),Lt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ua.prototype._update.call(this);var c=this._bounds,h=c.getSize(),S=this._container;(!this._svgSize||!this._svgSize.equals(h))&&(this._svgSize=h,S.setAttribute("width",h.x),S.setAttribute("height",h.y)),wn(S,c.min),S.setAttribute("viewBox",[c.min.x,c.min.y,h.x,h.y].join(" ")),this.fire("update")}},_initPath:function(c){var h=c._path=Zv("path");c.options.className&&it(h,c.options.className),c.options.interactive&&it(h,"leaflet-interactive"),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){Qt(c._path),c.removeInteractiveTarget(c._path),delete this._layers[l(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var h=c._path,S=c.options;h&&(S.stroke?(h.setAttribute("stroke",S.color),h.setAttribute("stroke-opacity",S.opacity),h.setAttribute("stroke-width",S.weight),h.setAttribute("stroke-linecap",S.lineCap),h.setAttribute("stroke-linejoin",S.lineJoin),S.dashArray?h.setAttribute("stroke-dasharray",S.dashArray):h.removeAttribute("stroke-dasharray"),S.dashOffset?h.setAttribute("stroke-dashoffset",S.dashOffset):h.removeAttribute("stroke-dashoffset")):h.setAttribute("stroke","none"),S.fill?(h.setAttribute("fill",S.fillColor||S.color),h.setAttribute("fill-opacity",S.fillOpacity),h.setAttribute("fill-rule",S.fillRule||"evenodd")):h.setAttribute("fill","none"))},_updatePoly:function(c,h){this._setPath(c,ue(c._parts,h))},_updateCircle:function(c){var h=c._point,S=Math.max(Math.round(c._radius),1),C=Math.max(Math.round(c._radiusY),1)||S,N="a"+S+","+C+" 0 1,0 ",Y=c._empty()?"M0 0":"M"+(h.x-S)+","+h.y+N+S*2+",0 "+N+-S*2+",0 ";this._setPath(c,Y)},_setPath:function(c,h){c._path.setAttribute("d",h)},_bringToFront:function(c){Vu(c._path)},_bringToBack:function(c){Hu(c._path)}});Ye.vml&&Gd.include(mG);function jN(c){return Ye.svg||Ye.vml?new Gd(c):null}vt.include({getRenderer:function(c){var h=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return h||(h=this._renderer=this._createRenderer()),this.hasLayer(h)||this.addLayer(h),h},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var h=this._paneRenderers[c];return h===void 0&&(h=this._createRenderer({pane:c}),this._paneRenderers[c]=h),h},_createRenderer:function(c){return this.options.preferCanvas&&kN(c)||jN(c)}});var PN=Gu.extend({initialize:function(c,h){Gu.prototype.initialize.call(this,this._boundsToLatLngs(c),h)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=ee(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function vG(c,h){return new PN(c,h)}Gd.create=Zv,Gd.pointsToPath=ue,la.geometryToLayer=Vv,la.coordsToLatLng=ix,la.coordsToLatLngs=Hv,la.latLngToCoords=ox,la.latLngsToCoords=Wv,la.getFeature=qu,la.asFeature=Yv,vt.mergeOptions({boxZoom:!0});var AN=Co.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){tt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Lt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Qt(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(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Fd(),Bw(),this._startPoint=this._map.mouseEventToContainerPoint(c),tt(document,{contextmenu:_l,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=_t("div","leaflet-zoom-box",this._container),it(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var h=new W(this._point,this._startPoint),S=h.getSize();wn(this._box,h.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(Qt(this._box),pn(this._container,"leaflet-crosshair")),Ud(),zw(),Lt(document,{contextmenu:_l,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var h=new q(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(h).fire("boxzoomend",{boxZoomBounds:h})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});vt.addInitHook("addHandler","boxZoom",AN),vt.mergeOptions({doubleClickZoom:!0});var NN=Co.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var h=this._map,S=h.getZoom(),C=h.options.zoomDelta,N=c.originalEvent.shiftKey?S-C:S+C;h.options.doubleClickZoom==="center"?h.setZoom(N):h.setZoomAround(c.containerPoint,N)}});vt.addInitHook("addHandler","doubleClickZoom",NN),vt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var MN=Co.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new ns(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}it(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){pn(this._map._container,"leaflet-grab"),pn(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 c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var h=ee(this._map.options.maxBounds);this._offsetLimit=re(this._map.latLngToContainerPoint(h.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(h.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var h=this._lastTime=+new Date,S=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(S),this._times.push(h),this._prunePositions(h)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),h=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=h.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,h){return c-(c-h)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),h=this._offsetLimit;c.x<h.min.x&&(c.x=this._viscousLimit(c.x,h.min.x)),c.y<h.min.y&&(c.y=this._viscousLimit(c.y,h.min.y)),c.x>h.max.x&&(c.x=this._viscousLimit(c.x,h.max.x)),c.y>h.max.y&&(c.y=this._viscousLimit(c.y,h.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,h=Math.round(c/2),S=this._initialWorldOffset,C=this._draggable._newPos.x,N=(C-h+S)%c+h-S,Y=(C+h+S)%c-h-S,ae=Math.abs(N+S)<Math.abs(Y+S)?N:Y;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=ae},_onDragEnd:function(c){var h=this._map,S=h.options,C=!S.inertia||c.noInertia||this._times.length<2;if(h.fire("dragend",c),C)h.fire("moveend");else{this._prunePositions(+new Date);var N=this._lastPos.subtract(this._positions[0]),Y=(this._lastTime-this._times[0])/1e3,ae=S.easeLinearity,pe=N.multiplyBy(ae/Y),me=pe.distanceTo([0,0]),xe=Math.min(S.inertiaMaxSpeed,me),Ie=pe.multiplyBy(xe/me),Ke=xe/(S.inertiaDeceleration*ae),st=Ie.multiplyBy(-Ke/2).round();!st.x&&!st.y?h.fire("moveend"):(st=h._limitOffset(st,h.options.maxBounds),I(function(){h.panBy(st,{duration:Ke,easeLinearity:ae,noMoveStart:!0,animate:!0})}))}}});vt.addInitHook("addHandler","dragging",MN),vt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var LN=Co.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),tt(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Lt(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 c=document.body,h=document.documentElement,S=c.scrollTop||h.scrollTop,C=c.scrollLeft||h.scrollLeft;this._map._container.focus(),window.scrollTo(C,S)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var h=this._panKeys={},S=this.keyCodes,C,N;for(C=0,N=S.left.length;C<N;C++)h[S.left[C]]=[-1*c,0];for(C=0,N=S.right.length;C<N;C++)h[S.right[C]]=[c,0];for(C=0,N=S.down.length;C<N;C++)h[S.down[C]]=[0,c];for(C=0,N=S.up.length;C<N;C++)h[S.up[C]]=[0,-1*c]},_setZoomDelta:function(c){var h=this._zoomKeys={},S=this.keyCodes,C,N;for(C=0,N=S.zoomIn.length;C<N;C++)h[S.zoomIn[C]]=c;for(C=0,N=S.zoomOut.length;C<N;C++)h[S.zoomOut[C]]=-c},_addHooks:function(){tt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Lt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var h=c.keyCode,S=this._map,C;if(h in this._panKeys){if(!S._panAnim||!S._panAnim._inProgress)if(C=this._panKeys[h],c.shiftKey&&(C=V(C).multiplyBy(3)),S.options.maxBounds&&(C=S._limitOffset(V(C),S.options.maxBounds)),S.options.worldCopyJump){var N=S.wrapLatLng(S.unproject(S.project(S.getCenter()).add(C)));S.panTo(N)}else S.panBy(C)}else if(h in this._zoomKeys)S.setZoom(S.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[h]);else if(h===27&&S._popup&&S._popup.options.closeOnEscapeKey)S.closePopup();else return;_l(c)}}});vt.addInitHook("addHandler","keyboard",LN),vt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var RN=Co.extend({addHooks:function(){tt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Lt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var h=oN(c),S=this._map.options.wheelDebounceTime;this._delta+=h,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var C=Math.max(S-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),C),_l(c)},_performZoom:function(){var c=this._map,h=c.getZoom(),S=this._map.options.zoomSnap||0;c._stop();var C=this._delta/(this._map.options.wheelPxPerZoomLevel*4),N=4*Math.log(2/(1+Math.exp(-Math.abs(C))))/Math.LN2,Y=S?Math.ceil(N/S)*S:N,ae=c._limitZoom(h+(this._delta>0?Y:-Y))-h;this._delta=0,this._startTime=null,ae&&(c.options.scrollWheelZoom==="center"?c.setZoom(h+ae):c.setZoomAround(this._lastMousePos,h+ae))}});vt.addInitHook("addHandler","scrollWheelZoom",RN);var gG=600;vt.mergeOptions({tapHold:Ye.touchNative&&Ye.safari&&Ye.mobile,tapTolerance:15});var DN=Co.extend({addHooks:function(){tt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Lt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var h=c.touches[0];this._startPos=this._newPos=new X(h.clientX,h.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(tt(document,"touchend",rr),tt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),gG),tt(document,"touchend touchcancel contextmenu",this._cancel,this),tt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){Lt(document,"touchend",rr),Lt(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),Lt(document,"touchend touchcancel contextmenu",this._cancel,this),Lt(document,"touchmove",this._onMove,this)},_onMove:function(c){var h=c.touches[0];this._newPos=new X(h.clientX,h.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,h){var S=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:h.screenX,screenY:h.screenY,clientX:h.clientX,clientY:h.clientY});S._simulated=!0,h.target.dispatchEvent(S)}});vt.addInitHook("addHandler","tapHold",DN),vt.mergeOptions({touchZoom:Ye.touch,bounceAtZoomLimits:!0});var IN=Co.extend({addHooks:function(){it(this._map._container,"leaflet-touch-zoom"),tt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){pn(this._map._container,"leaflet-touch-zoom"),Lt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var h=this._map;if(!(!c.touches||c.touches.length!==2||h._animatingZoom||this._zooming)){var S=h.mouseEventToContainerPoint(c.touches[0]),C=h.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=h.getSize()._divideBy(2),this._startLatLng=h.containerPointToLatLng(this._centerPoint),h.options.touchZoom!=="center"&&(this._pinchStartLatLng=h.containerPointToLatLng(S.add(C)._divideBy(2))),this._startDist=S.distanceTo(C),this._startZoom=h.getZoom(),this._moved=!1,this._zooming=!0,h._stop(),tt(document,"touchmove",this._onTouchMove,this),tt(document,"touchend touchcancel",this._onTouchEnd,this),rr(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var h=this._map,S=h.mouseEventToContainerPoint(c.touches[0]),C=h.mouseEventToContainerPoint(c.touches[1]),N=S.distanceTo(C)/this._startDist;if(this._zoom=h.getScaleZoom(N,this._startZoom),!h.options.bounceAtZoomLimits&&(this._zoom<h.getMinZoom()&&N<1||this._zoom>h.getMaxZoom()&&N>1)&&(this._zoom=h._limitZoom(this._zoom)),h.options.touchZoom==="center"){if(this._center=this._startLatLng,N===1)return}else{var Y=S._add(C)._divideBy(2)._subtract(this._centerPoint);if(N===1&&Y.x===0&&Y.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(Y),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var ae=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=I(ae,this,!0),rr(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,z(this._animRequest),Lt(document,"touchmove",this._onTouchMove,this),Lt(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))}});vt.addInitHook("addHandler","touchZoom",IN),vt.BoxZoom=AN,vt.DoubleClickZoom=NN,vt.Drag=MN,vt.Keyboard=LN,vt.ScrollWheelZoom=RN,vt.TapHold=DN,vt.TouchZoom=IN,n.Bounds=W,n.Browser=Ye,n.CRS=fe,n.Canvas=CN,n.Circle=rx,n.CircleMarker=zv,n.Class=H,n.Control=Qi,n.DivIcon=SN,n.DivOverlay=ko,n.DomEvent=RY,n.DomUtil=MY,n.Draggable=ns,n.Evented=te,n.FeatureGroup=aa,n.GeoJSON=la,n.GridLayer=Wd,n.Handler=Co,n.Icon=Yu,n.ImageOverlay=Gv,n.LatLng=ie,n.LatLngBounds=q,n.Layer=Ji,n.LayerGroup=Wu,n.LineUtil=qY,n.Map=vt,n.Marker=Bv,n.Mixin=zY,n.Path=rs,n.Point=X,n.PolyUtil=VY,n.Polygon=Gu,n.Polyline=sa,n.Popup=qv,n.PosAnimation=aN,n.Projection=KY,n.Rectangle=PN,n.Renderer=ua,n.SVG=Gd,n.SVGOverlay=ON,n.TileLayer=Ku,n.Tooltip=Kv,n.Transformation=J,n.Util=G,n.VideoOverlay=xN,n.bind=a,n.bounds=re,n.canvas=kN,n.circle=rG,n.circleMarker=nG,n.control=zd,n.divIcon=dG,n.extend=i,n.featureGroup=JY,n.geoJSON=wN,n.geoJson=aG,n.gridLayer=pG,n.icon=eG,n.imageOverlay=sG,n.latLng=se,n.latLngBounds=ee,n.layerGroup=QY,n.map=DY,n.marker=tG,n.point=V,n.polygon=oG,n.polyline=iG,n.popup=cG,n.rectangle=vG,n.setOptions=g,n.stamp=l,n.svg=jN,n.svgOverlay=uG,n.tileLayer=EN,n.tooltip=fG,n.transformation=K,n.version=r,n.videoOverlay=lG;var yG=window.L;n.noConflict=function(){return window.L=yG,this},window.L=n})})(VC,VC.exports);var kv=VC.exports;const l8=Ot(kv);function UA(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function $A(e,t){return t==null?function(n,r){const i=F.useRef();return i.current||(i.current=e(n,r)),i}:function(n,r){const i=F.useRef();i.current||(i.current=e(n,r));const o=F.useRef(n),{instance:a}=i.current;return F.useEffect(function(){o.current!==n&&(t(a,n,o.current),o.current=n)},[a,n,r]),i}}function DBe(e,t){F.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var n;(n=t.layerContainer)==null||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function SW(e){return function(t){const n=xW(),r=e(FA(t,n),n);return bW(n.map,t.attribution),OW(r.current,t.eventHandlers),DBe(r.current,n),r}}function IBe(e,t){const n=$A(e,t),r=SW(n);return NBe(r)}function FBe(e,t){const n=$A(e),r=RBe(n,t);return MBe(r)}function UBe(e,t){const n=$A(e,t),r=SW(n);return LBe(r)}function $Be(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 HC(){return HC=Object.assign||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},HC.apply(this,arguments)}function BBe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:u,...f},d){const[p]=F.useState({className:i,id:o,style:s}),[m,v]=F.useState(null);F.useImperativeHandle(d,()=>(m==null?void 0:m.map)??null,[m]);const g=F.useCallback(y=>{if(y!==null&&m===null){const _=new kv.Map(y,f);n!=null&&u!=null?_.setView(n,u):e!=null&&_.fitBounds(e,t),l!=null&&_.whenReady(l),v(PBe(_))}},[]);F.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const w=m?M.createElement(wW,{value:m},r):a??null;return M.createElement("div",HC({},p,{ref:g}),w)}const zBe=F.forwardRef(BBe),VBe=IBe(function({position:e,...t},n){const r=new kv.Marker(e,t);return UA(r,ABe(n,{overlayContainer:r}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),t.icon!=null&&t.icon!==n.icon&&e.setIcon(t.icon),t.zIndexOffset!=null&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),t.opacity!=null&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),e.dragging!=null&&t.draggable!==n.draggable&&(t.draggable===!0?e.dragging.enable():e.dragging.disable())}),HBe=FBe(function(e,t){const n=new kv.Popup(e,t.overlayContainer);return UA(n,t)},function(e,t,{position:n},r){F.useEffect(function(){const{instance:i}=e;function o(s){s.popup===i&&(i.update(),r(!0))}function a(s){s.popup===i&&r(!1)}return t.map.on({popupopen:o,popupclose:a}),t.overlayContainer==null?(n!=null&&i.setLatLng(n),i.openOn(t.map)):t.overlayContainer.bindPopup(i),function(){var s;t.map.off({popupopen:o,popupclose:a}),(s=t.overlayContainer)==null||s.unbindPopup(),t.map.removeLayer(i)}},[e,t,r,n])}),WBe=UBe(function({url:e,...t},n){const r=new kv.TileLayer(e,FA(t,n));return UA(r,n)},function(e,t,n){$Be(e,t,n);const{url:r}=t;r!=null&&r!==n.url&&e.setUrl(r)}),YBe=()=>b.jsx(WBe,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),GBe=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}},EW=({toggle:e,isOpen:t,title:n,locations:r=[]})=>b.jsx(qa,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:b.jsxs(na,{className:"map-modal__modal-body",children:[b.jsxs("h3",{className:"map-modal__modal-title",children:[n,b.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),b.jsxs(zBe,{...GBe(r),children:[b.jsx(YBe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>b.jsx(VBe,{position:o,children:b.jsxs(HBe,{children:[b.jsx("b",{children:a})," visit",a>1?"s":""," from ",b.jsx("b",{children:i})]})},s))]})]})}),qBe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=En(),[a,s]=En(),[l,u]=F.useState([]),f=I_(),d=F.useCallback(p=>{u(p?n.filter(p):n),i()},[n,i]);return b.jsxs(b.Fragment,{children:[!t&&b.jsx(wt,{color:"link",className:"open-map-modal-btn__btn",id:f,onClick:()=>d(),"aria-label":"Show in map",children:b.jsx(Le,{icon:sS})}),t&&b.jsxs(tv,{isOpen:a,toggle:s,children:[b.jsx(ud,{color:"link",className:"open-map-modal-btn__btn",id:f,children:b.jsx(Le,{icon:sS})}),b.jsxs(ld,{end:!0,children:[b.jsx(ze,{onClick:()=>d(),children:"Show all locations"}),b.jsx(ze,{onClick:()=>d(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),b.jsx(qr,{placement:"left",target:f,children:"Show in map"}),b.jsx(EW,{toggle:o,isOpen:r,title:e,locations:l})]})},KBe=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,a=s=>({active:i===s,onClick:()=>e({...t,orphanVisitsType:s===(t==null?void 0:t.orphanVisitsType)?void 0:s})});return b.jsxs(Za,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[b.jsx(ze,{header:!0,"aria-hidden":!0,children:"Bots:"}),b.jsx(ze,{active:o,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude potential bots"}),r&&b.jsxs(b.Fragment,{children:[b.jsx(ze,{divider:!0,tag:"hr"}),b.jsx(ze,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),b.jsx(ze,{...a("base_url"),children:"Base URL"}),b.jsx(ze,{...a("invalid_short_url"),children:"Invalid short URL"}),b.jsx(ze,{...a("regular_404"),children:"Regular 404"})]}),b.jsx(ze,{divider:!0,tag:"hr"}),b.jsx(ze,{disabled:!va(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:b.jsx("i",{children:"Clear filters"})})]})},ZBe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=En();return b.jsx(vn,{title:b.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:b.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[b.jsxs("dl",{className:"m-0 me-3",children:[b.jsx("dt",{children:"Delete visits."}),b.jsxs("dd",{className:"m-0",children:["This will delete ",b.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&b.jsx(wt,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&b.jsxs(wt,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!n&&b.jsx(b.Fragment,{children:"Click again to confirm"}),n&&b.jsx(b.Fragment,{children:"Deleting..."})]})]})})},XBe={"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"},TW={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"},hn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Er={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"},hs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class we{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=we.getVersionPrecision(t),o=we.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=we.map([t,n],u=>{const f=a-we.getVersionPrecision(u),d=u+new Array(f+1).join(".0");return we.map(d.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])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 o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(s=>{r[s]=a[s]})}return t}static getBrowserAlias(t){return XBe[t]}static getBrowserTypeByAlias(t){return TW[t]||""}}const At=/version\/(\d+(\.?_?\d+)+)/i,QBe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=we.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(At,e)||we.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=we.getFirstMatch(At,e)||we.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=we.getFirstMatch(At,e)||we.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=we.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=we.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=we.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=we.getFirstMatch(At,e)||we.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=we.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=we.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=we.getFirstMatch(At,e)||we.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=we.getFirstMatch(At,e)||we.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=we.getFirstMatch(At,e)||we.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=we.getFirstMatch(At,e)||we.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=we.getFirstMatch(At,e)||we.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=we.getFirstMatch(At,e)||we.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=we.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(At,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=we.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=we.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=we.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=we.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=we.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=we.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=we.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=we.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=we.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=we.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=we.getFirstMatch(At,e)||we.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=we.getFirstMatch(At,e)||we.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=we.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=we.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=we.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=we.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=we.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=we.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=we.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=we.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=we.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=we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=we.getFirstMatch(At,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:we.getFirstMatch(r,e),version:we.getSecondMatch(r,e)}}}],JBe=[{test:[/Roku\/DVP/],describe(e){const t=we.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Er.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=we.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Er.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=we.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=we.getWindowsVersionName(t);return{name:Er.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Er.iOS},n=we.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=we.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=we.getMacOSVersionName(t),r={name:Er.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=we.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Er.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=we.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=we.getAndroidVersionName(t),r={name:Er.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=we.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Er.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=we.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||we.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||we.getFirstMatch(/\bbb(\d+)/i,e);return{name:Er.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=we.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Er.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=we.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Er.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Er.Linux}}},{test:[/CrOS/],describe(){return{name:Er.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=we.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Er.PlayStation4,version:t}}}],e2e=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=we.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:hn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:hn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:hn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:hn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:hn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:hn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:hn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=we.getFirstMatch(/(ipod|iphone)/i,e);return{type:hn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:hn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:hn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:hn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:hn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:hn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:hn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:hn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:hn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:hn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:hn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:hn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:hn.tv}}}],t2e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:hs.Blink};const t=we.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:hs.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:hs.Trident},n=we.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:hs.Presto},n=we.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:hs.Gecko},n=we.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:hs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:hs.WebKit},n=we.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class u8{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=we.find(QBe,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=we.find(JBe,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=we.find(e2e,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=we.find(t2e,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 we.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const s=t[a];typeof s=="string"?(i[a]=s,o+=1):typeof s=="object"&&(n[a]=s,r+=1)}),r>0){const a=Object.keys(n),s=we.find(a,u=>this.isOS(u));if(s){const u=this.satisfies(n[s]);if(u!==void 0)return u}const l=we.find(a,u=>this.isPlatform(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}}if(o>0){const a=Object.keys(i),s=we.find(a,l=>this.isBrowser(l,!0));if(s!==void 0)return this.compareVersion(i[s])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=we.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="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(we.compareVersions(o,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 n2e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new u8(t,n)}static parse(t){return new u8(t).getResult()}static get BROWSER_MAP(){return TW}static get ENGINE_MAP(){return hs}static get OS_MAP(){return Er}static get PLATFORMS_MAP(){return hn}}const Qg="Others",r2e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],i2e=e=>{if(!va(e))return{browser:Qg,os:Qg};const{browser:{name:t},os:{name:n}}=n2e.parse(e);return{os:n??Qg,browser:t&&r2e.includes(t)?t:Qg}},o2e=e=>{var t;return va(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},CW=(e,t)=>e[t]!==void 0,c8=e=>typeof e=="number"?e:e?parseFloat(e):0,a2e=(e,{os:t})=>{e[t]=(e[t]||0)+1},s2e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},l2e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},kW=e=>(t,n)=>{const r=CW(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},u2e=kW("country"),c2e=kW("city"),f2e=(e,t)=>{if(!CW(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[c8(r),c8(i)]};o.count+=1,e[n]=o},d2e=(e,t)=>{if(!T_e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},jW=e=>e.reduce((t,n)=>(a2e(t.os,n),s2e(t.browsers,n),l2e(t.referrers,n),u2e(t.countries,n),c2e(t.cities,n),f2e(t.citiesForMap,n),d2e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),PW=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t,s={date:r,potentialBot:a,...i2e(n),referer:o2e(i),country:(o==null?void 0:o.countryName)||"Unknown",city:(o==null?void 0:o.cityName)||"Unknown",latitude:o==null?void 0:o.latitude,longitude:o==null?void 0:o.longitude};return LP(t)?{...s,type:t.type,visitedUrl:t.visitedUrl}:s}),p2e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:PW,processStatsFromVisits:jW},Symbol.toStringTag,{value:"Module"})),Mp=20,h2e=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),m2e=(e,t)=>t.filter(n=>h2e(n,e)),v2e=(e,t)=>cB(t,e),g2e=(e,t,n)=>{const r=t?m2e(t,e):[...e],i=v2e(n,r),o=i.length;return{visitsGroups:Qh(i,Mp),total:o}},ca="visits-table__header-cell visits-table__sticky",y2e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var o;const a=mP(767,r),[s,l]=F.useState(void 0),u=F.useRef(s),[f,d]=F.useState({}),p=F.useMemo(()=>g2e(e,s,f),[e,s,f]),[m,v]=F.useState(1),g=m*Mp,w=g-Mp,y=8+Number(i),_=O=>()=>d({field:O,dir:U_(O,f.field,f.dir)}),x=O=>b.jsx(rh,{currentOrder:f,field:O,className:"visits-table__header-icon"});return F.useEffect(()=>{u.current!==s&&(v(1),n([])),u.current=s},[s,n]),b.jsx("div",{className:"table-responsive-md",children:b.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[b.jsxs("thead",{className:"visits-table__header",children:[b.jsxs("tr",{children:[b.jsxs("th",{className:`${ca} text-center`,onClick:()=>n(t.length<p.total?p.visitsGroups.flat():[]),children:[b.jsx("span",{className:"sr-only",children:"Is selected"}),b.jsx(Le,{icon:Nh,className:We({"text-primary":t.length>0})})]}),b.jsxs("th",{className:`${ca} text-center`,onClick:_("potentialBot"),children:[b.jsx("span",{className:"sr-only",children:"Is bot"}),b.jsx(Le,{icon:mM}),x("potentialBot")]}),b.jsxs("th",{className:ca,onClick:_("date"),children:["Date",x("date")]}),b.jsxs("th",{className:ca,onClick:_("country"),children:["Country",x("country")]}),b.jsxs("th",{className:ca,onClick:_("city"),children:["City",x("city")]}),b.jsxs("th",{className:ca,onClick:_("browser"),children:["Browser",x("browser")]}),b.jsxs("th",{className:ca,onClick:_("os"),children:["OS",x("os")]}),b.jsxs("th",{className:ca,onClick:_("referer"),children:["Referrer",x("referer")]}),i&&b.jsxs("th",{className:ca,onClick:_("visitedUrl"),children:["Visited URL",x("visitedUrl")]})]}),b.jsx("tr",{children:b.jsx("td",{colSpan:y,className:"p-0",children:b.jsx(ov,{noBorder:!0,large:!1,onChange:l})})})]}),b.jsxs("tbody",{children:[p.total===0&&b.jsx("tr",{children:b.jsx("td",{colSpan:y,className:"text-center",children:"There are no visits matching current filter"})}),(o=p.visitsGroups[m-1])==null?void 0:o.map((O,E)=>{const T=t.includes(O);return b.jsxs("tr",{style:{cursor:"pointer"},className:We({"table-active":T}),onClick:()=>n(T?t.filter(k=>k!==O):[...t,O]),children:[b.jsx("td",{className:"text-center",children:T&&b.jsx(Le,{icon:Nh,className:"text-primary"})}),b.jsx("td",{className:"text-center",children:O.potentialBot&&b.jsxs(b.Fragment,{children:[b.jsx(Le,{icon:mM,id:`botIcon${E}`}),b.jsx(qr,{placement:"right",target:`botIcon${E}`,children:"Potentially a visit from a bot or crawler"})]})}),b.jsx("td",{children:b.jsx(nb,{date:O.date})}),b.jsx("td",{children:O.country}),b.jsx("td",{children:O.city}),b.jsx("td",{children:O.browser}),b.jsx("td",{children:O.os}),b.jsx("td",{children:O.referer}),i&&b.jsx("td",{children:O.visitedUrl})]},E)})]}),p.total>Mp&&b.jsx("tfoot",{children:b.jsx("tr",{children:b.jsx("td",{colSpan:y,className:"visits-table__footer-cell visits-table__sticky",children:b.jsxs("div",{className:"row",children:[b.jsx("div",{className:"col-md-6",children:b.jsx(NP,{pagesCount:Math.ceil(p.total/Mp),currentPage:m,setCurrentPage:v,centered:a})}),b.jsx("div",{className:We("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:b.jsxs("div",{children:["Visits ",b.jsx("b",{children:bn(w+1)})," to"," ",b.jsx("b",{children:bn(Math.min(g,p.total))})," of"," ",b.jsx("b",{children:bn(p.total)})]})})]})})})})]})})},ms={byTime:{title:"By time",subPath:"by-time",icon:VQ},byContext:{title:"By context",subPath:"by-context",icon:Jk},byLocation:{title:"By location",subPath:"by-location",icon:sS},list:{title:"List",subPath:"list",icon:j$},options:{title:"Options",subPath:"options",icon:M$,shouldRender:({deletion:e})=>!!e}};Object.freeze(ms);let Jg;const r1=({children:e,showFallback:t})=>b.jsxs(b.Fragment,{children:[t&&b.jsx(Da,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&b.jsx(b.Fragment,{children:e})]}),jv=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:l,loading:u,loadingLarge:f,error:d,errorData:p,progress:m,fallbackInterval:v}=n,[{dateRange:g,visitsFilter:w},y]=kBe(),_=Du("visits"),x=F.useCallback(({startDate:ie,endDate:se})=>y({dateRange:{startDate:ie??void 0,endDate:se??void 0}}),[y]),O=F.useRef(g??v??(_==null?void 0:_.defaultInterval)??"last30Days"),[E,T]=F.useState([]),[k,A]=F.useState(),D=F.useRef(!0),{search:R}=Nn(),I=ie=>ie?`${ie}${R}`:R,z=F.useMemo(()=>PW(l),[l]),{os:G,browsers:H,referrers:Q,countries:Z,cities:te,citiesForMap:X,visitedUrls:$}=F.useMemo(()=>jW(z),[z]),V=F.useMemo(()=>({...w,excludeBots:w.excludeBots??(_==null?void 0:_.excludeBots)}),[w,_==null?void 0:_.excludeBots]),W=Object.values(X),re=F.useCallback(ie=>{Jg=void 0,T(ie)},[]),q=F.useCallback((ie,se)=>{const fe=`${ie}_${se}`;Jg===fe?(T([]),A(void 0),Jg=void 0):(T(z.filter(j=>j[ie]===se)),A(se),Jg=fe)},[z]);F.useEffect(()=>i,[i]),F.useEffect(()=>{const ie=D.current?g??Cme(O.current):g;r({dateRange:ie,filter:V},D.current),re([]),D.current=!1},[g,w]),F.useEffect(()=>{v&&O.current===((_==null?void 0:_.defaultInterval)??"last30Days")&&(O.current=v)},[v,_==null?void 0:_.defaultInterval]);const ee=()=>f?b.jsxs(Da,{loading:!0,children:["This is going to take a while... :S",b.jsx(K7,{value:m,striped:m===100,className:"mt-3"})]}):u?b.jsx(Da,{loading:!0}):d?b.jsx(ii,{type:"error",children:b.jsx(Fa,{errorData:p,fallbackMessage:"An error occurred while loading visits :("})}):b.jsxs(b.Fragment,{children:[b.jsx(uB,{fill:!0,children:Object.values(ms).map(({title:ie,icon:se,subPath:fe,shouldRender:j},P)=>!j||j(e)?b.jsxs(Kp,{to:I(fe),replace:!0,children:[b.jsx(Le,{icon:se}),b.jsx("span",{className:"ms-2 d-none d-lg-inline",children:ie})]},P):void 0).filter(Boolean)}),b.jsx(kr,{children:b.jsxs(C_,{children:[b.jsx(Et,{path:ms.byTime.subPath,element:b.jsx(r1,{showFallback:l.length===0,children:b.jsx("div",{className:"col-12 mt-3",children:b.jsx(xBe,{title:"Visits during time",visits:z,highlightedVisits:E,highlightedLabel:k,setSelectedVisits:re})})})}),b.jsx(Et,{path:ms.byContext.subPath,element:b.jsxs(r1,{showFallback:l.length===0,children:[b.jsx("div",{className:We("mt-3 col-lg-6",{"col-xl-4":!s}),children:b.jsx(i8,{title:"Operating systems",stats:G})}),b.jsx("div",{className:We("mt-3 col-lg-6",{"col-xl-4":!s}),children:b.jsx(i8,{title:"Browsers",stats:H})}),b.jsx("div",{className:We("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:b.jsx(Xg,{title:"Referrers",stats:Q,withPagination:!1,highlightedStats:Fg(E,"referer"),highlightedLabel:k,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:ie=>q("referer",ie)})}),s&&b.jsx("div",{className:"mt-3 col-lg-6",children:b.jsx(Xg,{title:"Visited URLs",stats:$,highlightedLabel:k,highlightedStats:Fg(E,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:ie=>q("visitedUrl",ie)})})]})}),b.jsx(Et,{path:ms.byLocation.subPath,element:b.jsxs(r1,{showFallback:l.length===0,children:[b.jsx("div",{className:"col-lg-6 mt-3",children:b.jsx(Xg,{title:"Countries",stats:Z,highlightedStats:Fg(E,"country"),highlightedLabel:k,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:ie=>q("country",ie)})}),b.jsx("div",{className:"col-lg-6 mt-3",children:b.jsx(Xg,{title:"Cities",stats:te,highlightedStats:Fg(E,"city"),highlightedLabel:k,extraHeaderContent:ie=>W.length>0&&b.jsx(qBe,{modalTitle:"Cities",locations:W,activeCities:ie}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:ie=>q("city",ie)})})]})}),b.jsx(Et,{path:ms.list.subPath,element:b.jsx("div",{className:"col-12",children:b.jsx(y2e,{visits:z,selectedVisits:E,setSelectedVisits:re,isOrphanVisits:s})})}),o&&b.jsx(Et,{path:ms.options.subPath,element:b.jsx("div",{className:"col-12 mt-3",children:b.jsx(ZBe,{...o})})}),b.jsx(Et,{path:"*",element:b.jsx(Yk,{replace:!0,to:I(ms.byTime.subPath)})})]})})]});return b.jsxs(b.Fragment,{children:[t,b.jsx("section",{className:"mt-3",children:b.jsxs("div",{className:"row flex-md-row-reverse",children:[b.jsx("div",{className:"col-lg-7 col-xl-6",children:b.jsxs("div",{className:"d-md-flex",children:[b.jsx("div",{className:"flex-fill",children:b.jsx(z9,{updatable:!0,disabled:u,initialDateRange:O.current,defaultText:"All visits",onDatesChange:x})}),b.jsx(KBe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,selected:V,onChange:ie=>y({visitsFilter:ie})})]})}),l.length>0&&b.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:b.jsxs("div",{className:"d-flex",children:[b.jsx(i9,{className:"btn-md-block",amount:z.length,onClick:()=>a(z)}),b.jsxs(wt,{outline:!0,disabled:E.length===0,className:"btn-md-block ms-2",onClick:()=>re([]),children:["Clear selection ",E.length>0&&b.jsxs(b.Fragment,{children:["(",bn(E.length),")"]})]})]})})]})}),b.jsx("section",{className:"mt-3",children:ee()})]})},AW=ul(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=an(AW),i=md(),{domain:o=""}=ad(),[a,s=a]=o.split("_");return b.jsx(jv,{getVisits:(l,u)=>e({domain:s,query:vv(l),doIntervalFallback:u}),cancelGetVisits:n,visitsInfo:t,exportCsv:l=>r.exportVisits(`domain_${a}_visits.csv`,l),children:b.jsx(gv,{goBack:i,visits:t.visits,title:`"${a}" visits`})})},()=>[Ri.visits]),b2e=sn(AW,["ReportExporter"]),NW=ul(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=an(NW),i=md();return b.jsx(jv,{getVisits:(o,a)=>e({query:vv(o),doIntervalFallback:a}),cancelGetVisits:n,visitsInfo:t,exportCsv:o=>r.exportVisits("non_orphan_visits.csv",o),children:b.jsx(gv,{title:"Non-orphan visits",goBack:i,visits:t.visits})})},()=>[Ri.visits]),_2e=sn(NW,["ReportExporter"]),MW=ul(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=Mu("orphanVisitsDeletion"),{ReportExporter:a}=an(MW),s=md(),l=F.useCallback(d=>a.exportVisits("orphan_visits.csv",d),[a]),u=F.useCallback((d,p)=>{var m;return e({query:vv(d),orphanVisitsType:(m=d.filter)==null?void 0:m.orphanVisitsType,doIntervalFallback:p})},[e]),f=F.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return b.jsx(jv,{getVisits:u,cancelGetVisits:n,visitsInfo:t,exportCsv:l,deletion:f,isOrphanVisits:!0,children:b.jsx(gv,{title:"Orphan visits",goBack:s,visits:t.visits})})},()=>[Ri.orphanVisits]),w2e=sn(MW,["ReportExporter"]),LW="shlink/orphanVisits",x2e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},O2e=e=>fv({typePrefix:`${LW}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1})=>{const r=e(),i=async(a,s)=>r.getNonOrphanVisits({...t,page:a,itemsPerPage:s}),o=dv(n,a=>r.getNonOrphanVisits(a));return[i,o]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),S2e=e=>pv({name:LW,initialState:x2e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>lv(o.date,r,i))}}),RW="shlink/orphanVisits",E2e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},T2e=(e,t)=>!t||t===e.type,C2e=e=>fv({typePrefix:`${RW}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1})=>{const i=e(),o=async(s,l)=>i.getOrphanVisits({...n,page:s,itemsPerPage:l}).then(u=>{const f=u.data.filter(d=>LP(d)&&T2e(d,t));return{...u,data:f}}),a=dv(r,s=>i.getOrphanVisits(s));return[o,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),k2e=(e,t)=>pv({name:RW,initialState:E2e,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({visit:a,shortUrl:s})=>!s&&lv(a.date,i,o))}}),DW="shlink/orphanVisitsDeletion",f8={deletedVisits:0,deleting:!1,error:!1},j2e=e=>_r(`${DW}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),P2e=e=>Yn({name:DW,initialState:f8,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:xo(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...f8,deletedVisits:i}})}}),IW="shlink/shortUrlVisits",A2e={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},N2e=e=>fv({typePrefix:`${IW}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1})=>{const i=e(),o=async(s,l)=>i.getShortUrlVisits(t,{...n,page:s,itemsPerPage:l}),a=dv(r,async s=>i.getShortUrlVisits(t,{...s,domain:n.domain}));return[o,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),M2e=(e,t)=>pv({name:IW,initialState:A2e,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,query:i={}},o)=>{const{startDate:a,endDate:s}=i;return o.filter(({shortUrl:l,visit:u})=>l&&Jp(l,n,r)&&lv(u.date,a,s))}}),FW="shlink/shortUrlVisitsDeletion",d8={shortCode:"",deletedVisits:0,deleting:!1,error:!1},L2e=e=>_r(`${FW}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),R2e=e=>Yn({name:FW,initialState:d8,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:xo(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...d8,shortCode:i,domain:o,deletedVisits:a}})}}),UW="shlink/tagVisits",D2e={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},I2e=e=>fv({typePrefix:`${UW}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1})=>{const i=e(),o=async(s,l)=>i.getTagVisits(t,{...n,page:s,itemsPerPage:l}),a=dv(r,async s=>i.getTagVisits(t,s));return[o,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),F2e=e=>pv({name:UW,initialState:D2e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>(a==null?void 0:a.tags.includes(t))&&lv(s.date,i,o))}}),$W="shlink/visitsOverview",ey={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},p8=e=>e.filter(({visit:t})=>t.potentialBot).length,U2e=e=>_r(`${$W}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n,orphanVisits:r,orphanVisitsCount:i})=>({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}}))),$2e=e=>Yn({name:$W,initialState:ey,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...ey,loading:!0})),t.addCase(e.rejected,()=>({...ey,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...ey,...r})),t.addCase(cv,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=C_e(o.createdVisits),l=a.length,u=p8(a),f=l-u,d=s.length,p=p8(s),m=d-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+u,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+d,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+m}}})}}),B2e=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,a=(r==null?void 0:r.shortUrl)??"",s=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title;return b.jsxs(gv,{title:b.jsxs(b.Fragment,{children:["Visits for ",b.jsx(Sa,{href:a})]}),goBack:n,visits:o,shortUrl:r,children:[b.jsx("hr",{}),b.jsxs("div",{children:["Created: ",(()=>r?b.jsxs("span",{children:[b.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:b.jsx(nb,{date:r.dateCreated,relative:!0})}),b.jsx(qr,{placement:"bottom",target:"created",children:b.jsx(nb,{date:r.dateCreated})})]}):b.jsx("small",{children:"Loading..."}))()]}),b.jsxs("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&b.jsx("small",{children:"Loading..."}),!i&&b.jsx(Sa,{href:s,children:l??s})]})]})},BW=ul(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{var s;const l=Mu("shortUrlVisitsDeletion"),{ReportExporter:u}=an(BW),f=X2(),{search:d}=Nn(),p=md(),{domain:m}=pd(d),v=F.useCallback((y,_)=>r({shortCode:f,query:{...vv(y),domain:m},doIntervalFallback:_}),[m,r,f]),g=F.useCallback(y=>{var _;return u.exportVisits(`short-url_${(_=n.shortUrl)==null?void 0:_.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,y)},[u,(s=n.shortUrl)==null?void 0:s.shortUrl]),w=F.useMemo(()=>l?{deleteVisits:()=>o({shortCode:f,domain:m}),visitsDeletion:t}:void 0,[o,m,f,t,l]);return F.useEffect(()=>{i({shortCode:f,domain:m})},[m,i,f]),b.jsx(jv,{getVisits:v,cancelGetVisits:a,visitsInfo:e,exportCsv:g,deletion:w,children:b.jsx(B2e,{shortUrlDetail:n,shortUrlVisits:e,goBack:p})})},e=>e.shortCode?[Ri.shortUrlVisits(u2(e.shortCode))]:[]),z2e=sn(BW,["ReportExporter"]),V2e=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e;return b.jsx(gv,{title:b.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[b.jsx("span",{className:"me-2",children:"Visits for"}),b.jsx(bP,{text:i,colorGenerator:n})]}),goBack:t,visits:r})},zW=ul(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=an(zW),o=md(),{tag:a=""}=ad();return b.jsx(jv,{getVisits:(s,l)=>e({tag:a,query:vv(s),doIntervalFallback:l}),cancelGetVisits:n,visitsInfo:t,exportCsv:s=>i.exportVisits(`tag_${a}_visits.csv`,s),children:b.jsx(V2e,{tagVisits:t,goBack:o,colorGenerator:r})})},()=>[Ri.visits]),H2e=sn(zW,["ColorGenerator","ReportExporter"]),W2e=(e,t)=>{e.serviceFactory("MapModal",()=>EW),e.factory("ShortUrlVisits",z2e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlDetail","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",H2e),e.decorator("TagVisits",t(["tagVisits","mercureInfo"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.factory("DomainVisits",b2e),e.decorator("DomainVisits",t(["domainVisits","mercureInfo"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.factory("OrphanVisits",w2e),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo","deleteOrphanVisits"])),e.factory("NonOrphanVisits",_2e),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>p2e),e.serviceFactory("getShortUrlVisits",N2e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",n=>n.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("deleteShortUrlVisits",L2e,"apiClientFactory"),e.serviceFactory("getTagVisits",I2e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",n=>n.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",Ame,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",n=>n.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",C2e,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",n=>n.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",j2e,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",O2e,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",n=>n.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>cv),e.serviceFactory("loadVisitsOverview",U2e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",$2e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",n=>n.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",Nme,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",n=>n.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",S2e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",n=>n.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",k2e,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",n=>n.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",P2e,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",n=>n.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",M2e,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",n=>n.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",R2e,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",n=>n.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",F2e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",n=>n.reducer,"tagVisitsReducerCreator")},bp=({children:e,to:t,className:n,...r})=>b.jsx(p$,{className:({isActive:i})=>We("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Y2e=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Nn(),r=We("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return b.jsx("aside",{className:r,children:b.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[b.jsxs(bp,{to:i("/overview"),children:[b.jsx(Le,{fixedWidth:!0,icon:bJ}),b.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),b.jsxs(bp,{to:i("/list-short-urls/1"),className:We({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[b.jsx(Le,{fixedWidth:!0,icon:j$}),b.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),b.jsxs(bp,{to:i("/create-short-url"),children:[b.jsx(Le,{fixedWidth:!0,icon:SJ,flip:"horizontal"}),b.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),b.jsxs(bp,{to:i("/manage-tags"),children:[b.jsx(Le,{fixedWidth:!0,icon:P$}),b.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),b.jsxs(bp,{to:i("/manage-domains"),children:[b.jsx(Le,{fixedWidth:!0,icon:JQ}),b.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},VW=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:l,Overview:u,EditShortUrl:f,ManageDomains:d}=an(VW),p=Nn(),m=Lu(),[v,g,w,y]=En();F.useEffect(()=>y(),[p,y]);const _=Mu("domainVisits"),x=We("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":v}),O=Gme(w,y);return b.jsxs(b.Fragment,{children:[b.jsx(Le,{icon:qQ,className:x,onClick:g}),b.jsx("div",{...O,className:"shlink-layout__swipeable",children:b.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[b.jsx(Y2e,{routePrefix:m,showOnMobile:v}),b.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>y(),children:b.jsx("div",{className:"container-xl",children:b.jsxs(C_,{children:[b.jsx(Et,{index:!0,element:b.jsx(Yk,{replace:!0,to:"overview"})}),b.jsx(Et,{path:"/overview",element:b.jsx(u,{})}),b.jsx(Et,{path:"/list-short-urls/:page",element:b.jsx(n,{})}),b.jsx(Et,{path:"/create-short-url",element:b.jsx(r,{})}),b.jsx(Et,{path:"/short-code/:shortCode/visits/*",element:b.jsx(i,{})}),b.jsx(Et,{path:"/short-code/:shortCode/edit",element:b.jsx(f,{})}),b.jsx(Et,{path:"/tag/:tag/visits/*",element:b.jsx(o,{})}),_&&b.jsx(Et,{path:"/domain/:domain/visits/*",element:b.jsx(a,{})}),b.jsx(Et,{path:"/orphan-visits/*",element:b.jsx(s,{})}),b.jsx(Et,{path:"/non-orphan-visits/*",element:b.jsx(l,{})}),b.jsx(Et,{path:"/manage-tags",element:b.jsx(t,{})}),b.jsx(Et,{path:"/manage-domains",element:b.jsx(d,{})}),e&&b.jsx(Et,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},G2e=sn(VW,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains"]),q2e=!0,K2e=e=>VB({devTools:!q2e,reducer:Vj({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlDetail:e.shortUrlDetailReducer,shortUrlVisits:e.shortUrlVisitsReducer,shortUrlVisitsDeletion:e.shortUrlVisitsDeletionReducer,tagVisits:e.tagVisitsReducer,domainVisits:e.domainVisitsReducer,orphanVisits:e.orphanVisitsReducer,orphanVisitsDeletion:e.orphanVisitsDeletionReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),Z2e=e=>{e.factory("Main",G2e),e.factory("store",K2e)},oa=new ude,{container:X2e}=oa,Q2e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),J2e=(e,t)=>(...n)=>e[t](...n),e9e=(e,t)=>({...e,[t]:J2e(X2e,t)}),Pv=(e,t=[])=>t$(e?Q2e(e):null,t.reduce(e9e,{}));Z2e(oa);D0e(oa,Pv);n_e(oa,Pv);W2e(oa,Pv);ave(oa);rve(oa,Pv);_ve(oa,Pv);E_e(oa);let h8;const t9e=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=wde(t),l=F.useRef(),[u,f]=F.useState(),d=Au(),[p,m]=F.useMemo(()=>d?[F.Fragment,{}]:[d$,{basename:i}],[d,i]);return F.useEffect(()=>{h8=n,e.value("apiClientFactory",()=>h8),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:g,store:w,loadMercureInfo:y,listTags:_}=v;l.current=b.jsx(g,{createNotFound:o}),f(w),w.dispatch(y(r)),w.dispatch(_())},[n,o,r,a]),u?b.jsx(n$,{store:u,children:b.jsx(yve,{value:r,children:b.jsx(_de,{value:s,children:b.jsx(xde,{value:i,children:b.jsx(p,{...m,children:l.current})})})})}):b.jsx(b.Fragment,{})},n9e="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=",r9e="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==",i9e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",o9e=()=>{delete l8.Icon.Default.prototype._getIconUrl,l8.Icon.Default.mergeOptions({iconRetinaUrl:r9e,iconUrl:n9e,shadowUrl:i9e})};o9e();const a9e=t9e(oa);function s_(e){return t=>{const{resetSelectedServer:n}=t;return F.useEffect(()=>{n()},[n]),b.jsx(e,{...t})}}let s9e=class extends F.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 b.jsx("div",{className:"home",children:b.jsxs(vn,{className:"p-4",children:[b.jsx("h1",{children:"Oops! This is awkward :S"}),b.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),b.jsx("br",{}),b.jsx(wt,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const HW=({href:e,children:t,rel:n,...r})=>b.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),l9e=({id:e,name:t})=>b.jsxs(tB,{tag:Yt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,b.jsx(Le,{icon:jJ,className:"servers-list__server-item-icon"})]}),WW=({servers:e,children:t,embedded:n=!1})=>b.jsxs(b.Fragment,{children:[t&&b.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&b.jsx(Q7,{"data-testid":"list",tag:"div",className:hd("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>b.jsx(l9e,{id:r,name:i},r))})]}),YW=({color:e=I0,className:t})=>b.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:b.jsxs("g",{fill:e,children:[b.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"}),b.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"}),b.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"}),b.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"})]})}),u9e=({servers:e})=>{const t=ta(),n=Object.values(e),r=n.length>0;return F.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),b.jsx("div",{className:"home",children:b.jsx(ui,{className:"home__main-card",children:b.jsxs(kr,{className:"g-0",children:[b.jsx("div",{className:"col-md-5 d-none d-md-block",children:b.jsx("div",{className:"home__logo-wrapper",children:b.jsx("div",{className:"home__logo",children:b.jsx(YW,{})})})}),b.jsxs("div",{className:"col-md-7 home__servers-container",children:[b.jsx("div",{className:"home__title-wrapper",children:b.jsx("h1",{className:"home__title",children:"Welcome!"})}),b.jsx(WW,{embedded:!0,servers:n,children:!r&&b.jsxs("div",{className:"p-4 text-center",children:[b.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),b.jsx("p",{children:b.jsxs(Yt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[b.jsx(Le,{icon:tj})," ",b.jsx("span",{className:"ms-1",children:"Add a server"})]})}),b.jsx("p",{className:"mb-0 mt-5",children:b.jsx(HW,{href:"https://shlink.io/documentation",children:b.jsxs("small",{children:[b.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",b.jsx(Le,{icon:cJ})]})})})]})})]})]})})})},GW=()=>{const{ServersDropdown:e}=Gi(GW),[t,n,,r]=En(),i=Nn(),{pathname:o}=i;F.useEffect(r,[i,r]);const a="/settings",s=hd("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return b.jsxs(y7,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[b.jsxs(b7,{tag:Yt,to:"/",children:[b.jsx(YW,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),b.jsx(_7,{onClick:n,children:b.jsx(Le,{icon:CJ,className:s})}),b.jsx(Toe,{navbar:!0,isOpen:t,children:b.jsxs(gj,{navbar:!0,className:"ms-auto",children:[b.jsx(yj,{children:b.jsxs(O7,{tag:Yt,to:a,active:o.startsWith(a),children:[b.jsx(Le,{icon:NJ}),"  Settings"]})}),b.jsx(e,{})]})})]})},c9e=qi(GW,["ServersDropdown"]),f9e=({children:e})=>{const t=Nn();return F.useEffect(()=>{scrollTo(0,0)},[t]),b.jsx(b.Fragment,{children:e})},i1=e=>Object.prototype.toString.call(e)==="[object Object]",qW=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const o=t(...r);return n[i]=o,o}},KW=(e,t)=>{const n={...e};return!i1(e)||!i1(t)||Object.keys(t).forEach(r=>{i1(t[r])?n[r]=r in e?KW(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},d9e=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,m8=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(d9e);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},v8=e=>e==="*"||e==="x"||e==="X",g8=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},p9e=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],h9e=(e,t)=>{if(v8(e)||v8(t))return 0;const[n,r]=p9e(g8(e),g8(t));return n>r?1:n<r?-1:0},y8=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=h9e(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},m9e=(e,t)=>{const n=m8(e),r=m8(t),i=n.pop(),o=r.pop(),a=y8(n,r);return a!==0?a:i&&o?y8(i.split("."),o.split(".")):i||o?i?-1:1:0},v9e=(e,t,n)=>{g9e(n);const r=m9e(e,t);return ZW[n].includes(r)},ZW={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},b8=Object.keys(ZW),g9e=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(b8.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${b8.join("|")}`)},XW=qW(e=>e,e=>{try{return v9e(e,e,"=")}catch{return!1}}),QW=e=>XW(e)?`v${e}`:e,JW=(e,t="latest")=>XW(e)?e:t,y9e="%_VERSION_%",b9e=e=>QW(JW(e)),_8=({project:e,version:t})=>b.jsx(HW,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:b.jsx("b",{children:t})}),_9e=({selectedServer:e,clientVersion:t=y9e})=>{const n=b9e(t);return b.jsxs("small",{className:"text-muted",children:[C$(e)&&b.jsxs(b.Fragment,{children:["Server: ",b.jsx(_8,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",b.jsx(_8,{project:"shlink-web-client",version:n})]})},w9e=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,x9e=({selectedServer:e})=>{const{pathname:t}=Nn(),n=F.useMemo(()=>w9e.test(t),[t]),r=hd("text-center",{"shlink-versions-container--with-sidebar":n});return b.jsx("div",{className:r,children:b.jsx(_9e,{selectedServer:e})})},Md=({children:e})=>b.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function eY(e){const t=n=>{const{ServerError:r}=Gi(t),i=ad(),{selectServer:o,selectedServer:a}=n;return F.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?RQ(a)?b.jsx(r,{}):b.jsx(e,{...n}):b.jsx(Md,{children:b.jsx(Da,{loading:!0})})};return t}const tY=eY(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Gi(tY),a=C$(e),s=a?`/server/${e.id}`:"";return a?b.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:s,tagColorsStorage:r,createNotFound:l=>b.jsx(kB,{to:`${s}${l}`,children:"List short URLs"})}):b.jsx(o,{})}),O9e=qi(tY,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),S9e=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Lfe,"fetch"),e.serviceFactory("ScrollToTop",()=>f9e),e.factory("MainHeader",c9e),e.serviceFactory("Home",()=>u9e),e.decorator("Home",s_),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>a9e),e.factory("ShlinkWebComponentContainer",O9e),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>x9e),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>s9e)};let ty;const E9e=new Uint8Array(16);function T9e(){if(!ty&&(ty=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ty))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ty(E9e)}const or=[];for(let e=0;e<256;++e)or.push((e+256).toString(16).slice(1));function C9e(e,t=0){return or[e[t+0]]+or[e[t+1]]+or[e[t+2]]+or[e[t+3]]+"-"+or[e[t+4]]+or[e[t+5]]+"-"+or[e[t+6]]+or[e[t+7]]+"-"+or[e[t+8]]+or[e[t+9]]+"-"+or[e[t+10]]+or[e[t+11]]+or[e[t+12]]+or[e[t+13]]+or[e[t+14]]+or[e[t+15]]}const k9e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),w8={randomUUID:k9e};function nY(e,t,n){if(w8.randomUUID&&!t&&!e)return w8.randomUUID();e=e||{};const r=e.random||(e.rng||T9e)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return C9e(r)}const rY=()=>{const e=ta();return F.useCallback(()=>e(-1),[e])},j9e=()=>{const{search:e}=Nn();return F.useMemo(()=>pd(e),[e])},iY=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return b.jsxs(qa,{centered:!0,isOpen:e,children:[b.jsxs(Ka,{children:["Duplicated server",i&&"s"]}),b.jsxs(na,{children:[b.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),b.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?b.jsxs("li",{children:[b.jsx("b",{children:o})," - ",b.jsx("b",{children:a})]},s):b.jsxs(F.Fragment,{children:[b.jsxs("li",{children:["URL: ",b.jsx("b",{children:o})]}),b.jsxs("li",{children:["API key: ",b.jsx("b",{children:a})]})]},s))}),b.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),b.jsxs(Nu,{children:[b.jsx(wt,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),b.jsx(wt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},P9e=e=>t=>{t.preventDefault(),e()},oY=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=F.useState(""),[a,s]=F.useState(""),[l,u]=F.useState(""),f=P9e(()=>e({name:i,url:a,apiKey:l}));return F.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&u(t.apiKey)},[t]),b.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[b.jsxs(vn,{className:"mb-3",title:r,children:[b.jsx(by,{value:i,onChange:o,children:"Name"}),b.jsx(by,{type:"url",value:a,onChange:s,children:"URL"}),b.jsx(by,{value:l,onChange:u,children:"API key"})]}),b.jsx("div",{className:"text-end",children:n})]})},x8=4e3,O8=({type:e})=>b.jsx("div",{className:"mt-3",children:b.jsxs(ii,{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."]})}),aY=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Gi(aY),i=ta(),o=rY(),a=!!Object.keys(e).length,[s,l]=r(!1,x8),[u,f]=r(!1,x8),[d,p]=En(),[m,v]=F.useState(),g=F.useCallback(w=>{const y=nY();t([{...w,id:y}]),i(`/server/${y}`)},[t,i]);return F.useEffect(()=>{if(!m)return;Object.values(e).some(({url:y,apiKey:_})=>(m==null?void 0:m.url)===y&&(m==null?void 0:m.apiKey)===_)?p():g(m)},[g,m,e,p]),b.jsxs(Md,{children:[b.jsxs(oY,{title:b.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!a&&b.jsx(n,{tooltipPlacement:"top",onImport:l,onImportError:f}),a&&b.jsx(wt,{outline:!0,onClick:o,children:"Cancel"}),b.jsx(wt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&b.jsx(O8,{type:"success"}),u&&b.jsx(O8,{type:"error"}),b.jsx(iY,{isOpen:d,duplicatedServers:m?[m]:[],onDiscard:o,onSave:()=>m&&g(m)})]})},A9e=qi(aY,["ImportServersBtn","useTimeoutToggle"]),sY=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Gi(sY),[o,,a,s]=En();return b.jsxs(b.Fragment,{children:[b.jsxs("button",{type:"button",className:hd(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&b.jsx(Le,{fixedWidth:!0,icon:Xk}),b.jsx("span",{className:r,children:n??"Remove this server"})]}),b.jsx(i,{server:e,isOpen:o,toggle:s})]})},N9e=qi(sY,["DeleteServerModal"]),M9e=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=ta(),a=F.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return b.jsxs(qa,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[b.jsx(Ka,{toggle:t,className:"text-danger",children:"Remove server"}),b.jsxs(na,{children:[b.jsxs("p",{children:["Are you sure you want to remove ",b.jsx("b",{children:e?e.name:""}),"?"]}),b.jsx("p",{children:b.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."})})]}),b.jsxs(Nu,{children:[b.jsx(wt,{color:"link",onClick:t,children:"Cancel"}),b.jsx(wt,{color:"danger",onClick:s,children:"Delete"})]})]})},L9e=eY(({editServer:e,selectedServer:t,selectServer:n})=>{const r=rY(),{reconnect:i}=j9e();if(!Vp(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return b.jsx(Md,{children:b.jsxs(oY,{title:b.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[b.jsx(wt,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),b.jsx(wt,{outline:!0,color:"primary",children:"Save"})]})})}),R9e=qi(L9e,["ServerError"]),S8=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),lY=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Gi(lY),l=sl(),[u,f]=F.useState([]),[d,,p,m]=En(),v=F.useRef([]),g=F.useCallback(x=>{e(x),r()},[e,r]),w=F.useCallback(async({target:x})=>{var O;return s.importServersFromFile((O=x.files)==null?void 0:O[0]).then(E=>{v.current=E;const T=Object.values(t),k=E.filter(D=>S8(T,D)),A=!!k.length;A?f(k):g(E),A&&p()}).then(()=>{x.value=null}).catch(i)},[g,i,t,s,p]),y=F.useCallback(()=>{g(v.current),m()},[g,m,v]),_=F.useCallback(()=>{g(v.current.filter(x=>!S8(u,x))),m()},[g,u,m]);return b.jsxs(b.Fragment,{children:[b.jsxs(wt,{outline:!0,id:"importBtn",className:a,onClick:()=>{var x;return(x=l.current)==null?void 0:x.click()},children:[b.jsx(Le,{icon:nJ,fixedWidth:!0})," ",n??"Import from file"]}),b.jsxs(qr,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",b.jsx("b",{children:"name"}),", ",b.jsx("b",{children:"apiKey"})," and ",b.jsx("b",{children:"url"})," columns."]}),b.jsx("input",{type:"file",accept:"text/csv",className:"d-none",ref:l,onChange:w,"aria-hidden":!0}),b.jsx(iY,{isOpen:d,duplicatedServers:u,onDiscard:_,onSave:y})]})},D9e=qi(lY,["ServersImporter"]),uY=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Gi(uY);return b.jsx(Md,{children:b.jsxs("div",{className:"server-error__container flex-column",children:[b.jsxs(Da,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Vp(t)&&"Could not find this Shlink server.",Vp(t)&&b.jsxs(b.Fragment,{children:[b.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."]})]}),b.jsx(WW,{servers:Object.values(e),children:b.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",b.jsx(Yt,{to:"/server/create",children:"add a new one"}),"."]})}),Vp(t)&&b.jsx("div",{className:"container mt-3 mt-md-5",children:b.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",b.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",b.jsx(Yt,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},I9e=qi(uY,["DeleteServerButton"]),F9e=4e3,cY=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Gi(cY),o=Object.values(e),[a,s]=F.useState(o),l=p=>s(o.filter(({name:m,url:v})=>`${m} ${v}`.toLowerCase().match(p.toLowerCase()))),u=a.some(({autoConnect:p})=>!!p),[f,d]=r(!1,F9e);return F.useEffect(()=>{s(Object.values(e))},[e]),b.jsxs(Md,{children:[b.jsx(ov,{className:"mb-3",onChange:l}),b.jsxs(kr,{className:"mb-3",children:[b.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[b.jsx(n,{className:"flex-fill",onImportError:d,children:"Import servers"}),o.length>0&&b.jsxs(wt,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[b.jsx(Le,{icon:N$,fixedWidth:!0})," Export servers"]})]}),b.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:b.jsxs(wt,{outline:!0,color:"primary",className:"flex-fill",tag:Yt,to:"/server/create",children:[b.jsx(Le,{icon:tj,fixedWidth:!0})," Add a server"]})})]}),b.jsx(vn,{children:b.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[b.jsx("thead",{className:"responsive-table__header",children:b.jsxs("tr",{children:[u&&b.jsx("th",{style:{width:"50px"},children:b.jsx("span",{className:"sr-only",children:"Auto-connect"})}),b.jsx("th",{children:"Name"}),b.jsx("th",{children:"Base URL"}),b.jsx("th",{children:b.jsx("span",{className:"sr-only",children:"Options"})})]})}),b.jsxs("tbody",{children:[!a.length&&b.jsx("tr",{className:"text-center",children:b.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(p=>b.jsx(i,{server:p,hasAutoConnect:u},p.id))]})]})}),f&&b.jsx("div",{className:"mt-3",children:b.jsx(ii,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},U9e=qi(cY,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),fY=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Gi(fY);return b.jsxs("tr",{className:"responsive-table__row",children:[t&&b.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&b.jsxs(b.Fragment,{children:[b.jsx(Le,{icon:Nh,className:"text-primary",id:"autoConnectIcon"}),b.jsx(qr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),b.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:b.jsx(Yt,{to:`/server/${e.id}`,children:e.name})}),b.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),b.jsx("td",{className:"responsive-table__cell text-end",children:b.jsx(n,{server:e})})]})},$9e=qi(fY,["ManageServersRowDropdown"]),dY=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Gi(dY),[r,,i,o]=En(),a=`/server/${e.id}`,{autoConnect:s}=e,l=s?eJ:Ufe;return b.jsxs(F_,{minWidth:170,children:[b.jsxs(ze,{tag:Yt,to:a,children:[b.jsx(Le,{icon:QQ,fixedWidth:!0})," Connect"]}),b.jsxs(ze,{tag:Yt,to:`${a}/edit`,children:[b.jsx(Le,{icon:Qk,fixedWidth:!0})," Edit server"]}),b.jsxs(ze,{onClick:()=>t(e,!s),children:[b.jsx(Le,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),b.jsx(ze,{divider:!0,tag:"hr"}),b.jsxs(ze,{className:"dropdown-item--danger",onClick:i,children:[b.jsx(Le,{icon:Xk,fixedWidth:!0})," Remove server"]}),b.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},B9e=qi(dY,["DeleteServerModal"]),pY=(e,t)=>WB(e,t,{serializeError:n=>n}),z9e={},V9e=e=>"id"in e?e:{...e,id:nY()},H9e=e=>e.reduce((t,n)=>({...t,[n.id]:n}),{}),{actions:W9e,reducer:Y9e}=Yn({name:"shlink/servers",initialState:z9e,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})=>{const{[t.id]:n,...r}=e;return r},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,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:H9e(e.map(V9e))}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:G9e,deleteServer:q9e,setAutoConnect:K9e,createServers:hY}=W9e,Z9e=Y9e,X9e=e=>Array.isArray(e)?e.filter(T$):[],Q9e=e=>pY("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${l0.homepage}/servers.json`),i=X9e(r);n(hY(i))}),BA="shlink/selectedServer",J9e="1.0.0",eze="999.999.999",tze="latest",nze=e=>JW(e===tze?eze:e,J9e),rze=qW(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:nze(n),printableVersion:QW(n)}))),E8=null,zA=Wn(`${BA}/resetSelectedServer`),ize=e=>pY(`${BA}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(zA());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:l}=await rze(o,()=>a.health());return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),oze=e=>Yn({name:BA,initialState:E8,reducers:{},extraReducers:t=>{t.addCase(zA,()=>E8),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),aze=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?b.jsxs(ze,{tag:Yt,to:"/server/create",children:[b.jsx(Le,{icon:tj})," ",b.jsx("span",{className:"ms-1",children:"Add a server"})]}):b.jsxs(b.Fragment,{children:[n.map(({name:i,id:o})=>b.jsx(ze,{tag:Yt,to:`/server/${o}`,active:DQ(t)===o,children:i},o)),b.jsx(ze,{divider:!0,tag:"hr"}),b.jsxs(ze,{tag:Yt,to:"/manage-servers",children:[b.jsx(Le,{icon:pM})," ",b.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return b.jsxs(iv,{nav:!0,inNavbar:!0,children:[b.jsxs(ud,{nav:!0,caret:!0,children:[b.jsx(Le,{icon:pM})," ",b.jsx("span",{className:"ms-1",children:"Servers"})]}),b.jsx(ld,{end:!0,style:{right:0},children:r()})]})},sze=({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)},lze=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);sze(e,i,n)},uze="shlink-servers.csv";class cze{constructor(t,n,r){Xu(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(IQ);try{const n=this.jsonToCsv(t);lze(this.window,n,uze)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const fze=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",dze=e=>Array.isArray(e)&&e.every(fze);class pze{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(!dze(r))throw new Error("Provided file does not have the right format.");return r}}const hze=(e,t)=>{e.factory("ManageServers",U9e),e.decorator("ManageServers",s_),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",$9e),e.factory("ManageServersRowDropdown",B9e),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",A9e),e.decorator("CreateServer",s_),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",R9e),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>aze),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>M9e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",N9e),e.factory("ImportServersBtn",D9e),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",I9e),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",pze,"csvToJson"),e.service("ServersExporter",cze,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",ize,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>hY),e.serviceFactory("deleteServer",()=>q9e),e.serviceFactory("editServer",()=>G9e),e.serviceFactory("setAutoConnect",()=>K9e),e.serviceFactory("fetchServers",Q9e,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>zA),e.serviceFactory("selectedServerReducerCreator",oze,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},Jc=({children:e})=>b.jsx("small",{className:"form-text text-muted d-block",children:e}),mze=e=>e?`${e}`:"",vze=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=I_();return b.jsxs(vn,{title:"Real-time updates",className:"h-100",children:[b.jsx(ni,{children:b.jsxs(yf,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",b.jsxs(Jc,{children:["Real-time updates are currently being ",b.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),b.jsxs(fd,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:hd("form-label",{"text-muted":!r.enabled}),id:i,children:[b.jsx(gu,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:mze(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&b.jsxs(Jc,{children:[r.interval!==void 0&&r.interval>0&&b.jsxs("span",{children:["Updates will be reflected in the UI every ",b.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},mY={field:"dateCreated",dir:"DESC"},gze={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:mY}},yze=(e,{payload:t})=>KW(e,t),Tl=e=>({reducer:yze,prepare:e}),Cl=e=>({payload:e}),{reducer:bze,actions:_ze}=Yn({name:"shlink/settings",initialState:gze,reducers:{toggleRealTimeUpdates:Tl(e=>Cl({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:Tl(e=>Cl({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:Tl(e=>Cl({shortUrlCreation:e})),setShortUrlsListSettings:Tl(e=>Cl({shortUrlsList:e})),setUiSettings:Tl(e=>Cl({ui:e})),setVisitsSettings:Tl(e=>Cl({visits:e})),setTagsSettings:Tl(e=>Cl({tags:e}))}}),{toggleRealTimeUpdates:wze,setRealTimeUpdatesInterval:xze,setShortUrlCreationSettings:Oze,setShortUrlsListSettings:Sze,setUiSettings:Eze,setVisitsSettings:Tze,setTagsSettings:Cze}=_ze,kze=bze,o1=({items:e})=>b.jsx(b.Fragment,{children:e.map((t,n)=>b.jsx("div",{className:"mb-3",children:t},n))}),vY=()=>{const{RealTimeUpdatesSettings:e,ShortUrlCreationSettings:t,ShortUrlsListSettings:n,UserInterfaceSettings:r,VisitsSettings:i,TagsSettings:o}=Gi(vY);return b.jsxs(Md,{children:[b.jsxs(uB,{className:"mb-3",children:[b.jsx(Kp,{to:"general",children:"General"}),b.jsx(Kp,{to:"short-urls",children:"Short URLs"}),b.jsx(Kp,{to:"other-items",children:"Other items"})]}),b.jsxs(C_,{children:[b.jsx(Et,{path:"general",element:b.jsx(o1,{items:[b.jsx(r,{}),b.jsx(e,{})]})}),b.jsx(Et,{path:"short-urls",element:b.jsx(o1,{items:[b.jsx(t,{}),b.jsx(n,{})]})}),b.jsx(Et,{path:"other-items",element:b.jsx(o1,{items:[b.jsx(o,{}),b.jsx(i,{})]})}),b.jsx(Et,{path:"*",element:b.jsx(Yk,{replace:!0,to:"general"})})]})]})},jze=qi(vY,["RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"]),a1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Pze=e=>e==="includes"?b.jsxs(b.Fragment,{children:["The list of suggested tags will contain those ",b.jsx("b",{children:"including"})," provided input."]}):b.jsxs(b.Fragment,{children:["The list of suggested tags will contain those ",b.jsx("b",{children:"starting with"})," provided input."]}),Aze=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return b.jsxs(vn,{title:"Short URLs form",className:"h-100",children:[b.jsx(ni,{children:b.jsxs(yf,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",b.jsxs(Jc,{children:["The initial state of the ",b.jsx("b",{children:"Validate URL"})," checkbox will be ",b.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),b.jsx(ni,{children:b.jsxs(yf,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",b.jsxs(Jc,{children:["The initial state of the ",b.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",b.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),b.jsxs(fd,{noMargin:!0,label:"Tag suggestions search mode:",children:[b.jsxs(Za,{text:a1(n.tagFilteringMode),children:[b.jsx(ze,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:a1("startsWith")}),b.jsx(ze,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:a1("includes")})]}),b.jsx(Jc,{children:Pze(n.tagFilteringMode)})]})]})},Nze={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Mze=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>b.jsx(vn,{title:"Short URLs list",className:"h-100",children:b.jsx(fd,{noMargin:!0,label:"Default ordering for short URLs list:",children:b.jsx(av,{items:Nze,order:(e==null?void 0:e.defaultOrdering)??mY,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),Lze={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Rze=({settings:{tags:e},setTagsSettings:t})=>b.jsx(vn,{title:"Tags",className:"h-100",children:b.jsx(fd,{noMargin:!0,label:"Default ordering for tags list:",children:b.jsx(av,{items:Lze,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})}),Dze=({settings:{ui:e},setUiSettings:t})=>b.jsxs(vn,{title:"User interface",className:"h-100",children:[b.jsx(Le,{icon:(e==null?void 0:e.theme)==="dark"?LJ:OJ,className:"user-interface__theme-icon"}),b.jsx(yf,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{t({...e,theme:n?"dark":"light"})},children:"Use dark theme."})]}),gY={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Ize=(e,t)=>!e||e==="all"?t:gY[e],Fze=({onChange:e,active:t,allText:n})=>b.jsxs(Za,{text:Ize(t,n),children:[b.jsx(ze,{active:t==="all",onClick:()=>e("all"),children:n}),b.jsx(ze,{divider:!0}),Object.entries(gY).map(([r,i])=>b.jsx(ze,{active:t===r,onClick:()=>e(r),children:i},r))]}),T8=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},Uze=({settings:e,setVisitsSettings:t})=>{var n,r;return b.jsxs(vn,{title:"Visits",className:"h-100",children:[b.jsx(ni,{children:b.jsxs(yf,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:T8(e),excludeBots:i}),children:["Exclude bots wherever possible (this options effect might depend on Shlink servers version).",b.jsxs(Jc,{children:["The visits coming from potential bots will be ",b.jsx("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),b.jsx(fd,{noMargin:!0,label:"Default interval to load on visits sections:",children:b.jsx(Fze,{allText:"All visits",active:T8(e),onChange:i=>t({defaultInterval:i})})})]})},$ze=(e,t)=>{e.factory("Settings",jze),e.decorator("Settings",s_),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>vze),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>Aze),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>Dze),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>Uze),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>Rze),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>Mze),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>wze),e.serviceFactory("setRealTimeUpdatesInterval",()=>xze),e.serviceFactory("setShortUrlCreationSettings",()=>Oze),e.serviceFactory("setShortUrlsListSettings",()=>Sze),e.serviceFactory("setUiSettings",()=>Eze),e.serviceFactory("setVisitsSettings",()=>Tze),e.serviceFactory("setTagsSettings",()=>Cze)};function s1(e){return e==null?"":`${e}`}function Bze(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 VA(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;return!t||t===n?r=>r:r=>(r.includes(t)&&(r=r.replace(new RegExp(t,"g"),n)),`${t}${r}${t}`)}function zze(e={stringFormatter:VA()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Vze(e={stringFormatter:VA()}){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 Hze=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Wze(e){var t,n,r;const i=[];let o;for(;o=Hze.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function C8(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:Wze(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function yY(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function WC(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var k8;(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"})(k8||(k8={}));class Yze{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||VA(),i=Vze({stringFormatter:r}),o={header:r,undefined:s1,boolean:s1,number:Bze(),bigint:s1,string:r,symbol:zze({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),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=>C8(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>C8(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return WC(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(yY,[]),[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 WC(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 Gze extends Yze{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),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(yY,[])}processData(t){return WC(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var In;(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"})(In||(In={}));In.QUOTATION_MARK+"",In.QUOTATION_MARK,In.REVERSE_SOLIDUS+"",In.REVERSE_SOLIDUS,In.SOLIDUS+"",In.SOLIDUS,In.LATIN_SMALL_LETTER_B+"",In.BACKSPACE,In.LATIN_SMALL_LETTER_F+"",In.FORM_FEED,In.LATIN_SMALL_LETTER_N+"",In.NEWLINE,In.LATIN_SMALL_LETTER_R+"",In.CARRIAGE_RETURN,In.LATIN_SMALL_LETTER_T+"",In.TAB;var j8;(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"})(j8||(j8={}));var P8;(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"})(P8||(P8={}));var A8;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(A8||(A8={}));var N8;(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"})(N8||(N8={}));var qze=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,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},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(v){var g=[];for(var w in v)g.push(w);return g};e.exports=d;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(d,a);for(var l=i(s.prototype),u=0;u<l.length;u++){var f=l[u];d.prototype[f]||(d.prototype[f]=s.prototype[f])}function d(v){if(!(this instanceof d))return new d(v);a.call(this,v),s.call(this,v),v&&v.readable===!1&&(this.readable=!1),v&&v.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,v&&v.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(m,this)}function m(v){v.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=v,this._writableState.destroyed=v)}}),d.prototype._destroy=function(v,g){this.push(null),this.end(),r.nextTick(g,v)}},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),o=n(39),a=n(40);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(j,P){if(s()<P)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(j=new Uint8Array(P)).__proto__=u.prototype:(j===null&&(j=new u(P)),j.length=P),j}function u(j,P,B){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(j,P,B);if(typeof j=="number"){if(typeof P=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,j)}return f(this,j,P,B)}function f(j,P,B,J){if(typeof P=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&P instanceof ArrayBuffer?function(K,le,he,Ee){if(le.byteLength,he<0||le.byteLength<he)throw new RangeError("'offset' is out of bounds");if(le.byteLength<he+(Ee||0))throw new RangeError("'length' is out of bounds");return le=he===void 0&&Ee===void 0?new Uint8Array(le):Ee===void 0?new Uint8Array(le,he):new Uint8Array(le,he,Ee),u.TYPED_ARRAY_SUPPORT?(K=le).__proto__=u.prototype:K=m(K,le),K}(j,P,B,J):typeof P=="string"?function(K,le,he){if(typeof he=="string"&&he!==""||(he="utf8"),!u.isEncoding(he))throw new TypeError('"encoding" must be a valid string encoding');var Ee=0|g(le,he),ue=(K=l(K,Ee)).write(le,he);return ue!==Ee&&(K=K.slice(0,ue)),K}(j,P,B):function(K,le){if(u.isBuffer(le)){var he=0|v(le.length);return(K=l(K,he)).length===0||le.copy(K,0,0,he),K}if(le){if(typeof ArrayBuffer<"u"&&le.buffer instanceof ArrayBuffer||"length"in le)return typeof le.length!="number"||function(Ee){return Ee!=Ee}(le.length)?l(K,0):m(K,le);if(le.type==="Buffer"&&a(le.data))return m(K,le.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(j,P)}function d(j){if(typeof j!="number")throw new TypeError('"size" argument must be a number');if(j<0)throw new RangeError('"size" argument must not be negative')}function p(j,P){if(d(P),j=l(j,P<0?0:0|v(P)),!u.TYPED_ARRAY_SUPPORT)for(var B=0;B<P;++B)j[B]=0;return j}function m(j,P){var B=P.length<0?0:0|v(P.length);j=l(j,B);for(var J=0;J<B;J+=1)j[J]=255&P[J];return j}function v(j){if(j>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|j}function g(j,P){if(u.isBuffer(j))return j.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(j)||j instanceof ArrayBuffer))return j.byteLength;typeof j!="string"&&(j=""+j);var B=j.length;if(B===0)return 0;for(var J=!1;;)switch(P){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":case void 0:return ie(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return se(j).length;default:if(J)return ie(j).length;P=(""+P).toLowerCase(),J=!0}}function w(j,P,B){var J=j[P];j[P]=j[B],j[B]=J}function y(j,P,B,J,K){if(j.length===0)return-1;if(typeof B=="string"?(J=B,B=0):B>2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),B=+B,isNaN(B)&&(B=K?0:j.length-1),B<0&&(B=j.length+B),B>=j.length){if(K)return-1;B=j.length-1}else if(B<0){if(!K)return-1;B=0}if(typeof P=="string"&&(P=u.from(P,J)),u.isBuffer(P))return P.length===0?-1:_(j,P,B,J,K);if(typeof P=="number")return P&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(j,P,B):Uint8Array.prototype.lastIndexOf.call(j,P,B):_(j,[P],B,J,K);throw new TypeError("val must be string, number or Buffer")}function _(j,P,B,J,K){var le,he=1,Ee=j.length,ue=P.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(j.length<2||P.length<2)return-1;he=2,Ee/=2,ue/=2,B/=2}function ve(ke,Ae){return he===1?ke[Ae]:ke.readUInt16BE(Ae*he)}if(K){var ge=-1;for(le=B;le<Ee;le++)if(ve(j,le)===ve(P,ge===-1?0:le-ge)){if(ge===-1&&(ge=le),le-ge+1===ue)return ge*he}else ge!==-1&&(le-=le-ge),ge=-1}else for(B+ue>Ee&&(B=Ee-ue),le=B;le>=0;le--){for(var Oe=!0,Ce=0;Ce<ue;Ce++)if(ve(j,le+Ce)!==ve(P,Ce)){Oe=!1;break}if(Oe)return le}return-1}function x(j,P,B,J){B=Number(B)||0;var K=j.length-B;J?(J=Number(J))>K&&(J=K):J=K;var le=P.length;if(le%2!=0)throw new TypeError("Invalid hex string");J>le/2&&(J=le/2);for(var he=0;he<J;++he){var Ee=parseInt(P.substr(2*he,2),16);if(isNaN(Ee))return he;j[B+he]=Ee}return he}function O(j,P,B,J){return fe(ie(P,j.length-B),j,B,J)}function E(j,P,B,J){return fe(function(K){for(var le=[],he=0;he<K.length;++he)le.push(255&K.charCodeAt(he));return le}(P),j,B,J)}function T(j,P,B,J){return E(j,P,B,J)}function k(j,P,B,J){return fe(se(P),j,B,J)}function A(j,P,B,J){return fe(function(K,le){for(var he,Ee,ue,ve=[],ge=0;ge<K.length&&!((le-=2)<0);++ge)Ee=(he=K.charCodeAt(ge))>>8,ue=he%256,ve.push(ue),ve.push(Ee);return ve}(P,j.length-B),j,B,J)}function D(j,P,B){return P===0&&B===j.length?i.fromByteArray(j):i.fromByteArray(j.slice(P,B))}function R(j,P,B){B=Math.min(j.length,B);for(var J=[],K=P;K<B;){var le,he,Ee,ue,ve=j[K],ge=null,Oe=ve>239?4:ve>223?3:ve>191?2:1;if(K+Oe<=B)switch(Oe){case 1:ve<128&&(ge=ve);break;case 2:(192&(le=j[K+1]))==128&&(ue=(31&ve)<<6|63&le)>127&&(ge=ue);break;case 3:le=j[K+1],he=j[K+2],(192&le)==128&&(192&he)==128&&(ue=(15&ve)<<12|(63&le)<<6|63&he)>2047&&(ue<55296||ue>57343)&&(ge=ue);break;case 4:le=j[K+1],he=j[K+2],Ee=j[K+3],(192&le)==128&&(192&he)==128&&(192&Ee)==128&&(ue=(15&ve)<<18|(63&le)<<12|(63&he)<<6|63&Ee)>65535&&ue<1114112&&(ge=ue)}ge===null?(ge=65533,Oe=1):ge>65535&&(ge-=65536,J.push(ge>>>10&1023|55296),ge=56320|1023&ge),J.push(ge),K+=Oe}return function(Ce){var ke=Ce.length;if(ke<=I)return String.fromCharCode.apply(String,Ce);for(var Ae="",ce=0;ce<ke;)Ae+=String.fromCharCode.apply(String,Ce.slice(ce,ce+=I));return Ae}(J)}t.Buffer=u,t.SlowBuffer=function(j){return+j!=j&&(j=0),u.alloc(+j)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var j=new Uint8Array(1);return j.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},j.foo()===42&&typeof j.subarray=="function"&&j.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(j){return j.__proto__=u.prototype,j},u.from=function(j,P,B){return f(null,j,P,B)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(j,P,B){return function(J,K,le,he){return d(K),K<=0?l(J,K):le!==void 0?typeof he=="string"?l(J,K).fill(le,he):l(J,K).fill(le):l(J,K)}(null,j,P,B)},u.allocUnsafe=function(j){return p(null,j)},u.allocUnsafeSlow=function(j){return p(null,j)},u.isBuffer=function(j){return!(j==null||!j._isBuffer)},u.compare=function(j,P){if(!u.isBuffer(j)||!u.isBuffer(P))throw new TypeError("Arguments must be Buffers");if(j===P)return 0;for(var B=j.length,J=P.length,K=0,le=Math.min(B,J);K<le;++K)if(j[K]!==P[K]){B=j[K],J=P[K];break}return B<J?-1:J<B?1:0},u.isEncoding=function(j){switch(String(j).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}},u.concat=function(j,P){if(!a(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return u.alloc(0);var B;if(P===void 0)for(P=0,B=0;B<j.length;++B)P+=j[B].length;var J=u.allocUnsafe(P),K=0;for(B=0;B<j.length;++B){var le=j[B];if(!u.isBuffer(le))throw new TypeError('"list" argument must be an Array of Buffers');le.copy(J,K),K+=le.length}return J},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var j=this.length;if(j%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var P=0;P<j;P+=2)w(this,P,P+1);return this},u.prototype.swap32=function(){var j=this.length;if(j%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var P=0;P<j;P+=4)w(this,P,P+3),w(this,P+1,P+2);return this},u.prototype.swap64=function(){var j=this.length;if(j%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var P=0;P<j;P+=8)w(this,P,P+7),w(this,P+1,P+6),w(this,P+2,P+5),w(this,P+3,P+4);return this},u.prototype.toString=function(){var j=0|this.length;return j===0?"":arguments.length===0?R(this,0,j):(function(P,B,J){var K=!1;if((B===void 0||B<0)&&(B=0),B>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0)<=(B>>>=0))return"";for(P||(P="utf8");;)switch(P){case"hex":return H(this,B,J);case"utf8":case"utf-8":return R(this,B,J);case"ascii":return z(this,B,J);case"latin1":case"binary":return G(this,B,J);case"base64":return D(this,B,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,B,J);default:if(K)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),K=!0}}).apply(this,arguments)},u.prototype.equals=function(j){if(!u.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j||u.compare(this,j)===0},u.prototype.inspect=function(){var j="",P=t.INSPECT_MAX_BYTES;return this.length>0&&(j=this.toString("hex",0,P).match(/.{2}/g).join(" "),this.length>P&&(j+=" ... ")),"<Buffer "+j+">"},u.prototype.compare=function(j,P,B,J,K){if(!u.isBuffer(j))throw new TypeError("Argument must be a Buffer");if(P===void 0&&(P=0),B===void 0&&(B=j?j.length:0),J===void 0&&(J=0),K===void 0&&(K=this.length),P<0||B>j.length||J<0||K>this.length)throw new RangeError("out of range index");if(J>=K&&P>=B)return 0;if(J>=K)return-1;if(P>=B)return 1;if(P>>>=0,B>>>=0,J>>>=0,K>>>=0,this===j)return 0;for(var le=K-J,he=B-P,Ee=Math.min(le,he),ue=this.slice(J,K),ve=j.slice(P,B),ge=0;ge<Ee;++ge)if(ue[ge]!==ve[ge]){le=ue[ge],he=ve[ge];break}return le<he?-1:he<le?1:0},u.prototype.includes=function(j,P,B){return this.indexOf(j,P,B)!==-1},u.prototype.indexOf=function(j,P,B){return y(this,j,P,B,!0)},u.prototype.lastIndexOf=function(j,P,B){return y(this,j,P,B,!1)},u.prototype.write=function(j,P,B,J){if(P===void 0)J="utf8",B=this.length,P=0;else if(B===void 0&&typeof P=="string")J=P,B=this.length,P=0;else{if(!isFinite(P))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");P|=0,isFinite(B)?(B|=0,J===void 0&&(J="utf8")):(J=B,B=void 0)}var K=this.length-P;if((B===void 0||B>K)&&(B=K),j.length>0&&(B<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var le=!1;;)switch(J){case"hex":return x(this,j,P,B);case"utf8":case"utf-8":return O(this,j,P,B);case"ascii":return E(this,j,P,B);case"latin1":case"binary":return T(this,j,P,B);case"base64":return k(this,j,P,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,j,P,B);default:if(le)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),le=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function z(j,P,B){var J="";B=Math.min(j.length,B);for(var K=P;K<B;++K)J+=String.fromCharCode(127&j[K]);return J}function G(j,P,B){var J="";B=Math.min(j.length,B);for(var K=P;K<B;++K)J+=String.fromCharCode(j[K]);return J}function H(j,P,B){var J=j.length;(!P||P<0)&&(P=0),(!B||B<0||B>J)&&(B=J);for(var K="",le=P;le<B;++le)K+=ee(j[le]);return K}function Q(j,P,B){for(var J=j.slice(P,B),K="",le=0;le<J.length;le+=2)K+=String.fromCharCode(J[le]+256*J[le+1]);return K}function Z(j,P,B){if(j%1!=0||j<0)throw new RangeError("offset is not uint");if(j+P>B)throw new RangeError("Trying to access beyond buffer length")}function te(j,P,B,J,K,le){if(!u.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>K||P<le)throw new RangeError('"value" argument is out of bounds');if(B+J>j.length)throw new RangeError("Index out of range")}function X(j,P,B,J){P<0&&(P=65535+P+1);for(var K=0,le=Math.min(j.length-B,2);K<le;++K)j[B+K]=(P&255<<8*(J?K:1-K))>>>8*(J?K:1-K)}function $(j,P,B,J){P<0&&(P=4294967295+P+1);for(var K=0,le=Math.min(j.length-B,4);K<le;++K)j[B+K]=P>>>8*(J?K:3-K)&255}function V(j,P,B,J,K,le){if(B+J>j.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function W(j,P,B,J,K){return K||V(j,0,B,4),o.write(j,P,B,J,23,4),B+4}function re(j,P,B,J,K){return K||V(j,0,B,8),o.write(j,P,B,J,52,8),B+8}u.prototype.slice=function(j,P){var B,J=this.length;if(j=~~j,P=P===void 0?J:~~P,j<0?(j+=J)<0&&(j=0):j>J&&(j=J),P<0?(P+=J)<0&&(P=0):P>J&&(P=J),P<j&&(P=j),u.TYPED_ARRAY_SUPPORT)(B=this.subarray(j,P)).__proto__=u.prototype;else{var K=P-j;B=new u(K,void 0);for(var le=0;le<K;++le)B[le]=this[le+j]}return B},u.prototype.readUIntLE=function(j,P,B){j|=0,P|=0,B||Z(j,P,this.length);for(var J=this[j],K=1,le=0;++le<P&&(K*=256);)J+=this[j+le]*K;return J},u.prototype.readUIntBE=function(j,P,B){j|=0,P|=0,B||Z(j,P,this.length);for(var J=this[j+--P],K=1;P>0&&(K*=256);)J+=this[j+--P]*K;return J},u.prototype.readUInt8=function(j,P){return P||Z(j,1,this.length),this[j]},u.prototype.readUInt16LE=function(j,P){return P||Z(j,2,this.length),this[j]|this[j+1]<<8},u.prototype.readUInt16BE=function(j,P){return P||Z(j,2,this.length),this[j]<<8|this[j+1]},u.prototype.readUInt32LE=function(j,P){return P||Z(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+16777216*this[j+3]},u.prototype.readUInt32BE=function(j,P){return P||Z(j,4,this.length),16777216*this[j]+(this[j+1]<<16|this[j+2]<<8|this[j+3])},u.prototype.readIntLE=function(j,P,B){j|=0,P|=0,B||Z(j,P,this.length);for(var J=this[j],K=1,le=0;++le<P&&(K*=256);)J+=this[j+le]*K;return J>=(K*=128)&&(J-=Math.pow(2,8*P)),J},u.prototype.readIntBE=function(j,P,B){j|=0,P|=0,B||Z(j,P,this.length);for(var J=P,K=1,le=this[j+--J];J>0&&(K*=256);)le+=this[j+--J]*K;return le>=(K*=128)&&(le-=Math.pow(2,8*P)),le},u.prototype.readInt8=function(j,P){return P||Z(j,1,this.length),128&this[j]?-1*(255-this[j]+1):this[j]},u.prototype.readInt16LE=function(j,P){P||Z(j,2,this.length);var B=this[j]|this[j+1]<<8;return 32768&B?4294901760|B:B},u.prototype.readInt16BE=function(j,P){P||Z(j,2,this.length);var B=this[j+1]|this[j]<<8;return 32768&B?4294901760|B:B},u.prototype.readInt32LE=function(j,P){return P||Z(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},u.prototype.readInt32BE=function(j,P){return P||Z(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},u.prototype.readFloatLE=function(j,P){return P||Z(j,4,this.length),o.read(this,j,!0,23,4)},u.prototype.readFloatBE=function(j,P){return P||Z(j,4,this.length),o.read(this,j,!1,23,4)},u.prototype.readDoubleLE=function(j,P){return P||Z(j,8,this.length),o.read(this,j,!0,52,8)},u.prototype.readDoubleBE=function(j,P){return P||Z(j,8,this.length),o.read(this,j,!1,52,8)},u.prototype.writeUIntLE=function(j,P,B,J){j=+j,P|=0,B|=0,J||te(this,j,P,B,Math.pow(2,8*B)-1,0);var K=1,le=0;for(this[P]=255&j;++le<B&&(K*=256);)this[P+le]=j/K&255;return P+B},u.prototype.writeUIntBE=function(j,P,B,J){j=+j,P|=0,B|=0,J||te(this,j,P,B,Math.pow(2,8*B)-1,0);var K=B-1,le=1;for(this[P+K]=255&j;--K>=0&&(le*=256);)this[P+K]=j/le&255;return P+B},u.prototype.writeUInt8=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,1,255,0),u.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),this[P]=255&j,P+1},u.prototype.writeUInt16LE=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[P]=255&j,this[P+1]=j>>>8):X(this,j,P,!0),P+2},u.prototype.writeUInt16BE=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[P]=j>>>8,this[P+1]=255&j):X(this,j,P,!1),P+2},u.prototype.writeUInt32LE=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[P+3]=j>>>24,this[P+2]=j>>>16,this[P+1]=j>>>8,this[P]=255&j):$(this,j,P,!0),P+4},u.prototype.writeUInt32BE=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[P]=j>>>24,this[P+1]=j>>>16,this[P+2]=j>>>8,this[P+3]=255&j):$(this,j,P,!1),P+4},u.prototype.writeIntLE=function(j,P,B,J){if(j=+j,P|=0,!J){var K=Math.pow(2,8*B-1);te(this,j,P,B,K-1,-K)}var le=0,he=1,Ee=0;for(this[P]=255&j;++le<B&&(he*=256);)j<0&&Ee===0&&this[P+le-1]!==0&&(Ee=1),this[P+le]=(j/he>>0)-Ee&255;return P+B},u.prototype.writeIntBE=function(j,P,B,J){if(j=+j,P|=0,!J){var K=Math.pow(2,8*B-1);te(this,j,P,B,K-1,-K)}var le=B-1,he=1,Ee=0;for(this[P+le]=255&j;--le>=0&&(he*=256);)j<0&&Ee===0&&this[P+le+1]!==0&&(Ee=1),this[P+le]=(j/he>>0)-Ee&255;return P+B},u.prototype.writeInt8=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,1,127,-128),u.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),j<0&&(j=255+j+1),this[P]=255&j,P+1},u.prototype.writeInt16LE=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[P]=255&j,this[P+1]=j>>>8):X(this,j,P,!0),P+2},u.prototype.writeInt16BE=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[P]=j>>>8,this[P+1]=255&j):X(this,j,P,!1),P+2},u.prototype.writeInt32LE=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[P]=255&j,this[P+1]=j>>>8,this[P+2]=j>>>16,this[P+3]=j>>>24):$(this,j,P,!0),P+4},u.prototype.writeInt32BE=function(j,P,B){return j=+j,P|=0,B||te(this,j,P,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),u.TYPED_ARRAY_SUPPORT?(this[P]=j>>>24,this[P+1]=j>>>16,this[P+2]=j>>>8,this[P+3]=255&j):$(this,j,P,!1),P+4},u.prototype.writeFloatLE=function(j,P,B){return W(this,j,P,!0,B)},u.prototype.writeFloatBE=function(j,P,B){return W(this,j,P,!1,B)},u.prototype.writeDoubleLE=function(j,P,B){return re(this,j,P,!0,B)},u.prototype.writeDoubleBE=function(j,P,B){return re(this,j,P,!1,B)},u.prototype.copy=function(j,P,B,J){if(B||(B=0),J||J===0||(J=this.length),P>=j.length&&(P=j.length),P||(P=0),J>0&&J<B&&(J=B),J===B||j.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("sourceStart out of bounds");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),j.length-P<J-B&&(J=j.length-P+B);var K,le=J-B;if(this===j&&B<P&&P<J)for(K=le-1;K>=0;--K)j[K+P]=this[K+B];else if(le<1e3||!u.TYPED_ARRAY_SUPPORT)for(K=0;K<le;++K)j[K+P]=this[K+B];else Uint8Array.prototype.set.call(j,this.subarray(B,B+le),P);return le},u.prototype.fill=function(j,P,B,J){if(typeof j=="string"){if(typeof P=="string"?(J=P,P=0,B=this.length):typeof B=="string"&&(J=B,B=this.length),j.length===1){var K=j.charCodeAt(0);K<256&&(j=K)}if(J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!u.isEncoding(J))throw new TypeError("Unknown encoding: "+J)}else typeof j=="number"&&(j&=255);if(P<0||this.length<P||this.length<B)throw new RangeError("Out of range index");if(B<=P)return this;var le;if(P>>>=0,B=B===void 0?this.length:B>>>0,j||(j=0),typeof j=="number")for(le=P;le<B;++le)this[le]=j;else{var he=u.isBuffer(j)?j:ie(new u(j,J).toString()),Ee=he.length;for(le=0;le<B-P;++le)this[le+P]=he[le%Ee]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function ee(j){return j<16?"0"+j.toString(16):j.toString(16)}function ie(j,P){var B;P=P||1/0;for(var J=j.length,K=null,le=[],he=0;he<J;++he){if((B=j.charCodeAt(he))>55295&&B<57344){if(!K){if(B>56319){(P-=3)>-1&&le.push(239,191,189);continue}if(he+1===J){(P-=3)>-1&&le.push(239,191,189);continue}K=B;continue}if(B<56320){(P-=3)>-1&&le.push(239,191,189),K=B;continue}B=65536+(K-55296<<10|B-56320)}else K&&(P-=3)>-1&&le.push(239,191,189);if(K=null,B<128){if((P-=1)<0)break;le.push(B)}else if(B<2048){if((P-=2)<0)break;le.push(B>>6|192,63&B|128)}else if(B<65536){if((P-=3)<0)break;le.push(B>>12|224,B>>6&63|128,63&B|128)}else{if(!(B<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;le.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}}return le}function se(j){return i.toByteArray(function(P){if((P=function(B){return B.trim?B.trim():B.replace(/^\s+|\s+$/g,"")}(P).replace(q,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(j))}function fe(j,P,B,J){for(var K=0;K<J&&!(K+B>=P.length||K>=j.length);++K)P[K+B]=j[K];return K}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(w){if(n===setTimeout)return setTimeout(w,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var l,u=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?u=l.concat(u):d=-1,u.length&&m())}function m(){if(!f){var w=s(p);f=!0;for(var y=u.length;y;){for(l=u,u=[];++d<y;)l&&l[d].run();d=-1,y=u.length}l=null,f=!1,function(_){if(r===clearTimeout)return clearTimeout(_);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(_);try{r(_)}catch{try{return r.call(null,_)}catch{return r.call(this,_)}}}(w)}}function v(w,y){this.fun=w,this.array=y}function g(){}i.nextTick=function(w){var y=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)y[_-1]=arguments[_];u.push(new v(w,y)),u.length!==1||f||s(m)},v.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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===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,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,u,f=arguments.length;switch(f){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,a)});case 4:return r.nextTick(function(){i.call(null,o,a,s)});default:for(l=new Array(f-1),u=0;u<l.length;)l[u++]=arguments[u];return r.nextTick(function(){i.apply(null,l)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(s,l){for(var u in s)l[u]=s[u]}function a(s,l,u){return i(s,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,l,u){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,l,u)},a.alloc=function(s,l,u){if(typeof s!="number")throw new TypeError("Argument must be a number");var f=i(s);return l!==void 0?typeof u=="string"?f.fill(l,u):f.fill(l):f.fill(0),f},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}},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,o){for(var a=i.length;a--;)if(r(i[a][0],o))return a;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},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(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===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(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,l,u,f,d,p;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var m=new Error('Uncaught, unspecified "error" event. ('+s+")");throw m.context=s,m}if(o(l=this._events[a]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),u=(p=l.slice()).length,d=0;d<u;d++)p[d].apply(this,f);return!0},n.prototype.addListener=function(a,s){var l;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,r(s.listener)?s.listener:s),this._events[a]?i(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,i(this._events[a])&&!this._events[a].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[a].length>l&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var l=!1;function u(){this.removeListener(a,u),l||(l=!0,s.apply(this,arguments))}return u.listener=s,this.on(a,u),this},n.prototype.removeListener=function(a,s){var l,u,f,d;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(l=this._events[a]).length,u=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(d=f;d-- >0;)if(l[d]===s||l[d].listener&&l[d].listener===s){u=d;break}if(u<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(u,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},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,o){var a=n(6);function s(R){var I=this;this.next=null,this.entry=null,this.finish=function(){(function(z,G,H){var Q=z.entry;for(z.entry=null;Q;){var Z=Q.callback;G.pendingcb--,Z(void 0),Q=Q.next}G.corkedRequestsFree?G.corkedRequestsFree.next=z:G.corkedRequestsFree=z})(I,R)}}e.exports=x;var l,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;x.WritableState=_;var f=n(5);f.inherits=n(2);var d,p={deprecate:n(44)},m=n(24),v=n(7).Buffer,g=o.Uint8Array||function(){},w=n(25);function y(){}function _(R,I){l=l||n(1),R=R||{};var z=I instanceof l;this.objectMode=!!R.objectMode,z&&(this.objectMode=this.objectMode||!!R.writableObjectMode);var G=R.highWaterMark,H=R.writableHighWaterMark,Q=this.objectMode?16:16384;this.highWaterMark=G||G===0?G:z&&(H||H===0)?H:Q,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 Z=R.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){(function(X,$){var V=X._writableState,W=V.sync,re=V.writecb;if(function(ee){ee.writing=!1,ee.writecb=null,ee.length-=ee.writelen,ee.writelen=0}(V),$)(function(ee,ie,se,fe,j){--ie.pendingcb,se?(a.nextTick(j,fe),a.nextTick(D,ee,ie),ee._writableState.errorEmitted=!0,ee.emit("error",fe)):(j(fe),ee._writableState.errorEmitted=!0,ee.emit("error",fe),D(ee,ie))})(X,V,W,$,re);else{var q=k(V);q||V.corked||V.bufferProcessing||!V.bufferedRequest||T(X,V),W?u(E,X,V,q,re):E(X,V,q,re)}})(I,te)},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 s(this)}function x(R){if(l=l||n(1),!(d.call(x,this)||this instanceof l))return new x(R);this._writableState=new _(R,this),this.writable=!0,R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final)),m.call(this)}function O(R,I,z,G,H,Q,Z){I.writelen=G,I.writecb=Z,I.writing=!0,I.sync=!0,z?R._writev(H,I.onwrite):R._write(H,Q,I.onwrite),I.sync=!1}function E(R,I,z,G){z||function(H,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,H.emit("drain"))}(R,I),I.pendingcb--,G(),D(R,I)}function T(R,I){I.bufferProcessing=!0;var z=I.bufferedRequest;if(R._writev&&z&&z.next){var G=I.bufferedRequestCount,H=new Array(G),Q=I.corkedRequestsFree;Q.entry=z;for(var Z=0,te=!0;z;)H[Z]=z,z.isBuf||(te=!1),z=z.next,Z+=1;H.allBuffers=te,O(R,I,!0,I.length,H,"",Q.finish),I.pendingcb++,I.lastBufferedRequest=null,Q.next?(I.corkedRequestsFree=Q.next,Q.next=null):I.corkedRequestsFree=new s(I),I.bufferedRequestCount=0}else{for(;z;){var X=z.chunk,$=z.encoding,V=z.callback;if(O(R,I,!1,I.objectMode?1:X.length,X,$,V),z=z.next,I.bufferedRequestCount--,I.writing)break}z===null&&(I.lastBufferedRequest=null)}I.bufferedRequest=z,I.bufferProcessing=!1}function k(R){return R.ending&&R.length===0&&R.bufferedRequest===null&&!R.finished&&!R.writing}function A(R,I){R._final(function(z){I.pendingcb--,z&&R.emit("error",z),I.prefinished=!0,R.emit("prefinish"),D(R,I)})}function D(R,I){var z=k(I);return z&&(function(G,H){H.prefinished||H.finalCalled||(typeof G._final=="function"?(H.pendingcb++,H.finalCalled=!0,a.nextTick(A,G,H)):(H.prefinished=!0,G.emit("prefinish")))}(R,I),I.pendingcb===0&&(I.finished=!0,R.emit("finish"))),z}f.inherits(x,m),_.prototype.getBuffer=function(){for(var R=this.bufferedRequest,I=[];R;)I.push(R),R=R.next;return I},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.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"?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(R){return!!d.call(this,R)||this===x&&R&&R._writableState instanceof _}})):d=function(R){return R instanceof this},x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},x.prototype.write=function(R,I,z){var G=this._writableState,H=!1,Q=!G.objectMode&&function(Z){return v.isBuffer(Z)||Z instanceof g}(R);return Q&&!v.isBuffer(R)&&(R=function(Z){return v.from(Z)}(R)),typeof I=="function"&&(z=I,I=null),Q?I="buffer":I||(I=G.defaultEncoding),typeof z!="function"&&(z=y),G.ended?function(Z,te){var X=new Error("write after end");Z.emit("error",X),a.nextTick(te,X)}(this,z):(Q||function(Z,te,X,$){var V=!0,W=!1;return X===null?W=new TypeError("May not write null values to stream"):typeof X=="string"||X===void 0||te.objectMode||(W=new TypeError("Invalid non-string/buffer chunk")),W&&(Z.emit("error",W),a.nextTick($,W),V=!1),V}(this,G,R,z))&&(G.pendingcb++,H=function(Z,te,X,$,V,W){if(!X){var re=function(se,fe,j){return se.objectMode||se.decodeStrings===!1||typeof fe!="string"||(fe=v.from(fe,j)),fe}(te,$,V);$!==re&&(X=!0,V="buffer",$=re)}var q=te.objectMode?1:$.length;te.length+=q;var ee=te.length<te.highWaterMark;if(ee||(te.needDrain=!0),te.writing||te.corked){var ie=te.lastBufferedRequest;te.lastBufferedRequest={chunk:$,encoding:V,isBuf:X,callback:W,next:null},ie?ie.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else O(Z,te,!1,q,$,V,W);return ee}(this,G,Q,R,I,z)),H},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var R=this._writableState;R.corked&&(R.corked--,R.writing||R.corked||R.finished||R.bufferProcessing||!R.bufferedRequest||T(this,R))},x.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=R.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((R+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+R);return this._writableState.defaultEncoding=R,this},Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(R,I,z){z(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(R,I,z){var G=this._writableState;typeof R=="function"?(z=R,R=null,I=null):typeof I=="function"&&(z=I,I=null),R!=null&&this.write(R,I),G.corked&&(G.corked=1,this.uncork()),G.ending||G.finished||function(H,Q,Z){Q.ending=!0,D(H,Q),Z&&(Q.finished?a.nextTick(Z):H.once("finish",Z)),Q.ended=!0,H.writable=!1}(this,G,z)},Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),x.prototype.destroy=w.destroy,x.prototype._undestroy=w.undestroy,x.prototype._destroy=function(R,I){this.end(),I(R)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,l,u){function f(m,v){if(!l[m]){if(!s[m]){var g=typeof _dereq_=="function"&&_dereq_;if(!v&&g)return g(m,!0);if(d)return d(m,!0);var w=new Error("Cannot find module '"+m+"'");throw w.code="MODULE_NOT_FOUND",w}var y=l[m]={exports:{}};s[m][0].call(y.exports,function(_){return f(s[m][1][_]||_)},y,y.exports,a,s,l,u)}return l[m].exports}for(var d=typeof _dereq_=="function"&&_dereq_,p=0;p<u.length;p++)f(u[p]);return f}({1:[function(a,s,l){s.exports=function(u){var f=u._SomePromiseArray;function d(p){var m=new f(p),v=m.promise();return m.setHowMany(1),m.setUnwrap(),m.init(),v}u.any=function(p){return d(p)},u.prototype.any=function(){return d(this)}}},{}],2:[function(a,s,l){var u;try{throw new Error}catch(y){u=y}var f=a("./schedule"),d=a("./queue"),p=a("./util");function m(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new d(16),this._normalQueue=new d(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var y=this;this.drainQueues=function(){y._drainQueues()},this._schedule=f}function v(y,_,x){this._lateQueue.push(y,_,x),this._queueTick()}function g(y,_,x){this._normalQueue.push(y,_,x),this._queueTick()}function w(y){this._normalQueue._pushOne(y),this._queueTick()}m.prototype.setScheduler=function(y){var _=this._schedule;return this._schedule=y,this._customScheduler=!0,_},m.prototype.hasCustomScheduler=function(){return this._customScheduler},m.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},m.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},m.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},m.prototype.fatalError=function(y,_){_?(r.stderr.write("Fatal "+(y instanceof Error?y.stack:y)+`
`),r.exit(2)):this.throwLater(y)},m.prototype.throwLater=function(y,_){if(arguments.length===1&&(_=y,y=function(){throw _}),typeof setTimeout<"u")setTimeout(function(){y(_)},0);else try{this._schedule(function(){y(_)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}},p.hasDevTools?(m.prototype.invokeLater=function(y,_,x){this._trampolineEnabled?v.call(this,y,_,x):this._schedule(function(){setTimeout(function(){y.call(_,x)},100)})},m.prototype.invoke=function(y,_,x){this._trampolineEnabled?g.call(this,y,_,x):this._schedule(function(){y.call(_,x)})},m.prototype.settlePromises=function(y){this._trampolineEnabled?w.call(this,y):this._schedule(function(){y._settlePromises()})}):(m.prototype.invokeLater=v,m.prototype.invoke=g,m.prototype.settlePromises=w),m.prototype._drainQueue=function(y){for(;y.length()>0;){var _=y.shift();if(typeof _=="function"){var x=y.shift(),O=y.shift();_.call(x,O)}else _._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},s.exports=m,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(u,f,d,p){var m=!1,v=function(_,x){this._reject(x)},g=function(_,x){x.promiseRejectionQueued=!0,x.bindingPromise._then(v,v,null,this,_)},w=function(_,x){!(50397184&this._bitField)&&this._resolveCallback(x.target)},y=function(_,x){x.promiseRejectionQueued||this._reject(_)};u.prototype.bind=function(_){m||(m=!0,u.prototype._propagateFrom=p.propagateFromFunction(),u.prototype._boundValue=p.boundValueFunction());var x=d(_),O=new u(f);O._propagateFrom(this,1);var E=this._target();if(O._setBoundTo(x),x instanceof u){var T={promiseRejectionQueued:!1,promise:O,target:E,bindingPromise:x};E._then(f,g,void 0,O,T),x._then(w,y,void 0,O,T),O._setOnCancel(x)}else O._resolveCallback(E);return O},u.prototype._setBoundTo=function(_){_!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=_):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(_,x){return u.resolve(x).bind(_)}}},{}],4:[function(a,s,l){var u;typeof Promise<"u"&&(u=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=u)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,l){var u=Object.create;if(u){var f=u(null),d=u(null);f[" size"]=d[" size"]=0}s.exports=function(p){var m=a("./util"),v=m.canEvaluate;function g(_){return function(x,O){var E;if(x!=null&&(E=x[O]),typeof E!="function"){var T="Object "+m.classString(x)+" has no method '"+m.toString(O)+"'";throw new p.TypeError(T)}return E}(_,this.pop()).apply(_,this)}function w(_){return _[this]}function y(_){var x=+this;return x<0&&(x=Math.max(0,x+_.length)),_[x]}m.isIdentifier,p.prototype.call=function(_){var x=[].slice.call(arguments,1);return x.push(_),this._then(g,void 0,void 0,x,void 0)},p.prototype.get=function(_){var x;if(typeof _=="number")x=y;else if(v){var O=(void 0)(_);x=O!==null?O:w}else x=w;return this._then(x,void 0,void 0,_,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(u,f,d,p){var m=a("./util"),v=m.tryCatch,g=m.errorObj,w=u._async;u.prototype.break=u.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var y=this,_=y;y._isCancellable();){if(!y._cancelBy(_)){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}var x=y._cancellationParent;if(x==null||!x._isCancellable()){y._isFollowing()?y._followee().cancel():y._cancelBranched();break}y._isFollowing()&&y._followee().cancel(),y._setWillBeCancelled(),_=y,y=x}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(y){return y===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},u.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},u.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),w.invoke(this._cancelPromises,this,void 0))},u.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},u.prototype._unsetOnCancel=function(){this._onCancelField=void 0},u.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},u.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},u.prototype._doInvokeOnCancel=function(y,_){if(m.isArray(y))for(var x=0;x<y.length;++x)this._doInvokeOnCancel(y[x],_);else if(y!==void 0)if(typeof y=="function"){if(!_){var O=v(y).call(this._boundValue());O===g&&(this._attachExtraTrace(O.e),w.throwLater(O.e))}}else y._resultCancelled(this)},u.prototype._invokeOnCancel=function(){var y=this._onCancel();this._unsetOnCancel(),w.invoke(this._doInvokeOnCancel,this,y)},u.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},u.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,l){s.exports=function(u){var f=a("./util"),d=a("./es5").keys,p=f.tryCatch,m=f.errorObj;return function(v,g,w){return function(y){var _=w._boundValue();e:for(var x=0;x<v.length;++x){var O=v[x];if(O===Error||O!=null&&O.prototype instanceof Error){if(y instanceof O)return p(g).call(_,y)}else if(typeof O=="function"){var E=p(O).call(_,y);if(E===m)return E;if(E)return p(g).call(_,y)}else if(f.isObject(y)){for(var T=d(O),k=0;k<T.length;++k){var A=T[k];if(O[A]!=y[A])continue e}return p(g).call(_,y)}}return u}}}},{"./es5":13,"./util":36}],8:[function(a,s,l){s.exports=function(u){var f=!1,d=[];function p(){this._trace=new p.CapturedTrace(m())}function m(){var v=d.length-1;if(v>=0)return d[v]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,d.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var v=d.pop(),g=v._promiseCreated;return v._promiseCreated=null,g}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var v=u.prototype._pushContext,g=u.prototype._popContext,w=u._peekContext,y=u.prototype._peekContext,_=u.prototype._promiseCreated;p.deactivateLongStackTraces=function(){u.prototype._pushContext=v,u.prototype._popContext=g,u._peekContext=w,u.prototype._peekContext=y,u.prototype._promiseCreated=_,f=!1},f=!0,u.prototype._pushContext=p.prototype._pushContext,u.prototype._popContext=p.prototype._popContext,u._peekContext=u.prototype._peekContext=m,u.prototype._promiseCreated=function(){var x=this._peekContext();x&&x._promiseCreated==null&&(x._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(u,f){var d,p,m,v=u._getDomain,g=u._async,w=a("./errors").Warning,y=a("./util"),_=y.canAttachTrace,x=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,O=/\((?:timers\.js):\d+:\d+\)/,E=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,T=null,k=null,A=!1,D=y.env("BLUEBIRD_DEBUG")!=0,R=!(y.env("BLUEBIRD_WARNINGS")==0||!D&&!y.env("BLUEBIRD_WARNINGS")),I=!(y.env("BLUEBIRD_LONG_STACK_TRACES")==0||!D&&!y.env("BLUEBIRD_LONG_STACK_TRACES")),z=y.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(R||!!y.env("BLUEBIRD_W_FORGOTTEN_RETURN"));u.prototype.suppressUnhandledRejections=function(){var ce=this._target();ce._bitField=-1048577&ce._bitField|524288},u.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ce=this;setTimeout(function(){ce._notifyUnhandledRejection()},1)}},u.prototype._notifyUnhandledRejectionIsHandled=function(){he("rejectionHandled",d,void 0,this)},u.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},u.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},u.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ce=this._settledValue();this._setUnhandledRejectionIsNotified(),he("unhandledRejection",p,ce,this)}},u.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},u.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},u.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},u.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},u.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},u.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},u.prototype._warn=function(ce,de,_e){return B(ce,de,_e||this)},u.onPossiblyUnhandledRejection=function(ce){var de=v();p=typeof ce=="function"?de===null?ce:y.domainBind(de,ce):void 0},u.onUnhandledRejectionHandled=function(ce){var de=v();d=typeof ce=="function"?de===null?ce:y.domainBind(de,ce):void 0};var G=function(){};u.longStackTraces=function(){if(g.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!Ae.longStackTraces&&ue()){var ce=u.prototype._captureStackTrace,de=u.prototype._attachExtraTrace;Ae.longStackTraces=!0,G=function(){if(g.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);u.prototype._captureStackTrace=ce,u.prototype._attachExtraTrace=de,f.deactivateLongStackTraces(),g.enableTrampoline(),Ae.longStackTraces=!1},u.prototype._captureStackTrace=j,u.prototype._attachExtraTrace=P,f.activateLongStackTraces(),g.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return Ae.longStackTraces&&ue()};var H=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return y.global.dispatchEvent(ce),function(de,_e){var be=new CustomEvent(de.toLowerCase(),{detail:_e,cancelable:!0});return!y.global.dispatchEvent(be)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),y.global.dispatchEvent(ce),function(de,_e){var be=new Event(de.toLowerCase(),{cancelable:!0});return be.detail=_e,!y.global.dispatchEvent(be)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),y.global.dispatchEvent(ce),function(de,_e){var be=document.createEvent("CustomEvent");return be.initCustomEvent(de.toLowerCase(),!1,!0,_e),!y.global.dispatchEvent(be)})}catch{}return function(){return!1}}(),Q=y.isNode?function(){return r.emit.apply(r,arguments)}:y.global?function(ce){var de="on"+ce.toLowerCase(),_e=y.global[de];return!!_e&&(_e.apply(y.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Z(ce,de){return{promise:de}}var te={promiseCreated:Z,promiseFulfilled:Z,promiseRejected:Z,promiseResolved:Z,promiseCancelled:Z,promiseChained:function(ce,de,_e){return{promise:de,child:_e}},warning:function(ce,de){return{warning:de}},unhandledRejection:function(ce,de,_e){return{reason:de,promise:_e}},rejectionHandled:Z},X=function(ce){var de=!1;try{de=Q.apply(null,arguments)}catch(be){g.throwLater(be),de=!0}var _e=!1;try{_e=H(ce,te[ce].apply(null,arguments))}catch(be){g.throwLater(be),_e=!0}return _e||de};function $(){return!1}function V(ce,de,_e){var be=this;try{ce(de,_e,function(Se){if(typeof Se!="function")throw new TypeError("onCancel must be a function, got: "+y.toString(Se));be._attachCancellationCallback(Se)})}catch(Se){return Se}}function W(ce){if(!this._isCancellable())return this;var de=this._onCancel();de!==void 0?y.isArray(de)?de.push(ce):this._setOnCancel([de,ce]):this._setOnCancel(ce)}function re(){return this._onCancelField}function q(ce){this._onCancelField=ce}function ee(){this._cancellationParent=void 0,this._onCancelField=void 0}function ie(ce,de){if(1&de){this._cancellationParent=ce;var _e=ce._branchesRemainingToCancel;_e===void 0&&(_e=0),ce._branchesRemainingToCancel=_e+1}2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)}u.config=function(ce){if("longStackTraces"in(ce=Object(ce))&&(ce.longStackTraces?u.longStackTraces():!ce.longStackTraces&&u.hasLongStackTraces()&&G()),"warnings"in ce){var de=ce.warnings;Ae.warnings=!!de,z=Ae.warnings,y.isObject(de)&&"wForgottenReturn"in de&&(z=!!de.wForgottenReturn)}if("cancellation"in ce&&ce.cancellation&&!Ae.cancellation){if(g.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=ee,u.prototype._propagateFrom=ie,u.prototype._onCancel=re,u.prototype._setOnCancel=q,u.prototype._attachCancellationCallback=W,u.prototype._execute=V,se=ie,Ae.cancellation=!0}return"monitoring"in ce&&(ce.monitoring&&!Ae.monitoring?(Ae.monitoring=!0,u.prototype._fireEvent=X):!ce.monitoring&&Ae.monitoring&&(Ae.monitoring=!1,u.prototype._fireEvent=$)),u},u.prototype._fireEvent=$,u.prototype._execute=function(ce,de,_e){try{ce(de,_e)}catch(be){return be}},u.prototype._onCancel=function(){},u.prototype._setOnCancel=function(ce){},u.prototype._attachCancellationCallback=function(ce){},u.prototype._captureStackTrace=function(){},u.prototype._attachExtraTrace=function(){},u.prototype._clearCancellationData=function(){},u.prototype._propagateFrom=function(ce,de){};var se=function(ce,de){2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)};function fe(){var ce=this._boundTo;return ce!==void 0&&ce instanceof u?ce.isFulfilled()?ce.value():void 0:ce}function j(){this._trace=new Ce(this._peekContext())}function P(ce,de){if(_(ce)){var _e=this._trace;if(_e!==void 0&&de&&(_e=_e._parent),_e!==void 0)_e.attachExtraTrace(ce);else if(!ce.__stackCleaned__){var be=K(ce);y.notEnumerableProp(ce,"stack",be.message+`
`+be.stack.join(`
`)),y.notEnumerableProp(ce,"__stackCleaned__",!0)}}}function B(ce,de,_e){if(Ae.warnings){var be,Se=new w(ce);if(de)_e._attachExtraTrace(Se);else if(Ae.longStackTraces&&(be=u._peekContext()))be.attachExtraTrace(Se);else{var Me=K(Se);Se.stack=Me.message+`
`+Me.stack.join(`
`)}X("warning",Se)||le(Se,"",!0)}}function J(ce){for(var de=[],_e=0;_e<ce.length;++_e){var be=ce[_e],Se=be===" (No stack trace)"||T.test(be),Me=Se&&ve(be);Se&&!Me&&(A&&be.charAt(0)!==" "&&(be=" "+be),de.push(be))}return de}function K(ce){var de=ce.stack,_e=ce.toString();return de=typeof de=="string"&&de.length>0?function(be){for(var Se=be.stack.replace(/\s+$/g,"").split(`
`),Me=0;Me<Se.length;++Me){var De=Se[Me];if(De===" (No stack trace)"||T.test(De))break}return Me>0&&be.name!="SyntaxError"&&(Se=Se.slice(Me)),Se}(ce):[" (No stack trace)"],{message:_e,stack:ce.name=="SyntaxError"?de:J(de)}}function le(ce,de,_e){if(typeof console<"u"){var be;if(y.isObject(ce)){var Se=ce.stack;be=de+k(Se,ce)}else be=de+String(ce);typeof m=="function"?m(be,_e):typeof console.log!="function"&&typeof console.log!="object"||console.log(be)}}function he(ce,de,_e,be){var Se=!1;try{typeof de=="function"&&(Se=!0,ce==="rejectionHandled"?de(be):de(_e,be))}catch(Me){g.throwLater(Me)}ce==="unhandledRejection"?X(ce,_e,be)||Se||le(_e,"Unhandled rejection "):X(ce,be)}function Ee(ce){var de;if(typeof ce=="function")de="[function "+(ce.name||"anonymous")+"]";else{if(de=ce&&typeof ce.toString=="function"?ce.toString():y.toString(ce),/\[object [a-zA-Z0-9$_]+\]/.test(de))try{de=JSON.stringify(ce)}catch{}de.length===0&&(de="(empty array)")}return"(<"+function(_e){return _e.length<41?_e:_e.substr(0,38)+"..."}(de)+">, no stack trace)"}function ue(){return typeof ke=="function"}var ve=function(){return!1},ge=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Oe(ce){var de=ce.match(ge);if(de)return{fileName:de[1],line:parseInt(de[2],10)}}function Ce(ce){this._parent=ce,this._promisesCreated=0;var de=this._length=1+(ce===void 0?0:ce._length);ke(this,Ce),de>32&&this.uncycle()}y.inherits(Ce,Error),f.CapturedTrace=Ce,Ce.prototype.uncycle=function(){var ce=this._length;if(!(ce<2)){for(var de=[],_e={},be=0,Se=this;Se!==void 0;++be)de.push(Se),Se=Se._parent;for(be=(ce=this._length=be)-1;be>=0;--be){var Me=de[be].stack;_e[Me]===void 0&&(_e[Me]=be)}for(be=0;be<ce;++be){var De=_e[de[be].stack];if(De!==void 0&&De!==be){De>0&&(de[De-1]._parent=void 0,de[De-1]._length=1),de[be]._parent=void 0,de[be]._length=1;var at=be>0?de[be-1]:this;De<ce-1?(at._parent=de[De+1],at._parent.uncycle(),at._length=at._parent._length+1):(at._parent=void 0,at._length=1);for(var ut=at._length+1,et=be-2;et>=0;--et)de[et]._length=ut,ut++;return}}}},Ce.prototype.attachExtraTrace=function(ce){if(!ce.__stackCleaned__){this.uncycle();for(var de=K(ce),_e=de.message,be=[de.stack],Se=this;Se!==void 0;)be.push(J(Se.stack.split(`
`))),Se=Se._parent;(function(Me){for(var De=Me[0],at=1;at<Me.length;++at){for(var ut=Me[at],et=De.length-1,ln=De[et],Xt=-1,Ln=ut.length-1;Ln>=0;--Ln)if(ut[Ln]===ln){Xt=Ln;break}for(Ln=Xt;Ln>=0;--Ln){var wr=ut[Ln];if(De[et]!==wr)break;De.pop(),et--}De=ut}})(be),function(Me){for(var De=0;De<Me.length;++De)(Me[De].length===0||De+1<Me.length&&Me[De][0]===Me[De+1][0])&&(Me.splice(De,1),De--)}(be),y.notEnumerableProp(ce,"stack",function(Me,De){for(var at=0;at<De.length-1;++at)De[at].push("From previous event:"),De[at]=De[at].join(`
`);return at<De.length&&(De[at]=De[at].join(`
`)),Me+`
`+De.join(`
`)}(_e,be)),y.notEnumerableProp(ce,"__stackCleaned__",!0)}};var ke=function(){var ce=/^\s*at\s*/,de=function(Me,De){return typeof Me=="string"?Me:De.name!==void 0&&De.message!==void 0?De.toString():Ee(De)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,T=ce,k=de;var _e=Error.captureStackTrace;return ve=function(Me){return x.test(Me)},function(Me,De){Error.stackTraceLimit+=6,_e(Me,De),Error.stackTraceLimit-=6}}var be,Se=new Error;if(typeof Se.stack=="string"&&Se.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return T=/@/,k=de,A=!0,function(Me){Me.stack=new Error().stack};try{throw new Error}catch(Me){be="stack"in Me}return"stack"in Se||!be||typeof Error.stackTraceLimit!="number"?(k=function(Me,De){return typeof Me=="string"?Me:typeof De!="object"&&typeof De!="function"||De.name===void 0||De.message===void 0?Ee(De):De.toString()},null):(T=ce,k=de,function(Me){Error.stackTraceLimit+=6;try{throw new Error}catch(De){Me.stack=De.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ce){console.warn(ce)},y.isNode&&r.stderr.isTTY?m=function(ce,de){var _e=de?"\x1B[33m":"\x1B[31m";console.warn(_e+ce+`\x1B[0m
`)}:y.isNode||typeof new Error().stack!="string"||(m=function(ce,de){console.warn("%c"+ce,de?"color: darkorange":"color: red")}));var Ae={warnings:R,longStackTraces:!1,cancellation:!1,monitoring:!1};return I&&u.longStackTraces(),{longStackTraces:function(){return Ae.longStackTraces},warnings:function(){return Ae.warnings},cancellation:function(){return Ae.cancellation},monitoring:function(){return Ae.monitoring},propagateFromFunction:function(){return se},boundValueFunction:function(){return fe},checkForgottenReturns:function(ce,de,_e,be,Se){if(ce===void 0&&de!==null&&z){if(Se!==void 0&&Se._returnedNonUndefined()||!(65535&be._bitField))return;_e&&(_e+=" ");var Me="",De="";if(de._trace){for(var at=de._trace.stack.split(`
`),ut=J(at),et=ut.length-1;et>=0;--et){var ln=ut[et];if(!O.test(ln)){var Xt=ln.match(E);Xt&&(Me="at "+Xt[1]+":"+Xt[2]+":"+Xt[3]+" ");break}}if(ut.length>0){var Ln=ut[0];for(et=0;et<at.length;++et)if(at[et]===Ln){et>0&&(De=`
`+at[et-1]);break}}}var wr="a promise was created in a "+_e+"handler "+Me+"but was not returned from it, see http://goo.gl/rRqMUw"+De;be._warn(wr,!0,de)}},setBounds:function(ce,de){if(ue()){for(var _e,be,Se=ce.stack.split(`
`),Me=de.stack.split(`
`),De=-1,at=-1,ut=0;ut<Se.length;++ut)if(et=Oe(Se[ut])){_e=et.fileName,De=et.line;break}for(ut=0;ut<Me.length;++ut){var et;if(et=Oe(Me[ut])){be=et.fileName,at=et.line;break}}De<0||at<0||!_e||!be||_e!==be||De>=at||(ve=function(ln){if(x.test(ln))return!0;var Xt=Oe(ln);return!!(Xt&&Xt.fileName===_e&&De<=Xt.line&&Xt.line<=at)})}},warn:B,deprecated:function(ce,de){var _e=ce+" is deprecated and will be removed in a future version.";return de&&(_e+=" Use "+de+" instead."),B(_e)},CapturedTrace:Ce,fireDomEvent:H,fireGlobalEvent:Q}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(u){function f(){return this.value}function d(){throw this.reason}u.prototype.return=u.prototype.thenReturn=function(p){return p instanceof u&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},u.prototype.throw=u.prototype.thenThrow=function(p){return this._then(d,void 0,void 0,{reason:p},void 0)},u.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,d,void 0,{reason:p},void 0);var m=arguments[1];return this.caught(p,function(){throw m})},u.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof u&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var m=arguments[1];return m instanceof u&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(a,s,l){s.exports=function(u,f){var d=u.reduce,p=u.all;function m(){return p(this)}u.prototype.each=function(v){return d(this,v,f,0)._then(m,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(v){return d(this,v,f,f)},u.each=function(v,g){return d(v,g,f,0)._then(m,void 0,void 0,v,void 0)},u.mapSeries=function(v,g){return d(v,g,f,f)}}},{}],12:[function(a,s,l){var u,f,d=a("./es5"),p=d.freeze,m=a("./util"),v=m.inherits,g=m.notEnumerableProp;function w(R,I){function z(G){if(!(this instanceof z))return new z(G);g(this,"message",typeof G=="string"?G:I),g(this,"name",R),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(z,Error),z}var y=w("Warning","warning"),_=w("CancellationError","cancellation error"),x=w("TimeoutError","timeout error"),O=w("AggregateError","aggregate error");try{u=TypeError,f=RangeError}catch{u=w("TypeError","type error"),f=w("RangeError","range error")}for(var E="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),T=0;T<E.length;++T)typeof Array.prototype[E[T]]=="function"&&(O.prototype[E[T]]=Array.prototype[E[T]]);d.defineProperty(O.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),O.prototype.isOperational=!0;var k=0;function A(R){if(!(this instanceof A))return new A(R);g(this,"name","OperationalError"),g(this,"message",R),this.cause=R,this.isOperational=!0,R instanceof Error?(g(this,"message",R.message),g(this,"stack",R.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}O.prototype.toString=function(){var R=Array(4*k+1).join(" "),I=`
`+R+`AggregateError of:
`;k++,R=Array(4*k+1).join(" ");for(var z=0;z<this.length;++z){for(var G=this[z]===this?"[Circular AggregateError]":this[z]+"",H=G.split(`
`),Q=0;Q<H.length;++Q)H[Q]=R+H[Q];I+=(G=H.join(`
`))+`
`}return k--,I},v(A,Error);var D=Error.__BluebirdErrorTypes__;D||(D=p({CancellationError:_,TimeoutError:x,OperationalError:A,RejectionError:A,AggregateError:O}),d.defineProperty(Error,"__BluebirdErrorTypes__",{value:D,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:u,RangeError:f,CancellationError:D.CancellationError,OperationalError:D.OperationalError,TimeoutError:D.TimeoutError,AggregateError:D.AggregateError,Warning:y}},{"./es5":13,"./util":36}],13:[function(a,s,l){var u=function(){return this===void 0}();if(u)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:u,propertyIsWritable:function(v,g){var w=Object.getOwnPropertyDescriptor(v,g);return!(w&&!w.writable&&!w.set)}};else{var f={}.hasOwnProperty,d={}.toString,p={}.constructor.prototype,m=function(v){var g=[];for(var w in v)f.call(v,w)&&g.push(w);return g};s.exports={isArray:function(v){try{return d.call(v)==="[object Array]"}catch{return!1}},keys:m,names:m,defineProperty:function(v,g,w){return v[g]=w.value,v},getDescriptor:function(v,g){return{value:v[g]}},freeze:function(v){return v},getPrototypeOf:function(v){try{return Object(v).constructor.prototype}catch{return p}},isES5:u,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,l){s.exports=function(u,f){var d=u.map;u.prototype.filter=function(p,m){return d(this,p,m,f)},u.filter=function(p,m,v){return d(p,m,v,f)}}},{}],15:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),m=u.CancellationError,v=p.errorObj,g=a("./catch_filter")(d);function w(T,k,A){this.promise=T,this.type=k,this.handler=A,this.called=!1,this.cancelPromise=null}function y(T){this.finallyHandler=T}function _(T,k){return T.cancelPromise!=null&&(arguments.length>1?T.cancelPromise._reject(k):T.cancelPromise._cancel(),T.cancelPromise=null,!0)}function x(){return E.call(this,this.promise._target()._settledValue())}function O(T){if(!_(this,T))return v.e=T,v}function E(T){var k=this.promise,A=this.handler;if(!this.called){this.called=!0;var D=this.isFinallyHandler()?A.call(k._boundValue()):A.call(k._boundValue(),T);if(D===d)return D;if(D!==void 0){k._setReturnedNonUndefined();var R=f(D,k);if(R instanceof u){if(this.cancelPromise!=null){if(R._isCancelled()){var I=new m("late cancellation observer");return k._attachExtraTrace(I),v.e=I,v}R.isPending()&&R._attachCancellationCallback(new y(this))}return R._then(x,O,void 0,this,void 0)}}}return k.isRejected()?(_(this),v.e=T,v):(_(this),T)}return w.prototype.isFinallyHandler=function(){return this.type===0},y.prototype._resultCancelled=function(){_(this.finallyHandler)},u.prototype._passThrough=function(T,k,A,D){return typeof T!="function"?this.then():this._then(A,D,void 0,new w(this,k,T),void 0)},u.prototype.lastly=u.prototype.finally=function(T){return this._passThrough(T,0,E,E)},u.prototype.tap=function(T){return this._passThrough(T,1,E)},u.prototype.tapCatch=function(T){var k=arguments.length;if(k===1)return this._passThrough(T,1,void 0,E);var A,D=new Array(k-1),R=0;for(A=0;A<k-1;++A){var I=arguments[A];if(!p.isObject(I))return u.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(I)));D[R++]=I}D.length=R;var z=arguments[A];return this._passThrough(g(D,z,this),1,void 0,E)},w}},{"./catch_filter":7,"./util":36}],16:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=a("./errors").TypeError,w=a("./util"),y=w.errorObj,_=w.tryCatch,x=[];function O(E,T,k,A){if(v.cancellation()){var D=new u(d),R=this._finallyPromise=new u(d);this._promise=D.lastly(function(){return R}),D._captureStackTrace(),D._setOnCancel(this)}else(this._promise=new u(d))._captureStackTrace();this._stack=A,this._generatorFunction=E,this._receiver=T,this._generator=void 0,this._yieldHandlers=typeof k=="function"?[k].concat(x):x,this._yieldedPromise=null,this._cancellationPhase=!1}w.inherits(O,m),O.prototype._isResolved=function(){return this._promise===null},O.prototype._cleanup=function(){this._promise=this._generator=null,v.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},O.prototype._promiseCancelled=function(){if(!this._isResolved()){var E;if(this._generator.return!==void 0)this._promise._pushContext(),E=_(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var T=new u.CancellationError("generator .return() sentinel");u.coroutine.returnSentinel=T,this._promise._attachExtraTrace(T),this._promise._pushContext(),E=_(this._generator.throw).call(this._generator,T),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(E)}},O.prototype._promiseFulfilled=function(E){this._yieldedPromise=null,this._promise._pushContext();var T=_(this._generator.next).call(this._generator,E);this._promise._popContext(),this._continue(T)},O.prototype._promiseRejected=function(E){this._yieldedPromise=null,this._promise._attachExtraTrace(E),this._promise._pushContext();var T=_(this._generator.throw).call(this._generator,E);this._promise._popContext(),this._continue(T)},O.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof u){var E=this._yieldedPromise;this._yieldedPromise=null,E.cancel()}},O.prototype.promise=function(){return this._promise},O.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},O.prototype._continue=function(E){var T=this._promise;if(E===y)return this._cleanup(),this._cancellationPhase?T.cancel():T._rejectCallback(E.e,!1);var k=E.value;if(E.done===!0)return this._cleanup(),this._cancellationPhase?T.cancel():T._resolveCallback(k);var A=p(k,this._promise);if(A instanceof u||(A=function(R,I,z){for(var G=0;G<I.length;++G){z._pushContext();var H=_(I[G])(R);if(z._popContext(),H===y){z._pushContext();var Q=u.reject(y.e);return z._popContext(),Q}var Z=p(H,z);if(Z instanceof u)return Z}return null}(A,this._yieldHandlers,this._promise))!==null){var D=(A=A._target())._bitField;50397184&D?33554432&D?u._async.invoke(this._promiseFulfilled,this,A._value()):16777216&D?u._async.invoke(this._promiseRejected,this,A._reason()):this._promiseCancelled():(this._yieldedPromise=A,A._proxy(this,null))}else this._promiseRejected(new g(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String(k))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},u.coroutine=function(E,T){if(typeof E!="function")throw new g(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var k=Object(T).yieldHandler,A=O,D=new Error().stack;return function(){var R=E.apply(this,arguments),I=new A(void 0,void 0,k,D),z=I.promise();return I._generator=R,I._promiseFulfilled(void 0),z}},u.coroutine.addYieldHandler=function(E){if(typeof E!="function")throw new g("expecting a function but got "+w.classString(E));x.push(E)},u.spawn=function(E){if(v.deprecated("Promise.spawn()","Promise.coroutine()"),typeof E!="function")return f(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var T=new O(E,this),k=T.promise();return T._run(u.spawn),k}}},{"./errors":12,"./util":36}],17:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=a("./util");g.canEvaluate,g.tryCatch,g.errorObj,u.join=function(){var w,y=arguments.length-1;y>0&&typeof arguments[y]=="function"&&(w=arguments[y]);var _=[].slice.call(arguments);w&&_.pop();var x=new f(_).promise();return w!==void 0?x.spread(w):x}}},{"./util":36}],18:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=u._getDomain,w=a("./util"),y=w.tryCatch,_=w.errorObj,x=u._async;function O(T,k,A,D){this.constructor$(T),this._promise._captureStackTrace();var R=g();this._callback=R===null?k:w.domainBind(R,k),this._preservedValues=D===m?new Array(this.length()):null,this._limit=A,this._inFlight=0,this._queue=[],x.invoke(this._asyncInit,this,void 0)}function E(T,k,A,D){if(typeof k!="function")return d("expecting a function but got "+w.classString(k));var R=0;if(A!==void 0){if(typeof A!="object"||A===null)return u.reject(new TypeError("options argument must be an object but it is "+w.classString(A)));if(typeof A.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+w.classString(A.concurrency)));R=A.concurrency}return new O(T,k,R=typeof R=="number"&&isFinite(R)&&R>=1?R:0,D).promise()}w.inherits(O,f),O.prototype._asyncInit=function(){this._init$(void 0,-2)},O.prototype._init=function(){},O.prototype._promiseFulfilled=function(T,k){var A=this._values,D=this.length(),R=this._preservedValues,I=this._limit;if(k<0){if(A[k=-1*k-1]=T,I>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(I>=1&&this._inFlight>=I)return A[k]=T,this._queue.push(k),!1;R!==null&&(R[k]=T);var z=this._promise,G=this._callback,H=z._boundValue();z._pushContext();var Q=y(G).call(H,T,k,D),Z=z._popContext();if(v.checkForgottenReturns(Q,Z,R!==null?"Promise.filter":"Promise.map",z),Q===_)return this._reject(Q.e),!0;var te=p(Q,this._promise);if(te instanceof u){var X=(te=te._target())._bitField;if(!(50397184&X))return I>=1&&this._inFlight++,A[k]=te,te._proxy(this,-1*(k+1)),!1;if(!(33554432&X))return 16777216&X?(this._reject(te._reason()),!0):(this._cancel(),!0);Q=te._value()}A[k]=Q}return++this._totalResolved>=D&&(R!==null?this._filter(A,R):this._resolve(A),!0)},O.prototype._drainQueue=function(){for(var T=this._queue,k=this._limit,A=this._values;T.length>0&&this._inFlight<k;){if(this._isResolved())return;var D=T.pop();this._promiseFulfilled(A[D],D)}},O.prototype._filter=function(T,k){for(var A=k.length,D=new Array(A),R=0,I=0;I<A;++I)T[I]&&(D[R++]=k[I]);D.length=R,this._resolve(D)},O.prototype.preservedValues=function(){return this._preservedValues},u.prototype.map=function(T,k){return E(this,T,k,null)},u.map=function(T,k,A,D){return E(T,k,A,D)}}},{"./util":36}],19:[function(a,s,l){s.exports=function(u,f,d,p,m){var v=a("./util"),g=v.tryCatch;u.method=function(w){if(typeof w!="function")throw new u.TypeError("expecting a function but got "+v.classString(w));return function(){var y=new u(f);y._captureStackTrace(),y._pushContext();var _=g(w).apply(this,arguments),x=y._popContext();return m.checkForgottenReturns(_,x,"Promise.method",y),y._resolveFromSyncValue(_),y}},u.attempt=u.try=function(w){if(typeof w!="function")return p("expecting a function but got "+v.classString(w));var y,_=new u(f);if(_._captureStackTrace(),_._pushContext(),arguments.length>1){m.deprecated("calling Promise.try with more than 1 argument");var x=arguments[1],O=arguments[2];y=v.isArray(x)?g(w).apply(O,x):g(w).call(O,x)}else y=g(w)();var E=_._popContext();return m.checkForgottenReturns(y,E,"Promise.try",_),_._resolveFromSyncValue(y),_},u.prototype._resolveFromSyncValue=function(w){w===v.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(a,s,l){var u=a("./util"),f=u.maybeWrapAsError,d=a("./errors").OperationalError,p=a("./es5"),m=/^(?:name|message|stack|cause)$/;function v(g){var w;if(function(O){return O instanceof Error&&p.getPrototypeOf(O)===Error.prototype}(g)){(w=new d(g)).name=g.name,w.message=g.message,w.stack=g.stack;for(var y=p.keys(g),_=0;_<y.length;++_){var x=y[_];m.test(x)||(w[x]=g[x])}return w}return u.markAsOriginatingFromRejection(g),g}s.exports=function(g,w){return function(y,_){if(g!==null){if(y){var x=v(f(y));g._attachExtraTrace(x),g._reject(x)}else if(w){var O=[].slice.call(arguments,1);g._fulfill(O)}else g._fulfill(_);g=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(u){var f=a("./util"),d=u._async,p=f.tryCatch,m=f.errorObj;function v(y,_){if(!f.isArray(y))return g.call(this,y,_);var x=p(_).apply(this._boundValue(),[null].concat(y));x===m&&d.throwLater(x.e)}function g(y,_){var x=this._boundValue(),O=y===void 0?p(_).call(x,null):p(_).call(x,null,y);O===m&&d.throwLater(O.e)}function w(y,_){if(!y){var x=new Error(y+"");x.cause=y,y=x}var O=p(_).call(this._boundValue(),y);O===m&&d.throwLater(O.e)}u.prototype.asCallback=u.prototype.nodeify=function(y,_){if(typeof y=="function"){var x=g;_!==void 0&&Object(_).spread&&(x=v),this._then(x,w,void 0,this,y)}return this}}},{"./util":36}],22:[function(a,s,l){s.exports=function(){var u=function(){return new O(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},f=function(){return new $.PromiseInspection(this._target())},d=function(q){return $.reject(new O(q))};function p(){}var m,v={},g=a("./util");m=g.isNode?function(){var q=r.domain;return q===void 0&&(q=null),q}:function(){return null},g.notEnumerableProp($,"_getDomain",m);var w=a("./es5"),y=a("./async"),_=new y;w.defineProperty($,"_async",{value:_});var x=a("./errors"),O=$.TypeError=x.TypeError;$.RangeError=x.RangeError;var E=$.CancellationError=x.CancellationError;$.TimeoutError=x.TimeoutError,$.OperationalError=x.OperationalError,$.RejectionError=x.OperationalError,$.AggregateError=x.AggregateError;var T=function(){},k={},A={},D=a("./thenables")($,T),R=a("./promise_array")($,T,D,d,p),I=a("./context")($),z=I.create,G=a("./debuggability")($,I),H=(G.CapturedTrace,a("./finally")($,D,A)),Q=a("./catch_filter")(A),Z=a("./nodeback"),te=g.errorObj,X=g.tryCatch;function $(q){q!==T&&function(ee,ie){if(ee==null||ee.constructor!==$)throw new O(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`);if(typeof ie!="function")throw new O("expecting a function but got "+g.classString(ie))}(this,q),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(q),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function V(q){this.promise._resolveCallback(q)}function W(q){this.promise._rejectCallback(q,!1)}function re(q){var ee=new $(T);ee._fulfillmentHandler0=q,ee._rejectionHandler0=q,ee._promise0=q,ee._receiver0=q}return $.prototype.toString=function(){return"[object Promise]"},$.prototype.caught=$.prototype.catch=function(q){var ee=arguments.length;if(ee>1){var ie,se=new Array(ee-1),fe=0;for(ie=0;ie<ee-1;++ie){var j=arguments[ie];if(!g.isObject(j))return d("Catch statement predicate: expecting an object but got "+g.classString(j));se[fe++]=j}return se.length=fe,q=arguments[ie],this.then(void 0,Q(se,q,this))}return this.then(void 0,q)},$.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},$.prototype.then=function(q,ee){if(G.warnings()&&arguments.length>0&&typeof q!="function"&&typeof ee!="function"){var ie=".then() only accepts functions but was passed: "+g.classString(q);arguments.length>1&&(ie+=", "+g.classString(ee)),this._warn(ie)}return this._then(q,ee,void 0,void 0,void 0)},$.prototype.done=function(q,ee){this._then(q,ee,void 0,void 0,void 0)._setIsFinal()},$.prototype.spread=function(q){return typeof q!="function"?d("expecting a function but got "+g.classString(q)):this.all()._then(q,void 0,void 0,k,void 0)},$.prototype.toJSON=function(){var q={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(q.fulfillmentValue=this.value(),q.isFulfilled=!0):this.isRejected()&&(q.rejectionReason=this.reason(),q.isRejected=!0),q},$.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new R(this).promise()},$.prototype.error=function(q){return this.caught(g.originatesFromRejection,q)},$.getNewLibraryCopy=s.exports,$.is=function(q){return q instanceof $},$.fromNode=$.fromCallback=function(q){var ee=new $(T);ee._captureStackTrace();var ie=arguments.length>1&&!!Object(arguments[1]).multiArgs,se=X(q)(Z(ee,ie));return se===te&&ee._rejectCallback(se.e,!0),ee._isFateSealed()||ee._setAsyncGuaranteed(),ee},$.all=function(q){return new R(q).promise()},$.cast=function(q){var ee=D(q);return ee instanceof $||((ee=new $(T))._captureStackTrace(),ee._setFulfilled(),ee._rejectionHandler0=q),ee},$.resolve=$.fulfilled=$.cast,$.reject=$.rejected=function(q){var ee=new $(T);return ee._captureStackTrace(),ee._rejectCallback(q,!0),ee},$.setScheduler=function(q){if(typeof q!="function")throw new O("expecting a function but got "+g.classString(q));return _.setScheduler(q)},$.prototype._then=function(q,ee,ie,se,fe){var j=fe!==void 0,P=j?fe:new $(T),B=this._target(),J=B._bitField;j||(P._propagateFrom(this,3),P._captureStackTrace(),se===void 0&&2097152&this._bitField&&(se=50397184&J?this._boundValue():B===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,P));var K=m();if(50397184&J){var le,he,Ee=B._settlePromiseCtx;33554432&J?(he=B._rejectionHandler0,le=q):16777216&J?(he=B._fulfillmentHandler0,le=ee,B._unsetRejectionIsUnhandled()):(Ee=B._settlePromiseLateCancellationObserver,he=new E("late cancellation observer"),B._attachExtraTrace(he),le=ee),_.invoke(Ee,B,{handler:K===null?le:typeof le=="function"&&g.domainBind(K,le),promise:P,receiver:se,value:he})}else B._addCallbacks(q,ee,P,se,K);return P},$.prototype._length=function(){return 65535&this._bitField},$.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},$.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},$.prototype._setLength=function(q){this._bitField=-65536&this._bitField|65535&q},$.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},$.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},$.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},$.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},$.prototype._isFinal=function(){return(4194304&this._bitField)>0},$.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},$.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},$.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},$.prototype._setAsyncGuaranteed=function(){_.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},$.prototype._receiverAt=function(q){var ee=q===0?this._receiver0:this[4*q-4+3];if(ee!==v)return ee===void 0&&this._isBound()?this._boundValue():ee},$.prototype._promiseAt=function(q){return this[4*q-4+2]},$.prototype._fulfillmentHandlerAt=function(q){return this[4*q-4+0]},$.prototype._rejectionHandlerAt=function(q){return this[4*q-4+1]},$.prototype._boundValue=function(){},$.prototype._migrateCallback0=function(q){q._bitField;var ee=q._fulfillmentHandler0,ie=q._rejectionHandler0,se=q._promise0,fe=q._receiverAt(0);fe===void 0&&(fe=v),this._addCallbacks(ee,ie,se,fe,null)},$.prototype._migrateCallbackAt=function(q,ee){var ie=q._fulfillmentHandlerAt(ee),se=q._rejectionHandlerAt(ee),fe=q._promiseAt(ee),j=q._receiverAt(ee);j===void 0&&(j=v),this._addCallbacks(ie,se,fe,j,null)},$.prototype._addCallbacks=function(q,ee,ie,se,fe){var j=this._length();if(j>=65531&&(j=0,this._setLength(0)),j===0)this._promise0=ie,this._receiver0=se,typeof q=="function"&&(this._fulfillmentHandler0=fe===null?q:g.domainBind(fe,q)),typeof ee=="function"&&(this._rejectionHandler0=fe===null?ee:g.domainBind(fe,ee));else{var P=4*j-4;this[P+2]=ie,this[P+3]=se,typeof q=="function"&&(this[P+0]=fe===null?q:g.domainBind(fe,q)),typeof ee=="function"&&(this[P+1]=fe===null?ee:g.domainBind(fe,ee))}return this._setLength(j+1),j},$.prototype._proxy=function(q,ee){this._addCallbacks(void 0,void 0,ee,q,null)},$.prototype._resolveCallback=function(q,ee){if(!(117506048&this._bitField)){if(q===this)return this._rejectCallback(u(),!1);var ie=D(q,this);if(!(ie instanceof $))return this._fulfill(q);ee&&this._propagateFrom(ie,2);var se=ie._target();if(se!==this){var fe=se._bitField;if(50397184&fe)if(33554432&fe)this._fulfill(se._value());else if(16777216&fe)this._reject(se._reason());else{var B=new E("late cancellation observer");se._attachExtraTrace(B),this._reject(B)}else{var j=this._length();j>0&&se._migrateCallback0(this);for(var P=1;P<j;++P)se._migrateCallbackAt(this,P);this._setFollowing(),this._setLength(0),this._setFollowee(se)}}else this._reject(u())}},$.prototype._rejectCallback=function(q,ee,ie){var se=g.ensureErrorObject(q),fe=se===q;if(!fe&&!ie&&G.warnings()){var j="a promise was rejected with a non-error: "+g.classString(q);this._warn(j,!0)}this._attachExtraTrace(se,!!ee&&fe),this._reject(q)},$.prototype._resolveFromExecutor=function(q){if(q!==T){var ee=this;this._captureStackTrace(),this._pushContext();var ie=!0,se=this._execute(q,function(fe){ee._resolveCallback(fe)},function(fe){ee._rejectCallback(fe,ie)});ie=!1,this._popContext(),se!==void 0&&ee._rejectCallback(se,!0)}},$.prototype._settlePromiseFromHandler=function(q,ee,ie,se){var fe=se._bitField;if(!(65536&fe)){var j;se._pushContext(),ee===k?ie&&typeof ie.length=="number"?j=X(q).apply(this._boundValue(),ie):(j=te).e=new O("cannot .spread() a non-array: "+g.classString(ie)):j=X(q).call(ee,ie);var P=se._popContext();!(65536&(fe=se._bitField))&&(j===A?se._reject(ie):j===te?se._rejectCallback(j.e,!1):(G.checkForgottenReturns(j,P,"",se,this),se._resolveCallback(j)))}},$.prototype._target=function(){for(var q=this;q._isFollowing();)q=q._followee();return q},$.prototype._followee=function(){return this._rejectionHandler0},$.prototype._setFollowee=function(q){this._rejectionHandler0=q},$.prototype._settlePromise=function(q,ee,ie,se){var fe=q instanceof $,j=this._bitField,P=(134217728&j)!=0;65536&j?(fe&&q._invokeInternalOnCancel(),ie instanceof H&&ie.isFinallyHandler()?(ie.cancelPromise=q,X(ee).call(ie,se)===te&&q._reject(te.e)):ee===f?q._fulfill(f.call(ie)):ie instanceof p?ie._promiseCancelled(q):fe||q instanceof R?q._cancel():ie.cancel()):typeof ee=="function"?fe?(P&&q._setAsyncGuaranteed(),this._settlePromiseFromHandler(ee,ie,se,q)):ee.call(ie,se,q):ie instanceof p?ie._isResolved()||(33554432&j?ie._promiseFulfilled(se,q):ie._promiseRejected(se,q)):fe&&(P&&q._setAsyncGuaranteed(),33554432&j?q._fulfill(se):q._reject(se))},$.prototype._settlePromiseLateCancellationObserver=function(q){var ee=q.handler,ie=q.promise,se=q.receiver,fe=q.value;typeof ee=="function"?ie instanceof $?this._settlePromiseFromHandler(ee,se,fe,ie):ee.call(se,fe,ie):ie instanceof $&&ie._reject(fe)},$.prototype._settlePromiseCtx=function(q){this._settlePromise(q.promise,q.handler,q.receiver,q.value)},$.prototype._settlePromise0=function(q,ee,ie){var se=this._promise0,fe=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(se,q,fe,ee)},$.prototype._clearCallbackDataAtIndex=function(q){var ee=4*q-4;this[ee+2]=this[ee+3]=this[ee+0]=this[ee+1]=void 0},$.prototype._fulfill=function(q){var ee=this._bitField;if(!((117506048&ee)>>>16)){if(q===this){var ie=u();return this._attachExtraTrace(ie),this._reject(ie)}this._setFulfilled(),this._rejectionHandler0=q,(65535&ee)>0&&(134217728&ee?this._settlePromises():_.settlePromises(this))}},$.prototype._reject=function(q){var ee=this._bitField;if(!((117506048&ee)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=q,this._isFinal())return _.fatalError(q,g.isNode);(65535&ee)>0?_.settlePromises(this):this._ensurePossibleRejectionHandled()}},$.prototype._fulfillPromises=function(q,ee){for(var ie=1;ie<q;ie++){var se=this._fulfillmentHandlerAt(ie),fe=this._promiseAt(ie),j=this._receiverAt(ie);this._clearCallbackDataAtIndex(ie),this._settlePromise(fe,se,j,ee)}},$.prototype._rejectPromises=function(q,ee){for(var ie=1;ie<q;ie++){var se=this._rejectionHandlerAt(ie),fe=this._promiseAt(ie),j=this._receiverAt(ie);this._clearCallbackDataAtIndex(ie),this._settlePromise(fe,se,j,ee)}},$.prototype._settlePromises=function(){var q=this._bitField,ee=65535&q;if(ee>0){if(16842752&q){var ie=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ie,q),this._rejectPromises(ee,ie)}else{var se=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,se,q),this._fulfillPromises(ee,se)}this._setLength(0)}this._clearCancellationData()},$.prototype._settledValue=function(){var q=this._bitField;return 33554432&q?this._rejectionHandler0:16777216&q?this._fulfillmentHandler0:void 0},$.defer=$.pending=function(){return G.deprecated("Promise.defer","new Promise"),{promise:new $(T),resolve:V,reject:W}},g.notEnumerableProp($,"_makeSelfResolutionError",u),a("./method")($,T,D,d,G),a("./bind")($,T,D,G),a("./cancel")($,R,d,G),a("./direct_resolve")($),a("./synchronous_inspection")($),a("./join")($,R,D,T,_,m),$.Promise=$,$.version="3.5.1",a("./map.js")($,R,d,D,T,G),a("./call_get.js")($),a("./using.js")($,d,D,z,T,G),a("./timers.js")($,T,G),a("./generators.js")($,d,T,D,p,G),a("./nodeify.js")($),a("./promisify.js")($,T),a("./props.js")($,R,D,d),a("./race.js")($,T,D,d),a("./reduce.js")($,R,d,D,T,G),a("./settle.js")($,R,G),a("./some.js")($,R,d),a("./filter.js")($,T),a("./each.js")($,T),a("./any.js")($),g.toFastProperties($),g.toFastProperties($.prototype),re({a:1}),re({b:2}),re({c:3}),re(1),re(function(){}),re(void 0),re(!1),re(new $(T)),G.setBounds(y.firstLineError,g.lastLineError),$}},{"./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(a,s,l){s.exports=function(u,f,d,p,m){var v=a("./util");function g(w){var y=this._promise=new u(f);w instanceof u&&y._propagateFrom(w,3),y._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return v.isArray,v.inherits(g,m),g.prototype.length=function(){return this._length},g.prototype.promise=function(){return this._promise},g.prototype._init=function w(y,_){var x=d(this._values,this._promise);if(x instanceof u){var O=(x=x._target())._bitField;if(this._values=x,(50397184&O)==0)return this._promise._setAsyncGuaranteed(),x._then(w,this._reject,void 0,this,_);if(!(33554432&O))return 16777216&O?this._reject(x._reason()):this._cancel();x=x._value()}if((x=v.asArray(x))!==null)x.length!==0?this._iterate(x):_===-5?this._resolveEmptyArray():this._resolve(function(T){switch(_){case-2:return[];case-3:return{};case-6:return new Map}}());else{var E=p("expecting an array or an iterable object but got "+v.classString(x)).reason();this._promise._rejectCallback(E,!1)}},g.prototype._iterate=function(w){var y=this.getActualLength(w.length);this._length=y,this._values=this.shouldCopyValues()?new Array(y):this._values;for(var _=this._promise,x=!1,O=null,E=0;E<y;++E){var T=d(w[E],_);O=T instanceof u?(T=T._target())._bitField:null,x?O!==null&&T.suppressUnhandledRejections():O!==null?50397184&O?x=33554432&O?this._promiseFulfilled(T._value(),E):16777216&O?this._promiseRejected(T._reason(),E):this._promiseCancelled(E):(T._proxy(this,E),this._values[E]=T):x=this._promiseFulfilled(T,E)}x||_._setAsyncGuaranteed()},g.prototype._isResolved=function(){return this._values===null},g.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},g.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},g.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},g.prototype._promiseFulfilled=function(w,y){return this._values[y]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},g.prototype._promiseCancelled=function(){return this._cancel(),!0},g.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},g.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof u)w.cancel();else for(var y=0;y<w.length;++y)w[y]instanceof u&&w[y].cancel()}},g.prototype.shouldCopyValues=function(){return!0},g.prototype.getActualLength=function(w){return w},g}},{"./util":36}],24:[function(a,s,l){s.exports=function(u,f){var d={},p=a("./util"),m=a("./nodeback"),v=p.withAppended,g=p.maybeWrapAsError,w=p.canEvaluate,y=a("./errors").TypeError,_={__isPromisified__:!0},x=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),O=function(z){return p.isIdentifier(z)&&z.charAt(0)!=="_"&&z!=="constructor"};function E(z){return!x.test(z)}function T(z){try{return z.__isPromisified__===!0}catch{return!1}}function k(z,G,H){var Q=p.getDataPropertyOrDefault(z,G+H,_);return!!Q&&T(Q)}function A(z,G,H,Q){for(var Z=p.inheritedDataKeys(z),te=[],X=0;X<Z.length;++X){var $=Z[X],V=z[$],W=Q===O||O($);typeof V!="function"||T(V)||k(z,$,G)||!Q($,V,z,W)||te.push($,V)}return function(re,q,ee){for(var ie=0;ie<re.length;ie+=2){var se=re[ie];if(ee.test(se)){for(var fe=se.replace(ee,""),j=0;j<re.length;j+=2)if(re[j]===fe)throw new y(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
`.replace("%s",q))}}}(te,G,H),te}var D=function(z){return z.replace(/([$])/,"\\$")},R=w?void 0:function(z,G,H,Q,Z,te){var X=function(){return this}(),$=z;function V(){var W=G;G===d&&(W=this);var re=new u(f);re._captureStackTrace();var q=typeof $=="string"&&this!==X?this[$]:z,ee=m(re,te);try{q.apply(W,v(arguments,ee))}catch(ie){re._rejectCallback(g(ie),!0,!0)}return re._isFateSealed()||re._setAsyncGuaranteed(),re}return typeof $=="string"&&(z=Q),p.notEnumerableProp(V,"__isPromisified__",!0),V};function I(z,G,H,Q,Z){for(var te=new RegExp(D(G)+"$"),X=A(z,G,te,H),$=0,V=X.length;$<V;$+=2){var W=X[$],re=X[$+1],q=W+G;if(Q===R)z[q]=R(W,d,W,re,G,Z);else{var ee=Q(re,function(){return R(W,d,W,re,G,Z)});p.notEnumerableProp(ee,"__isPromisified__",!0),z[q]=ee}}return p.toFastProperties(z),z}u.promisify=function(z,G){if(typeof z!="function")throw new y("expecting a function but got "+p.classString(z));if(T(z))return z;var H=(G=Object(G)).context===void 0?d:G.context,Q=!!G.multiArgs,Z=function(te,X,$){return R(te,X,void 0,te,null,Q)}(z,H);return p.copyDescriptors(z,Z,E),Z},u.promisifyAll=function(z,G){if(typeof z!="function"&&typeof z!="object")throw new y(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);var H=!!(G=Object(G)).multiArgs,Q=G.suffix;typeof Q!="string"&&(Q="Async");var Z=G.filter;typeof Z!="function"&&(Z=O);var te=G.promisifier;if(typeof te!="function"&&(te=R),!p.isIdentifier(Q))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var X=p.inheritedDataKeys(z),$=0;$<X.length;++$){var V=z[X[$]];X[$]!=="constructor"&&p.isClass(V)&&(I(V.prototype,Q,Z,te,H),I(V,Q,Z,te,H))}return I(z,Q,Z,te,H)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,l){s.exports=function(u,f,d,p){var m,v=a("./util"),g=v.isObject,w=a("./es5");typeof Map=="function"&&(m=Map);var y=function(){var O=0,E=0;function T(k,A){this[O]=k,this[O+E]=A,O++}return function(k){E=k.size,O=0;var A=new Array(2*k.size);return k.forEach(T,A),A}}();function _(O){var E,T=!1;if(m!==void 0&&O instanceof m)E=y(O),T=!0;else{var k=w.keys(O),A=k.length;E=new Array(2*A);for(var D=0;D<A;++D){var R=k[D];E[D]=O[R],E[D+A]=R}}this.constructor$(E),this._isMap=T,this._init$(void 0,T?-6:-3)}function x(O){var E,T=d(O);return g(T)?(E=T instanceof u?T._then(u.props,void 0,void 0,void 0,void 0):new _(T).promise(),T instanceof u&&E._propagateFrom(T,2),E):p(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}v.inherits(_,f),_.prototype._init=function(){},_.prototype._promiseFulfilled=function(O,E){if(this._values[E]=O,++this._totalResolved>=this._length){var T;if(this._isMap)T=function(R){for(var I=new m,z=R.length/2|0,G=0;G<z;++G){var H=R[z+G],Q=R[G];I.set(H,Q)}return I}(this._values);else{T={};for(var k=this.length(),A=0,D=this.length();A<D;++A)T[this._values[A+k]]=this._values[A]}return this._resolve(T),!0}return!1},_.prototype.shouldCopyValues=function(){return!1},_.prototype.getActualLength=function(O){return O>>1},u.prototype.props=function(){return x(this)},u.props=function(O){return x(O)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function u(f){this._capacity=f,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(f){return this._capacity<f},u.prototype._pushOne=function(f){var d=this.length();this._checkCapacity(d+1),this[this._front+d&this._capacity-1]=f,this._length=d+1},u.prototype.push=function(f,d,p){var m=this.length()+3;if(this._willBeOverCapacity(m))return this._pushOne(f),this._pushOne(d),void this._pushOne(p);var v=this._front+m-3;this._checkCapacity(m);var g=this._capacity-1;this[v+0&g]=f,this[v+1&g]=d,this[v+2&g]=p,this._length=m},u.prototype.shift=function(){var f=this._front,d=this[f];return this[f]=void 0,this._front=f+1&this._capacity-1,this._length--,d},u.prototype.length=function(){return this._length},u.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},u.prototype._resizeTo=function(f){var d=this._capacity;this._capacity=f,function(p,m,v,g,w){for(var y=0;y<w;++y)v[y+g]=p[y+0],p[y+0]=void 0}(this,0,this,d,this._front+this._length&d-1)},s.exports=u},{}],27:[function(a,s,l){s.exports=function(u,f,d,p){var m=a("./util"),v=function(w){return w.then(function(y){return g(y,w)})};function g(w,y){var _=d(w);if(_ instanceof u)return v(_);if((w=m.asArray(w))===null)return p("expecting an array or an iterable object but got "+m.classString(w));var x=new u(f);y!==void 0&&x._propagateFrom(y,3);for(var O=x._fulfill,E=x._reject,T=0,k=w.length;T<k;++T){var A=w[T];(A!==void 0||T in w)&&u.cast(A)._then(O,E,void 0,x,null)}return x}u.race=function(w){return g(w,void 0)},u.prototype.race=function(){return g(this,void 0)}}},{"./util":36}],28:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=u._getDomain,w=a("./util"),y=w.tryCatch;function _(k,A,D,R){this.constructor$(k);var I=g();this._fn=I===null?A:w.domainBind(I,A),D!==void 0&&(D=u.resolve(D))._attachCancellationCallback(this),this._initialValue=D,this._currentCancellable=null,this._eachValues=R===m?Array(this._length):R===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function x(k,A){this.isFulfilled()?A._resolve(k):A._reject(k)}function O(k,A,D,R){return typeof A!="function"?d("expecting a function but got "+w.classString(A)):new _(k,A,D,R).promise()}function E(k){this.accum=k,this.array._gotAccum(k);var A=p(this.value,this.array._promise);return A instanceof u?(this.array._currentCancellable=A,A._then(T,void 0,void 0,this,void 0)):T.call(this,A)}function T(k){var A,D=this.array,R=D._promise,I=y(D._fn);R._pushContext(),(A=D._eachValues!==void 0?I.call(R._boundValue(),k,this.index,this.length):I.call(R._boundValue(),this.accum,k,this.index,this.length))instanceof u&&(D._currentCancellable=A);var z=R._popContext();return v.checkForgottenReturns(A,z,D._eachValues!==void 0?"Promise.each":"Promise.reduce",R),A}w.inherits(_,f),_.prototype._gotAccum=function(k){this._eachValues!==void 0&&this._eachValues!==null&&k!==m&&this._eachValues.push(k)},_.prototype._eachComplete=function(k){return this._eachValues!==null&&this._eachValues.push(k),this._eachValues},_.prototype._init=function(){},_.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},_.prototype.shouldCopyValues=function(){return!1},_.prototype._resolve=function(k){this._promise._resolveCallback(k),this._values=null},_.prototype._resultCancelled=function(k){if(k===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof u&&this._currentCancellable.cancel(),this._initialValue instanceof u&&this._initialValue.cancel())},_.prototype._iterate=function(k){var A,D;this._values=k;var R=k.length;if(this._initialValue!==void 0?(A=this._initialValue,D=0):(A=u.resolve(k[0]),D=1),this._currentCancellable=A,!A.isRejected())for(;D<R;++D){var I={accum:null,value:k[D],index:D,length:R,array:this};A=A._then(E,void 0,void 0,I,void 0)}this._eachValues!==void 0&&(A=A._then(this._eachComplete,void 0,void 0,this,void 0)),A._then(x,x,void 0,A,this)},u.prototype.reduce=function(k,A){return O(this,k,A,null)},u.reduce=function(k,A,D,R){return O(k,A,D,R)}}},{"./util":36}],29:[function(a,s,l){var u,f=a("./util"),d=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,m=r.nextTick;u=f.isRecentNode?function(g){p.call(i,g)}:function(g){m.call(r,g)}}else if(typeof d=="function"&&typeof d.resolve=="function"){var v=d.resolve();u=function(g){v.then(g)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(g){o(g)}:typeof setTimeout<"u"?function(g){setTimeout(g,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var g=document.createElement("div"),w={attributes:!0},y=!1,_=document.createElement("div");return new MutationObserver(function(){g.classList.toggle("foo"),y=!1}).observe(_,w),function(x){var O=new MutationObserver(function(){O.disconnect(),x()});O.observe(g,w),y||(y=!0,_.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,l){s.exports=function(u,f,d){var p=u.PromiseInspection;function m(v){this.constructor$(v)}a("./util").inherits(m,f),m.prototype._promiseResolved=function(v,g){return this._values[v]=g,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(v,g){var w=new p;return w._bitField=33554432,w._settledValueField=v,this._promiseResolved(g,w)},m.prototype._promiseRejected=function(v,g){var w=new p;return w._bitField=16777216,w._settledValueField=v,this._promiseResolved(g,w)},u.settle=function(v){return d.deprecated(".settle()",".reflect()"),new m(v).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),m=a("./errors").RangeError,v=a("./errors").AggregateError,g=p.isArray,w={};function y(x){this.constructor$(x),this._howMany=0,this._unwrap=!1,this._initialized=!1}function _(x,O){if((0|O)!==O||O<0)return d(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var E=new y(x),T=E.promise();return E.setHowMany(O),E.init(),T}p.inherits(y,f),y.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var x=g(this._values);!this._isResolved()&&x&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},y.prototype.init=function(){this._initialized=!0,this._init()},y.prototype.setUnwrap=function(){this._unwrap=!0},y.prototype.howMany=function(){return this._howMany},y.prototype.setHowMany=function(x){this._howMany=x},y.prototype._promiseFulfilled=function(x){return this._addFulfilled(x),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},y.prototype._promiseRejected=function(x){return this._addRejected(x),this._checkOutcome()},y.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},y.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var x=new v,O=this.length();O<this._values.length;++O)this._values[O]!==w&&x.push(this._values[O]);return x.length>0?this._reject(x):this._cancel(),!0}return!1},y.prototype._fulfilled=function(){return this._totalResolved},y.prototype._rejected=function(){return this._values.length-this.length()},y.prototype._addRejected=function(x){this._values.push(x)},y.prototype._addFulfilled=function(x){this._values[this._totalResolved++]=x},y.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},y.prototype._getRangeError=function(x){var O="Input array must contain at least "+this._howMany+" items but contains only "+x+" items";return new m(O)},y.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(x,O){return _(x,O)},u.prototype.some=function(x){return _(this,x)},u._SomePromiseArray=y}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(u){function f(y){y!==void 0?(y=y._target(),this._bitField=y._bitField,this._settledValueField=y._isFateSealed()?y._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var d=f.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()},p=f.prototype.error=f.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()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},v=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},g=f.prototype.isPending=function(){return(50397184&this._bitField)==0},w=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},u.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},u.prototype._isCancelled=function(){return this._target().__isCancelled()},u.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},u.prototype.isPending=function(){return g.call(this._target())},u.prototype.isRejected=function(){return v.call(this._target())},u.prototype.isFulfilled=function(){return m.call(this._target())},u.prototype.isResolved=function(){return w.call(this._target())},u.prototype.value=function(){return d.call(this._target())},u.prototype.reason=function(){var y=this._target();return y._unsetRejectionIsUnhandled(),p.call(y)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=f}},{}],33:[function(a,s,l){s.exports=function(u,f){var d=a("./util"),p=d.errorObj,m=d.isObject,v={}.hasOwnProperty;return function(g,w){if(m(g)){if(g instanceof u)return g;var y=function(x){try{return function(O){return O.then}(x)}catch(O){return p.e=O,p}}(g);if(y===p){w&&w._pushContext();var _=u.reject(y.e);return w&&w._popContext(),_}if(typeof y=="function")return function(x){try{return v.call(x,"_promise0")}catch{return!1}}(g)?(_=new u(f),g._then(_._fulfill,_._reject,void 0,_,null),_):function(x,O,E){var T=new u(f),k=T;E&&E._pushContext(),T._captureStackTrace(),E&&E._popContext();var A=!0,D=d.tryCatch(O).call(x,function(R){T&&(T._resolveCallback(R),T=null)},function(R){T&&(T._rejectCallback(R,A,!0),T=null)});return A=!1,T&&D===p&&(T._rejectCallback(D.e,!0,!0),T=null),k}(g,y,w)}return g}}},{"./util":36}],34:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),m=u.TimeoutError;function v(x){this.handle=x}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var g=function(x){return w(+this).thenReturn(x)},w=u.delay=function(x,O){var E,T;return O!==void 0?(E=u.resolve(O)._then(g,null,null,x,void 0),d.cancellation()&&O instanceof u&&E._setOnCancel(O)):(E=new u(f),T=setTimeout(function(){E._fulfill()},+x),d.cancellation()&&E._setOnCancel(new v(T)),E._captureStackTrace()),E._setAsyncGuaranteed(),E};function y(x){return clearTimeout(this.handle),x}function _(x){throw clearTimeout(this.handle),x}u.prototype.delay=function(x){return w(x,this)},u.prototype.timeout=function(x,O){var E,T;x=+x;var k=new v(setTimeout(function(){E.isPending()&&function(A,D,R){var I;I=typeof D!="string"?D instanceof Error?D:new m("operation timed out"):new m(D),p.markAsOriginatingFromRejection(I),A._attachExtraTrace(I),A._reject(I),R!=null&&R.cancel()}(E,O,T)},x));return d.cancellation()?(T=this.then(),(E=T._then(y,_,void 0,k,void 0))._setOnCancel(k)):E=this._then(y,_,void 0,k,void 0),E}}},{"./util":36}],35:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=a("./util"),w=a("./errors").TypeError,y=a("./util").inherits,_=g.errorObj,x=g.tryCatch,O={};function E(I){setTimeout(function(){throw I},0)}function T(I,z){var G=0,H=I.length,Q=new u(m);return function Z(){if(G>=H)return Q._fulfill();var te=function(X){var $=d(X);return $!==X&&typeof X._isDisposable=="function"&&typeof X._getDisposer=="function"&&X._isDisposable()&&$._setDisposable(X._getDisposer()),$}(I[G++]);if(te instanceof u&&te._isDisposable()){try{te=d(te._getDisposer().tryDispose(z),I.promise)}catch(X){return E(X)}if(te instanceof u)return te._then(Z,E,null,null,null)}Z()}(),Q}function k(I,z,G){this._data=I,this._promise=z,this._context=G}function A(I,z,G){this.constructor$(I,z,G)}function D(I){return k.isDisposer(I)?(this.resources[this.index]._setDisposable(I),I.promise()):I}function R(I){this.length=I,this.promise=null,this[I-1]=null}k.prototype.data=function(){return this._data},k.prototype.promise=function(){return this._promise},k.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():O},k.prototype.tryDispose=function(I){var z=this.resource(),G=this._context;G!==void 0&&G._pushContext();var H=z!==O?this.doDispose(z,I):null;return G!==void 0&&G._popContext(),this._promise._unsetDisposable(),this._data=null,H},k.isDisposer=function(I){return I!=null&&typeof I.resource=="function"&&typeof I.tryDispose=="function"},y(A,k),A.prototype.doDispose=function(I,z){return this.data().call(I,I,z)},R.prototype._resultCancelled=function(){for(var I=this.length,z=0;z<I;++z){var G=this[z];G instanceof u&&G.cancel()}},u.using=function(){var I=arguments.length;if(I<2)return f("you must pass at least 2 arguments to Promise.using");var z,G=arguments[I-1];if(typeof G!="function")return f("expecting a function but got "+g.classString(G));var H=!0;I===2&&Array.isArray(arguments[0])?(I=(z=arguments[0]).length,H=!1):(z=arguments,I--);for(var Q=new R(I),Z=0;Z<I;++Z){var te=z[Z];if(k.isDisposer(te)){var X=te;(te=te.promise())._setDisposable(X)}else{var $=d(te);$ instanceof u&&(te=$._then(D,null,null,{resources:Q,index:Z},void 0))}Q[Z]=te}var V=new Array(Q.length);for(Z=0;Z<V.length;++Z)V[Z]=u.resolve(Q[Z]).reflect();var W=u.all(V).then(function(q){for(var ee=0;ee<q.length;++ee){var ie=q[ee];if(ie.isRejected())return _.e=ie.error(),_;if(!ie.isFulfilled())return void W.cancel();q[ee]=ie.value()}re._pushContext(),G=x(G);var se=H?G.apply(void 0,q):G(q),fe=re._popContext();return v.checkForgottenReturns(se,fe,"Promise.using",re),se}),re=W.lastly(function(){var q=new u.PromiseInspection(W);return T(Q,q)});return Q.promise=re,re._setOnCancel(Q),re},u.prototype._setDisposable=function(I){this._bitField=131072|this._bitField,this._disposer=I},u.prototype._isDisposable=function(){return(131072&this._bitField)>0},u.prototype._getDisposer=function(){return this._disposer},u.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},u.prototype.disposer=function(I){if(typeof I=="function")return new A(I,this,p());throw new w}}},{"./errors":12,"./util":36}],36:[function(a,s,l){var u,f=a("./es5"),d=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var H=u;return u=null,H.apply(this,arguments)}catch(Q){return p.e=Q,p}}function g(H){return H==null||H===!0||H===!1||typeof H=="string"||typeof H=="number"}function w(H,Q,Z){if(g(H))return H;var te={value:Z,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(H,Q,te),H}var y=function(){var H=[Array.prototype,Object.prototype,Function.prototype],Q=function(X){for(var $=0;$<H.length;++$)if(H[$]===X)return!0;return!1};if(f.isES5){var Z=Object.getOwnPropertyNames;return function(X){for(var $=[],V=Object.create(null);X!=null&&!Q(X);){var W;try{W=Z(X)}catch{return $}for(var re=0;re<W.length;++re){var q=W[re];if(!V[q]){V[q]=!0;var ee=Object.getOwnPropertyDescriptor(X,q);ee!=null&&ee.get==null&&ee.set==null&&$.push(q)}}X=f.getPrototypeOf(X)}return $}}var te={}.hasOwnProperty;return function(X){if(Q(X))return[];var $=[];e:for(var V in X)if(te.call(X,V))$.push(V);else{for(var W=0;W<H.length;++W)if(te.call(H[W],V))continue e;$.push(V)}return $}}(),_=/this\s*\.\s*\S+\s*=/,x=/^[a-z$_][a-z$_0-9]*$/i;function O(H){try{return H+""}catch{return"[no string representation]"}}function E(H){return H instanceof Error||H!==null&&typeof H=="object"&&typeof H.message=="string"&&typeof H.name=="string"}function T(H){return E(H)&&f.propertyIsWritable(H,"stack")}var k="stack"in new Error?function(H){return T(H)?H:new Error(O(H))}:function(H){if(T(H))return H;try{throw new Error(O(H))}catch(Q){return Q}};function A(H){return{}.toString.call(H)}var D=function(H){return f.isArray(H)?H:null};if(typeof Symbol<"u"&&Symbol.iterator){var R=typeof Array.from=="function"?function(H){return Array.from(H)}:function(H){for(var Q,Z=[],te=H[Symbol.iterator]();!(Q=te.next()).done;)Z.push(Q.value);return Z};D=function(H){return f.isArray(H)?H:H!=null&&typeof H[Symbol.iterator]=="function"?R(H):null}}var I=r!==void 0&&A(r).toLowerCase()==="[object process]",z=r!==void 0&&r.env!==void 0,G={isClass:function(H){try{if(typeof H=="function"){var Q=f.names(H.prototype),Z=f.isES5&&Q.length>1,te=Q.length>0&&!(Q.length===1&&Q[0]==="constructor"),X=_.test(H+"")&&f.names(H).length>0;if(Z||te||X)return!0}return!1}catch{return!1}},isIdentifier:function(H){return x.test(H)},inheritedDataKeys:y,getDataPropertyOrDefault:function(H,Q,Z){if(!f.isES5)return{}.hasOwnProperty.call(H,Q)?H[Q]:void 0;var te=Object.getOwnPropertyDescriptor(H,Q);return te!=null?te.get==null&&te.set==null?te.value:Z:void 0},thrower:function(H){throw H},isArray:f.isArray,asArray:D,notEnumerableProp:w,isPrimitive:g,isObject:function(H){return typeof H=="function"||typeof H=="object"&&H!==null},isError:E,canEvaluate:d,errorObj:p,tryCatch:function(H){return u=H,v},inherits:function(H,Q){var Z={}.hasOwnProperty;function te(){for(var X in this.constructor=H,this.constructor$=Q,Q.prototype)Z.call(Q.prototype,X)&&X.charAt(X.length-1)!=="$"&&(this[X+"$"]=Q.prototype[X])}return te.prototype=Q.prototype,H.prototype=new te,H.prototype},withAppended:function(H,Q){var Z,te=H.length,X=new Array(te+1);for(Z=0;Z<te;++Z)X[Z]=H[Z];return X[Z]=Q,X},maybeWrapAsError:function(H){return g(H)?new Error(O(H)):H},toFastProperties:function(H){return H},filledRange:function(H,Q,Z){for(var te=new Array(H),X=0;X<H;++X)te[X]=Q+X+Z;return te},toString:O,canAttachTrace:T,ensureErrorObject:k,originatesFromRejection:function(H){return H!=null&&(H instanceof Error.__BluebirdErrorTypes__.OperationalError||H.isOperational===!0)},markAsOriginatingFromRejection:function(H){try{w(H,"isOperational",!0)}catch{}},classString:A,copyDescriptors:function(H,Q,Z){for(var te=f.names(H),X=0;X<te.length;++X){var $=te[X];if(Z($))try{f.defineProperty(Q,$,f.getDescriptor(H,$))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:I,hasEnvVariables:z,env:function(H){return z?r.env[H]:void 0},global:m,getNativePromise:function(){if(typeof Promise=="function")try{var H=new Promise(function(){});if({}.toString.call(H)==="[object Promise]")return Promise}catch{}},domainBind:function(H,Q){return H.bind(Q)}};G.isRecentNode=G.isNode&&function(){var H=r.versions.node.split(".").map(Number);return H[0]===0&&H[1]>10||H[0]>0}(),G.isNode&&G.toFastProperties(r);try{throw new Error}catch(H){G.lastLineError=H}s.exports=G},{"./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 o=0,a=r.length;o<a;o++)if(r[o]==="\r"){if(r[o+1]===`
`){i.eol=`\r
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
`){i.eol=`
`;break}}return i.eol||`
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,a){var s=i(o,a);return r(s)?s: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,o=r||i||Function("return this")();e.exports=o},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(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(e,t,n){(function(r,i){var o=n(6);e.exports=O;var a,s=n(37);O.ReadableState=x,n(12).EventEmitter;var l=function(V,W){return V.listeners(W).length},u=n(24),f=n(7).Buffer,d=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var m=n(41),v=void 0;v=m&&m.debuglog?m.debuglog("stream"):function(){};var g,w=n(42),y=n(25);p.inherits(O,u);var _=["error","close","destroy","pause","resume"];function x(V,W){a=a||n(1),V=V||{};var re=W instanceof a;this.objectMode=!!V.objectMode,re&&(this.objectMode=this.objectMode||!!V.readableObjectMode);var q=V.highWaterMark,ee=V.readableHighWaterMark,ie=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:re&&(ee||ee===0)?ee:ie,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,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=V.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,V.encoding&&(g||(g=n(26).StringDecoder),this.decoder=new g(V.encoding),this.encoding=V.encoding)}function O(V){if(a=a||n(1),!(this instanceof O))return new O(V);this._readableState=new x(V,this),this.readable=!0,V&&(typeof V.read=="function"&&(this._read=V.read),typeof V.destroy=="function"&&(this._destroy=V.destroy)),u.call(this)}function E(V,W,re,q,ee){var ie,se=V._readableState;return W===null?(se.reading=!1,function(fe,j){if(!j.ended){if(j.decoder){var P=j.decoder.end();P&&P.length&&(j.buffer.push(P),j.length+=j.objectMode?1:P.length)}j.ended=!0,D(fe)}}(V,se)):(ee||(ie=function(fe,j){var P;return function(B){return f.isBuffer(B)||B instanceof d}(j)||typeof j=="string"||j===void 0||fe.objectMode||(P=new TypeError("Invalid non-string/buffer chunk")),P}(se,W)),ie?V.emit("error",ie):se.objectMode||W&&W.length>0?(typeof W=="string"||se.objectMode||Object.getPrototypeOf(W)===f.prototype||(W=function(fe){return f.from(fe)}(W)),q?se.endEmitted?V.emit("error",new Error("stream.unshift() after end event")):T(V,se,W,!0):se.ended?V.emit("error",new Error("stream.push() after EOF")):(se.reading=!1,se.decoder&&!re?(W=se.decoder.write(W),se.objectMode||W.length!==0?T(V,se,W,!1):I(V,se)):T(V,se,W,!1))):q||(se.reading=!1)),function(fe){return!fe.ended&&(fe.needReadable||fe.length<fe.highWaterMark||fe.length===0)}(se)}function T(V,W,re,q){W.flowing&&W.length===0&&!W.sync?(V.emit("data",re),V.read(0)):(W.length+=W.objectMode?1:re.length,q?W.buffer.unshift(re):W.buffer.push(re),W.needReadable&&D(V)),I(V,W)}Object.defineProperty(O.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(V){this._readableState&&(this._readableState.destroyed=V)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(V,W){this.push(null),W(V)},O.prototype.push=function(V,W){var re,q=this._readableState;return q.objectMode?re=!0:typeof V=="string"&&((W=W||q.defaultEncoding)!==q.encoding&&(V=f.from(V,W),W=""),re=!0),E(this,V,W,!1,re)},O.prototype.unshift=function(V){return E(this,V,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(V){return g||(g=n(26).StringDecoder),this._readableState.decoder=new g(V),this._readableState.encoding=V,this};var k=8388608;function A(V,W){return V<=0||W.length===0&&W.ended?0:W.objectMode?1:V!=V?W.flowing&&W.length?W.buffer.head.data.length:W.length:(V>W.highWaterMark&&(W.highWaterMark=function(re){return re>=k?re=k:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}(V)),V<=W.length?V:W.ended?W.length:(W.needReadable=!0,0))}function D(V){var W=V._readableState;W.needReadable=!1,W.emittedReadable||(v("emitReadable",W.flowing),W.emittedReadable=!0,W.sync?o.nextTick(R,V):R(V))}function R(V){v("emit readable"),V.emit("readable"),Q(V)}function I(V,W){W.readingMore||(W.readingMore=!0,o.nextTick(z,V,W))}function z(V,W){for(var re=W.length;!W.reading&&!W.flowing&&!W.ended&&W.length<W.highWaterMark&&(v("maybeReadMore read 0"),V.read(0),re!==W.length);)re=W.length;W.readingMore=!1}function G(V){v("readable nexttick read 0"),V.read(0)}function H(V,W){W.reading||(v("resume read 0"),V.read(0)),W.resumeScheduled=!1,W.awaitDrain=0,V.emit("resume"),Q(V),W.flowing&&!W.reading&&V.read(0)}function Q(V){var W=V._readableState;for(v("flow",W.flowing);W.flowing&&V.read()!==null;);}function Z(V,W){return W.length===0?null:(W.objectMode?re=W.buffer.shift():!V||V>=W.length?(re=W.decoder?W.buffer.join(""):W.buffer.length===1?W.buffer.head.data:W.buffer.concat(W.length),W.buffer.clear()):re=function(q,ee,ie){var se;return q<ee.head.data.length?(se=ee.head.data.slice(0,q),ee.head.data=ee.head.data.slice(q)):se=q===ee.head.data.length?ee.shift():ie?function(fe,j){var P=j.head,B=1,J=P.data;for(fe-=J.length;P=P.next;){var K=P.data,le=fe>K.length?K.length:fe;if(le===K.length?J+=K:J+=K.slice(0,fe),(fe-=le)==0){le===K.length?(++B,P.next?j.head=P.next:j.head=j.tail=null):(j.head=P,P.data=K.slice(le));break}++B}return j.length-=B,J}(q,ee):function(fe,j){var P=f.allocUnsafe(fe),B=j.head,J=1;for(B.data.copy(P),fe-=B.data.length;B=B.next;){var K=B.data,le=fe>K.length?K.length:fe;if(K.copy(P,P.length-fe,0,le),(fe-=le)==0){le===K.length?(++J,B.next?j.head=B.next:j.head=j.tail=null):(j.head=B,B.data=K.slice(le));break}++J}return j.length-=J,P}(q,ee),se}(V,W.buffer,W.decoder),re);var re}function te(V){var W=V._readableState;if(W.length>0)throw new Error('"endReadable()" called on non-empty stream');W.endEmitted||(W.ended=!0,o.nextTick(X,W,V))}function X(V,W){V.endEmitted||V.length!==0||(V.endEmitted=!0,W.readable=!1,W.emit("end"))}function $(V,W){for(var re=0,q=V.length;re<q;re++)if(V[re]===W)return re;return-1}O.prototype.read=function(V){v("read",V),V=parseInt(V,10);var W=this._readableState,re=V;if(V!==0&&(W.emittedReadable=!1),V===0&&W.needReadable&&(W.length>=W.highWaterMark||W.ended))return v("read: emitReadable",W.length,W.ended),W.length===0&&W.ended?te(this):D(this),null;if((V=A(V,W))===0&&W.ended)return W.length===0&&te(this),null;var q,ee=W.needReadable;return v("need readable",ee),(W.length===0||W.length-V<W.highWaterMark)&&v("length less than watermark",ee=!0),W.ended||W.reading?v("reading or ended",ee=!1):ee&&(v("do read"),W.reading=!0,W.sync=!0,W.length===0&&(W.needReadable=!0),this._read(W.highWaterMark),W.sync=!1,W.reading||(V=A(re,W))),(q=V>0?Z(V,W):null)===null?(W.needReadable=!0,V=0):W.length-=V,W.length===0&&(W.ended||(W.needReadable=!0),re!==V&&W.ended&&te(this)),q!==null&&this.emit("data",q),q},O.prototype._read=function(V){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(V,W){var re=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=V;break;case 1:q.pipes=[q.pipes,V];break;default:q.pipes.push(V)}q.pipesCount+=1,v("pipe count=%d opts=%j",q.pipesCount,W);var ee=W&&W.end===!1||V===i.stdout||V===i.stderr?le:ie;function ie(){v("onend"),V.end()}q.endEmitted?o.nextTick(ee):re.once("end",ee),V.on("unpipe",function he(Ee,ue){v("onunpipe"),Ee===re&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),V.removeListener("close",J),V.removeListener("finish",K),V.removeListener("drain",se),V.removeListener("error",B),V.removeListener("unpipe",he),re.removeListener("end",ie),re.removeListener("end",le),re.removeListener("data",P),fe=!0,!q.awaitDrain||V._writableState&&!V._writableState.needDrain||se())});var se=function(he){return function(){var Ee=he._readableState;v("pipeOnDrain",Ee.awaitDrain),Ee.awaitDrain&&Ee.awaitDrain--,Ee.awaitDrain===0&&l(he,"data")&&(Ee.flowing=!0,Q(he))}}(re);V.on("drain",se);var fe=!1,j=!1;function P(he){v("ondata"),j=!1,V.write(he)!==!1||j||((q.pipesCount===1&&q.pipes===V||q.pipesCount>1&&$(q.pipes,V)!==-1)&&!fe&&(v("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,j=!0),re.pause())}function B(he){v("onerror",he),le(),V.removeListener("error",B),l(V,"error")===0&&V.emit("error",he)}function J(){V.removeListener("finish",K),le()}function K(){v("onfinish"),V.removeListener("close",J),le()}function le(){v("unpipe"),re.unpipe(V)}return re.on("data",P),function(he,Ee,ue){if(typeof he.prependListener=="function")return he.prependListener(Ee,ue);he._events&&he._events[Ee]?s(he._events[Ee])?he._events[Ee].unshift(ue):he._events[Ee]=[ue,he._events[Ee]]:he.on(Ee,ue)}(V,"error",B),V.once("close",J),V.once("finish",K),V.emit("pipe",re),q.flowing||(v("pipe resume"),re.resume()),V},O.prototype.unpipe=function(V){var W=this._readableState,re={hasUnpiped:!1};if(W.pipesCount===0)return this;if(W.pipesCount===1)return V&&V!==W.pipes?this:(V||(V=W.pipes),W.pipes=null,W.pipesCount=0,W.flowing=!1,V&&V.emit("unpipe",this,re),this);if(!V){var q=W.pipes,ee=W.pipesCount;W.pipes=null,W.pipesCount=0,W.flowing=!1;for(var ie=0;ie<ee;ie++)q[ie].emit("unpipe",this,re);return this}var se=$(W.pipes,V);return se===-1?this:(W.pipes.splice(se,1),W.pipesCount-=1,W.pipesCount===1&&(W.pipes=W.pipes[0]),V.emit("unpipe",this,re),this)},O.prototype.on=function(V,W){var re=u.prototype.on.call(this,V,W);if(V==="data")this._readableState.flowing!==!1&&this.resume();else if(V==="readable"){var q=this._readableState;q.endEmitted||q.readableListening||(q.readableListening=q.needReadable=!0,q.emittedReadable=!1,q.reading?q.length&&D(this):o.nextTick(G,this))}return re},O.prototype.addListener=O.prototype.on,O.prototype.resume=function(){var V=this._readableState;return V.flowing||(v("resume"),V.flowing=!0,function(W,re){re.resumeScheduled||(re.resumeScheduled=!0,o.nextTick(H,W,re))}(this,V)),this},O.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},O.prototype.wrap=function(V){var W=this,re=this._readableState,q=!1;for(var ee in V.on("end",function(){if(v("wrapped end"),re.decoder&&!re.ended){var se=re.decoder.end();se&&se.length&&W.push(se)}W.push(null)}),V.on("data",function(se){v("wrapped data"),re.decoder&&(se=re.decoder.write(se)),(!re.objectMode||se!=null)&&(re.objectMode||se&&se.length)&&(W.push(se)||(q=!0,V.pause()))}),V)this[ee]===void 0&&typeof V[ee]=="function"&&(this[ee]=function(se){return function(){return V[se].apply(V,arguments)}}(ee));for(var ie=0;ie<_.length;ie++)V.on(_[ie],this.emit.bind(this,_[ie]));return this._read=function(se){v("wrapped _read",se),q&&(q=!1,V.resume())},this},Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),O._fromList=Z}).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(o,a){o.emit("error",a)}e.exports={destroy:function(o,a){var s=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(a?a(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!a&&f?(r.nextTick(i,s,f),s._writableState&&(s._writableState.errorEmitted=!0)):a&&a(f)}),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(v){switch((v=""+v)&&v.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 o(v){var g;switch(this.encoding=function(w){var y=function(_){if(!_)return"utf8";for(var x;;)switch(_){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 _;default:if(x)return;_=(""+_).toLowerCase(),x=!0}}(w);if(typeof y!="string"&&(r.isEncoding===i||!i(w)))throw new Error("Unknown encoding: "+w);return y||w}(v),this.encoding){case"utf16le":this.text=l,this.end=u,g=4;break;case"utf8":this.fillLast=s,g=4;break;case"base64":this.text=f,this.end=d,g=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(g)}function a(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function s(v){var g=this.lastTotal-this.lastNeed,w=function(y,_,x){if((192&_[0])!=128)return y.lastNeed=0,"<22>";if(y.lastNeed>1&&_.length>1){if((192&_[1])!=128)return y.lastNeed=1,"<22>";if(y.lastNeed>2&&_.length>2&&(192&_[2])!=128)return y.lastNeed=2,"<22>"}}(this,v);return w!==void 0?w:this.lastNeed<=v.length?(v.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,g,0,v.length),void(this.lastNeed-=v.length))}function l(v,g){if((v.length-g)%2==0){var w=v.toString("utf16le",g);if(w){var y=w.charCodeAt(w.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",g,v.length-1)}function u(v){var g=v&&v.length?this.write(v):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,w)}return g}function f(v,g){var w=(v.length-g)%3;return w===0?v.toString("base64",g):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",g,v.length-w))}function d(v){var g=v&&v.length?this.write(v):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function p(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}t.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var g,w;if(this.lastNeed){if((g=this.fillLast(v))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<v.length?g?g+this.text(v,w):this.text(v,w):g||""},o.prototype.end=function(v){var g=v&&v.length?this.write(v):"";return this.lastNeed?g+"<22>":g},o.prototype.text=function(v,g){var w=function(_,x,O){var E=x.length-1;if(E<O)return 0;var T=a(x[E]);return T>=0?(T>0&&(_.lastNeed=T-1),T):--E<O||T===-2?0:(T=a(x[E]))>=0?(T>0&&(_.lastNeed=T-2),T):--E<O||T===-2?0:(T=a(x[E]))>=0?(T>0&&(T===2?T=0:_.lastNeed=T-3),T):0}(this,v,g);if(!this.lastNeed)return v.toString("utf8",g);this.lastTotal=w;var y=v.length-(w-this.lastNeed);return v.copy(this.lastChar,0,y),v.toString("utf8",g,y)},o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:(function(u,f){var d=this._transformState;d.transforming=!1;var p=d.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,f!=null&&this.push(f),p(u);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",a)}function a(){var l=this;typeof this._flush=="function"?this._flush(function(u,f){s(l,u,f)}):s(this,null,null)}function s(l,u,f){if(u)return l.emit("error",u);if(f!=null&&l.push(f),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(l,u){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,u)},o.prototype._transform=function(l,u,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(l,u,f){var d=this._transformState;if(d.writecb=f,d.writechunk=l,d.writeencoding=u,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},o.prototype._read=function(l){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},o.prototype._destroy=function(l,u){var f=this;r.prototype._destroy.call(this,l,function(d){u(d),f.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),a=r.allocUnsafe?r.allocUnsafe(o):new r(o);return a.write(i),a},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var a=[],s=0;s<i.length;s++)o.indexOf(s)>-1&&a.push(i[s]);return a},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 o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,l,u){var f=o.call(this,"Error: "+s+". JSON Line number: "+l+(u?" near: "+u:""))||this;return f.err=s,f.line=l,f.extra=u,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},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(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var w in g)g.hasOwnProperty(w)&&(v[w]=g[w])};return function(v,g){function w(){this.constructor=v}m(v,g),v.prototype=g===null?Object.create(g):(w.prototype=g.prototype,new w)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),l=n(51),u=o(n(15)),f=n(52),d=n(105),p=function(m){function v(g,w){w===void 0&&(w={});var y=m.call(this,w)||this;return y.options=w,y.params=s.mergeParams(g),y.runtime=l.initParseRuntime(y),y.result=new d.Result(y),y.processor=new f.ProcessorLocal(y),y.once("error",function(_){r(function(){y.result.processError(_),y.emit("done",_)})}),y.once("done",function(){y.processor.destroy()}),y}return i(v,m),v.prototype.preRawData=function(g){return this.runtime.preRawDataHook=g,this},v.prototype.preFileLine=function(g){return this.runtime.preFileLineHook=g,this},v.prototype.subscribe=function(g,w,y){return this.parseRuntime.subscribe={onNext:g,onError:w,onCompleted:y},this},v.prototype.fromFile=function(g,w){var y=this,_=n(!function(){var x=new Error("Cannot find module 'fs'");throw x.code="MODULE_NOT_FOUND",x}());return _.exists(g,function(x){x?_.createReadStream(g,w).pipe(y):y.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},v.prototype.fromStream=function(g){return g.pipe(this),this},v.prototype.fromString=function(g){g.toString();var w=new a.Readable,y=0;return w._read=function(_){if(y>=g.length)this.push(null);else{var x=g.substr(y,_);this.push(x),y+=_}},this.fromStream(w)},v.prototype.then=function(g,w){var y=this;return new u.default(function(_,x){y.parseRuntime.then={onfulfilled:function(O){_(g?g(O):O)},onrejected:function(O){w?_(w(O)):x(O)}}})},Object.defineProperty(v.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),v.prototype._transform=function(g,w,y){var _=this;this.processor.process(g).then(function(x){if(x.length>0)return _.runtime.started=!0,_.result.processResult(x)}).then(function(){_.emit("drained"),y()},function(x){_.runtime.hasError=!0,_.runtime.error=x,_.emit("error",x),y()})},v.prototype._flush=function(g){var w=this;this.processor.flush().then(function(y){if(y.length>0)return w.result.processResult(y)}).then(function(){w.processEnd(g)},function(y){w.emit("error",y),g()})},v.prototype.processEnd=function(g){this.result.endProcess(),this.emit("done"),g()},Object.defineProperty(v.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),v}(a.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,u={},f=!1,d=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?s=function(g){i.nextTick(function(){v(g)})}:function(){if(o.postMessage&&!o.importScripts){var g=!0,w=o.onmessage;return o.onmessage=function(){g=!1},o.postMessage("","*"),o.onmessage=w,g}}()?function(){var g="setImmediate$"+Math.random()+"$",w=function(y){y.source===o&&typeof y.data=="string"&&y.data.indexOf(g)===0&&v(+y.data.slice(g.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),s=function(y){o.postMessage(g+y,"*")}}():o.MessageChannel?function(){var g=new MessageChannel;g.port1.onmessage=function(w){v(w.data)},s=function(w){g.port2.postMessage(w)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var g=d.documentElement;s=function(w){var y=d.createElement("script");y.onreadystatechange=function(){v(w),y.onreadystatechange=null,g.removeChild(y),y=null},g.appendChild(y)}}():s=function(g){setTimeout(v,0,g)},p.setImmediate=function(g){typeof g!="function"&&(g=new Function(""+g));for(var w=new Array(arguments.length-1),y=0;y<w.length;y++)w[y]=arguments[y+1];var _={callback:g,args:w};return u[l]=_,s(l),l++},p.clearImmediate=m}function m(g){delete u[g]}function v(g){if(f)setTimeout(v,0,g);else{var w=u[g];if(w){f=!0;try{(function(y){var _=y.callback,x=y.args;switch(x.length){case 0:_();break;case 1:_(x[0]);break;case 2:_(x[0],x[1]);break;case 3:_(x[0],x[1],x[2]);break;default:_.apply(a,x)}})(w)}finally{m(g),f=!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(o,a){var s=this;function l(g){o.writable&&o.write(g)===!1&&s.pause&&s.pause()}function u(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",u),o._isStdio||a&&a.end===!1||(s.on("end",d),s.on("close",p));var f=!1;function d(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function m(g){if(v(),r.listenerCount(this,"error")===0)throw g}function v(){s.removeListener("data",l),o.removeListener("drain",u),s.removeListener("end",d),s.removeListener("close",p),s.removeListener("error",m),o.removeListener("error",m),s.removeListener("end",v),s.removeListener("close",v),o.removeListener("close",v)}return s.on("error",m),o.on("error",m),s.on("end",v),s.on("close",v),o.on("close",v),o.emit("pipe",s),o}},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(p){var m=u(p),v=m[0],g=m[1];return 3*(v+g)/4-g},t.toByteArray=function(p){for(var m,v=u(p),g=v[0],w=v[1],y=new o(3*(g+w)/4-w),_=0,x=w>0?g-4:g,O=0;O<x;O+=4)m=i[p.charCodeAt(O)]<<18|i[p.charCodeAt(O+1)]<<12|i[p.charCodeAt(O+2)]<<6|i[p.charCodeAt(O+3)],y[_++]=m>>16&255,y[_++]=m>>8&255,y[_++]=255&m;return w===2&&(m=i[p.charCodeAt(O)]<<2|i[p.charCodeAt(O+1)]>>4,y[_++]=255&m),w===1&&(m=i[p.charCodeAt(O)]<<10|i[p.charCodeAt(O+1)]<<4|i[p.charCodeAt(O+2)]>>2,y[_++]=m>>8&255,y[_++]=255&m),y},t.fromByteArray=function(p){for(var m,v=p.length,g=v%3,w=[],y=0,_=v-g;y<_;y+=16383)w.push(d(p,y,y+16383>_?_:y+16383));return g===1?(m=p[v-1],w.push(r[m>>2]+r[m<<4&63]+"==")):g===2&&(m=(p[v-2]<<8)+p[v-1],w.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),w.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=m),[v,v===m?0:4-v%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function d(p,m,v){for(var g,w=[],y=m;y<v;y+=3)g=(p[y]<<16&16711680)+(p[y+1]<<8&65280)+(255&p[y+2]),w.push(f(g));return w.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(n,r,i,o,a){var s,l,u=8*a-o-1,f=(1<<u)-1,d=f>>1,p=-7,m=i?a-1:0,v=i?-1:1,g=n[r+m];for(m+=v,s=g&(1<<-p)-1,g>>=-p,p+=u;p>0;s=256*s+n[r+m],m+=v,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=v,p-=8);if(s===0)s=1-d;else{if(s===f)return l?NaN:1/0*(g?-1:1);l+=Math.pow(2,o),s-=d}return(g?-1:1)*l*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var l,u,f,d=8*s-a-1,p=(1<<d)-1,m=p>>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:s-1,w=o?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+m>=1?v/f:v*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(u=0,l=p):l+m>=1?(u=(r*f-1)*Math.pow(2,a),l+=m):(u=r*Math.pow(2,m-1)*Math.pow(2,a),l=0));a>=8;n[i+g]=255&u,g+=w,u/=256,a-=8);for(l=l<<a|u,d+=a;d>0;n[i+g]=255&l,g+=w,l/=256,d-=8);n[i+g-w]|=128*y}},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 o(a,s,l){a.copy(s,l)}e.exports=function(){function a(){(function(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var l=this.head,u=""+l.data;l=l.next;)u+=s+l.data;return u},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),u=this.head,f=0;u;)o(u.data,l,f),f+=u.data.length,u=u.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,l){l(null,a)}},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 o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={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&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var x in _)_.hasOwnProperty(x)&&(y[x]=_[x])};return function(y,_){function x(){this.constructor=y}w(y,_),y.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),l=n(54),u=o(n(16)),f=n(57),d=n(28),p=n(58),m=o(n(59)),v=o(n(29)),g=function(w){function y(){var _=w!==null&&w.apply(this,arguments)||this;return _.rowSplit=new p.RowSplit(_.converter),_.eolEmitted=!1,_._needEmitEol=void 0,_.headEmitted=!1,_._needEmitHead=void 0,_}return i(y,w),y.prototype.flush=function(){var _=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var x=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(x,!0).then(function(O){return _.runtime.csvLineBuffer&&_.runtime.csvLineBuffer.length>0?s.default.reject(v.default.unclosed_quote(_.runtime.parsedLineNumber,_.runtime.csvLineBuffer.toString())):s.default.resolve(O)})}return s.default.resolve([])},y.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(y.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(y.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),y.prototype.process=function(_,x){var O,E=this;return x===void 0&&(x=!1),O=x?_.toString():l.prepareData(_,this.converter.parseRuntime),s.default.resolve().then(function(){return E.runtime.preRawDataHook?E.runtime.preRawDataHook(O):O}).then(function(T){return T&&T.length>0?E.processCSV(T,x):s.default.resolve([])})},y.prototype.processCSV=function(_,x){var O=this,E=this.params,T=this.runtime;T.eol||u.default(_,T),this.needEmitEol&&!this.eolEmitted&&T.eol&&(this.converter.emit("eol",T.eol),this.eolEmitted=!0),E.ignoreEmpty&&!T.started&&(_=d.trimLeft(_));var k=f.stringToLines(_,T);return x?(k.lines.push(k.partial),k.partial=""):this.prependLeftBuf(d.bufFromString(k.partial)),k.lines.length>0?(T.preFileLineHook?this.runPreLineHook(k.lines):s.default.resolve(k.lines)).then(function(A){return T.started||O.runtime.headers?O.processCSVBody(A):O.processDataWithHead(A)}):s.default.resolve([])},y.prototype.processDataWithHead=function(_){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var x="",O=[];_.length;){var E=x+_.shift(),T=this.rowSplit.parse(E);if(T.closed){O=T.cells,x="";break}x=E+u.default(E,this.runtime)}if(this.prependLeftBuf(d.bufFromString(x)),O.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=O}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(_)},y.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var _=this.runtime.headers,x=0;x<_.length;x++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(_[x])){if(!this.params.includeColumns||!this.params.includeColumns.test(_[x]))continue;this.runtime.selectedColumns.push(x)}else this.runtime.selectedColumns.push(x);else this.params.includeColumns?this.params.includeColumns.test(_[x])&&this.runtime.selectedColumns.push(x):this.runtime.selectedColumns.push(x);this.runtime.headers=d.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},y.prototype.processCSVBody=function(_){if(this.params.output==="line")return _;var x=this.rowSplit.parseMultiLines(_);return this.prependLeftBuf(d.bufFromString(x.partial)),this.params.output==="csv"?x.rowsCells:m.default(x.rowsCells,this.converter)},y.prototype.prependLeftBuf=function(_){_&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([_,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=_)},y.prototype.runPreLineHook=function(_){var x=this;return new s.default(function(O,E){(function T(k,A,D,R){if(D>=k.length)R();else if(A.preFileLineHook){var I=k[D],z=A.preFileLineHook(I,A.parsedLineNumber+D);if(D++,z&&z.then)z.then(function(G){k[D-1]=G,T(k,A,D,R)});else{for(k[D-1]=z;D<k.length;)k[D]=A.preFileLineHook(k[D],A.parsedLineNumber+D),D++;R()}}else R()})(_,x.runtime,0,function(T){T?E(T):O(_)})})},y}(a.Processor);t.ProcessorLocal=g}).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(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(a,s){var l=function(f,d){return d.csvLineBuffer&&d.csvLineBuffer.length>0?r.concat([d.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var u=function(f,d){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(d.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,s).toString("utf8");return s.started===!1?o.default(u):u}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).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(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,a){var s=i.default(o,a),l=o.split(s);return{lines:l,partial:l.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function l(u){this.conv=u,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=u.parseParam.quote,this.trim=u.parseParam.trim,this.escape=u.parseParam.escape}return Object.defineProperty(l.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(u){if(u.length===0||this.conv.parseParam.ignoreEmpty&&u.trim().length===0)return{cells:[],closed:!0};var f=this.quote,d=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(u)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,m=u.split(p);if(f==="off"){if(d)for(var v=0;v<m.length;v++)m[v]=m[v].trim();return{cells:m,closed:!0}}return this.toCSVRow(m,d,f,p)},l.prototype.toCSVRow=function(u,f,d,p){for(var m=[],v=!1,g="",w=0,y=u.length;w<y;w++){var _=u[w];!v&&f&&(_=o.trimLeft(_));var x=_.length;if(v)this.isQuoteClose(_)?(v=!1,g+=p+(_=_.substr(0,x-1)),g=this.escapeQuote(g),f&&(g=o.trimRight(g)),m.push(g),g=""):g+=p+_;else{if(x===2&&_===this.quote+this.quote){m.push("");continue}if(this.isQuoteOpen(_)){if(_=_.substr(1),this.isQuoteClose(_)){_=_.substring(0,_.lastIndexOf(d)),_=this.escapeQuote(_),m.push(_);continue}if(_.indexOf(d)!==-1){for(var O=0,E="",T=0,k=_;T<k.length;T++){var A=k[T];A===d&&E!==this.escape?(O++,E=""):E=A}if(O%2==1){f&&(_=o.trimRight(_)),m.push(d+_);continue}v=!0,g+=_;continue}v=!0,g+=_;continue}f&&(_=o.trimRight(_)),m.push(_)}}return{cells:m,closed:!v}},l.prototype.getDelimiter=function(u){var f;if(this.conv.parseParam.delimiter==="auto")f=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var d=0,p=",";return f.forEach(function(m){var v=u.split(m).length;v>d&&(p=m,d=v)}),p},l.prototype.isQuoteOpen=function(u){var f=this.quote,d=this.escape;return u[0]===f&&(u[1]!==f||u[1]===d&&(u[2]===f||u.length===2))},l.prototype.isQuoteClose=function(u){var f=this.quote,d=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var p=0,m=u.length-1;u[m]===f||u[m]===d;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(u){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var d=this.cachedRegExp[f];return u.replace(d,this.quote)},l.prototype.parseMultiLines=function(u){for(var f=[],d="";u.length;){var p=d+u.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),d=""):d=p+(i.default(p,this.conv.parseRuntime)||`
`))}return{rowsCells:f,partial:d}},l}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(y,_,x){if(_.parseParam.checkColumn&&_.parseRuntime.headers&&y.length!==_.parseRuntime.headers.length)throw i.default.column_mismatched(_.parseRuntime.parsedLineNumber+x);return function(O,E,T){for(var k=!1,A={},D=0,R=O.length;D<R;D++){var I=O[D];if(!T.parseParam.ignoreEmpty||I!==""){k=!0;var z=E[D];z&&z!==""||(z=E[D]="field"+(D+1));var G=u(z,D,T);if(G){var H=G(I,z,A,O,D);H!==void 0&&f(A,z,H,T,D)}else T.parseParam.checkType&&(I=m(I,z,D,T)(I)),I!==void 0&&f(A,z,I,T,D)}}return k?A:null}(y,_.parseRuntime.headers||[],_)||null}t.default=function(y,_){for(var x=[],O=0,E=y.length;O<E;O++){var T=s(y[O],_,O);T&&x.push(T)}return x};var l={string:g,number:v,omit:function(){}};function u(y,_,x){if(x.parseRuntime.columnConv[_]!==void 0)return x.parseRuntime.columnConv[_];var O=x.parseParam.colParser[y];if(O===void 0)return x.parseRuntime.columnConv[_]=null;if(typeof O=="object"&&(O=O.cellParser||"string"),typeof O=="string"){O=O.trim().toLowerCase();var E=l[O];return x.parseRuntime.columnConv[_]=E||null}return x.parseRuntime.columnConv[_]=typeof O=="function"?O:null}function f(y,_,x,O,E){if(!O.parseRuntime.columnValueSetter[E])if(O.parseParam.flatKeys)O.parseRuntime.columnValueSetter[E]=d;else if(_.indexOf(".")>-1){for(var T=_.split("."),k=!0;T.length>0;)if(T.shift().length===0){k=!1;break}!k||O.parseParam.colParser[_]&&O.parseParam.colParser[_].flat?O.parseRuntime.columnValueSetter[E]=d:O.parseRuntime.columnValueSetter[E]=p}else O.parseRuntime.columnValueSetter[E]=d;O.parseParam.nullObject===!0&&x==="null"&&(x=null),O.parseRuntime.columnValueSetter[E](y,_,x)}function d(y,_,x){y[_]=x}function p(y,_,x){o.default(y,_,x)}function m(y,_,x,O){return O.parseRuntime.headerType[x]?O.parseRuntime.headerType[x]:_.indexOf("number#!")>-1?O.parseRuntime.headerType[x]=v:_.indexOf("string#!")>-1?O.parseRuntime.headerType[x]=g:O.parseParam.checkType?O.parseRuntime.headerType[x]=w:O.parseRuntime.headerType[x]=g}function v(y){var _=parseFloat(y);return isNaN(_)?y:_}function g(y){return y.toString()}function w(y){var _=y.trim();return _===""?g(y):a.test(_)?v(y):_.length===5&&_.toLowerCase()==="false"||_.length===4&&_.toLowerCase()==="true"?function(x){var O=x.trim();return O.length!==5||O.toLowerCase()!=="false"}(y):_[0]==="{"&&_[_.length-1]==="}"||_[0]==="["&&_[_.length-1]==="]"?function(x){try{return JSON.parse(x)}catch{return x}}(y):g(y)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(l,u,f,d){if(!a(l))return l;for(var p=-1,m=(u=i(u,l)).length,v=m-1,g=l;g!=null&&++p<m;){var w=s(u[p]),y=f;if(p!=v){var _=g[w];(y=d?d(_,w,g):void 0)===void 0&&(y=a(_)?_:o(u[p+1])?[]:{})}r(g,w,y),g=g[w]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,l){var u=a[s];o.call(a,s)&&i(u,l)&&(l!==void 0||s in a)||r(a,s,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,f=l.toString,d=u.hasOwnProperty,p=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!o(m)||i(m))&&(r(m)?p:s).test(a(m))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var a=r(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[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,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var u=o.call(l,s),f=l[s];try{l[s]=void 0;var d=!0}catch{}var p=a.call(l);return d&&(u?l[s]=f:delete l[s]),p}},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 o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},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),o=n(77),a=n(100);e.exports=function(s,l){return r(s)?s:i(s,l)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,l){if(r(s))return!1;var u=typeof s;return!(u!="number"&&u!="symbol"&&u!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||l!=null&&s in Object(l)}},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,o=n(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(r,function(l,u,f,d){s.push(f?d.replace(i,"$1"):u||l)}),s});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var l=function(){var u=arguments,f=s?s.apply(this,u):u[0],d=l.cache;if(d.has(f))return d.get(f);var p=a.apply(this,u);return l.cache=d.set(f,p)||d,p};return l.cache=new(o.Cache||r),l}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var p=u[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var p=u[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},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(o){var a=this.__data__;if(r){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return r?a[o]!==void 0:i.call(a,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var p=u[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},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(o){var a=this.__data__,s=r(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][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,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,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 o=r(this,i).delete(i);return this.size-=o?1:0,o}},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,o){var a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?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),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function u(f){if(typeof f=="string")return f;if(o(f))return i(f,u)+"";if(a(f))return l?l.call(f):"";var d=f+"";return d=="0"&&1/f==-1/0?"-0":d}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i<o;)a[i]=r(n[i],i,n);return a}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="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 o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function l(u){this.converter=u,this.finalResult=[]}return Object.defineProperty(l.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(u){var f=this,d=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&d===0&&s(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function v(g,w,y,_,x){if(y>=g.length)x();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var O=w.parseRuntime.subscribe.onNext,E=g[y],T=O(E,w.parseRuntime.parsedLineNumber+y);if(y++,T&&T.then)T.then(function(){(function(A,D,R,I,z,G,H){z&&s(R,H),v(A,R,I,z,G)})(g,0,w,y,_,x,E)},x);else{for(_&&s(w,E);y<g.length;){var k=g[y];O(k,w.parseRuntime.parsedLineNumber+y),y++,_&&s(w,k)}x()}}else{if(_)for(;y<g.length;)k=g[y++],s(w,k);x()}}(u,f.converter,0,f.needPushDownstream,function(v){v?m(v):(f.appendFinalResult(u),p())}):(f.appendFinalResult(u),p())})},l.prototype.appendFinalResult=function(u){this.needEmitAll&&(this.finalResult=this.finalResult.concat(u)),this.converter.parseRuntime.parsedLineNumber+=u.length},l.prototype.processError=function(u){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(u),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(u)},l.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"&&s(this.converter,"]"+o.EOL)},l}();function s(l,u){if(typeof u!="object"||l.options.objectMode)l.push(u);else{var f=JSON.stringify(u);l.push(f+(l.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},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"/"}}]);const Kze=Tu(qze),Zze=e=>new Promise(t=>{Kze().fromString(e).then(t)}),Xze=new Gze,Qze=e=>Xze.parse(e),Jze="shlink",M8=e=>`${Jze}.${e}`;class eVe{constructor(t){Xu(this,"get",t=>{const n=this.localStorage.getItem(M8(t));return n?JSON.parse(n):void 0});Xu(this,"set",(t,n)=>this.localStorage.setItem(M8(t),JSON.stringify(n)));this.localStorage=t}}class tVe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const nVe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",eVe,"localStorage"),e.service("TagColorsStorage",tVe,"Storage"),e.constant("csvToJson",Zze),e.constant("jsonToCsv",Qze),e.serviceFactory("useTimeoutToggle",()=>aB)},Bu=new SQ,{container:HA}=Bu,rVe=(e,t)=>(...n)=>e[t](...n),iVe=(e,t)=>({...e,[t]:rVe(HA,t)}),oVe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),Rw=(e,t=[])=>t$(e?oVe(e):null,t.reduce(iVe,{}));Mfe(Bu,Rw);S9e(Bu,Rw);BQ(Bu);hze(Bu,Rw);nVe(Bu);$ze(Bu,Rw);var WA={},YC={exports:{}};(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 u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return r.apply(void 0,u)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return l(u[0]===!0,!1,u)}t.merge=r;function i(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return l(u[0]===!0,!0,u)}t.recursive=i;function o(u){if(Array.isArray(u)){for(var f=[],d=0;d<u.length;++d)f.push(o(u[d]));return f}else if(a(u)){var f={};for(var d in u)f[d]=o(u[d]);return f}else return u}t.clone=o;function a(u){return u&&typeof u=="object"&&!Array.isArray(u)}t.isPlainObject=a;function s(u,f){if(!a(u))return f;for(var d in f)d==="__proto__"||d==="constructor"||d==="prototype"||(u[d]=a(u[d])&&a(f[d])?s(u[d],f[d]):f[d]);return u}function l(u,f,d){var p;(u||!a(p=d.shift()))&&(p={});for(var m=0;m<d.length;++m){var v=d[m];if(a(v)){for(var g in v)if(!(g==="__proto__"||g==="constructor"||g==="prototype")){var w=u?o(v[g]):v[g];p[g]=f?s(p[g],w):w}}}return p}})(YC,YC.exports);var aVe=YC.exports;(function(e){var t=n(aVe);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=G,e.combineLoads=z,e.load=I,e.save=R;function n($){return $&&$.__esModule?$:{default:$}}function r($,V){return l($)||s($,V)||o($,V)||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 o($,V){if($){if(typeof $=="string")return a($,V);var W=Object.prototype.toString.call($).slice(8,-1);return W==="Object"&&$.constructor&&(W=$.constructor.name),W==="Map"||W==="Set"?Array.from($):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?a($,V):void 0}}function a($,V){(V==null||V>$.length)&&(V=$.length);for(var W=0,re=Array(V);W<V;W++)re[W]=$[W];return re}function s($,V){var W=$==null?null:typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(W!=null){var re,q,ee=[],ie=!0,se=!1;try{for(W=W.call($);!(ie=(re=W.next()).done)&&(ee.push(re.value),!(V&&ee.length===V));ie=!0);}catch(fe){se=!0,q=fe}finally{try{ie||W.return==null||W.return()}finally{if(se)throw q}}return ee}}function l($){if(Array.isArray($))return $}function u($){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},u($)}function f($,V,W){return V in $?Object.defineProperty($,V,{value:W,enumerable:!0,configurable:!0,writable:!0}):$[V]=W,$}var d="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",m="_",v=[],g=[],w=0,y=!1,_=!1,x=new Map;function O($){console.warn(d,$)}function E(){}var T=function($){return $?E:O};function k($,V){return V===void 0?null:$.length===1?V[$[0]]:k($.slice(1),V[$[0]])}function A($){function V(re,q){return re.length===0?q:V(re.slice(1),f({},re[0],q))}var W=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return V($.split(".").reverse(),W)}function D($){this.warnFn=$||O}Object.defineProperty(D.prototype,"length",{get:function(){try{return localStorage.length}catch($){this.warnFn($)}return 0},configurable:!0,enumerable:!0}),D.prototype.key=function($){try{return localStorage.key($)}catch(V){this.warnFn(V)}return null},D.prototype.setItem=function($,V){try{localStorage.setItem($,JSON.stringify(V))}catch(W){this.warnFn(W)}},D.prototype.getItem=function($){try{return JSON.parse(localStorage.getItem($))}catch(V){this.warnFn(V)}return null},D.prototype.removeItem=function($){try{localStorage.removeItem($)}catch(V){this.warnFn(V)}};function R(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},V=$.states,W=V===void 0?v:V,re=$.ignoreStates,q=re===void 0?g:re,ee=$.namespace,ie=ee===void 0?p:ee,se=$.namespaceSeparator,fe=se===void 0?m:se,j=$.debounce,P=j===void 0?w:j,B=$.disableWarnings,J=B===void 0?_:B;return function(K){return function(le){return function(he){function Ee(ke,Ae){return 1<ke.split(".").length?k(ke.split("."),Ae):k([ke],Ae)}function ue(){W.length===0?Ce.setItem(ie,ve):W.forEach(function(ke){var Ae=ie+fe+ke,ce=Ee(ke,ve);ce?Ce.setItem(Ae,ce):Ce.removeItem(Ae)})}var ve,ge=T(J),Oe=le(he);H(W)||(console.error(d,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),W=v),H(q)||(console.error(d,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),q=g),0<q.length&&(q=q.filter(function(ke){return Q(ke)?ke:void console.error(d,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),Q(ie)||(console.error(d,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ie=p),Q(fe)||(console.error(d,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),fe=m),Z(P)||(console.error(d,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),P=w),ve=0<q.length?X(q,K.getState()):K.getState();var Ce=new D(ge);return P?(x.get(W+ie)&&clearTimeout(x.get(W+ie)),x.set(W+ie,setTimeout(function(){ue()},P))):ue(),Oe}}}}function I(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},V=$.states,W=V===void 0?v:V,re=$.immutablejs,q=re===void 0?y:re,ee=$.namespace,ie=ee===void 0?p:ee,se=$.namespaceSeparator,fe=se===void 0?m:se,j=$.preloadedState,P=j===void 0?{}:j,B=$.disableWarnings,J=B===void 0?_:B,K=T(J);H(W)||(console.error(d,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),W=v),Q(ie)||(console.error(d,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ie=p),Q(fe)||(console.error(d,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),fe=m),q===!0&&K("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 le=new D(K),he=P;if(W.length===0){var Ee=le.getItem(ie);Ee&&(he=Ee)}else W.forEach(function(ue){var ve=ie+fe+ue,ge=le.getItem(ve);ge?he=t.default.recursive(he,A(ue,ge)):K("Invalid load '"+ve+"' 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 he}function z(){for(var $={},V=arguments.length,W=Array(V),re=0;re<V;re++)W[re]=arguments[re];return W.forEach(function(q){for(var ee in te(q)||(console.error(d,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),q={}),q)$[ee]=q[ee]}),$}function G(){var $=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},V=$.namespace,W=V===void 0?p:V,re=$.disableWarnings,q=re===void 0?_:re,ee=T(q);Q(W)||(console.error(d,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),W=p);for(var ie,se=new D(ee),fe=se.length,j=0;j<fe;j++)ie=se.key(j),ie&&ie.slice(0,W.length)===W&&se.removeItem(ie)}function H($){return Object.prototype.toString.call($)==="[object Array]"}function Q($){return typeof $=="string"}function Z($){return typeof $=="number"&&isFinite($)&&Math.floor($)===$}function te($){return $!==null&&u($)==="object"}function X($,V){var W=Object.entries(V).reduce(function(re,q){var ee=r(q,2),ie=ee[0];return ee[1],$.indexOf(ie)===-1&&(re[ie]=V[ie]),re},{});return W}})(WA);const sVe=e=>Vj({appUpdated:Nfe,servers:Z9e,selectedServer:e.selectedServerReducer,settings:kze}),lVe=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},uVe=!0,bY={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},cVe=lVe(WA.load(bY)),fVe=e=>VB({devTools:!uVe,reducer:sVe(e),preloadedState:cVe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(WA.save(bY))}),dVe=!!(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 pVe(e){if("serviceWorker"in navigator){if(new URL(l0.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${l0.homepage}/service-worker.js`;dVe?(hVe(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")})):_Y(n,e)})}}function _Y(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 hVe(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()})}):_Y(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const wY=fVe(HA),{App:mVe,ScrollToTop:vVe,ErrorHandler:gVe,appUpdateAvailable:yVe}=HA;GU(document.getElementById("root")).render(b.jsx(n$,{store:wY,children:b.jsx(d$,{basename:l0.homepage,children:b.jsx(gVe,{children:b.jsx(vVe,{children:b.jsx(mVe,{})})})})}));pVe({onUpdate(){wY.dispatch(yVe())}});