mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +03:00
1035 lines
1.6 MiB
1035 lines
1.6 MiB
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 Zu=(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 Cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D8={exports:{}},l_={},I8={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 Wm=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"),zN=Symbol.iterator;function $G(e){return e===null||typeof e!="object"?null:(e=zN&&e[zN]||e["@@iterator"],typeof e=="function"?e:null)}var F8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U8=Object.assign,$8={};function td(e,t,n){this.props=e,this.context=t,this.refs=$8,this.updater=n||F8}td.prototype.isReactComponent={};td.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")};td.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function B8(){}B8.prototype=td.prototype;function GC(e,t,n){this.props=e,this.context=t,this.refs=$8,this.updater=n||F8}var qC=GC.prototype=new B8;qC.constructor=GC;U8(qC,td.prototype);qC.isPureReactComponent=!0;var VN=Array.isArray,z8=Object.prototype.hasOwnProperty,KC={current:null},V8={key:!0,ref:!0,__self:!0,__source:!0};function H8(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)z8.call(t,r)&&!V8.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:Wm,type:e,key:o,ref:a,props:i,_owner:KC.current}}function BG(e,t){return{$$typeof:Wm,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===Wm}function zG(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var HN=/\/+/g;function lx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zG(""+e.key):t.toString(36)}function ry(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 Wm:case PG:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+lx(a,0):r,VN(i)?(n="",e!=null&&(n=e.replace(HN,"$&/")+"/"),ry(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(HN,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",VN(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+lx(o,s);a+=ry(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+=ry(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 Jv(e,t,n){if(e==null)return e;var r=[],i=0;return ry(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},iy={transition:null},HG={ReactCurrentDispatcher:Lr,ReactCurrentBatchConfig:iy,ReactCurrentOwner:KC};dt.Children={map:Jv,forEach:function(e,t,n){Jv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Jv(e,function(){t++}),t},toArray:function(e){return Jv(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=td;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=U8({},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)z8.call(t,l)&&!V8.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:Wm,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=H8;dt.createFactory=function(e){var t=H8.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=iy.transition;iy.transition={};try{e()}finally{iy.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";I8.exports=dt;var F=I8.exports;const M=Cu(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 W8(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=W8;l_.jsxs=W8;D8.exports=l_;var _=D8.exports,Y8={exports:{}},hi={},G8={exports:{}},q8={};/**
|
||
* @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,b=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 b=="function")G=function(){b(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}}}})(q8);G8.exports=q8;var XG=G8.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 K8=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 Z8=new Set,ph={};function ku(e,t){Jc(e,t),Jc(e+"Capture",t)}function Jc(e,t){for(ph[e]=t,e=0;e<t.length;e++)Z8.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]*$/,WN={},YN={};function JG(e){return u1.call(YN,e)?!0:u1.call(WN,e)?!1:QG.test(e)?YN[e]=!0:(WN[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=K8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,eg=Symbol.for("react.element"),vc=Symbol.for("react.portal"),gc=Symbol.for("react.fragment"),ek=Symbol.for("react.strict_mode"),c1=Symbol.for("react.profiler"),X8=Symbol.for("react.provider"),Q8=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"),gs=Symbol.for("react.lazy"),J8=Symbol.for("react.offscreen"),GN=Symbol.iterator;function qd(e){return e===null||typeof e!="object"?null:(e=GN&&e[GN]||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 gc:return"Fragment";case vc: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 Q8:return(e.displayName||"Context")+".Consumer";case X8: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 gs: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 Ys(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eF(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iq(e){var t=eF(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 tg(e){e._valueTracker||(e._valueTracker=iq(e))}function tF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eF(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ly(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 qN(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ys(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 nF(e,t){t=t.checked,t!=null&&JC(e,"checked",t,!1)}function m1(e,t){nF(e,t);var n=Ys(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,Ys(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function KN(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"||Ly(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wp=Array.isArray;function Bc(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=""+Ys(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 ZN(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:Ys(n)}}function rF(e,t){var n=Ys(t.value),r=Ys(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 XN(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function iF(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"?iF(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ng,oF=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(ng=ng||document.createElement("div"),ng.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ng.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 aF(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 sF(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=aF(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,zc=null,Vc=null;function QN(e){if(e=qm(e)){if(typeof x1!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=p_(t),x1(e.stateNode,e.type,t))}}function lF(e){zc?Vc?Vc.push(e):Vc=[e]:zc=e}function uF(){if(zc){var e=zc,t=Vc;if(Vc=zc=null,QN(e),t)for(e=0;e<t.length;e++)QN(t[e])}}function cF(e,t){return e(t)}function fF(){}var dx=!1;function dF(e,t,n){if(dx)return e(t,n);dx=!0;try{return cF(e,t,n)}finally{dx=!1,(zc!==null||Vc!==null)&&(fF(),uF())}}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,Ry=null,Dy=!1,S1=null,lq={onError:function(e){Rp=!0,Ry=e}};function uq(e,t,n,r,i,o,a,s,l){Rp=!1,Ry=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=Ry;Rp=!1,Ry=null}else throw Error(Te(198));Dy||(Dy=!0,S1=u)}}function ju(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 pF(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 JN(e){if(ju(e)!==e)throw Error(Te(188))}function fq(e){var t=e.alternate;if(!t){if(t=ju(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 JN(i),e;if(o===r)return JN(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 hF(e){return e=fq(e),e!==null?mF(e):null}function mF(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mF(e);if(t!==null)return t;e=e.sibling}return null}var vF=si.unstable_scheduleCallback,e3=si.unstable_cancelCallback,dq=si.unstable_shouldYield,pq=si.unstable_requestPaint,mn=si.unstable_now,hq=si.unstable_getCurrentPriorityLevel,ik=si.unstable_ImmediatePriority,gF=si.unstable_UserBlockingPriority,Iy=si.unstable_NormalPriority,mq=si.unstable_LowPriority,yF=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 rg=64,ig=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 Fy(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 bF(){var e=rg;return rg<<=1,!(rg&4194240)&&(rg=64),e}function px(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ym(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 _F(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wF,ak,xF,OF,SF,T1=!1,og=[],Ms=null,Ls=null,Rs=null,vh=new Map,gh=new Map,xs=[],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 t3(e,t){switch(e){case"focusin":case"focusout":Ms=null;break;case"dragenter":case"dragleave":Ls=null;break;case"mouseover":case"mouseout":Rs=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=qm(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 Ms=Zd(Ms,e,t,n,r,i),!0;case"dragenter":return Ls=Zd(Ls,e,t,n,r,i),!0;case"mouseover":return Rs=Zd(Rs,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 EF(e){var t=Bl(e.target);if(t!==null){var n=ju(t);if(n!==null){if(t=n.tag,t===13){if(t=pF(n),t!==null){e.blockedOn=t,SF(e.priority,function(){xF(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 oy(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=qm(n),t!==null&&ak(t),e.blockedOn=n,!1;t.shift()}return!0}function n3(e,t,n){oy(e)&&n.delete(t)}function Eq(){T1=!1,Ms!==null&&oy(Ms)&&(Ms=null),Ls!==null&&oy(Ls)&&(Ls=null),Rs!==null&&oy(Rs)&&(Rs=null),vh.forEach(n3),gh.forEach(n3)}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<og.length){Xd(og[0],e);for(var n=1;n<og.length;n++){var r=og[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ms!==null&&Xd(Ms,e),Ls!==null&&Xd(Ls,e),Rs!==null&&Xd(Rs,e),vh.forEach(t),gh.forEach(t),n=0;n<xs.length;n++)r=xs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xs.length&&(n=xs[0],n.blockedOn===null);)EF(n),n.blockedOn===null&&xs.shift()}var Hc=Ha.ReactCurrentBatchConfig,Uy=!0;function Tq(e,t,n,r){var i=jt,o=Hc.transition;Hc.transition=null;try{jt=1,sk(e,t,n,r)}finally{jt=i,Hc.transition=o}}function Cq(e,t,n,r){var i=jt,o=Hc.transition;Hc.transition=null;try{jt=4,sk(e,t,n,r)}finally{jt=i,Hc.transition=o}}function sk(e,t,n,r){if(Uy){var i=C1(e,t,n,r);if(i===null)Ox(e,t,r,$y,n),t3(e,r);else if(Sq(i,e,t,n,r))r.stopPropagation();else if(t3(e,r),t&4&&-1<Oq.indexOf(e)){for(;i!==null;){var o=qm(i);if(o!==null&&wF(o),o=C1(e,t,n,r),o===null&&Ox(e,t,r,$y,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ox(e,t,r,null,n)}}var $y=null;function C1(e,t,n,r){if($y=null,e=rk(r),e=Bl(e),e!==null)if(t=ju(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pF(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 $y=e,null}function TF(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 gF:return 4;case Iy:case mq:return 16;case yF:return 536870912;default:return 16}default:return 16}}var Ss=null,lk=null,ay=null;function CF(){if(ay)return ay;var e,t=lk,n=t.length,r,i="value"in Ss?Ss.value:Ss.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 ay=i.slice(e,1<r?1-r:void 0)}function sy(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 ag(){return!0}function r3(){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)?ag:r3,this.isPropagationStopped=r3,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=ag)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ag)},persist:function(){},isPersistent:ag}),t}var nd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uk=mi(nd),Gm=on({},nd,{view:0,detail:0}),kq=mi(Gm),hx,mx,Qd,c_=on({},Gm,{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}}),i3=mi(c_),jq=on({},c_,{dataTransfer:0}),Pq=mi(jq),Aq=on({},Gm,{relatedTarget:0}),vx=mi(Aq),Nq=on({},nd,{animationName:0,elapsedTime:0,pseudoElement:0}),Mq=mi(Nq),Lq=on({},nd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rq=mi(Lq),Dq=on({},nd,{data:0}),o3=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({},Gm,{key:function(e){if(e.key){var t=Iq[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sy(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"?sy(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sy(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}),a3=mi(Vq),Hq=on({},Gm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ck}),Wq=mi(Hq),Yq=on({},nd,{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,kF=ka&&(!fk||Dp&&8<Dp&&11>=Dp),s3=String.fromCharCode(32),l3=!1;function jF(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 PF(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yc=!1;function Qq(e,t){switch(e){case"compositionend":return PF(t);case"keypress":return t.which!==32?null:(l3=!0,s3);case"textInput":return e=t.data,e===s3&&l3?null:e;default:return null}}function Jq(e,t){if(yc)return e==="compositionend"||!fk&&jF(e,t)?(e=CF(),ay=lk=Ss=null,yc=!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 kF&&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 u3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eK[e.type]:t==="textarea"}function AF(e,t,n,r){lF(r),t=By(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){zF(e,0)}function f_(e){var t=wc(e);if(tF(t))return e}function nK(e,t){if(e==="change")return t}var NF=!1;if(ka){var gx;if(ka){var yx="oninput"in document;if(!yx){var c3=document.createElement("div");c3.setAttribute("oninput","return;"),yx=typeof c3.oninput=="function"}gx=yx}else gx=!1;NF=gx&&(!document.documentMode||9<document.documentMode)}function f3(){Ip&&(Ip.detachEvent("onpropertychange",MF),bh=Ip=null)}function MF(e){if(e.propertyName==="value"&&f_(bh)){var t=[];AF(t,bh,e,rk(e)),dF(tK,t)}}function rK(e,t,n){e==="focusin"?(f3(),Ip=t,bh=n,Ip.attachEvent("onpropertychange",MF)):e==="focusout"&&f3()}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 d3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function p3(e,t){var n=d3(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=d3(n)}}function LF(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?LF(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function RF(){for(var e=window,t=Ly();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ly(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=RF(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&LF(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=p3(n,o);var a=p3(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,bc=null,k1=null,Fp=null,j1=!1;function h3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;j1||bc==null||bc!==Ly(r)||(r=bc,"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=By(k1,"onSelect"),0<r.length&&(t=new uk("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bc)))}function sg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _c={animationend:sg("Animation","AnimationEnd"),animationiteration:sg("Animation","AnimationIteration"),animationstart:sg("Animation","AnimationStart"),transitionend:sg("Transition","TransitionEnd")},bx={},DF={};ka&&(DF=document.createElement("div").style,"AnimationEvent"in window||(delete _c.animationend.animation,delete _c.animationiteration.animation,delete _c.animationstart.animation),"TransitionEvent"in window||delete _c.transitionend.transition);function d_(e){if(bx[e])return bx[e];if(!_c[e])return e;var t=_c[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in DF)return bx[e]=t[n];return e}var IF=d_("animationend"),FF=d_("animationiteration"),UF=d_("animationstart"),$F=d_("transitionend"),BF=new Map,m3="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 rl(e,t){BF.set(e,t),ku(t,[e])}for(var _x=0;_x<m3.length;_x++){var wx=m3[_x],cK=wx.toLowerCase(),fK=wx[0].toUpperCase()+wx.slice(1);rl(cK,"on"+fK)}rl(IF,"onAnimationEnd");rl(FF,"onAnimationIteration");rl(UF,"onAnimationStart");rl("dblclick","onDoubleClick");rl("focusin","onFocus");rl("focusout","onBlur");rl($F,"onTransitionEnd");Jc("onMouseEnter",["mouseout","mouseover"]);Jc("onMouseLeave",["mouseout","mouseover"]);Jc("onPointerEnter",["pointerout","pointerover"]);Jc("onPointerLeave",["pointerout","pointerover"]);ku("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ku("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ku("onBeforeInput",["compositionend","keypress","textInput","paste"]);ku("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ku("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ku("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 v3(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,cq(r,t,void 0,e),e.currentTarget=null}function zF(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;v3(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;v3(i,s,u),o=l}}}if(Dy)throw e=S1,Dy=!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)||(VF(t,e,2,!1),n.add(r))}function xx(e,t,n){var r=0;t&&(r|=4),VF(n,e,r,t)}var lg="_reactListening"+Math.random().toString(36).slice(2);function wh(e){if(!e[lg]){e[lg]=!0,Z8.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[lg]||(t[lg]=!0,xx("selectionchange",!1,t))}}function VF(e,t,n,r){switch(TF(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=Bl(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}dF(function(){var u=o,f=rk(n),d=[];e:{var p=BF.get(e);if(p!==void 0){var m=uk,v=e;switch(e){case"keypress":if(sy(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=i3;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 IF:case FF:case UF:m=Mq;break;case $F: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=a3}var g=(t&4)!==0,w=!g&&e==="scroll",y=g?p!==null?p+"Capture":null:p;g=[];for(var b=u,x;b!==null;){x=b;var O=x.stateNode;if(x.tag===5&&O!==null&&(x=O,y!==null&&(O=mh(b,y),O!=null&&g.push(xh(b,O,x)))),w)break;b=b.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)&&(Bl(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?Bl(v):null,v!==null&&(w=ju(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(g=i3,O="onMouseLeave",y="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=a3,O="onPointerLeave",y="onPointerEnter",b="pointer"),w=m==null?p:wc(m),x=v==null?p:wc(v),p=new g(O,b+"leave",m,n,f),p.target=w,p.relatedTarget=x,O=null,Bl(f)===u&&(g=new g(y,b+"enter",v,n,f),g.target=x,g.relatedTarget=w,O=g),w=O,m&&v)t:{for(g=m,y=v,b=0,x=g;x;x=Xu(x))b++;for(x=0,O=y;O;O=Xu(O))x++;for(;0<b-x;)g=Xu(g),b--;for(;0<x-b;)y=Xu(y),x--;for(;b--;){if(g===y||y!==null&&g===y.alternate)break t;g=Xu(g),y=Xu(y)}g=null}else g=null;m!==null&&g3(d,p,m,g,!1),v!==null&&w!==null&&g3(d,w,v,g,!0)}}e:{if(p=u?wc(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var E=nK;else if(u3(p))if(NF)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))){AF(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?wc(u):window,e){case"focusin":(u3(T)||T.contentEditable==="true")&&(bc=T,k1=u,Fp=null);break;case"focusout":Fp=k1=bc=null;break;case"mousedown":j1=!0;break;case"contextmenu":case"mouseup":case"dragend":j1=!1,h3(d,n,f);break;case"selectionchange":if(uK)break;case"keydown":case"keyup":h3(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 yc?jF(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(kF&&n.locale!=="ko"&&(yc||A!=="onCompositionStart"?A==="onCompositionEnd"&&yc&&(k=CF()):(Ss=f,lk="value"in Ss?Ss.value:Ss.textContent,yc=!0)),T=By(u,A),0<T.length&&(A=new o3(A,e,null,n,f),d.push({event:A,listeners:T}),k?A.data=k:(k=PF(n),k!==null&&(A.data=k)))),(k=Xq?Qq(e,n):Jq(e,n))&&(u=By(u,"onBeforeInput"),0<u.length&&(f=new o3("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=k))}zF(d,t)})}function xh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function By(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 Xu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function g3(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 y3(e){return(typeof e=="string"?e:""+e).replace(pK,`
|
||
`).replace(hK,"")}function ug(e,t,n){if(t=y3(t),y3(e)!==t&&n)throw Error(Te(425))}function zy(){}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,b3=typeof Promise=="function"?Promise:void 0,vK=typeof queueMicrotask=="function"?queueMicrotask:typeof b3<"u"?function(e){return b3.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 Ds(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 _3(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 rd=Math.random().toString(36).slice(2),Ro="__reactFiber$"+rd,Oh="__reactProps$"+rd,ja="__reactContainer$"+rd,L1="__reactEvents$"+rd,yK="__reactListeners$"+rd,bK="__reactHandles$"+rd;function Bl(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=_3(e);e!==null;){if(n=e[Ro])return n;e=_3(e)}return t}e=n,n=e.parentNode}return null}function qm(e){return e=e[Ro]||e[ja],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Te(33))}function p_(e){return e[Oh]||null}var R1=[],xc=-1;function il(e){return{current:e}}function Ht(e){0>xc||(e.current=R1[xc],R1[xc]=null,xc--)}function Dt(e,t){xc++,R1[xc]=e.current,e.current=t}var Gs={},yr=il(Gs),Br=il(!1),cu=Gs;function ef(e,t){var n=e.type.contextTypes;if(!n)return Gs;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 Vy(){Ht(Br),Ht(yr)}function w3(e,t,n){if(yr.current!==Gs)throw Error(Te(168));Dt(yr,t),Dt(Br,n)}function HF(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 Hy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gs,cu=yr.current,Dt(yr,e),Dt(Br,Br.current),!0}function x3(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=HF(e,t,cu),r.__reactInternalMemoizedMergedChildContext=e,Ht(Br),Ht(yr),Dt(yr,e)):Ht(Br),Dt(Br,n)}var pa=null,h_=!1,Ex=!1;function WF(e){pa===null?pa=[e]:pa.push(e)}function _K(e){h_=!0,WF(e)}function ol(){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)),vF(ik,ol),i}finally{jt=t,Ex=!1}}return null}var Oc=[],Sc=0,Wy=null,Yy=0,Ei=[],Ti=0,fu=null,ga=1,ya="";function jl(e,t){Oc[Sc++]=Yy,Oc[Sc++]=Wy,Wy=e,Yy=t}function YF(e,t,n){Ei[Ti++]=ga,Ei[Ti++]=ya,Ei[Ti++]=fu,fu=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&&(jl(e,1),YF(e,1,0))}function hk(e){for(;e===Wy;)Wy=Oc[--Sc],Oc[Sc]=null,Yy=Oc[--Sc],Oc[Sc]=null;for(;e===fu;)fu=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 GF(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 O3(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=Ds(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=fu!==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(!O3(e,t)){if(D1(e))throw Error(Te(418));t=Ds(n.nextSibling);var r=ri;t&&O3(e,t)?GF(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 S3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ri=e}function cg(e){if(e!==ri)return!1;if(!qt)return S3(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 qF(),Error(Te(418));for(;t;)GF(e,t),t=Ds(t.nextSibling)}if(S3(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=Ds(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ti=null}}else ti=ri?Ds(e.stateNode.nextSibling):null;return!0}function qF(){for(var e=ti;e;)e=Ds(e.nextSibling)}function tf(){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 Gy=il(null),qy=null,Ec=null,vk=null;function gk(){vk=Ec=qy=null}function yk(e){var t=Gy.current;Ht(Gy),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 Wc(e,t){qy=e,vk=Ec=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},Ec===null){if(qy===null)throw Error(Te(308));Ec=e,qy.dependencies={lanes:0,firstContext:e}}else Ec=Ec.next=e;return t}var zl=null;function bk(e){zl===null?zl=[e]:zl.push(e)}function KF(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 ys=!1;function _k(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ZF(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 Is(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 ly(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 E3(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 Ky(e,t,n,r){var i=e.updateQueue;ys=!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:ys=!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);pu|=a,e.lanes=a,e.memoizedState=d}}function T3(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 XF=new K8.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)?ju(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nr(),i=Us(e),o=Oa(r,i);o.payload=t,n!=null&&(o.callback=n),t=Is(e,o,i),t!==null&&(vo(t,e,i,r),ly(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nr(),i=Us(e),o=Oa(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Is(e,o,i),t!==null&&(vo(t,e,i,r),ly(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nr(),r=Us(e),i=Oa(n,r);i.tag=2,t!=null&&(i.callback=t),t=Is(e,i,r),t!==null&&(vo(t,e,r,n),ly(t,e,r))}};function C3(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 QF(e,t,n){var r=!1,i=Gs,o=t.contextType;return typeof o=="object"&&o!==null?o=Fi(o):(i=zr(t)?cu:yr.current,r=t.contextTypes,o=(r=r!=null)?ef(e,i):Gs),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 k3(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=XF,_k(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Fi(o):(o=zr(t)?cu:yr.current,i.context=ef(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),Ky(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===XF&&(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 fg(e,t){throw e=Object.prototype.toString.call(t),Error(Te(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function j3(e){var t=e._init;return t(e._payload)}function JF(e){function t(y,b){if(e){var x=y.deletions;x===null?(y.deletions=[b],y.flags|=16):x.push(b)}}function n(y,b){if(!e)return null;for(;b!==null;)t(y,b),b=b.sibling;return null}function r(y,b){for(y=new Map;b!==null;)b.key!==null?y.set(b.key,b):y.set(b.index,b),b=b.sibling;return y}function i(y,b){return y=$s(y,b),y.index=0,y.sibling=null,y}function o(y,b,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<b?(y.flags|=2,b):x):(y.flags|=2,b)):(y.flags|=1048576,b)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,b,x,O){return b===null||b.tag!==6?(b=Nx(x,y.mode,O),b.return=y,b):(b=i(b,x),b.return=y,b)}function l(y,b,x,O){var E=x.type;return E===gc?f(y,b,x.props.children,O,x.key):b!==null&&(b.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===gs&&j3(E)===b.type)?(O=i(b,x.props),O.ref=Jd(y,b,x),O.return=y,O):(O=hy(x.type,x.key,x.props,null,y.mode,O),O.ref=Jd(y,b,x),O.return=y,O)}function u(y,b,x,O){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=Mx(x,y.mode,O),b.return=y,b):(b=i(b,x.children||[]),b.return=y,b)}function f(y,b,x,O,E){return b===null||b.tag!==7?(b=Jl(x,y.mode,O,E),b.return=y,b):(b=i(b,x),b.return=y,b)}function d(y,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Nx(""+b,y.mode,x),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case eg:return x=hy(b.type,b.key,b.props,null,y.mode,x),x.ref=Jd(y,null,b),x.return=y,x;case vc:return b=Mx(b,y.mode,x),b.return=y,b;case gs:var O=b._init;return d(y,O(b._payload),x)}if(wp(b)||qd(b))return b=Jl(b,y.mode,x,null),b.return=y,b;fg(y,b)}return null}function p(y,b,x,O){var E=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return E!==null?null:s(y,b,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case eg:return x.key===E?l(y,b,x,O):null;case vc:return x.key===E?u(y,b,x,O):null;case gs:return E=x._init,p(y,b,E(x._payload),O)}if(wp(x)||qd(x))return E!==null?null:f(y,b,x,O,null);fg(y,x)}return null}function m(y,b,x,O,E){if(typeof O=="string"&&O!==""||typeof O=="number")return y=y.get(x)||null,s(b,y,""+O,E);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case eg:return y=y.get(O.key===null?x:O.key)||null,l(b,y,O,E);case vc:return y=y.get(O.key===null?x:O.key)||null,u(b,y,O,E);case gs:var T=O._init;return m(y,b,x,T(O._payload),E)}if(wp(O)||qd(O))return y=y.get(x)||null,f(b,y,O,E,null);fg(b,O)}return null}function v(y,b,x,O){for(var E=null,T=null,k=b,A=b=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),b=o(R,b,A),T===null?E=R:T.sibling=R,T=R,k=D}if(A===x.length)return n(y,k),qt&&jl(y,A),E;if(k===null){for(;A<x.length;A++)k=d(y,x[A],O),k!==null&&(b=o(k,b,A),T===null?E=k:T.sibling=k,T=k);return qt&&jl(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),b=o(D,b,A),T===null?E=D:T.sibling=D,T=D);return e&&k.forEach(function(I){return t(y,I)}),qt&&jl(y,A),E}function g(y,b,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=b,A=b=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),b=o(I,b,A),T===null?E=I:T.sibling=I,T=I,k=D}if(R.done)return n(y,k),qt&&jl(y,A),E;if(k===null){for(;!R.done;A++,R=x.next())R=d(y,R.value,O),R!==null&&(b=o(R,b,A),T===null?E=R:T.sibling=R,T=R);return qt&&jl(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),b=o(R,b,A),T===null?E=R:T.sibling=R,T=R);return e&&k.forEach(function(z){return t(y,z)}),qt&&jl(y,A),E}function w(y,b,x,O){if(typeof x=="object"&&x!==null&&x.type===gc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case eg:e:{for(var E=x.key,T=b;T!==null;){if(T.key===E){if(E=x.type,E===gc){if(T.tag===7){n(y,T.sibling),b=i(T,x.props.children),b.return=y,y=b;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===gs&&j3(E)===T.type){n(y,T.sibling),b=i(T,x.props),b.ref=Jd(y,T,x),b.return=y,y=b;break e}n(y,T);break}else t(y,T);T=T.sibling}x.type===gc?(b=Jl(x.props.children,y.mode,O,x.key),b.return=y,y=b):(O=hy(x.type,x.key,x.props,null,y.mode,O),O.ref=Jd(y,b,x),O.return=y,y=O)}return a(y);case vc:e:{for(T=x.key;b!==null;){if(b.key===T)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(y,b.sibling),b=i(b,x.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=Mx(x,y.mode,O),b.return=y,y=b}return a(y);case gs:return T=x._init,w(y,b,T(x._payload),O)}if(wp(x))return v(y,b,x,O);if(qd(x))return g(y,b,x,O);fg(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(y,b.sibling),b=i(b,x),b.return=y,y=b):(n(y,b),b=Nx(x,y.mode,O),b.return=y,y=b),a(y)):n(y,b)}return w}var nf=JF(!0),eU=JF(!1),Km={},zo=il(Km),Sh=il(Km),Eh=il(Km);function Vl(e){if(e===Km)throw Error(Te(174));return e}function wk(e,t){switch(Dt(Eh,t),Dt(Sh,e),Dt(zo,Km),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 rf(){Ht(zo),Ht(Sh),Ht(Eh)}function tU(e){Vl(Eh.current);var t=Vl(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=il(0);function Zy(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 uy=Ha.ReactCurrentDispatcher,Cx=Ha.ReactCurrentBatchConfig,du=0,nn=null,kn=null,zn=null,Xy=!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(du=o,nn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uy.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,uy.current=kK,e=n(r,i)}while(Up)}if(uy.current=Qy,t=kn!==null&&kn.next!==null,du=0,zn=kn=nn=null,Xy=!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((du&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,pu|=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,pu|=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 nU(){}function rU(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(aU.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||zn!==null&&zn.memoizedState.tag&1){if(n.flags|=2048,kh(9,oU.bind(null,n,r,i,t),void 0,null),Hn===null)throw Error(Te(349));du&30||iU(n,t,i)}return i}function iU(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 oU(e,t,n,r){t.value=n,t.getSnapshot=r,sU(t)&&lU(e)}function aU(e,t,n){return n(function(){sU(t)&&lU(e)})}function sU(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bo(e,n)}catch{return!0}}function lU(e){var t=Pa(e,1);t!==null&&vo(t,e,1,-1)}function P3(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 uU(){return Ui().memoizedState}function cy(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 A3(e,t){return cy(8390656,8,e,t)}function Ck(e,t){return v_(2048,8,e,t)}function cU(e,t){return v_(4,2,e,t)}function fU(e,t){return v_(4,4,e,t)}function dU(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 pU(e,t,n){return n=n!=null?n.concat([e]):null,v_(4,4,dU.bind(null,t,e),n)}function kk(){}function hU(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 mU(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 vU(e,t,n){return du&21?(bo(n,t)||(n=bF(),nn.lanes|=n,pu|=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 gU(){return Ui().memoizedState}function SK(e,t,n){var r=Us(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yU(e))bU(t,n);else if(n=KF(e,t,n,r),n!==null){var i=Nr();vo(n,e,r,i),_U(n,t,r)}}function EK(e,t,n){var r=Us(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yU(e))bU(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=KF(e,t,i,r),n!==null&&(i=Nr(),vo(n,e,r,i),_U(n,t,r))}}function yU(e){var t=e.alternate;return e===nn||t!==null&&t===nn}function bU(e,t){Up=Xy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _U(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ok(e,n)}}var Qy={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:A3,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cy(4194308,4,dU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cy(4194308,4,e,t)},useInsertionEffect:function(e,t){return cy(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:P3,useDebugValue:kk,useDeferredValue:function(e){return Mo().memoizedState=e},useTransition:function(){var e=P3(!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));du&30||iU(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,A3(aU.bind(null,r,o,e),[e]),r.flags|=2048,kh(9,oU.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:hU,useContext:Fi,useEffect:Ck,useImperativeHandle:pU,useInsertionEffect:cU,useLayoutEffect:fU,useMemo:mU,useReducer:kx,useRef:uU,useState:function(){return kx(Ch)},useDebugValue:kk,useDeferredValue:function(e){var t=Ui();return vU(t,kn.memoizedState,e)},useTransition:function(){var e=kx(Ch)[0],t=Ui().memoizedState;return[e,t]},useMutableSource:nU,useSyncExternalStore:rU,useId:gU,unstable_isNewReconciler:!1},kK={readContext:Fi,useCallback:hU,useContext:Fi,useEffect:Ck,useImperativeHandle:pU,useInsertionEffect:cU,useLayoutEffect:fU,useMemo:mU,useReducer:jx,useRef:uU,useState:function(){return jx(Ch)},useDebugValue:kk,useDeferredValue:function(e){var t=Ui();return kn===null?t.memoizedState=e:vU(t,kn.memoizedState,e)},useTransition:function(){var e=jx(Ch)[0],t=Ui().memoizedState;return[e,t]},useMutableSource:nU,useSyncExternalStore:rU,useId:gU,unstable_isNewReconciler:!1};function of(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 wU(e,t,n){n=Oa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){e0||(e0=!0,X1=r),B1(e,t)},n}function xU(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"&&(Fs===null?Fs=new Set([this]):Fs.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function N3(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 M3(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 L3(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,Is(n,t,1))),n.lanes|=1),e)}var PK=Ha.ReactCurrentOwner,Fr=!1;function Tr(e,t,n,r){t.child=e===null?eU(t,null,n,r):nf(t,e.child,n,r)}function R3(e,t,n,r,i){n=n.render;var o=t.ref;return Wc(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 D3(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,OU(e,t,o,r,i)):(e=hy(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=$s(o,r),e.ref=t.ref,e.return=t,t.child=e}function OU(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 SU(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(Cc,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(Cc,Jr),Jr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Dt(Cc,Jr),Jr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Dt(Cc,Jr),Jr|=r;return Tr(e,t,i,n),t.child}function EU(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)?cu:yr.current;return o=ef(t,o),Wc(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 I3(e,t,n,r,i){if(zr(n)){var o=!0;Hy(t)}else o=!1;if(Wc(t,i),t.stateNode===null)fy(e,t),QF(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)?cu:yr.current,u=ef(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)&&k3(t,a,r,u),ys=!1;var p=t.memoizedState;a.state=p,Ky(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Br.current||ys?(typeof f=="function"&&(U1(t,n,f,r),l=t.memoizedState),(s=ys||C3(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,ZF(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)?cu:yr.current,l=ef(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)&&k3(t,a,r,l),ys=!1,p=t.memoizedState,a.state=p,Ky(t,r,a,i);var v=t.memoizedState;s!==d||p!==v||Br.current||ys?(typeof m=="function"&&(U1(t,n,m,r),v=t.memoizedState),(u=ys||C3(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){EU(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&x3(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=nf(t,e.child,null,o),t.child=nf(t,null,s,o)):Tr(e,t,s,o),t.memoizedState=r.state,i&&x3(t,n,!0),t.child}function TU(e){var t=e.stateNode;t.pendingContext?w3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&w3(e,t.context,!1),wk(e,t.containerInfo)}function F3(e,t,n,r,i){return tf(),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 CU(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=Jl(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=$s(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=$s(s,o):(o=Jl(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=$s(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 dg(e,t,n,r){return r!==null&&mk(r),nf(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))),dg(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=Jl(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&nf(t,e.child,null,a),t.child.memoizedState=W1(a),t.memoizedState=H1,o);if(!(t.mode&1))return dg(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),dg(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))),dg(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=Ds(i.nextSibling),ri=t,qt=!0,ao=null,e!==null&&(Ei[Ti++]=ga,Ei[Ti++]=ya,Ei[Ti++]=fu,ga=e.id,ya=e.overflow,fu=t),t=jk(t,r.children),t.flags|=4096,t)}function U3(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 kU(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&&U3(e,n,t);else if(e.tag===19)U3(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&&Zy(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&&Zy(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 fy(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),pu|=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=$s(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$s(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function NK(e,t,n){switch(t.tag){case 3:TU(t),tf();break;case 5:tU(t);break;case 1:zr(t.type)&&Hy(t);break;case 4:wk(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Dt(Gy,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?CU(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 kU(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,SU(e,t,n)}return Aa(e,t,n)}var jU,Y1,PU,AU;jU=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(){};PU=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Vl(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=zy)}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)}};AU=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)&&Vy(),pr(t),null;case 3:return r=t.stateNode,rf(),Ht(Br),Ht(yr),Ok(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(cg(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=Vl(Eh.current);if(n=t.type,e!==null&&t.stateNode!=null)PU(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=Vl(zo.current),cg(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":qN(r,o),Ft("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ft("invalid",r);break;case"textarea":ZN(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&&ug(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&ug(r.textContent,s,e),i=["children",""+s]):ph.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ft("scroll",r)}switch(n){case"input":tg(r),KN(r,o,!0);break;case"textarea":tg(r),XN(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=zy)}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=iF(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,jU(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":qN(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":ZN(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"?sF(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&oF(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":tg(e),KN(e,r,!1);break;case"textarea":tg(e),XN(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ys(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Bc(e,!!r.multiple,o,!1):r.defaultValue!=null&&Bc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=zy)}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)AU(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Te(166));if(n=Vl(Eh.current),Vl(zo.current),cg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ro]=t,(o=r.nodeValue!==n)&&(e=ri,e!==null))switch(e.tag){case 3:ug(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ug(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))qF(),tf(),t.flags|=98560,o=!1;else if(o=cg(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 tf(),!(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 rf(),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)&&Vy(),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=Zy(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()>af&&(t.flags|=128,r=!0,ep(o,!1),t.lanes=4194304)}else{if(!r)if(e=Zy(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>af&&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)&&Vy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rf(),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));tf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ht(Jt),null;case 4:return rf(),null;case 10:return yk(t.type._context),null;case 22:case 23:return Lk(),null;case 24:return null;default:return null}}var pg=!1,vr=!1,RK=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Tc(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 $3=!1;function DK(e,t){if(P1=Uy,e=RF(),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},Uy=!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,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:no(t.type,g),w);y.__reactInternalSnapshotBeforeUpdate=b}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=$3,$3=!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 NU(e){var t=e.alternate;t!==null&&(e.alternate=null,NU(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 MU(e){return e.tag===5||e.tag===3||e.tag===4}function B3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||MU(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=zy));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 os(e,t,n){for(n=n.child;n!==null;)LU(e,t,n),n=n.sibling}function LU(e,t,n){if(Bo&&typeof Bo.onCommitFiberUnmount=="function")try{Bo.onCommitFiberUnmount(u_,n)}catch{}switch(n.tag){case 5:vr||Tc(n,t);case 6:var r=lr,i=ro;lr=null,os(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,os(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)}os(e,t,n);break;case 1:if(!vr&&(Tc(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)}os(e,t,n);break;case 21:os(e,t,n);break;case 22:n.mode&1?(vr=(r=vr)||n.memoizedState!==null,os(e,t,n),vr=r):os(e,t,n);break;default:os(e,t,n)}}function z3(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));LU(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;)RU(t,e),t=t.sibling}function RU(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&&Tc(n,n.return);break;case 5:if(eo(t,e),jo(e),r&512&&n!==null&&Tc(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&&nF(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"?sF(i,d):f==="dangerouslySetInnerHTML"?oF(i,d):f==="children"?hh(i,d):JC(i,f,d,u)}switch(s){case"input":m1(i,o);break;case"textarea":rF(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Bc(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?Bc(i,!!o.multiple,o.defaultValue,!0):Bc(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&&z3(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:Tc(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:Tc(p,p.return);break;case 22:if(p.memoizedState!==null){H3(d);continue}}m!==null?(m.return=p,$e=m):H3(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=aF("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&&z3(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(MU(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=B3(e);Z1(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=B3(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,DU(e)}function DU(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||pg;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||vr;s=pg;var u=vr;if(pg=a,(vr=l)&&!u)for($e=i;$e!==null;)a=$e,l=a.child,a.tag===22&&a.memoizedState!==null?W3(i):l!==null?(l.return=a,$e=l):W3(i);for(;o!==null;)$e=o,DU(o),o=o.sibling;$e=i,pg=s,vr=u}V3(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$e=o):V3(e)}}function V3(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&&T3(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}T3(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 H3(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 W3(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,Jy=Ha.ReactCurrentDispatcher,Pk=Ha.ReactCurrentOwner,Ni=Ha.ReactCurrentBatchConfig,gt=0,Hn=null,On=null,ur=0,Jr=0,Cc=il(0),jn=0,jh=null,pu=0,y_=0,Ak=0,Bp=null,Ir=null,Nk=0,af=1/0,fa=null,e0=!1,X1=null,Fs=null,hg=!1,Es=null,t0=0,zp=0,Q1=null,dy=-1,py=0;function Nr(){return gt&6?mn():dy!==-1?dy:dy=mn()}function Us(e){return e.mode&1?gt&2&&ur!==0?ur&-ur:wK.transition!==null?(py===0&&(py=bF()),py):(e=jt,e!==0||(e=window.event,e=e===void 0?16:TF(e.type)),e):1}function vo(e,t,n,r){if(50<zp)throw zp=0,Q1=null,Error(Te(185));Ym(e,n,r),(!(gt&2)||e!==Hn)&&(e===Hn&&(!(gt&2)&&(y_|=n),jn===4&&Os(e,ur)),Vr(e,r),n===1&>===0&&!(t.mode&1)&&(af=mn()+500,h_&&ol()))}function Vr(e,t){var n=e.callbackNode;wq(e,t);var r=Fy(e,e===Hn?ur:0);if(r===0)n!==null&&e3(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&e3(n),t===1)e.tag===0?_K(Y3.bind(null,e)):WF(Y3.bind(null,e)),vK(function(){!(gt&6)&&ol()}),n=null;else{switch(_F(r)){case 1:n=ik;break;case 4:n=gF;break;case 16:n=Iy;break;case 536870912:n=yF;break;default:n=Iy}n=HU(n,IU.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function IU(e,t){if(dy=-1,py=0,gt&6)throw Error(Te(327));var n=e.callbackNode;if(Yc()&&e.callbackNode!==n)return null;var r=Fy(e,e===Hn?ur:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=n0(e,r);else{t=r;var i=gt;gt|=2;var o=UU();(Hn!==e||ur!==t)&&(fa=null,af=mn()+500,Ql(e,t));do try{BK();break}catch(s){FU(e,s)}while(1);gk(),Jy.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,Ql(e,0),Os(e,r),Vr(e,mn()),n;if(t===6)Os(e,r);else{if(i=e.current.alternate,!(r&30)&&!UK(i)&&(t=n0(e,r),t===2&&(o=E1(e),o!==0&&(r=o,t=J1(e,o))),t===1))throw n=jh,Ql(e,0),Os(e,r),Vr(e,mn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Te(345));case 2:Pl(e,Ir,fa);break;case 3:if(Os(e,r),(r&130023424)===r&&(t=Nk+500-mn(),10<t)){if(Fy(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Nr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=M1(Pl.bind(null,e,Ir,fa),t);break}Pl(e,Ir,fa);break;case 4:if(Os(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(Pl.bind(null,e,Ir,fa),r);break}Pl(e,Ir,fa);break;case 5:Pl(e,Ir,fa);break;default:throw Error(Te(329))}}}return Vr(e,mn()),e.callbackNode===n?IU.bind(null,e):null}function J1(e,t){var n=Bp;return e.current.memoizedState.isDehydrated&&(Ql(e,t).flags|=256),e=n0(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 Os(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 Y3(e){if(gt&6)throw Error(Te(327));Yc();var t=Fy(e,0);if(!(t&1))return Vr(e,mn()),null;var n=n0(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,Ql(e,0),Os(e,t),Vr(e,mn()),n;if(n===6)throw Error(Te(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(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&&(af=mn()+500,h_&&ol())}}function hu(e){Es!==null&&Es.tag===0&&!(gt&6)&&Yc();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)&&ol()}}function Lk(){Jr=Cc.current,Ht(Cc)}function Ql(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&&Vy();break;case 3:rf(),Ht(Br),Ht(yr),Ok();break;case 5:xk(r);break;case 4:rf();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=$s(e.current,null),ur=Jr=t,jn=0,jh=null,Ak=y_=pu=0,Ir=Bp=null,zl!==null){for(t=0;t<zl.length;t++)if(n=zl[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}zl=null}return e}function FU(e,t){do{var n=On;try{if(gk(),uy.current=Qy,Xy){for(var r=nn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Xy=!1}if(du=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=M3(a);if(m!==null){m.flags&=-257,L3(m,a,s,o,t),m.mode&1&&N3(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)){N3(o,u,t),Rk();break e}l=Error(Te(426))}}else if(qt&&s.mode&1){var w=M3(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),L3(w,a,s,o,t),mk(of(l,s));break e}}o=l=of(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=wU(o,l,t);E3(o,y);break e;case 1:s=l;var b=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Fs===null||!Fs.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=xU(o,s,t);E3(o,O);break e}}o=o.return}while(o!==null)}BU(n)}catch(E){t=E,On===n&&n!==null&&(On=n=n.return);continue}break}while(1)}function UU(){var e=Jy.current;return Jy.current=Qy,e===null?Qy:e}function Rk(){(jn===0||jn===3||jn===2)&&(jn=4),Hn===null||!(pu&268435455)&&!(y_&268435455)||Os(Hn,ur)}function n0(e,t){var n=gt;gt|=2;var r=UU();(Hn!==e||ur!==t)&&(fa=null,Ql(e,t));do try{$K();break}catch(i){FU(e,i)}while(1);if(gk(),gt=n,Jy.current=r,On!==null)throw Error(Te(261));return Hn=null,ur=0,jn}function $K(){for(;On!==null;)$U(On)}function BK(){for(;On!==null&&!dq();)$U(On)}function $U(e){var t=VU(e.alternate,e,Jr);e.memoizedProps=e.pendingProps,t===null?BU(e):On=t,Pk.current=null}function BU(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 Pl(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 Yc();while(Es!==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)||hg||(hg=!0,HU(Iy,function(){return Yc(),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),RU(n,e),lK(A1),Uy=!!P1,A1=P1=null,e.current=n,IK(n),pq(),gt=s,jt=a,Ni.transition=o}else e.current=n;if(hg&&(hg=!1,Es=e,t0=i),o=e.pendingLanes,o===0&&(Fs=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(e0)throw e0=!1,e=X1,X1=null,e;return t0&1&&e.tag!==0&&Yc(),o=e.pendingLanes,o&1?e===Q1?zp++:(zp=0,Q1=e):zp=0,ol(),null}function Yc(){if(Es!==null){var e=_F(t0),t=Ni.transition,n=jt;try{if(Ni.transition=null,jt=16>e?16:e,Es===null)var r=!1;else{if(e=Es,Es=null,t0=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(NU(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 b=e.current;for($e=b;$e!==null;){a=$e;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,$e=x;else e:for(a=b;$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,ol(),Bo&&typeof Bo.onPostCommitFiberRoot=="function")try{Bo.onPostCommitFiberRoot(u_,e)}catch{}r=!0}return r}finally{jt=n,Ni.transition=t}}return!1}function G3(e,t,n){t=of(n,t),t=wU(e,t,1),e=Is(e,t,1),t=Nr(),e!==null&&(Ym(e,1,t),Vr(e,t))}function un(e,t,n){if(e.tag===3)G3(e,e,n);else for(;t!==null;){if(t.tag===3){G3(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fs===null||!Fs.has(r))){e=of(n,e),e=xU(t,e,1),t=Is(t,e,1),e=Nr(),t!==null&&(Ym(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?Ql(e,0):Ak|=n),Vr(e,t)}function zU(e,t){t===0&&(e.mode&1?(t=ig,ig<<=1,!(ig&130023424)&&(ig=4194304)):t=1);var n=Nr();e=Pa(e,t),e!==null&&(Ym(e,t,n),Vr(e,n))}function HK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zU(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),zU(e,n)}var VU;VU=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&&YF(t,Yy,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fy(e,t),e=t.pendingProps;var i=ef(t,yr.current);Wc(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,Hy(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(fy(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=I3(null,t,r,e,n);break e;case 11:t=R3(null,t,r,e,n);break e;case 14:t=D3(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),I3(e,t,r,i,n);case 3:e:{if(TU(t),e===null)throw Error(Te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ZF(e,t),Ky(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=of(Error(Te(423)),t),t=F3(e,t,r,n,i);break e}else if(r!==i){i=of(Error(Te(424)),t),t=F3(e,t,r,n,i);break e}else for(ti=Ds(t.stateNode.containerInfo.firstChild),ri=t,qt=!0,ao=null,n=eU(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tf(),r===i){t=Aa(e,t,n);break e}Tr(e,t,r,n)}t=t.child}return t;case 5:return tU(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),EU(e,t),Tr(e,t,a,n),t.child;case 6:return e===null&&I1(t),null;case 13:return CU(e,t,n);case 4:return wk(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nf(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),R3(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(Gy,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,Wc(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),D3(e,t,r,i,n);case 15:return OU(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:no(r,i),fy(e,t),t.tag=1,zr(r)?(e=!0,Hy(t)):e=!1,Wc(t,n),QF(t,r,i),$1(t,r,i,n),V1(null,t,r,!0,e,n);case 19:return kU(e,t,n);case 22:return SU(e,t,n)}throw Error(Te(156,t.tag))};function HU(e,t){return vF(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 $s(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 hy(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 gc:return Jl(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 J8:return b_(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X8:a=10;break e;case Q8:a=9;break e;case tk:a=11;break e;case nk:a=14;break e;case gs: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 Jl(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=J8,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:vc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function WU(e){if(!e)return Gs;e=e._reactInternals;e:{if(ju(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 HF(e,n,t)}return t}function YU(e,t,n,r,i,o,a,s,l){return e=Ik(n,r,!0,e,i,o,a,s,l),e.context=WU(null),n=e.current,r=Nr(),i=Us(n),o=Oa(r,i),o.callback=t??null,Is(n,o,i),e.current.lanes=i,Ym(e,i,r),Vr(e,r),e}function __(e,t,n,r){var i=t.current,o=Nr(),a=Us(i);return n=WU(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=Is(i,t,a),e!==null&&(vo(e,i,a,o),ly(e,i,a)),a}function r0(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 q3(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){q3(e,t),(e=e.alternate)&&q3(e,t)}function ZK(){return null}var GU=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;hu(function(){__(null,e,null,null)}),t[ja]=null}};function w_(e){this._internalRoot=e}w_.prototype.unstable_scheduleHydration=function(e){if(e){var t=OF();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xs.length&&t!==0&&t<xs[n].priority;n++);xs.splice(n,0,e),n===0&&EF(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 K3(){}function XK(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=r0(a);o.call(u)}}var a=YU(t,r,e,0,null,!1,!1,"",K3);return e._reactRootContainer=a,e[ja]=a.current,wh(e.nodeType===8?e.parentNode:e),hu(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=r0(l);s.call(u)}}var l=Ik(e,0,!1,null,null,!1,!1,"",K3);return e._reactRootContainer=l,e[ja]=l.current,wh(e.nodeType===8?e.parentNode:e),hu(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=r0(a);s.call(l)}}__(t,a,e,i)}else a=XK(n,t,e,i,r);return r0(a)}wF=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)&&(af=mn()+500,ol()))}break;case 13:hu(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)}};xF=function(e){if(e.tag===13){var t=Us(e),n=Pa(e,t);if(n!==null){var r=Nr();vo(n,e,t,r)}Fk(e,t)}};OF=function(){return jt};SF=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));tF(r),m1(r,i)}}}break;case"textarea":rF(e,n);break;case"select":t=n.value,t!=null&&Bc(e,!!n.multiple,t,!1)}};cF=Mk;fF=hu;var QK={usingClientEntryPoint:!1,Events:[qm,wc,p_,lF,uF,Mk]},tp={findFiberByHostInstance:Bl,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=hF(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 mg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mg.isDisabled&&mg.supportsFiber)try{u_=mg.inject(JK),Bo=mg}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=GU;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=hF(t),e=e===null?null:e.stateNode,e};hi.flushSync=function(e){return hu(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=GU;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=YU(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?(hu(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 qU(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qU)}catch(e){console.error(e)}}qU(),Y8.exports=hi;var id=Y8.exports;const eu=Cu(id);var KU,Z3=id;KU=Z3.createRoot,Z3.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 Zm=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=Zm.useSyncExternalStore,iZ=Zm.useRef,oZ=Zm.useEffect,aZ=Zm.useMemo,sZ=Zm.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};var St="default"in l1?M:l1,X3=Symbol.for("react-redux-context"),Q3=typeof globalThis<"u"?globalThis:{};function lZ(){if(!St.createContext)return{};const e=Q3[X3]??(Q3[X3]=new Map);let t=e.get(St.createContext);return t||(t=St.createContext(null),e.set(St.createContext,t)),t}var ZU=lZ(),uZ=()=>{throw new Error("uSES not initialized!")},cZ=Symbol.for("react.element"),fZ=Symbol.for("react.portal"),dZ=Symbol.for("react.fragment"),pZ=Symbol.for("react.strict_mode"),hZ=Symbol.for("react.profiler"),mZ=Symbol.for("react.provider"),vZ=Symbol.for("react.context"),gZ=Symbol.for("react.server_context"),XU=Symbol.for("react.forward_ref"),yZ=Symbol.for("react.suspense"),bZ=Symbol.for("react.suspense_list"),Bk=Symbol.for("react.memo"),_Z=Symbol.for("react.lazy"),wZ=XU,xZ=Bk;function OZ(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case cZ:{const n=e.type;switch(n){case dZ:case hZ:case pZ:case yZ:case bZ:return n;default:{const r=n&&n.$$typeof;switch(r){case gZ:case vZ:case XU:case _Z:case Bk:case mZ:return r;default:return t}}}}case fZ:return t}}}function SZ(e){return OZ(e)===Bk}function EZ(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,u,f,d,p;function m(b,x){return l=b,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 b=e(l,u),x=!a(b,f);return f=b,x&&(p=n(f,d,u)),p}function y(b,x){const O=!o(x,u),E=!i(b,l,x,u);return l=b,u=x,O&&E?v():O?g():E?w():p}return function(x,O){return s?y(x,O):m(x,O)}}function TZ(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return EZ(o,a,s,e,i)}function CZ(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 J3(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function QU(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=J3(e);let u=o(s,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=J3(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 kZ(e){return e&&typeof e=="object"?tS(t=>CZ(e,t)):e?typeof e=="function"?QU(e):zk(e,"mapDispatchToProps"):tS(t=>({dispatch:t}))}function jZ(e){return e?typeof e=="function"?QU(e):zk(e,"mapStateToProps"):tS(()=>({}))}function PZ(e,t,n){return{...n,...e,...t}}function AZ(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 NZ(e){return e?typeof e=="function"?AZ(e):zk(e,"mergeProps"):()=>PZ}function MZ(e){e()}function LZ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){MZ(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var eM={notify(){},get:()=>[]};function JU(e,t){let n,r=eM,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=LZ())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=eM)}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 RZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",i0=RZ?St.useLayoutEffect:St.useEffect;function tM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Lx(e,t){if(tM(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])||!tM(e[n[i]],t[n[i]]))return!1;return!0}var DZ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},IZ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},UZ={[wZ]:FZ,[xZ]:e$};function nM(e){return SZ(e)?e$:UZ[e.$$typeof]||DZ}var $Z=Object.defineProperty,BZ=Object.getOwnPropertyNames,rM=Object.getOwnPropertySymbols,zZ=Object.getOwnPropertyDescriptor,VZ=Object.getPrototypeOf,iM=Object.prototype;function nS(e,t){if(typeof t!="string"){if(iM){const o=VZ(t);o&&o!==iM&&nS(e,o)}let n=BZ(t);rM&&(n=n.concat(rM(t)));const r=nM(e),i=nM(t);for(let o=0;o<n.length;++o){const a=n[o];if(!IZ[a]&&!(i&&i[a])&&!(r&&r[a])){const s=zZ(t,a);try{$Z(e,a,s)}catch{}}}}return e}var t$=uZ,HZ=e=>{t$=e},WZ=[null,null];function YZ(e,t,n){i0(()=>e(...t),n)}function GZ(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function qZ(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(b){y=b,p=b}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 KZ(e,t){return e===t}function ZZ(e,t,n,{pure:r,areStatesEqual:i=KZ,areOwnPropsEqual:o=Lx,areStatePropsEqual:a=Lx,areMergedPropsEqual:s=Lx,forwardRef:l=!1,context:u=ZU}={}){const f=u,d=jZ(e),p=kZ(t),m=NZ(n),v=!!e;return w=>{const y=w.displayName||w.name||"Component",b=`Connect(${y})`,x={shouldHandleStateChanges:v,displayName:b,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(()=>TZ(Q.dispatch,x),[Q]),[X,$]=St.useMemo(()=>{if(!v)return WZ;const K=JU(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();i0(()=>(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?qZ(v,Q,X,te,re,W,ee,ie,q,$,le):()=>{},[X]);YZ(GZ,[re,W,ee,R,q,$]);let P;try{P=t$(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}i0(()=>{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=b,l){const A=St.forwardRef(function(R,I){return St.createElement(T,{...R,reactReduxForwardedRef:I})});return A.displayName=b,A.WrappedComponent=w,nS(A,w)}return nS(T,w)}}var n$=ZZ;function XZ({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=St.useMemo(()=>{const u=JU(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]);i0(()=>{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||ZU;return St.createElement(l.Provider,{value:a},n)}var r$=XZ;HZ(F.useSyncExternalStore);/**
|
||
* @remix-run/router v1.14.2
|
||
*
|
||
* 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 Ts;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ts||(Ts={}));const oM="popstate";function QZ(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:o0(i)}return eX(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 JZ(){return Math.random().toString(36).substr(2,8)}function aM(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||JZ()})}function o0(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 eX(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Ts.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=Ts.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=Ts.Push;let b=rS(g.location,w,y);n&&n(b,w),u=f()+1;let x=aM(b,u),O=g.createHref(b);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=Ts.Replace;let b=rS(g.location,w,y);n&&n(b,w),u=f();let x=aM(b,u),O=g.createHref(b);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,b=typeof w=="string"?w:o0(w);return rn(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,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(oM,d),l=w,()=>{i.removeEventListener(oM,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 sM;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sM||(sM={}));function tX(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=i$(e);nX(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=fX(o[s],pX(i));return a}function i$(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=Bs([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+'".')),i$(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:uX(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 o$(o.path))i(o,a,l)}),t}function o$(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=o$(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 nX(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cX(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rX=/^:[\w-]+$/,iX=3,oX=2,aX=1,sX=10,lX=-2,lM=e=>e==="*";function uX(e,t){let n=e.split("/"),r=n.length;return n.some(lM)&&(r+=lX),t&&(r+=oX),n.filter(i=>!lM(i)).reduce((i,o)=>i+(rX.test(o)?iX:o===""?aX:sX),r)}function cX(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 fX(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:Bs([i,f.pathname]),pathnameBase:yX(Bs([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=Bs([i,f.pathnameBase]))}return o}function iS(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dX(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]=hX(v||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function dX(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 pX(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 hX(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 mX(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:vX(n,t):t,search:bX(r),hash:_X(i)}}function vX(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 gX(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hk(e,t){let n=gX(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}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{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=mX(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Bs=e=>e.join("/").replace(/\/\/+/g,"/"),yX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bX=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_X=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wX(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const a$=["post","put","patch","delete"];new Set(a$);const xX=["get",...a$];new Set(xX);/**
|
||
* React Router v6.21.2
|
||
*
|
||
* 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 Nh(){return Nh=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},Nh.apply(this,arguments)}const S_=F.createContext(null),s$=F.createContext(null),Wa=F.createContext(null),E_=F.createContext(null),Ya=F.createContext({outlet:null,matches:[],isDataRoute:!1}),l$=F.createContext(null);function OX(e,t){let{relative:n}=t===void 0?{}:t;Pu()||rn(!1);let{basename:r,navigator:i}=F.useContext(Wa),{hash:o,pathname:a,search:s}=T_(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Bs([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Pu(){return F.useContext(E_)!=null}function Nn(){return Pu()||rn(!1),F.useContext(E_).location}function u$(e){F.useContext(Wa).static||F.useLayoutEffect(e)}function ta(){let{isDataRoute:e}=F.useContext(Ya);return e?DX():SX()}function SX(){Pu()||rn(!1);let e=F.useContext(S_),{basename:t,future:n,navigator:r}=F.useContext(Wa),{matches:i}=F.useContext(Ya),{pathname:o}=Nn(),a=JSON.stringify(Hk(i,n.v7_relativeSplatPath)),s=F.useRef(!1);return u$(()=>{s.current=!0}),F.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=Wk(u,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Bs([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,o,e])}function ad(){let{matches:e}=F.useContext(Ya),t=e[e.length-1];return t?t.params:{}}function T_(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=F.useContext(Wa),{matches:i}=F.useContext(Ya),{pathname:o}=Nn(),a=JSON.stringify(Hk(i,r.v7_relativeSplatPath));return F.useMemo(()=>Wk(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function EX(e,t){return TX(e,t)}function TX(e,t,n,r){Pu()||rn(!1);let{navigator:i}=F.useContext(Wa),{matches:o}=F.useContext(Ya),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Nn(),f;if(t){var d;let w=typeof t=="string"?od(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||rn(!1),f=w}else f=u;let p=f.pathname||"/",m=l==="/"?p:p.slice(l.length)||"/",v=tX(e,{pathname:m}),g=AX(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Bs([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Bs([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&g?F.createElement(E_.Provider,{value:{location:Nh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ts.Pop}},g):g}function CX(){let e=RX(),t=wX(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 kX=F.createElement(CX,null);class jX 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!==void 0?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!==void 0?F.createElement(Ya.Provider,{value:this.props.routeContext},F.createElement(l$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function PX(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(Ya.Provider,{value:t},r)}function AX(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let f=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));f>=0||rn(!1),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=f),d.route.id){let{loaderData:p,errors:m}=n,v=d.route.loader&&p[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||v){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let m,v=!1,g=null,w=null;n&&(m=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||kX,l&&(u<0&&p===0?(IX("route-fallback",!1),v=!0,w=null):u===p&&(v=!0,w=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),b=()=>{let x;return m?x=g:v?x=w:d.route.Component?x=F.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=f,F.createElement(PX,{match:d,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?F.createElement(jX,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var c$=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(c$||{}),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 NX(e){let t=F.useContext(S_);return t||rn(!1),t}function MX(e){let t=F.useContext(s$);return t||rn(!1),t}function LX(e){let t=F.useContext(Ya);return t||rn(!1),t}function f$(e){let t=LX(),n=t.matches[t.matches.length-1];return n.route.id||rn(!1),n.route.id}function RX(){var e;let t=F.useContext(l$),n=MX(a0.UseRouteError),r=f$(a0.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function DX(){let{router:e}=NX(c$.UseNavigateStable),t=f$(a0.UseNavigateStable),n=F.useRef(!1);return u$(()=>{n.current=!0}),F.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Nh({fromRouteId:t},o)))},[e,t])}const uM={};function IX(e,t,n){!t&&!uM[e]&&(uM[e]=!0)}function Yk(e){let{to:t,replace:n,state:r,relative:i}=e;Pu()||rn(!1);let{future:o,static:a}=F.useContext(Wa),{matches:s}=F.useContext(Ya),{pathname:l}=Nn(),u=ta(),f=Wk(t,Hk(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(f);return F.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function Et(e){rn(!1)}function FX(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ts.Pop,navigator:o,static:a=!1,future:s}=e;Pu()&&rn(!1);let l=t.replace(/^\/*/,"/"),u=F.useMemo(()=>({basename:l,navigator:o,static:a,future:Nh({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=od(r));let{pathname:f="/",search:d="",hash:p="",state:m=null,key:v="default"}=r,g=F.useMemo(()=>{let w=Ah(f,l);return w==null?null:{location:{pathname:w,search:d,hash:p,state:m,key:v},navigationType:i}},[l,f,d,p,m,v,i]);return g==null?null:F.createElement(Wa.Provider,{value:u},F.createElement(E_.Provider,{children:n,value:g}))}function C_(e){let{children:t,location:n}=e;return EX(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.21.2
|
||
*
|
||
* 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 d$(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",cM=l1[HX];function p$(e){let{basename:t,children:n,future:r,window:i}=e,o=F.useRef();o.current==null&&(o.current=QZ({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&&cM?cM(()=>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,future:r})}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=d$(t,BX),{basename:m}=F.useContext(Wa),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=OX(u,{relative:i}),y=qX(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:d});function b(x){r&&r(x),x.defaultPrevented||y(x)}return F.createElement("a",s0({},p,{href:v||w,onClick:g||o?r:b,ref:n,target:l}))}),h$=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=d$(t,zX),p=T_(l,{relative:d.relative}),m=Nn(),v=F.useContext(s$),{navigator:g}=F.useContext(Wa),w=v!=null&&KX(p)&&u===!0,y=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,b=m.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(b=b.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase());const O=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let E=b===y||!a&&b.startsWith(y)&&b.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 fM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fM||(fM={}));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:o0(u)===o0(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/vitest-051f0a6758",JX="https://github.com/shlinkio/shlink-web-client",eQ="MIT",tQ="module",nQ={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"},rQ={"@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.3","@shlinkio/shlink-frontend-kit":"^0.4.1","@shlinkio/shlink-js-sdk":"^0.2.0","@shlinkio/shlink-web-component":"^0.4.1",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.0","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^3.2.0",react:"^18.2.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-redux":"^9.1.0","react-router-dom":"^6.21.2",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"},iQ={"@shlinkio/eslint-config-js-coding-standard":"~2.3.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^6.2.0","@testing-library/react":"^14.1.2","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.1","@types/react":"^18.2.47","@types/react-dom":"^18.2.18","@types/uuid":"^9.0.7","@vitejs/plugin-react":"^4.2.1","@vitest/coverage-v8":"^1.2.1","adm-zip":"^0.5.10","axe-core":"^4.8.3",chalk:"^5.3.0",eslint:"^8.56.0",history:"^5.3.0",jsdom:"^23.2.0",sass:"^1.69.7",stylelint:"^15.11.0",typescript:"^5.3.3",vite:"^5.0.12","vite-plugin-pwa":"^0.17.4",vitest:"^1.2.1"},oQ=[">0.2%","not dead","not ie <= 11","not op_mini all"],l0={name:ZX,description:XX,private:!1,homepage:QX,repository:JX,license:eQ,type:tQ,scripts:nQ,dependencies:rQ,devDependencies:iQ,browserslist:oQ};var _o,Zo=".",m$="function",v$="string",g$="__global__",Gk="Provider",aQ=0,qk=Array.prototype.slice,sQ=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]},y$=function(t){return t.split(Zo).reduce(sQ,this)},lQ=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]},uQ=function(t,n){var r,i;return typeof t===m$&&(n=t,t=g$),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},cQ=function(t,n){return n(t)},dM=function(t,n){return(t[n]||[]).concat(t.__global__||[])},fQ=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=dM(a,t).reduce(cQ,u.$get(o)),delete o[r],delete o[t]),f===void 0?f:lQ(dM(s,t),t,f,o)}},Object.defineProperties(o,i),this},b$=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):fQ.call(this,i,n))},Kk=function(t,n){return b$.call(this,t,function(){this.$get=n})},_$=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(y$,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},dQ=function(t,n){return _$.apply(this,[t,n,!0].concat(qk.call(arguments,2)))},pQ=function(t,n){return _$.apply(this,[t,n,!1].concat(qk.call(arguments,2)))},w$=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},x$=function(t,n){var r=t[n];return r||(r={},w$.call(t,n,r)),r},hQ=function(t,n){var r;return r=t.split(Zo),t=r.pop(),w$.call(r.reduce(x$,this.container),t,n),this},mQ=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},vQ=function(t,n){var r=t.split(Zo);return t=r.pop(),mQ.call(r.reduce(x$,this.container),t,n),this},O$=function(t,n){var r,i;return typeof t===m$&&(n=t,t=g$),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},gQ=function(t){return this.deferred.push(t),this},yQ=function(t){return(t||[]).map(y$,this.container)},bQ=function(t,n){return Kk.call(this,t,function(i){return{instance:n.bind(n,i)}})},_Q=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},Zk=function(t){return Object.keys(t||this.container||{}).filter(_Q)},u0={},wQ=function(t){var n;return typeof t===v$?(n=u0[t],n||(u0[t]=n=new _o,n.constant("BOTTLE_NAME",t)),n):new _o},xQ=function(t){typeof t===v$?delete u0[t]:u0={}},S$=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},pM=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+Gk]},OQ=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(pM,k_.call(this,a[0])),pM.call(this,o),this.provider(o,n[o])}},this)},SQ=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=aQ++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:O$.bind(this),$register:S$.bind(this),$list:Zk.bind(this)}};_o.prototype={constant:vQ,decorator:O$,defer:gQ,digest:yQ,factory:Kk,instanceFactory:bQ,list:Zk,middleware:uQ,provider:b$,resetProviders:OQ,register:S$,resolve:SQ,service:dQ,serviceFactory:pQ,value:hQ};_o.pop=wQ;_o.clear=xQ;_o.list=Zk;_o.config={strict:!1};const EQ=_o;var E$=(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))(E$||{}),T$=(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))(T$||{}),TQ=Object.defineProperty,CQ=(e,t,n)=>t in e?TQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kQ=(e,t,n)=>(CQ(e,typeof t!="symbol"?t+"":t,n),n);const jQ=(e,t)=>`${e}/rest/v${t}`,PQ=e=>e.dir?`${e.field}-${e.dir}`:void 0,AQ=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:PQ(e)}),NQ=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===E$.NOT_FOUND||e.type===T$.NOT_FOUND)&&e.status===404,MQ=(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}`},LQ=(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 RQ{constructor(t,n){kQ(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:AQ(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=LQ(r),s=a?`?${a}`:"",l=o?MQ(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${jQ(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}handleFetchError(t){return n=>{if(!NQ(n))throw n;return this.apiVersion=2,t()}}}const C$=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Vp=e=>!!(e!=null&&e.id),k$=e=>!!(e!=null&&e.version),DQ=e=>!!(e!=null&&e.serverNotFound),IQ=e=>Vp(e)?e.id:"",FQ=({id:e,autoConnect:t,...n})=>n,hM={},UQ=e=>typeof e=="function",$Q=e=>{const{selectedServer:t}=e();if(!C$(t))throw new Error("There's no selected server or it is not found");return t},BQ=e=>t=>{const{url:n,apiKey:r}=UQ(t)?$Q(t):t,i=`${r}_${n}`,o=hM[i]??new RQ(e,{apiKey:r,baseUrl:n});return hM[i]=o,o},zQ=e=>{e.serviceFactory("buildShlinkApiClient",BQ,"HttpClient")};var VQ={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"]},HQ=VQ,WQ={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=WQ,YQ={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"]},GQ={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"]},qQ=GQ,j$={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"]},KQ={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"]},P$={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"]},ZQ={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"]},XQ=ZQ,QQ={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=QQ,JQ={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"]},eJ={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"]},tJ={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"]},mM={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"]},nJ={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"]},rJ=nJ,iJ={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=iJ,oJ={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"]},aJ={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"]},sJ={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"]},lJ=sJ,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"]},A$={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"]},vM={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"]},uJ={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"]},N$={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"]},cJ={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"]},fJ=cJ,dJ={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"]},pJ={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=pJ,hJ={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"]},mJ=hJ,vJ={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"]},gJ={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"]},yJ=gJ,bJ={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"]},_J=bJ,wJ={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"]},xJ=wJ,OJ={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"]},M$=OJ,SJ={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"]},EJ={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"]},TJ={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"]},CJ=TJ,kJ={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"]},jJ={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=jJ,PJ={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"]},AJ={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"]},NJ=AJ,gM={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"]},L$={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"]},MJ=L$,LJ={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"]},RJ={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"]},DJ={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"]},IJ={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"]},Mh={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 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 Fe(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){An(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 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 FJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bM(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 UJ(e,t,n){return t&&bM(e.prototype,t),n&&bM(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 BJ(e)||VJ(e,t)||R$(e,t)||WJ()}function Xm(e){return $J(e)||zJ(e)||R$(e)||HJ()}function $J(e){if(Array.isArray(e))return uS(e)}function BJ(e){if(Array.isArray(e))return e}function zJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VJ(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 R$(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 HJ(){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 WJ(){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 _M=function(){},rj={},D$={},I$=null,F$={mark:_M,measure:_M};try{typeof window<"u"&&(rj=window),typeof document<"u"&&(D$=document),typeof MutationObserver<"u"&&(I$=MutationObserver),typeof performance<"u"&&(F$=performance)}catch{}var YJ=rj.navigator||{},wM=YJ.userAgent,xM=wM===void 0?"":wM,qs=rj,Wt=D$,OM=I$,vg=F$;qs.document;var Ga=!!Wt.documentElement&&!!Wt.head&&typeof Wt.addEventListener=="function"&&typeof Wt.createElement=="function",U$=~xM.indexOf("MSIE")||~xM.indexOf("Trident/"),gg,yg,bg,_g,wg,Na="___FONT_AWESOME___",cS=16,$$="fa",B$="svg-inline--fa",mu="data-fa-i2svg",fS="data-fa-pseudo-element",GJ="data-fa-pseudo-element-pending",ij="data-prefix",oj="data-icon",SM="fontawesome-i2svg",qJ="async",KJ=["HTML","HEAD","STYLE","SCRIPT"],z$=function(){try{return!0}catch{return!1}}(),zt="classic",cn="sharp",aj=[zt,cn];function Qm(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[zt]}})}var Lh=Qm((gg={},An(gg,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(gg,cn,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),gg)),Rh=Qm((yg={},An(yg,zt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),An(yg,cn,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),yg)),Dh=Qm((bg={},An(bg,zt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),An(bg,cn,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),bg)),ZJ=Qm((_g={},An(_g,zt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),An(_g,cn,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),_g)),XJ=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,V$="fa-layers-text",QJ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,JJ=Qm((wg={},An(wg,zt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),An(wg,cn,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),wg)),H$=[1,2,3,4,5,6,7,8,9,10],eee=H$.concat([11,12,13,14,15,16,17,18,19,20]),tee=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Hl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ih=new Set;Object.keys(Rh[zt]).map(Ih.add.bind(Ih));Object.keys(Rh[cn]).map(Ih.add.bind(Ih));var nee=[].concat(aj,Xm(Ih),["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",Hl.GROUP,Hl.SWAP_OPACITY,Hl.PRIMARY,Hl.SECONDARY]).concat(H$.map(function(e){return"".concat(e,"x")})).concat(eee.map(function(e){return"w-".concat(e)})),Hp=qs.FontAwesomeConfig||{};function ree(e){var t=Wt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function iee(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Wt&&typeof Wt.querySelector=="function"){var oee=[["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"]];oee.forEach(function(e){var t=nj(e,2),n=t[0],r=t[1],i=iee(ree(n));i!=null&&(Hp[r]=i)})}var W$={styleDefault:"solid",familyDefault:"classic",cssPrefix:$$,replacementClass:B$,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 sf=Fe(Fe({},W$),Hp);sf.autoReplaceSvg||(sf.observeMutations=!1);var He={};Object.keys(W$).forEach(function(e){Object.defineProperty(He,e,{enumerable:!0,set:function(n){sf[e]=n,Wp.forEach(function(r){return r(He)})},get:function(){return sf[e]}})});Object.defineProperty(He,"familyPrefix",{enumerable:!0,set:function(t){sf.cssPrefix=t,Wp.forEach(function(n){return n(He)})},get:function(){return sf.cssPrefix}});qs.FontAwesomeConfig=He;var Wp=[];function aee(e){return Wp.push(e),function(){Wp.splice(Wp.indexOf(e),1)}}var as=cS,Fo={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function see(e){if(!(!e||!Ga)){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 lee="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fh(){for(var e=12,t="";e-- >0;)t+=lee[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 Y$(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function uee(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Y$(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 cee(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 fee(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&&U$?l+="translate(".concat(t.x/as-r/2,"em, ").concat(t.y/as-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/as,"em), calc(-50% + ").concat(t.y/as,"em)) "):l+="translate(".concat(t.x/as,"em, ").concat(t.y/as,"em) "),l+="scale(".concat(t.size/as*(t.flipX?-1:1),", ").concat(t.size/as*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var dee=`: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 G$(){var e=$$,t=B$,n=He.cssPrefix,r=He.replacementClass,i=dee;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 EM=!1;function Dx(){He.autoAddCss&&!EM&&(see(G$()),EM=!0)}var pee={mixout:function(){return{dom:{css:G$,insertCss:Dx}}},hooks:function(){return{beforeDOMElementCreation:function(){Dx()},beforeI2svg:function(){Dx()}}}},Ma=qs||{};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],q$=[],hee=function e(){Wt.removeEventListener("DOMContentLoaded",e),f0=1,q$.map(function(t){return t()})},f0=!1;Ga&&(f0=(Wt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Wt.readyState),f0||Wt.addEventListener("DOMContentLoaded",hee));function mee(e){Ga&&(f0?setTimeout(e,0):q$.push(e))}function Jm(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"?Y$(e):"<".concat(t," ").concat(uee(r),">").concat(o.map(Jm).join(""),"</").concat(t,">")}function TM(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var vee=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?vee(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 gee(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=gee(e);return t.length===1?t[0].toString(16):null}function yee(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 CM(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=CM(t);typeof fo.hooks.addPack=="function"&&!i?fo.hooks.addPack(e,CM(t)):fo.styles[e]=Fe(Fe({},fo.styles[e]||{}),o),e==="fas"&&pS("fa",t)}var xg,Og,Sg,kc=fo.styles,bee=fo.shims,_ee=(xg={},An(xg,zt,Object.values(Dh[zt])),An(xg,cn,Object.values(Dh[cn])),xg),uj=null,K$={},Z$={},X$={},Q$={},J$={},wee=(Og={},An(Og,zt,Object.keys(Lh[zt])),An(Og,cn,Object.keys(Lh[cn])),Og);function xee(e){return~nee.indexOf(e)}function Oee(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!xee(i)?i:null}var e7=function(){var t=function(o){return Ix(kc,function(a,s,l){return a[l]=Ix(s,o,{}),a},{})};K$=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}),Z$=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}),J$=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 kc||He.autoFetchSvg,r=Ix(bee,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:{}});X$=r.names,Q$=r.unicodes,uj=P_(He.styleDefault,{family:He.familyDefault})};aee(function(e){uj=P_(e.styleDefault,{family:He.familyDefault})});e7();function cj(e,t){return(K$[e]||{})[t]}function See(e,t){return(Z$[e]||{})[t]}function Wl(e,t){return(J$[e]||{})[t]}function t7(e){return X$[e]||{prefix:null,iconName:null}}function Eee(e){var t=Q$[e],n=cj("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ks(){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=Lh[r][e],o=Rh[r][e]||Rh[r][i],a=e in fo.styles?e:null;return o||a||null}var kM=(Sg={},An(Sg,zt,Object.keys(Dh[zt])),An(Sg,cn,Object.keys(Dh[cn])),Sg);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 kM[zt].includes(u)}))&&(s=zt),(e.includes(o[cn])||e.some(function(u){return kM[cn].includes(u)}))&&(s=cn);var l=e.reduce(function(u,f){var d=Oee(He.cssPrefix,f);if(kc[f]?(f=_ee[s].includes(f)?ZJ[s][f]:f,a=f,u.prefix=f):wee[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"?t7(u.iconName):{},m=Wl(u.prefix,u.iconName);p.prefix&&(a=null),u.iconName=p.iconName||m||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!kc.far&&kc.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&&(kc.fass||He.autoFetchSvg)&&(l.prefix="fass",l.iconName=Wl(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=Ks()||"fas"),l}var Tee=function(){function e(){FJ(this,e),this.definitions={}}return UJ(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=Dh[zt][s];l&&pS(l,a[s]),e7()})}},{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}(),jM=[],jc={},Gc={},Cee=Object.keys(Gc);function kee(e,t){var n=t.mixoutsTo;return jM=e,jc={},Object.keys(Gc).forEach(function(r){Cee.indexOf(r)===-1&&delete Gc[r]}),jM.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){jc[a]||(jc[a]=[]),jc[a].push(o[a])})}r.provides&&r.provides(Gc)}),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=jc[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function vu(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=jc[e]||[];i.forEach(function(o){o.apply(null,n)})}function La(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Gc[e]?Gc[e].apply(null,t):void 0}function mS(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Ks();if(t)return t=Wl(n,t)||t,TM(n7.definitions,n,t)||TM(fo.styles,n,t)}var n7=new Tee,jee=function(){He.autoReplaceSvg=!1,He.observeMutations=!1,vu("noAuto")},Pee={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ga?(vu("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,mee(function(){Nee({autoReplaceSvgRoot:n}),vu("watch",t)})}},Aee={icon:function(t){if(t===null)return null;if(c0(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Wl(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:Wl(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match(XJ))){var i=A_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Ks(),iconName:Wl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Ks();return{prefix:o,iconName:Wl(o,t)||t}}}},vi={noAuto:jee,config:He,dom:Pee,parse:Aee,library:n7,findIconDefinition:mS,toHtml:Jm},Nee=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)&&Ga&&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 Jm(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Ga){var r=Wt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Mee(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 Lee(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",b=[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:b,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[mu]=""),l&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||Fh())},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?Lee(E):Mee(E)}function PM(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[mu]="");var f=Fe({},a.styles);lj(i)&&(f.transform=fee({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 Ree(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(Hl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Hl.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Hl.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var Dee={found:!1,width:512,height:512};function Iee(e,t){!z$&&!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=Ks()),new Promise(function(r,i){if(La("missingIconAbstract"),n==="fa"){var o=t7(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))}Iee(e,t),r(Fe(Fe({},Dee),{},{icon:He.showMissingIcons&&e?La("missingIconAbstract")||{}:{}}))})}var AM=function(){},yS=He.measurePerformance&&vg&&vg.mark&&vg.measure?vg:{mark:AM,measure:AM},Sp='FA "6.5.1"',Fee=function(t){return yS.mark("".concat(Sp," ").concat(t," begins")),function(){return r7(t)}},r7=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:Fee,end:r7},my=function(){};function NM(e){var t=e.getAttribute?e.getAttribute(mu):null;return typeof t=="string"}function Uee(e){var t=e.getAttribute?e.getAttribute(ij):null,n=e.getAttribute?e.getAttribute(oj):null;return t&&n}function $ee(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function Bee(){if(He.autoReplaceSvg===!0)return vy.replace;var e=vy[He.autoReplaceSvg];return e||vy.replace}function zee(e){return Wt.createElementNS("http://www.w3.org/2000/svg",e)}function Vee(e){return Wt.createElement(e)}function i7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?zee:Vee: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(i7(a,{ceFn:r}))}),i}function Hee(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var vy={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(i7(i),n)}),n.getAttribute(mu)===null&&He.keepOriginalSource){var r=Wt.createComment(Hee(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 vy.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 Jm(s)}).join(`
|
||
`);n.setAttribute(mu,""),n.innerHTML=a}};function MM(e){e()}function o7(e,t){var n=typeof t=="function"?t:my;if(e.length===0)n();else{var r=MM;He.mutateApproach===qJ&&(r=qs.requestAnimationFrame||MM),r(function(){var i=Bee(),o=pj.begin("mutate");e.map(i),o(),n()})}}var hj=!1;function a7(){hj=!0}function bS(){hj=!1}var d0=null;function LM(e){if(OM&&He.observeMutations){var t=e.treeCallback,n=t===void 0?my:t,r=e.nodeCallback,i=r===void 0?my:r,o=e.pseudoElementsCallback,a=o===void 0?my:o,s=e.observeMutationsRoot,l=s===void 0?Wt:s;d0=new OM(function(u){if(!hj){var f=Ks();sd(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!NM(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"&&NM(d.target)&&~tee.indexOf(d.attributeName))if(d.attributeName==="class"&&Uee(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 $ee(d.target)&&i(d.target)})}}),Ga&&d0.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Wee(){d0&&d0.disconnect()}function Yee(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 Gee(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=Ks()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=See(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 qee(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||Fh()):(t["aria-hidden"]="true",t.focusable="false")),t}function Kee(){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 RM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Gee(e),r=n.iconName,i=n.prefix,o=n.rest,a=qee(e),s=hS("parseNodeAttributes",{},e),l=t.styleParser?Yee(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 Zee=fo.styles;function s7(e){var t=He.autoReplaceSvg==="nest"?RM(e,{styleParser:!1}):RM(e);return~t.extra.classes.indexOf(V$)?La("generateLayersText",e,t):La("generateSvgReplacementMutation",e,t)}var Zs=new Set;aj.map(function(e){Zs.add("fa-".concat(e))});Object.keys(Lh[zt]).map(Zs.add.bind(Zs));Object.keys(Lh[cn]).map(Zs.add.bind(Zs));Zs=Xm(Zs);function DM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ga)return Promise.resolve();var n=Wt.documentElement.classList,r=function(d){return n.add("".concat(SM,"-").concat(d))},i=function(d){return n.remove("".concat(SM,"-").concat(d))},o=He.autoFetchSvg?Zs:aj.map(function(f){return"fa-".concat(f)}).concat(Object.keys(Zee));o.includes("fa")||o.push("fa");var a=[".".concat(V$,":not([").concat(mu,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(mu,"])")})).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=s7(d);p&&f.push(p)}catch(m){z$||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,d){Promise.all(u).then(function(p){o7(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),d(p)})})}function Xee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;s7(e).then(function(n){n&&o7([n],t)})}function Qee(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 Jee=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,b=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 vu("beforeDOMElementCreation",{iconDefinition:t,params:n}),He.autoA11y&&(p?b["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(v||Fh()):(b["aria-hidden"]="true",b.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:b,styles:O,classes:w}})})}},ete={mixout:function(){return{icon:Qee(Jee)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=DM,n.nodeCallback=Xee,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 DM(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],b=w[1];m([n,dj({icons:{main:y,mask:b},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}}}},tte={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(){vu("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(Xm(o)).join(" ")},children:a}]})}}}},nte={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 vu("beforeDOMElementCreation",{content:n,params:r}),Ree({content:n.toString(),title:o,extra:{attributes:u,styles:d,classes:["".concat(He.cssPrefix,"-layers-counter")].concat(Xm(s))}})})}}}},rte={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 vu("beforeDOMElementCreation",{content:n,params:r}),PM({content:n,transform:Fe(Fe({},Fo),o),title:s,extra:{attributes:d,styles:m,classes:["".concat(He.cssPrefix,"-layers-text")].concat(Xm(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(U$){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,PM({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},ite=new RegExp('"',"ug"),IM=[1105920,1112319];function ote(e){var t=e.replace(ite,""),n=yee(t,0),r=n>=IM[0]&&n<=IM[1],i=t.length===2?t[0]===t[1]:!1;return{value:dS(i?t[0]:t),isSecondary:r||i}}function FM(e,t){var n="".concat(GJ).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=qs.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(QJ),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])?Rh[p][l[2].toLowerCase()]:JJ[p][u],v=ote(d),g=v.value,w=v.isSecondary,y=l[0].startsWith("FontAwesome"),b=cj(m,g),x=b;if(y){var O=Eee(g);O.iconName&&O.prefix&&(b=O.iconName,m=O.prefix)}if(b&&!w&&(!a||a.getAttribute(ij)!==m||a.getAttribute(oj)!==x)){e.setAttribute(n,x),a&&e.removeChild(a);var E=Kee(),T=E.extra;T.attributes[fS]=t,gS(b,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 Jm(R)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ate(e){return Promise.all([FM(e,"::before"),FM(e,"::after")])}function ste(e){return e.parentNode!==document.head&&!~KJ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(fS)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function UM(e){if(Ga)return new Promise(function(t,n){var r=sd(e.querySelectorAll("*")).filter(ste).map(ate),i=pj.begin("searchPseudoElements");a7(),Promise.all(r).then(function(){i(),bS(),t()}).catch(function(){i(),bS(),n()})})}var lte={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=UM,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Wt:r;He.searchPseudoElements&&UM(i)}}},$M=!1,ute={mixout:function(){return{dom:{unwatch:function(){a7(),$M=!0}}}},hooks:function(){return{bootstrap:function(){LM(hS("mutationObserverCallbacks",{}))},noAuto:function(){Wee()},watch:function(n){var r=n.observeMutationsRoot;$M?bS():LM(hS("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},BM=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)},cte={mixout:function(){return{parse:{transform:function(n){return BM(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=BM(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 zM(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 fte(e){return e.tag==="g"?e.children:[e]}var dte={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=Ks()),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=cee({transform:l,containerWidth:d,iconWidth:u}),v={tag:"rect",attributes:Fe(Fe({},Ux),{},{fill:"white"})},g=f.children?{children:f.children.map(zM)}:{},w={tag:"g",attributes:Fe({},m.inner),children:[zM(Fe({tag:f.tag,attributes:Fe(Fe({},f.attributes),m.path)},g))]},y={tag:"g",attributes:Fe({},m.outer),children:[w]},b="mask-".concat(s||Fh()),x="clip-".concat(s||Fh()),O={tag:"mask",attributes:Fe(Fe({},Ux),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,y]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:fte(p)},O]};return r.push(E,{tag:"rect",attributes:Fe({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(b,")")},Ux)}),{children:r,attributes:i}}}},pte={provides:function(t){var n=!1;qs.matchMedia&&(n=qs.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}}}},hte={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}}}},mte=[pee,ete,tte,nte,rte,lte,ute,cte,dte,pte,hte];kee(mte,{mixoutsTo:vi});vi.noAuto;vi.config;vi.library;vi.dom;var _S=vi.parse;vi.findIconDefinition;vi.toHtml;var vte=vi.icon;vi.layer;vi.text;vi.counter;var l7={exports:{}},gte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yte=gte,bte=yte;function u7(){}function c7(){}c7.resetWarningCache=u7;var _te=function(){function e(r,i,o,a,s,l){if(l!==bte){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:c7,resetWarningCache:u7};return n.PropTypes=n,n};l7.exports=_te();var wte=l7.exports;const U=Cu(wte);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 Cs(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){Pc(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 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 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 xte(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 Ote(e,t){if(e==null)return{};var n=xte(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 Ste(e)||Ete(e)||Tte(e)||Cte()}function Ste(e){if(Array.isArray(e))return xS(e)}function Ete(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tte(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 Cte(){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 kte(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,b=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"},Pc(t,"fa-".concat(y),typeof y<"u"&&y!==null),Pc(t,"fa-rotate-".concat(b),typeof b<"u"&&b!==null&&b!==0),Pc(t,"fa-pull-".concat(x),typeof x<"u"&&x!==null),Pc(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 jte(e){return e=e-0,e===e}function f7(e){return jte(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Pte=["style"];function Ate(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Nte(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=f7(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[Ate(i)]=o:t[i]=o,t},{})}function d7(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 d7(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=Nte(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[f7(u)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=Ote(n,Pte);return i.attrs.style=Cs(Cs({},i.attrs.style),a),e.apply(void 0,[t.tag,Cs(Cs({},i.attrs),s)].concat(wS(r)))}var p7=!1;try{p7=!0}catch{}function Mte(){if(!p7&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function HM(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?Pc({},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=HM(n),f=$x("classes",[].concat(wS(kte(e)),wS(o.split(" ")))),d=$x("transform",typeof e.transform=="string"?_S.transform(e.transform):e.transform),p=$x("mask",HM(r)),m=vte(u,Cs(Cs(Cs(Cs({},f),d),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!m)return Mte("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])}),Lte(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 Lte=d7.bind(null,M.createElement),h7={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})()})(h7);var Rte=h7.exports;const Xe=Cu(Rte);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 Dte(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function m7(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function Ite(){return document.body.clientWidth<window.innerWidth}function Fte(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function Ute(){var e=Dte(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;Ite()&&m7(n+e)}var $te;function qe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$te;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function al(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function v7(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 WM={};function OS(e){WM[e]||(typeof console<"u"&&console.error(e),WM[e]=!0)}function g7(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 Bte=(typeof window>"u"?"undefined":lf(window))==="object"&&window.Element||function(){};function mj(e,t,n){if(!(e[t]instanceof Bte))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var uf=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"],Eg={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},zte=["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 Vte(e){return e&&lf(e)==="object"?"current"in e:!1}function y7(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function SS(e){var t=lf(e);return e!=null&&(t==="object"||t==="function")}function YM(e){var t=lf(e),n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&y7(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 Hte(e){if(!SS(e))return!1;var t=y7(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function Wte(e){if(Vte(e))return e.current;if(Hte(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 GM(e){return e===null?!1:Array.isArray(e)||vj&&typeof e.length=="number"}function Uh(e,t){var n=Wte(e);return t?GM(n)?n:n===null?[]:[n]:GM(n)?n[0]:n}var Yte=["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"])'],Gte=["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 qte(e,t){if(e==null)return{};var n=Kte(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 Kte(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 Zte=["xs","sm","md","lg","xl","xxl"],Qu=U.oneOfType([U.number,U.string]),Xte={tag:ft,noGutters:g7(U.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:U.string,cssModule:U.object,xs:Qu,sm:Qu,md:Qu,lg:Qu,xl:Qu,xxl:Qu,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?Zte:a,l=qte(e,Gte),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=Xte;var Qte=["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 Jte(e,t){if(e==null)return{};var n=ene(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 ene(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 tne={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},nne=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function b7(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=Jte(e,Qte),y=qe(Xe(i,"navbar",nne(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),b=p&&p===!0?"container":"container-".concat(p);return M.createElement(v,TS({},w,{className:y}),p?M.createElement("div",{className:b},g):g)}b7.propTypes=tne;var rne=["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 ine(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}var ane={className:U.string,cssModule:U.object,tag:ft};function _7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=ine(e,rne),a=qe(Xe(t,"navbar-brand"),n);return M.createElement(i,CS({},o,{className:a}))}_7.propTypes=ane;var sne=["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 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 lne(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){une(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 une(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cne(e,t){if(e==null)return{};var n=fne(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 fne(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={className:U.string,cssModule:U.object,tag:ft,type:U.string,children:U.node};function w7(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=cne(e,sne),s=qe(Xe(t,"navbar-toggler"),n);return M.createElement(o,kS({"aria-label":"Toggle navigation"},lne({type:"button"},a),{className:s}),r||M.createElement("span",{className:qe("navbar-toggler-icon",n)}))}w7.propTypes=dne;var pne=["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 hne(e,t){if(e==null)return{};var n=mne(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 mne(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 vne={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])},gne=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=hne(e,pne),g=qe(Xe(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,gne(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=vne;var yne=["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 bne(e,t){if(e==null)return{};var n=_ne(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 _ne(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 wne={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=bne(e,yne),s=qe(Xe(t,"nav-item",r?"active":!1),n);return M.createElement(o,PS({},a,{className:s}))}yj.propTypes=wne;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 xne=["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 One(e,t){if(e==null)return{};var n=Sne(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 Sne(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 Ene(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KM(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 Tne(e,t,n){return t&&KM(e.prototype,t),n&&KM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cne(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 kne(e){var t=Pne();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 jne(this,i)}}function jne(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 x7(e)}function x7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pne(){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 Ane={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},O7=function(e){Cne(n,e);var t=kne(n);function n(r){var i;return Ene(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(x7(i)),i}return Tne(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=One(i,xne),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);O7.propTypes=Ane;const S7=O7;var Nne=["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 ZM(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 Mne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZM(Object(n),!0).forEach(function(r){Lne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZM(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 Rne(e,t){if(e==null)return{};var n=Dne(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 Dne(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 Ine={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 E7(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=Rne(e,Nne),o=qe(Xe(t,"btn-close",n&&"btn-close-".concat(n)));return M.createElement("button",LS({ref:r,type:"button",className:o},Mne({"aria-label":"close"},i)))}E7.propTypes=Ine;var Fne=["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 Une(e,t){if(e==null)return{};var n=$ne(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 $ne(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 Bne={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(b){if(e.disabled){b.preventDefault();return}if(e.onClick)return e.onClick(b)},[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=Une(e,Fne);if(a)return M.createElement(E7,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=Bne;var T7=F.createContext(),C7=F.createContext();function XM(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(T7.Provider,{value:r},F.createElement(C7.Provider,{value:a},t))}var k7=function(t){return Array.isArray(t)?t[0]:t},j7=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 j7(t,n);t!=null&&(t.current=n)},QM=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},JM=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,Hr="top",$i="bottom",Bi="right",Wr="left",bj="auto",ev=[Hr,$i,Bi,Wr],cf="start",$h="end",zne="clippingParents",P7="viewport",np="popper",Vne="reference",eL=ev.reduce(function(e,t){return e.concat([t+"-"+cf,t+"-"+$h])},[]),A7=[].concat(ev,[bj]).reduce(function(e,t){return e.concat([t,t+"-"+cf,t+"-"+$h])},[]),Hne="beforeRead",Wne="read",Yne="afterRead",Gne="beforeMain",qne="main",Kne="afterMain",Zne="beforeWrite",Xne="write",Qne="afterWrite",Jne=[Hne,Wne,Yne,Gne,qne,Kne,Zne,Xne,Qne];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 gu(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 ere(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 tre(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 nre={name:"applyStyles",enabled:!0,phase:"write",fn:ere,effect:tre,requires:["computeStyles"]};function Vo(e){return e.split("-")[0]}var tu=Math.max,g0=Math.min,ff=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 N7(){return!/^((?!chrome|android).)*safari/i.test(IS())}function df(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&&ff(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ff(r.height)/e.offsetHeight||1);var a=gu(e)?li(e):window,s=a.visualViewport,l=!N7()&&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=df(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 M7(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 rre(e){return["table","td","th"].indexOf(Xo(e))>=0}function sl(e){return((gu(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)||sl(e)}function tL(e){return!Mi(e)||Ra(e).position==="fixed"?null:e.offsetParent}function ire(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 tv(e){for(var t=li(e),n=tL(e);n&&rre(n)&&Ra(n).position==="static";)n=tL(n);return n&&(Xo(n)==="html"||Xo(n)==="body"&&Ra(n).position==="static")?t:n||ire(e)||t}function xj(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yp(e,t,n){return tu(e,g0(t,n))}function ore(e,t,n){var r=Yp(e,t,n);return r>n?n:r}function L7(){return{top:0,right:0,bottom:0,left:0}}function R7(e){return Object.assign({},L7(),e)}function D7(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var are=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,R7(typeof t!="number"?t:D7(t,ev))};function sre(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=are(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=tv(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=g/2-w/2,O=d[m],E=b-p[f]-d[v],T=b/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 lre(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)||M7(t.elements.popper,i)&&(t.elements.arrow=i))}const ure={name:"arrow",enabled:!0,phase:"main",fn:sre,effect:lre,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pf(e){return e.split("-")[1]}var cre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fre(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ff(n*i)/i||0,y:ff(r*i)/i||0}}function nL(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"),b=a.hasOwnProperty("y"),x=Wr,O=Hr,E=window;if(u){var T=tv(n),k="clientHeight",A="clientWidth";if(T===li(n)&&(T=sl(n),Ra(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",A="scrollWidth")),T=T,i===Hr||(i===Wr||i===Bi)&&o===$h){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===$h){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&&cre),z=f===!0?fre({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]=b?"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]=b?g+"px":"",t[x]=y?m+"px":"",t.transform="",t))}function dre(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:pf(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,nL(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,nL(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 pre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dre,data:{}};var Tg={passive:!0};function hre(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,Tg)}),s&&l.addEventListener("resize",n.update,Tg),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Tg)}),s&&l.removeEventListener("resize",n.update,Tg)}}const mre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hre,data:{}};var vre={left:"right",right:"left",bottom:"top",top:"bottom"};function gy(e){return e.replace(/left|right|bottom|top/g,function(t){return vre[t]})}var gre={start:"end",end:"start"};function rL(e){return e.replace(/start|end/g,function(t){return gre[t]})}function Oj(e){var t=li(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sj(e){return df(sl(e)).left+Oj(e).scrollLeft}function yre(e,t){var n=li(e),r=sl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=N7();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Sj(e),y:l}}function bre(e){var t,n=sl(e),r=Oj(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=tu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=tu(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+=tu(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 I7(e){return["html","body","#document"].indexOf(Xo(e))>=0?e.ownerDocument.body:Mi(e)&&Ej(e)?e:I7(M_(e))}function Gp(e,t){var n;t===void 0&&(t=[]);var r=I7(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 _re(e,t){var n=df(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 iL(e,t,n){return t===P7?FS(yre(e,n)):gu(t)?_re(t,n):FS(bre(sl(e)))}function wre(e){var t=Gp(M_(e)),n=["absolute","fixed"].indexOf(Ra(e).position)>=0,r=n&&Mi(e)?tv(e):e;return gu(r)?t.filter(function(i){return gu(i)&&M7(i,r)&&Xo(i)!=="body"}):[]}function xre(e,t,n,r){var i=t==="clippingParents"?wre(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=iL(e,u,r);return l.top=tu(f.top,l.top),l.right=g0(f.right,l.right),l.bottom=g0(f.bottom,l.bottom),l.left=tu(f.left,l.left),l},iL(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 F7(e){var t=e.reference,n=e.element,r=e.placement,i=r?Vo(r):null,o=r?pf(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 cf:l[u]=l[u]-(t[f]/2-n[f]/2);break;case $h:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function Bh(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?zne:s,u=n.rootBoundary,f=u===void 0?P7: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=R7(typeof w!="number"?w:D7(w,ev)),b=p===np?Vne:np,x=e.rects.popper,O=e.elements[v?b:p],E=xre(gu(O)?O:O.contextElement||sl(e.elements.popper),l,f,a),T=df(e.elements.reference),k=F7({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 Ore(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?A7:l,f=pf(r),d=f?s?eL:eL.filter(function(v){return pf(v)===f}):ev,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]=Bh(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 Sre(e){if(Vo(e)===bj)return[];var t=gy(e);return[rL(e),t,rL(t)]}function Ere(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),b=y===w,x=l||(b||!v?[gy(w)]:Sre(w)),O=[w].concat(x).reduce(function(ee,ie){return ee.concat(Vo(ie)===bj?Ore(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=pf(I)===cf,H=[Hr,$i].indexOf(z)>=0,Q=H?"width":"height",Z=Bh(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=H?G?Bi:Wr:G?$i:Hr;E[Q]>T[Q]&&(te=gy(te));var X=gy(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 Tre={name:"flip",enabled:!0,phase:"main",fn:Ere,requiresIfExists:["offset"],data:{_skip:!1}};function oL(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 aL(e){return[Hr,Bi,$i,Wr].some(function(t){return e[t]>=0})}function Cre(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Bh(t,{elementContext:"reference"}),s=Bh(t,{altBoundary:!0}),l=oL(a,r),u=oL(s,i,o),f=aL(l),d=aL(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 kre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cre};function jre(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 Pre(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=A7.reduce(function(f,d){return f[d]=jre(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 Are={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pre};function Nre(e){var t=e.state,n=e.name;t.modifiersData[n]=F7({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Mre={name:"popperOffsets",enabled:!0,phase:"read",fn:Nre,data:{}};function Lre(e){return e==="x"?"y":"x"}function Rre(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=Bh(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),y=Vo(t.placement),b=pf(t.placement),x=!b,O=xj(y),E=Lre(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=b===cf?k[Z]:A[Z],re=b===cf?-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:L7(),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&&tv(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?tu($,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?ore(be,Ce,Se):Yp(m?be:Ae,Ce,m?Se:ce);T[E]=Me,z[E]=Me-Ce}t.modifiersData[r]=z}}const Dre={name:"preventOverflow",enabled:!0,phase:"main",fn:Rre,requiresIfExists:["offset"]};function Ire(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Fre(e){return e===li(e)||!Mi(e)?Oj(e):Ire(e)}function Ure(e){var t=e.getBoundingClientRect(),n=ff(t.width)/e.offsetWidth||1,r=ff(t.height)/e.offsetHeight||1;return n!==1||r!==1}function $re(e,t,n){n===void 0&&(n=!1);var r=Mi(t),i=Mi(t)&&Ure(t),o=sl(t),a=df(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Xo(t)!=="body"||Ej(o))&&(s=Fre(t)),Mi(t)?(l=df(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 Bre(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 zre(e){var t=Bre(e);return Jne.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Vre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hre(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 sL={placement:"bottom",modifiers:[],strategy:"absolute"};function lL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Wre(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?sL:i;return function(s,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},sL,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:f,setOptions:function(y){var b=typeof y=="function"?y(f.options):y;g(),f.options=Object.assign({},o,f.options,b),f.scrollParents={reference:gu(s)?Gp(s):s.contextElement?Gp(s.contextElement):[],popper:Gp(l)};var x=zre(Hre([].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,b=y.reference,x=y.popper;if(lL(b,x)){f.rects={reference:$re(b,tv(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:Vre(function(){return new Promise(function(w){m.forceUpdate(),w(f)})}),destroy:function(){g(),p=!0}};if(!lL(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,b=w.options,x=b===void 0?{}:b,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 Yre=[mre,Mre,pre,nre,Are,Tre,Dre,ure,kre],Gre=Wre({defaultModifiers:Yre}),qre=typeof Element<"u",Kre=typeof Map=="function",Zre=typeof Set=="function",Xre=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function yy(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(!yy(e[r],t[r]))return!1;return!0}var o;if(Kre&&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(!yy(r.value[1],t.get(r.value[0])))return!1;return!0}if(Zre&&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(Xre&&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(qre&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!yy(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Qre=function(t,n){try{return yy(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 Jre=Cu(Qre);var eie=[],tie=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||eie},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);id.flushSync(function(){l({styles:QM(g.map(function(w){return[w,v.styles[w]||{}]})),attributes:QM(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 Jre(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),d=F.useRef();return JM(function(){d.current&&d.current.setOptions(f)},[f]),JM(function(){if(!(t==null||n==null)){var p=r.createPopper||Gre,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}},nie=function(){},rie=function(){return Promise.resolve(null)},iie=[];function U7(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?iie:o,s=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,d=F.useContext(T7),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 b=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=tie(s||d,m,b),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||nie,update:k||rie}},[v,y,n,O,E,k,T]);return k7(f)(A)}var oie=function(){},aie=oie;const sie=Cu(aie);function lie(e){var t=e.children,n=e.innerRef,r=F.useContext(C7),i=F.useCallback(function(o){DS(n,o),j7(r,o)},[n,r]);return F.useEffect(function(){return function(){return DS(n,null)}},[]),F.useEffect(function(){sie(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),k7(t)({ref:i})}var zh=M.createContext({}),$7=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 uie=["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 ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cie(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 die(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uL(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 pie(e,t,n){return t&&uL(e.prototype,t),n&&uL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hie(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 mie(e){var t=gie();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 vie(this,i)}}function vie(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 cs(e)}function cs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gie(){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 yie={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"])},bie={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},_ie=[kt.space,kt.enter,kt.up,kt.down,kt.end,kt.home],L_=function(e){hie(n,e);var t=mie(n);function n(r){var i;return die(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(cs(i)),i.handleDocumentClick=i.handleDocumentClick.bind(cs(i)),i.handleKeyDown=i.handleKeyDown.bind(cs(i)),i.removeEvents=i.removeEvents.bind(cs(i)),i.toggle=i.toggle.bind(cs(i)),i.handleMenuRef=i.handleMenuRef.bind(cs(i)),i.handleToggleRef=i.handleToggleRef.bind(cs(i)),i.containerRef=M.createRef(),i.menuRef=M.createRef(),i.toggleRef=M.createRef(),i}return pie(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))&&((_ie.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 b;return(b=o.getMenuItems()[0])===null||b===void 0?void 0:b.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=al(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=cie(a,uie),b=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},ss(i,"btn-group-".concat(p),!!p),ss(i,"dropdown",!d),ss(i,"dropup",u==="up"),ss(i,"dropstart",u==="start"||u==="left"),ss(i,"dropend",u==="end"||u==="right"),ss(i,"show",f),ss(i,"nav-item",m),i)),l);return this.context.insideInputGroup?M.createElement(zh.Provider,{value:this.getContextValue()},M.createElement(XM,null,M.Children.map(this.props.children,function(E){return M.cloneElement(E,{onKeyDown:o.handleKeyDown})}))):M.createElement(zh.Provider,{value:this.getContextValue()},M.createElement(XM,null,M.createElement(b,$S({},y,ss({},typeof b=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:O}))))}}]),n}(M.Component);L_.propTypes=yie;L_.defaultProps=bie;L_.contextType=$7;const nv=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 wie=["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 xie(e,t){if(e==null)return{};var n=Oie(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 Oie(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 Sie(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 Eie(e,t,n){return t&&cL(e.prototype,t),n&&cL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tie(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 Cie(e){var t=jie();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 kie(this,i)}}function kie(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 jie(){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 Pie={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){Tie(n,e);var t=Cie(n);function n(r){var i;return Sie(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(WS(i)),i.getTabIndex=i.getTabIndex.bind(WS(i)),i}return Eie(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=al(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=xie(a,wie),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=Pie;Tj.contextType=zh;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 Aie=["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 fL(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?fL(Object(n),!0).forEach(function(r){Nie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mie(e){return Iie(e)||Die(e)||Rie(e)||Lie()}function Lie(){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 Rie(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 Die(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Iie(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 Fie(e,t){if(e==null)return{};var n=Uie(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 Uie(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 $ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dL(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 Bie(e,t,n){return t&&dL(e.prototype,t),n&&dL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zie(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 Vie(e){var t=Yie();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 Hie(this,i)}}function Hie(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 Wie(e)}function Wie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yie(){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 Gie={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:uf,updateOnSelect:U.bool,right:g7(U.bool,'Please use "end" instead.')},qie={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},Cj=function(e){zie(n,e);var t=Vie(n);function n(){return $ie(this,n),t.apply(this,arguments)}return Bie(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,b=o.strategy,x=o.container,O=o.updateOnSelect,E=Fie(o,Aie),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=qie[this.context.direction]||"bottom",D=u||f?"end":"start",R="".concat(A,"-").concat(D),I=[].concat(Mie(w),[{name:"flip",enabled:!!v}]),z={};y&&(z.display="block",z.visibility=this.context.isOpen?"visible":"hidden");var G=M.createElement(U7,{placement:R,modifiers:I,strategy:b},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?eu.createPortal(G,Uh(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=Gie;Cj.contextType=zh;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 Kie=["className","color","cssModule","caret","split","nav","tag","innerRef"];function Zie(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 Xie(e,t){if(e==null)return{};var n=Qie(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 Qie(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 Jie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pL(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 eoe(e,t,n){return t&&pL(e.prototype,t),n&&pL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function toe(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 noe(e){var t=ioe();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 roe(this,i)}}function roe(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 B7(e)}function B7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ioe(){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 ooe={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])},aoe={color:"secondary","aria-haspopup":!0},R_=function(e){toe(n,e);var t=noe(n);function n(r){var i;return Jie(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(B7(i)),i}return eoe(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=Xie(o,Kie),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),b;return d&&!p?(b="a",v.href="#"):p?b=p:(b=wt,v.color=s,v.cssModule=l),this.context.inNavbar?M.createElement(b,x0({},v,{className:w,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:y})):M.createElement(lie,{innerRef:m},function(x){var O=x.ref,E=function(k){O(k);var A=i.context.onToggleRef;A&&A(k)};return M.createElement(b,x0({},v,Zie({},typeof b=="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=ooe;R_.defaultProps=aoe;R_.contextType=zh;const ud=R_;function soe(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 loe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,XS(e,t)}const hL={disabled:!1},z7=M.createContext(null);var Ep="unmounted",Al="exited",Nl="entering",fc="entered",QS="exiting",qa=function(e){loe(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=Al,o.appearStatus=Nl):l=fc:r.unmountOnExit||r.mountOnEnter?l=Ep:l=Al,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Ep?{status:Al}: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!==Nl&&a!==fc&&(o=Nl):(a===Nl||a===fc)&&(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===Nl?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Al&&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]:[eu.findDOMNode(this),s],u=l[0],f=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||hL.disabled){this.safeSetState({status:fc},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Nl},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:fc},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:eu.findDOMNode(this);if(!o||hL.disabled){this.safeSetState({status:Al},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:Al},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:eu.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=soe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(z7.Provider,{value:null},typeof a=="function"?a(i,s):M.cloneElement(M.Children.only(a),s))},t}(M.Component);qa.contextType=z7;qa.propTypes={};function Ju(){}qa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ju,onEntering:Ju,onEntered:Ju,onExit:Ju,onExiting:Ju,onExited:Ju};qa.UNMOUNTED=Ep;qa.EXITED=Al;qa.ENTERING=Nl;qa.ENTERED=fc;qa.EXITING=QS;const cd=qa;var uoe=["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 coe(e,t){if(e==null)return{};var n=foe(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 foe(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 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 Vh(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){doe(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 doe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var poe=Vh(Vh({},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])}),V7=Vh(Vh({},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=coe(e,uoe),v=v7(Vh({defaultProps:V7},m),m0),g=al(m,m0);return M.createElement(cd,S0({nodeRef:p},v),function(w){var y=w==="entered",b=qe(Xe(l,o,y&&s),u);return M.createElement(r,S0({className:b},g,{ref:p}),f)})}jr.propTypes=poe;jr.defaultProps=V7;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 hoe=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],ec;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 moe(e,t){if(e==null)return{};var n=voe(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 voe(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 goe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vL(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 yoe(e,t,n){return t&&vL(e.prototype,t),n&&vL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function boe(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 _oe(e){var t=xoe();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 woe(this,i)}}function woe(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 H7(e)}function H7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function T0(e){return T0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},T0(e)}function gL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gL(Object(n),!0).forEach(function(r){Ac(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ooe=hf(hf({},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})}),Soe=hf(hf({},cd.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:h0.Collapse}),Eoe=(ec={},Ac(ec,Eg.ENTERING,"collapsing"),Ac(ec,Eg.ENTERED,"collapse show"),Ac(ec,Eg.EXITING,"collapsing"),Ac(ec,Eg.EXITED,"collapse"),ec);function Toe(e){return Eoe[e]||"collapse"}var kj=function(e){boe(n,e);var t=_oe(n);function n(r){var i;return goe(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(H7(i))}),i}return yoe(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=moe(o,hoe),v=this.state.dimension,g=v7(m,m0),w=al(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 b=Toe(y),x=qe(Xe(u,s&&"collapse-horizontal",b,f&&"navbar-collapse"),d),O=v===null?null:Ac({},s?"width":"height",v);return M.createElement(a,E0({},w,{style:hf(hf({},w.style),O),className:x,ref:i.nodeRef}),p)})}}]),n}(F.Component);kj.propTypes=Ooe;kj.defaultProps=Soe;const Coe=kj;var koe=["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 joe(e,t){if(e==null)return{};var n=Poe(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 Poe(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 Aoe={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=joe(e,koe),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=Aoe;var Noe=["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 Moe(e,t){if(e==null)return{};var n=Loe(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 Loe(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 Roe={className:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func]),tag:ft};function mf(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Moe(e,Noe),s=qe(Xe(t,"card-body"),n);return M.createElement(o,nE({},a,{className:s,ref:r}))}mf.propTypes=Roe;var Doe=["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 Ioe(e,t){if(e==null)return{};var n=Foe(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 Foe(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 Uoe={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?"div":r,o=Ioe(e,Doe),a=qe(Xe(t,"card-footer"),n);return M.createElement(i,rE({},o,{className:a}))}W7.propTypes=Uoe;var $oe=["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 Boe(e,t){if(e==null)return{};var n=zoe(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 zoe(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 Voe={className:U.string,cssModule:U.object,tag:ft};function vf(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Boe(e,$oe),a=qe(Xe(t,"card-header"),n);return M.createElement(i,iE({},o,{className:a}))}vf.propTypes=Voe;var Hoe=["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 Woe(e,t){if(e==null)return{};var n=Yoe(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 Yoe(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 Goe={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?"p":r,o=Woe(e,Hoe),a=qe(Xe(t,"card-text"),n);return M.createElement(i,oE({},o,{className:a}))}Y7.propTypes=Goe;var qoe=["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 Koe(e,t){if(e==null)return{};var n=Zoe(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 Zoe(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 Xoe={className:U.string,cssModule:U.object,tag:ft};function G7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Koe(e,qoe),a=qe(Xe(t,"card-title"),n);return M.createElement(i,aE({},o,{className:a}))}G7.propTypes=Xoe;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 Qoe=["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 yL(e){return nae(e)||tae(e)||eae(e)||Joe()}function Joe(){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 eae(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 tae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nae(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 rae(e,t){if(e==null)return{};var n=iae(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 iae(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 oae(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 aae(e,t,n){return t&&bL(e.prototype,t),n&&bL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sae(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 lae(e){var t=cae();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 uae(this,i)}}function uae(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 cae(){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 _L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function by(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_L(Object(n),!0).forEach(function(r){fae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_L(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dae(){}var pae={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:uf,target:uf.isRequired,modifiers:U.array,strategy:U.string,boundariesElement:U.oneOfType([U.string,mj]),onClosed:U.func,fade:U.bool,transition:U.shape(jr.propTypes)},hae={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:dae,fade:!0,transition:by({},jr.defaultProps)},jj=function(e){sae(n,e);var t=lae(n);function n(r){var i;return oae(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 aae(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 Uh(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Uh(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,b=i.boundariesElement;i.onClosed;var x=i.fade,O=i.transition,E=i.placement,T=rae(i,Qoe),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:b}}].filter(function(G){return!D.includes(G.name)}),I=[].concat(yL(R),yL(w)),z=by(by(by({},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(U7,{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():eu.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=pae;jj.defaultProps=hae;const mae=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 Hh(e){"@babel/helpers - typeof";return Hh=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},Hh(e)}function vae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wL(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 gae(e,t,n){return t&&wL(e.prototype,t),n&&wL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yae(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 bae(e){var t=wae();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 _ae(this,i)}}function _ae(e,t){if(t&&(Hh(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 wae(){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(zte),target:uf.isRequired,container:uf,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},q7={show:0,hide:50},xae={isOpen:!1,hideArrow:!1,autohide:!1,delay:q7,toggle:function(){},trigger:"click",fade:!0};function K7(e,t){return t&&(e===t||t.contains(e))}function xL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return K7(e,n)})[0]}var Aj=function(e){yae(n,e);var t=bae(n);function n(r){var i;return vae(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 gae(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||xL(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!K7(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&xL(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):Hh(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return Hh(o)==="object"?isNaN(o[i])?q7[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=Uh(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,b=a.modifiers,x=a.strategy,O=a.offset,E=a.fade,T=a.flip,k=a.children,A=al(this.props,Object.keys(Pj)),D=qe(w,l),R=qe(u,l);return M.createElement(mae,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:p,placement:m,placementPrefix:v,arrowClassName:g,popperClassName:D,container:y,modifiers:b,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=xae;const Oae=Aj;var Sae=["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 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 Vx(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){Eae(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 Eae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tae(e,t){if(e==null)return{};var n=Cae(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 Cae(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 kae={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 Z7(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,b=e.style,x=b===void 0?{}:b,O=e.barStyle,E=O===void 0?{}:O,T=e.barAriaValueText,k=e.barAriaLabelledBy,A=Tae(e,Sae),D=YM(a)/YM(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))}Z7.propTypes=kae;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 jae(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 Pae(e,t,n){return t&&SL(e.prototype,t),n&&SL(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&&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 Nae(e){var t=Rae();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 Mae(this,i)}}function Mae(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 Lae(e)}function Lae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rae(){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 Dae={children:U.node.isRequired,node:U.any},X7=function(e){Aae(n,e);var t=Nae(n);function n(){return jae(this,n),t.apply(this,arguments)}return Pae(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)),eu.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(M.Component);X7.propTypes=Dae;const Iae=X7;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 EL(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 tc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EL(Object(n),!0).forEach(function(r){dc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(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 dc(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(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 Uae(e,t,n){return t&&TL(e.prototype,t),n&&TL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ae(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 Bae(e){var t=Vae();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 zae(this,i)}}function zae(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 Vae(){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 CL=U.shape(jr.propTypes),Q7={autoFocus:U.bool,backdrop:U.oneOfType([U.bool,U.oneOf(["static"])]),backdropClassName:U.string,backdropTransition:CL,centered:U.bool,children:U.node,contentClassName:U.string,className:U.string,container:uf,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:CL,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])},Hae=Object.keys(Q7),Wae={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},rv=function(e){$ae(n,e);var t=Bae(n);function n(r){var i;return Fae(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 Uae(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(Yte.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=Uh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Fte(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),Ute(),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),m7(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=al(this.props,Hae),s="modal-dialog";return M.createElement("div",qp({},a,{className:qe(Xe(s,this.props.className,(i={},dc(i,"modal-".concat(this.props.size),this.props.size),dc(i,"".concat(s,"-centered"),this.props.centered),dc(i,"".concat(s,"-scrollable"),this.props.scrollable),dc(i,"modal-fullscreen",this.props.fullscreen===!0),dc(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"},b=this.props.fade,x=tc(tc(tc({},jr.defaultProps),this.props.modalTransition),{},{baseClass:b?this.props.modalTransition.baseClass:"",timeout:b?this.props.modalTransition.timeout:0}),O=tc(tc(tc({},jr.defaultProps),this.props.backdropTransition),{},{baseClass:b?this.props.backdropTransition.baseClass:"",timeout:b?this.props.backdropTransition.timeout:0}),E=p&&(b?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(Iae,{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);rv.propTypes=Q7;rv.defaultProps=Wae;rv.openCount=0;rv.originalBodyOverflow=null;const Ka=rv;var Yae=["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 Gae(e,t){if(e==null)return{};var n=qae(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 qae(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 Kae={children:U.node,className:U.string,close:U.object,closeAriaLabel:U.string,cssModule:U.object,tag:ft,toggle:U.func,wrapTag:ft};function Za(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=Gae(e,Yae),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)}Za.propTypes=Kae;var Zae=["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 Xae(e,t){if(e==null)return{};var n=Qae(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 Qae(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 Jae={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=Xae(e,Zae),a=qe(Xe(t,"modal-body"),n);return M.createElement(i,yE({},o,{className:a}))}na.propTypes=Jae;var ese=["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 tse(e,t){if(e==null)return{};var n=nse(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 nse(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={className:U.string,cssModule:U.object,tag:ft};function Au(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=tse(e,ese),a=qe(Xe(t,"modal-footer"),n);return M.createElement(i,bE({},o,{className:a}))}Au.propTypes=rse;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 ise={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function iv(e){var t=Xe("tooltip-arrow",e.arrowClassName),n=Xe("tooltip","show",e.popperClassName),r=Xe("tooltip-inner",e.innerClassName);return M.createElement(Oae,_E({},e,{arrowClassName:t,popperClassName:n,innerClassName:r}))}iv.propTypes=Pj;iv.defaultProps=ise;var ose=["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 ase(e,t){if(e==null)return{};var n=sse(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 sse(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 lse={className:U.string,cssModule:U.object,flush:U.bool,horizontal:U.oneOfType([U.bool,U.string]),numbered:U.bool,tag:ft},use=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function J7(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=ase(e,ose),d=qe(Xe(t,"list-group",o?"list-group-flush":use(s),{"list-group-numbered":u}),n);return M.createElement(i,wE({},f,{className:d}))}J7.propTypes=lse;var cse=["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 fse(e,t){if(e==null)return{};var n=dse(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 dse(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 pse={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=fse(e,cse),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=pse;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 hse=["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 mse(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}function gse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kL(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 yse(e,t,n){return t&&kL(e.prototype,t),n&&kL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bse(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 _se(e){var t=xse();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 wse(this,i)}}function wse(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 xse(){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 Ose={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},eB=function(e){bse(n,e);var t=_se(n);function n(r){var i;return gse(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(TE(i)),i.focus=i.focus.bind(TE(i)),i}return yse(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=mse(i,hse),y=["switch","radio","checkbox"].indexOf(l)>-1,b=/\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&&b.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);eB.propTypes=Ose;const yu=eB;var Sse=["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 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 Cse={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=Ese(e,Sse),s=qe(Xe(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?M.createElement(nv,L0({},a,{className:s})):M.createElement($7.Provider,{value:{insideInputGroup:!0}},M.createElement(i,L0({},a,{className:s})))}D_.propTypes=Cse;var kse=["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 jse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pse(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 Nse={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=Pse(e,kse),p=qe(Xe(t),r),m=qe(Xe(n,"pagination",jse({},"pagination-".concat(i),!!i)),r);return M.createElement(a,{className:p,"aria-label":f},M.createElement(l,CE({},d,{className:m})))}Nj.propTypes=Nse;var Mse=["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 Lse(e,t){if(e==null)return{};var n=Rse(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 Rse(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={active:U.bool,children:U.node,className:U.string,cssModule:U.object,disabled:U.bool,tag:ft};function nu(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Lse(e,Mse),l=qe(Xe(n,"page-item",{active:t,disabled:i}),r);return M.createElement(a,kE({},s,{className:l}))}nu.propTypes=Dse;var Ise=["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 Fse(e,t){if(e==null)return{};var n=Use(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 Use(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 $se={"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 ru(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=Fse(e,Ise),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)}ru.propTypes=$se;var Bse=["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 jL(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?jL(Object(n),!0).forEach(function(r){zse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vse(e,t){if(e==null)return{};var n=Hse(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 Hse(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 Wse={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 tB(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,b=e.innerRef,x=Vse(e,Bse),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:b}),p?M.createElement("button",{type:"button",className:E,"aria-label":i,onClick:p}):null,m)}tB.propTypes=Wse;var Yse=["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 Gse(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 Kse={action:U.bool,active:U.bool,className:U.string,cssModule:U.object,color:U.string,disabled:U.bool,tag:ft},Zse=function(t){t.preventDefault()};function nB(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=Gse(e,Yse),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=Zse),M.createElement(i,AE({},u,{className:f}))}nB.propTypes=Kse;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 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 Xse(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){Qse(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 Qse(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 Jse(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 ele(e,t,n){return t&&AL(e.prototype,t),n&&AL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tle(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 nle(e){var t=ile();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 rle(this,i)}}function rle(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 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 ile(){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 ole=["defaultOpen"],ov=function(e){tle(n,e);var t=nle(n);function n(r){var i;return Jse(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(rB(i)),i}return ele(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(nv,ME({isOpen:this.state.isOpen,toggle:this.toggle},al(this.props,ole)))}}]),n}(F.Component);ov.propTypes=Xse({defaultOpen:U.bool,onToggle:U.func},nv.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 NL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ale(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NL(Object(n),!0).forEach(function(r){sle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sle(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 lle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ML(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 ule(e,t,n){return t&&ML(e.prototype,t),n&&ML(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cle(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 fle(e){var t=ple();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 dle(this,i)}}function dle(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 iB(e)}function iB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ple(){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 hle=["defaultOpen"],qr=function(e){cle(n,e);var t=fle(n);function n(r){var i;return lle(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(iB(i)),i}return ule(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return M.createElement(iv,DE({isOpen:this.state.isOpen,toggle:this.toggle},al(this.props,hle)))}}]),n}(F.Component);qr.propTypes=ale({defaultOpen:U.bool},iv.propTypes);function oB(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=oB(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Li(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=oB(e))&&(r&&(r+=" "),r+=t);return r}const mle=e=>({error:"border-danger",default:""})[e],vle=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 _.jsx(kr,{className:Li("g-0",e),children:_.jsx("div",{className:o,children:_.jsx(ui,{className:mle(r),body:!0,children:_.jsxs("h3",{className:Li("text-center mb-0",vle(r)),children:[n&&_.jsx(Le,{icon:j$,spin:!0}),n&&_.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},vn=({title:e,children:t,bodyClassName:n,...r})=>_.jsxs(ui,{...r,children:[e&&_.jsx(vf,{role:"heading","aria-level":4,children:e}),_.jsx(mf,{className:n,children:t})]}),ii=({children:e,type:t,className:n,small:r=!1})=>_.jsx(kr,{className:n,children:_.jsx("div",{className:Li({"col-md-10 offset-md-1":!r,"col-12":r}),children:_.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 Cg;const gle=new Uint8Array(16);function yle(){if(!Cg&&(Cg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cg(gle)}const ir=[];for(let e=0;e<256;++e)ir.push((e+256).toString(16).slice(1));function ble(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 _le=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),LL={randomUUID:_le};function wle(e,t,n){if(LL.randomUUID&&!t&&!e)return LL.randomUUID();e=e||{};const r=e.random||(e.rng||yle)();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 ble(r)}function xle(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ole(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 Sle=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},RL=typeof Symbol<"u"&&Symbol,Ele=Sle,Tle=function(){return typeof RL!="function"||typeof Symbol!="function"||typeof RL("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ele()},DL={foo:{}},Cle=Object,kle=function(){return{__proto__:DL}.foo===DL.foo&&!({__proto__:null}instanceof Cle)},jle="Function.prototype.bind called on incompatible ",Hx=Array.prototype.slice,Ple=Object.prototype.toString,Ale="[object Function]",Nle=function(e){var t=this;if(typeof t!="function"||Ple.call(t)!==Ale)throw new TypeError(jle+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},Mle=Nle,Mj=Function.prototype.bind||Mle,Lle=Mj,Rle=Lle.call(Function.call,Object.prototype.hasOwnProperty),pt,gf=SyntaxError,aB=Function,qc=TypeError,Wx=function(e){try{return aB('"use strict"; return ('+e+").constructor;")()}catch{}},iu=Object.getOwnPropertyDescriptor;if(iu)try{iu({},"")}catch{iu=null}var Yx=function(){throw new qc},Dle=iu?function(){try{return arguments.callee,Yx}catch{try{return iu(arguments,"callee").get}catch{return Yx}}}():Yx,nc=Tle(),Ile=kle(),$n=Object.getPrototypeOf||(Ile?function(e){return e.__proto__}:null),pc={},Fle=typeof Uint8Array>"u"||!$n?pt:$n(Uint8Array),ou={"%AggregateError%":typeof AggregateError>"u"?pt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pt:ArrayBuffer,"%ArrayIteratorPrototype%":nc&&$n?$n([][Symbol.iterator]()):pt,"%AsyncFromSyncIteratorPrototype%":pt,"%AsyncFunction%":pc,"%AsyncGenerator%":pc,"%AsyncGeneratorFunction%":pc,"%AsyncIteratorPrototype%":pc,"%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%":aB,"%GeneratorFunction%":pc,"%Int8Array%":typeof Int8Array>"u"?pt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":nc&&$n?$n($n([][Symbol.iterator]())):pt,"%JSON%":typeof JSON=="object"?JSON:pt,"%Map%":typeof Map>"u"?pt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!nc||!$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"||!nc||!$n?pt:$n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":nc&&$n?$n(""[Symbol.iterator]()):pt,"%Symbol%":nc?Symbol:pt,"%SyntaxError%":gf,"%ThrowTypeError%":Dle,"%TypedArray%":Fle,"%TypeError%":qc,"%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 Ule=$n($n(e));ou["%Error.prototype%"]=Ule}var $le=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 ou[t]=n,n},IL={"%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"]},av=Mj,I0=Rle,Ble=av.call(Function.call,Array.prototype.concat),zle=av.call(Function.apply,Array.prototype.splice),FL=av.call(Function.call,String.prototype.replace),F0=av.call(Function.call,String.prototype.slice),Vle=av.call(Function.call,RegExp.prototype.exec),Hle=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Wle=/\\(\\)?/g,Yle=function(e){var t=F0(e,0,1),n=F0(e,-1);if(t==="%"&&n!=="%")throw new gf("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new gf("invalid intrinsic syntax, expected opening `%`");var r=[];return FL(e,Hle,function(i,o,a,s){r[r.length]=a?FL(s,Wle,"$1"):o||i}),r},Gle=function(e,t){var n=e,r;if(I0(IL,n)&&(r=IL[n],n="%"+r[0]+"%"),I0(ou,n)){var i=ou[n];if(i===pc&&(i=$le(n)),typeof i>"u"&&!t)throw new qc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new gf("intrinsic "+e+" does not exist!")},Lj=function(e,t){if(typeof e!="string"||e.length===0)throw new qc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new qc('"allowMissing" argument must be a boolean');if(Vle(/^%?[^%]*%?$/,e)===null)throw new gf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Yle(e),r=n.length>0?n[0]:"",i=Gle("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],zle(n,Ble([0,1],l)));for(var u=1,f=!0;u<n.length;u+=1){var d=n[u],p=F0(d,0,1),m=F0(d,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new gf("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),r+="."+d,o="%"+r+"%",I0(ou,o))a=ou[o];else if(a!=null){if(!(d in a)){if(!t)throw new qc("base intrinsic for "+e+" exists, but the property is not available.");return}if(iu&&u+1>=n.length){var v=iu(a,d);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[d]}else f=I0(a,d),a=a[d];f&&!s&&(ou[o]=a)}}return a},sB={exports:{}};(function(e){var t=Mj,n=Lj,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})(sB);var qle=sB.exports,lB=Lj,uB=qle,Kle=uB(lB("String.prototype.indexOf")),Zle=function(e,t){var n=lB(e,!!t);return typeof n=="function"&&Kle(e,".prototype.")>-1?uB(n):n};const Xle={},Qle=Object.freeze(Object.defineProperty({__proto__:null,default:Xle},Symbol.toStringTag,{value:"Module"})),Jle=Ole(Qle);var Rj=typeof Map=="function"&&Map.prototype,Gx=Object.getOwnPropertyDescriptor&&Rj?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,U0=Rj&&Gx&&typeof Gx.get=="function"?Gx.get:null,UL=Rj&&Map.prototype.forEach,Dj=typeof Set=="function"&&Set.prototype,qx=Object.getOwnPropertyDescriptor&&Dj?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$0=Dj&&qx&&typeof qx.get=="function"?qx.get:null,$L=Dj&&Set.prototype.forEach,eue=typeof WeakMap=="function"&&WeakMap.prototype,Kp=eue?WeakMap.prototype.has:null,tue=typeof WeakSet=="function"&&WeakSet.prototype,Zp=tue?WeakSet.prototype.has:null,nue=typeof WeakRef=="function"&&WeakRef.prototype,BL=nue?WeakRef.prototype.deref:null,rue=Boolean.prototype.valueOf,iue=Object.prototype.toString,oue=Function.prototype.toString,aue=String.prototype.match,Ij=String.prototype.slice,ks=String.prototype.replace,sue=String.prototype.toUpperCase,zL=String.prototype.toLowerCase,cB=RegExp.prototype.test,VL=Array.prototype.concat,Lo=Array.prototype.join,lue=Array.prototype.slice,HL=Math.floor,FE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Kx=Object.getOwnPropertySymbols,UE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,yf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",br=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===yf||"symbol")?Symbol.toStringTag:null,fB=Object.prototype.propertyIsEnumerable,WL=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function YL(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||cB.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-HL(-e):HL(e);if(r!==e){var i=String(r),o=Ij.call(t,i.length+1);return ks.call(i,n,"$&_")+"."+ks.call(ks.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ks.call(t,n,"$&_")}var $E=Jle,GL=$E.custom,qL=pB(GL)?GL:null,uue=function e(t,n,r,i){var o=n||{};if(bs(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(bs(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=bs(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(bs(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(bs(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 mB(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?YL(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?YL(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 BE(t)?"[Array]":"[Object]";var d=Cue(o,r);if(typeof i>"u")i=[];else if(hB(i,t)>=0)return"[Circular]";function p(G,H,Q){if(H&&(i=lue.call(i),i.push(H)),Q){var Z={depth:o.depth};return bs(o,"quoteStyle")&&(Z.quoteStyle=o.quoteStyle),e(G,Z,r+1,i)}return e(G,o,r+1,i)}if(typeof t=="function"&&!KL(t)){var m=yue(t),v=kg(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+Lo.call(v,", ")+" }":"")}if(pB(t)){var g=yf?ks.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):UE.call(t);return typeof t=="object"&&!yf?ip(g):g}if(Sue(t)){for(var w="<"+zL.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)w+=" "+y[b].name+"="+dB(cue(y[b].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+zL.call(String(t.nodeName))+">",w}if(BE(t)){if(t.length===0)return"[]";var x=kg(t,p);return d&&!Tue(x)?"["+zE(x,d)+"]":"[ "+Lo.call(x,", ")+" ]"}if(due(t)){var O=kg(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!fB.call(t,"cause")?"{ ["+String(t)+"] "+Lo.call(VL.call("[cause]: "+p(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Lo.call(O,", ")+" }"}if(typeof t=="object"&&a){if(qL&&typeof t[qL]=="function"&&$E)return $E(t,{depth:f-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(bue(t)){var E=[];return UL&&UL.call(t,function(G,H){E.push(p(H,t,!0)+" => "+p(G,t))}),ZL("Map",U0.call(t),E,d)}if(xue(t)){var T=[];return $L&&$L.call(t,function(G){T.push(p(G,t))}),ZL("Set",$0.call(t),T,d)}if(_ue(t))return Zx("WeakMap");if(Oue(t))return Zx("WeakSet");if(wue(t))return Zx("WeakRef");if(hue(t))return ip(p(Number(t)));if(vue(t))return ip(p(FE.call(t)));if(mue(t))return ip(rue.call(t));if(pue(t))return ip(p(String(t)));if(!fue(t)&&!KL(t)){var k=kg(t,p),A=WL?WL(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",R=!A&&br&&Object(t)===t&&br in t?Ij.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(VL.call([],R||[],D||[]),": ")+"] ":"");return k.length===0?z+"{}":d?z+"{"+zE(k,d)+"}":z+"{ "+Lo.call(k,", ")+" }"}return String(t)};function dB(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function cue(e){return ks.call(String(e),/"/g,""")}function BE(e){return ll(e)==="[object Array]"&&(!br||!(typeof e=="object"&&br in e))}function fue(e){return ll(e)==="[object Date]"&&(!br||!(typeof e=="object"&&br in e))}function KL(e){return ll(e)==="[object RegExp]"&&(!br||!(typeof e=="object"&&br in e))}function due(e){return ll(e)==="[object Error]"&&(!br||!(typeof e=="object"&&br in e))}function pue(e){return ll(e)==="[object String]"&&(!br||!(typeof e=="object"&&br in e))}function hue(e){return ll(e)==="[object Number]"&&(!br||!(typeof e=="object"&&br in e))}function mue(e){return ll(e)==="[object Boolean]"&&(!br||!(typeof e=="object"&&br in e))}function pB(e){if(yf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!UE)return!1;try{return UE.call(e),!0}catch{}return!1}function vue(e){if(!e||typeof e!="object"||!FE)return!1;try{return FE.call(e),!0}catch{}return!1}var gue=Object.prototype.hasOwnProperty||function(e){return e in this};function bs(e,t){return gue.call(e,t)}function ll(e){return iue.call(e)}function yue(e){if(e.name)return e.name;var t=aue.call(oue.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function hB(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 bue(e){if(!U0||!e||typeof e!="object")return!1;try{U0.call(e);try{$0.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function _ue(e){if(!Kp||!e||typeof e!="object")return!1;try{Kp.call(e,Kp);try{Zp.call(e,Zp)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function wue(e){if(!BL||!e||typeof e!="object")return!1;try{return BL.call(e),!0}catch{}return!1}function xue(e){if(!$0||!e||typeof e!="object")return!1;try{$0.call(e);try{U0.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Oue(e){if(!Zp||!e||typeof e!="object")return!1;try{Zp.call(e,Zp);try{Kp.call(e,Kp)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Sue(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function mB(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return mB(Ij.call(e,0,t.maxStringLength),t)+r}var i=ks.call(ks.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Eue);return dB(i,"single",t)}function Eue(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":"")+sue.call(t.toString(16))}function ip(e){return"Object("+e+")"}function Zx(e){return e+" { ? }"}function ZL(e,t,n,r){var i=r?zE(n,r):Lo.call(n,", ");return e+" ("+t+") {"+i+"}"}function Tue(e){for(var t=0;t<e.length;t++)if(hB(e[t],`
|
||
`)>=0)return!1;return!0}function Cue(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 zE(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+Lo.call(e,","+n)+`
|
||
`+t.prev}function kg(e,t){var n=BE(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=bs(e,i)?t(e[i],e):""}var o=typeof Kx=="function"?Kx(e):[],a;if(yf){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)bs(e,l)&&(n&&String(Number(l))===l&&l<e.length||yf&&a["$"+l]instanceof Symbol||(cB.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++)fB.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var Fj=Lj,fd=Zle,kue=uue,jue=Fj("%TypeError%"),jg=Fj("%WeakMap%",!0),Pg=Fj("%Map%",!0),Pue=fd("WeakMap.prototype.get",!0),Aue=fd("WeakMap.prototype.set",!0),Nue=fd("WeakMap.prototype.has",!0),Mue=fd("Map.prototype.get",!0),Lue=fd("Map.prototype.set",!0),Rue=fd("Map.prototype.has",!0),Uj=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},Due=function(e,t){var n=Uj(e,t);return n&&n.value},Iue=function(e,t,n){var r=Uj(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Fue=function(e,t){return!!Uj(e,t)},Uue=function(){var e,t,n,r={assert:function(i){if(!r.has(i))throw new jue("Side channel does not contain "+kue(i))},get:function(i){if(jg&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Pue(e,i)}else if(Pg){if(t)return Mue(t,i)}else if(n)return Due(n,i)},has:function(i){if(jg&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Nue(e,i)}else if(Pg){if(t)return Rue(t,i)}else if(n)return Fue(n,i);return!1},set:function(i,o){jg&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new jg),Aue(e,i,o)):Pg?(t||(t=new Pg),Lue(t,i,o)):(n||(n={key:{},next:null}),Iue(n,i,o))}};return r},$ue=String.prototype.replace,Bue=/%20/g,Xx={RFC1738:"RFC1738",RFC3986:"RFC3986"},$j={default:Xx.RFC3986,formatters:{RFC1738:function(e){return $ue.call(e,Bue,"+")},RFC3986:function(e){return String(e)}},RFC1738:Xx.RFC1738,RFC3986:Xx.RFC3986},zue=$j,Qx=Object.prototype.hasOwnProperty,Ul=Array.isArray,Po=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Vue=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Ul(n)){for(var r=[],i=0;i<n.length;++i)typeof n[i]<"u"&&r.push(n[i]);t.obj[t.prop]=r}}},vB=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},Hue=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ul(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 Ul(t)&&!Ul(n)&&(i=vB(t,r)),Ul(t)&&Ul(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)},Wue=function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=t[r],n},e)},Yue=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}},Gue=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===zue.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},que=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 Vue(t),e},Kue=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Zue=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Xue=function(e,t){return[].concat(e,t)},Que=function(e,t){if(Ul(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},gB={arrayToObject:vB,assign:Wue,combine:Xue,compact:que,decode:Yue,encode:Gue,isBuffer:Zue,isRegExp:Kue,maybeMap:Que,merge:Hue},yB=Uue,_y=gB,Xp=$j,Jue=Object.prototype.hasOwnProperty,XL={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},ha=Array.isArray,ece=Array.prototype.push,bB=function(e,t){ece.apply(e,ha(t)?t:[t])},tce=Date.prototype.toISOString,QL=Xp.default,hr={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:_y.encode,encodeValuesOnly:!1,format:QL,formatter:Xp.formatters[QL],indices:!1,serializeDate:function(e){return tce.call(e)},skipNulls:!1,strictNullHandling:!1},nce=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Jx={},rce=function e(t,n,r,i,o,a,s,l,u,f,d,p,m,v,g,w){for(var y=t,b=w,x=0,O=!1;(b=b.get(Jx))!==void 0&&!O;){var E=b.get(t);if(x+=1,typeof E<"u"){if(E===x)throw new RangeError("Cyclic object value");O=!0}typeof b.get(Jx)>"u"&&(x=0)}if(typeof l=="function"?y=l(n,y):y instanceof Date?y=d(y):r==="comma"&&ha(y)&&(y=_y.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(nce(y)||_y.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=_y.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=yB();Q.set(Jx,w),bB(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},ice=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=Xp.default;if(typeof e.format<"u"){if(!Jue.call(Xp.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Xp.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}},oce=function(e,t){var n=e,r=ice(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 XL?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=XL[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=yB(),d=0;d<i.length;++d){var p=i[d];r.skipNulls&&n[p]===null||bB(a,rce(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:""},bf=gB,VE=Object.prototype.hasOwnProperty,ace=Array.isArray,Fn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:bf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},sce=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},_B=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},lce="utf8=%26%2310003%3B",uce="utf8=%E2%9C%93",cce=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]===uce?l="utf-8":o[s]===lce&&(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=bf.maybeMap(_B(u.slice(d+1),t),function(v){return t.decoder(v,Fn.decoder,l,"value")})),m&&t.interpretNumericEntities&&l==="iso-8859-1"&&(m=sce(m)),u.indexOf("[]=")>-1&&(m=ace(m)?[m]:m),VE.call(n,p)?n[p]=bf.combine(n[p],m):n[p]=m}return n},fce=function(e,t,n,r){for(var i=r?t:_B(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},dce=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&&VE.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&&VE.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),fce(u,t,n,r)}},pce=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"||bf.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}},hce=function(e,t){var n=pce(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?cce(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=dce(s,r[s],n,typeof e=="string");i=bf.merge(i,l,n)}return n.allowSparse===!0?i:bf.compact(i)},mce=oce,vce=hce,gce=$j,yce={formats:gce,parse:vce,stringify:mce};const wB=xle(yce),dd=e=>wB.parse(e,{ignoreQueryPrefix:!0}),I_=e=>wB.stringify(e,{arrayFormat:"brackets"}),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]},xB=(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]},F_=()=>{const{current:e}=F.useRef(`dom-${wle()}`);return e},ul=()=>F.useRef(null),OB=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=F_(),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 _.jsxs("span",{className:Li("form-check",l,n),style:u,children:[_.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),_.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},SB=e=>_.jsx(OB,{type:"checkbox",...e}),_f=e=>_.jsx(OB,{type:"switch",...e}),pd=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>_.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[_.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),wy=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=F_();return _.jsx(pd,{label:_.jsxs(_.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:l,children:_.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:u=>n(u.target.value)})})},bce=500;let xy;const JL=()=>{xy&&clearTimeout(xy),xy=null},sv=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=F.useState(i),l=(u,f=bce)=>{s(u),JL(),xy=o(()=>{e(u),JL()},f)};return _.jsxs("div",{className:Li("search-field",t),children:[_.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)}),_.jsx(Le,{icon:CJ,className:"search-field__icon"}),_.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},Xa=({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 _.jsxs(nv,{isOpen:d,toggle:p,disabled:t,className:i,children:[_.jsx(ud,{size:u,caret:!o,className:m,color:"primary",...f,children:e}),_.jsx(ld,{className:"w-100",end:a,style:v,children:r})]})},U_=({children:e,minWidth:t,label:n="Options"})=>_.jsx(Xa,{text:_.jsx(Le,{className:"px-1",icon:yJ}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Qp=({children:e,...t})=>_.jsx(yj,{children:_.jsx(S7,{className:"nav-pills__nav-link",tag:h$,...t,children:e})}),EB=({children:e,fill:t=!1,className:n=""})=>_.jsx(ui,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:_.jsx(gj,{pills:!0,fill:t,children:F.Children.map(e,r=>{if(!F.isValidElement(r)||r.type!==Qp)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),$_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",TB=(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}),_ce=e=>e.dir?`${e.field}-${e.dir}`:void 0,wce=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function lv({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=$_(s,t.field,t.dir);n(l?s:void 0,l)};return _.jsxs(ov,{children:[_.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&&_.jsx(_.Fragment,{children:"Order by"}),r&&!t.field&&_.jsx("i",{children:"Order by..."}),r&&t.field&&_.jsxs(_.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",_.jsx("small",{children:t.dir??"DESC"})]})]}),_.jsxs(ld,{end:i,className:Li("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>_.jsxs(ze,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&_.jsx(Le,{icon:t.dir==="ASC"?xJ:lJ,className:"ordering-dropdown__sort-icon"})]},s)),_.jsx(ze,{divider:!0}),_.jsx(ze,{disabled:!t.field,onClick:()=>n(),children:_.jsx("i",{children:"Clear selection"})})]})]})}const B0="#4696e5",xce="rgba(70, 150, 229, 0.4)",HE="#f77f28",Oce="rgba(247, 127, 40, 0.4)",Sce="white",Ece="#161b22",Tce=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},Bj=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},zj=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light";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)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=CB(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hd(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=CB(e))&&(r&&(r+=" "),r+=t);return r}const Cce=F.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=En(),a=F.useCallback(()=>{o(),n()},[n,o]);return _.jsxs(tB,{className:"app-update-banner",isOpen:e,toggle:t,tag:vn,color:"secondary",innerRef:r,children:[_.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),_.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",_.jsxs(wt,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&_.jsxs(_.Fragment,{children:["Restart now ",_.jsx(Le,{icon:NJ,className:"ms-1"})]}),i&&_.jsx(_.Fragment,{children:"Restarting..."})]})]})]})}),kB=({to:e="/",children:t="Home"})=>_.jsx("div",{className:"home",children:_.jsxs(vn,{className:"p-4",children:[_.jsx("h2",{children:"Oops! We could not find requested route."}),_.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),_.jsx("br",{}),_.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 kce=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;Tce(((y=n.ui)==null?void 0:y.theme)??zj())},[(w=n.ui)==null?void 0:w.theme]),_.jsxs("div",{className:"container-fluid app-container",children:[_.jsx(o,{}),_.jsxs("div",{className:"app",children:[_.jsx("div",{className:hd("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:_.jsxs(C_,{children:[_.jsx(Et,{index:!0,element:_.jsx(a,{})}),_.jsx(Et,{path:"/settings/*",element:_.jsx(f,{})}),_.jsx(Et,{path:"/manage-servers",element:_.jsx(d,{})}),_.jsx(Et,{path:"/server/create",element:_.jsx(l,{})}),_.jsx(Et,{path:"/server/:serverId/edit",element:_.jsx(u,{})}),_.jsx(Et,{path:"/server/:serverId/*",element:_.jsx(s,{})}),_.jsx(Et,{path:"*",element:_.jsx(kB,{})})]})}),_.jsx("div",{className:"shlink-footer",children:_.jsx(p,{})})]}),_.jsx(Cce,{isOpen:r,toggle:i,forceUpdate:kce})]})},jce=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 Pce=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),eR=Pce,eO=()=>Math.random().toString(36).substring(7).split("").join("."),Ace={INIT:`@@redux/INIT${eO()}`,REPLACE:`@@redux/REPLACE${eO()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${eO()}`},z0=Ace;function Vj(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 b=s++;return a.set(b,w),function(){if(y){if(l)throw new Error(ar(6));y=!1,u(),a.delete(b),o=null}}}function p(w){if(!Vj(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(b=>{b()}),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 b(){const O=y;O.next&&O.next(f())}return b(),{unsubscribe:w(b)}},[eR](){return this}}}return p({type:z0.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:m,[eR]:v}}function Nce(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 Hj(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{Nce(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 Mce(...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 Lce(e){return Vj(e)&&"type"in e&&typeof e.type=="string"}var AB=Symbol.for("immer-nothing"),tR=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 wf=Object.getPrototypeOf;function Xs(e){return!!e&&!!e[ci]}function Ia(e){var t;return e?NB(e)||Array.isArray(e)||!!e[tR]||!!((t=e.constructor)!=null&&t[tR])||z_(e)||V_(e):!1}var Rce=Object.prototype.constructor.toString();function NB(e){if(!e||typeof e!="object")return!1;const t=wf(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)===Rce}function Wh(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 Dce(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 Ml(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 wf(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(wf(e),n)}function Wj(e,t=!1){return H_(e)||Xs(e)||!Ia(e)||(B_(e)>1&&(e.set=e.add=e.clear=e.delete=Ice),Object.freeze(e),t&&Wh(e,(n,r)=>Wj(r,!0))),e}function Ice(){lo(2)}function H_(e){return Object.isFrozen(e)}var Fce={};function bu(e){const t=Fce[e];return t||lo(0,e),t}var Yh;function LB(){return Yh}function Uce(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function nR(e,t){t&&(bu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function GE(e){qE(e),e.drafts_.forEach($ce),e.drafts_=null}function qE(e){e===Yh&&(Yh=e.parent_)}function rR(e){return Yh=Uce(Yh,e)}function $ce(e){const t=e[ci];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function iR(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_&&bu("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 Wh(t,(i,o)=>oR(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),Wh(o,(s,l)=>oR(e,r,i,s,l,n,a)),W0(e,i,!1),n&&e.patches_&&bu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function oR(e,t,n,r,i,o,a){if(Xs(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),Xs(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_&&Wj(t,n)}function Bce(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=Yj;n&&(i=[r],o=Gh);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var Yj={get(e,t){if(t===ci)return e;const n=Ml(e);if(!WE(n,t))return zce(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 Ml(e)},ownKeys(e){return Reflect.ownKeys(Ml(e))},set(e,t,n){const r=RB(Ml(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=tO(Ml(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(Dce(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=Ml(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 wf(e.base_)},setPrototypeOf(){lo(12)}},Gh={};Wh(Yj,(e,t)=>{Gh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Gh.deleteProperty=function(e,t){return Gh.set.call(this,e,t,void 0)};Gh.set=function(e,t,n){return Yj.set.call(this,e[0],t,n,e[0])};function tO(e,t){const n=e[ci];return(n?Ml(n):e)[t]}function zce(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=wf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=wf(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 Vce=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=rR(this),a=ZE(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?GE(o):qE(o)}return nR(o,r),iR(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===AB&&(i=void 0),this.autoFreeze_&&Wj(i,!0),r){const o=[],a=[];bu("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),Xs(e)&&(e=DB(e));const t=rR(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 nR(r,t),iR(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=bu("Patches").applyPatches_;return Xs(e)?r(e,t):this.produce(e,i=>r(i,t))}};function ZE(e,t){const n=z_(e)?bu("MapSet").proxyMap_(e,t):V_(e)?bu("MapSet").proxySet_(e,t):Bce(e,t);return(t?t.scope_:LB()).drafts_.push(n),n}function DB(e){return Xs(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 Wh(n,(r,i)=>{MB(n,r,IB(i))}),t&&(t.finalized_=!1),n}var fi=new Vce,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 Hce(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Wce(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 aR=e=>Array.isArray(e)?e:[e];function Yce(e){const t=Array.isArray(e[0])?e[0]:e;return Wce(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Gce(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var qce=class{constructor(e){this.value=e}deref(){return this.value}},Kce=typeof WeakRef<"u"?WeakRef:qce,Zce=0,sR=1;function Ag(){return{s:Zce,v:void 0,o:null,p:null}}function UB(e,t={}){let n=Ag();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=Ag(),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=Ag(),v.set(m,s)):s=g}}const u=s;let f;if(s.s===sR?f=s.v:(f=e.apply(null,arguments),o++),u.s=sR,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 Kce(f):f}return u.v=f,f}return a.clearCache=()=>{n=Ag(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Xce(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()),Hce(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=aR(p),y=aR(v),b=Yce(i),x=d(function(){return o++,u.apply(null,arguments)},...w),O=m(function(){a++;const T=Gce(b,arguments);return s=x.apply(null,T),s},...y);return Object.assign(O,{resultFunc:u,memoizedResultFunc:x,dependencies:b,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 Qce=$B(),Jce=$B,efe=(...e)=>{const t=Xce(...e);return(...n)=>{const r=t(...n),i=(o,...a)=>r(Xs(o)?DB(o):o,...a);return Object.assign(i,r),i}};efe(UB);var tfe=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)},nfe=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=>Lce(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 lR(e){return Ia(e)?FB(e,()=>{}):e}function uR(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 rfe(e){return typeof e=="boolean"}var ife=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new BB;return n&&(rfe(n)?a.push(Qce):a.push(Jce(n.extraArgument))),a},ofe="RTK_autoBatch",zB=e=>t=>{setTimeout(t,e)},afe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zB(10),sfe=(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"?afe: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[ofe]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(f)}finally{i=!0}}})},lfe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new BB(e);return r&&i.push(sfe(typeof r=="object"?r:void 0)),i},ufe=!0;function VB(e){const t=ife(),{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(Vj(n))s=Hj(n);else throw new Error(go(1));let l;typeof r=="function"?l=r(t):l=t();let u=V0;i&&(u=tfe({trace:!ufe,...typeof i=="object"&&i}));const f=Mce(...l),d=lfe(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 cfe(e){return typeof e=="function"}function ffe(e,t){let[n,r,i]=HB(t),o;if(cfe(e))o=()=>lR(e());else{const s=lR(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(Xs(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 dfe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",pfe=(e=21)=>{let t="",n=e;for(;n--;)t+=dfe[Math.random()*64|0];return t},hfe=(e,t)=>nfe(e)?e.match(t):e(t);function mfe(...e){return t=>e.some(n=>hfe(n,t))}var vfe=["name","message","stack","code"],rO=class{constructor(e,t){Zu(this,"_type");this.payload=e,this.meta=t}},cR=class{constructor(e,t){Zu(this,"_type");this.payload=e,this.meta=t}},gfe=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of vfe)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||gfe)(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):pfe(),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(bfe(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 cR(k,A)})).then(k=>{if(k instanceof rO)throw k;return k instanceof cR?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(yfe)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:mfe(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function yfe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function bfe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _fe=Symbol.for("rtk-slice-createasyncthunk");function wfe(e,t){return`${e}/${t}`}function xfe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[_fe];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(Sfe()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(w,y){const b=typeof w=="string"?w:w.type;if(!b)throw new Error(go(12));if(b in u.sliceCaseReducersByType)throw new Error(go(13));return u.sliceCaseReducersByType[b]=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],b={reducerName:w,type:wfe(o,w),createNotation:typeof i.reducers=="function"};Tfe(y)?kfe(b,y,f,t):Efe(b,y,f)});function d(){const[w={},y=[],b=void 0]=typeof i.extraReducers=="function"?HB(i.extraReducers):[i.extraReducers],x={...w,...u.sliceCaseReducersByType};return ffe(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);b&&O.addDefaultCase(b)})}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=uR(m,this,{insert:()=>new WeakMap});return uR(y,w,{insert:()=>{const b={};for(const[x,O]of Object.entries(i.selectors??{}))b[x]=Ofe(this,O,w,this!==g);return b}})},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,...b}={}){const x=y??this.reducerPath;return w.inject({reducerPath:x,reducer:this.reducer},b),{...this,reducerPath:x}}};return g}}function Ofe(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=xfe();function Sfe(){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 Efe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!Cfe(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 Tfe(e){return e._reducerDefinitionType==="asyncThunk"}function Cfe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function kfe({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||Ng,pending:s||Ng,rejected:l||Ng,settled:u||Ng})}function Ng(){}var Gj="listenerMiddleware";Wn(`${Gj}/add`);Wn(`${Gj}/removeAll`);Wn(`${Gj}/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:jfe,reducer:Pfe}=Yn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Afe,resetAppUpdate:Nfe}=jfe,Mfe=Pfe,Lfe=(e,t)=>{e.factory("App",jce),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Afe),e.serviceFactory("resetAppUpdate",()=>Nfe)},fR={"Content-Type":"application/json"},dR=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...fR}}:{headers:fR}:e;class Rfe{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,dR(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,dR(n)).then(async r=>{if(!r.ok)throw await r.json()})}}var qj=(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))(qj||{}),Kj=(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))(Kj||{}),Dfe={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"]},Ife=Dfe,Ffe={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"]},Ufe=Ffe,$fe={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"]},Bfe={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"]},zfe={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"]},Vfe=Object.defineProperty,Hfe=(e,t,n)=>t in e?Vfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uo=(e,t,n)=>(Hfe(e,typeof t!="symbol"?t+"":t,n),n),wo,Qo=".",GB="function",qB="string",KB="__global__",Zj="Provider",Wfe=0,Xj=Array.prototype.slice,Yfe=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(Yfe,this)},Gfe=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]},qfe=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},Kfe=function(e,t){return t(e)},pR=function(e,t){return(e[t]||[]).concat(e.__global__||[])},Zfe=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+Zj,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=pR(o,e).reduce(Kfe,s.$get(i)),delete i[n],delete i[e]),l===void 0?l:Gfe(pR(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+Zj]?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):Zfe.call(this,r,t))},Qj=function(e,t){return XB.call(this,e,function(){this.$get=t})},QB=function(e,t,n){var r=arguments.length>3?Xj.call(arguments,3):[],i=this;return Qj.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)})},Xfe=function(e,t){return QB.apply(this,[e,t,!0].concat(Xj.call(arguments,2)))},Qfe=function(e,t){return QB.apply(this,[e,t,!1].concat(Xj.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},Jfe=function(e,t){var n;return n=e.split(Qo),e=n.pop(),JB.call(n.reduce(e2,this.container),e,t),this},ede=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},tde=function(e,t){var n=e.split(Qo);return e=n.pop(),ede.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},nde=function(e){return this.deferred.push(e),this},rde=function(e){return(e||[]).map(ZB,this.container)},ide=function(e,t){return Qj.call(this,e,function(n){return{instance:t.bind(t,n)}})},ode=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},Jj=function(e){return Object.keys(e||this.container||{}).filter(ode)},Y0={},ade=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},sde=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||[]))},hR=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+Zj]},lde=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(hR,W_.call(this,i[0])),hR.call(this,r),this.provider(r,t[r])}},this)},ude=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=Wfe++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:t2.bind(this),$register:n2.bind(this),$list:Jj.bind(this)}};wo.prototype={constant:tde,decorator:t2,defer:nde,digest:rde,factory:Qj,instanceFactory:ide,list:Jj,middleware:qfe,provider:XB,resetProviders:lde,register:n2,resolve:ude,service:Xfe,serviceFactory:Qfe,value:Jfe};wo.pop=ade;wo.clear=sde;wo.list=Jj;wo.config={strict:!1};const cde=wo,fde=({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?_.jsxs(D_,{children:[_.jsx(yu,{value:t??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),_.jsx(wt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:u,children:_.jsx(Le,{icon:mJ})}),_.jsx(qr,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):_.jsxs(Xa,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:d,isDefault:p})=>_.jsxs(ze,{active:(t===d||p)&&l,onClick:()=>r(d),children:[d,p&&_.jsx("span",{className:"float-end text-muted",children:"default"})]},d)),_.jsx(ze,{divider:!0}),_.jsx(ze,{onClick:f,children:_.jsx("i",{children:"New domain"})})]})},dde=e=>(e==null?void 0:e.type)===qj.INVALID_ARGUMENT||(e==null?void 0:e.type)===Kj.INVALID_ARGUMENT,pde=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===qj.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===Kj.INVALID_SHORT_URL_DELETION,hde=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),xo=e=>hde(e)?e:void 0,Fa=({errorData:e,fallbackMessage:t})=>_.jsxs(_.Fragment,{children:[(e==null?void 0:e.detail)??t,dde(e)&&_.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),mde=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,mR=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(mde);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},vR=e=>e==="*"||e==="x"||e==="X",gR=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},vde=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],gde=(e,t)=>{if(vR(e)||vR(t))return 0;const[n,r]=vde(gR(e),gR(t));return n>r?1:n<r?-1:0},yR=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=gde(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},yde=(e,t)=>{const n=mR(e),r=mR(t),i=n.pop(),o=r.pop(),a=yR(n,r);return a!==0?a:i&&o?yR(i.split("."),o.split(".")):i||o?i?-1:1:0},bR=(e,t,n)=>{bde(n);const r=yde(e,t);return r2[n].includes(r)},r2={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},_R=Object.keys(r2),bde=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(_R.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${_R.join("|")}`)},_de=(e,{maxVersion:t,minVersion:n})=>{const r=!n||bR(e,n,">=");return(!t||bR(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 rc=(e,t)=>t==="latest"||_de(t,{minVersion:i2[e]}),o2=e=>({domainVisits:rc("domainVisits",e),excludeBotsOnShortUrls:rc("excludeBotsOnShortUrls",e),filterDisabledUrls:rc("filterDisabledUrls",e),deviceLongUrls:rc("deviceLongUrls",e),shortUrlVisitsDeletion:rc("shortUrlVisitsDeletion",e),orphanVisitsDeletion:rc("orphanVisitsDeletion",e)}),a2=F.createContext(o2("0.0.0")),wde=a2.Provider,xde=e=>F.useMemo(()=>o2(e),[e]),Nu=e=>F.useContext(a2)[e],s2=F.createContext(""),Ode=s2.Provider,Mu=()=>F.useContext(s2),Jp=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Sde=(e,t)=>!e.domain&&t===B2?!0:e.domain===t,Ede=(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="__",Tde=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 Lu(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 Cde(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?Lu(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 eP(e,t){Pe(2,arguments);var n=Ne(e).getTime(),r=Je(t);return new Date(n+r)}var kde=36e5;function jde(e,t){Pe(2,arguments);var n=Je(t);return eP(e,n*kde)}var Pde={};function Qa(){return Pde}function c2(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Qa(),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 qh(e){return Pe(1,arguments),c2(e,{weekStartsOn:1})}function Ade(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=qh(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=qh(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Nde(e){Pe(1,arguments);var t=Ade(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=qh(n);return r}function xf(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 Mde=864e5;function Kh(e,t){Pe(2,arguments);var n=oi(e),r=oi(t),i=n.getTime()-xf(n),o=r.getTime()-xf(r);return Math.round((i-o)/Mde)}var Lde=6e4;function XE(e,t){Pe(2,arguments);var n=Je(t);return eP(e,n*Lde)}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 Lu(e,r)}function Of(e,t){Pe(2,arguments);var n=Je(t);return zi(e,n*12)}function wR(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 xR(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 Oy(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 tP=6e4,Y_=36e5,Rde=1e3;function Dde(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 Zh(e){if(Pe(1,arguments),!G_(e)&&typeof e!="number")return!1;var t=Ne(e);return!isNaN(Number(t))}function Xh(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 Nc(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 OR(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 nP(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t),i=OR(n,r),o=Math.abs(Kh(n,r));n.setDate(n.getDate()-i*o);var a=+(OR(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 SR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Ide="trunc";function rP(e){return e?SR[e]:SR[Ide]}function Fde(e,t,n){Pe(2,arguments);var r=d2(e,t)/Y_;return rP(n==null?void 0:n.roundingMethod)(r)}function _u(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 Ude(e){Pe(1,arguments);var t=Ne(e);return _u(t).getTime()===p2(t).getTime()}function K0(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t),i=Oy(n,r),o=Math.abs(Xh(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=Oy(n,r)===-i;Ude(Ne(e))&&o===1&&Oy(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function $de(e,t,n){Pe(2,arguments);var r=d2(e,t)/1e3;return rP(n==null?void 0:n.roundingMethod)(r)}function Bde(e,t,n){Pe(2,arguments);var r=nP(e,t)/7;return rP(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 zde(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 Vde(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Qa(),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 Hde(e){return Pe(1,arguments),Vde(e,{weekStartsOn:1})}function v2(e,t){Pe(2,arguments);var n=Je(t);return eP(e,-n)}var Wde=864e5;function Yde(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/Wde)+1}function Sf(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=Sf(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Sf(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Gde(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=Sf(n);return r}var qde=6048e5;function y2(e){Pe(1,arguments);var t=Ne(e),n=Sf(t).getTime()-Gde(t).getTime();return Math.round(n/qde)+1}function wu(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Qa(),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 iP(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Ne(e),d=f.getUTCFullYear(),p=Qa(),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=wu(v,t),w=new Date(0);w.setUTCFullYear(d,0,m),w.setUTCHours(0,0,0,0);var y=wu(w,t);return f.getTime()>=g.getTime()?d+1:f.getTime()>=y.getTime()?d:d-1}function Kde(e,t){var n,r,i,o,a,s,l,u;Pe(1,arguments);var f=Qa(),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=iP(e,t),m=new Date(0);m.setUTCFullYear(p,0,d),m.setUTCHours(0,0,0,0);var v=wu(m,t);return v}var Zde=6048e5;function b2(e,t){Pe(1,arguments);var n=Ne(e),r=wu(n,t).getTime()-Kde(n,t).getTime();return Math.round(r/Zde)+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 Xde={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 ls=Xde;var ic={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qde={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 ls.y(e,t)},Y:function(e,t,n,r){var i=iP(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 ls.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"}):ls.d(e,t)},D:function(e,t,n){var r=Yde(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=ic.noon:r===0?i=ic.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=ic.evening:r>=12?i=ic.afternoon:r>=4?i=ic.morning:i=ic.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 ls.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ls.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"}):ls.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ls.s(e,t)},S:function(e,t){return ls.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 TR(o);case"XXXX":case"XX":return Ll(o);case"XXXXX":case"XXX":default:return Ll(o,":")}},x:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return TR(o);case"xxxx":case"xx":return Ll(o);case"xxxxx":case"xxx":default:return Ll(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"+ER(o,":");case"OOOO":default:return"GMT"+Ll(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"+ER(o,":");case"zzzz":default:return"GMT"+Ll(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 ER(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 TR(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ct(Math.abs(e)/60,2)}return Ll(e,t)}function Ll(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 Jde=Qde;var CR=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"})}},epe=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return CR(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}}",CR(r,t)).replace("{{time}}",_2(i,t))},tpe={p:_2,P:epe};const JE=tpe;var npe=["D","DD"],rpe=["YY","YYYY"];function w2(e){return npe.indexOf(e)!==-1}function x2(e){return rpe.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 ipe={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"}},ope=function(e,t,n){var r,i=ipe[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 ape=ope;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 spe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lpe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},upe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cpe={date:iO({formats:spe,defaultWidth:"full"}),time:iO({formats:lpe,defaultWidth:"full"}),dateTime:iO({formats:upe,defaultWidth:"full"})};const fpe=cpe;var dpe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ppe=function(e,t,n,r){return dpe[e]};const hpe=ppe;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 mpe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vpe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},gpe={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"]},ype={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"]},bpe={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"}},_pe={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"}},wpe=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"},xpe={ordinalNumber:wpe,era:op({values:mpe,defaultWidth:"wide"}),quarter:op({values:vpe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:op({values:gpe,defaultWidth:"wide"}),day:op({values:ype,defaultWidth:"wide"}),dayPeriod:op({values:bpe,defaultWidth:"wide",formattingValues:_pe,defaultFormattingWidth:"wide"})};const Ope=xpe;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)?Epe(s,function(d){return d.test(a)}):Spe(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 Spe(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Epe(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Tpe(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 Cpe=/^(\d+)(th|st|nd|rd)?/i,kpe=/\d+/i,jpe={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},Ppe={any:[/^b/i,/^(a|c)/i]},Ape={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Npe={any:[/1/i,/2/i,/3/i,/4/i]},Mpe={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},Lpe={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]},Rpe={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},Dpe={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]},Ipe={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},Fpe={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}},Upe={ordinalNumber:Tpe({matchPattern:Cpe,parsePattern:kpe,valueCallback:function(e){return parseInt(e,10)}}),era:ap({matchPatterns:jpe,defaultMatchWidth:"wide",parsePatterns:Ppe,defaultParseWidth:"any"}),quarter:ap({matchPatterns:Ape,defaultMatchWidth:"wide",parsePatterns:Npe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ap({matchPatterns:Mpe,defaultMatchWidth:"wide",parsePatterns:Lpe,defaultParseWidth:"any"}),day:ap({matchPatterns:Rpe,defaultMatchWidth:"wide",parsePatterns:Dpe,defaultParseWidth:"any"}),dayPeriod:ap({matchPatterns:Ipe,defaultMatchWidth:"any",parsePatterns:Fpe,defaultParseWidth:"any"})};const $pe=Upe;var Bpe={code:"en-US",formatDistance:ape,formatLong:fpe,formatRelative:hpe,localize:Ope,match:$pe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const oP=Bpe;var zpe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vpe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Hpe=/^'([^]*?)'?$/,Wpe=/''/g,Ype=/[a-zA-Z]/;function Ef(e,t,n){var r,i,o,a,s,l,u,f,d,p,m,v,g,w,y,b,x,O;Pe(2,arguments);var E=String(t),T=Qa(),k=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:T.locale)!==null&&r!==void 0?r:oP,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||(b=y.options)===null||b===void 0?void 0:b.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(!Zh(R))throw new RangeError("Invalid time value");var I=xf(R),z=v2(R,I),G={firstWeekContainsDate:A,weekStartsOn:D,locale:k,_originalDate:R},H=E.match(Vpe).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(zpe).map(function(Q){if(Q==="''")return"'";var Z=Q[0];if(Z==="'")return Gpe(Q);var te=Jde[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(Ype))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return Q}).join("");return H}function Gpe(e){var t=e.match(Hpe);return t?t[1].replace(Wpe,"'"):e}function aP(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 qpe(e){return aP({},e)}var kR=1440,Kpe=2520,oO=43200,Zpe=86400;function Xpe(e,t,n){var r,i;Pe(2,arguments);var o=Qa(),a=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:oP;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=Oy(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l=aP(qpe(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=$de(f,u),p=(xf(f)-xf(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<kR){var g=Math.round(m/60);return a.formatDistance("aboutXHours",g,l)}else{if(m<Kpe)return a.formatDistance("xDays",1,l);if(m<oO){var w=Math.round(m/kR);return a.formatDistance("xDays",w,l)}else if(m<Zpe)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 b=v%12,x=Math.floor(v/12);return b<3?a.formatDistance("aboutXYears",x,l):b<9?a.formatDistance("overXYears",x,l):a.formatDistance("almostXYears",x+1,l)}}function Qpe(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),b=v<0?"+":"-";l="".concat(b).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 jR(e){Pe(1,arguments);var t=Ne(e),n=t.getDate();return n}function Jpe(e){Pe(1,arguments);var t=Ne(e),n=t.getDay();return n}function ehe(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 the=6048e5;function nhe(e){Pe(1,arguments);var t=Ne(e),n=qh(t).getTime()-Nde(t).getTime();return Math.round(n/the)+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 PR(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 rhe(e){return Pe(1,arguments),Math.floor(X0(e)/1e3)}function lt(e){return Pe(1,arguments),Ne(e).getFullYear()}function Qs(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 AR(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 ihe(e,t){if(e){if(typeof e=="string")return AR(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 AR(e,t)}}function NR(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ihe(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 ohe(){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 ahe(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=ohe();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 ahe(this,r)}}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function she(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=she(e,"string");return di(t)==="symbol"?t:String(t)}function MR(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&&MR(e.prototype,t),n&&MR(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 lhe=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}(),uhe=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),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",lhe),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 uhe(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,n,r){return!0}}]),e}(),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",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*tP+a*Rde),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 sP(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 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","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),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",["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=iP(r,a);if(o.isTwoDigitYear){var l=k2(o.year,s);return r.setUTCFullYear(l,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),wu(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),wu(r,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","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),Sf(a)}}]),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",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),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:"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),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),"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),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),"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),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",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 _he(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 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",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 wu(_he(r,o,a),a)}}]),n}(Tt);function xhe(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 Ohe=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 Sf(xhe(r,o))}}]),n}(Tt),She=[31,28,31,30,31,30,31,31,30,31,30,31],Ehe=[31,29,31,30,31,30,31,31,30,31,30,31],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","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<=Ehe[s]:i>=1&&i<=She[s]}},{key:"set",value:function(r,i,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),n}(Tt),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),"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 lP(e,t,n){var r,i,o,a,s,l,u,f;Pe(2,arguments);var d=Qa(),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,b=(y<p?7:0)+v-g;return m.setUTCDate(m.getUTCDate()+b),m}var 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",["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=lP(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","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=lP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),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",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=lP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Tt);function Ahe(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 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",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=Ahe(r,o),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",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(sP(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","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(sP(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",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(sP(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",["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),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",["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),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",["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),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",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),$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",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),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",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),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",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),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",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),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",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),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",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),Ghe={G:new fhe,y:new dhe,Y:new phe,R:new hhe,u:new mhe,Q:new vhe,q:new ghe,M:new yhe,L:new bhe,w:new whe,I:new Ohe,d:new The,D:new Che,E:new khe,e:new jhe,c:new Phe,i:new Nhe,a:new Mhe,b:new Lhe,B:new Rhe,h:new Dhe,H:new Ihe,K:new Fhe,k:new Uhe,m:new $he,s:new Bhe,S:new zhe,X:new Vhe,x:new Hhe,t:new Whe,T:new Yhe},qhe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Khe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zhe=/^'([^]*?)'?$/,Xhe=/''/g,Qhe=/\S/,Jhe=/[a-zA-Z]/;function aO(e,t,n,r){var i,o,a,s,l,u,f,d,p,m,v,g,w,y,b,x,O,E;Pe(3,arguments);var T=String(e),k=String(t),A=Qa(),D=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:A.locale)!==null&&i!==void 0?i:oP;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||(b=r.locale)===null||b===void 0||(x=b.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 che],H=k.match(Khe).map(function(j){var P=j[0];if(P in JE){var B=JE[P];return B(j,D.formatLong)}return j}).join("").match(qhe),Q=[],Z=NR(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=Ghe[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(Jhe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");if(j==="''"?j="'":P==="'"&&(j=eme(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&&Qhe.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,xf(W)),q={},ee=NR(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],aP(q,fe[1])):re=fe}}catch(j){ee.e(j)}finally{ee.f()}return re}function eme(e){return e.match(Zhe)[1].replace(Xhe,"'")}function tme(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function nme(e,t){Pe(2,arguments);var n=QE(e),r=QE(t);return n.getTime()===r.getTime()}function rme(e,t){Pe(2,arguments);var n=Ne(e),r=Ne(t);return n.getFullYear()===r.getFullYear()}function Tf(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 uP(e,t){Pe(2,arguments);var n=Je(t);return Lu(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=sme(e),o;if(i.date){var a=lme(i.date,r);o=ume(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,u;if(i.time&&(l=cme(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(u=fme(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 Mg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ime=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ome=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ame=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sme(e){var t={},n=e.split(Mg.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Mg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Mg.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Mg.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function lme(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 ume(e,t){if(t===null)return new Date(NaN);var n=e.match(ime);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 vme(t,s,l)?dme(t,s,l):new Date(NaN);var u=new Date(0);return!hme(t,o,a)||!mme(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}function sp(e){return e?parseInt(e):1}function cme(e){var t=e.match(ome);if(!t)return NaN;var n=sO(t[1]),r=sO(t[2]),i=sO(t[3]);return gme(n,r,i)?n*Y_+r*tP+i*1e3:NaN}function sO(e){return e&&parseFloat(e.replace(",","."))||0}function fme(e){if(e==="Z")return 0;var t=e.match(ame);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return yme(r,i)?n*(r*Y_+i*tP):NaN}function dme(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 pme=[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 hme(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(pme[t]||(P2(e)?29:28))}function mme(e,t){return t>=1&&t<=(P2(e)?366:365)}function vme(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function gme(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function yme(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=ehe(a);return n.setMonth(r,Math.min(o,s)),n}function bme(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 Sy(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t);return n.setHours(r),n}function Ey(e,t){Pe(2,arguments);var n=Ne(e),r=Je(t);return n.setMinutes(r),n}function oc(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 _me(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 Cf(e,t){Pe(2,arguments);var n=Je(t);return zi(e,-n)}function wme(e,t){Pe(2,arguments);var n=Je(t);return f2(e,-n)}function LR(e,t){Pe(2,arguments);var n=Je(t);return G0(e,-n)}function Qh(e,t){Pe(2,arguments);var n=Je(t);return Of(e,-n)}const A2="yyyy-MM-dd",cP="yyyy-MM-dd HH:mm",Js=()=>new Date,fP=e=>typeof e!="string",dP=(e,t)=>!e||!fP(e)?e:t?Ef(e,t):Qpe(e),el=e=>dP(e,void 0),Yl=e=>dP(e,A2),J0=e=>dP(e,cP),ho=e=>fP(e)?e:Ua(e),uv=(e,t,n)=>{try{return Tf(ho(e),{start:ho(t??e),end:ho(n??e)})}catch{return!1}},Ol=(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},{}),xme=(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},pP=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Ome=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Jh=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},Sme=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),cv="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",[cv]:void 0},R2=Object.keys(L2),D2=e=>!e||!e.startDate&&!e.endDate,eb=e=>typeof e=="string"&&R2.includes(e),Eme=R2.filter(e=>e!==cv),RR=e=>e?ho(e):null,I2=(e,t)=>({startDate:RR(e),endDate:RR(t)}),Tme=e=>{if(!(!e||D2(e)))return e.startDate&&!e.endDate?`Since ${Yl(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Yl(e.endDate)}`:`${Yl(e.startDate)} - ${Yl(e.endDate)}`},F2=e=>{if(!(!e||e===cv))return eb(e)?L2[e]:Tme(e)},Ci=e=>oi(uP(Js(),e)),ac=e=>({startDate:e,endDate:_u(Js())}),U2=e=>{var t;return((t=[[()=>e==="today",()=>ac(oi(Js()))],[()=>e==="yesterday",()=>({startDate:Ci(1),endDate:_u(uP(Js(),1))})],[()=>e==="last7Days",()=>ac(Ci(7))],[()=>e==="last30Days",()=>ac(Ci(30))],[()=>e==="last90Days",()=>ac(Ci(90))],[()=>e==="last180Days",()=>ac(Ci(180))],[()=>e==="last365Days",()=>ac(Ci(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},Cme=e=>{var t;const n=ho(e);return((t=[[()=>Ol(oi(Js()),n),"today"],[()=>Ol(Ci(1),n),"yesterday"],[()=>Ol(Ci(7),n),"last7Days"],[()=>Ol(Ci(30),n),"last30Days"],[()=>Ol(Ci(90),n),"last90Days"],[()=>Ol(Ci(180),n),"last180Days"],[()=>Ol(Ci(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??cv},kme=e=>eb(e)?U2(e):e,_r=(e,t)=>WB(e,t,{serializeError:n=>n}),fv=Wn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),DR=5e3,IR=4,FR=2,jme=({currentPage:e,pagesCount:t})=>e>=t,Pme=(e,t)=>t*100/e,dv=({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,DR).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(Pme(x.length,O+FR))),O<x.length-1?E.concat(await g(x,O+1)):E},w=async(x=1)=>{const{pagination:O,data:E}=await p(x,DR);if(!O||jme(O))return E;const T=pP(FR,O.pagesCount+1),k=Jh(T,IR);return O.pagesCount-1>IR&&f(o()),E.concat(await g(k))},[y,b]=await Promise.all([w(),m((d=l.query)==null?void 0:d.excludeBots)]);return!y.length&&b&&f(a(Cme(b.date))),{...n(l),visits:y}});return Object.assign(s,{progressChanged:i,large:o,fallbackToInterval:a})},pv=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),hv=({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(fv,(g,{payload:w})=>{const{visits:y}=g,b=r(g,w.createdVisits).map(({visit:x})=>x);return b.length?{...g,visits:[...b,...y]}:g}),i==null||i(v)}}),{cancelGetVisits:m}=p;return{reducer:d,cancelGetVisits:m}},$2="shlink/domainVisits",B2="DEFAULT",Ame={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Nme=e=>dv({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=pv(r,async s=>i.getDomainVisits(t,s));return[o,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),Mme=e=>hv({name:$2,initialState:Ame,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>a&&Sde(a,t)&&uv(s.date,i,o))}}),Ty=({className:e="",placement:t,children:n})=>{const r=ul();return _.jsxs(_.Fragment,{children:[_.jsx("span",{className:e,ref:r,children:_.jsx(Le,{icon:ej})}),_.jsx(qr,{target:r,placement:t,children:n})]})},hP=e=>t=>{t.preventDefault(),e()},mP=(e,t,n=1)=>pP(n,e+1).map(t),Lme=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,va=e=>e!=null&&!Lme(e),uO=e=>e||null,z2=e=>e?"true":"false",cO=e=>e===void 0?void 0:z2(e),fO=({isLast:e,...t})=>_.jsx(wy,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),Rme=({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=hP(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:uO(s),regular404Redirect:uO(u),invalidShortUrlRedirect:uO(d)}}).then(t));return _.jsx(Ka,{isOpen:e,toggle:t,centered:!0,children:_.jsxs("form",{name:"domainRedirectsModal",onSubmit:m,children:[_.jsxs(Za,{toggle:t,children:["Edit redirects for ",_.jsx("b",{children:n.domain})]}),_.jsxs(na,{children:[_.jsxs(fO,{value:s,onChange:l,children:[_.jsxs(Ty,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",_.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),_.jsxs(fO,{value:u,onChange:f,children:[_.jsxs(Ty,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",_.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),_.jsxs(fO,{value:d,isLast:!0,onChange:p,children:[_.jsx(Ty,{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"]})]}),_.jsxs(Au,{children:[_.jsx(wt,{color:"link",type:"button",onClick:t,children:"Cancel"}),_.jsx(wt,{color:"primary",children:"Save"})]})]})})},Dme=({domain:e,editDomainRedirects:t})=>{const[n,r]=En(),i=Nu("domainVisits"),o=Mu();return _.jsxs(U_,{children:[i&&_.jsxs(ze,{tag:Yt,to:`${o}/domain/${e.domain}${e.isDefault?`_${B2}`:""}/visits`,children:[_.jsx(Le,{icon:Jk,fixedWidth:!0})," Visit stats"]}),_.jsxs(ze,{onClick:r,children:[_.jsx(Le,{fixedWidth:!0,icon:Qk})," Edit redirects"]}),_.jsx(Rme,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Sa=({href:e,children:t,rel:n,...r})=>_.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Ime="Left",Fme="Right",Ume="Up",$me="Down",Mc={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]},UR="mousemove",$R="mouseup",Bme="touchend",zme="touchmove",Vme="touchstart";function Hme(e,t,n,r){return e>t?n>0?Fme:Ime:r>0?$me:Ume}function BR(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 Wme(e,t){const n=u=>{const f="touches"in u;f&&u.touches.length>1||e((d,p)=>{p.trackMouse&&!f&&(document.addEventListener(UR,r),document.addEventListener($R,a));const{clientX:m,clientY:v}=f?u.touches[0]:u,g=BR([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]=BR([m,v],d.rotationAngle),y=g-f.xy[0],b=w-f.xy[1],x=Math.abs(y),O=Math.abs(b),E=(u.timeStamp||0)-f.start,T=Math.sqrt(x*x+O*O)/(E||1),k=[y/(E||1),b/(E||1)],A=Hme(x,O,y,b),D=typeof d.delta=="number"?d.delta:d.delta[A.toLowerCase()]||Mc.delta;if(x<D&&O<D&&!f.swiping)return f;const R={absX:x,absY:O,deltaX:y,deltaY:b,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(UR,r),document.removeEventListener($R,a)},a=u=>{o(),i(u)},s=(u,f)=>{let d=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},Mc.touchEventOptions),f.touchEventOptions),m=[[Vme,n,p],[zme,r,Object.assign(Object.assign({},p),f.preventScrollOnSwipe?{passive:!1}:{})],[Bme,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 Yme(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 Gme(e){const{trackMouse:t}=e,n=F.useRef(Object.assign({},tT)),r=F.useRef(Object.assign({},Mc)),i=F.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Mc),e);let o;for(o in Mc)r.current[o]===void 0&&(r.current[o]=Mc[o]);const[a,s]=F.useMemo(()=>Wme(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=Yme(n.current,r.current,i.current,s),a}const qme=(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 Gme({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Kme=(e,t)=>{const[n,r]=F.useState(t),i=F.useCallback(o=>{const{location:a,history:s}=window,l=dd(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${I_(l)}`),r(o)},[e]);return[n,i]},Zme=(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(()=>dd(e),[e])},vP=(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},Xme=({status:e,matchMedia:t=window.matchMedia})=>{const n=ul(),r=vP(991,t);return e==="validating"?_.jsx(Le,{fixedWidth:!0,icon:j$,spin:!0}):_.jsxs(_.Fragment,{children:[_.jsx("span",{ref:n,children:e==="valid"?_.jsx(Le,{fixedWidth:!0,icon:Mh,className:"text-muted"}):_.jsx(Le,{fixedWidth:!0,icon:lS,className:"text-danger"})}),_.jsx(qr,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":_.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",_.jsx("br",{}),"Check the ",_.jsx(Sa,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},dO=({fallback:e})=>_.jsxs("span",{className:"text-muted",children:[!e&&_.jsx("small",{children:"No redirect"}),e&&_.jsxs(_.Fragment,{children:[e," ",_.jsx("small",{children:"(as fallback)"})]})]}),Qme=()=>_.jsxs(_.Fragment,{children:[_.jsx(Le,{fixedWidth:!0,icon:XQ,className:"text-primary",id:"defaultDomainIcon"}),_.jsx(qr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),Jme=({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]),_.jsxs("tr",{className:"responsive-table__row",children:[_.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&_.jsx(Qme,{})}),_.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),_.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??_.jsx(dO,{fallback:r==null?void 0:r.baseUrlRedirect})}),_.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??_.jsx(dO,{fallback:r==null?void 0:r.regular404Redirect})}),_.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??_.jsx(dO,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),_.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:_.jsx(Xme,{status:s})}),_.jsx("td",{className:"responsive-table__cell text-end",children:_.jsx(Dme,{domain:e,editDomainRedirects:t})})]})},zR=[{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}],eve=({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?_.jsx(Da,{loading:!0}):_.jsxs(_.Fragment,{children:[_.jsx(sv,{className:"mb-3",onChange:n}),(()=>u?_.jsx(ii,{type:"error",children:_.jsx(Fa,{errorData:f,fallbackMessage:"Error loading domains :("})}):_.jsx(vn,{children:_.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[_.jsx("thead",{className:"responsive-table__header",children:_.jsx("tr",{children:zR.map((p,m)=>_.jsx("th",{children:_.jsx("span",{className:p.isHidden?"sr-only":void 0,children:p.value})},m))})}),_.jsxs("tbody",{children:[a.length<1&&_.jsx("tr",{children:_.jsx("td",{colSpan:zR.length,className:"text-center",children:"No results found"})}),a.map(p=>_.jsx(Jme,{domain:p,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:d},p.domain))]})]})}))()]})},tve="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",nve=e=>_r(tve,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Lg="shlink/domainsList",Rg={domains:[],filteredDomains:[],loading:!1,error:!1},VR=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},HR=(e,t)=>n=>n.domain!==e?n:{...n,status:t},rve=(e,t)=>{const n=_r(`${Lg}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=_r(`${Lg}/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(`${Lg}/filterDomains`),{reducer:o}=Yn({name:Lg,initialState:Rg,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...Rg,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...Rg,error:!0,errorData:xo(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...Rg,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...u},{payload:f})=>({...u,domains:s.map(HR(f.domain,f.status)),filteredDomains:l.map(HR(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(VR(l)),filteredDomains:s.filteredDomains.map(VR(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},ive=(e,t)=>{e.serviceFactory("DomainSelector",()=>fde),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>eve),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",rve,"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",nve,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},WR="shlink/mercure",ove={loading:!0,error:!1},ave=e=>{const t=_r(`${WR}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Yn({name:WR,initialState:ove,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}},sve=e=>{e.serviceFactory("mercureInfoReducerCreator",ave,"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 Lc=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 b=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||!b())&&(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,Nv=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)}},Mv=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(){gl()},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)}}},Lv=function(_n){if(ln===X||ln===te){ln=Z,et!==0&&(i(et),et=0),et=r(function(){gl()},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=$},gl=function(){if(et=0,ln!==Z){if(!_e&&ut!=null)Lv(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(){gl()},_n)}return}_e=!1,be=0,et=r(function(){gl()},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,Nv,Mv,Lv,dn,er,tr)}catch(Xi){throw Rd(),Xi}};ue.url=ve,ue.readyState=te,ue.withCredentials=Oe,ue.headers=Se,ue._close=Rd,gl()}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:Lc:globalThis)})(nT,nT.exports);var lve=nT.exports;const uve=(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 lve.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=u,m});return()=>f.forEach(d=>d.close())};function cl(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=uve(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]),_.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 gP="shlink/shortUrlDeletion",YR={shortCode:"",loading:!1,deleted:!1,error:!1},cve=e=>_r(`${gP}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),H2=Wn(`${gP}/shortUrlDeleted`),fve=e=>{const{actions:t,reducer:n}=Yn({name:gP,initialState:YR,reducers:{resetDeleteShortUrl:()=>YR},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,dve={loading:!0,error:!1},pve=e=>_r(`${W2}/listShortUrls`,t=>e().listShortUrls(t??{})),hve=(e,t,n)=>Yn({name:W2,initialState:dve,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(fv,(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}))})}}),GR=10,{ceil:mve}=Math,vve=new Intl.NumberFormat("en-US"),bn=e=>vve.format(Number(e)),gve=e=>mve(e/GR)*GR,yve={field:"dateCreated",dir:"DESC"},G2={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:yve}},q2=F.createContext(G2),bve=q2.Provider,yP=()=>F.useContext(q2)??G2,Ru=e=>yP()[e],rT=({children:e,title:t,link:n,tooltip:r})=>{const i=ul();return _.jsxs(_.Fragment,{children:[_.jsxs(ui,{innerRef:i,className:"highlight-card",body:!0,tag:Yt,to:n,children:[_.jsx(Le,{size:"3x",className:"highlight-card__link-icon",icon:Ufe}),_.jsx(G7,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),_.jsx(Y7,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&_.jsx(qr,{target:i,placement:"bottom",children:r})]})},qR=({loading:e,excludeBots:t,visitsSummary:n,...r})=>_.jsx(rT,{tooltip:n.bots!==void 0?_.jsxs(_.Fragment,{children:[t?"Plus":"Including"," ",_.jsx("strong",{children:bn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":bn(t&&n.nonBots?n.nonBots:n.total)}),K2=cl(({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=Mu(),v=ta(),g=Ru("visits");return F.useEffect(()=>{t({itemsPerPage:Y2,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),_.jsxs(_.Fragment,{children:[_.jsxs(kr,{children:[_.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:_.jsx(qR,{title:"Visits",link:`${m}/non-orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:d})}),_.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:_.jsx(qR,{title:"Orphan visits",link:`${m}/orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:p})}),_.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:_.jsx(rT,{title:"Short URLs",link:`${m}/list-short-urls/1`,children:s?"Loading...":bn((l==null?void 0:l.pagination.totalItems)??0)})}),_.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:_.jsx(rT,{title:"Tags",link:`${m}/manage-tags`,children:u?"Loading...":bn(n.tags.length)})})]}),_.jsxs(ui,{className:"mb-3",children:[_.jsxs(vf,{children:[_.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),_.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),_.jsx(Yt,{className:"float-end",to:`${m}/create-short-url`,children:"Advanced options »"})]}),_.jsx(mf,{children:_.jsx(a,{basicMode:!0})})]}),_.jsxs(ui,{children:[_.jsxs(vf,{children:[_.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),_.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),_.jsx(Yt,{className:"float-end",to:`${m}/list-short-urls/1`,children:"See all »"})]}),_.jsx(mf,{children:_.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:w=>v(`${m}/list-short-urls/1?tags=${encodeURIComponent(w)}`)})})]})]})},()=>[Ri.visits,Ri.orphanVisits]),_ve=sn(K2,["ShortUrlsTable","CreateShortUrl"]);function wve(e,t){e.factory("Overview",_ve),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const xve=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=Ru("shortUrlCreation"),s=F.useMemo(()=>xve(a),[a]);return _.jsxs(_.Fragment,{children:[_.jsx(i,{initialState:s,saving:t.saving,mode:r?"create-basic":"create",onSave:async l=>(n(),e(l))}),_.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},Ove=sn(Z2,["ShortUrlForm","CreateShortUrlResult"]),q_=()=>{const e=ta(),t=Mu(),n=V2(),r=F.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:u,...f}=n,d=o?wce(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&&_ce(s),tags:l.length>0?l.join(","):void 0,excludeBots:cO(u),excludeMaxVisitsReached:cO(f),excludePastValidUntil:cO(d)},v=I_(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}=dd(o),y=Ru("shortUrlCreation"),b=F.useMemo(()=>Ede(d,y),[d,y]);return F.useEffect(()=>{a&&t({shortCode:a,domain:w})},[w,t,a]),l?_.jsx(Da,{loading:!0}):u?_.jsx(ii,{type:"error",children:_.jsx(Fa,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):_.jsxs(_.Fragment,{children:[_.jsx("header",{className:"mb-3",children:_.jsx(ui,{body:!0,children:_.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[_.jsx(wt,{color:"link",size:"lg",className:"p-0 me-3",onClick:s,"aria-label":"Go back",children:_.jsx(Le,{icon:N$})}),_.jsx("span",{className:"text-center",children:_.jsxs("small",{children:["Edit ",_.jsx(Sa,{href:(d==null?void 0:d.shortUrl)??""})]})}),_.jsx("span",{})]})})}),_.jsx(i,{initialState:b,saving:p,mode:"edit",onSave:async x=>{d&&r({...d,data:x})}}),m&&v&&_.jsx(ii,{type:"error",className:"mt-3",children:_.jsx(Fa,{errorData:g,fallbackMessage:"An error occurred while updating short URL :("})}),m&&!v&&_.jsx(ii,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},Sve=sn(Q2,["ShortUrlForm"]);var K_={},Eve=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()}},Tve=Eve,KR={"text/plain":"Text","text/html":"Url",default:"Text"},Cve="Copy to clipboard: #{key}, Enter";function kve(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function jve(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=Tve(),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=KR[t.format]||KR.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=kve("message"in t?t.message:Cve),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var Pve=jve;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 Dg=J2(M),Ave=J2(Pve),Nve=["text","onCopy","options","children"];function J2(e){return e&&e.__esModule?e:{default:e}}function ZR(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?ZR(Object(n),!0).forEach(function(r){bP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mve(e,t){if(e==null)return{};var n=Lve(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 Lve(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 Rve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QR(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 Dve(e,t,n){return t&&QR(e.prototype,t),n&&QR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ive(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 Fve(e){var t=$ve();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 Uve(this,r)}}function Uve(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 $ve(){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 bP(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){Ive(n,e);var t=Fve(n);function n(){var r;Rve(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)),bP(e9(r),"onClick",function(s){var l=r.props,u=l.text,f=l.onCopy,d=l.children,p=l.options,m=Dg.default.Children.only(d),v=(0,Ave.default)(u,p);f&&f(u,v),m&&m.props&&typeof m.props.onClick=="function"&&m.props.onClick(s)}),r}return Dve(n,[{key:"render",value:function(){var r=this.props;r.text,r.onCopy,r.options;var i=r.children,o=Mve(r,Nve),a=Dg.default.Children.only(i);return Dg.default.cloneElement(a,XR(XR({},o),{},{onClick:this.onClick}))}}]),n}(Dg.default.PureComponent);K_.CopyToClipboard=t9;bP(t9,"defaultProps",{onCopy:void 0,options:void 0});var Bve=K_,aT=Bve.CopyToClipboard;aT.CopyToClipboard=aT;var zve=aT;const n9=Ot(zve),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 _.jsxs(ii,{type:"error",className:"mt-3",children:[n&&_.jsx(Le,{"data-testid":"error-close-button",icon:lS,className:"float-end pointer",onClick:t}),_.jsx(Fa,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=e.result;return _.jsxs(ii,{type:"success",className:"mt-3",children:[n&&_.jsx(Le,{"data-testid":"success-close-button",icon:lS,className:"float-end pointer",onClick:t}),_.jsxs("span",{children:[_.jsx("b",{children:"Great!"})," The short URL is ",_.jsx("b",{children:l})]}),_.jsx(n9,{text:l,onCopy:o,children:_.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[_.jsx(Le,{icon:YB})," Copy"]})}),_.jsx(iv,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},Vve=sn(r9,["useTimeoutToggle"]),pO="delete",Hve=({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 _.jsx(Ka,{isOpen:n,toggle:m,centered:!0,onClosed:()=>d&&a(e),children:_.jsxs("form",{onSubmit:v,children:[_.jsx(Za,{toggle:m,children:_.jsx("span",{className:"text-danger",children:"Delete short URL"})}),_.jsxs(na,{children:[_.jsxs("p",{children:[_.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),_.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),_.jsxs("p",{children:["Write ",_.jsx("b",{children:pO})," to confirm deletion."]}),_.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${pO}`,value:s,onChange:g=>l(g.target.value)}),f&&_.jsx(ii,{type:pde(p)?"warning":"error",small:!0,className:"mt-2",children:_.jsx(Fa,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),_.jsxs(Au,{children:[_.jsx("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),_.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==pO||u,children:u?"Deleting...":"Delete"})]})]})})},i9=({amount:e=0,loading:t=!1,...n})=>_.jsxs(wt,{...n,outline:!0,color:"primary",disabled:t,children:[_.jsx(Le,{icon:YQ})," ",t?"Exporting...":_.jsxs(_.Fragment,{children:["Export (",bn(e),")"]})]}),JR=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/JR,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:JR});return w>=m?y:y.concat(await v(w+1))};f();const g=await v();n.exportShortUrls(g.map(w=>{var y;const{hostname:b,pathname:x}=new URL(w.shortUrl),O=x.substring(1);return{createdAt:w.dateCreated,domain:b,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 _.jsx(i9,{loading:u,className:"btn-md-block",amount:e,onClick:p})},Wve=sn(o9,["apiClientFactory","ReportExporter"]),a9=({text:e,onCopy:t})=>_.jsx(n9,{text:e,onCopy:t,children:_.jsx(Le,{icon:YB,className:"ms-2 copy-to-clipboard-icon"})}),Yve=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=I_({...n,margin:t>0?t:void 0});return`${r}${i?`?${i}`:""}`},Gve=({errorCorrection:e,setErrorCorrection:t})=>_.jsxs(Xa,{text:`Error correction (${e})`,children:[_.jsxs(ze,{active:e==="L",onClick:()=>t("L"),children:[_.jsx("b",{children:"L"}),"ow"]}),_.jsxs(ze,{active:e==="M",onClick:()=>t("M"),children:[_.jsx("b",{children:"M"}),"edium"]}),_.jsxs(ze,{active:e==="Q",onClick:()=>t("Q"),children:[_.jsx("b",{children:"Q"}),"uartile"]}),_.jsxs(ze,{active:e==="H",onClick:()=>t("H"),children:[_.jsx("b",{children:"H"}),"igh"]})]}),qve=({format:e,setFormat:t})=>_.jsxs(Xa,{text:`Format (${e})`,children:[_.jsx(ze,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),_.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(()=>Yve(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 _.jsxs(Ka,{isOpen:r,toggle:n,centered:!0,size:g,children:[_.jsxs(Za,{toggle:n,children:["QR code for ",_.jsx(Sa,{href:e,children:e})]}),_.jsxs(na,{children:[_.jsxs(kr,{children:[_.jsxs(ni,{className:"d-grid col-md-6",children:[_.jsxs("label",{htmlFor:"sizeControl",children:["Size: ",o,"px"]}),_.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))})]}),_.jsxs(ni,{className:"d-grid col-md-6",children:[_.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),_.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))})]}),_.jsx(ni,{className:"d-grid col-md-6",children:_.jsx(qve,{format:u,setFormat:f})}),_.jsx(ni,{className:"col-md-6",children:_.jsx(Gve,{errorCorrection:d,setErrorCorrection:p})})]}),_.jsxs("div",{className:"text-center",children:[_.jsxs("div",{className:"mb-3",children:[_.jsx(Sa,{href:m}),_.jsx(a9,{text:m})]}),_.jsx("img",{src:m,className:"qr-code-modal__img",alt:"QR code"}),_.jsx("div",{className:"mt-3",children:_.jsxs(wt,{block:!0,color:"primary",onClick:()=>{i.saveImage(m,`${t}-qr-code.${u}`).catch(()=>{})},children:["Download ",_.jsx(Le,{icon:M$,className:"ms-1"})]})})]})]})]})},Kve=sn(s9,["ImageDownloader"]),nb=({date:e,format:t=cP,relative:n=!1})=>{const r=fP(e)?e:Ua(e);return _.jsx("time",{dateTime:`${rhe(r)}000`,children:n?`${Xpe(Js(),r)} ago`:Ef(r,t)})},Zve=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:DJ,className:"text-danger",description:_.jsxs(_.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",_.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&po(ho(a),Js())?{icon:vM,className:"text-danger",description:_.jsxs(_.Fragment,{children:["This short URL cannot be visited since ",_.jsx("b",{className:"indivisible",children:J0(ho(a))}),"."]})}:o&&po(Js(),ho(o))?{icon:vM,className:"text-warning",description:_.jsxs(_.Fragment,{children:["This short URL will start working on ",_.jsx("b",{className:"indivisible",children:J0(ho(o))}),"."]})}:{icon:Mh,className:"text-primary",description:"This short URL can be visited normally."}},Xve=({shortUrl:e})=>{const t=ul(),{icon:n,className:r,description:i}=Zve(e);return _.jsxs(_.Fragment,{children:[_.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:_.jsx(Le,{icon:n,className:r})}),_.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 Qve=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${Tde(t)}/${r}${i}`},sT=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=Mu();return!n||!e?_.jsx("span",{...i,children:r}):_.jsx(Yt,{to:Qve(o,e,t),...i,children:r})},u9=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=ul(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},l=!!o||!!a||!!s,u=_.jsx(sT,{shortUrl:t,suffix:"visits",asLink:r,children:_.jsx("strong",{className:We("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:bn(e)})});return l?_.jsxs(_.Fragment,{children:[_.jsxs("span",{className:"indivisible",children:[u,_.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&_.jsxs(_.Fragment,{children:[" / ",bn(o)]}),_.jsx("sup",{className:"ms-1",children:_.jsx(Le,{icon:ej})})]})]}),_.jsx(qr,{target:i,placement:"bottom",children:_.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&_.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",_.jsx("b",{children:bn(o)})," visit",o===1?"":"s","."]}),a&&_.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",_.jsx("b",{className:"indivisible",children:J0(ho(a))}),"."]}),s&&_.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",_.jsx("b",{className:"indivisible",children:J0(ho(s))}),"."]})]})})]}):u},em=({style:e,className:t,...n})=>_.jsx("button",{type:"button",className:We("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",...e},...n}),Jve=e=>!!e.onClose,ege=e=>!!e.onClick,_P=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=ege(e),a=o?em:"span",s=F.useMemo(()=>i.isColorLightForKey(t),[t,i]);return _.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,Jve(e)&&_.jsx(em,{"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:"×"})]})},tge=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?_.jsx("i",{className:"indivisible",children:_.jsx("small",{children:"No tags"})}):_.jsx(_.Fragment,{children:e.map(r=>_.jsx(_P,{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=Ru("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]),_.jsxs("tr",{className:"responsive-table__row",children:[_.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:_.jsx(nb,{date:e.dateCreated})}),_.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:_.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[_.jsx("span",{className:"short-urls-row__short-url-wrapper",children:_.jsx(Sa,{href:e.shortUrl})}),_.jsx(a9,{text:e.shortUrl,onCopy:f}),_.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),_.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:_.jsx(Sa,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&_.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:_.jsx(Sa,{href:e.longUrl})}),_.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:_.jsx(tge,{tags:e.tags,colorGenerator:s,onTagClick:t})}),_.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:_.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})}),_.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:_.jsx(Xve,{shortUrl:e})}),_.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:_.jsx(a,{shortUrl:e})})]})},nge=sn(c9,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),f9=({shortUrl:e})=>{const{DeleteShortUrlModal:t,QrCodeModal:n}=an(f9),[r,,i,o]=En(),[a,,s,l]=En();return _.jsxs(U_,{minWidth:190,children:[_.jsxs(ze,{tag:sT,shortUrl:e,suffix:"visits",asLink:!0,children:[_.jsx(Le,{icon:Jk,fixedWidth:!0})," Visit stats"]}),_.jsxs(ze,{tag:sT,shortUrl:e,suffix:"edit",asLink:!0,children:[_.jsx(Le,{icon:Qk,fixedWidth:!0})," Edit short URL"]}),_.jsxs(ze,{onClick:i,children:[_.jsx(Le,{icon:LJ,fixedWidth:!0})," QR code"]}),_.jsx(n,{shortUrl:e,isOpen:r,toggle:o}),_.jsx(ze,{divider:!0,tag:"hr"}),_.jsxs(ze,{className:"dropdown-item--danger",onClick:s,children:[_.jsx(Le,{icon:Xk,fixedWidth:!0})," Delete short URL"]}),_.jsx(t,{shortUrl:e,isOpen:a,toggle:l})]})},rge=sn(f9,["DeleteShortUrlModal","QrCodeModal"]),d9="shlink/shortUrlCreation",eD={saving:!1,saved:!1,error:!1},ige=e=>_r(`${d9}/createShortUrl`,t=>e().createShortUrl(t)),oge=e=>{const{reducer:t,actions:n}=Yn({name:d9,initialState:eD,reducers:{resetCreateShortUrl:()=>eD},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}},tD="shlink/shortUrlDetail",nD={loading:!1,error:!1},age=e=>{const t=_r(`${tD}/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:tD,initialState:nD,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})=>({...nD,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},p9="shlink/shortUrlEdition",sge={saving:!1,saved:!1,error:!1},lge=e=>_r(`${p9}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),uge=e=>Yn({name:p9,initialState:sge,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}))}}),cge=({icon:e,className:t,...n})=>{const r=ul();return _.jsxs("div",{className:"icon-input-container",children:[_.jsx(yu,{className:We("icon-input-container__input",t),innerRef:r,...n}),_.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,rD;function fge(){if(rD)return hO;rD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hO=e,hO}var mO,iD;function dge(){if(iD)return mO;iD=1;var e=fge();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=dge()();var pge=h9.exports;const rt=Ot(pge);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 hge=m9.exports;const cr=Ot(hge);function mge(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 vge(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 oD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gge(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function yge(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&gge(e,t,n))return!0;e=e.parentNode||e.host}return e}function bge(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var _ge=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 wge(e){return e===void 0&&(e=0),function(){return++e}}var xge=wge(),uT,Ig={},vO={},Oge=["touchstart","touchmove"],Sge="ignore-react-onclickoutside";function aD(e,t){var n={},r=Oge.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){mge(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():id.findDOMNode(f)},u.enableOnClickOutside=function(){if(!(typeof document>"u"||vO[u._uid])){typeof uT>"u"&&(uT=_ge()),vO[u._uid]=!0;var f=u.props.eventTypes;f.forEach||(f=[f]),Ig[u._uid]=function(d){if(u.componentNode!==null&&(u.props.preventDefault&&d.preventDefault(),u.props.stopPropagation&&d.stopPropagation(),!(u.props.excludeScrollbar&&bge(d)))){var p=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;yge(p,u.componentNode,u.props.outsideClickIgnoreClass)===document&&u.__outsideClickHandler(d)}},f.forEach(function(d){document.addEventListener(d,Ig[u._uid],aD(oD(u),d))})}},u.disableOnClickOutside=function(){delete vO[u._uid];var f=Ig[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,aD(oD(u),p))}),delete Ig[u._uid]}},u.getRef=function(f){return u.instanceRef=f},u._uid=xge(),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=vge(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:Sge,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var v9=F.createContext(),g9=F.createContext();function Ege(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)},sD=function(e){return e.reduce(function(t,n){var r=n[0],i=n[1];return t[r]=i,t},{})},lD=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,Yr="top",Vi="bottom",Hi="right",Gr="left",wP="auto",mv=[Yr,Vi,Hi,Gr],kf="start",tm="end",Tge="clippingParents",_9="viewport",lp="popper",Cge="reference",uD=mv.reduce(function(e,t){return e.concat([t+"-"+kf,t+"-"+tm])},[]),w9=[].concat(mv,[wP]).reduce(function(e,t){return e.concat([t,t+"-"+kf,t+"-"+tm])},[]),kge="beforeRead",jge="read",Pge="afterRead",Age="beforeMain",Nge="main",Mge="afterMain",Lge="beforeWrite",Rge="write",Dge="afterWrite",Ige=[kge,jge,Pge,Age,Nge,Mge,Lge,Rge,Dge];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 xu(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 xP(e){if(typeof ShadowRoot>"u")return!1;var t=pi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fge(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 Uge(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 $ge={name:"applyStyles",enabled:!0,phase:"write",fn:Fge,effect:Uge,requires:["computeStyles"]};function Yo(e){return e.split("-")[0]}var au=Math.max,rb=Math.min,jf=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 Pf(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&&jf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&jf(r.height)/e.offsetHeight||1);var a=xu(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 OP(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 O9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xP(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 Bge(e){return["table","td","th"].indexOf(Jo(e))>=0}function fl(e){return((xu(e)?e.ownerDocument:e.document)||window.document).documentElement}function X_(e){return Jo(e)==="html"?e:e.assignedSlot||e.parentNode||(xP(e)?e.host:null)||fl(e)}function cD(e){return!Di(e)||$a(e).position==="fixed"?null:e.offsetParent}function zge(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(xP(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 vv(e){for(var t=pi(e),n=cD(e);n&&Bge(n)&&$a(n).position==="static";)n=cD(n);return n&&(Jo(n)==="html"||Jo(n)==="body"&&$a(n).position==="static")?t:n||zge(e)||t}function SP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function eh(e,t,n){return au(e,rb(t,n))}function Vge(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 Hge=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,E9(typeof e!="number"?e:T9(e,mv))};function Wge(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=SP(s),u=[Gr,Hi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=Hge(i.padding,n),p=OP(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=vv(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=g/2-w/2,O=d[m],E=b-p[f]-d[v],T=b/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 Yge(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 Gge={name:"arrow",enabled:!0,phase:"main",fn:Wge,effect:Yge,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Af(e){return e.split("-")[1]}var qge={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kge(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:jf(n*i)/i||0,y:jf(r*i)/i||0}}function fD(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"),b=a.hasOwnProperty("y"),x=Gr,O=Yr,E=window;if(u){var T=vv(n),k="clientHeight",A="clientWidth";if(T===pi(n)&&(T=fl(n),$a(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",A="scrollWidth")),T=T,i===Yr||(i===Gr||i===Hi)&&o===tm){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===tm){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&&qge),z=f===!0?Kge({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]=b?"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]=b?g+"px":"",t[x]=y?m+"px":"",t.transform="",t))}function Zge(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:Af(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,fD(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,fD(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 Xge={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zge,data:{}};var Fg={passive:!0};function Qge(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,Fg)}),s&&l.addEventListener("resize",n.update,Fg),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Fg)}),s&&l.removeEventListener("resize",n.update,Fg)}}const Jge={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qge,data:{}};var eye={left:"right",right:"left",bottom:"top",top:"bottom"};function Cy(e){return e.replace(/left|right|bottom|top/g,function(t){return eye[t]})}var tye={start:"end",end:"start"};function dD(e){return e.replace(/start|end/g,function(t){return tye[t]})}function EP(e){var t=pi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function TP(e){return Pf(fl(e)).left+EP(e).scrollLeft}function nye(e,t){var n=pi(e),r=fl(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+TP(e),y:l}}function rye(e){var t,n=fl(e),r=EP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=au(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=au(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+TP(e),l=-r.scrollTop;return $a(i||n).direction==="rtl"&&(s+=au(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function CP(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)&&CP(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||[],CP(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 iye(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 pD(e,t,n){return t===_9?dT(nye(e,n)):xu(t)?iye(t,n):dT(rye(fl(e)))}function oye(e){var t=th(X_(e)),n=["absolute","fixed"].indexOf($a(e).position)>=0,r=n&&Di(e)?vv(e):e;return xu(r)?t.filter(function(i){return xu(i)&&O9(i,r)&&Jo(i)!=="body"}):[]}function aye(e,t,n,r){var i=t==="clippingParents"?oye(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=pD(e,u,r);return l.top=au(f.top,l.top),l.right=rb(f.right,l.right),l.bottom=rb(f.bottom,l.bottom),l.left=au(f.left,l.left),l},pD(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?Af(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?SP(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case kf:l[u]=l[u]-(t[f]/2-n[f]/2);break;case tm:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function nm(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?Tge: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,mv)),b=p===lp?Cge:lp,x=e.rects.popper,O=e.elements[v?b:p],E=aye(xu(O)?O:O.contextElement||fl(e.elements.popper),l,f,a),T=Pf(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 sye(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=Af(r),d=f?s?uD:uD.filter(function(v){return Af(v)===f}):mv,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]=nm(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 lye(e){if(Yo(e)===wP)return[];var t=Cy(e);return[dD(e),t,dD(t)]}function uye(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),b=y===w,x=l||(b||!v?[Cy(w)]:lye(w)),O=[w].concat(x).reduce(function(ee,ie){return ee.concat(Yo(ie)===wP?sye(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=Af(I)===kf,H=[Yr,Vi].indexOf(z)>=0,Q=H?"width":"height",Z=nm(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=H?G?Hi:Gr:G?Vi:Yr;E[Q]>T[Q]&&(te=Cy(te));var X=Cy(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 cye={name:"flip",enabled:!0,phase:"main",fn:uye,requiresIfExists:["offset"],data:{_skip:!1}};function hD(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 mD(e){return[Yr,Hi,Vi,Gr].some(function(t){return e[t]>=0})}function fye(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=nm(t,{elementContext:"reference"}),s=nm(t,{altBoundary:!0}),l=hD(a,r),u=hD(s,i,o),f=mD(l),d=mD(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 dye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fye};function pye(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 hye(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]=pye(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 mye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hye};function vye(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 gye={name:"popperOffsets",enabled:!0,phase:"read",fn:vye,data:{}};function yye(e){return e==="x"?"y":"x"}function bye(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=nm(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),y=Yo(t.placement),b=Af(t.placement),x=!b,O=SP(y),E=yye(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=b===kf?k[Z]:A[Z],re=b===kf?-A[Z]:-k[Z],q=t.elements.arrow,ee=m&&q?OP(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&&vv(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?au($,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?Vge(be,Ce,Se):eh(m?be:Ae,Ce,m?Se:ce);T[E]=Me,z[E]=Me-Ce}t.modifiersData[r]=z}}const _ye={name:"preventOverflow",enabled:!0,phase:"main",fn:bye,requiresIfExists:["offset"]};function wye(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xye(e){return e===pi(e)||!Di(e)?EP(e):wye(e)}function Oye(e){var t=e.getBoundingClientRect(),n=jf(t.width)/e.offsetWidth||1,r=jf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Sye(e,t,n){n===void 0&&(n=!1);var r=Di(t),i=Di(t)&&Oye(t),o=fl(t),a=Pf(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Jo(t)!=="body"||CP(o))&&(s=xye(t)),Di(t)?(l=Pf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=TP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Eye(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 Tye(e){var t=Eye(e);return Ige.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Cye(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kye(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 vD={placement:"bottom",modifiers:[],strategy:"absolute"};function gD(){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 jye(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?vD:i;return function(a,s,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},vD,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:xu(a)?th(a):a.contextElement?th(a.contextElement):[],popper:th(s)};var y=Tye(kye([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),m(),p.update()},forceUpdate:function(){if(!d){var g=u.elements,w=g.reference,y=g.popper;if(gD(w,y)){u.rects={reference:Sye(w,vv(y),u.options.strategy==="fixed"),popper:OP(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 b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var x=u.orderedModifiers[b],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:Cye(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){v(),d=!0}};if(!gD(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,b=y===void 0?{}:y,x=g.effect;if(typeof x=="function"){var O=x({state:u,name:w,instance:p,options:b}),E=function(){};f.push(O||E)}})}function v(){f.forEach(function(g){return g()}),f=[]}return p}}var Pye=[Jge,gye,Xge,$ge,mye,cye,_ye,Gge,dye],Aye=jye({defaultModifiers:Pye}),Nye=typeof Element<"u",Mye=typeof Map=="function",Lye=typeof Set=="function",Rye=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ky(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(!ky(e[r],t[r]))return!1;return!0}var o;if(Mye&&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(!ky(r.value[1],t.get(r.value[0])))return!1;return!0}if(Lye&&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(Rye&&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(Nye&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!ky(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Dye=function(e,t){try{return ky(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 Iye=Ot(Dye);var Fye=[],Uye=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||Fye},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);id.flushSync(function(){s({styles:sD(m.map(function(v){return[v,p.styles[v]||{}]})),attributes:sD(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 Iye(r.current,d)?r.current||d:(r.current=d,d)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),f=F.useRef();return lD(function(){f.current&&f.current.setOptions(u)},[u]),lD(function(){if(!(e==null||t==null)){var d=n.createPopper||Aye,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}},$ye=function(){},Bye=function(){return Promise.resolve(null)},zye=[];function Vye(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?zye: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 b=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=Uye(s||d,m,b),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||$ye,update:k||Bye}},[v,y,n,O,E,k,T]);return y9(f)(A)}var Hye=function(){},Wye=Hye;const Yye=Ot(Wye);function Gye(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(){Yye(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),y9(t)({ref:i})}function yD(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?yD(Object(n),!0).forEach(function(r){ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(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 bD(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&&bD(e.prototype,t),n&&bD(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 rm(){return rm=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},rm.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 im(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 _D=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"})}},wD=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"})}},qye={p:wD,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return _D(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}}",_D(i,t)).replace("{{time}}",wD(o,t))}},nh=12,Kye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Nt(e){var t=e?typeof e=="string"||e instanceof String?Ua(e):Ne(e):new Date;return _s(t)?t:null}function _s(e,t){return t=t||new Date("1/1/1000"),Zh(e)&&!po(e,t)}function Kt(e,t,n){if(n==="en")return Ef(e,t,{awareOfUnicodeTokens:!0});var r=Vs(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&su()&&Vs(su())&&(r=Vs(su())),Ef(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 xD(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 Sy(Ey(_me(e,a===void 0?0:a),o),r)}function Go(e,t,n){var r=Vs(t||su());return c2(e,{locale:r,weekStartsOn:n})}function zs(e){return h2(e)}function kp(e){return m2(e)}function OD(e){return QE(e)}function SD(){return oi(Nt())}function js(e,t){return e&&t?rme(e,t):!e&&!t}function so(e,t){return e&&t?tme(e,t):!e&&!t}function ab(e,t){return e&&t?nme(e,t):!e&&!t}function Rt(e,t){return e&&t?Dde(e,t):!e&&!t}function Gl(e,t){return e&&t?O2(e,t):!e&&!t}function jy(e,t,n){var r,i=oi(t),o=_u(n);try{r=Tf(e,{start:i,end:o})}catch{r=!1}return r}function su(){return(typeof window<"u"?window:globalThis).__localeId__}function Vs(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function kP(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 Tf(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 Tf(e,{start:f,end:d})})||l&&!l(Nt(e))||!1}function jP(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 Tf(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 Zye(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(!Zh(t)||!Zh(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:zde(r)})||i&&i.some(function(l){return js(s,l)})||o&&!o.some(function(l){return js(s,l)})||a&&!a(Nt(s))||!1}function _O(e,t,n,r){var i=lt(e),o=Nc(e),a=lt(t),s=Nc(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&&Kh(e,n)<0||r&&Kh(e,r)>0}function ED(e,t){return t.some(function(n){return Ho(n)===Ho(e)&&Wo(n)===Wo(e)})}function TD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&ED(e,n)||r&&!ED(e,r)||i&&!i(e)||!1}function CD(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=Sy(Ey(o,Wo(e)),Ho(e)),s=Sy(Ey(o,Wo(n)),Ho(n)),l=Sy(Ey(o,Wo(r)),Ho(r));try{i=!Tf(a,{start:s,end:l})}catch{i=!1}return i}function kD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Cf(e,1);return n&&Xh(n,i)>0||r&&r.every(function(o){return Xh(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=zi(e,1);return n&&Xh(i,n)>0||r&&r.every(function(o){return Xh(i,o)>0})||!1}function PD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Qh(e,1);return n&&q0(n,i)>0||r&&r.every(function(o){return q0(o,i)>0})||!1}function AD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Of(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 Kh(i,t)>=0});return xR(r)}return n?xR(n):t}function L9(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Kh(i,t)<=0});return wR(r)}return n?wR(n):t}function ND(){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 Xye(){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(im(f),[o]):[o],n.set(a,s)}}}),n}function Qye(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=XE(jde(e,Ho(i[s])),Wo(i[s])),u=XE(e,(n+1)*r);Qs(l,t)&&po(l,u)&&a.push(i[s])}return a}function MD(e){return e<10?"0".concat(e):"".concat(e)}function Rc(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 LD(e){var t=e.getSeconds(),n=e.getMilliseconds();return Ne(e.getTime()-1e3*t-n)}function Jye(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 e0e=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:Jye(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}()),t0e=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(e0e,{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}(),n0e=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}()),r0e=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(n0e,{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 kP(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 i0e(e,t){for(var n=[],r=zs(e),i=zs(t);!Qs(r,i);)n.push(Nt(r)),r=zi(r,1);return n}var o0e=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=js(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:i0e(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}()),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))),"state",{dropdownVisible:!1}),ne(oe(r),"renderSelectOptions",function(){for(var s=zs(r.props.minDate),l=zs(r.props.maxDate),u=[];!Qs(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(zs(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(o0e,{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));js(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}(),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))),"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 jP(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)&&jy(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)||Gl(w,g))?jy(u,w,g):(d&&v&&(Qs(w,v)||Gl(w,v))||!(!p||!v||g||!Qs(w,v)&&!Gl(w,v)))&&jy(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=Jpe(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(jR(r.props.day),r.props.day):jR(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}(),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))),"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}(),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))),"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&&Vs(u)||su()&&Vs(su());return nhe(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(l0e,{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=Lu(s,d);return M.createElement(s0e,{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 RD(e,t){return e?I9:t?R9:D9}var c0e=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",im(Array(12)).map(function(){return M.createRef()})),ne(oe(r),"QUARTER_REFS",im(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 jP(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(oc(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(oc(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=Lu(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===Nc(Nt())}),ne(oe(r),"isSelectedMonth",function(s,l,u){return gr(u)===l&<(s)===lt(u)}),ne(oe(r),"isSelectedQuarter",function(s,l,u){return Nc(s)===l&<(s)===lt(u)}),ne(oe(r),"renderWeeks",function(){for(var s=[],l=r.props.fixedHeight,u=0,f=!1,d=Go(zs(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(M.createElement(u0e,{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(zs(Cr(r.props.day,l)),s)}),ne(oe(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(zs(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=RD(v,m),b=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,Cf(d,1));break;case"ArrowUp":r.handleMonthNavigation(x[0].includes(l)?l+12-b:l-b,Cf(d,b));break;case"ArrowDown":r.handleMonthNavigation(x[x.length-1].includes(l)?l-12+b:l+b,zi(d,b))}}}),ne(oe(r),"onQuarterClick",function(s,l){r.handleDayClick(OD(oc(r.props.day,l)),s)}),ne(oe(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(OD(oc(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,wme(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,b=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||b)&&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=Nc(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)&&Zye(oc(u,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(u,s,p),"react-datepicker__quarter-text--keyboard-selected":!w&&Nc(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=kP(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(oc(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[RD(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)&&CD(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&TD(s,r.props)||r.props.onChange(s)}),ne(oe(r),"isSelectedTime",function(s){return r.props.selected&&(l=r.props.selected,u=s,LD(l).getTime()===LD(u).getTime());var l,u}),ne(oe(r),"isDisabledTime",function(s){return(r.props.minTime||r.props.maxTime)&&CD(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&TD(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=Qye(d,w,g,u,p);s=s.concat(y)}}var b=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===b&&(r.centerLi=E)},onKeyDown:function(E){r.handleOnKeyDown(E,x)},tabIndex:x===b?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 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)),"YEAR_REFS",im(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 jP(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=Rc(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&&js(ma(Nt(),o),i.props.startDate)}),ne(oe(i),"isRangeEnd",function(o){return i.props.startDate&&i.props.endDate&&js(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 js(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 js(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,Of(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(a-1,Qh(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=Rc(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}(),d0e=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 p0e(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",rm({className:"react-datepicker__triangle"},o)),n)}var h0e=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],m0e=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 h0e.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&&Qs(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:Cf(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=Lu(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:Qh(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=PD(i.state.date,i.props);break;case i.props.showYearPicker:o=function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=b.minDate,O=b.yearItemNumber,E=O===void 0?nh:O,T=Rc(kp(Qh(y,E)),E).endPeriod,k=x&<(x);return k&&k>T||!1}(i.state.date,i.props);break;default:o=kD(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:Of(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=AD(i.state.date,i.props);break;case i.props.showYearPicker:o=function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=b.maxDate,O=b.yearItemNumber,E=O===void 0?nh:O,T=Rc(Of(y,E),E).startPeriod,k=x&<(x);return k&&k<T||!1}(i.state.date,i.props);break;default:o=jD(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(t0e,{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(r0e,{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(a0e,{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(SD(),o),i.props.setPreSelection&&i.props.setPreSelection(SD())}),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=kD(i.state.date,i.props),u=jD(i.state.date,i.props),f=PD(i.state.date,i.props),d=AD(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=Rc(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=Cf(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(c0e,{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(f0e,rm({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=_s(o)&&i.props.selected?"".concat(MD(o.getHours()),":").concat(MD(o.getMinutes())):"";if(i.props.showTimeInput)return M.createElement(d0e,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),ne(oe(i),"renderAriaLiveRegion",function(){var o,a=Rc(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(kP(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||p0e;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}(),v0e=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 eu.createPortal(this.props.children,this.el)}}]),n}(),g0e=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(g0e)}),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}(),y0e=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(Vye,rm({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 b=cr("react-datepicker-wrapper",a);return M.createElement(Ege,{className:"react-datepicker-manager"},M.createElement(Gye,null,function(x){var O=x.ref;return M.createElement("div",{ref:O,className:b},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),DD="react-datepicker-ignore-onclickoutside",b0e=Z_(m0e),xO="Date input not valid.",_0e=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 Zh(l)?[].concat(im(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&&Qs(a,_u(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:ND(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:w0e});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=Vs(d)||Vs(su()),w=!0,Array.isArray(f)?(f.forEach(function(b){var x=aO(u,b,new Date,{locale:g});p&&(w=_s(x,m)&&u===Kt(x,b,d)),_s(x,m)&&w&&(v=x)}),v):(v=aO(u,f,new Date,{locale:g}),p?w=_s(v)&&u===Kt(v,f,d):_s(v)||(f=f.match(Kye).map(function(b){var x=b[0];return x==="p"||x==="P"?g?(0,qye[x])(b,g.formatLong):x:b}).join(""),u.length>0&&(v=aO(u,f.slice(0,u.length),new Date)),_s(v)||(v=new Date(u))),_s(v)&&w?v:null));i.props.showTimeSelectOnly&&i.props.selected&&y&&!Rt(y,i.props.selected)&&(y=bme(i.props.selected,{hours:Ho(y),minutes:Wo(y),seconds:PR(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(!Gl(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=xD(u,{hour:Ho(i.props.selected),minute:Wo(i.props.selected),second:PR(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=jy(o,i.props.minDate,i.props.maxDate);else if(a){var f=oi(i.props.minDate);l=Qs(o,f)||Gl(u,f)}else if(s){var d=_u(i.props.maxDate);l=po(o,d)||Gl(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:xD(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?LR(s,1):uP(s,1);break;case"ArrowRight":l=i.props.showWeekPicker?G0(s,1):Lu(s,1);break;case"ArrowUp":l=LR(s,1);break;case"ArrowDown":l=G0(s,1);break;case"PageUp":l=Cf(s,1);break;case"PageDown":l=zi(s,1);break;case"Home":l=Qh(s,1);break;case"End":l=Of(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(b0e,{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:Xye(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:DD,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({},DD,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:ND(this.props.highlightDates)}),i.focused||Gl(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(v0e,{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(y0e,{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}(),w0e="input",OO="navigate";const mT=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||!r,a=F.useRef();return _.jsxs("div",{className:"icon-input-container",children:[_.jsx(_0e,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??A2,className:We("icon-input-container__input form-control",t),ref:a}),o&&_.jsx(Le,{icon:Ife,className:"icon-input-container__icon",onClick:()=>{var s;return(s=a.current)==null?void 0:s.input.focus()}})]})},x0e=e=>_.jsx(mT,{...e,dateFormat:cP,showTimeSelect:!0,timeIntervals:10}),SO=({children:e,infoTooltip:t,checked:n,onChange:r})=>_.jsxs("p",{children:[_.jsx(SB,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&_.jsx(Ty,{placement:"right",children:t})]}),O0e=({isOpen:e,toggle:t})=>_.jsxs(Ka,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[_.jsx(Za,{toggle:t,children:"Info"}),_.jsxs(na,{children:[_.jsxs("p",{children:["When the ",_.jsx("b",{children:_.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),_.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),_.jsxs("ul",{children:[_.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."}),_.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.",_.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),_.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"})]})]})]}),S0e=()=>{const[e,t]=En();return _.jsxs(_.Fragment,{children:[_.jsx(em,{className:"p-0",title:"What does this mean?",onClick:t,children:_.jsx(Le,{icon:ej})}),_.jsx(O0e,{isOpen:e,toggle:t})]})},EO=e=>typeof e=="string"?Ua(e):e,E0e=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,T0e=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=Nu("deviceLongUrls"),d=e==="edit",p=E0e(s),m=e==="create-basic",v=E=>l(T=>({...T,tags:E})),g=(E,T)=>va(E)?E:va(T)?null:void 0,w=hP(async()=>n({...s,validSince:el(s.validSince)??null,validUntil:el(s.validUntil)??null,maxVisits:va(s.maxVisits)?Number(s.maxVisits):null}).then(E=>!d&&!T0e(E)&&u()).catch(()=>{}));F.useEffect(()=>{l(r)},[r]);const y=(E,T,k="text",A={},D={})=>_.jsx(ni,{...D,children:_.jsx(yu,{name:E,id:E,type:k,placeholder:T,value:s[E]??"",onChange:A.onChange??(R=>l(I=>({...I,[E]:R.target.value}))),...A})}),b=(E,T,k)=>{var A;return _.jsx(cge,{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={})=>_.jsx(x0e,{name:E,selected:s[E]?EO(s[E]):null,placeholderText:T,isClearable:!0,onChange:A=>l(D=>({...D,[E]:A})),...k}),O=_.jsxs(_.Fragment,{children:[_.jsx(ni,{children:_.jsx(yu,{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}))})}),_.jsxs(kr,{children:[m&&y("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),_.jsx("div",{className:m?"col-lg-6 mb-3":"col-12",children:_.jsx(o,{tags:i.tags,selectedTags:s.tags??[],onChange:v})})]})]});return _.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:w,children:[m&&O,!m&&_.jsxs(_.Fragment,{children:[_.jsxs(kr,{children:[_.jsx("div",{className:We("mb-3",{"col-sm-6":f,"col-12":!f}),children:_.jsx(vn,{title:"Main options",className:"mb-3",children:O})}),f&&_.jsx("div",{className:"col-sm-6 mb-3",children:_.jsxs(vn,{title:"Device-specific long URLs",children:[_.jsx(ni,{children:b("android","Android-specific redirection",zfe)}),_.jsx(ni,{children:b("ios","iOS-specific redirection",Bfe)}),b("desktop","Desktop-specific redirection",IJ)]})})]}),_.jsxs(kr,{children:[_.jsx("div",{className:"col-sm-6 mb-3",children:_.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&&_.jsxs(_.Fragment,{children:[_.jsxs(kr,{children:[_.jsx("div",{className:"col-lg-6",children:y("customSlug","Custom slug","text",{disabled:va(s.shortCodeLength)})}),_.jsx("div",{className:"col-lg-6",children:y("shortCodeLength","Short code length","number",{min:4,disabled:va(s.customSlug)})})]}),_.jsx(a,{value:s.domain,onChange:E=>l(T=>({...T,domain:E}))})]})]})}),_.jsx("div",{className:"col-sm-6 mb-3",children:_.jsxs(vn,{title:"Limit access to the short URL",children:[y("maxVisits","Maximum number of visits allowed","number",{min:1}),_.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})]})})]}),_.jsxs(kr,{children:[_.jsx("div",{className:"col-sm-6 mb-3",children:_.jsxs(vn,{title:"Extra checks",children:[_.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&&_.jsxs("p",{children:[_.jsx(SB,{inline:!0,className:"me-2",checked:s.findIfExists,onChange:E=>l(T=>({...T,findIfExists:E})),children:"Use existing URL if found"}),_.jsx(S0e,{})]})]})}),_.jsx("div",{className:"col-sm-6 mb-3",children:_.jsxs(vn,{title:"Configure behavior",children:[_.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"}),_.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"})]})})]})]}),_.jsx("div",{className:"text-center",children:_.jsx(wt,{outline:!0,color:"primary",disabled:t||!s.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},C0e=sn(B9,["TagsSelector","DomainSelector"]),k0e=({active:e,allText:t,onChange:n})=>_.jsxs(_.Fragment,{children:[_.jsx(ze,{active:e==="all",onClick:()=>n("all"),children:t}),_.jsx(ze,{divider:!0,tag:"hr"}),Eme.map(r=>_.jsx(ze,{active:e===r,onClick:()=>n(r),children:F2(r)},r))]}),j0e=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>_.jsxs("div",{className:"row",children:[_.jsx("div",{className:"col-md-6",children:_.jsx(mT,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),_.jsx("div",{className:"col-md-6",children:_.jsx(mT,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&_u(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)?cv:void 0),u(p),e(p)},d=p=>{s(p),u(void 0),e(U2(p))};return Zme(()=>{if(!i)return;const p=eb(t);p&&d(t),t&&!p&&f(t)},[t,i]),_.jsxs(Xa,{disabled:r,text:F2(a??l)??n,children:[_.jsx(k0e,{allText:n,active:a,onChange:d}),_.jsx(ze,{divider:!0,tag:"hr"}),_.jsx(ze,{header:!0,"aria-hidden":!0,children:"Custom:"}),_.jsx(ze,{text:!0,children:_.jsx(j0e,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})},P0e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},A0e=({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 _.jsxs(Xa,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[_.jsx(ze,{header:!0,"aria-hidden":!0,children:"Visits:"}),_.jsx(ze,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&_.jsxs(_.Fragment,{children:[_.jsx(ze,{divider:!0,tag:"hr"}),_.jsx(ze,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),_.jsx(ze,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),_.jsx(ze,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),_.jsx(ze,{divider:!0,tag:"hr"}),_.jsx(ze,{disabled:!va(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:_.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=Nu("filterDisabledUrls"),b=Ru("visits"),x=F.useCallback(({startDate:k,endDate:A})=>l({startDate:el(k)??void 0,endDate:el(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 _.jsxs("div",{className:We("short-urls-filtering-bar-container",e),children:[_.jsx(sv,{initialValue:u,onChange:O}),_.jsxs(D_,{className:"mt-3",children:[_.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:f,onChange:E}),f.length>1&&_.jsxs(_.Fragment,{children:[_.jsx(wt,{outline:!0,color:"secondary",onClick:T,id:"tagsModeBtn","aria-label":"Change tags mode",children:_.jsx(Le,{className:"short-urls-filtering-bar__tags-icon",icon:w==="all"?A$:dJ})}),_.jsx(qr,{target:"tagsModeBtn",placement:"left",children:w==="all"?"With all the tags.":"With any of the tags."})]})]}),_.jsxs(kr,{className:"flex-lg-row-reverse",children:[_.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:_.jsxs("div",{className:"d-md-flex",children:[_.jsx("div",{className:"flex-fill",children:_.jsx(z9,{defaultText:"All short URLs",initialDateRange:I2(d,p),onDatesChange:x})}),_.jsx(A0e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:m??(b==null?void 0:b.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:g},onChange:l,supportsDisabledFiltering:y})]})}),_.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:_.jsx(o,{amount:t})}),_.jsx("div",{className:"col-6 d-lg-none mt-3",children:_.jsx(lv,{prefixed:!1,items:P0e,order:n,onChange:r})})]})]})},N0e=sn(V9,["ExportShortUrlsBtn","TagsSelector"]);function rh({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:_.jsx(Le,{icon:e.dir==="ASC"?oJ:vJ,className:n})}const sc=2,vT="...",H9=(e,t)=>{const n=pP(Math.max(sc,e-sc),Math.min(t-1,e+sc)+1);return e-sc>sc&&n.unshift(vT),e+sc<t-1&&n.push(vT),n.unshift(1),n.push(t),n},om=e=>e===vT,W9=e=>om(e)?e:bn(e),Y9=(e,t)=>om(e)?`${e}_${t}`:`${e}`,M0e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=Mu(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return _.jsx("div",{className:"pb-3"});const a=()=>H9(n,r).map((s,l)=>_.jsx(nu,{disabled:om(s),active:n===s,children:_.jsx(ru,{tag:Yt,to:o(s),children:W9(s)})},Y9(s,l)));return _.jsxs(Nj,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[_.jsx(nu,{disabled:n===1,children:_.jsx(ru,{previous:!0,tag:Yt,to:o(n-1)})}),a(),_.jsx(nu,{disabled:n>=r,children:_.jsx(ru,{next:!0,tag:Yt,to:o(n+1)})})]})},L0e={field:"dateCreated",dir:"DESC"},G9=cl(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=an(G9),{page:s}=ad(),l=Nn(),[u,f]=q_(),d=yP(),{tags:p,search:m,startDate:v,endDate:g,orderBy:w,tagsMode:y,excludeBots:b,excludePastValidUntil:x,excludeMaxVisitsReached:O}=u,[E,T]=F.useState(w??((n=d.shortUrlsList)==null?void 0:n.defaultOrdering)??L0e),{pagination:k}=(t==null?void 0:t.shortUrls)??{},A=F.useMemo(()=>{var Q;return b??((Q=d.visits)==null?void 0:Q.excludeBots)},[b,(r=d.visits)==null?void 0:r.excludeBots]),D=Nu("excludeBotsOnShortUrls"),R=F.useCallback((Q,Z)=>{f({orderBy:{field:Q,dir:Z}}),T({field:Q,dir:Z})},[f]),I=Q=>()=>R(Q,$_(Q,E.field,E.dir)),z=Q=>_.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]),_.jsxs(_.Fragment,{children:[_.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:E,handleOrderBy:R,className:"mb-3"}),_.jsxs(ui,{body:!0,className:"pb-0",children:[_.jsx(o,{shortUrlsList:t,orderByColumn:I,renderOrderIcon:z,onTagClick:G}),_.jsx(M0e,{paginator:k,currentQueryString:l.search})]})]})},()=>[Ri.visits]),R0e=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?_.jsx("tr",{children:_.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?_.jsx("tr",{children:_.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&(!l||l.data.length===0)?_.jsx("tr",{children:_.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(m=>_.jsx(o,{shortUrl:m,onTagClick:r},m.shortUrl));return _.jsxs("table",{className:d,children:[_.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:_.jsxs("tr",{children:[_.jsxs("th",{className:f,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),_.jsxs("th",{className:f,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),_.jsxs("th",{className:"short-urls-table__header-cell",children:[_.jsxs(em,{className:We("p-0",u),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",_.jsxs(em,{className:We("p-0",u),onClick:e==null?void 0:e("longUrl"),children:[_.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),_.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),_.jsx("th",{className:f,onClick:e==null?void 0:e("visits"),children:_.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),_.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),_.jsx("tbody",{children:p()})]})},D0e=sn(q9,["ShortUrlsRow"]),I0e=(e,t)=>{e.factory("ShortUrlsList",R0e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",D0e),e.factory("ShortUrlsRow",nge),e.factory("ShortUrlsRowMenu",rge),e.factory("CreateShortUrlResult",Vve),e.factory("ShortUrlForm",C0e),e.decorator("ShortUrlForm",t(["tagsList"])),e.factory("CreateShortUrl",Ove),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",Sve),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>Hve),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.factory("QrCodeModal",Kve),e.factory("ExportShortUrlsBtn",Wve),e.factory("ShortUrlsFilteringBar",N0e),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",hve,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",oge,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",uge,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",fve,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",age,"apiClientFactory"),e.serviceFactory("shortUrlDetailReducer",n=>n.reducer,"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",pve,"apiClientFactory"),e.serviceFactory("createShortUrl",ige,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",cve,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>H2),e.serviceFactory("getShortUrlDetail",n=>n.getShortUrlDetail,"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",lge,"apiClientFactory")},F0e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:u}=i;return _.jsxs(Ka,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[_.jsx(Za,{toggle:t,className:"text-danger",children:"Delete tag"}),_.jsxs(na,{children:["Are you sure you want to delete tag ",_.jsx("b",{children:e}),"?",s&&_.jsx(ii,{type:"error",small:!0,className:"mt-2",children:_.jsx(Fa,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),_.jsxs(Au,{children:[_.jsx(wt,{color:"link",onClick:t,children:"Cancel"}),_.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=hP(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 _.jsx(Ka,{isOpen:i,toggle:n,centered:!0,onClosed:w,children:_.jsxs("form",{name:"editTag",onSubmit:g,children:[_.jsx(Za,{toggle:n,children:"Edit tag"}),_.jsxs(na,{children:[_.jsxs(D_,{children:[_.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:u,borderColor:u},children:[_.jsx(Le,{icon:aJ,className:"position-absolute top-50 start-50 translate-middle text-white"}),_.jsx(yu,{className:"form-control-color opacity-0",type:"color",value:u,onChange:y=>f(y.target.value)})]}),_.jsx(yu,{value:s,placeholder:"Tag",required:!0,onChange:({target:y})=>l(y.value)})]}),p&&_.jsx(ii,{type:"error",small:!0,className:"mt-2",children:_.jsx(Fa,{errorData:v,fallbackMessage:"Something went wrong while editing the tag :("})})]}),_.jsxs(Au,{children:[_.jsx(wt,{type:"button",color:"link",onClick:n,children:"Cancel"}),_.jsx(wt,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},U0e=sn(K9,["ColorGenerator"]),Rl={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},PP=Symbol("Create new tag"),Z9=Symbol("No options"),hc=()=>{},Xn=M.createContext(void 0);function ID(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function $0e(e){return e.selectionStart===0&&e.selectionEnd===0}function B0e(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function ew(e){return`${e}-label`}function z0e(e){return`${e}-combobox`}function V0e(e){return`${e}-input`}function X9(e){return`${e}-listbox`}function Q9(e,t){return`${e}-option-${Z0e(t)}`}function H0e(e,t){if((e==null?void 0:e.value)===PP&&e.disabled===!1)return{value:t,label:t}}function W0e(e){const t=H0e(e.activeOption,e.value)||e.activeOption||ebe(e.value,e.options);return t&&!t.disabled?t:void 0}function Y0e(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const G0e=/%value%/;function sb(e,t){return e.replace(G0e,t)}function q0e(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 K0e=/\s+/g;function gT(e){return`${String(e.value)}-${e.label}`}function Z0e(e){return gT(e).replace(K0e,"_")}function yT(e,t){return t.findIndex(({value:n})=>n===e.value)}const X0e=/[-\\^$*+?.()|[\]{}]/g;function J9(e){return e.replace(X0e,"\\$&")}function ez(e){return new RegExp(J9(e),"i")}function Q0e(e){return new RegExp(`^${J9(e)}$`,"i")}function J0e(e,t){if(e){const n=ez(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function ebe(e,t){const n=Q0e(e);return t.find(r=>n.test(r.label))||null}const tbe={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function nbe({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()},b=D=>{const{activeIndex:R,isExpanded:I}=u.current.state;I?(D.preventDefault(),u.current.updateActiveIndex(R+1)):(B0e(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)):$0e(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===Rl.UpArrow)return x(D);if(D.key===Rl.DownArrow)return b(D);if(D.key===Rl.PageUp)return E(D);if(D.key===Rl.PageDown)return O(D);if(D.key===Rl.Escape)return T();if(D.key===Rl.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{...tbe,"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:V0e(i),onBlur:s?hc:f.onBlur,onChange:s?hc:f.onChange,onClick:s?hc:f.onClick,onFocus:s?hc:f.onFocus,onKeyDown:s?hc:f.onKeyDown,ref:a,role:"combobox",type:"text",value:m}}const rbe={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},ibe=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function obe({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);ibe.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:rbe}}}function abe(){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 sbe({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,b]=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:PP}),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?ID(m,w.current.state.selected):[],tagsDeleted:w.current?ID(w.current.state.selected,m):[]},G={listBoxCollapse(H){x&&(!f||f(H??I.value))&&(O(!1),b(null),s==null||s())},listBoxExpand(H){x||(!d||d(H??I.value))&&(O(!0),b(k[D]),l==null||l())},updateActiveIndex(H){const Q=Y0e(H,k.length,e?0:-1);b(k[Q])},updateInputValue(H){E!==H&&(T(H),u==null||u(H))},selectTag(H){if(H??(H=W0e(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 lbe(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 fbe(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 ube({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 cbe({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 fbe(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 dbe(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?hc:o}}}function pbe(){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 hbe={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function mbe({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:hbe},r.current.join(`
|
||
`))}function vbe({children:e}){const{classNames:t,comboBoxRef:n,id:r}=F.useContext(Xn);return M.createElement("div",{className:t.comboBox,id:z0e(r),ref:n},e)}const gbe=({classNames:e,text:t})=>M.createElement("mark",{className:e.highlight},t);function ybe({option:e,query:t,render:n=gbe}){const{classNames:r}=F.useContext(Xn);if(e.value===PP||e.value===Z9)return M.createElement(M.Fragment,null,sb(e.label,t));if(t){const i=q0e(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 bbe=M.memo(ybe),_be=({classNames:e,inputWidth:t,...n})=>M.createElement("input",{className:e.input,style:{width:t},...n});function wbe({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=_be}){const{classNames:s}=F.useContext(Xn),{value:l,...u}=nbe({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=l.length<o.length?o:l,{width:d,sizerProps:p}=obe({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 xbe=({children:e,classNames:t,id:n})=>M.createElement("div",{className:t.label,id:n},e);function Obe({children:e,render:t=xbe}){const{classNames:n,id:r}=F.useContext(Xn);return t({children:e,classNames:n,id:ew(r)})}const Sbe=({children:e,classNames:t,...n})=>M.createElement("div",{className:t.listBox,...n},e);function Ebe({children:e,render:t=Sbe}){const{classNames:n,managerRef:r}=F.useContext(Xn),i=abe();return!r.current.state.isExpanded||M.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Tbe=({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 Cbe({children:e,index:t,render:n=Tbe}){const{classNames:r}=F.useContext(Xn),{option:i,optionProps:o}=lbe(t);return n({classNames:r,children:e,option:i,...o})}const kbe=({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 jbe({children:e,onBlur:t,onFocus:n,render:r=kbe}){const{classNames:i,isDisabled:o,isInvalid:a}=F.useContext(Xn),{isActive:s,rootProps:l}=cbe({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const Pbe=({classNames:e,tag:t,...n})=>M.createElement("button",{type:"button",className:e.tag,...n},M.createElement("span",{className:e.tagName},t.label));function Abe({render:e=Pbe,index:t,title:n}){const{classNames:r}=F.useContext(Xn),{tag:i,tagProps:o}=dbe(t,n);return e({classNames:r,tag:i,...o})}function Nbe({children:e,label:t}){const{classNames:n}=F.useContext(Xn),{listRef:r}=pbe();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 Mbe={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"},Lbe=[Rl.Enter];function Rbe({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=Mbe,collapseOnSelect:u=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=Lbe,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:b,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=J0e,tagListLabelText:q="Selected tags"},ee){const ie=F.useRef(null),se=F.useRef(null),fe=F.useRef(null),j=sbe({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionText:w,noOptionsText:y,onAdd:b,onDelete:E,onCollapse:O,onExpand:T,onInput:A,onShouldCollapse:D,onShouldExpand:R,onValidate:I,selected:V,suggestions:W,suggestionsTransform:re}),P=ube({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(jbe,{onBlur:x,onFocus:k,render:X},M.createElement(Obe,{render:Q},g),M.createElement(Nbe,{label:q},j.current.state.selected.map((B,J)=>M.createElement(Abe,{key:gT(B),index:J,render:$,title:f}))),M.createElement(vbe,null,M.createElement(wbe,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:z,render:H}),M.createElement(Ebe,{render:Z},j.current.state.options.map((B,J)=>M.createElement(Cbe,{key:gT(B),index:J,render:te},M.createElement(bbe,{option:B,query:j.current.state.value,render:G}))))),M.createElement(mbe,{ariaAddedText:i,ariaDeletedText:s})))}const Dbe=M.forwardRef(Rbe),Ibe=/\s+/g,tz=e=>e.trim().toLowerCase().replace(Ibe,"-"),nz=({tag:e,colorGenerator:t})=>_.jsx("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"});let FD=1;const rz="Tag not found",iz="Add tag",Fbe=e=>e!==rz,Ube=e=>e===iz,UD=e=>(FD+=1,{label:e,value:`${e}${FD}`}),$be=e=>({tag:t,onClick:n})=>_.jsx(_P,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),Bbe=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=Fbe(n.label),s=Ube(n.label);return _.jsx("div",{className:We(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?_.jsxs(_.Fragment,{children:[!s&&_.jsx(nz,{tag:`${n.label}`,colorGenerator:e}),s?_.jsxs("i",{children:['Add "',tz(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):_.jsx("i",{children:n.label})})},oz=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=an(oz),a=Ru("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=ul();return _.jsx(Dbe,{ref:l,selected:e.map(UD),suggestions:r.filter(u=>!e.includes(u)).map(UD),renderTag:$be(o),renderOption:Bbe(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)])])})},zbe=sn(oz,["ColorGenerator"]),bT="shlink/tagDelete",Vbe={deleting:!1,deleted:!1,error:!1},az=Wn(`${bT}/tagDeleted`),Hbe=e=>{const t=_r(`${bT}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Yn({name:bT,initialState:Vbe,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}},AP="shlink/tagEdit",Wbe={editing:!1,edited:!1,error:!1},sz=Wn(`${AP}/tagEdited`),Ybe=(e,t)=>_r(`${AP}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Gbe=e=>Yn({name:AP,initialState:Wbe,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}})}}),NP="shlink/tagsList",TO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},$D=(e,t)=>n=>n===e?t:n,BD=(e,t)=>e.filter(n=>n!==t),qbe=(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}),Kbe=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),{})),Zbe=e=>_r(`${NP}/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(`${NP}/filterTags`),Xbe=(e,t)=>Yn({name:NP,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:BD(r,a),filteredTags:BD(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($D(s.oldName,s.newName)).sort(),filteredTags:i.map($D(s.oldName,s.newName)).sort()})),n.addCase(fv,(r,{payload:i})=>({...r,stats:qbe(Kbe(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),Qbe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},uz=cl(({filterTags:e,tagsList:t})=>{var n;const{TagsTable:r}=an(uz),i=yP(),[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 TB(u,o)};if(t.loading)return _.jsx(Da,{loading:!0});if(t.error)return _.jsx(ii,{type:"error",children:_.jsx(Fa,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})});const l=u=>()=>{const f=$_(u,o.field,o.dir);a({field:f?u:void 0,dir:f})};return _.jsxs(_.Fragment,{children:[_.jsx(sv,{className:"mb-3",onChange:e}),_.jsx(kr,{className:"mb-3",children:_.jsx("div",{className:"col-lg-6 offset-lg-6",children:_.jsx(lv,{items:Qbe,order:o,onChange:(u,f)=>a({field:u,dir:f})})})}),(()=>{if(t.filteredTags.length<1)return _.jsx(Da,{children:"No tags found"});const u=s();return _.jsx(r,{sortedTags:u,currentOrder:o,orderByColumn:l})})()]})},()=>[Ri.visits]),Jbe=sn(uz,["TagsTable"]),MP=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!om(o)&&n(o);return _.jsxs(Nj,{listClassName:We("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[_.jsx(nu,{disabled:t<=1,children:_.jsx(ru,{previous:!0,tag:"span",onClick:i(t-1)})}),H9(t,e).map((o,a)=>_.jsx(nu,{disabled:om(o),active:t===o,children:_.jsx(ru,{role:"link",tag:"span",onClick:i(o),children:W9(o)})},Y9(o,a))),_.jsx(nu,{disabled:t>=e,children:_.jsx(ru,{next:!0,tag:"span",onClick:i(t+1)})})]})},e_e=20,cz=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=an(cz),i=F.useRef(!0),{search:o}=Nn(),{page:a=1}=dd(o),[s,l]=Kme("page",Number(a)),u=Jh(e,e_e),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]),_.jsxs(vn,{bodyClassName:f?"pb-1":"",children:[_.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[_.jsxs("thead",{className:"responsive-table__header",children:[_.jsxs("tr",{children:[_.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",_.jsx(rh,{currentOrder:n,field:"tag"})]}),_.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",_.jsx(rh,{currentOrder:n,field:"shortUrls"})]}),_.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",_.jsx(rh,{currentOrder:n,field:"visits"})]}),_.jsx("th",{className:"tags-table__header-cell",children:_.jsx("span",{className:"sr-only",children:"Options"})})]}),_.jsx("tr",{children:_.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),_.jsxs("tbody",{children:[d.length===0&&_.jsx("tr",{children:_.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),d.map(p=>_.jsx(r,{tag:p},p.tag))]})]}),f&&_.jsx("div",{className:"sticky-card-paginator",children:_.jsx(MP,{pagesCount:u.length,currentPage:s,setCurrentPage:l})})]},s)},t_e=sn(cz,["TagsTableRow"]),fz=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=an(fz),[i,o]=En(),[a,s]=En(),l=Mu();return _.jsxs("tr",{className:"responsive-table__row",children:[_.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[_.jsx(nz,{tag:e.tag,colorGenerator:r})," ",e.tag]}),_.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:_.jsx(Yt,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:bn(e.shortUrls)})}),_.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:_.jsx(Yt,{to:`${l}/tag/${e.tag}/visits`,children:bn(e.visits)})}),_.jsx("td",{className:"responsive-table__cell text-lg-end",children:_.jsxs(U_,{children:[_.jsxs(ze,{onClick:s,children:[_.jsx(Le,{icon:qQ,fixedWidth:!0,className:"me-1"})," Edit"]}),_.jsxs(ze,{onClick:o,children:[_.jsx(Le,{icon:uJ,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),_.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),_.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},n_e=sn(fz,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),r_e=(e,t)=>{e.factory("TagsSelector",zbe),e.serviceFactory("DeleteTagConfirmModal",()=>F0e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",U0e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",n_e),e.factory("TagsTable",t_e),e.factory("TagsList",Jbe),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Gbe,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",Hbe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Xbe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",Zbe,"apiClientFactory"),e.serviceFactory("filterTags",()=>lz),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>az),e.serviceFactory("editTag",Ybe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>sz)};function CO(e){return e==null?"":`${e}`}function i_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 LP(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 o_e(e={stringFormatter:LP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function a_e(e={stringFormatter:LP()}){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 s_e=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function l_e(e){var t,n,r;const i=[];let o;for(;o=s_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 zD(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:l_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 VD;(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"})(VD||(VD={}));class u_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||LP(),i=a_e({stringFormatter:r}),o={header:r,undefined:CO,boolean:CO,number:i_e(),bigint:CO,string:r,symbol:o_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=>zD(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=>zD(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 c_e extends u_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 HD;(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"})(HD||(HD={}));var WD;(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"})(WD||(WD={}));var YD;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(YD||(YD={}));var GD;(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"})(GD||(GD={}));const f_e=new c_e,d_e=e=>f_e.parse(e),p_e=6,qD="0123456789ABCDEF",h_e=128,{floor:m_e,random:v_e,sqrt:g_e,round:y_e}=Math,b_e=()=>`#${mP(p_e,()=>qD[m_e(v_e()*qD.length)]).join("")}`,KD=e=>e.toLowerCase().trim(),__e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),w_e=(e=0,t=0,n=0)=>y_e(g_e(.299*e**2+.587*t**2+.114*n**2));class x_e{constructor(t){uo(this,"colors"),uo(this,"lights"),uo(this,"getColorForKey",r=>{const i=KD(r);return this.colors[i]||this.setColorForKey(i,b_e())}),uo(this,"setColorForKey",(r,i)=>{var o;const a=KD(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=__e(i);this.lights[i]=w_e(...o)>=h_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)},O_e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);pz(e,i,n)};class S_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 E_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);O_e(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function T_e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",S_e,"fetch","window"),e.service("ColorGenerator",x_e,"TagColorsStorage"),e.constant("jsonToCsv",d_e),e.service("ReportExporter",E_e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>xB)}const RP=e=>e.visitedUrl!==void 0,C_e=e=>e.visitedUrl!==void 0,k_e=e=>{const t=xme(e,n=>RP(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},Ug=(e,t)=>N2(e,n=>n[t]),gv=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&el(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&el(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}},yv=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>_.jsx("header",{children:_.jsxs(ui,{body:!0,children:[_.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[_.jsx(wt,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,"aria-label":"Go back",children:_.jsx(Le,{icon:N$})}),_.jsx("span",{className:"text-center d-none d-sm-block",children:_.jsx("small",{children:i})}),_.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",_.jsx(u9,{visitsCount:e.length,shortUrl:n})]})]}),_.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:_.jsx("small",{children:i})}),r&&_.jsx("div",{className:"mt-md-2",children:r})]})}),hz=({title:e,footer:t,children:n})=>_.jsxs(ui,{role:"document",children:[_.jsx(vf,{className:"chart-card__header",children:e}),_.jsx(mf,{children:n}),t&&_.jsx(W7,{className:"chart-card__footer--sticky",children:t})]});var j_e=Array.isArray,Kr=j_e,P_e=typeof Lc=="object"&&Lc&&Lc.Object===Object&&Lc,mz=P_e,A_e=mz,N_e=typeof self=="object"&&self&&self.Object===Object&&self,M_e=A_e||N_e||Function("return this")(),ra=M_e,L_e=ra,R_e=L_e.Symbol,bv=R_e,ZD=bv,vz=Object.prototype,D_e=vz.hasOwnProperty,I_e=vz.toString,up=ZD?ZD.toStringTag:void 0;function F_e(e){var t=D_e.call(e,up),n=e[up];try{e[up]=void 0;var r=!0}catch{}var i=I_e.call(e);return r&&(t?e[up]=n:delete e[up]),i}var U_e=F_e,$_e=Object.prototype,B_e=$_e.toString;function z_e(e){return B_e.call(e)}var V_e=z_e,XD=bv,H_e=U_e,W_e=V_e,Y_e="[object Null]",G_e="[object Undefined]",QD=XD?XD.toStringTag:void 0;function q_e(e){return e==null?e===void 0?G_e:Y_e:QD&&QD in Object(e)?H_e(e):W_e(e)}var Ja=q_e;function K_e(e){return e!=null&&typeof e=="object"}var es=K_e,Z_e=Ja,X_e=es,Q_e="[object Symbol]";function J_e(e){return typeof e=="symbol"||X_e(e)&&Z_e(e)==Q_e}var vd=J_e,ewe=Kr,twe=vd,nwe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rwe=/^\w*$/;function iwe(e,t){if(ewe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||twe(e)?!0:rwe.test(e)||!nwe.test(e)||t!=null&&e in Object(t)}var DP=iwe;function owe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dl=owe;const gd=Ot(dl);var awe=Ja,swe=dl,lwe="[object AsyncFunction]",uwe="[object Function]",cwe="[object GeneratorFunction]",fwe="[object Proxy]";function dwe(e){if(!swe(e))return!1;var t=awe(e);return t==uwe||t==cwe||t==lwe||t==fwe}var IP=dwe;const Qe=Ot(IP);var pwe=ra,hwe=pwe["__core-js_shared__"],mwe=hwe,kO=mwe,JD=function(){var e=/[^.]+$/.exec(kO&&kO.keys&&kO.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function vwe(e){return!!JD&&JD in e}var gwe=vwe,ywe=Function.prototype,bwe=ywe.toString;function _we(e){if(e!=null){try{return bwe.call(e)}catch{}try{return e+""}catch{}}return""}var gz=_we,wwe=IP,xwe=gwe,Owe=dl,Swe=gz,Ewe=/[\\^$.*+?()[\]{}|]/g,Twe=/^\[object .+?Constructor\]$/,Cwe=Function.prototype,kwe=Object.prototype,jwe=Cwe.toString,Pwe=kwe.hasOwnProperty,Awe=RegExp("^"+jwe.call(Pwe).replace(Ewe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nwe(e){if(!Owe(e)||xwe(e))return!1;var t=wwe(e)?Awe:Twe;return t.test(Swe(e))}var Mwe=Nwe;function Lwe(e,t){return e==null?void 0:e[t]}var Rwe=Lwe,Dwe=Mwe,Iwe=Rwe;function Fwe(e,t){var n=Iwe(e,t);return Dwe(n)?n:void 0}var Du=Fwe,Uwe=Du,$we=Uwe(Object,"create"),tw=$we,eI=tw;function Bwe(){this.__data__=eI?eI(null):{},this.size=0}var zwe=Bwe;function Vwe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Hwe=Vwe,Wwe=tw,Ywe="__lodash_hash_undefined__",Gwe=Object.prototype,qwe=Gwe.hasOwnProperty;function Kwe(e){var t=this.__data__;if(Wwe){var n=t[e];return n===Ywe?void 0:n}return qwe.call(t,e)?t[e]:void 0}var Zwe=Kwe,Xwe=tw,Qwe=Object.prototype,Jwe=Qwe.hasOwnProperty;function exe(e){var t=this.__data__;return Xwe?t[e]!==void 0:Jwe.call(t,e)}var txe=exe,nxe=tw,rxe="__lodash_hash_undefined__";function ixe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nxe&&t===void 0?rxe:t,this}var oxe=ixe,axe=zwe,sxe=Hwe,lxe=Zwe,uxe=txe,cxe=oxe;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=axe;yd.prototype.delete=sxe;yd.prototype.get=lxe;yd.prototype.has=uxe;yd.prototype.set=cxe;var fxe=yd;function dxe(){this.__data__=[],this.size=0}var pxe=dxe;function hxe(e,t){return e===t||e!==e&&t!==t}var FP=hxe,mxe=FP;function vxe(e,t){for(var n=e.length;n--;)if(mxe(e[n][0],t))return n;return-1}var nw=vxe,gxe=nw,yxe=Array.prototype,bxe=yxe.splice;function _xe(e){var t=this.__data__,n=gxe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():bxe.call(t,n,1),--this.size,!0}var wxe=_xe,xxe=nw;function Oxe(e){var t=this.__data__,n=xxe(t,e);return n<0?void 0:t[n][1]}var Sxe=Oxe,Exe=nw;function Txe(e){return Exe(this.__data__,e)>-1}var Cxe=Txe,kxe=nw;function jxe(e,t){var n=this.__data__,r=kxe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Pxe=jxe,Axe=pxe,Nxe=wxe,Mxe=Sxe,Lxe=Cxe,Rxe=Pxe;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=Axe;bd.prototype.delete=Nxe;bd.prototype.get=Mxe;bd.prototype.has=Lxe;bd.prototype.set=Rxe;var rw=bd,Dxe=Du,Ixe=ra,Fxe=Dxe(Ixe,"Map"),UP=Fxe,tI=fxe,Uxe=rw,$xe=UP;function Bxe(){this.size=0,this.__data__={hash:new tI,map:new($xe||Uxe),string:new tI}}var zxe=Bxe;function Vxe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Hxe=Vxe,Wxe=Hxe;function Yxe(e,t){var n=e.__data__;return Wxe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var iw=Yxe,Gxe=iw;function qxe(e){var t=Gxe(this,e).delete(e);return this.size-=t?1:0,t}var Kxe=qxe,Zxe=iw;function Xxe(e){return Zxe(this,e).get(e)}var Qxe=Xxe,Jxe=iw;function eOe(e){return Jxe(this,e).has(e)}var tOe=eOe,nOe=iw;function rOe(e,t){var n=nOe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var iOe=rOe,oOe=zxe,aOe=Kxe,sOe=Qxe,lOe=tOe,uOe=iOe;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=oOe;_d.prototype.delete=aOe;_d.prototype.get=sOe;_d.prototype.has=lOe;_d.prototype.set=uOe;var $P=_d,yz=$P,cOe="Expected a function";function BP(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cOe);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(BP.Cache||yz),n}BP.Cache=yz;var fOe=BP,dOe=fOe,pOe=500;function hOe(e){var t=dOe(e,function(r){return n.size===pOe&&n.clear(),r}),n=t.cache;return t}var mOe=hOe,vOe=mOe,gOe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yOe=/\\(\\)?/g,bOe=vOe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gOe,function(n,r,i,o){t.push(i?o.replace(yOe,"$1"):r||n)}),t}),_Oe=bOe;function wOe(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 zP=wOe,nI=bv,xOe=zP,OOe=Kr,SOe=vd,EOe=1/0,rI=nI?nI.prototype:void 0,iI=rI?rI.toString:void 0;function bz(e){if(typeof e=="string")return e;if(OOe(e))return xOe(e,bz)+"";if(SOe(e))return iI?iI.call(e):"";var t=e+"";return t=="0"&&1/e==-EOe?"-0":t}var TOe=bz,COe=TOe;function kOe(e){return e==null?"":COe(e)}var _z=kOe,jOe=Kr,POe=DP,AOe=_Oe,NOe=_z;function MOe(e,t){return jOe(e)?e:POe(e,t)?[e]:AOe(NOe(e))}var wz=MOe,LOe=vd,ROe=1/0;function DOe(e){if(typeof e=="string"||LOe(e))return e;var t=e+"";return t=="0"&&1/e==-ROe?"-0":t}var ow=DOe,IOe=wz,FOe=ow;function UOe(e,t){t=IOe(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[FOe(t[n++])];return n&&n==r?e:void 0}var VP=UOe,$Oe=VP;function BOe(e,t,n){var r=e==null?void 0:$Oe(e,t);return r===void 0?n:r}var xz=BOe;const ai=Ot(xz);function zOe(e){return e==null}var VOe=zOe;const Ze=Ot(VOe);var HOe=Ja,WOe=Kr,YOe=es,GOe="[object String]";function qOe(e){return typeof e=="string"||!WOe(e)&&YOe(e)&&HOe(e)==GOe}var KOe=qOe;const _v=Ot(KOe);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 oI;function ZOe(){if(oI)return Ct;oI=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,b=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===b||E.$$typeof===g)},Ct.typeOf=x,Ct}Oz.exports=ZOe();var wT=Oz.exports,XOe=Ja,QOe=es,JOe="[object Number]";function e1e(e){return typeof e=="number"||QOe(e)&&XOe(e)==JOe}var Sz=e1e;const t1e=Ot(Sz);var n1e=Sz;function r1e(e){return n1e(e)&&e!=+e}var i1e=r1e;const wd=Ot(i1e);var Pr=function(e){return e===0?0:e>0?1:-1},ql=function(e){return _v(e)&&e.indexOf("%")===e.length-1},je=function(e){return t1e(e)&&!wd(e)},Pn=function(e){return je(e)||_v(e)},o1e=0,pl=function(e){var t=++o1e;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)&&!_v(e))return n;var i;if(ql(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},fs=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},a1e=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 s1e=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 Kc(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 l1e=["viewBox","children"],u1e=["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"],aI=["points","pathLength"],sI={svg:l1e,polygon:aI,polyline:aI},HP=["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){HP.includes(i)&&(r[i]=t||function(o){return n[i](n,o)})}),r},c1e=function(e,t,n){return function(r){return e(t,n,r),null}},tl=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];HP.includes(i)&&typeof o=="function"&&(r||(r={}),r[i]=c1e(o,t,n))}),r},f1e=["children"],d1e=["children"];function lI(e,t){if(e==null)return{};var n=p1e(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 p1e(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 uI={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":""},cI=null,jO=null,WP=function e(t){if(t===cI&&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,cI=t,n};function Mr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ea(i)}):r=[Ea(t)],WP(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 fI=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)},h1e=["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"],m1e=function(e){return e&&e.type&&_v(e.type)&&h1e.indexOf(e.type)>=0},Ez=function(e){return e&&OT(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},v1e=function(e,t,n,r){var i,o=(i=sI==null?void 0:sI[r])!==null&&i!==void 0?i:[];return!Qe(e)&&(r&&o.includes(t)||u1e.includes(t))||n&&HP.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;v1e((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 dI(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(!dI(o,a))return!1}return!0},dI=function(e,t){if(Ze(e)&&Ze(t))return!0;if(!Ze(e)&&!Ze(t)){var n=e.props||{},r=n.children,i=lI(n,f1e),o=t.props||{},a=o.children,s=lI(o,d1e);return r&&a?Kc(i,s)&&Tz(r,a):!r&&!a?Kc(i,s):!1}return!1},pI=function(e,t){var n=[],r={};return WP(e).forEach(function(i,o){if(m1e(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},g1e=function(e){var t=e&&e.type;return t&&uI[t]?uI[t]:null},y1e=function(e,t){return WP(t).indexOf(e)},b1e=["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 _1e(e,t){if(e==null)return{};var n=w1e(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 w1e(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=_1e(e,b1e),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 x1e=["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 O1e(e,t){if(e==null)return{};var n=S1e(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 S1e(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=O1e(e,x1e),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 E1e(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 T1e=E1e,C1e=T1e;function k1e(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:C1e(e,t,n)}var j1e=k1e,P1e="\\ud800-\\udfff",A1e="\\u0300-\\u036f",N1e="\\ufe20-\\ufe2f",M1e="\\u20d0-\\u20ff",L1e=A1e+N1e+M1e,R1e="\\ufe0e\\ufe0f",D1e="\\u200d",I1e=RegExp("["+D1e+P1e+L1e+R1e+"]");function F1e(e){return I1e.test(e)}var Cz=F1e;function U1e(e){return e.split("")}var $1e=U1e,kz="\\ud800-\\udfff",B1e="\\u0300-\\u036f",z1e="\\ufe20-\\ufe2f",V1e="\\u20d0-\\u20ff",H1e=B1e+z1e+V1e,W1e="\\ufe0e\\ufe0f",Y1e="["+kz+"]",CT="["+H1e+"]",kT="\\ud83c[\\udffb-\\udfff]",G1e="(?:"+CT+"|"+kT+")",jz="[^"+kz+"]",Pz="(?:\\ud83c[\\udde6-\\uddff]){2}",Az="[\\ud800-\\udbff][\\udc00-\\udfff]",q1e="\\u200d",Nz=G1e+"?",Mz="["+W1e+"]?",K1e="(?:"+q1e+"(?:"+[jz,Pz,Az].join("|")+")"+Mz+Nz+")*",Z1e=Mz+Nz+K1e,X1e="(?:"+[jz+CT+"?",CT,Pz,Az,Y1e].join("|")+")",Q1e=RegExp(kT+"(?="+kT+")|"+X1e+Z1e,"g");function J1e(e){return e.match(Q1e)||[]}var eSe=J1e,tSe=$1e,nSe=Cz,rSe=eSe;function iSe(e){return nSe(e)?rSe(e):tSe(e)}var oSe=iSe,aSe=j1e,sSe=Cz,lSe=oSe,uSe=_z;function cSe(e){return function(t){t=uSe(t);var n=sSe(t)?lSe(t):void 0,r=n?n[0]:t.charAt(0),i=n?aSe(n,1).join(""):t.slice(1);return r[e]()+i}}var fSe=cSe,dSe=fSe,pSe=dSe("toUpperCase"),hSe=pSe;const aw=Ot(hSe);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,Dl=1e-6,mSe=PT-Dl;function Rz(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function vSe(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 gSe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Rz:vSe(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>Dl)if(!(Math.abs(d*l-u*f)>Dl)||!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),b=Math.sqrt(p),x=o*Math.tan((jT-Math.acos((g+p-w)/(2*y*b)))/2),O=x/b,E=x/y;Math.abs(O-1)>Dl&&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)>Dl||Math.abs(this._y1-f)>Dl)&&this._append`L${u},${f}`,r&&(p<0&&(p=p%PT+PT),p>mSe?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>Dl&&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 YP(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 gSe(t)}function GP(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=YP(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=GP(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 $g(e,t,n){var r=null,i=$t(!0),o=null,a=lw,s=null,l=YP(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=GP(d)).length,w,y=!1,b,x=new Array(g),O=new Array(g);for(o==null&&(s=a(b=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(b)return s=null,b+""||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 ySe(e){return new $z(e,!0)}function bSe(e){return new $z(e,!1)}const qP={draw(e,t){const n=Oo(t/fb);e.moveTo(n,0),e.arc(0,0,n,0,sw)}},_Se={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),wSe=Bz*2,xSe={draw(e,t){const n=Oo(t/wSe),r=n*Bz;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},OSe={draw(e,t){const n=Oo(t),r=-n/2;e.rect(r,r,n,n)}},SSe=.8908130915292852,zz=cb(fb/10)/cb(7*fb/10),ESe=cb(sw/10)*zz,TSe=-Lz(sw/10)*zz,CSe={draw(e,t){const n=Oo(t*SSe),r=ESe*n,i=TSe*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),kSe={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),jSe=(AT/2+1)*3,PSe={draw(e,t){const n=Oo(t/jSe),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 ASe(e,t){let n=null,r=YP(i);e=typeof e=="function"?e:$t(e||qP),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 NSe(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 MSe(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 LSe(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 RSe(e){return new Yz(e)}function hI(e){return e<0?-1:1}function mI(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(hI(o)+hI(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function vI(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,vI(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,vI(this,n=mI(this,e,t)),n);break;default:AO(this,this._t0,n=mI(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 DSe(e){return new hb(e)}function ISe(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=gI(e),i=gI(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 gI(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 FSe(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 USe(e){return new uw(e,.5)}function $Se(e){return new uw(e,0)}function BSe(e){return new uw(e,1)}function Nf(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 zSe(e,t){return e[t]}function VSe(e){const t=[];return t.key=e,t}function HSe(){var e=$t([]),t=NT,n=Nf,r=zSe;function i(o){var a=Array.from(e.apply(this,arguments),VSe),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=GP(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??Nf,i):n},i}function WSe(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}Nf(e,t)}}function YSe(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}Nf(e,t)}}function GSe(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,Nf(e,t)}}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 qSe=["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 yI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yI(Object(n),!0).forEach(function(r){KSe(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 KSe(e,t,n){return t=ZSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZSe(e){var t=XSe(e,"string");return am(t)==="symbol"?t:String(t)}function XSe(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 QSe(e,t){if(e==null)return{};var n=JSe(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 JSe(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:qP,symbolCross:_Se,symbolDiamond:xSe,symbolSquare:OSe,symbolStar:CSe,symbolTriangle:kSe,symbolWye:PSe},eEe=Math.PI/180,tEe=function(e){var t="symbol".concat(aw(e));return Zz[t]||qP},nEe=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*eEe;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}},rEe=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=QSe(e,qSe),l=bI(bI({},s),{},{type:n,size:i,sizeType:a}),u=function(){var v=tEe(n),g=ASe().type(v).size(nEe(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=rEe;function Mf(e){"@babel/helpers - typeof";return Mf=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},Mf(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 _I(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 iEe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_I(Object(n),!0).forEach(function(r){sm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_I(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wI(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 aEe(e,t,n){return t&&wI(e.prototype,t),n&&wI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sEe(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 lEe(e){var t=fEe();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 uEe(this,r)}}function uEe(e,t){if(t&&(Mf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cEe(e)}function cEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fEe(){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 sm(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=dEe(e,"string");return Mf(t)==="symbol"?t:String(t)}function dEe(e,t){if(Mf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xi=32,KP=function(e){sEe(n,e);var t=lEe(n);function n(){return oEe(this,n),t.apply(this,arguments)}return aEe(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=iEe({},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},sm(g,"legend-item-".concat(v),!0),sm(g,"inactive",m.inactive),g));if(m.type==="none")return null;var b=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)},tl(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(b,m,v):b))})}},{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);sm(KP,"displayName","Legend");sm(KP,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var pEe=rw;function hEe(){this.__data__=new pEe,this.size=0}var mEe=hEe;function vEe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var gEe=vEe;function yEe(e){return this.__data__.get(e)}var bEe=yEe;function _Ee(e){return this.__data__.has(e)}var wEe=_Ee,xEe=rw,OEe=UP,SEe=$P,EEe=200;function TEe(e,t){var n=this.__data__;if(n instanceof xEe){var r=n.__data__;if(!OEe||r.length<EEe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new SEe(r)}return n.set(e,t),this.size=n.size,this}var CEe=TEe,kEe=rw,jEe=mEe,PEe=gEe,AEe=bEe,NEe=wEe,MEe=CEe;function xd(e){var t=this.__data__=new kEe(e);this.size=t.size}xd.prototype.clear=jEe;xd.prototype.delete=PEe;xd.prototype.get=AEe;xd.prototype.has=NEe;xd.prototype.set=MEe;var Qz=xd,LEe="__lodash_hash_undefined__";function REe(e){return this.__data__.set(e,LEe),this}var DEe=REe;function IEe(e){return this.__data__.has(e)}var FEe=IEe,UEe=$P,$Ee=DEe,BEe=FEe;function vb(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new UEe;++t<n;)this.add(e[t])}vb.prototype.add=vb.prototype.push=$Ee;vb.prototype.has=BEe;var Jz=vb;function zEe(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=zEe;function VEe(e,t){return e.has(t)}var tV=VEe,HEe=Jz,WEe=eV,YEe=tV,GEe=1,qEe=2;function KEe(e,t,n,r,i,o){var a=n&GEe,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&qEe?new HEe: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(!WEe(t,function(y,b){if(!YEe(m,b)&&(v===y||i(v,y,n,r,o)))return m.push(b)})){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=KEe,ZEe=ra,XEe=ZEe.Uint8Array,QEe=XEe;function JEe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var eTe=JEe;function tTe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var ZP=tTe,xI=bv,OI=QEe,nTe=FP,rTe=nV,iTe=eTe,oTe=ZP,aTe=1,sTe=2,lTe="[object Boolean]",uTe="[object Date]",cTe="[object Error]",fTe="[object Map]",dTe="[object Number]",pTe="[object RegExp]",hTe="[object Set]",mTe="[object String]",vTe="[object Symbol]",gTe="[object ArrayBuffer]",yTe="[object DataView]",SI=xI?xI.prototype:void 0,NO=SI?SI.valueOf:void 0;function bTe(e,t,n,r,i,o,a){switch(n){case yTe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gTe:return!(e.byteLength!=t.byteLength||!o(new OI(e),new OI(t)));case lTe:case uTe:case dTe:return nTe(+e,+t);case cTe:return e.name==t.name&&e.message==t.message;case pTe:case mTe:return e==t+"";case fTe:var s=iTe;case hTe:var l=r&aTe;if(s||(s=oTe),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=sTe,a.set(e,t);var f=rTe(s(e),s(t),r,i,o,a);return a.delete(e),f;case vTe:if(NO)return NO.call(e)==NO.call(t)}return!1}var _Te=bTe;function wTe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var rV=wTe,xTe=rV,OTe=Kr;function STe(e,t,n){var r=t(e);return OTe(e)?r:xTe(r,n(e))}var ETe=STe;function TTe(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 CTe=TTe;function kTe(){return[]}var jTe=kTe,PTe=CTe,ATe=jTe,NTe=Object.prototype,MTe=NTe.propertyIsEnumerable,EI=Object.getOwnPropertySymbols,LTe=EI?function(e){return e==null?[]:(e=Object(e),PTe(EI(e),function(t){return MTe.call(e,t)}))}:ATe,RTe=LTe;function DTe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ITe=DTe,FTe=Ja,UTe=es,$Te="[object Arguments]";function BTe(e){return UTe(e)&&FTe(e)==$Te}var zTe=BTe,TI=zTe,VTe=es,iV=Object.prototype,HTe=iV.hasOwnProperty,WTe=iV.propertyIsEnumerable,YTe=TI(function(){return arguments}())?TI:function(e){return VTe(e)&&HTe.call(e,"callee")&&!WTe.call(e,"callee")},XP=YTe,gb={exports:{}};function GTe(){return!1}var qTe=GTe;gb.exports;(function(e,t){var n=ra,r=qTe,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,KTe=9007199254740991,ZTe=/^(?:0|[1-9]\d*)$/;function XTe(e,t){var n=typeof e;return t=t??KTe,!!t&&(n=="number"||n!="symbol"&&ZTe.test(e))&&e>-1&&e%1==0&&e<t}var QP=XTe,QTe=9007199254740991;function JTe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=QTe}var JP=JTe,eCe=Ja,tCe=JP,nCe=es,rCe="[object Arguments]",iCe="[object Array]",oCe="[object Boolean]",aCe="[object Date]",sCe="[object Error]",lCe="[object Function]",uCe="[object Map]",cCe="[object Number]",fCe="[object Object]",dCe="[object RegExp]",pCe="[object Set]",hCe="[object String]",mCe="[object WeakMap]",vCe="[object ArrayBuffer]",gCe="[object DataView]",yCe="[object Float32Array]",bCe="[object Float64Array]",_Ce="[object Int8Array]",wCe="[object Int16Array]",xCe="[object Int32Array]",OCe="[object Uint8Array]",SCe="[object Uint8ClampedArray]",ECe="[object Uint16Array]",TCe="[object Uint32Array]",Ut={};Ut[yCe]=Ut[bCe]=Ut[_Ce]=Ut[wCe]=Ut[xCe]=Ut[OCe]=Ut[SCe]=Ut[ECe]=Ut[TCe]=!0;Ut[rCe]=Ut[iCe]=Ut[vCe]=Ut[oCe]=Ut[gCe]=Ut[aCe]=Ut[sCe]=Ut[lCe]=Ut[uCe]=Ut[cCe]=Ut[fCe]=Ut[dCe]=Ut[pCe]=Ut[hCe]=Ut[mCe]=!1;function CCe(e){return nCe(e)&&tCe(e.length)&&!!Ut[eCe(e)]}var kCe=CCe;function jCe(e){return function(t){return e(t)}}var aV=jCe,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 PCe=yb.exports,ACe=kCe,NCe=aV,CI=PCe,kI=CI&&CI.isTypedArray,MCe=kI?NCe(kI):ACe,sV=MCe,LCe=ITe,RCe=XP,DCe=Kr,ICe=oV,FCe=QP,UCe=sV,$Ce=Object.prototype,BCe=$Ce.hasOwnProperty;function zCe(e,t){var n=DCe(e),r=!n&&RCe(e),i=!n&&!r&&ICe(e),o=!n&&!r&&!i&&UCe(e),a=n||r||i||o,s=a?LCe(e.length,String):[],l=s.length;for(var u in e)(t||BCe.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||FCe(u,l)))&&s.push(u);return s}var VCe=zCe,HCe=Object.prototype;function WCe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||HCe;return e===n}var YCe=WCe;function GCe(e,t){return function(n){return e(t(n))}}var lV=GCe,qCe=lV,KCe=qCe(Object.keys,Object),ZCe=KCe,XCe=YCe,QCe=ZCe,JCe=Object.prototype,eke=JCe.hasOwnProperty;function tke(e){if(!XCe(e))return QCe(e);var t=[];for(var n in Object(e))eke.call(e,n)&&n!="constructor"&&t.push(n);return t}var nke=tke,rke=IP,ike=JP;function oke(e){return e!=null&&ike(e.length)&&!rke(e)}var wv=oke,ake=VCe,ske=nke,lke=wv;function uke(e){return lke(e)?ake(e):ske(e)}var fw=uke,cke=ETe,fke=RTe,dke=fw;function pke(e){return cke(e,dke,fke)}var hke=pke,jI=hke,mke=1,vke=Object.prototype,gke=vke.hasOwnProperty;function yke(e,t,n,r,i,o){var a=n&mke,s=jI(e),l=s.length,u=jI(t),f=u.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:gke.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],b=t[p];if(r)var x=a?r(b,y,p,t,e,o):r(y,b,p,e,t,o);if(!(x===void 0?y===b||i(y,b,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 bke=yke,_ke=Du,wke=ra,xke=_ke(wke,"DataView"),Oke=xke,Ske=Du,Eke=ra,Tke=Ske(Eke,"Promise"),Cke=Tke,kke=Du,jke=ra,Pke=kke(jke,"Set"),uV=Pke,Ake=Du,Nke=ra,Mke=Ake(Nke,"WeakMap"),Lke=Mke,DT=Oke,IT=UP,FT=Cke,UT=uV,$T=Lke,cV=Ja,Od=gz,PI="[object Map]",Rke="[object Object]",AI="[object Promise]",NI="[object Set]",MI="[object WeakMap]",LI="[object DataView]",Dke=Od(DT),Ike=Od(IT),Fke=Od(FT),Uke=Od(UT),$ke=Od($T),Il=cV;(DT&&Il(new DT(new ArrayBuffer(1)))!=LI||IT&&Il(new IT)!=PI||FT&&Il(FT.resolve())!=AI||UT&&Il(new UT)!=NI||$T&&Il(new $T)!=MI)&&(Il=function(e){var t=cV(e),n=t==Rke?e.constructor:void 0,r=n?Od(n):"";if(r)switch(r){case Dke:return LI;case Ike:return PI;case Fke:return AI;case Uke:return NI;case $ke:return MI}return t});var Bke=Il,MO=Qz,zke=nV,Vke=_Te,Hke=bke,RI=Bke,DI=Kr,II=oV,Wke=sV,Yke=1,FI="[object Arguments]",UI="[object Array]",Bg="[object Object]",Gke=Object.prototype,$I=Gke.hasOwnProperty;function qke(e,t,n,r,i,o){var a=DI(e),s=DI(t),l=a?UI:RI(e),u=s?UI:RI(t);l=l==FI?Bg:l,u=u==FI?Bg:u;var f=l==Bg,d=u==Bg,p=l==u;if(p&&II(e)){if(!II(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new MO),a||Wke(e)?zke(e,t,n,r,i,o):Vke(e,t,l,n,r,i,o);if(!(n&Yke)){var m=f&&$I.call(e,"__wrapped__"),v=d&&$I.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),Hke(e,t,n,r,i,o)):!1}var Kke=qke,Zke=Kke,BI=es;function fV(e,t,n,r,i){return e===t?!0:e==null||t==null||!BI(e)&&!BI(t)?e!==e&&t!==t:Zke(e,t,n,r,fV,i)}var eA=fV,Xke=Qz,Qke=eA,Jke=1,eje=2;function tje(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 Xke;if(r)var p=r(u,f,l,e,t,d);if(!(p===void 0?Qke(f,u,Jke|eje,r,d):p))return!1}}return!0}var nje=tje,rje=dl;function ije(e){return e===e&&!rje(e)}var dV=ije,oje=dV,aje=fw;function sje(e){for(var t=aje(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,oje(i)]}return t}var lje=sje;function uje(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var pV=uje,cje=nje,fje=lje,dje=pV;function pje(e){var t=fje(e);return t.length==1&&t[0][2]?dje(t[0][0],t[0][1]):function(n){return n===e||cje(n,e,t)}}var hje=pje;function mje(e,t){return e!=null&&t in Object(e)}var vje=mje,gje=wz,yje=XP,bje=Kr,_je=QP,wje=JP,xje=ow;function Oje(e,t,n){t=gje(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=xje(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&&wje(i)&&_je(a,i)&&(bje(e)||yje(e)))}var Sje=Oje,Eje=vje,Tje=Sje;function Cje(e,t){return e!=null&&Tje(e,t,Eje)}var kje=Cje,jje=eA,Pje=xz,Aje=kje,Nje=DP,Mje=dV,Lje=pV,Rje=ow,Dje=1,Ije=2;function Fje(e,t){return Nje(e)&&Mje(t)?Lje(Rje(e),t):function(n){var r=Pje(n,e);return r===void 0&&r===t?Aje(n,e):jje(t,r,Dje|Ije)}}var Uje=Fje;function $je(e){return e}var Sd=$je;function Bje(e){return function(t){return t==null?void 0:t[e]}}var zje=Bje,Vje=VP;function Hje(e){return function(t){return Vje(t,e)}}var Wje=Hje,Yje=zje,Gje=Wje,qje=DP,Kje=ow;function Zje(e){return qje(e)?Yje(Kje(e)):Gje(e)}var Xje=Zje,Qje=hje,Jje=Uje,ePe=Sd,tPe=Kr,nPe=Xje;function rPe(e){return typeof e=="function"?e:e==null?ePe:typeof e=="object"?tPe(e)?Jje(e[0],e[1]):Qje(e):nPe(e)}var ia=rPe;function iPe(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=iPe;function oPe(e){return e!==e}var aPe=oPe;function sPe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var lPe=sPe,uPe=hV,cPe=aPe,fPe=lPe;function dPe(e,t,n){return t===t?fPe(e,t,n):uPe(e,cPe,n)}var pPe=dPe,hPe=pPe;function mPe(e,t){var n=e==null?0:e.length;return!!n&&hPe(e,t,0)>-1}var vPe=mPe;function gPe(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 yPe=gPe;function bPe(){}var _Pe=bPe,LO=uV,wPe=_Pe,xPe=ZP,OPe=1/0,SPe=LO&&1/xPe(new LO([,-0]))[1]==OPe?function(e){return new LO(e)}:wPe,EPe=SPe,TPe=Jz,CPe=vPe,kPe=yPe,jPe=tV,PPe=EPe,APe=ZP,NPe=200;function MPe(e,t,n){var r=-1,i=CPe,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=kPe;else if(o>=NPe){var u=t?null:PPe(e);if(u)return APe(u);a=!1,i=jPe,l=new TPe}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 LPe=MPe,RPe=ia,DPe=LPe;function IPe(e,t){return e&&e.length?DPe(e,RPe(t)):[]}var FPe=IPe;const zI=Ot(FPe);function mV(e,t,n){return t===!0?zI(e,n):Qe(t)?zI(e,t):e}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)}var UPe=["ref"];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 Sl(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){dw(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 $Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HI(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 BPe(e,t,n){return t&&HI(e.prototype,t),n&&HI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zPe(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 VPe(e){var t=WPe();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 HPe(this,r)}}function HPe(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 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 WPe(){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=YPe(e,"string");return Lf(t)==="symbol"?t:String(t)}function YPe(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)}function GPe(e,t){if(e==null)return{};var n=qPe(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 qPe(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 KPe(e){return e.value}function ZPe(e,t){if(M.isValidElement(e))return M.cloneElement(e,t);if(typeof e=="function")return M.createElement(e,t);t.ref;var n=GPe(t,UPe);return M.createElement(KP,n)}var WI=1,lm=function(e){zPe(n,e);var t=VPe(n);function n(){var r;$Pe(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 BPe(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)>WI||Math.abs(i.height-this.lastBoundingBox.height)>WI)&&(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?Sl({},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 Sl(Sl({},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=Sl(Sl({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}},ZPe(o,Sl(Sl({},this.props),{},{payload:mV(f,u,KPe)})))}}],[{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(lm,"displayName","Legend");dw(lm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var YI=bv,XPe=XP,QPe=Kr,GI=YI?YI.isConcatSpreadable:void 0;function JPe(e){return QPe(e)||XPe(e)||!!(GI&&e&&e[GI])}var eAe=JPe,tAe=rV,nAe=eAe;function yV(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=nAe),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yV(s,t-1,n,r,i):tAe(i,s):r||(i[i.length]=s)}return i}var bV=yV;function rAe(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 iAe=rAe,oAe=iAe,aAe=oAe(),sAe=aAe,lAe=sAe,uAe=fw;function cAe(e,t){return e&&lAe(e,t,uAe)}var _V=cAe,fAe=wv;function dAe(e,t){return function(n,r){if(n==null)return n;if(!fAe(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 pAe=dAe,hAe=_V,mAe=pAe,vAe=mAe(hAe),tA=vAe,gAe=tA,yAe=wv;function bAe(e,t){var n=-1,r=yAe(e)?Array(e.length):[];return gAe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var wV=bAe;function _Ae(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var wAe=_Ae,qI=vd;function xAe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=qI(e),a=t!==void 0,s=t===null,l=t===t,u=qI(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 OAe=xAe,SAe=OAe;function EAe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=SAe(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 TAe=EAe,RO=zP,CAe=VP,kAe=ia,jAe=wV,PAe=wAe,AAe=aV,NAe=TAe,MAe=Sd,LAe=Kr;function RAe(e,t,n){t.length?t=RO(t,function(o){return LAe(o)?function(a){return CAe(a,o.length===1?o[0]:o)}:o}):t=[MAe];var r=-1;t=RO(t,AAe(kAe));var i=jAe(e,function(o,a,s){var l=RO(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return PAe(i,function(o,a){return NAe(o,a,n)})}var DAe=RAe;function IAe(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 FAe=IAe,UAe=FAe,KI=Math.max;function $Ae(e,t,n){return t=KI(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=KI(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),UAe(e,this,s)}}var BAe=$Ae;function zAe(e){return function(){return e}}var VAe=zAe,HAe=Du,WAe=function(){try{var e=HAe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),xV=WAe,YAe=VAe,ZI=xV,GAe=Sd,qAe=ZI?function(e,t){return ZI(e,"toString",{configurable:!0,enumerable:!1,value:YAe(t),writable:!0})}:GAe,KAe=qAe,ZAe=800,XAe=16,QAe=Date.now;function JAe(e){var t=0,n=0;return function(){var r=QAe(),i=XAe-(r-n);if(n=r,i>0){if(++t>=ZAe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var eNe=JAe,tNe=KAe,nNe=eNe,rNe=nNe(tNe),iNe=rNe,oNe=Sd,aNe=BAe,sNe=iNe;function lNe(e,t){return sNe(aNe(e,t,oNe),e+"")}var uNe=lNe,cNe=FP,fNe=wv,dNe=QP,pNe=dl;function hNe(e,t,n){if(!pNe(n))return!1;var r=typeof t;return(r=="number"?fNe(n)&&dNe(t,n.length):r=="string"&&t in n)?cNe(n[t],e):!1}var pw=hNe,mNe=bV,vNe=DAe,gNe=uNe,XI=pw,yNe=gNe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&XI(e,t[0],t[1])?t=[]:n>2&&XI(t[0],t[1],t[2])&&(t=[t[0]]),vNe(e,mNe(t,1),[])}),bNe=yNe;const nA=Ot(bNe);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 _Ne(e,t){return SNe(e)||ONe(e,t)||xNe(e,t)||wNe()}function wNe(){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 xNe(e,t){if(e){if(typeof e=="string")return QI(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 QI(e,t)}}function QI(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 ONe(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 SNe(e){if(Array.isArray(e))return e}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(n),!0).forEach(function(r){ENe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ENe(e,t,n){return t=TNe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TNe(e){var t=CNe(e,"string");return um(t)==="symbol"?t:String(t)}function CNe(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 kNe(e){return Array.isArray(e)&&Pn(e[0])&&Pn(e[1])?e.join(" ~ "):e}var jNe=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?nA(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||kNe,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=_Ne(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),b=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:b},M.isValidElement(O)?O:"".concat(O)),w())},PNe=Object.getOwnPropertyNames,ANe=Object.getOwnPropertySymbols,NNe=Object.prototype.hasOwnProperty;function e4(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function zg(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 t4(e){return PNe(e).concat(ANe(e))}var OV=Object.hasOwn||function(e,t){return NNe.call(e,t)};function Ed(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var SV="_owner",n4=Object.getOwnPropertyDescriptor,r4=Object.keys;function MNe(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 LNe(e,t){return Ed(e.getTime(),t.getTime())}function i4(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 RNe(e,t,n){var r=r4(e),i=r.length;if(r4(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=t4(e),i=r.length;if(t4(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=n4(e,o),s=n4(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function DNe(e,t){return Ed(e.valueOf(),t.valueOf())}function INe(e,t){return e.source===t.source&&e.flags===t.flags}function o4(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 FNe(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 UNe="[object Arguments]",$Ne="[object Boolean]",BNe="[object Date]",zNe="[object Map]",VNe="[object Number]",HNe="[object Object]",WNe="[object RegExp]",YNe="[object Set]",GNe="[object String]",qNe=Array.isArray,a4=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,s4=Object.assign,KNe=Object.prototype.toString.call.bind(Object.prototype.toString);function ZNe(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(qNe(u))return t(u,f,d);if(a4!=null&&a4(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=KNe(u);return m===BNe?n(u,f,d):m===WNe?a(u,f,d):m===zNe?r(u,f,d):m===YNe?s(u,f,d):m===HNe?typeof u.then!="function"&&typeof f.then!="function"&&i(u,f,d):m===UNe?i(u,f,d):m===$Ne||m===VNe||m===GNe?o(u,f,d):!1}}function XNe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?cp:MNe,areDatesEqual:LNe,areMapsEqual:r?e4(i4,cp):i4,areObjectsEqual:r?cp:RNe,arePrimitiveWrappersEqual:DNe,areRegExpsEqual:INe,areSetsEqual:r?e4(o4,cp):o4,areTypedArraysEqual:r?cp:FNe};if(n&&(i=s4({},i,n(i))),t){var o=zg(i.areArraysEqual),a=zg(i.areMapsEqual),s=zg(i.areObjectsEqual),l=zg(i.areSetsEqual);i=s4({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function QNe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function JNe(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 e3e=hl();hl({strict:!0});hl({circular:!0});hl({circular:!0,strict:!0});hl({createInternalComparator:function(){return Ed}});hl({strict:!0,createInternalComparator:function(){return Ed}});hl({circular:!0,createInternalComparator:function(){return Ed}});hl({circular:!0,createInternalComparator:function(){return Ed},strict:!0});function hl(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=XNe(e),l=ZNe(s),u=r?r(l):QNe(l);return JNe({circular:n,comparator:l,createState:i,equals:u,strict:a})}function t3e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function l4(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):t3e(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 n3e(e){return a3e(e)||o3e(e)||i3e(e)||r3e()}function r3e(){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 i3e(e,t){if(e){if(typeof e=="string")return u4(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 u4(e,t)}}function u4(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 o3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a3e(e){if(Array.isArray(e))return e}function s3e(){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=n3e(a),l=s[0],u=s.slice(1);if(typeof l=="number"){l4(i.bind(null,u),l);return}i(l),l4(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 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 c4(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 Rf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c4(Object(n),!0).forEach(function(r){_b(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _b(e,t,n){return t=l3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l3e(e){var t=u3e(e,"string");return cm(t)==="symbol"?t:String(t)}function u3e(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)}var c3e=["Webkit","Moz","O","ms"],f3e=["-webkit-","-moz-","-o-","-ms-"],d3e=["transform","transformOrigin","transition"],p3e=function(e,t){return[Object.keys(e),Object.keys(t)].reduce(function(n,r){return n.filter(function(i){return r.includes(i)})})},h3e=function(e){return e},m3e=function(e){return e.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})},v3e=function(e,t){if(d3e.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 c3e.reduce(function(o,a,s){return n&&(i=t.replace(/(transform|transform-origin)/gim,"".concat(f3e[s],"$1"))),Rf(Rf({},o),{},_b({},a+r,i))},{})},ih=function(e,t){return Object.keys(t).reduce(function(n,r){return Rf(Rf({},n),{},_b({},r,e(r,t[r])))},{})},rA=function(e){return Object.keys(e).reduce(function(t,n){return Rf(Rf({},t),v3e(n,t[n]))},e)},f4=function(e,t,n){return e.map(function(r){return"".concat(m3e(r)," ").concat(t,"ms ").concat(n)}).join(",")};function g3e(e,t){return _3e(e)||b3e(e,t)||EV(e,t)||y3e()}function y3e(){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 b3e(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 _3e(e){if(Array.isArray(e))return e}function w3e(e){return S3e(e)||O3e(e)||EV(e)||x3e()}function x3e(){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 O3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S3e(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})},d4=function(e,t){return function(n){var r=TV(e,t);return CV(r,n)}},E3e=function(e,t){return function(n){var r=TV(e,t),i=[].concat(w3e(r.map(function(o,a){return o*a}).slice(1)),[0]);return CV(i,n)}},p4=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=g3e(l,4);r=u[0],i=u[1],o=u[2],a=u[3]}}}var f=d4(r,o),d=d4(i,a),p=E3e(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,b=0;b<8;++b){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},T3e=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},C3e=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 p4(r);case"spring":return T3e();default:if(r.split("(")[0]==="cubic-bezier")return p4(r)}return typeof r=="function"?r:null};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 h4(e){return P3e(e)||j3e(e)||kV(e)||k3e()}function k3e(){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 j3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P3e(e){if(Array.isArray(e))return WT(e)}function m4(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?m4(Object(n),!0).forEach(function(r){HT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HT(e,t,n){return t=A3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A3e(e){var t=N3e(e,"string");return fm(t)==="symbol"?t:String(t)}function N3e(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)}function M3e(e,t){return D3e(e)||R3e(e,t)||kV(e,t)||L3e()}function L3e(){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 R3e(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 D3e(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},I3e=function e(t,n,r){var i=ih(function(o,a){if(YT(a)){var s=t(a.from,a.to,a.velocity),l=M3e(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 F3e=function(e,t,n,r,i){var o=p3e(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,b=y/n.dt;s=I3e(n,s,b),i(sr(sr(sr({},e),t),p())),u=w,m()||(l=requestAnimationFrame(d))},g=function(w){f||(f=w);var y=(w-f)/r,b=ih(function(O,E){return xb.apply(void 0,h4(E).concat([n(y)]))},a);if(i(sr(sr(sr({},e),t),b)),y<1)l=requestAnimationFrame(d);else{var x=ih(function(O,E){return xb.apply(void 0,h4(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 Df(e){"@babel/helpers - typeof";return Df=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},Df(e)}var U3e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function $3e(e,t){if(e==null)return{};var n=B3e(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 B3e(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 W3e(e)||H3e(e)||V3e(e)||z3e()}function z3e(){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 V3e(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 H3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W3e(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 v4(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?v4(Object(n),!0).forEach(function(r){jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v4(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 Y3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g4(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 G3e(e,t,n){return t&&g4(e.prototype,t),n&&g4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jV(e){var t=q3e(e,"string");return Df(t)==="symbol"?t:String(t)}function q3e(e,t){if(Df(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Df(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K3e(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 Z3e(e){var t=X3e();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&&(Df(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 X3e(){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){K3e(n,e);var t=Z3e(n);function n(r,i){var o;Y3e(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 G3e(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(!(e3e(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=F3e(o,a,C3e(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,b=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 b=="function"||b==="spring")return[].concat(IO(m),[i.runJSAnimation.bind(i,{from:T.style,to:x,duration:w,easing:b}),w]);var A=f4(k,w,b),D=to(to(to({},T.style),x),{},{transition:A});return[].concat(IO(m),[D,w,E]).filter(h3e)};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=s3e());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=f4(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=$3e(r,U3e),l=F.Children.count(i),u=rA(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 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 Vg(e,t,n){return t=Q3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q3e(e){var t=J3e(e,"string");return dm(t)==="symbol"?t:String(t)}function J3e(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)}var fp="recharts-tooltip-wrapper",eMe={visibility:"hidden"};function tMe(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return We(fp,(t={},Vg(t,"".concat(fp,"-right"),je(r)&&n&&je(n.x)&&r>=n.x),Vg(t,"".concat(fp,"-left"),je(r)&&n&&je(n.x)&&r<n.x),Vg(t,"".concat(fp,"-bottom"),je(i)&&n&&je(n.y)&&i>=n.y),Vg(t,"".concat(fp,"-top"),je(i)&&n&&je(n.y)&&i<n.y),t))}function y4(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 nMe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return rA({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function rMe(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=y4({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=y4({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=nMe({translateX:f,translateY:d,useTranslate3d:s})):u=eMe,{cssProperties:u,cssClasses:tMe({translateX:f,translateY:d,coordinate:n})}}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)}function b4(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?b4(Object(n),!0).forEach(function(r){Ay(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _4(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 oMe(e,t,n){return t&&_4(e.prototype,t),n&&_4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aMe(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 sMe(e){var t=uMe();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 lMe(this,r)}}function lMe(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 Py(e)}function Py(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uMe(){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 Ay(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=cMe(e,"string");return If(t)==="symbol"?t:String(t)}function cMe(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)}var w4=1,fMe=function(e){aMe(n,e);var t=sMe(n);function n(){var r;iMe(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)),Ay(Py(r),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Ay(Py(r),"lastBoundingBox",{width:-1,height:-1}),Ay(Py(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 oMe(n,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.lastBoundingBox.width)>w4||Math.abs(r.height-this.lastBoundingBox.height)>w4)&&(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,b=i.wrapperStyle,x=rMe({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&&rA({transition:"transform ".concat(s,"ms ").concat(l)})),E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},b);return M.createElement("div",{tabIndex:-1,role:"dialog",className:O,style:T,ref:function(k){r.wrapperNode=k}},u)}}]),n}(F.PureComponent),dMe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ii={isSsr:dMe(),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 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 x4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function O4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x4(Object(n),!0).forEach(function(r){iA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S4(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 hMe(e,t,n){return t&&S4(e.prototype,t),n&&S4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mMe(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 vMe(e){var t=bMe();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 gMe(this,r)}}function gMe(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 yMe(e)}function yMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bMe(){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 iA(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=_Me(e,"string");return Ff(t)==="symbol"?t:String(t)}function _Me(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)}function wMe(e){return e.dataKey}function xMe(e,t){return M.isValidElement(e)?M.cloneElement(e,t):typeof e=="function"?M.createElement(e,t):M.createElement(jNe,t)}var _a=function(e){mMe(n,e);var t=vMe(n);function n(){return pMe(this,n),t.apply(this,arguments)}return hMe(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,b=r.viewBox,x=r.wrapperStyle,O=m??[];f&&O.length&&(O=mV(m.filter(function(T){return T.value!=null}),v,wMe));var E=O.length>0;return M.createElement(fMe,{allowEscapeViewBox:o,animationDuration:a,animationEasing:s,isAnimationActive:d,active:i,coordinate:u,hasPayload:E,offset:p,position:g,reverseDirection:w,useTranslate3d:y,viewBox:b,wrapperStyle:x},xMe(l,O4(O4({},this.props),{},{payload:O})))}}]),n}(F.PureComponent);iA(_a,"displayName","Tooltip");iA(_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 OMe=ra,SMe=function(){return OMe.Date.now()},EMe=SMe,TMe=/\s/;function CMe(e){for(var t=e.length;t--&&TMe.test(e.charAt(t)););return t}var kMe=CMe,jMe=kMe,PMe=/^\s+/;function AMe(e){return e&&e.slice(0,jMe(e)+1).replace(PMe,"")}var NMe=AMe,MMe=NMe,E4=dl,LMe=vd,T4=0/0,RMe=/^[-+]0x[0-9a-f]+$/i,DMe=/^0b[01]+$/i,IMe=/^0o[0-7]+$/i,FMe=parseInt;function UMe(e){if(typeof e=="number")return e;if(LMe(e))return T4;if(E4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=E4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=MMe(e);var n=DMe.test(e);return n||IMe.test(e)?FMe(e.slice(2),n?2:8):RMe.test(e)?T4:+e}var NV=UMe,$Me=dl,UO=EMe,C4=NV,BMe="Expected a function",zMe=Math.max,VMe=Math.min;function HMe(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(BMe);t=C4(t)||0,$Me(n)&&(f=!!n.leading,d="maxWait"in n,o=d?zMe(C4(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?VMe(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 b(T);s=setTimeout(y,g(T))}function b(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:b(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 WMe=HMe,YMe=WMe,GMe=dl,qMe="Expected a function";function KMe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(qMe);return GMe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),YMe(e,t,{leading:r,maxWait:t,trailing:i})}var ZMe=KMe;const MV=Ot(ZMe);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 Hg(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){XMe(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 XMe(e,t,n){return t=QMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QMe(e){var t=JMe(e,"string");return pm(t)==="symbol"?t:String(t)}function JMe(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)}function eLe(e,t){return iLe(e)||rLe(e,t)||nLe(e,t)||tLe()}function tLe(){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 nLe(e,t){if(e){if(typeof e=="string")return j4(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 j4(e,t)}}function j4(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 rLe(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 iLe(e){if(Array.isArray(e))return e}var oA=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,b=e.onResize,x=e.style,O=x===void 0?{}:x,E=F.useRef(null),T=F.useRef();T.current=b,F.useImperativeHandle(t,function(){return E});var k=F.useState({containerWidth:i.width,containerHeight:i.height}),A=eLe(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(ql(a)||ql(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=ql(a)?G:a,Z=ql(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,Hg({width:Q,height:Z},te?{style:Hg({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:Hg(Hg({},O),{},{width:a,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:E},z)}),Ou=function(e){return null};Ou.displayName="Cell";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 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 JT(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){oLe(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 oLe(e,t,n){return t=aLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aLe(e){var t=sLe(e,"string");return hm(t)==="symbol"?t:String(t)}function sLe(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 lc={widthCache:{},cacheCount:0},lLe=2e3,uLe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},A4="recharts_measurement_span";function cLe(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=cLe(t),r=JSON.stringify({text:e,copyStyle:n});if(lc.widthCache[r])return lc.widthCache[r];try{var i=document.getElementById(A4);i||(i=document.createElement("span"),i.setAttribute("id",A4),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=JT(JT({},uLe),n);Object.assign(i.style,o),i.textContent="".concat(e);var a=i.getBoundingClientRect(),s={width:a.width,height:a.height};return lc.widthCache[r]=s,++lc.cacheCount>lLe&&(lc.cacheCount=0,lc.widthCache={}),s}catch{return{width:0,height:0}}},fLe=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};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 Tb(e,t){return mLe(e)||hLe(e,t)||pLe(e,t)||dLe()}function dLe(){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 N4(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 N4(e,t)}}function N4(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 hLe(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 mLe(e){if(Array.isArray(e))return e}function vLe(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,yLe(r.key),r)}}function gLe(e,t,n){return t&&M4(e.prototype,t),n&&M4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yLe(e){var t=bLe(e,"string");return mm(t)==="symbol"?t:String(t)}function bLe(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)}var L4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,R4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_Le=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,wLe=/(-?\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},xLe=Object.keys(LV),Dc="NaN";function OLe(e,t){return e*LV[t]}var Wg=function(){function e(t,n){vLe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!_Le.test(n)&&(this.num=NaN,this.unit=""),xLe.includes(n)&&(this.num=OLe(t,n),this.unit="px")}return gLe(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=wLe.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(Dc))return Dc;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=L4.exec(t))!==null&&n!==void 0?n:[],i=Tb(r,4),o=i[1],a=i[2],s=i[3],l=Wg.parse(o??""),u=Wg.parse(s??""),f=a==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Dc;t=t.replace(L4,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=R4.exec(t))!==null&&d!==void 0?d:[],m=Tb(p,4),v=m[1],g=m[2],w=m[3],y=Wg.parse(v??""),b=Wg.parse(w??""),x=g==="+"?y.add(b):y.subtract(b);if(x.isNaN())return Dc;t=t.replace(R4,x.toString())}return t}var D4=/\(([^()]*)\)/;function SLe(e){for(var t=e;t.includes("(");){var n=D4.exec(t),r=Tb(n,2),i=r[1];t=t.replace(D4,RV(i))}return t}function ELe(e){var t=e.replace(/\s+/g,"");return t=SLe(t),t=RV(t),t}function TLe(e){try{return ELe(e)}catch{return Dc}}function $O(e){var t=TLe(e.slice(5,-1));return t===Dc?"":t}var CLe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],kLe=["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 I4(e,t){if(e==null)return{};var n=jLe(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 jLe(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 F4(e,t){return MLe(e)||NLe(e,t)||ALe(e,t)||PLe()}function PLe(){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 ALe(e,t){if(e){if(typeof e=="string")return U4(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 U4(e,t)}}function U4(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 MLe(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}},LLe=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,b=0,x;w<=y&&b<=f.length-1;){var O=Math.floor((w+y)/2),E=O-1,T=g(E),k=F4(T,2),A=k[0],D=k[1],R=g(O),I=F4(R,1),z=I[0];if(!A&&!z&&(w=O+1),A&&z&&(y=O-1),!A&&z){x=D;break}b++}return x||p},$4=function(e){var t=Ze(e)?[]:e.toString().split(DV);return[{words:t}]},RLe=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 $4(r);return LLe({breakAll:o,children:r,maxLines:a,style:i},s,l,t,n)}return $4(r)},B4="#808080",Su=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?B4:g,y=I4(e,CLe),b=F.useMemo(function(){return RLe({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=I4(y,kLe);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((b.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:I=$O("calc(".concat(b.length-1," * -").concat(a,")"));break}var z=[];if(f){var G=b[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")?B4:w}),b.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 Hs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function DLe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function aA(e){let t,n,r;e.length!==2?(t=Hs,n=(s,l)=>Hs(e(s),l),r=(s,l)=>e(s)-l):(t=e===Hs||e===DLe?e:ILe,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 ILe(){return 0}function FV(e){return e===null?NaN:+e}function*FLe(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 ULe=aA(Hs),$Le=ULe.right;aA(FV).center;const xv=$Le;class z4 extends Map{constructor(t,n=VLe){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(V4(this,t))}has(t){return super.has(V4(this,t))}set(t,n){return super.set(BLe(this,t),n)}delete(t){return super.delete(zLe(this,t))}}function V4({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function BLe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function zLe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function VLe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function HLe(e=Hs){if(e===Hs)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 WLe=Math.sqrt(50),YLe=Math.sqrt(10),GLe=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>=WLe?10:o>=YLe?5:o>=GLe?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 H4(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 W4(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:HLe(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 qLe(e,t,n){if(e=Float64Array.from(FLe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return W4(e);if(t>=1)return H4(e);var r,i=(r-1)*t,o=Math.floor(i),a=H4($V(e,o).subarray(0,o+1)),s=W4(e.subarray(o+1));return a+(s-a)*(i-o)}}function KLe(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 ZLe(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 ts(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 sA(){var e=new z4,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 z4;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 sA(t,n).unknown(r)},Ki.apply(i,arguments),i}function vm(){var e=sA().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=ZLe(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 vm(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(vm.apply(null,arguments).paddingInner(1))}function lA(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 Ov(){}var gm=.7,kb=1/gm,Zc="\\s*([+-]?\\d+)\\s*",ym="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",XLe=/^#([0-9a-f]{3,8})$/,QLe=new RegExp(`^rgb\\(${Zc},${Zc},${Zc}\\)$`),JLe=new RegExp(`^rgb\\(${qo},${qo},${qo}\\)$`),eRe=new RegExp(`^rgba\\(${Zc},${Zc},${Zc},${ym}\\)$`),tRe=new RegExp(`^rgba\\(${qo},${qo},${qo},${ym}\\)$`),nRe=new RegExp(`^hsl\\(${ym},${qo},${qo}\\)$`),rRe=new RegExp(`^hsla\\(${ym},${qo},${qo},${ym}\\)$`),Y4={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};lA(Ov,bm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:G4,formatHex:G4,formatHex8:iRe,formatHsl:oRe,formatRgb:q4,toString:q4});function G4(){return this.rgb().formatHex()}function iRe(){return this.rgb().formatHex8()}function oRe(){return VV(this).formatHsl()}function q4(){return this.rgb().formatRgb()}function bm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=XLe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?K4(t):n===3?new $r(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Yg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Yg(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=QLe.exec(e))?new $r(t[1],t[2],t[3],1):(t=JLe.exec(e))?new $r(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=eRe.exec(e))?Yg(t[1],t[2],t[3],t[4]):(t=tRe.exec(e))?Yg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nRe.exec(e))?Q4(t[1],t[2]/100,t[3]/100,1):(t=rRe.exec(e))?Q4(t[1],t[2]/100,t[3]/100,t[4]):Y4.hasOwnProperty(e)?K4(Y4[e]):e==="transparent"?new $r(NaN,NaN,NaN,0):null}function K4(e){return new $r(e>>16&255,e>>8&255,e&255,1)}function Yg(e,t,n,r){return r<=0&&(e=t=n=NaN),new $r(e,t,n,r)}function aRe(e){return e instanceof Ov||(e=bm(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?aRe(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}lA($r,oC,zV(Ov,{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?gm:Math.pow(gm,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $r(lu(this.r),lu(this.g),lu(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:Z4,formatHex:Z4,formatHex8:sRe,formatRgb:X4,toString:X4}));function Z4(){return`#${Kl(this.r)}${Kl(this.g)}${Kl(this.b)}`}function sRe(){return`#${Kl(this.r)}${Kl(this.g)}${Kl(this.b)}${Kl((isNaN(this.opacity)?1:this.opacity)*255)}`}function X4(){const e=jb(this.opacity);return`${e===1?"rgb(":"rgba("}${lu(this.r)}, ${lu(this.g)}, ${lu(this.b)}${e===1?")":`, ${e})`}`}function jb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kl(e){return e=lu(e),(e<16?"0":"")+e.toString(16)}function Q4(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 Ov||(e=bm(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 lRe(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}lA(co,lRe,zV(Ov,{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?gm:Math.pow(gm,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(J4(this.h),Gg(this.s),Gg(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("}${J4(this.h)}, ${Gg(this.s)*100}%, ${Gg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function J4(e){return e=(e||0)%360,e<0?e+360:e}function Gg(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 uA=e=>()=>e;function uRe(e,t){return function(n){return e+n*t}}function cRe(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 fRe(e){return(e=+e)==1?HV:function(t,n){return n-t?cRe(t,n,e):uA(isNaN(t)?n:t)}}function HV(e,t){var n=t-e;return n?uRe(e,n):uA(isNaN(e)?t:e)}const e6=function e(t){var n=fRe(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 dRe(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 pRe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function hRe(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 mRe(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 vRe(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 gRe(e){return function(){return e}}function yRe(e){return function(t){return e(t)+""}}function bRe(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]?yRe(l[0].x):gRe(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"?uA(t):(n==="number"?Pb:n==="string"?(r=bm(t))?(t=r,e6):bRe:t instanceof bm?e6:t instanceof Date?mRe:pRe(t)?dRe:Array.isArray(t)?hRe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vRe:Pb)(e,t)}function cA(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function _Re(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 wRe(e){return function(){return e}}function Ab(e){return+e}var t6=[0,1];function Ar(e){return e}function sC(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:wRe(isNaN(t)?NaN:.5)}function xRe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ORe(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 SRe(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=xv(e,s,1,r)-1;return o[l](i[l](s))}}function Sv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function hw(){var e=t6,t=t6,n=Td,r,i,o,a=Ar,s,l,u;function f(){var p=Math.min(e.length,t.length);return a!==Ar&&(a=xRe(e[0],e[p-1])),s=p>2?SRe:ORe,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=cA,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 fA(){return hw()(Ar,Ar)}function ERe(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 Uf(e){return e=Nb(Math.abs(e)),e?e[1]:NaN}function TRe(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 CRe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var kRe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _m(e){if(!(t=kRe.exec(e)))throw new Error("invalid format: "+e);var t;return new dA({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]})}_m.prototype=dA.prototype;function dA(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+""}dA.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 jRe(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 PRe(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 n6(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 r6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ERe,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)=>n6(e*100,t),r:n6,s:PRe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function i6(e){return e}var o6=Array.prototype.map,a6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ARe(e){var t=e.grouping===void 0||e.thousands===void 0?i6:TRe(o6.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?i6:CRe(o6.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=_m(d);var p=d.fill,m=d.align,v=d.sign,g=d.symbol,w=d.zero,y=d.width,b=d.comma,x=d.precision,O=d.trim,E=d.type;E==="n"?(b=!0,E="g"):r6[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=r6[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=jRe(I)),te&&+I==0&&v!=="+"&&(te=!1),z=(te?v==="("?v:s:v==="-"||v==="("?"":v)+z,G=(E==="s"?a6[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}}}b&&!w&&(I=t(I,1/0));var X=z.length+I.length+G.length,$=X<y?new Array(y-X+1).join(p):"";switch(b&&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=_m(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(Uf(p)/3)))*3,g=Math.pow(10,-v),w=a6[8+v/3];return function(y){return m(g*y)+w}}return{format:u,formatPrefix:f}}var qg,pA,YV;NRe({thousands:",",grouping:[3],currency:["$",""]});function NRe(e){return qg=ARe(e),pA=qg.format,YV=qg.formatPrefix,qg}function MRe(e){return Math.max(0,-Uf(Math.abs(e)))}function LRe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Uf(t)/3)))*3-Uf(Math.abs(e)))}function RRe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Uf(t)-Uf(e))+1}function GV(e,t,n,r){var i=rC(e,t,n),o;switch(r=_m(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=LRe(i,a))&&(r.precision=o),YV(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=RRe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=MRe(i))&&(r.precision=o-(r.type==="%")*2);break}}return pA(r)}function ml(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=fA();return e.copy=function(){return Sv(e,Mb())},Ki.apply(e,arguments),ml(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],ml(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 s6(e){return Math.log(e)}function l6(e){return Math.exp(e)}function DRe(e){return-Math.log(-e)}function IRe(e){return-Math.exp(-e)}function FRe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function URe(e){return e===10?FRe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function $Re(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 u6(e){return(t,n)=>-e(-t,n)}function hA(e){const t=e(s6,l6),n=t.domain;let r=10,i,o;function a(){return i=$Re(r),o=URe(r),n()[0]<0?(i=u6(i),o=u6(o),e(DRe,IRe)):e(s6,l6),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=_m(l)).precision==null&&(l.trim=!0),l=pA(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=hA(hw()).domain([1,10]);return e.copy=()=>Sv(e,ZV()).base(e.base()),Ki.apply(e,arguments),e}function c6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function f6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function mA(e){var t=1,n=e(c6(t),f6(t));return n.constant=function(r){return arguments.length?e(c6(t=+r),f6(t)):t},ml(n)}function XV(){var e=mA(hw());return e.copy=function(){return Sv(e,XV()).constant(e.constant())},Ki.apply(e,arguments)}function d6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function BRe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function zRe(e){return e<0?-e*e:e*e}function vA(e){var t=e(Ar,Ar),n=1;function r(){return n===1?e(Ar,Ar):n===.5?e(BRe,zRe):e(d6(n),d6(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ml(t)}function gA(){var e=vA(hw());return e.copy=function(){return Sv(e,gA()).exponent(e.exponent())},Ki.apply(e,arguments),e}function VRe(){return gA.apply(null,arguments).exponent(.5)}function p6(e){return Math.sign(e)*e*e}function HRe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function QV(){var e=fA(),t=[0,1],n=!1,r;function i(o){var a=HRe(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(p6(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(p6)),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),ml(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]=KLe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[xv(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(Hs),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[xv(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(ml(a),arguments)}function tH(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[xv(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,yA=Ba*7,h6=Ba*30,WO=Ba*365,Zl=Mn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*wa)},(e,t)=>(t-e)/wa,e=>e.getUTCSeconds());Zl.range;const bA=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());bA.range;const _A=Mn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ai)},(e,t)=>(t-e)/Ai,e=>e.getUTCMinutes());_A.range;const wA=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());wA.range;const xA=Mn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*xa)},(e,t)=>(t-e)/xa,e=>e.getUTCHours());xA.range;const Ev=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);Ev.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 Iu(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)/yA)}const vw=Iu(0),Rb=Iu(1),WRe=Iu(2),YRe=Iu(3),$f=Iu(4),GRe=Iu(5),qRe=Iu(6);vw.range;Rb.range;WRe.range;YRe.range;$f.range;GRe.range;qRe.range;function Fu(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)/yA)}const gw=Fu(0),Db=Fu(1),KRe=Fu(2),ZRe=Fu(3),Bf=Fu(4),XRe=Fu(5),QRe=Fu(6);gw.range;Db.range;KRe.range;ZRe.range;Bf.range;XRe.range;QRe.range;const OA=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());OA.range;const SA=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());SA.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=[[Zl,1,wa],[Zl,5,5*wa],[Zl,15,15*wa],[Zl,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,yA],[t,1,h6],[t,3,3*h6],[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=aA(([,,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[JRe,eDe]=rH(Va,SA,gw,nH,xA,_A),[tDe,nDe]=rH(za,OA,vw,Ev,wA,bA);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 rDe(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),b=mp(l),x={a:te,A:X,b:$,B:V,c:null,d:_6,e:_6,f:TDe,g:DDe,G:FDe,H:ODe,I:SDe,j:EDe,L:iH,m:CDe,M:kDe,p:W,q:re,Q:O6,s:S6,S:jDe,u:PDe,U:ADe,V:NDe,w:MDe,W:LDe,x:null,X:null,y:RDe,Y:IDe,Z:UDe,"%":x6},O={a:q,A:ee,b:ie,B:se,c:null,d:w6,e:w6,f:VDe,g:JDe,G:tIe,H:$De,I:BDe,j:zDe,L:aH,m:HDe,M:WDe,p:fe,q:j,Q:O6,s:S6,S:YDe,u:GDe,U:qDe,V:KDe,w:ZDe,W:XDe,x:null,X:null,y:QDe,Y:eIe,Z:nIe,"%":x6},E={a:R,A:I,b:z,B:G,c:H,d:y6,e:y6,f:bDe,g:g6,G:v6,H:b6,I:b6,j:mDe,L:yDe,m:hDe,M:vDe,p:D,q:pDe,Q:wDe,s:xDe,S:gDe,u:lDe,U:uDe,V:cDe,w:sDe,W:fDe,x:Q,X:Z,y:g6,Y:v6,Z:dDe,"%":_De};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=m6[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=Ev.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 m6?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=b.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 m6={"-":"",_:" ",0:"0"},Qn=/^\s*\d+/,iDe=/^%/,oDe=/[\\^$*+?|[\]().{}]/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 aDe(e){return e.replace(oDe,"\\$&")}function hp(e){return new RegExp("^(?:"+e.map(aDe).join("|")+")","i")}function mp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function sDe(e,t,n){var r=Qn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function lDe(e,t,n){var r=Qn.exec(t.slice(n,n+1));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.U=+r[0],n+r[0].length):-1}function cDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function fDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function v6(e,t,n){var r=Qn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function g6(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 dDe(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 pDe(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 hDe(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 y6(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function mDe(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 b6(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function vDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gDe(e,t,n){var r=Qn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function yDe(e,t,n){var r=Qn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function bDe(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 _De(e,t,n){var r=iDe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function wDe(e,t,n){var r=Qn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xDe(e,t,n){var r=Qn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function _6(e,t){return xt(e.getDate(),t,2)}function ODe(e,t){return xt(e.getHours(),t,2)}function SDe(e,t){return xt(e.getHours()%12||12,t,2)}function EDe(e,t){return xt(1+Ev.count(za(e),e),t,3)}function iH(e,t){return xt(e.getMilliseconds(),t,3)}function TDe(e,t){return iH(e,t)+"000"}function CDe(e,t){return xt(e.getMonth()+1,t,2)}function kDe(e,t){return xt(e.getMinutes(),t,2)}function jDe(e,t){return xt(e.getSeconds(),t,2)}function PDe(e){var t=e.getDay();return t===0?7:t}function ADe(e,t){return xt(vw.count(za(e)-1,e),t,2)}function oH(e){var t=e.getDay();return t>=4||t===0?$f(e):$f.ceil(e)}function NDe(e,t){return e=oH(e),xt($f.count(za(e),e)+(za(e).getDay()===4),t,2)}function MDe(e){return e.getDay()}function LDe(e,t){return xt(Rb.count(za(e)-1,e),t,2)}function RDe(e,t){return xt(e.getFullYear()%100,t,2)}function DDe(e,t){return e=oH(e),xt(e.getFullYear()%100,t,2)}function IDe(e,t){return xt(e.getFullYear()%1e4,t,4)}function FDe(e,t){var n=e.getDay();return e=n>=4||n===0?$f(e):$f.ceil(e),xt(e.getFullYear()%1e4,t,4)}function UDe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xt(t/60|0,"0",2)+xt(t%60,"0",2)}function w6(e,t){return xt(e.getUTCDate(),t,2)}function $De(e,t){return xt(e.getUTCHours(),t,2)}function BDe(e,t){return xt(e.getUTCHours()%12||12,t,2)}function zDe(e,t){return xt(1+mw.count(Va(e),e),t,3)}function aH(e,t){return xt(e.getUTCMilliseconds(),t,3)}function VDe(e,t){return aH(e,t)+"000"}function HDe(e,t){return xt(e.getUTCMonth()+1,t,2)}function WDe(e,t){return xt(e.getUTCMinutes(),t,2)}function YDe(e,t){return xt(e.getUTCSeconds(),t,2)}function GDe(e){var t=e.getUTCDay();return t===0?7:t}function qDe(e,t){return xt(gw.count(Va(e)-1,e),t,2)}function sH(e){var t=e.getUTCDay();return t>=4||t===0?Bf(e):Bf.ceil(e)}function KDe(e,t){return e=sH(e),xt(Bf.count(Va(e),e)+(Va(e).getUTCDay()===4),t,2)}function ZDe(e){return e.getUTCDay()}function XDe(e,t){return xt(Db.count(Va(e)-1,e),t,2)}function QDe(e,t){return xt(e.getUTCFullYear()%100,t,2)}function JDe(e,t){return e=sH(e),xt(e.getUTCFullYear()%100,t,2)}function eIe(e,t){return xt(e.getUTCFullYear()%1e4,t,4)}function tIe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Bf(e):Bf.ceil(e),xt(e.getUTCFullYear()%1e4,t,4)}function nIe(){return"+0000"}function x6(){return"%"}function O6(e){return+e}function S6(e){return Math.floor(+e/1e3)}var uc,lH,uH;rIe({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 rIe(e){return uc=rDe(e),lH=uc.format,uc.parse,uH=uc.utcFormat,uc.utcParse,uc}function iIe(e){return new Date(e)}function oIe(e){return e instanceof Date?+e:+new Date(+e)}function EA(e,t,n,r,i,o,a,s,l,u){var f=fA(),d=f.invert,p=f.domain,m=u(".%L"),v=u(":%S"),g=u("%I:%M"),w=u("%I %p"),y=u("%a %d"),b=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:b: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,oIe)):p().map(iIe)},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 Sv(f,EA(e,t,n,r,i,o,a,s,l,u))},f}function aIe(){return Ki.apply(EA(tDe,nDe,za,OA,vw,Ev,wA,bA,Zl,lH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function sIe(){return Ki.apply(EA(JRe,eDe,Va,SA,gw,mw,xA,_A,Zl,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(cA),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 vl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function cH(){var e=ml(yw()(Ar));return e.copy=function(){return vl(e,cH())},ts.apply(e,arguments)}function fH(){var e=hA(yw()).domain([1,10]);return e.copy=function(){return vl(e,fH()).base(e.base())},ts.apply(e,arguments)}function dH(){var e=mA(yw());return e.copy=function(){return vl(e,dH()).constant(e.constant())},ts.apply(e,arguments)}function TA(){var e=vA(yw());return e.copy=function(){return vl(e,TA()).exponent(e.exponent())},ts.apply(e,arguments)}function lIe(){return TA.apply(null,arguments).exponent(.5)}function pH(){var e=[],t=Ar;function n(r){if(r!=null&&!isNaN(r=+r))return t((xv(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(Hs),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)=>qLe(e,o/r))},n.copy=function(){return pH(t).domain(e)},ts.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,b,x;return arguments.length?([y,b,x]=w,u=_Re(g,[y,b,x]),m):[u(0),u(.5),u(1)]}}return m.range=v(Td),m.rangeRound=v(cA),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=ml(bw()(Ar));return e.copy=function(){return vl(e,hH())},ts.apply(e,arguments)}function mH(){var e=hA(bw()).domain([.1,1,10]);return e.copy=function(){return vl(e,mH()).base(e.base())},ts.apply(e,arguments)}function vH(){var e=mA(bw());return e.copy=function(){return vl(e,vH()).constant(e.constant())},ts.apply(e,arguments)}function CA(){var e=vA(bw());return e.copy=function(){return vl(e,CA()).exponent(e.exponent())},ts.apply(e,arguments)}function uIe(){return CA.apply(null,arguments).exponent(.5)}const E6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:vm,scaleDiverging:hH,scaleDivergingLog:mH,scaleDivergingPow:CA,scaleDivergingSqrt:uIe,scaleDivergingSymlog:vH,scaleIdentity:qV,scaleImplicit:iC,scaleLinear:Mb,scaleLog:ZV,scaleOrdinal:sA,scalePoint:ah,scalePow:gA,scaleQuantile:JV,scaleQuantize:eH,scaleRadial:QV,scaleSequential:cH,scaleSequentialLog:fH,scaleSequentialPow:TA,scaleSequentialQuantile:pH,scaleSequentialSqrt:lIe,scaleSequentialSymlog:dH,scaleSqrt:VRe,scaleSymlog:XV,scaleThreshold:tH,scaleTime:aIe,scaleUtc:sIe,tickFormat:GV},Symbol.toStringTag,{value:"Module"}));var cIe=vd;function fIe(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&&!cIe(a):n(a,s)))var s=a,l=o}return l}var _w=fIe;function dIe(e,t){return e>t}var gH=dIe,pIe=_w,hIe=gH,mIe=Sd;function vIe(e){return e&&e.length?pIe(e,mIe,hIe):void 0}var gIe=vIe;const Ps=Ot(gIe);function yIe(e,t){return e<t}var yH=yIe,bIe=_w,_Ie=yH,wIe=Sd;function xIe(e){return e&&e.length?bIe(e,wIe,_Ie):void 0}var OIe=xIe;const ww=Ot(OIe);var SIe=zP,EIe=ia,TIe=wV,CIe=Kr;function kIe(e,t){var n=CIe(e)?SIe:TIe;return n(e,EIe(t))}var jIe=kIe,PIe=bV,AIe=jIe;function NIe(e,t){return PIe(AIe(e,t),1)}var MIe=NIe;const LIe=Ot(MIe);var RIe=eA;function DIe(e,t){return RIe(e,t)}var IIe=DIe;const nl=Ot(IIe);var Cd=1e9,FIe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},jA,Zt=!0,Yi="[DecimalError] ",uu=Yi+"Invalid argument: ",kA=Yi+"Exponent out of range: ",kd=Math.floor,Fl=Math.pow,UIe=/^(\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(wm(n,o),wm(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 wm(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(uu+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=Eu(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=Eu(r,!0,e+1)),n};Be.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Eu(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=Eu(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),C6(i.d,t)),n=kd(n/2),n!==0;)s=s.times(s),C6(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(wm(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=Eu(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=Eu(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 Eu(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(uu+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+=ws(n)),o+=r;a=e[t],r=a+"",n=Bt-r.length,n&&(o+=ws(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,b,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?b=o=D.precision:a?b=o+(Sn(r)-Sn(i))+1:b=o,b<0)return new D(0);if(b=b/Bt+2|0,u=0,k==1)for(f=0,z=z[0],b++;(u<E||f)&&b--;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)&&b--)}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(kA+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(Fl(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 ws(e){for(var t="";e--;)t+="0";return t}function wm(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=wm(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 T6(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(kA+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=Fl(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/Fl(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]=Fl(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=Fl(10,Bt-r),d[f]=i>0?(u/Fl(10,a-i)%Fl(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(kA+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 Eu(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)+ws(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ws(-i-1)+o,n&&(r=n-a)>0&&(o+=ws(r))):i>=a?(o+=ws(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+ws(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=ws(r))),e.s<0?"-"+o:o}function C6(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(uu+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 T6(a,o.toString())}else if(typeof o!="string")throw Error(uu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,UIe.test(o))T6(a,o);else throw Error(uu+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=$Ie,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 $Ie(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(uu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(uu+n+": "+r);return this}var jA=OH(FIe);ei=new jA(1);const Pt=jA;function BIe(e){return WIe(e)||HIe(e)||VIe(e)||zIe()}function zIe(){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 VIe(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 HIe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function WIe(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 YIe=function(e){return e},SH={"@@functional/placeholder":!0},EH=function(e){return e===SH},k6=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)}},GIe=function e(t,n){return t===1?n:k6(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,k6(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,BIe(f).concat(l))}))})},xw=function(e){return GIe(e.length,e)},uC=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},qIe=xw(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),KIe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return YIe;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 ZIe(e){var t;return e===0?t=1:t=Math.floor(new Pt(e).abs().log(10).toNumber())+1,t}function XIe(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 QIe=xw(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),JIe=xw(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),e4e=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:XIe,getDigitCount:ZIe,interpolateNumber:QIe,uninterpolateNumber:JIe,uninterpolateTruncation:e4e};function fC(e){return r4e(e)||n4e(e)||CH(e)||t4e()}function t4e(){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 n4e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function r4e(e){if(Array.isArray(e))return dC(e)}function xm(e,t){return a4e(e)||o4e(e,t)||CH(e,t)||i4e()}function i4e(){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 o4e(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 a4e(e){if(Array.isArray(e))return e}function kH(e){var t=xm(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 s4e(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=KIe(qIe(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 l4e(e){var t=xm(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=xm(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 s4e(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 u4e(e,t){var n=xm(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=kH([r,i]),s=xm(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 c4e=TH(l4e),f4e=TH(u4e),d4e=["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 p4e(e,t){return g4e(e)||v4e(e,t)||m4e(e,t)||h4e()}function h4e(){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 m4e(e,t){if(e){if(typeof e=="string")return j6(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 j6(e,t)}}function j6(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 v4e(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 g4e(e){if(Array.isArray(e))return e}function y4e(e,t){if(e==null)return{};var n=b4e(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 b4e(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=y4e(e,d4e),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 b=[],x,O;if(Array.isArray(y)){var E=p4e(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);b.push({x1:I,y1:A,x2:I,y2:D}),b.push({x1:R,y1:k,x2:I,y2:k}),b.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);b.push({x1:H,y1:te,x2:Q,y2:te}),b.push({x1:G,y1:Z,x2:G,y2:te}),b.push({x1:H,y1:Z,x2:Q,y2:Z})}return M.createElement(nt,Fb({className:"recharts-errorBar",key:"bar-".concat(b.map(function(X){return"".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))},f),b.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 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 P6(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?P6(Object(n),!0).forEach(function(r){_4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _4e(e,t,n){return t=w4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w4e(e){var t=x4e(e,"string");return Om(t)==="symbol"?t:String(t)}function x4e(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)}var AH=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,i=e.legendContent,o=ba(t,lm);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:PA(l),value:d||f,payload:l.props}}),KO(KO(KO({},o.props),lm.getWithHeight(o,r)),{},{payload:a,item:o})};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 A6(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?A6(Object(n),!0).forEach(function(r){Xc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xc(e,t,n){return t=O4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O4e(e){var t=S4e(e,"string");return Sm(t)==="symbol"?t:String(t)}function S4e(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 N6(e){return k4e(e)||C4e(e)||T4e(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,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 C4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k4e(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 Ny(e,t,n,r){var i=LIe(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),Ps(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 j4e=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),b=Math.max(u,d);if(e>(y+f)/2&&e<=(b+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},PA=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},P4e=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(b){return Ea(b.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},A4e=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(N6(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 b=a===+a?Math.min(y,a):y;u=o.reduce(function(x,O,E){var T=[].concat(N6(x),[{item:O.item,position:{offset:w+(y+l)*E+(y-b)/2,size:b}}]);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},N4e=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),{},Xc({},p,e[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&je(e[m]))return ki(ki({},e),{},Xc({},m,e[m]+(d||0)))}return e},M4e=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 M4e(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),Ps(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},L4e=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)||Ny(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"},M6=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},ds=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,Kg=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:vm(),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:vm(),realScaleType:"band"}:{scale:Mb(),realScaleType:"linear"};if(_v(r)){var s="scale".concat(aw(r));return{scale:(E6[s]||ah)(),realScaleType:E6[s]?s:"point"}}return Qe(r)?{scale:r}:{scale:ah(),realScaleType:"point"}},L6=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])-L6,o=Math.max(r[0],r[1])+L6,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},R4e=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},D4e=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},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,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])}},F4e=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)}},U4e={sign:I4e,expand:WSe,none:Nf,silhouette:YSe,wiggle:GSe,positive:F4e},$4e=function(e,t,n){var r=t.map(function(a){return a.props.dataKey}),i=U4e[n],o=HSe().keys(r).value(function(a,s){return+Vt(a,s,0)}).order(NT).offset(i);return o(e)},B4e=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[pl("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[d]};return ki(ki({},f),{},Xc({},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),{},Xc({},g,{numericAxisId:n,cateAxisId:r,items:w.items,stackedData:$4e(e,w.items,i)}))},m)}return ki(ki({},f),{},Xc({},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=c4e(l,i,a);return e.domain([ww(u),Ps(u)]),{niceTicks:u}}if(i&&r==="number"){var f=e.domain(),d=f4e(f,i,a);return{niceTicks:d}}return null},zf=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)},R6=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},z4e=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]},V4e=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},H4e=function(e){return e.reduce(function(t,n){return[ww(n.concat([t[0]]).filter(je)),Ps(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=H4e(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})},D6=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,I6=/^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(D6.test(e[0])){var i=+D6.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(I6.test(e[1])){var o=+I6.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=nA(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},F6=function(e,t,n){return!e||!e.length||nl(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:PA(e),value:Vt(t,r),type:s,payload:t,chartType:l})};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)}function U6(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?U6(Object(n),!0).forEach(function(r){$H(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $H(e,t,n){return t=W4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W4e(e){var t=Y4e(e,"string");return Em(t)==="symbol"?t:String(t)}function Y4e(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 G4e(e,t){return X4e(e)||Z4e(e,t)||K4e(e,t)||q4e()}function q4e(){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 K4e(e,t){if(e){if(typeof e=="string")return $6(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 $6(e,t)}}function $6(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 Z4e(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 X4e(e){if(Array.isArray(e))return e}var $b=Math.PI/180,Q4e=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},J4e=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],b=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=G4e(E,2);s=T[0],l=T[1]}var k=RH(y,i),A=k.realScaleType,D=k.scale;D.domain(b).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))},{})},e6e=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))},t6e=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=e6e({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:Q4e(l),angleInRadian:l}},n6e=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}},r6e=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},B6=function(e,t){var n=e.x,r=e.y,i=t6e({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=n6e(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:r6e(p,t)}):null};function Tm(e){"@babel/helpers - typeof";return Tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tm(e)}var i6e=["offset"];function o6e(e){return u6e(e)||l6e(e)||s6e(e)||a6e()}function a6e(){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 s6e(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 l6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u6e(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 c6e(e,t){if(e==null)return{};var n=f6e(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 f6e(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 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 Cn(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){d6e(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 d6e(e,t,n){return t=p6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p6e(e){var t=h6e(e,"string");return Tm(t)==="symbol"?t:String(t)}function h6e(e,t){if(Tm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cm.apply(this,arguments)}var m6e=function(e){var t=e.value,n=e.formatter,r=Ze(e.children)?t:e.children;return Qe(n)?n(r):r},v6e=function(e,t){var n=Pr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},g6e=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=v6e(p,m),y=w>=0?1:-1,b,x;r==="insideStart"?(b=p+y*o,x=v):r==="insideEnd"?(b=m-y*o,x=!v):r==="end"&&(b=m+y*o,x=v),x=w<=0?x:!x;var O=It(l,u,g,b),E=It(l,u,g,b+(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)?pl("recharts-radial-line-"):e.id;return M.createElement("text",Cm({},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))},y6e=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,b=w.y;return{x:y,y:b,textAnchor:"middle",verticalAnchor:"middle"}},b6e=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 b={x:a+l/2,y:s-f*r,textAnchor:"middle",verticalAnchor:p};return Cn(Cn({},b),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)||ql(i.x))&&(je(i.y)||ql(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)},_6e=function(e){return"cx"in e&&je(e.cx)};function Vn(e){var t=e.offset,n=t===void 0?5:t,r=c6e(e,i6e),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=m6e(i);var v=_6e(o),g=Ve(i,!0);if(v&&(a==="insideStart"||a==="insideEnd"||a==="end"))return g6e(i,m,g);var w=v?y6e(i):b6e(i);return M.createElement(Su,Cm({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:{}},w6e=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,Cm({viewBox:t},e,{key:"label-implicit"})):null:null},x6e=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=w6e(e.label,t||i);return[a].concat(o6e(o))};Vn.parseViewBox=zH;Vn.renderCallByParent=x6e;function O6e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var S6e=O6e;const E6e=Ot(S6e);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)}var T6e=["valueAccessor"],C6e=["data","dataKey","clockWise","id","textBreakAll"];function k6e(e){return N6e(e)||A6e(e)||P6e(e)||j6e()}function j6e(){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 P6e(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 A6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N6e(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 V6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V6(Object(n),!0).forEach(function(r){M6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M6e(e,t,n){return t=L6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L6e(e){var t=R6e(e,"string");return km(t)==="symbol"?t:String(t)}function R6e(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)}function W6(e,t){if(e==null)return{};var n=D6e(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 D6e(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 I6e=function(e){return Array.isArray(e.value)?E6e(e.value):e.value};function yo(e){var t=e.valueAccessor,n=t===void 0?I6e:t,r=W6(e,T6e),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=W6(r,C6e);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:H6(H6({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}yo.displayName="LabelList";function F6e(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 U6e(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=F6e(e.label,t);return[o].concat(k6e(i))}yo.renderCallByParent=U6e;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 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 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){$6e(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 $6e(e,t,n){return t=B6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B6e(e){var t=z6e(e,"string");return jm(t)==="symbol"?t:String(t)}function z6e(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 V6e=function(e,t){var n=Pr(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Zg=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=V6e(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},H6e=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=Zg({cx:t,cy:n,radius:i,angle:l,sign:f,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,m=d.lineTangency,v=d.theta,g=Zg({cx:t,cy:n,radius:i,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:s}),w=g.circleTangency,y=g.lineTangency,b=g.theta,x=s?Math.abs(l-u):Math.abs(l-u)-v-b;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=Zg({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=Zg({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},W6e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},HH=function(e){var t=G6(G6({},W6e),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=H6e({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 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 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 q6(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 K6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q6(Object(n),!0).forEach(function(r){Y6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y6e(e,t,n){return t=G6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G6e(e){var t=q6e(e,"string");return Pm(t)==="symbol"?t:String(t)}function q6e(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 Z6={curveBasisClosed:MSe,curveBasisOpen:LSe,curveBasis:NSe,curveBumpX:ySe,curveBumpY:bSe,curveLinearClosed:RSe,curveLinear:lw,curveMonotoneX:DSe,curveMonotoneY:ISe,curveNatural:FSe,curveStep:USe,curveStepAfter:BSe,curveStepBefore:$Se},Xg=function(e){return e.x===+e.x&&e.y===+e.y},vp=function(e){return e.x},gp=function(e){return e.y},K6e=function(e,t){if(Qe(e))return e;var n="curve".concat(aw(e));return(n==="curveMonotone"||n==="curveBump")&&t?Z6["".concat(n).concat(t==="vertical"?"Y":"X")]:Z6[n]||lw},Z6e=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=K6e(n,a),f=l?i.filter(function(v){return Xg(v)}):i,d;if(Array.isArray(o)){var p=l?o.filter(function(v){return Xg(v)}):o,m=f.map(function(v,g){return K6(K6({},v),{},{base:p[g]})});return a==="vertical"?d=$g().y(gp).x1(vp).x0(function(v){return v.base.x}):d=$g().x(vp).y1(gp).y0(function(v){return v.base.y}),d.defined(Xg).curve(u),d(m)}return a==="vertical"&&je(o)?d=$g().y(gp).x1(vp).x0(o):je(o)?d=$g().x(vp).y1(gp).y0(o):d=Uz().x(vp).y(gp),d.defined(Xg).curve(u),d(f)},Ws=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?Z6e(e):r;return M.createElement("path",yC({},Ve(e),ub(e),{className:We("recharts-curve",t),d:o,ref:i}))};function Am(e){"@babel/helpers - typeof";return Am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Am(e)}function 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 X6e(e,t){return t5e(e)||e5e(e,t)||J6e(e,t)||Q6e()}function Q6e(){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 J6e(e,t){if(e){if(typeof e=="string")return X6(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 X6(e,t)}}function X6(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 e5e(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 t5e(e){if(Array.isArray(e))return e}function Q6(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 J6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q6(Object(n),!0).forEach(function(r){n5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n5e(e,t,n){return t=r5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r5e(e){var t=i5e(e,"string");return Am(t)==="symbol"?t:String(t)}function i5e(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)}var e5=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},o5e=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},a5e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},AA=function(e){var t=J6(J6({},a5e),e),n=F.useRef(),r=F.useState(-1),i=X6e(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 b=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:b,d:e5(T,k,O,E,d),ref:n})))}):M.createElement("path",zb({},Ve(t,!0),{className:b,d:e5(s,l,u,f,d)}))},s5e=["points","className","baseLinePoints","connectNulls"];function Ic(){return Ic=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},Ic.apply(this,arguments)}function l5e(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 t5(e){return p5e(e)||d5e(e)||f5e(e)||c5e()}function c5e(){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 f5e(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 d5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p5e(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 n5=function(e){return e&&e.x===+e.x&&e.y===+e.y},h5e=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];return e.forEach(function(n){n5(n)?t[t.length-1].push(n):t[t.length-1].length>0&&t.push([])}),n5(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=h5e(e);t&&(n=[n.reduce(function(i,o){return[].concat(t5(i),t5(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},m5e=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))},v5e=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,o=l5e(e,s5e);if(!t||!t.length)return null;var a=We("recharts-polygon",n);if(r&&r.length){var s=o.stroke&&o.stroke!=="none",l=m5e(t,r,i);return M.createElement("g",{className:a},M.createElement("path",Ic({},Ve(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:l})),s?M.createElement("path",Ic({},Ve(o,!0),{fill:"none",d:sh(t,i)})):null,s?M.createElement("path",Ic({},Ve(o,!0),{fill:"none",d:sh(r,i)})):null)}var u=sh(t,i);return M.createElement("path",Ic({},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 Tv=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 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)}var g5e=["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 r5(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 y5e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r5(Object(n),!0).forEach(function(r){b5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b5e(e,t,n){return t=_5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _5e(e){var t=w5e(e,"string");return Nm(t)==="symbol"?t:String(t)}function w5e(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)}function x5e(e,t){if(e==null)return{};var n=O5e(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 O5e(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 S5e=function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)},E5e=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=x5e(e,g5e),g=y5e({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:S5e(n,i,f,p,a,l)}))},T5e=_w,C5e=gH,k5e=ia;function j5e(e,t){return e&&e.length?T5e(e,k5e(t),C5e):void 0}var P5e=j5e;const A5e=Ot(P5e);var N5e=_w,M5e=ia,L5e=yH;function R5e(e,t){return e&&e.length?N5e(e,M5e(t),L5e):void 0}var D5e=R5e;const I5e=Ot(D5e);var F5e=["cx","cy","angle","ticks","axisLine"],U5e=["ticks","tick","angle","tickFormatter","stroke"];function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function 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 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 El(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){Sw(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 o5(e,t){if(e==null)return{};var n=$5e(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 $5e(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 B5e(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,WH(r.key),r)}}function z5e(e,t,n){return t&&a5(e.prototype,t),n&&a5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function V5e(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 H5e(e){var t=G5e();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 W5e(this,r)}}function W5e(e,t){if(t&&(Vf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y5e(e)}function Y5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G5e(){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=q5e(e,"string");return Vf(t)==="symbol"?t:String(t)}function q5e(e,t){if(Vf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ew=function(e){V5e(n,e);var t=H5e(n);function n(){return B5e(this,n),t.apply(this,arguments)}return z5e(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=A5e(s,function(f){return f.coordinate||0}),u=I5e(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=o5(r,F5e),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=El(El(El({},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=o5(i,U5e),d=this.getTickTextAnchor(),p=Ve(f),m=Ve(a),v=o.map(function(g,w){var y=r.getTickValueCoord(g),b=El(El(El(El({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)},tl(r.props,g,w)),n.renderTickItem(a,b,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(Su,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 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 $l(){return $l=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},$l.apply(this,arguments)}function s5(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 Tl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s5(Object(n),!0).forEach(function(r){Tw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l5(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 Z5e(e,t,n){return t&&l5(e.prototype,t),n&&l5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function X5e(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 Q5e(e){var t=t8e();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 J5e(this,r)}}function J5e(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 e8e(e)}function e8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t8e(){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=n8e(e,"string");return Hf(t)==="symbol"?t:String(t)}function n8e(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 r8e=Math.PI/180,u5=1e-5,Cw=function(e){X5e(n,e);var t=Q5e(n);function n(){return K5e(this,n),t.apply(this,arguments)}return Z5e(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*r8e),a;return o>u5?a=i==="outer"?"start":"end":o<-u5?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=Tl(Tl({},Ve(this.props)),{},{fill:"none"},Ve(s));if(l==="circle")return M.createElement(Tv,$l({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(v5e,$l({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=Tl(Tl({},f),{},{fill:"none"},Ve(s)),m=o.map(function(v,g){var w=r.getTickLineCoord(v),y=r.getTickTextAnchor(v),b=Tl(Tl(Tl({textAnchor:y},f),{},{stroke:"none",fill:u},d),{},{index:g,payload:v,x:w.x2,y:w.y2});return M.createElement(nt,$l({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(v.coordinate)},tl(r.props,v,g)),s&&M.createElement("line",$l({className:"recharts-polar-angle-axis-tick-line"},p,w)),a&&n.renderTickItem(a,b,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(Su,$l({},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 i8e=lV,o8e=i8e(Object.getPrototypeOf,Object),a8e=o8e,s8e=Ja,l8e=a8e,u8e=es,c8e="[object Object]",f8e=Function.prototype,d8e=Object.prototype,GH=f8e.toString,p8e=d8e.hasOwnProperty,h8e=GH.call(Object);function m8e(e){if(!u8e(e)||s8e(e)!=c8e)return!1;var t=l8e(e);if(t===null)return!0;var n=p8e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&GH.call(n)==h8e}var v8e=m8e;const g8e=Ot(v8e);var y8e=Ja,b8e=es,_8e="[object Boolean]";function w8e(e){return e===!0||e===!1||b8e(e)&&y8e(e)==_8e}var x8e=w8e;const O8e=Ot(x8e);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 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 S8e(e,t){return k8e(e)||C8e(e,t)||T8e(e,t)||E8e()}function E8e(){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 T8e(e,t){if(e){if(typeof e=="string")return c5(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 c5(e,t)}}function c5(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 C8e(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 k8e(e){if(Array.isArray(e))return e}function f5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function d5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f5(Object(n),!0).forEach(function(r){j8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j8e(e,t,n){return t=P8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P8e(e){var t=A8e(e,"string");return Mm(t)==="symbol"?t:String(t)}function A8e(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)}var p5=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},N8e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},M8e=function(e){var t=d5(d5({},N8e),e),n=F.useRef(),r=F.useState(-1),i=S8e(r,2),o=i[0],a=i[1];F.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&a(b)}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(b){var x=b.upperWidth,O=b.lowerWidth,E=b.height,T=b.x,k=b.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:p5(T,k,x,O,E),ref:n})))}):M.createElement("g",null,M.createElement("path",Wb({},Ve(t,!0),{className:y,d:p5(s,l,u,f,d)})))},L8e=["option","shapeType","propTransformer","activeClassName","isActive"];function Lm(e){"@babel/helpers - typeof";return Lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lm(e)}function R8e(e,t){if(e==null)return{};var n=D8e(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 D8e(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 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 Yb(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){I8e(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 I8e(e,t,n){return t=F8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F8e(e){var t=U8e(e,"string");return Lm(t)==="symbol"?t:String(t)}function U8e(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 $8e(e,t){return Yb(Yb({},t),e)}function B8e(e,t){return e==="symbols"}function m5(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return M.createElement(AA,n);case"trapezoid":return M.createElement(M8e,n);case"sector":return M.createElement(HH,n);case"symbols":if(B8e(t))return M.createElement(cw,n);break;default:return null}}function z8e(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?$8e:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=R8e(e,L8e),u;if(F.isValidElement(t))u=F.cloneElement(t,Yb(Yb({},l),z8e(t)));else if(Qe(t))u=t(l);else if(g8e(t)&&!O8e(t)){var f=i(t,l);u=M.createElement(m5,{shapeType:n,elementProps:f})}else{var d=l;u=M.createElement(m5,{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 Rm(e,t){return t!=null&&"points"in e.props}function V8e(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 H8e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function W8e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Y8e(e,t){var n;return kw(e,t)?n=V8e:jw(e,t)?n=H8e:Rm(e,t)&&(n=W8e),n}function G8e(e,t){var n;return kw(e,t)?n="trapezoids":jw(e,t)?n="sectors":Rm(e,t)&&(n="points"),n}function q8e(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 Rm(e,t)?t.payload:{}}function K8e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=G8e(n,t),o=q8e(n,t),a=r.filter(function(l,u){var f=nl(o,l),d=n.props[i].filter(function(v){var g=Y8e(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 My;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 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 v5(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?v5(Object(n),!0).forEach(function(r){ji(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z8e(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,qH(r.key),r)}}function X8e(e,t,n){return t&&g5(e.prototype,t),n&&g5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q8e(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 J8e(e){var t=tFe();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 eFe(this,r)}}function eFe(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 mc(e)}function mc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tFe(){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=nFe(e,"string");return Wf(t)==="symbol"?t:String(t)}function nFe(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 ns=function(e){Q8e(n,e);var t=J8e(n);function n(r){var i;return Z8e(this,n),i=t.call(this,r),ji(mc(i),"pieRef",null),ji(mc(i),"sectorRefs",[]),ji(mc(i),"id",pl("recharts-pie-")),ji(mc(i),"handleAnimationEnd",function(){var o=i.props.onAnimationEnd;i.setState({isAnimationFinished:!0}),Qe(o)&&o()}),ji(mc(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 X8e(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,b=It(g.cx,g.cy,g.outerRadius+m,y),x=Gt(Gt(Gt(Gt({},f),g),{},{stroke:"none"},d),{},{index:w,textAnchor:n.getTextAnchor(b.x,g.cx)},b),O=Gt(Gt(Gt(Gt({},f),g),{},{fill:"none",stroke:g.fill},p),{},{index:w,points:[It(g.cx,g.cy,g.outerRadius,y),b],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,Fc({ref:function(g){g&&!i.sectorRefs.includes(g)&&i.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},tl(i.props,u,f),{key:"sector-".concat(f)}),M.createElement(Gb,Fc({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],b=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:b+T,endAngle:b+k(g)+T});w.push(A),b=A.endAngle}else{var D=x.endAngle,R=x.startAngle,I=en(0,D-R),z=I(g),G=Gt(Gt({},x),{},{startAngle:b+T,endAngle:b+z+T});w.push(G),b=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||!nl(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(Ws,Fc({},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(Su,Fc({},i,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),a)}}]),n}(F.PureComponent);My=ns;ji(ns,"displayName","Pie");ji(ns,"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(ns,"parseDeltaAngle",function(e,t){var n=Pr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});ji(ns,"getRealPieData",function(e){var t=e.props,n=t.data,r=t.children,i=Ve(e.props),o=Mr(r,Ou);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(ns,"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(ns,"getComposedData",function(e){var t=e.item,n=e.offset,r=My.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=My.parseCoordinateOfPie(t,n),g=My.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 b=r.filter(function(A){return Vt(A,y,0)!==0}).length,x=(w>=360?b:b-1)*l,O=w-b*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 rFe=Math.ceil,iFe=Math.max;function oFe(e,t,n,r){for(var i=-1,o=iFe(rFe((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var aFe=oFe,sFe=NV,y5=1/0,lFe=17976931348623157e292;function uFe(e){if(!e)return e===0?e:0;if(e=sFe(e),e===y5||e===-y5){var t=e<0?-1:1;return t*lFe}return e===e?e:0}var KH=uFe,cFe=aFe,fFe=pw,XO=KH;function dFe(e){return function(t,n,r){return r&&typeof r!="number"&&fFe(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),cFe(t,n,r,e)}}var pFe=dFe,hFe=pFe,mFe=hFe(),vFe=mFe;const Kb=Ot(vFe);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 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 _5(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){ZH(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 ZH(e,t,n){return t=gFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gFe(e){var t=yFe(e,"string");return Dm(t)==="symbol"?t:String(t)}function yFe(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)}var bFe=["Webkit","Moz","O","ms"],_Fe=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(i){return i.toUpperCase()}),r=bFe.reduce(function(i,o){return _5(_5({},i),{},ZH({},o+n,t))},{});return r[e]=t,r};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 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 w5(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?w5(Object(n),!0).forEach(function(r){Qr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x5(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 xFe(e,t,n){return t&&x5(e.prototype,t),n&&x5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OFe(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 SFe(e){var t=TFe();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 EFe(this,r)}}function EFe(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 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 TFe(){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=CFe(e,"string");return Yf(t)==="symbol"?t:String(t)}function CFe(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 kFe=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}},O5=function(e){return e.changedTouches&&!!e.changedTouches.length},Im=function(e){OFe(n,e);var t=SFe(n);function n(r){var i;return wFe(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=O5(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 xFe(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=O5(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,b={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)),b[s]=f+x;var O=this.getIndex(b),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(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),o.handleTravellerMoveKeyboard(b.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(Su,Zb({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-m,y:a+s/2},v),this.getTextOfTick(i)),M.createElement(Su,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,b=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=_Fe("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||b||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?kFe({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(Im,"displayName","Brush");Qr(Im,"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 jFe=tA;function PFe(e,t){var n;return jFe(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var AFe=PFe,NFe=eV,MFe=ia,LFe=AFe,RFe=Kr,DFe=pw;function IFe(e,t,n){var r=RFe(e)?NFe:LFe;return n&&DFe(e,t,n)&&(t=void 0),r(e,MFe(t))}var FFe=IFe;const UFe=Ot(FFe);var Ko=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},S5=xV;function $Fe(e,t,n){t=="__proto__"&&S5?S5(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var BFe=$Fe,zFe=BFe,VFe=_V,HFe=ia;function WFe(e,t){var n={};return t=HFe(t),VFe(e,function(r,i,o){zFe(n,i,t(r,i,o))}),n}var YFe=WFe;const GFe=Ot(YFe);function qFe(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 KFe=qFe,ZFe=tA;function XFe(e,t){var n=!0;return ZFe(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var QFe=XFe,JFe=KFe,eUe=QFe,tUe=ia,nUe=Kr,rUe=pw;function iUe(e,t,n){var r=nUe(e)?JFe:eUe;return n&&rUe(e,t,n)&&(t=void 0),r(e,tUe(t))}var oUe=iUe;const QH=Ot(oUe);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)}var aUe=["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 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 yp(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){sUe(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 sUe(e,t,n){return t=lUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lUe(e){var t=uUe(e,"string");return Fm(t)==="symbol"?t:String(t)}function uUe(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)}function cUe(e,t){if(e==null)return{};var n=fUe(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 fUe(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 dUe(e,t){var n=e.x,r=e.y,i=cUe(e,aUe),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 T5(e){return M.createElement(Gb,TC({shapeType:"rectangle",propTransformer:dUe,activeClassName:"recharts-active-bar"},e))}var pUe=["value","background"];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 hUe(e,t){if(e==null)return{};var n=mUe(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 mUe(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 C5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C5(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vUe(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,JH(r.key),r)}}function gUe(e,t,n){return t&&k5(e.prototype,t),n&&k5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yUe(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 bUe(e){var t=wUe();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 _Ue(this,r)}}function _Ue(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 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 wUe(){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 As(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=xUe(e,"string");return Gf(t)==="symbol"?t:String(t)}function xUe(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 Tu=function(e){yUe(n,e);var t=bUe(n);function n(){var r;vUe(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(Pp(r),"state",{isAnimationFinished:!1}),As(Pp(r),"id",pl("recharts-bar-")),As(Pp(r),"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),s&&s()}),As(Pp(r),"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),s&&s()}),r}return gUe(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"},tl(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(T5,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 b=p&&p[y];if(b){var x=en(b.x,w.x),O=en(b.y,w.y),E=en(b.width,w.width),T=en(b.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||!nl(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=hUe(u,pUe);if(!d)return null;var m=Un(Un(Un(Un(Un({},p),{},{fill:"#eee"},d),l),tl(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(T5,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),b=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,O=b||x,E=Ze(g)?this.id:g;return M.createElement(nt,{className:y},b||x?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(E)},M.createElement("rect",{x:b?u:u-d/2,y:x?f:f-p/2,width:b?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);As(Tu,"displayName","Bar");As(Tu,"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"});As(Tu,"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=R4e(r,n);if(!m)return null;var v=t.layout,g=n.props,w=g.dataKey,y=g.children,b=g.minPointSize,x=v==="horizontal"?a:o,O=u?x.scale.domain():null,E=z4e({numericAxis:x}),T=Mr(y,Ou),k=d.map(function(A,D){var R,I,z,G,H,Q;if(u?R=D4e(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=R6({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(b)>0&&Math.abs(H)<Math.abs(b)){var W=Pr(H||b)*(Math.abs(b)-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=R6({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(b)>0&&Math.abs(G)<Math.abs(b)){var ie=Pr(G||b)*(Math.abs(b)-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 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 OUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j5(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 SUe(e,t,n){return t&&j5(e.prototype,t),n&&j5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P5(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?P5(Object(n),!0).forEach(function(r){Pw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P5(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=EUe(e,"string");return Um(t)==="symbol"?t:String(t)}function EUe(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 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,Tu);return u.reduce(function(p,m){var v=t[m],g=v.orientation,w=v.domain,y=v.padding,b=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+(b.left||0)+(T||0),n.left+n.width-(b.right||0)-(T||0)]:r==="yAxis"?k=s==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(T||0),n.top+n.height-(b.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)}},TUe=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){OUe(this,e),this.scale=t}return SUe(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 NA=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 GFe(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 CUe(e){return(e%180+180)%180}var kUe=function(e){var t=e.width,n=e.height,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=CUe(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 $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 A5(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 N5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A5(Object(n),!0).forEach(function(r){jUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jUe(e,t,n){return t=PUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PUe(e){var t=AUe(e,"string");return $m(t)==="symbol"?t:String(t)}function AUe(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)}function NUe(e,t){return DUe(e)||RUe(e,t)||LUe(e,t)||MUe()}function MUe(){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 LUe(e,t){if(e){if(typeof e=="string")return M5(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 M5(e,t)}}function M5(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 RUe(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 DUe(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 IUe=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},FUe=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 b=[{x:y,y:s+u},{x:y,y:s}];return w==="top"?b.reverse():b}if(r){var x=i.segment,O=x.map(function(E){return e.apply(E,{position:f})});return Ko(i,"discard")&&UFe(O,function(E){return!e.isInRange(E)})?null:O}return null};function MA(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=NA({x:i.scale,y:o.scale}),d=Pn(t),p=Pn(n),m=r&&r.length===2,v=FUe(f,d,p,m,e);if(!v)return null;var g=NUe(v,2),w=g[0],y=w.x,b=w.y,x=g[1],O=x.x,E=x.y,T=Ko(e,"hidden")?"url(#".concat(u,")"):void 0,k=N5(N5({clipPath:T},Ve(e,!0)),{},{x1:y,y1:b,x2:O,y2:E});return M.createElement(nt,{className:We("recharts-reference-line",s)},IUe(a,k),Vn.renderCallByParent(e,TUe({x1:y,y1:b,x2:O,y2:E})))}MA.displayName="ReferenceLine";MA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};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 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 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){UUe(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 UUe(e,t,n){return t=$Ue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Ue(e){var t=BUe(e,"string");return Bm(t)==="symbol"?t:String(t)}function BUe(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 zUe=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=NA({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 Cv(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=zUe(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=R5(R5({clipPath:m},Ve(e,!0)),{},{cx:u,cy:f});return M.createElement(nt,{className:We("recharts-reference-dot",p)},Cv.renderDot(d,v),Vn.renderCallByParent(e,{x:u-r,y:f-r,width:2*r,height:2*r}))}Cv.displayName="ReferenceDot";Cv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};Cv.renderDot=function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Qe(e)?n=e(t):n=M.createElement(Tv,jC({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};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 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 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 I5(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){VUe(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 VUe(e,t,n){return t=HUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HUe(e){var t=WUe(e,"string");return zm(t)==="symbol"?t:String(t)}function WUe(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)}var YUe=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=NA({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 kv(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=YUe(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)},kv.renderRect(p,I5(I5({clipPath:v},Ve(e,!0)),m)),Vn.renderCallByParent(e,m))}kv.displayName="ReferenceArea";kv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};kv.renderRect=function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Qe(e)?n=e(t):n=M.createElement(AA,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 GUe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return kUe(r,n)}function qUe(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 KUe(e,t){return iW(e,t+1)}function ZUe(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,b=l===0||e_(e,y,w,f,s);b||(l=0,f=a,u+=1),b&&(f=y+e*(w()/2+i),l+=u)},p;u<=o.length;)if(p=d(),p)return p.v;return[]}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 F5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F5(Object(n),!0).forEach(function(r){XUe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XUe(e,t,n){return t=QUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QUe(e){var t=JUe(e,"string");return Vm(t)==="symbol"?t:String(t)}function JUe(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)}function e$e(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 t$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 b=a[y],x,O=function(){return x===void 0&&(x=n(b,y)),x};if(y===0){var E=e*(b.coordinate-e*O()/2-l);a[y]=b=mr(mr({},b),{},{tickCoord:E<0?b.coordinate-E*e:b.coordinate})}else a[y]=b=mr(mr({},b),{},{tickCoord:b.coordinate});var T=e_(e,b.tickCoord,O,l,u);T&&(l=b.tickCoord+e*(O()/2+i),a[y]=mr(mr({},b),{},{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 KUe(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(b,x){var O=Qe(u)?u(b.value,x):b.value;return m==="width"?GUe(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=qUe(o,w,m);return l==="equidistantPreserveStart"?ZUe(w,y,g,i,a):(l==="preserveStart"||l==="preserveStartEnd"?p=t$e(w,y,g,i,a,l==="preserveStartEnd"):p=e$e(w,y,g,i,a),p.filter(function(b){return b.isShow}))}var n$e=["viewBox"],r$e=["viewBox"],i$e=["ticks"];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 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 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 Sr(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){LA(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 JO(e,t){if(e==null)return{};var n=o$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 o$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 a$e(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,oW(r.key),r)}}function s$e(e,t,n){return t&&$5(e.prototype,t),n&&$5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l$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 u$e(e){var t=d$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 c$e(this,r)}}function c$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 f$e(e)}function f$e(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 t_(e){return t_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t_(e)}function LA(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=p$e(e,"string");return qf(t)==="symbol"?t:String(t)}function p$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 uh=function(e){l$e(n,e);var t=u$e(n);function n(r){var i;return a$e(this,n),i=t.call(this,r),i.state={fontSize:"",letterSpacing:""},i}return s$e(n,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=JO(r,n$e),s=this.props,l=s.viewBox,u=JO(s,r$e);return!Kc(o,l)||!Kc(a,u)||!Kc(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,b,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,b=g-x*p,y=E;break;case"left":g=w=r.coordinate,v=o+ +!d*s,m=v-x*O,y=m-x*p,b=E;break;case"right":g=w=r.coordinate,v=o+ +d*s,m=v+x*O,y=m+x*p,b=E;break;default:m=v=r.coordinate,w=a+ +d*l,g=w+x*O,b=g+x*p,y=E;break}return{line:{x1:m,y1:g,x2:v,y2:w},tick:{x:y,y:b}}}},{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",Uc({},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),b=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,Uc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},tl(a.props,O,E)),l&&M.createElement("line",Uc({},b,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,i$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(Su,Uc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}]),n}(F.Component);LA(uh,"displayName","CartesianAxis");LA(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 h$e=["x1","y1","x2","y2","key"],m$e=["offset"];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 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 B5(e,t){if(e==null)return{};var n=v$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 v$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 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 us(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){RA(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 g$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,aW(r.key),r)}}function y$e(e,t,n){return t&&V5(e.prototype,t),n&&V5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b$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 _$e(e){var t=O$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 w$e(this,r)}}function w$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 x$e(e)}function x$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O$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 RA(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=S$e(e,"string");return Kf(t)==="symbol"?t:String(t)}function S$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 Aw=function(e){b$e(n,e);var t=_$e(n);function n(){return g$e(this,n),t.apply(this,arguments)}return y$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=us(us({},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=us(us({},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,b=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=b&&b.length;E=f({yAxis:m?us(us({},m),{},{ticks:k?b: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?us(us({},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=B5(i,h$e),p=Ve(d);p.offset;var m=B5(p,m$e);o=M.createElement("line",MC({},m,{x1:a,y1:s,x2:l,y2:u,fill:"none",key:f}))}return o}}]),n}(F.PureComponent);RA(Aw,"displayName","CartesianGrid");RA(Aw,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var E$e=["type","layout","connectNulls","ref"];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 T$e(e,t){if(e==null)return{};var n=C$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 C$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 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 Xr(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){oo(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 cc(e){return A$e(e)||P$e(e)||j$e(e)||k$e()}function k$e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j$e(e,t){if(e){if(typeof e=="string")return 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 P$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A$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 N$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,sW(r.key),r)}}function M$e(e,t,n){return t&&W5(e.prototype,t),n&&W5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L$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 R$e(e){var t=I$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 D$e(this,r)}}function D$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 ps(e)}function ps(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I$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=F$e(e,"string");return Zf(t)==="symbol"?t:String(t)}function F$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 Pd=function(e){L$e(n,e);var t=R$e(n);function n(){var r;N$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(ps(r),"state",{isAnimationFinished:!0,totalLength:0}),oo(ps(r),"generateSimpleStrokeDasharray",function(s,l){return"".concat(l,"px ").concat(s-l,"px")}),oo(ps(r),"getStrokeDasharray",function(s,l,u){var f=u.reduce(function(b,x){return b+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(cc(u.slice(0,g)),[p-w]);break}var y=v.length%2===0?[0,m]:[m];return[].concat(cc(n.repeat(u,d)),cc(v),y).map(function(b){return"".concat(b,"px")}).join(", ")}),oo(ps(r),"id",pl("recharts-line-")),oo(ps(r),"pathRef",function(s){r.mainCurve=s}),oo(ps(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),oo(ps(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return M$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=T$e(s,E$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(Ws,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,b=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(b){var T=b.length/s.length,k=s.map(function(z,G){var H=Math.floor(G*T);if(b[H]){var Q=b[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||!nl(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,b=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,!b&&this.renderCurve(T,k),this.renderErrorBar(T,k),(b||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(cc(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(cc(a),cc(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(Tv,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:zf({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:zf({axis:r,ticks:o,bandSize:s,entry:p,index:m}),value:v,payload:p}});return Xr({points:d,layout:f},u)});var U$e=["layout","type","stroke","connectNulls","isRange","ref"],lW;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,t){if(e==null)return{};var n=B$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 B$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 Xl(){return Xl=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},Xl.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 hs(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){$o(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 z$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,uW(r.key),r)}}function V$e(e,t,n){return t&&G5(e.prototype,t),n&&G5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function H$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 W$e(e){var t=G$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 Y$e(this,r)}}function Y$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 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 G$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=q$e(e,"string");return Xf(t)==="symbol"?t:String(t)}function q$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 Uu=function(e){H$e(n,e);var t=W$e(n);function n(){var r;z$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",pl("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 V$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 b=hs(hs(hs({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,b)}),g={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return M.createElement(nt,Xl({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=Ps(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(Ps(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=Ps(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(Ps(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=$$e(s,U$e);return M.createElement(nt,{clipPath:o?"url(#clipPath-".concat(a,")"):null},M.createElement(Ws,Xl({},Ve(m,!0),{points:r,connectNulls:d,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&M.createElement(Ws,Xl({},Ve(this.props),{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:r})),f!=="none"&&p&&M.createElement(Ws,Xl({},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 b=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 hs(hs({},A),{},{x:z(b),y:G(b)})}return A}),E;if(je(l)&&typeof l=="number"){var T=en(w,l);E=T(b)}else if(Ze(l)||wd(l)){var k=en(w,0);E=k(b)}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 hs(hs({},A),{},{x:z(b),y:G(b)})}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(b))),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||!nl(f,a)||!nl(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,b=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,b?null:this.renderArea(T,k),(a||b)&&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=Uu;$o(Uu,"displayName","Area");$o(Uu,"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(Uu,"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(Uu,"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,b=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:zf({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:zf({axis:i,ticks:a,bandSize:s,entry:O,index:E}),value:T,payload:O}}),x;return v||y?x=b.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),hs({points:b,baseLine:x,layout:m,isRange:y},p)});$o(Uu,"renderDotItem",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Qe(e)?n=e(t):n=M.createElement(Tv,Xl({},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 K$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 Z$e(e,t){if(e==null)return{};var n=X$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 X$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 Q$e(e){var t=e.option,n=e.isActive,r=Z$e(e,K$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 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 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 q5(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?q5(Object(n),!0).forEach(function(r){Ns(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J$e(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,cW(r.key),r)}}function e7e(e,t,n){return t&&K5(e.prototype,t),n&&K5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function t7e(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 n7e(e){var t=i7e();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 r7e(this,r)}}function r7e(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 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 i7e(){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 Ns(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=o7e(e,"string");return Qf(t)==="symbol"?t:String(t)}function o7e(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 Mw=function(e){t7e(n,e);var t=n7e(n);function n(){var r;J$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)),Ns(Np(r),"state",{isAnimationFinished:!1}),Ns(Np(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Ns(Np(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Ns(Np(r),"id",pl("recharts-scatter-")),r}return e7e(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"},tl(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(Q$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 b=en(y.cx,g.cx),x=en(y.cy,g.cy),O=en(y.size,g.size);return Si(Si({},g),{},{cx:b(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||!nl(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=s1e(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 b=Si(Si(Si({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:f});return M.isValidElement(o)?d=M.cloneElement(o,b):Qe(o)?d=o(b):d=M.createElement(Ws,dh({},b,{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),b=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,O=b||x,E=Ze(v)?this.id:v;return M.createElement(nt,{className:y,clipPath:O?"url(#clipPath-".concat(E,")"):null},b||x?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(E)},M.createElement("rect",{x:b?f:f-p/2,y:x?d:d-m/2,width:b?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);Ns(Mw,"displayName","Scatter");Ns(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"});Ns(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,Ou),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,b=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=zf({axis:t,ticks:a,bandSize:w,entry:x,index:O,dataKey:d}),R=zf({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:b},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 a7e=ia,s7e=wv,l7e=fw;function u7e(e){return function(t,n,r){var i=Object(t);if(!s7e(t)){var o=a7e(n);t=l7e(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 c7e=u7e,f7e=KH;function d7e(e){var t=f7e(e),n=t%1;return t===t?n?t-n:t:0}var p7e=d7e,h7e=hV,m7e=ia,v7e=p7e,g7e=Math.max;function y7e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:v7e(n);return i<0&&(i=g7e(r+i,0)),h7e(e,m7e(t),i)}var b7e=y7e,_7e=c7e,w7e=b7e,x7e=_7e(w7e),O7e=x7e;const S7e=Ot(O7e);var E7e="Invariant failed";function T7e(e,t){if(!e)throw new Error(E7e)}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 Z5(e){return P7e(e)||j7e(e)||k7e(e)||C7e()}function C7e(){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 k7e(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 j7e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P7e(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,MA),a=Mr(e,Cv),s=[].concat(Z5(o),Z5(a)),l=Mr(e,kv),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,b;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(b=1,y=new Array(w-1);b<w;b++)y[b-1]=arguments[b];g.fn.apply(g.context,y)}else{var x=g.length,O;for(b=0;b<x;b++)switch(g[b].once&&this.removeListener(l,g[b].fn,void 0,!0),w){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,u);break;case 3:g[b].fn.call(g[b].context,u,f);break;case 4:g[b].fn.call(g[b].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[b].fn.apply(g[b].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 A7e=dW.exports;const N7e=Ot(A7e);var e1=new N7e,t1="recharts.syncMouseEvents";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 M7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X5(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 L7e(e,t,n){return t&&X5(e.prototype,t),n&&X5(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=R7e(e,"string");return Hm(t)==="symbol"?t:String(t)}function R7e(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 D7e=function(){function e(){M7e(this,e),n1(this,"activeIndex",0),n1(this,"coordinateList",[]),n1(this,"layout","horizontal")}return L7e(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 I7e(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 F7e(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 U7e(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 $7e=["item"],B7e=["children","className","width","height","style","compact","title","desc"];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 Q5(e,t){return H7e(e)||V7e(e,t)||hW(e,t)||z7e()}function z7e(){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 V7e(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 H7e(e){if(Array.isArray(e))return 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 J5(e,t){if(e==null)return{};var n=W7e(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 W7e(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 Y7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mW(r.key),r)}}function G7e(e,t,n){return t&&e8(e.prototype,t),n&&e8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q7e(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 K7e(e){var t=X7e();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 Z7e(this,r)}}function Z7e(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 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 X7e(){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 ed(e){return eBe(e)||J7e(e)||hW(e)||Q7e()}function Q7e(){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 J7e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eBe(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 t8(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?t8(Object(n),!0).forEach(function(r){Ge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t8(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=tBe(e,"string");return Jf(t)==="symbol"?t:String(t)}function tBe(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 nBe={xAxis:["bottom","top"],yAxis:["left","right"]},rBe={width:"100%",height:"100%"},vW={x:0,y:0},iBe=function(e,t){return t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius},oBe=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(ed(a),ed(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(ed(s),[UH(l,p)]):s},[])},n8=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=iBe(i,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,u=j4e(o,a,l,s);if(u>=0&&l){var f=l[u]&&l[u].value,d=yW(e,t,u,f),p=oBe(n,a,u,i);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},aBe=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,b=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;I7e(v.props.domain,x,y)&&(I=hC(v.props.domain,null,x),p&&(y==="number"||E!=="auto")&&(G=Ny(D,b,"category")));var H=gW(y);if(!I||I.length===0){var Q,Z=(Q=v.props.domain)!==null&&Q!==void 0?Q:H;if(b){if(I=Ny(D,b,y),y==="category"&&p){var te=a1e(I);O&&te?(z=I,I=Kb(0,R)):O||(I=F6(Z,I,v).reduce(function(W,re){return W.indexOf(re)>=0?W:[].concat(ed(W),[re])},[]))}else if(y==="category")O?I=I.filter(function(W){return W!==""&&!Ze(W)}):I=F6(Z,I,v).reduce(function(W,re){return W.indexOf(re)>=0||re===""||Ze(re)?W:[].concat(ed(W),[re])},[]);else if(y==="number"){var X=L4e(D,r.filter(function(W){return W.props[o]===A&&(k||!W.props.hide)}),b,i,u);X&&(I=X)}p&&(y==="number"||E!=="auto")&&(G=Ny(D,b,"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})))},{})},sBe=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],b=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(b,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(nBe,"".concat(i,".").concat(v%2),null),domain:x,originalDomain:b,isCategorical:m,layout:u})))}return g},{})},lBe=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=aBe(e,{axes:d,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=sBe(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),p},uBe=function(e){var t=fs(e),n=ds(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:nA(n,function(r){return r.coordinate}),tooltipAxis:t,tooltipAxisBandSize:Ub(t,n)}},r8=function(e){var t=e.children,n=e.defaultShowTooltip,r=ba(t,Im),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}},cBe=function(e){return!e||!e.length?!1:e.some(function(t){var n=Ea(t&&t.type);return n&&n.indexOf("Bar")>=0})},i8=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"}},fBe=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,Im),m=ba(f,lm),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||Im.defaultProps.height),m&&t&&(w=N4e(w,r,n,t));var b=l-w.left-w.right,x=u-w.top-w.bottom;return ye(ye({brushBottom:y},w),{},{width:Math.max(b,0),height:Math.max(x,0)})},DA=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,b=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=i8(k),z=I.numericAxisName,G=I.cateAxisName,H=cBe(w),Q=H&&P4e({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"||T7e(!1);var de=Ae[ce];return ye(ye({},Oe),{},(ke={},Ge(ke,Ce.axisType,de),Ge(ke,"".concat(Ce.axisType,"Ticks"),ds(de)),ke))},ie),fe=se[G],j=se["".concat(G,"Ticks")],P=y&&y[q]&&y[q].hasStack&&V4e(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=A4e({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:b,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:y1e(te,v.children),item:te})}}),Z},m=function(v,g){var w=v.props,y=v.dataStartIndex,b=v.dataEndIndex,x=v.updateId;if(!fI({props:w}))return null;var O=w.children,E=w.layout,T=w.stackOffset,k=w.data,A=w.reverseStackOrder,D=i8(E),R=D.numericAxisName,I=D.cateAxisName,z=Mr(O,r),G=B4e(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,lBe(w,ye(ye({},V),{},{graphicalItems:z,stackGroups:V.axisType===R&&G,dataStartIndex:y,dataEndIndex:b}))))},{}),Q=fBe(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=uBe(Z),X=p(w,ye(ye({},H),{},{dataStartIndex:y,dataEndIndex:b,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){q7e(w,v);var g=K7e(w);function w(y){var b,x,O;return Y7e(this,w),O=g.call(this,y),Ge(ot(O),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ge(ot(O),"accessibilityManager",new D7e),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=g1e(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 M6(AC(ye(ye(ye({},uh.defaultProps),k),{},{ticks:ds(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 M6(AC(ye(ye(ye({},uh.defaultProps),k),{},{ticks:ds(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 ds(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=Ws;if(n==="ScatterChart")te=D,X=E5e;else if(n==="BarChart")te=U7e(Z,D,I,G),X=AA;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:F7e(Z,D,I)},X=Ws;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:ds(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=fs(k),H=S7e(A,function(te){return QH(te.domain,Number.isFinite)}),Q=H||fs(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=fs(I),H=fs(z),Q=H.cx,Z=H.cy,te=H.innerRadius,X=H.outerRadius;return F.cloneElement(E,{polarAngles:Array.isArray(A)?A:ds(H,!0).map(function($){return $.coordinate}),polarRadius:Array.isArray(D)?D:ds(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=J5(z,$7e);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:Kg(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:PA(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:Kg(O.handleItemMouseEnter,E.props.onClick)}:D!=="axis"&&(fe={onMouseLeave:Kg(O.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:Kg(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(ed(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((b=y.id)!==null&&b!==void 0?b:pl("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=MV(O.triggeredAfterMouseMove,(x=y.throttleDelay)!==null&&x!==void 0?x:1e3/60),O.state={},O}return G7e(w,[{key:"componentDidMount",value:function(){var y,b;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(y,b){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==b.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 b=y.props.shared?"axis":"item";return s.indexOf(b)>=0?b:o}return o}},{key:"getMouseInfo",value:function(y){if(!this.container)return null;var b=this.container,x=b.getBoundingClientRect(),O=fLe(x),E={chartX:Math.round(y.pageX-O.left),chartY:Math.round(y.pageY-O.top)},T=x.width/b.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=fs(D).scale,G=fs(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=n8(this.state,this.props.data,this.props.layout,k);return Z?ye(ye({},E),Z):null}},{key:"inRange",value:function(y,b){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,E=y/x,T=b/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=fs(R);return B6({x:E,y:T},z)}return null}},{key:"parseEventsOfWrapper",value:function(){var y=this.props.children,b=this.getTooltipEventType(),x=ba(y,_a),O={};x&&b==="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,b,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||b===Ea(k.item.type)&&x===k.childIndex)return k}return null}},{key:"renderAxis",value:function(y,b,x,O){var E=this.props,T=E.width,k=E.height;return M.createElement(uh,$c({},y,{className:We("recharts-".concat(y.axisType," ").concat(y.axisType),y.className),key:b.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,b=this.state.offset,x=b.left,O=b.top,E=b.height,T=b.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(b,x){var O=Q5(x,2),E=O[0],T=O[1];return ye(ye({},b),{},Ge({},E,T.scale))},{}):null}},{key:"getYScales",value:function(){var y=this.state.yAxisMap;return y?Object.entries(y).reduce(function(b,x){var O=Q5(x,2),E=O[0],T=O[1];return ye(ye({},b),{},Ge({},E,T.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(y){var b;return(b=this.state.xAxisMap)===null||b===void 0||(b=b[y])===null||b===void 0?void 0:b.scale}},{key:"getYScaleByAxisId",value:function(y){var b;return(b=this.state.yAxisMap)===null||b===void 0||(b=b[y])===null||b===void 0?void 0:b.scale}},{key:"getItemByXY",value:function(y){var b=this.state,x=b.formattedGraphicalItems,O=b.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 o5e(y,Q)});if(I)return{graphicalItem:k,payload:I}}else if(R==="RadialBar"){var z=(A.data||[]).find(function(Q){return B6(y,Q)});if(z)return{graphicalItem:k,payload:z}}else if(kw(k,O)||jw(k,O)||Rm(k,O)){var G=K8e({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:Rm(k,O)?D.props.data[G]:k.props.data[G]}}}return null}},{key:"render",value:function(){var y=this;if(!fI(this))return null;var b=this.props,x=b.children,O=b.className,E=b.width,T=b.height,k=b.style,A=b.compact,D=b.title,R=b.desc,I=J5(b,B7e),z=Ve(I);if(A)return M.createElement(ET,$c({},z,{width:E,height:T,title:D,desc:R}),this.renderClipPath(),pI(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",$c({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,$c({},z,{width:E,height:T,title:D,desc:R,style:rBe}),this.renderClipPath(),pI(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,b=v.children,x=v.width,O=v.height,E=v.layout,T=v.stackOffset,k=v.margin;if(g.updateId===void 0){var A=r8(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:b})}if(w!==g.prevDataKey||y!==g.prevData||x!==g.prevWidth||O!==g.prevHeight||E!==g.prevLayout||T!==g.prevStackOffset||!Kc(k,g.prevMargin)){var D=r8(v),R={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=ye(ye({},n8(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:b})}if(!Tz(b,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:b})}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(Tv,g),M.createElement(nt,{className:"recharts-active-dot",key:g.key},w)}),t},dBe=DA({chartName:"LineChart",GraphicalChild:Pd,axisComponents:[{axisType:"xAxis",AxisComp:Ad},{axisType:"yAxis",AxisComp:Nd}],formatAxisMap:tW}),pBe=DA({chartName:"PieChart",GraphicalChild:ns,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Cw},{axisType:"radiusAxis",AxisComp:Ew}],formatAxisMap:J4e,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),hBe=DA({chartName:"ComposedChart",GraphicalChild:[Pd,Uu,Tu,Mw],axisComponents:[{axisType:"xAxis",AxisComp:Ad},{axisType:"yAxis",AxisComp:Nd},{axisType:"zAxis",AxisComp:Nw}],formatAxisMap:tW});const IA={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},o8=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],mBe=({chartData:e,showNumbers:t})=>_.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>_.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[_.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),_.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&_.jsxs("b",{children:[" (",bn(i),")"]})]})]},n))}),vBe=({stats:e,showNumbersInLegend:t,dimensions:n})=>{const r=F.useMemo(()=>Object.entries(e).map(([o,a],s)=>({name:o,value:a,color:o8[s%o8.length]})),[e]),i=Bj()?Ece:Sce;return _.jsxs("div",{className:"row align-items-center",children:[_.jsx("div",{className:"col-sm-12 col-md-7",children:_.jsx("div",{style:n??{width:"100%",height:300},children:_.jsx(n?F.Fragment:oA,{children:_.jsxs(pBe,{...n,children:[_.jsx(_a,{formatter:bn,contentStyle:IA,itemStyle:{color:"white"}}),_.jsx(ns,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:"50%",animationBegin:0,children:r.map((o,a)=>_.jsx(Ou,{fill:o.color,stroke:i},`${o.name}-${a}`))})]})})})}),_.jsx("div",{className:"col-sm-12 col-md-5",children:_.jsx(mBe,{chartData:r,showNumbers:t})})]})},a8=({title:e,stats:t,dimensions:n})=>{const[r,i]=En(!1);return _.jsx(hz,{title:_.jsxs(_.Fragment,{children:[e,_.jsx("div",{className:"float-end",children:_.jsx(_f,{checked:r,onChange:i,children:"Show numbers"})})]}),children:_.jsx(vBe,{stats:t,showNumbersInLegend:r,dimensions:n})})},gBe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},yBe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},bBe={hourly:Fde,daily:nP,weekly:Bde,monthly:K0},FA={hourly:e=>Ef(e,"yyyy-MM-dd HH:00"),daily:e=>Yl(e),weekly(e){const t=Yl(qh(e)),n=Yl(Hde(e));return`${t} - ${n}`},monthly:e=>Ef(e,"yyyy-MM")},_Be=e=>{var t;const n=new Date,r=Ua(e);return((t=[[()=>nP(n,r)<=2,"hourly"],[()=>K0(n,r)<=1,"daily"],[()=>K0(n,r)<=6,"weekly"]].find(([i])=>i()))==null?void 0:t[1])??"monthly"},s8=(e,t)=>N2(t,n=>FA[e](Ua(n.date))),wBe=(e,t)=>t.reduce((n,r)=>{const i=FA[e](Ua(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),xBe=(e,t)=>{const n=t[0],r=t[t.length-1];if(!n||!r)return{};const i=bBe[e],o=FA[e],a=yBe[e],s=Ua(n.date),l=Ua(r.date),u=i(s,l);return[o(l),...mP(u,f=>o(Cde(l,a(f))))].reduce((f,d)=>(f[d]=0,f),{})},l8=({onDotClick:e,dataKey:t,color:n})=>_.jsx(Pd,{type:"monotone",dataKey:t,stroke:n,strokeWidth:3,activeDot:{cursor:"pointer",onClick:e}}),OBe=({visits:e,title:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i,dimensions:o,matchMedia:a})=>{const[s,l]=F.useState(e.length>0?_Be(e[e.length-1].date):"monthly"),u=vP(767,a??window.matchMedia),f=F.useMemo(()=>{const g=s8(s,[...e].reverse()),w=s8(s,[...n].reverse()),y={...xBe(s,e),...g};return Object.entries(y).map(([b,x])=>({date:b,amount:x,highlightedAmount:w[b]??0}))},[s,e,n]),d=F.useMemo(()=>wBe(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:oA,v=o?{}:{width:"100%",height:u?300:400};return _.jsxs(ui,{children:[_.jsxs(vf,{role:"heading","aria-level":4,children:[t,_.jsx("div",{className:"float-end",children:_.jsxs(ov,{children:[_.jsx(ud,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),_.jsx(ld,{end:!0,children:Object.entries(gBe).map(([g,w])=>_.jsx(ze,{active:s===g,onClick:()=>l(g),children:w},g))})]})})]}),_.jsx(mf,{children:_.jsx(m,{...v,children:_.jsxs(dBe,{data:f,...o,children:[_.jsx(Ad,{dataKey:"date"}),_.jsx(Nd,{dataKey:"amount",tickFormatter:bn}),_.jsx(_a,{formatter:(g,w)=>[bn(g),w==="amount"?"Visits":r],contentStyle:IA}),_.jsx(Aw,{strokeOpacity:Bj()?.1:.9}),l8({color:B0,dataKey:"amount",onDotClick:p}),n.length>0&&l8({color:HE,dataKey:"highlightedAmount",onDotClick:p})]})})})]})},SBe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>_.jsxs(ov,{children:[_.jsx(ud,{caret:!0,color:"link",className:e,children:"Paginate"}),_.jsxs(ld,{end:!0,children:[t.map(i=>_.jsxs(ze,{active:i===n,onClick:()=>r(i),children:[_.jsx("b",{children:i})," items per page"]},i)),_.jsx(ze,{divider:!0,tag:"hr"}),_.jsx(ze,{disabled:n===1/0,onClick:()=>r(1/0),children:_.jsx("i",{children:"Clear pagination"})})]})]}),u8=e=>e.startsWith("hidden_"),EBe=({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=u8(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:oA,u=F.useMemo(()=>o?{}:{width:"100%",height:Math.max(300,a.length*22)},[o,a]);return _.jsx(l,{...u,children:_.jsxs(hBe,{layout:"vertical",data:a,barCategoryGap:3,...o,children:[_.jsx(Ad,{type:"number",dataKey:"amount",tickFormatter:bn,domain:r?[0,r]:void 0}),_.jsx(Nd,{type:"category",dataKey:"name",width:s,interval:0,style:{fontSize:".8rem"},tickFormatter:f=>u8(f)?"":f}),_.jsx(Aw,{strokeOpacity:Bj()?.05:.9}),_.jsx(_a,{filterNull:!0,contentStyle:IA,formatter:(f,d)=>{const p=bn(f);return d==="highlightedAmount"?[p,n]:[p,t?"Non-selected":"Visits"]}}),_.jsx(Tu,{dataKey:"amount",stackId:"main",cursor:"pointer",fill:B0,onClick:({name:f})=>i==null?void 0:i(f),children:a.map(f=>_.jsx(Ou,{fill:xce,stroke:B0,strokeWidth:2},f.name))}),t&&_.jsx(Tu,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:HE,onClick:({name:f})=>i==null?void 0:i(f),children:a.map(f=>_.jsx(Ou,{fill:Oce,stroke:HE,strokeWidth:2},f.name))})]})})},TBe=e=>typeof e=="string"?e.toLowerCase():e,CBe=([e])=>e,kBe=([,e])=>e,Qg=({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?Ome(A,([R,I])=>TBe(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,...mP(A-k.length,D=>[`hidden_${D}`,0])]},g=T=>_.jsx(MP,{currentPage:u,pagesCount:T,setCurrentPage:f}),w=(T,k,A)=>{const D=m(T,k),R=D.map(CBe),I=A&&Object.entries({...Sme(R,R.map(()=>0)),...A});if(D.length<=d)return{currentPageStats:Object.fromEntries(D),currentPageHighlightedStats:I&&Object.fromEntries(I)};const z=Jh(D,d),G=I&&Jh(I,d);return{currentPageStats:Object.fromEntries(v(z)),currentPageHighlightedStats:G&&Object.fromEntries(v(G)),pagination:g(z.length),max:gve(Math.max(...D.map(kBe)))}},{currentPageStats:y,currentPageHighlightedStats:b,pagination:x,max:O}=w(e,r,t&&Object.keys(t).length>0?t:void 0),E=Object.keys(y);return _.jsx(hz,{title:_.jsxs(_.Fragment,{children:[n,_.jsx("div",{className:"float-end",children:_.jsx(lv,{isButton:!1,right:!0,items:r,order:s,onChange:(T,k)=>{l({field:T,dir:k}),f(1)}})}),o&&Object.keys(e).length>50&&_.jsx("div",{className:"float-end",children:_.jsx(SBe,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:d,setValue:T=>{p(T),f(1)}})}),i&&_.jsx("div",{className:"float-end",children:i(x?E:void 0)})]}),footer:x,children:_.jsx(EBe,{stats:y,highlightedStats:b,max:O,...a})})},jBe=()=>{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)&&el(a.startDate)||"",endDate:(a==null?void 0:a.endDate)&&el(a.endDate)||"",excludeBots:l===void 0?void 0:z2(l),orphanVisitsType:u,domain:r},d=I_(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 PBe=1;function ABe(e){return Object.freeze({__version:PBe,map:e})}function NBe(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 MBe(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 LBe(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?id.createPortal(n.children,s):null}return F.forwardRef(t)}function RBe(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 UA(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function DBe(e,t){return function(n,r){const i=xW(),o=e(UA(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)})(Lc,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 b(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:b,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,Nv=!!(window.PointerEvent||Eo),Mv="ontouchstart"in window||!!window.TouchEvent,Lv=!window.L_NO_TOUCH&&(Mv||Nv),Rd=So&&be,gl=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:Nv,touch:Lv,touchNative:Mv,mobileOpera:Rd,mobileGecko:gl,retina:_n,passiveEvents:dn,canvas:xr,svg:er,vml:Tn,inlineSvg:tr,mac:Zi,linux:Xi},GA=Ye.msPointer?"MSPointerDown":"pointerdown",qA=Ye.msPointer?"MSPointerMove":"pointermove",KA=Ye.msPointer?"MSPointerUp":"pointerup",ZA=Ye.msPointer?"MSPointerCancel":"pointercancel",Dw={touchstart:GA,touchmove:qA,touchend:KA,touchcancel:ZA},XA={touchstart:CY,touchmove:Rv,touchend:Rv,touchcancel:Rv},Bu={},QA=!1;function xY(c,h,S){return h==="touchstart"&&TY(),XA[h]?(S=XA[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){Bu[c.pointerId]=c}function EY(c){Bu[c.pointerId]&&(Bu[c.pointerId]=c)}function JA(c){delete Bu[c.pointerId]}function TY(){QA||(document.addEventListener(GA,SY,!0),document.addEventListener(qA,EY,!0),document.addEventListener(KA,JA,!0),document.addEventListener(ZA,JA,!0),QA=!0)}function Rv(c,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var S in Bu)h.touches.push(Bu[S]);h.changedTouches=[h],c(h)}}function CY(c,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&rr(h),Rv(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=iN(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=Fv(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Dd=Fv(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),eN=Dd==="webkitTransition"||Dd==="OTransition"?Dd+"End":"transitionend";function tN(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 Dv(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function zu(c){var h=c.parentNode;h&&h.lastChild!==c&&h.appendChild(c)}function Vu(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=Iv(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=Iv(c);Uw(c,(Y?Y+" ":"")+h)}}function pn(c,h){c.classList!==void 0?c.classList.remove(h):Uw(c,m((" "+Iv(c)+" ").replace(" "+h+" "," ")))}function Uw(c,h){c.className.baseVal===void 0?c.className=h:c.className.baseVal=h}function Iv(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 Fv(c){for(var h=document.documentElement.style,S=0;S<c.length;S++)if(c[S]in h)return c[S];return!1}function yl(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?yl(c,h):(c.style.left=h.x+"px",c.style.top=h.y+"px")}function bl(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=Fv(["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 Uv,Vw;function Hw(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&($v(),Uv=c,Vw=c.style.outlineStyle,c.style.outlineStyle="none",tt(window,"keydown",$v))}function $v(){Uv&&(Uv.style.outlineStyle=Vw,Uv=void 0,Vw=void 0,Lt(window,"keydown",$v))}function nN(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:eN,get:tN,getStyle:Id,create:_t,remove:Qt,empty:Dv,toFront:zu,toBack:Vu,hasClass:Fw,addClass:it,removeClass:pn,setClass:Uw,getClass:Iv,setOpacity:gi,testProp:Fv,setTransform:yl,setPosition:wn,getPosition:bl,get disableTextSelection(){return Fd},get enableTextSelection(){return Ud},disableImageDrag:Bw,enableImageDrag:zw,preventOutline:Hw,restoreOutline:$v,getSizedParentNode:nN,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)rN(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)rN(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 rN(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 _l(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function Kw(c){return Gw(c,"wheel",_l),this}function Bd(c){return tt(c,"mousedown touchstart dblclick contextmenu",_l),c._leaflet_disable_click=!0,this}function rr(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function wl(c){return rr(c),_l(c),this}function iN(c){if(c.composedPath)return c.composedPath();for(var h=[],S=c.target;S;)h.push(S),S=S.parentNode;return h}function oN(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 aN(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:_l,disableScrollPropagation:Kw,disableClickPropagation:Bd,preventDefault:rr,stop:wl,getPropagationPath:iN,getMousePosition:oN,getWheelDelta:aN,isExternalTarget:Zw,addListener:tt,removeListener:Lt},sN=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=bl(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,eN,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 sN,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 Qv=xn?-1:1,OG=xn?me:pe,SG=me*me-pe*pe+Qv*Ke*Ke*xe*xe,EG=2*OG*Ke*xe,sx=SG/EG,BN=Math.sqrt(sx*sx+1)-sx,TG=BN<1e-9?-18:Math.log(BN);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 Ku(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(),UN=(st(1)-Dr)/Ie,xG=S.duration?1e3*S.duration:1e3*UN*.8;function $N(){var xn=(Date.now()-wG)/xG,Qv=_G(xn)*UN;xn<=1?(this._flyToFrame=I($N,this),this._move(this.unproject(C.add(N.subtract(C).multiplyBy(bG(Qv)/xe)),ae),this.getScaleZoom(pe/Ku(Qv),ae),{flyTo:!0})):this._move(c,h)._moveEnd(!0)}return this._moveStart(!0,S.noMoveStart),$N.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 oN(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=tN(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 bl(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];yl(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();yl(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 lN=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;Dv(this._baseLayersList),Dv(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 lN(c,h,S)},Xw=Qi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</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",wl),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)},uN=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 uN(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=lN,Qi.Zoom=Xw,Qi.Scale=uN,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},cN=Ye.touch?"touchstart mousedown":"mousedown",rs=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,cN,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(rs._dragging===this&&this.finishDrag(!0),Lt(this._dragStartTarget,cN,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){rs._dragging===this&&this.finishDrag();return}if(!(rs._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(rs._dragging=this,this._preventOutline&&Hw(this._element),Bw(),Fd(),!this._moving)){this.fire("down");var h=c.touches?c.touches[0]:c,S=nN(this._element);this._startPoint=new X(h.clientX,h.clientY),this._startPos=bl(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,rs._dragging=!1,h&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function fN(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=xl(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=Bv(xe,me,Ke,h,S),st._code=xl(st,h),C.push(st)):(xe._code&Ke&&(st=Bv(xe,me,Ke,h,S),st._code=xl(st,h),C.push(st)),C.push(me));c=C}return c}function dN(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 Ku=h.unproject(V(Ie));return se([Ku.lat+Ke.lat,Ku.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:fN,polygonCenter:dN,centroid:Jw};function pN(c,h){if(!h||!c.length)return c.slice();var S=h*h;return c=YY(c,S),c=WY(c,S),c}function hN(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 mN;function vN(c,h,S,C,N){var Y=C?mN:xl(c,S),ae=xl(h,S),pe,me,xe;for(mN=ae;;){if(!(Y|ae))return[c,h];if(Y&ae)return!1;pe=Y||ae,me=Bv(c,h,pe,S,N),xe=xl(me,S),pe===Y?(c=me,Y=xe):(h=me,ae=xe)}}function Bv(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 xl(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 gN(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),yi(c)}function yN(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:pN,pointToSegmentDistance:hN,closestPointOnSegment:HY,clipSegment:vN,_getEdgeIntersection:Bv,_getBitCode:xl,_sqClosestPointOnSegment:Vd,isFlat:yi,_flat:gN,polylineCenter:yN},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)}()}),bN=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=bN,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 Hu=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 Hu(c,h)},aa=Hu.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),Hu.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),Hu.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)},Wu=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 Wu(c)}var Hd=Wu.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)+Wu.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):""}}),_N=Co.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new rs(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=bl(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=bl(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)}}),zv=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),_N)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new _N(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 zv(c,h)}var is=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)}}),Vv=is.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 is.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 Vv(c,h)}var rx=Vv.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:is.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=is.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 yN(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=vN(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]=pN(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)&&hN(c,pe[N],pe[C])<=me)return!0;return!1}});function iG(c,h){return new sa(c,h)}sa._flat=gN;var Yu=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 dN(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=fN(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 Yu(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=Hv(c,Y);return ae?(ae.feature=Gv(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 Hv(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),wN(Y,c,pe,h);case"MultiPoint":for(xe=0,Ie=C.length;xe<Ie;xe++)pe=ae(C[xe]),N.push(wN(Y,c,pe,h));return new aa(N);case"LineString":case"MultiLineString":return me=Wv(C,S.type==="LineString"?0:1,ae),new sa(me,h);case"Polygon":case"MultiPolygon":return me=Wv(C,S.type==="Polygon"?1:2,ae),new Yu(me,h);case"GeometryCollection":for(xe=0,Ie=S.geometries.length;xe<Ie;xe++){var Ke=Hv({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=Hv(S.features[xe],h);st&&N.push(st)}return new aa(N);default:throw new Error("Invalid GeoJSON object.")}}function wN(c,h,S,C){return c?c(h,S):new zv(S,C&&C.markersInheritOptions&&C)}function ix(c){return new ie(c[1],c[0],c[2])}function Wv(c,h,S){for(var C=[],N=0,Y=c.length,ae;N<Y;N++)ae=h?Wv(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 Yv(c,h,S,C){for(var N=[],Y=0,ae=c.length;Y<ae;Y++)N.push(h?Yv(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 Gu(c,h){return c.feature?i({},c.feature,{geometry:h}):Gv(h)}function Gv(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var ax={toGeoJSON:function(c){return Gu(this,{type:"Point",coordinates:ox(this.getLatLng(),c)})}};zv.include(ax),rx.include(ax),Vv.include(ax),sa.include({toGeoJSON:function(c){var h=!yi(this._latlngs),S=Yv(this._latlngs,h?1:0,!1,c);return Gu(this,{type:(h?"Multi":"")+"LineString",coordinates:S})}}),Yu.include({toGeoJSON:function(c){var h=!yi(this._latlngs),S=h&&!yi(this._latlngs[0]),C=Yv(this._latlngs,S?2:h?1:0,!0,c);return h||(C=[C]),Gu(this,{type:(S?"Multi":"")+"Polygon",coordinates:C})}}),Hu.include({toMultiPoint:function(c){var h=[];return this.eachLayer(function(S){h.push(S.toGeoJSON(c).geometry.coordinates)}),Gu(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=Gv(Y);ae.type==="FeatureCollection"?C.push.apply(C,ae.features):C.push(ae)}}}),S?Gu(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function xN(c,h){return new la(c,h)}var aG=xN,qv=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&&zu(this._image),this},bringToBack:function(){return this._map&&Vu(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;yl(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 qv(c,h,S)},ON=qv.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 ON(c,h,S)}var SN=qv.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 SN(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&&zu(this._container),this},bringToBack:function(){return this._map&&Vu(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 Kv=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 is||this._source.on("preclick",_l))},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 is||this._source.off("preclick",_l))},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",_l),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">×</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(bl(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 Kv(c,h)};vt.mergeOptions({closePopupOnClick:!0}),vt.include({openPopup:function(c,h,S){return this._initOverlay(Kv,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(Kv,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)){wl(c);var h=c.layer||c.target;if(this._popup._source===h&&!(h instanceof is)){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 Zv=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 Zv(c,h)};vt.include({openTooltip:function(c,h,S){return this._initOverlay(Zv,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(Zv,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 EN=Wu.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?(Dv(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 EN(c)}Wu.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&&(zu(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Vu(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?yl(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,Ku){return Dr.distanceTo(Y)-Ku.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 qu=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 b(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 TN(c,h){return new qu(c,h)}var CN=qu.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,qu.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===bN?[N.y,N.x,Y.y,Y.x]:[N.x,N.y,Y.x,Y.y]).join(","),pe=qu.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 CN(c,h)}qu.WMS=CN,TN.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?yl(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()}}),kN=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 jN(c){return Ye.canvas?new kN(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){zu(c._container)},_bringToBack:function(c){Vu(c._container)}},Xv=Ye.vml?Yd:Ee,Gd=ua.extend({_initContainer:function(){this._container=Xv("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Xv("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=Xv("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){zu(c._path)},_bringToBack:function(c){Vu(c._path)}});Ye.vml&&Gd.include(mG);function PN(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&&jN(c)||PN(c)}});var AN=Yu.extend({initialize:function(c,h){Yu.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 AN(c,h)}Gd.create=Xv,Gd.pointsToPath=ue,la.geometryToLayer=Hv,la.coordsToLatLng=ix,la.coordsToLatLngs=Wv,la.latLngToCoords=ox,la.latLngsToCoords=Yv,la.getFeature=Gu,la.asFeature=Gv,vt.mergeOptions({boxZoom:!0});var NN=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:wl,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:wl,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",NN),vt.mergeOptions({doubleClickZoom:!0});var MN=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",MN),vt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var LN=Co.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new rs(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",LN),vt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var RN=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;wl(c)}}});vt.addInitHook("addHandler","keyboard",RN),vt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var DN=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=aN(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),wl(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",DN);var gG=600;vt.mergeOptions({tapHold:Ye.touchNative&&Ye.safari&&Ye.mobile,tapTolerance:15});var IN=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",IN),vt.mergeOptions({touchZoom:Ye.touch,bounceAtZoomLimits:!0});var FN=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",FN),vt.BoxZoom=NN,vt.DoubleClickZoom=MN,vt.Drag=LN,vt.Keyboard=RN,vt.ScrollWheelZoom=DN,vt.TapHold=IN,vt.TouchZoom=FN,n.Bounds=W,n.Browser=Ye,n.CRS=fe,n.Canvas=kN,n.Circle=rx,n.CircleMarker=Vv,n.Class=H,n.Control=Qi,n.DivIcon=EN,n.DivOverlay=ko,n.DomEvent=RY,n.DomUtil=MY,n.Draggable=rs,n.Evented=te,n.FeatureGroup=aa,n.GeoJSON=la,n.GridLayer=Wd,n.Handler=Co,n.Icon=Wu,n.ImageOverlay=qv,n.LatLng=ie,n.LatLngBounds=q,n.Layer=Ji,n.LayerGroup=Hu,n.LineUtil=qY,n.Map=vt,n.Marker=zv,n.Mixin=zY,n.Path=is,n.Point=X,n.PolyUtil=VY,n.Polygon=Yu,n.Polyline=sa,n.Popup=Kv,n.PosAnimation=sN,n.Projection=KY,n.Rectangle=AN,n.Renderer=ua,n.SVG=Gd,n.SVGOverlay=SN,n.TileLayer=qu,n.Tooltip=Zv,n.Transformation=J,n.Util=G,n.VideoOverlay=ON,n.bind=a,n.bounds=re,n.canvas=jN,n.circle=rG,n.circleMarker=nG,n.control=zd,n.divIcon=dG,n.extend=i,n.featureGroup=JY,n.geoJSON=xN,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=PN,n.svgOverlay=uG,n.tileLayer=TN,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 jv=VC.exports;const c8=Ot(jv);function $A(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function BA(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 IBe(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(UA(t,n),n);return bW(n.map,t.attribution),OW(r.current,t.eventHandlers),IBe(r.current,n),r}}function FBe(e,t){const n=BA(e,t),r=SW(n);return MBe(r)}function UBe(e,t){const n=BA(e),r=DBe(n,t);return LBe(r)}function $Be(e,t){const n=BA(e,t),r=SW(n);return RBe(r)}function BBe(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 zBe({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 b=new jv.Map(y,f);n!=null&&u!=null?b.setView(n,u):e!=null&&b.fitBounds(e,t),l!=null&&b.whenReady(l),v(ABe(b))}},[]);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 VBe=F.forwardRef(zBe),HBe=FBe(function({position:e,...t},n){const r=new jv.Marker(e,t);return $A(r,NBe(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())}),WBe=UBe(function(e,t){const n=new jv.Popup(e,t.overlayContainer);return $A(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])}),YBe=$Be(function({url:e,...t},n){const r=new jv.TileLayer(e,UA(t,n));return $A(r,n)},function(e,t,n){BBe(e,t,n);const{url:r}=t;r!=null&&r!==n.url&&e.setUrl(r)}),GBe=()=>_.jsx(YBe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),qBe=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=[]})=>_.jsx(Ka,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:_.jsxs(na,{className:"map-modal__modal-body",children:[_.jsxs("h3",{className:"map-modal__modal-title",children:[n,_.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),_.jsxs(VBe,{...qBe(r),children:[_.jsx(GBe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>_.jsx(HBe,{position:o,children:_.jsxs(WBe,{children:[_.jsx("b",{children:a})," visit",a>1?"s":""," from ",_.jsx("b",{children:i})]})},s))]})]})}),KBe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=En(),[a,s]=En(),[l,u]=F.useState([]),f=F_(),d=F.useCallback(p=>{u(p?n.filter(p):n),i()},[n,i]);return _.jsxs(_.Fragment,{children:[!t&&_.jsx(wt,{color:"link",className:"open-map-modal-btn__btn",id:f,onClick:()=>d(),"aria-label":"Show in map",children:_.jsx(Le,{icon:sS})}),t&&_.jsxs(nv,{isOpen:a,toggle:s,children:[_.jsx(ud,{color:"link",className:"open-map-modal-btn__btn",id:f,children:_.jsx(Le,{icon:sS})}),_.jsxs(ld,{end:!0,children:[_.jsx(ze,{onClick:()=>d(),children:"Show all locations"}),_.jsx(ze,{onClick:()=>d(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),_.jsx(qr,{placement:"left",target:f,children:"Show in map"}),_.jsx(EW,{toggle:o,isOpen:r,title:e,locations:l})]})},ZBe=({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 _.jsxs(Xa,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[_.jsx(ze,{header:!0,"aria-hidden":!0,children:"Bots:"}),_.jsx(ze,{active:o,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude potential bots"}),r&&_.jsxs(_.Fragment,{children:[_.jsx(ze,{divider:!0,tag:"hr"}),_.jsx(ze,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),_.jsx(ze,{...a("base_url"),children:"Base URL"}),_.jsx(ze,{...a("invalid_short_url"),children:"Invalid short URL"}),_.jsx(ze,{...a("regular_404"),children:"Regular 404"})]}),_.jsx(ze,{divider:!0,tag:"hr"}),_.jsx(ze,{disabled:!va(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:_.jsx("i",{children:"Clear filters"})})]})},XBe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=En();return _.jsx(vn,{title:_.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:_.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[_.jsxs("dl",{className:"m-0 me-3",children:[_.jsx("dt",{children:"Delete visits."}),_.jsxs("dd",{className:"m-0",children:["This will delete ",_.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&_.jsx(wt,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&_.jsxs(wt,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!n&&_.jsx(_.Fragment,{children:"Click again to confirm"}),n&&_.jsx(_.Fragment,{children:"Deleting..."})]})]})})},QBe={"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"},ms={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 QBe[t]}static getBrowserTypeByAlias(t){return TW[t]||""}}const At=/version\/(\d+(\.?_?\d+)+)/i,JBe=[{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)}}}],e2e=[{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}}}],t2e=[{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}}}],n2e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ms.Blink};const t=we.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ms.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:ms.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:ms.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:ms.Gecko},n=we.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ms.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:ms.WebKit},n=we.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class f8{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(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.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(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.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(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.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(n2e,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 r2e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new f8(t,n)}static parse(t){return new f8(t).getResult()}static get BROWSER_MAP(){return TW}static get ENGINE_MAP(){return ms}static get OS_MAP(){return Er}static get PLATFORMS_MAP(){return hn}}const Jg="Others",i2e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],o2e=e=>{if(!va(e))return{browser:Jg,os:Jg};const{browser:{name:t},os:{name:n}}=r2e.parse(e);return{os:n??Jg,browser:t&&i2e.includes(t)?t:Jg}},a2e=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,d8=e=>typeof e=="number"?e:e?parseFloat(e):0,s2e=(e,{os:t})=>{e[t]=(e[t]||0)+1},l2e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},u2e=(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},c2e=kW("country"),f2e=kW("city"),d2e=(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:[d8(r),d8(i)]};o.count+=1,e[n]=o},p2e=(e,t)=>{if(!C_e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},jW=e=>e.reduce((t,n)=>(s2e(t.os,n),l2e(t.browsers,n),u2e(t.referrers,n),c2e(t.countries,n),f2e(t.cities,n),d2e(t.citiesForMap,n),p2e(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,...o2e(n),referer:a2e(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 RP(t)?{...s,type:t.type,visitedUrl:t.visitedUrl}:s}),h2e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:PW,processStatsFromVisits:jW},Symbol.toStringTag,{value:"Module"})),Mp=20,m2e=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),v2e=(e,t)=>t.filter(n=>m2e(n,e)),g2e=(e,t)=>TB(t,e),y2e=(e,t,n)=>{const r=t?v2e(t,e):[...e],i=g2e(n,r),o=i.length;return{visitsGroups:Jh(i,Mp),total:o}},ca="visits-table__header-cell visits-table__sticky",b2e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var o;const a=vP(767,r),[s,l]=F.useState(void 0),u=F.useRef(s),[f,d]=F.useState({}),p=F.useMemo(()=>y2e(e,s,f),[e,s,f]),[m,v]=F.useState(1),g=m*Mp,w=g-Mp,y=8+Number(i),b=O=>()=>d({field:O,dir:$_(O,f.field,f.dir)}),x=O=>_.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]),_.jsx("div",{className:"table-responsive-md",children:_.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[_.jsxs("thead",{className:"visits-table__header",children:[_.jsxs("tr",{children:[_.jsxs("th",{className:`${ca} text-center`,onClick:()=>n(t.length<p.total?p.visitsGroups.flat():[]),children:[_.jsx("span",{className:"sr-only",children:"Is selected"}),_.jsx(Le,{icon:Mh,className:We({"text-primary":t.length>0})})]}),_.jsxs("th",{className:`${ca} text-center`,onClick:b("potentialBot"),children:[_.jsx("span",{className:"sr-only",children:"Is bot"}),_.jsx(Le,{icon:gM}),x("potentialBot")]}),_.jsxs("th",{className:ca,onClick:b("date"),children:["Date",x("date")]}),_.jsxs("th",{className:ca,onClick:b("country"),children:["Country",x("country")]}),_.jsxs("th",{className:ca,onClick:b("city"),children:["City",x("city")]}),_.jsxs("th",{className:ca,onClick:b("browser"),children:["Browser",x("browser")]}),_.jsxs("th",{className:ca,onClick:b("os"),children:["OS",x("os")]}),_.jsxs("th",{className:ca,onClick:b("referer"),children:["Referrer",x("referer")]}),i&&_.jsxs("th",{className:ca,onClick:b("visitedUrl"),children:["Visited URL",x("visitedUrl")]})]}),_.jsx("tr",{children:_.jsx("td",{colSpan:y,className:"p-0",children:_.jsx(sv,{noBorder:!0,large:!1,onChange:l})})})]}),_.jsxs("tbody",{children:[p.total===0&&_.jsx("tr",{children:_.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 _.jsxs("tr",{style:{cursor:"pointer"},className:We({"table-active":T}),onClick:()=>n(T?t.filter(k=>k!==O):[...t,O]),children:[_.jsx("td",{className:"text-center",children:T&&_.jsx(Le,{icon:Mh,className:"text-primary"})}),_.jsx("td",{className:"text-center",children:O.potentialBot&&_.jsxs(_.Fragment,{children:[_.jsx(Le,{icon:gM,id:`botIcon${E}`}),_.jsx(qr,{placement:"right",target:`botIcon${E}`,children:"Potentially a visit from a bot or crawler"})]})}),_.jsx("td",{children:_.jsx(nb,{date:O.date})}),_.jsx("td",{children:O.country}),_.jsx("td",{children:O.city}),_.jsx("td",{children:O.browser}),_.jsx("td",{children:O.os}),_.jsx("td",{children:O.referer}),i&&_.jsx("td",{children:O.visitedUrl})]},E)})]}),p.total>Mp&&_.jsx("tfoot",{children:_.jsx("tr",{children:_.jsx("td",{colSpan:y,className:"visits-table__footer-cell visits-table__sticky",children:_.jsxs("div",{className:"row",children:[_.jsx("div",{className:"col-md-6",children:_.jsx(MP,{pagesCount:Math.ceil(p.total/Mp),currentPage:m,setCurrentPage:v,centered:a})}),_.jsx("div",{className:We("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:_.jsxs("div",{children:["Visits ",_.jsx("b",{children:bn(w+1)})," to"," ",_.jsx("b",{children:bn(Math.min(g,p.total))})," of"," ",_.jsx("b",{children:bn(p.total)})]})})]})})})})]})})},vs={byTime:{title:"By time",subPath:"by-time",icon:HQ},byContext:{title:"By context",subPath:"by-context",icon:Jk},byLocation:{title:"By location",subPath:"by-location",icon:sS},list:{title:"List",subPath:"list",icon:P$},options:{title:"Options",subPath:"options",icon:L$,shouldRender:({deletion:e})=>!!e}};Object.freeze(vs);let ey;const r1=({children:e,showFallback:t})=>_.jsxs(_.Fragment,{children:[t&&_.jsx(Da,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&_.jsx(_.Fragment,{children:e})]}),Pv=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]=jBe(),b=Ru("visits"),x=F.useCallback(({startDate:ie,endDate:se})=>y({dateRange:{startDate:ie??void 0,endDate:se??void 0}}),[y]),O=F.useRef(g??v??(b==null?void 0:b.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??(b==null?void 0:b.excludeBots)}),[w,b==null?void 0:b.excludeBots]),W=Object.values(X),re=F.useCallback(ie=>{ey=void 0,T(ie)},[]),q=F.useCallback((ie,se)=>{const fe=`${ie}_${se}`;ey===fe?(T([]),A(void 0),ey=void 0):(T(z.filter(j=>j[ie]===se)),A(se),ey=fe)},[z]);F.useEffect(()=>i,[i]),F.useEffect(()=>{const ie=D.current?g??kme(O.current):g;r({dateRange:ie,filter:V},D.current),re([]),D.current=!1},[g,w]),F.useEffect(()=>{v&&O.current===((b==null?void 0:b.defaultInterval)??"last30Days")&&(O.current=v)},[v,b==null?void 0:b.defaultInterval]);const ee=()=>f?_.jsxs(Da,{loading:!0,children:["This is going to take a while... :S",_.jsx(Z7,{value:m,striped:m===100,className:"mt-3"})]}):u?_.jsx(Da,{loading:!0}):d?_.jsx(ii,{type:"error",children:_.jsx(Fa,{errorData:p,fallbackMessage:"An error occurred while loading visits :("})}):_.jsxs(_.Fragment,{children:[_.jsx(EB,{fill:!0,children:Object.values(vs).map(({title:ie,icon:se,subPath:fe,shouldRender:j},P)=>!j||j(e)?_.jsxs(Qp,{to:I(fe),replace:!0,children:[_.jsx(Le,{icon:se}),_.jsx("span",{className:"ms-2 d-none d-lg-inline",children:ie})]},P):void 0).filter(Boolean)}),_.jsx(kr,{children:_.jsxs(C_,{children:[_.jsx(Et,{path:vs.byTime.subPath,element:_.jsx(r1,{showFallback:l.length===0,children:_.jsx("div",{className:"col-12 mt-3",children:_.jsx(OBe,{title:"Visits during time",visits:z,highlightedVisits:E,highlightedLabel:k,setSelectedVisits:re})})})}),_.jsx(Et,{path:vs.byContext.subPath,element:_.jsxs(r1,{showFallback:l.length===0,children:[_.jsx("div",{className:We("mt-3 col-lg-6",{"col-xl-4":!s}),children:_.jsx(a8,{title:"Operating systems",stats:G})}),_.jsx("div",{className:We("mt-3 col-lg-6",{"col-xl-4":!s}),children:_.jsx(a8,{title:"Browsers",stats:H})}),_.jsx("div",{className:We("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:_.jsx(Qg,{title:"Referrers",stats:Q,withPagination:!1,highlightedStats:Ug(E,"referer"),highlightedLabel:k,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:ie=>q("referer",ie)})}),s&&_.jsx("div",{className:"mt-3 col-lg-6",children:_.jsx(Qg,{title:"Visited URLs",stats:$,highlightedLabel:k,highlightedStats:Ug(E,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:ie=>q("visitedUrl",ie)})})]})}),_.jsx(Et,{path:vs.byLocation.subPath,element:_.jsxs(r1,{showFallback:l.length===0,children:[_.jsx("div",{className:"col-lg-6 mt-3",children:_.jsx(Qg,{title:"Countries",stats:Z,highlightedStats:Ug(E,"country"),highlightedLabel:k,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:ie=>q("country",ie)})}),_.jsx("div",{className:"col-lg-6 mt-3",children:_.jsx(Qg,{title:"Cities",stats:te,highlightedStats:Ug(E,"city"),highlightedLabel:k,extraHeaderContent:ie=>W.length>0&&_.jsx(KBe,{modalTitle:"Cities",locations:W,activeCities:ie}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:ie=>q("city",ie)})})]})}),_.jsx(Et,{path:vs.list.subPath,element:_.jsx("div",{className:"col-12",children:_.jsx(b2e,{visits:z,selectedVisits:E,setSelectedVisits:re,isOrphanVisits:s})})}),o&&_.jsx(Et,{path:vs.options.subPath,element:_.jsx("div",{className:"col-12 mt-3",children:_.jsx(XBe,{...o})})}),_.jsx(Et,{path:"*",element:_.jsx(Yk,{replace:!0,to:I(vs.byTime.subPath)})})]})})]});return _.jsxs(_.Fragment,{children:[t,_.jsx("section",{className:"mt-3",children:_.jsxs("div",{className:"row flex-md-row-reverse",children:[_.jsx("div",{className:"col-lg-7 col-xl-6",children:_.jsxs("div",{className:"d-md-flex",children:[_.jsx("div",{className:"flex-fill",children:_.jsx(z9,{updatable:!0,disabled:u,initialDateRange:O.current,defaultText:"All visits",onDatesChange:x})}),_.jsx(ZBe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,selected:V,onChange:ie=>y({visitsFilter:ie})})]})}),l.length>0&&_.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:_.jsxs("div",{className:"d-flex",children:[_.jsx(i9,{className:"btn-md-block",amount:z.length,onClick:()=>a(z)}),_.jsxs(wt,{outline:!0,disabled:E.length===0,className:"btn-md-block ms-2",onClick:()=>re([]),children:["Clear selection ",E.length>0&&_.jsxs(_.Fragment,{children:["(",bn(E.length),")"]})]})]})})]})}),_.jsx("section",{className:"mt-3",children:ee()})]})},AW=cl(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=an(AW),i=md(),{domain:o=""}=ad(),[a,s=a]=o.split("_");return _.jsx(Pv,{getVisits:(l,u)=>e({domain:s,query:gv(l),doIntervalFallback:u}),cancelGetVisits:n,visitsInfo:t,exportCsv:l=>r.exportVisits(`domain_${a}_visits.csv`,l),children:_.jsx(yv,{goBack:i,visits:t.visits,title:`"${a}" visits`})})},()=>[Ri.visits]),_2e=sn(AW,["ReportExporter"]),NW=cl(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=an(NW),i=md();return _.jsx(Pv,{getVisits:(o,a)=>e({query:gv(o),doIntervalFallback:a}),cancelGetVisits:n,visitsInfo:t,exportCsv:o=>r.exportVisits("non_orphan_visits.csv",o),children:_.jsx(yv,{title:"Non-orphan visits",goBack:i,visits:t.visits})})},()=>[Ri.visits]),w2e=sn(NW,["ReportExporter"]),MW=cl(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=Nu("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:gv(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 _.jsx(Pv,{getVisits:u,cancelGetVisits:n,visitsInfo:t,exportCsv:l,deletion:f,isOrphanVisits:!0,children:_.jsx(yv,{title:"Orphan visits",goBack:s,visits:t.visits})})},()=>[Ri.orphanVisits]),x2e=sn(MW,["ReportExporter"]),LW="shlink/orphanVisits",O2e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},S2e=e=>dv({typePrefix:`${LW}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1})=>{const r=e(),i=async(a,s)=>r.getNonOrphanVisits({...t,page:a,itemsPerPage:s}),o=pv(n,a=>r.getNonOrphanVisits(a));return[i,o]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),E2e=e=>hv({name:LW,initialState:O2e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>uv(o.date,r,i))}}),RW="shlink/orphanVisits",T2e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},C2e=(e,t)=>!t||t===e.type,k2e=e=>dv({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=>RP(d)&&C2e(d,t));return{...u,data:f}}),a=pv(r,s=>i.getOrphanVisits(s));return[o,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),j2e=(e,t)=>hv({name:RW,initialState:T2e,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&&uv(a.date,i,o))}}),DW="shlink/orphanVisitsDeletion",p8={deletedVisits:0,deleting:!1,error:!1},P2e=e=>_r(`${DW}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),A2e=e=>Yn({name:DW,initialState:p8,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{...p8,deletedVisits:i}})}}),IW="shlink/shortUrlVisits",N2e={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},M2e=e=>dv({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=pv(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}),L2e=(e,t)=>hv({name:IW,initialState:N2e,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)&&uv(u.date,a,s))}}),FW="shlink/shortUrlVisitsDeletion",h8={shortCode:"",deletedVisits:0,deleting:!1,error:!1},R2e=e=>_r(`${FW}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),D2e=e=>Yn({name:FW,initialState:h8,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{...h8,shortCode:i,domain:o,deletedVisits:a}})}}),UW="shlink/tagVisits",I2e={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},F2e=e=>dv({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=pv(r,async s=>i.getTagVisits(t,s));return[o,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),U2e=e=>hv({name:UW,initialState:I2e,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))&&uv(s.date,i,o))}}),$W="shlink/visitsOverview",ty={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},m8=e=>e.filter(({visit:t})=>t.potentialBot).length,$2e=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}}))),B2e=e=>Yn({name:$W,initialState:ty,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...ty,loading:!0})),t.addCase(e.rejected,()=>({...ty,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...ty,...r})),t.addCase(fv,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=k_e(o.createdVisits),l=a.length,u=m8(a),f=l-u,d=s.length,p=m8(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}}})}}),z2e=({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 _.jsxs(yv,{title:_.jsxs(_.Fragment,{children:["Visits for ",_.jsx(Sa,{href:a})]}),goBack:n,visits:o,shortUrl:r,children:[_.jsx("hr",{}),_.jsxs("div",{children:["Created: ",(()=>r?_.jsxs("span",{children:[_.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:_.jsx(nb,{date:r.dateCreated,relative:!0})}),_.jsx(qr,{placement:"bottom",target:"created",children:_.jsx(nb,{date:r.dateCreated})})]}):_.jsx("small",{children:"Loading..."}))()]}),_.jsxs("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&_.jsx("small",{children:"Loading..."}),!i&&_.jsx(Sa,{href:s,children:l??s})]})]})},BW=cl(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{var s;const l=Nu("shortUrlVisitsDeletion"),{ReportExporter:u}=an(BW),f=X2(),{search:d}=Nn(),p=md(),{domain:m}=dd(d),v=F.useCallback((y,b)=>r({shortCode:f,query:{...gv(y),domain:m},doIntervalFallback:b}),[m,r,f]),g=F.useCallback(y=>{var b;return u.exportVisits(`short-url_${(b=n.shortUrl)==null?void 0:b.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]),_.jsx(Pv,{getVisits:v,cancelGetVisits:a,visitsInfo:e,exportCsv:g,deletion:w,children:_.jsx(z2e,{shortUrlDetail:n,shortUrlVisits:e,goBack:p})})},e=>e.shortCode?[Ri.shortUrlVisits(u2(e.shortCode))]:[]),V2e=sn(BW,["ReportExporter"]),H2e=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e;return _.jsx(yv,{title:_.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[_.jsx("span",{className:"me-2",children:"Visits for"}),_.jsx(_P,{text:i,colorGenerator:n})]}),goBack:t,visits:r})},zW=cl(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=an(zW),o=md(),{tag:a=""}=ad();return _.jsx(Pv,{getVisits:(s,l)=>e({tag:a,query:gv(s),doIntervalFallback:l}),cancelGetVisits:n,visitsInfo:t,exportCsv:s=>i.exportVisits(`tag_${a}_visits.csv`,s),children:_.jsx(H2e,{tagVisits:t,goBack:o,colorGenerator:r})})},()=>[Ri.visits]),W2e=sn(zW,["ColorGenerator","ReportExporter"]),Y2e=(e,t)=>{e.serviceFactory("MapModal",()=>EW),e.factory("ShortUrlVisits",V2e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlDetail","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",W2e),e.decorator("TagVisits",t(["tagVisits","mercureInfo"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.factory("DomainVisits",_2e),e.decorator("DomainVisits",t(["domainVisits","mercureInfo"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.factory("OrphanVisits",x2e),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo","deleteOrphanVisits"])),e.factory("NonOrphanVisits",w2e),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>h2e),e.serviceFactory("getShortUrlVisits",M2e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",n=>n.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("deleteShortUrlVisits",R2e,"apiClientFactory"),e.serviceFactory("getTagVisits",F2e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",n=>n.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",Nme,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",n=>n.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",k2e,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",n=>n.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",P2e,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",S2e,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",n=>n.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>fv),e.serviceFactory("loadVisitsOverview",$2e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",B2e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",n=>n.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",Mme,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",n=>n.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",E2e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",n=>n.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",j2e,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",n=>n.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",A2e,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",n=>n.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",L2e,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",n=>n.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",D2e,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",n=>n.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",U2e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",n=>n.reducer,"tagVisitsReducerCreator")},bp=({children:e,to:t,className:n,...r})=>_.jsx(h$,{className:({isActive:i})=>We("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),G2e=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Nn(),r=We("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return _.jsx("aside",{className:r,children:_.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[_.jsxs(bp,{to:i("/overview"),children:[_.jsx(Le,{fixedWidth:!0,icon:_J}),_.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),_.jsxs(bp,{to:i("/list-short-urls/1"),className:We({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[_.jsx(Le,{fixedWidth:!0,icon:P$}),_.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),_.jsxs(bp,{to:i("/create-short-url"),children:[_.jsx(Le,{fixedWidth:!0,icon:EJ,flip:"horizontal"}),_.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),_.jsxs(bp,{to:i("/manage-tags"),children:[_.jsx(Le,{fixedWidth:!0,icon:A$}),_.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),_.jsxs(bp,{to:i("/manage-domains"),children:[_.jsx(Le,{fixedWidth:!0,icon:eJ}),_.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=Mu(),[v,g,w,y]=En();F.useEffect(()=>y(),[p,y]);const b=Nu("domainVisits"),x=We("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":v}),O=qme(w,y);return _.jsxs(_.Fragment,{children:[_.jsx(Le,{icon:KQ,className:x,onClick:g}),_.jsx("div",{...O,className:"shlink-layout__swipeable",children:_.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[_.jsx(G2e,{routePrefix:m,showOnMobile:v}),_.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>y(),children:_.jsx("div",{className:"container-xl",children:_.jsxs(C_,{children:[_.jsx(Et,{index:!0,element:_.jsx(Yk,{replace:!0,to:"overview"})}),_.jsx(Et,{path:"/overview",element:_.jsx(u,{})}),_.jsx(Et,{path:"/list-short-urls/:page",element:_.jsx(n,{})}),_.jsx(Et,{path:"/create-short-url",element:_.jsx(r,{})}),_.jsx(Et,{path:"/short-code/:shortCode/visits/*",element:_.jsx(i,{})}),_.jsx(Et,{path:"/short-code/:shortCode/edit",element:_.jsx(f,{})}),_.jsx(Et,{path:"/tag/:tag/visits/*",element:_.jsx(o,{})}),b&&_.jsx(Et,{path:"/domain/:domain/visits/*",element:_.jsx(a,{})}),_.jsx(Et,{path:"/orphan-visits/*",element:_.jsx(s,{})}),_.jsx(Et,{path:"/non-orphan-visits/*",element:_.jsx(l,{})}),_.jsx(Et,{path:"/manage-tags",element:_.jsx(t,{})}),_.jsx(Et,{path:"/manage-domains",element:_.jsx(d,{})}),e&&_.jsx(Et,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},q2e=sn(VW,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains"]),K2e=!0,Z2e=e=>VB({devTools:!K2e,reducer:Hj({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})}),X2e=e=>{e.factory("Main",q2e),e.factory("store",Z2e)},oa=new cde,{container:Q2e}=oa,J2e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),e9e=(e,t)=>(...n)=>e[t](...n),t9e=(e,t)=>({...e,[t]:e9e(Q2e,t)}),Av=(e,t=[])=>n$(e?J2e(e):null,t.reduce(t9e,{}));X2e(oa);I0e(oa,Av);r_e(oa,Av);Y2e(oa,Av);sve(oa);ive(oa,Av);wve(oa,Av);T_e(oa);let v8;const n9e=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=xde(t),l=F.useRef(),[u,f]=F.useState(),d=Pu(),[p,m]=F.useMemo(()=>d?[F.Fragment,{}]:[p$,{basename:i}],[d,i]);return F.useEffect(()=>{v8=n,e.value("apiClientFactory",()=>v8),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:g,store:w,loadMercureInfo:y,listTags:b}=v;l.current=_.jsx(g,{createNotFound:o}),f(w),w.dispatch(y(r)),w.dispatch(b())},[n,o,r,a]),u?_.jsx(r$,{store:u,children:_.jsx(bve,{value:r,children:_.jsx(wde,{value:s,children:_.jsx(Ode,{value:i,children:_.jsx(p,{...m,children:l.current})})})})}):_.jsx(_.Fragment,{})},r9e="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=",i9e="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==",o9e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",a9e=()=>{delete c8.Icon.Default.prototype._getIconUrl,c8.Icon.Default.mergeOptions({iconRetinaUrl:i9e,iconUrl:r9e,shadowUrl:o9e})};a9e();const s9e=n9e(oa);function s_(e){return t=>{const{resetSelectedServer:n}=t;return F.useEffect(()=>{n()},[n]),_.jsx(e,{...t})}}let l9e=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 _.jsx("div",{className:"home",children:_.jsxs(vn,{className:"p-4",children:[_.jsx("h1",{children:"Oops! This is awkward :S"}),_.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),_.jsx("br",{}),_.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})=>_.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),u9e=({id:e,name:t})=>_.jsxs(nB,{tag:Yt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,_.jsx(Le,{icon:PJ,className:"servers-list__server-item-icon"})]}),WW=({servers:e,children:t,embedded:n=!1})=>_.jsxs(_.Fragment,{children:[t&&_.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&_.jsx(J7,{"data-testid":"list",tag:"div",className:hd("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>_.jsx(u9e,{id:r,name:i},r))})]}),YW=({color:e=B0,className:t})=>_.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{fill:e,children:[_.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"}),_.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"}),_.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"}),_.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"})]})}),c9e=({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]),_.jsx("div",{className:"home",children:_.jsx(ui,{className:"home__main-card",children:_.jsxs(kr,{className:"g-0",children:[_.jsx("div",{className:"col-md-5 d-none d-md-block",children:_.jsx("div",{className:"home__logo-wrapper",children:_.jsx("div",{className:"home__logo",children:_.jsx(YW,{})})})}),_.jsxs("div",{className:"col-md-7 home__servers-container",children:[_.jsx("div",{className:"home__title-wrapper",children:_.jsx("h1",{className:"home__title",children:"Welcome!"})}),_.jsx(WW,{embedded:!0,servers:n,children:!r&&_.jsxs("div",{className:"p-4 text-center",children:[_.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),_.jsx("p",{children:_.jsxs(Yt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[_.jsx(Le,{icon:tj})," ",_.jsx("span",{className:"ms-1",children:"Add a server"})]})}),_.jsx("p",{className:"mb-0 mt-5",children:_.jsx(HW,{href:"https://shlink.io/documentation",children:_.jsxs("small",{children:[_.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",_.jsx(Le,{icon:fJ})]})})})]})})]})]})})})},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 _.jsxs(b7,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[_.jsxs(_7,{tag:Yt,to:"/",children:[_.jsx(YW,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),_.jsx(w7,{onClick:n,children:_.jsx(Le,{icon:kJ,className:s})}),_.jsx(Coe,{navbar:!0,isOpen:t,children:_.jsxs(gj,{navbar:!0,className:"ms-auto",children:[_.jsx(yj,{children:_.jsxs(S7,{tag:Yt,to:a,active:o.startsWith(a),children:[_.jsx(Le,{icon:MJ})," Settings"]})}),_.jsx(e,{})]})})]})},f9e=qi(GW,["ServersDropdown"]),d9e=({children:e})=>{const t=Nn();return F.useEffect(()=>{scrollTo(0,0)},[t]),_.jsx(_.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&&e[r]!==void 0?KW(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},p9e=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,g8=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(p9e);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},y8=e=>e==="*"||e==="x"||e==="X",b8=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},h9e=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],m9e=(e,t)=>{if(y8(e)||y8(t))return 0;const[n,r]=h9e(b8(e),b8(t));return n>r?1:n<r?-1:0},_8=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=m9e(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},v9e=(e,t)=>{const n=g8(e),r=g8(t),i=n.pop(),o=r.pop(),a=_8(n,r);return a!==0?a:i&&o?_8(i.split("."),o.split(".")):i||o?i?-1:1:0},g9e=(e,t,n)=>{y9e(n);const r=v9e(e,t);return ZW[n].includes(r)},ZW={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},w8=Object.keys(ZW),y9e=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(w8.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${w8.join("|")}`)},XW=qW(e=>e,e=>{try{return g9e(e,e,"=")}catch{return!1}}),QW=e=>XW(e)?`v${e}`:e,JW=(e,t="latest")=>XW(e)?e:t,b9e="%_VERSION_%",_9e=e=>QW(JW(e)),x8=({project:e,version:t})=>_.jsx(HW,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:_.jsx("b",{children:t})}),w9e=({selectedServer:e,clientVersion:t=b9e})=>{const n=_9e(t);return _.jsxs("small",{className:"text-muted",children:[k$(e)&&_.jsxs(_.Fragment,{children:["Server: ",_.jsx(x8,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",_.jsx(x8,{project:"shlink-web-client",version:n})]})},x9e=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,O9e=({selectedServer:e})=>{const{pathname:t}=Nn(),n=F.useMemo(()=>x9e.test(t),[t]),r=hd("text-center",{"shlink-versions-container--with-sidebar":n});return _.jsx("div",{className:r,children:_.jsx(w9e,{selectedServer:e})})},Md=({children:e})=>_.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?DQ(a)?_.jsx(r,{}):_.jsx(e,{...n}):_.jsx(Md,{children:_.jsx(Da,{loading:!0})})};return t}const tY=eY(F.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Gi(tY);if(!k$(e))return _.jsx(o,{});const a=`/server/${e.id}`;return _.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:a,tagColorsStorage:r,createNotFound:s=>_.jsx(kB,{to:`${a}${s}`,children:"List short URLs"})})})),S9e=qi(tY,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),E9e=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Rfe,"fetch"),e.serviceFactory("ScrollToTop",()=>d9e),e.factory("MainHeader",f9e),e.serviceFactory("Home",()=>c9e),e.decorator("Home",s_),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>s9e),e.factory("ShlinkWebComponentContainer",S9e),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>O9e),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>l9e)};let ny;const T9e=new Uint8Array(16);function C9e(){if(!ny&&(ny=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ny))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ny(T9e)}const or=[];for(let e=0;e<256;++e)or.push((e+256).toString(16).slice(1));function k9e(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 j9e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),O8={randomUUID:j9e};function nY(e,t,n){if(O8.randomUUID&&!t&&!e)return O8.randomUUID();e=e||{};const r=e.random||(e.rng||C9e)();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 k9e(r)}const rY=()=>{const e=ta();return F.useCallback(()=>e(-1),[e])},P9e=()=>{const{search:e}=Nn();return F.useMemo(()=>dd(e),[e])},iY=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return _.jsxs(Ka,{centered:!0,isOpen:e,children:[_.jsxs(Za,{children:["Duplicated server",i&&"s"]}),_.jsxs(na,{children:[_.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),_.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?_.jsxs("li",{children:[_.jsx("b",{children:o})," - ",_.jsx("b",{children:a})]},s):_.jsxs(F.Fragment,{children:[_.jsxs("li",{children:["URL: ",_.jsx("b",{children:o})]}),_.jsxs("li",{children:["API key: ",_.jsx("b",{children:a})]})]},s))}),_.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),_.jsxs(Au,{children:[_.jsx(wt,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),_.jsx(wt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},A9e=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=A9e(()=>e({name:i,url:a,apiKey:l}));return F.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&u(t.apiKey)},[t]),_.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[_.jsxs(vn,{className:"mb-3",title:r,children:[_.jsx(wy,{value:i,onChange:o,children:"Name"}),_.jsx(wy,{type:"url",value:a,onChange:s,children:"URL"}),_.jsx(wy,{value:l,onChange:u,children:"API key"})]}),_.jsx("div",{className:"text-end",children:n})]})},S8=4e3,E8=({type:e})=>_.jsx("div",{className:"mt-3",children:_.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,S8),[u,f]=r(!1,S8),[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:b})=>(m==null?void 0:m.url)===y&&(m==null?void 0:m.apiKey)===b)?p():g(m)},[g,m,e,p]),_.jsxs(Md,{children:[_.jsxs(oY,{title:_.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!a&&_.jsx(n,{tooltipPlacement:"top",onImport:l,onImportError:f}),a&&_.jsx(wt,{outline:!0,onClick:o,children:"Cancel"}),_.jsx(wt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&_.jsx(E8,{type:"success"}),u&&_.jsx(E8,{type:"error"}),_.jsx(iY,{isOpen:d,duplicatedServers:m?[m]:[],onDiscard:o,onSave:()=>m&&g(m)})]})},N9e=qi(aY,["ImportServersBtn","useTimeoutToggle"]),sY=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Gi(sY),[o,,a,s]=En();return _.jsxs(_.Fragment,{children:[_.jsxs("button",{type:"button",className:hd(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&_.jsx(Le,{fixedWidth:!0,icon:Xk}),_.jsx("span",{className:r,children:n??"Remove this server"})]}),_.jsx(i,{server:e,isOpen:o,toggle:s})]})},M9e=qi(sY,["DeleteServerModal"]),L9e=({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 _.jsxs(Ka,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[_.jsx(Za,{toggle:t,className:"text-danger",children:"Remove server"}),_.jsxs(na,{children:[_.jsxs("p",{children:["Are you sure you want to remove ",_.jsx("b",{children:e?e.name:""}),"?"]}),_.jsx("p",{children:_.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."})})]}),_.jsxs(Au,{children:[_.jsx(wt,{color:"link",onClick:t,children:"Cancel"}),_.jsx(wt,{color:"danger",onClick:s,children:"Delete"})]})]})},R9e=eY(({editServer:e,selectedServer:t,selectServer:n})=>{const r=rY(),{reconnect:i}=P9e();if(!Vp(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return _.jsx(Md,{children:_.jsxs(oY,{title:_.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[_.jsx(wt,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),_.jsx(wt,{outline:!0,color:"primary",children:"Save"})]})})}),D9e=qi(R9e,["ServerError"]),T8=(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=ul(),[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=>T8(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]),b=F.useCallback(()=>{g(v.current.filter(x=>!T8(u,x))),m()},[g,u,m]);return _.jsxs(_.Fragment,{children:[_.jsxs(wt,{outline:!0,id:"importBtn",className:a,onClick:()=>{var x;return(x=l.current)==null?void 0:x.click()},children:[_.jsx(Le,{icon:rJ,fixedWidth:!0})," ",n??"Import from file"]}),_.jsxs(qr,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",_.jsx("b",{children:"name"}),", ",_.jsx("b",{children:"apiKey"})," and ",_.jsx("b",{children:"url"})," columns."]}),_.jsx("input",{type:"file",accept:"text/csv",className:"d-none",ref:l,onChange:w,"aria-hidden":!0}),_.jsx(iY,{isOpen:d,duplicatedServers:u,onDiscard:b,onSave:y})]})},I9e=qi(lY,["ServersImporter"]),uY=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Gi(uY);return _.jsx(Md,{children:_.jsxs("div",{className:"server-error__container flex-column",children:[_.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)&&_.jsxs(_.Fragment,{children:[_.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."]})]}),_.jsx(WW,{servers:Object.values(e),children:_.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",_.jsx(Yt,{to:"/server/create",children:"add a new one"}),"."]})}),Vp(t)&&_.jsx("div",{className:"container mt-3 mt-md-5",children:_.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",_.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",_.jsx(Yt,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},F9e=qi(uY,["DeleteServerButton"]),U9e=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,U9e);return F.useEffect(()=>{s(Object.values(e))},[e]),_.jsxs(Md,{children:[_.jsx(sv,{className:"mb-3",onChange:l}),_.jsxs(kr,{className:"mb-3",children:[_.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[_.jsx(n,{className:"flex-fill",onImportError:d,children:"Import servers"}),o.length>0&&_.jsxs(wt,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[_.jsx(Le,{icon:M$,fixedWidth:!0})," Export servers"]})]}),_.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:_.jsxs(wt,{outline:!0,color:"primary",className:"flex-fill",tag:Yt,to:"/server/create",children:[_.jsx(Le,{icon:tj,fixedWidth:!0})," Add a server"]})})]}),_.jsx(vn,{children:_.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[_.jsx("thead",{className:"responsive-table__header",children:_.jsxs("tr",{children:[u&&_.jsx("th",{style:{width:"50px"},children:_.jsx("span",{className:"sr-only",children:"Auto-connect"})}),_.jsx("th",{children:"Name"}),_.jsx("th",{children:"Base URL"}),_.jsx("th",{children:_.jsx("span",{className:"sr-only",children:"Options"})})]})}),_.jsxs("tbody",{children:[!a.length&&_.jsx("tr",{className:"text-center",children:_.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(p=>_.jsx(i,{server:p,hasAutoConnect:u},p.id))]})]})}),f&&_.jsx("div",{className:"mt-3",children:_.jsx(ii,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},$9e=qi(cY,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),fY=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Gi(fY);return _.jsxs("tr",{className:"responsive-table__row",children:[t&&_.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&_.jsxs(_.Fragment,{children:[_.jsx(Le,{icon:Mh,className:"text-primary",id:"autoConnectIcon"}),_.jsx(qr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),_.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:_.jsx(Yt,{to:`/server/${e.id}`,children:e.name})}),_.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),_.jsx("td",{className:"responsive-table__cell text-end",children:_.jsx(n,{server:e})})]})},B9e=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?tJ:$fe;return _.jsxs(U_,{minWidth:170,children:[_.jsxs(ze,{tag:Yt,to:a,children:[_.jsx(Le,{icon:JQ,fixedWidth:!0})," Connect"]}),_.jsxs(ze,{tag:Yt,to:`${a}/edit`,children:[_.jsx(Le,{icon:Qk,fixedWidth:!0})," Edit server"]}),_.jsxs(ze,{onClick:()=>t(e,!s),children:[_.jsx(Le,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),_.jsx(ze,{divider:!0,tag:"hr"}),_.jsxs(ze,{className:"dropdown-item--danger",onClick:i,children:[_.jsx(Le,{icon:Xk,fixedWidth:!0})," Remove server"]}),_.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},z9e=qi(dY,["DeleteServerModal"]),pY=(e,t)=>WB(e,t,{serializeError:n=>n}),V9e={},H9e=e=>"id"in e?e:{...e,id:nY()},W9e=e=>e.reduce((t,n)=>({...t,[n.id]:n}),{}),{actions:Y9e,reducer:G9e}=Yn({name:"shlink/servers",initialState:V9e,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:W9e(e.map(H9e))}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:q9e,deleteServer:K9e,setAutoConnect:Z9e,createServers:hY}=Y9e,X9e=G9e,Q9e=e=>Array.isArray(e)?e.filter(C$):[],J9e=e=>pY("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${l0.homepage}/servers.json`),i=Q9e(r);n(hY(i))}),zA="shlink/selectedServer",eze="1.0.0",tze="999.999.999",nze="latest",rze=e=>JW(e===nze?tze:e,eze),ize=qW(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:rze(n),printableVersion:QW(n)}))),C8=null,VA=Wn(`${zA}/resetSelectedServer`),oze=e=>pY(`${zA}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(VA());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:l}=await ize(o,()=>a.health());return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),aze=e=>Yn({name:zA,initialState:C8,reducers:{},extraReducers:t=>{t.addCase(VA,()=>C8),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),sze=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?_.jsxs(ze,{tag:Yt,to:"/server/create",children:[_.jsx(Le,{icon:tj})," ",_.jsx("span",{className:"ms-1",children:"Add a server"})]}):_.jsxs(_.Fragment,{children:[n.map(({name:i,id:o})=>_.jsx(ze,{tag:Yt,to:`/server/${o}`,active:IQ(t)===o,children:i},o)),_.jsx(ze,{divider:!0,tag:"hr"}),_.jsxs(ze,{tag:Yt,to:"/manage-servers",children:[_.jsx(Le,{icon:mM})," ",_.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return _.jsxs(ov,{nav:!0,inNavbar:!0,children:[_.jsxs(ud,{nav:!0,caret:!0,children:[_.jsx(Le,{icon:mM})," ",_.jsx("span",{className:"ms-1",children:"Servers"})]}),_.jsx(ld,{end:!0,style:{right:0},children:r()})]})},lze=({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)},uze=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);lze(e,i,n)},cze="shlink-servers.csv";class fze{constructor(t,n,r){Zu(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(FQ);try{const n=this.jsonToCsv(t);uze(this.window,n,cze)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const dze=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",pze=e=>Array.isArray(e)&&e.every(dze);class hze{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(!pze(r))throw new Error("Provided file does not have the right format.");return r}}const mze=(e,t)=>{e.factory("ManageServers",$9e),e.decorator("ManageServers",s_),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",B9e),e.factory("ManageServersRowDropdown",z9e),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",N9e),e.decorator("CreateServer",s_),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",D9e),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>sze),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>L9e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",M9e),e.factory("ImportServersBtn",I9e),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",F9e),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",hze,"csvToJson"),e.service("ServersExporter",fze,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",oze,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>hY),e.serviceFactory("deleteServer",()=>K9e),e.serviceFactory("editServer",()=>q9e),e.serviceFactory("setAutoConnect",()=>Z9e),e.serviceFactory("fetchServers",J9e,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>VA),e.serviceFactory("selectedServerReducerCreator",aze,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},Qc=({children:e})=>_.jsx("small",{className:"form-text text-muted d-block",children:e}),vze=e=>e?`${e}`:"",gze=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=F_();return _.jsxs(vn,{title:"Real-time updates",className:"h-100",children:[_.jsx(ni,{children:_.jsxs(_f,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",_.jsxs(Qc,{children:["Real-time updates are currently being ",_.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),_.jsxs(pd,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:hd("form-label",{"text-muted":!r.enabled}),id:i,children:[_.jsx(yu,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:vze(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&_.jsxs(Qc,{children:[r.interval!==void 0&&r.interval>0&&_.jsxs("span",{children:["Updates will be reflected in the UI every ",_.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"},yze={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:zj()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:mY}},bze=(e,{payload:t})=>KW(e,t),Cl=e=>({reducer:bze,prepare:e}),kl=e=>({payload:e}),{reducer:_ze,actions:wze}=Yn({name:"shlink/settings",initialState:yze,reducers:{toggleRealTimeUpdates:Cl(e=>kl({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:Cl(e=>kl({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:Cl(e=>kl({shortUrlCreation:e})),setShortUrlsListSettings:Cl(e=>kl({shortUrlsList:e})),setUiSettings:Cl(e=>kl({ui:e})),setVisitsSettings:Cl(e=>kl({visits:e})),setTagsSettings:Cl(e=>kl({tags:e}))}}),{toggleRealTimeUpdates:xze,setRealTimeUpdatesInterval:Oze,setShortUrlCreationSettings:Sze,setShortUrlsListSettings:Eze,setUiSettings:Tze,setVisitsSettings:Cze,setTagsSettings:kze}=wze,jze=_ze,o1=({items:e})=>_.jsx(_.Fragment,{children:e.map((t,n)=>_.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 _.jsxs(Md,{children:[_.jsxs(EB,{className:"mb-3",children:[_.jsx(Qp,{to:"general",children:"General"}),_.jsx(Qp,{to:"short-urls",children:"Short URLs"}),_.jsx(Qp,{to:"other-items",children:"Other items"})]}),_.jsxs(C_,{children:[_.jsx(Et,{path:"general",element:_.jsx(o1,{items:[_.jsx(r,{}),_.jsx(e,{})]})}),_.jsx(Et,{path:"short-urls",element:_.jsx(o1,{items:[_.jsx(t,{}),_.jsx(n,{})]})}),_.jsx(Et,{path:"other-items",element:_.jsx(o1,{items:[_.jsx(o,{}),_.jsx(i,{})]})}),_.jsx(Et,{path:"*",element:_.jsx(Yk,{replace:!0,to:"general"})})]})]})},Pze=qi(vY,["RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"]),a1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Aze=e=>e==="includes"?_.jsxs(_.Fragment,{children:["The list of suggested tags will contain those ",_.jsx("b",{children:"including"})," provided input."]}):_.jsxs(_.Fragment,{children:["The list of suggested tags will contain those ",_.jsx("b",{children:"starting with"})," provided input."]}),Nze=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return _.jsxs(vn,{title:"Short URLs form",className:"h-100",children:[_.jsx(ni,{children:_.jsxs(_f,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",_.jsxs(Qc,{children:["The initial state of the ",_.jsx("b",{children:"Validate URL"})," checkbox will be ",_.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),_.jsx(ni,{children:_.jsxs(_f,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",_.jsxs(Qc,{children:["The initial state of the ",_.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",_.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),_.jsxs(pd,{noMargin:!0,label:"Tag suggestions search mode:",children:[_.jsxs(Xa,{text:a1(n.tagFilteringMode),children:[_.jsx(ze,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:a1("startsWith")}),_.jsx(ze,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:a1("includes")})]}),_.jsx(Qc,{children:Aze(n.tagFilteringMode)})]})]})},Mze={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Lze=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>_.jsx(vn,{title:"Short URLs list",className:"h-100",children:_.jsx(pd,{noMargin:!0,label:"Default ordering for short URLs list:",children:_.jsx(lv,{items:Mze,order:(e==null?void 0:e.defaultOrdering)??mY,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),Rze={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Dze=({settings:{tags:e},setTagsSettings:t})=>_.jsx(vn,{title:"Tags",className:"h-100",children:_.jsx(pd,{noMargin:!0,label:"Default ordering for tags list:",children:_.jsx(lv,{items:Rze,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})}),Ize=({settings:{ui:e},setUiSettings:t,_matchMedia:n})=>{const r=F.useMemo(()=>(e==null?void 0:e.theme)??zj(n),[e==null?void 0:e.theme,n]);return _.jsxs(vn,{title:"User interface",className:"h-100",children:[_.jsx(Le,{icon:r==="dark"?RJ:SJ,className:"user-interface__theme-icon"}),_.jsx(_f,{checked:r==="dark",onChange:i=>{t({...e,theme:i?"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"},Fze=(e,t)=>!e||e==="all"?t:gY[e],Uze=({onChange:e,active:t,allText:n})=>_.jsxs(Xa,{text:Fze(t,n),children:[_.jsx(ze,{active:t==="all",onClick:()=>e("all"),children:n}),_.jsx(ze,{divider:!0}),Object.entries(gY).map(([r,i])=>_.jsx(ze,{active:t===r,onClick:()=>e(r),children:i},r))]}),k8=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},$ze=({settings:e,setVisitsSettings:t})=>{var n,r;return _.jsxs(vn,{title:"Visits",className:"h-100",children:[_.jsx(ni,{children:_.jsxs(_f,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:k8(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",_.jsxs(Qc,{children:["The visits coming from potential bots will be ",_.jsx("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),_.jsx(pd,{noMargin:!0,label:"Default interval to load on visits sections:",children:_.jsx(Uze,{allText:"All visits",active:k8(e),onChange:i=>t({defaultInterval:i})})})]})},Bze=(e,t)=>{e.factory("Settings",Pze),e.decorator("Settings",s_),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>gze),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>Nze),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>Ize),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>$ze),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>Dze),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>Lze),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>xze),e.serviceFactory("setRealTimeUpdatesInterval",()=>Oze),e.serviceFactory("setShortUrlCreationSettings",()=>Sze),e.serviceFactory("setShortUrlsListSettings",()=>Eze),e.serviceFactory("setUiSettings",()=>Tze),e.serviceFactory("setVisitsSettings",()=>Cze),e.serviceFactory("setTagsSettings",()=>kze)};function s1(e){return e==null?"":`${e}`}function zze(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 HA(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 Vze(e={stringFormatter:HA()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Hze(e={stringFormatter:HA()}){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 Wze=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Yze(e){var t,n,r;const i=[];let o;for(;o=Wze.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 j8(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:Yze(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 P8;(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"})(P8||(P8={}));class Gze{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||HA(),i=Hze({stringFormatter:r}),o={header:r,undefined:s1,boolean:s1,number:zze(),bigint:s1,string:r,symbol:Vze({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=>j8(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=>j8(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 qze extends Gze{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 A8;(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"})(A8||(A8={}));var N8;(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"})(N8||(N8={}));var M8;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(M8||(M8={}));var L8;(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"})(L8||(L8={}));var Kze=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:b(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):b(j,[P],B,J,K);throw new TypeError("val must be string, number or Buffer")}function b(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(b){if(r===clearTimeout)return clearTimeout(b);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}(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 b=1;b<arguments.length;b++)y[b-1]=arguments[b];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=b;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 b(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 b(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),b.prototype.getBuffer=function(){for(var R=this.bufferedRequest,I=[];R;)I.push(R),R=R.next;return I},function(){try{Object.defineProperty(b.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 b}})):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(b){return f(s[m][1][b]||b)},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,b,x){this._lateQueue.push(y,b,x),this._queueTick()}function g(y,b,x){this._normalQueue.push(y,b,x),this._queueTick()}function w(y){this._normalQueue._pushOne(y),this._queueTick()}m.prototype.setScheduler=function(y){var b=this._schedule;return this._schedule=y,this._customScheduler=!0,b},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,b){b?(r.stderr.write("Fatal "+(y instanceof Error?y.stack:y)+`
|
||
`),r.exit(2)):this.throwLater(y)},m.prototype.throwLater=function(y,b){if(arguments.length===1&&(b=y,y=function(){throw b}),typeof setTimeout<"u")setTimeout(function(){y(b)},0);else try{this._schedule(function(){y(b)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(m.prototype.invokeLater=function(y,b,x){this._trampolineEnabled?v.call(this,y,b,x):this._schedule(function(){setTimeout(function(){y.call(b,x)},100)})},m.prototype.invoke=function(y,b,x){this._trampolineEnabled?g.call(this,y,b,x):this._schedule(function(){y.call(b,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 b=y.shift();if(typeof b=="function"){var x=y.shift(),O=y.shift();b.call(x,O)}else b._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(b,x){this._reject(x)},g=function(b,x){x.promiseRejectionQueued=!0,x.bindingPromise._then(v,v,null,this,b)},w=function(b,x){!(50397184&this._bitField)&&this._resolveCallback(x.target)},y=function(b,x){x.promiseRejectionQueued||this._reject(b)};u.prototype.bind=function(b){m||(m=!0,u.prototype._propagateFrom=p.propagateFromFunction(),u.prototype._boundValue=p.boundValueFunction());var x=d(b),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(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(b,x){return u.resolve(x).bind(b)}}},{}],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(b){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}(b,this.pop()).apply(b,this)}function w(b){return b[this]}function y(b){var x=+this;return x<0&&(x=Math.max(0,x+b.length)),b[x]}m.isIdentifier,p.prototype.call=function(b){var x=[].slice.call(arguments,1);return x.push(b),this._then(g,void 0,void 0,x,void 0)},p.prototype.get=function(b){var x;if(typeof b=="number")x=y;else if(v){var O=(void 0)(b);x=O!==null?O:w}else x=w;return this._then(x,void 0,void 0,b,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,b=y;y._isCancellable();){if(!y._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._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(),b=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,b){if(m.isArray(y))for(var x=0;x<y.length;++x)this._doInvokeOnCancel(y[x],b);else if(y!==void 0)if(typeof y=="function"){if(!b){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 b=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(b,y)}else if(typeof O=="function"){var E=p(O).call(b,y);if(E===m)return E;if(E)return p(g).call(b,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(b,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,b=u.prototype._promiseCreated;p.deactivateLongStackTraces=function(){u.prototype._pushContext=v,u.prototype._popContext=g,u._peekContext=w,u.prototype._peekContext=y,u.prototype._promiseCreated=b,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"),b=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(b(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"),b=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:b,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 b(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(!b(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()?(b(this),v.e=T,v):(b(this),T)}return w.prototype.isFinallyHandler=function(){return this.type===0},y.prototype._resultCancelled=function(){b(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,b=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=b(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=b(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=b(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=b(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=b(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 b=[].slice.call(arguments);w&&b.pop();var x=new f(b).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,b=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===b)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 b=g(w).apply(this,arguments),x=y._popContext();return m.checkForgottenReturns(b,x,"Promise.method",y),y._resolveFromSyncValue(b),y}},u.attempt=u.try=function(w){if(typeof w!="function")return p("expecting a function but got "+v.classString(w));var y,b=new u(f);if(b._captureStackTrace(),b._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=b._popContext();return m.checkForgottenReturns(y,E,"Promise.try",b),b._resolveFromSyncValue(y),b},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),b=0;b<y.length;++b){var x=y[b];m.test(x)||(w[x]=g[x])}return w}return u.markAsOriginatingFromRejection(g),g}s.exports=function(g,w){return function(y,b){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(b);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,b){if(!f.isArray(y))return g.call(this,y,b);var x=p(b).apply(this._boundValue(),[null].concat(y));x===m&&d.throwLater(x.e)}function g(y,b){var x=this._boundValue(),O=y===void 0?p(b).call(x,null):p(b).call(x,null,y);O===m&&d.throwLater(O.e)}function w(y,b){if(!y){var x=new Error(y+"");x.cause=y,y=x}var O=p(b).call(this._boundValue(),y);O===m&&d.throwLater(O.e)}u.prototype.asCallback=u.prototype.nodeify=function(y,b){if(typeof y=="function"){var x=g;b!==void 0&&Object(b).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"),b=new y;w.defineProperty($,"_async",{value:b});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 b.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),b.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(){b.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():b.settlePromises(this))}},$.prototype._reject=function(q){var ee=this._bitField;if(!((117506048&ee)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=q,this._isFinal())return b.fatalError(q,g.isNode);(65535&ee)>0?b.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,b,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,b){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,b);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):b===-5?this._resolveEmptyArray():this._resolve(function(T){switch(b){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 b=this._promise,x=!1,O=null,E=0;E<y;++E){var T=d(w[E],b);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||b._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,b={__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,b);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 b(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 b(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(b,f),b.prototype._init=function(){},b.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},b.prototype.shouldCopyValues=function(){return!1},b.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 b=d(w);if(b instanceof u)return v(b);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 b(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 b(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(b,f),b.prototype._gotAccum=function(k){this._eachValues!==void 0&&this._eachValues!==null&&k!==m&&this._eachValues.push(k)},b.prototype._eachComplete=function(k){return this._eachValues!==null&&this._eachValues.push(k),this._eachValues},b.prototype._init=function(){},b.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},b.prototype.shouldCopyValues=function(){return!1},b.prototype._resolve=function(k){this._promise._resolveCallback(k),this._values=null},b.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())},b.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,b=document.createElement("div");return new MutationObserver(function(){g.classList.toggle("foo"),y=!1}).observe(b,w),function(x){var O=new MutationObserver(function(){O.disconnect(),x()});O.observe(g,w),y||(y=!0,b.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 b(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 b(x,O)},u.prototype.some=function(x){return b(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 b=u.reject(y.e);return w&&w._popContext(),b}if(typeof y=="function")return function(x){try{return v.call(x,"_promise0")}catch{return!1}}(g)?(b=new u(f),g._then(b._fulfill,b._reject,void 0,b,null),b):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 b(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,b,void 0,k,void 0))._setOnCancel(k)):E=this._then(y,b,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,b=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 b.e=ie.error(),b;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 $}}(),b=/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=b.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 b=["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<b.length;ie++)V.on(b[ie],this.emit.bind(this,b[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(b){if(!b)return"utf8";for(var x;;)switch(b){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 b;default:if(x)return;b=(""+b).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,b,x){if((192&b[0])!=128)return y.lastNeed=0,"<22>";if(y.lastNeed>1&&b.length>1){if((192&b[1])!=128)return y.lastNeed=1,"<22>";if(y.lastNeed>2&&b.length>2&&(192&b[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(b,x,O){var E=x.length-1;if(E<O)return 0;var T=a(x[E]);return T>=0?(T>0&&(b.lastNeed=T-1),T):--E<O||T===-2?0:(T=a(x[E]))>=0?(T>0&&(b.lastNeed=T-2),T):--E<O||T===-2?0:(T=a(x[E]))>=0?(T>0&&(T===2?T=0:b.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(b){r(function(){y.result.processError(b),y.emit("done",b)})}),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,b=n(!function(){var x=new Error("Cannot find module 'fs'");throw x.code="MODULE_NOT_FOUND",x}());return b.exists(g,function(x){x?b.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(b){if(y>=g.length)this.push(null);else{var x=g.substr(y,b);this.push(x),y+=b}},this.fromStream(w)},v.prototype.then=function(g,w){var y=this;return new u.default(function(b,x){y.parseRuntime.then={onfulfilled:function(O){b(g?g(O):O)},onrejected:function(O){w?b(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 b=this;this.processor.process(g).then(function(x){if(x.length>0)return b.runtime.started=!0,b.result.processResult(x)}).then(function(){b.emit("drained"),y()},function(x){b.runtime.hasError=!0,b.runtime.error=x,b.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 b={callback:g,args:w};return u[l]=b,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 b=y.callback,x=y.args;switch(x.length){case 0:b();break;case 1:b(x[0]);break;case 2:b(x[0],x[1]);break;case 3:b(x[0],x[1],x[2]);break;default:b.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),b=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[b++]=m>>16&255,y[b++]=m>>8&255,y[b++]=255&m;return w===2&&(m=i[p.charCodeAt(O)]<<2|i[p.charCodeAt(O+1)]>>4,y[b++]=255&m),w===1&&(m=i[p.charCodeAt(O)]<<10|i[p.charCodeAt(O+1)]<<4|i[p.charCodeAt(O+2)]>>2,y[b++]=m>>8&255,y[b++]=255&m),y},t.fromByteArray=function(p){for(var m,v=p.length,g=v%3,w=[],y=0,b=v-g;y<b;y+=16383)w.push(d(p,y,y+16383>b?b: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,b){y.__proto__=b}||function(y,b){for(var x in b)b.hasOwnProperty(x)&&(y[x]=b[x])};return function(y,b){function x(){this.constructor=y}w(y,b),y.prototype=b===null?Object.create(b):(x.prototype=b.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 b=w!==null&&w.apply(this,arguments)||this;return b.rowSplit=new p.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(y,w),y.prototype.flush=function(){var b=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 b.runtime.csvLineBuffer&&b.runtime.csvLineBuffer.length>0?s.default.reject(v.default.unclosed_quote(b.runtime.parsedLineNumber,b.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(b,x){var O,E=this;return x===void 0&&(x=!1),O=x?b.toString():l.prepareData(b,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(b,x){var O=this,E=this.params,T=this.runtime;T.eol||u.default(b,T),this.needEmitEol&&!this.eolEmitted&&T.eol&&(this.converter.emit("eol",T.eol),this.eolEmitted=!0),E.ignoreEmpty&&!T.started&&(b=d.trimLeft(b));var k=f.stringToLines(b,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(b){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var x="",O=[];b.length;){var E=x+b.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(b)},y.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var b=this.runtime.headers,x=0;x<b.length;x++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(b[x])){if(!this.params.includeColumns||!this.params.includeColumns.test(b[x]))continue;this.runtime.selectedColumns.push(x)}else this.runtime.selectedColumns.push(x);else this.params.includeColumns?this.params.includeColumns.test(b[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(b){if(this.params.output==="line")return b;var x=this.rowSplit.parseMultiLines(b);return this.prependLeftBuf(d.bufFromString(x.partial)),this.params.output==="csv"?x.rowsCells:m.default(x.rowsCells,this.converter)},y.prototype.prependLeftBuf=function(b){b&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([b,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=b)},y.prototype.runPreLineHook=function(b){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()})(b,x.runtime,0,function(T){T?E(T):O(b)})})},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 b=u[w];!v&&f&&(b=o.trimLeft(b));var x=b.length;if(v)this.isQuoteClose(b)?(v=!1,g+=p+(b=b.substr(0,x-1)),g=this.escapeQuote(g),f&&(g=o.trimRight(g)),m.push(g),g=""):g+=p+b;else{if(x===2&&b===this.quote+this.quote){m.push("");continue}if(this.isQuoteOpen(b)){if(b=b.substr(1),this.isQuoteClose(b)){b=b.substring(0,b.lastIndexOf(d)),b=this.escapeQuote(b),m.push(b);continue}if(b.indexOf(d)!==-1){for(var O=0,E="",T=0,k=b;T<k.length;T++){var A=k[T];A===d&&E!==this.escape?(O++,E=""):E=A}if(O%2==1){f&&(b=o.trimRight(b)),m.push(d+b);continue}v=!0,g+=b;continue}v=!0,g+=b;continue}f&&(b=o.trimRight(b)),m.push(b)}}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,b,x){if(b.parseParam.checkColumn&&b.parseRuntime.headers&&y.length!==b.parseRuntime.headers.length)throw i.default.column_mismatched(b.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,b.parseRuntime.headers||[],b)||null}t.default=function(y,b){for(var x=[],O=0,E=y.length;O<E;O++){var T=s(y[O],b,O);T&&x.push(T)}return x};var l={string:g,number:v,omit:function(){}};function u(y,b,x){if(x.parseRuntime.columnConv[b]!==void 0)return x.parseRuntime.columnConv[b];var O=x.parseParam.colParser[y];if(O===void 0)return x.parseRuntime.columnConv[b]=null;if(typeof O=="object"&&(O=O.cellParser||"string"),typeof O=="string"){O=O.trim().toLowerCase();var E=l[O];return x.parseRuntime.columnConv[b]=E||null}return x.parseRuntime.columnConv[b]=typeof O=="function"?O:null}function f(y,b,x,O,E){if(!O.parseRuntime.columnValueSetter[E])if(O.parseParam.flatKeys)O.parseRuntime.columnValueSetter[E]=d;else if(b.indexOf(".")>-1){for(var T=b.split("."),k=!0;T.length>0;)if(T.shift().length===0){k=!1;break}!k||O.parseParam.colParser[b]&&O.parseParam.colParser[b].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,b,x)}function d(y,b,x){y[b]=x}function p(y,b,x){o.default(y,b,x)}function m(y,b,x,O){return O.parseRuntime.headerType[x]?O.parseRuntime.headerType[x]:b.indexOf("number#!")>-1?O.parseRuntime.headerType[x]=v:b.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 b=parseFloat(y);return isNaN(b)?y:b}function g(y){return y.toString()}function w(y){var b=y.trim();return b===""?g(y):a.test(b)?v(y):b.length===5&&b.toLowerCase()==="false"||b.length===4&&b.toLowerCase()==="true"?function(x){var O=x.trim();return O.length!==5||O.toLowerCase()!=="false"}(y):b[0]==="{"&&b[b.length-1]==="}"||b[0]==="["&&b[b.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 b=g[w];(y=d?d(b,w,g):void 0)===void 0&&(y=a(b)?b: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,b,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,b,x,E)},x);else{for(b&&s(w,E);y<g.length;){var k=g[y];O(k,w.parseRuntime.parsedLineNumber+y),y++,b&&s(w,k)}x()}}else{if(b)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 Zze=Cu(Kze),Xze=e=>new Promise(t=>{Zze().fromString(e).then(t)}),Qze=new qze,Jze=e=>Qze.parse(e),eVe="shlink",R8=e=>`${eVe}.${e}`;class tVe{constructor(t){Zu(this,"get",t=>{const n=this.localStorage.getItem(R8(t));return n?JSON.parse(n):void 0});Zu(this,"set",(t,n)=>this.localStorage.setItem(R8(t),JSON.stringify(n)));this.localStorage=t}}class nVe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const rVe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",tVe,"localStorage"),e.service("TagColorsStorage",nVe,"Storage"),e.constant("csvToJson",Xze),e.constant("jsonToCsv",Jze),e.serviceFactory("useTimeoutToggle",()=>xB)},$u=new EQ,{container:WA}=$u,iVe=(e,t)=>(...n)=>e[t](...n),oVe=(e,t)=>({...e,[t]:iVe(WA,t)}),aVe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),Rw=(e,t=[])=>n$(e?aVe(e):null,t.reduce(oVe,{}));Lfe($u,Rw);E9e($u,Rw);zQ($u);mze($u,Rw);rVe($u);Bze($u,Rw);var YA={},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 sVe=YC.exports;(function(e){var t=n(sVe);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,b=!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: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: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?b: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}})(YA);const lVe=e=>Hj({appUpdated:Mfe,servers:X9e,selectedServer:e.selectedServerReducer,settings:jze}),uVe=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},cVe=!0,bY={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},fVe=uVe(YA.load(bY)),dVe=e=>VB({devTools:!cVe,reducer:lVe(e),preloadedState:fVe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(YA.save(bY))}),pVe=!!(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 hVe(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`;pVe?(mVe(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 mVe(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=dVe(WA),{App:vVe,ScrollToTop:gVe,ErrorHandler:yVe,appUpdateAvailable:bVe}=WA;KU(document.getElementById("root")).render(_.jsx(r$,{store:wY,children:_.jsx(p$,{basename:l0.homepage,children:_.jsx(yVe,{children:_.jsx(gVe,{children:_.jsx(vVe,{})})})})}));hVe({onUpdate(){wY.dispatch(bVe())}});
|