mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-24 18:08:19 +03:00
1035 lines
1.7 MiB
1035 lines
1.7 MiB
var UK=Object.defineProperty;var $K=(e,t,n)=>t in e?UK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nc=(e,t,n)=>($K(e,typeof t!="symbol"?t+"":t,n),n);function BK(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 Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var CF={exports:{}},C_={},kF={exports:{}},pt={};/**
|
||
* @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 tv=Symbol.for("react.element"),zK=Symbol.for("react.portal"),VK=Symbol.for("react.fragment"),HK=Symbol.for("react.strict_mode"),WK=Symbol.for("react.profiler"),YK=Symbol.for("react.provider"),GK=Symbol.for("react.context"),qK=Symbol.for("react.forward_ref"),KK=Symbol.for("react.suspense"),ZK=Symbol.for("react.memo"),QK=Symbol.for("react.lazy"),kN=Symbol.iterator;function XK(e){return e===null||typeof e!="object"?null:(e=kN&&e[kN]||e["@@iterator"],typeof e=="function"?e:null)}var jF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},PF=Object.assign,AF={};function ud(e,t,n){this.props=e,this.context=t,this.refs=AF,this.updater=n||jF}ud.prototype.isReactComponent={};ud.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")};ud.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function NF(){}NF.prototype=ud.prototype;function SC(e,t,n){this.props=e,this.context=t,this.refs=AF,this.updater=n||jF}var EC=SC.prototype=new NF;EC.constructor=SC;PF(EC,ud.prototype);EC.isPureReactComponent=!0;var jN=Array.isArray,MF=Object.prototype.hasOwnProperty,TC={current:null},RF={key:!0,ref:!0,__self:!0,__source:!0};function DF(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)MF.call(t,r)&&!RF.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:tv,type:e,key:o,ref:a,props:i,_owner:TC.current}}function JK(e,t){return{$$typeof:tv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function CC(e){return typeof e=="object"&&e!==null&&e.$$typeof===tv}function eZ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var PN=/\/+/g;function Ax(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eZ(""+e.key):t.toString(36)}function hy(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 tv:case zK:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Ax(a,0):r,jN(i)?(n="",e!=null&&(n=e.replace(PN,"$&/")+"/"),hy(i,t,n,"",function(u){return u})):i!=null&&(CC(i)&&(i=JK(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(PN,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",jN(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Ax(o,s);a+=hy(o,t,n,l,i)}else if(l=XK(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Ax(o,s++),a+=hy(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 sg(e,t,n){if(e==null)return e;var r=[],i=0;return hy(e,r,"","",function(o){return t.call(n,o,i++)}),r}function tZ(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 Ir={current:null},my={transition:null},nZ={ReactCurrentDispatcher:Ir,ReactCurrentBatchConfig:my,ReactCurrentOwner:TC};pt.Children={map:sg,forEach:function(e,t,n){sg(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return sg(e,function(){t++}),t},toArray:function(e){return sg(e,function(t){return t})||[]},only:function(e){if(!CC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};pt.Component=ud;pt.Fragment=VK;pt.Profiler=WK;pt.PureComponent=SC;pt.StrictMode=HK;pt.Suspense=KK;pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nZ;pt.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=PF({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=TC.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)MF.call(t,l)&&!RF.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:tv,type:e.type,key:i,ref:o,props:r,_owner:a}};pt.createContext=function(e){return e={$$typeof:GK,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:YK,_context:e},e.Consumer=e};pt.createElement=DF;pt.createFactory=function(e){var t=DF.bind(null,e);return t.type=e,t};pt.createRef=function(){return{current:null}};pt.forwardRef=function(e){return{$$typeof:qK,render:e}};pt.isValidElement=CC;pt.lazy=function(e){return{$$typeof:QK,_payload:{_status:-1,_result:e},_init:tZ}};pt.memo=function(e,t){return{$$typeof:ZK,type:e,compare:t===void 0?null:t}};pt.startTransition=function(e){var t=my.transition;my.transition={};try{e()}finally{my.transition=t}};pt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};pt.useCallback=function(e,t){return Ir.current.useCallback(e,t)};pt.useContext=function(e){return Ir.current.useContext(e)};pt.useDebugValue=function(){};pt.useDeferredValue=function(e){return Ir.current.useDeferredValue(e)};pt.useEffect=function(e,t){return Ir.current.useEffect(e,t)};pt.useId=function(){return Ir.current.useId()};pt.useImperativeHandle=function(e,t,n){return Ir.current.useImperativeHandle(e,t,n)};pt.useInsertionEffect=function(e,t){return Ir.current.useInsertionEffect(e,t)};pt.useLayoutEffect=function(e,t){return Ir.current.useLayoutEffect(e,t)};pt.useMemo=function(e,t){return Ir.current.useMemo(e,t)};pt.useReducer=function(e,t,n){return Ir.current.useReducer(e,t,n)};pt.useRef=function(e){return Ir.current.useRef(e)};pt.useState=function(e){return Ir.current.useState(e)};pt.useSyncExternalStore=function(e,t,n){return Ir.current.useSyncExternalStore(e,t,n)};pt.useTransition=function(){return Ir.current.useTransition()};pt.version="18.2.0";kF.exports=pt;var I=kF.exports;const M=Du(I),NS=BK({__proto__:null,default:M},[I]);/**
|
||
* @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 rZ=I,iZ=Symbol.for("react.element"),oZ=Symbol.for("react.fragment"),aZ=Object.prototype.hasOwnProperty,sZ=rZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lZ={key:!0,ref:!0,__self:!0,__source:!0};function LF(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)aZ.call(t,r)&&!lZ.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:iZ,type:e,key:o,ref:a,props:i,_owner:sZ.current}}C_.Fragment=oZ;C_.jsx=LF;C_.jsxs=LF;CF.exports=C_;var y=CF.exports,IF={exports:{}},vi={},FF={exports:{}},UF={};/**
|
||
* @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,z){var V=X.length;X.push(z);e:for(;0<V;){var W=V-1>>>1,re=X[W];if(0<i(re,z))X[W]=z,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 z=X[0],V=X.pop();if(V!==z){X[0]=V;e:for(var W=0,re=X.length,q=re>>>1;W<q;){var ee=2*(W+1)-1,oe=X[ee],le=ee+1,fe=X[le];if(0>i(oe,V))le<re&&0>i(fe,oe)?(X[W]=fe,X[le]=V,W=le):(X[W]=oe,X[ee]=V,W=ee);else if(le<re&&0>i(fe,V))X[W]=fe,X[le]=V,W=le;else break e}}return z}function i(X,z){var V=X.sortIndex-z.sortIndex;return V!==0?V:X.id-z.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,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(X){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=X)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function O(X){if(g=!1,w(X),!v)if(n(l)!==null)v=!0,Z(E);else{var z=n(u);z!==null&&te(O,z.startTime-X)}}function E(X,z){v=!1,g&&(g=!1,b(P),P=-1),m=!0;var V=p;try{for(w(z),d=n(l);d!==null&&(!(d.expirationTime>z)||X&&!F());){var W=d.callback;if(typeof W=="function"){d.callback=null,p=d.priorityLevel;var re=W(d.expirationTime<=z);z=e.unstable_now(),typeof re=="function"?d.callback=re:d===n(l)&&r(l),w(z)}else r(l);d=n(l)}if(d!==null)var q=!0;else{var ee=n(u);ee!==null&&te(O,ee.startTime-z),q=!1}return q}finally{d=null,p=V,m=!1}}var T=!1,k=null,P=-1,D=5,N=-1;function F(){return!(e.unstable_now()-N<D)}function B(){if(k!==null){var X=e.unstable_now();N=X;var z=!0;try{z=k(!0,X)}finally{z?Y():(T=!1,k=null)}}else T=!1}var Y;if(typeof _=="function")Y=function(){_(B)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Q=H.port2;H.port1.onmessage=B,Y=function(){Q.postMessage(null)}}else Y=function(){x(B,0)};function Z(X){k=X,T||(T=!0,Y())}function te(X,z){P=x(function(){X(e.unstable_now())},z)}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 z=3;break;default:z=p}var V=p;p=z;try{return X()}finally{p=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,z){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var V=p;p=X;try{return z()}finally{p=V}},e.unstable_scheduleCallback=function(X,z,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:z,priorityLevel:X,startTime:V,expirationTime:re,sortIndex:-1},V>W?(X.sortIndex=V,t(u,X),n(l)===null&&X===n(u)&&(g?(b(P),P=-1):g=!0,te(O,V-W))):(X.sortIndex=re,t(l,X),v||m||(v=!0,Z(E))),X},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(X){var z=p;return function(){var V=p;p=z;try{return X.apply(this,arguments)}finally{p=V}}}})(UF);FF.exports=UF;var uZ=FF.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 $F=I,ci=uZ;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 BF=new Set,Th={};function Lu(e,t){sf(e,t),sf(e+"Capture",t)}function sf(e,t){for(Th[e]=t,e=0;e<t.length;e++)BF.add(t[e])}var Pa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MS=Object.prototype.hasOwnProperty,cZ=/^[: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]*$/,AN={},NN={};function fZ(e){return MS.call(NN,e)?!0:MS.call(AN,e)?!1:cZ.test(e)?NN[e]=!0:(AN[e]=!0,!1)}function dZ(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 pZ(e,t,n,r){if(t===null||typeof t>"u"||dZ(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 Fr(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 dr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dr[e]=new Fr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dr[t]=new Fr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dr[e]=new Fr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dr[e]=new Fr(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){dr[e]=new Fr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dr[e]=new Fr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dr[e]=new Fr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dr[e]=new Fr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dr[e]=new Fr(e,5,!1,e.toLowerCase(),null,!1,!1)});var kC=/[\-:]([a-z])/g;function jC(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(kC,jC);dr[t]=new Fr(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(kC,jC);dr[t]=new Fr(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(kC,jC);dr[t]=new Fr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dr[e]=new Fr(e,1,!1,e.toLowerCase(),null,!1,!1)});dr.xlinkHref=new Fr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dr[e]=new Fr(e,1,!1,e.toLowerCase(),null,!0,!0)});function PC(e,t,n,r){var i=dr.hasOwnProperty(t)?dr[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(pZ(t,n,i,r)&&(n=null),r||i===null?fZ(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=$F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,lg=Symbol.for("react.element"),Oc=Symbol.for("react.portal"),Sc=Symbol.for("react.fragment"),AC=Symbol.for("react.strict_mode"),RS=Symbol.for("react.profiler"),zF=Symbol.for("react.provider"),VF=Symbol.for("react.context"),NC=Symbol.for("react.forward_ref"),DS=Symbol.for("react.suspense"),LS=Symbol.for("react.suspense_list"),MC=Symbol.for("react.memo"),vs=Symbol.for("react.lazy"),HF=Symbol.for("react.offscreen"),MN=Symbol.iterator;function ip(e){return e===null||typeof e!="object"?null:(e=MN&&e[MN]||e["@@iterator"],typeof e=="function"?e:null)}var cn=Object.assign,Nx;function Mp(e){if(Nx===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Nx=t&&t[1]||""}return`
|
||
`+Nx+e}var Mx=!1;function Rx(e,t){if(!e||Mx)return"";Mx=!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{Mx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mp(e):""}function hZ(e){switch(e.tag){case 5:return Mp(e.type);case 16:return Mp("Lazy");case 13:return Mp("Suspense");case 19:return Mp("SuspenseList");case 0:case 2:case 15:return e=Rx(e.type,!1),e;case 11:return e=Rx(e.type.render,!1),e;case 1:return e=Rx(e.type,!0),e;default:return""}}function IS(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 Sc:return"Fragment";case Oc:return"Portal";case RS:return"Profiler";case AC:return"StrictMode";case DS:return"Suspense";case LS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VF:return(e.displayName||"Context")+".Consumer";case zF:return(e._context.displayName||"Context")+".Provider";case NC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case MC:return t=e.displayName||null,t!==null?t:IS(e.type)||"Memo";case vs:t=e._payload,e=e._init;try{return IS(e(t))}catch{}}return null}function mZ(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 IS(t);case 8:return t===AC?"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 Ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function WF(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vZ(e){var t=WF(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 ug(e){e._valueTracker||(e._valueTracker=vZ(e))}function YF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=WF(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yy(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 FS(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function RN(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ks(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 GF(e,t){t=t.checked,t!=null&&PC(e,"checked",t,!1)}function US(e,t){GF(e,t);var n=Ks(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")?$S(e,t.type,n):t.hasOwnProperty("defaultValue")&&$S(e,t.type,Ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function DN(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 $S(e,t,n){(t!=="number"||Yy(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rp=Array.isArray;function qc(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=""+Ks(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 BS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Te(91));return cn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function LN(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(Rp(n)){if(1<n.length)throw Error(Te(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ks(n)}}function qF(e,t){var n=Ks(t.value),r=Ks(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 IN(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function KF(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 zS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?KF(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cg,ZF=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(cg=cg||document.createElement("div"),cg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=cg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ch(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gp={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},gZ=["Webkit","ms","Moz","O"];Object.keys(Gp).forEach(function(e){gZ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gp[t]=Gp[e]})});function QF(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gp.hasOwnProperty(e)&&Gp[e]?(""+t).trim():t+"px"}function XF(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=QF(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var yZ=cn({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 VS(e,t){if(t){if(yZ[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 HS(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 WS=null;function RC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var YS=null,Kc=null,Zc=null;function FN(e){if(e=iv(e)){if(typeof YS!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=N_(t),YS(e.stateNode,e.type,t))}}function JF(e){Kc?Zc?Zc.push(e):Zc=[e]:Kc=e}function eU(){if(Kc){var e=Kc,t=Zc;if(Zc=Kc=null,FN(e),t)for(e=0;e<t.length;e++)FN(t[e])}}function tU(e,t){return e(t)}function nU(){}var Dx=!1;function rU(e,t,n){if(Dx)return e(t,n);Dx=!0;try{return tU(e,t,n)}finally{Dx=!1,(Kc!==null||Zc!==null)&&(nU(),eU())}}function kh(e,t){var n=e.stateNode;if(n===null)return null;var r=N_(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 GS=!1;if(Pa)try{var op={};Object.defineProperty(op,"passive",{get:function(){GS=!0}}),window.addEventListener("test",op,op),window.removeEventListener("test",op,op)}catch{GS=!1}function bZ(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 qp=!1,Gy=null,qy=!1,qS=null,_Z={onError:function(e){qp=!0,Gy=e}};function wZ(e,t,n,r,i,o,a,s,l){qp=!1,Gy=null,bZ.apply(_Z,arguments)}function xZ(e,t,n,r,i,o,a,s,l){if(wZ.apply(this,arguments),qp){if(qp){var u=Gy;qp=!1,Gy=null}else throw Error(Te(198));qy||(qy=!0,qS=u)}}function Iu(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 iU(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 UN(e){if(Iu(e)!==e)throw Error(Te(188))}function OZ(e){var t=e.alternate;if(!t){if(t=Iu(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 UN(i),e;if(o===r)return UN(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 oU(e){return e=OZ(e),e!==null?aU(e):null}function aU(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=aU(e);if(t!==null)return t;e=e.sibling}return null}var sU=ci.unstable_scheduleCallback,$N=ci.unstable_cancelCallback,SZ=ci.unstable_shouldYield,EZ=ci.unstable_requestPaint,bn=ci.unstable_now,TZ=ci.unstable_getCurrentPriorityLevel,DC=ci.unstable_ImmediatePriority,lU=ci.unstable_UserBlockingPriority,Ky=ci.unstable_NormalPriority,CZ=ci.unstable_LowPriority,uU=ci.unstable_IdlePriority,k_=null,Vo=null;function kZ(e){if(Vo&&typeof Vo.onCommitFiberRoot=="function")try{Vo.onCommitFiberRoot(k_,e,void 0,(e.current.flags&128)===128)}catch{}}var mo=Math.clz32?Math.clz32:AZ,jZ=Math.log,PZ=Math.LN2;function AZ(e){return e>>>=0,e===0?32:31-(jZ(e)/PZ|0)|0}var fg=64,dg=4194304;function Dp(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 Zy(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=Dp(s):(o&=a,o!==0&&(r=Dp(o)))}else a=n&~i,a!==0?r=Dp(a):o!==0&&(r=Dp(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 NZ(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 MZ(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]=NZ(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function KS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cU(){var e=fg;return fg<<=1,!(fg&4194240)&&(fg=64),e}function Lx(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nv(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 RZ(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 LC(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 At=0;function fU(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var dU,IC,pU,hU,mU,ZS=!1,pg=[],Ms=null,Rs=null,Ds=null,jh=new Map,Ph=new Map,ws=[],DZ="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 BN(e,t){switch(e){case"focusin":case"focusout":Ms=null;break;case"dragenter":case"dragleave":Rs=null;break;case"mouseover":case"mouseout":Ds=null;break;case"pointerover":case"pointerout":jh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ph.delete(t.pointerId)}}function ap(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=iv(t),t!==null&&IC(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function LZ(e,t,n,r,i){switch(t){case"focusin":return Ms=ap(Ms,e,t,n,r,i),!0;case"dragenter":return Rs=ap(Rs,e,t,n,r,i),!0;case"mouseover":return Ds=ap(Ds,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return jh.set(o,ap(jh.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ph.set(o,ap(Ph.get(o)||null,e,t,n,r,i)),!0}return!1}function vU(e){var t=Kl(e.target);if(t!==null){var n=Iu(t);if(n!==null){if(t=n.tag,t===13){if(t=iU(n),t!==null){e.blockedOn=t,mU(e.priority,function(){pU(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 vy(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=QS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);WS=r,n.target.dispatchEvent(r),WS=null}else return t=iv(n),t!==null&&IC(t),e.blockedOn=n,!1;t.shift()}return!0}function zN(e,t,n){vy(e)&&n.delete(t)}function IZ(){ZS=!1,Ms!==null&&vy(Ms)&&(Ms=null),Rs!==null&&vy(Rs)&&(Rs=null),Ds!==null&&vy(Ds)&&(Ds=null),jh.forEach(zN),Ph.forEach(zN)}function sp(e,t){e.blockedOn===t&&(e.blockedOn=null,ZS||(ZS=!0,ci.unstable_scheduleCallback(ci.unstable_NormalPriority,IZ)))}function Ah(e){function t(i){return sp(i,e)}if(0<pg.length){sp(pg[0],e);for(var n=1;n<pg.length;n++){var r=pg[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ms!==null&&sp(Ms,e),Rs!==null&&sp(Rs,e),Ds!==null&&sp(Ds,e),jh.forEach(t),Ph.forEach(t),n=0;n<ws.length;n++)r=ws[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ws.length&&(n=ws[0],n.blockedOn===null);)vU(n),n.blockedOn===null&&ws.shift()}var Qc=Ha.ReactCurrentBatchConfig,Qy=!0;function FZ(e,t,n,r){var i=At,o=Qc.transition;Qc.transition=null;try{At=1,FC(e,t,n,r)}finally{At=i,Qc.transition=o}}function UZ(e,t,n,r){var i=At,o=Qc.transition;Qc.transition=null;try{At=4,FC(e,t,n,r)}finally{At=i,Qc.transition=o}}function FC(e,t,n,r){if(Qy){var i=QS(e,t,n,r);if(i===null)Yx(e,t,r,Xy,n),BN(e,r);else if(LZ(i,e,t,n,r))r.stopPropagation();else if(BN(e,r),t&4&&-1<DZ.indexOf(e)){for(;i!==null;){var o=iv(i);if(o!==null&&dU(o),o=QS(e,t,n,r),o===null&&Yx(e,t,r,Xy,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Yx(e,t,r,null,n)}}var Xy=null;function QS(e,t,n,r){if(Xy=null,e=RC(r),e=Kl(e),e!==null)if(t=Iu(e),t===null)e=null;else if(n=t.tag,n===13){if(e=iU(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 Xy=e,null}function gU(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(TZ()){case DC:return 1;case lU:return 4;case Ky:case CZ:return 16;case uU:return 536870912;default:return 16}default:return 16}}var Os=null,UC=null,gy=null;function yU(){if(gy)return gy;var e,t=UC,n=t.length,r,i="value"in Os?Os.value:Os.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return gy=i.slice(e,1<r?1-r:void 0)}function yy(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 hg(){return!0}function VN(){return!1}function gi(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)?hg:VN,this.isPropagationStopped=VN,this}return cn(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=hg)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hg)},persist:function(){},isPersistent:hg}),t}var cd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$C=gi(cd),rv=cn({},cd,{view:0,detail:0}),$Z=gi(rv),Ix,Fx,lp,j_=cn({},rv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:BC,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!==lp&&(lp&&e.type==="mousemove"?(Ix=e.screenX-lp.screenX,Fx=e.screenY-lp.screenY):Fx=Ix=0,lp=e),Ix)},movementY:function(e){return"movementY"in e?e.movementY:Fx}}),HN=gi(j_),BZ=cn({},j_,{dataTransfer:0}),zZ=gi(BZ),VZ=cn({},rv,{relatedTarget:0}),Ux=gi(VZ),HZ=cn({},cd,{animationName:0,elapsedTime:0,pseudoElement:0}),WZ=gi(HZ),YZ=cn({},cd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),GZ=gi(YZ),qZ=cn({},cd,{data:0}),WN=gi(qZ),KZ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZZ={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"},QZ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XZ(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=QZ[e])?!!t[e]:!1}function BC(){return XZ}var JZ=cn({},rv,{key:function(e){if(e.key){var t=KZ[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yy(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ZZ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:BC,charCode:function(e){return e.type==="keypress"?yy(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yy(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eQ=gi(JZ),tQ=cn({},j_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),YN=gi(tQ),nQ=cn({},rv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:BC}),rQ=gi(nQ),iQ=cn({},cd,{propertyName:0,elapsedTime:0,pseudoElement:0}),oQ=gi(iQ),aQ=cn({},j_,{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}),sQ=gi(aQ),lQ=[9,13,27,32],zC=Pa&&"CompositionEvent"in window,Kp=null;Pa&&"documentMode"in document&&(Kp=document.documentMode);var uQ=Pa&&"TextEvent"in window&&!Kp,bU=Pa&&(!zC||Kp&&8<Kp&&11>=Kp),GN=String.fromCharCode(32),qN=!1;function _U(e,t){switch(e){case"keyup":return lQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ec=!1;function cQ(e,t){switch(e){case"compositionend":return wU(t);case"keypress":return t.which!==32?null:(qN=!0,GN);case"textInput":return e=t.data,e===GN&&qN?null:e;default:return null}}function fQ(e,t){if(Ec)return e==="compositionend"||!zC&&_U(e,t)?(e=yU(),gy=UC=Os=null,Ec=!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 bU&&t.locale!=="ko"?null:t.data;default:return null}}var dQ={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 KN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dQ[e.type]:t==="textarea"}function xU(e,t,n,r){JF(r),t=Jy(t,"onChange"),0<t.length&&(n=new $C("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zp=null,Nh=null;function pQ(e){MU(e,0)}function P_(e){var t=kc(e);if(YF(t))return e}function hQ(e,t){if(e==="change")return t}var OU=!1;if(Pa){var $x;if(Pa){var Bx="oninput"in document;if(!Bx){var ZN=document.createElement("div");ZN.setAttribute("oninput","return;"),Bx=typeof ZN.oninput=="function"}$x=Bx}else $x=!1;OU=$x&&(!document.documentMode||9<document.documentMode)}function QN(){Zp&&(Zp.detachEvent("onpropertychange",SU),Nh=Zp=null)}function SU(e){if(e.propertyName==="value"&&P_(Nh)){var t=[];xU(t,Nh,e,RC(e)),rU(pQ,t)}}function mQ(e,t,n){e==="focusin"?(QN(),Zp=t,Nh=n,Zp.attachEvent("onpropertychange",SU)):e==="focusout"&&QN()}function vQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return P_(Nh)}function gQ(e,t){if(e==="click")return P_(t)}function yQ(e,t){if(e==="input"||e==="change")return P_(t)}function bQ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yo=typeof Object.is=="function"?Object.is:bQ;function Mh(e,t){if(yo(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(!MS.call(t,i)||!yo(e[i],t[i]))return!1}return!0}function XN(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function JN(e,t){var n=XN(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=XN(n)}}function EU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?EU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function TU(){for(var e=window,t=Yy();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yy(e.document)}return t}function VC(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 _Q(e){var t=TU(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&EU(n.ownerDocument.documentElement,n)){if(r!==null&&VC(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=JN(n,o);var a=JN(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 wQ=Pa&&"documentMode"in document&&11>=document.documentMode,Tc=null,XS=null,Qp=null,JS=!1;function eM(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;JS||Tc==null||Tc!==Yy(r)||(r=Tc,"selectionStart"in r&&VC(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}),Qp&&Mh(Qp,r)||(Qp=r,r=Jy(XS,"onSelect"),0<r.length&&(t=new $C("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Tc)))}function mg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cc={animationend:mg("Animation","AnimationEnd"),animationiteration:mg("Animation","AnimationIteration"),animationstart:mg("Animation","AnimationStart"),transitionend:mg("Transition","TransitionEnd")},zx={},CU={};Pa&&(CU=document.createElement("div").style,"AnimationEvent"in window||(delete Cc.animationend.animation,delete Cc.animationiteration.animation,delete Cc.animationstart.animation),"TransitionEvent"in window||delete Cc.transitionend.transition);function A_(e){if(zx[e])return zx[e];if(!Cc[e])return e;var t=Cc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in CU)return zx[e]=t[n];return e}var kU=A_("animationend"),jU=A_("animationiteration"),PU=A_("animationstart"),AU=A_("transitionend"),NU=new Map,tM="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 ll(e,t){NU.set(e,t),Lu(t,[e])}for(var Vx=0;Vx<tM.length;Vx++){var Hx=tM[Vx],xQ=Hx.toLowerCase(),OQ=Hx[0].toUpperCase()+Hx.slice(1);ll(xQ,"on"+OQ)}ll(kU,"onAnimationEnd");ll(jU,"onAnimationIteration");ll(PU,"onAnimationStart");ll("dblclick","onDoubleClick");ll("focusin","onFocus");ll("focusout","onBlur");ll(AU,"onTransitionEnd");sf("onMouseEnter",["mouseout","mouseover"]);sf("onMouseLeave",["mouseout","mouseover"]);sf("onPointerEnter",["pointerout","pointerover"]);sf("onPointerLeave",["pointerout","pointerover"]);Lu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Lu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Lu("onBeforeInput",["compositionend","keypress","textInput","paste"]);Lu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Lu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Lu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lp="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(" "),SQ=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lp));function nM(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,xZ(r,t,void 0,e),e.currentTarget=null}function MU(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;nM(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;nM(i,s,u),o=l}}}if(qy)throw e=qS,qy=!1,qS=null,e}function Bt(e,t){var n=t[i2];n===void 0&&(n=t[i2]=new Set);var r=e+"__bubble";n.has(r)||(RU(t,e,2,!1),n.add(r))}function Wx(e,t,n){var r=0;t&&(r|=4),RU(n,e,r,t)}var vg="_reactListening"+Math.random().toString(36).slice(2);function Rh(e){if(!e[vg]){e[vg]=!0,BF.forEach(function(n){n!=="selectionchange"&&(SQ.has(n)||Wx(n,!1,e),Wx(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vg]||(t[vg]=!0,Wx("selectionchange",!1,t))}}function RU(e,t,n,r){switch(gU(t)){case 1:var i=FZ;break;case 4:i=UZ;break;default:i=FC}n=i.bind(null,t,n,e),i=void 0,!GS||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 Yx(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=Kl(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}rU(function(){var u=o,f=RC(n),d=[];e:{var p=NU.get(e);if(p!==void 0){var m=$C,v=e;switch(e){case"keypress":if(yy(n)===0)break e;case"keydown":case"keyup":m=eQ;break;case"focusin":v="focus",m=Ux;break;case"focusout":v="blur",m=Ux;break;case"beforeblur":case"afterblur":m=Ux;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=HN;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=zZ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=rQ;break;case kU:case jU:case PU:m=WZ;break;case AU:m=oQ;break;case"scroll":m=$Z;break;case"wheel":m=sQ;break;case"copy":case"cut":case"paste":m=GZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=YN}var g=(t&4)!==0,x=!g&&e==="scroll",b=g?p!==null?p+"Capture":null:p;g=[];for(var _=u,w;_!==null;){w=_;var O=w.stateNode;if(w.tag===5&&O!==null&&(w=O,b!==null&&(O=kh(_,b),O!=null&&g.push(Dh(_,O,w)))),x)break;_=_.return}0<g.length&&(p=new m(p,v,null,n,f),d.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==WS&&(v=n.relatedTarget||n.fromElement)&&(Kl(v)||v[Aa]))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?Kl(v):null,v!==null&&(x=Iu(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(g=HN,O="onMouseLeave",b="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(g=YN,O="onPointerLeave",b="onPointerEnter",_="pointer"),x=m==null?p:kc(m),w=v==null?p:kc(v),p=new g(O,_+"leave",m,n,f),p.target=x,p.relatedTarget=w,O=null,Kl(f)===u&&(g=new g(b,_+"enter",v,n,f),g.target=w,g.relatedTarget=x,O=g),x=O,m&&v)t:{for(g=m,b=v,_=0,w=g;w;w=rc(w))_++;for(w=0,O=b;O;O=rc(O))w++;for(;0<_-w;)g=rc(g),_--;for(;0<w-_;)b=rc(b),w--;for(;_--;){if(g===b||b!==null&&g===b.alternate)break t;g=rc(g),b=rc(b)}g=null}else g=null;m!==null&&rM(d,p,m,g,!1),v!==null&&x!==null&&rM(d,x,v,g,!0)}}e:{if(p=u?kc(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var E=hQ;else if(KN(p))if(OU)E=yQ;else{E=vQ;var T=mQ}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=gQ);if(E&&(E=E(e,u))){xU(d,E,n,f);break e}T&&T(e,p,u),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&$S(p,"number",p.value)}switch(T=u?kc(u):window,e){case"focusin":(KN(T)||T.contentEditable==="true")&&(Tc=T,XS=u,Qp=null);break;case"focusout":Qp=XS=Tc=null;break;case"mousedown":JS=!0;break;case"contextmenu":case"mouseup":case"dragend":JS=!1,eM(d,n,f);break;case"selectionchange":if(wQ)break;case"keydown":case"keyup":eM(d,n,f)}var k;if(zC)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Ec?_U(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(bU&&n.locale!=="ko"&&(Ec||P!=="onCompositionStart"?P==="onCompositionEnd"&&Ec&&(k=yU()):(Os=f,UC="value"in Os?Os.value:Os.textContent,Ec=!0)),T=Jy(u,P),0<T.length&&(P=new WN(P,e,null,n,f),d.push({event:P,listeners:T}),k?P.data=k:(k=wU(n),k!==null&&(P.data=k)))),(k=uQ?cQ(e,n):fQ(e,n))&&(u=Jy(u,"onBeforeInput"),0<u.length&&(f=new WN("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=k))}MU(d,t)})}function Dh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jy(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=kh(e,n),o!=null&&r.unshift(Dh(e,o,i)),o=kh(e,t),o!=null&&r.push(Dh(e,o,i))),e=e.return}return r}function rc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function rM(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=kh(n,o),l!=null&&a.unshift(Dh(n,l,s))):i||(l=kh(n,o),l!=null&&a.push(Dh(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var EQ=/\r\n?/g,TQ=/\u0000|\uFFFD/g;function iM(e){return(typeof e=="string"?e:""+e).replace(EQ,`
|
||
`).replace(TQ,"")}function gg(e,t,n){if(t=iM(t),iM(e)!==t&&n)throw Error(Te(425))}function e0(){}var e2=null,t2=null;function n2(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 r2=typeof setTimeout=="function"?setTimeout:void 0,CQ=typeof clearTimeout=="function"?clearTimeout:void 0,oM=typeof Promise=="function"?Promise:void 0,kQ=typeof queueMicrotask=="function"?queueMicrotask:typeof oM<"u"?function(e){return oM.resolve(null).then(e).catch(jQ)}:r2;function jQ(e){setTimeout(function(){throw e})}function Gx(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),Ah(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ah(t)}function Ls(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 aM(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 fd=Math.random().toString(36).slice(2),Lo="__reactFiber$"+fd,Lh="__reactProps$"+fd,Aa="__reactContainer$"+fd,i2="__reactEvents$"+fd,PQ="__reactListeners$"+fd,AQ="__reactHandles$"+fd;function Kl(e){var t=e[Lo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Aa]||n[Lo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=aM(e);e!==null;){if(n=e[Lo])return n;e=aM(e)}return t}e=n,n=e.parentNode}return null}function iv(e){return e=e[Lo]||e[Aa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function kc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Te(33))}function N_(e){return e[Lh]||null}var o2=[],jc=-1;function ul(e){return{current:e}}function Gt(e){0>jc||(e.current=o2[jc],o2[jc]=null,jc--)}function Ft(e,t){jc++,o2[jc]=e.current,e.current=t}var Zs={},_r=ul(Zs),Wr=ul(!1),bu=Zs;function lf(e,t){var n=e.type.contextTypes;if(!n)return Zs;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 Yr(e){return e=e.childContextTypes,e!=null}function t0(){Gt(Wr),Gt(_r)}function sM(e,t,n){if(_r.current!==Zs)throw Error(Te(168));Ft(_r,t),Ft(Wr,n)}function DU(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,mZ(e)||"Unknown",i));return cn({},n,r)}function n0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zs,bu=_r.current,Ft(_r,e),Ft(Wr,Wr.current),!0}function lM(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=DU(e,t,bu),r.__reactInternalMemoizedMergedChildContext=e,Gt(Wr),Gt(_r),Ft(_r,e)):Gt(Wr),Ft(Wr,n)}var ga=null,M_=!1,qx=!1;function LU(e){ga===null?ga=[e]:ga.push(e)}function NQ(e){M_=!0,LU(e)}function cl(){if(!qx&&ga!==null){qx=!0;var e=0,t=At;try{var n=ga;for(At=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ga=null,M_=!1}catch(i){throw ga!==null&&(ga=ga.slice(e+1)),sU(DC,cl),i}finally{At=t,qx=!1}}return null}var Pc=[],Ac=0,r0=null,i0=0,Ci=[],ki=0,_u=null,_a=1,wa="";function Dl(e,t){Pc[Ac++]=i0,Pc[Ac++]=r0,r0=e,i0=t}function IU(e,t,n){Ci[ki++]=_a,Ci[ki++]=wa,Ci[ki++]=_u,_u=e;var r=_a;e=wa;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,_a=1<<32-mo(t)+i|n<<i|r,wa=o+e}else _a=1<<o|n<<i|r,wa=e}function HC(e){e.return!==null&&(Dl(e,1),IU(e,1,0))}function WC(e){for(;e===r0;)r0=Pc[--Ac],Pc[Ac]=null,i0=Pc[--Ac],Pc[Ac]=null;for(;e===_u;)_u=Ci[--ki],Ci[ki]=null,wa=Ci[--ki],Ci[ki]=null,_a=Ci[--ki],Ci[ki]=null}var si=null,ai=null,Zt=!1,uo=null;function FU(e,t){var n=Ni(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 uM(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,si=e,ai=Ls(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,si=e,ai=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_u!==null?{id:_a,overflow:wa}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ni(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,si=e,ai=null,!0):!1;default:return!1}}function a2(e){return(e.mode&1)!==0&&(e.flags&128)===0}function s2(e){if(Zt){var t=ai;if(t){var n=t;if(!uM(e,t)){if(a2(e))throw Error(Te(418));t=Ls(n.nextSibling);var r=si;t&&uM(e,t)?FU(r,n):(e.flags=e.flags&-4097|2,Zt=!1,si=e)}}else{if(a2(e))throw Error(Te(418));e.flags=e.flags&-4097|2,Zt=!1,si=e}}}function cM(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;si=e}function yg(e){if(e!==si)return!1;if(!Zt)return cM(e),Zt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!n2(e.type,e.memoizedProps)),t&&(t=ai)){if(a2(e))throw UU(),Error(Te(418));for(;t;)FU(e,t),t=Ls(t.nextSibling)}if(cM(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){ai=Ls(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ai=null}}else ai=si?Ls(e.stateNode.nextSibling):null;return!0}function UU(){for(var e=ai;e;)e=Ls(e.nextSibling)}function uf(){ai=si=null,Zt=!1}function YC(e){uo===null?uo=[e]:uo.push(e)}var MQ=Ha.ReactCurrentBatchConfig;function oo(e,t){if(e&&e.defaultProps){t=cn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var o0=ul(null),a0=null,Nc=null,GC=null;function qC(){GC=Nc=a0=null}function KC(e){var t=o0.current;Gt(o0),e._currentValue=t}function l2(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 Xc(e,t){a0=e,GC=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Br=!0),e.firstContext=null)}function $i(e){var t=e._currentValue;if(GC!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(a0===null)throw Error(Te(308));Nc=e,a0.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var Zl=null;function ZC(e){Zl===null?Zl=[e]:Zl.push(e)}function $U(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ZC(t)):(n.next=i.next,i.next=n),t.interleaved=n,Na(e,r)}function Na(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gs=!1;function QC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function BU(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 Ea(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,bt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Na(e,n)}return i=r.interleaved,i===null?(t.next=t,ZC(r)):(t.next=i.next,i.next=t),r.interleaved=t,Na(e,n)}function by(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,LC(e,n)}}function fM(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 s0(e,t,n,r){var i=e.updateQueue;gs=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,f=u=l=null,s=o;do{var p=s.lane,m=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,g=s;switch(p=t,m=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){d=v.call(m,d,p);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,p=typeof v=="function"?v.call(m,d,p):v,p==null)break e;d=cn({},d,p);break e;case 2:gs=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=m,l=d):f=f.next=m,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);xu|=a,e.lanes=a,e.memoizedState=d}}function dM(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 zU=new $F.Component().refs;function u2(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:cn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var R_={isMounted:function(e){return(e=e._reactInternals)?Iu(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Rr(),i=Us(e),o=Ea(r,i);o.payload=t,n!=null&&(o.callback=n),t=Is(e,o,i),t!==null&&(vo(t,e,i,r),by(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Rr(),i=Us(e),o=Ea(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),by(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rr(),r=Us(e),i=Ea(n,r);i.tag=2,t!=null&&(i.callback=t),t=Is(e,i,r),t!==null&&(vo(t,e,r,n),by(t,e,r))}};function pM(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?!Mh(n,r)||!Mh(i,o):!0}function VU(e,t,n){var r=!1,i=Zs,o=t.contextType;return typeof o=="object"&&o!==null?o=$i(o):(i=Yr(t)?bu:_r.current,r=t.contextTypes,o=(r=r!=null)?lf(e,i):Zs),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=R_,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function hM(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&&R_.enqueueReplaceState(t,t.state,null)}function c2(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=zU,QC(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=$i(o):(o=Yr(t)?bu:_r.current,i.context=lf(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(u2(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&&R_.enqueueReplaceState(i,i.state,null),s0(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function up(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===zU&&(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 bg(e,t){throw e=Object.prototype.toString.call(t),Error(Te(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mM(e){var t=e._init;return t(e._payload)}function HU(e){function t(b,_){if(e){var w=b.deletions;w===null?(b.deletions=[_],b.flags|=16):w.push(_)}}function n(b,_){if(!e)return null;for(;_!==null;)t(b,_),_=_.sibling;return null}function r(b,_){for(b=new Map;_!==null;)_.key!==null?b.set(_.key,_):b.set(_.index,_),_=_.sibling;return b}function i(b,_){return b=$s(b,_),b.index=0,b.sibling=null,b}function o(b,_,w){return b.index=w,e?(w=b.alternate,w!==null?(w=w.index,w<_?(b.flags|=2,_):w):(b.flags|=2,_)):(b.flags|=1048576,_)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,_,w,O){return _===null||_.tag!==6?(_=tO(w,b.mode,O),_.return=b,_):(_=i(_,w),_.return=b,_)}function l(b,_,w,O){var E=w.type;return E===Sc?f(b,_,w.props.children,O,w.key):_!==null&&(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vs&&mM(E)===_.type)?(O=i(_,w.props),O.ref=up(b,_,w),O.return=b,O):(O=Ey(w.type,w.key,w.props,null,b.mode,O),O.ref=up(b,_,w),O.return=b,O)}function u(b,_,w,O){return _===null||_.tag!==4||_.stateNode.containerInfo!==w.containerInfo||_.stateNode.implementation!==w.implementation?(_=nO(w,b.mode,O),_.return=b,_):(_=i(_,w.children||[]),_.return=b,_)}function f(b,_,w,O,E){return _===null||_.tag!==7?(_=su(w,b.mode,O,E),_.return=b,_):(_=i(_,w),_.return=b,_)}function d(b,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return _=tO(""+_,b.mode,w),_.return=b,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case lg:return w=Ey(_.type,_.key,_.props,null,b.mode,w),w.ref=up(b,null,_),w.return=b,w;case Oc:return _=nO(_,b.mode,w),_.return=b,_;case vs:var O=_._init;return d(b,O(_._payload),w)}if(Rp(_)||ip(_))return _=su(_,b.mode,w,null),_.return=b,_;bg(b,_)}return null}function p(b,_,w,O){var E=_!==null?_.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:s(b,_,""+w,O);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case lg:return w.key===E?l(b,_,w,O):null;case Oc:return w.key===E?u(b,_,w,O):null;case vs:return E=w._init,p(b,_,E(w._payload),O)}if(Rp(w)||ip(w))return E!==null?null:f(b,_,w,O,null);bg(b,w)}return null}function m(b,_,w,O,E){if(typeof O=="string"&&O!==""||typeof O=="number")return b=b.get(w)||null,s(_,b,""+O,E);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case lg:return b=b.get(O.key===null?w:O.key)||null,l(_,b,O,E);case Oc:return b=b.get(O.key===null?w:O.key)||null,u(_,b,O,E);case vs:var T=O._init;return m(b,_,w,T(O._payload),E)}if(Rp(O)||ip(O))return b=b.get(w)||null,f(_,b,O,E,null);bg(_,O)}return null}function v(b,_,w,O){for(var E=null,T=null,k=_,P=_=0,D=null;k!==null&&P<w.length;P++){k.index>P?(D=k,k=null):D=k.sibling;var N=p(b,k,w[P],O);if(N===null){k===null&&(k=D);break}e&&k&&N.alternate===null&&t(b,k),_=o(N,_,P),T===null?E=N:T.sibling=N,T=N,k=D}if(P===w.length)return n(b,k),Zt&&Dl(b,P),E;if(k===null){for(;P<w.length;P++)k=d(b,w[P],O),k!==null&&(_=o(k,_,P),T===null?E=k:T.sibling=k,T=k);return Zt&&Dl(b,P),E}for(k=r(b,k);P<w.length;P++)D=m(k,b,P,w[P],O),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?P:D.key),_=o(D,_,P),T===null?E=D:T.sibling=D,T=D);return e&&k.forEach(function(F){return t(b,F)}),Zt&&Dl(b,P),E}function g(b,_,w,O){var E=ip(w);if(typeof E!="function")throw Error(Te(150));if(w=E.call(w),w==null)throw Error(Te(151));for(var T=E=null,k=_,P=_=0,D=null,N=w.next();k!==null&&!N.done;P++,N=w.next()){k.index>P?(D=k,k=null):D=k.sibling;var F=p(b,k,N.value,O);if(F===null){k===null&&(k=D);break}e&&k&&F.alternate===null&&t(b,k),_=o(F,_,P),T===null?E=F:T.sibling=F,T=F,k=D}if(N.done)return n(b,k),Zt&&Dl(b,P),E;if(k===null){for(;!N.done;P++,N=w.next())N=d(b,N.value,O),N!==null&&(_=o(N,_,P),T===null?E=N:T.sibling=N,T=N);return Zt&&Dl(b,P),E}for(k=r(b,k);!N.done;P++,N=w.next())N=m(k,b,P,N.value,O),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?P:N.key),_=o(N,_,P),T===null?E=N:T.sibling=N,T=N);return e&&k.forEach(function(B){return t(b,B)}),Zt&&Dl(b,P),E}function x(b,_,w,O){if(typeof w=="object"&&w!==null&&w.type===Sc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case lg:e:{for(var E=w.key,T=_;T!==null;){if(T.key===E){if(E=w.type,E===Sc){if(T.tag===7){n(b,T.sibling),_=i(T,w.props.children),_.return=b,b=_;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vs&&mM(E)===T.type){n(b,T.sibling),_=i(T,w.props),_.ref=up(b,T,w),_.return=b,b=_;break e}n(b,T);break}else t(b,T);T=T.sibling}w.type===Sc?(_=su(w.props.children,b.mode,O,w.key),_.return=b,b=_):(O=Ey(w.type,w.key,w.props,null,b.mode,O),O.ref=up(b,_,w),O.return=b,b=O)}return a(b);case Oc:e:{for(T=w.key;_!==null;){if(_.key===T)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(b,_.sibling),_=i(_,w.children||[]),_.return=b,b=_;break e}else{n(b,_);break}else t(b,_);_=_.sibling}_=nO(w,b.mode,O),_.return=b,b=_}return a(b);case vs:return T=w._init,x(b,_,T(w._payload),O)}if(Rp(w))return v(b,_,w,O);if(ip(w))return g(b,_,w,O);bg(b,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(b,_.sibling),_=i(_,w),_.return=b,b=_):(n(b,_),_=tO(w,b.mode,O),_.return=b,b=_),a(b)):n(b,_)}return x}var cf=HU(!0),WU=HU(!1),ov={},Ho=ul(ov),Ih=ul(ov),Fh=ul(ov);function Ql(e){if(e===ov)throw Error(Te(174));return e}function XC(e,t){switch(Ft(Fh,t),Ft(Ih,e),Ft(Ho,ov),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zS(t,e)}Gt(Ho),Ft(Ho,t)}function ff(){Gt(Ho),Gt(Ih),Gt(Fh)}function YU(e){Ql(Fh.current);var t=Ql(Ho.current),n=zS(t,e.type);t!==n&&(Ft(Ih,e),Ft(Ho,n))}function JC(e){Ih.current===e&&(Gt(Ho),Gt(Ih))}var on=ul(0);function l0(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 Kx=[];function ek(){for(var e=0;e<Kx.length;e++)Kx[e]._workInProgressVersionPrimary=null;Kx.length=0}var _y=Ha.ReactCurrentDispatcher,Zx=Ha.ReactCurrentBatchConfig,wu=0,ln=null,Pn=null,Wn=null,u0=!1,Xp=!1,Uh=0,RQ=0;function hr(){throw Error(Te(321))}function tk(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yo(e[n],t[n]))return!1;return!0}function nk(e,t,n,r,i,o){if(wu=o,ln=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_y.current=e===null||e.memoizedState===null?FQ:UQ,e=n(r,i),Xp){o=0;do{if(Xp=!1,Uh=0,25<=o)throw Error(Te(301));o+=1,Wn=Pn=null,t.updateQueue=null,_y.current=$Q,e=n(r,i)}while(Xp)}if(_y.current=c0,t=Pn!==null&&Pn.next!==null,wu=0,Wn=Pn=ln=null,u0=!1,t)throw Error(Te(300));return e}function rk(){var e=Uh!==0;return Uh=0,e}function Ro(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wn===null?ln.memoizedState=Wn=e:Wn=Wn.next=e,Wn}function Bi(){if(Pn===null){var e=ln.alternate;e=e!==null?e.memoizedState:null}else e=Pn.next;var t=Wn===null?ln.memoizedState:Wn.next;if(t!==null)Wn=t,Pn=e;else{if(e===null)throw Error(Te(310));Pn=e,e={memoizedState:Pn.memoizedState,baseState:Pn.baseState,baseQueue:Pn.baseQueue,queue:Pn.queue,next:null},Wn===null?ln.memoizedState=Wn=e:Wn=Wn.next=e}return Wn}function $h(e,t){return typeof t=="function"?t(e):t}function Qx(e){var t=Bi(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=Pn,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((wu&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,ln.lanes|=f,xu|=f}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,yo(r,t.memoizedState)||(Br=!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,ln.lanes|=o,xu|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xx(e){var t=Bi(),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);yo(o,t.memoizedState)||(Br=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function GU(){}function qU(e,t){var n=ln,r=Bi(),i=t(),o=!yo(r.memoizedState,i);if(o&&(r.memoizedState=i,Br=!0),r=r.queue,ik(QU.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Wn!==null&&Wn.memoizedState.tag&1){if(n.flags|=2048,Bh(9,ZU.bind(null,n,r,i,t),void 0,null),Gn===null)throw Error(Te(349));wu&30||KU(n,t,i)}return i}function KU(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ln.updateQueue,t===null?(t={lastEffect:null,stores:null},ln.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ZU(e,t,n,r){t.value=n,t.getSnapshot=r,XU(t)&&JU(e)}function QU(e,t,n){return n(function(){XU(t)&&JU(e)})}function XU(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yo(e,n)}catch{return!0}}function JU(e){var t=Na(e,1);t!==null&&vo(t,e,1,-1)}function vM(e){var t=Ro();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$h,lastRenderedState:e},t.queue=e,e=e.dispatch=IQ.bind(null,ln,e),[t.memoizedState,e]}function Bh(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ln.updateQueue,t===null?(t={lastEffect:null,stores:null},ln.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 e$(){return Bi().memoizedState}function wy(e,t,n,r){var i=Ro();ln.flags|=e,i.memoizedState=Bh(1|t,n,void 0,r===void 0?null:r)}function D_(e,t,n,r){var i=Bi();r=r===void 0?null:r;var o=void 0;if(Pn!==null){var a=Pn.memoizedState;if(o=a.destroy,r!==null&&tk(r,a.deps)){i.memoizedState=Bh(t,n,o,r);return}}ln.flags|=e,i.memoizedState=Bh(1|t,n,o,r)}function gM(e,t){return wy(8390656,8,e,t)}function ik(e,t){return D_(2048,8,e,t)}function t$(e,t){return D_(4,2,e,t)}function n$(e,t){return D_(4,4,e,t)}function r$(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 i$(e,t,n){return n=n!=null?n.concat([e]):null,D_(4,4,r$.bind(null,t,e),n)}function ok(){}function o$(e,t){var n=Bi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tk(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function a$(e,t){var n=Bi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tk(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function s$(e,t,n){return wu&21?(yo(n,t)||(n=cU(),ln.lanes|=n,xu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Br=!0),e.memoizedState=n)}function DQ(e,t){var n=At;At=n!==0&&4>n?n:4,e(!0);var r=Zx.transition;Zx.transition={};try{e(!1),t()}finally{At=n,Zx.transition=r}}function l$(){return Bi().memoizedState}function LQ(e,t,n){var r=Us(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},u$(e))c$(t,n);else if(n=$U(e,t,n,r),n!==null){var i=Rr();vo(n,e,r,i),f$(n,t,r)}}function IQ(e,t,n){var r=Us(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(u$(e))c$(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,yo(s,a)){var l=t.interleaved;l===null?(i.next=i,ZC(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=$U(e,t,i,r),n!==null&&(i=Rr(),vo(n,e,r,i),f$(n,t,r))}}function u$(e){var t=e.alternate;return e===ln||t!==null&&t===ln}function c$(e,t){Xp=u0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function f$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,LC(e,n)}}var c0={readContext:$i,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useInsertionEffect:hr,useLayoutEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useMutableSource:hr,useSyncExternalStore:hr,useId:hr,unstable_isNewReconciler:!1},FQ={readContext:$i,useCallback:function(e,t){return Ro().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:gM,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wy(4194308,4,r$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wy(4194308,4,e,t)},useInsertionEffect:function(e,t){return wy(4,2,e,t)},useMemo:function(e,t){var n=Ro();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ro();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=LQ.bind(null,ln,e),[r.memoizedState,e]},useRef:function(e){var t=Ro();return e={current:e},t.memoizedState=e},useState:vM,useDebugValue:ok,useDeferredValue:function(e){return Ro().memoizedState=e},useTransition:function(){var e=vM(!1),t=e[0];return e=DQ.bind(null,e[1]),Ro().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ln,i=Ro();if(Zt){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),Gn===null)throw Error(Te(349));wu&30||KU(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gM(QU.bind(null,r,o,e),[e]),r.flags|=2048,Bh(9,ZU.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ro(),t=Gn.identifierPrefix;if(Zt){var n=wa,r=_a;n=(r&~(1<<32-mo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uh++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=RQ++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},UQ={readContext:$i,useCallback:o$,useContext:$i,useEffect:ik,useImperativeHandle:i$,useInsertionEffect:t$,useLayoutEffect:n$,useMemo:a$,useReducer:Qx,useRef:e$,useState:function(){return Qx($h)},useDebugValue:ok,useDeferredValue:function(e){var t=Bi();return s$(t,Pn.memoizedState,e)},useTransition:function(){var e=Qx($h)[0],t=Bi().memoizedState;return[e,t]},useMutableSource:GU,useSyncExternalStore:qU,useId:l$,unstable_isNewReconciler:!1},$Q={readContext:$i,useCallback:o$,useContext:$i,useEffect:ik,useImperativeHandle:i$,useInsertionEffect:t$,useLayoutEffect:n$,useMemo:a$,useReducer:Xx,useRef:e$,useState:function(){return Xx($h)},useDebugValue:ok,useDeferredValue:function(e){var t=Bi();return Pn===null?t.memoizedState=e:s$(t,Pn.memoizedState,e)},useTransition:function(){var e=Xx($h)[0],t=Bi().memoizedState;return[e,t]},useMutableSource:GU,useSyncExternalStore:qU,useId:l$,unstable_isNewReconciler:!1};function df(e,t){try{var n="",r=t;do n+=hZ(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 Jx(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function f2(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var BQ=typeof WeakMap=="function"?WeakMap:Map;function d$(e,t,n){n=Ea(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){d0||(d0=!0,w2=r),f2(e,t)},n}function p$(e,t,n){n=Ea(-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(){f2(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){f2(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 yM(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new BQ;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=tX.bind(null,e,t,n),t.then(e,e))}function bM(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 _M(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=Ea(-1,1),t.tag=2,Is(n,t,1))),n.lanes|=1),e)}var zQ=Ha.ReactCurrentOwner,Br=!1;function kr(e,t,n,r){t.child=e===null?WU(t,null,n,r):cf(t,e.child,n,r)}function wM(e,t,n,r,i){n=n.render;var o=t.ref;return Xc(t,i),r=nk(e,t,n,r,o,i),n=rk(),e!==null&&!Br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ma(e,t,i)):(Zt&&n&&HC(t),t.flags|=1,kr(e,t,r,i),t.child)}function xM(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!pk(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,h$(e,t,o,r,i)):(e=Ey(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:Mh,n(a,r)&&e.ref===t.ref)return Ma(e,t,i)}return t.flags|=1,e=$s(o,r),e.ref=t.ref,e.return=t,t.child=e}function h$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Mh(o,r)&&e.ref===t.ref)if(Br=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Br=!0);else return t.lanes=e.lanes,Ma(e,t,i)}return d2(e,t,n,r,i)}function m$(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},Ft(Rc,ii),ii|=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,Ft(Rc,ii),ii|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ft(Rc,ii),ii|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ft(Rc,ii),ii|=r;return kr(e,t,i,n),t.child}function v$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function d2(e,t,n,r,i){var o=Yr(n)?bu:_r.current;return o=lf(t,o),Xc(t,i),n=nk(e,t,n,r,o,i),r=rk(),e!==null&&!Br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ma(e,t,i)):(Zt&&r&&HC(t),t.flags|=1,kr(e,t,n,i),t.child)}function OM(e,t,n,r,i){if(Yr(n)){var o=!0;n0(t)}else o=!1;if(Xc(t,i),t.stateNode===null)xy(e,t),VU(t,n,r),c2(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=$i(u):(u=Yr(n)?bu:_r.current,u=lf(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)&&hM(t,a,r,u),gs=!1;var p=t.memoizedState;a.state=p,s0(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Wr.current||gs?(typeof f=="function"&&(u2(t,n,f,r),l=t.memoizedState),(s=gs||pM(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,BU(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:oo(t.type,s),a.props=u,d=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=$i(l):(l=Yr(n)?bu:_r.current,l=lf(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)&&hM(t,a,r,l),gs=!1,p=t.memoizedState,a.state=p,s0(t,r,a,i);var v=t.memoizedState;s!==d||p!==v||Wr.current||gs?(typeof m=="function"&&(u2(t,n,m,r),v=t.memoizedState),(u=gs||pM(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 p2(e,t,n,r,o,i)}function p2(e,t,n,r,i,o){v$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&lM(t,n,!1),Ma(e,t,o);r=t.stateNode,zQ.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=cf(t,e.child,null,o),t.child=cf(t,null,s,o)):kr(e,t,s,o),t.memoizedState=r.state,i&&lM(t,n,!0),t.child}function g$(e){var t=e.stateNode;t.pendingContext?sM(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sM(e,t.context,!1),XC(e,t.containerInfo)}function SM(e,t,n,r,i){return uf(),YC(i),t.flags|=256,kr(e,t,n,r),t.child}var h2={dehydrated:null,treeContext:null,retryLane:0};function m2(e){return{baseLanes:e,cachePool:null,transitions:null}}function y$(e,t,n){var r=t.pendingProps,i=on.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),Ft(on,i&1),e===null)return s2(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=F_(a,r,0,null),e=su(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=m2(n),t.memoizedState=h2,e):ak(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return VQ(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=su(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?m2(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=h2,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 ak(e,t){return t=F_({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _g(e,t,n,r){return r!==null&&YC(r),cf(t,e.child,null,n),e=ak(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VQ(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Jx(Error(Te(422))),_g(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=F_({mode:"visible",children:r.children},i,0,null),o=su(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&cf(t,e.child,null,a),t.child.memoizedState=m2(a),t.memoizedState=h2,o);if(!(t.mode&1))return _g(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=Jx(o,r,void 0),_g(e,t,a,r)}if(s=(a&e.childLanes)!==0,Br||s){if(r=Gn,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,Na(e,i),vo(r,e,i,-1))}return dk(),r=Jx(Error(Te(421))),_g(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=nX.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ai=Ls(i.nextSibling),si=t,Zt=!0,uo=null,e!==null&&(Ci[ki++]=_a,Ci[ki++]=wa,Ci[ki++]=_u,_a=e.id,wa=e.overflow,_u=t),t=ak(t,r.children),t.flags|=4096,t)}function EM(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),l2(e.return,t,n)}function eO(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 b$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(kr(e,t,r.children,n),r=on.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&&EM(e,n,t);else if(e.tag===19)EM(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(Ft(on,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&&l0(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),eO(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&&l0(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}eO(t,!0,n,null,o);break;case"together":eO(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xy(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ma(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xu|=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 HQ(e,t,n){switch(t.tag){case 3:g$(t),uf();break;case 5:YU(t);break;case 1:Yr(t.type)&&n0(t);break;case 4:XC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ft(o0,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ft(on,on.current&1),t.flags|=128,null):n&t.child.childLanes?y$(e,t,n):(Ft(on,on.current&1),e=Ma(e,t,n),e!==null?e.sibling:null);Ft(on,on.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return b$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ft(on,on.current),r)break;return null;case 22:case 23:return t.lanes=0,m$(e,t,n)}return Ma(e,t,n)}var _$,v2,w$,x$;_$=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}};v2=function(){};w$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ql(Ho.current);var o=null;switch(n){case"input":i=FS(e,i),r=FS(e,r),o=[];break;case"select":i=cn({},i,{value:void 0}),r=cn({},r,{value:void 0}),o=[];break;case"textarea":i=BS(e,i),r=BS(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=e0)}VS(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"&&(Th.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"&&(Th.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Bt("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)}};x$=function(e,t,n,r){n!==r&&(t.flags|=4)};function cp(e,t){if(!Zt)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 mr(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 WQ(e,t,n){var r=t.pendingProps;switch(WC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mr(t),null;case 1:return Yr(t.type)&&t0(),mr(t),null;case 3:return r=t.stateNode,ff(),Gt(Wr),Gt(_r),ek(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,uo!==null&&(S2(uo),uo=null))),v2(e,t),mr(t),null;case 5:JC(t);var i=Ql(Fh.current);if(n=t.type,e!==null&&t.stateNode!=null)w$(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 mr(t),null}if(e=Ql(Ho.current),yg(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Lo]=t,r[Lh]=o,e=(t.mode&1)!==0,n){case"dialog":Bt("cancel",r),Bt("close",r);break;case"iframe":case"object":case"embed":Bt("load",r);break;case"video":case"audio":for(i=0;i<Lp.length;i++)Bt(Lp[i],r);break;case"source":Bt("error",r);break;case"img":case"image":case"link":Bt("error",r),Bt("load",r);break;case"details":Bt("toggle",r);break;case"input":RN(r,o),Bt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Bt("invalid",r);break;case"textarea":LN(r,o),Bt("invalid",r)}VS(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&&gg(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&gg(r.textContent,s,e),i=["children",""+s]):Th.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Bt("scroll",r)}switch(n){case"input":ug(r),DN(r,o,!0);break;case"textarea":ug(r),IN(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=e0)}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=KF(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[Lo]=t,e[Lh]=r,_$(e,t,!1,!1),t.stateNode=e;e:{switch(a=HS(n,r),n){case"dialog":Bt("cancel",e),Bt("close",e),i=r;break;case"iframe":case"object":case"embed":Bt("load",e),i=r;break;case"video":case"audio":for(i=0;i<Lp.length;i++)Bt(Lp[i],e);i=r;break;case"source":Bt("error",e),i=r;break;case"img":case"image":case"link":Bt("error",e),Bt("load",e),i=r;break;case"details":Bt("toggle",e),i=r;break;case"input":RN(e,r),i=FS(e,r),Bt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=cn({},r,{value:void 0}),Bt("invalid",e);break;case"textarea":LN(e,r),i=BS(e,r),Bt("invalid",e);break;default:i=r}VS(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?XF(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ZF(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ch(e,l):typeof l=="number"&&Ch(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Th.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Bt("scroll",e):l!=null&&PC(e,o,l,a))}switch(n){case"input":ug(e),DN(e,r,!1);break;case"textarea":ug(e),IN(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ks(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?qc(e,!!r.multiple,o,!1):r.defaultValue!=null&&qc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=e0)}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 mr(t),null;case 6:if(e&&t.stateNode!=null)x$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Te(166));if(n=Ql(Fh.current),Ql(Ho.current),yg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Lo]=t,(o=r.nodeValue!==n)&&(e=si,e!==null))switch(e.tag){case 3:gg(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gg(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Lo]=t,t.stateNode=r}return mr(t),null;case 13:if(Gt(on),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Zt&&ai!==null&&t.mode&1&&!(t.flags&128))UU(),uf(),t.flags|=98560,o=!1;else if(o=yg(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[Lo]=t}else uf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mr(t),o=!1}else uo!==null&&(S2(uo),uo=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||on.current&1?An===0&&(An=3):dk())),t.updateQueue!==null&&(t.flags|=4),mr(t),null);case 4:return ff(),v2(e,t),e===null&&Rh(t.stateNode.containerInfo),mr(t),null;case 10:return KC(t.type._context),mr(t),null;case 17:return Yr(t.type)&&t0(),mr(t),null;case 19:if(Gt(on),o=t.memoizedState,o===null)return mr(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)cp(o,!1);else{if(An!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=l0(e),a!==null){for(t.flags|=128,cp(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 Ft(on,on.current&1|2),t.child}e=e.sibling}o.tail!==null&&bn()>pf&&(t.flags|=128,r=!0,cp(o,!1),t.lanes=4194304)}else{if(!r)if(e=l0(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cp(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Zt)return mr(t),null}else 2*bn()-o.renderingStartTime>pf&&n!==1073741824&&(t.flags|=128,r=!0,cp(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=bn(),t.sibling=null,n=on.current,Ft(on,r?n&1|2:n&1),t):(mr(t),null);case 22:case 23:return fk(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ii&1073741824&&(mr(t),t.subtreeFlags&6&&(t.flags|=8192)):mr(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function YQ(e,t){switch(WC(t),t.tag){case 1:return Yr(t.type)&&t0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ff(),Gt(Wr),Gt(_r),ek(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return JC(t),null;case 13:if(Gt(on),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));uf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(on),null;case 4:return ff(),null;case 10:return KC(t.type._context),null;case 22:case 23:return fk(),null;case 24:return null;default:return null}}var wg=!1,yr=!1,GQ=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Mc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){dn(e,t,r)}else n.current=null}function g2(e,t,n){try{n()}catch(r){dn(e,t,r)}}var TM=!1;function qQ(e,t){if(e2=Qy,e=TU(),VC(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(t2={focusedElem:e,selectionRange:n},Qy=!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,x=v.memoizedState,b=t.stateNode,_=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:oo(t.type,g),x);b.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(O){dn(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return v=TM,TM=!1,v}function Jp(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&&g2(t,n,o)}i=i.next}while(i!==r)}}function L_(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 y2(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 O$(e){var t=e.alternate;t!==null&&(e.alternate=null,O$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lo],delete t[Lh],delete t[i2],delete t[PQ],delete t[AQ])),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 S$(e){return e.tag===5||e.tag===3||e.tag===4}function CM(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S$(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 b2(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=e0));else if(r!==4&&(e=e.child,e!==null))for(b2(e,t,n),e=e.sibling;e!==null;)b2(e,t,n),e=e.sibling}function _2(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(_2(e,t,n),e=e.sibling;e!==null;)_2(e,t,n),e=e.sibling}var ur=null,ao=!1;function rs(e,t,n){for(n=n.child;n!==null;)E$(e,t,n),n=n.sibling}function E$(e,t,n){if(Vo&&typeof Vo.onCommitFiberUnmount=="function")try{Vo.onCommitFiberUnmount(k_,n)}catch{}switch(n.tag){case 5:yr||Mc(n,t);case 6:var r=ur,i=ao;ur=null,rs(e,t,n),ur=r,ao=i,ur!==null&&(ao?(e=ur,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ur.removeChild(n.stateNode));break;case 18:ur!==null&&(ao?(e=ur,n=n.stateNode,e.nodeType===8?Gx(e.parentNode,n):e.nodeType===1&&Gx(e,n),Ah(e)):Gx(ur,n.stateNode));break;case 4:r=ur,i=ao,ur=n.stateNode.containerInfo,ao=!0,rs(e,t,n),ur=r,ao=i;break;case 0:case 11:case 14:case 15:if(!yr&&(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)&&g2(n,t,a),i=i.next}while(i!==r)}rs(e,t,n);break;case 1:if(!yr&&(Mc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){dn(n,t,s)}rs(e,t,n);break;case 21:rs(e,t,n);break;case 22:n.mode&1?(yr=(r=yr)||n.memoizedState!==null,rs(e,t,n),yr=r):rs(e,t,n);break;default:rs(e,t,n)}}function kM(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GQ),t.forEach(function(r){var i=rX.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ro(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:ur=s.stateNode,ao=!1;break e;case 3:ur=s.stateNode.containerInfo,ao=!0;break e;case 4:ur=s.stateNode.containerInfo,ao=!0;break e}s=s.return}if(ur===null)throw Error(Te(160));E$(o,a,i),ur=null,ao=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){dn(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)T$(t,e),t=t.sibling}function T$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ro(t,e),Po(e),r&4){try{Jp(3,e,e.return),L_(3,e)}catch(g){dn(e,e.return,g)}try{Jp(5,e,e.return)}catch(g){dn(e,e.return,g)}}break;case 1:ro(t,e),Po(e),r&512&&n!==null&&Mc(n,n.return);break;case 5:if(ro(t,e),Po(e),r&512&&n!==null&&Mc(n,n.return),e.flags&32){var i=e.stateNode;try{Ch(i,"")}catch(g){dn(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&&GF(i,o),HS(s,a);var u=HS(s,o);for(a=0;a<l.length;a+=2){var f=l[a],d=l[a+1];f==="style"?XF(i,d):f==="dangerouslySetInnerHTML"?ZF(i,d):f==="children"?Ch(i,d):PC(i,f,d,u)}switch(s){case"input":US(i,o);break;case"textarea":qF(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?qc(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?qc(i,!!o.multiple,o.defaultValue,!0):qc(i,!!o.multiple,o.multiple?[]:"",!1))}i[Lh]=o}catch(g){dn(e,e.return,g)}}break;case 6:if(ro(t,e),Po(e),r&4){if(e.stateNode===null)throw Error(Te(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){dn(e,e.return,g)}}break;case 3:if(ro(t,e),Po(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ah(t.containerInfo)}catch(g){dn(e,e.return,g)}break;case 4:ro(t,e),Po(e);break;case 13:ro(t,e),Po(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(uk=bn())),r&4&&kM(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(yr=(u=yr)||f,ro(t,e),yr=u):ro(t,e),Po(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:Jp(4,p,p.return);break;case 1:Mc(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){dn(r,n,g)}}break;case 5:Mc(p,p.return);break;case 22:if(p.memoizedState!==null){PM(d);continue}}m!==null?(m.return=p,$e=m):PM(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=QF("display",a))}catch(g){dn(e,e.return,g)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){dn(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:ro(t,e),Po(e),r&4&&kM(e);break;case 21:break;default:ro(t,e),Po(e)}}function Po(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(S$(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&&(Ch(i,""),r.flags&=-33);var o=CM(e);_2(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=CM(e);b2(e,s,a);break;default:throw Error(Te(161))}}catch(l){dn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function KQ(e,t,n){$e=e,C$(e)}function C$(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||wg;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||yr;s=wg;var u=yr;if(wg=a,(yr=l)&&!u)for($e=i;$e!==null;)a=$e,l=a.child,a.tag===22&&a.memoizedState!==null?AM(i):l!==null?(l.return=a,$e=l):AM(i);for(;o!==null;)$e=o,C$(o),o=o.sibling;$e=i,wg=s,yr=u}jM(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$e=o):jM(e)}}function jM(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:yr||L_(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!yr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:oo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&dM(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}dM(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&&Ah(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Te(163))}yr||t.flags&512&&y2(t)}catch(p){dn(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 PM(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 AM(e){for(;$e!==null;){var t=$e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{L_(4,t)}catch(l){dn(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){dn(t,i,l)}}var o=t.return;try{y2(t)}catch(l){dn(t,o,l)}break;case 5:var a=t.return;try{y2(t)}catch(l){dn(t,a,l)}}}catch(l){dn(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 ZQ=Math.ceil,f0=Ha.ReactCurrentDispatcher,sk=Ha.ReactCurrentOwner,Di=Ha.ReactCurrentBatchConfig,bt=0,Gn=null,En=null,cr=0,ii=0,Rc=ul(0),An=0,zh=null,xu=0,I_=0,lk=0,eh=null,$r=null,uk=0,pf=1/0,ma=null,d0=!1,w2=null,Fs=null,xg=!1,Ss=null,p0=0,th=0,x2=null,Oy=-1,Sy=0;function Rr(){return bt&6?bn():Oy!==-1?Oy:Oy=bn()}function Us(e){return e.mode&1?bt&2&&cr!==0?cr&-cr:MQ.transition!==null?(Sy===0&&(Sy=cU()),Sy):(e=At,e!==0||(e=window.event,e=e===void 0?16:gU(e.type)),e):1}function vo(e,t,n,r){if(50<th)throw th=0,x2=null,Error(Te(185));nv(e,n,r),(!(bt&2)||e!==Gn)&&(e===Gn&&(!(bt&2)&&(I_|=n),An===4&&xs(e,cr)),Gr(e,r),n===1&&bt===0&&!(t.mode&1)&&(pf=bn()+500,M_&&cl()))}function Gr(e,t){var n=e.callbackNode;MZ(e,t);var r=Zy(e,e===Gn?cr:0);if(r===0)n!==null&&$N(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&$N(n),t===1)e.tag===0?NQ(NM.bind(null,e)):LU(NM.bind(null,e)),kQ(function(){!(bt&6)&&cl()}),n=null;else{switch(fU(r)){case 1:n=DC;break;case 4:n=lU;break;case 16:n=Ky;break;case 536870912:n=uU;break;default:n=Ky}n=D$(n,k$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function k$(e,t){if(Oy=-1,Sy=0,bt&6)throw Error(Te(327));var n=e.callbackNode;if(Jc()&&e.callbackNode!==n)return null;var r=Zy(e,e===Gn?cr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=h0(e,r);else{t=r;var i=bt;bt|=2;var o=P$();(Gn!==e||cr!==t)&&(ma=null,pf=bn()+500,au(e,t));do try{JQ();break}catch(s){j$(e,s)}while(1);qC(),f0.current=o,bt=i,En!==null?t=0:(Gn=null,cr=0,t=An)}if(t!==0){if(t===2&&(i=KS(e),i!==0&&(r=i,t=O2(e,i))),t===1)throw n=zh,au(e,0),xs(e,r),Gr(e,bn()),n;if(t===6)xs(e,r);else{if(i=e.current.alternate,!(r&30)&&!QQ(i)&&(t=h0(e,r),t===2&&(o=KS(e),o!==0&&(r=o,t=O2(e,o))),t===1))throw n=zh,au(e,0),xs(e,r),Gr(e,bn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Te(345));case 2:Ll(e,$r,ma);break;case 3:if(xs(e,r),(r&130023424)===r&&(t=uk+500-bn(),10<t)){if(Zy(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Rr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=r2(Ll.bind(null,e,$r,ma),t);break}Ll(e,$r,ma);break;case 4:if(xs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-mo(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=bn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ZQ(r/1960))-r,10<r){e.timeoutHandle=r2(Ll.bind(null,e,$r,ma),r);break}Ll(e,$r,ma);break;case 5:Ll(e,$r,ma);break;default:throw Error(Te(329))}}}return Gr(e,bn()),e.callbackNode===n?k$.bind(null,e):null}function O2(e,t){var n=eh;return e.current.memoizedState.isDehydrated&&(au(e,t).flags|=256),e=h0(e,t),e!==2&&(t=$r,$r=n,t!==null&&S2(t)),e}function S2(e){$r===null?$r=e:$r.push.apply($r,e)}function QQ(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(!yo(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xs(e,t){for(t&=~lk,t&=~I_,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 NM(e){if(bt&6)throw Error(Te(327));Jc();var t=Zy(e,0);if(!(t&1))return Gr(e,bn()),null;var n=h0(e,t);if(e.tag!==0&&n===2){var r=KS(e);r!==0&&(t=r,n=O2(e,r))}if(n===1)throw n=zh,au(e,0),xs(e,t),Gr(e,bn()),n;if(n===6)throw Error(Te(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ll(e,$r,ma),Gr(e,bn()),null}function ck(e,t){var n=bt;bt|=1;try{return e(t)}finally{bt=n,bt===0&&(pf=bn()+500,M_&&cl())}}function Ou(e){Ss!==null&&Ss.tag===0&&!(bt&6)&&Jc();var t=bt;bt|=1;var n=Di.transition,r=At;try{if(Di.transition=null,At=1,e)return e()}finally{At=r,Di.transition=n,bt=t,!(bt&6)&&cl()}}function fk(){ii=Rc.current,Gt(Rc)}function au(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,CQ(n)),En!==null)for(n=En.return;n!==null;){var r=n;switch(WC(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&t0();break;case 3:ff(),Gt(Wr),Gt(_r),ek();break;case 5:JC(r);break;case 4:ff();break;case 13:Gt(on);break;case 19:Gt(on);break;case 10:KC(r.type._context);break;case 22:case 23:fk()}n=n.return}if(Gn=e,En=e=$s(e.current,null),cr=ii=t,An=0,zh=null,lk=I_=xu=0,$r=eh=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 j$(e,t){do{var n=En;try{if(qC(),_y.current=c0,u0){for(var r=ln.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}u0=!1}if(wu=0,Wn=Pn=ln=null,Xp=!1,Uh=0,sk.current=null,n===null||n.return===null){An=1,zh=t,En=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=cr,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=bM(a);if(m!==null){m.flags&=-257,_M(m,a,s,o,t),m.mode&1&&yM(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)){yM(o,u,t),dk();break e}l=Error(Te(426))}}else if(Zt&&s.mode&1){var x=bM(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),_M(x,a,s,o,t),YC(df(l,s));break e}}o=l=df(l,s),An!==4&&(An=2),eh===null?eh=[o]:eh.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=d$(o,l,t);fM(o,b);break e;case 1:s=l;var _=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof _.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Fs===null||!Fs.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=p$(o,s,t);fM(o,O);break e}}o=o.return}while(o!==null)}N$(n)}catch(E){t=E,En===n&&n!==null&&(En=n=n.return);continue}break}while(1)}function P$(){var e=f0.current;return f0.current=c0,e===null?c0:e}function dk(){(An===0||An===3||An===2)&&(An=4),Gn===null||!(xu&268435455)&&!(I_&268435455)||xs(Gn,cr)}function h0(e,t){var n=bt;bt|=2;var r=P$();(Gn!==e||cr!==t)&&(ma=null,au(e,t));do try{XQ();break}catch(i){j$(e,i)}while(1);if(qC(),bt=n,f0.current=r,En!==null)throw Error(Te(261));return Gn=null,cr=0,An}function XQ(){for(;En!==null;)A$(En)}function JQ(){for(;En!==null&&!SZ();)A$(En)}function A$(e){var t=R$(e.alternate,e,ii);e.memoizedProps=e.pendingProps,t===null?N$(e):En=t,sk.current=null}function N$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=YQ(n,t),n!==null){n.flags&=32767,En=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{An=6,En=null;return}}else if(n=WQ(n,t,ii),n!==null){En=n;return}if(t=t.sibling,t!==null){En=t;return}En=t=e}while(t!==null);An===0&&(An=5)}function Ll(e,t,n){var r=At,i=Di.transition;try{Di.transition=null,At=1,eX(e,t,n,r)}finally{Di.transition=i,At=r}return null}function eX(e,t,n,r){do Jc();while(Ss!==null);if(bt&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(RZ(e,o),e===Gn&&(En=Gn=null,cr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xg||(xg=!0,D$(Ky,function(){return Jc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Di.transition,Di.transition=null;var a=At;At=1;var s=bt;bt|=4,sk.current=null,qQ(e,n),T$(n,e),_Q(t2),Qy=!!e2,t2=e2=null,e.current=n,KQ(n),EZ(),bt=s,At=a,Di.transition=o}else e.current=n;if(xg&&(xg=!1,Ss=e,p0=i),o=e.pendingLanes,o===0&&(Fs=null),kZ(n.stateNode),Gr(e,bn()),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(d0)throw d0=!1,e=w2,w2=null,e;return p0&1&&e.tag!==0&&Jc(),o=e.pendingLanes,o&1?e===x2?th++:(th=0,x2=e):th=0,cl(),null}function Jc(){if(Ss!==null){var e=fU(p0),t=Di.transition,n=At;try{if(Di.transition=null,At=16>e?16:e,Ss===null)var r=!1;else{if(e=Ss,Ss=null,p0=0,bt&6)throw Error(Te(331));var i=bt;for(bt|=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:Jp(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(O$(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 x=g.sibling;g.sibling=null,g=x}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:Jp(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,$e=b;break e}$e=o.return}}var _=e.current;for($e=_;$e!==null;){a=$e;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,$e=w;else e:for(a=_;$e!==null;){if(s=$e,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:L_(9,s)}}catch(E){dn(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(bt=i,cl(),Vo&&typeof Vo.onPostCommitFiberRoot=="function")try{Vo.onPostCommitFiberRoot(k_,e)}catch{}r=!0}return r}finally{At=n,Di.transition=t}}return!1}function MM(e,t,n){t=df(n,t),t=d$(e,t,1),e=Is(e,t,1),t=Rr(),e!==null&&(nv(e,1,t),Gr(e,t))}function dn(e,t,n){if(e.tag===3)MM(e,e,n);else for(;t!==null;){if(t.tag===3){MM(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=df(n,e),e=p$(t,e,1),t=Is(t,e,1),e=Rr(),t!==null&&(nv(t,1,e),Gr(t,e));break}}t=t.return}}function tX(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Rr(),e.pingedLanes|=e.suspendedLanes&n,Gn===e&&(cr&n)===n&&(An===4||An===3&&(cr&130023424)===cr&&500>bn()-uk?au(e,0):lk|=n),Gr(e,t)}function M$(e,t){t===0&&(e.mode&1?(t=dg,dg<<=1,!(dg&130023424)&&(dg=4194304)):t=1);var n=Rr();e=Na(e,t),e!==null&&(nv(e,t,n),Gr(e,n))}function nX(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),M$(e,n)}function rX(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),M$(e,n)}var R$;R$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wr.current)Br=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Br=!1,HQ(e,t,n);Br=!!(e.flags&131072)}else Br=!1,Zt&&t.flags&1048576&&IU(t,i0,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xy(e,t),e=t.pendingProps;var i=lf(t,_r.current);Xc(t,n),i=nk(null,t,r,e,i,n);var o=rk();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,Yr(r)?(o=!0,n0(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,QC(t),i.updater=R_,t.stateNode=i,i._reactInternals=t,c2(t,r,e,n),t=p2(null,t,r,!0,o,n)):(t.tag=0,Zt&&o&&HC(t),kr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xy(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=oX(r),e=oo(r,e),i){case 0:t=d2(null,t,r,e,n);break e;case 1:t=OM(null,t,r,e,n);break e;case 11:t=wM(null,t,r,e,n);break e;case 14:t=xM(null,t,r,oo(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:oo(r,i),d2(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oo(r,i),OM(e,t,r,i,n);case 3:e:{if(g$(t),e===null)throw Error(Te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,BU(e,t),s0(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=df(Error(Te(423)),t),t=SM(e,t,r,n,i);break e}else if(r!==i){i=df(Error(Te(424)),t),t=SM(e,t,r,n,i);break e}else for(ai=Ls(t.stateNode.containerInfo.firstChild),si=t,Zt=!0,uo=null,n=WU(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uf(),r===i){t=Ma(e,t,n);break e}kr(e,t,r,n)}t=t.child}return t;case 5:return YU(t),e===null&&s2(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,n2(r,i)?a=null:o!==null&&n2(r,o)&&(t.flags|=32),v$(e,t),kr(e,t,a,n),t.child;case 6:return e===null&&s2(t),null;case 13:return y$(e,t,n);case 4:return XC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cf(t,null,r,n):kr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oo(r,i),wM(e,t,r,i,n);case 7:return kr(e,t,t.pendingProps,n),t.child;case 8:return kr(e,t,t.pendingProps.children,n),t.child;case 12:return kr(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,Ft(o0,r._currentValue),r._currentValue=a,o!==null)if(yo(o.value,a)){if(o.children===i.children&&!Wr.current){t=Ma(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=Ea(-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),l2(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),l2(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}kr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xc(t,n),i=$i(i),r=r(i),t.flags|=1,kr(e,t,r,n),t.child;case 14:return r=t.type,i=oo(r,t.pendingProps),i=oo(r.type,i),xM(e,t,r,i,n);case 15:return h$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oo(r,i),xy(e,t),t.tag=1,Yr(r)?(e=!0,n0(t)):e=!1,Xc(t,n),VU(t,r,i),c2(t,r,i,n),p2(null,t,r,!0,e,n);case 19:return b$(e,t,n);case 22:return m$(e,t,n)}throw Error(Te(156,t.tag))};function D$(e,t){return sU(e,t)}function iX(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 Ni(e,t,n,r){return new iX(e,t,n,r)}function pk(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oX(e){if(typeof e=="function")return pk(e)?1:0;if(e!=null){if(e=e.$$typeof,e===NC)return 11;if(e===MC)return 14}return 2}function $s(e,t){var n=e.alternate;return n===null?(n=Ni(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 Ey(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")pk(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Sc:return su(n.children,i,o,t);case AC:a=8,i|=8;break;case RS:return e=Ni(12,n,t,i|2),e.elementType=RS,e.lanes=o,e;case DS:return e=Ni(13,n,t,i),e.elementType=DS,e.lanes=o,e;case LS:return e=Ni(19,n,t,i),e.elementType=LS,e.lanes=o,e;case HF:return F_(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zF:a=10;break e;case VF:a=9;break e;case NC:a=11;break e;case MC:a=14;break e;case vs:a=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Ni(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function su(e,t,n,r){return e=Ni(7,e,r,t),e.lanes=n,e}function F_(e,t,n,r){return e=Ni(22,e,r,t),e.elementType=HF,e.lanes=n,e.stateNode={isHidden:!1},e}function tO(e,t,n){return e=Ni(6,e,null,t),e.lanes=n,e}function nO(e,t,n){return t=Ni(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aX(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=Lx(0),this.expirationTimes=Lx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lx(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hk(e,t,n,r,i,o,a,s,l){return e=new aX(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ni(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},QC(o),e}function sX(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Oc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function L$(e){if(!e)return Zs;e=e._reactInternals;e:{if(Iu(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(Yr(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(Yr(n))return DU(e,n,t)}return t}function I$(e,t,n,r,i,o,a,s,l){return e=hk(n,r,!0,e,i,o,a,s,l),e.context=L$(null),n=e.current,r=Rr(),i=Us(n),o=Ea(r,i),o.callback=t??null,Is(n,o,i),e.current.lanes=i,nv(e,i,r),Gr(e,r),e}function U_(e,t,n,r){var i=t.current,o=Rr(),a=Us(i);return n=L$(n),t.context===null?t.context=n:t.pendingContext=n,t=Ea(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),by(e,i,a)),a}function m0(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 RM(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mk(e,t){RM(e,t),(e=e.alternate)&&RM(e,t)}function lX(){return null}var F$=typeof reportError=="function"?reportError:function(e){console.error(e)};function vk(e){this._internalRoot=e}$_.prototype.render=vk.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Te(409));U_(e,t,null,null)};$_.prototype.unmount=vk.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ou(function(){U_(null,e,null,null)}),t[Aa]=null}};function $_(e){this._internalRoot=e}$_.prototype.unstable_scheduleHydration=function(e){if(e){var t=hU();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ws.length&&t!==0&&t<ws[n].priority;n++);ws.splice(n,0,e),n===0&&vU(e)}};function gk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function B_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function DM(){}function uX(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=m0(a);o.call(u)}}var a=I$(t,r,e,0,null,!1,!1,"",DM);return e._reactRootContainer=a,e[Aa]=a.current,Rh(e.nodeType===8?e.parentNode:e),Ou(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=m0(l);s.call(u)}}var l=hk(e,0,!1,null,null,!1,!1,"",DM);return e._reactRootContainer=l,e[Aa]=l.current,Rh(e.nodeType===8?e.parentNode:e),Ou(function(){U_(t,l,n,r)}),l}function z_(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=m0(a);s.call(l)}}U_(t,a,e,i)}else a=uX(n,t,e,i,r);return m0(a)}dU=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dp(t.pendingLanes);n!==0&&(LC(t,n|1),Gr(t,bn()),!(bt&6)&&(pf=bn()+500,cl()))}break;case 13:Ou(function(){var r=Na(e,1);if(r!==null){var i=Rr();vo(r,e,1,i)}}),mk(e,1)}};IC=function(e){if(e.tag===13){var t=Na(e,134217728);if(t!==null){var n=Rr();vo(t,e,134217728,n)}mk(e,134217728)}};pU=function(e){if(e.tag===13){var t=Us(e),n=Na(e,t);if(n!==null){var r=Rr();vo(n,e,t,r)}mk(e,t)}};hU=function(){return At};mU=function(e,t){var n=At;try{return At=e,t()}finally{At=n}};YS=function(e,t,n){switch(t){case"input":if(US(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=N_(r);if(!i)throw Error(Te(90));YF(r),US(r,i)}}}break;case"textarea":qF(e,n);break;case"select":t=n.value,t!=null&&qc(e,!!n.multiple,t,!1)}};tU=ck;nU=Ou;var cX={usingClientEntryPoint:!1,Events:[iv,kc,N_,JF,eU,ck]},fp={findFiberByHostInstance:Kl,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},fX={bundleType:fp.bundleType,version:fp.version,rendererPackageName:fp.rendererPackageName,rendererConfig:fp.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=oU(e),e===null?null:e.stateNode},findFiberByHostInstance:fp.findFiberByHostInstance||lX,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 Og=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Og.isDisabled&&Og.supportsFiber)try{k_=Og.inject(fX),Vo=Og}catch{}}vi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cX;vi.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gk(t))throw Error(Te(200));return sX(e,t,null,n)};vi.createRoot=function(e,t){if(!gk(e))throw Error(Te(299));var n=!1,r="",i=F$;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=hk(e,1,!1,null,null,n,!1,r,i),e[Aa]=t.current,Rh(e.nodeType===8?e.parentNode:e),new vk(t)};vi.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=oU(t),e=e===null?null:e.stateNode,e};vi.flushSync=function(e){return Ou(e)};vi.hydrate=function(e,t,n){if(!B_(t))throw Error(Te(200));return z_(null,e,t,!0,n)};vi.hydrateRoot=function(e,t,n){if(!gk(e))throw Error(Te(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=F$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=I$(t,null,e,1,n??null,i,!1,o,a),e[Aa]=t.current,Rh(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 $_(t)};vi.render=function(e,t,n){if(!B_(t))throw Error(Te(200));return z_(null,e,t,!1,n)};vi.unmountComponentAtNode=function(e){if(!B_(e))throw Error(Te(40));return e._reactRootContainer?(Ou(function(){z_(null,null,e,!1,function(){e._reactRootContainer=null,e[Aa]=null})}),!0):!1};vi.unstable_batchedUpdates=ck;vi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!B_(n))throw Error(Te(200));if(e==null||e._reactInternals===void 0)throw Error(Te(38));return z_(e,t,n,!1,r)};vi.version="18.2.0-next-9e3b772b8-20220608";function U$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U$)}catch(e){console.error(e)}}U$(),IF.exports=vi;var dd=IF.exports;const lu=Du(dd);var $$,LM=dd;$$=LM.createRoot,LM.hydrateRoot;var dX={};/**
|
||
* @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 av=I;function pX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hX=typeof Object.is=="function"?Object.is:pX,mX=av.useSyncExternalStore,vX=av.useRef,gX=av.useEffect,yX=av.useMemo,bX=av.useDebugValue;dX.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=vX(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=yX(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,hX(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=mX(e,o[0],o[1]);return gX(function(){a.hasValue=!0,a.value=s},[s]),bX(s),s};var Tt="default"in NS?M:NS,IM=Symbol.for("react-redux-context"),FM=typeof globalThis<"u"?globalThis:{};function _X(){if(!Tt.createContext)return{};const e=FM[IM]??(FM[IM]=new Map);let t=e.get(Tt.createContext);return t||(t=Tt.createContext(null),e.set(Tt.createContext,t)),t}var B$=_X(),wX=()=>{throw new Error("uSES not initialized!")},xX=Symbol.for("react.element"),OX=Symbol.for("react.portal"),SX=Symbol.for("react.fragment"),EX=Symbol.for("react.strict_mode"),TX=Symbol.for("react.profiler"),CX=Symbol.for("react.provider"),kX=Symbol.for("react.context"),jX=Symbol.for("react.server_context"),z$=Symbol.for("react.forward_ref"),PX=Symbol.for("react.suspense"),AX=Symbol.for("react.suspense_list"),yk=Symbol.for("react.memo"),NX=Symbol.for("react.lazy"),MX=z$,RX=yk;function DX(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case xX:{const n=e.type;switch(n){case SX:case TX:case EX:case PX:case AX:return n;default:{const r=n&&n.$$typeof;switch(r){case jX:case kX:case z$:case NX:case yk:case CX:return r;default:return t}}}}case OX:return t}}}function LX(e){return DX(e)===yk}function IX(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,u,f,d,p;function m(_,w){return l=_,u=w,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 x(){const _=e(l,u),w=!a(_,f);return f=_,w&&(p=n(f,d,u)),p}function b(_,w){const O=!o(w,u),E=!i(_,l,w,u);return l=_,u=w,O&&E?v():O?g():E?x():p}return function(w,O){return s?b(w,O):m(w,O)}}function FX(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return IX(o,a,s,e,i)}function UX(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 E2(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function UM(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function V$(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=UM(e);let u=o(s,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=UM(u),u=o(s,l)),u},o}}function bk(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function $X(e){return e&&typeof e=="object"?E2(t=>UX(e,t)):e?typeof e=="function"?V$(e):bk(e,"mapDispatchToProps"):E2(t=>({dispatch:t}))}function BX(e){return e?typeof e=="function"?V$(e):bk(e,"mapStateToProps"):E2(()=>({}))}function zX(e,t,n){return{...n,...e,...t}}function VX(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 HX(e){return e?typeof e=="function"?VX(e):bk(e,"mergeProps"):()=>zX}function WX(e){e()}function YX(){let e=null,t=null;return{clear(){e=null,t=null},notify(){WX(()=>{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 $M={notify(){},get:()=>[]};function H$(e,t){let n,r=$M,i=0,o=!1;function a(g){f();const x=r.subscribe(g);let b=!1;return()=>{b||(b=!0,x(),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=YX())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=$M)}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 GX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v0=GX?Tt.useLayoutEffect:Tt.useEffect;function BM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function rO(e,t){if(BM(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])||!BM(e[n[i]],t[n[i]]))return!1;return!0}var qX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ZX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},W$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QX={[MX]:ZX,[RX]:W$};function zM(e){return LX(e)?W$:QX[e.$$typeof]||qX}var XX=Object.defineProperty,JX=Object.getOwnPropertyNames,VM=Object.getOwnPropertySymbols,eJ=Object.getOwnPropertyDescriptor,tJ=Object.getPrototypeOf,HM=Object.prototype;function T2(e,t){if(typeof t!="string"){if(HM){const o=tJ(t);o&&o!==HM&&T2(e,o)}let n=JX(t);VM&&(n=n.concat(VM(t)));const r=zM(e),i=zM(t);for(let o=0;o<n.length;++o){const a=n[o];if(!KX[a]&&!(i&&i[a])&&!(r&&r[a])){const s=eJ(t,a);try{XX(e,a,s)}catch{}}}}return e}var Y$=wX,nJ=e=>{Y$=e},rJ=[null,null];function iJ(e,t,n){v0(()=>e(...t),n)}function oJ(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function aJ(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 x,b;try{x=r(g,i.current)}catch(_){b=_,p=_}b||(p=null),x===o.current?a.current||u():(o.current=x,l.current=x,a.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function sJ(e,t){return e===t}function lJ(e,t,n,{pure:r,areStatesEqual:i=sJ,areOwnPropsEqual:o=rO,areStatePropsEqual:a=rO,areMergedPropsEqual:s=rO,forwardRef:l=!1,context:u=B$}={}){const f=u,d=BX(e),p=$X(t),m=HX(n),v=!!e;return x=>{const b=x.displayName||x.name||"Component",_=`Connect(${b})`,w={shouldHandleStateChanges:v,displayName:_,wrappedComponentName:b,WrappedComponent:x,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function O(k){const[P,D,N]=Tt.useMemo(()=>{const{reactReduxForwardedRef:K,...se}=k;return[k.context,K,se]},[k]),F=Tt.useMemo(()=>{let K=f;return P!=null&&P.Consumer,K},[P,f]),B=Tt.useContext(F),Y=!!k.store&&!!k.store.getState&&!!k.store.dispatch,H=!!B&&!!B.store,Q=Y?k.store:B.store,Z=H?B.getServerState:Q.getState,te=Tt.useMemo(()=>FX(Q.dispatch,w),[Q]),[X,z]=Tt.useMemo(()=>{if(!v)return rJ;const K=H$(Q,Y?void 0:B.subscription),se=K.notifyNestedSubs.bind(K);return[K,se]},[Q,Y,B]),V=Tt.useMemo(()=>Y?B:{...B,subscription:X},[Y,B,X]),W=Tt.useRef(),re=Tt.useRef(N),q=Tt.useRef(),ee=Tt.useRef(!1);Tt.useRef(!1);const oe=Tt.useRef(!1),le=Tt.useRef();v0(()=>(oe.current=!0,()=>{oe.current=!1}),[]);const fe=Tt.useMemo(()=>()=>q.current&&N===re.current?q.current:te(Q.getState(),N),[Q,N]),j=Tt.useMemo(()=>se=>X?aJ(v,Q,X,te,re,W,ee,oe,q,z,se):()=>{},[X]);iJ(oJ,[re,W,ee,N,q,z]);let A;try{A=Y$(j,fe,Z?()=>te(Z(),N):fe)}catch(K){throw le.current&&(K.message+=`
|
||
The error may be correlated with this previous error:
|
||
${le.current.stack}
|
||
|
||
`),K}v0(()=>{le.current=void 0,q.current=void 0,W.current=A});const $=Tt.useMemo(()=>Tt.createElement(x,{...A,ref:D}),[D,x,A]);return Tt.useMemo(()=>v?Tt.createElement(F.Provider,{value:V},$):$,[F,$,V])}const T=Tt.memo(O);if(T.WrappedComponent=x,T.displayName=O.displayName=_,l){const P=Tt.forwardRef(function(N,F){return Tt.createElement(T,{...N,reactReduxForwardedRef:F})});return P.displayName=_,P.WrappedComponent=x,T2(P,x)}return T2(T,x)}}var G$=lJ;function uJ({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Tt.useMemo(()=>{const u=H$(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=Tt.useMemo(()=>e.getState(),[e]);v0(()=>{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||B$;return Tt.createElement(l.Provider,{value:a},n)}var q$=uJ;nJ(I.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 Vh(){return Vh=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},Vh.apply(this,arguments)}var Es;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Es||(Es={}));const WM="popstate";function cJ(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return C2("",{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:g0(i)}return dJ(t,n,null,e)}function un(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _k(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fJ(){return Math.random().toString(36).substr(2,8)}function YM(e,t){return{usr:e.state,key:e.key,idx:t}}function C2(e,t,n,r){return n===void 0&&(n=null),Vh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pd(t):t,{state:n,key:t&&t.key||r||fJ()})}function g0(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 pd(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 dJ(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Es.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(Vh({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Es.Pop;let x=f(),b=x==null?null:x-u;u=x,l&&l({action:s,location:g.location,delta:b})}function p(x,b){s=Es.Push;let _=C2(g.location,x,b);n&&n(_,x),u=f()+1;let w=YM(_,u),O=g.createHref(_);try{a.pushState(w,"",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(x,b){s=Es.Replace;let _=C2(g.location,x,b);n&&n(_,x),u=f();let w=YM(_,u),O=g.createHref(_);a.replaceState(w,"",O),o&&l&&l({action:s,location:g.location,delta:0})}function v(x){let b=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof x=="string"?x:g0(x);return un(b,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,b)}let g={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(WM,d),l=x,()=>{i.removeEventListener(WM,d),l=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let b=v(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:m,go(x){return a.go(x)}};return g}var GM;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(GM||(GM={}));function pJ(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?pd(t):t,i=hf(r.pathname||"/",n);if(i==null)return null;let o=K$(e);hJ(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=OJ(o[s],EJ(i));return a}function K$(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("/")&&(un(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&&(un(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),K$(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:wJ(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 Z$(o.path))i(o,a,l)}),t}function Z$(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=Z$(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 hJ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xJ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mJ=/^:[\w-]+$/,vJ=3,gJ=2,yJ=1,bJ=10,_J=-2,qM=e=>e==="*";function wJ(e,t){let n=e.split("/"),r=n.length;return n.some(qM)&&(r+=_J),t&&(r+=gJ),n.filter(i=>!qM(i)).reduce((i,o)=>i+(mJ.test(o)?vJ:o===""?yJ:bJ),r)}function xJ(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 OJ(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=k2({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:PJ(Bs([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=Bs([i,f.pathnameBase]))}return o}function k2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=SJ(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]=TJ(v||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function SJ(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_k(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 EJ(e){try{return decodeURI(e)}catch(t){return _k(!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 TJ(e,t){try{return decodeURIComponent(e)}catch(n){return _k(!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 hf(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 CJ(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pd(e):e;return{pathname:n?n.startsWith("/")?n:kJ(n,t):t,search:AJ(r),hash:NJ(i)}}function kJ(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 iO(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 jJ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wk(e,t){let n=jJ(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xk(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pd(e):(i=Vh({},e),un(!i.pathname||!i.pathname.includes("?"),iO("?","pathname","search",i)),un(!i.pathname||!i.pathname.includes("#"),iO("#","pathname","hash",i)),un(!i.search||!i.search.includes("#"),iO("#","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=CJ(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,"/"),PJ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AJ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NJ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function MJ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Q$=["post","put","patch","delete"];new Set(Q$);const RJ=["get",...Q$];new Set(RJ);/**
|
||
* React Router v6.21.3
|
||
*
|
||
* 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 Hh(){return Hh=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},Hh.apply(this,arguments)}const V_=I.createContext(null),X$=I.createContext(null),Wa=I.createContext(null),H_=I.createContext(null),Ya=I.createContext({outlet:null,matches:[],isDataRoute:!1}),J$=I.createContext(null);function DJ(e,t){let{relative:n}=t===void 0?{}:t;Fu()||un(!1);let{basename:r,navigator:i}=I.useContext(Wa),{hash:o,pathname:a,search:s}=W_(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Bs([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Fu(){return I.useContext(H_)!=null}function xr(){return Fu()||un(!1),I.useContext(H_).location}function e7(e){I.useContext(Wa).static||I.useLayoutEffect(e)}function oa(){let{isDataRoute:e}=I.useContext(Ya);return e?qJ():LJ()}function LJ(){Fu()||un(!1);let e=I.useContext(V_),{basename:t,future:n,navigator:r}=I.useContext(Wa),{matches:i}=I.useContext(Ya),{pathname:o}=xr(),a=JSON.stringify(wk(i,n.v7_relativeSplatPath)),s=I.useRef(!1);return e7(()=>{s.current=!0}),I.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=xk(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 hd(){let{matches:e}=I.useContext(Ya),t=e[e.length-1];return t?t.params:{}}function W_(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=I.useContext(Wa),{matches:i}=I.useContext(Ya),{pathname:o}=xr(),a=JSON.stringify(wk(i,r.v7_relativeSplatPath));return I.useMemo(()=>xk(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function IJ(e,t){return FJ(e,t)}function FJ(e,t,n,r){Fu()||un(!1);let{navigator:i}=I.useContext(Wa),{matches:o}=I.useContext(Ya),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=xr(),f;if(t){var d;let x=typeof t=="string"?pd(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||un(!1),f=x}else f=u;let p=f.pathname||"/",m=l==="/"?p:p.slice(l.length)||"/",v=pJ(e,{pathname:m}),g=VJ(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Bs([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Bs([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&g?I.createElement(H_.Provider,{value:{location:Hh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Es.Pop}},g):g}function UJ(){let e=GJ(),t=MJ(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 I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,o)}const $J=I.createElement(UJ,null);class BJ extends I.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?I.createElement(Ya.Provider,{value:this.props.routeContext},I.createElement(J$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zJ(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(V_);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(Ya.Provider,{value:t},r)}function VJ(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||un(!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,x=null;n&&(m=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||$J,l&&(u<0&&p===0?(KJ("route-fallback",!1),v=!0,x=null):u===p&&(v=!0,x=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),_=()=>{let w;return m?w=g:v?w=x:d.route.Component?w=I.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,I.createElement(zJ,{match:d,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?I.createElement(BJ,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:_(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):_()},null)}var t7=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(t7||{}),y0=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}(y0||{});function HJ(e){let t=I.useContext(V_);return t||un(!1),t}function WJ(e){let t=I.useContext(X$);return t||un(!1),t}function YJ(e){let t=I.useContext(Ya);return t||un(!1),t}function n7(e){let t=YJ(),n=t.matches[t.matches.length-1];return n.route.id||un(!1),n.route.id}function GJ(){var e;let t=I.useContext(J$),n=WJ(y0.UseRouteError),r=n7(y0.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qJ(){let{router:e}=HJ(t7.UseNavigateStable),t=n7(y0.UseNavigateStable),n=I.useRef(!1);return e7(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Hh({fromRouteId:t},o)))},[e,t])}const KM={};function KJ(e,t,n){!t&&!KM[e]&&(KM[e]=!0)}function Ok(e){let{to:t,replace:n,state:r,relative:i}=e;Fu()||un(!1);let{future:o,static:a}=I.useContext(Wa),{matches:s}=I.useContext(Ya),{pathname:l}=xr(),u=oa(),f=xk(t,wk(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(f);return I.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function yt(e){un(!1)}function ZJ(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Es.Pop,navigator:o,static:a=!1,future:s}=e;Fu()&&un(!1);let l=t.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:l,navigator:o,static:a,future:Hh({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=pd(r));let{pathname:f="/",search:d="",hash:p="",state:m=null,key:v="default"}=r,g=I.useMemo(()=>{let x=hf(f,l);return x==null?null:{location:{pathname:x,search:d,hash:p,state:m,key:v},navigationType:i}},[l,f,d,p,m,v,i]);return g==null?null:I.createElement(Wa.Provider,{value:u},I.createElement(H_.Provider,{children:n,value:g}))}function Y_(e){let{children:t,location:n}=e;return IJ(j2(t),n)}new Promise(()=>{});function j2(e,t){t===void 0&&(t=[]);let n=[];return I.Children.forEach(e,(r,i)=>{if(!I.isValidElement(r))return;let o=[...t,i];if(r.type===I.Fragment){n.push.apply(n,j2(r.props.children,o));return}r.type!==yt&&un(!1),!r.props.index||!r.props.children||un(!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=j2(r.props.children,o)),n.push(a)}),n}/**
|
||
* React Router DOM v6.21.3
|
||
*
|
||
* 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 b0(){return b0=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},b0.apply(this,arguments)}function r7(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 QJ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XJ(e,t){return e.button===0&&(!t||t==="_self")&&!QJ(e)}const JJ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],e3=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],t3=I.createContext({isTransitioning:!1}),n3="startTransition",ZM=NS[n3];function i7(e){let{basename:t,children:n,future:r,window:i}=e,o=I.useRef();o.current==null&&(o.current=cJ({window:i,v5Compat:!0}));let a=o.current,[s,l]=I.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=I.useCallback(d=>{u&&ZM?ZM(()=>l(d)):l(d)},[l,u]);return I.useLayoutEffect(()=>a.listen(f),[a,f]),I.createElement(ZJ,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const r3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",i3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$t=I.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=r7(t,JJ),{basename:m}=I.useContext(Wa),v,g=!1;if(typeof u=="string"&&i3.test(u)&&(v=u,r3))try{let w=new URL(window.location.href),O=u.startsWith("//")?new URL(w.protocol+u):new URL(u),E=hf(O.pathname,m);O.origin===w.origin&&E!=null?u=E+O.search+O.hash:g=!0}catch{}let x=DJ(u,{relative:i}),b=a3(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:d});function _(w){r&&r(w),w.defaultPrevented||b(w)}return I.createElement("a",b0({},p,{href:v||x,onClick:g||o?r:_,ref:n,target:l}))}),o7=I.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=r7(t,e3),p=W_(l,{relative:d.relative}),m=xr(),v=I.useContext(X$),{navigator:g,basename:x}=I.useContext(Wa),b=v!=null&&s3(p)&&u===!0,_=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,w=m.pathname,O=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(w=w.toLowerCase(),O=O?O.toLowerCase():null,_=_.toLowerCase()),O&&x&&(O=hf(O,x)||O);const E=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let T=w===_||!a&&w.startsWith(_)&&w.charAt(E)==="/",k=O!=null&&(O===_||!a&&O.startsWith(_)&&O.charAt(_.length)==="/"),P={isActive:T,isPending:k,isTransitioning:b},D=T?r:void 0,N;typeof o=="function"?N=o(P):N=[o,T?"active":null,k?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(P):s;return I.createElement($t,b0({},d,{"aria-current":D,className:N,ref:n,style:F,to:l,unstable_viewTransition:u}),typeof f=="function"?f(P):f)});var P2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(P2||(P2={}));var QM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(QM||(QM={}));function o3(e){let t=I.useContext(V_);return t||un(!1),t}function a3(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=oa(),u=xr(),f=W_(e,{relative:a});return I.useCallback(d=>{if(XJ(d,n)){d.preventDefault();let p=r!==void 0?r:g0(u)===g0(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 s3(e,t){t===void 0&&(t={});let n=I.useContext(t3);n==null&&un(!1);let{basename:r}=o3(P2.useViewTransitionState),i=W_(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=hf(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=hf(n.nextLocation.pathname,r)||n.nextLocation.pathname;return k2(i.pathname,a)!=null||k2(i.pathname,o)!=null}const l3="shlink-web-client",u3="A React-based progressive web application for shlink",c3="/shlink-web-client/dockerfile_chown_servers.json",f3="https://github.com/shlinkio/shlink-web-client",d3="MIT",p3="module",h3={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"},m3={"@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.5","@reduxjs/toolkit":"^2.1.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.4.2","@shlinkio/shlink-js-sdk":"^0.2.2","@shlinkio/shlink-web-component":"^0.5.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.0","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^3.3.1",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.3",reactstrap:"^9.2.2","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"},v3={"@shlinkio/eslint-config-js-coding-standard":"~2.3.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^6.3.0","@testing-library/react":"^14.1.2","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.1","@types/react":"^18.2.48","@types/react-dom":"^18.2.18","@types/uuid":"^9.0.8","@vitejs/plugin-react":"^4.2.1","@vitest/coverage-v8":"^1.2.2","adm-zip":"^0.5.10","axe-core":"^4.8.3",chalk:"^5.3.0",eslint:"^8.56.0",history:"^5.3.0",jsdom:"^24.0.0",sass:"^1.70.0",stylelint:"^15.11.0",typescript:"^5.3.3",vite:"^5.0.12","vite-plugin-pwa":"^0.17.5",vitest:"^1.2.2"},g3=[">0.2%","not dead","not ie <= 11","not op_mini all"],_0={name:l3,description:u3,private:!1,homepage:c3,repository:f3,license:d3,type:p3,scripts:h3,dependencies:m3,devDependencies:v3,browserslist:g3};var bo,Jo=".",a7="function",s7="string",l7="__global__",Sk="Provider",y3=0,Ek=Array.prototype.slice,b3=function(t,n){var r=t[n];if(r===void 0&&bo.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},G_=function(t){var n;return this.nested[t]||(n=bo.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},u7=function(t){return t.split(Jo).reduce(b3,this)},_3=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]},w3=function(t,n){var r,i;return typeof t===a7&&(n=t,t=l7),r=t.split(Jo),i=r.shift(),r.length?G_.call(this,i).middleware(r.join(Jo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},x3=function(t,n){return n(t)},XM=function(t,n){return(t[n]||[]).concat(t.__global__||[])},O3=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+Sk,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=XM(a,t).reduce(x3,u.$get(o)),delete o[r],delete o[t]),f===void 0?f:_3(XM(s,t),t,f,o)}},Object.defineProperties(o,i),this},c7=function(t,n){var r,i;return r=t.split(Jo),this.providerMap[t]&&r.length===1&&!this.container[t+Sk]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(G_.call(this,i).provider(r.join(Jo),n),this):O3.call(this,i,n))},Tk=function(t,n){return c7.call(this,t,function(){this.$get=n})},f7=function(t,n,r){var i=arguments.length>3?Ek.call(arguments,3):[],o=this;return Tk.call(this,t,function(){var s=n,l=i.map(u7,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},S3=function(t,n){return f7.apply(this,[t,n,!0].concat(Ek.call(arguments,2)))},E3=function(t,n){return f7.apply(this,[t,n,!1].concat(Ek.call(arguments,2)))},d7=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},p7=function(t,n){var r=t[n];return r||(r={},d7.call(t,n,r)),r},T3=function(t,n){var r;return r=t.split(Jo),t=r.pop(),d7.call(r.reduce(p7,this.container),t,n),this},C3=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},k3=function(t,n){var r=t.split(Jo);return t=r.pop(),C3.call(r.reduce(p7,this.container),t,n),this},h7=function(t,n){var r,i;return typeof t===a7&&(n=t,t=l7),r=t.split(Jo),i=r.shift(),r.length?G_.call(this,i).decorator(r.join(Jo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},j3=function(t){return this.deferred.push(t),this},P3=function(t){return(t||[]).map(u7,this.container)},A3=function(t,n){return Tk.call(this,t,function(i){return{instance:n.bind(n,i)}})},N3=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},Ck=function(t){return Object.keys(t||this.container||{}).filter(N3)},w0={},M3=function(t){var n;return typeof t===s7?(n=w0[t],n||(w0[t]=n=new bo,n.constant("BOTTLE_NAME",t)),n):new bo},R3=function(t){typeof t===s7?delete w0[t]:w0={}},m7=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},JM=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+Sk]},D3=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(Jo);a.length>1&&a.forEach(JM,G_.call(this,a[0])),JM.call(this,o),this.provider(o,n[o])}},this)},L3=function(t){return this.deferred.forEach(function(r){r(t)}),this};bo=function e(t){if(!(this instanceof e))return e.pop(t);this.id=y3++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:h7.bind(this),$register:m7.bind(this),$list:Ck.bind(this)}};bo.prototype={constant:k3,decorator:h7,defer:j3,digest:P3,factory:Tk,instanceFactory:A3,list:Ck,middleware:w3,provider:c7,resetProviders:D3,register:m7,resolve:L3,service:S3,serviceFactory:E3,value:T3};bo.pop=M3;bo.clear=R3;bo.list=Ck;bo.config={strict:!1};const I3=bo;var v7=(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))(v7||{}),g7=(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))(g7||{}),F3=Object.defineProperty,U3=(e,t,n)=>t in e?F3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$3=(e,t,n)=>(U3(e,typeof t!="symbol"?t+"":t,n),n);const B3=(e,t)=>`${e}/rest/v${t}`,z3=e=>e.dir?`${e.field}-${e.dir}`:void 0,V3=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:z3(e)}),H3=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===v7.NOT_FOUND||e.type===g7.NOT_FOUND)&&e.status===404,W3=(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}`},Y3=(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 G3{constructor(t,n){$3(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:V3(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=Y3(r),s=a?`?${a}`:"",l=o?W3(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${B3(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}handleFetchError(t){return n=>{if(!H3(n))throw n;return this.apiVersion=2,t()}}}const y7=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),nh=e=>!!(e!=null&&e.id),b7=e=>!!(e!=null&&e.version),q3=e=>!!(e!=null&&e.serverNotFound),K3=e=>nh(e)?e.id:"",Z3=({id:e,autoConnect:t,...n})=>n,eR={},Q3=e=>typeof e=="function",X3=e=>{const{selectedServer:t}=e();if(!y7(t))throw new Error("There's no selected server or it is not found");return t},J3=e=>t=>{const{url:n,apiKey:r}=Q3(t)?X3(t):t,i=`${r}_${n}`,o=eR[i]??new G3(e,{apiKey:r,baseUrl:n});return eR[i]=o,o},eee=e=>{e.serviceFactory("buildShlinkApiClient",J3,"HttpClient")};var tee={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"]},nee=tee,ree={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"]},kk=ree,iee={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"]},oee={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"]},aee=oee,_7={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"]},see={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"]},w7={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"]},lee={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"]},uee=lee,cee={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"]},jk=cee,fee={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"]},dee={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"]},pee={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"]},tR={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"]},hee={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"]},mee=hee,vee={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"]},A2=vee,gee={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"]},yee={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"]},bee={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"]},_ee=bee,Pk={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"]},q_={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V400c0 44.2 35.8 80 80 80H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H80c-8.8 0-16-7.2-16-16V64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},x7={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"]},nR={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"]},wee={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"]},xee={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"]},Oee={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"]},See=Oee,Eee={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"]},Tee={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"]},Ak=Tee,Cee={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"]},kee=Cee,jee={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"]},Pee={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"]},Aee=Pee,Nee={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"]},Mee=Nee,Ree={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"]},Dee=Ree,Lee={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"]},O7=Lee,Iee={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"]},Fee={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"]},Uee={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"]},$ee=Uee,Bee={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"]},Nk={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"]},zee={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"]},N2=zee,Vee={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"]},Hee={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"]},Wee=Hee,rR={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"]},S7={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"]},Yee=S7,Gee={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"]},qee={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"]},Kee={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"]},Zee={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"]},Wh={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"]},Qee={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Xee=Qee;function iR(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?iR(Object(n),!0).forEach(function(r){Rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x0(e){"@babel/helpers - typeof";return x0=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},x0(e)}function Jee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oR(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 ete(e,t,n){return t&&oR(e.prototype,t),n&&oR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mk(e,t){return nte(e)||ite(e,t)||E7(e,t)||ate()}function sv(e){return tte(e)||rte(e)||E7(e)||ote()}function tte(e){if(Array.isArray(e))return M2(e)}function nte(e){if(Array.isArray(e))return e}function rte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ite(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 E7(e,t){if(e){if(typeof e=="string")return M2(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 M2(e,t)}}function M2(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 ote(){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 ate(){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 aR=function(){},Rk={},T7={},C7=null,k7={mark:aR,measure:aR};try{typeof window<"u"&&(Rk=window),typeof document<"u"&&(T7=document),typeof MutationObserver<"u"&&(C7=MutationObserver),typeof performance<"u"&&(k7=performance)}catch{}var ste=Rk.navigator||{},sR=ste.userAgent,lR=sR===void 0?"":sR,Qs=Rk,qt=T7,uR=C7,Sg=k7;Qs.document;var Ga=!!qt.documentElement&&!!qt.head&&typeof qt.addEventListener=="function"&&typeof qt.createElement=="function",j7=~lR.indexOf("MSIE")||~lR.indexOf("Trident/"),Eg,Tg,Cg,kg,jg,Ra="___FONT_AWESOME___",R2=16,P7="fa",A7="svg-inline--fa",Su="data-fa-i2svg",D2="data-fa-pseudo-element",lte="data-fa-pseudo-element-pending",Dk="data-prefix",Lk="data-icon",cR="fontawesome-i2svg",ute="async",cte=["HTML","HEAD","STYLE","SCRIPT"],N7=function(){try{return!0}catch{return!1}}(),Wt="classic",pn="sharp",Ik=[Wt,pn];function lv(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Wt]}})}var Yh=lv((Eg={},Rn(Eg,Wt,{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"}),Rn(Eg,pn,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Eg)),Gh=lv((Tg={},Rn(Tg,Wt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Rn(Tg,pn,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Tg)),qh=lv((Cg={},Rn(Cg,Wt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Rn(Cg,pn,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Cg)),fte=lv((kg={},Rn(kg,Wt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Rn(kg,pn,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),kg)),dte=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,M7="fa-layers-text",pte=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,hte=lv((jg={},Rn(jg,Wt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Rn(jg,pn,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),jg)),R7=[1,2,3,4,5,6,7,8,9,10],mte=R7.concat([11,12,13,14,15,16,17,18,19,20]),vte=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Xl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Kh=new Set;Object.keys(Gh[Wt]).map(Kh.add.bind(Kh));Object.keys(Gh[pn]).map(Kh.add.bind(Kh));var gte=[].concat(Ik,sv(Kh),["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",Xl.GROUP,Xl.SWAP_OPACITY,Xl.PRIMARY,Xl.SECONDARY]).concat(R7.map(function(e){return"".concat(e,"x")})).concat(mte.map(function(e){return"w-".concat(e)})),rh=Qs.FontAwesomeConfig||{};function yte(e){var t=qt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function bte(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(qt&&typeof qt.querySelector=="function"){var _te=[["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"]];_te.forEach(function(e){var t=Mk(e,2),n=t[0],r=t[1],i=bte(yte(n));i!=null&&(rh[r]=i)})}var D7={styleDefault:"solid",familyDefault:"classic",cssPrefix:P7,replacementClass:A7,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};rh.familyPrefix&&(rh.cssPrefix=rh.familyPrefix);var mf=Fe(Fe({},D7),rh);mf.autoReplaceSvg||(mf.observeMutations=!1);var He={};Object.keys(D7).forEach(function(e){Object.defineProperty(He,e,{enumerable:!0,set:function(n){mf[e]=n,ih.forEach(function(r){return r(He)})},get:function(){return mf[e]}})});Object.defineProperty(He,"familyPrefix",{enumerable:!0,set:function(t){mf.cssPrefix=t,ih.forEach(function(n){return n(He)})},get:function(){return mf.cssPrefix}});Qs.FontAwesomeConfig=He;var ih=[];function wte(e){return ih.push(e),function(){ih.splice(ih.indexOf(e),1)}}var is=R2,$o={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function xte(e){if(!(!e||!Ga)){var t=qt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=qt.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 qt.head.insertBefore(t,r),e}}var Ote="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Zh(){for(var e=12,t="";e-- >0;)t+=Ote[Math.random()*62|0];return t}function md(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Fk(e){return e.classList?md(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function L7(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Ste(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(L7(e[n]),'" ')},"").trim()}function K_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Uk(e){return e.size!==$o.size||e.x!==$o.x||e.y!==$o.y||e.rotate!==$o.rotate||e.flipX||e.flipY}function Ete(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 Tte(e){var t=e.transform,n=e.width,r=n===void 0?R2:n,i=e.height,o=i===void 0?R2:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&j7?l+="translate(".concat(t.x/is-r/2,"em, ").concat(t.y/is-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/is,"em), calc(-50% + ").concat(t.y/is,"em)) "):l+="translate(".concat(t.x/is,"em, ").concat(t.y/is,"em) "),l+="scale(".concat(t.size/is*(t.flipX?-1:1),", ").concat(t.size/is*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var Cte=`: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 I7(){var e=P7,t=A7,n=He.cssPrefix,r=He.replacementClass,i=Cte;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 fR=!1;function oO(){He.autoAddCss&&!fR&&(xte(I7()),fR=!0)}var kte={mixout:function(){return{dom:{css:I7,insertCss:oO}}},hooks:function(){return{beforeDOMElementCreation:function(){oO()},beforeI2svg:function(){oO()}}}},Da=Qs||{};Da[Ra]||(Da[Ra]={});Da[Ra].styles||(Da[Ra].styles={});Da[Ra].hooks||(Da[Ra].hooks={});Da[Ra].shims||(Da[Ra].shims=[]);var ho=Da[Ra],F7=[],jte=function e(){qt.removeEventListener("DOMContentLoaded",e),O0=1,F7.map(function(t){return t()})},O0=!1;Ga&&(O0=(qt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(qt.readyState),O0||qt.addEventListener("DOMContentLoaded",jte));function Pte(e){Ga&&(O0?setTimeout(e,0):F7.push(e))}function uv(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"?L7(e):"<".concat(t," ").concat(Ste(r),">").concat(o.map(uv).join(""),"</").concat(t,">")}function dR(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ate=function(t,n){return function(r,i,o,a){return t.call(n,r,i,o,a)}},aO=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=i!==void 0?Ate(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 Nte(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 L2(e){var t=Nte(e);return t.length===1?t[0].toString(16):null}function Mte(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 pR(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 I2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=pR(t);typeof ho.hooks.addPack=="function"&&!i?ho.hooks.addPack(e,pR(t)):ho.styles[e]=Fe(Fe({},ho.styles[e]||{}),o),e==="fas"&&I2("fa",t)}var Pg,Ag,Ng,Dc=ho.styles,Rte=ho.shims,Dte=(Pg={},Rn(Pg,Wt,Object.values(qh[Wt])),Rn(Pg,pn,Object.values(qh[pn])),Pg),$k=null,U7={},$7={},B7={},z7={},V7={},Lte=(Ag={},Rn(Ag,Wt,Object.keys(Yh[Wt])),Rn(Ag,pn,Object.keys(Yh[pn])),Ag);function Ite(e){return~gte.indexOf(e)}function Fte(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Ite(i)?i:null}var H7=function(){var t=function(o){return aO(Dc,function(a,s,l){return a[l]=aO(s,o,{}),a},{})};U7=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}),$7=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}),V7=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 Dc||He.autoFetchSvg,r=aO(Rte,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:{}});B7=r.names,z7=r.unicodes,$k=Z_(He.styleDefault,{family:He.familyDefault})};wte(function(e){$k=Z_(e.styleDefault,{family:He.familyDefault})});H7();function Bk(e,t){return(U7[e]||{})[t]}function Ute(e,t){return($7[e]||{})[t]}function Jl(e,t){return(V7[e]||{})[t]}function W7(e){return B7[e]||{prefix:null,iconName:null}}function $te(e){var t=z7[e],n=Bk("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Xs(){return $k}var zk=function(){return{prefix:null,iconName:null,rest:[]}};function Z_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Wt:n,i=Yh[r][e],o=Gh[r][e]||Gh[r][i],a=e in ho.styles?e:null;return o||a||null}var hR=(Ng={},Rn(Ng,Wt,Object.keys(qh[Wt])),Rn(Ng,pn,Object.keys(qh[pn])),Ng);function Q_(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},Rn(t,Wt,"".concat(He.cssPrefix,"-").concat(Wt)),Rn(t,pn,"".concat(He.cssPrefix,"-").concat(pn)),t),a=null,s=Wt;(e.includes(o[Wt])||e.some(function(u){return hR[Wt].includes(u)}))&&(s=Wt),(e.includes(o[pn])||e.some(function(u){return hR[pn].includes(u)}))&&(s=pn);var l=e.reduce(function(u,f){var d=Fte(He.cssPrefix,f);if(Dc[f]?(f=Dte[s].includes(f)?fte[s][f]:f,a=f,u.prefix=f):Lte[s].indexOf(f)>-1?(a=f,u.prefix=Z_(f,{family:s})):d?u.iconName=d:f!==He.replacementClass&&f!==o[Wt]&&f!==o[pn]&&u.rest.push(f),!i&&u.prefix&&u.iconName){var p=a==="fa"?W7(u.iconName):{},m=Jl(u.prefix,u.iconName);p.prefix&&(a=null),u.iconName=p.iconName||m||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Dc.far&&Dc.fas&&!He.autoFetchSvg&&(u.prefix="fas")}return u},zk());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===pn&&(Dc.fass||He.autoFetchSvg)&&(l.prefix="fass",l.iconName=Jl(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=Xs()||"fas"),l}var Bte=function(){function e(){Jee(this,e),this.definitions={}}return ete(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]),I2(s,a[s]);var l=qh[Wt][s];l&&I2(l,a[s]),H7()})}},{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}(),mR=[],Lc={},ef={},zte=Object.keys(ef);function Vte(e,t){var n=t.mixoutsTo;return mR=e,Lc={},Object.keys(ef).forEach(function(r){zte.indexOf(r)===-1&&delete ef[r]}),mR.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),x0(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){Lc[a]||(Lc[a]=[]),Lc[a].push(o[a])})}r.provides&&r.provides(ef)}),n}function F2(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=Lc[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function Eu(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=Lc[e]||[];i.forEach(function(o){o.apply(null,n)})}function La(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ef[e]?ef[e].apply(null,t):void 0}function U2(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Xs();if(t)return t=Jl(n,t)||t,dR(Y7.definitions,n,t)||dR(ho.styles,n,t)}var Y7=new Bte,Hte=function(){He.autoReplaceSvg=!1,He.observeMutations=!1,Eu("noAuto")},Wte={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ga?(Eu("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,Pte(function(){Gte({autoReplaceSvgRoot:n}),Eu("watch",t)})}},Yte={icon:function(t){if(t===null)return null;if(x0(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Jl(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=Z_(t[0]);return{prefix:r,iconName:Jl(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match(dte))){var i=Q_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Xs(),iconName:Jl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Xs();return{prefix:o,iconName:Jl(o,t)||t}}}},yi={noAuto:Hte,config:He,dom:Wte,parse:Yte,library:Y7,findIconDefinition:U2,toHtml:uv},Gte=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?qt:n;(Object.keys(ho.styles).length>0||He.autoFetchSvg)&&Ga&&He.autoReplaceSvg&&yi.dom.i2svg({node:r})};function X_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return uv(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Ga){var r=qt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function qte(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(Uk(a)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};i.style=K_(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 Kte(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 Vk(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,x=v.height,b=i==="fak",_=[He.replacementClass,o?"".concat(He.cssPrefix,"-").concat(o):""].filter(function(D){return d.classes.indexOf(D)===-1}).filter(function(D){return D!==""||!!D}).concat(d.classes).join(" "),w={children:[],attributes:Fe(Fe({},d.attributes),{},{"data-prefix":i,"data-icon":o,class:_,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(x)})},O=b&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/x*16*.0625,"em")}:{};m&&(w.attributes[Su]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(f||Zh())},children:[l]}),delete w.attributes.title);var E=Fe(Fe({},w),{},{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,P=T.attributes;return E.children=k,E.attributes=P,s?Kte(E):qte(E)}function vR(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[Su]="");var f=Fe({},a.styles);Uk(i)&&(f.transform=Tte({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var d=K_(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 Zte(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=K_(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 sO=ho.styles;function $2(e){var t=e[0],n=e[1],r=e.slice(4),i=Mk(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(He.cssPrefix,"-").concat(Xl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Xl.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Xl.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var Qte={found:!1,width:512,height:512};function Xte(e,t){!N7&&!He.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function B2(e,t){var n=t;return t==="fa"&&He.styleDefault!==null&&(t=Xs()),new Promise(function(r,i){if(La("missingIconAbstract"),n==="fa"){var o=W7(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&sO[t]&&sO[t][e]){var a=sO[t][e];return r($2(a))}Xte(e,t),r(Fe(Fe({},Qte),{},{icon:He.showMissingIcons&&e?La("missingIconAbstract")||{}:{}}))})}var gR=function(){},z2=He.measurePerformance&&Sg&&Sg.mark&&Sg.measure?Sg:{mark:gR,measure:gR},Ip='FA "6.5.1"',Jte=function(t){return z2.mark("".concat(Ip," ").concat(t," begins")),function(){return G7(t)}},G7=function(t){z2.mark("".concat(Ip," ").concat(t," ends")),z2.measure("".concat(Ip," ").concat(t),"".concat(Ip," ").concat(t," begins"),"".concat(Ip," ").concat(t," ends"))},Hk={begin:Jte,end:G7},Ty=function(){};function yR(e){var t=e.getAttribute?e.getAttribute(Su):null;return typeof t=="string"}function ene(e){var t=e.getAttribute?e.getAttribute(Dk):null,n=e.getAttribute?e.getAttribute(Lk):null;return t&&n}function tne(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function nne(){if(He.autoReplaceSvg===!0)return Cy.replace;var e=Cy[He.autoReplaceSvg];return e||Cy.replace}function rne(e){return qt.createElementNS("http://www.w3.org/2000/svg",e)}function ine(e){return qt.createElement(e)}function q7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?rne:ine:n;if(typeof e=="string")return qt.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(q7(a,{ceFn:r}))}),i}function one(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Cy={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(q7(i),n)}),n.getAttribute(Su)===null&&He.keepOriginalSource){var r=qt.createComment(one(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Fk(n).indexOf(He.replacementClass))return Cy.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 uv(s)}).join(`
|
||
`);n.setAttribute(Su,""),n.innerHTML=a}};function bR(e){e()}function K7(e,t){var n=typeof t=="function"?t:Ty;if(e.length===0)n();else{var r=bR;He.mutateApproach===ute&&(r=Qs.requestAnimationFrame||bR),r(function(){var i=nne(),o=Hk.begin("mutate");e.map(i),o(),n()})}}var Wk=!1;function Z7(){Wk=!0}function V2(){Wk=!1}var S0=null;function _R(e){if(uR&&He.observeMutations){var t=e.treeCallback,n=t===void 0?Ty:t,r=e.nodeCallback,i=r===void 0?Ty:r,o=e.pseudoElementsCallback,a=o===void 0?Ty:o,s=e.observeMutationsRoot,l=s===void 0?qt:s;S0=new uR(function(u){if(!Wk){var f=Xs();md(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!yR(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"&&yR(d.target)&&~vte.indexOf(d.attributeName))if(d.attributeName==="class"&&ene(d.target)){var p=Q_(Fk(d.target)),m=p.prefix,v=p.iconName;d.target.setAttribute(Dk,m||f),v&&d.target.setAttribute(Lk,v)}else tne(d.target)&&i(d.target)})}}),Ga&&S0.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ane(){S0&&S0.disconnect()}function sne(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 lne(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Q_(Fk(e));return i.prefix||(i.prefix=Xs()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Ute(i.prefix,e.innerText)||Bk(i.prefix,L2(e.innerText))),!i.iconName&&He.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function une(e){var t=md(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||Zh()):(t["aria-hidden"]="true",t.focusable="false")),t}function cne(){return{iconName:null,title:null,titleId:null,prefix:null,transform:$o,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function wR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=lne(e),r=n.iconName,i=n.prefix,o=n.rest,a=une(e),s=F2("parseNodeAttributes",{},e),l=t.styleParser?sne(e):[];return Fe({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:$o,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var fne=ho.styles;function Q7(e){var t=He.autoReplaceSvg==="nest"?wR(e,{styleParser:!1}):wR(e);return~t.extra.classes.indexOf(M7)?La("generateLayersText",e,t):La("generateSvgReplacementMutation",e,t)}var Js=new Set;Ik.map(function(e){Js.add("fa-".concat(e))});Object.keys(Yh[Wt]).map(Js.add.bind(Js));Object.keys(Yh[pn]).map(Js.add.bind(Js));Js=sv(Js);function xR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ga)return Promise.resolve();var n=qt.documentElement.classList,r=function(d){return n.add("".concat(cR,"-").concat(d))},i=function(d){return n.remove("".concat(cR,"-").concat(d))},o=He.autoFetchSvg?Js:Ik.map(function(f){return"fa-".concat(f)}).concat(Object.keys(fne));o.includes("fa")||o.push("fa");var a=[".".concat(M7,":not([").concat(Su,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Su,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=md(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=Hk.begin("onTree"),u=s.reduce(function(f,d){try{var p=Q7(d);p&&f.push(p)}catch(m){N7||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,d){Promise.all(u).then(function(p){K7(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),d(p)})})}function dne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Q7(e).then(function(n){n&&K7([n],t)})}function pne(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:U2(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:U2(i||{})),e(r,Fe(Fe({},n),{},{mask:i}))}}var hne=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?$o: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,x=g===void 0?[]:g,b=n.attributes,_=b===void 0?{}:b,w=n.styles,O=w===void 0?{}:w;if(t){var E=t.prefix,T=t.iconName,k=t.icon;return X_(Fe({type:"icon"},t),function(){return Eu("beforeDOMElementCreation",{iconDefinition:t,params:n}),He.autoA11y&&(p?_["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(v||Zh()):(_["aria-hidden"]="true",_.focusable="false")),Vk({icons:{main:$2(k),mask:l?$2(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:T,transform:Fe(Fe({},$o),i),symbol:a,title:p,maskId:f,titleId:v,extra:{attributes:_,styles:O,classes:x}})})}},mne={mixout:function(){return{icon:pne(hne)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=xR,n.nodeCallback=dne,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?qt:r,o=n.callback,a=o===void 0?function(){}:o;return xR(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([B2(i,s),f.iconName?B2(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var x=Mk(g,2),b=x[0],_=x[1];m([n,Vk({icons:{main:b,mask:_},prefix:s,iconName:i,transform:l,symbol:u,maskId:d,title:o,titleId:a,extra:p,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=K_(s);l.length>0&&(i.style=l);var u;return Uk(a)&&(u=La("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},vne={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 X_({type:"layer"},function(){Eu("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(sv(o)).join(" ")},children:a}]})}}}},gne={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 X_({type:"counter",content:n},function(){return Eu("beforeDOMElementCreation",{content:n,params:r}),Zte({content:n.toString(),title:o,extra:{attributes:u,styles:d,classes:["".concat(He.cssPrefix,"-layers-counter")].concat(sv(s))}})})}}}},yne={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?$o: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 X_({type:"text",content:n},function(){return Eu("beforeDOMElementCreation",{content:n,params:r}),vR({content:n,transform:Fe(Fe({},$o),o),title:s,extra:{attributes:d,styles:m,classes:["".concat(He.cssPrefix,"-layers-text")].concat(sv(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(j7){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,vR({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},bne=new RegExp('"',"ug"),OR=[1105920,1112319];function _ne(e){var t=e.replace(bne,""),n=Mte(t,0),r=n>=OR[0]&&n<=OR[1],i=t.length===2?t[0]===t[1]:!1;return{value:L2(i?t[0]:t),isSecondary:r||i}}function SR(e,t){var n="".concat(lte).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=md(e.children),a=o.filter(function(k){return k.getAttribute(D2)===t})[0],s=Qs.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(pte),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])?pn:Wt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Gh[p][l[2].toLowerCase()]:hte[p][u],v=_ne(d),g=v.value,x=v.isSecondary,b=l[0].startsWith("FontAwesome"),_=Bk(m,g),w=_;if(b){var O=$te(g);O.iconName&&O.prefix&&(_=O.iconName,m=O.prefix)}if(_&&!x&&(!a||a.getAttribute(Dk)!==m||a.getAttribute(Lk)!==w)){e.setAttribute(n,w),a&&e.removeChild(a);var E=cne(),T=E.extra;T.attributes[D2]=t,B2(_,m).then(function(k){var P=Vk(Fe(Fe({},E),{},{icons:{main:k,mask:zk()},prefix:m,iconName:w,extra:T,watchable:!0})),D=qt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(D,e.firstChild):e.appendChild(D),D.outerHTML=P.map(function(N){return uv(N)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function wne(e){return Promise.all([SR(e,"::before"),SR(e,"::after")])}function xne(e){return e.parentNode!==document.head&&!~cte.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(D2)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function ER(e){if(Ga)return new Promise(function(t,n){var r=md(e.querySelectorAll("*")).filter(xne).map(wne),i=Hk.begin("searchPseudoElements");Z7(),Promise.all(r).then(function(){i(),V2(),t()}).catch(function(){i(),V2(),n()})})}var One={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=ER,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?qt:r;He.searchPseudoElements&&ER(i)}}},TR=!1,Sne={mixout:function(){return{dom:{unwatch:function(){Z7(),TR=!0}}}},hooks:function(){return{bootstrap:function(){_R(F2("mutationObserverCallbacks",{}))},noAuto:function(){ane()},watch:function(n){var r=n.observeMutationsRoot;TR?V2():_R(F2("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},CR=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)},Ene={mixout:function(){return{parse:{transform:function(n){return CR(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=CR(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)}]}]}}}},lO={x:0,y:0,width:"100%",height:"100%"};function kR(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 Tne(e){return e.tag==="g"?e.children:[e]}var Cne={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Q_(i.split(" ").map(function(a){return a.trim()})):zk();return o.prefix||(o.prefix=Xs()),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=Ete({transform:l,containerWidth:d,iconWidth:u}),v={tag:"rect",attributes:Fe(Fe({},lO),{},{fill:"white"})},g=f.children?{children:f.children.map(kR)}:{},x={tag:"g",attributes:Fe({},m.inner),children:[kR(Fe({tag:f.tag,attributes:Fe(Fe({},f.attributes),m.path)},g))]},b={tag:"g",attributes:Fe({},m.outer),children:[x]},_="mask-".concat(s||Zh()),w="clip-".concat(s||Zh()),O={tag:"mask",attributes:Fe(Fe({},lO),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,b]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:Tne(p)},O]};return r.push(E,{tag:"rect",attributes:Fe({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(_,")")},lO)}),{children:r,attributes:i}}}},kne={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}}}},jne={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}}}},Pne=[kte,mne,vne,gne,yne,One,Sne,Ene,Cne,kne,jne];Vte(Pne,{mixoutsTo:yi});yi.noAuto;yi.config;yi.library;yi.dom;var H2=yi.parse;yi.findIconDefinition;yi.toHtml;var Ane=yi.icon;yi.layer;yi.text;yi.counter;var X7={exports:{}},Nne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Mne=Nne,Rne=Mne;function J7(){}function eB(){}eB.resetWarningCache=J7;var Dne=function(){function e(r,i,o,a,s,l){if(l!==Rne){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:eB,resetWarningCache:J7};return n.PropTypes=n,n};X7.exports=Dne();var Lne=X7.exports;const U=Du(Lne);function jR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jR(Object(n),!0).forEach(function(r){Ic(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E0(e){"@babel/helpers - typeof";return E0=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},E0(e)}function Ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ine(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Fne(e,t){if(e==null)return{};var n=Ine(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function W2(e){return Une(e)||$ne(e)||Bne(e)||zne()}function Une(e){if(Array.isArray(e))return Y2(e)}function $ne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bne(e,t){if(e){if(typeof e=="string")return Y2(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 Y2(e,t)}}function Y2(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 zne(){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 Vne(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,x=e.flip,b=e.size,_=e.rotation,w=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":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Ic(t,"fa-".concat(b),typeof b<"u"&&b!==null),Ic(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),Ic(t,"fa-pull-".concat(w),typeof w<"u"&&w!==null),Ic(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 Hne(e){return e=e-0,e===e}function tB(e){return Hne(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Wne=["style"];function Yne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Gne(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=tB(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[Yne(i)]=o:t[i]=o,t},{})}function nB(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 nB(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=Gne(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[tB(u)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=Fne(n,Wne);return i.attrs.style=Ts(Ts({},i.attrs.style),a),e.apply(void 0,[t.tag,Ts(Ts({},i.attrs),s)].concat(W2(r)))}var rB=!1;try{rB=!0}catch{}function qne(){if(!rB&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function PR(e){if(e&&E0(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(H2.icon)return H2.icon(e);if(e===null)return null;if(e&&E0(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 uO(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ic({},e,t):{}}var Ne=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=PR(n),f=uO("classes",[].concat(W2(Vne(e)),W2(o.split(" ")))),d=uO("transform",typeof e.transform=="string"?H2.transform(e.transform):e.transform),p=uO("mask",PR(r)),m=Ane(u,Ts(Ts(Ts(Ts({},f),d),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!m)return qne("Could not find icon",u),null;var v=m.abstract,g={ref:t};return Object.keys(e).forEach(function(x){Ne.defaultProps.hasOwnProperty(x)||(g[x]=e[x])}),Kne(v[0],g)});Ne.displayName="FontAwesomeIcon";Ne.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};Ne.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 Kne=nB.bind(null,M.createElement),iB={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})()})(iB);var Zne=iB.exports;const Qe=Du(Zne);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 Qne(){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 oB(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function Xne(){return document.body.clientWidth<window.innerWidth}function Jne(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function ere(){var e=Qne(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;Xne()&&oB(n+e)}var tre;function qe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tre;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function fl(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function aB(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 AR={};function G2(e){AR[e]||(typeof console<"u"&&console.error(e),AR[e]=!0)}function sB(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&G2('"'.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 nre=(typeof window>"u"?"undefined":vf(window))==="object"&&window.Element||function(){};function Yk(e,t,n){if(!(e[t]instanceof nre))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var gf=U.oneOfType([U.string,U.func,Yk,U.shape({current:U.any})]),dt=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})]))]),T0={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},C0=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Mg={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},jt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},rre=["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"],Gk=!!(typeof window<"u"&&window.document&&window.document.createElement);function ire(e){return e&&vf(e)==="object"?"current"in e:!1}function lB(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function q2(e){var t=vf(e);return e!=null&&(t==="object"||t==="function")}function NR(e){var t=vf(e),n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&lB(e)==="[object Symbol]")return n;if(q2(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=q2(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 ore(e){if(!q2(e))return!1;var t=lB(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function are(e){if(ire(e))return e.current;if(ore(e))return e();if(typeof e=="string"&&Gk){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 MR(e){return e===null?!1:Array.isArray(e)||Gk&&typeof e.length=="number"}function Qh(e,t){var n=are(e);return t?MR(n)?n:n===null?[]:[n]:MR(n)?n[0]:n}var sre=["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"])'],lre=["className","cssModule","noGutters","tag","widths"];function K2(){return K2=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},K2.apply(this,arguments)}function ure(e,t){if(e==null)return{};var n=cre(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 cre(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 fre=["xs","sm","md","lg","xl","xxl"],ic=U.oneOfType([U.number,U.string]),dre={tag:dt,noGutters:sB(U.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:U.string,cssModule:U.object,xs:ic,sm:ic,md:ic,lg:ic,xl:ic,xxl:ic,widths:U.array};function Pr(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?fre:a,l=ure(e,lre),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(Qe(t,r?"gx-0":null,"row",u),n);return M.createElement(o,K2({},l,{className:f}))}Pr.propTypes=dre;var pre=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function Z2(){return Z2=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},Z2.apply(this,arguments)}function cO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hre(e,t){if(e==null)return{};var n=mre(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 mre(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 vre={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:dt},gre=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function uB(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,x=hre(e,pre),b=qe(Qe(i,"navbar",gre(r),(t={"navbar-light":a,"navbar-dark":s},cO(t,"bg-".concat(f),f),cO(t,"fixed-".concat(l),l),cO(t,"sticky-".concat(u),u),t)),o),_=p&&p===!0?"container":"container-".concat(p);return M.createElement(v,Z2({},x,{className:b}),p?M.createElement("div",{className:_},g):g)}uB.propTypes=vre;var yre=["className","cssModule","tag"];function Q2(){return Q2=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},Q2.apply(this,arguments)}function bre(e,t){if(e==null)return{};var n=_re(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 _re(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 wre={className:U.string,cssModule:U.object,tag:dt};function cB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=bre(e,yre),a=qe(Qe(t,"navbar-brand"),n);return M.createElement(i,Q2({},o,{className:a}))}cB.propTypes=wre;var xre=["className","cssModule","children","tag"];function X2(){return X2=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},X2.apply(this,arguments)}function RR(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 Ore(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RR(Object(n),!0).forEach(function(r){Sre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ere(e,t){if(e==null)return{};var n=Tre(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 Tre(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 Cre={className:U.string,cssModule:U.object,tag:dt,type:U.string,children:U.node};function fB(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=Ere(e,xre),s=qe(Qe(t,"navbar-toggler"),n);return M.createElement(o,X2({"aria-label":"Toggle navigation"},Ore({type:"button"},a),{className:s}),r||M.createElement("span",{className:qe("navbar-toggler-icon",n)}))}fB.propTypes=Cre;var kre=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function J2(){return J2=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},J2.apply(this,arguments)}function jre(e,t){if(e==null)return{};var n=Pre(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 Pre(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 Are={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:dt,vertical:U.oneOfType([U.bool,U.string])},Nre=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function qk(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=jre(e,kre),g=qe(Qe(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,Nre(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,J2({},v,{className:g}))}qk.propTypes=Are;var Mre=["className","cssModule","active","tag"];function e1(){return e1=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},e1.apply(this,arguments)}function Rre(e,t){if(e==null)return{};var n=Dre(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 Dre(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 Lre={active:U.bool,className:U.string,cssModule:U.object,tag:dt};function Kk(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=Rre(e,Mre),s=qe(Qe(t,"nav-item",r?"active":!1),n);return M.createElement(o,e1({},a,{className:s}))}Kk.propTypes=Lre;function t1(e){"@babel/helpers - typeof";return t1=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},t1(e)}var Ire=["className","cssModule","active","tag","innerRef"];function n1(){return n1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n1.apply(this,arguments)}function Fre(e,t){if(e==null)return{};var n=Ure(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 Ure(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 $re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(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 Bre(e,t,n){return t&&DR(e.prototype,t),n&&DR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r1(e,t)}function r1(e,t){return r1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},r1(e,t)}function Vre(e){var t=Wre();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 Hre(this,i)}}function Hre(e,t){if(t&&(t1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dB(e)}function dB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k0(e){return k0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},k0(e)}var Yre={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:dt},pB=function(e){zre(n,e);var t=Vre(n);function n(r){var i;return $re(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(dB(i)),i}return Bre(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=Fre(i,Ire),p=qe(Qe(o,"nav-link",{disabled:d.disabled,active:s}),a);return M.createElement(u,n1({},d,{ref:f,onClick:this.onClick,className:p}))}}]),n}(M.Component);pB.propTypes=Yre;const hB=pB;var Gre=["className","cssModule","variant","innerRef"];function i1(){return i1=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},i1.apply(this,arguments)}function LR(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 qre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LR(Object(n),!0).forEach(function(r){Kre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zre(e,t){if(e==null)return{};var n=Qre(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 Qre(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 Xre={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 mB(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=Zre(e,Gre),o=qe(Qe(t,"btn-close",n&&"btn-close-".concat(n)));return M.createElement("button",i1({ref:r,type:"button",className:o},qre({"aria-label":"close"},i)))}mB.propTypes=Xre;var Jre=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function o1(){return o1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o1.apply(this,arguments)}function eie(e,t){if(e==null)return{};var n=tie(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 tie(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 nie={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:dt};function _t(e){var t=I.useCallback(function(_){if(e.disabled){_.preventDefault();return}if(e.onClick)return e.onClick(_)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,u=l===void 0?"secondary":l,f=e.outline,d=e.size,p=e.tag,m=p===void 0?"button":p,v=e.innerRef,g=eie(e,Jre);if(a)return M.createElement(mB,g);var x="btn".concat(f?"-outline":"","-").concat(u),b=qe(Qe(o,"btn",x,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,o1({type:m==="button"&&g.onClick?"button":void 0},g,{className:b,ref:v,onClick:t,"aria-label":r}))}_t.propTypes=nie;var vB=I.createContext(),gB=I.createContext();function IR(e){var t=e.children,n=I.useState(null),r=n[0],i=n[1],o=I.useRef(!1);I.useEffect(function(){return function(){o.current=!0}},[]);var a=I.useCallback(function(s){o.current||i(s)},[]);return I.createElement(vB.Provider,{value:r},I.createElement(gB.Provider,{value:a},t))}var yB=function(t){return Array.isArray(t)?t[0]:t},bB=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)}},a1=function(t,n){if(typeof t=="function")return bB(t,n);t!=null&&(t.current=n)},FR=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},UR=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,qr="top",zi="bottom",Vi="right",Kr="left",Zk="auto",cv=[qr,zi,Vi,Kr],yf="start",Xh="end",rie="clippingParents",_B="viewport",dp="popper",iie="reference",$R=cv.reduce(function(e,t){return e.concat([t+"-"+yf,t+"-"+Xh])},[]),wB=[].concat(cv,[Zk]).reduce(function(e,t){return e.concat([t,t+"-"+yf,t+"-"+Xh])},[]),oie="beforeRead",aie="read",sie="afterRead",lie="beforeMain",uie="main",cie="afterMain",fie="beforeWrite",die="write",pie="afterWrite",hie=[oie,aie,sie,lie,uie,cie,fie,die,pie];function ea(e){return e?(e.nodeName||"").toLowerCase():null}function fi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tu(e){var t=fi(e).Element;return e instanceof t||e instanceof Element}function Li(e){var t=fi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qk(e){if(typeof ShadowRoot>"u")return!1;var t=fi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mie(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];!Li(o)||!ea(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 vie(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},{});!Li(i)||!ea(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const gie={name:"applyStyles",enabled:!0,phase:"write",fn:mie,effect:vie,requires:["computeStyles"]};function Wo(e){return e.split("-")[0]}var uu=Math.max,j0=Math.min,bf=Math.round;function s1(){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 xB(){return!/^((?!chrome|android).)*safari/i.test(s1())}function _f(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Li(e)&&(i=e.offsetWidth>0&&bf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&bf(r.height)/e.offsetHeight||1);var a=Tu(e)?fi(e):window,s=a.visualViewport,l=!xB()&&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 Xk(e){var t=_f(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 OB(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ia(e){return fi(e).getComputedStyle(e)}function yie(e){return["table","td","th"].indexOf(ea(e))>=0}function dl(e){return((Tu(e)?e.ownerDocument:e.document)||window.document).documentElement}function J_(e){return ea(e)==="html"?e:e.assignedSlot||e.parentNode||(Qk(e)?e.host:null)||dl(e)}function BR(e){return!Li(e)||Ia(e).position==="fixed"?null:e.offsetParent}function bie(e){var t=/firefox/i.test(s1()),n=/Trident/i.test(s1());if(n&&Li(e)){var r=Ia(e);if(r.position==="fixed")return null}var i=J_(e);for(Qk(i)&&(i=i.host);Li(i)&&["html","body"].indexOf(ea(i))<0;){var o=Ia(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 fv(e){for(var t=fi(e),n=BR(e);n&&yie(n)&&Ia(n).position==="static";)n=BR(n);return n&&(ea(n)==="html"||ea(n)==="body"&&Ia(n).position==="static")?t:n||bie(e)||t}function Jk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oh(e,t,n){return uu(e,j0(t,n))}function _ie(e,t,n){var r=oh(e,t,n);return r>n?n:r}function SB(){return{top:0,right:0,bottom:0,left:0}}function EB(e){return Object.assign({},SB(),e)}function TB(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wie=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,EB(typeof t!="number"?t:TB(t,cv))};function xie(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Wo(n.placement),l=Jk(s),u=[Kr,Vi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=wie(i.padding,n),p=Xk(o),m=l==="y"?qr:Kr,v=l==="y"?zi:Vi,g=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],x=a[l]-n.rects.reference[l],b=fv(o),_=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=g/2-x/2,O=d[m],E=_-p[f]-d[v],T=_/2-p[f]/2+w,k=oh(O,T,E),P=l;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-T,t)}}function Oie(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)||OB(t.elements.popper,i)&&(t.elements.arrow=i))}const Sie={name:"arrow",enabled:!0,phase:"main",fn:xie,effect:Oie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wf(e){return e.split("-")[1]}var Eie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tie(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:bf(n*i)/i||0,y:bf(r*i)/i||0}}function zR(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,x=typeof f=="function"?f({x:m,y:g}):{x:m,y:g};m=x.x,g=x.y;var b=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Kr,O=qr,E=window;if(u){var T=fv(n),k="clientHeight",P="clientWidth";if(T===fi(n)&&(T=dl(n),Ia(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",P="scrollWidth")),T=T,i===qr||(i===Kr||i===Vi)&&o===Xh){O=zi;var D=d&&T===E&&E.visualViewport?E.visualViewport.height:T[k];g-=D-r.height,g*=l?1:-1}if(i===Kr||(i===qr||i===zi)&&o===Xh){w=Vi;var N=d&&T===E&&E.visualViewport?E.visualViewport.width:T[P];m-=N-r.width,m*=l?1:-1}}var F=Object.assign({position:s},u&&Eie),B=f===!0?Tie({x:m,y:g},fi(n)):{x:m,y:g};if(m=B.x,g=B.y,l){var Y;return Object.assign({},F,(Y={},Y[O]=_?"0":"",Y[w]=b?"0":"",Y.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",Y))}return Object.assign({},F,(t={},t[O]=_?g+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function Cie(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:Wo(t.placement),variation:wf(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,zR(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,zR(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 kie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cie,data:{}};var Rg={passive:!0};function jie(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=fi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,Rg)}),s&&l.addEventListener("resize",n.update,Rg),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Rg)}),s&&l.removeEventListener("resize",n.update,Rg)}}const Pie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jie,data:{}};var Aie={left:"right",right:"left",bottom:"top",top:"bottom"};function ky(e){return e.replace(/left|right|bottom|top/g,function(t){return Aie[t]})}var Nie={start:"end",end:"start"};function VR(e){return e.replace(/start|end/g,function(t){return Nie[t]})}function ej(e){var t=fi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function tj(e){return _f(dl(e)).left+ej(e).scrollLeft}function Mie(e,t){var n=fi(e),r=dl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=xB();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+tj(e),y:l}}function Rie(e){var t,n=dl(e),r=ej(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=uu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=uu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+tj(e),l=-r.scrollTop;return Ia(i||n).direction==="rtl"&&(s+=uu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function nj(e){var t=Ia(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function CB(e){return["html","body","#document"].indexOf(ea(e))>=0?e.ownerDocument.body:Li(e)&&nj(e)?e:CB(J_(e))}function ah(e,t){var n;t===void 0&&(t=[]);var r=CB(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=fi(r),a=i?[o].concat(o.visualViewport||[],nj(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(ah(J_(a)))}function l1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Die(e,t){var n=_f(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 HR(e,t,n){return t===_B?l1(Mie(e,n)):Tu(t)?Die(t,n):l1(Rie(dl(e)))}function Lie(e){var t=ah(J_(e)),n=["absolute","fixed"].indexOf(Ia(e).position)>=0,r=n&&Li(e)?fv(e):e;return Tu(r)?t.filter(function(i){return Tu(i)&&OB(i,r)&&ea(i)!=="body"}):[]}function Iie(e,t,n,r){var i=t==="clippingParents"?Lie(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=HR(e,u,r);return l.top=uu(f.top,l.top),l.right=j0(f.right,l.right),l.bottom=j0(f.bottom,l.bottom),l.left=uu(f.left,l.left),l},HR(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 kB(e){var t=e.reference,n=e.element,r=e.placement,i=r?Wo(r):null,o=r?wf(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case qr:l={x:a,y:t.y-n.height};break;case zi:l={x:a,y:t.y+t.height};break;case Vi:l={x:t.x+t.width,y:s};break;case Kr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?Jk(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case yf:l[u]=l[u]-(t[f]/2-n[f]/2);break;case Xh:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function Jh(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?rie:s,u=n.rootBoundary,f=u===void 0?_B:u,d=n.elementContext,p=d===void 0?dp:d,m=n.altBoundary,v=m===void 0?!1:m,g=n.padding,x=g===void 0?0:g,b=EB(typeof x!="number"?x:TB(x,cv)),_=p===dp?iie:dp,w=e.rects.popper,O=e.elements[v?_:p],E=Iie(Tu(O)?O:O.contextElement||dl(e.elements.popper),l,f,a),T=_f(e.elements.reference),k=kB({reference:T,element:w,strategy:"absolute",placement:i}),P=l1(Object.assign({},w,k)),D=p===dp?P:T,N={top:E.top-D.top+b.top,bottom:D.bottom-E.bottom+b.bottom,left:E.left-D.left+b.left,right:D.right-E.right+b.right},F=e.modifiersData.offset;if(p===dp&&F){var B=F[i];Object.keys(N).forEach(function(Y){var H=[Vi,zi].indexOf(Y)>=0?1:-1,Q=[qr,zi].indexOf(Y)>=0?"y":"x";N[Y]+=B[Q]*H})}return N}function Fie(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?wB:l,f=wf(r),d=f?s?$R:$R.filter(function(v){return wf(v)===f}):cv,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]=Jh(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Wo(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function Uie(e){if(Wo(e)===Zk)return[];var t=ky(e);return[VR(e),t,VR(t)]}function $ie(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,x=t.options.placement,b=Wo(x),_=b===x,w=l||(_||!v?[ky(x)]:Uie(x)),O=[x].concat(w).reduce(function(ee,oe){return ee.concat(Wo(oe)===Zk?Fie(t,{placement:oe,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:g}):oe)},[]),E=t.rects.reference,T=t.rects.popper,k=new Map,P=!0,D=O[0],N=0;N<O.length;N++){var F=O[N],B=Wo(F),Y=wf(F)===yf,H=[qr,zi].indexOf(B)>=0,Q=H?"width":"height",Z=Jh(t,{placement:F,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=H?Y?Vi:Kr:Y?zi:qr;E[Q]>T[Q]&&(te=ky(te));var X=ky(te),z=[];if(o&&z.push(Z[B]<=0),s&&z.push(Z[te]<=0,Z[X]<=0),z.every(function(ee){return ee})){D=F,P=!1;break}k.set(F,z)}if(P)for(var V=v?3:1,W=function(oe){var le=O.find(function(fe){var j=k.get(fe);if(j)return j.slice(0,oe).every(function(A){return A})});if(le)return D=le,"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 Bie={name:"flip",enabled:!0,phase:"main",fn:$ie,requiresIfExists:["offset"],data:{_skip:!1}};function WR(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 YR(e){return[qr,Vi,zi,Kr].some(function(t){return e[t]>=0})}function zie(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Jh(t,{elementContext:"reference"}),s=Jh(t,{altBoundary:!0}),l=WR(a,r),u=WR(s,i,o),f=YR(l),d=YR(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 Vie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zie};function Hie(e,t,n){var r=Wo(e),i=[Kr,qr].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,[Kr,Vi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Wie(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=wB.reduce(function(f,d){return f[d]=Hie(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 Yie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wie};function Gie(e){var t=e.state,n=e.name;t.modifiersData[n]=kB({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const qie={name:"popperOffsets",enabled:!0,phase:"read",fn:Gie,data:{}};function Kie(e){return e==="x"?"y":"x"}function Zie(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,x=Jh(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),b=Wo(t.placement),_=wf(t.placement),w=!_,O=Jk(b),E=Kie(O),T=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(T){if(o){var Y,H=O==="y"?qr:Kr,Q=O==="y"?zi:Vi,Z=O==="y"?"height":"width",te=T[O],X=te+x[H],z=te-x[Q],V=m?-P[Z]/2:0,W=_===yf?k[Z]:P[Z],re=_===yf?-P[Z]:-k[Z],q=t.elements.arrow,ee=m&&q?Xk(q):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:SB(),le=oe[H],fe=oe[Q],j=oh(0,k[Z],ee[Z]),A=w?k[Z]/2-V-j-le-N.mainAxis:W-j-le-N.mainAxis,$=w?-k[Z]/2+V+j+fe+N.mainAxis:re+j+fe+N.mainAxis,J=t.elements.arrow&&fv(t.elements.arrow),K=J?O==="y"?J.clientTop||0:J.clientLeft||0:0,se=(Y=F==null?void 0:F[O])!=null?Y:0,he=te+A-se-K,Ee=te+$-se,ue=oh(m?j0(X,he):X,te,m?uu(z,Ee):z);T[O]=ue,B[O]=ue-te}if(s){var ve,ge=O==="x"?qr:Kr,Oe=O==="x"?zi:Vi,Ce=T[E],ke=E==="y"?"height":"width",Pe=Ce+x[ge],ce=Ce-x[Oe],de=[qr,Kr].indexOf(b)!==-1,_e=(ve=F==null?void 0:F[E])!=null?ve:0,be=de?Pe:Ce-k[ke]-P[ke]-_e+N.altAxis,Se=de?Ce+k[ke]+P[ke]-_e-N.altAxis:ce,Ae=m&&de?_ie(be,Ce,Se):oh(m?be:Pe,Ce,m?Se:ce);T[E]=Ae,B[E]=Ae-Ce}t.modifiersData[r]=B}}const Qie={name:"preventOverflow",enabled:!0,phase:"main",fn:Zie,requiresIfExists:["offset"]};function Xie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Jie(e){return e===fi(e)||!Li(e)?ej(e):Xie(e)}function eoe(e){var t=e.getBoundingClientRect(),n=bf(t.width)/e.offsetWidth||1,r=bf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function toe(e,t,n){n===void 0&&(n=!1);var r=Li(t),i=Li(t)&&eoe(t),o=dl(t),a=_f(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ea(t)!=="body"||nj(o))&&(s=Jie(t)),Li(t)?(l=_f(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=tj(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function noe(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 roe(e){var t=noe(e);return hie.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function ioe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ooe(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 GR={placement:"bottom",modifiers:[],strategy:"absolute"};function qR(){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 aoe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?GR:i;return function(s,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},GR,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:f,setOptions:function(b){var _=typeof b=="function"?b(f.options):b;g(),f.options=Object.assign({},o,f.options,_),f.scrollParents={reference:Tu(s)?ah(s):s.contextElement?ah(s.contextElement):[],popper:ah(l)};var w=roe(ooe([].concat(r,f.options.modifiers)));return f.orderedModifiers=w.filter(function(O){return O.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var b=f.elements,_=b.reference,w=b.popper;if(qR(_,w)){f.rects={reference:toe(_,fv(w),f.options.strategy==="fixed"),popper:Xk(w)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(N){return f.modifiersData[N.name]=Object.assign({},N.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,P=k===void 0?{}:k,D=E.name;typeof T=="function"&&(f=T({state:f,options:P,name:D,instance:m})||f)}}}},update:ioe(function(){return new Promise(function(x){m.forceUpdate(),x(f)})}),destroy:function(){g(),p=!0}};if(!qR(s,l))return m;m.setOptions(u).then(function(x){!p&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var b=x.name,_=x.options,w=_===void 0?{}:_,O=x.effect;if(typeof O=="function"){var E=O({state:f,name:b,instance:m,options:w}),T=function(){};d.push(E||T)}})}function g(){d.forEach(function(x){return x()}),d=[]}return m}}var soe=[Pie,qie,kie,gie,Yie,Bie,Qie,Sie,Vie],loe=aoe({defaultModifiers:soe}),uoe=typeof Element<"u",coe=typeof Map=="function",foe=typeof Set=="function",doe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function jy(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(!jy(e[r],t[r]))return!1;return!0}var o;if(coe&&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(!jy(r.value[1],t.get(r.value[0])))return!1;return!0}if(foe&&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(doe&&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(uoe&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!jy(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var poe=function(t,n){try{return jy(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 hoe=Du(poe);var moe=[],voe=function(t,n,r){r===void 0&&(r={});var i=I.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||moe},a=I.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],u=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var v=m.state,g=Object.keys(v.elements);dd.flushSync(function(){l({styles:FR(g.map(function(x){return[x,v.styles[x]||{}]})),attributes:FR(g.map(function(x){return[x,v.attributes[x]]}))})})},requires:["computeStyles"]}},[]),f=I.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return hoe(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),d=I.useRef();return UR(function(){d.current&&d.current.setOptions(f)},[f]),UR(function(){if(!(t==null||n==null)){var p=r.createPopper||loe,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}},goe=function(){},yoe=function(){return Promise.resolve(null)},boe=[];function jB(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?boe:o,s=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,d=I.useContext(vB),p=I.useState(null),m=p[0],v=p[1],g=I.useState(null),x=g[0],b=g[1];I.useEffect(function(){a1(u,m)},[u,m]);var _=I.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,a,x]),w=voe(s||d,m,_),O=w.state,E=w.styles,T=w.forceUpdate,k=w.update,P=I.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:b},forceUpdate:T||goe,update:k||yoe}},[v,b,n,O,E,k,T]);return yB(f)(P)}var _oe=function(){},woe=_oe;const xoe=Du(woe);function Ooe(e){var t=e.children,n=e.innerRef,r=I.useContext(gB),i=I.useCallback(function(o){a1(n,o),bB(r,o)},[n,r]);return I.useEffect(function(){return function(){return a1(n,null)}},[]),I.useEffect(function(){xoe(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),yB(t)({ref:i})}var em=M.createContext({}),PB=M.createContext({});function u1(e){"@babel/helpers - typeof";return u1=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},u1(e)}var Soe=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function c1(){return c1=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},c1.apply(this,arguments)}function os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eoe(e,t){if(e==null)return{};var n=Toe(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 Toe(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 Coe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KR(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 koe(e,t,n){return t&&KR(e.prototype,t),n&&KR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function joe(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&&f1(e,t)}function f1(e,t){return f1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},f1(e,t)}function Poe(e){var t=Noe();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 Aoe(this,i)}}function Aoe(e,t){if(t&&(u1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return us(e)}function us(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Noe(){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 Moe={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:dt,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"])},Roe={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Doe=[jt.space,jt.enter,jt.up,jt.down,jt.end,jt.home],ew=function(e){joe(n,e);var t=Poe(n);function n(r){var i;return Coe(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(us(i)),i.handleDocumentClick=i.handleDocumentClick.bind(us(i)),i.handleKeyDown=i.handleKeyDown.bind(us(i)),i.removeEvents=i.removeEvents.bind(us(i)),i.toggle=i.toggle.bind(us(i)),i.handleMenuRef=i.handleMenuRef.bind(us(i)),i.handleToggleRef=i.handleToggleRef.bind(us(i)),i.containerRef=M.createRef(),i.menuRef=M.createRef(),i.toggleRef=M.createRef(),i}return koe(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!==jt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var 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===jt.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=jt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&((Doe.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([jt.space,jt.enter,jt.up,jt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var _;return(_=o.getMenuItems()[0])===null||_===void 0?void 0:_.focus()});else if(this.props.isOpen&&l){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===jt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([jt.tab,jt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([jt.space,jt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([jt.down,jt.up].indexOf(i.which)>-1||[jt.n,jt.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),d=f.indexOf(i.target);jt.up===i.which||jt.p===i.which&&i.ctrlKey?d=d!==0?d-1:f.length-1:(jt.down===i.which||jt.n===i.which&&i.ctrlKey)&&(d=d===f.length-1?0:d+1),f[d].focus()}else if(jt.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(jt.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(),x=0;x<v.length;x+=1){var b=v[x].textContent&&v[x].textContent[0].toLowerCase();if(b===g){v[x].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=fl(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,x=a.tag;a.menuRole;var b=Eoe(a,Soe),_=x||(m?"li":"div"),w=!1;v&&M.Children.map(this.props.children[1].props.children,function(E){E&&E.props.active&&(w=!0)});var O=qe(Qe(s,m&&g?"active":!1,v&&w?"active":!1,(i={"btn-group":d},os(i,"btn-group-".concat(p),!!p),os(i,"dropdown",!d),os(i,"dropup",u==="up"),os(i,"dropstart",u==="start"||u==="left"),os(i,"dropend",u==="end"||u==="right"),os(i,"show",f),os(i,"nav-item",m),i)),l);return this.context.insideInputGroup?M.createElement(em.Provider,{value:this.getContextValue()},M.createElement(IR,null,M.Children.map(this.props.children,function(E){return M.cloneElement(E,{onKeyDown:o.handleKeyDown})}))):M.createElement(em.Provider,{value:this.getContextValue()},M.createElement(IR,null,M.createElement(_,c1({},b,os({},typeof _=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:O}))))}}]),n}(M.Component);ew.propTypes=Moe;ew.defaultProps=Roe;ew.contextType=PB;const dv=ew;function d1(e){"@babel/helpers - typeof";return d1=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},d1(e)}var Loe=["className","cssModule","divider","tag","header","active","text"];function p1(){return p1=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},p1.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}function Uoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $oe(e,t,n){return t&&ZR(e.prototype,t),n&&ZR(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&&h1(e,t)}function h1(e,t){return h1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},h1(e,t)}function zoe(e){var t=Hoe();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 Voe(this,i)}}function Voe(e,t){if(t&&(d1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m1(e)}function m1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function A0(e){return A0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},A0(e)}var Woe={children:U.node,active:U.bool,disabled:U.bool,divider:U.bool,tag:dt,header:U.bool,onClick:U.func,className:U.string,cssModule:U.object,toggle:U.bool,text:U.bool},rj=function(e){Boe(n,e);var t=zoe(n);function n(r){var i;return Uoe(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(m1(i)),i.getTabIndex=i.getTabIndex.bind(m1(i)),i}return $oe(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=fl(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=Ioe(a,Loe),x=qe(Qe(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,p1({type:d==="button"&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(M.Component);rj.propTypes=Woe;rj.contextType=em;const Re=rj;function v1(e){"@babel/helpers - typeof";return v1=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},v1(e)}var Yoe=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function N0(){return N0=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},N0.apply(this,arguments)}function QR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(n),!0).forEach(function(r){Goe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Goe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qoe(e){return Xoe(e)||Qoe(e)||Zoe(e)||Koe()}function Koe(){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 Zoe(e,t){if(e){if(typeof e=="string")return g1(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 g1(e,t)}}function Qoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xoe(e){if(Array.isArray(e))return g1(e)}function g1(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 Joe(e,t){if(e==null)return{};var n=eae(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 eae(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 tae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XR(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 nae(e,t,n){return t&&XR(e.prototype,t),n&&XR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rae(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&&y1(e,t)}function y1(e,t){return y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},y1(e,t)}function iae(e){var t=sae();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 oae(this,i)}}function oae(e,t){if(t&&(v1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aae(e)}function aae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sae(){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 lae={tag:dt,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:gf,updateOnSelect:U.bool,right:sB(U.bool,'Please use "end" instead.')},uae={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},ij=function(e){rae(n,e);var t=iae(n);function n(){return tae(this,n),t.apply(this,arguments)}return nae(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,x=g===void 0?[]:g,b=o.persist,_=o.strategy,w=o.container,O=o.updateOnSelect,E=Joe(o,Yoe),T=qe(Qe(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":u||f,show:this.context.isOpen}),s),k=p;if(b||this.context.isOpen&&!this.context.inNavbar){var P=uae[this.context.direction]||"bottom",D=u||f?"end":"start",N="".concat(P,"-").concat(D),F=[].concat(qoe(x),[{name:"flip",enabled:!!v}]),B={};b&&(B.display="block",B.visibility=this.context.isOpen?"visible":"hidden");var Y=M.createElement(jB,{placement:N,modifiers:F,strategy:_},function(Q){var Z=Q.ref,te=Q.style,X=Q.placement,z=Q.update,V=fO(fO(fO({},i.props.style),B),te),W=function(q){Z(q);var ee=i.context.onMenuRef;ee&&ee(q)};return M.createElement(k,N0({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&&z()}}))});return w?lu.createPortal(Y,Qh(w)):Y}var H=this.context.onMenuRef;return M.createElement(k,N0({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);ij.propTypes=lae;ij.contextType=em;const vd=ij;function b1(e){"@babel/helpers - typeof";return b1=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},b1(e)}var cae=["className","color","cssModule","caret","split","nav","tag","innerRef"];function _1(){return _1=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},_1.apply(this,arguments)}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(e,t){if(e==null)return{};var n=pae(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 pae(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 hae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JR(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 mae(e,t,n){return t&&JR(e.prototype,t),n&&JR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vae(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&&w1(e,t)}function w1(e,t){return w1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},w1(e,t)}function gae(e){var t=bae();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 yae(this,i)}}function yae(e,t){if(t&&(b1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AB(e)}function AB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bae(){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 _ae={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:dt,nav:U.bool,innerRef:U.oneOfType([U.object,U.string,U.func])},wae={color:"secondary","aria-haspopup":!0},tw=function(e){vae(n,e);var t=gae(n);function n(r){var i;return hae(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(AB(i)),i}return mae(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=dae(o,cae),g=v["aria-label"]||"Toggle Dropdown",x=qe(Qe(a,{"dropdown-toggle":u||f,"dropdown-toggle-split":f,"nav-link":d}),l),b=typeof v.children<"u"?v.children:M.createElement("span",{className:"visually-hidden"},g),_;d&&!p?(_="a",v.href="#"):p?_=p:(_=_t,v.color=s,v.cssModule=l);var w=function(E){var T=E.ref,k=function(D){T(D);var N=i.context.onToggleRef;N&&N(D)};return M.createElement(_,_1({},v,fae({},typeof _=="string"?"ref":"innerRef",k),{className:x,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:b}))};return this.context.inNavbar?M.createElement(M.Fragment,null,w({ref:this.context.onToggleRef})):M.createElement(Ooe,{innerRef:m},w)}}]),n}(M.Component);tw.propTypes=_ae;tw.defaultProps=wae;tw.contextType=em;const gd=tw;function xae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function x1(e,t){return x1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},x1(e,t)}function Oae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,x1(e,t)}const eD={disabled:!1},NB=M.createContext(null);var Fp="unmounted",Il="exited",Fl="entering",yc="entered",O1="exiting",qa=function(e){Oae(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=Il,o.appearStatus=Fl):l=yc:r.unmountOnExit||r.mountOnEnter?l=Fp:l=Il,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Fp?{status:Il}: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!==Fl&&a!==yc&&(o=Fl):(a===Fl||a===yc)&&(o=O1)}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===Fl?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Il&&this.setState({status:Fp})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[lu.findDOMNode(this),s],u=l[0],f=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||eD.disabled){this.safeSetState({status:yc},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Fl},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:yc},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:lu.findDOMNode(this);if(!o||eD.disabled){this.safeSetState({status:Il},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:O1},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Il},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:lu.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===Fp)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=xae(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(NB.Provider,{value:null},typeof a=="function"?a(i,s):M.cloneElement(M.Children.only(a),s))},t}(M.Component);qa.contextType=NB;qa.propTypes={};function oc(){}qa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oc,onEntering:oc,onEntered:oc,onExit:oc,onExiting:oc,onExited:oc};qa.UNMOUNTED=Fp;qa.EXITED=Il;qa.ENTERING=Fl;qa.ENTERED=yc;qa.EXITING=O1;const yd=qa;var Sae=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function D0(){return D0=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},D0.apply(this,arguments)}function Eae(e,t){if(e==null)return{};var n=Tae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function tD(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 tm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tD(Object(n),!0).forEach(function(r){Cae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kae=tm(tm({},yd.propTypes),{},{children:U.oneOfType([U.arrayOf(U.node),U.node]),tag:dt,baseClass:U.string,baseClassActive:U.string,className:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func])}),MB=tm(tm({},yd.defaultProps),{},{timeout:T0.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Ar(e){var t=I.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=Eae(e,Sae),v=aB(tm({defaultProps:MB},m),C0),g=fl(m,C0);return M.createElement(yd,D0({nodeRef:p},v),function(x){var b=x==="entered",_=qe(Qe(l,o,b&&s),u);return M.createElement(r,D0({className:_},g,{ref:p}),f)})}Ar.propTypes=kae;Ar.defaultProps=MB;function S1(e){"@babel/helpers - typeof";return S1=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},S1(e)}var jae=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],ac;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 Pae(e,t){if(e==null)return{};var n=Aae(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 Aae(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 Nae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nD(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 Mae(e,t,n){return t&&nD(e.prototype,t),n&&nD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rae(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&&E1(e,t)}function E1(e,t){return E1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},E1(e,t)}function Dae(e){var t=Iae();return function(){var r=I0(e),i;if(t){var o=I0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lae(this,i)}}function Lae(e,t){if(t&&(S1(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 Iae(){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 I0(e){return I0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},I0(e)}function rD(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 xf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rD(Object(n),!0).forEach(function(r){Fc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fae=xf(xf({},yd.propTypes),{},{horizontal:U.bool,isOpen:U.bool,children:U.oneOfType([U.arrayOf(U.node),U.node]),tag:dt,className:U.node,navbar:U.bool,cssModule:U.object,innerRef:U.shape({current:U.object})}),Uae=xf(xf({},yd.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:T0.Collapse}),$ae=(ac={},Fc(ac,Mg.ENTERING,"collapsing"),Fc(ac,Mg.ENTERED,"collapse show"),Fc(ac,Mg.EXITING,"collapsing"),Fc(ac,Mg.EXITED,"collapse"),ac);function Bae(e){return $ae[e]||"collapse"}var oj=function(e){Rae(n,e);var t=Dae(n);function n(r){var i;return Nae(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(RB(i))}),i}return Mae(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=Pae(o,jae),v=this.state.dimension,g=aB(m,C0),x=fl(m,C0);return M.createElement(yd,L0({},g,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(b){var _=Bae(b),w=qe(Qe(u,s&&"collapse-horizontal",_,f&&"navbar-collapse"),d),O=v===null?null:Fc({},s?"width":"height",v);return M.createElement(a,L0({},x,{style:xf(xf({},x.style),O),className:w,ref:i.nodeRef}),p)})}}]),n}(I.Component);oj.propTypes=Fae;oj.defaultProps=Uae;const zae=oj;var Vae=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function T1(){return T1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T1.apply(this,arguments)}function Hae(e,t){if(e==null)return{};var n=Wae(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 Wae(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 Yae={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:dt};function di(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=Hae(e,Vae),d=qe(Qe(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return M.createElement(l,T1({},f,{className:d,ref:u}))}di.propTypes=Yae;var Gae=["className","cssModule","innerRef","tag"];function C1(){return C1=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},C1.apply(this,arguments)}function qae(e,t){if(e==null)return{};var n=Kae(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 Kae(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 Zae={className:U.string,cssModule:U.object,innerRef:U.oneOfType([U.object,U.string,U.func]),tag:dt};function Of(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=qae(e,Gae),s=qe(Qe(t,"card-body"),n);return M.createElement(o,C1({},a,{className:s,ref:r}))}Of.propTypes=Zae;var Qae=["className","cssModule","tag"];function k1(){return k1=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},k1.apply(this,arguments)}function Xae(e,t){if(e==null)return{};var n=Jae(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 Jae(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 ese={className:U.string,cssModule:U.object,tag:dt};function DB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Xae(e,Qae),a=qe(Qe(t,"card-footer"),n);return M.createElement(i,k1({},o,{className:a}))}DB.propTypes=ese;var tse=["className","cssModule","tag"];function j1(){return j1=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},j1.apply(this,arguments)}function nse(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 ise={className:U.string,cssModule:U.object,tag:dt};function Sf(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=nse(e,tse),a=qe(Qe(t,"card-header"),n);return M.createElement(i,j1({},o,{className:a}))}Sf.propTypes=ise;var ose=["className","cssModule","tag"];function P1(){return P1=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},P1.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,tag:dt};function LB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=ase(e,ose),a=qe(Qe(t,"card-text"),n);return M.createElement(i,P1({},o,{className:a}))}LB.propTypes=lse;var use=["className","cssModule","tag"];function A1(){return A1=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},A1.apply(this,arguments)}function cse(e,t){if(e==null)return{};var n=fse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dse={className:U.string,cssModule:U.object,tag:dt};function IB(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=cse(e,use),a=qe(Qe(t,"card-title"),n);return M.createElement(i,A1({},o,{className:a}))}IB.propTypes=dse;function N1(e){"@babel/helpers - typeof";return N1=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},N1(e)}var pse=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function M1(){return M1=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},M1.apply(this,arguments)}function iD(e){return gse(e)||vse(e)||mse(e)||hse()}function hse(){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 mse(e,t){if(e){if(typeof e=="string")return R1(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 R1(e,t)}}function vse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gse(e){if(Array.isArray(e))return R1(e)}function R1(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 yse(e,t){if(e==null)return{};var n=bse(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 bse(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 _se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oD(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 wse(e,t,n){return t&&oD(e.prototype,t),n&&oD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D1(e,t)}function D1(e,t){return D1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},D1(e,t)}function Ose(e){var t=Ese();return function(){var r=F0(e),i;if(t){var o=F0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Sse(this,i)}}function Sse(e,t){if(t&&(N1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Up(e)}function Up(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ese(){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 F0(e){return F0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},F0(e)}function aD(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 Py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aD(Object(n),!0).forEach(function(r){Tse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cse(){}var kse={children:U.oneOfType([U.node,U.func]).isRequired,popperClassName:U.string,placement:U.string,placementPrefix:U.string,arrowClassName:U.string,hideArrow:U.bool,tag:dt,isOpen:U.bool,cssModule:U.object,offset:U.arrayOf(U.number),fallbackPlacements:U.array,flip:U.bool,container:gf,target:gf.isRequired,modifiers:U.array,strategy:U.string,boundariesElement:U.oneOfType([U.string,Yk]),onClosed:U.func,fade:U.bool,transition:U.shape(Ar.propTypes)},jse={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Cse,fade:!0,transition:Py({},Ar.defaultProps)},aj=function(e){xse(n,e);var t=Ose(n);function n(r){var i;return _se(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(Up(i)),i.getTargetNode=i.getTargetNode.bind(Up(i)),i.getRef=i.getRef.bind(Up(i)),i.onClosed=i.onClosed.bind(Up(i)),i.state={isOpen:r.isOpen},i}return wse(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 Qh(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Qh(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 x=i.modifiers,b=i.strategy,_=i.boundariesElement;i.onClosed;var w=i.fade,O=i.transition,E=i.placement,T=yse(i,pse),k=qe(Qe("arrow",p),o),P=qe(Qe(v,d?"".concat(d,"-auto"):""),this.props.cssModule),D=x.map(function(Y){return Y.name}),N=[{name:"offset",options:{offset:u}},{name:"flip",enabled:l,options:{fallbackPlacements:f}},{name:"preventOverflow",options:{boundary:_}}].filter(function(Y){return!D.includes(Y.name)}),F=[].concat(iD(N),iD(x)),B=Py(Py(Py({},Ar.defaultProps),O),{},{baseClass:w?O.baseClass:"",timeout:w?O.timeout:0});return M.createElement(Ar,M1({},B,T,{in:s,onExited:this.onClosed,tag:g}),M.createElement(jB,{referenceElement:this.targetNode,modifiers:F,placement:E,strategy:b},function(Y){var H=Y.ref,Q=Y.style,Z=Y.placement,te=Y.isReferenceHidden,X=Y.arrowProps,z=Y.update;return M.createElement("div",{ref:H,style:Q,className:P,"data-popper-placement":Z,"data-popper-reference-hidden":te?"true":void 0},typeof a=="function"?a({update:z}):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():lu.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);aj.propTypes=kse;aj.defaultProps=jse;const Pse=aj;function L1(){return L1=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},L1.apply(this,arguments)}function nm(e){"@babel/helpers - typeof";return nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nm(e)}function Ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sD(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 Nse(e,t,n){return t&&sD(e.prototype,t),n&&sD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I1(e,t)}function I1(e,t){return I1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I1(e,t)}function Rse(e){var t=Lse();return function(){var r=U0(e),i;if(t){var o=U0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Dse(this,i)}}function Dse(e,t){if(t&&(nm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ti(e)}function ti(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lse(){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 U0(e){return U0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},U0(e)}var sj={children:U.oneOfType([U.node,U.func]),placement:U.oneOf(rre),target:gf.isRequired,container:gf,isOpen:U.bool,disabled:U.bool,hideArrow:U.bool,boundariesElement:U.oneOfType([U.string,Yk]),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},FB={show:0,hide:50},Ise={isOpen:!1,hideArrow:!1,autohide:!1,delay:FB,toggle:function(){},trigger:"click",fade:!0};function UB(e,t){return t&&(e===t||t.contains(e))}function lD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return UB(e,n)})[0]}var lj=function(e){Mse(n,e);var t=Rse(n);function n(r){var i;return Ase(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(ti(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ti(i)),i.removeTargetEvents=i.removeTargetEvents.bind(ti(i)),i.toggle=i.toggle.bind(ti(i)),i.showWithDelay=i.showWithDelay.bind(ti(i)),i.hideWithDelay=i.hideWithDelay.bind(ti(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(ti(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(ti(i)),i.show=i.show.bind(ti(i)),i.hide=i.hide.bind(ti(i)),i.onEscKeyDown=i.onEscKeyDown.bind(ti(i)),i.getRef=i.getRef.bind(ti(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return Nse(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||lD(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!UB(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&lD(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):nm(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return nm(o)==="object"?isNaN(o[i])?FB[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=Qh(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,x=a.popperClassName,b=a.container,_=a.modifiers,w=a.strategy,O=a.offset,E=a.fade,T=a.flip,k=a.children,P=fl(this.props,Object.keys(sj)),D=qe(x,l),N=qe(u,l);return M.createElement(Pse,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:p,placement:m,placementPrefix:v,arrowClassName:g,popperClassName:D,container:b,modifiers:_,strategy:w,offset:O,cssModule:l,fade:E,flip:T},function(F){var B=F.update;return M.createElement("div",L1({},P,{ref:i.getRef,className:N,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof k=="function"?k({update:B}):k)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(M.Component);lj.propTypes=sj;lj.defaultProps=Ise;const Fse=lj;var Use=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];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 uD(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?uD(Object(n),!0).forEach(function(r){$se(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bse(e,t){if(e==null)return{};var n=zse(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 zse(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 Vse={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:dt,value:U.oneOfType([U.string,U.number])};function $B(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,x=e.tag,b=x===void 0?"div":x,_=e.style,w=_===void 0?{}:_,O=e.barStyle,E=O===void 0?{}:O,T=e.barAriaValueText,k=e.barAriaLabelledBy,P=Bse(e,Use),D=NR(a)/NR(f)*100,N=qe(Qe(n,"progress"),i),F=qe(Qe("progress-bar",v&&n||r,d?"progress-bar-animated":null,m?"bg-".concat(m):null,p||d?"progress-bar-striped":null),i),B={className:F,style:dO(dO(dO({},v?w:{}),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(b,$0({},P,B)):M.createElement(b,$0({},P,{style:w,className:N}),g?t:M.createElement("div",B))}$B.propTypes=Vse;function F1(e){"@babel/helpers - typeof";return F1=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},F1(e)}function Hse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cD(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 Wse(e,t,n){return t&&cD(e.prototype,t),n&&cD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U1(e,t)}function U1(e,t){return U1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},U1(e,t)}function Gse(e){var t=Zse();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 qse(this,i)}}function qse(e,t){if(t&&(F1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kse(e)}function Kse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zse(){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 Qse={children:U.node.isRequired,node:U.any},BB=function(e){Yse(n,e);var t=Gse(n);function n(){return Hse(this,n),t.apply(this,arguments)}return Wse(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return Gk?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),lu.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(M.Component);BB.propTypes=Qse;const Xse=BB;function $1(e){"@babel/helpers - typeof";return $1=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},$1(e)}function fD(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 sc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(n),!0).forEach(function(r){bc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sh(){return sh=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},sh.apply(this,arguments)}function bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dD(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&&dD(e.prototype,t),n&&dD(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&&B1(e,t)}function B1(e,t){return B1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},B1(e,t)}function nle(e){var t=ile();return function(){var r=z0(e),i;if(t){var o=z0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return rle(this,i)}}function rle(e,t){if(t&&($1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ei(e)}function Ei(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 z0(e){return z0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},z0(e)}function V0(){}var pD=U.shape(Ar.propTypes),zB={autoFocus:U.bool,backdrop:U.oneOfType([U.bool,U.oneOf(["static"])]),backdropClassName:U.string,backdropTransition:pD,centered:U.bool,children:U.node,contentClassName:U.string,className:U.string,container:gf,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:pD,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])},ole=Object.keys(zB),ale={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:V0,onClosed:V0,modalTransition:{timeout:T0.Modal},backdropTransition:{mountOnEnter:!0,timeout:T0.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},pv=function(e){tle(n,e);var t=nle(n);function n(r){var i;return Jse(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Ei(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Ei(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Ei(i)),i.handleEscape=i.handleEscape.bind(Ei(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Ei(i)),i.handleTab=i.handleTab.bind(Ei(i)),i.onOpened=i.onOpened.bind(Ei(i)),i.onClosed=i.onClosed.bind(Ei(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Ei(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Ei(i)),i.trapFocus=i.trapFocus.bind(Ei(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return ele(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===jt.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||V0)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||V0)(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(sre.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=Qh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Jne(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),ere(),n.openCount===0&&(document.body.className=Qe(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),oB(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=fl(this.props,ole),s="modal-dialog";return M.createElement("div",sh({},a,{className:qe(Qe(s,this.props.className,(i={},bc(i,"modal-".concat(this.props.size),this.props.size),bc(i,"".concat(s,"-centered"),this.props.centered),bc(i,"".concat(s,"-scrollable"),this.props.scrollable),bc(i,"modal-fullscreen",this.props.fullscreen===!0),bc(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(Qe("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,x=a.innerRef,b={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":v,"aria-modal":!0,role:m,tabIndex:"-1"},_=this.props.fade,w=sc(sc(sc({},Ar.defaultProps),this.props.modalTransition),{},{baseClass:_?this.props.modalTransition.baseClass:"",timeout:_?this.props.modalTransition.timeout:0}),O=sc(sc(sc({},Ar.defaultProps),this.props.backdropTransition),{},{baseClass:_?this.props.backdropTransition.baseClass:"",timeout:_?this.props.backdropTransition.timeout:0}),E=p&&(_?M.createElement(Ar,sh({},O,{in:d&&!!p,cssModule:f,className:qe(Qe("modal-backdrop",u),f)})):M.createElement("div",{className:qe(Qe("modal-backdrop","show",u),f)}));return M.createElement(Xse,{node:this._element},M.createElement("div",{className:qe(s)},M.createElement(Ar,sh({},b,w,{in:d,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:qe(Qe("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:x}),g,this.renderModalDialog()),E))}return null}}]),n}(M.Component);pv.propTypes=zB;pv.defaultProps=ale;pv.openCount=0;pv.originalBodyOverflow=null;const Ka=pv;var sle=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function z1(){return z1=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},z1.apply(this,arguments)}function lle(e,t){if(e==null)return{};var n=ule(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 ule(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 cle={children:U.node,className:U.string,close:U.object,closeAriaLabel:U.string,cssModule:U.object,tag:dt,toggle:U.func,wrapTag:dt};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=lle(e,sle),v=qe(Qe(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,z1({},m,{className:v}),M.createElement(s,{className:qe("modal-title",r)},i),p||t)}Za.propTypes=cle;var fle=["className","cssModule","tag"];function V1(){return V1=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},V1.apply(this,arguments)}function dle(e,t){if(e==null)return{};var n=ple(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 ple(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 hle={className:U.string,cssModule:U.object,tag:dt};function aa(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=dle(e,fle),a=qe(Qe(t,"modal-body"),n);return M.createElement(i,V1({},o,{className:a}))}aa.propTypes=hle;var mle=["className","cssModule","tag"];function H1(){return H1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H1.apply(this,arguments)}function vle(e,t){if(e==null)return{};var n=gle(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 gle(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 yle={className:U.string,cssModule:U.object,tag:dt};function Uu(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=vle(e,mle),a=qe(Qe(t,"modal-footer"),n);return M.createElement(i,H1({},o,{className:a}))}Uu.propTypes=yle;function W1(){return W1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W1.apply(this,arguments)}var ble={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function hv(e){var t=Qe("tooltip-arrow",e.arrowClassName),n=Qe("tooltip","show",e.popperClassName),r=Qe("tooltip-inner",e.innerClassName);return M.createElement(Fse,W1({},e,{arrowClassName:t,popperClassName:n,innerClassName:r}))}hv.propTypes=sj;hv.defaultProps=ble;var _le=["className","cssModule","tag","flush","horizontal","numbered"];function Y1(){return Y1=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},Y1.apply(this,arguments)}function wle(e,t){if(e==null)return{};var n=xle(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 xle(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 Ole={className:U.string,cssModule:U.object,flush:U.bool,horizontal:U.oneOfType([U.bool,U.string]),numbered:U.bool,tag:dt},Sle=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function VB(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=wle(e,_le),d=qe(Qe(t,"list-group",o?"list-group-flush":Sle(s),{"list-group-numbered":u}),n);return M.createElement(i,Y1({},f,{className:d}))}VB.propTypes=Ole;var Ele=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function G1(){return G1=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},G1.apply(this,arguments)}function Tle(e,t){if(e==null)return{};var n=Cle(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 Cle(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 kle={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:dt,className:U.string,cssModule:U.object};function zr(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=Tle(e,Ele),m=o||d,v=qe(Qe(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,G1({},p,{className:v}))}zr.propTypes=kle;function q1(e){"@babel/helpers - typeof";return q1=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},q1(e)}var jle=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function K1(){return K1=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},K1.apply(this,arguments)}function Ple(e,t){if(e==null)return{};var n=Ale(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 Ale(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 Nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hD(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 Mle(e,t,n){return t&&hD(e.prototype,t),n&&hD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rle(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&&Z1(e,t)}function Z1(e,t){return Z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Z1(e,t)}function Dle(e){var t=Ile();return function(){var r=H0(e),i;if(t){var o=H0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lle(this,i)}}function Lle(e,t){if(t&&(q1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q1(e)}function Q1(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 H0(e){return H0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},H0(e)}var Fle={children:U.node,type:U.string,size:U.oneOfType([U.number,U.string]),bsSize:U.string,valid:U.bool,invalid:U.bool,tag:dt,innerRef:U.oneOfType([U.object,U.func,U.string]),plaintext:U.bool,addon:U.bool,className:U.string,cssModule:U.object},HB=function(e){Rle(n,e);var t=Dle(n);function n(r){var i;return Nle(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(Q1(i)),i.focus=i.focus.bind(Q1(i)),i}return Mle(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,x=Ple(i,jle),b=["switch","radio","checkbox"].indexOf(l)>-1,_=/\D/g,w=l==="textarea",O=l==="select",E=l==="range",T=p||(O||w?l:"input"),k="form-control";v?(k="".concat(k,"-plaintext"),T=p||"input"):E?k="form-range":O?k="form-select":b&&(m?k=null:k="form-check-input"),x.size&&_.test(x.size)&&(G2(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=x.size,delete x.size);var P=qe(Qe(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")&&(x.type=l==="switch"?"checkbox":l),x.children&&!(v||l==="select"||typeof T!="string"||T==="select")&&(G2('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),M.createElement(T,K1({},x,{ref:g,className:P,"aria-invalid":d}))}}]),n}(M.Component);HB.propTypes=Fle;const Cu=HB;var Ule=["className","cssModule","tag","type","size"];function W0(){return W0=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},W0.apply(this,arguments)}function $le(e,t){if(e==null)return{};var n=Ble(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 Ble(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 zle={className:U.string,cssModule:U.object,size:U.string,tag:dt,type:U.string};function nw(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=$le(e,Ule),s=qe(Qe(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?M.createElement(dv,W0({},a,{className:s})):M.createElement(PB.Provider,{value:{insideInputGroup:!0}},M.createElement(i,W0({},a,{className:s})))}nw.propTypes=zle;var Vle=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}function Hle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wle(e,t){if(e==null)return{};var n=Yle(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 Yle(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 Gle={children:U.node,className:U.string,listClassName:U.string,cssModule:U.object,size:U.string,tag:dt,listTag:dt,"aria-label":U.string};function uj(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=Wle(e,Vle),p=qe(Qe(t),r),m=qe(Qe(n,"pagination",Hle({},"pagination-".concat(i),!!i)),r);return M.createElement(a,{className:p,"aria-label":f},M.createElement(l,X1({},d,{className:m})))}uj.propTypes=Gle;var qle=["active","className","cssModule","disabled","tag"];function J1(){return J1=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},J1.apply(this,arguments)}function Kle(e,t){if(e==null)return{};var n=Zle(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 Zle(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 Qle={active:U.bool,children:U.node,className:U.string,cssModule:U.object,disabled:U.bool,tag:dt};function cu(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Kle(e,qle),l=qe(Qe(n,"page-item",{active:t,disabled:i}),r);return M.createElement(a,J1({},s,{className:l}))}cu.propTypes=Qle;var Xle=["className","cssModule","next","previous","first","last","tag"];function eE(){return eE=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},eE.apply(this,arguments)}function Jle(e,t){if(e==null)return{};var n=eue(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 eue(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 tue={"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:dt};function fu(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=Jle(e,Xle),f=qe(Qe(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,eE({},u,{className:f,"aria-label":p}),v)}fu.propTypes=tue;var nue=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","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 mD(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 pp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mD(Object(n),!0).forEach(function(r){rue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iue(e,t){if(e==null)return{};var n=oue(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 oue(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 aue={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:dt,toggle:U.func,transition:U.shape(Ar.propTypes)};function WB(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?pp(pp({},Ar.defaultProps),{},{unmountOnExit:!0}):v,x=e.fade,b=x===void 0?!0:x,_=e.innerRef,w=iue(e,nue),O=qe(Qe(t,"alert","alert-".concat(u),{"alert-dismissible":p}),o),E=qe(Qe("btn-close",n),o),T=pp(pp(pp({},Ar.defaultProps),g),{},{baseClass:b?g.baseClass:"",timeout:b?g.timeout:0});return M.createElement(Ar,tE({},w,T,{tag:s,className:O,in:d,role:"alert",innerRef:_}),p?M.createElement("button",{type:"button",className:E,"aria-label":i,onClick:p}):null,m)}WB.propTypes=aue;var sue=["className","cssModule","tag","active","disabled","action","color"];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 lue(e,t){if(e==null)return{};var n=uue(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 uue(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 cue={action:U.bool,active:U.bool,className:U.string,cssModule:U.object,color:U.string,disabled:U.bool,tag:dt},fue=function(t){t.preventDefault()};function YB(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=lue(e,sue),f=qe(Qe(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=fue),M.createElement(i,nE({},u,{className:f}))}YB.propTypes=cue;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 vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function due(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){pue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 hue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mue(e,t,n){return t&&gD(e.prototype,t),n&&gD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vue(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&&oE(e,t)}function oE(e,t){return oE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},oE(e,t)}function gue(e){var t=bue();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 yue(this,i)}}function yue(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 GB(e)}function GB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bue(){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 _ue=["defaultOpen"],mv=function(e){vue(n,e);var t=gue(n);function n(r){var i;return hue(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(GB(i)),i}return mue(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(dv,iE({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,_ue)))}}]),n}(I.Component);mv.propTypes=due({defaultOpen:U.bool,onToggle:U.func},dv.propTypes);function aE(e){"@babel/helpers - typeof";return aE=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},aE(e)}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 wue(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){xue(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 xue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 Oue(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,r.key,r)}}function Sue(e,t,n){return t&&bD(e.prototype,t),n&&bD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eue(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 Tue(e){var t=kue();return function(){var r=G0(e),i;if(t){var o=G0(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Cue(this,i)}}function Cue(e,t){if(t&&(aE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qB(e)}function qB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kue(){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 G0(e){return G0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},G0(e)}var jue=["defaultOpen"],Jr=function(e){Eue(n,e);var t=Tue(n);function n(r){var i;return Oue(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(qB(i)),i}return Sue(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return M.createElement(hv,sE({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,jue)))}}]),n}(I.Component);Jr.propTypes=wue({defaultOpen:U.bool},hv.propTypes);function KB(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=KB(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ii(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=KB(e))&&(r&&(r+=" "),r+=t);return r}const Pue=e=>({error:"border-danger",default:""})[e],Aue=e=>({error:"text-danger",default:"text-muted"})[e],el=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Ii({"col-md-12":i,"col-md-10 offset-md-1":!i});return y.jsx(Pr,{className:Ii("g-0",e),children:y.jsx("div",{className:o,children:y.jsx(di,{className:Pue(r),body:!0,children:y.jsxs("h3",{className:Ii("text-center mb-0",Aue(r)),children:[n&&y.jsx(Ne,{icon:_7,spin:!0}),n&&y.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},Qt=({title:e,children:t,bodyClassName:n,...r})=>y.jsxs(di,{...r,children:[e&&y.jsx(Sf,{role:"heading","aria-level":4,children:e}),y.jsx(Of,{className:n,children:t})]}),li=({children:e,type:t,className:n,small:r=!1})=>y.jsx(Pr,{className:n,children:y.jsx("div",{className:Ii({"col-md-10 offset-md-1":!r,"col-12":r}),children:y.jsx(Qt,{role:"document",className:Ii("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Ii({"p-2":r}),children:e})})});let Dg;const Nue=new Uint8Array(16);function Mue(){if(!Dg&&(Dg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Dg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Dg(Nue)}const or=[];for(let e=0;e<256;++e)or.push((e+256).toString(16).slice(1));function Rue(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 Due=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_D={randomUUID:Due};function Lue(e,t,n){if(_D.randomUUID&&!t&&!e)return _D.randomUUID();e=e||{};const r=e.random||(e.rng||Mue)();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 Rue(r)}function Iue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fue(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 Uue=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},wD=typeof Symbol<"u"&&Symbol,$ue=Uue,Bue=function(){return typeof wD!="function"||typeof Symbol!="function"||typeof wD("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$ue()},xD={foo:{}},zue=Object,Vue=function(){return{__proto__:xD}.foo===xD.foo&&!({__proto__:null}instanceof zue)},Hue="Function.prototype.bind called on incompatible ",pO=Array.prototype.slice,Wue=Object.prototype.toString,Yue="[object Function]",Gue=function(e){var t=this;if(typeof t!="function"||Wue.call(t)!==Yue)throw new TypeError(Hue+t);for(var n=pO.call(arguments,1),r,i=function(){if(this instanceof r){var u=t.apply(this,n.concat(pO.call(arguments)));return Object(u)===u?u:this}else return t.apply(e,n.concat(pO.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},que=Gue,cj=Function.prototype.bind||que,Kue=cj,Zue=Kue.call(Function.call,Object.prototype.hasOwnProperty),ht,Ef=SyntaxError,ZB=Function,tf=TypeError,hO=function(e){try{return ZB('"use strict"; return ('+e+").constructor;")()}catch{}},du=Object.getOwnPropertyDescriptor;if(du)try{du({},"")}catch{du=null}var mO=function(){throw new tf},Que=du?function(){try{return arguments.callee,mO}catch{try{return du(arguments,"callee").get}catch{return mO}}}():mO,lc=Bue(),Xue=Vue(),Vn=Object.getPrototypeOf||(Xue?function(e){return e.__proto__}:null),_c={},Jue=typeof Uint8Array>"u"||!Vn?ht:Vn(Uint8Array),pu={"%AggregateError%":typeof AggregateError>"u"?ht:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ht:ArrayBuffer,"%ArrayIteratorPrototype%":lc&&Vn?Vn([][Symbol.iterator]()):ht,"%AsyncFromSyncIteratorPrototype%":ht,"%AsyncFunction%":_c,"%AsyncGenerator%":_c,"%AsyncGeneratorFunction%":_c,"%AsyncIteratorPrototype%":_c,"%Atomics%":typeof Atomics>"u"?ht:Atomics,"%BigInt%":typeof BigInt>"u"?ht:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ht:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ht:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ht:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ht:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ht:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ht:FinalizationRegistry,"%Function%":ZB,"%GeneratorFunction%":_c,"%Int8Array%":typeof Int8Array>"u"?ht:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ht:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ht:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":lc&&Vn?Vn(Vn([][Symbol.iterator]())):ht,"%JSON%":typeof JSON=="object"?JSON:ht,"%Map%":typeof Map>"u"?ht:Map,"%MapIteratorPrototype%":typeof Map>"u"||!lc||!Vn?ht:Vn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ht:Promise,"%Proxy%":typeof Proxy>"u"?ht:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ht:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ht:Set,"%SetIteratorPrototype%":typeof Set>"u"||!lc||!Vn?ht:Vn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ht:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":lc&&Vn?Vn(""[Symbol.iterator]()):ht,"%Symbol%":lc?Symbol:ht,"%SyntaxError%":Ef,"%ThrowTypeError%":Que,"%TypedArray%":Jue,"%TypeError%":tf,"%Uint8Array%":typeof Uint8Array>"u"?ht:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ht:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ht:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ht:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ht:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ht:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ht:WeakSet};if(Vn)try{null.error}catch(e){var ece=Vn(Vn(e));pu["%Error.prototype%"]=ece}var tce=function e(t){var n;if(t==="%AsyncFunction%")n=hO("async function () {}");else if(t==="%GeneratorFunction%")n=hO("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=hO("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Vn&&(n=Vn(i.prototype))}return pu[t]=n,n},OD={"%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"]},vv=cj,q0=Zue,nce=vv.call(Function.call,Array.prototype.concat),rce=vv.call(Function.apply,Array.prototype.splice),SD=vv.call(Function.call,String.prototype.replace),K0=vv.call(Function.call,String.prototype.slice),ice=vv.call(Function.call,RegExp.prototype.exec),oce=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ace=/\\(\\)?/g,sce=function(e){var t=K0(e,0,1),n=K0(e,-1);if(t==="%"&&n!=="%")throw new Ef("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Ef("invalid intrinsic syntax, expected opening `%`");var r=[];return SD(e,oce,function(i,o,a,s){r[r.length]=a?SD(s,ace,"$1"):o||i}),r},lce=function(e,t){var n=e,r;if(q0(OD,n)&&(r=OD[n],n="%"+r[0]+"%"),q0(pu,n)){var i=pu[n];if(i===_c&&(i=tce(n)),typeof i>"u"&&!t)throw new tf("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new Ef("intrinsic "+e+" does not exist!")},fj=function(e,t){if(typeof e!="string"||e.length===0)throw new tf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new tf('"allowMissing" argument must be a boolean');if(ice(/^%?[^%]*%?$/,e)===null)throw new Ef("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sce(e),r=n.length>0?n[0]:"",i=lce("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],rce(n,nce([0,1],l)));for(var u=1,f=!0;u<n.length;u+=1){var d=n[u],p=K0(d,0,1),m=K0(d,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new Ef("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),r+="."+d,o="%"+r+"%",q0(pu,o))a=pu[o];else if(a!=null){if(!(d in a)){if(!t)throw new tf("base intrinsic for "+e+" exists, but the property is not available.");return}if(du&&u+1>=n.length){var v=du(a,d);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[d]}else f=q0(a,d),a=a[d];f&&!s&&(pu[o]=a)}}return a},QB={exports:{}};(function(e){var t=cj,n=fj,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})(QB);var uce=QB.exports,XB=fj,JB=uce,cce=JB(XB("String.prototype.indexOf")),fce=function(e,t){var n=XB(e,!!t);return typeof n=="function"&&cce(e,".prototype.")>-1?JB(n):n};const dce={},pce=Object.freeze(Object.defineProperty({__proto__:null,default:dce},Symbol.toStringTag,{value:"Module"})),hce=Fue(pce);var dj=typeof Map=="function"&&Map.prototype,vO=Object.getOwnPropertyDescriptor&&dj?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Z0=dj&&vO&&typeof vO.get=="function"?vO.get:null,ED=dj&&Map.prototype.forEach,pj=typeof Set=="function"&&Set.prototype,gO=Object.getOwnPropertyDescriptor&&pj?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Q0=pj&&gO&&typeof gO.get=="function"?gO.get:null,TD=pj&&Set.prototype.forEach,mce=typeof WeakMap=="function"&&WeakMap.prototype,lh=mce?WeakMap.prototype.has:null,vce=typeof WeakSet=="function"&&WeakSet.prototype,uh=vce?WeakSet.prototype.has:null,gce=typeof WeakRef=="function"&&WeakRef.prototype,CD=gce?WeakRef.prototype.deref:null,yce=Boolean.prototype.valueOf,bce=Object.prototype.toString,_ce=Function.prototype.toString,wce=String.prototype.match,hj=String.prototype.slice,Cs=String.prototype.replace,xce=String.prototype.toUpperCase,kD=String.prototype.toLowerCase,e9=RegExp.prototype.test,jD=Array.prototype.concat,Do=Array.prototype.join,Oce=Array.prototype.slice,PD=Math.floor,uE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yO=Object.getOwnPropertySymbols,cE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",wr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Tf||"symbol")?Symbol.toStringTag:null,t9=Object.prototype.propertyIsEnumerable,AD=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ND(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||e9.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-PD(-e):PD(e);if(r!==e){var i=String(r),o=hj.call(t,i.length+1);return Cs.call(i,n,"$&_")+"."+Cs.call(Cs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Cs.call(t,n,"$&_")}var fE=hce,MD=fE.custom,RD=r9(MD)?MD:null,Sce=function e(t,n,r,i){var o=n||{};if(ys(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ys(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ys(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ys(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ys(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return o9(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?ND(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?ND(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 dE(t)?"[Array]":"[Object]";var d=zce(o,r);if(typeof i>"u")i=[];else if(i9(i,t)>=0)return"[Circular]";function p(Y,H,Q){if(H&&(i=Oce.call(i),i.push(H)),Q){var Z={depth:o.depth};return ys(o,"quoteStyle")&&(Z.quoteStyle=o.quoteStyle),e(Y,Z,r+1,i)}return e(Y,o,r+1,i)}if(typeof t=="function"&&!DD(t)){var m=Mce(t),v=Lg(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+Do.call(v,", ")+" }":"")}if(r9(t)){var g=Tf?Cs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):cE.call(t);return typeof t=="object"&&!Tf?hp(g):g}if(Uce(t)){for(var x="<"+kD.call(String(t.nodeName)),b=t.attributes||[],_=0;_<b.length;_++)x+=" "+b[_].name+"="+n9(Ece(b[_].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+kD.call(String(t.nodeName))+">",x}if(dE(t)){if(t.length===0)return"[]";var w=Lg(t,p);return d&&!Bce(w)?"["+pE(w,d)+"]":"[ "+Do.call(w,", ")+" ]"}if(Cce(t)){var O=Lg(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!t9.call(t,"cause")?"{ ["+String(t)+"] "+Do.call(jD.call("[cause]: "+p(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Do.call(O,", ")+" }"}if(typeof t=="object"&&a){if(RD&&typeof t[RD]=="function"&&fE)return fE(t,{depth:f-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Rce(t)){var E=[];return ED&&ED.call(t,function(Y,H){E.push(p(H,t,!0)+" => "+p(Y,t))}),LD("Map",Z0.call(t),E,d)}if(Ice(t)){var T=[];return TD&&TD.call(t,function(Y){T.push(p(Y,t))}),LD("Set",Q0.call(t),T,d)}if(Dce(t))return bO("WeakMap");if(Fce(t))return bO("WeakSet");if(Lce(t))return bO("WeakRef");if(jce(t))return hp(p(Number(t)));if(Ace(t))return hp(p(uE.call(t)));if(Pce(t))return hp(yce.call(t));if(kce(t))return hp(p(String(t)));if(!Tce(t)&&!DD(t)){var k=Lg(t,p),P=AD?AD(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",N=!P&&wr&&Object(t)===t&&wr in t?hj.call(pl(t),8,-1):D?"Object":"",F=P||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=F+(N||D?"["+Do.call(jD.call([],N||[],D||[]),": ")+"] ":"");return k.length===0?B+"{}":d?B+"{"+pE(k,d)+"}":B+"{ "+Do.call(k,", ")+" }"}return String(t)};function n9(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Ece(e){return Cs.call(String(e),/"/g,""")}function dE(e){return pl(e)==="[object Array]"&&(!wr||!(typeof e=="object"&&wr in e))}function Tce(e){return pl(e)==="[object Date]"&&(!wr||!(typeof e=="object"&&wr in e))}function DD(e){return pl(e)==="[object RegExp]"&&(!wr||!(typeof e=="object"&&wr in e))}function Cce(e){return pl(e)==="[object Error]"&&(!wr||!(typeof e=="object"&&wr in e))}function kce(e){return pl(e)==="[object String]"&&(!wr||!(typeof e=="object"&&wr in e))}function jce(e){return pl(e)==="[object Number]"&&(!wr||!(typeof e=="object"&&wr in e))}function Pce(e){return pl(e)==="[object Boolean]"&&(!wr||!(typeof e=="object"&&wr in e))}function r9(e){if(Tf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!cE)return!1;try{return cE.call(e),!0}catch{}return!1}function Ace(e){if(!e||typeof e!="object"||!uE)return!1;try{return uE.call(e),!0}catch{}return!1}var Nce=Object.prototype.hasOwnProperty||function(e){return e in this};function ys(e,t){return Nce.call(e,t)}function pl(e){return bce.call(e)}function Mce(e){if(e.name)return e.name;var t=wce.call(_ce.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function i9(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 Rce(e){if(!Z0||!e||typeof e!="object")return!1;try{Z0.call(e);try{Q0.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Dce(e){if(!lh||!e||typeof e!="object")return!1;try{lh.call(e,lh);try{uh.call(e,uh)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Lce(e){if(!CD||!e||typeof e!="object")return!1;try{return CD.call(e),!0}catch{}return!1}function Ice(e){if(!Q0||!e||typeof e!="object")return!1;try{Q0.call(e);try{Z0.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Fce(e){if(!uh||!e||typeof e!="object")return!1;try{uh.call(e,uh);try{lh.call(e,lh)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Uce(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function o9(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return o9(hj.call(e,0,t.maxStringLength),t)+r}var i=Cs.call(Cs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$ce);return n9(i,"single",t)}function $ce(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":"")+xce.call(t.toString(16))}function hp(e){return"Object("+e+")"}function bO(e){return e+" { ? }"}function LD(e,t,n,r){var i=r?pE(n,r):Do.call(n,", ");return e+" ("+t+") {"+i+"}"}function Bce(e){for(var t=0;t<e.length;t++)if(i9(e[t],`
|
||
`)>=0)return!1;return!0}function zce(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Do.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Do.call(Array(t+1),n)}}function pE(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+Do.call(e,","+n)+`
|
||
`+t.prev}function Lg(e,t){var n=dE(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=ys(e,i)?t(e[i],e):""}var o=typeof yO=="function"?yO(e):[],a;if(Tf){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)ys(e,l)&&(n&&String(Number(l))===l&&l<e.length||Tf&&a["$"+l]instanceof Symbol||(e9.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof yO=="function")for(var u=0;u<o.length;u++)t9.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var mj=fj,bd=fce,Vce=Sce,Hce=mj("%TypeError%"),Ig=mj("%WeakMap%",!0),Fg=mj("%Map%",!0),Wce=bd("WeakMap.prototype.get",!0),Yce=bd("WeakMap.prototype.set",!0),Gce=bd("WeakMap.prototype.has",!0),qce=bd("Map.prototype.get",!0),Kce=bd("Map.prototype.set",!0),Zce=bd("Map.prototype.has",!0),vj=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},Qce=function(e,t){var n=vj(e,t);return n&&n.value},Xce=function(e,t,n){var r=vj(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Jce=function(e,t){return!!vj(e,t)},efe=function(){var e,t,n,r={assert:function(i){if(!r.has(i))throw new Hce("Side channel does not contain "+Vce(i))},get:function(i){if(Ig&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Wce(e,i)}else if(Fg){if(t)return qce(t,i)}else if(n)return Qce(n,i)},has:function(i){if(Ig&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Gce(e,i)}else if(Fg){if(t)return Zce(t,i)}else if(n)return Jce(n,i);return!1},set:function(i,o){Ig&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Ig),Yce(e,i,o)):Fg?(t||(t=new Fg),Kce(t,i,o)):(n||(n={key:{},next:null}),Xce(n,i,o))}};return r},tfe=String.prototype.replace,nfe=/%20/g,_O={RFC1738:"RFC1738",RFC3986:"RFC3986"},gj={default:_O.RFC3986,formatters:{RFC1738:function(e){return tfe.call(e,nfe,"+")},RFC3986:function(e){return String(e)}},RFC1738:_O.RFC1738,RFC3986:_O.RFC3986},rfe=gj,wO=Object.prototype.hasOwnProperty,Yl=Array.isArray,Ao=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ife=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Yl(n)){for(var r=[],i=0;i<n.length;++i)typeof n[i]<"u"&&r.push(n[i]);t.obj[t.prop]=r}}},a9=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},ofe=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Yl(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!wO.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 Yl(t)&&!Yl(n)&&(i=a9(t,r)),Yl(t)&&Yl(n)?(n.forEach(function(o,a){if(wO.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 wO.call(o,a)?o[a]=e(o[a],s,r):o[a]=s,o},i)},afe=function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=t[r],n},e)},sfe=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}},lfe=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===rfe.RFC1738&&(l===40||l===41)){a+=o.charAt(s);continue}if(l<128){a=a+Ao[l];continue}if(l<2048){a=a+(Ao[192|l>>6]+Ao[128|l&63]);continue}if(l<55296||l>=57344){a=a+(Ao[224|l>>12]+Ao[128|l>>6&63]+Ao[128|l&63]);continue}s+=1,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a+=Ao[240|l>>18]+Ao[128|l>>12&63]+Ao[128|l>>6&63]+Ao[128|l&63]}return a},ufe=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 ife(t),e},cfe=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ffe=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},dfe=function(e,t){return[].concat(e,t)},pfe=function(e,t){if(Yl(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},s9={arrayToObject:a9,assign:afe,combine:dfe,compact:ufe,decode:sfe,encode:lfe,isBuffer:ffe,isRegExp:cfe,maybeMap:pfe,merge:ofe},l9=efe,Ay=s9,ch=gj,hfe=Object.prototype.hasOwnProperty,ID={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},ya=Array.isArray,mfe=Array.prototype.push,u9=function(e,t){mfe.apply(e,ya(t)?t:[t])},vfe=Date.prototype.toISOString,FD=ch.default,vr={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ay.encode,encodeValuesOnly:!1,format:FD,formatter:ch.formatters[FD],indices:!1,serializeDate:function(e){return vfe.call(e)},skipNulls:!1,strictNullHandling:!1},gfe=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},xO={},yfe=function e(t,n,r,i,o,a,s,l,u,f,d,p,m,v,g,x){for(var b=t,_=x,w=0,O=!1;(_=_.get(xO))!==void 0&&!O;){var E=_.get(t);if(w+=1,typeof E<"u"){if(E===w)throw new RangeError("Cyclic object value");O=!0}typeof _.get(xO)>"u"&&(w=0)}if(typeof l=="function"?b=l(n,b):b instanceof Date?b=d(b):r==="comma"&&ya(b)&&(b=Ay.maybeMap(b,function(Z){return Z instanceof Date?d(Z):Z})),b===null){if(o)return s&&!v?s(n,vr.encoder,g,"key",p):n;b=""}if(gfe(b)||Ay.isBuffer(b)){if(s){var T=v?n:s(n,vr.encoder,g,"key",p);return[m(T)+"="+m(s(b,vr.encoder,g,"value",p))]}return[m(n)+"="+m(String(b))]}var k=[];if(typeof b>"u")return k;var P;if(r==="comma"&&ya(b))v&&s&&(b=Ay.maybeMap(b,s)),P=[{value:b.length>0?b.join(",")||null:void 0}];else if(ya(l))P=l;else{var D=Object.keys(b);P=u?D.sort(u):D}for(var N=i&&ya(b)&&b.length===1?n+"[]":n,F=0;F<P.length;++F){var B=P[F],Y=typeof B=="object"&&typeof B.value<"u"?B.value:b[B];if(!(a&&Y===null)){var H=ya(b)?typeof r=="function"?r(N,B):N:N+(f?"."+B:"["+B+"]");x.set(t,w);var Q=l9();Q.set(xO,x),u9(k,e(Y,H,r,i,o,a,r==="comma"&&v&&ya(b)?null:s,l,u,f,d,p,m,v,g,Q))}}return k},bfe=function(e){if(!e)return vr;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||vr.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=ch.default;if(typeof e.format<"u"){if(!hfe.call(ch.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=ch.formatters[n],i=vr.filter;return(typeof e.filter=="function"||ya(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:vr.addQueryPrefix,allowDots:typeof e.allowDots>"u"?vr.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:vr.charsetSentinel,delimiter:typeof e.delimiter>"u"?vr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:vr.encode,encoder:typeof e.encoder=="function"?e.encoder:vr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:vr.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:vr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:vr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:vr.strictNullHandling}},_fe=function(e,t){var n=e,r=bfe(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ya(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s;t&&t.arrayFormat in ID?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=ID[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=l9(),d=0;d<i.length;++d){var p=i[d];r.skipNulls&&n[p]===null||u9(a,yfe(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:""},Cf=s9,hE=Object.prototype.hasOwnProperty,wfe=Array.isArray,Bn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Cf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},xfe=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},c9=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ofe="utf8=%26%2310003%3B",Sfe="utf8=%E2%9C%93",Efe=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]===Sfe?l="utf-8":o[s]===Ofe&&(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,Bn.decoder,l,"key"),m=t.strictNullHandling?null:""):(p=t.decoder(u.slice(0,d),Bn.decoder,l,"key"),m=Cf.maybeMap(c9(u.slice(d+1),t),function(v){return t.decoder(v,Bn.decoder,l,"value")})),m&&t.interpretNumericEntities&&l==="iso-8859-1"&&(m=xfe(m)),u.indexOf("[]=")>-1&&(m=wfe(m)?[m]:m),hE.call(n,p)?n[p]=Cf.combine(n[p],m):n[p]=m}return n},Tfe=function(e,t,n,r){for(var i=r?t:c9(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},Cfe=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&o.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&hE.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(s=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&hE.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),Tfe(u,t,n,r)}},kfe=function(e){if(!e)return Bn;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"?Bn.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Bn.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Bn.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Bn.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Bn.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Bn.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Bn.comma,decoder:typeof e.decoder=="function"?e.decoder:Bn.decoder,delimiter:typeof e.delimiter=="string"||Cf.isRegExp(e.delimiter)?e.delimiter:Bn.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Bn.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Bn.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Bn.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Bn.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Bn.strictNullHandling}},jfe=function(e,t){var n=kfe(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Efe(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=Cfe(s,r[s],n,typeof e=="string");i=Cf.merge(i,l,n)}return n.allowSparse===!0?i:Cf.compact(i)},Pfe=_fe,Afe=jfe,Nfe=gj,Mfe={formats:Nfe,parse:Afe,stringify:Pfe};const f9=Iue(Mfe),yj=e=>f9.parse(e,{ignoreQueryPrefix:!0}),rw=e=>f9.stringify(e,{arrayFormat:"brackets"}),Cn=(e=!1)=>{const[t,n]=I.useState(e),r=I.useCallback(()=>n(a=>!a),[]),i=I.useCallback(()=>n(!0),[]),o=I.useCallback(()=>n(!1),[]);return[t,r,i,o]},d9=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=I.useState(e),a=I.useRef(e),s=I.useRef(),l=I.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,l]},iw=()=>{const{current:e}=I.useRef(`dom-${Lue()}`);return e},hl=()=>I.useRef(null),_d=()=>{const{search:e}=xr();return I.useMemo(()=>yj(e),[e])},p9=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=iw(),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 y.jsxs("span",{className:Ii("form-check",l,n),style:u,children:[y.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),y.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},h9=e=>y.jsx(p9,{type:"checkbox",...e}),ku=e=>y.jsx(p9,{type:"switch",...e}),wd=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>y.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[y.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),Ny=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=iw();return y.jsx(wd,{label:y.jsxs(y.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:l,children:y.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:u=>n(u.target.value)})})},Rfe=500;let My;const UD=()=>{My&&clearTimeout(My),My=null},gv=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=I.useState(i),l=(u,f=Rfe)=>{s(u),UD(),My=o(()=>{e(u),UD()},f)};return y.jsxs("div",{className:Ii("search-field",t),children:[y.jsx("input",{type:"text",className:Ii("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)}),y.jsx(Ne,{icon:$ee,className:"search-field__icon"}),y.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},Qa=({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]=Cn(),m=Ii("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),v={minWidth:s&&`${s}px`};return y.jsxs(dv,{isOpen:d,toggle:p,disabled:t,className:i,children:[y.jsx(gd,{size:u,caret:!o,className:m,color:"primary",...f,children:e}),y.jsx(vd,{className:"w-100",end:a,style:v,children:r})]})},ow=({children:e,minWidth:t,label:n="Options"})=>y.jsx(Qa,{text:y.jsx(Ne,{className:"px-1",icon:Aee}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),fh=({children:e,...t})=>y.jsx(Kk,{children:y.jsx(hB,{className:"nav-pills__nav-link",tag:o7,...t,children:e})}),m9=({children:e,fill:t=!1,className:n=""})=>y.jsx(di,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:y.jsx(qk,{pills:!0,fill:t,children:I.Children.map(e,r=>{if(!I.isValidElement(r)||r.type!==fh)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),aw=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",v9=(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}),Dfe=e=>e.dir?`${e.field}-${e.dir}`:void 0,Lfe=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function yv({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=aw(s,t.field,t.dir);n(l?s:void 0,l)};return y.jsxs(mv,{children:[y.jsxs(gd,{caret:!0,color:r?"primary":"link",className:Ii({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&y.jsx(y.Fragment,{children:"Order by"}),r&&!t.field&&y.jsx("i",{children:"Order by..."}),r&&t.field&&y.jsxs(y.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",y.jsx("small",{children:t.dir??"DESC"})]})]}),y.jsxs(vd,{end:i,className:Ii("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>y.jsxs(Re,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&y.jsx(Ne,{icon:t.dir==="ASC"?Dee:_ee,className:"ordering-dropdown__sort-icon"})]},s)),y.jsx(Re,{divider:!0}),y.jsx(Re,{disabled:!t.field,onClick:()=>n(),children:y.jsx("i",{children:"Clear selection"})})]})]})}const rm="#4696e5",Ife="rgba(70, 150, 229, 0.4)",mE="#f77f28",Ffe="rgba(247, 127, 40, 0.4)",Ufe="white",$fe="#161b22",Bfe=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"},_j=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light";function g9(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=g9(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xd(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=g9(e))&&(r&&(r+=" "),r+=t);return r}const zfe=I.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=Cn(),a=I.useCallback(()=>{o(),n()},[n,o]);return y.jsxs(WB,{className:"app-update-banner",isOpen:e,toggle:t,tag:Qt,color:"secondary",innerRef:r,children:[y.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),y.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",y.jsxs(_t,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&y.jsxs(y.Fragment,{children:["Restart now ",y.jsx(Ne,{icon:Wee,className:"ms-1"})]}),i&&y.jsx(y.Fragment,{children:"Restarting..."})]})]})]})}),y9=({to:e="/",children:t="Home"})=>y.jsx("div",{className:"home",children:y.jsxs(Qt,{className:"p-4",children:[y.jsx("h2",{children:"Oops! We could not find requested route."}),y.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),y.jsx("br",{}),y.jsx($t,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Ki(e){return I.useRef(e).current}function Zi(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const Vfe=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"})})},b9=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var x;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:l,EditServer:u,Settings:f,ManageServers:d,ShlinkVersionsContainer:p}=Ki(b9),m=xr(),v=I.useRef(t),g=m.pathname==="/";return I.useEffect(()=>{Object.keys(v.current).length===0&&e()},[e]),I.useEffect(()=>{var b;Bfe(((b=n.ui)==null?void 0:b.theme)??_j())},[(x=n.ui)==null?void 0:x.theme]),y.jsxs("div",{className:"container-fluid app-container",children:[y.jsx(o,{}),y.jsxs("div",{className:"app",children:[y.jsx("div",{className:xd("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:y.jsxs(Y_,{children:[y.jsx(yt,{index:!0,element:y.jsx(a,{})}),y.jsx(yt,{path:"/settings/*",element:y.jsx(f,{})}),y.jsx(yt,{path:"/manage-servers",element:y.jsx(d,{})}),y.jsx(yt,{path:"/server/create",element:y.jsx(l,{})}),y.jsx(yt,{path:"/server/:serverId/edit",element:y.jsx(u,{})}),y.jsx(yt,{path:"/server/:serverId/*",element:y.jsx(s,{})}),y.jsx(yt,{path:"*",element:y.jsx(y9,{})})]})}),y.jsx("div",{className:"shlink-footer",children:y.jsx(p,{})})]}),y.jsx(zfe,{isOpen:r,toggle:i,forceUpdate:Vfe})]})},Hfe=Zi(b9,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function sr(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 Wfe=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),$D=Wfe,OO=()=>Math.random().toString(36).substring(7).split("").join("."),Yfe={INIT:`@@redux/INIT${OO()}`,REPLACE:`@@redux/REPLACE${OO()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${OO()}`},X0=Yfe;function wj(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _9(e,t,n){if(typeof e!="function")throw new Error(sr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(sr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(sr(1));return n(_9)(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((x,b)=>{a.set(b,x)}))}function f(){if(l)throw new Error(sr(3));return i}function d(x){if(typeof x!="function")throw new Error(sr(4));if(l)throw new Error(sr(5));let b=!0;u();const _=s++;return a.set(_,x),function(){if(b){if(l)throw new Error(sr(6));b=!1,u(),a.delete(_),o=null}}}function p(x){if(!wj(x))throw new Error(sr(7));if(typeof x.type>"u")throw new Error(sr(8));if(typeof x.type!="string")throw new Error(sr(17));if(l)throw new Error(sr(9));try{l=!0,i=r(i,x)}finally{l=!1}return(o=a).forEach(_=>{_()}),x}function m(x){if(typeof x!="function")throw new Error(sr(10));r=x,p({type:X0.REPLACE})}function v(){const x=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(sr(11));function _(){const O=b;O.next&&O.next(f())}return _(),{unsubscribe:x(_)}},[$D](){return this}}}return p({type:X0.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:m,[$D]:v}}function Gfe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:X0.INIT})>"u")throw new Error(sr(12));if(typeof n(void 0,{type:X0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(sr(13))})}function xj(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{Gfe(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(sr(14));u[d]=v,l=l||v!==m}return l=l||r.length!==Object.keys(a).length,l?u:a}}function J0(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function qfe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(sr(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=J0(...s)(i.dispatch),{...i,dispatch:o}}}function Kfe(e){return wj(e)&&"type"in e&&typeof e.type=="string"}var w9=Symbol.for("immer-nothing"),BD=Symbol.for("immer-draftable"),pi=Symbol.for("immer-state");function fo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kf=Object.getPrototypeOf;function tl(e){return!!e&&!!e[pi]}function Fa(e){var t;return e?x9(e)||Array.isArray(e)||!!e[BD]||!!((t=e.constructor)!=null&&t[BD])||lw(e)||uw(e):!1}var Zfe=Object.prototype.constructor.toString();function x9(e){if(!e||typeof e!="object")return!1;const t=kf(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Zfe}function im(e,t){sw(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function sw(e){const t=e[pi];return t?t.type_:Array.isArray(e)?1:lw(e)?2:uw(e)?3:0}function vE(e,t){return sw(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function O9(e,t,n){const r=sw(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Qfe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function lw(e){return e instanceof Map}function uw(e){return e instanceof Set}function Ul(e){return e.copy_||e.base_}function gE(e,t){if(lw(e))return new Map(e);if(uw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&x9(e))return kf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[pi];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(kf(e),n)}function Oj(e,t=!1){return cw(e)||tl(e)||!Fa(e)||(sw(e)>1&&(e.set=e.add=e.clear=e.delete=Xfe),Object.freeze(e),t&&im(e,(n,r)=>Oj(r,!0))),e}function Xfe(){fo(2)}function cw(e){return Object.isFrozen(e)}var Jfe={};function ju(e){const t=Jfe[e];return t||fo(0,e),t}var om;function S9(){return om}function ede(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function zD(e,t){t&&(ju("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yE(e){bE(e),e.drafts_.forEach(tde),e.drafts_=null}function bE(e){e===om&&(om=e.parent_)}function VD(e){return om=ede(om,e)}function tde(e){const t=e[pi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function HD(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[pi].modified_&&(yE(t),fo(4)),Fa(e)&&(e=eb(t,e),t.parent_||tb(t,e)),t.patches_&&ju("Patches").generateReplacementPatches_(n[pi].base_,e,t.patches_,t.inversePatches_)):e=eb(t,n,[]),yE(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==w9?e:void 0}function eb(e,t,n){if(cw(t))return t;const r=t[pi];if(!r)return im(t,(i,o)=>WD(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return tb(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),im(o,(s,l)=>WD(e,r,i,s,l,n,a)),tb(e,i,!1),n&&e.patches_&&ju("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function WD(e,t,n,r,i,o,a){if(tl(i)){const s=o&&t&&t.type_!==3&&!vE(t.assigned_,r)?o.concat(r):void 0,l=eb(e,i,s);if(O9(n,r,l),tl(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Fa(i)&&!cw(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;eb(e,i),(!t||!t.scope_.parent_)&&tb(e,i)}}function tb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Oj(t,n)}function nde(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:S9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Sj;n&&(i=[r],o=am);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var Sj={get(e,t){if(t===pi)return e;const n=Ul(e);if(!vE(n,t))return rde(e,n,t);const r=n[t];return e.finalized_||!Fa(r)?r:r===SO(e.base_,t)?(EO(e),e.copy_[t]=wE(r,e)):r},has(e,t){return t in Ul(e)},ownKeys(e){return Reflect.ownKeys(Ul(e))},set(e,t,n){const r=E9(Ul(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=SO(Ul(e),t),o=i==null?void 0:i[pi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Qfe(n,i)&&(n!==void 0||vE(e.base_,t)))return!0;EO(e),_E(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 SO(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,EO(e),_E(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ul(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){fo(11)},getPrototypeOf(e){return kf(e.base_)},setPrototypeOf(){fo(12)}},am={};im(Sj,(e,t)=>{am[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});am.deleteProperty=function(e,t){return am.set.call(this,e,t,void 0)};am.set=function(e,t,n){return Sj.set.call(this,e[0],t,n,e[0])};function SO(e,t){const n=e[pi];return(n?Ul(n):e)[t]}function rde(e,t,n){var i;const r=E9(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function E9(e,t){if(!(t in e))return;let n=kf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=kf(n)}}function _E(e){e.modified_||(e.modified_=!0,e.parent_&&_E(e.parent_))}function EO(e){e.copy_||(e.copy_=gE(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ide=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"&&fo(6),r!==void 0&&typeof r!="function"&&fo(7);let i;if(Fa(t)){const o=VD(this),a=wE(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?yE(o):bE(o)}return zD(o,r),HD(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===w9&&(i=void 0),this.autoFreeze_&&Oj(i,!0),r){const o=[],a=[];ju("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else fo(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){Fa(e)||fo(8),tl(e)&&(e=T9(e));const t=VD(this),n=wE(e,void 0);return n[pi].isManual_=!0,bE(t),n}finishDraft(e,t){const n=e&&e[pi];(!n||!n.isManual_)&&fo(9);const{scope_:r}=n;return zD(r,t),HD(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=ju("Patches").applyPatches_;return tl(e)?r(e,t):this.produce(e,i=>r(i,t))}};function wE(e,t){const n=lw(e)?ju("MapSet").proxyMap_(e,t):uw(e)?ju("MapSet").proxySet_(e,t):nde(e,t);return(t?t.scope_:S9()).drafts_.push(n),n}function T9(e){return tl(e)||fo(10,e),C9(e)}function C9(e){if(!Fa(e)||cw(e))return e;const t=e[pi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=gE(e,t.scope_.immer_.useStrictShallowCopy_)}else n=gE(e,!0);return im(n,(r,i)=>{O9(n,r,C9(i))}),t&&(t.finalized_=!1),n}var hi=new ide,k9=hi.produce;hi.produceWithPatches.bind(hi);hi.setAutoFreeze.bind(hi);hi.setUseStrictShallowCopy.bind(hi);hi.applyPatches.bind(hi);hi.createDraft.bind(hi);hi.finishDraft.bind(hi);function ode(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ade(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 YD=e=>Array.isArray(e)?e:[e];function sde(e){const t=Array.isArray(e[0])?e[0]:e;return ade(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function lde(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var ude=class{constructor(e){this.value=e}deref(){return this.value}},cde=typeof WeakRef<"u"?WeakRef:ude,fde=0,GD=1;function Ug(){return{s:fde,v:void 0,o:null,p:null}}function j9(e,t={}){let n=Ug();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=Ug(),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=Ug(),v.set(m,s)):s=g}}const u=s;let f;if(s.s===GD?f=s.v:(f=e.apply(null,arguments),o++),u.s=GD,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 cde(f):f}return u.v=f,f}return a.clearCache=()=>{n=Ug(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function dde(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()),ode(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const f={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:m=j9,argsMemoizeOptions:v=[],devModeChecks:g={}}=f,x=YD(p),b=YD(v),_=sde(i),w=d(function(){return o++,u.apply(null,arguments)},...x),O=m(function(){a++;const T=lde(_,arguments);return s=w.apply(null,T),s},...b);return Object.assign(O,{resultFunc:u,memoizedResultFunc:w,dependencies:_,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:m})}}function P9(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var pde=P9(),hde=P9,mde=(...e)=>{const t=dde(...e),n=Object.assign((...r)=>{const i=t(...r),o=(a,...s)=>i(tl(a)?T9(a):a,...s);return Object.assign(o,i),o},{withTypes:()=>n});return n};mde(j9);var vde=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?J0:J0.apply(null,arguments)},gde=e=>e&&typeof e.match=="function";function Mn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Zr(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=>Kfe(r)&&r.type===e,n}var A9=class $p extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,$p.prototype)}static get[Symbol.species](){return $p}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new $p(...t[0].concat(this)):new $p(...t.concat(this))}};function qD(e){return Fa(e)?k9(e,()=>{}):e}function KD(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(Zr(10));const r=n.insert(t,e);return e.set(t,r),r}function yde(e){return typeof e=="boolean"}var bde=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new A9;return n&&(yde(n)?a.push(pde):a.push(hde(n.extraArgument))),a},_de="RTK_autoBatch",N9=e=>t=>{setTimeout(t,e)},wde=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:N9(10),xde=(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"?wde:e.type==="callback"?e.queueNotification:N9(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[_de]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(f)}finally{i=!0}}})},Ode=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new A9(e);return r&&i.push(xde(typeof r=="object"?r:void 0)),i},Sde=!0;function M9(e){const t=bde(),{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(wj(n))s=xj(n);else throw new Error(Zr(1));let l;typeof r=="function"?l=r(t):l=t();let u=J0;i&&(u=vde({trace:!Sde,...typeof i=="object"&&i}));const f=qfe(...l),d=Ode(f);let p=typeof a=="function"?a(d):d();const m=u(...p);return _9(s,o,m)}function R9(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(Zr(28));if(s in t)throw new Error(Zr(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 Ede(e){return typeof e=="function"}function Tde(e,t){let[n,r,i]=R9(t),o;if(Ede(e))o=()=>qD(e());else{const s=qD(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(tl(f)){const m=d(f,l);return m===void 0?f:m}else{if(Fa(f))return k9(f,p=>d(p,l));{const p=d(f,l);if(p===void 0){if(f===null)return f;throw new Error(Zr(9))}return p}}return f},s)}return a.getInitialState=o,a}var Cde="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",D9=(e=21)=>{let t="",n=e;for(;n--;)t+=Cde[Math.random()*64|0];return t},kde=(e,t)=>gde(e)?e.match(t):e(t);function jde(...e){return t=>e.some(n=>kde(n,t))}var Pde=["name","message","stack","code"],TO=class{constructor(e,t){nc(this,"_type");this.payload=e,this.meta=t}},ZD=class{constructor(e,t){nc(this,"_type");this.payload=e,this.meta=t}},Ade=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Pde)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},L9=(()=>{function e(t,n,r){const i=Mn(t+"/fulfilled",(l,u,f,d)=>({payload:l,meta:{...d||{},arg:f,requestId:u,requestStatus:"fulfilled"}})),o=Mn(t+"/pending",(l,u,f)=>({payload:void 0,meta:{...f||{},arg:u,requestId:l,requestStatus:"pending"}})),a=Mn(t+"/rejected",(l,u,f,d,p)=>({payload:d,error:(r&&r.serializeError||Ade)(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):D9(),m=new AbortController;let v,g;function x(_){g=_,m.abort()}const b=async function(){var O,E;let _;try{let T=(O=r==null?void 0:r.condition)==null?void 0:O.call(r,l,{getState:f,extra:d});if(Mde(T)&&(T=await T),T===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const k=new Promise((P,D)=>{v=()=>{D({name:"AbortError",message:g||"Aborted"})},m.signal.addEventListener("abort",v)});u(o(p,l,(E=r==null?void 0:r.getPendingMeta)==null?void 0:E.call(r,{requestId:p,arg:l},{getState:f,extra:d}))),_=await Promise.race([k,Promise.resolve(n(l,{dispatch:u,getState:f,extra:d,requestId:p,signal:m.signal,abort:x,rejectWithValue:(P,D)=>new TO(P,D),fulfillWithValue:(P,D)=>new ZD(P,D)})).then(P=>{if(P instanceof TO)throw P;return P instanceof ZD?i(P.payload,p,l,P.meta):i(P,p,l)})])}catch(T){_=T instanceof TO?a(null,p,l,T.payload,T.meta):a(T,p,l)}finally{v&&m.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&a.match(_)&&_.meta.condition||u(_),_}();return Object.assign(b,{abort:x,requestId:p,arg:l,unwrap(){return b.then(Nde)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:jde(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Nde(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Mde(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Rde=Symbol.for("rtk-slice-createasyncthunk");function Dde(e,t){return`${e}/${t}`}function Lde({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Rde];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Zr(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Fde()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(w,O){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(Zr(12));if(E in u.sliceCaseReducersByType)throw new Error(Zr(13));return u.sliceCaseReducersByType[E]=O,f},addMatcher(w,O){return u.sliceMatchers.push({matcher:w,reducer:O}),f},exposeAction(w,O){return u.actionCreators[w]=O,f},exposeCaseReducer(w,O){return u.sliceCaseReducersByName[w]=O,f}};l.forEach(w=>{const O=s[w],E={reducerName:w,type:Dde(o,w),createNotation:typeof i.reducers=="function"};$de(O)?zde(E,O,f,t):Ude(E,O,f)});function d(){const[w={},O=[],E=void 0]=typeof i.extraReducers=="function"?R9(i.extraReducers):[i.extraReducers],T={...w,...u.sliceCaseReducersByType};return Tde(i.initialState,k=>{for(let P in T)k.addCase(P,T[P]);for(let P of u.sliceMatchers)k.addMatcher(P.matcher,P.reducer);for(let P of O)k.addMatcher(P.matcher,P.reducer);E&&k.addDefaultCase(E)})}const p=w=>w,m=new Map;let v;function g(w,O){return v||(v=d()),v(w,O)}function x(){return v||(v=d()),v.getInitialState()}function b(w,O=!1){function E(k){let P=k[w];return typeof P>"u"&&O&&(P=x()),P}function T(k=p){const P=KD(m,O,{insert:()=>new WeakMap});return KD(P,k,{insert:()=>{const D={};for(const[N,F]of Object.entries(i.selectors??{}))D[N]=Ide(F,k,x,O);return D}})}return{reducerPath:w,getSelectors:T,get selectors(){return T(E)},selectSlice:E}}const _={name:o,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...b(a),injectInto(w,{reducerPath:O,...E}={}){const T=O??a;return w.inject({reducerPath:T,reducer:g},E),{..._,...b(T,!0)}}};return _}}function Ide(e,t,n,r){function i(o,...a){let s=t(o);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}var Dn=Lde();function Fde(){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 Ude({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!Bde(r))throw new Error(Zr(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Mn(e,a):Mn(e))}function $de(e){return e._reducerDefinitionType==="asyncThunk"}function Bde(e){return e._reducerDefinitionType==="reducerWithPrepare"}function zde({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Zr(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||$g,pending:s||$g,rejected:l||$g,settled:u||$g})}function $g(){}var Vde=(e,t)=>{if(typeof e!="function")throw new Error(Zr(32))},Ej="listenerMiddleware",Hde=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=Mn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Zr(21));return Vde(o),{predicate:i,type:t,effect:o}},Wde=Object.assign(e=>{const{type:t,predicate:n,effect:r}=Hde(e);return{id:D9(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Zr(22))}}},{withTypes:()=>Wde}),Yde=Object.assign(Mn(`${Ej}/add`),{withTypes:()=>Yde});Mn(`${Ej}/removeAll`);var Gde=Object.assign(Mn(`${Ej}/remove`),{withTypes:()=>Gde});function Zr(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:qde,reducer:Kde}=Dn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Zde,resetAppUpdate:Qde}=qde,Xde=Kde,Jde=(e,t)=>{e.factory("App",Hfe),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Zde),e.serviceFactory("resetAppUpdate",()=>Qde)},QD={"Content-Type":"application/json"},XD=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...QD}}:{headers:QD}:e;class epe{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,XD(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,XD(n)).then(async r=>{if(!r.ok)throw await r.json()})}}var Tj=(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))(Tj||{}),Cj=(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))(Cj||{}),tpe={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"]},npe=tpe,rpe={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"]},ipe=rpe,ope={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"]},I9={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"]},ape={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"]},spe={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"]},lpe=Object.defineProperty,upe=(e,t,n)=>t in e?lpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zs=(e,t,n)=>(upe(e,typeof t!="symbol"?t+"":t,n),n),_o,ta=".",F9="function",U9="string",$9="__global__",kj="Provider",cpe=0,jj=Array.prototype.slice,fpe=function(e,t){var n=e[t];if(n===void 0&&_o.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},fw=function(e){var t;return this.nested[e]||(t=_o.pop(),this.nested[e]=t,this.factory(e,function(){return t.container})),this.nested[e]},B9=function(e){return e.split(ta).reduce(fpe,this)},dpe=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]},ppe=function(e,t){var n,r;return typeof e===F9&&(t=e,e=$9),n=e.split(ta),r=n.shift(),n.length?fw.call(this,r).middleware(n.join(ta),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},hpe=function(e,t){return t(e)},JD=function(e,t){return(e[t]||[]).concat(e.__global__||[])},mpe=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+kj,r=Object.create(null),r[n]={configurable:!0,enumerable:!0,get:function(){var s=new t;return delete i[n],i[n]=s,s}},r[e]={configurable:!0,enumerable:!0,get:function(){var s=i[n],l;return s&&(l=JD(o,e).reduce(hpe,s.$get(i)),delete i[n],delete i[e]),l===void 0?l:dpe(JD(a,e),e,l,i)}},Object.defineProperties(i,r),this},z9=function(e,t){var n,r;return n=e.split(ta),this.providerMap[e]&&n.length===1&&!this.container[e+kj]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(fw.call(this,r).provider(n.join(ta),t),this):mpe.call(this,r,t))},Pj=function(e,t){return z9.call(this,e,function(){this.$get=t})},V9=function(e,t,n){var r=arguments.length>3?jj.call(arguments,3):[],i=this;return Pj.call(this,e,function(){var o=t,a=r.map(B9,i.container);return n?new(t.bind.apply(t,[null].concat(a))):o.apply(null,a)})},vpe=function(e,t){return V9.apply(this,[e,t,!0].concat(jj.call(arguments,2)))},gpe=function(e,t){return V9.apply(this,[e,t,!1].concat(jj.call(arguments,2)))},H9=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},W9=function(e,t){var n=e[t];return n||(n={},H9.call(e,t,n)),n},ype=function(e,t){var n;return n=e.split(ta),e=n.pop(),H9.call(n.reduce(W9,this.container),e,t),this},bpe=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},_pe=function(e,t){var n=e.split(ta);return e=n.pop(),bpe.call(n.reduce(W9,this.container),e,t),this},Y9=function(e,t){var n,r;return typeof e===F9&&(t=e,e=$9),n=e.split(ta),r=n.shift(),n.length?fw.call(this,r).decorator(n.join(ta),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},wpe=function(e){return this.deferred.push(e),this},xpe=function(e){return(e||[]).map(B9,this.container)},Ope=function(e,t){return Pj.call(this,e,function(n){return{instance:t.bind(t,n)}})},Spe=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},Aj=function(e){return Object.keys(e||this.container||{}).filter(Spe)},nb={},Epe=function(e){var t;return typeof e===U9?(t=nb[e],t||(nb[e]=t=new _o,t.constant("BOTTLE_NAME",e)),t):new _o},Tpe=function(e){typeof e===U9?delete nb[e]:nb={}},G9=function(e){var t=e.$value===void 0?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},eL=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+kj]},Cpe=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(ta);i.length>1&&i.forEach(eL,fw.call(this,i[0])),eL.call(this,r),this.provider(r,t[r])}},this)},kpe=function(e){return this.deferred.forEach(function(t){t(e)}),this};_o=function e(t){if(!(this instanceof e))return e.pop(t);this.id=cpe++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:Y9.bind(this),$register:G9.bind(this),$list:Aj.bind(this)}};_o.prototype={constant:_pe,decorator:Y9,defer:wpe,digest:xpe,factory:Pj,instanceFactory:Ope,list:Aj,middleware:ppe,provider:z9,resetProviders:Cpe,register:G9,resolve:kpe,service:vpe,serviceFactory:gpe,value:ype};_o.pop=Epe;_o.clear=Tpe;_o.list=Aj;_o.config={strict:!1};const jpe=_o,Ppe=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,a]=Cn(),{domains:s}=n,l=!t,u=I.useCallback(()=>{r(""),a()},[r,a]),f=I.useCallback(()=>{r(""),o()},[r,o]);return I.useEffect(()=>{e()},[e]),i?y.jsxs(nw,{children:[y.jsx(Cu,{value:t??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),y.jsx(_t,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:u,children:y.jsx(Ne,{icon:kee})}),y.jsx(Jr,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):y.jsxs(Qa,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:d,isDefault:p})=>y.jsxs(Re,{active:(t===d||p)&&l,onClick:()=>r(d),children:[d,p&&y.jsx("span",{className:"float-end text-muted",children:"default"})]},d)),y.jsx(Re,{divider:!0}),y.jsx(Re,{onClick:f,children:y.jsx("i",{children:"New domain"})})]})},Ape=e=>(e==null?void 0:e.type)===Tj.INVALID_ARGUMENT||(e==null?void 0:e.type)===Cj.INVALID_ARGUMENT,Npe=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===Tj.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===Cj.INVALID_SHORT_URL_DELETION,Mpe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Qi=e=>Mpe(e)?e:void 0,Ua=({errorData:e,fallbackMessage:t})=>y.jsxs(y.Fragment,{children:[(e==null?void 0:e.detail)??t,Ape(e)&&y.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]});function q9(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=q9(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function We(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=q9(e))&&(r&&(r+=" "),r+=t);return r}const jf=({style:e,className:t,...n})=>y.jsx("button",{type:"button",className:We("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),K9=I.createContext(""),Rpe=K9.Provider,ml=()=>I.useContext(K9),Z9=I.createContext(void 0),{Provider:Nj}=Z9,dw=()=>I.useContext(Z9),Dpe=5,Mj=()=>{const[e,t]=I.useState([]),n=I.useMemo(()=>e.length>=Dpe,[e.length]),r=I.useCallback(s=>!n&&t(l=>[...l,s]),[n]),i=I.useCallback(s=>!n&&e.every(l=>l.name!==s),[e,n]),o=I.useCallback(s=>t(l=>l.filter(u=>u!==s)),[]),a=I.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},Rj=({className:e,type:t})=>{const n=ml(),r=dw(),i=I.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(l=>l.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return y.jsx("div",{className:We("top-sticky",e),children:y.jsxs(Qt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[y.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((l,u)=>{var f;return y.jsxs("li",{className:We("badge pe-1",{"bg-secondary":!((f=l.style)!=null&&f.backgroundColor)}),style:l.style,children:[l.name,y.jsx(jf,{"aria-label":`Remove ${l.name}`,className:"fw-bold fs-6",onClick:()=>s(l),children:"×"})]},`${l.name}_${u}`)})}),y.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[y.jsxs(_t,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:$t,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[y.jsx(Ne,{icon:q_,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),y.jsx(_t,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},Lpe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,tL=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Lpe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},nL=e=>e==="*"||e==="x"||e==="X",rL=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Ipe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Fpe=(e,t)=>{if(nL(e)||nL(t))return 0;const[n,r]=Ipe(rL(e),rL(t));return n>r?1:n<r?-1:0},iL=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=Fpe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},Upe=(e,t)=>{const n=tL(e),r=tL(t),i=n.pop(),o=r.pop(),a=iL(n,r);return a!==0?a:i&&o?iL(i.split("."),o.split(".")):i||o?i?-1:1:0},oL=(e,t,n)=>{$pe(n);const r=Upe(e,t);return Q9[n].includes(r)},Q9={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},aL=Object.keys(Q9),$pe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(aL.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${aL.join("|")}`)},Bpe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||oL(e,n,">=");return(!t||oL(e,t,"<="))&&r},X9={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(X9);const uc=(e,t)=>t==="latest"||Bpe(t,{minVersion:X9[e]}),J9=e=>({domainVisits:uc("domainVisits",e),excludeBotsOnShortUrls:uc("excludeBotsOnShortUrls",e),filterDisabledUrls:uc("filterDisabledUrls",e),deviceLongUrls:uc("deviceLongUrls",e),shortUrlVisitsDeletion:uc("shortUrlVisitsDeletion",e),orphanVisitsDeletion:uc("orphanVisitsDeletion",e)}),ez=I.createContext(J9("0.0.0")),zpe=ez.Provider,Vpe=e=>I.useMemo(()=>J9(e),[e]),$u=e=>I.useContext(ez)[e],tz=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),Hpe=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),CO=e=>Object.prototype.toString.call(e)==="[object Object]",nz=(e,t)=>{const n={...e};return!CO(e)||!CO(t)||Object.keys(t).forEach(r=>{CO(t[r])?n[r]=r in e&&e[r]!==void 0?nz(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},Dj=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Wpe=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),nf=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},sL=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),dh=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Ype=(e,t)=>!e.domain&&t===hw?!0:e.domain===t,Gpe=(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}},rz=e=>e.replaceAll("/","__"),Lj=e=>e.replaceAll("__","/"),Ij=({domain:e,shortCode:t})=>`${e??hw}__${rz(t)}`,iz=e=>{const[t,n]=e.split(/__(.+)/);if(!n)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===hw?null:t,shortCode:Lj(n)}};function Je(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function wo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Fj(e,t){const n=Je(e);return isNaN(t)?wo(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function qpe(e,t){const n=Je(e);if(isNaN(t))return wo(e,NaN);if(!t)return n;const r=n.getDate(),i=wo(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const o=i.getDate();return r>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function Kpe(e,t){const{years:n=0,months:r=0,weeks:i=0,days:o=0,hours:a=0,minutes:s=0,seconds:l=0}=t,u=Je(e),f=r||n?qpe(u,r+n*12):u,d=o||i?Fj(f,o+i*7):f,p=s+a*60,m=(l+p*60)*1e3;return wo(e,d.getTime()+m)}const oz=6048e5,Zpe=864e5,az=6e4,Uj=36e5,Bg=43200,lL=1440;let Qpe={};function Od(){return Qpe}function sm(e,t){var n,r,i,o;const a=Od(),s=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??a.weekStartsOn??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,l=Je(e),u=l.getDay(),f=(u<s?7:0)+u-s;return l.setDate(l.getDate()-f),l.setHours(0,0,0,0),l}function lm(e){return sm(e,{weekStartsOn:1})}function sz(e){const t=Je(e),n=t.getFullYear(),r=wo(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=lm(r),o=wo(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=lm(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Pu(e){const t=Je(e);return t.setHours(0,0,0,0),t}function rb(e){const t=Je(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function lz(e,t){const n=Pu(e),r=Pu(t),i=+n-rb(n),o=+r-rb(r);return Math.round((i-o)/Zpe)}function Xpe(e){const t=sz(e),n=wo(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),lm(n)}function uz(e){let t;return e.forEach(function(n){const r=Je(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function Jpe(e){let t;return e.forEach(n=>{const r=Je(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function Ry(e,t){const n=Je(e),r=Je(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function ehe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function the(e){if(!ehe(e)&&typeof e!="number")return!1;const t=Je(e);return!isNaN(Number(t))}function nhe(e,t){const n=Je(e),r=Je(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function bv(e,t){const n=Je(e),r=Je(t),i=uL(n,r),o=Math.abs(lz(n,r));n.setDate(n.getDate()-i*o);const a=+(uL(n,r)===-i),s=i*(o-a);return s===0?0:s}function uL(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function $j(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function cz(e,t){return+Je(e)-+Je(t)}function rhe(e,t,n){const r=cz(e,t)/Uj;return $j(n==null?void 0:n.roundingMethod)(r)}function Pf(e){const t=Je(e);return t.setHours(23,59,59,999),t}function ihe(e){const t=Je(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function ohe(e){const t=Je(e);return+Pf(t)==+ihe(t)}function ib(e,t){const n=Je(e),r=Je(t),i=Ry(n,r),o=Math.abs(nhe(n,r));let a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);let s=Ry(n,r)===-i;ohe(Je(e))&&o===1&&Ry(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function ahe(e,t,n){const r=cz(e,t)/1e3;return $j(n==null?void 0:n.roundingMethod)(r)}function she(e,t,n){const r=bv(e,t)/7;return $j(n==null?void 0:n.roundingMethod)(r)}function lhe(e){const t=Je(e),n=wo(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function uhe(e,t){var n,r,i,o;const a=Od(),s=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??a.weekStartsOn??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,l=Je(e),u=l.getDay(),f=(u<s?-7:0)+6-(u-s);return l.setDate(l.getDate()+f),l.setHours(23,59,59,999),l}function che(e){return uhe(e,{weekStartsOn:1})}const fhe={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"}},dhe=(e,t,n)=>{let r;const i=fhe[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function kO(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const phe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hhe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mhe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vhe={date:kO({formats:phe,defaultWidth:"full"}),time:kO({formats:hhe,defaultWidth:"full"}),dateTime:kO({formats:mhe,defaultWidth:"full"})},ghe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yhe=(e,t,n,r)=>ghe[e];function mp(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const bhe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_he={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},whe={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"]},xhe={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"]},Ohe={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"}},She={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"}},Ehe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},The={ordinalNumber:Ehe,era:mp({values:bhe,defaultWidth:"wide"}),quarter:mp({values:_he,defaultWidth:"wide",argumentCallback:e=>e-1}),month:mp({values:whe,defaultWidth:"wide"}),day:mp({values:xhe,defaultWidth:"wide"}),dayPeriod:mp({values:Ohe,defaultWidth:"wide",formattingValues:She,defaultFormattingWidth:"wide"})};function vp(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?khe(s,d=>d.test(a)):Che(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function Che(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function khe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function jhe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Phe=/^(\d+)(th|st|nd|rd)?/i,Ahe=/\d+/i,Nhe={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},Mhe={any:[/^b/i,/^(a|c)/i]},Rhe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Dhe={any:[/1/i,/2/i,/3/i,/4/i]},Lhe={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},Ihe={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]},Fhe={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},Uhe={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]},$he={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},Bhe={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}},zhe={ordinalNumber:jhe({matchPattern:Phe,parsePattern:Ahe,valueCallback:e=>parseInt(e,10)}),era:vp({matchPatterns:Nhe,defaultMatchWidth:"wide",parsePatterns:Mhe,defaultParseWidth:"any"}),quarter:vp({matchPatterns:Rhe,defaultMatchWidth:"wide",parsePatterns:Dhe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vp({matchPatterns:Lhe,defaultMatchWidth:"wide",parsePatterns:Ihe,defaultParseWidth:"any"}),day:vp({matchPatterns:Fhe,defaultMatchWidth:"wide",parsePatterns:Uhe,defaultParseWidth:"any"}),dayPeriod:vp({matchPatterns:$he,defaultMatchWidth:"any",parsePatterns:Bhe,defaultParseWidth:"any"})},fz={code:"en-US",formatDistance:dhe,formatLong:vhe,formatRelative:yhe,localize:The,match:zhe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Vhe(e){const t=Je(e);return lz(t,lhe(t))+1}function Hhe(e){const t=Je(e),n=+lm(t)-+Xpe(t);return Math.round(n/oz)+1}function dz(e,t){var n,r,i,o;const a=Je(e),s=a.getFullYear(),l=Od(),u=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??l.firstWeekContainsDate??((o=(i=l.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,f=wo(e,0);f.setFullYear(s+1,0,u),f.setHours(0,0,0,0);const d=sm(f,t),p=wo(e,0);p.setFullYear(s,0,u),p.setHours(0,0,0,0);const m=sm(p,t);return a.getTime()>=d.getTime()?s+1:a.getTime()>=m.getTime()?s:s-1}function Whe(e,t){var n,r,i,o;const a=Od(),s=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??a.firstWeekContainsDate??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,l=dz(e,t),u=wo(e,0);return u.setFullYear(l,0,s),u.setHours(0,0,0,0),sm(u,t)}function Yhe(e,t){const n=Je(e),r=+sm(n,t)-+Whe(n,t);return Math.round(r/oz)+1}function ft(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const as={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ft(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ft(n+1,2)},d(e,t){return ft(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ft(e.getHours()%12||12,t.length)},H(e,t){return ft(e.getHours(),t.length)},m(e,t){return ft(e.getMinutes(),t.length)},s(e,t){return ft(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ft(i,t.length)}},cc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cL={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return as.y(e,t)},Y:function(e,t,n,r){const i=dz(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return ft(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):ft(o,t.length)},R:function(e,t){const n=sz(e);return ft(n,t.length)},u:function(e,t){const n=e.getFullYear();return ft(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ft(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ft(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return as.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ft(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Yhe(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ft(i,t.length)},I:function(e,t,n){const r=Hhe(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ft(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):as.d(e,t)},D:function(e,t,n){const r=Vhe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ft(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ft(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){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ft(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){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return ft(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=cc.noon:r===0?i=cc.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=cc.evening:r>=12?i=cc.afternoon:r>=4?i=cc.morning:i=cc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return as.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):as.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ft(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ft(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):as.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):as.s(e,t)},S:function(e,t){return as.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dL(r);case"XXXX":case"XX":return $l(r);case"XXXXX":case"XXX":default:return $l(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return dL(r);case"xxxx":case"xx":return $l(r);case"xxxxx":case"xxx":default:return $l(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fL(r,":");case"OOOO":default:return"GMT"+$l(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fL(r,":");case"zzzz":default:return"GMT"+$l(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ft(r,t.length)},T:function(e,t,n){const r=e.getTime();return ft(r,t.length)}};function fL(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+ft(o,2)}function dL(e,t){return e%60===0?(e>0?"-":"+")+ft(Math.abs(e)/60,2):$l(e,t)}function $l(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ft(Math.trunc(r/60),2),o=ft(r%60,2);return n+i+t+o}const pL=(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"})}},pz=(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"})}},Ghe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pL(e,t);let 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}}",pL(r,t)).replace("{{time}}",pz(i,t))},qhe={p:pz,P:Ghe},Khe=/^D+$/,Zhe=/^Y+$/,Qhe=["D","DD","YY","YYYY"];function Xhe(e){return Khe.test(e)}function Jhe(e){return Zhe.test(e)}function eme(e,t,n){const r=tme(e,t,n);if(console.warn(r),Qhe.includes(e))throw new RangeError(r)}function tme(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const nme=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ime=/^'([^]*?)'?$/,ome=/''/g,ame=/[a-zA-Z]/;function ob(e,t,n){var r,i,o,a,s,l,u,f;const d=Od(),p=(n==null?void 0:n.locale)??d.locale??fz,m=(n==null?void 0:n.firstWeekContainsDate)??((i=(r=n==null?void 0:n.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??d.firstWeekContainsDate??((a=(o=d.locale)==null?void 0:o.options)==null?void 0:a.firstWeekContainsDate)??1,v=(n==null?void 0:n.weekStartsOn)??((l=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??d.weekStartsOn??((f=(u=d.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,g=Je(e);if(!the(g))throw new RangeError("Invalid time value");let x=t.match(rme).map(_=>{const w=_[0];if(w==="p"||w==="P"){const O=qhe[w];return O(_,p.formatLong)}return _}).join("").match(nme).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:sme(_)};if(cL[w])return{isToken:!0,value:_};if(w.match(ame))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:_}});p.localize.preprocessor&&(x=p.localize.preprocessor(g,x));const b={firstWeekContainsDate:m,weekStartsOn:v,locale:p};return x.map(_=>{if(!_.isToken)return _.value;const w=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Jhe(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Xhe(w))&&eme(w,t,String(e));const O=cL[w[0]];return O(g,w,p.localize,b)}).join("")}function sme(e){const t=e.match(ime);return t?t[1].replace(ome,"'"):e}function lme(e,t,n){const r=Od(),i=(n==null?void 0:n.locale)??r.locale??fz,o=2520,a=Ry(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a});let l,u;a>0?(l=Je(t),u=Je(e)):(l=Je(e),u=Je(t));const f=ahe(u,l),d=(rb(u)-rb(l))/1e3,p=Math.round((f-d)/60);let m;if(p<2)return n!=null&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,s):f<10?i.formatDistance("lessThanXSeconds",10,s):f<20?i.formatDistance("lessThanXSeconds",20,s):f<40?i.formatDistance("halfAMinute",0,s):f<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):p===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",p,s);if(p<45)return i.formatDistance("xMinutes",p,s);if(p<90)return i.formatDistance("aboutXHours",1,s);if(p<lL){const v=Math.round(p/60);return i.formatDistance("aboutXHours",v,s)}else{if(p<o)return i.formatDistance("xDays",1,s);if(p<Bg){const v=Math.round(p/lL);return i.formatDistance("xDays",v,s)}else if(p<Bg*2)return m=Math.round(p/Bg),i.formatDistance("aboutXMonths",m,s)}if(m=ib(u,l),m<12){const v=Math.round(p/Bg);return i.formatDistance("xMonths",v,s)}else{const v=m%12,g=Math.trunc(m/12);return v<3?i.formatDistance("aboutXYears",g,s):v<9?i.formatDistance("overXYears",g,s):i.formatDistance("almostXYears",g+1,s)}}function ume(e,t){const n=Je(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended",i=(t==null?void 0:t.representation)??"complete";let o="",a="";const s=r==="extended"?"-":"",l=r==="extended"?":":"";if(i!=="time"){const u=ft(n.getDate(),2),f=ft(n.getMonth()+1,2);o=`${ft(n.getFullYear(),4)}${s}${f}${s}${u}`}if(i!=="date"){const u=n.getTimezoneOffset();if(u!==0){const g=Math.abs(u),x=ft(Math.trunc(g/60),2),b=ft(g%60,2);a=`${u<0?"+":"-"}${x}:${b}`}else a="Z";const f=ft(n.getHours(),2),d=ft(n.getMinutes(),2),p=ft(n.getSeconds(),2),m=o===""?"":"T",v=[f,d,p].join(l);o=`${o}${m}${v}${a}`}return o}function cme(e){return Math.trunc(+Je(e)/1e3)}function fme(e,t){const n=Je(e),r=Je(t);return n.getTime()>r.getTime()}function ab(e,t){const n=Je(e),r=Je(t);return+n<+r}function xE(e,t){const n=Je(e),r=Je(t);return+n==+r}function dme(e,t){const n=+Je(e),[r,i]=[+Je(t.start),+Je(t.end)].sort((o,a)=>o-a);return n>=r&&n<=i}function sb(e,t){return Fj(e,-t)}function nl(e,t){const n=(t==null?void 0:t.additionalDigits)??2,r=vme(e);let i;if(r.date){const l=gme(r.date,n);i=yme(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=bme(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=_me(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(o+a+s)}const zg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},pme=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,hme=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,mme=/^([+-])(\d{2})(?::?(\d{2}))?$/;function vme(e){const t={},n=e.split(zg.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],zg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(zg.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=zg.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function gme(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function yme(e,t){if(t===null)return new Date(NaN);const n=e.match(pme);if(!n)return new Date(NaN);const r=!!n[4],i=gp(n[1]),o=gp(n[2])-1,a=gp(n[3]),s=gp(n[4]),l=gp(n[5])-1;if(r)return Eme(t,s,l)?wme(t,s,l):new Date(NaN);{const u=new Date(0);return!Ome(t,o,a)||!Sme(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function gp(e){return e?parseInt(e):1}function bme(e){const t=e.match(hme);if(!t)return NaN;const n=jO(t[1]),r=jO(t[2]),i=jO(t[3]);return Tme(n,r,i)?n*Uj+r*az+i*1e3:NaN}function jO(e){return e&&parseFloat(e.replace(",","."))||0}function _me(e){if(e==="Z")return 0;const t=e.match(mme);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Cme(r,i)?n*(r*Uj+i*az):NaN}function wme(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const xme=[31,null,31,30,31,30,31,31,30,31,30,31];function hz(e){return e%400===0||e%4===0&&e%100!==0}function Ome(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(xme[t]||(hz(e)?29:28))}function Sme(e,t){return t>=1&&t<=(hz(e)?366:365)}function Eme(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Tme(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Cme(e,t){return t>=0&&t<=59}const mz="yyyy-MM-dd",Bj="yyyy-MM-dd HH:mm",rl=()=>new Date,zj=e=>typeof e!="string",Vj=(e,t)=>!e||!zj(e)?e:t?ob(e,t):ume(e),il=e=>Vj(e,void 0),eu=e=>Vj(e,mz),lb=e=>Vj(e,Bj),Mi=e=>zj(e)?e:nl(e),_v=(e,t,n)=>{const r=Mi(e),i=t&&Mi(t),o=n&&Mi(n);if(i&&o)try{return dme(r,{start:i,end:o})}catch{return!1}return i?xE(r,i)||fme(r,i):o?xE(r,o)||ab(r,o):!0},jl=(e,t)=>xE(e,t)||ab(e,t),pw="all",vz={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[pw]:void 0},gz=Object.keys(vz),kme=e=>!e||!e.startDate&&!e.endDate,ub=e=>typeof e=="string"&&gz.includes(e),jme=gz.filter(e=>e!==pw),hL=e=>e?Mi(e):null,yz=(e,t)=>({startDate:hL(e),endDate:hL(t)}),Pme=e=>{if(!(!e||kme(e)))return e.startDate&&!e.endDate?`Since ${eu(e.startDate)}`:!e.startDate&&e.endDate?`Until ${eu(e.endDate)}`:`${eu(e.startDate)} - ${eu(e.endDate)}`},bz=e=>{if(!(!e||e===pw))return ub(e)?vz[e]:Pme(e)},ji=e=>Pu(sb(rl(),e)),fc=e=>({startDate:e,endDate:Pf(rl())}),_z=e=>{var t;return((t=[[()=>e==="today",()=>fc(Pu(rl()))],[()=>e==="yesterday",()=>({startDate:ji(1),endDate:Pf(sb(rl(),1))})],[()=>e==="last7Days",()=>fc(ji(7))],[()=>e==="last30Days",()=>fc(ji(30))],[()=>e==="last90Days",()=>fc(ji(90))],[()=>e==="last180Days",()=>fc(ji(180))],[()=>e==="last365Days",()=>fc(ji(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},Ame=e=>{var t;const n=Mi(e);return((t=[[()=>jl(Pu(rl()),n),"today"],[()=>jl(ji(1),n),"yesterday"],[()=>jl(ji(7),n),"last7Days"],[()=>jl(ji(30),n),"last30Days"],[()=>jl(ji(90),n),"last90Days"],[()=>jl(ji(180),n),"last180Days"],[()=>jl(ji(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??pw},wz=e=>ub(e)?_z(e):e,xz=e=>!!(e&&e.startDate),Nme=({startDate:e,endDate:t})=>{const n=bv(Pf(t??new Date),Pu(e))+1,r=sb(Pu(e),n),i=sb(Pf(e),1);return{startDate:r,endDate:i}},Mme=e=>{if(xz(e))return bv(e.endDate??new Date,e.startDate)},Hj=e=>e.visitedUrl!==void 0,Rme=e=>e.visitedUrl!==void 0,Dme=e=>{const t=Hpe(e,n=>Hj(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},Oz=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&dh(o,t,n)&&_v(a.date,i,r)),Sz=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&Ype(i,t)&&_v(o.date,r,n)),Ez=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&_v(o.date,r,n)),Vg=(e,t)=>tz(e,n=>n[t]),Lme=e=>{const t=((e==null?void 0:e.startDate)&&il(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&il(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},OE=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=Lme(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},Ime=e=>xz(e.dateRange),Fme=({dateRange:e,...t})=>({...t,dateRange:Nme(e)}),pr=(e,t)=>L9(e,t,{serializeError:n=>n}),mL=5e3,Ume=2,$me=4,Bme=({currentPage:e,pagesCount:t})=>e>=t,zme=(e,t)=>t*100/e,Tz=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async l=>e({...a,page:l,itemsPerPage:mL}).then(({data:u})=>u))).then(l=>l.flat()),o=async(a,s,l=0)=>{if(t())return[];const u=await i(a,s[l]);return n(zme(s.length,l+1)),l<s.length-1?u.concat(await o(a,s,l+1)):u};return async a=>{const{pagination:s,data:l}=await e({...a,page:1,itemsPerPage:mL});if(Bme(s))return l;const u=Dj(Ume,s.pagesCount+1),f=nf(u,r);return s.pagesCount-1>r&&n(0),l.concat(await o(a,f))}},wv=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),xv=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Mn(`${e}/progressChanged`),i=Mn(`${e}/fallbackToInterval`),o=pr(e,async(a,{getState:s,dispatch:l})=>{var u;const{params:f,options:d}=a,{visitsLoader:p,lastVisitLoader:m}=t(a),v=Mme(f.dateRange),g=OE(f),x=d.loadPrevInterval&&Ime(f)?OE(Fme(f)):void 0,b=$me/(x?2:1),_=x?{main:0,prev:0}:{main:0},w=(P,D)=>{_[P]=D;const N=Object.values(_),F=N.reduce((B,Y)=>B+Y,0);l(r(F/N.length))},O=Tz({visitsLoader:p,shouldCancel:()=>n(s),progressChanged:P=>w("main",P),batchSize:b}),[E,T,k]=await Promise.all([O(g),m((u=f.filter)==null?void 0:u.excludeBots),x?O(x).then(P=>P.map(D=>{if(v===void 0)return D;const{date:N,...F}=D,B=Fj(Mi(N),v);return{...F,date:il(B)}})):Promise.resolve(void 0)]);return!E.length&&T&&l(i(Ame(T.date))),{...a,visits:E,prevVisits:k}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},Sd=Mn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Ov=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:l,fallbackToInterval:u}=t,{reducer:f,actions:d}=Dn({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(o,()=>({...n,loading:!0})),m.addCase(a,(v,{error:g})=>({...n,errorData:Qi(g)??null})),m.addCase(s,(v,{payload:g})=>({...v,...g,loading:!1,progress:null,errorData:null})),m.addCase(l,(v,{payload:g})=>({...v,progress:g})),m.addCase(u,(v,{payload:g})=>({...v,fallbackInterval:g})),m.addCase(Sd,(v,{payload:g})=>{const{visits:x}=v,b=r(v,g.createdVisits).map(({visit:_})=>_);return b.length?{...v,visits:[...b,...x]}:v}),i==null||i(m)}}),{cancelGetVisits:p}=d;return{reducer:f,cancelGetVisits:p}},Cz="shlink/domainVisits",hw="DEFAULT",Vme={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},Hme=e=>xv({typePrefix:`${Cz}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=wv(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),Wme=e=>Ov({name:Cz,initialState:Vme,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>Sz(r,t,n==null?void 0:n.dateRange)}),Dy=({className:e="",placement:t,children:n})=>{const r=hl();return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:e,ref:r,children:y.jsx(Ne,{icon:Ak})}),y.jsx(Jr,{target:r,placement:t,children:n})]})},Wj=e=>t=>{t.preventDefault(),e()},Yj=(e,t,n=1)=>Dj(n,e+1).map(t),Yme=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,Gl=e=>e!=null&&!Yme(e),PO=e=>e||null,SE=e=>e?"true":"false",AO=e=>e===void 0?void 0:SE(e),NO=({isLast:e,...t})=>y.jsx(Ny,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),Gme=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,l]=I.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,f]=I.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[d,p]=I.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),m=Wj(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:PO(s),regular404Redirect:PO(u),invalidShortUrlRedirect:PO(d)}}).then(t));return y.jsx(Ka,{isOpen:e,toggle:t,centered:!0,children:y.jsxs("form",{name:"domainRedirectsModal",onSubmit:m,children:[y.jsxs(Za,{toggle:t,children:["Edit redirects for ",y.jsx("b",{children:n.domain})]}),y.jsxs(aa,{children:[y.jsxs(NO,{value:s,onChange:l,children:[y.jsxs(Dy,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",y.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),y.jsxs(NO,{value:u,onChange:f,children:[y.jsxs(Dy,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",y.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),y.jsxs(NO,{value:d,isLast:!0,onChange:p,children:[y.jsx(Dy,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),y.jsxs(Uu,{children:[y.jsx(_t,{color:"link",type:"button",onClick:t,children:"Cancel"}),y.jsx(_t,{color:"primary",children:"Save"})]})]})})},qme=({domain:e,editDomainRedirects:t})=>{const[n,r]=Cn(),i=$u("domainVisits"),o=ml(),a=dw();return y.jsxs(ow,{children:[i&&y.jsxs(y.Fragment,{children:[y.jsxs(Re,{tag:$t,to:`${o}/domain/${e.domain}${e.isDefault?`_${hw}`:""}/visits`,children:[y.jsx(Ne,{icon:Pk,fixedWidth:!0})," Visit stats"]}),y.jsxs(Re,{disabled:!a||!a.canAddItemWithName(e.domain),onClick:()=>a==null?void 0:a.addItemToCompare({name:e.domain,query:e.domain}),children:[y.jsx(Ne,{icon:q_,fixedWidth:!0})," Compare visits"]}),y.jsx(Re,{divider:!0,tag:"hr"})]}),y.jsxs(Re,{onClick:r,children:[y.jsx(Ne,{fixedWidth:!0,icon:jk})," Edit redirects"]}),y.jsx(Gme,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Ta=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Kme="Left",Zme="Right",Qme="Up",Xme="Down",Uc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},EE={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},vL="mousemove",gL="mouseup",Jme="touchend",eve="touchmove",tve="touchstart";function nve(e,t,n,r){return e>t?n>0?Zme:Kme:r>0?Xme:Qme}function yL(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 rve(e,t){const n=u=>{const f="touches"in u;f&&u.touches.length>1||e((d,p)=>{p.trackMouse&&!f&&(document.addEventListener(vL,r),document.addEventListener(gL,a));const{clientX:m,clientY:v}=f?u.touches[0]:u,g=yL([m,v],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},d),EE),{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,x]=yL([m,v],d.rotationAngle),b=g-f.xy[0],_=x-f.xy[1],w=Math.abs(b),O=Math.abs(_),E=(u.timeStamp||0)-f.start,T=Math.sqrt(w*w+O*O)/(E||1),k=[b/(E||1),_/(E||1)],P=nve(w,O,b,_),D=typeof d.delta=="number"?d.delta:d.delta[P.toLowerCase()]||Uc.delta;if(w<D&&O<D&&!f.swiping)return f;const N={absX:w,absY:O,deltaX:b,deltaY:_,dir:P,event:u,first:f.first,initial:f.initial,velocity:T,vxvy:k};N.first&&d.onSwipeStart&&d.onSwipeStart(N),d.onSwiping&&d.onSwiping(N);let F=!1;return(d.onSwiping||d.onSwiped||d[`onSwiped${P}`])&&(F=!0),F&&d.preventScrollOnSwipe&&d.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},f),{first:!1,eventData:N,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),EE),{eventData:p})})},o=()=>{document.removeEventListener(vL,r),document.removeEventListener(gL,a)},a=u=>{o(),i(u)},s=(u,f)=>{let d=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},Uc.touchEventOptions),f.touchEventOptions),m=[[tve,n,p],[eve,r,Object.assign(Object.assign({},p),f.preventScrollOnSwipe?{passive:!1}:{})],[Jme,i,p]];m.forEach(([v,g,x])=>u.addEventListener(v,g,x)),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 ive(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 ove(e){const{trackMouse:t}=e,n=I.useRef(Object.assign({},EE)),r=I.useRef(Object.assign({},Uc)),i=I.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Uc),e);let o;for(o in Uc)r.current[o]===void 0&&(r.current[o]=Uc[o]);const[a,s]=I.useMemo(()=>rve(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=ive(n.current,r.current,i.current,s),a}const ave=(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 ove({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},sve=(e,t)=>{const[n,r]=I.useState(t),i=I.useCallback(o=>{const{location:a,history:s}=window,l=yj(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${rw(l)}`),r(o)},[e]);return[n,i]},Gj=e=>{const t=_d();return I.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},lve=()=>{const e=oa();return I.useCallback(()=>e(-1),[e])},qj=(e,t)=>{const n=I.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=I.useState(n());return I.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},uve=({status:e,matchMedia:t=window.matchMedia})=>{const n=hl(),r=qj(991,t);return e==="validating"?y.jsx(Ne,{fixedWidth:!0,icon:_7,spin:!0}):y.jsxs(y.Fragment,{children:[y.jsx("span",{ref:n,children:e==="valid"?y.jsx(Ne,{fixedWidth:!0,icon:Wh,className:"text-muted"}):y.jsx(Ne,{fixedWidth:!0,icon:N2,className:"text-danger"})}),y.jsx(Jr,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":y.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",y.jsx("br",{}),"Check the ",y.jsx(Ta,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},MO=({fallback:e})=>y.jsxs("span",{className:"text-muted",children:[!e&&y.jsx("small",{children:"No redirect"}),e&&y.jsxs(y.Fragment,{children:[e," ",y.jsx("small",{children:"(as fallback)"})]})]}),cve=()=>y.jsxs(y.Fragment,{children:[y.jsx(Ne,{fixedWidth:!0,icon:uee,className:"text-primary",id:"defaultDomainIcon"}),y.jsx(Jr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),fve=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return I.useEffect(()=>{n(e.domain)},[n,e.domain]),y.jsxs("tr",{className:"responsive-table__row",children:[y.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&y.jsx(cve,{})}),y.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),y.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??y.jsx(MO,{fallback:r==null?void 0:r.baseUrlRedirect})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??y.jsx(MO,{fallback:r==null?void 0:r.regular404Redirect})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??y.jsx(MO,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),y.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:y.jsx(uve,{status:s})}),y.jsx("td",{className:"responsive-table__cell text-end",children:y.jsx(qme,{domain:e,editDomainRedirects:t})})]})},bL=[{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}],dve=({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:m})=>m))==null?void 0:o.redirects),p=Mj();return I.useEffect(()=>{e()},[e]),l?y.jsx(el,{loading:!0}):y.jsxs(Nj,{value:p,children:[y.jsx(gv,{className:"mb-3",onChange:n}),y.jsx(Rj,{type:"domains",className:"mb-3"}),(()=>u?y.jsx(li,{type:"error",children:y.jsx(Ua,{errorData:f,fallbackMessage:"Error loading domains :("})}):y.jsx(Qt,{children:y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsx("thead",{className:"responsive-table__header",children:y.jsx("tr",{children:bL.map((m,v)=>y.jsx("th",{children:y.jsx("span",{className:m.isHidden?"sr-only":void 0,children:m.value})},v))})}),y.jsxs("tbody",{children:[a.length<1&&y.jsx("tr",{children:y.jsx("td",{colSpan:bL.length,className:"text-center",children:"No results found"})}),a.map(m=>y.jsx(fve,{domain:m,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:d},m.domain))]})]})}))()]})},pve="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",hve=e=>pr(pve,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Hg="shlink/domainsList",Wg={domains:[],filteredDomains:[],loading:!1,error:!1},_L=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},wL=(e,t)=>n=>n.domain!==e?n:{...n,status:t},mve=(e,t)=>{const n=pr(`${Hg}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=pr(`${Hg}/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=Mn(`${Hg}/filterDomains`),{reducer:o}=Dn({name:Hg,initialState:Wg,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...Wg,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...Wg,error:!0,errorData:Qi(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...Wg,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...u},{payload:f})=>({...u,domains:s.map(wL(f.domain,f.status)),filteredDomains:l.map(wL(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(_L(l)),filteredDomains:s.filteredDomains.map(_L(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},vve=(e,t)=>{e.serviceFactory("DomainSelector",()=>Ppe),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>dve),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",mve,"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",hve,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},xL="shlink/mercure",gve={loading:!0,error:!1},yve=e=>{const t=pr(`${xL}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Dn({name:xL,initialState:gve,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}},bve=e=>{e.serviceFactory("mercureInfoReducerCreator",yve,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function en(e){return I.useRef(e).current}function tn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}var $c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var TE={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 x=d;d=function(ue,ve){var ge=ve.signal;return x(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 b(){this.bitsNeeded=0,this.codePoint=0}b.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,Pe=this.codePoint,ce=0;ce<ue.length;ce+=1){var de=ue[ce];ke!==0&&(de<128||de>191||!ve(Pe<<6|de&63,ke-6,ge(ke,Pe)))&&(ke=0,Pe=Oe,Ce+=String.fromCharCode(Pe)),ke===0?(de>=0&&de<=127?(ke=0,Pe=de):de>=192&&de<=223?(ke=6*1,Pe=de&31):de>=224&&de<=239?(ke=6*2,Pe=de&15):de>=240&&de<=247?(ke=6*3,Pe=de&7):(ke=0,Pe=Oe),ke!==0&&!ve(Pe,ke,ge(ke,Pe))&&(ke=0,Pe=Oe)):(ke-=6,Pe=Pe<<6|de&63),ke===0&&(Pe<=65535?Ce+=String.fromCharCode(Pe):(Ce+=String.fromCharCode(55296+(Pe-65535-1>>10)),Ce+=String.fromCharCode(56320+(Pe-65535-1&1023))))}return this.bitsNeeded=ke,this.codePoint=Pe,Ce};var _=function(){try{return new m().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(m==null||v==null||!_())&&(m=b);var w=function(){};function O(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=w}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=w,Oe.onerror=w,Oe.onabort=w,Oe.onprogress=w,Oe.onreadystatechange=w,Oe.abort(),ke!==0&&(i(ke),ke=0),Se||(ge.readyState=4,ge.onabort(null),ge.onreadystatechange())),Ce=0};var Pe=function(){if(Ce===1){var Se=0,Ae="",Le=void 0;if("contentType"in Oe)Se=200,Ae="OK",Le=Oe.contentType;else try{Se=Oe.status,Ae=Oe.statusText,Le=Oe.getResponseHeader("Content-Type")}catch{Se=0,Ae="",Le=void 0}Se!==0&&(Ce=2,ge.readyState=2,ge.status=Se,ge.statusText=Ae,ge._contentType=Le,ge.onreadystatechange())}},ce=function(){if(Pe(),Ce===2||Ce===3){Ce=3;var Se="";try{Se=Oe.responseText}catch{}ge.readyState=3,ge.responseText=Se,ge.onprogress()}},de=function(Se,Ae){if((Ae==null||Ae.preventDefault==null)&&(Ae={preventDefault:w}),ce(),Ce===1||Ce===2||Ce===3){if(Ce=4,ke!==0&&(i(ke),ke=0),ge.readyState=4,Se==="load")ge.onload(Ae);else if(Se==="error")ge.onerror(Ae);else if(Se==="abort")ge.onabort(Ae);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&&Pe())},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(": "),Pe=ke.shift(),ce=ke.join(": ");ve[E(Pe)]=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,Pe){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"),Ae=ue.getAllResponseHeaders();ve(_e,be,Se,new T(Ae))}},ue.withCredentials=ke;for(var de in Pe)Object.prototype.hasOwnProperty.call(Pe,de)&&ue.setRequestHeader(de,Pe[de]);return ue.send(),ue};function P(ue){this._headers=ue}P.prototype.get=function(ue){return this._headers.get(ue)};function D(){}D.prototype.open=function(ue,ve,ge,Oe,Ce,ke,Pe){var ce=null,de=new g,_e=de.signal,be=new m;return d(Ce,{headers:Pe,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 P(Se.headers)),new f(function(Ae,Le){var st=function(){ce.read().then(function(ct){if(ct.done)Ae(void 0);else{var et=be.decode(ct.value,{stream:!0});ge(et),st()}}).catch(function(ct){Le(ct)})};st()})}).catch(function(Se){if(Se.name!=="AbortError")return Se}).then(function(Se){Oe(Se)}),{abort:function(){ce!=null&&ce.cancel(),de.abort()}}};function N(){this._listeners=Object.create(null)}function F(ue){r(function(){throw ue},0)}N.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){F(ke)}}},N.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)},N.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 B(ue){this.type=ue,this.target=void 0}function Y(ue,ve){B.call(this,ue),this.data=ve.data,this.lastEventId=ve.lastEventId}Y.prototype=Object.create(B.prototype);function H(ue,ve){B.call(this,ue),this.status=ve.status,this.statusText=ve.statusText,this.headers=ve.headers}H.prototype=Object.create(B.prototype);function Q(ue,ve){B.call(this,ue),this.error=ve.error}Q.prototype=Object.create(B.prototype);var Z=-1,te=0,X=1,z=2,V=-1,W=0,re=1,q=2,ee=3,oe=/^text\/event\-stream(;.*)?$/i,le=1e3,fe=18e6,j=function(ue,ve){var ge=ue==null?ve:parseInt(ue,10);return ge!==ge&&(ge=ve),A(ge)},A=function(ue){return Math.min(Math.max(ue,le),fe)},$=function(ue,ve,ge){try{typeof ve=="function"&&ve.call(ue,ge)}catch(Oe){F(Oe)}};function J(ue,ve){N.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 se=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=A(1e3),Pe=j(ge.heartbeatTimeout,45e3),ce="",de=ke,_e=!1,be=0,Se=ge.headers||{},Ae=ge.Transport,Le=se&&Ae==null?void 0:new O(Ae!=null?new Ae:K()),st=Ae!=null&&typeof Ae!="string"?new Ae:Le==null?new D:new k,ct=void 0,et=0,fn=Z,nn="",In="",Or="",Eo="",er=W,Hd=0,To=0,$v=function(xn,vn,Sr,tr){if(fn===te)if(xn===200&&Sr!=null&&oe.test(Sr)){fn=X,_e=Date.now(),de=ke,ue.readyState=X;var nr=new H("open",{status:xn,statusText:vn,headers:tr});ue.dispatchEvent(nr),$(ue,ue.onopen,nr)}else{var kn="";xn!==200?(vn&&(vn=vn.replace(/\s+/g," ")),kn="EventSource's response has a status "+xn+" "+vn+" that is not 200. Aborting the connection."):kn="EventSource's response has a Content-Type specifying an unsupported type: "+(Sr==null?"-":Sr.replace(/\s+/g," "))+". Aborting the connection.",Wd();var nr=new H("error",{status:xn,statusText:vn,headers:tr});ue.dispatchEvent(nr),$(ue,ue.onerror,nr),console.error(kn)}},Bv=function(xn){if(fn===X){for(var vn=-1,Sr=0;Sr<xn.length;Sr+=1){var tr=xn.charCodeAt(Sr);(tr===`
|
||
`.charCodeAt(0)||tr==="\r".charCodeAt(0))&&(vn=Sr)}var nr=(vn!==-1?Eo:"")+xn.slice(0,vn+1);Eo=(vn===-1?Eo:"")+xn.slice(vn+1),xn!==""&&(_e=Date.now(),be+=xn.length);for(var kn=0;kn<nr.length;kn+=1){var tr=nr.charCodeAt(kn);if(er===V&&tr===`
|
||
`.charCodeAt(0))er=W;else if(er===V&&(er=W),tr==="\r".charCodeAt(0)||tr===`
|
||
`.charCodeAt(0)){if(er!==W){er===re&&(To=kn+1);var Ji=nr.slice(Hd,To-1),eo=nr.slice(To+(To<kn&&nr.charCodeAt(To)===" ".charCodeAt(0)?1:0),kn);Ji==="data"?(nn+=`
|
||
`,nn+=eo):Ji==="id"?In=eo:Ji==="event"?Or=eo:Ji==="retry"?(ke=j(eo,ke),de=ke):Ji==="heartbeatTimeout"&&(Pe=j(eo,Pe),et!==0&&(i(et),et=r(function(){Ol()},Pe)))}if(er===W){if(nn!==""){ce=In,Or===""&&(Or="message");var rr=new Y(Or,{data:nn.slice(1),lastEventId:In});if(ue.dispatchEvent(rr),Or==="open"?$(ue,ue.onopen,rr):Or==="message"?$(ue,ue.onmessage,rr):Or==="error"&&$(ue,ue.onerror,rr),fn===z)return}nn="",Or=""}er=tr==="\r".charCodeAt(0)?V:W}else er===W&&(Hd=kn,er=re),er===re?tr===":".charCodeAt(0)&&(To=kn+1,er=q):er===q&&(er=ee)}}},zv=function(xn){if(fn===X||fn===te){fn=Z,et!==0&&(i(et),et=0),et=r(function(){Ol()},de),de=A(Math.min(ke*16,de*2)),ue.readyState=te;var vn=new Q("error",{error:xn});ue.dispatchEvent(vn),$(ue,ue.onerror,vn),xn!=null&&console.error(xn)}},Wd=function(){fn=z,ct!=null&&(ct.abort(),ct=void 0),et!==0&&(i(et),et=0),ue.readyState=z},Ol=function(){if(et=0,fn!==Z){if(!_e&&ct!=null)zv(new Error("No activity within "+Pe+" milliseconds. "+(fn===te?"No response received.":be+" chars received.")+" Reconnecting.")),ct!=null&&(ct.abort(),ct=void 0);else{var xn=Math.max((_e||Date.now())+Pe-Date.now(),1);_e=!1,et=r(function(){Ol()},xn)}return}_e=!1,be=0,et=r(function(){Ol()},Pe),fn=te,nn="",Or="",In=ce,Eo="",Hd=0,To=0,er=W;var vn=ve;if(ve.slice(0,5)!=="data:"&&ve.slice(0,5)!=="blob:"&&ce!==""){var Sr=ve.indexOf("?");vn=Sr===-1?ve:ve.slice(0,Sr+1)+ve.slice(Sr+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(eo,rr){return rr===Ce?"":eo}),vn+=(ve.indexOf("?")===-1?"?":"&")+Ce+"="+encodeURIComponent(ce)}var tr=ue.withCredentials,nr={};nr.Accept="text/event-stream";var kn=ue.headers;if(kn!=null)for(var Ji in kn)Object.prototype.hasOwnProperty.call(kn,Ji)&&(nr[Ji]=kn[Ji]);try{ct=st.open(Le,$v,Bv,zv,vn,tr,nr)}catch(eo){throw Wd(),eo}};ue.url=ve,ue.readyState=te,ue.withCredentials=Oe,ue.headers=Se,ue._close=Wd,Ol()}J.prototype=Object.create(N.prototype),J.prototype.CONNECTING=te,J.prototype.OPEN=X,J.prototype.CLOSED=z,J.prototype.close=function(){this._close()},J.CONNECTING=te,J.OPEN=X,J.CLOSED=z,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:$c:globalThis)})(TE,TE.exports);var _ve=TE.exports;const wve=(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 _ve.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=u,m});return()=>f.forEach(d=>d.close())};function Oo(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=hd();return I.useEffect(()=>{const{interval:l}=a,u=m=>l?n.add(m):i([m]),f=t(s),d=wve(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]),y.jsx(e,{...r})}}class Dr{}zs(Dr,"visits","https://shlink.io/new-visit"),zs(Dr,"orphanVisits","https://shlink.io/new-orphan-visit"),zs(Dr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const Kj="shlink/shortUrlDeletion",OL={shortCode:"",loading:!1,deleted:!1,error:!1},xve=e=>pr(`${Kj}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),kz=Mn(`${Kj}/shortUrlDeleted`),Ove=e=>{const{actions:t,reducer:n}=Dn({name:Kj,initialState:OL,reducers:{resetDeleteShortUrl:()=>OL},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Qi(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}},jz="shlink/shortUrlsList",Pz=5,Sve={loading:!0,error:!1},Eve=e=>pr(`${jz}/listShortUrls`,t=>e().listShortUrls(t??{})),Tve=(e,t,n)=>Dn({name:jz,initialState:Sve,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,Pz-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 dh(a,s,l)?o:a}))}),r.addCase(kz,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!dh(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Sd,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:l})=>l&&dh(a,l.shortCode,l.domain)))==null?void 0:s.shortUrl)??a}))})}}),SL=10,{ceil:Cve}=Math,kve=new Intl.NumberFormat("en-US"),hn=e=>kve.format(Number(e)),jve=e=>Cve(e/SL)*SL,Pve={field:"dateCreated",dir:"DESC"},Az={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Pve}},Nz=I.createContext(Az),Ave=Nz.Provider,Zj=()=>I.useContext(Nz)??Az,vl=e=>Zj()[e],CE=({children:e,title:t,link:n,tooltip:r})=>{const i=hl();return y.jsxs(y.Fragment,{children:[y.jsxs(di,{innerRef:i,className:"highlight-card",body:!0,tag:$t,to:n,children:[y.jsx(Ne,{size:"3x",className:"highlight-card__link-icon",icon:ipe}),y.jsx(IB,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),y.jsx(LB,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&y.jsx(Jr,{target:i,placement:"bottom",children:r})]})},EL=({loading:e,excludeBots:t,visitsSummary:n,...r})=>y.jsx(CE,{tooltip:n.bots!==void 0?y.jsxs(y.Fragment,{children:[t?"Plus":"Including"," ",y.jsx("strong",{children:hn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":hn(t&&n.nonBots?n.nonBots:n.total)}),Mz=Oo(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=en(Mz),{loading:s,shortUrls:l}=e,{loading:u}=n,{loading:f,nonOrphanVisits:d,orphanVisits:p}=i,m=ml(),v=oa(),g=vl("visits");return I.useEffect(()=>{t({itemsPerPage:Pz,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),y.jsxs(y.Fragment,{children:[y.jsxs(Pr,{children:[y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(EL,{title:"Visits",link:`${m}/non-orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:d})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(EL,{title:"Orphan visits",link:`${m}/orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:p})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(CE,{title:"Short URLs",link:`${m}/list-short-urls/1`,children:s?"Loading...":hn((l==null?void 0:l.pagination.totalItems)??0)})}),y.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:y.jsx(CE,{title:"Tags",link:`${m}/manage-tags`,children:u?"Loading...":hn(n.tags.length)})})]}),y.jsxs(di,{className:"mb-3",children:[y.jsxs(Sf,{children:[y.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),y.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),y.jsx($t,{className:"float-end",to:`${m}/create-short-url`,children:"Advanced options »"})]}),y.jsx(Of,{children:y.jsx(a,{basicMode:!0})})]}),y.jsxs(di,{children:[y.jsxs(Sf,{children:[y.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),y.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),y.jsx($t,{className:"float-end",to:`${m}/list-short-urls/1`,children:"See all »"})]}),y.jsx(Of,{children:y.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:x=>v(`${m}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[Dr.visits,Dr.orphanVisits]),Nve=tn(Mz,["ShortUrlsTable","CreateShortUrl"]);function Mve(e,t){e.factory("Overview",Nve),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const Rve=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}),Rz=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=en(Rz),a=vl("shortUrlCreation"),s=I.useMemo(()=>Rve(a),[a]);return y.jsxs(y.Fragment,{children:[y.jsx(i,{initialState:s,saving:t.saving,mode:r?"create-basic":"create",onSave:async l=>(n(),e(l))}),y.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},Dve=tn(Rz,["ShortUrlForm","CreateShortUrlResult"]),Qj=()=>{const e=lve();return y.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:y.jsx(Ne,{icon:xee})})},mw=()=>{const e=oa(),t=ml(),n=_d(),r=I.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:u,...f}=n,d=o?Lfe(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=I.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:u,excludeMaxVisitsReached:f,excludePastValidUntil:d,...p}=a,m={...p,orderBy:s&&Dfe(s),tags:l.length>0?l.join(","):void 0,excludeBots:AO(u),excludeMaxVisitsReached:AO(f),excludePastValidUntil:AO(d)},v=rw(m),g=v?`?${v}`:"";e(`${t}/list-short-urls/1${g}`)},[r,e,t]);return[r,i]},Dz=()=>{const{shortCode:e=""}=hd();return I.useMemo(()=>Lj(e),[e])},Lz=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=en(Lz),{domain:o}=_d(),a=Dz(),s=I.useMemo(()=>a?{shortCode:a,domain:o}:void 0,[o,a]),{loading:l,error:u,errorData:f,shortUrls:d}=e,p=s&&(d==null?void 0:d.get(s)),{saving:m,saved:v,error:g,errorData:x}=n,b=vl("shortUrlCreation"),_=I.useMemo(()=>Gpe(p,b),[p,b]);return I.useEffect(()=>{s&&t([s])},[t,s]),l?y.jsx(el,{loading:!0}):u?y.jsx(li,{type:"error",children:y.jsx(Ua,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):y.jsxs(y.Fragment,{children:[y.jsx("header",{className:"mb-3",children:y.jsx(di,{body:!0,children:y.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[y.jsx(Qj,{}),y.jsx("span",{className:"text-center",children:y.jsxs("small",{children:["Edit ",y.jsx(Ta,{href:(p==null?void 0:p.shortUrl)??""})]})}),y.jsx("span",{})]})})}),y.jsx(i,{initialState:_,saving:m,mode:"edit",onSave:async w=>{p&&r({...p,data:w})}}),v&&g&&y.jsx(li,{type:"error",className:"mt-3",children:y.jsx(Ua,{errorData:x,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!g&&y.jsx(li,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},Lve=tn(Lz,["ShortUrlForm"]);var vw={},Ive=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()}},Fve=Ive,TL={"text/plain":"Text","text/html":"Url",default:"Text"},Uve="Copy to clipboard: #{key}, Enter";function $ve(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Bve(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=Fve(),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=TL[t.format]||TL.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=$ve("message"in t?t.message:Uve),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var zve=Bve;function kE(e){"@babel/helpers - typeof";return kE=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},kE(e)}Object.defineProperty(vw,"__esModule",{value:!0});vw.CopyToClipboard=void 0;var Yg=Iz(M),Vve=Iz(zve),Hve=["text","onCopy","options","children"];function Iz(e){return e&&e.__esModule?e:{default:e}}function CL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CL(Object(n),!0).forEach(function(r){Xj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wve(e,t){if(e==null)return{};var n=Yve(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 Yve(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 Gve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qve(e,t,n){return t&&jL(e.prototype,t),n&&jL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kve(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&&jE(e,t)}function jE(e,t){return jE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},jE(e,t)}function Zve(e){var t=Xve();return function(){var n=cb(e),r;if(t){var i=cb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Qve(this,r)}}function Qve(e,t){if(t&&(kE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fz(e)}function Fz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xve(){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 cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cb(e)}function Xj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uz=function(e){Kve(n,e);var t=Zve(n);function n(){var r;Gve(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)),Xj(Fz(r),"onClick",function(s){var l=r.props,u=l.text,f=l.onCopy,d=l.children,p=l.options,m=Yg.default.Children.only(d),v=(0,Vve.default)(u,p);f&&f(u,v),m&&m.props&&typeof m.props.onClick=="function"&&m.props.onClick(s)}),r}return qve(n,[{key:"render",value:function(){var r=this.props;r.text,r.onCopy,r.options;var i=r.children,o=Wve(r,Hve),a=Yg.default.Children.only(i);return Yg.default.cloneElement(a,kL(kL({},o),{},{onClick:this.onClick}))}}]),n}(Yg.default.PureComponent);vw.CopyToClipboard=Uz;Xj(Uz,"defaultProps",{onCopy:void 0,options:void 0});var Jve=vw,PE=Jve.CopyToClipboard;PE.CopyToClipboard=PE;var ege=PE;const $z=Et(ege),Bz=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=en(Bz),[i,o]=r(),{error:a,saved:s}=e;if(I.useEffect(()=>{t()},[t]),a)return y.jsxs(li,{type:"error",className:"mt-3",children:[n&&y.jsx(Ne,{"data-testid":"error-close-button",icon:N2,className:"float-end pointer",onClick:t}),y.jsx(Ua,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=e.result;return y.jsxs(li,{type:"success",className:"mt-3",children:[n&&y.jsx(Ne,{"data-testid":"success-close-button",icon:N2,className:"float-end pointer",onClick:t}),y.jsxs("span",{children:[y.jsx("b",{children:"Great!"})," The short URL is ",y.jsx("b",{children:l})]}),y.jsx($z,{text:l,onCopy:o,children:y.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[y.jsx(Ne,{icon:I9})," Copy"]})}),y.jsx(hv,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},tge=tn(Bz,["useTimeoutToggle"]),RO="delete",nge=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=I.useState("");I.useEffect(()=>i,[i]);const{loading:u,error:f,deleted:d,errorData:p}=r,m=I.useCallback(()=>{i(),t()},[i,t]),v=I.useCallback(g=>(g.preventDefault(),o(e).then(t)),[o,e,t]);return y.jsx(Ka,{isOpen:n,toggle:m,centered:!0,onClosed:()=>d&&a(e),children:y.jsxs("form",{onSubmit:v,children:[y.jsx(Za,{toggle:m,children:y.jsx("span",{className:"text-danger",children:"Delete short URL"})}),y.jsxs(aa,{children:[y.jsxs("p",{children:[y.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),y.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),y.jsxs("p",{children:["Write ",y.jsx("b",{children:RO})," to confirm deletion."]}),y.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${RO}`,value:s,onChange:g=>l(g.target.value)}),f&&y.jsx(li,{type:Npe(p)?"warning":"error",small:!0,className:"mt-2",children:y.jsx(Ua,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),y.jsxs(Uu,{children:[y.jsx("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),y.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==RO||u,children:u?"Deleting...":"Delete"})]})]})})},zz=({amount:e=0,loading:t=!1,...n})=>y.jsxs(_t,{...n,outline:!0,color:"primary",disabled:t,children:[y.jsx(Ne,{icon:iee})," ",t?"Exporting...":y.jsxs(y.Fragment,{children:["Export (",hn(e),")"]})]}),PL=20,Vz=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=en(Vz),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=mw(),[u,,f,d]=Cn(),p=I.useCallback(async()=>{const m=e/PL,v=async(x=1)=>{const{data:b}=await t().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:PL});return x>=m?b:b.concat(await v(x+1))};f();const g=await v();n.exportShortUrls(g.map(x=>{var b;const{hostname:_,pathname:w}=new URL(x.shortUrl),O=w.substring(1);return{createdAt:x.dateCreated,domain:_,shortCode:O,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((b=x==null?void 0:x.visitsSummary)==null?void 0:b.total)??x.visitsCount}})),d()},[e,t,a,s,n,i,o,f,d,r,l]);return y.jsx(zz,{loading:u,className:"btn-md-block",amount:e,onClick:p})},rge=tn(Vz,["apiClientFactory","ReportExporter"]),Hz=({text:e,onCopy:t})=>y.jsx($z,{text:e,onCopy:t,children:y.jsx(Ne,{icon:I9,className:"ms-2 copy-to-clipboard-icon"})}),ige=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=rw({...n,margin:t>0?t:void 0});return`${r}${i?`?${i}`:""}`},oge=({errorCorrection:e,setErrorCorrection:t})=>y.jsxs(Qa,{text:`Error correction (${e})`,children:[y.jsxs(Re,{active:e==="L",onClick:()=>t("L"),children:[y.jsx("b",{children:"L"}),"ow"]}),y.jsxs(Re,{active:e==="M",onClick:()=>t("M"),children:[y.jsx("b",{children:"M"}),"edium"]}),y.jsxs(Re,{active:e==="Q",onClick:()=>t("Q"),children:[y.jsx("b",{children:"Q"}),"uartile"]}),y.jsxs(Re,{active:e==="H",onClick:()=>t("H"),children:[y.jsx("b",{children:"H"}),"igh"]})]}),age=({format:e,setFormat:t})=>y.jsxs(Qa,{text:`Format (${e})`,children:[y.jsx(Re,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),y.jsx(Re,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),Wz=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=en(Wz),[o,a]=I.useState(300),[s,l]=I.useState(0),[u,f]=I.useState("png"),[d,p]=I.useState("L"),m=I.useMemo(()=>ige(e,{size:o,format:u,margin:s,errorCorrection:d}),[e,o,u,s,d]),v=I.useMemo(()=>o+s,[o,s]),g=I.useMemo(()=>{if(!(v<500))return v<800?"lg":"xl"},[v]);return y.jsxs(Ka,{isOpen:r,toggle:n,centered:!0,size:g,children:[y.jsxs(Za,{toggle:n,children:["QR code for ",y.jsx(Ta,{href:e,children:e})]}),y.jsxs(aa,{children:[y.jsxs(Pr,{children:[y.jsxs(zr,{className:"d-grid col-md-6",children:[y.jsxs("label",{htmlFor:"sizeControl",children:["Size: ",o,"px"]}),y.jsx("input",{id:"sizeControl",type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:x=>a(Number(x.target.value))})]}),y.jsxs(zr,{className:"d-grid col-md-6",children:[y.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),y.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:s,step:1,min:0,max:100,onChange:x=>l(Number(x.target.value))})]}),y.jsx(zr,{className:"d-grid col-md-6",children:y.jsx(age,{format:u,setFormat:f})}),y.jsx(zr,{className:"col-md-6",children:y.jsx(oge,{errorCorrection:d,setErrorCorrection:p})})]}),y.jsxs("div",{className:"text-center",children:[y.jsxs("div",{className:"mb-3",children:[y.jsx(Ta,{href:m}),y.jsx(Hz,{text:m})]}),y.jsx("img",{src:m,className:"qr-code-modal__img",alt:"QR code"}),y.jsx("div",{className:"mt-3",children:y.jsxs(_t,{block:!0,color:"primary",onClick:()=>{i.saveImage(m,`${t}-qr-code.${u}`).catch(()=>{})},children:["Download ",y.jsx(Ne,{icon:O7,className:"ms-1"})]})})]})]})]})},sge=tn(Wz,["ImageDownloader"]),fb=({date:e,format:t=Bj,relative:n=!1})=>{const r=zj(e)?e:nl(e);return y.jsx("time",{dateTime:`${cme(r)}000`,children:n?`${lme(rl(),r)} ago`:ob(r,t)})},lge=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:Kee,className:"text-danger",description:y.jsxs(y.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",y.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&ab(Mi(a),rl())?{icon:nR,className:"text-danger",description:y.jsxs(y.Fragment,{children:["This short URL cannot be visited since ",y.jsx("b",{className:"indivisible",children:lb(Mi(a))}),"."]})}:o&&ab(rl(),Mi(o))?{icon:nR,className:"text-warning",description:y.jsxs(y.Fragment,{children:["This short URL will start working on ",y.jsx("b",{className:"indivisible",children:lb(Mi(o))}),"."]})}:{icon:Wh,className:"text-primary",description:"This short URL can be visited normally."}},uge=({shortUrl:e})=>{const t=hl(),{icon:n,className:r,description:i}=lge(e);return y.jsxs(y.Fragment,{children:[y.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:y.jsx(Ne,{icon:n,className:r})}),y.jsx(Jr,{target:t,placement:"bottom",children:i})]})},cge=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${rz(t)}/${r}${i}`},AE=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=ml();return!n||!e?y.jsx("span",{...i,children:r}):y.jsx($t,{to:cge(o,e,t),...i,children:r})},Yz=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=hl(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},l=!!o||!!a||!!s,u=y.jsx(AE,{shortUrl:t,suffix:"visits",asLink:r,children:y.jsx("strong",{className:We("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:hn(e)})});return l?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"indivisible",children:[u,y.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&y.jsxs(y.Fragment,{children:[" / ",hn(o)]}),y.jsx("sup",{className:"ms-1",children:y.jsx(Ne,{icon:Ak})})]})]}),y.jsx(Jr,{target:i,placement:"bottom",children:y.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",y.jsx("b",{children:hn(o)})," visit",o===1?"":"s","."]}),a&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",y.jsx("b",{className:"indivisible",children:lb(Mi(a))}),"."]}),s&&y.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",y.jsx("b",{className:"indivisible",children:lb(Mi(s))}),"."]})]})})]}):u},fge=e=>!!e.onClose,dge=e=>!!e.onClick,gw=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=dge(e),a=o?jf:"span",s=I.useMemo(()=>i.stylesForKey(t),[t,i]);return y.jsxs(a,{className:We("badge tag fw-bold",r,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[n??t,fge(e)&&y.jsx(jf,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},pge=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?y.jsx("i",{className:"indivisible",children:y.jsx("small",{children:"No tags"})}):y.jsx(y.Fragment,{children:e.map(r=>y.jsx(gw,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),Gz=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:l}=en(Gz),[u,f]=l(),[d,p]=l(!1,500),m=I.useRef(!0),[{excludeBots:v}]=mw(),g=vl("visits"),x=v??(g==null?void 0:g.excludeBots);return I.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]),y.jsxs("tr",{className:"responsive-table__row",children:[y.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:y.jsx(fb,{date:e.dateCreated})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:y.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[y.jsx("span",{className:"short-urls-row__short-url-wrapper",children:y.jsx(Ta,{href:e.shortUrl})}),y.jsx(Hz,{text:e.shortUrl,onCopy:f}),y.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:y.jsx(Ta,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&y.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:y.jsx(Ta,{href:e.longUrl})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:y.jsx(pge,{tags:e.tags,colorGenerator:s,onTagClick:t})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:y.jsx(Yz,{visitsCount:(x?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount,shortUrl:e,active:d,asLink:!0})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:y.jsx(uge,{shortUrl:e})}),y.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:y.jsx(a,{shortUrl:e})})]})},hge=tn(Gz,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),qz=({shortUrl:e})=>{const{DeleteShortUrlModal:t,QrCodeModal:n}=en(qz),[r,,i,o]=Cn(),[a,,s,l]=Cn(),u=dw();return y.jsxs(ow,{minWidth:190,children:[y.jsxs(Re,{tag:AE,shortUrl:e,suffix:"visits",asLink:!0,children:[y.jsx(Ne,{icon:Pk,fixedWidth:!0})," Visit stats"]}),u&&y.jsxs(y.Fragment,{children:[y.jsxs(Re,{disabled:!u.canAddItemWithName(e.shortUrl),onClick:()=>u.addItemToCompare({name:e.shortUrl,query:Ij(e)}),children:[y.jsx(Ne,{icon:q_,fixedWidth:!0})," Compare visits"]}),y.jsx(Re,{divider:!0,tag:"hr"})]}),y.jsxs(Re,{tag:AE,shortUrl:e,suffix:"edit",asLink:!0,children:[y.jsx(Ne,{icon:jk,fixedWidth:!0})," Edit short URL"]}),y.jsxs(Re,{onClick:i,children:[y.jsx(Ne,{icon:Gee,fixedWidth:!0})," QR code"]}),y.jsx(n,{shortUrl:e,isOpen:r,toggle:o}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsxs(Re,{className:"dropdown-item--danger",onClick:s,children:[y.jsx(Ne,{icon:kk,fixedWidth:!0})," Delete short URL"]}),y.jsx(t,{shortUrl:e,isOpen:a,toggle:l})]})},mge=tn(qz,["DeleteShortUrlModal","QrCodeModal"]),Kz="shlink/shortUrlCreation",AL={saving:!1,saved:!1,error:!1},vge=e=>pr(`${Kz}/createShortUrl`,t=>e().createShortUrl(t)),gge=e=>{const{reducer:t,actions:n}=Dn({name:Kz,initialState:AL,reducers:{resetCreateShortUrl:()=>AL},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:Qi(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},Zz="shlink/shortUrlEdition",yge={saving:!1,saved:!1,error:!1},bge=e=>pr(`${Zz}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),_ge=e=>Dn({name:Zz,initialState:yge,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:Qi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),NL="shlink/shortUrlsDetails",ML={loading:!1,error:!1},wge=e=>{const t=pr(`${NL}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var l;const{shortCode:u,domain:f}=s,d=(l=o==null?void 0:o.shortUrls)==null?void 0:l.data.find(p=>dh(p,u,f));return[s,d??await e().getShortUrl(u,f)]}));return new Map(a)}),{reducer:n}=Dn({name:NL,initialState:ML,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Qi(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...ML,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},xge=({icon:e,className:t,...n})=>{const r=hl();return y.jsxs("div",{className:"icon-input-container",children:[y.jsx(Cu,{className:We("icon-input-container__input",t),innerRef:r,...n}),y.jsx(Ne,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})};var Qz={exports:{}},DO,RL;function Oge(){if(RL)return DO;RL=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return DO=e,DO}var LO,DL;function Sge(){if(DL)return LO;DL=1;var e=Oge();function t(){}function n(){}return n.resetWarningCache=t,LO=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},LO}Qz.exports=Sge()();var Ege=Qz.exports;const rt=Et(Ege);var Xz={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})()})(Xz);var Tge=Xz.exports;const fr=Et(Tge);function Hi(e){"@babel/helpers - typeof";return Hi=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},Hi(e)}function Me(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function yw(e){return Me(1,arguments),e instanceof Date||Hi(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ze(e){Me(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Hi(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 um(e){if(Me(1,arguments),!yw(e)&&typeof e!="number")return!1;var t=ze(e);return!isNaN(Number(t))}function at(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 Jj(e,t){Me(2,arguments);var n=ze(e).getTime(),r=at(t);return new Date(n+r)}function Jz(e,t){Me(2,arguments);var n=at(t);return Jj(e,-n)}var Cge=864e5;function kge(e){Me(1,arguments);var t=ze(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/Cge)+1}function Af(e){Me(1,arguments);var t=1,n=ze(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 eV(e){Me(1,arguments);var t=ze(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Af(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Af(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function jge(e){Me(1,arguments);var t=eV(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Af(n);return r}var Pge=6048e5;function tV(e){Me(1,arguments);var t=ze(e),n=Af(t).getTime()-jge(t).getTime();return Math.round(n/Pge)+1}var Age={};function Bu(){return Age}function Au(e,t){var n,r,i,o,a,s,l,u;Me(1,arguments);var f=Bu(),d=at((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=ze(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 eP(e,t){var n,r,i,o,a,s,l,u;Me(1,arguments);var f=ze(e),d=f.getUTCFullYear(),p=Bu(),m=at((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=Au(v,t),x=new Date(0);x.setUTCFullYear(d,0,m),x.setUTCHours(0,0,0,0);var b=Au(x,t);return f.getTime()>=g.getTime()?d+1:f.getTime()>=b.getTime()?d:d-1}function Nge(e,t){var n,r,i,o,a,s,l,u;Me(1,arguments);var f=Bu(),d=at((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=eP(e,t),m=new Date(0);m.setUTCFullYear(p,0,d),m.setUTCHours(0,0,0,0);var v=Au(m,t);return v}var Mge=6048e5;function nV(e,t){Me(1,arguments);var n=ze(e),r=Au(n,t).getTime()-Nge(n,t).getTime();return Math.round(r/Mge)+1}function Pt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Rge={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Pt(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):Pt(n+1,2)},d:function(e,t){return Pt(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 Pt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Pt(e.getUTCHours(),t.length)},m:function(e,t){return Pt(e.getUTCMinutes(),t.length)},s:function(e,t){return Pt(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 Pt(i,t.length)}};const ss=Rge;var dc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dge={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return ss.y(e,t)},Y:function(e,t,n,r){var i=eP(e,r),o=i>0?i:1-i;if(t==="YY"){var a=o%100;return Pt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Pt(o,t.length)},R:function(e,t){var n=eV(e);return Pt(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Pt(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 Pt(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 Pt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return ss.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Pt(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=nV(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},I:function(e,t,n){var r=tV(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ss.d(e,t)},D:function(e,t,n){var r=kge(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pt(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 Pt(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 Pt(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 Pt(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=dc.noon:r===0?i=dc.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=dc.evening:r>=12?i=dc.afternoon:r>=4?i=dc.morning:i=dc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ss.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ss.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ss.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ss.s(e,t)},S:function(e,t){return ss.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return IL(o);case"XXXX":case"XX":return Bl(o);case"XXXXX":case"XXX":default:return Bl(o,":")}},x:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return IL(o);case"xxxx":case"xx":return Bl(o);case"xxxxx":case"xxx":default:return Bl(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"+LL(o,":");case"OOOO":default:return"GMT"+Bl(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"+LL(o,":");case"zzzz":default:return"GMT"+Bl(o,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return Pt(o,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,o=i.getTime();return Pt(o,t.length)}};function LL(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+Pt(o,2)}function IL(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Pt(Math.abs(e)/60,2)}return Bl(e,t)}function Bl(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Pt(Math.floor(i/60),2),a=Pt(i%60,2);return r+o+n+a}const Lge=Dge;var FL=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"})}},rV=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"})}},Ige=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return FL(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}}",FL(r,t)).replace("{{time}}",rV(i,t))},Fge={p:rV,P:Ige};const NE=Fge;function db(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()}var Uge=["D","DD"],$ge=["YY","YYYY"];function iV(e){return Uge.indexOf(e)!==-1}function oV(e){return $ge.indexOf(e)!==-1}function pb(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 Bge={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"}},zge=function(e,t,n){var r,i=Bge[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 Vge=zge;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 Hge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wge={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yge={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Gge={date:IO({formats:Hge,defaultWidth:"full"}),time:IO({formats:Wge,defaultWidth:"full"}),dateTime:IO({formats:Yge,defaultWidth:"full"})};const qge=Gge;var Kge={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zge=function(e,t,n,r){return Kge[e]};const Qge=Zge;function yp(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 Xge={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jge={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},eye={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"]},tye={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"]},nye={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"}},rye={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"}},iye=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"},oye={ordinalNumber:iye,era:yp({values:Xge,defaultWidth:"wide"}),quarter:yp({values:Jge,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:yp({values:eye,defaultWidth:"wide"}),day:yp({values:tye,defaultWidth:"wide"}),dayPeriod:yp({values:nye,defaultWidth:"wide",formattingValues:rye,defaultFormattingWidth:"wide"})};const aye=oye;function bp(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)?lye(s,function(d){return d.test(a)}):sye(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 sye(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function lye(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function uye(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 cye=/^(\d+)(th|st|nd|rd)?/i,fye=/\d+/i,dye={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},pye={any:[/^b/i,/^(a|c)/i]},hye={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mye={any:[/1/i,/2/i,/3/i,/4/i]},vye={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},gye={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]},yye={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},bye={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]},_ye={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},wye={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}},xye={ordinalNumber:uye({matchPattern:cye,parsePattern:fye,valueCallback:function(e){return parseInt(e,10)}}),era:bp({matchPatterns:dye,defaultMatchWidth:"wide",parsePatterns:pye,defaultParseWidth:"any"}),quarter:bp({matchPatterns:hye,defaultMatchWidth:"wide",parsePatterns:mye,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bp({matchPatterns:vye,defaultMatchWidth:"wide",parsePatterns:gye,defaultParseWidth:"any"}),day:bp({matchPatterns:yye,defaultMatchWidth:"wide",parsePatterns:bye,defaultParseWidth:"any"}),dayPeriod:bp({matchPatterns:_ye,defaultMatchWidth:"any",parsePatterns:wye,defaultParseWidth:"any"})};const Oye=xye;var Sye={code:"en-US",formatDistance:Vge,formatLong:qge,formatRelative:Qge,localize:aye,match:Oye,options:{weekStartsOn:0,firstWeekContainsDate:1}};const aV=Sye;var Eye=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cye=/^'([^]*?)'?$/,kye=/''/g,jye=/[a-zA-Z]/;function UL(e,t,n){var r,i,o,a,s,l,u,f,d,p,m,v,g,x,b,_,w,O;Me(2,arguments);var E=String(t),T=Bu(),k=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:T.locale)!==null&&r!==void 0?r:aV,P=at((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(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=at((m=(v=(g=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&g!==void 0?g:T.weekStartsOn)!==null&&v!==void 0?v:(w=T.locale)===null||w===void 0||(O=w.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 N=ze(e);if(!um(N))throw new RangeError("Invalid time value");var F=db(N),B=Jz(N,F),Y={firstWeekContainsDate:P,weekStartsOn:D,locale:k,_originalDate:N},H=E.match(Tye).map(function(Q){var Z=Q[0];if(Z==="p"||Z==="P"){var te=NE[Z];return te(Q,k.formatLong)}return Q}).join("").match(Eye).map(function(Q){if(Q==="''")return"'";var Z=Q[0];if(Z==="'")return Pye(Q);var te=Lge[Z];if(te)return!(n!=null&&n.useAdditionalWeekYearTokens)&&oV(Q)&&pb(Q,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&iV(Q)&&pb(Q,t,String(e)),te(B,Q,k.localize,Y);if(Z.match(jye))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return Q}).join("");return H}function Pye(e){var t=e.match(Cye);return t?t[1].replace(kye,"'"):e}var Aye=6e4;function ME(e,t){Me(2,arguments);var n=at(t);return Jj(e,n*Aye)}var Nye=36e5;function Mye(e,t){Me(2,arguments);var n=at(t);return Jj(e,n*Nye)}function Ed(e,t){Me(2,arguments);var n=ze(e),r=at(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function hb(e,t){Me(2,arguments);var n=at(t),r=n*7;return Ed(e,r)}function xo(e,t){Me(2,arguments);var n=ze(e),r=at(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 sV(e,t){Me(2,arguments);var n=at(t),r=n*3;return xo(e,r)}function Nf(e,t){Me(2,arguments);var n=at(t);return xo(e,n*12)}function Rye(e,t){Me(2,arguments);var n=at(t);return Ed(e,-n)}function $L(e,t){Me(2,arguments);var n=at(t);return hb(e,-n)}function Mf(e,t){Me(2,arguments);var n=at(t);return xo(e,-n)}function Dye(e,t){Me(2,arguments);var n=at(t);return sV(e,-n)}function cm(e,t){Me(2,arguments);var n=at(t);return Nf(e,-n)}function BL(e){Me(1,arguments);var t=ze(e),n=t.getSeconds();return n}function Yo(e){Me(1,arguments);var t=ze(e),n=t.getMinutes();return n}function Go(e){Me(1,arguments);var t=ze(e),n=t.getHours();return n}function Lye(e){Me(1,arguments);var t=ze(e),n=t.getDay();return n}function zL(e){Me(1,arguments);var t=ze(e),n=t.getDate();return n}function lV(e,t){var n,r,i,o,a,s,l,u;Me(1,arguments);var f=Bu(),d=at((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=ze(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 mb(e){return Me(1,arguments),lV(e,{weekStartsOn:1})}function Iye(e){Me(1,arguments);var t=ze(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=mb(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=mb(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Fye(e){Me(1,arguments);var t=Iye(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=mb(n);return r}var Uye=6048e5;function $ye(e){Me(1,arguments);var t=ze(e),n=mb(t).getTime()-Fye(t).getTime();return Math.round(n/Uye)+1}function br(e){Me(1,arguments);var t=ze(e),n=t.getMonth();return n}function Bc(e){Me(1,arguments);var t=ze(e),n=Math.floor(t.getMonth()/3)+1;return n}function ut(e){return Me(1,arguments),ze(e).getFullYear()}function RE(e){Me(1,arguments);var t=ze(e),n=t.getTime();return n}function Bye(e,t){Me(2,arguments);var n=ze(e),r=at(t);return n.setSeconds(r),n}function Ly(e,t){Me(2,arguments);var n=ze(e),r=at(t);return n.setMinutes(r),n}function Iy(e,t){Me(2,arguments);var n=ze(e),r=at(t);return n.setHours(r),n}function zye(e){Me(1,arguments);var t=ze(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 jr(e,t){Me(2,arguments);var n=ze(e),r=at(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=zye(a);return n.setMonth(r,Math.min(o,s)),n}function pc(e,t){Me(2,arguments);var n=ze(e),r=at(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return jr(n,n.getMonth()+o*3)}function ba(e,t){Me(2,arguments);var n=ze(e),r=at(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function VL(e){Me(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Hi(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=ze(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function HL(e){Me(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Hi(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=ze(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function qo(e){Me(1,arguments);var t=ze(e);return t.setHours(0,0,0,0),t}var Vye=864e5;function vb(e,t){Me(2,arguments);var n=qo(e),r=qo(t),i=n.getTime()-db(n),o=r.getTime()-db(r);return Math.round((i-o)/Vye)}function gb(e,t){Me(2,arguments);var n=ze(e),r=ze(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function yb(e,t){Me(2,arguments);var n=ze(e),r=ze(t);return n.getFullYear()-r.getFullYear()}function uV(e){Me(1,arguments);var t=ze(e);return t.setDate(1),t.setHours(0,0,0,0),t}function DE(e){Me(1,arguments);var t=ze(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function cV(e){Me(1,arguments);var t=ze(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function LE(e){Me(1,arguments);var t=ze(e);return t.setHours(23,59,59,999),t}function Hye(e){Me(1,arguments);var t=ze(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Wye(e){Me(1,arguments);var t=ze(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function Yye(e,t){Me(2,arguments);var n=ze(e),r=ze(t);return n.getTime()===r.getTime()}function Gye(e,t){Me(2,arguments);var n=qo(e),r=qo(t);return n.getTime()===r.getTime()}function qye(e,t){Me(2,arguments);var n=ze(e),r=ze(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Kye(e,t){Me(2,arguments);var n=ze(e),r=ze(t);return n.getFullYear()===r.getFullYear()}function Zye(e,t){Me(2,arguments);var n=DE(e),r=DE(t);return n.getTime()===r.getTime()}function ol(e,t){Me(2,arguments);var n=ze(e),r=ze(t);return n.getTime()>r.getTime()}function ks(e,t){Me(2,arguments);var n=ze(e),r=ze(t);return n.getTime()<r.getTime()}function fm(e,t){Me(2,arguments);var n=ze(e).getTime(),r=ze(t.start).getTime(),i=ze(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function WL(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 Qye(e,t){if(e){if(typeof e=="string")return WL(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 WL(e,t)}}function YL(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Qye(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 Xye(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 Ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IE(e,t){return IE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},IE(e,t)}function wt(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 bb(e){return bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bb(e)}function Jye(){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 e0e(e,t){if(t&&(Hi(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 xt(e){var t=Jye();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 e0e(this,r)}}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t0e(e,t){if(Hi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fV(e){var t=t0e(e,"string");return Hi(t)==="symbol"?t:String(t)}function GL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fV(r.key),r)}}function vt(e,t,n){return t&&GL(e.prototype,t),n&&GL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function De(e,t,n){return t=fV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n0e=10,dV=function(){function e(){mt(this,e),De(this,"priority",void 0),De(this,"subPriority",0)}return vt(e,[{key:"validate",value:function(t,n){return!0}}]),e}(),r0e=function(e){wt(n,e);var t=xt(n);function n(r,i,o,a,s){var l;return mt(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return vt(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}(dV),i0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",n0e),De(Ue(r),"subPriority",-1),r}return vt(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}(dV),Ct=function(){function e(){mt(this,e),De(this,"incompatibleTokens",void 0),De(this,"priority",void 0),De(this,"subPriority",void 0)}return vt(e,[{key:"run",value:function(t,n,r,i){var o=this.parse(t,n,r,i);return o?{setter:new r0e(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,n,r){return!0}}]),e}(),o0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",140),De(Ue(r),"incompatibleTokens",["R","u","t","T"]),r}return vt(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}(Ct),tP=6e4,nP=36e5,a0e=1e3,_n={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}/},Io={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 wn(e,t){return e&&{value:t(e.value),rest:e.rest}}function sn(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Fo(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*nP+o*tP+a*a0e),rest:t.slice(n[0].length)}}function pV(e){return sn(_n.anyDigitsSigned,e)}function mn(e,t){switch(e){case 1:return sn(_n.singleDigit,t);case 2:return sn(_n.twoDigits,t);case 3:return sn(_n.threeDigits,t);case 4:return sn(_n.fourDigits,t);default:return sn(new RegExp("^\\d{1,"+e+"}"),t)}}function hV(e,t){switch(e){case 1:return sn(_n.singleDigitSigned,t);case 2:return sn(_n.twoDigitsSigned,t);case 3:return sn(_n.threeDigitsSigned,t);case 4:return sn(_n.fourDigitsSigned,t);default:return sn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function rP(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 mV(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 vV(e){return e%400===0||e%4===0&&e%100!==0}var s0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",130),De(Ue(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return{year:s,isTwoDigitYear:i==="yy"}};switch(i){case"y":return wn(mn(4,r),a);case"yo":return wn(o.ordinalNumber(r,{unit:"year"}),a);default:return wn(mn(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=mV(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}(Ct),l0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",130),De(Ue(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return{year:s,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return wn(mn(4,r),a);case"Yo":return wn(o.ordinalNumber(r,{unit:"year"}),a);default:return wn(mn(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=eP(r,a);if(o.isTwoDigitYear){var l=mV(o.year,s);return r.setUTCFullYear(l,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Au(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),Au(r,a)}}]),n}(Ct),u0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",130),De(Ue(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i){return hV(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),Af(a)}}]),n}(Ct),c0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",130),De(Ue(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i){return hV(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}(Ct),f0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",120),De(Ue(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"Q":case"QQ":return mn(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}(Ct),d0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",120),De(Ue(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"q":case"qq":return mn(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}(Ct),p0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),De(Ue(r),"priority",110),r}return vt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s-1};switch(i){case"M":return wn(sn(_n.month,r),a);case"MM":return wn(mn(2,r),a);case"Mo":return wn(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}(Ct),h0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",110),De(Ue(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s-1};switch(i){case"L":return wn(sn(_n.month,r),a);case"LL":return wn(mn(2,r),a);case"Lo":return wn(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}(Ct);function m0e(e,t,n){Me(2,arguments);var r=ze(e),i=at(t),o=nV(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var v0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",100),De(Ue(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"w":return sn(_n.week,r);case"wo":return o.ordinalNumber(r,{unit:"week"});default:return mn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=53}},{key:"set",value:function(r,i,o,a){return Au(m0e(r,o,a),a)}}]),n}(Ct);function g0e(e,t){Me(2,arguments);var n=ze(e),r=at(t),i=tV(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var y0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",100),De(Ue(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"I":return sn(_n.week,r);case"Io":return o.ordinalNumber(r,{unit:"week"});default:return mn(i.length,r)}}},{key:"validate",value:function(r,i){return i>=1&&i<=53}},{key:"set",value:function(r,i,o){return Af(g0e(r,o))}}]),n}(Ct),b0e=[31,28,31,30,31,30,31,31,30,31,30,31],_0e=[31,29,31,30,31,30,31,31,30,31,30,31],w0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",90),De(Ue(r),"subPriority",1),De(Ue(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"d":return sn(_n.date,r);case"do":return o.ordinalNumber(r,{unit:"date"});default:return mn(i.length,r)}}},{key:"validate",value:function(r,i){var o=r.getUTCFullYear(),a=vV(o),s=r.getUTCMonth();return a?i>=1&&i<=_0e[s]:i>=1&&i<=b0e[s]}},{key:"set",value:function(r,i,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),x0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",90),De(Ue(r),"subpriority",1),De(Ue(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"D":case"DD":return sn(_n.dayOfYear,r);case"Do":return o.ordinalNumber(r,{unit:"date"});default:return mn(i.length,r)}}},{key:"validate",value:function(r,i){var o=r.getUTCFullYear(),a=vV(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}(Ct);function iP(e,t,n){var r,i,o,a,s,l,u,f;Me(2,arguments);var d=Bu(),p=at((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=ze(e),v=at(t),g=m.getUTCDay(),x=v%7,b=(x+7)%7,_=(b<p?7:0)+v-g;return m.setUTCDate(m.getUTCDate()+_),m}var O0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",90),De(Ue(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return vt(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=iP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),S0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",90),De(Ue(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return vt(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 wn(mn(i.length,r),s);case"eo":return wn(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=iP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),E0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",90),De(Ue(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return vt(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 wn(mn(i.length,r),s);case"co":return wn(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=iP(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(Ct);function T0e(e,t){Me(2,arguments);var n=at(t);n%7===0&&(n=n-7);var r=1,i=ze(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 C0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",90),De(Ue(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){var a=function(s){return s===0?7:s};switch(i){case"i":case"ii":return mn(i.length,r);case"io":return o.ordinalNumber(r,{unit:"day"});case"iii":return wn(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 wn(o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiiii":return wn(o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);case"iiii":default:return wn(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=T0e(r,o),r.setUTCHours(0,0,0,0),r}}]),n}(Ct),k0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",80),De(Ue(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return vt(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(rP(o),0,0,0),r}}]),n}(Ct),j0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",80),De(Ue(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return vt(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(rP(o),0,0,0),r}}]),n}(Ct),P0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",80),De(Ue(r),"incompatibleTokens",["a","b","t","T"]),r}return vt(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(rP(o),0,0,0),r}}]),n}(Ct),A0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",70),De(Ue(r),"incompatibleTokens",["H","K","k","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"h":return sn(_n.hour12h,r);case"ho":return o.ordinalNumber(r,{unit:"hour"});default:return mn(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}(Ct),N0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",70),De(Ue(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"H":return sn(_n.hour23h,r);case"Ho":return o.ordinalNumber(r,{unit:"hour"});default:return mn(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}(Ct),M0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",70),De(Ue(r),"incompatibleTokens",["h","H","k","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"K":return sn(_n.hour11h,r);case"Ko":return o.ordinalNumber(r,{unit:"hour"});default:return mn(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}(Ct),R0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",70),De(Ue(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"k":return sn(_n.hour24h,r);case"ko":return o.ordinalNumber(r,{unit:"hour"});default:return mn(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}(Ct),D0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",60),De(Ue(r),"incompatibleTokens",["t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"m":return sn(_n.minute,r);case"mo":return o.ordinalNumber(r,{unit:"minute"});default:return mn(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}(Ct),L0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",50),De(Ue(r),"incompatibleTokens",["t","T"]),r}return vt(n,[{key:"parse",value:function(r,i,o){switch(i){case"s":return sn(_n.second,r);case"so":return o.ordinalNumber(r,{unit:"second"});default:return mn(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}(Ct),I0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",30),De(Ue(r),"incompatibleTokens",["t","T"]),r}return vt(n,[{key:"parse",value:function(r,i){var o=function(a){return Math.floor(a*Math.pow(10,-i.length+3))};return wn(mn(i.length,r),o)}},{key:"set",value:function(r,i,o){return r.setUTCMilliseconds(o),r}}]),n}(Ct),F0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",10),De(Ue(r),"incompatibleTokens",["t","T","x"]),r}return vt(n,[{key:"parse",value:function(r,i){switch(i){case"X":return Fo(Io.basicOptionalMinutes,r);case"XX":return Fo(Io.basic,r);case"XXXX":return Fo(Io.basicOptionalSeconds,r);case"XXXXX":return Fo(Io.extendedOptionalSeconds,r);case"XXX":default:return Fo(Io.extended,r)}}},{key:"set",value:function(r,i,o){return i.timestampIsSet?r:new Date(r.getTime()-o)}}]),n}(Ct),U0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",10),De(Ue(r),"incompatibleTokens",["t","T","X"]),r}return vt(n,[{key:"parse",value:function(r,i){switch(i){case"x":return Fo(Io.basicOptionalMinutes,r);case"xx":return Fo(Io.basic,r);case"xxxx":return Fo(Io.basicOptionalSeconds,r);case"xxxxx":return Fo(Io.extendedOptionalSeconds,r);case"xxx":default:return Fo(Io.extended,r)}}},{key:"set",value:function(r,i,o){return i.timestampIsSet?r:new Date(r.getTime()-o)}}]),n}(Ct),$0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",40),De(Ue(r),"incompatibleTokens","*"),r}return vt(n,[{key:"parse",value:function(r){return pV(r)}},{key:"set",value:function(r,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),n}(Ct),B0e=function(e){wt(n,e);var t=xt(n);function n(){var r;mt(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)),De(Ue(r),"priority",20),De(Ue(r),"incompatibleTokens","*"),r}return vt(n,[{key:"parse",value:function(r){return pV(r)}},{key:"set",value:function(r,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),n}(Ct),z0e={G:new o0e,y:new s0e,Y:new l0e,R:new u0e,u:new c0e,Q:new f0e,q:new d0e,M:new p0e,L:new h0e,w:new v0e,I:new y0e,d:new w0e,D:new x0e,E:new O0e,e:new S0e,c:new E0e,i:new C0e,a:new k0e,b:new j0e,B:new P0e,h:new A0e,H:new N0e,K:new M0e,k:new R0e,m:new D0e,s:new L0e,S:new I0e,X:new F0e,x:new U0e,t:new $0e,T:new B0e},V0e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H0e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,W0e=/^'([^]*?)'?$/,Y0e=/''/g,G0e=/\S/,q0e=/[a-zA-Z]/;function FO(e,t,n,r){var i,o,a,s,l,u,f,d,p,m,v,g,x,b,_,w,O,E;Me(3,arguments);var T=String(e),k=String(t),P=Bu(),D=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:P.locale)!==null&&i!==void 0?i:aV;if(!D.match)throw new RangeError("locale must contain match property");var N=at((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:P.firstWeekContainsDate)!==null&&s!==void 0?s:(p=P.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=at((v=(g=(x=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b:r==null||(_=r.locale)===null||_===void 0||(w=_.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&x!==void 0?x:P.weekStartsOn)!==null&&g!==void 0?g:(O=P.locale)===null||O===void 0||(E=O.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&v!==void 0?v:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return T===""?ze(n):new Date(NaN);var B={firstWeekContainsDate:N,weekStartsOn:F,locale:D},Y=[new i0e],H=k.match(H0e).map(function(j){var A=j[0];if(A in NE){var $=NE[A];return $(j,D.formatLong)}return j}).join("").match(V0e),Q=[],Z=YL(H),te;try{var X=function(){var j=te.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&oV(j)&&pb(j,k,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&iV(j)&&pb(j,k,e);var A=j[0],$=z0e[A];if($){var J=$.incompatibleTokens;if(Array.isArray(J)){var K=Q.find(function(he){return J.includes(he.token)||he.token===A});if(K)throw new RangeError("The format string mustn't contain `".concat(K.fullToken,"` and `").concat(j,"` at the same time"))}else if($.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:A,fullToken:j});var se=$.run(T,j,D.match,B);if(!se)return{v:new Date(NaN)};Y.push(se.setter),T=se.rest}else{if(A.match(q0e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");if(j==="''"?j="'":A==="'"&&(j=K0e(j)),T.indexOf(j)===0)T=T.slice(j.length);else return{v:new Date(NaN)}}};for(Z.s();!(te=Z.n()).done;){var z=X();if(Hi(z)==="object")return z.v}}catch(j){Z.e(j)}finally{Z.f()}if(T.length>0&&G0e.test(T))return new Date(NaN);var V=Y.map(function(j){return j.priority}).sort(function(j,A){return A-j}).filter(function(j,A,$){return $.indexOf(j)===A}).map(function(j){return Y.filter(function(A){return A.priority===j}).sort(function(A,$){return $.subPriority-A.subPriority})}).map(function(j){return j[0]}),W=ze(n);if(isNaN(W.getTime()))return new Date(NaN);var re=Jz(W,db(W)),q={},ee=YL(V),oe;try{for(ee.s();!(oe=ee.n()).done;){var le=oe.value;if(!le.validate(re,B))return new Date(NaN);var fe=le.set(re,q,B);Array.isArray(fe)?(re=fe[0],Xye(q,fe[1])):re=fe}}catch(j){ee.e(j)}finally{ee.f()}return re}function K0e(e){return e.match(W0e)[1].replace(Y0e,"'")}function Z0e(e,t){var n;Me(1,arguments);var r=at((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=ebe(e),o;if(i.date){var a=tbe(i.date,r);o=nbe(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,u;if(i.time&&(l=rbe(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(u=ibe(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 Gg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Q0e=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,X0e=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,J0e=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ebe(e){var t={},n=e.split(Gg.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Gg.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Gg.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Gg.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function tbe(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 nbe(e,t){if(t===null)return new Date(NaN);var n=e.match(Q0e);if(!n)return new Date(NaN);var r=!!n[4],i=_p(n[1]),o=_p(n[2])-1,a=_p(n[3]),s=_p(n[4]),l=_p(n[5])-1;if(r)return ube(t,s,l)?obe(t,s,l):new Date(NaN);var u=new Date(0);return!sbe(t,o,a)||!lbe(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}function _p(e){return e?parseInt(e):1}function rbe(e){var t=e.match(X0e);if(!t)return NaN;var n=UO(t[1]),r=UO(t[2]),i=UO(t[3]);return cbe(n,r,i)?n*nP+r*tP+i*1e3:NaN}function UO(e){return e&&parseFloat(e.replace(",","."))||0}function ibe(e){if(e==="Z")return 0;var t=e.match(J0e);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return fbe(r,i)?n*(r*nP+i*tP):NaN}function obe(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 abe=[31,null,31,30,31,30,31,31,30,31,30,31];function gV(e){return e%400===0||e%4===0&&e%100!==0}function sbe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(abe[t]||(gV(e)?29:28))}function lbe(e,t){return t>=1&&t<=(gV(e)?366:365)}function ube(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function cbe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function fbe(e,t){return t>=0&&t<=59}function dbe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,FE(e,t)}function FE(e,t){return FE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},FE(e,t)}function pbe(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 qL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hbe(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function mbe(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&hbe(e,t,n))return!0;e=e.parentNode||e.host}return e}function vbe(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var gbe=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 ybe(e){return e===void 0&&(e=0),function(){return++e}}var bbe=ybe(),UE,qg={},$O={},_be=["touchstart","touchmove"],wbe="ignore-react-onclickoutside";function KL(e,t){var n={},r=_be.indexOf(t)!==-1;return r&&UE&&(n.passive=!e.props.preventDefault),n}function bw(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){dbe(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():dd.findDOMNode(f)},u.enableOnClickOutside=function(){if(!(typeof document>"u"||$O[u._uid])){typeof UE>"u"&&(UE=gbe()),$O[u._uid]=!0;var f=u.props.eventTypes;f.forEach||(f=[f]),qg[u._uid]=function(d){if(u.componentNode!==null&&(u.props.preventDefault&&d.preventDefault(),u.props.stopPropagation&&d.stopPropagation(),!(u.props.excludeScrollbar&&vbe(d)))){var p=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;mbe(p,u.componentNode,u.props.outsideClickIgnoreClass)===document&&u.__outsideClickHandler(d)}},f.forEach(function(d){document.addEventListener(d,qg[u._uid],KL(qL(u),d))})}},u.disableOnClickOutside=function(){delete $O[u._uid];var f=qg[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,KL(qL(u),p))}),delete qg[u._uid]}},u.getRef=function(f){return u.instanceRef=f},u._uid=bbe(),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=pbe(l,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,I.createElement(e,u)},a}(I.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:wbe,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var yV=I.createContext(),bV=I.createContext();function xbe(e){var t=e.children,n=I.useState(null),r=n[0],i=n[1],o=I.useRef(!1);I.useEffect(function(){return function(){o.current=!0}},[]);var a=I.useCallback(function(s){o.current||i(s)},[]);return I.createElement(yV.Provider,{value:r},I.createElement(bV.Provider,{value:a},t))}var _V=function(e){return Array.isArray(e)?e[0]:e},wV=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)}},$E=function(e,t){if(typeof e=="function")return wV(e,t);e!=null&&(e.current=t)},ZL=function(e){return e.reduce(function(t,n){var r=n[0],i=n[1];return t[r]=i,t},{})},QL=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,Qr="top",Wi="bottom",Yi="right",Xr="left",oP="auto",Sv=[Qr,Wi,Yi,Xr],Rf="start",dm="end",Obe="clippingParents",xV="viewport",wp="popper",Sbe="reference",XL=Sv.reduce(function(e,t){return e.concat([t+"-"+Rf,t+"-"+dm])},[]),OV=[].concat(Sv,[oP]).reduce(function(e,t){return e.concat([t,t+"-"+Rf,t+"-"+dm])},[]),Ebe="beforeRead",Tbe="read",Cbe="afterRead",kbe="beforeMain",jbe="main",Pbe="afterMain",Abe="beforeWrite",Nbe="write",Mbe="afterWrite",Rbe=[Ebe,Tbe,Cbe,kbe,jbe,Pbe,Abe,Nbe,Mbe];function na(e){return e?(e.nodeName||"").toLowerCase():null}function mi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nu(e){var t=mi(e).Element;return e instanceof t||e instanceof Element}function Fi(e){var t=mi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function aP(e){if(typeof ShadowRoot>"u")return!1;var t=mi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dbe(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];!Fi(o)||!na(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 Lbe(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},{});!Fi(i)||!na(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Ibe={name:"applyStyles",enabled:!0,phase:"write",fn:Dbe,effect:Lbe,requires:["computeStyles"]};function Ko(e){return e.split("-")[0]}var hu=Math.max,_b=Math.min,Df=Math.round;function BE(){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 SV(){return!/^((?!chrome|android).)*safari/i.test(BE())}function Lf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Fi(e)&&(i=e.offsetWidth>0&&Df(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Df(r.height)/e.offsetHeight||1);var a=Nu(e)?mi(e):window,s=a.visualViewport,l=!SV()&&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 sP(e){var t=Lf(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 EV(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&aP(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 mi(e).getComputedStyle(e)}function Fbe(e){return["table","td","th"].indexOf(na(e))>=0}function gl(e){return((Nu(e)?e.ownerDocument:e.document)||window.document).documentElement}function _w(e){return na(e)==="html"?e:e.assignedSlot||e.parentNode||(aP(e)?e.host:null)||gl(e)}function JL(e){return!Fi(e)||$a(e).position==="fixed"?null:e.offsetParent}function Ube(e){var t=/firefox/i.test(BE()),n=/Trident/i.test(BE());if(n&&Fi(e)){var r=$a(e);if(r.position==="fixed")return null}var i=_w(e);for(aP(i)&&(i=i.host);Fi(i)&&["html","body"].indexOf(na(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 Ev(e){for(var t=mi(e),n=JL(e);n&&Fbe(n)&&$a(n).position==="static";)n=JL(n);return n&&(na(n)==="html"||na(n)==="body"&&$a(n).position==="static")?t:n||Ube(e)||t}function lP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ph(e,t,n){return hu(e,_b(t,n))}function $be(e,t,n){var r=ph(e,t,n);return r>n?n:r}function TV(){return{top:0,right:0,bottom:0,left:0}}function CV(e){return Object.assign({},TV(),e)}function kV(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Bbe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,CV(typeof e!="number"?e:kV(e,Sv))};function zbe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ko(n.placement),l=lP(s),u=[Xr,Yi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=Bbe(i.padding,n),p=sP(o),m=l==="y"?Qr:Xr,v=l==="y"?Wi:Yi,g=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],x=a[l]-n.rects.reference[l],b=Ev(o),_=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=g/2-x/2,O=d[m],E=_-p[f]-d[v],T=_/2-p[f]/2+w,k=ph(O,T,E),P=l;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-T,t)}}function Vbe(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)||EV(t.elements.popper,i)&&(t.elements.arrow=i))}const Hbe={name:"arrow",enabled:!0,phase:"main",fn:zbe,effect:Vbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function If(e){return e.split("-")[1]}var Wbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ybe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Df(n*i)/i||0,y:Df(r*i)/i||0}}function e4(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,x=typeof f=="function"?f({x:m,y:g}):{x:m,y:g};m=x.x,g=x.y;var b=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Xr,O=Qr,E=window;if(u){var T=Ev(n),k="clientHeight",P="clientWidth";if(T===mi(n)&&(T=gl(n),$a(T).position!=="static"&&s==="absolute"&&(k="scrollHeight",P="scrollWidth")),T=T,i===Qr||(i===Xr||i===Yi)&&o===dm){O=Wi;var D=d&&T===E&&E.visualViewport?E.visualViewport.height:T[k];g-=D-r.height,g*=l?1:-1}if(i===Xr||(i===Qr||i===Wi)&&o===dm){w=Yi;var N=d&&T===E&&E.visualViewport?E.visualViewport.width:T[P];m-=N-r.width,m*=l?1:-1}}var F=Object.assign({position:s},u&&Wbe),B=f===!0?Ybe({x:m,y:g},mi(n)):{x:m,y:g};if(m=B.x,g=B.y,l){var Y;return Object.assign({},F,(Y={},Y[O]=_?"0":"",Y[w]=b?"0":"",Y.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",Y))}return Object.assign({},F,(t={},t[O]=_?g+"px":"",t[w]=b?m+"px":"",t.transform="",t))}function Gbe(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:Ko(t.placement),variation:If(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,e4(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,e4(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 qbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gbe,data:{}};var Kg={passive:!0};function Kbe(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=mi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,Kg)}),s&&l.addEventListener("resize",n.update,Kg),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Kg)}),s&&l.removeEventListener("resize",n.update,Kg)}}const Zbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kbe,data:{}};var Qbe={left:"right",right:"left",bottom:"top",top:"bottom"};function Fy(e){return e.replace(/left|right|bottom|top/g,function(t){return Qbe[t]})}var Xbe={start:"end",end:"start"};function t4(e){return e.replace(/start|end/g,function(t){return Xbe[t]})}function uP(e){var t=mi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cP(e){return Lf(gl(e)).left+uP(e).scrollLeft}function Jbe(e,t){var n=mi(e),r=gl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=SV();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+cP(e),y:l}}function e_e(e){var t,n=gl(e),r=uP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=hu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=hu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+cP(e),l=-r.scrollTop;return $a(i||n).direction==="rtl"&&(s+=hu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function fP(e){var t=$a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function jV(e){return["html","body","#document"].indexOf(na(e))>=0?e.ownerDocument.body:Fi(e)&&fP(e)?e:jV(_w(e))}function hh(e,t){var n;t===void 0&&(t=[]);var r=jV(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=mi(r),a=i?[o].concat(o.visualViewport||[],fP(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(hh(_w(a)))}function zE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function t_e(e,t){var n=Lf(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 n4(e,t,n){return t===xV?zE(Jbe(e,n)):Nu(t)?t_e(t,n):zE(e_e(gl(e)))}function n_e(e){var t=hh(_w(e)),n=["absolute","fixed"].indexOf($a(e).position)>=0,r=n&&Fi(e)?Ev(e):e;return Nu(r)?t.filter(function(i){return Nu(i)&&EV(i,r)&&na(i)!=="body"}):[]}function r_e(e,t,n,r){var i=t==="clippingParents"?n_e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=n4(e,u,r);return l.top=hu(f.top,l.top),l.right=_b(f.right,l.right),l.bottom=_b(f.bottom,l.bottom),l.left=hu(f.left,l.left),l},n4(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 PV(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ko(r):null,o=r?If(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Qr:l={x:a,y:t.y-n.height};break;case Wi:l={x:a,y:t.y+t.height};break;case Yi:l={x:t.x+t.width,y:s};break;case Xr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?lP(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Rf:l[u]=l[u]-(t[f]/2-n[f]/2);break;case dm:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function pm(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?Obe:s,u=n.rootBoundary,f=u===void 0?xV:u,d=n.elementContext,p=d===void 0?wp:d,m=n.altBoundary,v=m===void 0?!1:m,g=n.padding,x=g===void 0?0:g,b=CV(typeof x!="number"?x:kV(x,Sv)),_=p===wp?Sbe:wp,w=e.rects.popper,O=e.elements[v?_:p],E=r_e(Nu(O)?O:O.contextElement||gl(e.elements.popper),l,f,a),T=Lf(e.elements.reference),k=PV({reference:T,element:w,strategy:"absolute",placement:i}),P=zE(Object.assign({},w,k)),D=p===wp?P:T,N={top:E.top-D.top+b.top,bottom:D.bottom-E.bottom+b.bottom,left:E.left-D.left+b.left,right:D.right-E.right+b.right},F=e.modifiersData.offset;if(p===wp&&F){var B=F[i];Object.keys(N).forEach(function(Y){var H=[Yi,Wi].indexOf(Y)>=0?1:-1,Q=[Qr,Wi].indexOf(Y)>=0?"y":"x";N[Y]+=B[Q]*H})}return N}function i_e(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?OV:l,f=If(r),d=f?s?XL:XL.filter(function(v){return If(v)===f}):Sv,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]=pm(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Ko(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function o_e(e){if(Ko(e)===oP)return[];var t=Fy(e);return[t4(e),t,t4(t)]}function a_e(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,x=t.options.placement,b=Ko(x),_=b===x,w=l||(_||!v?[Fy(x)]:o_e(x)),O=[x].concat(w).reduce(function(ee,oe){return ee.concat(Ko(oe)===oP?i_e(t,{placement:oe,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:g}):oe)},[]),E=t.rects.reference,T=t.rects.popper,k=new Map,P=!0,D=O[0],N=0;N<O.length;N++){var F=O[N],B=Ko(F),Y=If(F)===Rf,H=[Qr,Wi].indexOf(B)>=0,Q=H?"width":"height",Z=pm(t,{placement:F,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=H?Y?Yi:Xr:Y?Wi:Qr;E[Q]>T[Q]&&(te=Fy(te));var X=Fy(te),z=[];if(o&&z.push(Z[B]<=0),s&&z.push(Z[te]<=0,Z[X]<=0),z.every(function(ee){return ee})){D=F,P=!1;break}k.set(F,z)}if(P)for(var V=v?3:1,W=function(ee){var oe=O.find(function(le){var fe=k.get(le);if(fe)return fe.slice(0,ee).every(function(j){return j})});if(oe)return D=oe,"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 s_e={name:"flip",enabled:!0,phase:"main",fn:a_e,requiresIfExists:["offset"],data:{_skip:!1}};function r4(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 i4(e){return[Qr,Yi,Wi,Xr].some(function(t){return e[t]>=0})}function l_e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=pm(t,{elementContext:"reference"}),s=pm(t,{altBoundary:!0}),l=r4(a,r),u=r4(s,i,o),f=i4(l),d=i4(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 u_e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:l_e};function c_e(e,t,n){var r=Ko(e),i=[Xr,Qr].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,[Xr,Yi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function f_e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=OV.reduce(function(f,d){return f[d]=c_e(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 d_e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f_e};function p_e(e){var t=e.state,n=e.name;t.modifiersData[n]=PV({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const h_e={name:"popperOffsets",enabled:!0,phase:"read",fn:p_e,data:{}};function m_e(e){return e==="x"?"y":"x"}function v_e(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,x=pm(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),b=Ko(t.placement),_=If(t.placement),w=!_,O=lP(b),E=m_e(O),T=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(T){if(o){var Y,H=O==="y"?Qr:Xr,Q=O==="y"?Wi:Yi,Z=O==="y"?"height":"width",te=T[O],X=te+x[H],z=te-x[Q],V=m?-P[Z]/2:0,W=_===Rf?k[Z]:P[Z],re=_===Rf?-P[Z]:-k[Z],q=t.elements.arrow,ee=m&&q?sP(q):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:TV(),le=oe[H],fe=oe[Q],j=ph(0,k[Z],ee[Z]),A=w?k[Z]/2-V-j-le-N.mainAxis:W-j-le-N.mainAxis,$=w?-k[Z]/2+V+j+fe+N.mainAxis:re+j+fe+N.mainAxis,J=t.elements.arrow&&Ev(t.elements.arrow),K=J?O==="y"?J.clientTop||0:J.clientLeft||0:0,se=(Y=F==null?void 0:F[O])!=null?Y:0,he=te+A-se-K,Ee=te+$-se,ue=ph(m?_b(X,he):X,te,m?hu(z,Ee):z);T[O]=ue,B[O]=ue-te}if(s){var ve,ge=O==="x"?Qr:Xr,Oe=O==="x"?Wi:Yi,Ce=T[E],ke=E==="y"?"height":"width",Pe=Ce+x[ge],ce=Ce-x[Oe],de=[Qr,Xr].indexOf(b)!==-1,_e=(ve=F==null?void 0:F[E])!=null?ve:0,be=de?Pe:Ce-k[ke]-P[ke]-_e+N.altAxis,Se=de?Ce+k[ke]+P[ke]-_e-N.altAxis:ce,Ae=m&&de?$be(be,Ce,Se):ph(m?be:Pe,Ce,m?Se:ce);T[E]=Ae,B[E]=Ae-Ce}t.modifiersData[r]=B}}const g_e={name:"preventOverflow",enabled:!0,phase:"main",fn:v_e,requiresIfExists:["offset"]};function y_e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function b_e(e){return e===mi(e)||!Fi(e)?uP(e):y_e(e)}function __e(e){var t=e.getBoundingClientRect(),n=Df(t.width)/e.offsetWidth||1,r=Df(t.height)/e.offsetHeight||1;return n!==1||r!==1}function w_e(e,t,n){n===void 0&&(n=!1);var r=Fi(t),i=Fi(t)&&__e(t),o=gl(t),a=Lf(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((na(t)!=="body"||fP(o))&&(s=b_e(t)),Fi(t)?(l=Lf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=cP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function x_e(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 O_e(e){var t=x_e(e);return Rbe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function S_e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function E_e(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 o4={placement:"bottom",modifiers:[],strategy:"absolute"};function a4(){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 T_e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?o4:i;return function(a,s,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},o4,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},f=[],d=!1,p={state:u,setOptions:function(g){var x=typeof g=="function"?g(u.options):g;v(),u.options=Object.assign({},o,u.options,x),u.scrollParents={reference:Nu(a)?hh(a):a.contextElement?hh(a.contextElement):[],popper:hh(s)};var b=O_e(E_e([].concat(r,u.options.modifiers)));return u.orderedModifiers=b.filter(function(_){return _.enabled}),m(),p.update()},forceUpdate:function(){if(!d){var g=u.elements,x=g.reference,b=g.popper;if(a4(x,b)){u.rects={reference:w_e(x,Ev(b),u.options.strategy==="fixed"),popper:sP(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var w=u.orderedModifiers[_],O=w.fn,E=w.options,T=E===void 0?{}:E,k=w.name;typeof O=="function"&&(u=O({state:u,options:T,name:k,instance:p})||u)}}}},update:S_e(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){v(),d=!0}};if(!a4(a,s))return p;p.setOptions(l).then(function(g){!d&&l.onFirstUpdate&&l.onFirstUpdate(g)});function m(){u.orderedModifiers.forEach(function(g){var x=g.name,b=g.options,_=b===void 0?{}:b,w=g.effect;if(typeof w=="function"){var O=w({state:u,name:x,instance:p,options:_}),E=function(){};f.push(O||E)}})}function v(){f.forEach(function(g){return g()}),f=[]}return p}}var C_e=[Zbe,h_e,qbe,Ibe,d_e,s_e,g_e,Hbe,u_e],k_e=T_e({defaultModifiers:C_e}),j_e=typeof Element<"u",P_e=typeof Map=="function",A_e=typeof Set=="function",N_e=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Uy(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(!Uy(e[r],t[r]))return!1;return!0}var o;if(P_e&&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(!Uy(r.value[1],t.get(r.value[0])))return!1;return!0}if(A_e&&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(N_e&&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(j_e&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Uy(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var M_e=function(e,t){try{return Uy(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 R_e=Et(M_e);var D_e=[],L_e=function(e,t,n){n===void 0&&(n={});var r=I.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||D_e},o=I.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],s=o[1],l=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(d){var p=d.state,m=Object.keys(p.elements);dd.flushSync(function(){s({styles:ZL(m.map(function(v){return[v,p.styles[v]||{}]})),attributes:ZL(m.map(function(v){return[v,p.attributes[v]]}))})})},requires:["computeStyles"]}},[]),u=I.useMemo(function(){var d={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return R_e(r.current,d)?r.current||d:(r.current=d,d)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),f=I.useRef();return QL(function(){f.current&&f.current.setOptions(u)},[u]),QL(function(){if(!(e==null||t==null)){var d=n.createPopper||k_e,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}},I_e=function(){},F_e=function(){return Promise.resolve(null)},U_e=[];function $_e(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?U_e:o,s=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,d=I.useContext(yV),p=I.useState(null),m=p[0],v=p[1],g=I.useState(null),x=g[0],b=g[1];I.useEffect(function(){$E(u,m)},[u,m]);var _=I.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,a,x]),w=L_e(s||d,m,_),O=w.state,E=w.styles,T=w.forceUpdate,k=w.update,P=I.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:b},forceUpdate:T||I_e,update:k||F_e}},[v,b,n,O,E,k,T]);return _V(f)(P)}var B_e=function(){},z_e=B_e;const V_e=Et(z_e);function H_e(e){var t=e.children,n=e.innerRef,r=I.useContext(bV),i=I.useCallback(function(o){$E(n,o),wV(r,o)},[n,r]);return I.useEffect(function(){return function(){return $E(n,null)}},[]),I.useEffect(function(){V_e(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),_V(t)({ref:i})}function W_e(e,t){if(Me(2,arguments),Hi(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=ze(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=jr(n,t.month)),t.date!=null&&n.setDate(at(t.date)),t.hours!=null&&n.setHours(at(t.hours)),t.minutes!=null&&n.setMinutes(at(t.minutes)),t.seconds!=null&&n.setSeconds(at(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(at(t.milliseconds)),n)}function s4(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 wb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s4(Object(n),!0).forEach(function(r){ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VE(e){return VE=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},VE(e)}function qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l4(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 Kn(e,t,n){return t&&l4(e.prototype,t),n&&l4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ne(e,t,n){return(t=AV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ff(){return Ff=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},Ff.apply(this,arguments)}function Zn(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 xb(e){return xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xb(e)}function HE(e,t){return HE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},HE(e,t)}function ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qn(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=xb(e);if(t){var i=xb(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 ie(o)}(this,n)}}function hm(e){return function(t){if(Array.isArray(t))return BO(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 BO(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 BO(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 BO(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 AV(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 u4=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"})}},c4=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"})}},Y_e={p:c4,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return u4(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}}",u4(i,t)).replace("{{time}}",c4(o,t))}},mh=12,G_e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Rt(e){var t=e?typeof e=="string"||e instanceof String?Z0e(e):ze(e):new Date;return bs(t)?t:null}function bs(e,t){return t=t||new Date("1/1/1000"),um(e)&&!ks(e,t)}function Xt(e,t,n){if(n==="en")return UL(e,t,{awareOfUnicodeTokens:!0});var r=Hs(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&mu()&&Hs(mu())&&(r=Hs(mu())),UL(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function No(e,t){var n=t.dateFormat,r=t.locale;return e&&Xt(e,Array.isArray(n)?n[0]:n,r)||""}function f4(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 Iy(Ly(Bye(e,a===void 0?0:a),o),r)}function Zo(e,t,n){var r=Hs(t||mu());return lV(e,{locale:r,weekStartsOn:n})}function Vs(e){return uV(e)}function Bp(e){return cV(e)}function d4(e){return DE(e)}function p4(){return qo(Rt())}function js(e,t){return e&&t?Kye(e,t):!e&&!t}function co(e,t){return e&&t?qye(e,t):!e&&!t}function Ob(e,t){return e&&t?Zye(e,t):!e&&!t}function It(e,t){return e&&t?Gye(e,t):!e&&!t}function tu(e,t){return e&&t?Yye(e,t):!e&&!t}function $y(e,t,n){var r,i=qo(t),o=LE(n);try{r=fm(e,{start:i,end:o})}catch{r=!1}return r}function mu(){return(typeof window<"u"?window:globalThis).__localeId__}function Hs(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function dP(e,t){return Xt(jr(Rt(),e),"LLLL",t)}function NV(e,t){return Xt(jr(Rt(),e),"LLL",t)}function ww(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 xw(e,{minDate:n,maxDate:r})||i&&i.some(function(u){return It(e,u)})||o&&o.some(function(u){var f=u.start,d=u.end;return fm(e,{start:f,end:d})})||a&&!a.some(function(u){return It(e,u)})||s&&!s.some(function(u){var f=u.start,d=u.end;return fm(e,{start:f,end:d})})||l&&!l(Rt(e))||!1}function pP(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 fm(e,{start:o,end:a})}):n&&n.some(function(i){return It(e,i)})||!1}function MV(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 xw(e,{minDate:uV(n),maxDate:Hye(r)})||i&&i.some(function(s){return co(e,s)})||o&&!o.some(function(s){return co(e,s)})||a&&!a(Rt(e))||!1}function zO(e,t,n,r){var i=ut(e),o=br(e),a=ut(t),s=br(t),l=ut(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 q_e(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 xw(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return Ob(e,s)})||o&&!o.some(function(s){return Ob(e,s)})||a&&!a(Rt(e))||!1}function VO(e,t,n){if(!um(t)||!um(n))return!1;var r=ut(t),i=ut(n);return r<=e&&i>=e}function RV(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 xw(s,{minDate:cV(n),maxDate:Wye(r)})||i&&i.some(function(l){return js(s,l)})||o&&!o.some(function(l){return js(s,l)})||a&&!a(Rt(s))||!1}function HO(e,t,n,r){var i=ut(e),o=Bc(e),a=ut(t),s=Bc(t),l=ut(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 xw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&vb(e,n)<0||r&&vb(e,r)>0}function h4(e,t){return t.some(function(n){return Go(n)===Go(e)&&Yo(n)===Yo(e)})}function m4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&h4(e,n)||r&&!h4(e,r)||i&&!i(e)||!1}function v4(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Rt(),a=Iy(Ly(o,Yo(e)),Go(e)),s=Iy(Ly(o,Yo(n)),Go(n)),l=Iy(Ly(o,Yo(r)),Go(r));try{i=!fm(a,{start:s,end:l})}catch{i=!1}return i}function g4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Mf(e,1);return n&&gb(n,i)>0||r&&r.every(function(o){return gb(o,i)>0})||!1}function y4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=xo(e,1);return n&&gb(i,n)>0||r&&r.every(function(o){return gb(i,o)>0})||!1}function b4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=cm(e,1);return n&&yb(n,i)>0||r&&r.every(function(o){return yb(o,i)>0})||!1}function _4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Nf(e,1);return n&&yb(i,n)>0||r&&r.every(function(o){return yb(i,o)>0})||!1}function DV(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return vb(i,t)>=0});return VL(r)}return n?VL(n):t}function LV(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return vb(i,t)<=0});return HL(r)}return n?HL(n):t}function w4(){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(yw(o)){var a=Xt(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if(VE(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=Xt(f[d],"MM.dd.yyyy"),v=n.get(m)||[];v.includes(u)||(v.push(u),n.set(m,v))}}}return n}function K_e(){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(yw(i)){var a=Xt(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(hm(f),[o]):[o],n.set(a,s)}}}),n}function Z_e(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=ME(Mye(e,Go(i[s])),Yo(i[s])),u=ME(e,(n+1)*r);ol(l,t)&&ks(l,u)&&a.push(i[s])}return a}function x4(e){return e<10?"0".concat(e):"".concat(e)}function zc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mh,n=Math.ceil(ut(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function O4(e){var t=e.getSeconds(),n=e.getMilliseconds();return ze(e.getTime()-1e3*t-n)}function Q_e(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=ut(n)<=a),r&&s&&(s=ut(r)>=a),s&&i.push(a)}return i}var X_e=bw(function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;qn(this,n),ne(ie(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(ie(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?ut(i.props.minDate):null,d=i.props.maxDate?ut(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(ie(i),"onChange",function(l){i.props.onChange(l)}),ne(ie(i),"handleClickOutside",function(){i.props.onCancel()}),ne(ie(i),"shiftYears",function(l){var u=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:u})}),ne(ie(i),"incrementYears",function(){return i.shiftYears(1)}),ne(ie(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Q_e(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=I.createRef(),i}return Kn(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=fr({"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}()),J_e=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ne(ie(r),"renderSelectOptions",function(){for(var s=r.props.minDate?ut(r.props.minDate):1900,l=r.props.maxDate?ut(r.props.maxDate):2100,u=[],f=s;f<=l;f++)u.push(M.createElement("option",{key:f,value:f},f));return u}),ne(ie(r),"onSelectChange",function(s){r.onChange(s.target.value)}),ne(ie(r),"renderSelectMode",function(){return M.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),ne(ie(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(ie(r),"renderDropdown",function(){return M.createElement(X_e,{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(ie(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),ne(ie(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)}),ne(ie(r),"toggleDropdown",function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)})}),ne(ie(r),"handleYearChange",function(s,l){r.onSelect(s,l),r.setOpen()}),ne(ie(r),"onSelect",function(s,l){r.props.onSelect&&r.props.onSelect(s,l)}),ne(ie(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return Kn(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}(),ewe=bw(function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",function(s){return r.props.month===s}),ne(ie(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(ie(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?M.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),ne(ie(r),"onChange",function(s){return r.props.onChange(s)}),ne(ie(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Kn(n,[{key:"render",value:function(){return M.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),twe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ne(ie(r),"renderSelectOptions",function(s){return s.map(function(l,u){return M.createElement("option",{key:u,value:u},l)})}),ne(ie(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(ie(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(ie(r),"renderDropdown",function(s){return M.createElement(ewe,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})}),ne(ie(r),"renderScrollMode",function(s){var l=r.state.dropdownVisible,u=[r.renderReadView(!l,s)];return l&&u.unshift(r.renderDropdown(s)),u}),ne(ie(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)}),ne(ie(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Kn(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 NV(a,i.props.locale)}:function(a){return dP(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 nwe(e,t){for(var n=[],r=Vs(e),i=Vs(t);!ol(r,i);)n.push(Rt(r)),r=xo(r,1);return n}var rwe=bw(function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),ne(ie(i=t.call(this,r)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var a=RE(o),s=js(i.props.date,o)&&co(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(ie(i),a),"aria-selected":s?"true":void 0},s?M.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Xt(o,i.props.dateFormat,i.props.locale))})}),ne(ie(i),"onChange",function(o){return i.props.onChange(o)}),ne(ie(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:nwe(i.props.minDate,i.props.maxDate)},i}return Kn(n,[{key:"render",value:function(){var r=fr({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return M.createElement("div",{className:r},this.renderOptions())}}]),n}()),iwe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),ne(ie(r),"renderSelectOptions",function(){for(var s=Vs(r.props.minDate),l=Vs(r.props.maxDate),u=[];!ol(s,l);){var f=RE(s);u.push(M.createElement("option",{key:f,value:f},Xt(s,r.props.dateFormat,r.props.locale))),s=xo(s,1)}return u}),ne(ie(r),"onSelectChange",function(s){r.onChange(s.target.value)}),ne(ie(r),"renderSelectMode",function(){return M.createElement("select",{value:RE(Vs(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),ne(ie(r),"renderReadView",function(s){var l=Xt(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(ie(r),"renderDropdown",function(){return M.createElement(rwe,{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(ie(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),ne(ie(r),"onChange",function(s){r.toggleDropdown();var l=Rt(parseInt(s));js(r.props.date,l)&&co(r.props.date,l)||r.props.onChange(l)}),ne(ie(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Kn(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}(),owe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"dayEl",M.createRef()),ne(ie(r),"handleClick",function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)}),ne(ie(r),"handleMouseEnter",function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)}),ne(ie(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),ne(ie(r),"isSameDay",function(s){return It(r.props.day,s)}),ne(ie(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(ie(r),"isDisabled",function(){return ww(r.props.day,r.props)}),ne(ie(r),"isExcluded",function(){return pP(r.props.day,r.props)}),ne(ie(r),"isStartOfWeek",function(){return It(r.props.day,Zo(r.props.day,r.props.locale,r.props.calendarStartDay))}),ne(ie(r),"isSameWeek",function(s){return r.props.showWeekPicker&&It(s,Zo(r.props.day,r.props.locale,r.props.calendarStartDay))}),ne(ie(r),"getHighLightedClass",function(){var s=r.props,l=s.day,u=s.highlightDates;if(!u)return!1;var f=Xt(l,"MM.dd.yyyy");return u.get(f)}),ne(ie(r),"getHolidaysClass",function(){var s=r.props,l=s.day,u=s.holidays;if(!u)return!1;var f=Xt(l,"MM.dd.yyyy");return u.has(f)?[u.get(f).className]:void 0}),ne(ie(r),"isInRange",function(){var s=r.props,l=s.day,u=s.startDate,f=s.endDate;return!(!u||!f)&&$y(l,u,f)}),ne(ie(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,x=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(f||d||p)||!x||!m&&r.isDisabled())&&(f&&g&&(ks(x,g)||tu(x,g))?$y(u,x,g):(d&&v&&(ol(x,v)||tu(x,v))||!(!p||!v||g||!ol(x,v)&&!tu(x,v)))&&$y(u,v,x))}),ne(ie(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 It(u,d?p:f)}),ne(ie(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 It(u,d||p?m:f)}),ne(ie(r),"isRangeStart",function(){var s=r.props,l=s.day,u=s.startDate,f=s.endDate;return!(!u||!f)&&It(u,l)}),ne(ie(r),"isRangeEnd",function(){var s=r.props,l=s.day,u=s.startDate,f=s.endDate;return!(!u||!f)&&It(f,l)}),ne(ie(r),"isWeekend",function(){var s=Lye(r.props.day);return s===0||s===6}),ne(ie(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===br(r.props.day)}),ne(ie(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(br(r.props.day)+1)%12===r.props.month}),ne(ie(r),"isCurrentDay",function(){return r.isSameDay(Rt())}),ne(ie(r),"isSelected",function(){return r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected)}),ne(ie(r),"getClassNames",function(s){var l,u=r.props.dayClassName?r.props.dayClassName(s):void 0;return fr("react-datepicker__day",u,"react-datepicker__day--"+Xt(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(ie(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(Xt(l,"PPPP",r.props.locale))}),ne(ie(r),"getTitle",function(){var s=r.props,l=s.day,u=s.holidays,f=u===void 0?new Map:u,d=Xt(l,"MM.dd.yyyy");return f.has(d)&&f.get(d).holidayNames.length>0?f.get(d).holidayNames.join(", "):""}),ne(ie(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)&&It(f,u))?0:-1}),ne(ie(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(ie(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(zL(r.props.day),r.props.day):zL(r.props.day)}),ne(ie(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 Kn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),awe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"weekNumberEl",M.createRef()),ne(ie(r),"handleClick",function(s){r.props.onClick&&r.props.onClick(s)}),ne(ie(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),ne(ie(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!It(r.props.date,r.props.selected)&&It(r.props.date,r.props.preSelection)}),ne(ie(r),"getTabIndex",function(){return r.props.showWeekPicker&&r.props.showWeekNumber&&(r.isKeyboardSelected()||It(r.props.date,r.props.selected)&&It(r.props.preSelection,r.props.selected))?0:-1}),ne(ie(r),"handleFocusWeekNumber",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.isInputFocused&&It(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 Kn(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":It(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return M.createElement("div",{ref:this.weekNumberEl,className:fr(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}(),swe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l)}),ne(ie(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),ne(ie(r),"handleWeekClick",function(s,l,u){if(typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,l,u),r.props.showWeekPicker){var f=Zo(s,r.props.locale,r.props.calendarStartDay);r.handleDayClick(f,u)}r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),ne(ie(r),"formatWeekNumber",function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):function(l,u){var f=u&&Hs(u)||mu()&&Hs(mu());return $ye(l,f?{locale:f}:null)}(s)}),ne(ie(r),"renderDays",function(){var s=Zo(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(ie(r),s,u):void 0;l.push(M.createElement(awe,{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=Ed(s,d);return M.createElement(owe,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(ie(r),p),onMouseEnter:r.handleDayMouseEnter.bind(ie(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(ie(r),"startOfWeek",function(){return Zo(r.props.day,r.props.locale,r.props.calendarStartDay)}),ne(ie(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!It(r.startOfWeek(),r.props.selected)&&It(r.startOfWeek(),r.props.preSelection)}),r}return Kn(n,[{key:"render",value:function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":It(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return M.createElement("div",{className:fr(r)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),IV="two_columns",FV="three_columns",UV="four_columns",WO=ne(ne(ne({},IV,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),FV,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),UV,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function S4(e,t){return e?UV:t?IV:FV}var lwe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",hm(Array(12)).map(function(){return M.createRef()})),ne(ie(r),"QUARTER_REFS",hm(Array(4)).map(function(){return M.createRef()})),ne(ie(r),"isDisabled",function(s){return ww(s,r.props)}),ne(ie(r),"isExcluded",function(s){return pP(s,r.props)}),ne(ie(r),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l,r.props.orderInDisplay)}),ne(ie(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),ne(ie(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),ne(ie(r),"isRangeStartMonth",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate;return!(!f||!d)&&co(jr(u,s),f)}),ne(ie(r),"isRangeStartQuarter",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate;return!(!f||!d)&&Ob(pc(u,s),f)}),ne(ie(r),"isRangeEndMonth",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate;return!(!f||!d)&&co(jr(u,s),d)}),ne(ie(r),"isRangeEndQuarter",function(s){var l=r.props,u=l.day,f=l.startDate,d=l.endDate;return!(!f||!d)&&Ob(pc(u,s),d)}),ne(ie(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,x=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||p||m)||!x)&&(d&&g?zO(x,g,s,f):(p&&v||!(!m||!v||g))&&zO(v,x,s,f))}),ne(ie(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=jr(f,s),v=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return co(m,p?v:d)}),ne(ie(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=jr(f,s),g=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return co(v,p||m?g:d)}),ne(ie(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,x=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||p||m)||!x)&&(d&&g?HO(x,g,s,f):(p&&v||!(!m||!v||g))&&HO(v,x,s,f))}),ne(ie(r),"isWeekInMonth",function(s){var l=r.props.day,u=Ed(s,6);return co(s,l)||co(u,l)}),ne(ie(r),"isCurrentMonth",function(s,l){return ut(s)===ut(Rt())&&l===br(Rt())}),ne(ie(r),"isCurrentQuarter",function(s,l){return ut(s)===ut(Rt())&&l===Bc(Rt())}),ne(ie(r),"isSelectedMonth",function(s,l,u){return br(u)===l&&ut(s)===ut(u)}),ne(ie(r),"isSelectedQuarter",function(s,l,u){return Bc(s)===l&&ut(s)===ut(u)}),ne(ie(r),"renderWeeks",function(){for(var s=[],l=r.props.fixedHeight,u=0,f=!1,d=Zo(Vs(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(M.createElement(swe,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:u,day:d,month:br(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=hb(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(ie(r),"onMonthClick",function(s,l){r.handleDayClick(Vs(jr(r.props.day,l)),s)}),ne(ie(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(Vs(jr(r.props.day,s)))}),ne(ie(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(ie(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,x=s.key;if(x!=="Tab"&&s.preventDefault(),!p){var b=S4(v,m),_=WO[b].verticalNavigationOffset,w=WO[b].grid;switch(x){case"Enter":r.onMonthClick(s,l),g(f);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,xo(d,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,Mf(d,1));break;case"ArrowUp":r.handleMonthNavigation(w[0].includes(l)?l+12-_:l-_,Mf(d,_));break;case"ArrowDown":r.handleMonthNavigation(w[w.length-1].includes(l)?l-12+_:l+_,xo(d,_))}}}),ne(ie(r),"onQuarterClick",function(s,l){r.handleDayClick(d4(pc(r.props.day,l)),s)}),ne(ie(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(d4(pc(r.props.day,s)))}),ne(ie(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(ie(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,sV(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,Dye(r.props.preSelection,1))}}),ne(ie(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,x=l.monthClassName,b=l.excludeDates,_=l.includeDates,w=x?x(jr(u,s)):void 0,O=jr(u,s);return fr("react-datepicker__month-text","react-datepicker__month-".concat(s),w,{"react-datepicker__month-text--disabled":(m||v||b||_)&&MV(O,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(u,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&br(g)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":zO(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(ie(r),"getTabIndex",function(s){var l=br(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),ne(ie(r),"getQuarterTabIndex",function(s){var l=Bc(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),ne(ie(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=jr(m,s),g=r.isDisabled(v)||r.isExcluded(v)?p:f;return"".concat(g," ").concat(Xt(v,"MMMM yyyy"))}),ne(ie(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,x=l.disabledKeyboardNavigation;return fr("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(m||v)&&q_e(pc(u,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(u,s,p),"react-datepicker__quarter-text--keyboard-selected":!x&&Bc(g)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":HO(f,d,s,u),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})}),ne(ie(r),"getMonthContent",function(s){var l=r.props,u=l.showFullMonthYearPicker,f=l.renderMonthContent,d=l.locale,p=l.day,m=NV(s,d),v=dP(s,d);return f?f(s,m,v,p):u?v:m}),ne(ie(r),"getQuarterContent",function(s){var l=r.props,u=l.renderQuarterContent,f=function(d,p){return Xt(pc(Rt(),d),"QQQ",p)}(s,l.locale);return u?u(s,f):f}),ne(ie(r),"renderMonths",function(){var s=r.props,l=s.showTwoColumnMonthYearPicker,u=s.showFourColumnMonthYearPicker,f=s.day,d=s.selected;return WO[S4(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(x){r.onMonthClick(x,v)},onKeyDown:function(x){r.onMonthKeyDown(x,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(ie(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(ie(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 fr("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 Kn(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(Xt(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),$V=function(e){Zn(n,M.Component);var t=Qn(n);function n(){var r;qn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return ne(ie(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),ne(ie(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(ie(r),"handleClick",function(s){(r.props.minTime||r.props.maxTime)&&v4(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&m4(s,r.props)||r.props.onChange(s)}),ne(ie(r),"isSelectedTime",function(s){return r.props.selected&&(l=r.props.selected,u=s,O4(l).getTime()===O4(u).getTime());var l,u}),ne(ie(r),"isDisabledTime",function(s){return(r.props.minTime||r.props.maxTime)&&v4(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&m4(s,r.props)}),ne(ie(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*Go(s)+Yo(s))%r.props.intervals!=0&&l.push("react-datepicker__time-list-item--injected"),l.join(" ")}),ne(ie(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(ie(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||Rt(),d=qo(f),p=r.props.injectTimes&&r.props.injectTimes.sort(function(w,O){return w-O}),m=60*function(w){var O=new Date(w.getFullYear(),w.getMonth(),w.getDate()),E=new Date(w.getFullYear(),w.getMonth(),w.getDate(),24);return Math.round((+E-+O)/36e5)}(f),v=m/u,g=0;g<v;g++){var x=ME(d,g*u);if(s.push(x),p){var b=Z_e(d,x,g,u,p);s=s.concat(b)}}var _=s.reduce(function(w,O){return O.getTime()<=f.getTime()?O:w},s[0]);return s.map(function(w,O){return M.createElement("li",{key:O,onClick:r.handleClick.bind(ie(r),w),className:r.liClasses(w),ref:function(E){w===_&&(r.centerLi=E)},onKeyDown:function(E){r.handleOnKeyDown(E,w)},tabIndex:w===_?0:-1,role:"option","aria-selected":r.isSelectedTime(w)?"true":void 0,"aria-disabled":r.isDisabledTime(w)?"true":void 0},Xt(w,l,r.props.locale))})}),r}return Kn(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($V,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var uwe=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),ne(ie(i=t.call(this,r)),"YEAR_REFS",hm(Array(i.props.yearItemNumber)).map(function(){return M.createRef()})),ne(ie(i),"isDisabled",function(o){return ww(o,i.props)}),ne(ie(i),"isExcluded",function(o){return pP(o,i.props)}),ne(ie(i),"selectingDate",function(){var o;return(o=i.props.selectingDate)!==null&&o!==void 0?o:i.props.preSelection}),ne(ie(i),"updateFocusOnPaginate",function(o){var a=(function(){this.YEAR_REFS[o].current.focus()}).bind(ie(i));window.requestAnimationFrame(a)}),ne(ie(i),"handleYearClick",function(o,a){i.props.onDayClick&&i.props.onDayClick(o,a)}),ne(ie(i),"handleYearNavigation",function(o,a){var s=i.props,l=s.date,u=s.yearItemNumber,f=zc(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(ie(i),"isSameDay",function(o,a){return It(o,a)}),ne(ie(i),"isCurrentYear",function(o){return o===ut(Rt())}),ne(ie(i),"isRangeStart",function(o){return i.props.startDate&&i.props.endDate&&js(ba(Rt(),o),i.props.startDate)}),ne(ie(i),"isRangeEnd",function(o){return i.props.startDate&&i.props.endDate&&js(ba(Rt(),o),i.props.endDate)}),ne(ie(i),"isInRange",function(o){return VO(o,i.props.startDate,i.props.endDate)}),ne(ie(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?VO(o,i.selectingDate(),d):(l&&f||!(!u||!f||d))&&VO(o,f,i.selectingDate()))}),ne(ie(i),"isSelectingRangeStart",function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.startDate,l=a.selectsStart,u=ba(Rt(),o);return js(u,l?i.selectingDate():s)}),ne(ie(i),"isSelectingRangeEnd",function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.endDate,l=a.selectsEnd,u=a.selectsRange,f=ba(Rt(),o);return js(f,l||u?i.selectingDate():s)}),ne(ie(i),"isKeyboardSelected",function(o){var a=Bp(ba(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!It(a,Bp(i.props.selected))&&It(a,Bp(i.props.preSelection))}),ne(ie(i),"onYearClick",function(o,a){var s=i.props.date;i.handleYearClick(Bp(ba(s,a)),o)}),ne(ie(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,Nf(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(a-1,cm(i.props.preSelection,1))}}),ne(ie(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 fr("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===ut(u),"react-datepicker__year-text--disabled":(s||l||f||d||p)&&RV(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(ie(i),"getYearTabIndex",function(o){return i.props.disabledKeyboardNavigation?"-1":o===ut(i.props.preSelection)?"0":"-1"}),ne(ie(i),"getYearContainerClassNames",function(){var o=i.props,a=o.selectingDate,s=o.selectsStart,l=o.selectsEnd,u=o.selectsRange;return fr("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(s||l||u)})}),ne(ie(i),"getYearContent",function(o){return i.props.renderYearContent?i.props.renderYearContent(o):o}),i}return Kn(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=zc(a,s),d=f.startPeriod,p=f.endPeriod,m=function(g){i.push(M.createElement("div",{ref:r.YEAR_REFS[g-d],onClick:function(x){r.onYearClick(x,g)},onKeyDown:function(x){r.onYearKeyDown(x,g)},tabIndex:r.getYearTabIndex(g),className:r.getYearClassNames(g),onMouseEnter:function(x){return l(x,g)},onMouseLeave:function(x){return u(x,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}(),cwe=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),ne(ie(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(ie(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 Kn(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 fwe(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",Ff({className:"react-datepicker__triangle"},o)),n)}var dwe=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],pwe=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),ne(ie(i=t.call(this,r)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),ne(ie(i),"setClickOutsideRef",function(){return i.containerRef.current}),ne(ie(i),"handleDropdownFocus",function(o){(function(){var a=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return dwe.some(function(s){return a.indexOf(s)>=0})})(o.target)&&i.props.onDropdownFocus()}),ne(ie(i),"getDateInView",function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,u=DV(i.props),f=LV(i.props),d=Rt(),p=l||s||a;return p||(u&&ks(d,u)?u:f&&ol(d,f)?f:d)}),ne(ie(i),"increaseMonth",function(){i.setState(function(o){var a=o.date;return{date:xo(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),ne(ie(i),"decreaseMonth",function(){i.setState(function(o){var a=o.date;return{date:Mf(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),ne(ie(i),"handleDayClick",function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)}),ne(ie(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),ne(ie(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),ne(ie(i),"handleYearMouseEnter",function(o,a){i.setState({selectingDate:ba(Rt(),a)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,a)}),ne(ie(i),"handleYearMouseLeave",function(o,a){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,a)}),ne(ie(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(ie(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(ie(i),"handleCustomMonthChange",function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))}),ne(ie(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),ne(ie(i),"changeYear",function(o){i.setState(function(a){var s=a.date;return{date:ba(s,o)}},function(){return i.handleYearChange(i.state.date)})}),ne(ie(i),"changeMonth",function(o){i.setState(function(a){var s=a.date;return{date:jr(s,o)}},function(){return i.handleMonthChange(i.state.date)})}),ne(ie(i),"changeMonthYear",function(o){i.setState(function(a){var s=a.date;return{date:ba(jr(s,br(o)),ut(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),ne(ie(i),"header",function(){var o=Zo(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=Ed(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:fr("react-datepicker__day-name",f)},u)}))}),ne(ie(i),"formatWeekday",function(o,a){return i.props.formatWeekDay?function(s,l,u){return l(Xt(s,"EEEE",u))}(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?function(s,l){return Xt(s,"EEE",l)}(o,a):function(s,l){return Xt(s,"EEEEEE",l)}(o,a)}),ne(ie(i),"decreaseYear",function(){i.setState(function(o){var a=o.date;return{date:cm(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ne(ie(i),"clearSelectingDate",function(){i.setState({selectingDate:null})}),ne(ie(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=b4(i.state.date,i.props);break;case i.props.showYearPicker:o=function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=_.minDate,O=_.yearItemNumber,E=O===void 0?mh:O,T=zc(Bp(cm(b,E)),E).endPeriod,k=w&&ut(w);return k&&k>T||!1}(i.state.date,i.props);break;default:o=g4(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,x=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?x:v},M.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),ne(ie(i),"increaseYear",function(){i.setState(function(o){var a=o.date;return{date:Nf(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ne(ie(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=_4(i.state.date,i.props);break;case i.props.showYearPicker:o=function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=_.maxDate,O=_.yearItemNumber,E=O===void 0?mh:O,T=zc(Nf(b,E),E).startPeriod,k=w&&ut(w);return k&&k<T||!1}(i.state.date,i.props);break;default:o=y4(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,x=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?x:v},M.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),ne(ie(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(" ")},Xt(o,i.props.dateFormat,i.props.locale))}),ne(ie(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return M.createElement(J_e,{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:ut(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),ne(ie(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return M.createElement(twe,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:br(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),ne(ie(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return M.createElement(iwe,{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(ie(i),"handleTodayButtonClick",function(o){i.props.onSelect(p4(),o),i.props.setPreSelection&&i.props.setPreSelection(p4())}),ne(ie(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(ie(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(ie(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=g4(i.state.date,i.props),u=y4(i.state.date,i.props),f=b4(i.state.date,i.props),d=_4(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(wb(wb({},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(ie(i),"renderYearHeader",function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=zc(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):ut(o))}),ne(ie(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(ie(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=Mf(i.state.date,s),u=(o=i.props.monthSelectedIn)!==null&&o!==void 0?o:s,f=0;f<i.props.monthsShown;++f){var d=xo(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(lwe,{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(ie(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?M.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),M.createElement(uwe,Ff({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(ie(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return M.createElement($V,{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(ie(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),a=bs(o)&&i.props.selected?"".concat(x4(o.getHours()),":").concat(x4(o.getMinutes())):"";if(i.props.showTimeInput)return M.createElement(cwe,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),ne(ie(i),"renderAriaLiveRegion",function(){var o,a=zc(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?ut(i.state.date):"".concat(dP(br(i.state.date),i.props.locale)," ").concat(ut(i.state.date)),M.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)}),ne(ie(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 Kn(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||It(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!It(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!co(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||fwe;return M.createElement("div",{style:{display:"contents"},ref:this.containerRef},M.createElement(r,{className:fr("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:mh}}}]),n}(),hwe=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return M.isValidElement(t)?M.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(a){typeof t.props.onClick=="function"&&t.props.onClick(a),typeof i=="function"&&i(a)}}):typeof t=="string"?M.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):M.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},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"}))},BV=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Kn(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 lu.createPortal(this.props.children,this.el)}}]),n}(),mwe=function(e){return!e.disabled&&e.tabIndex!==-1},zV=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),ne(ie(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(mwe)}),ne(ie(i),"handleFocusStart",function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),ne(ie(i),"handleFocusEnd",function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()}),i.tabLoopRef=M.createRef(),i}return Kn(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}(),vwe=function(e){Zn(n,M.Component);var t=Qn(n);function n(){return qn(this,n),t.apply(this,arguments)}return Kn(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,x=i.portalHost;if(!s){var b=fr("react-datepicker-popper",o);r=M.createElement($_e,Ff({modifiers:u,placement:f},d),function(w){var O=w.ref,E=w.style,T=w.placement,k=w.arrowProps;return M.createElement(zV,{enableTabLoop:m},M.createElement("div",{ref:O,style:E,className:b,"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(BV,{portalId:g,portalHost:x},r));var _=fr("react-datepicker-wrapper",a);return M.createElement(xbe,{className:"react-datepicker-manager"},M.createElement(H_e,null,function(w){var O=w.ref;return M.createElement("div",{ref:O,className:_},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),E4="react-datepicker-ignore-onclickoutside",gwe=bw(pwe),YO="Date input not valid.",ywe=function(e){Zn(n,M.Component);var t=Qn(n);function n(r){var i;return qn(this,n),ne(ie(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:Rt()}),ne(ie(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 um(l)?[].concat(hm(a),[wb(wb({},s),{},{date:l})]):a},[])}),ne(ie(i),"calcInitialState",function(){var o,a=i.getPreSelection(),s=DV(i.props),l=LV(i.props),u=s&&ks(a,qo(s))?s:l&&ol(a,LE(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:w4(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),ne(ie(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),ne(ie(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),ne(ie(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),ne(ie(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:GO},function(){o||i.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&i.setBlur(),i.setState({inputValue:null})})})}),ne(ie(i),"inputOk",function(){return yw(i.state.preSelection)}),ne(ie(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),ne(ie(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(ie(i),"sendFocusBackToInput",function(){i.preventFocusTimeout&&i.clearPreventFocusTimeout(),i.setState({preventFocus:!0},function(){i.preventFocusTimeout=setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})})}),ne(ie(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),ne(ie(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),ne(ie(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),ne(ie(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),ne(ie(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),ne(ie(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(ie(i),a),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:bwe});var u,f,d,p,m,v,g,x,b=(u=l.target.value,f=i.props.dateFormat,d=i.props.locale,p=i.props.strictParsing,m=i.props.minDate,v=null,g=Hs(d)||Hs(mu()),x=!0,Array.isArray(f)?(f.forEach(function(_){var w=FO(u,_,new Date,{locale:g});p&&(x=bs(w,m)&&u===Xt(w,_,d)),bs(w,m)&&x&&(v=w)}),v):(v=FO(u,f,new Date,{locale:g}),p?x=bs(v)&&u===Xt(v,f,d):bs(v)||(f=f.match(G_e).map(function(_){var w=_[0];return w==="p"||w==="P"?g?(0,Y_e[w])(_,g.formatLong):w:_}).join(""),u.length>0&&(v=FO(u,f.slice(0,u.length),new Date)),bs(v)||(v=new Date(u))),bs(v)&&x?v:null));i.props.showTimeSelectOnly&&i.props.selected&&b&&!It(b,i.props.selected)&&(b=W_e(i.props.selected,{hours:Go(b),minutes:Yo(b),seconds:BL(b)})),!b&&l.target.value||(i.props.showWeekPicker&&(b=Zo(b,i.props.locale,i.props.calendarStartDay)),i.setSelected(b,l,!0))}}),ne(ie(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=Zo(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||ks(o,u)||i.setOpen(!1)}}),ne(ie(i),"setSelected",function(o,a,s,l){var u=o;if(i.props.showYearPicker){if(u!==null&&RV(ut(u),i.props))return}else if(i.props.showMonthYearPicker){if(u!==null&&MV(u,i.props))return}else if(u!==null&&ww(u,i.props))return;var f=i.props,d=f.onChange,p=f.selectsRange,m=f.startDate,v=f.endDate;if(!tu(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=f4(u,{hour:Go(i.props.selected),minute:Yo(i.props.selected),second:BL(i.props.selected)})),i.props.inline||i.setState({preSelection:u}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var g=m&&!v,x=m&&v;!m&&!v?d([u,null],a):g&&(ks(u,m)?d([u,null],a):d([m,u],a)),x&&d([u,null],a)}else d(u,a);s||(i.props.onSelect(u,a),i.setState({inputValue:null}))}),ne(ie(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=Zo(o,i.props.locale,i.props.calendarStartDay));var u=qo(o);if(a&&s)l=$y(o,i.props.minDate,i.props.maxDate);else if(a){var f=qo(i.props.minDate);l=ol(o,f)||tu(u,f)}else if(s){var d=LE(i.props.maxDate);l=ks(o,d)||tu(u,d)}}l&&i.setState({preSelection:o})}),ne(ie(i),"toggleCalendar",function(){i.setOpen(!i.state.open)}),ne(ie(i),"handleTimeChange",function(o){var a=i.props.selected?i.props.selected:i.getPreSelection(),s=i.props.selected?o:f4(a,{hour:Go(o),minute:Yo(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(ie(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),ne(ie(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=Rt(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===GO?(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:YO})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()}),ne(ie(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(ie(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var a=o.key,s=Rt(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:YO});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=i.props.showWeekPicker?$L(s,1):Rye(s,1);break;case"ArrowRight":l=i.props.showWeekPicker?hb(s,1):Ed(s,1);break;case"ArrowUp":l=$L(s,1);break;case"ArrowDown":l=hb(s,1);break;case"PageUp":l=Mf(s,1);break;case"PageDown":l=xo(s,1);break;case"Home":l=cm(s,1);break;case"End":l=Nf(s,1);break;default:l=null}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:YO}));if(o.preventDefault(),i.setState({lastPreSelectChange:GO}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var u=br(s),f=br(l),d=ut(s),p=ut(l);u!==f||d!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),ne(ie(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.sendFocusBackToInput())}),ne(ie(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(ie(i),"clear",function(){i.onClearClick()}),ne(ie(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(ie(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?M.createElement(gwe,{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:K_e(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:E4,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(ie(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(No(i.props.startDate,{dateFormat:u,locale:l}),". ").concat(i.props.endDate?"End date: "+No(i.props.endDate,{dateFormat:u,locale:l}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(No(i.props.selected,{dateFormat:s,locale:l})):i.props.showYearPicker?"Selected year: ".concat(No(i.props.selected,{dateFormat:"yyyy",locale:l})):i.props.showMonthYearPicker?"Selected month: ".concat(No(i.props.selected,{dateFormat:"MMMM yyyy",locale:l})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(No(i.props.selected,{dateFormat:"yyyy, QQQ",locale:l})):"Selected date: ".concat(No(i.props.selected,{dateFormat:u,locale:l})),M.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)}),ne(ie(i),"renderDateInput",function(){var o,a=fr(i.props.className,ne({},E4,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=No(f,p),v=d?No(d,p):"";return"".concat(m," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):No(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",fr(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(ie(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:fr("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 Kn(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?br(o)!==br(a)||ut(o)!==ut(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:w4(this.props.highlightDates)}),i.focused||tu(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,s=r.toggleCalendarOnIconClick,l=this.state.open;return M.createElement("div",{className:"react-datepicker__input-container".concat(i?" react-datepicker__view-calendar-icon":"")},i&&M.createElement(hwe,Ff({icon:o,className:"".concat(a," ").concat(l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),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(zV,{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(BV,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),M.createElement("div",null,this.renderInputContainer(),i)}return M.createElement(vwe,{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:mh,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(),bwe="input",GO="navigate";const WE=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||!r,a=I.useRef();return y.jsxs("div",{className:"icon-input-container",children:[y.jsx(ywe,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??mz,className:We("icon-input-container__input form-control",t),ref:a}),o&&y.jsx(Ne,{icon:npe,className:"icon-input-container__icon",onClick:()=>{var s;return(s=a.current)==null?void 0:s.input.focus()}})]})},_we=e=>y.jsx(WE,{...e,dateFormat:Bj,showTimeSelect:!0,timeIntervals:10}),qO=({children:e,infoTooltip:t,checked:n,onChange:r})=>y.jsxs("p",{children:[y.jsx(h9,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&y.jsx(Dy,{placement:"right",children:t})]}),wwe=({isOpen:e,toggle:t})=>y.jsxs(Ka,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[y.jsx(Za,{toggle:t,children:"Info"}),y.jsxs(aa,{children:[y.jsxs("p",{children:["When the ",y.jsx("b",{children:y.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),y.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),y.jsxs("ul",{children:[y.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),y.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",y.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),y.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),xwe=()=>{const[e,t]=Cn();return y.jsxs(y.Fragment,{children:[y.jsx(jf,{className:"p-0",title:"What does this mean?",onClick:t,children:y.jsx(Ne,{icon:Ak})}),y.jsx(wwe,{isOpen:e,toggle:t})]})},KO=e=>typeof e=="string"?nl(e):e,Owe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Swe=e=>"error"in e,VV=({mode:e,saving:t,onSave:n,initialState:r,tagsList:i})=>{const{TagsSelector:o,DomainSelector:a}=en(VV),[s,l]=I.useState(r),u=()=>l(r),f=$u("deviceLongUrls"),d=e==="edit",p=Owe(s),m=e==="create-basic",v=E=>l(T=>({...T,tags:E})),g=(E,T)=>Gl(E)?E:Gl(T)?null:void 0,x=Wj(async()=>n({...s,validSince:il(s.validSince)??null,validUntil:il(s.validUntil)??null,maxVisits:Gl(s.maxVisits)?Number(s.maxVisits):null}).then(E=>!d&&!Swe(E)&&u()).catch(()=>{}));I.useEffect(()=>{l(r)},[r]);const b=(E,T,k="text",P={},D={})=>y.jsx(zr,{...D,children:y.jsx(Cu,{name:E,id:E,type:k,placeholder:T,value:s[E]??"",onChange:P.onChange??(N=>l(F=>({...F,[E]:N.target.value}))),...P})}),_=(E,T,k)=>{var P;return y.jsx(xge,{icon:k,name:E,id:E,type:"url",placeholder:T,value:((P=s.deviceLongUrls)==null?void 0:P[E])??"",onChange:D=>l(N=>{var F;return{...N,deviceLongUrls:{...N.deviceLongUrls??{},[E]:g(D.target.value,(F=r.deviceLongUrls)==null?void 0:F[E])}}})})},w=(E,T,k={})=>y.jsx(_we,{name:E,selected:s[E]?KO(s[E]):null,placeholderText:T,isClearable:!0,onChange:P=>l(D=>({...D,[E]:P})),...k}),O=y.jsxs(y.Fragment,{children:[y.jsx(zr,{children:y.jsx(Cu,{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}))})}),y.jsxs(Pr,{children:[m&&b("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),y.jsx("div",{className:m?"col-lg-6 mb-3":"col-12",children:y.jsx(o,{tags:i.tags,selectedTags:s.tags??[],onChange:v})})]})]});return y.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:x,children:[m&&O,!m&&y.jsxs(y.Fragment,{children:[y.jsxs(Pr,{children:[y.jsx("div",{className:We("mb-3",{"col-sm-6":f,"col-12":!f}),children:y.jsx(Qt,{title:"Main options",className:"mb-3",children:O})}),f&&y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Device-specific long URLs",children:[y.jsx(zr,{children:_("android","Android-specific redirection",spe)}),y.jsx(zr,{children:_("ios","iOS-specific redirection",ape)}),_("desktop","Desktop-specific redirection",Zee)]})})]}),y.jsxs(Pr,{children:[y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Customize the short URL",children:[b("title","Title","text",{onChange:({target:E})=>l(T=>({...T,title:g(E.value,r.title)}))}),!d&&p&&y.jsxs(y.Fragment,{children:[y.jsxs(Pr,{children:[y.jsx("div",{className:"col-lg-6",children:b("customSlug","Custom slug","text",{disabled:Gl(s.shortCodeLength)})}),y.jsx("div",{className:"col-lg-6",children:b("shortCodeLength","Short code length","number",{min:4,disabled:Gl(s.customSlug)})})]}),y.jsx(a,{value:s.domain,onChange:E=>l(T=>({...T,domain:E}))})]})]})}),y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Limit access to the short URL",children:[b("maxVisits","Maximum number of visits allowed","number",{min:1}),y.jsx("div",{className:"mb-3",children:w("validSince","Enabled since...",{maxDate:s.validUntil?KO(s.validUntil):void 0})}),w("validUntil","Enabled until...",{minDate:s.validSince?KO(s.validSince):void 0})]})})]}),y.jsxs(Pr,{children:[y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Extra checks",children:[y.jsx(qO,{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&&y.jsxs("p",{children:[y.jsx(h9,{inline:!0,className:"me-2",checked:s.findIfExists,onChange:E=>l(T=>({...T,findIfExists:E})),children:"Use existing URL if found"}),y.jsx(xwe,{})]})]})}),y.jsx("div",{className:"col-sm-6 mb-3",children:y.jsxs(Qt,{title:"Configure behavior",children:[y.jsx(qO,{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"}),y.jsx(qO,{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"})]})})]})]}),y.jsx("div",{className:"text-center",children:y.jsx(_t,{outline:!0,color:"primary",disabled:t||!s.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},Ewe=tn(VV,["TagsSelector","DomainSelector"]),Twe=({active:e,allText:t,onChange:n})=>y.jsxs(y.Fragment,{children:[y.jsx(Re,{active:e==="all",onClick:()=>n("all"),children:t}),y.jsx(Re,{divider:!0,tag:"hr"}),jme.map(r=>y.jsx(Re,{active:e===r,onClick:()=>n(r),children:bz(r)},r))]}),Cwe=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>y.jsxs("div",{className:"row",children:[y.jsx("div",{className:"col-md-6",children:y.jsx(WE,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),y.jsx("div",{className:"col-md-6",children:y.jsx(WE,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&Pf(o))})})]}),hP=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=I.useMemo(()=>bz(t)??n,[t,n]),[o,a]=I.useMemo(()=>ub(t)?[void 0,t]:[t,void 0],[t]),s=I.useCallback(l=>{ub(l)?e(_z(l),l):e(l)},[e]);return y.jsxs(Qa,{disabled:r,text:i,children:[y.jsx(Twe,{allText:n,active:a,onChange:s}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Custom:"}),y.jsx(Re,{text:!0,children:y.jsx(Cwe,{...o,onStartDateChange:l=>s({...o,startDate:l}),onEndDateChange:l=>s({...o,endDate:l})})})]})},kwe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},jwe=({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 y.jsxs(Qa,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Visits:"}),y.jsx(Re,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),y.jsx(Re,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),y.jsx(Re,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0}),children:y.jsx("i",{children:"Reset to defaults"})})]})},HV=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i})=>{const{ExportShortUrlsBtn:o,TagsSelector:a}=en(HV),[{search:s,tags:l,startDate:u,endDate:f,excludeBots:d,excludeMaxVisitsReached:p,excludePastValidUntil:m,tagsMode:v="any"},g]=mw(),x=$u("filterDisabledUrls"),b=vl("visits"),[_,w]=I.useState(),O=I.useCallback(({startDate:P,endDate:D},N)=>{g({startDate:il(P)??void 0,endDate:il(D)??void 0}),w(N)},[g]),E=I.useCallback(P=>g({search:P||void 0}),[g]),T=I.useCallback(P=>g({tags:P}),[g]),k=I.useCallback(()=>g({tagsMode:v==="any"?"all":"any"}),[v,g]);return y.jsxs("div",{className:We("short-urls-filtering-bar-container",e),children:[y.jsx(gv,{initialValue:s,onChange:E}),y.jsxs(nw,{className:"mt-3",children:[y.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:l,onChange:T}),l.length>1&&y.jsxs(y.Fragment,{children:[y.jsx(_t,{outline:!0,color:"secondary",onClick:k,id:"tagsModeBtn","aria-label":"Change tags mode",children:y.jsx(Ne,{className:"short-urls-filtering-bar__tags-icon",icon:v==="all"?x7:Eee})}),y.jsx(Jr,{target:"tagsModeBtn",placement:"left",children:v==="all"?"With all the tags.":"With any of the tags."})]})]}),y.jsxs(Pr,{className:"flex-lg-row-reverse",children:[y.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-fill",children:y.jsx(hP,{defaultText:"All short URLs",dateRangeOrInterval:_??yz(u,f),onDatesChange:O})}),y.jsx(jwe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:d??(b==null?void 0:b.excludeBots),excludeMaxVisitsReached:p,excludePastValidUntil:m},onChange:g,supportsDisabledFiltering:x})]})}),y.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:y.jsx(o,{amount:t})}),y.jsx("div",{className:"col-6 d-lg-none mt-3",children:y.jsx(yv,{prefixed:!1,items:kwe,order:n,onChange:r})})]})]})},Pwe=tn(HV,["ExportShortUrlsBtn","TagsSelector"]);function vh({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:y.jsx(Ne,{icon:e.dir==="ASC"?gee:jee,className:n})}const hc=2,YE="...",WV=(e,t)=>{const n=Dj(Math.max(hc,e-hc),Math.min(t-1,e+hc)+1);return e-hc>hc&&n.unshift(YE),e+hc<t-1&&n.push(YE),n.unshift(1),n.push(t),n},mm=e=>e===YE,YV=e=>mm(e)?e:hn(e),GV=(e,t)=>mm(e)?`${e}_${t}`:`${e}`,Awe=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=ml(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return y.jsx("div",{className:"pb-3"});const a=()=>WV(n,r).map((s,l)=>y.jsx(cu,{disabled:mm(s),active:n===s,children:y.jsx(fu,{tag:$t,to:o(s),children:YV(s)})},GV(s,l)));return y.jsxs(uj,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[y.jsx(cu,{disabled:n===1,children:y.jsx(fu,{previous:!0,tag:$t,to:o(n-1)})}),a(),y.jsx(cu,{disabled:n>=r,children:y.jsx(fu,{next:!0,tag:$t,to:o(n+1)})})]})},Nwe={field:"dateCreated",dir:"DESC"},qV=Oo(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=en(qV),{page:s}=hd(),l=xr(),[{tags:u,search:f,startDate:d,endDate:p,orderBy:m,tagsMode:v,excludeBots:g,excludePastValidUntil:x,excludeMaxVisitsReached:b},_]=mw(),w=Zj(),[O,E]=I.useState(m??((n=w.shortUrlsList)==null?void 0:n.defaultOrdering)??Nwe),{pagination:T}=(t==null?void 0:t.shortUrls)??{},k=I.useMemo(()=>{var Q;return g??((Q=w.visits)==null?void 0:Q.excludeBots)},[g,(r=w.visits)==null?void 0:r.excludeBots]),P=$u("excludeBotsOnShortUrls"),D=I.useCallback((Q,Z)=>{_({orderBy:{field:Q,dir:Z}}),E({field:Q,dir:Z})},[_]),N=Q=>()=>D(Q,aw(Q,O.field,O.dir)),F=Q=>y.jsx(vh,{currentOrder:O,field:Q}),B=I.useCallback(Q=>_({tags:[...new Set([...u,Q])]}),[u,_]),Y=I.useCallback(({field:Q,dir:Z})=>P&&k&&Q==="visits"?{field:"nonBotVisits",dir:Z}:{field:Q,dir:Z},[k,P]),H=Mj();return I.useEffect(()=>{e({page:s,searchTerm:f,tags:u,startDate:d,endDate:p,orderBy:Y(O),tagsMode:v,excludePastValidUntil:x,excludeMaxVisitsReached:b})},[e,Y,s,f,u,d,p,O,v,x,b]),y.jsxs(Nj,{value:H,children:[y.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:O,handleOrderBy:D,className:"mb-3"}),y.jsx(Rj,{type:"short-urls",className:"mb-3"}),y.jsxs(di,{body:!0,className:"pb-0",children:[y.jsx(o,{shortUrlsList:t,orderByColumn:N,renderOrderIcon:F,onTagClick:B}),y.jsx(Awe,{paginator:T,currentQueryString:l.search})]})]})},()=>[Dr.visits]),Mwe=tn(qV,["ShortUrlsTable","ShortUrlsFilteringBar"]),KV=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=en(KV),{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?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&(!l||l.data.length===0)?y.jsx("tr",{children:y.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(m=>y.jsx(o,{shortUrl:m,onTagClick:r},m.shortUrl));return y.jsxs("table",{className:d,children:[y.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:y.jsxs("tr",{children:[y.jsxs("th",{className:f,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),y.jsxs("th",{className:f,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),y.jsxs("th",{className:"short-urls-table__header-cell",children:[y.jsxs(jf,{className:We("p-0",u),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",y.jsxs(jf,{className:We("p-0",u),onClick:e==null?void 0:e("longUrl"),children:[y.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),y.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),y.jsx("th",{className:f,onClick:e==null?void 0:e("visits"),children:y.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),y.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),y.jsx("tbody",{children:p()})]})},Rwe=tn(KV,["ShortUrlsRow"]),Dwe=(e,t)=>{e.factory("ShortUrlsList",Mwe),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",Rwe),e.factory("ShortUrlsRow",hge),e.factory("ShortUrlsRowMenu",mge),e.factory("CreateShortUrlResult",tge),e.factory("ShortUrlForm",Ewe),e.decorator("ShortUrlForm",t(["tagsList"])),e.factory("CreateShortUrl",Dve),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",Lve),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>nge),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.factory("QrCodeModal",sge),e.factory("ExportShortUrlsBtn",rge),e.factory("ShortUrlsFilteringBar",Pwe),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",Tve,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",gge,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",_ge,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Ove,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",wge,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",Eve,"apiClientFactory"),e.serviceFactory("createShortUrl",vge,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",xve,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>kz),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",bge,"apiClientFactory")},Lwe=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:u}=i;return y.jsxs(Ka,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[y.jsx(Za,{toggle:t,className:"text-danger",children:"Delete tag"}),y.jsxs(aa,{children:["Are you sure you want to delete tag ",y.jsx("b",{children:e}),"?",s&&y.jsx(li,{type:"error",small:!0,className:"mt-2",children:y.jsx(Ua,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),y.jsxs(Uu,{children:[y.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),y.jsx(_t,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},ZV=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=en(ZV),[s,l]=I.useState(e),[u,f]=I.useState(a.getColorForKey(e)),{editing:d,error:p,edited:m,errorData:v}=o,g=Wj(async()=>{await t({oldName:e,newName:s,color:u}),n()}),x=I.useCallback(()=>m&&r({oldName:e,newName:s,color:u}),[u,m,s,e,r]);return y.jsx(Ka,{isOpen:i,toggle:n,centered:!0,onClosed:x,children:y.jsxs("form",{name:"editTag",onSubmit:g,children:[y.jsx(Za,{toggle:n,children:"Edit tag"}),y.jsxs(aa,{children:[y.jsxs(nw,{children:[y.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:u,borderColor:u},children:[y.jsx(Ne,{icon:yee,className:"position-absolute top-50 start-50 translate-middle text-white"}),y.jsx(Cu,{className:"form-control-color opacity-0",type:"color",value:u,onChange:b=>f(b.target.value)})]}),y.jsx(Cu,{value:s,placeholder:"Tag",required:!0,onChange:({target:b})=>l(b.value)})]}),p&&y.jsx(li,{type:"error",small:!0,className:"mt-2",children:y.jsx(Ua,{errorData:v,fallbackMessage:"Something went wrong while editing the tag :("})})]}),y.jsxs(Uu,{children:[y.jsx(_t,{type:"button",color:"link",onClick:n,children:"Cancel"}),y.jsx(_t,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},Iwe=tn(ZV,["ColorGenerator"]),zl={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},mP=Symbol("Create new tag"),QV=Symbol("No options"),wc=()=>{},Xn=M.createContext(void 0);function T4(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Fwe(e){return e.selectionStart===0&&e.selectionEnd===0}function Uwe(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function Ow(e){return`${e}-label`}function $we(e){return`${e}-combobox`}function Bwe(e){return`${e}-input`}function XV(e){return`${e}-listbox`}function JV(e,t){return`${e}-option-${qwe(t)}`}function zwe(e,t){if((e==null?void 0:e.value)===mP&&e.disabled===!1)return{value:t,label:t}}function Vwe(e){const t=zwe(e.activeOption,e.value)||e.activeOption||Xwe(e.value,e.options);return t&&!t.disabled?t:void 0}function Hwe(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const Wwe=/%value%/;function Sb(e,t){return e.replace(Wwe,t)}function Ywe(e,t){const n=tH(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 Gwe=/\s+/g;function GE(e){return`${String(e.value)}-${e.label}`}function qwe(e){return GE(e).replace(Gwe,"_")}function qE(e,t){return t.findIndex(({value:n})=>n===e.value)}const Kwe=/[-\\^$*+?.()|[\]{}]/g;function eH(e){return e.replace(Kwe,"\\$&")}function tH(e){return new RegExp(eH(e),"i")}function Zwe(e){return new RegExp(`^${eH(e)}$`,"i")}function Qwe(e,t){if(e){const n=tH(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function Xwe(e,t){const n=Zwe(e);return t.find(r=>n.test(r.label))||null}const Jwe={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function exe({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:l,managerRef:u}=I.useContext(Xn),f=I.useMemo(()=>{const v=D=>{const N=D.currentTarget.value;u.current.updateInputValue(N),document.activeElement===a.current&&u.current.listBoxExpand(N)},g=()=>{u.current.listBoxExpand()},x=D=>{var N;((N=o.current)==null?void 0:N.contains(D.relatedTarget))===!1&&u.current.listBoxCollapse()},b=()=>{u.current.listBoxExpand()},_=D=>{const{activeIndex:N,isExpanded:F}=u.current.state;F?(D.preventDefault(),u.current.updateActiveIndex(N+1)):(Uwe(D.currentTarget)||D.altKey)&&(D.preventDefault(),u.current.listBoxExpand())},w=D=>{const{activeIndex:N,isExpanded:F}=u.current.state;F?(D.preventDefault(),u.current.updateActiveIndex(N-1)):Fwe(D.currentTarget)&&(D.preventDefault(),u.current.listBoxExpand())},O=D=>{const{isExpanded:N,options:F}=u.current.state;N&&(D.preventDefault(),u.current.updateActiveIndex(F.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:N}=u.current.state,F=N[N.length-1];D===""&&F&&u.current.selectTag(F)}},P=D=>{u.current.state.isExpanded&&(D.preventDefault(),u.current.selectTag())};return{onBlur:x,onChange:v,onClick:b,onFocus:g,onKeyDown:D=>{if(D.key===zl.UpArrow)return w(D);if(D.key===zl.DownArrow)return _(D);if(D.key===zl.PageUp)return E(D);if(D.key===zl.PageDown)return O(D);if(D.key===zl.Escape)return T();if(D.key===zl.Backspace)return k();if(r.includes(D.key))return P(D)}}},[e,o,r,a,u]),{activeOption:d,isExpanded:p,value:m}=u.current.state;return{...Jwe,"aria-autocomplete":"list","aria-activedescendant":d?JV(i,d):void 0,"aria-controls":XV(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":l&&n||void 0,"aria-invalid":l,"aria-labelledby":Ow(i),"aria-expanded":p,id:Bwe(i),onBlur:s?wc:f.onBlur,onChange:s?wc:f.onChange,onClick:s?wc:f.onClick,onFocus:s?wc:f.onFocus,onKeyDown:s?wc:f.onKeyDown,ref:a,role:"combobox",type:"text",value:m}}const txe={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},nxe=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function rxe({allowResize:e=!0,text:t}){const n=I.useRef(null),{inputRef:r}=I.useContext(Xn),[i,o]=I.useState(null);return I.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);nxe.forEach(s=>{const l=a.getPropertyValue(s);n.current.style.setProperty(s,l)})}},[e,r,n]),I.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:txe}}}function ixe(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=I.useContext(Xn),i=r.current.state.activeIndex===-1,o=I.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return I.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":Ow(e),id:XV(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function oxe({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 x=I.useRef(),[b,_]=I.useState(null),[w,O]=I.useState(!1),[E,T]=I.useState(""),k=I.useMemo(()=>{const H=g(E,v);return E&&(t&&H.push({disabled:p?!p(E):!1,label:r,value:mP}),H.length===0&&H.push({disabled:!0,label:i,value:QV})),H},[t,r,i,p,v,g,E]),P=b?qE(b,k):-1,D=e?Math.max(P,0):P,N=k[D],F={activeIndex:D,activeOption:N,isExpanded:w,options:k,selected:m,value:E},B={tagsAdded:x.current?T4(m,x.current.state.selected):[],tagsDeleted:x.current?T4(x.current.state.selected,m):[]},Y={listBoxCollapse(H){w&&(!f||f(H??F.value))&&(O(!1),_(null),s==null||s())},listBoxExpand(H){w||(!d||d(H??F.value))&&(O(!0),_(k[D]),l==null||l())},updateActiveIndex(H){const Q=Hwe(H,k.length,e?0:-1);_(k[Q])},updateInputValue(H){E!==H&&(T(H),u==null||u(H))},selectTag(H){if(H??(H=Vwe(F)),H){const Q=qE(H,F.selected);Q>-1?a(Q):o(H),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return x.current={...Y,flags:B,state:F},x}function axe(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=I.useContext(Xn),o=I.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,l=a.disabled??!1,u=qE(a,i.current.state.selected)>-1,f=I.useCallback(()=>{var p;i.current.selectTag(),(p=n.current)==null||p.focus()},[n,i]),d=I.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return uxe(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:JV(t,a),onClick:f,onMouseDown:d,ref:o,role:"option",tabIndex:-1}}}function sxe({inputRef:e,managerRef:t}){return I.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 lxe({onBlur:e,onFocus:t}){const[n,r]=I.useState(!1),{id:i,inputRef:o}=I.useContext(Xn),a=I.useRef(null),s=I.useMemo(()=>({"aria-describedby":Ow(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 uxe(e,t,n){I.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 cxe(e,t){const{isDisabled:n,managerRef:r}=I.useContext(Xn),i=r.current.state.selected[e],o=I.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:Sb(t,i.label),onClick:n?wc:o}}}function fxe(){var e;const{inputRef:t,managerRef:n}=I.useContext(Xn),r=I.useRef(),i=n.current.flags.tagsDeleted.length,o=(e=r.current)==null?void 0:e.contains(document.activeElement);return I.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 dxe={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function pxe({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=I.useContext(Xn),r=I.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:dxe},r.current.join(`
|
||
`))}function hxe({children:e}){const{classNames:t,comboBoxRef:n,id:r}=I.useContext(Xn);return M.createElement("div",{className:t.comboBox,id:$we(r),ref:n},e)}const mxe=({classNames:e,text:t})=>M.createElement("mark",{className:e.highlight},t);function vxe({option:e,query:t,render:n=mxe}){const{classNames:r}=I.useContext(Xn);if(e.value===mP||e.value===QV)return M.createElement(M.Fragment,null,Sb(e.label,t));if(t){const i=Ywe(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 gxe=M.memo(vxe),yxe=({classNames:e,inputWidth:t,...n})=>M.createElement("input",{className:e.input,style:{width:t},...n});function bxe({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=yxe}){const{classNames:s}=I.useContext(Xn),{value:l,...u}=exe({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=l.length<o.length?o:l,{width:d,sizerProps:p}=rxe({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 _xe=({children:e,classNames:t,id:n})=>M.createElement("div",{className:t.label,id:n},e);function wxe({children:e,render:t=_xe}){const{classNames:n,id:r}=I.useContext(Xn);return t({children:e,classNames:n,id:Ow(r)})}const xxe=({children:e,classNames:t,...n})=>M.createElement("div",{className:t.listBox,...n},e);function Oxe({children:e,render:t=xxe}){const{classNames:n,managerRef:r}=I.useContext(Xn),i=ixe();return!r.current.state.isExpanded||M.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Sxe=({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 Exe({children:e,index:t,render:n=Sxe}){const{classNames:r}=I.useContext(Xn),{option:i,optionProps:o}=axe(t);return n({classNames:r,children:e,option:i,...o})}const Txe=({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 Cxe({children:e,onBlur:t,onFocus:n,render:r=Txe}){const{classNames:i,isDisabled:o,isInvalid:a}=I.useContext(Xn),{isActive:s,rootProps:l}=lxe({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const kxe=({classNames:e,tag:t,...n})=>M.createElement("button",{type:"button",className:e.tag,...n},M.createElement("span",{className:e.tagName},t.label));function jxe({render:e=kxe,index:t,title:n}){const{classNames:r}=I.useContext(Xn),{tag:i,tagProps:o}=cxe(t,n);return e({classNames:r,tag:i,...o})}function Pxe({children:e,label:t}){const{classNames:n}=I.useContext(Xn),{listRef:r}=fxe();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 Axe={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"},Nxe=[zl.Enter];function Mxe({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=Axe,collapseOnSelect:u=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=Nxe,id:p="react-tags",isDisabled:m=!1,isInvalid:v=!1,labelText:g="Select tags",newOptionText:x="Add %value%",noOptionsText:b="No options found for %value%",onAdd:_,onBlur:w,onCollapse:O,onDelete:E,onExpand:T,onFocus:k,onInput:P,onShouldCollapse:D,onShouldExpand:N,onValidate:F,placeholderText:B="Add a tag",renderHighlight:Y,renderInput:H,renderLabel:Q,renderListBox:Z,renderOption:te,renderRoot:X,renderTag:z,selected:V=[],suggestions:W=[],suggestionsTransform:re=Qwe,tagListLabelText:q="Selected tags"},ee){const oe=I.useRef(null),le=I.useRef(null),fe=I.useRef(null),j=oxe({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionText:x,noOptionsText:b,onAdd:_,onDelete:E,onCollapse:O,onExpand:T,onInput:P,onShouldCollapse:D,onShouldExpand:N,onValidate:F,selected:V,suggestions:W,suggestionsTransform:re}),A=sxe({inputRef:le,managerRef:j});return ee&&(typeof ee=="function"?ee(A):ee.current=A),M.createElement(Xn.Provider,{value:{classNames:l,comboBoxRef:oe,id:p,inputRef:le,isDisabled:m,isInvalid:v,listBoxRef:fe,managerRef:j}},M.createElement(Cxe,{onBlur:w,onFocus:k,render:X},M.createElement(wxe,{render:Q},g),M.createElement(Pxe,{label:q},j.current.state.selected.map(($,J)=>M.createElement(jxe,{key:GE($),index:J,render:z,title:f}))),M.createElement(hxe,null,M.createElement(bxe,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:B,render:H}),M.createElement(Oxe,{render:Z},j.current.state.options.map(($,J)=>M.createElement(Exe,{key:GE($),index:J,render:te},M.createElement(gxe,{option:$,query:j.current.state.value,render:Y}))))),M.createElement(pxe,{ariaAddedText:i,ariaDeletedText:s})))}const Rxe=M.forwardRef(Mxe),Dxe=/\s+/g,nH=e=>e.trim().toLowerCase().replace(Dxe,"-"),rH=({color:e})=>y.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),iH=({tag:e,colorGenerator:t})=>y.jsx(rH,{color:t.getColorForKey(e)});let C4=1;const oH="Tag not found",aH="Add tag",Lxe=e=>e!==oH,Ixe=e=>e===aH,k4=e=>(C4+=1,{label:e,value:`${e}${C4}`}),Fxe=e=>({tag:t,onClick:n})=>y.jsx(gw,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),Uxe=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=Lxe(n.label),s=Ixe(n.label);return y.jsx("div",{className:We(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?y.jsxs(y.Fragment,{children:[!s&&y.jsx(iH,{tag:`${n.label}`,colorGenerator:e}),s?y.jsxs("i",{children:['Add "',nH(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):y.jsx("i",{children:n.label})})},sH=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=en(sH),a=vl("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=hl();return y.jsx(Rxe,{ref:l,selected:e.map(k4),suggestions:r.filter(u=>!e.includes(u)).map(k4),renderTag:Fxe(o),renderOption:Uxe(o,l),activateFirstOption:!0,allowNew:!i,newOptionText:aH,noOptionsText:oH,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(nH)])])})},$xe=tn(sH,["ColorGenerator"]),KE="shlink/tagDelete",Bxe={deleting:!1,deleted:!1,error:!1},lH=Mn(`${KE}/tagDeleted`),zxe=e=>{const t=pr(`${KE}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Dn({name:KE,initialState:Bxe,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:Qi(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},vP="shlink/tagEdit",Vxe={editing:!1,edited:!1,error:!1},uH=Mn(`${vP}/tagEdited`),Hxe=(e,t)=>pr(`${vP}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Wxe=e=>Dn({name:vP,initialState:Vxe,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:Qi(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}})}}),gP="shlink/tagsList",ZO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},j4=(e,t)=>n=>n===e?t:n,P4=(e,t)=>e.filter(n=>n!==t),Yxe=(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}),Gxe=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),{})),qxe=e=>pr(`${gP}/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}}),cH=Mn(`${gP}/filterTags`),Kxe=(e,t)=>Dn({name:gP,initialState:ZO,reducers:{},extraReducers:n=>{n.addCase(cH,(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})=>({...ZO,error:!0,errorData:Qi(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...ZO,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(lH,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:P4(r,a),filteredTags:P4(i,a)})),n.addCase(uH,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(j4(s.oldName,s.newName)).sort(),filteredTags:i.map(j4(s.oldName,s.newName)).sort()})),n.addCase(Sd,(r,{payload:i})=>({...r,stats:Yxe(Gxe(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),Zxe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},fH=Oo(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=en(fH),o=Zj(),[a,s]=I.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),l=I.useMemo(()=>{const f=t.filteredTags.map(d=>{var p,m,v;const g=t.stats[d],x=((p=o.visits)!=null&&p.excludeBots?(m=g==null?void 0:g.visitsSummary)==null?void 0:m.nonBots:(v=g==null?void 0:g.visitsSummary)==null?void 0:v.total)??(g==null?void 0:g.visitsCount)??0;return{tag:d,visits:x,shortUrls:(g==null?void 0:g.shortUrlsCount)??0}});return v9(f,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),u=Mj();return t.loading?y.jsx(el,{loading:!0}):t.error?y.jsx(li,{type:"error",children:y.jsx(Ua,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):y.jsxs(Nj,{value:u,children:[y.jsx(gv,{className:"mb-3",onChange:e}),y.jsx(Pr,{className:"mb-3",children:y.jsx("div",{className:"col-lg-6 offset-lg-6",children:y.jsx(yv,{items:Zxe,order:a,onChange:(f,d)=>s({field:f,dir:d})})})}),y.jsx(Rj,{type:"tags",className:"mb-3"}),y.jsx(i,{sortedTags:l,currentOrder:a,orderByColumn:f=>()=>{const d=aw(f,a.field,a.dir);s({field:d?f:void 0,dir:d})}})]})},()=>[Dr.visits]),Qxe=tn(fH,["TagsTable"]),yP=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!mm(o)&&n(o);return y.jsxs(uj,{listClassName:We("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[y.jsx(cu,{disabled:t<=1,children:y.jsx(fu,{previous:!0,tag:"span",onClick:i(t-1)})}),WV(t,e).map((o,a)=>y.jsx(cu,{disabled:mm(o),active:t===o,children:y.jsx(fu,{role:"link",tag:"span",onClick:i(o),children:YV(o)})},GV(o,a))),y.jsx(cu,{disabled:t>=e,children:y.jsx(fu,{next:!0,tag:"span",onClick:i(t+1)})})]})},Xxe=20,dH=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=en(dH),i=I.useRef(!0),{page:o=1}=_d(),[a,s]=sve("page",Number(o)),l=nf(e,Xxe),u=l.length>1,f=l[a-1]??[];return I.useEffect(()=>{!i.current&&s(1),i.current=!1},[s,e]),I.useEffect(()=>{scrollTo(0,0)},[a]),y.jsxs(Qt,{bodyClassName:u?"pb-1":"",children:[y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsxs("thead",{className:"responsive-table__header",children:[y.jsxs("tr",{children:[y.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",y.jsx(vh,{currentOrder:n,field:"tag"})]}),y.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",y.jsx(vh,{currentOrder:n,field:"shortUrls"})]}),y.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",y.jsx(vh,{currentOrder:n,field:"visits"})]}),y.jsx("th",{className:"tags-table__header-cell",children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),y.jsx("tr",{children:y.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),y.jsxs("tbody",{children:[f.length===0&&y.jsx("tr",{children:y.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),f.map(d=>y.jsx(r,{tag:d},d.tag))]})]}),u&&y.jsx("div",{className:"sticky-card-paginator",children:y.jsx(yP,{pagesCount:l.length,currentPage:a,setCurrentPage:s})})]},a)},Jxe=tn(dH,["TagsTableRow"]),pH=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=en(pH),[i,o]=Cn(),[a,s]=Cn(),l=ml(),u=dw();return y.jsxs("tr",{className:"responsive-table__row",children:[y.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[y.jsx(iH,{tag:e.tag,colorGenerator:r})," ",e.tag]}),y.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:y.jsx($t,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:hn(e.shortUrls)})}),y.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:y.jsx($t,{to:`${l}/tag/${e.tag}/visits`,children:hn(e.visits)})}),y.jsx("td",{className:"responsive-table__cell text-lg-end",children:y.jsxs(ow,{children:[y.jsxs(Re,{onClick:s,children:[y.jsx(Ne,{icon:aee,fixedWidth:!0,className:"me-1"})," Edit"]}),y.jsxs(Re,{disabled:!u||!u.canAddItemWithName(e.tag),onClick:()=>u==null?void 0:u.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[y.jsx(Ne,{icon:q_,fixedWidth:!0})," Compare visits"]}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsxs(Re,{className:"dropdown-item--danger",onClick:o,children:[y.jsx(Ne,{icon:wee,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),y.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),y.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},eOe=tn(pH,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),tOe=(e,t)=>{e.factory("TagsSelector",$xe),e.serviceFactory("DeleteTagConfirmModal",()=>Lwe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",Iwe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",eOe),e.factory("TagsTable",Jxe),e.factory("TagsList",Qxe),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Wxe,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",zxe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Kxe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",qxe,"apiClientFactory"),e.serviceFactory("filterTags",()=>cH),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>lH),e.serviceFactory("editTag",Hxe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>uH)};function QO(e){return e==null?"":`${e}`}function nOe(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 bP(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function rOe(e={stringFormatter:bP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function iOe(e={stringFormatter:bP()}){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 oOe=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function aOe(e){var t,n,r;const i=[];let o;for(;o=oOe.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 A4(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:aOe(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 hH(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function ZE(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var N4;(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"})(N4||(N4={}));class sOe{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||bP(),i=iOe({stringFormatter:r}),o={header:r,undefined:QO,boolean:QO,number:nOe(),bigint:QO,string:r,symbol:rOe({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=>A4(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=>A4(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 ZE(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(hH,[]),[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 ZE(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 lOe extends sOe{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(hH,[])}processData(t){return ZE(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Un;(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"})(Un||(Un={}));Un.QUOTATION_MARK+"",Un.QUOTATION_MARK,Un.REVERSE_SOLIDUS+"",Un.REVERSE_SOLIDUS,Un.SOLIDUS+"",Un.SOLIDUS,Un.LATIN_SMALL_LETTER_B+"",Un.BACKSPACE,Un.LATIN_SMALL_LETTER_F+"",Un.FORM_FEED,Un.LATIN_SMALL_LETTER_N+"",Un.NEWLINE,Un.LATIN_SMALL_LETTER_R+"",Un.CARRIAGE_RETURN,Un.LATIN_SMALL_LETTER_T+"",Un.TAB;var M4;(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"})(M4||(M4={}));var R4;(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"})(R4||(R4={}));var D4;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(D4||(D4={}));var L4;(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"})(L4||(L4={}));const uOe=new lOe,cOe=e=>uOe.parse(e),fOe=6,I4="0123456789ABCDEF",dOe=128,{floor:pOe,random:hOe,sqrt:mOe,round:vOe}=Math,gOe=()=>`#${Yj(fOe,()=>I4[pOe(hOe()*I4.length)]).join("")}`,F4=e=>e.toLowerCase().trim(),yOe=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),bOe=(e=0,t=0,n=0)=>vOe(mOe(.299*e**2+.587*t**2+.114*n**2));class _Oe{constructor(t){zs(this,"colors"),zs(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=F4(t);return this.colors[n]||this.setColorForKey(n,gOe())}setColorForKey(t,n){var r;const i=F4(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);if(this.lights[n]===void 0){const r=yOe(n);this.lights[n]=bOe(...r)>=dOe}return this.lights[n]}}const mH=({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)},wOe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);mH(e,i,n)};class xOe{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);mH(this.window,i,n)}}class OOe{constructor(t,n){zs(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),zs(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),zs(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);wOe(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function SOe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",xOe,"fetch","window"),e.service("ColorGenerator",_Oe,"TagColorsStorage"),e.constant("jsonToCsv",cOe),e.service("ReportExporter",OOe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>d9)}const Tv=({visits:e,shortUrl:t,children:n,title:r})=>y.jsx("header",{children:y.jsxs(di,{body:!0,children:[y.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[y.jsx(Qj,{}),y.jsx("span",{className:"text-center d-none d-sm-block",children:y.jsx("small",{children:r})}),y.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",y.jsx(Yz,{visitsCount:e.length,shortUrl:t})]})]}),y.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:y.jsx("small",{children:r})}),n&&y.jsx("div",{className:"mt-md-2",children:n})]})}),vH=({title:e,footer:t,children:n})=>y.jsxs(di,{role:"document",children:[y.jsx(Sf,{className:"chart-card__header",children:e}),y.jsx(Of,{children:n}),t&&y.jsx(DB,{className:"chart-card__footer--sticky",children:t})]});var EOe=Array.isArray,ei=EOe,TOe=typeof $c=="object"&&$c&&$c.Object===Object&&$c,gH=TOe,COe=gH,kOe=typeof self=="object"&&self&&self.Object===Object&&self,jOe=COe||kOe||Function("return this")(),sa=jOe,POe=sa,AOe=POe.Symbol,Cv=AOe,U4=Cv,yH=Object.prototype,NOe=yH.hasOwnProperty,MOe=yH.toString,xp=U4?U4.toStringTag:void 0;function ROe(e){var t=NOe.call(e,xp),n=e[xp];try{e[xp]=void 0;var r=!0}catch{}var i=MOe.call(e);return r&&(t?e[xp]=n:delete e[xp]),i}var DOe=ROe,LOe=Object.prototype,IOe=LOe.toString;function FOe(e){return IOe.call(e)}var UOe=FOe,$4=Cv,$Oe=DOe,BOe=UOe,zOe="[object Null]",VOe="[object Undefined]",B4=$4?$4.toStringTag:void 0;function HOe(e){return e==null?e===void 0?VOe:zOe:B4&&B4 in Object(e)?$Oe(e):BOe(e)}var Xa=HOe;function WOe(e){return e!=null&&typeof e=="object"}var Ja=WOe,YOe=Xa,GOe=Ja,qOe="[object Symbol]";function KOe(e){return typeof e=="symbol"||GOe(e)&&YOe(e)==qOe}var Td=KOe,ZOe=ei,QOe=Td,XOe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JOe=/^\w*$/;function eSe(e,t){if(ZOe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||QOe(e)?!0:JOe.test(e)||!XOe.test(e)||t!=null&&e in Object(t)}var _P=eSe;function tSe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=tSe;const Cd=Et(yl);var nSe=Xa,rSe=yl,iSe="[object AsyncFunction]",oSe="[object Function]",aSe="[object GeneratorFunction]",sSe="[object Proxy]";function lSe(e){if(!rSe(e))return!1;var t=nSe(e);return t==oSe||t==aSe||t==iSe||t==sSe}var wP=lSe;const Xe=Et(wP);var uSe=sa,cSe=uSe["__core-js_shared__"],fSe=cSe,XO=fSe,z4=function(){var e=/[^.]+$/.exec(XO&&XO.keys&&XO.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dSe(e){return!!z4&&z4 in e}var pSe=dSe,hSe=Function.prototype,mSe=hSe.toString;function vSe(e){if(e!=null){try{return mSe.call(e)}catch{}try{return e+""}catch{}}return""}var bH=vSe,gSe=wP,ySe=pSe,bSe=yl,_Se=bH,wSe=/[\\^$.*+?()[\]{}|]/g,xSe=/^\[object .+?Constructor\]$/,OSe=Function.prototype,SSe=Object.prototype,ESe=OSe.toString,TSe=SSe.hasOwnProperty,CSe=RegExp("^"+ESe.call(TSe).replace(wSe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kSe(e){if(!bSe(e)||ySe(e))return!1;var t=gSe(e)?CSe:xSe;return t.test(_Se(e))}var jSe=kSe;function PSe(e,t){return e==null?void 0:e[t]}var ASe=PSe,NSe=jSe,MSe=ASe;function RSe(e,t){var n=MSe(e,t);return NSe(n)?n:void 0}var zu=RSe,DSe=zu,LSe=DSe(Object,"create"),Sw=LSe,V4=Sw;function ISe(){this.__data__=V4?V4(null):{},this.size=0}var FSe=ISe;function USe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $Se=USe,BSe=Sw,zSe="__lodash_hash_undefined__",VSe=Object.prototype,HSe=VSe.hasOwnProperty;function WSe(e){var t=this.__data__;if(BSe){var n=t[e];return n===zSe?void 0:n}return HSe.call(t,e)?t[e]:void 0}var YSe=WSe,GSe=Sw,qSe=Object.prototype,KSe=qSe.hasOwnProperty;function ZSe(e){var t=this.__data__;return GSe?t[e]!==void 0:KSe.call(t,e)}var QSe=ZSe,XSe=Sw,JSe="__lodash_hash_undefined__";function e2e(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=XSe&&t===void 0?JSe:t,this}var t2e=e2e,n2e=FSe,r2e=$Se,i2e=YSe,o2e=QSe,a2e=t2e;function kd(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])}}kd.prototype.clear=n2e;kd.prototype.delete=r2e;kd.prototype.get=i2e;kd.prototype.has=o2e;kd.prototype.set=a2e;var s2e=kd;function l2e(){this.__data__=[],this.size=0}var u2e=l2e;function c2e(e,t){return e===t||e!==e&&t!==t}var xP=c2e,f2e=xP;function d2e(e,t){for(var n=e.length;n--;)if(f2e(e[n][0],t))return n;return-1}var Ew=d2e,p2e=Ew,h2e=Array.prototype,m2e=h2e.splice;function v2e(e){var t=this.__data__,n=p2e(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():m2e.call(t,n,1),--this.size,!0}var g2e=v2e,y2e=Ew;function b2e(e){var t=this.__data__,n=y2e(t,e);return n<0?void 0:t[n][1]}var _2e=b2e,w2e=Ew;function x2e(e){return w2e(this.__data__,e)>-1}var O2e=x2e,S2e=Ew;function E2e(e,t){var n=this.__data__,r=S2e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var T2e=E2e,C2e=u2e,k2e=g2e,j2e=_2e,P2e=O2e,A2e=T2e;function jd(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])}}jd.prototype.clear=C2e;jd.prototype.delete=k2e;jd.prototype.get=j2e;jd.prototype.has=P2e;jd.prototype.set=A2e;var Tw=jd,N2e=zu,M2e=sa,R2e=N2e(M2e,"Map"),OP=R2e,H4=s2e,D2e=Tw,L2e=OP;function I2e(){this.size=0,this.__data__={hash:new H4,map:new(L2e||D2e),string:new H4}}var F2e=I2e;function U2e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var $2e=U2e,B2e=$2e;function z2e(e,t){var n=e.__data__;return B2e(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Cw=z2e,V2e=Cw;function H2e(e){var t=V2e(this,e).delete(e);return this.size-=t?1:0,t}var W2e=H2e,Y2e=Cw;function G2e(e){return Y2e(this,e).get(e)}var q2e=G2e,K2e=Cw;function Z2e(e){return K2e(this,e).has(e)}var Q2e=Z2e,X2e=Cw;function J2e(e,t){var n=X2e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var e1e=J2e,t1e=F2e,n1e=W2e,r1e=q2e,i1e=Q2e,o1e=e1e;function Pd(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])}}Pd.prototype.clear=t1e;Pd.prototype.delete=n1e;Pd.prototype.get=r1e;Pd.prototype.has=i1e;Pd.prototype.set=o1e;var SP=Pd,_H=SP,a1e="Expected a function";function EP(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(a1e);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(EP.Cache||_H),n}EP.Cache=_H;var s1e=EP,l1e=s1e,u1e=500;function c1e(e){var t=l1e(e,function(r){return n.size===u1e&&n.clear(),r}),n=t.cache;return t}var f1e=c1e,d1e=f1e,p1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h1e=/\\(\\)?/g,m1e=d1e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(p1e,function(n,r,i,o){t.push(i?o.replace(h1e,"$1"):r||n)}),t}),v1e=m1e;function g1e(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 TP=g1e,W4=Cv,y1e=TP,b1e=ei,_1e=Td,w1e=1/0,Y4=W4?W4.prototype:void 0,G4=Y4?Y4.toString:void 0;function wH(e){if(typeof e=="string")return e;if(b1e(e))return y1e(e,wH)+"";if(_1e(e))return G4?G4.call(e):"";var t=e+"";return t=="0"&&1/e==-w1e?"-0":t}var x1e=wH,O1e=x1e;function S1e(e){return e==null?"":O1e(e)}var xH=S1e,E1e=ei,T1e=_P,C1e=v1e,k1e=xH;function j1e(e,t){return E1e(e)?e:T1e(e,t)?[e]:C1e(k1e(e))}var OH=j1e,P1e=Td,A1e=1/0;function N1e(e){if(typeof e=="string"||P1e(e))return e;var t=e+"";return t=="0"&&1/e==-A1e?"-0":t}var kw=N1e,M1e=OH,R1e=kw;function D1e(e,t){t=M1e(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[R1e(t[n++])];return n&&n==r?e:void 0}var CP=D1e,L1e=CP;function I1e(e,t,n){var r=e==null?void 0:L1e(e,t);return r===void 0?n:r}var SH=I1e;const ui=Et(SH);function F1e(e){return e==null}var U1e=F1e;const Ze=Et(U1e);var $1e=Xa,B1e=ei,z1e=Ja,V1e="[object String]";function H1e(e){return typeof e=="string"||!B1e(e)&&z1e(e)&&$1e(e)==V1e}var W1e=H1e;const kv=Et(W1e);var EH={exports:{}},kt={};/** @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 q4;function Y1e(){if(q4)return kt;q4=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,x=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(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 w(E)===u}return kt.AsyncMode=l,kt.ConcurrentMode=u,kt.ContextConsumer=s,kt.ContextProvider=a,kt.Element=t,kt.ForwardRef=f,kt.Fragment=r,kt.Lazy=v,kt.Memo=m,kt.Portal=n,kt.Profiler=o,kt.StrictMode=i,kt.Suspense=d,kt.isAsyncMode=function(E){return O(E)||w(E)===l},kt.isConcurrentMode=O,kt.isContextConsumer=function(E){return w(E)===s},kt.isContextProvider=function(E){return w(E)===a},kt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},kt.isForwardRef=function(E){return w(E)===f},kt.isFragment=function(E){return w(E)===r},kt.isLazy=function(E){return w(E)===v},kt.isMemo=function(E){return w(E)===m},kt.isPortal=function(E){return w(E)===n},kt.isProfiler=function(E){return w(E)===o},kt.isStrictMode=function(E){return w(E)===i},kt.isSuspense=function(E){return w(E)===d},kt.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===x||E.$$typeof===b||E.$$typeof===_||E.$$typeof===g)},kt.typeOf=w,kt}EH.exports=Y1e();var QE=EH.exports,G1e=Xa,q1e=Ja,K1e="[object Number]";function Z1e(e){return typeof e=="number"||q1e(e)&&G1e(e)==K1e}var TH=Z1e;const Q1e=Et(TH);var X1e=TH;function J1e(e){return X1e(e)&&e!=+e}var eEe=J1e;const Ad=Et(eEe);var Nr=function(e){return e===0?0:e>0?1:-1},nu=function(e){return kv(e)&&e.indexOf("%")===e.length-1},je=function(e){return Q1e(e)&&!Ad(e)},Nn=function(e){return je(e)||kv(e)},tEe=0,bl=function(e){var t=++tEe;return"".concat(e||"").concat(t)},Vr=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)&&!kv(e))return n;var i;if(nu(e)){var o=e.indexOf("%");i=t*parseFloat(e.slice(0,o))/100}else i=+e;return Ad(i)&&(i=n),r&&i>t&&(i=t),i},cs=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},nEe=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},an=function(e,t){return je(e)&&je(t)?function(n){return e+n*(t-e)}:function(){return t}};function Eb(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):ui(r,t))===n})}var rEe=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 rf(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 XE(e){"@babel/helpers - typeof";return XE=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},XE(e)}var iEe=["viewBox","children"],oEe=["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"],K4=["points","pathLength"],Z4={svg:iEe,polygon:K4,polyline:K4},kP=["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"],Tb=function(e,t){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(I.isValidElement(e)&&(n=e.props),!Cd(n))return null;var r={};return Object.keys(n).forEach(function(i){kP.includes(i)&&(r[i]=t||function(o){return n[i](n,o)})}),r},aEe=function(e,t,n){return function(r){return e(t,n,r),null}},al=function(e,t,n){if(!Cd(e)||XE(e)!=="object")return null;var r=null;return Object.keys(e).forEach(function(i){var o=e[i];kP.includes(i)&&typeof o=="function"&&(r||(r={}),r[i]=aEe(o,t,n))}),r},sEe=["children"],lEe=["children"];function Q4(e,t){if(e==null)return{};var n=uEe(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 uEe(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 JE(e){"@babel/helpers - typeof";return JE=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},JE(e)}var X4={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ca=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},J4=null,JO=null,jP=function e(t){if(t===J4&&Array.isArray(JO))return JO;var n=[];return I.Children.forEach(t,function(r){Ze(r)||(QE.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),JO=n,J4=t,n};function Lr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ca(i)}):r=[Ca(t)],jP(e).forEach(function(i){var o=ui(i,"type.displayName")||ui(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Uo(e,t){var n=Lr(e,t);return n&&n[0]}var eI=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)},cEe=["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"],fEe=function(e){return e&&e.type&&kv(e.type)&&cEe.indexOf(e.type)>=0},CH=function(e){return e&&JE(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},dEe=function(e,t,n,r){var i,o=(i=Z4==null?void 0:Z4[r])!==null&&i!==void 0?i:[];return!Xe(e)&&(r&&o.includes(t)||oEe.includes(t))||n&&kP.includes(t)},Ve=function(e,t,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(I.isValidElement(e)&&(r=e.props),!Cd(r))return null;var i={};return Object.keys(r).forEach(function(o){var a;dEe((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},kH=function e(t,n){if(t===n)return!0;var r=I.Children.count(t);if(r!==I.Children.count(n))return!1;if(r===0)return!0;if(r===1)return tI(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(!tI(o,a))return!1}return!0},tI=function(e,t){if(Ze(e)&&Ze(t))return!0;if(!Ze(e)&&!Ze(t)){var n=e.props||{},r=n.children,i=Q4(n,sEe),o=t.props||{},a=o.children,s=Q4(o,lEe);return r&&a?rf(i,s)&&kH(r,a):!r&&!a?rf(i,s):!1}return!1},nI=function(e,t){var n=[],r={};return jP(e).forEach(function(i,o){if(fEe(i))n.push(i);else if(i){var a=Ca(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},pEe=function(e){var t=e&&e.type;return t&&X4[t]?X4[t]:null},hEe=function(e,t){return jP(t).indexOf(e)},mEe=["children","width","height","viewBox","className","style","title","desc"];function eT(){return eT=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},eT.apply(this,arguments)}function vEe(e,t){if(e==null)return{};var n=gEe(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 gEe(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 tT(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=vEe(e,mEe),f=i||{width:n,height:r,x:0,y:0},d=We("recharts-surface",o);return M.createElement("svg",eT({},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 yEe=["children","className"];function nT(){return nT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nT.apply(this,arguments)}function bEe(e,t){if(e==null)return{};var n=_Ee(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 _Ee(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=bEe(e,yEe),o=We("recharts-layer",r);return M.createElement("g",nT({className:o},Ve(i,!0),{ref:t}),n)}),ka=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 wEe(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 xEe=wEe,OEe=xEe;function SEe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:OEe(e,t,n)}var EEe=SEe,TEe="\\ud800-\\udfff",CEe="\\u0300-\\u036f",kEe="\\ufe20-\\ufe2f",jEe="\\u20d0-\\u20ff",PEe=CEe+kEe+jEe,AEe="\\ufe0e\\ufe0f",NEe="\\u200d",MEe=RegExp("["+NEe+TEe+PEe+AEe+"]");function REe(e){return MEe.test(e)}var jH=REe;function DEe(e){return e.split("")}var LEe=DEe,PH="\\ud800-\\udfff",IEe="\\u0300-\\u036f",FEe="\\ufe20-\\ufe2f",UEe="\\u20d0-\\u20ff",$Ee=IEe+FEe+UEe,BEe="\\ufe0e\\ufe0f",zEe="["+PH+"]",rT="["+$Ee+"]",iT="\\ud83c[\\udffb-\\udfff]",VEe="(?:"+rT+"|"+iT+")",AH="[^"+PH+"]",NH="(?:\\ud83c[\\udde6-\\uddff]){2}",MH="[\\ud800-\\udbff][\\udc00-\\udfff]",HEe="\\u200d",RH=VEe+"?",DH="["+BEe+"]?",WEe="(?:"+HEe+"(?:"+[AH,NH,MH].join("|")+")"+DH+RH+")*",YEe=DH+RH+WEe,GEe="(?:"+[AH+rT+"?",rT,NH,MH,zEe].join("|")+")",qEe=RegExp(iT+"(?="+iT+")|"+GEe+YEe,"g");function KEe(e){return e.match(qEe)||[]}var ZEe=KEe,QEe=LEe,XEe=jH,JEe=ZEe;function eTe(e){return XEe(e)?JEe(e):QEe(e)}var tTe=eTe,nTe=EEe,rTe=jH,iTe=tTe,oTe=xH;function aTe(e){return function(t){t=oTe(t);var n=rTe(t)?iTe(t):void 0,r=n?n[0]:t.charAt(0),i=n?nTe(n,1).join(""):t.slice(1);return r[e]()+i}}var sTe=aTe,lTe=sTe,uTe=lTe("toUpperCase"),cTe=uTe;const jw=Et(cTe);function Vt(e){return function(){return e}}const LH=Math.cos,Cb=Math.sin,So=Math.sqrt,kb=Math.PI,Pw=2*kb,oT=Math.PI,aT=2*oT,Vl=1e-6,fTe=aT-Vl;function IH(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function dTe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return IH;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 pTe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?IH:dTe(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>Vl)if(!(Math.abs(d*l-u*f)>Vl)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-a,v=i-s,g=l*l+u*u,x=m*m+v*v,b=Math.sqrt(g),_=Math.sqrt(p),w=o*Math.tan((oT-Math.acos((g+p-x)/(2*b*_)))/2),O=w/_,E=w/b;Math.abs(O-1)>Vl&&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)>Vl||Math.abs(this._y1-f)>Vl)&&this._append`L${u},${f}`,r&&(p<0&&(p=p%aT+aT),p>fTe?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>Vl&&this._append`A${r},${r},0,${+(p>=oT)},${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 PP(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 pTe(t)}function AP(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function FH(e){this._context=e}FH.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 Aw(e){return new FH(e)}function UH(e){return e[0]}function $H(e){return e[1]}function BH(e,t){var n=Vt(!0),r=null,i=Aw,o=null,a=PP(s);e=typeof e=="function"?e:e===void 0?UH:Vt(e),t=typeof t=="function"?t:t===void 0?$H:Vt(t);function s(l){var u,f=(l=AP(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:Vt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Vt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Vt(!!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 Zg(e,t,n){var r=null,i=Vt(!0),o=null,a=Aw,s=null,l=PP(u);e=typeof e=="function"?e:e===void 0?UH:Vt(+e),t=typeof t=="function"?t:Vt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?$H:Vt(+n);function u(d){var p,m,v,g=(d=AP(d)).length,x,b=!1,_,w=new Array(g),O=new Array(g);for(o==null&&(s=a(_=l())),p=0;p<=g;++p){if(!(p<g&&i(x=d[p],p,d))===b)if(b=!b)m=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=p-1;v>=m;--v)s.point(w[v],O[v]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(x,p,d),O[p]=+t(x,p,d),s.point(r?+r(x,p,d):w[p],n?+n(x,p,d):O[p]))}if(_)return s=null,_+""||null}function f(){return BH().defined(i).curve(a).context(o)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:Vt(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Vt(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Vt(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:Vt(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Vt(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Vt(+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:Vt(!!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 zH{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 hTe(e){return new zH(e,!0)}function mTe(e){return new zH(e,!1)}const NP={draw(e,t){const n=So(t/kb);e.moveTo(n,0),e.arc(0,0,n,0,Pw)}},vTe={draw(e,t){const n=So(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()}},VH=So(1/3),gTe=VH*2,yTe={draw(e,t){const n=So(t/gTe),r=n*VH;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},bTe={draw(e,t){const n=So(t),r=-n/2;e.rect(r,r,n,n)}},_Te=.8908130915292852,HH=Cb(kb/10)/Cb(7*kb/10),wTe=Cb(Pw/10)*HH,xTe=-LH(Pw/10)*HH,OTe={draw(e,t){const n=So(t*_Te),r=wTe*n,i=xTe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Pw*o/5,s=LH(a),l=Cb(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},eS=So(3),STe={draw(e,t){const n=-So(t/(eS*3));e.moveTo(0,n*2),e.lineTo(-eS*n,-n),e.lineTo(eS*n,-n),e.closePath()}},xi=-.5,Oi=So(3)/2,sT=1/So(12),ETe=(sT/2+1)*3,TTe={draw(e,t){const n=So(t/ETe),r=n/2,i=n*sT,o=r,a=n*sT+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(xi*r-Oi*i,Oi*r+xi*i),e.lineTo(xi*o-Oi*a,Oi*o+xi*a),e.lineTo(xi*s-Oi*l,Oi*s+xi*l),e.lineTo(xi*r+Oi*i,xi*i-Oi*r),e.lineTo(xi*o+Oi*a,xi*a-Oi*o),e.lineTo(xi*s+Oi*l,xi*l-Oi*s),e.closePath()}};function CTe(e,t){let n=null,r=PP(i);e=typeof e=="function"?e:Vt(e||NP),t=typeof t=="function"?t:Vt(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:Vt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Vt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function jb(){}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 WH(e){this._context=e}WH.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 kTe(e){return new WH(e)}function YH(e){this._context=e}YH.prototype={areaStart:jb,areaEnd:jb,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 jTe(e){return new YH(e)}function GH(e){this._context=e}GH.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 PTe(e){return new GH(e)}function qH(e){this._context=e}qH.prototype={areaStart:jb,areaEnd:jb,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 ATe(e){return new qH(e)}function rI(e){return e<0?-1:1}function iI(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(rI(o)+rI(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function oI(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tS(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 Ab(e){this._context=e}Ab.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:tS(this,this._t0,oI(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,tS(this,oI(this,n=iI(this,e,t)),n);break;default:tS(this,this._t0,n=iI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function KH(e){this._context=new ZH(e)}(KH.prototype=Object.create(Ab.prototype)).point=function(e,t){Ab.prototype.point.call(this,t,e)};function ZH(e){this._context=e}ZH.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 NTe(e){return new Ab(e)}function MTe(e){return new KH(e)}function QH(e){this._context=e}QH.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=aI(e),i=aI(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 aI(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 RTe(e){return new QH(e)}function Nw(e,t){this._context=e,this._t=t}Nw.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 DTe(e){return new Nw(e,.5)}function LTe(e){return new Nw(e,0)}function ITe(e){return new Nw(e,1)}function Uf(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 lT(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function FTe(e,t){return e[t]}function UTe(e){const t=[];return t.key=e,t}function $Te(){var e=Vt([]),t=lT,n=Uf,r=FTe;function i(o){var a=Array.from(e.apply(this,arguments),UTe),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=AP(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:Vt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Vt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?lT:typeof o=="function"?o:Vt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Uf,i):n},i}function BTe(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}Uf(e,t)}}function zTe(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}Uf(e,t)}}function VTe(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]],x=g[r][1]||0,b=g[r-1][1]||0;m+=x-b}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,Uf(e,t)}}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)}var HTe=["type","size","sizeType"];function uT(){return uT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uT.apply(this,arguments)}function sI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sI(Object(n),!0).forEach(function(r){WTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WTe(e,t,n){return t=YTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YTe(e){var t=GTe(e,"string");return vm(t)==="symbol"?t:String(t)}function GTe(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 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 XH={symbolCircle:NP,symbolCross:vTe,symbolDiamond:yTe,symbolSquare:bTe,symbolStar:OTe,symbolTriangle:STe,symbolWye:TTe},ZTe=Math.PI/180,QTe=function(e){var t="symbol".concat(jw(e));return XH[t]||NP},XTe=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*ZTe;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}},JTe=function(e,t){XH["symbol".concat(jw(e))]=t},Mw=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=qTe(e,HTe),l=lI(lI({},s),{},{type:n,size:i,sizeType:a}),u=function(){var v=QTe(n),g=CTe().type(v).size(XTe(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",uT({},m,{className:We("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:u()})):null};Mw.registerSymbol=JTe;function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function cT(){return cT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cT.apply(this,arguments)}function uI(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 eCe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uI(Object(n),!0).forEach(function(r){gm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cI(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 nCe(e,t,n){return t&&cI(e.prototype,t),n&&cI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rCe(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&&fT(e,t)}function fT(e,t){return fT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fT(e,t)}function iCe(e){var t=sCe();return function(){var n=Nb(e),r;if(t){var i=Nb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return oCe(this,r)}}function oCe(e,t){if(t&&($f(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aCe(e)}function aCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nb(e){return Nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nb(e)}function gm(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=lCe(e,"string");return $f(t)==="symbol"?t:String(t)}function lCe(e,t){if($f(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($f(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Si=32,MP=function(e){rCe(n,e);var t=iCe(n);function n(){return tCe(this,n),t.apply(this,arguments)}return nCe(n,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Si/2,a=Si/6,s=Si/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:Si,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(Si,"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(Si/8,"h").concat(Si,"v").concat(Si*3/4,"h").concat(-Si,"z"),className:"recharts-legend-icon"});if(M.isValidElement(r.legendIcon)){var u=eCe({},r);return delete u.legendIcon,M.cloneElement(r.legendIcon,u)}return M.createElement(Mw,{fill:l,cx:o,cy:o,size:Si,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:Si,height:Si},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,x=m.formatter||l,b=We((g={"recharts-legend-item":!0},gm(g,"legend-item-".concat(v),!0),gm(g,"inactive",m.inactive),g));if(m.type==="none")return null;var _=Xe(m.value)?null:m.value;ka(!Xe(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 w=m.inactive?u:m.color;return M.createElement("li",cT({className:b,style:d,key:"legend-item-".concat(v)},al(r.props,m,v)),M.createElement(tT,{width:a,height:a,viewBox:f,style:p},r.renderIcon(m)),M.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},x?x(_,m,v):_))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return M.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}]),n}(I.PureComponent);gm(MP,"displayName","Legend");gm(MP,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var uCe=Tw;function cCe(){this.__data__=new uCe,this.size=0}var fCe=cCe;function dCe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var pCe=dCe;function hCe(e){return this.__data__.get(e)}var mCe=hCe;function vCe(e){return this.__data__.has(e)}var gCe=vCe,yCe=Tw,bCe=OP,_Ce=SP,wCe=200;function xCe(e,t){var n=this.__data__;if(n instanceof yCe){var r=n.__data__;if(!bCe||r.length<wCe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _Ce(r)}return n.set(e,t),this.size=n.size,this}var OCe=xCe,SCe=Tw,ECe=fCe,TCe=pCe,CCe=mCe,kCe=gCe,jCe=OCe;function Nd(e){var t=this.__data__=new SCe(e);this.size=t.size}Nd.prototype.clear=ECe;Nd.prototype.delete=TCe;Nd.prototype.get=CCe;Nd.prototype.has=kCe;Nd.prototype.set=jCe;var eW=Nd,PCe="__lodash_hash_undefined__";function ACe(e){return this.__data__.set(e,PCe),this}var NCe=ACe;function MCe(e){return this.__data__.has(e)}var RCe=MCe,DCe=SP,LCe=NCe,ICe=RCe;function Mb(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new DCe;++t<n;)this.add(e[t])}Mb.prototype.add=Mb.prototype.push=LCe;Mb.prototype.has=ICe;var tW=Mb;function FCe(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 nW=FCe;function UCe(e,t){return e.has(t)}var rW=UCe,$Ce=tW,BCe=nW,zCe=rW,VCe=1,HCe=2;function WCe(e,t,n,r,i,o){var a=n&VCe,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&HCe?new $Ce:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var v=e[d],g=t[d];if(r)var x=a?r(g,v,d,t,e,o):r(v,g,d,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(m){if(!BCe(t,function(b,_){if(!zCe(m,_)&&(v===b||i(v,b,n,r,o)))return m.push(_)})){p=!1;break}}else if(!(v===g||i(v,g,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var iW=WCe,YCe=sa,GCe=YCe.Uint8Array,qCe=GCe;function KCe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var ZCe=KCe;function QCe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var RP=QCe,fI=Cv,dI=qCe,XCe=xP,JCe=iW,eke=ZCe,tke=RP,nke=1,rke=2,ike="[object Boolean]",oke="[object Date]",ake="[object Error]",ske="[object Map]",lke="[object Number]",uke="[object RegExp]",cke="[object Set]",fke="[object String]",dke="[object Symbol]",pke="[object ArrayBuffer]",hke="[object DataView]",pI=fI?fI.prototype:void 0,nS=pI?pI.valueOf:void 0;function mke(e,t,n,r,i,o,a){switch(n){case hke:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pke:return!(e.byteLength!=t.byteLength||!o(new dI(e),new dI(t)));case ike:case oke:case lke:return XCe(+e,+t);case ake:return e.name==t.name&&e.message==t.message;case uke:case fke:return e==t+"";case ske:var s=eke;case cke:var l=r&nke;if(s||(s=tke),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=rke,a.set(e,t);var f=JCe(s(e),s(t),r,i,o,a);return a.delete(e),f;case dke:if(nS)return nS.call(e)==nS.call(t)}return!1}var vke=mke;function gke(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var oW=gke,yke=oW,bke=ei;function _ke(e,t,n){var r=t(e);return bke(e)?r:yke(r,n(e))}var wke=_ke;function xke(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 Oke=xke;function Ske(){return[]}var Eke=Ske,Tke=Oke,Cke=Eke,kke=Object.prototype,jke=kke.propertyIsEnumerable,hI=Object.getOwnPropertySymbols,Pke=hI?function(e){return e==null?[]:(e=Object(e),Tke(hI(e),function(t){return jke.call(e,t)}))}:Cke,Ake=Pke;function Nke(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Mke=Nke,Rke=Xa,Dke=Ja,Lke="[object Arguments]";function Ike(e){return Dke(e)&&Rke(e)==Lke}var Fke=Ike,mI=Fke,Uke=Ja,aW=Object.prototype,$ke=aW.hasOwnProperty,Bke=aW.propertyIsEnumerable,zke=mI(function(){return arguments}())?mI:function(e){return Uke(e)&&$ke.call(e,"callee")&&!Bke.call(e,"callee")},DP=zke,Rb={exports:{}};function Vke(){return!1}var Hke=Vke;Rb.exports;(function(e,t){var n=sa,r=Hke,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})(Rb,Rb.exports);var sW=Rb.exports,Wke=9007199254740991,Yke=/^(?:0|[1-9]\d*)$/;function Gke(e,t){var n=typeof e;return t=t??Wke,!!t&&(n=="number"||n!="symbol"&&Yke.test(e))&&e>-1&&e%1==0&&e<t}var LP=Gke,qke=9007199254740991;function Kke(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qke}var IP=Kke,Zke=Xa,Qke=IP,Xke=Ja,Jke="[object Arguments]",eje="[object Array]",tje="[object Boolean]",nje="[object Date]",rje="[object Error]",ije="[object Function]",oje="[object Map]",aje="[object Number]",sje="[object Object]",lje="[object RegExp]",uje="[object Set]",cje="[object String]",fje="[object WeakMap]",dje="[object ArrayBuffer]",pje="[object DataView]",hje="[object Float32Array]",mje="[object Float64Array]",vje="[object Int8Array]",gje="[object Int16Array]",yje="[object Int32Array]",bje="[object Uint8Array]",_je="[object Uint8ClampedArray]",wje="[object Uint16Array]",xje="[object Uint32Array]",zt={};zt[hje]=zt[mje]=zt[vje]=zt[gje]=zt[yje]=zt[bje]=zt[_je]=zt[wje]=zt[xje]=!0;zt[Jke]=zt[eje]=zt[dje]=zt[tje]=zt[pje]=zt[nje]=zt[rje]=zt[ije]=zt[oje]=zt[aje]=zt[sje]=zt[lje]=zt[uje]=zt[cje]=zt[fje]=!1;function Oje(e){return Xke(e)&&Qke(e.length)&&!!zt[Zke(e)]}var Sje=Oje;function Eje(e){return function(t){return e(t)}}var lW=Eje,Db={exports:{}};Db.exports;(function(e,t){var n=gH,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})(Db,Db.exports);var Tje=Db.exports,Cje=Sje,kje=lW,vI=Tje,gI=vI&&vI.isTypedArray,jje=gI?kje(gI):Cje,uW=jje,Pje=Mke,Aje=DP,Nje=ei,Mje=sW,Rje=LP,Dje=uW,Lje=Object.prototype,Ije=Lje.hasOwnProperty;function Fje(e,t){var n=Nje(e),r=!n&&Aje(e),i=!n&&!r&&Mje(e),o=!n&&!r&&!i&&Dje(e),a=n||r||i||o,s=a?Pje(e.length,String):[],l=s.length;for(var u in e)(t||Ije.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Rje(u,l)))&&s.push(u);return s}var Uje=Fje,$je=Object.prototype;function Bje(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$je;return e===n}var zje=Bje;function Vje(e,t){return function(n){return e(t(n))}}var cW=Vje,Hje=cW,Wje=Hje(Object.keys,Object),Yje=Wje,Gje=zje,qje=Yje,Kje=Object.prototype,Zje=Kje.hasOwnProperty;function Qje(e){if(!Gje(e))return qje(e);var t=[];for(var n in Object(e))Zje.call(e,n)&&n!="constructor"&&t.push(n);return t}var Xje=Qje,Jje=wP,ePe=IP;function tPe(e){return e!=null&&ePe(e.length)&&!Jje(e)}var jv=tPe,nPe=Uje,rPe=Xje,iPe=jv;function oPe(e){return iPe(e)?nPe(e):rPe(e)}var Rw=oPe,aPe=wke,sPe=Ake,lPe=Rw;function uPe(e){return aPe(e,lPe,sPe)}var cPe=uPe,yI=cPe,fPe=1,dPe=Object.prototype,pPe=dPe.hasOwnProperty;function hPe(e,t,n,r,i,o){var a=n&fPe,s=yI(e),l=s.length,u=yI(t),f=u.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:pPe.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 x=a;++d<l;){p=s[d];var b=e[p],_=t[p];if(r)var w=a?r(_,b,p,t,e,o):r(b,_,p,e,t,o);if(!(w===void 0?b===_||i(b,_,n,r,o):w)){g=!1;break}x||(x=p=="constructor")}if(g&&!x){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 mPe=hPe,vPe=zu,gPe=sa,yPe=vPe(gPe,"DataView"),bPe=yPe,_Pe=zu,wPe=sa,xPe=_Pe(wPe,"Promise"),OPe=xPe,SPe=zu,EPe=sa,TPe=SPe(EPe,"Set"),fW=TPe,CPe=zu,kPe=sa,jPe=CPe(kPe,"WeakMap"),PPe=jPe,dT=bPe,pT=OP,hT=OPe,mT=fW,vT=PPe,dW=Xa,Md=bH,bI="[object Map]",APe="[object Object]",_I="[object Promise]",wI="[object Set]",xI="[object WeakMap]",OI="[object DataView]",NPe=Md(dT),MPe=Md(pT),RPe=Md(hT),DPe=Md(mT),LPe=Md(vT),Hl=dW;(dT&&Hl(new dT(new ArrayBuffer(1)))!=OI||pT&&Hl(new pT)!=bI||hT&&Hl(hT.resolve())!=_I||mT&&Hl(new mT)!=wI||vT&&Hl(new vT)!=xI)&&(Hl=function(e){var t=dW(e),n=t==APe?e.constructor:void 0,r=n?Md(n):"";if(r)switch(r){case NPe:return OI;case MPe:return bI;case RPe:return _I;case DPe:return wI;case LPe:return xI}return t});var IPe=Hl,rS=eW,FPe=iW,UPe=vke,$Pe=mPe,SI=IPe,EI=ei,TI=sW,BPe=uW,zPe=1,CI="[object Arguments]",kI="[object Array]",Qg="[object Object]",VPe=Object.prototype,jI=VPe.hasOwnProperty;function HPe(e,t,n,r,i,o){var a=EI(e),s=EI(t),l=a?kI:SI(e),u=s?kI:SI(t);l=l==CI?Qg:l,u=u==CI?Qg:u;var f=l==Qg,d=u==Qg,p=l==u;if(p&&TI(e)){if(!TI(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new rS),a||BPe(e)?FPe(e,t,n,r,i,o):UPe(e,t,l,n,r,i,o);if(!(n&zPe)){var m=f&&jI.call(e,"__wrapped__"),v=d&&jI.call(t,"__wrapped__");if(m||v){var g=m?e.value():e,x=v?t.value():t;return o||(o=new rS),i(g,x,n,r,o)}}return p?(o||(o=new rS),$Pe(e,t,n,r,i,o)):!1}var WPe=HPe,YPe=WPe,PI=Ja;function pW(e,t,n,r,i){return e===t?!0:e==null||t==null||!PI(e)&&!PI(t)?e!==e&&t!==t:YPe(e,t,n,r,pW,i)}var FP=pW,GPe=eW,qPe=FP,KPe=1,ZPe=2;function QPe(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 GPe;if(r)var p=r(u,f,l,e,t,d);if(!(p===void 0?qPe(f,u,KPe|ZPe,r,d):p))return!1}}return!0}var XPe=QPe,JPe=yl;function eAe(e){return e===e&&!JPe(e)}var hW=eAe,tAe=hW,nAe=Rw;function rAe(e){for(var t=nAe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,tAe(i)]}return t}var iAe=rAe;function oAe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var mW=oAe,aAe=XPe,sAe=iAe,lAe=mW;function uAe(e){var t=sAe(e);return t.length==1&&t[0][2]?lAe(t[0][0],t[0][1]):function(n){return n===e||aAe(n,e,t)}}var cAe=uAe;function fAe(e,t){return e!=null&&t in Object(e)}var dAe=fAe,pAe=OH,hAe=DP,mAe=ei,vAe=LP,gAe=IP,yAe=kw;function bAe(e,t,n){t=pAe(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=yAe(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&&gAe(i)&&vAe(a,i)&&(mAe(e)||hAe(e)))}var _Ae=bAe,wAe=dAe,xAe=_Ae;function OAe(e,t){return e!=null&&xAe(e,t,wAe)}var SAe=OAe,EAe=FP,TAe=SH,CAe=SAe,kAe=_P,jAe=hW,PAe=mW,AAe=kw,NAe=1,MAe=2;function RAe(e,t){return kAe(e)&&jAe(t)?PAe(AAe(e),t):function(n){var r=TAe(n,e);return r===void 0&&r===t?CAe(n,e):EAe(t,r,NAe|MAe)}}var DAe=RAe;function LAe(e){return e}var Rd=LAe;function IAe(e){return function(t){return t==null?void 0:t[e]}}var FAe=IAe,UAe=CP;function $Ae(e){return function(t){return UAe(t,e)}}var BAe=$Ae,zAe=FAe,VAe=BAe,HAe=_P,WAe=kw;function YAe(e){return HAe(e)?zAe(WAe(e)):VAe(e)}var GAe=YAe,qAe=cAe,KAe=DAe,ZAe=Rd,QAe=ei,XAe=GAe;function JAe(e){return typeof e=="function"?e:e==null?ZAe:typeof e=="object"?QAe(e)?KAe(e[0],e[1]):qAe(e):XAe(e)}var la=JAe;function eNe(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 vW=eNe;function tNe(e){return e!==e}var nNe=tNe;function rNe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var iNe=rNe,oNe=vW,aNe=nNe,sNe=iNe;function lNe(e,t,n){return t===t?sNe(e,t,n):oNe(e,aNe,n)}var uNe=lNe,cNe=uNe;function fNe(e,t){var n=e==null?0:e.length;return!!n&&cNe(e,t,0)>-1}var dNe=fNe;function pNe(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 hNe=pNe;function mNe(){}var vNe=mNe,iS=fW,gNe=vNe,yNe=RP,bNe=1/0,_Ne=iS&&1/yNe(new iS([,-0]))[1]==bNe?function(e){return new iS(e)}:gNe,wNe=_Ne,xNe=tW,ONe=dNe,SNe=hNe,ENe=rW,TNe=wNe,CNe=RP,kNe=200;function jNe(e,t,n){var r=-1,i=ONe,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=SNe;else if(o>=kNe){var u=t?null:TNe(e);if(u)return CNe(u);a=!1,i=ENe,l=new xNe}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 PNe=jNe,ANe=la,NNe=PNe;function MNe(e,t){return e&&e.length?NNe(e,ANe(t)):[]}var RNe=MNe;const AI=Et(RNe);function gW(e,t,n){return t===!0?AI(e,n):Xe(t)?AI(e,t):e}function Bf(e){"@babel/helpers - typeof";return Bf=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},Bf(e)}var DNe=["ref"];function NI(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 Pl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NI(Object(n),!0).forEach(function(r){Dw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MI(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,bW(r.key),r)}}function INe(e,t,n){return t&&MI(e.prototype,t),n&&MI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FNe(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&&gT(e,t)}function gT(e,t){return gT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gT(e,t)}function UNe(e){var t=BNe();return function(){var n=Lb(e),r;if(t){var i=Lb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return $Ne(this,r)}}function $Ne(e,t){if(t&&(Bf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yW(e)}function yW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BNe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lb(e){return Lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lb(e)}function Dw(e,t,n){return t=bW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bW(e){var t=zNe(e,"string");return Bf(t)==="symbol"?t:String(t)}function zNe(e,t){if(Bf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VNe(e,t){if(e==null)return{};var n=HNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function WNe(e){return e.value}function YNe(e,t){if(M.isValidElement(e))return M.cloneElement(e,t);if(typeof e=="function")return M.createElement(e,t);t.ref;var n=VNe(t,DNe);return M.createElement(MP,n)}var RI=1,ym=function(e){FNe(n,e);var t=UNe(n);function n(){var r;LNe(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(yW(r),"lastBoundingBox",{width:-1,height:-1}),r}return INe(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)>RI||Math.abs(i.height-this.lastBoundingBox.height)>RI)&&(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?Pl({},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 Pl(Pl({},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=Pl(Pl({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}},YNe(o,Pl(Pl({},this.props),{},{payload:gW(f,u,WNe)})))}}],[{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}(I.PureComponent);Dw(ym,"displayName","Legend");Dw(ym,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var DI=Cv,GNe=DP,qNe=ei,LI=DI?DI.isConcatSpreadable:void 0;function KNe(e){return qNe(e)||GNe(e)||!!(LI&&e&&e[LI])}var ZNe=KNe,QNe=oW,XNe=ZNe;function _W(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=XNe),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?_W(s,t-1,n,r,i):QNe(i,s):r||(i[i.length]=s)}return i}var wW=_W;function JNe(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 eMe=JNe,tMe=eMe,nMe=tMe(),rMe=nMe,iMe=rMe,oMe=Rw;function aMe(e,t){return e&&iMe(e,t,oMe)}var xW=aMe,sMe=jv;function lMe(e,t){return function(n,r){if(n==null)return n;if(!sMe(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 uMe=lMe,cMe=xW,fMe=uMe,dMe=fMe(cMe),UP=dMe,pMe=UP,hMe=jv;function mMe(e,t){var n=-1,r=hMe(e)?Array(e.length):[];return pMe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var OW=mMe;function vMe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var gMe=vMe,II=Td;function yMe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=II(e),a=t!==void 0,s=t===null,l=t===t,u=II(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 bMe=yMe,_Me=bMe;function wMe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=_Me(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 xMe=wMe,oS=TP,OMe=CP,SMe=la,EMe=OW,TMe=gMe,CMe=lW,kMe=xMe,jMe=Rd,PMe=ei;function AMe(e,t,n){t.length?t=oS(t,function(o){return PMe(o)?function(a){return OMe(a,o.length===1?o[0]:o)}:o}):t=[jMe];var r=-1;t=oS(t,CMe(SMe));var i=EMe(e,function(o,a,s){var l=oS(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return TMe(i,function(o,a){return kMe(o,a,n)})}var NMe=AMe;function MMe(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 RMe=MMe,DMe=RMe,FI=Math.max;function LMe(e,t,n){return t=FI(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=FI(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),DMe(e,this,s)}}var IMe=LMe;function FMe(e){return function(){return e}}var UMe=FMe,$Me=zu,BMe=function(){try{var e=$Me(Object,"defineProperty");return e({},"",{}),e}catch{}}(),SW=BMe,zMe=UMe,UI=SW,VMe=Rd,HMe=UI?function(e,t){return UI(e,"toString",{configurable:!0,enumerable:!1,value:zMe(t),writable:!0})}:VMe,WMe=HMe,YMe=800,GMe=16,qMe=Date.now;function KMe(e){var t=0,n=0;return function(){var r=qMe(),i=GMe-(r-n);if(n=r,i>0){if(++t>=YMe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ZMe=KMe,QMe=WMe,XMe=ZMe,JMe=XMe(QMe),eRe=JMe,tRe=Rd,nRe=IMe,rRe=eRe;function iRe(e,t){return rRe(nRe(e,t,tRe),e+"")}var oRe=iRe,aRe=xP,sRe=jv,lRe=LP,uRe=yl;function cRe(e,t,n){if(!uRe(n))return!1;var r=typeof t;return(r=="number"?sRe(n)&&lRe(t,n.length):r=="string"&&t in n)?aRe(n[t],e):!1}var Lw=cRe,fRe=wW,dRe=NMe,pRe=oRe,$I=Lw,hRe=pRe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&$I(e,t[0],t[1])?t=[]:n>2&&$I(t[0],t[1],t[2])&&(t=[t[0]]),dRe(e,fRe(t,1),[])}),mRe=hRe;const $P=Et(mRe);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 vRe(e,t){return _Re(e)||bRe(e,t)||yRe(e,t)||gRe()}function gRe(){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 yRe(e,t){if(e){if(typeof e=="string")return BI(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 BI(e,t)}}function BI(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 bRe(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 _Re(e){if(Array.isArray(e))return e}function zI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function aS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zI(Object(n),!0).forEach(function(r){wRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wRe(e,t,n){return t=xRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xRe(e){var t=ORe(e,"string");return bm(t)==="symbol"?t:String(t)}function ORe(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)}function SRe(e){return Array.isArray(e)&&Nn(e[0])&&Nn(e[1])?e.join(" ~ "):e}var ERe=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,x=function(){if(u&&u.length){var k={padding:0,margin:0},P=(d?$P(u,d):u).map(function(D,N){if(D.type==="none")return null;var F=aS({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},a),B=D.formatter||f||SRe,Y=D.value,H=D.name,Q=Y,Z=H;if(B&&Q!=null&&Z!=null){var te=B(Y,H,D,N,u);if(Array.isArray(te)){var X=vRe(te,2);Q=X[0],Z=X[1]}else Q=te}return M.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:F},Nn(Z)?M.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,Nn(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},P)}return null},b=aS({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),_=aS({margin:0},l),w=!Ze(v),O=w?v:"",E=We("recharts-default-tooltip",p),T=We("recharts-tooltip-label",m);return w&&g&&u!==void 0&&u!==null&&(O=g(v,u)),M.createElement("div",{className:E,style:b},M.createElement("p",{className:T,style:_},M.isValidElement(O)?O:"".concat(O)),x())},TRe=Object.getOwnPropertyNames,CRe=Object.getOwnPropertySymbols,kRe=Object.prototype.hasOwnProperty;function VI(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function Xg(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 HI(e){return TRe(e).concat(CRe(e))}var EW=Object.hasOwn||function(e,t){return kRe.call(e,t)};function Dd(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var TW="_owner",WI=Object.getOwnPropertyDescriptor,YI=Object.keys;function jRe(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 PRe(e,t){return Dd(e.getTime(),t.getTime())}function GI(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],x=v[1];!u&&!r[f]&&(u=n.equals(p,g,o,f,e,t,n)&&n.equals(m,x,p,g,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;o++}return!0}function ARe(e,t,n){var r=YI(e),i=r.length;if(YI(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===TW&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!EW(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function Op(e,t,n){var r=HI(e),i=r.length;if(HI(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===TW&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!EW(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=WI(e,o),s=WI(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function NRe(e,t){return Dd(e.valueOf(),t.valueOf())}function MRe(e,t){return e.source===t.source&&e.flags===t.flags}function qI(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 RRe(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 DRe="[object Arguments]",LRe="[object Boolean]",IRe="[object Date]",FRe="[object Map]",URe="[object Number]",$Re="[object Object]",BRe="[object RegExp]",zRe="[object Set]",VRe="[object String]",HRe=Array.isArray,KI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,ZI=Object.assign,WRe=Object.prototype.toString.call.bind(Object.prototype.toString);function YRe(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(HRe(u))return t(u,f,d);if(KI!=null&&KI(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=WRe(u);return m===IRe?n(u,f,d):m===BRe?a(u,f,d):m===FRe?r(u,f,d):m===zRe?s(u,f,d):m===$Re?typeof u.then!="function"&&typeof f.then!="function"&&i(u,f,d):m===DRe?i(u,f,d):m===LRe||m===URe||m===VRe?o(u,f,d):!1}}function GRe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Op:jRe,areDatesEqual:PRe,areMapsEqual:r?VI(GI,Op):GI,areObjectsEqual:r?Op:ARe,arePrimitiveWrappersEqual:NRe,areRegExpsEqual:MRe,areSetsEqual:r?VI(qI,Op):qI,areTypedArraysEqual:r?Op:RRe};if(n&&(i=ZI({},i,n(i))),t){var o=Xg(i.areArraysEqual),a=Xg(i.areMapsEqual),s=Xg(i.areObjectsEqual),l=Xg(i.areSetsEqual);i=ZI({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function qRe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function KRe(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 ZRe=_l();_l({strict:!0});_l({circular:!0});_l({circular:!0,strict:!0});_l({createInternalComparator:function(){return Dd}});_l({strict:!0,createInternalComparator:function(){return Dd}});_l({circular:!0,createInternalComparator:function(){return Dd}});_l({circular:!0,createInternalComparator:function(){return Dd},strict:!0});function _l(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=GRe(e),l=YRe(s),u=r?r(l):qRe(l);return KRe({circular:n,comparator:l,createState:i,equals:u,strict:a})}function QRe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function QI(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):QRe(i)};requestAnimationFrame(r)}function yT(e){"@babel/helpers - typeof";return yT=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},yT(e)}function XRe(e){return nDe(e)||tDe(e)||eDe(e)||JRe()}function JRe(){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 eDe(e,t){if(e){if(typeof e=="string")return XI(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 XI(e,t)}}function XI(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 tDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nDe(e){if(Array.isArray(e))return e}function rDe(){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=XRe(a),l=s[0],u=s.slice(1);if(typeof l=="number"){QI(i.bind(null,u),l);return}i(l),QI(i.bind(null,u));return}yT(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 _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 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 zf(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){Ib(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 Ib(e,t,n){return t=iDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iDe(e){var t=oDe(e,"string");return _m(t)==="symbol"?t:String(t)}function oDe(e,t){if(_m(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_m(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aDe=["Webkit","Moz","O","ms"],sDe=["-webkit-","-moz-","-o-","-ms-"],lDe=["transform","transformOrigin","transition"],uDe=function(e,t){return[Object.keys(e),Object.keys(t)].reduce(function(n,r){return n.filter(function(i){return r.includes(i)})})},cDe=function(e){return e},fDe=function(e){return e.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})},dDe=function(e,t){if(lDe.indexOf(e)===-1)return Ib({},e,Number.isNaN(t)?0:t);var n=e==="transition",r=e.replace(/(\w)/,function(o){return o.toUpperCase()}),i=t;return aDe.reduce(function(o,a,s){return n&&(i=t.replace(/(transform|transform-origin)/gim,"".concat(sDe[s],"$1"))),zf(zf({},o),{},Ib({},a+r,i))},{})},gh=function(e,t){return Object.keys(t).reduce(function(n,r){return zf(zf({},n),{},Ib({},r,e(r,t[r])))},{})},BP=function(e){return Object.keys(e).reduce(function(t,n){return zf(zf({},t),dDe(n,t[n]))},e)},e6=function(e,t,n){return e.map(function(r){return"".concat(fDe(r)," ").concat(t,"ms ").concat(n)}).join(",")};function pDe(e,t){return vDe(e)||mDe(e,t)||CW(e,t)||hDe()}function hDe(){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 mDe(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 vDe(e){if(Array.isArray(e))return e}function gDe(e){return _De(e)||bDe(e)||CW(e)||yDe()}function yDe(){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 CW(e,t){if(e){if(typeof e=="string")return bT(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 bT(e,t)}}function bDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _De(e){if(Array.isArray(e))return bT(e)}function bT(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 Fb=1e-4,kW=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},jW=function(e,t){return e.map(function(n,r){return n*Math.pow(t,r)}).reduce(function(n,r){return n+r})},t6=function(e,t){return function(n){var r=kW(e,t);return jW(r,n)}},wDe=function(e,t){return function(n){var r=kW(e,t),i=[].concat(gDe(r.map(function(o,a){return o*a}).slice(1)),[0]);return jW(i,n)}},n6=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=pDe(l,4);r=u[0],i=u[1],o=u[2],a=u[3]}}}var f=t6(r,o),d=t6(i,a),p=wDe(r,o),m=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,b=x,_=0;_<8;++_){var w=f(b)-x,O=p(b);if(Math.abs(w-x)<Fb||O<Fb)return d(b);b=m(b-w/O)}return d(b)};return v.isStepper=!1,v},xDe=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)<Fb&&Math.abs(m)<Fb?[u,0]:[v,m]};return s.isStepper=!0,s.dt=a,s},ODe=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 n6(r);case"spring":return xDe();default:if(r.split("(")[0]==="cubic-bezier")return n6(r)}return typeof r=="function"?r:null};function wm(e){"@babel/helpers - typeof";return wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wm(e)}function r6(e){return TDe(e)||EDe(e)||PW(e)||SDe()}function SDe(){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 EDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TDe(e){if(Array.isArray(e))return wT(e)}function i6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i6(Object(n),!0).forEach(function(r){_T(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _T(e,t,n){return t=CDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CDe(e){var t=kDe(e,"string");return wm(t)==="symbol"?t:String(t)}function kDe(e,t){if(wm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jDe(e,t){return NDe(e)||ADe(e,t)||PW(e,t)||PDe()}function PDe(){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 PW(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 ADe(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 NDe(e){if(Array.isArray(e))return e}var Ub=function(e,t,n){return e+(t-e)*n},xT=function(e){var t=e.from,n=e.to;return t!==n},MDe=function e(t,n,r){var i=gh(function(o,a){if(xT(a)){var s=t(a.from,a.to,a.velocity),l=jDe(s,2),u=l[0],f=l[1];return lr(lr({},a),{},{from:u,velocity:f})}return a},n);return r<1?gh(function(o,a){return xT(a)?lr(lr({},a),{},{velocity:Ub(a.velocity,i[o].velocity,r),from:Ub(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const RDe=function(e,t,n,r,i){var o=uDe(e,t),a=o.reduce(function(x,b){return lr(lr({},x),{},_T({},b,[e[b],t[b]]))},{}),s=o.reduce(function(x,b){return lr(lr({},x),{},_T({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,u,f,d=function(){return null},p=function(){return gh(function(x,b){return b.from},s)},m=function(){return!Object.values(s).filter(xT).length},v=function(x){u||(u=x);var b=x-u,_=b/n.dt;s=MDe(n,s,_),i(lr(lr(lr({},e),t),p())),u=x,m()||(l=requestAnimationFrame(d))},g=function(x){f||(f=x);var b=(x-f)/r,_=gh(function(O,E){return Ub.apply(void 0,r6(E).concat([n(b)]))},a);if(i(lr(lr(lr({},e),t),_)),b<1)l=requestAnimationFrame(d);else{var w=gh(function(O,E){return Ub.apply(void 0,r6(E).concat([n(1)]))},a);i(lr(lr(lr({},e),t),w))}};return d=n.isStepper?v:g,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};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)}var DDe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function LDe(e,t){if(e==null)return{};var n=IDe(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 IDe(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 sS(e){return BDe(e)||$De(e)||UDe(e)||FDe()}function FDe(){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 UDe(e,t){if(e){if(typeof e=="string")return OT(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 OT(e,t)}}function $De(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BDe(e){if(Array.isArray(e))return OT(e)}function OT(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 o6(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?o6(Object(n),!0).forEach(function(r){zp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zp(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 zDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a6(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 VDe(e,t,n){return t&&a6(e.prototype,t),n&&a6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function AW(e){var t=HDe(e,"string");return Vf(t)==="symbol"?t:String(t)}function HDe(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)}function WDe(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&&ST(e,t)}function ST(e,t){return ST=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ST(e,t)}function YDe(e){var t=GDe();return function(){var n=$b(e),r;if(t){var i=$b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ET(this,r)}}function ET(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 TT(e)}function TT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GDe(){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 $b(e){return $b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$b(e)}var Gi=function(e){WDe(n,e);var t=YDe(n);function n(r,i){var o;zDe(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(TT(o)),o.changeStyle=o.changeStyle.bind(TT(o)),!s||m<=0)return o.state={style:{}},typeof p=="function"&&(o.state={style:f}),ET(o);if(d&&d.length)o.state={style:d[0].style};else if(u){if(typeof p=="function")return o.state={style:u},ET(o);o.state={style:l?zp({},l,u):u}}else o.state={style:{}};return o}return VDe(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?zp({},s,u):u};this.state&&d&&(s&&d[s]!==u||!s&&d!==u)&&this.setState(p);return}if(!(ZRe(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?zp({},s,v):v};(s&&[s]!==v||!s&&d!==v)&&this.setState(g)}this.runAnimation(io(io({},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=RDe(o,a,ODe(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 x=v.duration,b=v.easing,_=b===void 0?"ease":b,w=v.style,O=v.properties,E=v.onAnimationEnd,T=g>0?o[g-1]:v,k=O||Object.keys(w);if(typeof _=="function"||_==="spring")return[].concat(sS(m),[i.runJSAnimation.bind(i,{from:T.style,to:w,duration:x,easing:_}),x]);var P=e6(k,x,_),D=io(io(io({},T.style),w),{},{transition:P});return[].concat(sS(m),[D,x,E]).filter(cDe)};return this.manager.start([s].concat(sS(o.reduce(p,[u,Math.max(d,a)])),[r.onAnimationEnd]))}},{key:"runAnimation",value:function(r){this.manager||(this.manager=rDe());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?zp({},a,s):s,g=e6(Object.keys(v),o,l);m.start([u,i,io(io({},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=LDe(r,DDe),l=I.Children.count(i),u=BP(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,x=I.cloneElement(d,io(io({},s),{},{style:io(io({},v),u),className:g}));return x};return l===1?f(I.Children.only(i)):M.createElement("div",null,I.Children.map(i,function(d){return f(d)}))}}]),n}(I.PureComponent);Gi.displayName="Animate";Gi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Gi.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 xm(e){"@babel/helpers - typeof";return xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xm(e)}function Jg(e,t,n){return t=qDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qDe(e){var t=KDe(e,"string");return xm(t)==="symbol"?t:String(t)}function KDe(e,t){if(xm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sp="recharts-tooltip-wrapper",ZDe={visibility:"hidden"};function QDe(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return We(Sp,(t={},Jg(t,"".concat(Sp,"-right"),je(r)&&n&&je(n.x)&&r>=n.x),Jg(t,"".concat(Sp,"-left"),je(r)&&n&&je(n.x)&&r<n.x),Jg(t,"".concat(Sp,"-bottom"),je(i)&&n&&je(n.y)&&i>=n.y),Jg(t,"".concat(Sp,"-top"),je(i)&&n&&je(n.y)&&i<n.y),t))}function s6(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 XDe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return BP({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function JDe(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=s6({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=s6({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=XDe({translateX:f,translateY:d,useTranslate3d:s})):u=ZDe,{cssProperties:u,cssClasses:QDe({translateX:f,translateY:d,coordinate:n})}}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 l6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l6(Object(n),!0).forEach(function(r){zy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u6(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,NW(r.key),r)}}function tLe(e,t,n){return t&&u6(e.prototype,t),n&&u6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nLe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CT(e,t)}function CT(e,t){return CT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},CT(e,t)}function rLe(e){var t=oLe();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 iLe(this,r)}}function iLe(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 By(e)}function By(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oLe(){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 zy(e,t,n){return t=NW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NW(e){var t=aLe(e,"string");return Hf(t)==="symbol"?t:String(t)}function aLe(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 c6=1,sLe=function(e){nLe(n,e);var t=rLe(n);function n(){var r;eLe(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)),zy(By(r),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),zy(By(r),"lastBoundingBox",{width:-1,height:-1}),zy(By(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 tLe(n,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.lastBoundingBox.width)>c6||Math.abs(r.height-this.lastBoundingBox.height)>c6)&&(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,x=i.useTranslate3d,b=i.viewBox,_=i.wrapperStyle,w=JDe({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:m,position:v,reverseDirection:g,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:x,viewBox:b}),O=w.cssClasses,E=w.cssProperties,T=lS(lS(lS({},p&&o&&BP({transition:"transform ".concat(s,"ms ").concat(l)})),E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},_);return M.createElement("div",{tabIndex:-1,role:"dialog",className:O,style:T,ref:function(k){r.wrapperNode=k}},u)}}]),n}(I.PureComponent),lLe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ui={isSsr:lLe(),get:function(e){return Ui[e]},set:function(e,t){if(typeof e=="string")Ui[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(r){Ui[r]=e[r]})}}};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 f6(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 d6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f6(Object(n),!0).forEach(function(r){zP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p6(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 cLe(e,t,n){return t&&p6(e.prototype,t),n&&p6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fLe(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&&kT(e,t)}function kT(e,t){return kT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kT(e,t)}function dLe(e){var t=mLe();return function(){var n=zb(e),r;if(t){var i=zb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return pLe(this,r)}}function pLe(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 hLe(e)}function hLe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mLe(){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 zb(e){return zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zb(e)}function zP(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=vLe(e,"string");return Wf(t)==="symbol"?t:String(t)}function vLe(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)}function gLe(e){return e.dataKey}function yLe(e,t){return M.isValidElement(e)?M.cloneElement(e,t):typeof e=="function"?M.createElement(e,t):M.createElement(ERe,t)}var xa=function(e){fLe(n,e);var t=dLe(n);function n(){return uLe(this,n),t.apply(this,arguments)}return cLe(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,x=r.reverseDirection,b=r.useTranslate3d,_=r.viewBox,w=r.wrapperStyle,O=m??[];f&&O.length&&(O=gW(m.filter(function(T){return T.value!=null}),v,gLe));var E=O.length>0;return M.createElement(sLe,{allowEscapeViewBox:o,animationDuration:a,animationEasing:s,isAnimationActive:d,active:i,coordinate:u,hasPayload:E,offset:p,position:g,reverseDirection:x,useTranslate3d:b,viewBox:_,wrapperStyle:w},yLe(l,d6(d6({},this.props),{},{payload:O})))}}]),n}(I.PureComponent);zP(xa,"displayName","Tooltip");zP(xa,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ui.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 bLe=sa,_Le=function(){return bLe.Date.now()},wLe=_Le,xLe=/\s/;function OLe(e){for(var t=e.length;t--&&xLe.test(e.charAt(t)););return t}var SLe=OLe,ELe=SLe,TLe=/^\s+/;function CLe(e){return e&&e.slice(0,ELe(e)+1).replace(TLe,"")}var kLe=CLe,jLe=kLe,h6=yl,PLe=Td,m6=0/0,ALe=/^[-+]0x[0-9a-f]+$/i,NLe=/^0b[01]+$/i,MLe=/^0o[0-7]+$/i,RLe=parseInt;function DLe(e){if(typeof e=="number")return e;if(PLe(e))return m6;if(h6(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=h6(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=jLe(e);var n=NLe.test(e);return n||MLe.test(e)?RLe(e.slice(2),n?2:8):ALe.test(e)?m6:+e}var RW=DLe,LLe=yl,uS=wLe,v6=RW,ILe="Expected a function",FLe=Math.max,ULe=Math.min;function $Le(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(ILe);t=v6(t)||0,LLe(n)&&(f=!!n.leading,d="maxWait"in n,o=d?FLe(v6(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function m(T){var k=r,P=i;return r=i=void 0,u=T,a=e.apply(P,k),a}function v(T){return u=T,s=setTimeout(b,t),f?m(T):a}function g(T){var k=T-l,P=T-u,D=t-k;return d?ULe(D,o-P):D}function x(T){var k=T-l,P=T-u;return l===void 0||k>=t||k<0||d&&P>=o}function b(){var T=uS();if(x(T))return _(T);s=setTimeout(b,g(T))}function _(T){return s=void 0,p&&r?m(T):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function O(){return s===void 0?a:_(uS())}function E(){var T=uS(),k=x(T);if(r=arguments,i=this,l=T,k){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),m(l)}return s===void 0&&(s=setTimeout(b,t)),a}return E.cancel=w,E.flush=O,E}var BLe=$Le,zLe=BLe,VLe=yl,HLe="Expected a function";function WLe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(HLe);return VLe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),zLe(e,t,{leading:r,maxWait:t,trailing:i})}var YLe=WLe;const DW=Et(YLe);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 g6(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 ey(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g6(Object(n),!0).forEach(function(r){GLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GLe(e,t,n){return t=qLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qLe(e){var t=KLe(e,"string");return Om(t)==="symbol"?t:String(t)}function KLe(e,t){if(Om(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Om(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZLe(e,t){return e4e(e)||JLe(e,t)||XLe(e,t)||QLe()}function QLe(){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 XLe(e,t){if(e){if(typeof e=="string")return y6(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 y6(e,t)}}function y6(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 JLe(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 e4e(e){if(Array.isArray(e))return e}var VP=I.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,x=e.id,b=e.className,_=e.onResize,w=e.style,O=w===void 0?{}:w,E=I.useRef(null),T=I.useRef();T.current=_,I.useImperativeHandle(t,function(){return Object.assign(E.current,{get current(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current}})});var k=I.useState({containerWidth:i.width,containerHeight:i.height}),P=ZLe(k,2),D=P[0],N=P[1],F=I.useCallback(function(Y,H){N(function(Q){var Z=Math.round(Y),te=Math.round(H);return Q.containerWidth===Z&&Q.containerHeight===te?Q:{containerWidth:Z,containerHeight:te}})},[]);I.useEffect(function(){var Y=function(X){var z,V=X[0].contentRect,W=V.width,re=V.height;F(W,re),(z=T.current)===null||z===void 0||z.call(T,W,re)};g>0&&(Y=DW(Y,g,{trailing:!0,leading:!1}));var H=new ResizeObserver(Y),Q=E.current.getBoundingClientRect(),Z=Q.width,te=Q.height;return F(Z,te),H.observe(E.current),function(){H.disconnect()}},[F,g]);var B=I.useMemo(function(){var Y=D.containerWidth,H=D.containerHeight;if(Y<0||H<0)return null;ka(nu(a)||nu(l),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,a,l),ka(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Q=nu(a)?Y:a,Z=nu(l)?H:l;n&&n>0&&(Q?Z=Q/n:Z&&(Q=Z*n),p&&Z>p&&(Z=p)),ka(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)&&QE.isElement(m)&&Ca(m.type).endsWith("Chart");return M.Children.map(m,function(X){return QE.isElement(X)?I.cloneElement(X,ey({width:Q,height:Z},te?{style:ey({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:x?"".concat(x):void 0,className:We("recharts-responsive-container",b),style:ey(ey({},O),{},{width:a,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:E},B)}),Ws=function(e){return null};Ws.displayName="Cell";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 b6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b6(Object(n),!0).forEach(function(r){t4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t4e(e,t,n){return t=n4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n4e(e){var t=r4e(e,"string");return Sm(t)==="symbol"?t:String(t)}function r4e(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)}var mc={widthCache:{},cacheCount:0},i4e=2e3,o4e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_6="recharts_measurement_span";function a4e(e){var t=jT({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var yh=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Ui.isSsr)return{width:0,height:0};var n=a4e(t),r=JSON.stringify({text:e,copyStyle:n});if(mc.widthCache[r])return mc.widthCache[r];try{var i=document.getElementById(_6);i||(i=document.createElement("span"),i.setAttribute("id",_6),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=jT(jT({},o4e),n);Object.assign(i.style,o),i.textContent="".concat(e);var a=i.getBoundingClientRect(),s={width:a.width,height:a.height};return mc.widthCache[r]=s,++mc.cacheCount>i4e&&(mc.cacheCount=0,mc.widthCache={}),s}catch{return{width:0,height:0}}},s4e=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};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 Vb(e,t){return f4e(e)||c4e(e,t)||u4e(e,t)||l4e()}function l4e(){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 u4e(e,t){if(e){if(typeof e=="string")return w6(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 w6(e,t)}}function w6(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 c4e(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 f4e(e){if(Array.isArray(e))return e}function d4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x6(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,h4e(r.key),r)}}function p4e(e,t,n){return t&&x6(e.prototype,t),n&&x6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h4e(e){var t=m4e(e,"string");return Em(t)==="symbol"?t:String(t)}function m4e(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)}var O6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,S6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,v4e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,g4e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,LW={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},y4e=Object.keys(LW),Vc="NaN";function b4e(e,t){return e*LW[t]}var ty=function(){function e(t,n){d4e(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!v4e.test(n)&&(this.num=NaN,this.unit=""),y4e.includes(n)&&(this.num=b4e(t,n),this.unit="px")}return p4e(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=g4e.exec(t))!==null&&n!==void 0?n:[],i=Vb(r,3),o=i[1],a=i[2];return new e(parseFloat(o),a??"")}}]),e}();function IW(e){if(e.includes(Vc))return Vc;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=O6.exec(t))!==null&&n!==void 0?n:[],i=Vb(r,4),o=i[1],a=i[2],s=i[3],l=ty.parse(o??""),u=ty.parse(s??""),f=a==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Vc;t=t.replace(O6,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=S6.exec(t))!==null&&d!==void 0?d:[],m=Vb(p,4),v=m[1],g=m[2],x=m[3],b=ty.parse(v??""),_=ty.parse(x??""),w=g==="+"?b.add(_):b.subtract(_);if(w.isNaN())return Vc;t=t.replace(S6,w.toString())}return t}var E6=/\(([^()]*)\)/;function _4e(e){for(var t=e;t.includes("(");){var n=E6.exec(t),r=Vb(n,2),i=r[1];t=t.replace(E6,IW(i))}return t}function w4e(e){var t=e.replace(/\s+/g,"");return t=_4e(t),t=IW(t),t}function x4e(e){try{return w4e(e)}catch{return Vc}}function cS(e){var t=x4e(e.slice(5,-1));return t===Vc?"":t}var O4e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],S4e=["dx","dy","angle","className","breakAll"];function PT(){return PT=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},PT.apply(this,arguments)}function T6(e,t){if(e==null)return{};var n=E4e(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 E4e(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 C6(e,t){return j4e(e)||k4e(e,t)||C4e(e,t)||T4e()}function T4e(){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 C4e(e,t){if(e){if(typeof e=="string")return k6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k6(e,t)}}function k6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k4e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function j4e(e){if(Array.isArray(e))return e}var FW=/[ \f\n\r\t\v\u2028\u2029]+/,UW=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(FW));var o=i.map(function(s){return{word:s,width:yh(s,r).width}}),a=n?0:yh(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch{return null}},P4e=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 Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Y.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 z={words:[Z],width:te};H.push(z)}return H},[])},p=d(t),m=function(Y){return Y.reduce(function(H,Q){return H.width>Q.width?H:Q})};if(!u)return p;for(var v="…",g=function(Y){var H=f.slice(0,Y),Q=UW({breakAll:l,style:s,children:H+v}).wordsWithComputedWidth,Z=d(Q),te=Z.length>o||m(Z).width>Number(r);return[te,Z]},x=0,b=f.length-1,_=0,w;x<=b&&_<=f.length-1;){var O=Math.floor((x+b)/2),E=O-1,T=g(E),k=C6(T,2),P=k[0],D=k[1],N=g(O),F=C6(N,1),B=F[0];if(!P&&!B&&(x=O+1),P&&B&&(b=O-1),!P&&B){w=D;break}_++}return w||p},j6=function(e){var t=Ze(e)?[]:e.toString().split(FW);return[{words:t}]},A4e=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,o=e.breakAll,a=e.maxLines;if((t||n)&&!Ui.isSsr){var s,l,u=UW({breakAll:o,children:r,style:i});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;s=f,l=d}else return j6(r);return P4e({breakAll:o,children:r,maxLines:a,style:i},s,l,t,n)}return j6(r)},P6="#808080",Mu=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,x=g===void 0?P6:g,b=T6(e,O4e),_=I.useMemo(function(){return A4e({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),w=b.dx,O=b.dy,E=b.angle,T=b.className,k=b.breakAll,P=T6(b,S4e);if(!Nn(n)||!Nn(i))return null;var D=n+(je(w)?w:0),N=i+(je(O)?O:0),F;switch(v){case"start":F=cS("calc(".concat(l,")"));break;case"middle":F=cS("calc(".concat((_.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:F=cS("calc(".concat(_.length-1," * -").concat(a,")"));break}var B=[];if(f){var Y=_[0].width,H=b.width;B.push("scale(".concat((je(H)?H/Y:1)/Y,")"))}return E&&B.push("rotate(".concat(E,", ").concat(D,", ").concat(N,")")),B.length&&(P.transform=B.join(" ")),M.createElement("text",PT({},Ve(P,!0),{x:D,y:N,className:We("recharts-text",T),textAnchor:p,fill:x.includes("url")?P6:x}),_.map(function(Q,Z){var te=Q.words.join(k?"":" ");return M.createElement("tspan",{x:D,dy:Z===0?F:a,key:te},te)}))};function Ys(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function N4e(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function HP(e){let t,n,r;e.length!==2?(t=Ys,n=(s,l)=>Ys(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ys||e===N4e?e:M4e,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 M4e(){return 0}function $W(e){return e===null?NaN:+e}function*R4e(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 D4e=HP(Ys),L4e=D4e.right;HP($W).center;const Pv=L4e;class A6 extends Map{constructor(t,n=U4e){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(N6(this,t))}has(t){return super.has(N6(this,t))}set(t,n){return super.set(I4e(this,t),n)}delete(t){return super.delete(F4e(this,t))}}function N6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function I4e({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function F4e({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function U4e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function $4e(e=Ys){if(e===Ys)return BW;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 BW(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const B4e=Math.sqrt(50),z4e=Math.sqrt(10),V4e=Math.sqrt(2);function Hb(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>=B4e?10:o>=z4e?5:o>=V4e?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?Hb(e,t,n*2):[s,l,u]}function AT(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?Hb(t,e,n):Hb(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 NT(e,t,n){return t=+t,e=+e,n=+n,Hb(e,t,n)[2]}function MT(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?NT(t,e,n):NT(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function M6(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 R6(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 zW(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?BW:$4e(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));zW(e,t,m,v,i)}const o=e[t];let a=n,s=r;for(Ep(e,n,t),i(e[r],o)>0&&Ep(e,n,r);a<s;){for(Ep(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?Ep(e,n,s):(++s,Ep(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ep(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function H4e(e,t,n){if(e=Float64Array.from(R4e(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return R6(e);if(t>=1)return M6(e);var r,i=(r-1)*t,o=Math.floor(i),a=M6(zW(e,o).subarray(0,o+1)),s=R6(e.subarray(o+1));return a+(s-a)*(i-o)}}function W4e(e,t,n=$W){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 Y4e(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 Xi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function es(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const RT=Symbol("implicit");function WP(){var e=new A6,t=[],n=[],r=RT;function i(o){let a=e.get(o);if(a===void 0){if(r!==RT)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 A6;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 WP(t,n).unknown(r)},Xi.apply(i,arguments),i}function Tm(){var e=WP().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 x=Y4e(p).map(function(b){return v+o*b});return n(m?x.reverse():x)}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 Tm(t(),[r,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},Xi.apply(d(),arguments)}function VW(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return VW(t())},e}function bh(){return VW(Tm.apply(null,arguments).paddingInner(1))}function YP(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function HW(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Av(){}var Cm=.7,Wb=1/Cm,of="\\s*([+-]?\\d+)\\s*",km="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",G4e=/^#([0-9a-f]{3,8})$/,q4e=new RegExp(`^rgb\\(${of},${of},${of}\\)$`),K4e=new RegExp(`^rgb\\(${Qo},${Qo},${Qo}\\)$`),Z4e=new RegExp(`^rgba\\(${of},${of},${of},${km}\\)$`),Q4e=new RegExp(`^rgba\\(${Qo},${Qo},${Qo},${km}\\)$`),X4e=new RegExp(`^hsl\\(${km},${Qo},${Qo}\\)$`),J4e=new RegExp(`^hsla\\(${km},${Qo},${Qo},${km}\\)$`),D6={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};YP(Av,jm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:L6,formatHex:L6,formatHex8:eIe,formatHsl:tIe,formatRgb:I6,toString:I6});function L6(){return this.rgb().formatHex()}function eIe(){return this.rgb().formatHex8()}function tIe(){return WW(this).formatHsl()}function I6(){return this.rgb().formatRgb()}function jm(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=G4e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?F6(t):n===3?new Hr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ny(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ny(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=q4e.exec(e))?new Hr(t[1],t[2],t[3],1):(t=K4e.exec(e))?new Hr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Z4e.exec(e))?ny(t[1],t[2],t[3],t[4]):(t=Q4e.exec(e))?ny(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=X4e.exec(e))?B6(t[1],t[2]/100,t[3]/100,1):(t=J4e.exec(e))?B6(t[1],t[2]/100,t[3]/100,t[4]):D6.hasOwnProperty(e)?F6(D6[e]):e==="transparent"?new Hr(NaN,NaN,NaN,0):null}function F6(e){return new Hr(e>>16&255,e>>8&255,e&255,1)}function ny(e,t,n,r){return r<=0&&(e=t=n=NaN),new Hr(e,t,n,r)}function nIe(e){return e instanceof Av||(e=jm(e)),e?(e=e.rgb(),new Hr(e.r,e.g,e.b,e.opacity)):new Hr}function DT(e,t,n,r){return arguments.length===1?nIe(e):new Hr(e,t,n,r??1)}function Hr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}YP(Hr,DT,HW(Av,{brighter(e){return e=e==null?Wb:Math.pow(Wb,e),new Hr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cm:Math.pow(Cm,e),new Hr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hr(vu(this.r),vu(this.g),vu(this.b),Yb(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:U6,formatHex:U6,formatHex8:rIe,formatRgb:$6,toString:$6}));function U6(){return`#${ru(this.r)}${ru(this.g)}${ru(this.b)}`}function rIe(){return`#${ru(this.r)}${ru(this.g)}${ru(this.b)}${ru((isNaN(this.opacity)?1:this.opacity)*255)}`}function $6(){const e=Yb(this.opacity);return`${e===1?"rgb(":"rgba("}${vu(this.r)}, ${vu(this.g)}, ${vu(this.b)}${e===1?")":`, ${e})`}`}function Yb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ru(e){return e=vu(e),(e<16?"0":"")+e.toString(16)}function B6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new po(e,t,n,r)}function WW(e){if(e instanceof po)return new po(e.h,e.s,e.l,e.opacity);if(e instanceof Av||(e=jm(e)),!e)return new po;if(e instanceof po)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 po(a,s,l,e.opacity)}function iIe(e,t,n,r){return arguments.length===1?WW(e):new po(e,t,n,r??1)}function po(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}YP(po,iIe,HW(Av,{brighter(e){return e=e==null?Wb:Math.pow(Wb,e),new po(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cm:Math.pow(Cm,e),new po(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 Hr(fS(e>=240?e-240:e+120,i,r),fS(e,i,r),fS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new po(z6(this.h),ry(this.s),ry(this.l),Yb(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=Yb(this.opacity);return`${e===1?"hsl(":"hsla("}${z6(this.h)}, ${ry(this.s)*100}%, ${ry(this.l)*100}%${e===1?")":`, ${e})`}`}}));function z6(e){return e=(e||0)%360,e<0?e+360:e}function ry(e){return Math.max(0,Math.min(1,e||0))}function fS(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 GP=e=>()=>e;function oIe(e,t){return function(n){return e+n*t}}function aIe(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 sIe(e){return(e=+e)==1?YW:function(t,n){return n-t?aIe(t,n,e):GP(isNaN(t)?n:t)}}function YW(e,t){var n=t-e;return n?oIe(e,n):GP(isNaN(e)?t:e)}const V6=function e(t){var n=sIe(t);function r(i,o){var a=n((i=DT(i)).r,(o=DT(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=YW(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 lIe(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 uIe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function cIe(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]=Ld(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 fIe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Gb(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dIe(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]=Ld(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var LT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dS=new RegExp(LT.source,"g");function pIe(e){return function(){return e}}function hIe(e){return function(t){return e(t)+""}}function mIe(e,t){var n=LT.lastIndex=dS.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=LT.exec(e))&&(i=dS.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:Gb(r,i)})),n=dS.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?hIe(l[0].x):pIe(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 Ld(e,t){var n=typeof t,r;return t==null||n==="boolean"?GP(t):(n==="number"?Gb:n==="string"?(r=jm(t))?(t=r,V6):mIe:t instanceof jm?V6:t instanceof Date?fIe:uIe(t)?lIe:Array.isArray(t)?cIe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dIe:Gb)(e,t)}function qP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function vIe(e,t){t===void 0&&(t=e,e=Ld);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 gIe(e){return function(){return e}}function qb(e){return+e}var H6=[0,1];function Mr(e){return e}function IT(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:gIe(isNaN(t)?NaN:.5)}function yIe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function bIe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=IT(i,r),o=n(a,o)):(r=IT(r,i),o=n(o,a)),function(s){return o(r(s))}}function _Ie(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]=IT(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Pv(e,s,1,r)-1;return o[l](i[l](s))}}function Nv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Iw(){var e=H6,t=H6,n=Ld,r,i,o,a=Mr,s,l,u;function f(){var p=Math.min(e.length,t.length);return a!==Mr&&(a=yIe(e[0],e[p-1])),s=p>2?_Ie:bIe,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),Gb)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,qb),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=qP,f()},d.clamp=function(p){return arguments.length?(a=p?!0:Mr,f()):a!==Mr},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 KP(){return Iw()(Mr,Mr)}function wIe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Kb(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Yf(e){return e=Kb(Math.abs(e)),e?e[1]:NaN}function xIe(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 OIe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var SIe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pm(e){if(!(t=SIe.exec(e)))throw new Error("invalid format: "+e);var t;return new ZP({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]})}Pm.prototype=ZP.prototype;function ZP(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+""}ZP.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 EIe(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 GW;function TIe(e,t){var n=Kb(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(GW=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")+Kb(e,Math.max(0,t+o-1))[0]}function W6(e,t){var n=Kb(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Y6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:wIe,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)=>W6(e*100,t),r:W6,s:TIe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function G6(e){return e}var q6=Array.prototype.map,K6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function CIe(e){var t=e.grouping===void 0||e.thousands===void 0?G6:xIe(q6.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?G6:OIe(q6.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=Pm(d);var p=d.fill,m=d.align,v=d.sign,g=d.symbol,x=d.zero,b=d.width,_=d.comma,w=d.precision,O=d.trim,E=d.type;E==="n"?(_=!0,E="g"):Y6[E]||(w===void 0&&(w=12),O=!0,E="g"),(x||p==="0"&&m==="=")&&(x=!0,p="0",m="=");var T=g==="$"?n:g==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k=g==="$"?r:/[%p]/.test(E)?a:"",P=Y6[E],D=/[defgprs%]/.test(E);w=w===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function N(F){var B=T,Y=k,H,Q,Z;if(E==="c")Y=P(F)+Y,F="";else{F=+F;var te=F<0||1/F<0;if(F=isNaN(F)?l:P(Math.abs(F),w),O&&(F=EIe(F)),te&&+F==0&&v!=="+"&&(te=!1),B=(te?v==="("?v:s:v==="-"||v==="("?"":v)+B,Y=(E==="s"?K6[8+GW/3]:"")+Y+(te&&v==="("?")":""),D){for(H=-1,Q=F.length;++H<Q;)if(Z=F.charCodeAt(H),48>Z||Z>57){Y=(Z===46?i+F.slice(H+1):F.slice(H))+Y,F=F.slice(0,H);break}}}_&&!x&&(F=t(F,1/0));var X=B.length+F.length+Y.length,z=X<b?new Array(b-X+1).join(p):"";switch(_&&x&&(F=t(z+F,z.length?b-Y.length:1/0),z=""),m){case"<":F=B+F+Y+z;break;case"=":F=B+z+F+Y;break;case"^":F=z.slice(0,X=z.length>>1)+B+F+Y+z.slice(X);break;default:F=z+B+F+Y;break}return o(F)}return N.toString=function(){return d+""},N}function f(d,p){var m=u((d=Pm(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(Yf(p)/3)))*3,g=Math.pow(10,-v),x=K6[8+v/3];return function(b){return m(g*b)+x}}return{format:u,formatPrefix:f}}var iy,QP,qW;kIe({thousands:",",grouping:[3],currency:["$",""]});function kIe(e){return iy=CIe(e),QP=iy.format,qW=iy.formatPrefix,iy}function jIe(e){return Math.max(0,-Yf(Math.abs(e)))}function PIe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yf(t)/3)))*3-Yf(Math.abs(e)))}function AIe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yf(t)-Yf(e))+1}function KW(e,t,n,r){var i=MT(e,t,n),o;switch(r=Pm(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=PIe(i,a))&&(r.precision=o),qW(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=AIe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=jIe(i))&&(r.precision=o-(r.type==="%")*2);break}}return QP(r)}function wl(e){var t=e.domain;return e.ticks=function(n){var r=t();return AT(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return KW(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=NT(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 Zb(){var e=KP();return e.copy=function(){return Nv(e,Zb())},Xi.apply(e,arguments),wl(e)}function ZW(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,qb),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return ZW(e).unknown(t)},e=arguments.length?Array.from(e,qb):[0,1],wl(n)}function QW(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 Z6(e){return Math.log(e)}function Q6(e){return Math.exp(e)}function NIe(e){return-Math.log(-e)}function MIe(e){return-Math.exp(-e)}function RIe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function DIe(e){return e===10?RIe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function LIe(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 X6(e){return(t,n)=>-e(-t,n)}function XP(e){const t=e(Z6,Q6),n=t.domain;let r=10,i,o;function a(){return i=LIe(r),o=DIe(r),n()[0]<0?(i=X6(i),o=X6(o),e(NIe,MIe)):e(Z6,Q6),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 x=s==null?10:+s;let b=[];if(!(r%1)&&m-p<x){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;b.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;b.push(g)}b.length*2<x&&(b=AT(u,f,x))}else b=AT(p,m,Math.min(m-p,x)).map(o);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Pm(l)).precision==null&&(l.trim=!0),l=QP(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(QW(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function XW(){const e=XP(Iw()).domain([1,10]);return e.copy=()=>Nv(e,XW()).base(e.base()),Xi.apply(e,arguments),e}function J6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function e5(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function JP(e){var t=1,n=e(J6(t),e5(t));return n.constant=function(r){return arguments.length?e(J6(t=+r),e5(t)):t},wl(n)}function JW(){var e=JP(Iw());return e.copy=function(){return Nv(e,JW()).constant(e.constant())},Xi.apply(e,arguments)}function t5(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function IIe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function FIe(e){return e<0?-e*e:e*e}function eA(e){var t=e(Mr,Mr),n=1;function r(){return n===1?e(Mr,Mr):n===.5?e(IIe,FIe):e(t5(n),t5(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},wl(t)}function tA(){var e=eA(Iw());return e.copy=function(){return Nv(e,tA()).exponent(e.exponent())},Xi.apply(e,arguments),e}function UIe(){return tA.apply(null,arguments).exponent(.5)}function n5(e){return Math.sign(e)*e*e}function $Ie(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function eY(){var e=KP(),t=[0,1],n=!1,r;function i(o){var a=$Ie(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(n5(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,qb)).map(n5)),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 eY(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Xi.apply(i,arguments),wl(i)}function tY(){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]=W4e(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Pv(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(Ys),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 tY().domain(e).range(t).unknown(r)},Xi.apply(o,arguments)}function nY(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Pv(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 nY().domain([e,t]).range(i).unknown(o)},Xi.apply(wl(a),arguments)}function rY(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Pv(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 rY().domain(e).range(t).unknown(n)},Xi.apply(i,arguments)}const pS=new Date,hS=new Date;function Ln(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=>Ln(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)=>(pS.setTime(+o),hS.setTime(+a),e(pS),e(hS),Math.floor(n(pS,hS))),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 Qb=Ln(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Qb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ln(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Qb);Qb.range;const Oa=1e3,Ri=Oa*60,Sa=Ri*60,Ba=Sa*24,nA=Ba*7,r5=Ba*30,mS=Ba*365,iu=Ln(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Oa)},(e,t)=>(t-e)/Oa,e=>e.getUTCSeconds());iu.range;const rA=Ln(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oa)},(e,t)=>{e.setTime(+e+t*Ri)},(e,t)=>(t-e)/Ri,e=>e.getMinutes());rA.range;const iA=Ln(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ri)},(e,t)=>(t-e)/Ri,e=>e.getUTCMinutes());iA.range;const oA=Ln(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oa-e.getMinutes()*Ri)},(e,t)=>{e.setTime(+e+t*Sa)},(e,t)=>(t-e)/Sa,e=>e.getHours());oA.range;const aA=Ln(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Sa)},(e,t)=>(t-e)/Sa,e=>e.getUTCHours());aA.range;const Mv=Ln(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ri)/Ba,e=>e.getDate()-1);Mv.range;const Fw=Ln(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ba,e=>e.getUTCDate()-1);Fw.range;const iY=Ln(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ba,e=>Math.floor(e/Ba));iY.range;function Vu(e){return Ln(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())*Ri)/nA)}const Uw=Vu(0),Xb=Vu(1),BIe=Vu(2),zIe=Vu(3),Gf=Vu(4),VIe=Vu(5),HIe=Vu(6);Uw.range;Xb.range;BIe.range;zIe.range;Gf.range;VIe.range;HIe.range;function Hu(e){return Ln(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)/nA)}const $w=Hu(0),Jb=Hu(1),WIe=Hu(2),YIe=Hu(3),qf=Hu(4),GIe=Hu(5),qIe=Hu(6);$w.range;Jb.range;WIe.range;YIe.range;qf.range;GIe.range;qIe.range;const sA=Ln(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());sA.range;const lA=Ln(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());lA.range;const za=Ln(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:Ln(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=Ln(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:Ln(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 oY(e,t,n,r,i,o){const a=[[iu,1,Oa],[iu,5,5*Oa],[iu,15,15*Oa],[iu,30,30*Oa],[o,1,Ri],[o,5,5*Ri],[o,15,15*Ri],[o,30,30*Ri],[i,1,Sa],[i,3,3*Sa],[i,6,6*Sa],[i,12,12*Sa],[r,1,Ba],[r,2,2*Ba],[n,1,nA],[t,1,r5],[t,3,3*r5],[e,1,mS]];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=HP(([,,x])=>x).right(a,p);if(m===a.length)return e.every(MT(u/mS,f/mS,d));if(m===0)return Qb.every(Math.max(MT(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[KIe,ZIe]=oY(Va,lA,$w,iY,aA,iA),[QIe,XIe]=oY(za,sA,Uw,Mv,oA,rA);function vS(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 gS(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 Tp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function JIe(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=Cp(i),f=kp(i),d=Cp(o),p=kp(o),m=Cp(a),v=kp(a),g=Cp(s),x=kp(s),b=Cp(l),_=kp(l),w={a:te,A:X,b:z,B:V,c:null,d:u5,e:u5,f:x6e,g:N6e,G:R6e,H:b6e,I:_6e,j:w6e,L:aY,m:O6e,M:S6e,p:W,q:re,Q:d5,s:p5,S:E6e,u:T6e,U:C6e,V:k6e,w:j6e,W:P6e,x:null,X:null,y:A6e,Y:M6e,Z:D6e,"%":f5},O={a:q,A:ee,b:oe,B:le,c:null,d:c5,e:c5,f:U6e,g:K6e,G:Q6e,H:L6e,I:I6e,j:F6e,L:lY,m:$6e,M:B6e,p:fe,q:j,Q:d5,s:p5,S:z6e,u:V6e,U:H6e,V:W6e,w:Y6e,W:G6e,x:null,X:null,y:q6e,Y:Z6e,Z:X6e,"%":f5},E={a:N,A:F,b:B,B:Y,c:H,d:s5,e:s5,f:m6e,g:a5,G:o5,H:l5,I:l5,j:f6e,L:h6e,m:c6e,M:d6e,p:D,q:u6e,Q:g6e,s:y6e,S:p6e,u:i6e,U:o6e,V:a6e,w:r6e,W:s6e,x:Q,X:Z,y:a5,Y:o5,Z:l6e,"%":v6e};w.x=T(n,w),w.X=T(r,w),w.c=T(t,w),O.x=T(n,O),O.X=T(r,O),O.c=T(t,O);function T(A,$){return function(J){var K=[],se=-1,he=0,Ee=A.length,ue,ve,ge;for(J instanceof Date||(J=new Date(+J));++se<Ee;)A.charCodeAt(se)===37&&(K.push(A.slice(he,se)),(ve=i5[ue=A.charAt(++se)])!=null?ue=A.charAt(++se):ve=ue==="e"?" ":"0",(ge=$[ue])&&(ue=ge(J,ve)),K.push(ue),he=se+1);return K.push(A.slice(he,se)),K.join("")}}function k(A,$){return function(J){var K=Tp(1900,void 0,1),se=P(K,A,J+="",0),he,Ee;if(se!=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($&&!("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=gS(Tp(K.y,0,1)),Ee=he.getUTCDay(),he=Ee>4||Ee===0?Jb.ceil(he):Jb(he),he=Fw.offset(he,(K.V-1)*7),K.y=he.getUTCFullYear(),K.m=he.getUTCMonth(),K.d=he.getUTCDate()+(K.w+6)%7):(he=vS(Tp(K.y,0,1)),Ee=he.getDay(),he=Ee>4||Ee===0?Xb.ceil(he):Xb(he),he=Mv.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?gS(Tp(K.y,0,1)).getUTCDay():vS(Tp(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,gS(K)):vS(K)}}function P(A,$,J,K){for(var se=0,he=$.length,Ee=J.length,ue,ve;se<he;){if(K>=Ee)return-1;if(ue=$.charCodeAt(se++),ue===37){if(ue=$.charAt(se++),ve=E[ue in i5?$.charAt(se++):ue],!ve||(K=ve(A,J,K))<0)return-1}else if(ue!=J.charCodeAt(K++))return-1}return K}function D(A,$,J){var K=u.exec($.slice(J));return K?(A.p=f.get(K[0].toLowerCase()),J+K[0].length):-1}function N(A,$,J){var K=m.exec($.slice(J));return K?(A.w=v.get(K[0].toLowerCase()),J+K[0].length):-1}function F(A,$,J){var K=d.exec($.slice(J));return K?(A.w=p.get(K[0].toLowerCase()),J+K[0].length):-1}function B(A,$,J){var K=b.exec($.slice(J));return K?(A.m=_.get(K[0].toLowerCase()),J+K[0].length):-1}function Y(A,$,J){var K=g.exec($.slice(J));return K?(A.m=x.get(K[0].toLowerCase()),J+K[0].length):-1}function H(A,$,J){return P(A,t,$,J)}function Q(A,$,J){return P(A,n,$,J)}function Z(A,$,J){return P(A,r,$,J)}function te(A){return a[A.getDay()]}function X(A){return o[A.getDay()]}function z(A){return l[A.getMonth()]}function V(A){return s[A.getMonth()]}function W(A){return i[+(A.getHours()>=12)]}function re(A){return 1+~~(A.getMonth()/3)}function q(A){return a[A.getUTCDay()]}function ee(A){return o[A.getUTCDay()]}function oe(A){return l[A.getUTCMonth()]}function le(A){return s[A.getUTCMonth()]}function fe(A){return i[+(A.getUTCHours()>=12)]}function j(A){return 1+~~(A.getUTCMonth()/3)}return{format:function(A){var $=T(A+="",w);return $.toString=function(){return A},$},parse:function(A){var $=k(A+="",!1);return $.toString=function(){return A},$},utcFormat:function(A){var $=T(A+="",O);return $.toString=function(){return A},$},utcParse:function(A){var $=k(A+="",!0);return $.toString=function(){return A},$}}}var i5={"-":"",_:" ",0:"0"},Jn=/^\s*\d+/,e6e=/^%/,t6e=/[\\^$*+?|[\]().{}]/g;function St(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 n6e(e){return e.replace(t6e,"\\$&")}function Cp(e){return new RegExp("^(?:"+e.map(n6e).join("|")+")","i")}function kp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function r6e(e,t,n){var r=Jn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function i6e(e,t,n){var r=Jn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function o6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function a6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function s6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function o5(e,t,n){var r=Jn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function a5(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function l6e(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 u6e(e,t,n){var r=Jn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function c6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function s5(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function f6e(e,t,n){var r=Jn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function l5(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function d6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function p6e(e,t,n){var r=Jn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function h6e(e,t,n){var r=Jn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function m6e(e,t,n){var r=Jn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function v6e(e,t,n){var r=e6e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function g6e(e,t,n){var r=Jn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function y6e(e,t,n){var r=Jn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function u5(e,t){return St(e.getDate(),t,2)}function b6e(e,t){return St(e.getHours(),t,2)}function _6e(e,t){return St(e.getHours()%12||12,t,2)}function w6e(e,t){return St(1+Mv.count(za(e),e),t,3)}function aY(e,t){return St(e.getMilliseconds(),t,3)}function x6e(e,t){return aY(e,t)+"000"}function O6e(e,t){return St(e.getMonth()+1,t,2)}function S6e(e,t){return St(e.getMinutes(),t,2)}function E6e(e,t){return St(e.getSeconds(),t,2)}function T6e(e){var t=e.getDay();return t===0?7:t}function C6e(e,t){return St(Uw.count(za(e)-1,e),t,2)}function sY(e){var t=e.getDay();return t>=4||t===0?Gf(e):Gf.ceil(e)}function k6e(e,t){return e=sY(e),St(Gf.count(za(e),e)+(za(e).getDay()===4),t,2)}function j6e(e){return e.getDay()}function P6e(e,t){return St(Xb.count(za(e)-1,e),t,2)}function A6e(e,t){return St(e.getFullYear()%100,t,2)}function N6e(e,t){return e=sY(e),St(e.getFullYear()%100,t,2)}function M6e(e,t){return St(e.getFullYear()%1e4,t,4)}function R6e(e,t){var n=e.getDay();return e=n>=4||n===0?Gf(e):Gf.ceil(e),St(e.getFullYear()%1e4,t,4)}function D6e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+St(t/60|0,"0",2)+St(t%60,"0",2)}function c5(e,t){return St(e.getUTCDate(),t,2)}function L6e(e,t){return St(e.getUTCHours(),t,2)}function I6e(e,t){return St(e.getUTCHours()%12||12,t,2)}function F6e(e,t){return St(1+Fw.count(Va(e),e),t,3)}function lY(e,t){return St(e.getUTCMilliseconds(),t,3)}function U6e(e,t){return lY(e,t)+"000"}function $6e(e,t){return St(e.getUTCMonth()+1,t,2)}function B6e(e,t){return St(e.getUTCMinutes(),t,2)}function z6e(e,t){return St(e.getUTCSeconds(),t,2)}function V6e(e){var t=e.getUTCDay();return t===0?7:t}function H6e(e,t){return St($w.count(Va(e)-1,e),t,2)}function uY(e){var t=e.getUTCDay();return t>=4||t===0?qf(e):qf.ceil(e)}function W6e(e,t){return e=uY(e),St(qf.count(Va(e),e)+(Va(e).getUTCDay()===4),t,2)}function Y6e(e){return e.getUTCDay()}function G6e(e,t){return St(Jb.count(Va(e)-1,e),t,2)}function q6e(e,t){return St(e.getUTCFullYear()%100,t,2)}function K6e(e,t){return e=uY(e),St(e.getUTCFullYear()%100,t,2)}function Z6e(e,t){return St(e.getUTCFullYear()%1e4,t,4)}function Q6e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?qf(e):qf.ceil(e),St(e.getUTCFullYear()%1e4,t,4)}function X6e(){return"+0000"}function f5(){return"%"}function d5(e){return+e}function p5(e){return Math.floor(+e/1e3)}var vc,cY,fY;J6e({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 J6e(e){return vc=JIe(e),cY=vc.format,vc.parse,fY=vc.utcFormat,vc.utcParse,vc}function e5e(e){return new Date(e)}function t5e(e){return e instanceof Date?+e:+new Date(+e)}function uA(e,t,n,r,i,o,a,s,l,u){var f=KP(),d=f.invert,p=f.domain,m=u(".%L"),v=u(":%S"),g=u("%I:%M"),x=u("%I %p"),b=u("%a %d"),_=u("%b %d"),w=u("%B"),O=u("%Y");function E(T){return(l(T)<T?m:s(T)<T?v:a(T)<T?g:o(T)<T?x:r(T)<T?i(T)<T?b:_:n(T)<T?w:O)(T)}return f.invert=function(T){return new Date(d(T))},f.domain=function(T){return arguments.length?p(Array.from(T,t5e)):p().map(e5e)},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(QW(k,T)):f},f.copy=function(){return Nv(f,uA(e,t,n,r,i,o,a,s,l,u))},f}function n5e(){return Xi.apply(uA(QIe,XIe,za,sA,Uw,Mv,oA,rA,iu,cY).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function r5e(){return Xi.apply(uA(KIe,ZIe,Va,lA,$w,Fw,aA,iA,iu,fY).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bw(){var e=0,t=1,n,r,i,o,a=Mr,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(Ld),u.rangeRound=f(qP),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 xl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dY(){var e=wl(Bw()(Mr));return e.copy=function(){return xl(e,dY())},es.apply(e,arguments)}function pY(){var e=XP(Bw()).domain([1,10]);return e.copy=function(){return xl(e,pY()).base(e.base())},es.apply(e,arguments)}function hY(){var e=JP(Bw());return e.copy=function(){return xl(e,hY()).constant(e.constant())},es.apply(e,arguments)}function cA(){var e=eA(Bw());return e.copy=function(){return xl(e,cA()).exponent(e.exponent())},es.apply(e,arguments)}function i5e(){return cA.apply(null,arguments).exponent(.5)}function mY(){var e=[],t=Mr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Pv(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(Ys),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)=>H4e(e,o/r))},n.copy=function(){return mY(t).domain(e)},es.apply(n,arguments)}function zw(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,u=Mr,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(x){var b,_,w;return arguments.length?([b,_,w]=x,u=vIe(g,[b,_,w]),m):[u(0),u(.5),u(1)]}}return m.range=v(Ld),m.rangeRound=v(qP),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 vY(){var e=wl(zw()(Mr));return e.copy=function(){return xl(e,vY())},es.apply(e,arguments)}function gY(){var e=XP(zw()).domain([.1,1,10]);return e.copy=function(){return xl(e,gY()).base(e.base())},es.apply(e,arguments)}function yY(){var e=JP(zw());return e.copy=function(){return xl(e,yY()).constant(e.constant())},es.apply(e,arguments)}function fA(){var e=eA(zw());return e.copy=function(){return xl(e,fA()).exponent(e.exponent())},es.apply(e,arguments)}function o5e(){return fA.apply(null,arguments).exponent(.5)}const h5=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Tm,scaleDiverging:vY,scaleDivergingLog:gY,scaleDivergingPow:fA,scaleDivergingSqrt:o5e,scaleDivergingSymlog:yY,scaleIdentity:ZW,scaleImplicit:RT,scaleLinear:Zb,scaleLog:XW,scaleOrdinal:WP,scalePoint:bh,scalePow:tA,scaleQuantile:tY,scaleQuantize:nY,scaleRadial:eY,scaleSequential:dY,scaleSequentialLog:pY,scaleSequentialPow:cA,scaleSequentialQuantile:mY,scaleSequentialSqrt:i5e,scaleSequentialSymlog:hY,scaleSqrt:UIe,scaleSymlog:JW,scaleThreshold:rY,scaleTime:n5e,scaleUtc:r5e,tickFormat:KW},Symbol.toStringTag,{value:"Module"}));var a5e=Td;function s5e(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&&!a5e(a):n(a,s)))var s=a,l=o}return l}var Vw=s5e;function l5e(e,t){return e>t}var bY=l5e,u5e=Vw,c5e=bY,f5e=Rd;function d5e(e){return e&&e.length?u5e(e,f5e,c5e):void 0}var p5e=d5e;const Ps=Et(p5e);function h5e(e,t){return e<t}var _Y=h5e,m5e=Vw,v5e=_Y,g5e=Rd;function y5e(e){return e&&e.length?m5e(e,g5e,v5e):void 0}var b5e=y5e;const Hw=Et(b5e);var _5e=TP,w5e=la,x5e=OW,O5e=ei;function S5e(e,t){var n=O5e(e)?_5e:x5e;return n(e,w5e(t))}var E5e=S5e,T5e=wW,C5e=E5e;function k5e(e,t){return T5e(C5e(e,t),1)}var j5e=k5e;const P5e=Et(j5e);var A5e=FP;function N5e(e,t){return A5e(e,t)}var M5e=N5e;const sl=Et(M5e);var Id=1e9,R5e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},pA,Jt=!0,qi="[DecimalError] ",gu=qi+"Invalid argument: ",dA=qi+"Exponent out of range: ",Fd=Math.floor,Wl=Math.pow,D5e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,oi,Hn=1e7,Ht=7,wY=9007199254740991,e_=Fd(wY/Ht),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)*Ht;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 ja(this,new this.constructor(e))};Be.dividedToIntegerBy=Be.idiv=function(e){var t=this,n=t.constructor;return Dt(ja(t,new n(e),0,1),n.precision)};Be.equals=Be.eq=function(e){return!this.cmp(e)};Be.exponent=function(){return Tn(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(oi))throw Error(qi+"NaN");if(n.s<1)throw Error(qi+(n.s?"NaN":"-Infinity"));return n.eq(oi)?new r(0):(Jt=!1,t=ja(Am(n,o),Am(e,o),o),Jt=!0,Dt(t,i))};Be.minus=Be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?SY(t,e):xY(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(qi+"NaN");return n.s?(Jt=!1,t=ja(n,e,0,1).times(e),Jt=!0,n.minus(t)):Dt(new r(n),i)};Be.naturalExponential=Be.exp=function(){return OY(this)};Be.naturalLogarithm=Be.ln=function(){return Am(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?xY(t,e):SY(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(gu+e);if(t=Tn(i)+1,r=i.d.length-1,n=r*Ht+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(qi+"NaN")}for(e=Tn(s),Jt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Bo(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Fd((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(ja(s,o,a+2)).times(.5),Bo(o.d).slice(0,a)===(t=Bo(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Dt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return Jt=!0,Dt(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%Hn|0,t=s/Hn|0;o[i]=(o[i]+t)%Hn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Jt?Dt(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:(ra(e,0,Id),t===void 0?t=r.rounding:ra(t,0,8),Dt(n,e+Tn(n)+1,t))};Be.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Ru(r,!0):(ra(e,0,Id),t===void 0?t=i.rounding:ra(t,0,8),r=Dt(new i(r),e+1,t),n=Ru(r,!0,e+1)),n};Be.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Ru(i):(ra(e,0,Id),t===void 0?t=o.rounding:ra(t,0,8),r=Dt(new o(i),e+Tn(i)+1,t),n=Ru(r.abs(),!1,e+Tn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Be.toInteger=Be.toint=function(){var e=this,t=e.constructor;return Dt(new t(e),Tn(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(oi);if(s=new l(s),!s.s){if(e.s<1)throw Error(qi+"Infinity");return s}if(s.eq(oi))return s;if(r=l.precision,e.eq(oi))return Dt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=wY){for(i=new l(oi),t=Math.ceil(r/Ht+4),Jt=!1;n%2&&(i=i.times(s),v5(i.d,t)),n=Fd(n/2),n!==0;)s=s.times(s),v5(s.d,t);return Jt=!0,e.s<0?new l(oi).div(i):Dt(i,r)}}else if(o<0)throw Error(qi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Jt=!1,i=e.times(Am(s,r+u)),Jt=!0,i=OY(i),i.s=o,i};Be.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Tn(i),r=Ru(i,n<=o.toExpNeg||n>=o.toExpPos)):(ra(e,1,Id),t===void 0?t=o.rounding:ra(t,0,8),i=Dt(new o(i),e,t),n=Tn(i),r=Ru(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):(ra(e,1,Id),t===void 0?t=r.rounding:ra(t,0,8)),Dt(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=Tn(e),n=e.constructor;return Ru(e,t<=n.toExpNeg||t>=n.toExpPos)};function xY(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)),Jt?Dt(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/Ht),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)/Hn|0,l[o]%=Hn;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Jt?Dt(t,d):t}function ra(e,t,n){if(e!==~~e||e<t||e>n)throw Error(gu+e)}function Bo(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=Ht-r.length,n&&(o+=_s(n)),o+=r;a=e[t],r=a+"",n=Ht-r.length,n&&(o+=_s(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var ja=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%Hn|0,a=o/Hn|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*Hn+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,x,b,_,w,O,E,T,k,P,D=r.constructor,N=r.s==i.s?1:-1,F=r.d,B=i.d;if(!r.s)return new D(r);if(!i.s)throw Error(qi+"Division by zero");for(l=r.e-i.e,k=B.length,E=F.length,m=new D(N),v=m.d=[],u=0;B[u]==(F[u]||0);)++u;if(B[u]>(F[u]||0)&&--l,o==null?_=o=D.precision:a?_=o+(Tn(r)-Tn(i))+1:_=o,_<0)return new D(0);if(_=_/Ht+2|0,u=0,k==1)for(f=0,B=B[0],_++;(u<E||f)&&_--;u++)w=f*Hn+(F[u]||0),v[u]=w/B|0,f=w%B|0;else{for(f=Hn/(B[0]+1)|0,f>1&&(B=e(B,f),F=e(F,f),k=B.length,E=F.length),O=k,g=F.slice(0,k),x=g.length;x<k;)g[x++]=0;P=B.slice(),P.unshift(0),T=B[0],B[1]>=Hn/2&&++T;do f=0,s=t(B,g,k,x),s<0?(b=g[0],k!=x&&(b=b*Hn+(g[1]||0)),f=b/T|0,f>1?(f>=Hn&&(f=Hn-1),d=e(B,f),p=d.length,x=g.length,s=t(d,g,p,x),s==1&&(f--,n(d,k<p?P:B,p))):(f==0&&(s=f=1),d=B.slice()),p=d.length,p<x&&d.unshift(0),n(g,d,x),s==-1&&(x=g.length,s=t(B,g,k,x),s<1&&(f++,n(g,k<x?P:B,x))),x=g.length):s===0&&(f++,g=[0]),v[u++]=f,s&&g[0]?g[x++]=F[O]||0:(g=[F[O]],x=1);while((O++<E||g[0]!==void 0)&&_--)}return v[0]||v.shift(),m.e=l,Dt(m,a?o+Tn(m)+1:o)}}();function OY(e,t){var n,r,i,o,a,s,l=0,u=0,f=e.constructor,d=f.precision;if(Tn(e)>16)throw Error(dA+Tn(e));if(!e.s)return new f(oi);for(t==null?(Jt=!1,s=d):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Wl(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new f(oi),f.precision=s;;){if(i=Dt(i.times(e),s),n=n.times(++l),a=o.plus(ja(i,n,s)),Bo(a.d).slice(0,s)===Bo(o.d).slice(0,s)){for(;u--;)o=Dt(o.times(o),s);return f.precision=d,t==null?(Jt=!0,Dt(o,d)):o}o=a}}function Tn(e){for(var t=e.e*Ht,n=e.d[0];n>=10;n/=10)t++;return t}function yS(e,t,n){if(t>e.LN10.sd())throw Jt=!0,n&&(e.precision=n),Error(qi+"LN10 precision limit exceeded");return Dt(new e(e.LN10),t)}function _s(e){for(var t="";e--;)t+="0";return t}function Am(e,t){var n,r,i,o,a,s,l,u,f,d=1,p=10,m=e,v=m.d,g=m.constructor,x=g.precision;if(m.s<1)throw Error(qi+(m.s?"NaN":"-Infinity"));if(m.eq(oi))return new g(0);if(t==null?(Jt=!1,u=x):u=t,m.eq(10))return t==null&&(Jt=!0),yS(g,u);if(u+=p,g.precision=u,n=Bo(v),r=n.charAt(0),o=Tn(m),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Bo(m.d),r=n.charAt(0),d++;o=Tn(m),r>1?(m=new g("0."+n),o++):m=new g(r+"."+n.slice(1))}else return l=yS(g,u+2,x).times(o+""),m=Am(new g(r+"."+n.slice(1)),u-p).plus(l),g.precision=x,t==null?(Jt=!0,Dt(m,x)):m;for(s=a=m=ja(m.minus(oi),m.plus(oi),u),f=Dt(m.times(m),u),i=3;;){if(a=Dt(a.times(f),u),l=s.plus(ja(a,new g(i),u)),Bo(l.d).slice(0,u)===Bo(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(yS(g,u+2,x).times(o+""))),s=ja(s,new g(d),u),g.precision=x,t==null?(Jt=!0,Dt(s,x)):s;s=l,i+=2}}function m5(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=Fd(n/Ht),e.d=[],r=(n+1)%Ht,n<0&&(r+=Ht),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Ht;r<i;)e.d.push(+t.slice(r,r+=Ht));t=t.slice(r),r=Ht-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Jt&&(e.e>e_||e.e<-e_))throw Error(dA+n)}else e.s=0,e.e=0,e.d=[0];return e}function Dt(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+=Ht,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/Ht),o=d.length,f>=o)return e;for(u=o=d[f],a=1;o>=10;o/=10)a++;r%=Ht,i=r-Ht+a}if(n!==void 0&&(o=Wl(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/Wl(10,a-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=Tn(e),d.length=1,t=t-o-1,d[0]=Wl(10,(Ht-t%Ht)%Ht),e.e=Fd(-t/Ht)||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=Wl(10,Ht-r),d[f]=i>0?(u/Wl(10,a-i)%Wl(10,i)|0)*o:0),l)for(;;)if(f==0){(d[0]+=o)==Hn&&(d[0]=1,++e.e);break}else{if(d[f]+=o,d[f]!=Hn)break;d[f--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(Jt&&(e.e>e_||e.e<-e_))throw Error(dA+Tn(e));return e}function SY(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),Jt?Dt(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/Ht),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]=Hn-1;--l[o],l[i]+=Hn}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,Jt?Dt(t,m):t):new p(0)}function Ru(e,t,n){var r,i=Tn(e),o=Bo(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+_s(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+_s(-i-1)+o,n&&(r=n-a)>0&&(o+=_s(r))):i>=a?(o+=_s(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+_s(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=_s(r))),e.s<0?"-"+o:o}function v5(e,t){if(e.length>t)return e.length=t,!0}function EY(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(gu+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 m5(a,o.toString())}else if(typeof o!="string")throw Error(gu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,D5e.test(o))m5(a,o);else throw Error(gu+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=EY,i.config=i.set=L5e,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 L5e(e){if(!e||typeof e!="object")throw Error(qi+"Object expected");var t,n,r,i=["precision",1,Id,"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(Fd(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(gu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(gu+n+": "+r);return this}var pA=EY(R5e);oi=new pA(1);const Nt=pA;function I5e(e){return B5e(e)||$5e(e)||U5e(e)||F5e()}function F5e(){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 U5e(e,t){if(e){if(typeof e=="string")return FT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FT(e,t)}}function $5e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function B5e(e){if(Array.isArray(e))return FT(e)}function FT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var z5e=function(e){return e},TY={"@@functional/placeholder":!0},CY=function(e){return e===TY},g5=function(e){return function t(){return arguments.length===0||arguments.length===1&&CY(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},V5e=function e(t,n){return t===1?n:g5(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!==TY}).length;return a>=t?n.apply(void 0,i):e(t-a,g5(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 CY(d)?l.shift():d});return n.apply(void 0,I5e(f).concat(l))}))})},Ww=function(e){return V5e(e.length,e)},UT=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},H5e=Ww(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),W5e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return z5e;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))}},$T=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},kY=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 Y5e(e){var t;return e===0?t=1:t=Math.floor(new Nt(e).abs().log(10).toNumber())+1,t}function G5e(e,t,n){for(var r=new Nt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var q5e=Ww(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),K5e=Ww(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Z5e=Ww(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Yw={rangeStep:G5e,getDigitCount:Y5e,interpolateNumber:q5e,uninterpolateNumber:K5e,uninterpolateTruncation:Z5e};function BT(e){return J5e(e)||X5e(e)||jY(e)||Q5e()}function Q5e(){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 X5e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function J5e(e){if(Array.isArray(e))return zT(e)}function Nm(e,t){return n8e(e)||t8e(e,t)||jY(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 jY(e,t){if(e){if(typeof e=="string")return zT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zT(e,t)}}function zT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t8e(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 n8e(e){if(Array.isArray(e))return e}function PY(e){var t=Nm(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function AY(e,t,n){if(e.lte(0))return new Nt(0);var r=Yw.getDigitCount(e.toNumber()),i=new Nt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new Nt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?l:new Nt(Math.ceil(l))}function r8e(e,t,n){var r=1,i=new Nt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Nt(10).pow(Yw.getDigitCount(e)-1),i=new Nt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Nt(Math.floor(e)))}else e===0?i=new Nt(Math.floor((t-1)/2)):n||(i=new Nt(Math.floor(e)));var a=Math.floor((t-1)/2),s=W5e(H5e(function(l){return i.add(new Nt(l-a).mul(r)).toNumber()}),UT);return s(0,t)}function NY(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 Nt(0),tickMin:new Nt(0),tickMax:new Nt(0)};var o=AY(new Nt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new Nt(0):(a=new Nt(e).add(t).div(2),a=a.sub(new Nt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new Nt(t).sub(a).div(o).toNumber()),u=s+l+1;return u>n?NY(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 Nt(s).mul(o)),tickMax:a.add(new Nt(l).mul(o))})}function i8e(e){var t=Nm(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=PY([n,r]),l=Nm(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(BT(UT(0,i-1).map(function(){return 1/0}))):[].concat(BT(UT(0,i-1).map(function(){return-1/0})),[f]);return n>r?$T(d):d}if(u===f)return r8e(u,i,o);var p=NY(u,f,a,o),m=p.step,v=p.tickMin,g=p.tickMax,x=Yw.rangeStep(v,g.add(new Nt(.1).mul(m)),m);return n>r?$T(x):x}function o8e(e,t){var n=Nm(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=PY([r,i]),s=Nm(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=AY(new Nt(u).sub(l).div(f-1),o,0),p=[].concat(BT(Yw.rangeStep(new Nt(l),new Nt(u).sub(new Nt(.99).mul(d)),d)),[u]);return r>i?$T(p):p}var a8e=kY(i8e),s8e=kY(o8e),l8e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function t_(){return t_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t_.apply(this,arguments)}function u8e(e,t){return p8e(e)||d8e(e,t)||f8e(e,t)||c8e()}function c8e(){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 f8e(e,t){if(e){if(typeof e=="string")return y5(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 y5(e,t)}}function y5(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 d8e(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 p8e(e){if(Array.isArray(e))return e}function h8e(e,t){if(e==null)return{};var n=m8e(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 m8e(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 Ud(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=h8e(e,l8e),f=Ve(u),d=o.map(function(p){var m=a(p,i),v=m.x,g=m.y,x=m.value,b=m.errorVal;if(!b)return null;var _=[],w,O;if(Array.isArray(b)){var E=u8e(b,2);w=E[0],O=E[1]}else w=O=b;if(n==="vertical"){var T=s.scale,k=g+t,P=k+r,D=k-r,N=T(x-w),F=T(x+O);_.push({x1:F,y1:P,x2:F,y2:D}),_.push({x1:N,y1:k,x2:F,y2:k}),_.push({x1:N,y1:P,x2:N,y2:D})}else if(n==="horizontal"){var B=l.scale,Y=v+t,H=Y-r,Q=Y+r,Z=B(x-w),te=B(x+O);_.push({x1:H,y1:te,x2:Q,y2:te}),_.push({x1:Y,y1:Z,x2:Y,y2:te}),_.push({x1:H,y1:Z,x2:Q,y2:Z})}return M.createElement(nt,t_({className:"recharts-errorBar",key:"bar-".concat(_.map(function(X){return"".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))},f),_.map(function(X){return M.createElement("line",t_({},X,{key:"line-".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))}))});return M.createElement(nt,{className:"recharts-errorBars"},d)}Ud.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Ud.displayName="ErrorBar";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 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 bS(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){v8e(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 v8e(e,t,n){return t=g8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g8e(e){var t=y8e(e,"string");return Mm(t)==="symbol"?t:String(t)}function y8e(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 MY=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,i=e.legendContent,o=Uo(t,ym);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:hA(l),value:d||f,payload:l.props}}),bS(bS(bS({},o.props),ym.getWithHeight(o,r)),{},{payload:a,item:o})};function Rm(e){"@babel/helpers - typeof";return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rm(e)}function _5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_5(Object(n),!0).forEach(function(r){af(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function af(e,t,n){return t=b8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b8e(e){var t=_8e(e,"string");return Rm(t)==="symbol"?t:String(t)}function _8e(e,t){if(Rm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w5(e){return S8e(e)||O8e(e)||x8e(e)||w8e()}function w8e(){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 x8e(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 O8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S8e(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}function Yt(e,t,n){return Ze(e)||Ze(t)?n:Nn(t)?ui(e,t,n):Xe(t)?t(e):n}function Vy(e,t,n,r){var i=P5e(e,function(s){return Yt(s,t)});if(n==="number"){var o=i.filter(function(s){return je(s)||parseFloat(s)});return o.length?[Hw(o),Ps(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!Ze(s)}):i;return a.map(function(s){return Nn(s)||s instanceof Date?s:""})}var E8e=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(Nr(f-u)!==Nr(d-f)){var m=[];if(Nr(d-f)===Nr(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 x=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(e>x[0]&&e<=x[1]||e>=m[0]&&e<=m[1]){o=r[l].index;break}}else{var b=Math.min(u,d),_=Math.max(u,d);if(e>(b+f)/2&&e<=(_+f)/2){o=r[l].index;break}}}else for(var w=0;w<a;w++)if(w===0&&e<=(n[w].coordinate+n[w+1].coordinate)/2||w>0&&w<a-1&&e>(n[w].coordinate+n[w-1].coordinate)/2&&e<=(n[w].coordinate+n[w+1].coordinate)/2||w===a-1&&e>(n[w].coordinate+n[w-1].coordinate)/2){o=n[w].index;break}return o},hA=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},T8e=function(e){var t=e.barSize,n=e.stackGroups,r=n===void 0?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var l=r[o[a]].stackGroups,u=Object.keys(l),f=0,d=u.length;f<d;f++){var p=l[u[f]],m=p.items,v=p.cateAxisId,g=m.filter(function(_){return Ca(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].props.barSize,b=g[0].props[v];i[b]||(i[b]=[]),i[b].push({item:g[0],stackList:g.slice(1),barSize:Ze(x)?t:x})}}return i},C8e=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=Vr(t,r,0,!0),u,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=r/s,m=o.reduce(function(w,O){return w+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(w,O){var E={item:O.item,position:{offset:g.offset+g.size+l,size:d?p:O.barSize}},T=[].concat(w5(w),[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 x=Vr(n,r,0,!0);r-2*x-(s-1)*l<=0&&(l=0);var b=(r-2*x-(s-1)*l)/s;b>1&&(b>>=0);var _=a===+a?Math.min(b,a):b;u=o.reduce(function(w,O,E){var T=[].concat(w5(w),[{item:O.item,position:{offset:x+(b+l)*E+(b-_)/2,size:_}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){T.push({item:k,position:T[T.length-1].position})}),T},f)}return u},k8e=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),l=MY({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 Pi(Pi({},e),{},af({},p,e[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&je(e[m]))return Pi(Pi({},e),{},af({},m,e[m]+(d||0)))}return e},j8e=function(e,t,n){return Ze(t)?!0:e==="horizontal"?t==="yAxis":e==="vertical"||n==="x"?t==="xAxis":n==="y"?t==="yAxis":!0},RY=function(e,t,n,r,i){var o=t.props.children,a=Lr(o,Ud).filter(function(l){return j8e(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=Yt(u,n,0),d=Array.isArray(f)?[Hw(f),Ps(f)]:[f,f],p=s.reduce(function(m,v){var g=Yt(u,v,0),x=d[0]-Math.abs(Array.isArray(g)?g[0]:g),b=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(x,m[0]),Math.max(b,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},P8e=function(e,t,n,r,i){var o=t.map(function(a){return RY(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},DY=function(e,t,n,r,i){var o=t.map(function(s){var l=s.props.dataKey;return n==="number"&&l&&RY(e,s,l,r)||Vy(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},[])},LY=function(e,t){return e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis"},x5=function(e,t,n,r){if(r)return e.map(function(s){return s.coordinate});var i,o,a=e.map(function(s){return s.coordinate===t&&(i=!0),s.coordinate===n&&(o=!0),s.coordinate});return i||a.push(t),o||a.push(n),a},fs=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s=e.realScaleType==="scaleBand"?r.bandwidth()/2:2,l=(t||n)&&o==="category"&&r.bandwidth?r.bandwidth()/s:0;if(l=e.axisType==="angleAxis"&&(a==null?void 0:a.length)>=2?Nr(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!Ad(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}})},_S=new WeakMap,oy=function(e,t){if(typeof t!="function")return e;_S.has(e)||_S.set(e,new WeakMap);var n=_S.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},IY=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:Tm(),realScaleType:"band"}:o==="radial"&&a==="angleAxis"?{scale:Zb(),realScaleType:"linear"}:i==="category"&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:bh(),realScaleType:"point"}:i==="category"?{scale:Tm(),realScaleType:"band"}:{scale:Zb(),realScaleType:"linear"};if(kv(r)){var s="scale".concat(jw(r));return{scale:(h5[s]||bh)(),realScaleType:h5[s]?s:"point"}}return Xe(r)?{scale:r}:{scale:bh(),realScaleType:"point"}},O5=1e-4,FY=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])-O5,o=Math.max(r[0],r[1])+O5,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},A8e=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},N8e=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},M8e=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=Ad(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])}},R8e=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=Ad(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)}},D8e={sign:M8e,expand:BTe,none:Uf,silhouette:zTe,wiggle:VTe,positive:R8e},L8e=function(e,t,n){var r=t.map(function(a){return a.props.dataKey}),i=D8e[n],o=$Te().keys(r).value(function(a,s){return+Yt(a,s,0)}).order(lT).offset(i);return o(e)},I8e=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],x=f[g]||{hasStack:!1,stackGroups:{}};if(Nn(m)){var b=x.stackGroups[m]||{numericAxisId:n,cateAxisId:r,items:[]};b.items.push(d),x.hasStack=!0,x.stackGroups[m]=b}else x.stackGroups[bl("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[d]};return Pi(Pi({},f),{},af({},g,x))},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 x=p.stackGroups[g];return Pi(Pi({},v),{},af({},g,{numericAxisId:n,cateAxisId:r,items:x.items,stackedData:L8e(e,x.items,i)}))},m)}return Pi(Pi({},f),{},af({},d,p))},u)},UY=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=a8e(l,i,a);return e.domain([Hw(u),Ps(u)]),{niceTicks:u}}if(i&&r==="number"){var f=e.domain(),d=s8e(f,i,a);return{niceTicks:d}}return null},Kf=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=Eb(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=Yt(i,Ze(a)?t.dataKey:a);return Ze(l)?null:t.scale(l)},S5=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=Yt(o,t.dataKey,t.domain[a]);return Ze(s)?null:t.scale(s)-i/2+r},F8e=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]},U8e=function(e,t){var n=e.props.stackId;if(Nn(n)){var r=t[n];if(r){var i=r.items.indexOf(e);return i>=0?r.stackedData[i]:null}}return null},$8e=function(e){return e.reduce(function(t,n){return[Hw(n.concat([t[0]]).filter(je)),Ps(n.concat([t[1]]).filter(je))]},[1/0,-1/0])},$Y=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=$8e(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})},E5=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,T5=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HT=function(e,t,n){if(Xe(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(E5.test(e[0])){var i=+E5.exec(e[0])[1];r[0]=t[0]-i}else Xe(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(T5.test(e[1])){var o=+T5.exec(e[1])[1];r[1]=t[1]+o}else Xe(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},n_=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=$P(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},C5=function(e,t,n){return!e||!e.length||sl(e,ui(n,"type.defaultProps.domain"))?t:e},BY=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 Pi(Pi({},Ve(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:hA(e),value:Yt(t,r),type:s,payload:t,chartType:l})};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 k5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k5(Object(n),!0).forEach(function(r){zY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zY(e,t,n){return t=B8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B8e(e){var t=z8e(e,"string");return Dm(t)==="symbol"?t:String(t)}function z8e(e,t){if(Dm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V8e(e,t){return G8e(e)||Y8e(e,t)||W8e(e,t)||H8e()}function H8e(){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 W8e(e,t){if(e){if(typeof e=="string")return j5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j5(e,t)}}function j5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y8e(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 G8e(e){if(Array.isArray(e))return e}var r_=Math.PI/180,q8e=function(e){return e*180/Math.PI},Ut=function(e,t,n,r){return{x:e+Math.cos(-r_*r)*n,y:t+Math.sin(-r_*r)*n}},VY=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},K8e=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.startAngle,l=e.endAngle,u=Vr(e.cx,o,o/2),f=Vr(e.cy,a,a/2),d=VY(o,a,n),p=Vr(e.innerRadius,d,0),m=Vr(e.outerRadius,d,d*.8),v=Object.keys(t);return v.reduce(function(g,x){var b=t[x],_=b.domain,w=b.reversed,O;if(Ze(b.range))r==="angleAxis"?O=[s,l]:r==="radiusAxis"&&(O=[p,m]),w&&(O=[O[1],O[0]]);else{O=b.range;var E=O,T=V8e(E,2);s=T[0],l=T[1]}var k=IY(b,i),P=k.realScaleType,D=k.scale;D.domain(_).range(O),FY(D);var N=UY(D,va(va({},b),{},{realScaleType:P})),F=va(va(va({},b),N),{},{range:O,radius:m,realScaleType:P,scale:D,cx:u,cy:f,innerRadius:p,outerRadius:m,startAngle:s,endAngle:l});return va(va({},g),{},zY({},x,F))},{})},Z8e=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))},Q8e=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=Z8e({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:q8e(l),angleInRadian:l}},X8e=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}},J8e=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},P5=function(e,t){var n=e.x,r=e.y,i=Q8e({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=X8e(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?va(va({},t),{},{radius:o,angle:J8e(p,t)}):null};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)}var eFe=["offset"];function tFe(e){return oFe(e)||iFe(e)||rFe(e)||nFe()}function nFe(){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 rFe(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 iFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oFe(e){if(Array.isArray(e))return WT(e)}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 aFe(e,t){if(e==null)return{};var n=sFe(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 sFe(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 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 jn(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){lFe(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 lFe(e,t,n){return t=uFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uFe(e){var t=cFe(e,"string");return Lm(t)==="symbol"?t:String(t)}function cFe(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 Im(){return Im=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},Im.apply(this,arguments)}var fFe=function(e){var t=e.value,n=e.formatter,r=Ze(e.children)?t:e.children;return Xe(n)?n(r):r},dFe=function(e,t){var n=Nr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},pFe=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,x=dFe(p,m),b=x>=0?1:-1,_,w;r==="insideStart"?(_=p+b*o,w=v):r==="insideEnd"?(_=m-b*o,w=!v):r==="end"&&(_=m+b*o,w=v),w=x<=0?w:!w;var O=Ut(l,u,g,_),E=Ut(l,u,g,_+(w?1:-1)*359),T="M".concat(O.x,",").concat(O.y,`
|
||
A`).concat(g,",").concat(g,",0,1,").concat(w?0:1,`,
|
||
`).concat(E.x,",").concat(E.y),k=Ze(e.id)?bl("recharts-radial-line-"):e.id;return M.createElement("text",Im({},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))},hFe=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=Ut(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,x=Ut(o,a,g,d),b=x.x,_=x.y;return{x:b,y:_,textAnchor:"middle",verticalAnchor:"middle"}},mFe=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,x=v>0?"end":"start",b=v>0?"start":"end";if(i==="top"){var _={x:a+l/2,y:s-f*r,textAnchor:"middle",verticalAnchor:p};return jn(jn({},_),n?{height:Math.max(s-n.y,0),width:l}:{})}if(i==="bottom"){var w={x:a+l/2,y:s+u+d,textAnchor:"middle",verticalAnchor:m};return jn(jn({},w),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:x,verticalAnchor:"middle"};return jn(jn({},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:b,verticalAnchor:"middle"};return jn(jn({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:u}:{})}var T=n?{width:l,height:u}:{};return i==="insideLeft"?jn({x:a+g,y:s+u/2,textAnchor:b,verticalAnchor:"middle"},T):i==="insideRight"?jn({x:a+l-g,y:s+u/2,textAnchor:x,verticalAnchor:"middle"},T):i==="insideTop"?jn({x:a+l/2,y:s+d,textAnchor:"middle",verticalAnchor:m},T):i==="insideBottom"?jn({x:a+l/2,y:s+u-d,textAnchor:"middle",verticalAnchor:p},T):i==="insideTopLeft"?jn({x:a+g,y:s+d,textAnchor:b,verticalAnchor:m},T):i==="insideTopRight"?jn({x:a+l-g,y:s+d,textAnchor:x,verticalAnchor:m},T):i==="insideBottomLeft"?jn({x:a+g,y:s+u-d,textAnchor:b,verticalAnchor:p},T):i==="insideBottomRight"?jn({x:a+l-g,y:s+u-d,textAnchor:x,verticalAnchor:p},T):Cd(i)&&(je(i.x)||nu(i.x))&&(je(i.y)||nu(i.y))?jn({x:a+Vr(i.x,l),y:s+Vr(i.y,u),textAnchor:"end",verticalAnchor:"end"},T):jn({x:a+l/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},T)},vFe=function(e){return"cx"in e&&je(e.cx)};function Yn(e){var t=e.offset,n=t===void 0?5:t,r=aFe(e,eFe),i=jn({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)&&!I.isValidElement(u)&&!Xe(u))return null;if(I.isValidElement(u))return I.cloneElement(u,i);var m;if(Xe(u)){if(m=I.createElement(u,i),I.isValidElement(m))return m}else m=fFe(i);var v=vFe(o),g=Ve(i,!0);if(v&&(a==="insideStart"||a==="insideEnd"||a==="end"))return pFe(i,m,g);var x=v?hFe(i):mFe(i);return M.createElement(Mu,Im({className:We("recharts-label",d)},g,x,{breakAll:p}),m)}Yn.displayName="Label";var HY=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,x=e.clockWise,b=e.labelViewBox;if(b)return b;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:x}:e.viewBox?e.viewBox:{}},gFe=function(e,t){return e?e===!0?M.createElement(Yn,{key:"label-implicit",viewBox:t}):Nn(e)?M.createElement(Yn,{key:"label-implicit",viewBox:t,value:e}):I.isValidElement(e)?e.type===Yn?I.cloneElement(e,{key:"label-implicit",viewBox:t}):M.createElement(Yn,{key:"label-implicit",content:e,viewBox:t}):Xe(e)?M.createElement(Yn,{key:"label-implicit",content:e,viewBox:t}):Cd(e)?M.createElement(Yn,Im({viewBox:t},e,{key:"label-implicit"})):null:null},yFe=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=HY(e),o=Lr(r,Yn).map(function(s,l){return I.cloneElement(s,{viewBox:t||i,key:"label-".concat(l)})});if(!n)return o;var a=gFe(e.label,t||i);return[a].concat(tFe(o))};Yn.parseViewBox=HY;Yn.renderCallByParent=yFe;function bFe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var _Fe=bFe;const wFe=Et(_Fe);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 xFe=["valueAccessor"],OFe=["data","dataKey","clockWise","id","textBreakAll"];function SFe(e){return kFe(e)||CFe(e)||TFe(e)||EFe()}function EFe(){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 TFe(e,t){if(e){if(typeof e=="string")return YT(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 YT(e,t)}}function CFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kFe(e){if(Array.isArray(e))return YT(e)}function YT(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 i_(){return i_=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},i_.apply(this,arguments)}function N5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function M5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N5(Object(n),!0).forEach(function(r){jFe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jFe(e,t,n){return t=PFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PFe(e){var t=AFe(e,"string");return Fm(t)==="symbol"?t:String(t)}function AFe(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 R5(e,t){if(e==null)return{};var n=NFe(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 NFe(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 MFe=function(e){return Array.isArray(e.value)?wFe(e.value):e.value};function go(e){var t=e.valueAccessor,n=t===void 0?MFe:t,r=R5(e,xFe),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=R5(r,OFe);return!i||!i.length?null:M.createElement(nt,{className:"recharts-label-list"},i.map(function(f,d){var p=Ze(o)?n(f,d):Yt(f&&f.payload,o),m=Ze(s)?{}:{id:"".concat(s,"-").concat(d)};return M.createElement(Yn,i_({},Ve(f,!0),u,m,{parentViewBox:f.parentViewBox,value:p,textBreakAll:l,viewBox:Yn.parseViewBox(Ze(a)?f:M5(M5({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}go.displayName="LabelList";function RFe(e,t){return e?e===!0?M.createElement(go,{key:"labelList-implicit",data:t}):M.isValidElement(e)||Xe(e)?M.createElement(go,{key:"labelList-implicit",data:t,content:e}):Cd(e)?M.createElement(go,i_({data:t},e,{key:"labelList-implicit"})):null:null}function DFe(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=Lr(r,go).map(function(a,s){return I.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=RFe(e.label,t);return[o].concat(SFe(i))}go.renderCallByParent=DFe;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 GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GT.apply(this,arguments)}function 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 L5(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){LFe(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 LFe(e,t,n){return t=IFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IFe(e){var t=FFe(e,"string");return Um(t)==="symbol"?t:String(t)}function FFe(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 UFe=function(e,t){var n=Nr(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},ay=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)/r_,d=l?i:i+o*f,p=Ut(t,n,u,d),m=Ut(t,n,r,d),v=l?i-o*f:i,g=Ut(t,n,u*Math.cos(f*r_),v);return{center:p,circleTangency:m,lineTangency:g,theta:f}},WY=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=e.endAngle,s=UFe(o,a),l=o+s,u=Ut(t,n,i,o),f=Ut(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=Ut(t,n,r,o),m=Ut(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},$Fe=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=Nr(u-l),d=ay({cx:t,cy:n,radius:i,angle:l,sign:f,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,m=d.lineTangency,v=d.theta,g=ay({cx:t,cy:n,radius:i,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:s}),x=g.circleTangency,b=g.lineTangency,_=g.theta,w=s?Math.abs(l-u):Math.abs(l-u)-v-_;if(w<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
|
||
`):WY({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(+(w>180),",").concat(+(f<0),",").concat(x.x,",").concat(x.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
|
||
`);if(r>0){var E=ay({cx:t,cy:n,radius:r,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),T=E.circleTangency,k=E.lineTangency,P=E.theta,D=ay({cx:t,cy:n,radius:r,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),N=D.circleTangency,F=D.lineTangency,B=D.theta,Y=s?Math.abs(l-u):Math.abs(l-u)-P-B;if(Y<0&&o===0)return"".concat(O,"L").concat(t,",").concat(n,"Z");O+="L".concat(F.x,",").concat(F.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(N.x,",").concat(N.y,`
|
||
A`).concat(r,",").concat(r,",0,").concat(+(Y>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},BFe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},YY=function(e){var t=L5(L5({},BFe),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=Vr(a,m,0,!0),g;return v>0&&Math.abs(u-f)<360?g=$Fe({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:f}):g=WY({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f}),M.createElement("path",GT({},Ve(t,!0),{className:p,d:g,role:"img"}))};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 qT(){return qT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qT.apply(this,arguments)}function 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 F5(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){zFe(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 zFe(e,t,n){return t=VFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VFe(e){var t=HFe(e,"string");return $m(t)==="symbol"?t:String(t)}function HFe(e,t){if($m(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($m(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var U5={curveBasisClosed:jTe,curveBasisOpen:PTe,curveBasis:kTe,curveBumpX:hTe,curveBumpY:mTe,curveLinearClosed:ATe,curveLinear:Aw,curveMonotoneX:NTe,curveMonotoneY:MTe,curveNatural:RTe,curveStep:DTe,curveStepAfter:ITe,curveStepBefore:LTe},sy=function(e){return e.x===+e.x&&e.y===+e.y},jp=function(e){return e.x},Pp=function(e){return e.y},WFe=function(e,t){if(Xe(e))return e;var n="curve".concat(jw(e));return(n==="curveMonotone"||n==="curveBump")&&t?U5["".concat(n).concat(t==="vertical"?"Y":"X")]:U5[n]||Aw},YFe=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=WFe(n,a),f=l?i.filter(function(v){return sy(v)}):i,d;if(Array.isArray(o)){var p=l?o.filter(function(v){return sy(v)}):o,m=f.map(function(v,g){return F5(F5({},v),{},{base:p[g]})});return a==="vertical"?d=Zg().y(Pp).x1(jp).x0(function(v){return v.base.x}):d=Zg().x(jp).y1(Pp).y0(function(v){return v.base.y}),d.defined(sy).curve(u),d(m)}return a==="vertical"&&je(o)?d=Zg().y(Pp).x1(jp).x0(o):je(o)?d=Zg().x(jp).y1(Pp).y0(o):d=BH().x(jp).y(Pp),d.defined(sy).curve(u),d(f)},Gs=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?YFe(e):r;return M.createElement("path",qT({},Ve(e),Tb(e),{className:We("recharts-curve",t),d:o,ref:i}))};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 o_(){return o_=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},o_.apply(this,arguments)}function GFe(e,t){return QFe(e)||ZFe(e,t)||KFe(e,t)||qFe()}function qFe(){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 KFe(e,t){if(e){if(typeof e=="string")return $5(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 $5(e,t)}}function $5(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 ZFe(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 QFe(e){if(Array.isArray(e))return 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 z5(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){XFe(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 XFe(e,t,n){return t=JFe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JFe(e){var t=eUe(e,"string");return Bm(t)==="symbol"?t:String(t)}function eUe(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 V5=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},tUe=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},nUe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mA=function(e){var t=z5(z5({},nUe),e),n=I.useRef(),r=I.useState(-1),i=GFe(r,2),o=i[0],a=i[1];I.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&a(w)}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,x=t.isAnimationActive,b=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||f!==+f||u===0||f===0)return null;var _=We("recharts-rectangle",p);return b?M.createElement(Gi,{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:b},function(w){var O=w.width,E=w.height,T=w.x,k=w.y;return M.createElement(Gi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,isActive:x,easing:m},M.createElement("path",o_({},Ve(t,!0),{className:_,d:V5(T,k,O,E,d),ref:n})))}):M.createElement("path",o_({},Ve(t,!0),{className:_,d:V5(s,l,u,f,d)}))},rUe=["points","className","baseLinePoints","connectNulls"];function Hc(){return Hc=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},Hc.apply(this,arguments)}function iUe(e,t){if(e==null)return{};var n=oUe(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 oUe(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){return uUe(e)||lUe(e)||sUe(e)||aUe()}function aUe(){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 sUe(e,t){if(e){if(typeof e=="string")return KT(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 KT(e,t)}}function lUe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uUe(e){if(Array.isArray(e))return KT(e)}function KT(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 W5=function(e){return e&&e.x===+e.x&&e.y===+e.y},cUe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];return e.forEach(function(n){W5(n)?t[t.length-1].push(n):t[t.length-1].length>0&&t.push([])}),W5(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},_h=function(e,t){var n=cUe(e);t&&(n=[n.reduce(function(i,o){return[].concat(H5(i),H5(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},fUe=function(e,t,n){var r=_h(e,n);return"".concat(r.slice(-1)==="Z"?r.slice(0,-1):r,"L").concat(_h(t.reverse(),n).slice(1))},dUe=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,o=iUe(e,rUe);if(!t||!t.length)return null;var a=We("recharts-polygon",n);if(r&&r.length){var s=o.stroke&&o.stroke!=="none",l=fUe(t,r,i);return M.createElement("g",{className:a},M.createElement("path",Hc({},Ve(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:l})),s?M.createElement("path",Hc({},Ve(o,!0),{fill:"none",d:_h(t,i)})):null,s?M.createElement("path",Hc({},Ve(o,!0),{fill:"none",d:_h(r,i)})):null)}var u=_h(t,i);return M.createElement("path",Hc({},Ve(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:a,d:u}))};function ZT(){return ZT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZT.apply(this,arguments)}var Rv=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",ZT({},Ve(e),Tb(e),{className:o,cx:t,cy:n,r})):null};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)}var pUe=["x","y","top","left","width","height","className"];function QT(){return QT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QT.apply(this,arguments)}function 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 hUe(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){mUe(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 mUe(e,t,n){return t=vUe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vUe(e){var t=gUe(e,"string");return zm(t)==="symbol"?t:String(t)}function gUe(e,t){if(zm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yUe(e,t){if(e==null)return{};var n=bUe(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 bUe(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 _Ue=function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)},wUe=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=yUe(e,pUe),g=hUe({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",QT({},Ve(g,!0),{className:We("recharts-cross",m),d:_Ue(n,i,f,p,a,l)}))},xUe=Vw,OUe=bY,SUe=la;function EUe(e,t){return e&&e.length?xUe(e,SUe(t),OUe):void 0}var TUe=EUe;const CUe=Et(TUe);var kUe=Vw,jUe=la,PUe=_Y;function AUe(e,t){return e&&e.length?kUe(e,jUe(t),PUe):void 0}var NUe=AUe;const MUe=Et(NUe);var RUe=["cx","cy","angle","ticks","axisLine"],DUe=["ticks","tick","angle","tickFormatter","stroke"];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 wh(){return wh=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},wh.apply(this,arguments)}function G5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G5(Object(n),!0).forEach(function(r){Gw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q5(e,t){if(e==null)return{};var n=LUe(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 LUe(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 IUe(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,GY(r.key),r)}}function FUe(e,t,n){return t&&K5(e.prototype,t),n&&K5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UUe(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 $Ue(e){var t=VUe();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 BUe(this,r)}}function BUe(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 zUe(e)}function zUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VUe(){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 Gw(e,t,n){return t=GY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GY(e){var t=HUe(e,"string");return Zf(t)==="symbol"?t:String(t)}function HUe(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 qw=function(e){UUe(n,e);var t=$Ue(n);function n(){return IUe(this,n),t.apply(this,arguments)}return FUe(n,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,l=o.cy;return Ut(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=CUe(s,function(f){return f.coordinate||0}),u=MUe(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=q5(r,RUe),f=s.reduce(function(v,g){return[Math.min(v[0],g.coordinate),Math.max(v[1],g.coordinate)]},[1/0,-1/0]),d=Ut(i,o,f[0],a),p=Ut(i,o,f[1],a),m=Al(Al(Al({},Ve(u)),{},{fill:"none"},Ve(l)),{},{x1:d.x,y1:d.y,x2:p.x,y2:p.y});return M.createElement("line",wh({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=q5(i,DUe),d=this.getTickTextAnchor(),p=Ve(f),m=Ve(a),v=o.map(function(g,x){var b=r.getTickValueCoord(g),_=Al(Al(Al(Al({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(b.x,", ").concat(b.y,")")},p),{},{stroke:"none",fill:u},m),{},{index:x},b),{},{payload:g});return M.createElement(nt,wh({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(g.coordinate)},al(r.props,g,x)),n.renderTickItem(a,_,l?l(g.value,x):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(),Yn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Xe(r)?a=r(i):a=M.createElement(Mu,wh({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}]),n}(I.PureComponent);Gw(qw,"displayName","PolarRadiusAxis");Gw(qw,"axisType","radiusAxis");Gw(qw,"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 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 ql(){return ql=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},ql.apply(this,arguments)}function Z5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nl(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){Kw(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 WUe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qY(r.key),r)}}function YUe(e,t,n){return t&&Q5(e.prototype,t),n&&Q5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function GUe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JT(e,t)}function JT(e,t){return JT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},JT(e,t)}function qUe(e){var t=QUe();return function(){var n=s_(e),r;if(t){var i=s_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return KUe(this,r)}}function KUe(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 ZUe(e)}function ZUe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QUe(){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 s_(e){return s_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s_(e)}function Kw(e,t,n){return t=qY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qY(e){var t=XUe(e,"string");return Qf(t)==="symbol"?t:String(t)}function XUe(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 JUe=Math.PI/180,X5=1e-5,Zw=function(e){GUe(n,e);var t=qUe(n);function n(){return WUe(this,n),t.apply(this,arguments)}return YUe(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=Ut(o,a,s,r.coordinate),p=Ut(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*JUe),a;return o>X5?a=i==="outer"?"start":"end":o<-X5?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=Nl(Nl({},Ve(this.props)),{},{fill:"none"},Ve(s));if(l==="circle")return M.createElement(Rv,ql({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var f=this.props.ticks,d=f.map(function(p){return Ut(i,o,a,p.coordinate)});return M.createElement(dUe,ql({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=Nl(Nl({},f),{},{fill:"none"},Ve(s)),m=o.map(function(v,g){var x=r.getTickLineCoord(v),b=r.getTickTextAnchor(v),_=Nl(Nl(Nl({textAnchor:b},f),{},{stroke:"none",fill:u},d),{},{index:g,payload:v,x:x.x2,y:x.y2});return M.createElement(nt,ql({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(v.coordinate)},al(r.props,v,g)),s&&M.createElement("line",ql({className:"recharts-polar-angle-axis-tick-line"},p,x)),a&&n.renderTickItem(a,_,l?l(v.value,g):v.value))});return M.createElement(nt,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:M.createElement(nt,{className:"recharts-polar-angle-axis"},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Xe(r)?a=r(i):a=M.createElement(Mu,ql({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}]),n}(I.PureComponent);Kw(Zw,"displayName","PolarAngleAxis");Kw(Zw,"axisType","angleAxis");Kw(Zw,"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 e$e=cW,t$e=e$e(Object.getPrototypeOf,Object),n$e=t$e,r$e=Xa,i$e=n$e,o$e=Ja,a$e="[object Object]",s$e=Function.prototype,l$e=Object.prototype,KY=s$e.toString,u$e=l$e.hasOwnProperty,c$e=KY.call(Object);function f$e(e){if(!o$e(e)||r$e(e)!=a$e)return!1;var t=i$e(e);if(t===null)return!0;var n=u$e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&KY.call(n)==c$e}var d$e=f$e;const p$e=Et(d$e);var h$e=Xa,m$e=Ja,v$e="[object Boolean]";function g$e(e){return e===!0||e===!1||m$e(e)&&h$e(e)==v$e}var y$e=g$e;const b$e=Et(y$e);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 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 _$e(e,t){return S$e(e)||O$e(e,t)||x$e(e,t)||w$e()}function w$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x$e(e,t){if(e){if(typeof e=="string")return J5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J5(e,t)}}function J5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O$e(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 S$e(e){if(Array.isArray(e))return e}function e8(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 t8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e8(Object(n),!0).forEach(function(r){E$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E$e(e,t,n){return t=T$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T$e(e){var t=C$e(e,"string");return Vm(t)==="symbol"?t:String(t)}function C$e(e,t){if(Vm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n8=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},k$e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},j$e=function(e){var t=t8(t8({},k$e),e),n=I.useRef(),r=I.useState(-1),i=_$e(r,2),o=i[0],a=i[1];I.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&a(_)}catch{}},[]);var s=t.x,l=t.y,u=t.upperWidth,f=t.lowerWidth,d=t.height,p=t.className,m=t.animationEasing,v=t.animationDuration,g=t.animationBegin,x=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||f!==+f||d!==+d||u===0&&f===0||d===0)return null;var b=We("recharts-trapezoid",p);return x?M.createElement(Gi,{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:x},function(_){var w=_.upperWidth,O=_.lowerWidth,E=_.height,T=_.x,k=_.y;return M.createElement(Gi,{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",l_({},Ve(t,!0),{className:b,d:n8(T,k,w,O,E),ref:n})))}):M.createElement("g",null,M.createElement("path",l_({},Ve(t,!0),{className:b,d:n8(s,l,u,f,d)})))},P$e=["option","shapeType","propTransformer","activeClassName","isActive"];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 A$e(e,t){if(e==null)return{};var n=N$e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function N$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 r8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function u_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r8(Object(n),!0).forEach(function(r){M$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M$e(e,t,n){return t=R$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R$e(e){var t=D$e(e,"string");return Hm(t)==="symbol"?t:String(t)}function D$e(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)}function L$e(e,t){return u_(u_({},t),e)}function I$e(e,t){return e==="symbols"}function i8(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return M.createElement(mA,n);case"trapezoid":return M.createElement(j$e,n);case"sector":return M.createElement(YY,n);case"symbols":if(I$e(t))return M.createElement(Mw,n);break;default:return null}}function F$e(e){return I.isValidElement(e)?e.props:e}function c_(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?L$e:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=A$e(e,P$e),u;if(I.isValidElement(t))u=I.cloneElement(t,u_(u_({},l),F$e(t)));else if(Xe(t))u=t(l);else if(p$e(t)&&!b$e(t)){var f=i(t,l);u=M.createElement(i8,{shapeType:n,elementProps:f})}else{var d=l;u=M.createElement(i8,{shapeType:n,elementProps:d})}return s?M.createElement(nt,{className:a},u):u}function Qw(e,t){return t!=null&&"trapezoids"in e.props}function Xw(e,t){return t!=null&&"sectors"in e.props}function Wm(e,t){return t!=null&&"points"in e.props}function U$e(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 $$e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function B$e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function z$e(e,t){var n;return Qw(e,t)?n=U$e:Xw(e,t)?n=$$e:Wm(e,t)&&(n=B$e),n}function V$e(e,t){var n;return Qw(e,t)?n="trapezoids":Xw(e,t)?n="sectors":Wm(e,t)&&(n="points"),n}function H$e(e,t){if(Qw(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(Xw(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 Wm(e,t)?t.payload:{}}function W$e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=V$e(n,t),o=H$e(n,t),a=r.filter(function(l,u){var f=sl(o,l),d=n.props[i].filter(function(v){var g=z$e(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 Hy;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 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 o8(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 Kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o8(Object(n),!0).forEach(function(r){Ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a8(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,ZY(r.key),r)}}function G$e(e,t,n){return t&&a8(e.prototype,t),n&&a8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q$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&&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 K$e(e){var t=Q$e();return function(){var n=f_(e),r;if(t){var i=f_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Z$e(this,r)}}function Z$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 xc(e)}function xc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q$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 f_(e){return f_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f_(e)}function Ai(e,t,n){return t=ZY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e){var t=X$e(e,"string");return Xf(t)==="symbol"?t:String(t)}function X$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 ia=function(e){q$e(n,e);var t=K$e(n);function n(r){var i;return Y$e(this,n),i=t.call(this,r),Ai(xc(i),"pieRef",null),Ai(xc(i),"sectorRefs",[]),Ai(xc(i),"id",bl("recharts-pie-")),Ai(xc(i),"handleAnimationEnd",function(){var o=i.props.onAnimationEnd;i.setState({isAnimationFinished:!0}),Xe(o)&&o()}),Ai(xc(i),"handleAnimationStart",function(){var o=i.props.onAnimationStart;i.setState({isAnimationFinished:!1}),Xe(o)&&o()}),i.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},i}return G$e(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,x){var b=(g.startAngle+g.endAngle)/2,_=Ut(g.cx,g.cy,g.outerRadius+m,b),w=Kt(Kt(Kt(Kt({},f),g),{},{stroke:"none"},d),{},{index:x,textAnchor:n.getTextAnchor(_.x,g.cx)},_),O=Kt(Kt(Kt(Kt({},f),g),{},{fill:"none",stroke:g.fill},p),{},{index:x,points:[Ut(g.cx,g.cy,g.outerRadius,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,w,Yt(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){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var d=i.isActiveIndex(f),p=l&&i.hasActiveIndex()?l:null,m=d?a:p,v=Kt(Kt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return M.createElement(nt,Wc({ref:function(g){g&&!i.sectorRefs.includes(g)&&i.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},al(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle)}),M.createElement(c_,Wc({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(Gi,{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,x=[],b=o&&o[0],_=b.startAngle;return o.forEach(function(w,O){var E=p&&p[O],T=O>0?ui(w,"paddingAngle",0):0;if(E){var k=an(E.endAngle-E.startAngle,w.endAngle-w.startAngle),P=Kt(Kt({},w),{},{startAngle:_+T,endAngle:_+k(g)+T});x.push(P),_=P.endAngle}else{var D=w.endAngle,N=w.startAngle,F=an(0,D-N),B=F(g),Y=Kt(Kt({},w),{},{startAngle:_+T,endAngle:_+B+T});x.push(Y),_=Y.endAngle}}),M.createElement(nt,null,r.renderSectorsStatically(x))})}},{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||!sl(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(x){r.pieRef=x}},this.renderSectors(),l&&this.renderLabels(a),Yn.renderCallByParent(this.props,null,!1),(!m||v)&&go.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):Xe(r)?r(i):M.createElement(Gs,Wc({},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 Xe(r)&&(a=r(i),M.isValidElement(a))?a:M.createElement(Mu,Wc({},i,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),a)}}]),n}(I.PureComponent);Hy=ia;Ai(ia,"displayName","Pie");Ai(ia,"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:!Ui.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ai(ia,"parseDeltaAngle",function(e,t){var n=Nr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Ai(ia,"getRealPieData",function(e){var t=e.props,n=t.data,r=t.children,i=Ve(e.props),o=Lr(r,Ws);return n&&n.length?n.map(function(a,s){return Kt(Kt(Kt({payload:a},i),a),o&&o[s]&&o[s].props)}):o&&o.length?o.map(function(a){return Kt(Kt({},i),a.props)}):[]});Ai(ia,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=VY(i,o),s=r+Vr(e.props.cx,i,i/2),l=n+Vr(e.props.cy,o,o/2),u=Vr(e.props.innerRadius,a,0),f=Vr(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}});Ai(ia,"getComposedData",function(e){var t=e.item,n=e.offset,r=Hy.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=Hy.parseCoordinateOfPie(t,n),g=Hy.parseDeltaAngle(a,s),x=Math.abs(g),b=u;Ze(u)&&Ze(d)?(ka(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),b="value"):Ze(u)&&(ka(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),b=d);var _=r.filter(function(P){return Yt(P,b,0)!==0}).length,w=(x>=360?_:_-1)*l,O=x-_*m-w,E=r.reduce(function(P,D){var N=Yt(D,b,0);return P+(je(N)?N:0)},0),T;if(E>0){var k;T=r.map(function(P,D){var N=Yt(P,b,0),F=Yt(P,f,D),B=(je(N)?N:0)/E,Y;D?Y=k.endAngle+Nr(g)*l*(N!==0?1:0):Y=a;var H=Y+Nr(g)*((N!==0?m:0)+B*O),Q=(Y+H)/2,Z=(v.innerRadius+v.outerRadius)/2,te=[{name:F,value:N,payload:P,dataKey:b,type:p}],X=Ut(v.cx,v.cy,Z,Q);return k=Kt(Kt(Kt({percent:B,cornerRadius:o,name:F,tooltipPayload:te,midAngle:Q,middleRadius:Z,tooltipPosition:X},P),v),{},{value:Yt(P,b),startAngle:Y,endAngle:H,payload:P,paddingAngle:Nr(g)*l}),k})}return Kt(Kt({},v),{},{sectors:T,data:r})});var J$e=Math.ceil,e7e=Math.max;function t7e(e,t,n,r){for(var i=-1,o=e7e(J$e((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var n7e=t7e,r7e=RW,s8=1/0,i7e=17976931348623157e292;function o7e(e){if(!e)return e===0?e:0;if(e=r7e(e),e===s8||e===-s8){var t=e<0?-1:1;return t*i7e}return e===e?e:0}var QY=o7e,a7e=n7e,s7e=Lw,wS=QY;function l7e(e){return function(t,n,r){return r&&typeof r!="number"&&s7e(t,n,r)&&(n=r=void 0),t=wS(t),n===void 0?(n=t,t=0):n=wS(n),r=r===void 0?t<n?1:-1:wS(r),a7e(t,n,r,e)}}var u7e=l7e,c7e=u7e,f7e=c7e(),d7e=f7e;const d_=Et(d7e);function Ym(e){"@babel/helpers - typeof";return Ym=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},Ym(e)}function l8(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 u8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l8(Object(n),!0).forEach(function(r){XY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XY(e,t,n){return t=p7e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p7e(e){var t=h7e(e,"string");return Ym(t)==="symbol"?t:String(t)}function h7e(e,t){if(Ym(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ym(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m7e=["Webkit","Moz","O","ms"],v7e=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(i){return i.toUpperCase()}),r=m7e.reduce(function(i,o){return u8(u8({},i),{},XY({},o+n,t))},{});return r[e]=t,r};function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function p_(){return p_=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},p_.apply(this,arguments)}function c8(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 xS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c8(Object(n),!0).forEach(function(r){ri(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f8(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,JY(r.key),r)}}function y7e(e,t,n){return t&&f8(e.prototype,t),n&&f8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b7e(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&&tC(e,t)}function tC(e,t){return tC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},tC(e,t)}function _7e(e){var t=x7e();return function(){var n=h_(e),r;if(t){var i=h_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return w7e(this,r)}}function w7e(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 Mo(e)}function Mo(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 h_(e){return h_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h_(e)}function ri(e,t,n){return t=JY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JY(e){var t=O7e(e,"string");return Jf(t)==="symbol"?t:String(t)}function O7e(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 S7e=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=bh().domain(d_(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}},d8=function(e){return e.changedTouches&&!!e.changedTouches.length},ed=function(e){b7e(n,e);var t=_7e(n);function n(r){var i;return g7e(this,n),i=t.call(this,r),ri(Mo(i),"handleDrag",function(o){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(o):i.state.isSlideMoving&&i.handleSlideDrag(o)}),ri(Mo(i),"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&i.handleDrag(o.changedTouches[0])}),ri(Mo(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()}),ri(Mo(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),ri(Mo(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),ri(Mo(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),ri(Mo(i),"handleSlideDragStart",function(o){var a=d8(o)?o.changedTouches[0]:o;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(Mo(i),"startX"),endX:i.handleTravellerDragStart.bind(Mo(i),"endX")},i.state={},i}return y7e(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=Yt(o[r],s,r);return Xe(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 x=this.getIndex({startX:a+g,endX:s+g});(x.startIndex!==p||x.endIndex!==m)&&v&&v(x),this.setState({startX:a+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=d8(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,x=d.gap,b=d.data,_={startX:this.state.startX,endX:this.state.endX},w=r.pageX-a;w>0?w=Math.min(w,p+m-v-f):w<0&&(w=Math.max(w,p-f)),_[s]=f+w;var O=this.getIndex(_),E=O.startIndex,T=O.endIndex,k=function(){var P=b.length-1;return s==="startX"&&(l>u?E%x===0:T%x===0)||l<u&&T===P||s==="endX"&&(l>u?T%x===0:E%x===0)||l>u&&T===P};this.setState((i={},ri(i,s,f+w),ri(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(ri({},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=I.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),x=xS(xS({},Ve(this.props)),{},{x:g,y:s,width:l,height:u}),b=d||"Min value: ".concat(p[m].name,", Max value: ").concat(p[v].name);return M.createElement(nt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),o.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(f,x))}},{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(Mu,p_({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-m,y:a+s/2},v),this.getTextOfTick(i)),M.createElement(Mu,p_({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,x=p.isSlideMoving,b=p.isTravellerMoving,_=p.isTravellerFocused;if(!i||!i.length||!je(s)||!je(l)||!je(u)||!je(f)||u<=0||f<=0)return null;var w=We("recharts-brush",o),O=M.Children.count(a)===1,E=v7e("userSelect","none");return M.createElement(nt,{className:w,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||x||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):Xe(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 xS({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?S7e({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}(I.PureComponent);ri(ed,"displayName","Brush");ri(ed,"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 E7e=UP;function T7e(e,t){var n;return E7e(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var C7e=T7e,k7e=nW,j7e=la,P7e=C7e,A7e=ei,N7e=Lw;function M7e(e,t,n){var r=A7e(e)?k7e:P7e;return n&&N7e(e,t,n)&&(t=void 0),r(e,j7e(t))}var R7e=M7e;const D7e=Et(R7e);var Xo=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},p8=SW;function L7e(e,t,n){t=="__proto__"&&p8?p8(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var I7e=L7e,F7e=I7e,U7e=xW,$7e=la;function B7e(e,t){var n={};return t=$7e(t),U7e(e,function(r,i,o){F7e(n,i,t(r,i,o))}),n}var z7e=B7e;const V7e=Et(z7e);function H7e(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 W7e=H7e,Y7e=UP;function G7e(e,t){var n=!0;return Y7e(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var q7e=G7e,K7e=W7e,Z7e=q7e,Q7e=la,X7e=ei,J7e=Lw;function eBe(e,t,n){var r=X7e(e)?K7e:Z7e;return n&&J7e(e,t,n)&&(t=void 0),r(e,Q7e(t))}var tBe=eBe;const eG=Et(tBe);function Gm(e){"@babel/helpers - typeof";return Gm=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},Gm(e)}var nBe=["x","y"];function nC(){return nC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nC.apply(this,arguments)}function h8(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 Ap(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h8(Object(n),!0).forEach(function(r){rBe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rBe(e,t,n){return t=iBe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iBe(e){var t=oBe(e,"string");return Gm(t)==="symbol"?t:String(t)}function oBe(e,t){if(Gm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aBe(e,t){if(e==null)return{};var n=sBe(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 sBe(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 lBe(e,t){var n=e.x,r=e.y,i=aBe(e,nBe),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 Ap(Ap(Ap(Ap(Ap({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function m8(e){return M.createElement(c_,nC({shapeType:"rectangle",propTransformer:lBe,activeClassName:"recharts-active-bar"},e))}var uBe=["value","background"];function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function cBe(e,t){if(e==null)return{};var n=fBe(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 fBe(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 m_(){return m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m_.apply(this,arguments)}function v8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v8(Object(n),!0).forEach(function(r){As(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g8(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,tG(r.key),r)}}function pBe(e,t,n){return t&&g8(e.prototype,t),n&&g8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hBe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rC(e,t)}function rC(e,t){return rC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rC(e,t)}function mBe(e){var t=gBe();return function(){var n=v_(e),r;if(t){var i=v_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return vBe(this,r)}}function vBe(e,t){if(t&&(td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vp(e)}function Vp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gBe(){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 v_(e){return v_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v_(e)}function As(e,t,n){return t=tG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tG(e){var t=yBe(e,"string");return td(t)==="symbol"?t:String(t)}function yBe(e,t){if(td(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(td(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qs=function(e){hBe(n,e);var t=mBe(n);function n(){var r;dBe(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(Vp(r),"state",{isAnimationFinished:!1}),As(Vp(r),"id",bl("recharts-bar-")),As(Vp(r),"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),s&&s()}),As(Vp(r),"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),s&&s()}),r}return pBe(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=zn(zn(zn({},f),d),{},{isActive:m,option:v,index:p,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return M.createElement(nt,m_({className:"recharts-bar-rectangle"},al(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(m8,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(Gi,{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(x,b){var _=p&&p[b];if(_){var w=an(_.x,x.x),O=an(_.y,x.y),E=an(_.width,x.width),T=an(_.height,x.height);return zn(zn({},x),{},{x:w(v),y:O(v),width:E(v),height:T(v)})}if(a==="horizontal"){var k=an(0,x.height),P=k(v);return zn(zn({},x),{},{y:x.y+x.height-P,height:P})}var D=an(0,x.width),N=D(v);return zn(zn({},x),{},{width:N})});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||!sl(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=cBe(u,uBe);if(!d)return null;var m=zn(zn(zn(zn(zn({},p),{},{fill:"#eee"},d),l),al(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(m8,m_({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=Lr(f,Ud);if(!d)return null;var p=u==="vertical"?a[0].height/2:a[0].width/2,m=function(g,x){var b=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:b,errorVal:Yt(g,x)}},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 x=this.state.isAnimationFinished,b=We("recharts-bar",a),_=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,O=_||w,E=Ze(g)?this.id:g;return M.createElement(nt,{className:b},_||w?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(E)},M.createElement("rect",{x:_?u:u-d/2,y:w?f:f-p/2,width:_?d:d*2,height:w?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||x)&&go.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}(I.PureComponent);As(qs,"displayName","Bar");As(qs,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!Ui.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});As(qs,"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=A8e(r,n);if(!m)return null;var v=t.layout,g=n.props,x=g.dataKey,b=g.children,_=g.minPointSize,w=v==="horizontal"?a:o,O=u?w.scale.domain():null,E=F8e({numericAxis:w}),T=Lr(b,Ws),k=d.map(function(P,D){var N,F,B,Y,H,Q;if(u?N=N8e(u[f+D],O):(N=Yt(P,x),Array.isArray(N)||(N=[E,N])),v==="horizontal"){var Z,te=[a.scale(N[0]),a.scale(N[1])],X=te[0],z=te[1];F=S5({axis:o,ticks:s,bandSize:i,offset:m.offset,entry:P,index:D}),B=(Z=z??X)!==null&&Z!==void 0?Z:void 0,Y=m.size;var V=X-z;if(H=Number.isNaN(V)?0:V,Q={x:F,y:a.y,width:Y,height:a.height},Math.abs(_)>0&&Math.abs(H)<Math.abs(_)){var W=Nr(H||_)*(Math.abs(_)-Math.abs(H));B-=W,H+=W}}else{var re=[o.scale(N[0]),o.scale(N[1])],q=re[0],ee=re[1];if(F=q,B=S5({axis:a,ticks:l,bandSize:i,offset:m.offset,entry:P,index:D}),Y=ee-q,H=m.size,Q={x:o.x,y:B,width:o.width,height:H},Math.abs(_)>0&&Math.abs(Y)<Math.abs(_)){var oe=Nr(Y||_)*(Math.abs(_)-Math.abs(Y));Y+=oe}}return zn(zn(zn({},P),{},{x:F,y:B,width:Y,height:H,value:u?N:N[1],payload:P,background:Q},T&&T[D]&&T[D].props),{},{tooltipPayload:[BY(n,P)],tooltipPosition:{x:F+Y/2,y:B+H/2}})});return zn({data:k,layout:v},p)});function qm(e){"@babel/helpers - typeof";return qm=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},qm(e)}function bBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y8(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,nG(r.key),r)}}function _Be(e,t,n){return t&&y8(e.prototype,t),n&&y8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b8(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 so(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b8(Object(n),!0).forEach(function(r){Jw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jw(e,t,n){return t=nG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nG(e){var t=wBe(e,"string");return qm(t)==="symbol"?t:String(t)}function wBe(e,t){if(qm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rG=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=!!Uo(l,qs);return u.reduce(function(p,m){var v=t[m],g=v.orientation,x=v.domain,b=v.padding,_=b===void 0?{}:b,w=v.mirror,O=v.reversed,E="".concat(g).concat(w?"Mirror":""),T,k,P,D,N;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var F=x[1]-x[0],B=1/0,Y=v.categoricalDomain.sort();Y.forEach(function(q,ee){ee>0&&(B=Math.min((q||0)-(Y[ee-1]||0),B))});var H=B/F,Q=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(T=H*Q/2),v.padding==="no-gap"){var Z=Vr(e.barCategoryGap,H*Q),te=H*Q/2;T=te-Z-(te-Z)/Q*Z}}r==="xAxis"?k=[n.left+(_.left||0)+(T||0),n.left+n.width-(_.right||0)-(T||0)]:r==="yAxis"?k=s==="horizontal"?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(T||0),n.top+n.height-(_.bottom||0)-(T||0)]:k=v.range,O&&(k=[k[1],k[0]]);var X=IY(v,i,d),z=X.scale,V=X.realScaleType;z.domain(x).range(k),FY(z);var W=UY(z,so(so({},v),{},{realScaleType:V}));r==="xAxis"?(N=g==="top"&&!w||g==="bottom"&&w,P=n.left,D=f[E]-N*v.height):r==="yAxis"&&(N=g==="left"&&!w||g==="right"&&w,P=f[E]-N*v.width,D=n.top);var re=so(so(so({},v),W),{},{realScaleType:V,x:P,y:D,scale:z,width:r==="xAxis"?n.width:v.width,height:r==="yAxis"?n.height:v.height});return re.bandSize=n_(re,W),!v.hide&&r==="xAxis"?f[E]+=(N?-1:1)*re.height:v.hide||(f[E]+=(N?-1:1)*re.width),so(so({},p),{},Jw({},m,re))},{})},iG=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)}},xBe=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return iG({x:t,y:n},{x:r,y:i})},oG=function(){function e(t){bBe(this,e),this.scale=t}return _Be(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}();Jw(oG,"EPS",1e-4);var vA=function(e){var t=Object.keys(e).reduce(function(n,r){return so(so({},n),{},Jw({},r,oG.create(e[r])))},{});return so(so({},t),{},{apply:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;return V7e(n,function(a,s){return t[s].apply(a,{bandAware:i,position:o})})},isInRange:function(n){return eG(n,function(r,i){return t[i].isInRange(r)})}})};function OBe(e){return(e%180+180)%180}var SBe=function(e){var t=e.width,n=e.height,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=OBe(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 Km(e){"@babel/helpers - typeof";return Km=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Km(e)}function _8(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 w8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_8(Object(n),!0).forEach(function(r){EBe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EBe(e,t,n){return t=TBe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TBe(e){var t=CBe(e,"string");return Km(t)==="symbol"?t:String(t)}function CBe(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 kBe(e,t){return NBe(e)||ABe(e,t)||PBe(e,t)||jBe()}function jBe(){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 PBe(e,t){if(e){if(typeof e=="string")return x8(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 x8(e,t)}}function x8(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 ABe(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 NBe(e){if(Array.isArray(e))return e}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)}var MBe=function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Xe(e)?n=e(t):n=M.createElement("line",iC({},t,{className:"recharts-reference-line-line"})),n},RBe=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(Xo(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,x=i.xAxis.orientation,b=e.x.apply(g,{position:f});if(Xo(i,"discard")&&!e.x.isInRange(b))return null;var _=[{x:b,y:s+u},{x:b,y:s}];return x==="top"?_.reverse():_}if(r){var w=i.segment,O=w.map(function(E){return e.apply(E,{position:f})});return Xo(i,"discard")&&D7e(O,function(E){return!e.isInRange(E)})?null:O}return null};function gA(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;ka(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=vA({x:i.scale,y:o.scale}),d=Nn(t),p=Nn(n),m=r&&r.length===2,v=RBe(f,d,p,m,e);if(!v)return null;var g=kBe(v,2),x=g[0],b=x.x,_=x.y,w=g[1],O=w.x,E=w.y,T=Xo(e,"hidden")?"url(#".concat(u,")"):void 0,k=w8(w8({clipPath:T},Ve(e,!0)),{},{x1:b,y1:_,x2:O,y2:E});return M.createElement(nt,{className:We("recharts-reference-line",s)},MBe(a,k),Yn.renderCallByParent(e,xBe({x1:b,y1:_,x2:O,y2:E})))}gA.displayName="ReferenceLine";gA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};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 oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oC.apply(this,arguments)}function O8(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 S8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O8(Object(n),!0).forEach(function(r){DBe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DBe(e,t,n){return t=LBe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LBe(e){var t=IBe(e,"string");return Zm(t)==="symbol"?t:String(t)}function IBe(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 FBe=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=vA({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return Xo(e,"discard")&&!o.isInRange(a)?null:a};function Dv(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,o=e.clipPathId,a=Nn(t),s=Nn(n);if(ka(i===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!s)return null;var l=FBe(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,m=Xo(e,"hidden")?"url(#".concat(o,")"):void 0,v=S8(S8({clipPath:m},Ve(e,!0)),{},{cx:u,cy:f});return M.createElement(nt,{className:We("recharts-reference-dot",p)},Dv.renderDot(d,v),Yn.renderCallByParent(e,{x:u-r,y:f-r,width:2*r,height:2*r}))}Dv.displayName="ReferenceDot";Dv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};Dv.renderDot=function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Xe(e)?n=e(t):n=M.createElement(Rv,oC({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};function Qm(e){"@babel/helpers - typeof";return Qm=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},Qm(e)}function aC(){return aC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aC.apply(this,arguments)}function E8(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 T8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E8(Object(n),!0).forEach(function(r){UBe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UBe(e,t,n){return t=$Be(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Be(e){var t=BBe(e,"string");return Qm(t)==="symbol"?t:String(t)}function BBe(e,t){if(Qm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zBe=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=vA({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 Xo(i,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:iG(p,m)};function Lv(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,o=e.className,a=e.alwaysShow,s=e.clipPathId;ka(a===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Nn(t),u=Nn(n),f=Nn(r),d=Nn(i),p=e.shape;if(!l&&!u&&!f&&!d&&!p)return null;var m=zBe(l,u,f,d,e);if(!m&&!p)return null;var v=Xo(e,"hidden")?"url(#".concat(s,")"):void 0;return M.createElement(nt,{className:We("recharts-reference-area",o)},Lv.renderRect(p,T8(T8({clipPath:v},Ve(e,!0)),m)),Yn.renderCallByParent(e,m))}Lv.displayName="ReferenceArea";Lv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};Lv.renderRect=function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Xe(e)?n=e(t):n=M.createElement(mA,aC({},t,{className:"recharts-reference-area-rect"})),n};function aG(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 VBe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return SBe(r,n)}function HBe(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 g_(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 WBe(e,t){return aG(e,t+1)}function YBe(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:aG(r,u)};var v=l,g,x=function(){return g===void 0&&(g=n(m,v)),g},b=m.coordinate,_=l===0||g_(e,b,x,f,s);_||(l=0,f=a,u+=1),_&&(f=b+e*(x()/2+i),l+=u)},p;u<=o.length;)if(p=d(),p)return p.v;return[]}function Xm(e){"@babel/helpers - typeof";return Xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xm(e)}function C8(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 gr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C8(Object(n),!0).forEach(function(r){GBe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GBe(e,t,n){return t=qBe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qBe(e){var t=KBe(e,"string");return Xm(t)==="symbol"?t:String(t)}function KBe(e,t){if(Xm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZBe(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=gr(gr({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else o[d]=p=gr(gr({},p),{},{tickCoord:p.coordinate});var x=g_(e,p.tickCoord,v,s,l);x&&(l=p.tickCoord-e*(v()/2+i),o[d]=gr(gr({},p),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return o}function QBe(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=gr(gr({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var m=g_(e,f.tickCoord,function(){return d},l,u);m&&(u=f.tickCoord-e*(d/2+i),a[s-1]=gr(gr({},f),{},{isShow:!0}))}for(var v=o?s-1:s,g=function(b){var _=a[b],w,O=function(){return w===void 0&&(w=n(_,b)),w};if(b===0){var E=e*(_.coordinate-e*O()/2-l);a[b]=_=gr(gr({},_),{},{tickCoord:E<0?_.coordinate-E*e:_.coordinate})}else a[b]=_=gr(gr({},_),{},{tickCoord:_.coordinate});var T=g_(e,_.tickCoord,O,l,u);T&&(l=_.tickCoord+e*(O()/2+i),a[b]=gr(gr({},_),{},{isShow:!0}))},x=0;x<v;x++)g(x);return a}function sC(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)||Ui.isSsr)return WBe(i,typeof l=="number"&&je(l)?l:0);var p=[],m=s==="top"||s==="bottom"?"width":"height",v=f&&m==="width"?yh(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(_,w){var O=Xe(u)?u(_.value,w):_.value;return m==="width"?VBe(yh(O,{fontSize:t,letterSpacing:n}),v,d):yh(O,{fontSize:t,letterSpacing:n})[m]},x=i.length>=2?Nr(i[1].coordinate-i[0].coordinate):1,b=HBe(o,x,m);return l==="equidistantPreserveStart"?YBe(x,b,g,i,a):(l==="preserveStart"||l==="preserveStartEnd"?p=QBe(x,b,g,i,a,l==="preserveStartEnd"):p=ZBe(x,b,g,i,a),p.filter(function(_){return _.isShow}))}var XBe=["viewBox"],JBe=["viewBox"],e9e=["ticks"];function nd(e){"@babel/helpers - typeof";return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nd(e)}function 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 k8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k8(Object(n),!0).forEach(function(r){yA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OS(e,t){if(e==null)return{};var n=t9e(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 t9e(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 n9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j8(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,sG(r.key),r)}}function r9e(e,t,n){return t&&j8(e.prototype,t),n&&j8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i9e(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 o9e(e){var t=l9e();return function(){var n=y_(e),r;if(t){var i=y_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a9e(this,r)}}function a9e(e,t){if(t&&(nd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s9e(e)}function s9e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l9e(){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 y_(e){return y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y_(e)}function yA(e,t,n){return t=sG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sG(e){var t=u9e(e,"string");return nd(t)==="symbol"?t:String(t)}function u9e(e,t){if(nd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xh=function(e){i9e(n,e);var t=o9e(n);function n(r){var i;return n9e(this,n),i=t.call(this,r),i.state={fontSize:"",letterSpacing:""},i}return r9e(n,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=OS(r,XBe),s=this.props,l=s.viewBox,u=OS(s,JBe);return!rf(o,l)||!rf(a,u)||!rf(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,x,b,_,w=d?-1:1,O=r.tickSize||f,E=je(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":m=v=r.coordinate,x=a+ +!d*l,g=x-w*O,_=g-w*p,b=E;break;case"left":g=x=r.coordinate,v=o+ +!d*s,m=v-w*O,b=m-w*p,_=E;break;case"right":g=x=r.coordinate,v=o+ +d*s,m=v+w*O,b=m+w*p,_=E;break;default:m=v=r.coordinate,x=a+ +d*l,g=x+w*O,_=g+w*p,b=E;break}return{line:{x1:m,y1:g,x2:v,y2:x},tick:{x:b,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.orientation,u=r.mirror,f=r.axisLine,d=Tr(Tr(Tr({},Ve(this.props)),Ve(f)),{},{fill:"none"});if(l==="top"||l==="bottom"){var p=+(l==="top"&&!u||l==="bottom"&&u);d=Tr(Tr({},d),{},{x1:i,y1:o+p*s,x2:i+a,y2:o+p*s})}else{var m=+(l==="left"&&!u||l==="right"&&u);d=Tr(Tr({},d),{},{x1:i+m*a,y1:o,x2:i+m*a,y2:o+s})}return M.createElement("line",Yc({},d,{className:We("recharts-cartesian-axis-line",ui(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=sC(Tr(Tr({},this.props),{},{ticks:r}),i,o),v=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),x=Ve(this.props),b=Ve(f),_=Tr(Tr({},x),{},{fill:"none"},Ve(l)),w=m.map(function(O,E){var T=a.getTickLineCoord(O),k=T.line,P=T.tick,D=Tr(Tr(Tr(Tr({textAnchor:v,verticalAnchor:g},x),{},{stroke:"none",fill:u},b),P),{},{index:E,payload:O,visibleTicksCount:m.length,tickFormatter:d});return M.createElement(nt,Yc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},al(a.props,O,E)),l&&M.createElement("line",Yc({},_,k,{className:We("recharts-cartesian-axis-tick-line",ui(l,"className"))})),f&&n.renderTickItem(f,D,"".concat(Xe(d)?d(O.value,E):O.value).concat(p||"")))});return M.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{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=OS(d,e9e),v=p;return Xe(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),Yn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return M.isValidElement(r)?a=M.cloneElement(r,i):Xe(r)?a=r(i):a=M.createElement(Mu,Yc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}]),n}(I.Component);yA(xh,"displayName","CartesianAxis");yA(xh,"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 c9e=["x1","y1","x2","y2","key"],f9e=["offset"];function rd(e){"@babel/helpers - typeof";return rd=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},rd(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 P8(e,t){if(e==null)return{};var n=d9e(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 d9e(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 A8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A8(Object(n),!0).forEach(function(r){bA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N8(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,lG(r.key),r)}}function h9e(e,t,n){return t&&N8(e.prototype,t),n&&N8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m9e(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 v9e(e){var t=b9e();return function(){var n=b_(e),r;if(t){var i=b_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g9e(this,r)}}function g9e(e,t){if(t&&(rd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y9e(e)}function y9e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b9e(){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 b_(e){return b_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b_(e)}function bA(e,t,n){return t=lG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lG(e){var t=_9e(e,"string");return rd(t)==="symbol"?t:String(t)}function _9e(e,t){if(rd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ex=function(e){m9e(n,e);var t=v9e(n);function n(){return p9e(this,n),t.apply(this,arguments)}return h9e(n,[{key:"renderHorizontal",value:function(r){var i=this,o=this.props,a=o.x,s=o.width,l=o.horizontal;if(!r||!r.length)return null;var u=r.map(function(f,d){var p=ls(ls({},i.props),{},{x1:a,y1:f,x2:a+s,y2:f,key:"line-".concat(d),index:d});return n.renderLineItem(l,p)});return M.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(r){var i=this,o=this.props,a=o.y,s=o.height,l=o.vertical;if(!r||!r.length)return null;var u=r.map(function(f,d){var p=ls(ls({},i.props),{},{x1:f,y1:a,x2:f,y2:a+s,key:"line-".concat(d),index:d});return n.renderLineItem(l,p)});return M.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(r){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,a=o.fillOpacity,s=o.x,l=o.y,u=o.width,f=o.height,d=r.map(function(m){return Math.round(m+s-s)}).sort(function(m,v){return m-v});s!==d[0]&&d.unshift(0);var p=d.map(function(m,v){var g=!d[v+1],x=g?s+u-m:d[v+1]-m;if(x<=0)return null;var b=v%i.length;return M.createElement("rect",{key:"react-".concat(v),x:m,y:l,width:x,height:f,stroke:"none",fill:i[b],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],x=g?l+f-m:d[v+1]-m;if(x<=0)return null;var b=v%i.length;return M.createElement("rect",{key:"react-".concat(v),y:m,x:s,height:x,width:u,stroke:"none",fill:i[b],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,x=r.chartHeight,b=r.syncWithTicks,_=r.horizontalValues,w=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)&&Xe(f)){var k=_&&_.length;E=f({yAxis:m?ls(ls({},m),{},{ticks:k?_:m.ticks}):void 0,width:g,height:x,offset:v},k?!0:b)}if((!T||!T.length)&&Xe(d)){var P=w&&w.length;T=d({xAxis:p?ls(ls({},p),{},{ticks:P?w:p.ticks}):void 0,width:g,height:x,offset:v},P?!0:b)}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(Xe(r))o=r(i);else{var a=i.x1,s=i.y1,l=i.x2,u=i.y2,f=i.key,d=P8(i,c9e),p=Ve(d);p.offset;var m=P8(p,f9e);o=M.createElement("line",uC({},m,{x1:a,y1:s,x2:l,y2:u,fill:"none",key:f}))}return o}}]),n}(I.PureComponent);bA(ex,"displayName","CartesianGrid");bA(ex,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var w9e=["type","layout","connectNulls","ref"];function id(e){"@babel/helpers - typeof";return id=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},id(e)}function x9e(e,t){if(e==null)return{};var n=O9e(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 O9e(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 Oh(){return Oh=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},Oh.apply(this,arguments)}function M8(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 ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M8(Object(n),!0).forEach(function(r){lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gc(e){return C9e(e)||T9e(e)||E9e(e)||S9e()}function S9e(){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 E9e(e,t){if(e){if(typeof e=="string")return fC(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 fC(e,t)}}function T9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function C9e(e){if(Array.isArray(e))return fC(e)}function fC(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 k9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R8(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,uG(r.key),r)}}function j9e(e,t,n){return t&&R8(e.prototype,t),n&&R8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P9e(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 A9e(e){var t=M9e();return function(){var n=__(e),r;if(t){var i=__(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return N9e(this,r)}}function N9e(e,t){if(t&&(id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ds(e)}function ds(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M9e(){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 __(e){return __=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},__(e)}function lo(e,t,n){return t=uG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uG(e){var t=R9e(e,"string");return id(t)==="symbol"?t:String(t)}function R9e(e,t){if(id(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(id(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $d=function(e){P9e(n,e);var t=A9e(n);function n(){var r;k9e(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)),lo(ds(r),"state",{isAnimationFinished:!0,totalLength:0}),lo(ds(r),"generateSimpleStrokeDasharray",function(s,l){return"".concat(l,"px ").concat(s-l,"px")}),lo(ds(r),"getStrokeDasharray",function(s,l,u){var f=u.reduce(function(_,w){return _+w});if(!f)return r.generateSimpleStrokeDasharray(l,s);for(var d=Math.floor(s/f),p=s%f,m=l-s,v=[],g=0,x=0;g<u.length;x+=u[g],++g)if(x+u[g]>p){v=[].concat(gc(u.slice(0,g)),[p-x]);break}var b=v.length%2===0?[0,m]:[m];return[].concat(gc(n.repeat(u,d)),gc(v),b).map(function(_){return"".concat(_,"px")}).join(", ")}),lo(ds(r),"id",bl("recharts-line-")),lo(ds(r),"pathRef",function(s){r.mainCurve=s}),lo(ds(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),lo(ds(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return j9e(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=Lr(f,Ud);if(!d)return null;var p=function(v,g){return{x:v.x,y:v.y,value:v.value,errorVal:Yt(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,x){var b=ni(ni(ni({key:"dot-".concat(x),r:3},d),p),{},{value:g.value,dataKey:f,cx:g.x,cy:g.y,index:x,payload:g.payload});return n.renderDotItem(l,b)}),v={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return M.createElement(nt,Oh({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=x9e(s,w9e),p=ni(ni(ni({},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(Gs,Oh({},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,x=a.height,b=this.state,_=b.prevPoints,w=b.totalLength;return M.createElement(Gi,{begin:f,duration:d,isActive:u,easing:p,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var E=O.t;if(_){var T=_.length/s.length,k=s.map(function(B,Y){var H=Math.floor(Y*T);if(_[H]){var Q=_[H],Z=an(Q.x,B.x),te=an(Q.y,B.y);return ni(ni({},B),{},{x:Z(E),y:te(E)})}if(v){var X=an(g*2,B.x),z=an(x/2,B.y);return ni(ni({},B),{},{x:X(E),y:z(E)})}return ni(ni({},B),{},{x:B.x,y:B.y})});return o.renderCurveStatically(k,r,i)}var P=an(0,w),D=P(E),N;if(l){var F="".concat(l).split(/[,\s]+/gim).map(function(B){return parseFloat(B)});N=o.getStrokeDasharray(D,w,F)}else N=o.generateSimpleStrokeDasharray(w,D);return o.renderCurveStatically(s,r,i,{strokeDasharray:N})})}},{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||!sl(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,x=i.id;if(o||!s||!s.length)return null;var b=this.state.isAnimationFinished,_=s.length===1,w=We("recharts-line",l),O=u&&u.allowDataOverflow,E=f&&f.allowDataOverflow,T=O||E,k=Ze(x)?this.id:x,P=(r=Ve(a))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=P.r,N=D===void 0?3:D,F=P.strokeWidth,B=F===void 0?2:F,Y=CH(a)?a:{},H=Y.clipDot,Q=H===void 0?!0:H,Z=N*2+B;return M.createElement(nt,{className:w},O||E?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(k)},M.createElement("rect",{x:O?p:p-m/2,y:E?d:d-v/2,width:O?m:m*2,height:E?v:v*2})),!Q&&M.createElement("clipPath",{id:"clipPath-dots-".concat(k)},M.createElement("rect",{x:p-Z/2,y:d-Z/2,width:m+Z,height:v+Z}))):null,!_&&this.renderCurve(T,k),this.renderErrorBar(T,k),(_||a)&&this.renderDots(T,Q,k),(!g||b)&&go.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(gc(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(gc(a),gc(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(M.isValidElement(r))o=M.cloneElement(r,i);else if(Xe(r))o=r(i);else{var a=We("recharts-line-dot",r?r.className:"");o=M.createElement(Rv,Oh({},i,{className:a}))}return o}}]),n}(I.PureComponent);lo($d,"displayName","Line");lo($d,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ui.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});lo($d,"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=Yt(p,a);return f==="horizontal"?{x:Kf({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:Kf({axis:r,ticks:o,bandSize:s,entry:p,index:m}),value:v,payload:p}});return ni({points:d,layout:f},u)});var D9e=["layout","type","stroke","connectNulls","isRange","ref"],cG;function od(e){"@babel/helpers - typeof";return od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},od(e)}function L9e(e,t){if(e==null)return{};var n=I9e(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 I9e(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 ou(){return ou=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},ou.apply(this,arguments)}function D8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D8(Object(n),!0).forEach(function(r){zo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L8(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,fG(r.key),r)}}function U9e(e,t,n){return t&&L8(e.prototype,t),n&&L8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $9e(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&&pC(e,t)}function pC(e,t){return pC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},pC(e,t)}function B9e(e){var t=V9e();return function(){var n=w_(e),r;if(t){var i=w_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return z9e(this,r)}}function z9e(e,t){if(t&&(od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hp(e)}function Hp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V9e(){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 w_(e){return w_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w_(e)}function zo(e,t,n){return t=fG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fG(e){var t=H9e(e,"string");return od(t)==="symbol"?t:String(t)}function H9e(e,t){if(od(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(od(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wu=function(e){$9e(n,e);var t=B9e(n);function n(){var r;F9e(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)),zo(Hp(r),"state",{isAnimationFinished:!0}),zo(Hp(r),"id",bl("recharts-area-")),zo(Hp(r),"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Xe(s)&&s()}),zo(Hp(r),"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Xe(s)&&s()}),r}return U9e(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(x,b){var _=ps(ps(ps({key:"dot-".concat(b),r:3},p),m),{},{dataKey:d,cx:x.x,cy:x.y,index:b,value:x.value,payload:x.payload});return n.renderDotItem(u,_)}),g={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return M.createElement(nt,ou({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=L9e(s,D9e);return M.createElement(nt,{clipPath:o?"url(#clipPath-".concat(a,")"):null},M.createElement(Gs,ou({},Ve(m,!0),{points:r,connectNulls:d,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&M.createElement(Gs,ou({},Ve(this.props),{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:r})),f!=="none"&&p&&M.createElement(Gs,ou({},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,x=v.prevBaseLine;return M.createElement(Gi,{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(b){var _=b.t;if(g){var w=g.length/s.length,O=s.map(function(P,D){var N=Math.floor(D*w);if(g[N]){var F=g[N],B=an(F.x,P.x),Y=an(F.y,P.y);return ps(ps({},P),{},{x:B(_),y:Y(_)})}return P}),E;if(je(l)&&typeof l=="number"){var T=an(x,l);E=T(_)}else if(Ze(l)||Ad(l)){var k=an(x,0);E=k(_)}else E=l.map(function(P,D){var N=Math.floor(D*w);if(x[N]){var F=x[N],B=an(F.x,P.x),Y=an(F.y,P.y);return ps(ps({},P),{},{x:B(_),y:Y(_)})}return P});return o.renderAreaStatically(O,E,r,i)}return M.createElement(nt,null,M.createElement("defs",null,M.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(_))),M.createElement(nt,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,l,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,a=o.points,s=o.baseLine,l=o.isAnimationActive,u=this.state,f=u.prevPoints,d=u.prevBaseLine,p=u.totalLength;return l&&a&&a.length&&(!f&&p>0||!sl(f,a)||!sl(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,x=i.id;if(o||!s||!s.length)return null;var b=this.state.isAnimationFinished,_=s.length===1,w=We("recharts-area",l),O=d&&d.allowDataOverflow,E=p&&p.allowDataOverflow,T=O||E,k=Ze(x)?this.id:x,P=(r=Ve(a))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=P.r,N=D===void 0?3:D,F=P.strokeWidth,B=F===void 0?2:F,Y=CH(a)?a:{},H=Y.clipDot,Q=H===void 0?!0:H,Z=N*2+B;return M.createElement(nt,{className:w},O||E?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(k)},M.createElement("rect",{x:O?f:f-m/2,y:E?u:u-v/2,width:O?m:m*2,height:E?v:v*2})),!Q&&M.createElement("clipPath",{id:"clipPath-dots-".concat(k)},M.createElement("rect",{x:f-Z/2,y:u-Z/2,width:m+Z,height:v+Z}))):null,_?null:this.renderArea(T,k),(a||_)&&this.renderDots(T,Q,k),(!g||b)&&go.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}(I.PureComponent);cG=Wu;zo(Wu,"displayName","Area");zo(Wu,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ui.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});zo(Wu,"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]});zo(Wu,"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=cG.getBaseValue(t,n,r,i),x=m==="horizontal",b=!1,_=d.map(function(O,E){var T;v?T=u[f+E]:(T=Yt(O,l),Array.isArray(T)?b=!0:T=[g,T]);var k=T[1]==null||v&&Yt(O,l)==null;return x?{x:Kf({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:Kf({axis:i,ticks:a,bandSize:s,entry:O,index:E}),value:T,payload:O}}),w;return v||b?w=_.map(function(O){var E=Array.isArray(O.value)?O.value[0]:null;return x?{x:O.x,y:E!=null&&O.y!=null?i.scale(E):null}:{x:E!=null?r.scale(E):null,y:O.y}}):w=x?i.scale(g):r.scale(g),ps({points:_,baseLine:w,layout:m,isRange:b},p)});zo(Wu,"renderDotItem",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Xe(e)?n=e(t):n=M.createElement(Rv,ou({},t,{className:"recharts-area-dot"})),n});var tx=function(){return null};tx.displayName="ZAxis";tx.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var W9e=["option","isActive"];function Sh(){return Sh=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},Sh.apply(this,arguments)}function Y9e(e,t){if(e==null)return{};var n=G9e(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 G9e(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 q9e(e){var t=e.option,n=e.isActive,r=Y9e(e,W9e);return typeof t=="string"?M.createElement(c_,Sh({option:M.createElement(Mw,Sh({type:t},r)),isActive:n,shapeType:"symbols"},r)):M.createElement(c_,Sh({option:t,isActive:n,shapeType:"symbols"},r))}function ad(e){"@babel/helpers - typeof";return ad=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},ad(e)}function Eh(){return Eh=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},Eh.apply(this,arguments)}function I8(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 Ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I8(Object(n),!0).forEach(function(r){Ns(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F8(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,dG(r.key),r)}}function Z9e(e,t,n){return t&&F8(e.prototype,t),n&&F8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q9e(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&&hC(e,t)}function hC(e,t){return hC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hC(e,t)}function X9e(e){var t=eze();return function(){var n=x_(e),r;if(t){var i=x_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return J9e(this,r)}}function J9e(e,t){if(t&&(ad(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wp(e)}function Wp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eze(){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 x_(e){return x_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x_(e)}function Ns(e,t,n){return t=dG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dG(e){var t=tze(e,"string");return ad(t)==="symbol"?t:String(t)}function tze(e,t){if(ad(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ad(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nx=function(e){Q9e(n,e);var t=X9e(n);function n(){var r;K9e(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(Wp(r),"state",{isAnimationFinished:!1}),Ns(Wp(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Ns(Wp(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Ns(Wp(r),"id",bl("recharts-scatter-")),r}return Z9e(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=Ti(Ti({key:"symbol-".concat(d)},u),f);return M.createElement(nt,Eh({className:"recharts-scatter-symbol"},al(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(q9e,Eh({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(Gi,{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,x){var b=d&&d[x];if(b){var _=an(b.cx,g.cx),w=an(b.cy,g.cy),O=an(b.size,g.size);return Ti(Ti({},g),{},{cx:_(m),cy:w(m),size:O(m)})}var E=an(0,g.size);return Ti(Ti({},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||!sl(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=Lr(l,Ud);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,x){return{x:g.cx,y:g.cy,value:m==="x"?+g.node.x:+g.node.y,errorVal:Yt(g,x)}}})}):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(w){return{x:w.cx,y:w.cy}});else if(a==="fitting"){var p=rEe(i),m=p.xmin,v=p.xmax,g=p.a,x=p.b,b=function(w){return g*w+x};f=[{x:m,y:b(m)},{x:v,y:b(v)}]}var _=Ti(Ti(Ti({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:f});return M.isValidElement(o)?d=M.cloneElement(o,_):Xe(o)?d=o(_):d=M.createElement(Gs,Eh({},_,{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 x=this.state.isAnimationFinished,b=We("recharts-scatter",s),_=l&&l.allowDataOverflow,w=u&&u.allowDataOverflow,O=_||w,E=Ze(v)?this.id:v;return M.createElement(nt,{className:b,clipPath:O?"url(#clipPath-".concat(E,")"):null},_||w?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(E)},M.createElement("rect",{x:_?f:f-p/2,y:w?d:d-m/2,width:_?p:p*2,height:w?m:m*2}))):null,a&&this.renderLine(),this.renderErrorBar(),M.createElement(nt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!g||x)&&go.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}(I.PureComponent);Ns(nx,"displayName","Scatter");Ns(nx,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Ui.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Ns(nx,"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=Lr(i.props.children,Ws),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:tx.defaultProps.range,g=v&&v[0],x=t.scale.bandwidth?t.scale.bandwidth():0,b=n.scale.bandwidth?n.scale.bandwidth():0,_=o.map(function(w,O){var E=Yt(w,d),T=Yt(w,p),k=!Ze(m)&&Yt(w,m)||"-",P=[{name:Ze(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:E,payload:w,dataKey:d,type:u},{name:Ze(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:T,payload:w,dataKey:p,type:u}];k!=="-"&&P.push({name:r.name||r.dataKey,unit:r.unit||"",value:k,payload:w,dataKey:m,type:u});var D=Kf({axis:t,ticks:a,bandSize:x,entry:w,index:O,dataKey:d}),N=Kf({axis:n,ticks:s,bandSize:b,entry:w,index:O,dataKey:p}),F=k!=="-"?r.scale(k):g,B=Math.sqrt(Math.max(F,0)/Math.PI);return Ti(Ti({},w),{},{cx:D,cy:N,x:D-B,y:N-B,xAxis:t,yAxis:n,zAxis:r,width:2*B,height:2*B,size:F,node:{x:E,y:T,z:k},tooltipPayload:P,tooltipPosition:{x:D,y:N},payload:w},f&&f[O]&&f[O].props)});return Ti({points:_},l)});var Bd=function(){return null};Bd.displayName="XAxis";Bd.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 zd=function(){return null};zd.displayName="YAxis";zd.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 nze=la,rze=jv,ize=Rw;function oze(e){return function(t,n,r){var i=Object(t);if(!rze(t)){var o=nze(n);t=ize(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 aze=oze,sze=QY;function lze(e){var t=sze(e),n=t%1;return t===t?n?t-n:t:0}var uze=lze,cze=vW,fze=la,dze=uze,pze=Math.max;function hze(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:dze(n);return i<0&&(i=pze(r+i,0)),cze(e,fze(t),i)}var mze=hze,vze=aze,gze=mze,yze=vze(gze),bze=yze;const _ze=Et(bze);var wze="Invariant failed";function xze(e,t){if(!e)throw new Error(wze)}function U8(e){return Tze(e)||Eze(e)||Sze(e)||Oze()}function Oze(){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 Sze(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 Eze(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tze(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}var vC=function(e,t,n,r,i){var o=Lr(e,gA),a=Lr(e,Dv),s=[].concat(U8(o),U8(a)),l=Lr(e,Lv),u="".concat(r,"Id"),f=r[0],d=t;if(s.length&&(d=s.reduce(function(v,g){if(g.props[u]===n&&Xo(g.props,"extendDomain")&&je(g.props[f])){var x=g.props[f];return[Math.min(v[0],x),Math.max(v[1],x)]}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&&Xo(g.props,"extendDomain")&&je(g.props[p])&&je(g.props[m])){var x=g.props[p],b=g.props[m];return[Math.min(v[0],x,b),Math.max(v[1],x,b)]}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},pG={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],x=arguments.length,b,_;if(g.fn){switch(g.once&&this.removeListener(l,g.fn,void 0,!0),x){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,f),!0;case 4:return g.fn.call(g.context,u,f,d),!0;case 5:return g.fn.call(g.context,u,f,d,p),!0;case 6:return g.fn.call(g.context,u,f,d,p,m),!0}for(_=1,b=new Array(x-1);_<x;_++)b[_-1]=arguments[_];g.fn.apply(g.context,b)}else{var w=g.length,O;for(_=0;_<w;_++)switch(g[_].once&&this.removeListener(l,g[_].fn,void 0,!0),x){case 1:g[_].fn.call(g[_].context);break;case 2:g[_].fn.call(g[_].context,u);break;case 3:g[_].fn.call(g[_].context,u,f);break;case 4:g[_].fn.call(g[_].context,u,f,d);break;default:if(!b)for(O=1,b=new Array(x-1);O<x;O++)b[O-1]=arguments[O];g[_].fn.apply(g[_].context,b)}}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=[],x=m.length;v<x;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})(pG);var Cze=pG.exports;const kze=Et(Cze);var SS=new kze,ES="recharts.syncMouseEvents";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 jze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $8(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,hG(r.key),r)}}function Pze(e,t,n){return t&&$8(e.prototype,t),n&&$8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TS(e,t,n){return t=hG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hG(e){var t=Aze(e,"string");return Jm(t)==="symbol"?t:String(t)}function Aze(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 Nze=function(){function e(){jze(this,e),TS(this,"activeIndex",0),TS(this,"coordinateList",[]),TS(this,"layout","horizontal")}return Pze(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 Mze(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 Rze(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function mG(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=Ut(t,n,r,i),s=Ut(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function Dze(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=Ut(s,l,u,d),m=Ut(s,l,f,d);r=p.x,i=p.y,o=m.x,a=m.y}else return mG(t);return[{x:r,y:i},{x:o,y:a}]}function ev(e){"@babel/helpers - typeof";return ev=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},ev(e)}function B8(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 ly(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B8(Object(n),!0).forEach(function(r){Lze(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lze(e,t,n){return t=Ize(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ize(e){var t=Fze(e,"string");return ev(t)==="symbol"?t:String(t)}function Fze(e,t){if(ev(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ev(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uze(e){var t=e.element,n=e.tooltipEventType,r=e.isActive,i=e.activeCoordinate,o=e.activePayload,a=e.offset,s=e.activeTooltipIndex,l=e.tooltipAxisBandSize,u=e.layout,f=e.chartName;if(!t||!t.props.cursor||!r||!i||f!=="ScatterChart"&&n!=="axis")return null;var d,p=Gs;if(f==="ScatterChart")d=i,p=wUe;else if(f==="BarChart")d=Rze(u,i,a,l),p=mA;else if(u==="radial"){var m=mG(i),v=m.cx,g=m.cy,x=m.radius,b=m.startAngle,_=m.endAngle;d={cx:v,cy:g,startAngle:b,endAngle:_,innerRadius:x,outerRadius:x},p=YY}else d={points:Dze(u,i,a)},p=Gs;var w=ly(ly(ly(ly({stroke:"#ccc",pointerEvents:"none"},a),d),Ve(t.props.cursor)),{},{payload:o,payloadIndex:s,className:"recharts-tooltip-cursor"});return I.isValidElement(t.props.cursor)?I.cloneElement(t.props.cursor,w):I.createElement(p,w)}var $ze=["item"],Bze=["children","className","width","height","style","compact","title","desc"];function sd(e){"@babel/helpers - typeof";return sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sd(e)}function z8(e,t){return Hze(e)||Vze(e,t)||vG(e,t)||zze()}function zze(){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 Vze(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 Hze(e){if(Array.isArray(e))return 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 V8(e,t){if(e==null)return{};var n=Wze(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 Wze(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 Yze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H8(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,gG(r.key),r)}}function Gze(e,t,n){return t&&H8(e.prototype,t),n&&H8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qze(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&&gC(e,t)}function gC(e,t){return gC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gC(e,t)}function Kze(e){var t=Qze();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 Zze(this,r)}}function Zze(e,t){if(t&&(sd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 Qze(){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 ld(e){return eVe(e)||Jze(e)||vG(e)||Xze()}function Xze(){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 vG(e,t){if(e){if(typeof e=="string")return yC(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 yC(e,t)}}function Jze(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eVe(e){if(Array.isArray(e))return yC(e)}function yC(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 W8(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?W8(Object(n),!0).forEach(function(r){Ge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ge(e,t,n){return t=gG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gG(e){var t=tVe(e,"string");return sd(t)==="symbol"?t:String(t)}function tVe(e,t){if(sd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nVe={xAxis:["bottom","top"],yAxis:["left","right"]},rVe={width:"100%",height:"100%"},yG={x:0,y:0},iVe=function(e,t){return t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius},oVe=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),Ut(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,l=r.angle;return ye(ye(ye({},r),Ut(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return yG},rx=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(ld(a),ld(l)):a},[]);return o.length>0?o:e&&e.length&&je(r)&&je(i)?e.slice(r,i+1):[]};function bG(e){return e==="number"?[0,"auto"]:void 0}var _G=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=rx(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=Eb(m,o.dataKey,r)}else p=d&&d[n]||a[n];return p?[].concat(ld(s),[BY(l,p)]):s},[])},Y8=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=iVe(i,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,u=E8e(o,a,l,s);if(u>=0&&l){var f=l[u]&&l[u].value,d=_G(e,t,u,f),p=oVe(n,a,u,i);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},aVe=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=LY(u,i);return n.reduce(function(m,v){var g,x=v.props,b=x.type,_=x.dataKey,w=x.allowDataOverflow,O=x.allowDuplicatedCategory,E=x.scale,T=x.ticks,k=x.includeHidden,P=v.props[o];if(m[P])return m;var D=rx(e.data,{graphicalItems:r.filter(function(W){return W.props[o]===P}),dataStartIndex:s,dataEndIndex:l}),N=D.length,F,B,Y;Mze(v.props.domain,w,b)&&(F=HT(v.props.domain,null,w),p&&(b==="number"||E!=="auto")&&(Y=Vy(D,_,"category")));var H=bG(b);if(!F||F.length===0){var Q,Z=(Q=v.props.domain)!==null&&Q!==void 0?Q:H;if(_){if(F=Vy(D,_,b),b==="category"&&p){var te=nEe(F);O&&te?(B=F,F=d_(0,N)):O||(F=C5(Z,F,v).reduce(function(W,re){return W.indexOf(re)>=0?W:[].concat(ld(W),[re])},[]))}else if(b==="category")O?F=F.filter(function(W){return W!==""&&!Ze(W)}):F=C5(Z,F,v).reduce(function(W,re){return W.indexOf(re)>=0||re===""||Ze(re)?W:[].concat(ld(W),[re])},[]);else if(b==="number"){var X=P8e(D,r.filter(function(W){return W.props[o]===P&&(k||!W.props.hide)}),_,i,u);X&&(F=X)}p&&(b==="number"||E!=="auto")&&(Y=Vy(D,_,"category"))}else p?F=d_(0,N):a&&a[P]&&a[P].hasStack&&b==="number"?F=d==="expand"?[0,1]:$Y(a[P].stackGroups,s,l):F=DY(D,r.filter(function(W){return W.props[o]===P&&(k||!W.props.hide)}),b,u,!0);if(b==="number")F=vC(f,F,P,i,T),Z&&(F=HT(Z,F,w));else if(b==="category"&&Z){var z=Z,V=F.every(function(W){return z.indexOf(W)>=0});V&&(F=z)}}return ye(ye({},m),{},Ge({},P,ye(ye({},v.props),{},{axisType:i,domain:F,categoricalDomain:Y,duplicateDomain:B,originalDomain:(g=v.props.domain)!==null&&g!==void 0?g:H,isCategorical:p,layout:u})))},{})},sVe=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=rx(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,m=LY(u,i),v=-1;return n.reduce(function(g,x){var b=x.props[o],_=bG("number");if(!g[b]){v++;var w;return m?w=d_(0,p):a&&a[b]&&a[b].hasStack?(w=$Y(a[b].stackGroups,s,l),w=vC(f,w,b,i)):(w=HT(_,DY(d,n.filter(function(O){return O.props[o]===b&&!O.props.hide}),"number",u),r.defaultProps.allowDataOverflow),w=vC(f,w,b,i)),ye(ye({},g),{},Ge({},b,ye(ye({axisType:i},r.defaultProps),{},{hide:!0,orientation:ui(nVe,"".concat(i,".").concat(v%2),null),domain:w,originalDomain:_,isCategorical:m,layout:u})))}return g},{})},lVe=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=Lr(u,i),p={};return d&&d.length?p=aVe(e,{axes:d,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=sVe(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),p},uVe=function(e){var t=cs(e),n=fs(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:$P(n,function(r){return r.coordinate}),tooltipAxis:t,tooltipAxisBandSize:n_(t,n)}},G8=function(e){var t=e.children,n=e.defaultShowTooltip,r=Uo(t,ed),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}},cVe=function(e){return!e||!e.length?!1:e.some(function(t){var n=Ca(t&&t.type);return n&&n.indexOf("Bar")>=0})},q8=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"}},fVe=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=Uo(f,ed),m=Uo(f,ym),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,ui(O,"".concat(k))+T.height)):O},{top:d.top||0,bottom:d.bottom||0}),x=ye(ye({},g),v),b=x.bottom;p&&(x.bottom+=p.props.height||ed.defaultProps.height),m&&t&&(x=k8e(x,r,n,t));var _=l-x.left-x.right,w=u-x.top-x.bottom;return ye(ye({brushBottom:b},x),{},{width:Math.max(_,0),height:Math.max(w,0)})},_A=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 x=g.graphicalItems,b=g.stackGroups,_=g.offset,w=g.updateId,O=g.dataStartIndex,E=g.dataEndIndex,T=v.barSize,k=v.layout,P=v.barGap,D=v.barCategoryGap,N=v.maxBarSize,F=q8(k),B=F.numericAxisName,Y=F.cateAxisName,H=cVe(x),Q=H&&T8e({barSize:T,stackGroups:b}),Z=[];return x.forEach(function(te,X){var z=rx(v.data,{graphicalItems:[te],dataStartIndex:O,dataEndIndex:E}),V=te.props,W=V.dataKey,re=V.maxBarSize,q=te.props["".concat(B,"Id")],ee=te.props["".concat(Y,"Id")],oe={},le=l.reduce(function(Oe,Ce){var ke,Pe=g["".concat(Ce.axisType,"Map")],ce=te.props["".concat(Ce.axisType,"Id")];Pe&&Pe[ce]||Ce.axisType==="zAxis"||xze(!1);var de=Pe[ce];return ye(ye({},Oe),{},(ke={},Ge(ke,Ce.axisType,de),Ge(ke,"".concat(Ce.axisType,"Ticks"),fs(de)),ke))},oe),fe=le[Y],j=le["".concat(Y,"Ticks")],A=b&&b[q]&&b[q].hasStack&&U8e(te,b[q].stackGroups),$=Ca(te.type).indexOf("Bar")>=0,J=n_(fe,j),K=[];if($){var se,he,Ee=Ze(re)?N:re,ue=(se=(he=n_(fe,j,!0))!==null&&he!==void 0?he:Ee)!==null&&se!==void 0?se:0;K=C8e({barGap:P,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({},le),{},{displayedData:z,props:v,dataKey:W,item:te,bandSize:J,barPosition:K,offset:_,stackedData:A,layout:k,dataStartIndex:O,dataEndIndex:E}))),{},(ge={key:te.key||"item-".concat(X)},Ge(ge,B,le[B]),Ge(ge,Y,le[Y]),Ge(ge,"animationId",w),ge)),childIndex:hEe(te,v.children),item:te})}}),Z},m=function(v,g){var x=v.props,b=v.dataStartIndex,_=v.dataEndIndex,w=v.updateId;if(!eI({props:x}))return null;var O=x.children,E=x.layout,T=x.stackOffset,k=x.data,P=x.reverseStackOrder,D=q8(E),N=D.numericAxisName,F=D.cateAxisName,B=Lr(O,r),Y=I8e(k,B,"".concat(N,"Id"),"".concat(F,"Id"),T,P),H=l.reduce(function(z,V){var W="".concat(V.axisType,"Map");return ye(ye({},z),{},Ge({},W,lVe(x,ye(ye({},V),{},{graphicalItems:B,stackGroups:V.axisType===N&&Y,dataStartIndex:b,dataEndIndex:_}))))},{}),Q=fVe(ye(ye({},H),{},{props:x,graphicalItems:B}),g==null?void 0:g.legendBBox);Object.keys(H).forEach(function(z){H[z]=f(x,H[z],Q,z.replace("Map",""),n)});var Z=H["".concat(F,"Map")],te=uVe(Z),X=p(x,ye(ye({},H),{},{dataStartIndex:b,dataEndIndex:_,updateId:w,graphicalItems:B,stackGroups:Y,offset:Q}));return ye(ye({formattedGraphicalItems:X,graphicalItems:B,offset:Q,stackGroups:Y},te),H)};return t=function(v){qze(x,v);var g=Kze(x);function x(b){var _,w,O;return Yze(this,x),O=g.call(this,b),Ge(ot(O),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ge(ot(O),"accessibilityManager",new Nze),Ge(ot(O),"handleLegendBBoxUpdate",function(E){if(E){var T=O.state,k=T.dataStartIndex,P=T.dataEndIndex,D=T.updateId;O.setState(ye({legendBBox:E},m({props:O.props,dataStartIndex:k,dataEndIndex:P,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 P=O.state.updateId;O.setState(function(){return ye({dataStartIndex:T,dataEndIndex:k},m({props:O.props,dataStartIndex:T,dataEndIndex:k,updateId:P},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 P=O.props.onMouseEnter;Xe(P)&&P(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 P=O.props.onMouseMove;Xe(P)&&P(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;Xe(k)&&k(T,E)}),Ge(ot(O),"handleOuterEvent",function(E){var T=pEe(E),k=ui(O.props,"".concat(T));if(T&&Xe(k)){var P,D;/.*touch.*/i.test(T)?D=O.getMouseInfo(E.changedTouches[0]):D=O.getMouseInfo(E),k((P=D)!==null&&P!==void 0?P:{},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 P=O.props.onClick;Xe(P)&&P(k,E)}}),Ge(ot(O),"handleMouseDown",function(E){var T=O.props.onMouseDown;if(Xe(T)){var k=O.getMouseInfo(E);T(k,E)}}),Ge(ot(O),"handleMouseUp",function(E){var T=O.props.onMouseUp;if(Xe(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&&SS.emit(ES,O.props.syncId,E,O.eventEmitterSymbol)}),Ge(ot(O),"applySyncEvent",function(E){var T=O.props,k=T.layout,P=T.syncMethod,D=O.state.updateId,N=E.dataStartIndex,F=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)O.setState(ye({dataStartIndex:N,dataEndIndex:F},m({props:O.props,dataStartIndex:N,dataEndIndex:F,updateId:D},O.state)));else if(E.activeTooltipIndex!==void 0){var B=E.chartX,Y=E.chartY,H=E.activeTooltipIndex,Q=O.state,Z=Q.offset,te=Q.tooltipTicks;if(!Z)return;if(typeof P=="function")H=P(te,E);else if(P==="value"){H=-1;for(var X=0;X<te.length;X++)if(te[X].value===E.activeLabel){H=X;break}}var z=ye(ye({},Z),{},{x:Z.left,y:Z.top}),V=Math.min(B,z.x+z.width),W=Math.min(Y,z.y+z.height),re=te[H]&&te[H].value,q=_G(O.state,O.props.data,H),ee=te[H]?{x:k==="horizontal"?te[H].coordinate:V,y:k==="horizontal"?W:te[H].coordinate}:yG;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,P=E.width,D=E.height,N=E.offset;return x5(sC(ye(ye(ye({},xh.defaultProps),k),{},{ticks:fs(k,!0),viewBox:{x:0,y:0,width:P,height:D}})),N.left,N.left+N.width,T)}),Ge(ot(O),"horizontalCoordinatesGenerator",function(E,T){var k=E.yAxis,P=E.width,D=E.height,N=E.offset;return x5(sC(ye(ye(ye({},xh.defaultProps),k),{},{ticks:fs(k,!0),viewBox:{x:0,y:0,width:P,height:D}})),N.top,N.top+N.height,T)}),Ge(ot(O),"axesTicksGenerator",function(E){return fs(E,!0)}),Ge(ot(O),"renderCursor",function(E){var T,k=O.state,P=k.isTooltipActive,D=k.activeCoordinate,N=k.activePayload,F=k.offset,B=k.activeTooltipIndex,Y=k.tooltipAxisBandSize,H=O.getTooltipEventType(),Q=(T=E.props.active)!==null&&T!==void 0?T:P,Z=O.props.layout,te=E.key||"_recharts-cursor";return M.createElement(Uze,{key:te,activeCoordinate:D,activePayload:N,activeTooltipIndex:B,chartName:n,element:E,isActive:Q,layout:Z,offset:F,tooltipAxisBandSize:Y,tooltipEventType:H})}),Ge(ot(O),"renderPolarAxis",function(E,T,k){var P=ui(E,"type.axisType"),D=ui(O.state,"".concat(P,"Map")),N=D&&D[E.props["".concat(P,"Id")]];return I.cloneElement(E,ye(ye({},N),{},{className:P,key:E.key||"".concat(T,"-").concat(k),ticks:fs(N,!0)}))}),Ge(ot(O),"renderXAxis",function(E,T,k){var P=O.state.xAxisMap,D=P[E.props.xAxisId];return O.renderAxis(D,E,T,k)}),Ge(ot(O),"renderYAxis",function(E,T,k){var P=O.state.yAxisMap,D=P[E.props.yAxisId];return O.renderAxis(D,E,T,k)}),Ge(ot(O),"renderGrid",function(E){var T=O.state,k=T.xAxisMap,P=T.yAxisMap,D=T.offset,N=O.props,F=N.width,B=N.height,Y=cs(k),H=_ze(P,function(te){return eG(te.domain,Number.isFinite)}),Q=H||cs(P),Z=E.props||{};return I.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:Y,yAxis:Q,offset:D,chartWidth:F,chartHeight:B,verticalCoordinatesGenerator:Z.verticalCoordinatesGenerator||O.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:Z.horizontalCoordinatesGenerator||O.horizontalCoordinatesGenerator})}),Ge(ot(O),"renderPolarGrid",function(E){var T=E.props,k=T.radialLines,P=T.polarAngles,D=T.polarRadius,N=O.state,F=N.radiusAxisMap,B=N.angleAxisMap,Y=cs(F),H=cs(B),Q=H.cx,Z=H.cy,te=H.innerRadius,X=H.outerRadius;return I.cloneElement(E,{polarAngles:Array.isArray(P)?P:fs(H,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(D)?D:fs(Y,!0).map(function(z){return z.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,P=T.width,D=T.height,N=O.props.margin||{},F=P-(N.left||0)-(N.right||0),B=MY({children:k,formattedGraphicalItems:E,legendWidth:F,legendContent:u});if(!B)return null;var Y=B.item,H=V8(B,$ze);return I.cloneElement(Y,ye(ye({},H),{},{chartWidth:P,chartHeight:D,margin:N,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Ge(ot(O),"renderTooltip",function(){var E,T=O.props.children,k=Uo(T,xa);if(!k)return null;var P=O.state,D=P.isTooltipActive,N=P.activeCoordinate,F=P.activePayload,B=P.activeLabel,Y=P.offset,H=(E=k.props.active)!==null&&E!==void 0?E:D;return I.cloneElement(k,{viewBox:ye(ye({},Y),{},{x:Y.left,y:Y.top}),active:H,label:B,payload:H?F:[],coordinate:N})}),Ge(ot(O),"renderBrush",function(E){var T=O.props,k=T.margin,P=T.data,D=O.state,N=D.offset,F=D.dataStartIndex,B=D.dataEndIndex,Y=D.updateId;return I.cloneElement(E,{key:E.key||"_recharts-brush",onChange:oy(O.handleBrushChange,E.props.onChange),data:P,x:je(E.props.x)?E.props.x:N.left,y:je(E.props.y)?E.props.y:N.top+N.height+N.brushBottom-(k.bottom||0),width:je(E.props.width)?E.props.width:N.width,startIndex:F,endIndex:B,updateId:"brush-".concat(Y)})}),Ge(ot(O),"renderReferenceElement",function(E,T,k){if(!E)return null;var P=ot(O),D=P.clipPathId,N=O.state,F=N.xAxisMap,B=N.yAxisMap,Y=N.offset,H=E.props,Q=H.xAxisId,Z=H.yAxisId;return I.cloneElement(E,{key:E.key||"".concat(T,"-").concat(k),xAxis:F[Q],yAxis:B[Z],viewBox:{x:Y.left,y:Y.top,width:Y.width,height:Y.height},clipPathId:D})}),Ge(ot(O),"renderActivePoints",function(E){var T=E.item,k=E.activePoint,P=E.basePoint,D=E.childIndex,N=E.isRange,F=[],B=T.props.key,Y=T.item.props,H=Y.activeDot,Q=Y.dataKey,Z=ye(ye({index:D,dataKey:Q,cx:k.x,cy:k.y,r:4,fill:hA(T.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value,key:"".concat(B,"-activePoint-").concat(D)},Ve(H)),Tb(H));return F.push(x.renderActiveDot(H,Z)),P?F.push(x.renderActiveDot(H,ye(ye({},Z),{},{cx:P.x,cy:P.y,key:"".concat(B,"-basePoint-").concat(D)}))):N&&F.push(null),F}),Ge(ot(O),"renderGraphicChild",function(E,T,k){var P=O.filterFormatItem(E,T,k);if(!P)return null;var D=O.getTooltipEventType(),N=O.state,F=N.isTooltipActive,B=N.tooltipAxis,Y=N.activeTooltipIndex,H=N.activeLabel,Q=O.props.children,Z=Uo(Q,xa),te=P.props,X=te.points,z=te.isRange,V=te.baseLine,W=P.item.props,re=W.activeDot,q=W.hide,ee=W.activeBar,oe=W.activeShape,le=!!(!q&&F&&Z&&(re||ee||oe)),fe={};D!=="axis"&&Z&&Z.props.trigger==="click"?fe={onClick:oy(O.handleItemMouseEnter,E.props.onClick)}:D!=="axis"&&(fe={onMouseLeave:oy(O.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:oy(O.handleItemMouseEnter,E.props.onMouseEnter)});var j=I.cloneElement(E,ye(ye({},P.props),fe));function A(ke){return typeof B.dataKey=="function"?B.dataKey(ke.payload):null}if(le)if(Y>=0){var $,J;if(B.dataKey&&!B.allowDuplicatedCategory){var K=typeof B.dataKey=="function"?A:"payload.".concat(B.dataKey.toString());$=Eb(X,K,H),J=z&&V&&Eb(V,K,H)}else $=X==null?void 0:X[Y],J=z&&V&&V[Y];if(oe||ee){var se=E.props.activeIndex!==void 0?E.props.activeIndex:Y;return[I.cloneElement(E,ye(ye(ye({},P.props),fe),{},{activeIndex:se})),null,null]}if(!Ze($))return[j].concat(ld(O.renderActivePoints({item:P,activePoint:$,basePoint:J,childIndex:Y,isRange:z})))}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({},P.props),fe),{},{activeIndex:Oe});return[I.cloneElement(ge,Ce),null,null]}return z?[j,null,null]:[j,null]}),Ge(ot(O),"renderCustomized",function(E,T,k){return I.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.id)!==null&&_!==void 0?_:bl("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=DW(O.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),O.state={},O}return Gze(x,[{key:"componentDidMount",value:function(){var b,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(b,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var w,O;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w: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 b=Uo(this.props.children,xa);if(b&&typeof b.props.shared=="boolean"){var _=b.props.shared?"axis":"item";return s.indexOf(_)>=0?_:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var _=this.container,w=_.getBoundingClientRect(),O=s4e(w),E={chartX:Math.round(b.pageX-O.left),chartY:Math.round(b.pageY-O.top)},T=w.width/_.offsetWidth||1,k=this.inRange(E.chartX,E.chartY,T);if(!k)return null;var P=this.state,D=P.xAxisMap,N=P.yAxisMap,F=this.getTooltipEventType();if(F!=="axis"&&D&&N){var B=cs(D).scale,Y=cs(N).scale,H=B&&B.invert?B.invert(E.chartX):null,Q=Y&&Y.invert?Y.invert(E.chartY):null;return ye(ye({},E),{},{xValue:H,yValue:Q})}var Z=Y8(this.state,this.props.data,this.props.layout,k);return Z?ye(ye({},E),Z):null}},{key:"inRange",value:function(b,_){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,E=b/w,T=_/w;if(O==="horizontal"||O==="vertical"){var k=this.state.offset,P=E>=k.left&&E<=k.left+k.width&&T>=k.top&&T<=k.top+k.height;return P?{x:E,y:T}:null}var D=this.state,N=D.angleAxisMap,F=D.radiusAxisMap;if(N&&F){var B=cs(N);return P5({x:E,y:T},B)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,_=this.getTooltipEventType(),w=Uo(b,xa),O={};w&&_==="axis"&&(w.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=Tb(this.props,this.handleOuterEvent);return ye(ye({},E),O)}},{key:"addListener",value:function(){SS.on(ES,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){SS.removeListener(ES,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,_,w){for(var O=this.state.formattedGraphicalItems,E=0,T=O.length;E<T;E++){var k=O[E];if(k.item===b||k.props.key===b.key||_===Ca(k.item.type)&&w===k.childIndex)return k}return null}},{key:"renderAxis",value:function(b,_,w,O){var E=this.props,T=E.width,k=E.height;return M.createElement(xh,Gc({},b,{className:We("recharts-".concat(b.axisType," ").concat(b.axisType),b.className),key:_.key||"".concat(w,"-").concat(O),viewBox:{x:0,y:0,width:T,height:k},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var b=this.clipPathId,_=this.state.offset,w=_.left,O=_.top,E=_.height,T=_.width;return M.createElement("defs",null,M.createElement("clipPath",{id:b},M.createElement("rect",{x:w,y:O,height:E,width:T})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(_,w){var O=z8(w,2),E=O[0],T=O[1];return ye(ye({},_),{},Ge({},E,T.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(_,w){var O=z8(w,2),E=O[0],T=O[1];return ye(ye({},_),{},Ge({},E,T.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(b){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(b){var _=this.state,w=_.formattedGraphicalItems,O=_.activeItem;if(w&&w.length)for(var E=0,T=w.length;E<T;E++){var k=w[E],P=k.props,D=k.item,N=Ca(D.type);if(N==="Bar"){var F=(P.data||[]).find(function(Q){return tUe(b,Q)});if(F)return{graphicalItem:k,payload:F}}else if(N==="RadialBar"){var B=(P.data||[]).find(function(Q){return P5(b,Q)});if(B)return{graphicalItem:k,payload:B}}else if(Qw(k,O)||Xw(k,O)||Wm(k,O)){var Y=W$e({graphicalItem:k,activeTooltipItem:O,itemData:D.props.data}),H=D.props.activeIndex===void 0?Y:D.props.activeIndex;return{graphicalItem:ye(ye({},k),{},{childIndex:H}),payload:Wm(k,O)?D.props.data[Y]:k.props.data[Y]}}}return null}},{key:"render",value:function(){var b=this;if(!eI(this))return null;var _=this.props,w=_.children,O=_.className,E=_.width,T=_.height,k=_.style,P=_.compact,D=_.title,N=_.desc,F=V8(_,Bze),B=Ve(F);if(P)return M.createElement(tT,Gc({},B,{width:E,height:T,title:D,desc:N}),this.renderClipPath(),nI(w,this.renderMap));if(this.props.accessibilityLayer){var Y,H;B.tabIndex=(Y=this.props.tabIndex)!==null&&Y!==void 0?Y:0,B.role=(H=this.props.role)!==null&&H!==void 0?H:"img",B.onKeyDown=function(Z){b.accessibilityManager.keyboardEvent(Z)},B.onFocus=function(){b.accessibilityManager.focus()}}var Q=this.parseEventsOfWrapper();return M.createElement("div",Gc({className:We("recharts-wrapper",O),style:ye({position:"relative",cursor:"default",width:E,height:T},k)},Q,{ref:function(Z){b.container=Z},role:"region"}),M.createElement(tT,Gc({},B,{width:E,height:T,title:D,desc:N,style:rVe}),this.renderClipPath(),nI(w,this.renderMap)),this.renderLegend(),this.renderTooltip())}}]),x}(I.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 x=v.dataKey,b=v.data,_=v.children,w=v.width,O=v.height,E=v.layout,T=v.stackOffset,k=v.margin,P=g.dataStartIndex,D=g.dataEndIndex;if(g.updateId===void 0){var N=G8(v);return ye(ye(ye({},N),{},{updateId:0},m(ye(ye({props:v},N),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:b,prevWidth:w,prevHeight:O,prevLayout:E,prevStackOffset:T,prevMargin:k,prevChildren:_})}if(x!==g.prevDataKey||b!==g.prevData||w!==g.prevWidth||O!==g.prevHeight||E!==g.prevLayout||T!==g.prevStackOffset||!rf(k,g.prevMargin)){var F=G8(v),B={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},Y=ye(ye({},Y8(g,b,E)),{},{updateId:g.updateId+1}),H=ye(ye(ye({},F),B),Y);return ye(ye(ye({},H),m(ye({props:v},H),g)),{},{prevDataKey:x,prevData:b,prevWidth:w,prevHeight:O,prevLayout:E,prevStackOffset:T,prevMargin:k,prevChildren:_})}if(!kH(_,g.prevChildren)){var Q,Z,te,X,z=Uo(_,ed),V=z&&(Q=(Z=z.props)===null||Z===void 0?void 0:Z.startIndex)!==null&&Q!==void 0?Q:P,W=z&&(te=(X=z.props)===null||X===void 0?void 0:X.endIndex)!==null&&te!==void 0?te:D,re=V!==P||W!==D,q=!Ze(b),ee=q&&!re?g.updateId:g.updateId+1;return ye(ye({updateId:ee},m(ye(ye({props:v},g),{},{updateId:ee,dataStartIndex:V,dataEndIndex:W}),g)),{},{prevChildren:_,dataStartIndex:V,dataEndIndex:W})}return null}),Ge(t,"renderActiveDot",function(v,g){var x;return I.isValidElement(v)?x=I.cloneElement(v,g):Xe(v)?x=v(g):x=M.createElement(Rv,g),M.createElement(nt,{className:"recharts-active-dot",key:g.key},x)}),t},dVe=_A({chartName:"LineChart",GraphicalChild:$d,axisComponents:[{axisType:"xAxis",AxisComp:Bd},{axisType:"yAxis",AxisComp:zd}],formatAxisMap:rG}),pVe=_A({chartName:"PieChart",GraphicalChild:ia,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Zw},{axisType:"radiusAxis",AxisComp:qw}],formatAxisMap:K8e,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),hVe=_A({chartName:"ComposedChart",GraphicalChild:[$d,Wu,qs,nx],axisComponents:[{axisType:"xAxis",AxisComp:Bd},{axisType:"yAxis",AxisComp:zd},{axisType:"zAxis",AxisComp:tx}],formatAxisMap:rG});const wG={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},mVe={marginBottom:"5px",fontWeight:"bold"},xG={contentStyle:wG,labelStyle:mVe,itemStyle:{padding:0}},K8=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],OG=e=>K8[e%K8.length],S_="#46e587",vVe="rgba(70, 229, 135, 0.4)",gVe=({chartData:e,showNumbers:t})=>y.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>y.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[y.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),y.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&y.jsxs("b",{children:[" (",hn(i),")"]})]})]},n))}),Z8=e=>I.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:OG(r)})),[e]),yVe=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=Z8(e),o=Z8(t),a=o.length>0,s=bj()?$fe:Ufe;return y.jsxs("div",{className:"row align-items-center",children:[y.jsx("div",{className:"col-sm-12 col-md-7",children:y.jsx("div",{style:r??{width:"100%",height:300},children:y.jsx(r?I.Fragment:VP,{children:y.jsxs(pVe,{...r,children:[y.jsx(xa,{formatter:hn,contentStyle:wG,itemStyle:{color:"white"}}),y.jsx(ia,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((l,u)=>y.jsx(Ws,{fill:l.color,stroke:s},`${l.name}-${u}`))}),a&&y.jsx(ia,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:S_})]})})})}),y.jsx("div",{className:"col-sm-12 col-md-5",children:y.jsx(gVe,{chartData:i,showNumbers:n})})]})},Q8=({title:e,...t})=>{const[n,r]=Cn(!1);return y.jsx(vH,{title:y.jsxs(y.Fragment,{children:[e,y.jsx("div",{className:"float-end",children:y.jsx(ku,{checked:n,onChange:r,children:"Show numbers"})})]}),children:y.jsx(yVe,{...t,showNumbersInLegend:n})})},bVe=({visitsGroups:e})=>{const t=I.useMemo(()=>Object.entries(e),[e]);return t.length===0?null:y.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",children:t.map(([n,r],i)=>y.jsxs("li",{className:"d-inline",children:[y.jsx(rH,{color:SG(r)}),y.jsxs("strong",{children:[n," (",hn(r.length),")"]})]},`${n}${i}`))})},_Ve={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},wVe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},xVe={hourly:rhe,daily:bv,weekly:she,monthly:ib},wA={hourly:e=>ob(e,"yyyy-MM-dd HH:00"),daily:e=>eu(e),weekly(e){const t=eu(lm(e)),n=eu(che(e));return`${t} - ${n}`},monthly:e=>ob(e,"yyyy-MM")},OVe=e=>{var t;const n=Object.values(e).filter(a=>a.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(a=>nl(a[a.length-1].date)),o=uz(i);return((t=[[()=>bv(r,o)<=2,"hourly"],[()=>ib(r,o)<=1,"daily"],[()=>ib(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},SVe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=tz(t[r],i=>wA[e](nl(i.date))),n),{}),EVe=(e,t)=>t.reduce((n,r)=>{const i=wA[e](nl(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),TVe=(e,t)=>{const n=Object.values(t).filter(d=>d.length>0).map(d=>[...d].reverse());if(n.length===0)return[];const r=xVe[e],i=wA[e],o=wVe[e],a=n.map(d=>nl(d[0].date)),s=n.map(d=>nl(d[d.length-1].date)),l=uz(s),u=Jpe(a),f=r(l,u)+1;return[i(u),...Yj(f,d=>i(Kpe(u,o(d))))]},SG=e=>{if(e.color)return e.color;const t={main:rm,highlighted:mE,previous:S_};return e.type?t[e.type]:rm},X8=(e,t)=>I.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),CVe=(e,t,n)=>{const r=X8(e,"main"),i=X8(e,"highlighted"),o=I.useMemo(()=>n?EVe(t,r):{},[n,t,r]),a=I.useCallback((s,{payload:l})=>{const u=o[l.date]??[];n==null||n(u===i?[]:u)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},EG=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r})=>{const[i,o]=I.useState(OVe(e)),a=qj(767,r??window.matchMedia),s=I.useMemo(()=>{const d=SVe(i,e),p=Object.keys(d);return TVe(i,e).map(m=>({date:m,...p.reduce((v,g)=>(v[g]=d[g][m]??0,v),{})}))},[i,e]),l=CVe(e,i,t),u=n?I.Fragment:VP,f=I.useMemo(()=>n?{}:{width:"100%",height:a?300:400},[n,a]);return y.jsxs(di,{children:[y.jsxs(Sf,{role:"heading","aria-level":4,children:["Visits over time",y.jsx("div",{className:"float-end",children:y.jsxs(mv,{children:[y.jsx(gd,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),y.jsx(vd,{end:!0,children:Object.entries(_Ve).map(([d,p])=>y.jsx(Re,{active:i===d,onClick:()=>o(d),children:p},d))})]})})]}),y.jsxs(Of,{children:[y.jsx(u,{...f,children:y.jsxs(dVe,{data:s,...n,children:[y.jsx(Bd,{dataKey:"date"}),y.jsx(zd,{tickFormatter:hn}),y.jsx(xa,{formatter:hn,...xG}),y.jsx(ex,{strokeOpacity:bj()?.1:.9}),Object.entries(e).map(([d,p])=>p.length>0&&y.jsx($d,{dataKey:d,type:"monotone",stroke:SG(p),strokeWidth:2,activeDot:p.type==="previous"?void 0:l,strokeDasharray:p.type==="previous"?"8 3":void 0},d))]})}),y.jsx(bVe,{visitsGroups:e})]})]})},kVe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>y.jsxs(mv,{children:[y.jsx(gd,{caret:!0,color:"link",className:e,children:"Paginate"}),y.jsxs(vd,{end:!0,children:[t.map(i=>y.jsxs(Re,{active:i===n,onClick:()=>r(i),children:[y.jsx("b",{children:i})," items per page"]},i)),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{disabled:n===1/0,onClick:()=>r(1/0),children:y.jsx("i",{children:"Clear pagination"})})]})]}),J8=e=>e.startsWith("hidden_"),jVe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=I.useMemo(()=>Object.entries(e).map(([d,p])=>{const m=(n==null?void 0:n[d])??0,v=(t==null?void 0:t[d])??0,g=J8(d);return{name:d,amount:Math.max(p,v),nonHighlightedAmount:g?null:p-m,highlightedAmount:g?null:m,prevAmount:g?null:v}}),[e,t,n]),l=I.useMemo(()=>{const d=s.reduce((p,{name:m})=>p>m.length?p:m.length,0);return Math.min(150,d*7)},[s]),u=a?I.Fragment:VP,f=I.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return y.jsx(u,{...f,children:y.jsxs(hVe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[y.jsx(Bd,{type:"number",dataKey:"amount",tickFormatter:hn,domain:i?[0,i]:void 0}),y.jsx(zd,{type:"category",dataKey:"name",width:l,interval:0,style:{fontSize:".8rem"},tickFormatter:d=>J8(d)?"":d}),y.jsx(ex,{strokeOpacity:bj()?.05:.9}),y.jsx(xa,{filterNull:!0,...xG,formatter:(d,p)=>{const m=hn(d),v=(()=>p==="highlightedAmount"?r:p==="prevAmount"?"Previous period":n?"Non-selected":"Visits")();return[m,v]}}),y.jsx(qs,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:rm,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>y.jsx(Ws,{fill:Ife,stroke:rm,strokeWidth:2},d.name))}),n&&y.jsx(qs,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:mE,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>y.jsx(Ws,{fill:Ffe,stroke:mE,strokeWidth:2},d.name))}),t&&y.jsx(qs,{dataKey:"prevAmount",fill:S_,children:s.map(d=>y.jsx(Ws,{fill:vVe,stroke:S_,strokeWidth:2},d.name))})]})})},PVe=e=>typeof e=="string"?e.toLowerCase():e,AVe=([e])=>e,NVe=([,e])=>e,uy=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[l,u]=I.useState({}),[f,d]=I.useState(1),[p,m]=I.useState(50),v=I.useCallback((P,D)=>{const N=Object.entries(P),F=l.field?Wpe(N,([B,Y])=>PVe(l.field===Object.keys(D)[0]?B:Y)):N;return!l.dir||l.dir==="ASC"?F:[...F].reverse()},[l.dir,l.field]),g=I.useCallback(P=>{const D=P[f-1];if(f<P.length)return D;const N=P[0].length;return[...D,...Yj(N-D.length,F=>[`hidden_${F}`,0])]},[f]),x=I.useCallback(P=>y.jsx(yP,{currentPage:f,pagesCount:P,setCurrentPage:d}),[f]),b=I.useCallback((P,D,N,F)=>{const B=v(P,D),Y=B.map(AVe),H=N&&Object.entries({...sL(Y,Y.map(()=>0)),...N}),Q=F&&Object.entries({...sL(Y,Y.map(()=>0)),...F});if(B.length<=p)return{currentPageStats:Object.fromEntries(B),currentPageHighlightedStats:H&&Object.fromEntries(H),currentPagePrevStats:Q&&Object.fromEntries(Q)};const Z=nf(B,p),te=H&&nf(H,p),X=Q&&nf(Q,p);return{currentPageStats:Object.fromEntries(g(Z)),currentPageHighlightedStats:te&&Object.fromEntries(g(te)),currentPagePrevStats:X&&Object.fromEntries(g(X)),pagination:x(Z.length),max:jve(Math.max(...B.map(NVe)))}},[g,v,p,x]),{currentPageStats:_,currentPagePrevStats:w,currentPageHighlightedStats:O,pagination:E,max:T}=I.useMemo(()=>b(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[b,n,t,i,e]),k=I.useMemo(()=>Object.keys(_),[_]);return y.jsx(vH,{title:y.jsxs(y.Fragment,{children:[r,y.jsx("div",{className:"float-end",children:y.jsx(yv,{isButton:!1,right:!0,items:i,order:l,onChange:(P,D)=>{u({field:P,dir:D}),d(1)}})}),a&&Object.keys(e).length>50&&y.jsx("div",{className:"float-end",children:y.jsx(kVe,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:p,setValue:P=>{m(P),d(1)}})}),o&&y.jsx("div",{className:"float-end",children:o(E?k:void 0)})]}),footer:E,children:y.jsx(jVe,{stats:_,prevStats:w,highlightedStats:O,max:T,...s})})},eF=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&il(t[e])||""},TG=()=>{const e=oa(),t=_d(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,l=I.useMemo(()=>({dateRange:n!=null||r!=null?yz(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:a!==void 0?a==="true":void 0}),[r,o,a,i,n]),u=I.useCallback(f=>{const{dateRange:d,visitsFilter:p={},loadPrevInterval:m}=nz(l,f),{excludeBots:v,orphanVisitsType:g}=p,x={...s,startDate:eF("startDate",d),endDate:eF("endDate",d),excludeBots:v===void 0?void 0:SE(v),orphanVisitsType:g,loadPrevInterval:m===void 0?void 0:SE(m)},b=rw(x),_=b?`?${b}`:"";e(_,{replace:!0,relative:"route"})},[l,e,s]);return[l,u]};function CG(e,t){const n=I.useRef(t);I.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const MVe=1;function RVe(e){return Object.freeze({__version:MVe,map:e})}function DVe(e,t){return Object.freeze({...e,...t})}const kG=I.createContext(null),jG=kG.Provider;function PG(){const e=I.useContext(kG);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function LVe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return I.useImperativeHandle(r,()=>i),n.children==null?null:M.createElement(jG,{value:o},n.children)}return I.forwardRef(t)}function IVe(e){function t(n,r){const[i,o]=I.useState(!1),{instance:a}=e(n,o).current;I.useImperativeHandle(r,()=>a),I.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?dd.createPortal(n.children,s):null}return I.forwardRef(t)}function FVe(e){function t(n,r){const{instance:i}=e(n).current;return I.useImperativeHandle(r,()=>i),null}return I.forwardRef(t)}function AG(e,t){const n=I.useRef();I.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function xA(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function UVe(e,t){return function(n,r){const i=PG(),o=e(xA(n,i),i);return CG(i.map,n.attribution),AG(o.current,n.eventHandlers),t(o.current,i,n,r),o}}var bC={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)})($c,function(n){var r="1.9.4";function i(c){var h,S,C,R;for(S=1,C=arguments.length;S<C;S++){R=arguments[S];for(h in R)c[h]=R[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,R,G,ae;return ae=function(){C=!1,R&&(G.apply(S,R),R=!1)},G=function(){C?R=arguments:(c.apply(S,arguments),setTimeout(ae,h),C=!0)},G}function f(c,h,S){var C=h[1],R=h[0],G=C-R;return c===C&&S?c:((c-R)%G+G)%G+R}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 x(c,h,S){var C=[];for(var R in c)C.push(encodeURIComponent(S?R.toUpperCase():R)+"="+encodeURIComponent(c[R]));return(!h||h.indexOf("?")===-1?"?":"&")+C.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function _(c,h){return c.replace(b,function(S,C){var R=h[C];if(R===void 0)throw new Error("No value provided for variable "+S);return typeof R=="function"&&(R=R(h)),R})}var w=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 P(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")||P,N=window.cancelAnimationFrame||T("CancelAnimationFrame")||T("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function F(c,h,S){if(S&&D===P)c.call(h);else return D.call(window,a(c,h))}function B(c){c&&N.call(window,c)}var Y={__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:x,template:_,isArray:w,indexOf:O,emptyImageUrl:E,requestFn:D,cancelFn:N,requestAnimFrame:F,cancelAnimFrame:B};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 R in this)Object.prototype.hasOwnProperty.call(this,R)&&R!=="prototype"&&R!=="__super__"&&(h[R]=this[R]);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 G=0,ae=C._initHooks.length;G<ae;G++)C._initHooks[G].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=w(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 R=0,G=c.length;R<G;R++)this._on(c[R],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 R=arguments.length===1,G=0,ae=c.length;G<ae;G++)R?this._off(c[G]):this._off(c[G],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 R={fn:h,ctx:S};C&&(R.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(R)}},_off:function(c,h,S){var C,R,G;if(this._events&&(C=this._events[c],!!C)){if(arguments.length===1){if(this._firingCount)for(R=0,G=C.length;R<G;R++)C[R].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 R=this._events[c];if(R){this._firingCount=this._firingCount+1||1;for(var G=0,ae=R.length;G<ae;G++){var pe=R[G],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 R=h;typeof h!="function"&&(C=!!h,R=void 0,S=void 0);var G=this._events&&this._events[c];if(G&&G.length&&this._listens(c,R,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 R=0,G=C.length;R<G;R++)if(C[R].fn===h&&C[R].ctx===S)return R;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 R=0,G=c.length;R<G;R++)this._on(c[R],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 z=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=z(this.x),this.y=z(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:w(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,R=S.length;C<R;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,R=c.max,G=R.x>=h.x&&C.x<=S.x,ae=R.y>=h.y&&C.y<=S.y;return G&&ae},overlaps:function(c){c=re(c);var h=this.min,S=this.max,C=c.min,R=c.max,G=R.x>h.x&&C.x<S.x,ae=R.y>h.y&&C.y<S.y;return G&&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,R=Math.abs(h.y-S.y)*c;return re(V(h.x-C,h.y-R),V(S.x+C,S.y+R))},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,R=S.length;C<R;C++)this.extend(S[C])}q.prototype={extend:function(c){var h=this._southWest,S=this._northEast,C,R;if(c instanceof oe)C=c,R=c;else if(c instanceof q){if(C=c._southWest,R=c._northEast,!C||!R)return this}else return c?this.extend(le(c)||ee(c)):this;return!h&&!S?(this._southWest=new oe(C.lat,C.lng),this._northEast=new oe(R.lat,R.lng)):(h.lat=Math.min(C.lat,h.lat),h.lng=Math.min(C.lng,h.lng),S.lat=Math.max(R.lat,S.lat),S.lng=Math.max(R.lng,S.lng)),this},pad:function(c){var h=this._southWest,S=this._northEast,C=Math.abs(h.lat-S.lat)*c,R=Math.abs(h.lng-S.lng)*c;return new q(new oe(h.lat-C,h.lng-R),new oe(S.lat+C,S.lng+R))},getCenter:function(){return new oe((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 oe(this.getNorth(),this.getWest())},getSouthEast:function(){return new oe(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 oe||"lat"in c?c=le(c):c=ee(c);var h=this._southWest,S=this._northEast,C,R;return c instanceof q?(C=c.getSouthWest(),R=c.getNorthEast()):C=R=c,C.lat>=h.lat&&R.lat<=S.lat&&C.lng>=h.lng&&R.lng<=S.lng},intersects:function(c){c=ee(c);var h=this._southWest,S=this._northEast,C=c.getSouthWest(),R=c.getNorthEast(),G=R.lat>=h.lat&&C.lat<=S.lat,ae=R.lng>=h.lng&&C.lng<=S.lng;return G&&ae},overlaps:function(c){c=ee(c);var h=this._southWest,S=this._northEast,C=c.getSouthWest(),R=c.getNorthEast(),G=R.lat>h.lat&&C.lat<S.lat,ae=R.lng>h.lng&&C.lng<S.lng;return G&&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 oe(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)}oe.prototype={equals:function(c,h){if(!c)return!1;c=le(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,le(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 oe(this.lat,this.lng,this.alt)}};function le(c,h,S){return c instanceof oe?c:w(c)&&typeof c[0]!="object"?c.length===3?new oe(c[0],c[1],c[2]):c.length===2?new oe(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new oe(c.lat,"lng"in c?c.lng:c.lon,c.alt):h===void 0?null:new oe(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),R=this.transformation.transform(h.max,S);return new W(C,R)},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 oe(S,h,C)},wrapLatLngBounds:function(c){var h=c.getCenter(),S=this.wrapLatLng(h),C=h.lat-S.lat,R=h.lng-S.lng;if(C===0&&R===0)return c;var G=c.getSouthWest(),ae=c.getNorthEast(),pe=new oe(G.lat-C,G.lng-R),me=new oe(ae.lat-C,ae.lng-R);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,R=h.lat*S,G=Math.sin((h.lat-c.lat)*S/2),ae=Math.sin((h.lng-c.lng)*S/2),pe=G*G+Math.cos(C)*Math.cos(R)*ae*ae,me=2*Math.atan2(Math.sqrt(pe),Math.sqrt(1-pe));return this.R*me}}),A=6378137,$={R:A,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),R=Math.sin(C*h);return new X(this.R*c.lng*h,this.R*Math.log((1+R)/(1-R))/2)},unproject:function(c){var h=180/Math.PI;return new oe((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*h,c.x*h/this.R)},bounds:function(){var c=A*Math.PI;return new W([-c,-c],[c,c])}()};function J(c,h,S,C){if(w(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 se=i({},j,{code:"EPSG:3857",projection:$,transformation:function(){var c=.5/(Math.PI*$.R);return K(c,.5,-c,.5)}()}),he=i({},se,{code:"EPSG:900913"});function Ee(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function ue(c,h){var S="",C,R,G,ae,pe,me;for(C=0,G=c.length;C<G;C++){for(pe=c[C],R=0,ae=pe.length;R<ae;R++)me=pe[R],S+=(R?"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=rr("webkit"),Pe=rr("android"),ce=rr("android 2")||rr("android 3"),de=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),_e=Pe&&rr("Google")&&de<537&&!("AudioNode"in window),be=!!window.opera,Se=!Ce&&rr("chrome"),Ae=rr("gecko")&&!ke&&!be&&!ge,Le=!Se&&rr("safari"),st=rr("phantom"),ct="OTransition"in ve,et=navigator.platform.indexOf("Win")===0,fn=ge&&"transition"in ve,nn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ce,In="MozPerspective"in ve,Or=!window.L_DISABLE_3D&&(fn||nn||In)&&!ct&&!st,Eo=typeof orientation<"u"||rr("mobile"),er=Eo&&ke,Hd=Eo&&nn,To=!window.PointerEvent&&window.MSPointerEvent,$v=!!(window.PointerEvent||To),Bv="ontouchstart"in window||!!window.TouchEvent,zv=!window.L_NO_TOUCH&&(Bv||$v),Wd=Eo&&be,Ol=Eo&&Ae,xn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,vn=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}(),Sr=function(){return!!document.createElement("canvas").getContext}(),tr=!!(document.createElementNS&&Ee("svg").createSVGRect),nr=!!tr&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),kn=!tr&&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}}(),Ji=navigator.platform.indexOf("Mac")===0,eo=navigator.platform.indexOf("Linux")===0;function rr(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var Ye={ie:ge,ielt9:Oe,edge:Ce,webkit:ke,android:Pe,android23:ce,androidStock:_e,opera:be,chrome:Se,gecko:Ae,safari:Le,phantom:st,opera12:ct,win:et,ie3d:fn,webkit3d:nn,gecko3d:In,any3d:Or,mobile:Eo,mobileWebkit:er,mobileWebkit3d:Hd,msPointer:To,pointer:$v,touch:zv,touchNative:Bv,mobileOpera:Wd,mobileGecko:Ol,retina:xn,passiveEvents:vn,canvas:Sr,svg:tr,vml:kn,inlineSvg:nr,mac:Ji,linux:eo},MA=Ye.msPointer?"MSPointerDown":"pointerdown",RA=Ye.msPointer?"MSPointerMove":"pointermove",DA=Ye.msPointer?"MSPointerUp":"pointerup",LA=Ye.msPointer?"MSPointerCancel":"pointercancel",ox={touchstart:MA,touchmove:RA,touchend:DA,touchcancel:LA},IA={touchstart:Uq,touchmove:Vv,touchend:Vv,touchcancel:Vv},Gu={},FA=!1;function Rq(c,h,S){return h==="touchstart"&&Fq(),IA[h]?(S=IA[h].bind(this,S),c.addEventListener(ox[h],S,!1),S):(console.warn("wrong event specified:",h),d)}function Dq(c,h,S){if(!ox[h]){console.warn("wrong event specified:",h);return}c.removeEventListener(ox[h],S,!1)}function Lq(c){Gu[c.pointerId]=c}function Iq(c){Gu[c.pointerId]&&(Gu[c.pointerId]=c)}function UA(c){delete Gu[c.pointerId]}function Fq(){FA||(document.addEventListener(MA,Lq,!0),document.addEventListener(RA,Iq,!0),document.addEventListener(DA,UA,!0),document.addEventListener(LA,UA,!0),FA=!0)}function Vv(c,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var S in Gu)h.touches.push(Gu[S]);h.changedTouches=[h],c(h)}}function Uq(c,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&ir(h),Vv(c,h)}function $q(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 Bq=200;function zq(c,h){c.addEventListener("dblclick",h);var S=0,C;function R(G){if(G.detail!==1){C=G.detail;return}if(!(G.pointerType==="mouse"||G.sourceCapabilities&&!G.sourceCapabilities.firesTouchEvents)){var ae=HA(G);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<=Bq?(C++,C===2&&h($q(G))):C=1,S=pe}}}return c.addEventListener("click",R),{dblclick:h,simDblclick:R}}function Vq(c,h){c.removeEventListener("dblclick",h.dblclick),c.removeEventListener("click",h.simDblclick)}var ax=Yv(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Yd=Yv(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),$A=Yd==="webkitTransition"||Yd==="OTransition"?Yd+"End":"transitionend";function BA(c){return typeof c=="string"?document.getElementById(c):c}function Gd(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 Ot(c,h,S){var C=document.createElement(c);return C.className=h||"",S&&S.appendChild(C),C}function rn(c){var h=c.parentNode;h&&h.removeChild(c)}function Hv(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function qu(c){var h=c.parentNode;h&&h.lastChild!==c&&h.appendChild(c)}function Ku(c){var h=c.parentNode;h&&h.firstChild!==c&&h.insertBefore(c,h.firstChild)}function sx(c,h){if(c.classList!==void 0)return c.classList.contains(h);var S=Wv(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,R=S.length;C<R;C++)c.classList.add(S[C]);else if(!sx(c,h)){var G=Wv(c);lx(c,(G?G+" ":"")+h)}}function gn(c,h){c.classList!==void 0?c.classList.remove(h):lx(c,m((" "+Wv(c)+" ").replace(" "+h+" "," ")))}function lx(c,h){c.className.baseVal===void 0?c.className=h:c.className.baseVal=h}function Wv(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function bi(c,h){"opacity"in c.style?c.style.opacity=h:"filter"in c.style&&Hq(c,h)}function Hq(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 Yv(c){for(var h=document.documentElement.style,S=0;S<c.length;S++)if(c[S]in h)return c[S];return!1}function Sl(c,h,S){var C=h||new X(0,0);c.style[ax]=(Ye.ie3d?"translate("+C.x+"px,"+C.y+"px)":"translate3d("+C.x+"px,"+C.y+"px,0)")+(S?" scale("+S+")":"")}function On(c,h){c._leaflet_pos=h,Ye.any3d?Sl(c,h):(c.style.left=h.x+"px",c.style.top=h.y+"px")}function El(c){return c._leaflet_pos||new X(0,0)}var qd,Kd,ux;if("onselectstart"in document)qd=function(){tt(window,"selectstart",ir)},Kd=function(){Lt(window,"selectstart",ir)};else{var Zd=Yv(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);qd=function(){if(Zd){var c=document.documentElement.style;ux=c[Zd],c[Zd]="none"}},Kd=function(){Zd&&(document.documentElement.style[Zd]=ux,ux=void 0)}}function cx(){tt(window,"dragstart",ir)}function fx(){Lt(window,"dragstart",ir)}var Gv,dx;function px(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(qv(),Gv=c,dx=c.style.outlineStyle,c.style.outlineStyle="none",tt(window,"keydown",qv))}function qv(){Gv&&(Gv.style.outlineStyle=dx,Gv=void 0,dx=void 0,Lt(window,"keydown",qv))}function zA(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function hx(c){var h=c.getBoundingClientRect();return{x:h.width/c.offsetWidth||1,y:h.height/c.offsetHeight||1,boundingClientRect:h}}var Wq={__proto__:null,TRANSFORM:ax,TRANSITION:Yd,TRANSITION_END:$A,get:BA,getStyle:Gd,create:Ot,remove:rn,empty:Hv,toFront:qu,toBack:Ku,hasClass:sx,addClass:it,removeClass:gn,setClass:lx,getClass:Wv,setOpacity:bi,testProp:Yv,setTransform:Sl,setPosition:On,getPosition:El,get disableTextSelection(){return qd},get enableTextSelection(){return Kd},disableImageDrag:cx,enableImageDrag:fx,preventOutline:px,restoreOutline:qv,getSizedParentNode:zA,getScale:hx};function tt(c,h,S,C){if(h&&typeof h=="object")for(var R in h)vx(c,R,h[R],S);else{h=v(h);for(var G=0,ae=h.length;G<ae;G++)vx(c,h[G],S,C)}return this}var Co="_leaflet_events";function Lt(c,h,S,C){if(arguments.length===1)VA(c),delete c[Co];else if(h&&typeof h=="object")for(var R in h)gx(c,R,h[R],S);else if(h=v(h),arguments.length===2)VA(c,function(pe){return O(h,pe)!==-1});else for(var G=0,ae=h.length;G<ae;G++)gx(c,h[G],S,C);return this}function VA(c,h){for(var S in c[Co]){var C=S.split(/\d/)[0];(!h||h(C))&&gx(c,C,null,null,S)}}var mx={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function vx(c,h,S,C){var R=h+l(S)+(C?"_"+l(C):"");if(c[Co]&&c[Co][R])return this;var G=function(pe){return S.call(C||c,pe||window.event)},ae=G;!Ye.touchNative&&Ye.pointer&&h.indexOf("touch")===0?G=Rq(c,h,G):Ye.touch&&h==="dblclick"?G=zq(c,G):"addEventListener"in c?h==="touchstart"||h==="touchmove"||h==="wheel"||h==="mousewheel"?c.addEventListener(mx[h]||h,G,Ye.passiveEvents?{passive:!1}:!1):h==="mouseenter"||h==="mouseleave"?(G=function(pe){pe=pe||window.event,bx(c,pe)&&ae(pe)},c.addEventListener(mx[h],G,!1)):c.addEventListener(h,ae,!1):c.attachEvent("on"+h,G),c[Co]=c[Co]||{},c[Co][R]=G}function gx(c,h,S,C,R){R=R||h+l(S)+(C?"_"+l(C):"");var G=c[Co]&&c[Co][R];if(!G)return this;!Ye.touchNative&&Ye.pointer&&h.indexOf("touch")===0?Dq(c,h,G):Ye.touch&&h==="dblclick"?Vq(c,G):"removeEventListener"in c?c.removeEventListener(mx[h]||h,G,!1):c.detachEvent("on"+h,G),c[Co][R]=null}function Tl(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function yx(c){return vx(c,"wheel",Tl),this}function Qd(c){return tt(c,"mousedown touchstart dblclick contextmenu",Tl),c._leaflet_disable_click=!0,this}function ir(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function Cl(c){return ir(c),Tl(c),this}function HA(c){if(c.composedPath)return c.composedPath();for(var h=[],S=c.target;S;)h.push(S),S=S.parentNode;return h}function WA(c,h){if(!h)return new X(c.clientX,c.clientY);var S=hx(h),C=S.boundingClientRect;return new X((c.clientX-C.left)/S.x-h.clientLeft,(c.clientY-C.top)/S.y-h.clientTop)}var Yq=Ye.linux&&Ye.chrome?window.devicePixelRatio:Ye.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function YA(c){return Ye.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/Yq: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 bx(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 Gq={__proto__:null,on:tt,off:Lt,stopPropagation:Tl,disableScrollPropagation:yx,disableClickPropagation:Qd,preventDefault:ir,stop:Cl,getPropagationPath:HA,getMousePosition:WA,getWheelDelta:YA,isExternalTarget:bx,addListener:tt,removeListener:Lt},GA=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=El(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=F(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(),On(this._el,S),this.fire("step")},_complete:function(){B(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),gt=te.extend({options:{crs:se,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(le(h.center),h.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Yd&&Ye.any3d&&!Ye.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),tt(this._proxy,$A,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(le(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),R=this.getSize().divideBy(2),G=c instanceof X?c:this.latLngToContainerPoint(c),ae=G.subtract(R).multiplyBy(1-1/C),pe=this.containerPointToLatLng(R.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]),R=this.getBoundsZoom(c,!1,S.add(C));if(R=typeof h.maxZoom=="number"?Math.min(h.maxZoom,R):R,R===1/0)return{center:c.getCenter(),zoom:R};var G=C.subtract(S).divideBy(2),ae=this.project(c.getSouthWest(),R),pe=this.project(c.getNorthEast(),R),me=this.unproject(ae.add(pe).divideBy(2).add(G),R);return{center:me,zoom:R}},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 GA,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()),R=this.project(c),G=this.getSize(),ae=this._zoom;c=le(c),h=h===void 0?ae:h;var pe=Math.max(G.x,G.y),me=pe*this.getZoomScale(ae,h),xe=R.distanceTo(C)||1,Ie=1.42,Ke=Ie*Ie;function lt(Sn){var ag=Sn?-1:1,DK=Sn?me:pe,LK=me*me-pe*pe+ag*Ke*Ke*xe*xe,IK=2*DK*Ke*xe,Px=LK/IK,CN=Math.sqrt(Px*Px+1)-Px,FK=CN<1e-9?-18:Math.log(CN);return FK}function Er(Sn){return(Math.exp(Sn)-Math.exp(-Sn))/2}function Fn(Sn){return(Math.exp(Sn)+Math.exp(-Sn))/2}function wi(Sn){return Er(Sn)/Fn(Sn)}var Ur=lt(0);function tc(Sn){return pe*(Fn(Ur)/Fn(Ur+Ie*Sn))}function AK(Sn){return pe*(Fn(Ur)*wi(Ur+Ie*Sn)-Er(Ur))/Ke}function NK(Sn){return 1-Math.pow(1-Sn,1.5)}var MK=Date.now(),EN=(lt(1)-Ur)/Ie,RK=S.duration?1e3*S.duration:1e3*EN*.8;function TN(){var Sn=(Date.now()-MK)/RK,ag=NK(Sn)*EN;Sn<=1?(this._flyToFrame=F(TN,this),this._move(this.unproject(C.add(R.subtract(C).multiplyBy(AK(ag)/xe)),ae),this.getScaleZoom(pe/tc(ag),ae),{flyTo:!0})):this._move(c,h)._moveEnd(!0)}return this._moveStart(!0,S.noMoveStart),TN.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]),R=this.project(this.getCenter()),G=this.project(c),ae=this.getPixelBounds(),pe=re([ae.min.add(S),ae.max.subtract(C)]),me=pe.getSize();if(!pe.contains(G)){this._enforcingBounds=!0;var xe=G.subtract(pe.getCenter()),Ie=pe.extend(G).getSize().subtract(me);R.x+=xe.x<0?-Ie.x:Ie.x,R.y+=xe.y<0?-Ie.y:Ie.y,this.panTo(this.unproject(R),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(),R=S.divideBy(2).round(),G=C.subtract(R);return!G.x&&!G.y?this:(c.animate&&c.pan?this.panBy(G):(c.pan&&this._rawPanBy(G),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 oe(h,S),R=C.toBounds(c.coords.accuracy*2),G=this._locateOptions;if(G.setView){var ae=this.getBoundsZoom(R);this.setView(C,G.maxZoom?Math.min(ae,G.maxZoom):ae)}var pe={latlng:C,bounds:R,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(),rn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(B(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)rn(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=Ot("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,R=this.getMinZoom(),G=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,lt=me.y/xe.y,Er=h?Math.max(Ke,lt):Math.min(Ke,lt);return C=this.getScaleZoom(Er,C),Ie&&(C=Math.round(C/(Ie/100))*(Ie/100),C=h?Math.ceil(C/Ie)*Ie:Math.floor(C/Ie)*Ie),Math.max(R,Math.min(G,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(le(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(le(c))._round();return h._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(le(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(ee(c))},distance:function(c,h){return this.options.crs.distance(le(c),le(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(le(c)))},mouseEventToContainerPoint:function(c){return WA(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=BA(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=Gd(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),On(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){On(this._mapPane,new X(0,0));var C=!this._loaded;this._loaded=!0,h=this._limitZoom(h),this.fire("viewprereset");var R=this._zoom!==h;this._moveStart(R,S)._move(c,h)._moveEnd(R),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 R=this._zoom!==h;return this._zoom=h,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),C?S&&S.pinch&&this.fire("zoom",S):((R||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 B(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){On(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(){B(this._resizeRequest),this._resizeRequest=F(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,R=h==="mouseout"||h==="mouseover",G=c.target||c.srcElement,ae=!1;G;){if(C=this._targets[l(G)],C&&(h==="click"||h==="preclick")&&this._draggableMoved(C)){ae=!0;break}if(C&&C.listens(h,!0)&&(R&&!bx(G,c)||(S.push(C),R))||G===this._container)break;G=G.parentNode}return!S.length&&!ae&&!R&&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"&&px(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 R=this._findEventTargets(c,h);if(S){for(var G=[],ae=0;ae<S.length;ae++)S[ae].listens(h,!0)&&G.push(S[ae]);R=G.concat(R)}if(R.length){h==="contextmenu"&&ir(c);var pe=R[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<R.length;ae++)if(R[ae].fire(h,me,!0),me.originalEvent._stopped||R[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 El(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),R=this.getSize().divideBy(2),G=new W(C.subtract(R),C.add(R)),ae=this._getBoundsOffset(G,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)),R=C.min.subtract(c.min),G=C.max.subtract(c.max),ae=this._rebound(R.x,-G.x),pe=this._rebound(R.y,-G.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(){gn(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=Ot("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(h){var S=ax,C=this._proxy.style[S];Sl(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(){rn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),h=this.getZoom();Sl(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),R=this._getCenterOffset(c)._divideBy(1-1/C);return S.animate!==!0&&!this.getSize().contains(R)?!1:(F(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&&gn(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 qq(c,h){return new gt(c,h)}var to=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?(rn(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()}}),Xd=function(c){return new to(c)};gt.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=Ot("div",h+"control-container",this._container);function C(R,G){var ae=h+R+" "+h+G;c[R+G]=Ot("div",ae,S)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)rn(this._controlCorners[c]);rn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var qA=to.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 to.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"):gn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return gn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",h=this._container=Ot("div",c),S=this.options.collapsed;h.setAttribute("aria-haspopup",!0),Qd(h),yx(h);var C=this._section=Ot("section",c+"-list");S&&(this._map.on("click",this.collapse,this),tt(h,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var R=this._layersLink=Ot("a",c+"-toggle",h);R.href="#",R.title="Layers",R.setAttribute("role","button"),tt(R,{keydown:function(G){G.keyCode===13&&this._expandSafely()},click:function(G){ir(G),this._expandSafely()}},this),S||this.expand(),this._baseLayersList=Ot("div",c+"-base",C),this._separator=Ot("div",c+"-separator",C),this._overlaysList=Ot("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,R){return this.options.sortFunction(C.layer,R.layer,C.name,R.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Hv(this._baseLayersList),Hv(this._overlaysList),this._layerControlInputs=[];var c,h,S,C,R=0;for(S=0;S<this._layers.length;S++)C=this._layers[S],this._addItem(C),h=h||C.overlay,c=c||!C.overlay,R+=C.overlay?0:1;return this.options.hideSingleBase&&(c=c&&R>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 R=document.createElement("span");R.innerHTML=" "+c.name;var G=document.createElement("span");h.appendChild(G),G.appendChild(C),G.appendChild(R);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=[],R=[];this._handlingClick=!0;for(var G=c.length-1;G>=0;G--)h=c[G],S=this._getLayer(h.layerId).layer,h.checked?C.push(S):h.checked||R.push(S);for(G=0;G<R.length;G++)this._map.hasLayer(R[G])&&this._map.removeLayer(R[G]);for(G=0;G<C.length;G++)this._map.hasLayer(C[G])||this._map.addLayer(C[G]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,h,S,C=this._map.getZoom(),R=c.length-1;R>=0;R--)h=c[R],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",ir),this.expand();var h=this;setTimeout(function(){Lt(c,"click",ir),h._preventClick=!1})}}),Kq=function(c,h,S){return new qA(c,h,S)},_x=to.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=Ot("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,R){var G=Ot("a",S,C);return G.innerHTML=c,G.href="#",G.title=h,G.setAttribute("role","button"),G.setAttribute("aria-label",h),Qd(G),tt(G,"click",Cl),tt(G,"click",R,this),tt(G,"click",this._refocusOnMap,this),G},_updateDisabled:function(){var c=this._map,h="leaflet-disabled";gn(this._zoomInButton,h),gn(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"))}});gt.mergeOptions({zoomControl:!0}),gt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _x,this.addControl(this.zoomControl))});var Zq=function(c){return new _x(c)},KA=to.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var h="leaflet-control-scale",S=Ot("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=Ot("div",h,S)),c.imperial&&(this._iScale=Ot("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,R;h>5280?(S=h/5280,C=this._getRoundNum(S),this._updateScale(this._iScale,C+" mi",C/S)):(R=this._getRoundNum(h),this._updateScale(this._iScale,R+" ft",R/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}}),Qq=function(c){return new KA(c)},Xq='<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>',wx=to.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ye.inlineSvg?Xq+" ":"")+"Leaflet</a>"},initialize:function(c){g(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=Ot("div","leaflet-control-attribution"),Qd(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> ')}}});gt.mergeOptions({attributionControl:!0}),gt.addInitHook(function(){this.options.attributionControl&&new wx().addTo(this)});var Jq=function(c){return new wx(c)};to.Layers=qA,to.Zoom=_x,to.Scale=KA,to.Attribution=wx,Xd.layers=Kq,Xd.zoom=Zq,Xd.scale=Qq,Xd.attribution=Jq;var ko=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}});ko.addTo=function(c,h){return c.addHandler(h,this),this};var eK={Events:Z},ZA=Ye.touch?"touchstart mousedown":"mousedown",ts=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,ZA,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ts._dragging===this&&this.finishDrag(!0),Lt(this._dragStartTarget,ZA,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!sx(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){ts._dragging===this&&this.finishDrag();return}if(!(ts._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(ts._dragging=this,this._preventOutline&&px(this._element),cx(),qd(),!this._moving)){this.fire("down");var h=c.touches?c.touches[0]:c,S=zA(this._element);this._startPoint=new X(h.clientX,h.clientY),this._startPos=El(this._element),this._parentScale=hx(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,ir(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),On(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){gn(document.body,"leaflet-dragging"),this._lastTarget&&(gn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Lt(document,"mousemove touchmove",this._onMove,this),Lt(document,"mouseup touchend touchcancel",this._onUp,this),fx(),Kd();var h=this._moved&&this._moving;this._moving=!1,ts._dragging=!1,h&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function QA(c,h,S){var C,R=[1,4,2,8],G,ae,pe,me,xe,Ie,Ke,lt;for(G=0,Ie=c.length;G<Ie;G++)c[G]._code=kl(c[G],h);for(pe=0;pe<4;pe++){for(Ke=R[pe],C=[],G=0,Ie=c.length,ae=Ie-1;G<Ie;ae=G++)me=c[G],xe=c[ae],me._code&Ke?xe._code&Ke||(lt=Kv(xe,me,Ke,h,S),lt._code=kl(lt,h),C.push(lt)):(xe._code&Ke&&(lt=Kv(xe,me,Ke,h,S),lt._code=kl(lt,h),C.push(lt)),C.push(me));c=C}return c}function XA(c,h){var S,C,R,G,ae,pe,me,xe,Ie;if(!c||c.length===0)throw new Error("latlngs not passed");_i(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Ke=le([0,0]),lt=ee(c),Er=lt.getNorthWest().distanceTo(lt.getSouthWest())*lt.getNorthEast().distanceTo(lt.getNorthWest());Er<1700&&(Ke=xx(c));var Fn=c.length,wi=[];for(S=0;S<Fn;S++){var Ur=le(c[S]);wi.push(h.project(le([Ur.lat-Ke.lat,Ur.lng-Ke.lng])))}for(pe=me=xe=0,S=0,C=Fn-1;S<Fn;C=S++)R=wi[S],G=wi[C],ae=R.y*G.x-G.y*R.x,me+=(R.x+G.x)*ae,xe+=(R.y+G.y)*ae,pe+=ae*3;pe===0?Ie=wi[0]:Ie=[me/pe,xe/pe];var tc=h.unproject(V(Ie));return le([tc.lat+Ke.lat,tc.lng+Ke.lng])}function xx(c){for(var h=0,S=0,C=0,R=0;R<c.length;R++){var G=le(c[R]);h+=G.lat,S+=G.lng,C++}return le([h/C,S/C])}var tK={__proto__:null,clipPolygon:QA,polygonCenter:XA,centroid:xx};function JA(c,h){if(!h||!c.length)return c.slice();var S=h*h;return c=iK(c,S),c=rK(c,S),c}function eN(c,h,S){return Math.sqrt(Jd(c,h,S,!0))}function nK(c,h,S){return Jd(c,h,S)}function rK(c,h){var S=c.length,C=typeof Uint8Array!=void 0+""?Uint8Array:Array,R=new C(S);R[0]=R[S-1]=1,Ox(c,R,h,0,S-1);var G,ae=[];for(G=0;G<S;G++)R[G]&&ae.push(c[G]);return ae}function Ox(c,h,S,C,R){var G=0,ae,pe,me;for(pe=C+1;pe<=R-1;pe++)me=Jd(c[pe],c[C],c[R],!0),me>G&&(ae=pe,G=me);G>S&&(h[ae]=1,Ox(c,h,S,C,ae),Ox(c,h,S,ae,R))}function iK(c,h){for(var S=[c[0]],C=1,R=0,G=c.length;C<G;C++)oK(c[C],c[R])>h&&(S.push(c[C]),R=C);return R<G-1&&S.push(c[G-1]),S}var tN;function nN(c,h,S,C,R){var G=C?tN:kl(c,S),ae=kl(h,S),pe,me,xe;for(tN=ae;;){if(!(G|ae))return[c,h];if(G&ae)return!1;pe=G||ae,me=Kv(c,h,pe,S,R),xe=kl(me,S),pe===G?(c=me,G=xe):(h=me,ae=xe)}}function Kv(c,h,S,C,R){var G=h.x-c.x,ae=h.y-c.y,pe=C.min,me=C.max,xe,Ie;return S&8?(xe=c.x+G*(me.y-c.y)/ae,Ie=me.y):S&4?(xe=c.x+G*(pe.y-c.y)/ae,Ie=pe.y):S&2?(xe=me.x,Ie=c.y+ae*(me.x-c.x)/G):S&1&&(xe=pe.x,Ie=c.y+ae*(pe.x-c.x)/G),new X(xe,Ie,R)}function kl(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 oK(c,h){var S=h.x-c.x,C=h.y-c.y;return S*S+C*C}function Jd(c,h,S,C){var R=h.x,G=h.y,ae=S.x-R,pe=S.y-G,me=ae*ae+pe*pe,xe;return me>0&&(xe=((c.x-R)*ae+(c.y-G)*pe)/me,xe>1?(R=S.x,G=S.y):xe>0&&(R+=ae*xe,G+=pe*xe)),ae=c.x-R,pe=c.y-G,C?ae*ae+pe*pe:new X(R,G)}function _i(c){return!w(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function rN(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_i(c)}function iN(c,h){var S,C,R,G,ae,pe,me,xe;if(!c||c.length===0)throw new Error("latlngs not passed");_i(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Ie=le([0,0]),Ke=ee(c),lt=Ke.getNorthWest().distanceTo(Ke.getSouthWest())*Ke.getNorthEast().distanceTo(Ke.getNorthWest());lt<1700&&(Ie=xx(c));var Er=c.length,Fn=[];for(S=0;S<Er;S++){var wi=le(c[S]);Fn.push(h.project(le([wi.lat-Ie.lat,wi.lng-Ie.lng])))}for(S=0,C=0;S<Er-1;S++)C+=Fn[S].distanceTo(Fn[S+1])/2;if(C===0)xe=Fn[0];else for(S=0,G=0;S<Er-1;S++)if(ae=Fn[S],pe=Fn[S+1],R=ae.distanceTo(pe),G+=R,G>C){me=(G-C)/R,xe=[pe.x-me*(pe.x-ae.x),pe.y-me*(pe.y-ae.y)];break}var Ur=h.unproject(V(xe));return le([Ur.lat+Ie.lat,Ur.lng+Ie.lng])}var aK={__proto__:null,simplify:JA,pointToSegmentDistance:eN,closestPointOnSegment:nK,clipSegment:nN,_getEdgeIntersection:Kv,_getBitCode:kl,_sqClosestPointOnSegment:Jd,isFlat:_i,_flat:rN,polylineCenter:iN},Sx={project:function(c){return new X(c.lng,c.lat)},unproject:function(c){return new oe(c.y,c.x)},bounds:new W([-180,-90],[180,90])},Ex={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,R=this.R_MINOR/S,G=Math.sqrt(1-R*R),ae=G*Math.sin(C),pe=Math.tan(Math.PI/4-C/2)/Math.pow((1-ae)/(1+ae),G/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,R=Math.sqrt(1-C*C),G=Math.exp(-c.y/S),ae=Math.PI/2-2*Math.atan(G),pe=0,me=.1,xe;pe<15&&Math.abs(me)>1e-7;pe++)xe=R*Math.sin(ae),xe=Math.pow((1-xe)/(1+xe),R/2),me=Math.PI/2-2*Math.atan(G*xe)-ae,ae+=me;return new oe(ae*h,c.x*h/S)}},sK={__proto__:null,LonLat:Sx,Mercator:Ex,SphericalMercator:$},lK=i({},j,{code:"EPSG:3395",projection:Ex,transformation:function(){var c=.5/(Math.PI*Ex.R);return K(c,.5,-c,.5)}()}),oN=i({},j,{code:"EPSG:4326",projection:Sx,transformation:K(1/180,1,-1/180,.5)}),uK=i({},fe,{projection:Sx,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=lK,fe.EPSG3857=se,fe.EPSG900913=he,fe.EPSG4326=oN,fe.Simple=uK;var no=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})}}});gt.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?w(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 R=this._zoomBoundLayers[C].options;c=R.minZoom===void 0?c:Math.min(c,R.minZoom),h=R.maxZoom===void 0?h:Math.max(h,R.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 Zu=no.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)}}),cK=function(c,h){return new Zu(c,h)},ca=Zu.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),Zu.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),Zu.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}}),fK=function(c,h){return new ca(c,h)},Qu=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 R=V(C),G=V(h==="shadow"&&S.shadowAnchor||S.iconAnchor||R&&R.divideBy(2,!0));c.className="leaflet-marker-"+h+" "+(S.className||""),G&&(c.style.marginLeft=-G.x+"px",c.style.marginTop=-G.y+"px"),R&&(c.style.width=R.x+"px",c.style.height=R.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 dK(c){return new Qu(c)}var ep=Qu.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 ep.imagePath!="string"&&(ep.imagePath=this._detectIconPath()),(this.options.imagePath||ep.imagePath)+Qu.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var h=function(S,C,R){var G=C.exec(S);return G&&G[R]};return c=h(c,/^url\((['"])?(.+)\1\)$/,2),c&&h(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=Ot("div","leaflet-default-icon-path",document.body),h=Gd(c,"background-image")||Gd(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):""}}),aN=ko.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new ts(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&&gn(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,R=this._marker.options.autoPanPadding,G=El(h._icon),ae=S.getPixelBounds(),pe=S.getPixelOrigin(),me=re(ae.min._subtract(pe).add(R),ae.max._subtract(pe).subtract(R));if(!me.contains(G)){var xe=V((Math.max(me.max.x,G.x)-me.max.x)/(ae.max.x-me.max.x)-(Math.min(me.min.x,G.x)-me.min.x)/(ae.min.x-me.min.x),(Math.max(me.max.y,G.y)-me.max.y)/(ae.max.y-me.max.y)-(Math.min(me.min.y,G.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),On(h._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=F(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&&(B(this._panRequest),this._panRequest=F(this._adjustPan.bind(this,c)))},_onDrag:function(c){var h=this._marker,S=h._shadow,C=El(h._icon),R=h._map.layerPointToLatLng(C);S&&On(S,C),h._latlng=R,c.latlng=R,c.oldLatLng=this._oldLatLng,h.fire("move",c).fire("drag",c)},_onDragEnd:function(c){B(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Zv=no.extend({options:{icon:new ep,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=le(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=le(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 R=c.icon.createShadow(this._shadow),G=!1;R!==this._shadow&&(this._removeShadow(),G=!0),R&&(it(R,h),R.alt=""),this._shadow=R,c.opacity<1&&this._updateOpacity(),C&&this.getPane().appendChild(this._icon),this._initInteraction(),R&&G&&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),rn(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&rn(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&On(this._icon,c),this._shadow&&On(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),aN)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new aN(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&&bi(this._icon,c),this._shadow&&bi(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 pK(c,h){return new Zv(c,h)}var ns=no.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)}}),Qv=ns.extend({options:{fill:!0,radius:10},initialize:function(c,h){g(this,h),this._latlng=le(c),this._radius=this.options.radius},setLatLng:function(c){var h=this._latlng;return this._latlng=le(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 ns.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 hK(c,h){return new Qv(c,h)}var Tx=Qv.extend({initialize:function(c,h,S){if(typeof h=="number"&&(h=i({},S,{radius:h})),g(this,h),this._latlng=le(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:ns.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 R=Math.PI/180,G=this._mRadius/j.R/R,ae=S.project([h+G,c]),pe=S.project([h-G,c]),me=ae.add(pe).divideBy(2),xe=S.unproject(me).lat,Ie=Math.acos((Math.cos(G*R)-Math.sin(h*R)*Math.sin(xe*R))/(Math.cos(h*R)*Math.cos(xe*R)))/R;(isNaN(Ie)||Ie===0)&&(Ie=G/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 mK(c,h,S){return new Tx(c,h,S)}var fa=ns.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=Jd,R,G,ae=0,pe=this._parts.length;ae<pe;ae++)for(var me=this._parts[ae],xe=1,Ie=me.length;xe<Ie;xe++){R=me[xe-1],G=me[xe];var Ke=C(c,R,G,!0);Ke<h&&(h=Ke,S=C(c,R,G))}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 iN(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,h){return h=h||this._defaultShape(),c=le(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 _i(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var h=[],S=_i(c),C=0,R=c.length;C<R;C++)S?(h[C]=le(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 oe,R=c.length,G,ae;if(C){for(ae=[],G=0;G<R;G++)ae[G]=this._map.latLngToLayerPoint(c[G]),S.extend(ae[G]);h.push(ae)}else for(G=0;G<R;G++)this._projectLatlngs(c[G],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,R,G,ae,pe,me;for(S=0,R=0,G=this._rings.length;S<G;S++)for(me=this._rings[S],C=0,ae=me.length;C<ae-1;C++)pe=nN(me[C],me[C+1],c,C,!0),pe&&(h[R]=h[R]||[],h[R].push(pe[0]),(pe[1]!==me[C+1]||C===ae-2)&&(h[R].push(pe[1]),R++))}},_simplifyPoints:function(){for(var c=this._parts,h=this.options.smoothFactor,S=0,C=c.length;S<C;S++)c[S]=JA(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,R,G,ae,pe,me=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(S=0,G=this._parts.length;S<G;S++)for(pe=this._parts[S],C=0,ae=pe.length,R=ae-1;C<ae;R=C++)if(!(!h&&C===0)&&eN(c,pe[R],pe[C])<=me)return!0;return!1}});function vK(c,h){return new fa(c,h)}fa._flat=rN;var Xu=fa.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 XA(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var h=fa.prototype._convertLatLngs.call(this,c),S=h.length;return S>=2&&h[0]instanceof oe&&h[0].equals(h[S-1])&&h.pop(),h},_setLatLngs:function(c){fa.prototype._setLatLngs.call(this,c),_i(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _i(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,R=this._rings.length,G;C<R;C++)G=QA(this._rings[C],c,!0),G.length&&this._parts.push(G)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var h=!1,S,C,R,G,ae,pe,me,xe;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(G=0,me=this._parts.length;G<me;G++)for(S=this._parts[G],ae=0,xe=S.length,pe=xe-1;ae<xe;pe=ae++)C=S[ae],R=S[pe],C.y>c.y!=R.y>c.y&&c.x<(R.x-C.x)*(c.y-C.y)/(R.y-C.y)+C.x&&(h=!h);return h||fa.prototype._containsPoint.call(this,c,!0)}});function gK(c,h){return new Xu(c,h)}var da=ca.extend({initialize:function(c,h){g(this,h),this._layers={},c&&this.addData(c)},addData:function(c){var h=w(c)?c:c.features,S,C,R;if(h){for(S=0,C=h.length;S<C;S++)R=h[S],(R.geometries||R.geometry||R.features||R.coordinates)&&this.addData(R);return this}var G=this.options;if(G.filter&&!G.filter(c))return this;var ae=Xv(c,G);return ae?(ae.feature=tg(c),ae.defaultOptions=ae.options,this.resetStyle(ae),G.onEachFeature&&G.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 Xv(c,h){var S=c.type==="Feature"?c.geometry:c,C=S?S.coordinates:null,R=[],G=h&&h.pointToLayer,ae=h&&h.coordsToLatLng||Cx,pe,me,xe,Ie;if(!C&&!S)return null;switch(S.type){case"Point":return pe=ae(C),sN(G,c,pe,h);case"MultiPoint":for(xe=0,Ie=C.length;xe<Ie;xe++)pe=ae(C[xe]),R.push(sN(G,c,pe,h));return new ca(R);case"LineString":case"MultiLineString":return me=Jv(C,S.type==="LineString"?0:1,ae),new fa(me,h);case"Polygon":case"MultiPolygon":return me=Jv(C,S.type==="Polygon"?1:2,ae),new Xu(me,h);case"GeometryCollection":for(xe=0,Ie=S.geometries.length;xe<Ie;xe++){var Ke=Xv({geometry:S.geometries[xe],type:"Feature",properties:c.properties},h);Ke&&R.push(Ke)}return new ca(R);case"FeatureCollection":for(xe=0,Ie=S.features.length;xe<Ie;xe++){var lt=Xv(S.features[xe],h);lt&&R.push(lt)}return new ca(R);default:throw new Error("Invalid GeoJSON object.")}}function sN(c,h,S,C){return c?c(h,S):new Zv(S,C&&C.markersInheritOptions&&C)}function Cx(c){return new oe(c[1],c[0],c[2])}function Jv(c,h,S){for(var C=[],R=0,G=c.length,ae;R<G;R++)ae=h?Jv(c[R],h-1,S):(S||Cx)(c[R]),C.push(ae);return C}function kx(c,h){return c=le(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 eg(c,h,S,C){for(var R=[],G=0,ae=c.length;G<ae;G++)R.push(h?eg(c[G],_i(c[G])?0:h-1,S,C):kx(c[G],C));return!h&&S&&R.length>0&&R.push(R[0].slice()),R}function Ju(c,h){return c.feature?i({},c.feature,{geometry:h}):tg(h)}function tg(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var jx={toGeoJSON:function(c){return Ju(this,{type:"Point",coordinates:kx(this.getLatLng(),c)})}};Zv.include(jx),Tx.include(jx),Qv.include(jx),fa.include({toGeoJSON:function(c){var h=!_i(this._latlngs),S=eg(this._latlngs,h?1:0,!1,c);return Ju(this,{type:(h?"Multi":"")+"LineString",coordinates:S})}}),Xu.include({toGeoJSON:function(c){var h=!_i(this._latlngs),S=h&&!_i(this._latlngs[0]),C=eg(this._latlngs,S?2:h?1:0,!0,c);return h||(C=[C]),Ju(this,{type:(S?"Multi":"")+"Polygon",coordinates:C})}}),Zu.include({toMultiPoint:function(c){var h=[];return this.eachLayer(function(S){h.push(S.toGeoJSON(c).geometry.coordinates)}),Ju(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(R){if(R.toGeoJSON){var G=R.toGeoJSON(c);if(S)C.push(G.geometry);else{var ae=tg(G);ae.type==="FeatureCollection"?C.push.apply(C,ae.features):C.push(ae)}}}),S?Ju(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function lN(c,h){return new da(c,h)}var yK=lN,ng=no.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(){rn(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&&qu(this._image),this},bringToBack:function(){return this._map&&Ku(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:Ot("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;Sl(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();On(c,h.min),c.style.width=S.x+"px",c.style.height=S.y+"px"},_updateOpacity:function(){bi(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()}}),bK=function(c,h,S){return new ng(c,h,S)},uN=ng.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:Ot("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=[],R=0;R<S.length;R++)C.push(S[R].src);this._url=S.length>0?C:[h.src];return}w(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 G=0;G<this._url.length;G++){var ae=Ot("source");ae.src=this._url[G],h.appendChild(ae)}}});function _K(c,h,S){return new uN(c,h,S)}var cN=ng.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 wK(c,h,S){return new cN(c,h,S)}var jo=no.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,h){c&&(c instanceof oe||w(c))?(this._latlng=le(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&&bi(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&bi(this._container,1),this.bringToFront(),this.options.interactive&&(it(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(bi(this._container,0),this._removeTimeout=setTimeout(a(rn,void 0,this._container),200)):rn(this._container),this.options.interactive&&(gn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=le(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&&qu(this._container),this},bringToBack:function(){return this._map&&Ku(this._container),this},_prepareOpen:function(c){var h=this._source;if(!h._map)return!1;if(h instanceof ca){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?On(this._container,c.add(S)):h=h.add(c).add(S);var C=this._containerBottom=-h.y,R=this._containerLeft=-Math.round(this._containerWidth/2)+h.x;this._container.style.bottom=C+"px",this._container.style.left=R+"px"}},_getAnchor:function(){return[0,0]}});gt.include({_initOverlay:function(c,h,S,C){var R=h;return R instanceof c||(R=new c(C).setContent(h)),S&&R.setLatLng(S),R}}),no.include({_initOverlay:function(c,h,S,C){var R=S;return R instanceof c?(g(R,C),R._source=this):(R=h&&!C?h:new c(C,this),R.setContent(S)),R}});var rg=jo.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,jo.prototype.openOn.call(this,c)},onAdd:function(c){jo.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ns||this._source.on("preclick",Tl))},onRemove:function(c){jo.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ns||this._source.off("preclick",Tl))},getEvents:function(){var c=jo.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=Ot("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),S=this._wrapper=Ot("div",c+"-content-wrapper",h);if(this._contentNode=Ot("div",c+"-content",S),Qd(h),yx(this._contentNode),tt(h,"contextmenu",Tl),this._tipContainer=Ot("div",c+"-tip-container",h),this._tip=Ot("div",c+"-tip",this._tipContainer),this.options.closeButton){var C=this._closeButton=Ot("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(R){ir(R),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,R=this.options.maxHeight,G="leaflet-popup-scrolled";R&&C>R?(h.height=R+"px",it(c,G)):gn(c,G),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var h=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),S=this._getAnchor();On(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(Gd(this._container,"marginBottom"),10)||0,S=this._container.offsetHeight+h,C=this._containerWidth,R=new X(this._containerLeft,-S-this._containerBottom);R._add(El(this._container));var G=c.layerPointToContainerPoint(R),ae=V(this.options.autoPanPadding),pe=V(this.options.autoPanPaddingTopLeft||ae),me=V(this.options.autoPanPaddingBottomRight||ae),xe=c.getSize(),Ie=0,Ke=0;G.x+C+me.x>xe.x&&(Ie=G.x+C-xe.x+me.x),G.x-Ie-pe.x<0&&(Ie=G.x-pe.x),G.y+S+me.y>xe.y&&(Ke=G.y+S-xe.y+me.y),G.y-Ke-pe.y<0&&(Ke=G.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])}}),xK=function(c,h){return new rg(c,h)};gt.mergeOptions({closePopupOnClick:!0}),gt.include({openPopup:function(c,h,S){return this._initOverlay(rg,c,h,S).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),no.include({bindPopup:function(c,h){return this._popup=this._initOverlay(rg,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 ca||(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)){Cl(c);var h=c.layer||c.target;if(this._popup._source===h&&!(h instanceof ns)){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 ig=jo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){jo.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){jo.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=jo.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=Ot("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,R=this._container,G=C.latLngToContainerPoint(C.getCenter()),ae=C.layerPointToContainerPoint(c),pe=this.options.direction,me=R.offsetWidth,xe=R.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<G.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),gn(R,"leaflet-tooltip-right"),gn(R,"leaflet-tooltip-left"),gn(R,"leaflet-tooltip-top"),gn(R,"leaflet-tooltip-bottom"),it(R,"leaflet-tooltip-"+pe),On(R,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&bi(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])}}),OK=function(c,h){return new ig(c,h)};gt.include({openTooltip:function(c,h,S){return this._initOverlay(ig,c,h,S).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),no.include({bindTooltip:function(c,h){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ig,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 ca||(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 fN=Qu.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?(Hv(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 SK(c){return new fN(c)}Qu.Default=ep;var tp=no.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(),rn(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(qu(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ku(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,R=h.length,G;C<R;C++)G=h[C].style.zIndex,h[C]!==this._container&&G&&(S=c(S,+G));isFinite(S)&&(this.options.zIndex=S+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ye.ielt9){bi(this._container,this.options.opacity);var c=+new Date,h=!1,S=!1;for(var C in this._tiles){var R=this._tiles[C];if(!(!R.current||!R.loaded)){var G=Math.min(1,(c-R.loaded)/200);bi(R.el,G),G<1?h=!0:(R.active?S=!0:this._onOpaqueTile(R),R.active=!0)}}S&&!this._noPrune&&this._pruneTiles(),h&&(B(this._fadeFrame),this._fadeFrame=F(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=Ot("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)):(rn(this._levels[S].el),this._removeTilesAtZoom(S),this._onRemoveLevel(S),delete this._levels[S]);var C=this._levels[c],R=this._map;return C||(C=this._levels[c]={},C.el=Ot("div","leaflet-tile-container leaflet-zoom-animated",this._container),C.el.style.zIndex=h,C.origin=R.project(R.unproject(R.getPixelOrigin()),c).round(),C.zoom=c,this._setZoomTransform(C,R.getCenter(),R.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)rn(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 R=Math.floor(c/2),G=Math.floor(h/2),ae=S-1,pe=new X(+R,+G);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(R,G,ae,C):!1)},_retainChildren:function(c,h,S,C){for(var R=2*c;R<2*c+2;R++)for(var G=2*h;G<2*h+2;G++){var ae=new X(R,G);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(R,G,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 R=Math.round(h);this.options.maxZoom!==void 0&&R>this.options.maxZoom||this.options.minZoom!==void 0&&R<this.options.minZoom?R=void 0:R=this._clampZoom(R);var G=this.options.updateWhenZooming&&R!==this._tileZoom;(!C||G)&&(this._tileZoom=R,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),R!==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),R=c.origin.multiplyBy(C).subtract(this._map._getNewPixelOrigin(h,S)).round();Ye.any3d?Sl(c.el,R,C):On(c.el,R)},_resetGrid:function(){var c=this._map,h=c.options.crs,S=this._tileSize=this.getTileSize(),C=this._tileZoom,R=this._map.getPixelWorldBounds(this._tileZoom);R&&(this._globalTileRange=this._pxBoundsToTileRange(R)),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),R=h.project(c,this._tileZoom).floor(),G=h.getSize().divideBy(C*2);return new W(R.subtract(G),R.add(G))},_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),R=this._pxBoundsToTileRange(C),G=R.getCenter(),ae=[],pe=this.options.keepBuffer,me=new W(R.getBottomLeft().subtract([pe,-pe]),R.getTopRight().add([pe,-pe]));if(!(isFinite(R.min.x)&&isFinite(R.min.y)&&isFinite(R.max.x)&&isFinite(R.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=R.min.y;Ke<=R.max.y;Ke++)for(var lt=R.min.x;lt<=R.max.x;lt++){var Er=new X(lt,Ke);if(Er.z=this._tileZoom,!!this._isValidTile(Er)){var Fn=this._tiles[this._tileCoordsToKey(Er)];Fn?Fn.current=!0:ae.push(Er)}}if(ae.sort(function(Ur,tc){return Ur.distanceTo(G)-tc.distanceTo(G)}),ae.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var wi=document.createDocumentFragment();for(lt=0;lt<ae.length;lt++)this._addTile(ae[lt],wi);this._level.el.appendChild(wi)}}}},_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),R=C.add(S),G=h.unproject(C,c.z),ae=h.unproject(R,c.z);return[G,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&&(rn(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&&bi(c,this.options.opacity)},_addTile:function(c,h){var S=this._getTilePos(c),C=this._tileCoordsToKey(c),R=this.createTile(this._wrapCoords(c),a(this._tileReady,this,c));this._initTile(R),this.createTile.length<2&&F(a(this._tileReady,this,c,null,R)),On(R,S),this._tiles[C]={el:R,coords:c,current:!0},h.appendChild(R),this.fire("tileloadstart",{tile:R,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?(bi(S.el,0),B(this._fadeFrame),this._fadeFrame=F(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?F(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 EK(c){return new tp(c)}var ec=tp.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,h){this._url=c,h=g(this,h),h.detectRetina&&Ye.retina&&h.maxZoom>0?(h.tileSize=Math.floor(h.tileSize/2),h.zoomReverse?(h.zoomOffset--,h.minZoom=Math.min(h.maxZoom,h.minZoom+1)):(h.zoomOffset++,h.maxZoom=Math.max(h.minZoom,h.maxZoom-1)),h.minZoom=Math.max(0,h.minZoom)):h.zoomReverse?h.minZoom=Math.min(h.maxZoom,h.minZoom):h.maxZoom=Math.max(h.minZoom,h.maxZoom),typeof h.subdomains=="string"&&(h.subdomains=h.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,h){return this._url===c&&h===void 0&&(h=!0),this._url=c,h||this.redraw(),this},createTile:function(c,h){var S=document.createElement("img");return tt(S,"load",a(this._tileOnLoad,this,h,S)),tt(S,"error",a(this._tileOnError,this,h,S)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(S.referrerPolicy=this.options.referrerPolicy),S.alt="",S.src=this.getTileUrl(c),S},getTileUrl:function(c){var h={r:Ye.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var S=this._globalTileRange.max.y-c.y;this.options.tms&&(h.y=S),h["-y"]=S}return _(this._url,i(h,this.options))},_tileOnLoad:function(c,h){Ye.ielt9?setTimeout(a(c,this,null,h),0):c(null,h)},_tileOnError:function(c,h,S){var C=this.options.errorTileUrl;C&&h.getAttribute("src")!==C&&(h.src=C),c(S,h)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,h=this.options.maxZoom,S=this.options.zoomReverse,C=this.options.zoomOffset;return S&&(c=h-c),c+C},_getSubdomain:function(c){var h=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[h]},_abortLoading:function(){var c,h;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(h=this._tiles[c].el,h.onload=d,h.onerror=d,!h.complete)){h.src=E;var S=this._tiles[c].coords;rn(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),tp.prototype._removeTile.call(this,c)},_tileReady:function(c,h,S){if(!(!this._map||S&&S.getAttribute("src")===E))return tp.prototype._tileReady.call(this,c,h,S)}});function dN(c,h){return new ec(c,h)}var pN=ec.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 R=h.detectRetina&&Ye.retina?2:1,G=this.getTileSize();S.width=G.x*R,S.height=G.y*R,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,ec.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])),R=C.min,G=C.max,ae=(this._wmsVersion>=1.3&&this._crs===oN?[R.y,R.x,G.y,G.x]:[R.x,R.y,G.x,G.y]).join(","),pe=ec.prototype.getTileUrl.call(this,c);return pe+x(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 TK(c,h){return new pN(c,h)}ec.WMS=pN,dN.wms=TK;var pa=no.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),R=this._map.project(this._center,h),G=C.multiplyBy(-S).add(R).subtract(this._map._getNewPixelOrigin(c,h));Ye.any3d?Sl(this._container,G,S):On(this._container,G)},_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()}}),hN=pa.extend({options:{tolerance:0},getEvents:function(){var c=pa.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){pa.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(){B(this._redrawRequest),delete this._ctx,rn(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)){pa.prototype._update.call(this);var c=this._bounds,h=this._container,S=c.getSize(),C=Ye.retina?2:1;On(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(){pa.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,R;for(R=0;R<h.length;R++){if(C=Number(h[R]),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||F(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,R,G,ae=c._parts,pe=ae.length,me=this._ctx;if(pe){for(me.beginPath(),S=0;S<pe;S++){for(C=0,R=ae[S].length;C<R;C++)G=ae[S][C],me[C?"lineTo":"moveTo"](G.x,G.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),R=(Math.max(Math.round(c._radiusY),1)||C)/C;R!==1&&(S.save(),S.scale(1,R)),S.beginPath(),S.arc(h.x,h.y/R,C,0,Math.PI*2,!1),R!==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,R=this._drawFirst;R;R=R.next)S=R.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&&(gn(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,R=this._drawFirst;R;R=R.next)S=R.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 mN(c){return Ye.canvas?new hN(c):null}var np=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">')}}(),CK={_initContainer:function(){this._container=Ot("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(pa.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var h=c._container=np("shape");it(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",c._path=np("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;rn(h),c.removeInteractiveTarget(h),delete this._layers[l(c)]},_updateStyle:function(c){var h=c._stroke,S=c._fill,C=c.options,R=c._container;R.stroked=!!C.stroke,R.filled=!!C.fill,C.stroke?(h||(h=c._stroke=np("stroke")),R.appendChild(h),h.weight=C.weight+"px",h.color=C.color,h.opacity=C.opacity,C.dashArray?h.dashStyle=w(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=C.lineCap.replace("butt","flat"),h.joinstyle=C.lineJoin):h&&(R.removeChild(h),c._stroke=null),C.fill?(S||(S=c._fill=np("fill")),R.appendChild(S),S.color=C.fillColor||C.color,S.opacity=C.fillOpacity):S&&(R.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){qu(c._container)},_bringToBack:function(c){Ku(c._container)}},og=Ye.vml?np:Ee,rp=pa.extend({_initContainer:function(){this._container=og("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=og("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){rn(this._container),Lt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){pa.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)),On(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=og("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){rn(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,R="a"+S+","+C+" 0 1,0 ",G=c._empty()?"M0 0":"M"+(h.x-S)+","+h.y+R+S*2+",0 "+R+-S*2+",0 ";this._setPath(c,G)},_setPath:function(c,h){c._path.setAttribute("d",h)},_bringToFront:function(c){qu(c._path)},_bringToBack:function(c){Ku(c._path)}});Ye.vml&&rp.include(CK);function vN(c){return Ye.svg||Ye.vml?new rp(c):null}gt.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&&mN(c)||vN(c)}});var gN=Xu.extend({initialize:function(c,h){Xu.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 kK(c,h){return new gN(c,h)}rp.create=og,rp.pointsToPath=ue,da.geometryToLayer=Xv,da.coordsToLatLng=Cx,da.coordsToLatLngs=Jv,da.latLngToCoords=kx,da.latLngsToCoords=eg,da.getFeature=Ju,da.asFeature=tg,gt.mergeOptions({boxZoom:!0});var yN=ko.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(){rn(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(),qd(),cx(),this._startPoint=this._map.mouseEventToContainerPoint(c),tt(document,{contextmenu:Cl,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=Ot("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();On(this._box,h.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(rn(this._box),gn(this._container,"leaflet-crosshair")),Kd(),fx(),Lt(document,{contextmenu:Cl,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())}});gt.addInitHook("addHandler","boxZoom",yN),gt.mergeOptions({doubleClickZoom:!0});var bN=ko.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,R=c.originalEvent.shiftKey?S-C:S+C;h.options.doubleClickZoom==="center"?h.setZoom(R):h.setZoomAround(c.containerPoint,R)}});gt.addInitHook("addHandler","doubleClickZoom",bN),gt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _N=ko.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new ts(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(){gn(this._map._container,"leaflet-grab"),gn(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,R=(C-h+S)%c+h-S,G=(C+h+S)%c-h-S,ae=Math.abs(R+S)<Math.abs(G+S)?R:G;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 R=this._lastPos.subtract(this._positions[0]),G=(this._lastTime-this._times[0])/1e3,ae=S.easeLinearity,pe=R.multiplyBy(ae/G),me=pe.distanceTo([0,0]),xe=Math.min(S.inertiaMaxSpeed,me),Ie=pe.multiplyBy(xe/me),Ke=xe/(S.inertiaDeceleration*ae),lt=Ie.multiplyBy(-Ke/2).round();!lt.x&&!lt.y?h.fire("moveend"):(lt=h._limitOffset(lt,h.options.maxBounds),F(function(){h.panBy(lt,{duration:Ke,easeLinearity:ae,noMoveStart:!0,animate:!0})}))}}});gt.addInitHook("addHandler","dragging",_N),gt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var wN=ko.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,R;for(C=0,R=S.left.length;C<R;C++)h[S.left[C]]=[-1*c,0];for(C=0,R=S.right.length;C<R;C++)h[S.right[C]]=[c,0];for(C=0,R=S.down.length;C<R;C++)h[S.down[C]]=[0,c];for(C=0,R=S.up.length;C<R;C++)h[S.up[C]]=[0,-1*c]},_setZoomDelta:function(c){var h=this._zoomKeys={},S=this.keyCodes,C,R;for(C=0,R=S.zoomIn.length;C<R;C++)h[S.zoomIn[C]]=c;for(C=0,R=S.zoomOut.length;C<R;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 R=S.wrapLatLng(S.unproject(S.project(S.getCenter()).add(C)));S.panTo(R)}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;Cl(c)}}});gt.addInitHook("addHandler","keyboard",wN),gt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var xN=ko.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=YA(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),Cl(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),R=4*Math.log(2/(1+Math.exp(-Math.abs(C))))/Math.LN2,G=S?Math.ceil(R/S)*S:R,ae=c._limitZoom(h+(this._delta>0?G:-G))-h;this._delta=0,this._startTime=null,ae&&(c.options.scrollWheelZoom==="center"?c.setZoom(h+ae):c.setZoomAround(this._lastMousePos,h+ae))}});gt.addInitHook("addHandler","scrollWheelZoom",xN);var jK=600;gt.mergeOptions({tapHold:Ye.touchNative&&Ye.safari&&Ye.mobile,tapTolerance:15});var ON=ko.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",ir),tt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),jK),tt(document,"touchend touchcancel contextmenu",this._cancel,this),tt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){Lt(document,"touchend",ir),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)}});gt.addInitHook("addHandler","tapHold",ON),gt.mergeOptions({touchZoom:Ye.touch,bounceAtZoomLimits:!0});var SN=ko.extend({addHooks:function(){it(this._map._container,"leaflet-touch-zoom"),tt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){gn(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),ir(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]),R=S.distanceTo(C)/this._startDist;if(this._zoom=h.getScaleZoom(R,this._startZoom),!h.options.bounceAtZoomLimits&&(this._zoom<h.getMinZoom()&&R<1||this._zoom>h.getMaxZoom()&&R>1)&&(this._zoom=h._limitZoom(this._zoom)),h.options.touchZoom==="center"){if(this._center=this._startLatLng,R===1)return}else{var G=S._add(C)._divideBy(2)._subtract(this._centerPoint);if(R===1&&G.x===0&&G.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(G),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),B(this._animRequest);var ae=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=F(ae,this,!0),ir(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,B(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))}});gt.addInitHook("addHandler","touchZoom",SN),gt.BoxZoom=yN,gt.DoubleClickZoom=bN,gt.Drag=_N,gt.Keyboard=wN,gt.ScrollWheelZoom=xN,gt.TapHold=ON,gt.TouchZoom=SN,n.Bounds=W,n.Browser=Ye,n.CRS=fe,n.Canvas=hN,n.Circle=Tx,n.CircleMarker=Qv,n.Class=H,n.Control=to,n.DivIcon=fN,n.DivOverlay=jo,n.DomEvent=Gq,n.DomUtil=Wq,n.Draggable=ts,n.Evented=te,n.FeatureGroup=ca,n.GeoJSON=da,n.GridLayer=tp,n.Handler=ko,n.Icon=Qu,n.ImageOverlay=ng,n.LatLng=oe,n.LatLngBounds=q,n.Layer=no,n.LayerGroup=Zu,n.LineUtil=aK,n.Map=gt,n.Marker=Zv,n.Mixin=eK,n.Path=ns,n.Point=X,n.PolyUtil=tK,n.Polygon=Xu,n.Polyline=fa,n.Popup=rg,n.PosAnimation=GA,n.Projection=sK,n.Rectangle=gN,n.Renderer=pa,n.SVG=rp,n.SVGOverlay=cN,n.TileLayer=ec,n.Tooltip=ig,n.Transformation=J,n.Util=Y,n.VideoOverlay=uN,n.bind=a,n.bounds=re,n.canvas=mN,n.circle=mK,n.circleMarker=hK,n.control=Xd,n.divIcon=SK,n.extend=i,n.featureGroup=fK,n.geoJSON=lN,n.geoJson=yK,n.gridLayer=EK,n.icon=dK,n.imageOverlay=bK,n.latLng=le,n.latLngBounds=ee,n.layerGroup=cK,n.map=qq,n.marker=pK,n.point=V,n.polygon=gK,n.polyline=vK,n.popup=xK,n.rectangle=kK,n.setOptions=g,n.stamp=l,n.svg=vN,n.svgOverlay=wK,n.tileLayer=dN,n.tooltip=OK,n.transformation=K,n.version=r,n.videoOverlay=_K;var PK=window.L;n.noConflict=function(){return window.L=PK,this},window.L=n})})(bC,bC.exports);var Iv=bC.exports;const tF=Et(Iv);function OA(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function SA(e,t){return t==null?function(n,r){const i=I.useRef();return i.current||(i.current=e(n,r)),i}:function(n,r){const i=I.useRef();i.current||(i.current=e(n,r));const o=I.useRef(n),{instance:a}=i.current;return I.useEffect(function(){o.current!==n&&(t(a,n,o.current),o.current=n)},[a,n,r]),i}}function $Ve(e,t){I.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 NG(e){return function(t){const n=PG(),r=e(xA(t,n),n);return CG(n.map,t.attribution),AG(r.current,t.eventHandlers),$Ve(r.current,n),r}}function BVe(e,t){const n=SA(e,t),r=NG(n);return LVe(r)}function zVe(e,t){const n=SA(e),r=UVe(n,t);return IVe(r)}function VVe(e,t){const n=SA(e,t),r=NG(n);return FVe(r)}function HVe(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 _C(){return _C=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},_C.apply(this,arguments)}function WVe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:u,...f},d){const[p]=I.useState({className:i,id:o,style:s}),[m,v]=I.useState(null);I.useImperativeHandle(d,()=>(m==null?void 0:m.map)??null,[m]);const g=I.useCallback(b=>{if(b!==null&&m===null){const _=new Iv.Map(b,f);n!=null&&u!=null?_.setView(n,u):e!=null&&_.fitBounds(e,t),l!=null&&_.whenReady(l),v(RVe(_))}},[]);I.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const x=m?M.createElement(jG,{value:m},r):a??null;return M.createElement("div",_C({},p,{ref:g}),x)}const YVe=I.forwardRef(WVe),GVe=BVe(function({position:e,...t},n){const r=new Iv.Marker(e,t);return OA(r,DVe(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())}),qVe=zVe(function(e,t){const n=new Iv.Popup(e,t.overlayContainer);return OA(n,t)},function(e,t,{position:n},r){I.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])}),KVe=VVe(function({url:e,...t},n){const r=new Iv.TileLayer(e,xA(t,n));return OA(r,n)},function(e,t,n){HVe(e,t,n);const{url:r}=t;r!=null&&r!==n.url&&e.setUrl(r)}),ZVe=()=>y.jsx(KVe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),QVe=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}},MG=({toggle:e,isOpen:t,title:n,locations:r=[]})=>y.jsx(Ka,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:y.jsxs(aa,{className:"map-modal__modal-body",children:[y.jsxs("h3",{className:"map-modal__modal-title",children:[n,y.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),y.jsxs(YVe,{...QVe(r),children:[y.jsx(ZVe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>y.jsx(GVe,{position:o,children:y.jsxs(qVe,{children:[y.jsx("b",{children:a})," visit",a>1?"s":""," from ",y.jsx("b",{children:i})]})},s))]})]})}),XVe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=Cn(),[a,s]=Cn(),[l,u]=I.useState([]),f=iw(),d=I.useCallback(p=>{u(p?n.filter(p):n),i()},[n,i]);return y.jsxs(y.Fragment,{children:[!t&&y.jsx(_t,{color:"link",className:"open-map-modal-btn__btn",id:f,onClick:()=>d(),"aria-label":"Show in map",children:y.jsx(Ne,{icon:A2})}),t&&y.jsxs(dv,{isOpen:a,toggle:s,children:[y.jsx(gd,{color:"link",className:"open-map-modal-btn__btn",id:f,children:y.jsx(Ne,{icon:A2})}),y.jsxs(vd,{end:!0,children:[y.jsx(Re,{onClick:()=>d(),children:"Show all locations"}),y.jsx(Re,{onClick:()=>d(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),y.jsx(Jr,{placement:"left",target:f,children:"Show in map"}),y.jsx(MG,{toggle:o,isOpen:r,title:e,locations:l})]})},RG=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:l=!1}=t,u=p=>({active:a===p,onClick:()=>e({...t,orphanVisitsType:p===a?void 0:p})}),f=I.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),d=I.useCallback(()=>e({...t,loadPrevInterval:!l}),[l,e,t]);return y.jsxs(Qa,{disabled:o,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&y.jsxs(y.Fragment,{children:[y.jsx(Re,{active:l,onClick:d,children:"Compare with previous period"}),y.jsx(Re,{divider:!0,tag:"hr"})]}),y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Bots:"}),y.jsx(Re,{active:s,onClick:f,children:"Exclude potential bots"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),y.jsx(Re,{...u("base_url"),children:"Base URL"}),y.jsx(Re,{...u("invalid_short_url"),children:"Invalid short URL"}),y.jsx(Re,{...u("regular_404"),children:"Regular 404"})]}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsx(Re,{disabled:t.excludeBots===void 0&&t.loadPrevInterval===void 0&&t.orphanVisitsType===void 0,onClick:()=>e({excludeBots:void 0,loadPrevInterval:void 0,orphanVisitsType:void 0}),children:y.jsx("i",{children:"Reset to defaults"})})]})},DG=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return y.jsxs(y.Fragment,{children:[t&&r===null&&y.jsx(el,{loading:!0}),t&&r!==null&&y.jsxs(el,{loading:!0,children:["This is going to take a while... :S",y.jsx($B,{value:r,striped:r>=100,className:"mt-3"})]}),n&&y.jsx(li,{type:"error",children:y.jsx(Ua,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},Wy=({children:e,showFallback:t})=>y.jsxs(y.Fragment,{children:[t&&y.jsx(el,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&y.jsx(y.Fragment,{children:e})]}),JVe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=Cn();return y.jsx(Qt,{title:y.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:y.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[y.jsxs("dl",{className:"m-0 me-3",children:[y.jsx("dt",{children:"Delete visits."}),y.jsxs("dd",{className:"m-0",children:["This will delete ",y.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&y.jsx(_t,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&y.jsxs(_t,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!n&&y.jsx(y.Fragment,{children:"Click again to confirm"}),n&&y.jsx(y.Fragment,{children:"Deleting..."})]})]})})},eHe={"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"},LG={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"},yn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Cr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},hs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class we{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=we.getVersionPrecision(t),o=we.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=we.map([t,n],u=>{const f=a-we.getVersionPrecision(u),d=u+new Array(f+1).join(".0");return we.map(d.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(s=>{r[s]=a[s]})}return t}static getBrowserAlias(t){return eHe[t]}static getBrowserTypeByAlias(t){return LG[t]||""}}const Mt=/version\/(\d+(\.?_?\d+)+)/i,tHe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=we.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(Mt,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(Mt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=we.getFirstMatch(Mt,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(Mt,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(Mt,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(Mt,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(Mt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=we.getFirstMatch(Mt,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(Mt,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(Mt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=we.getFirstMatch(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,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(Mt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=we.getFirstMatch(Mt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=we.getFirstMatch(Mt,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)}}}],nHe=[{test:[/Roku\/DVP/],describe(e){const t=we.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Cr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=we.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Cr.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:Cr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Cr.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:Cr.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:Cr.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:Cr.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:Cr.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:Cr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=we.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Cr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=we.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Cr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Cr.Linux}}},{test:[/CrOS/],describe(){return{name:Cr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=we.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Cr.PlayStation4,version:t}}}],rHe=[{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:yn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:yn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:yn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:yn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:yn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:yn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:yn.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:yn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:yn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:yn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:yn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:yn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:yn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:yn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:yn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:yn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:yn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:yn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:yn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:yn.tv}}}],iHe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:hs.Blink};const t=we.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:hs.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:hs.Trident},n=we.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:hs.Presto},n=we.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:hs.Gecko},n=we.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:hs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:hs.WebKit},n=we.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class nF{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(tHe,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(nHe,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(rHe,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(iHe,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 oHe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new nF(t,n)}static parse(t){return new nF(t).getResult()}static get BROWSER_MAP(){return LG}static get ENGINE_MAP(){return hs}static get OS_MAP(){return Cr}static get PLATFORMS_MAP(){return yn}}const cy="Others",aHe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],sHe=e=>{if(!Gl(e))return{browser:cy,os:cy};const{browser:{name:t},os:{name:n}}=oHe.parse(e);return{os:n??cy,browser:t&&aHe.includes(t)?t:cy}},lHe=e=>{var t;return Gl(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},IG=(e,t)=>e[t]!==void 0,rF=e=>typeof e=="number"?e:e?parseFloat(e):0,uHe=(e,{os:t})=>{e[t]=(e[t]||0)+1},cHe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},fHe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},FG=e=>(t,n)=>{const r=IG(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},dHe=FG("country"),pHe=FG("city"),hHe=(e,t)=>{if(!IG(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[rF(r),rF(i)]};o.count+=1,e[n]=o},mHe=(e,t)=>{if(!Rme(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},wC=e=>e.reduce((t,n)=>(uHe(t.os,n),cHe(t.browsers,n),fHe(t.referrers,n),dHe(t.countries,n),pHe(t.cities,n),hHe(t.citiesForMap,n),mHe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),E_=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t,s={date:r,potentialBot:a,...sHe(n),referer:lHe(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 Hj(t)?{...s,type:t.type,visitedUrl:t.visitedUrl}:s}),vHe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:E_,processStatsFromVisits:wC},Symbol.toStringTag,{value:"Module"})),Yp=20,gHe=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),yHe=(e,t)=>t.filter(n=>gHe(n,e)),bHe=(e,t)=>v9(t,e),_He=(e,t,n)=>{const r=t?yHe(t,e):[...e],i=bHe(n,r),o=i.length;return{visitsGroups:nf(i,Yp),total:o}},ha="visits-table__header-cell visits-table__sticky",wHe=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var o;const a=qj(767,r),[s,l]=I.useState(void 0),u=I.useRef(s),[f,d]=I.useState({}),p=I.useMemo(()=>_He(e,s,f),[e,s,f]),[m,v]=I.useState(1),g=m*Yp,x=g-Yp,b=8+Number(i),_=O=>()=>d({field:O,dir:aw(O,f.field,f.dir)}),w=O=>y.jsx(vh,{currentOrder:f,field:O,className:"visits-table__header-icon"});return I.useEffect(()=>{u.current!==s&&(v(1),n([])),u.current=s},[s,n]),y.jsx("div",{className:"table-responsive-md",children:y.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[y.jsxs("thead",{className:"visits-table__header",children:[y.jsxs("tr",{children:[y.jsxs("th",{className:`${ha} text-center`,onClick:()=>n(t.length<p.total?p.visitsGroups.flat():[]),children:[y.jsx("span",{className:"sr-only",children:"Is selected"}),y.jsx(Ne,{icon:Wh,className:We({"text-primary":t.length>0})})]}),y.jsxs("th",{className:`${ha} text-center`,onClick:_("potentialBot"),children:[y.jsx("span",{className:"sr-only",children:"Is bot"}),y.jsx(Ne,{icon:rR}),w("potentialBot")]}),y.jsxs("th",{className:ha,onClick:_("date"),children:["Date",w("date")]}),y.jsxs("th",{className:ha,onClick:_("country"),children:["Country",w("country")]}),y.jsxs("th",{className:ha,onClick:_("city"),children:["City",w("city")]}),y.jsxs("th",{className:ha,onClick:_("browser"),children:["Browser",w("browser")]}),y.jsxs("th",{className:ha,onClick:_("os"),children:["OS",w("os")]}),y.jsxs("th",{className:ha,onClick:_("referer"),children:["Referrer",w("referer")]}),i&&y.jsxs("th",{className:ha,onClick:_("visitedUrl"),children:["Visited URL",w("visitedUrl")]})]}),y.jsx("tr",{children:y.jsx("td",{colSpan:b,className:"p-0",children:y.jsx(gv,{noBorder:!0,large:!1,onChange:l})})})]}),y.jsxs("tbody",{children:[p.total===0&&y.jsx("tr",{children:y.jsx("td",{colSpan:b,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 y.jsxs("tr",{style:{cursor:"pointer"},className:We({"table-active":T}),onClick:()=>n(T?t.filter(k=>k!==O):[...t,O]),children:[y.jsx("td",{className:"text-center",children:T&&y.jsx(Ne,{icon:Wh,className:"text-primary"})}),y.jsx("td",{className:"text-center",children:O.potentialBot&&y.jsxs(y.Fragment,{children:[y.jsx(Ne,{icon:rR,id:`botIcon${E}`}),y.jsx(Jr,{placement:"right",target:`botIcon${E}`,children:"Potentially a visit from a bot or crawler"})]})}),y.jsx("td",{children:y.jsx(fb,{date:O.date})}),y.jsx("td",{children:O.country}),y.jsx("td",{children:O.city}),y.jsx("td",{children:O.browser}),y.jsx("td",{children:O.os}),y.jsx("td",{children:O.referer}),i&&y.jsx("td",{children:O.visitedUrl})]},E)})]}),p.total>Yp&&y.jsx("tfoot",{children:y.jsx("tr",{children:y.jsx("td",{colSpan:b,className:"visits-table__footer-cell visits-table__sticky",children:y.jsxs("div",{className:"row",children:[y.jsx("div",{className:"col-md-6",children:y.jsx(yP,{pagesCount:Math.ceil(p.total/Yp),currentPage:m,setCurrentPage:v,centered:a})}),y.jsx("div",{className:We("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:y.jsxs("div",{children:["Visits ",y.jsx("b",{children:hn(x+1)})," to"," ",y.jsx("b",{children:hn(Math.min(g,p.total))})," of"," ",y.jsx("b",{children:hn(p.total)})]})})]})})})})]})})},ms={byTime:{title:"By time",subPath:"by-time",icon:nee},byContext:{title:"By context",subPath:"by-context",icon:Pk},byLocation:{title:"By location",subPath:"by-location",icon:A2},list:{title:"List",subPath:"list",icon:w7},options:{title:"Options",subPath:"options",icon:S7,shouldRender:({deletion:e})=>!!e}};Object.freeze(ms);const CS=({display:e})=>e&&y.jsx("div",{className:"mt-3 mx-auto w-75",children:y.jsx(Qt,{children:y.jsxs("div",{className:"d-flex gap-2",children:[y.jsx(Ne,{icon:Xee,className:"mt-1"}),y.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let fy;const Fv=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:l,prevVisits:u,loading:f,errorData:d,fallbackInterval:p}=n,[{dateRange:m,visitsFilter:v,loadPrevInterval:g},x]=TG(),b=vl("visits"),[_,w]=I.useState(),O=I.useCallback(({startDate:j,endDate:A},$)=>{x({dateRange:{startDate:j??void 0,endDate:A??void 0}}),w($)},[x]),E=I.useRef(m??p??(b==null?void 0:b.defaultInterval)??"last30Days"),[T,k]=I.useState([]),[P,D]=I.useState(),N=I.useRef(!0),{search:F}=xr(),B=I.useCallback(j=>j?`${j}${F}`:F,[F]),Y=I.useMemo(()=>E_(l),[l]),H=I.useMemo(()=>u&&E_(u),[u]),{os:Q,browsers:Z,referrers:te,countries:X,cities:z,citiesForMap:V,visitedUrls:W}=I.useMemo(()=>wC(Y),[Y]),re=I.useMemo(()=>wC(H??[]),[H]),q=I.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Y,{type:"main"})],H&&["Previous period",Object.assign(H,{type:"previous"})],T.length>0&&[P??"Selected",Object.assign(T,{type:"highlighted"})]].filter(Boolean)),[P,T,H,Y]),ee=I.useMemo(()=>({...v,excludeBots:v.excludeBots??(b==null?void 0:b.excludeBots),loadPrevInterval:g??(b==null?void 0:b.loadPrevInterval)}),[g,v,b==null?void 0:b.excludeBots,b==null?void 0:b.loadPrevInterval]),oe=I.useMemo(()=>Object.values(V),[V]),le=I.useCallback(j=>{fy=void 0,k(j)},[]),fe=I.useCallback((j,A)=>{const $=`${j}_${A}`;fy===$?(k([]),D(void 0),fy=void 0):(k(Y.filter(J=>J[j]===A)),D(A),fy=$)},[Y]);return I.useEffect(()=>i,[i]),I.useEffect(()=>{const j=m??wz(E.current),{loadPrevInterval:A,...$}=ee,J={doIntervalFallback:N.current,loadPrevInterval:A};r({dateRange:j,filter:$},J),le([]),N.current=!1},[m,v,r,ee,le]),I.useEffect(()=>{p&&E.current===((b==null?void 0:b.defaultInterval)??"last30Days")&&(E.current=p)},[p,b==null?void 0:b.defaultInterval]),y.jsxs(y.Fragment,{children:[t,y.jsx("section",{className:"mt-3",children:y.jsxs("div",{className:"row flex-md-row-reverse",children:[y.jsx("div",{className:"col-lg-7 col-xl-6",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(hP,{disabled:f,dateRangeOrInterval:_??m??E.current,defaultText:"All visits",onDatesChange:O})}),y.jsx(RG,{disabled:f,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ee,onChange:({loadPrevInterval:j,...A})=>x({visitsFilter:A,loadPrevInterval:j})})]})}),l.length>0&&y.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:y.jsxs("div",{className:"d-flex",children:[y.jsx(zz,{className:"btn-md-block",amount:Y.length,onClick:()=>a(Y)}),y.jsxs(_t,{outline:!0,disabled:T.length===0,className:"btn-md-block ms-2",onClick:()=>le([]),children:["Clear selection ",T.length>0&&y.jsxs(y.Fragment,{children:["(",hn(T.length),")"]})]})]})})]})}),y.jsxs("section",{className:"mt-3",children:[y.jsx(DG,{info:n}),!f&&!d&&y.jsxs(y.Fragment,{children:[y.jsx(m9,{fill:!0,children:Object.values(ms).map(({title:j,icon:A,subPath:$,shouldRender:J},K)=>!J||J(e)?y.jsxs(fh,{to:B($),replace:!0,children:[y.jsx(Ne,{icon:A}),y.jsx("span",{className:"ms-2 d-none d-lg-inline",children:j})]},K):void 0).filter(Boolean)}),y.jsx(Pr,{children:y.jsxs(Y_,{children:[y.jsx(yt,{path:ms.byTime.subPath,element:y.jsxs(Wy,{showFallback:l.length===0,children:[y.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:y.jsx(EG,{visitsGroups:q,setSelectedVisits:le})}),y.jsx(CS,{display:!!ee.loadPrevInterval&&!u})]})}),y.jsx(yt,{path:ms.byContext.subPath,element:y.jsxs(Wy,{showFallback:l.length===0,children:[y.jsx("div",{className:We("mt-3 col-lg-6",{"col-xl-4":!s}),children:y.jsx(Q8,{title:"Operating systems",stats:Q,prevStats:re.os})}),y.jsx("div",{className:We("mt-3 col-lg-6",{"col-xl-4":!s}),children:y.jsx(Q8,{title:"Browsers",stats:Z,prevStats:re.browsers})}),y.jsx("div",{className:We("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:y.jsx(uy,{title:"Referrers",withPagination:!1,stats:te,prevStats:re.referrers,highlightedStats:Vg(T,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:j=>fe("referer",j)})}),s&&y.jsx("div",{className:"mt-3 col-lg-6",children:y.jsx(uy,{title:"Visited URLs",stats:W,prevStats:re.visitedUrls,highlightedStats:Vg(T,"visitedUrl"),highlightedLabel:P,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:j=>fe("visitedUrl",j)})}),y.jsx("div",{className:"col-12",children:y.jsx(CS,{display:!!ee.loadPrevInterval&&!u})})]})}),y.jsx(yt,{path:ms.byLocation.subPath,element:y.jsxs(Wy,{showFallback:l.length===0,children:[y.jsx("div",{className:"col-lg-6 mt-3",children:y.jsx(uy,{title:"Countries",stats:X,prevStats:re.countries,highlightedStats:Vg(T,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:j=>fe("country",j)})}),y.jsx("div",{className:"col-lg-6 mt-3",children:y.jsx(uy,{title:"Cities",stats:z,prevStats:re.cities,highlightedStats:Vg(T,"city"),highlightedLabel:P,extraHeaderContent:j=>oe.length>0&&y.jsx(XVe,{modalTitle:"Cities",locations:oe,activeCities:j}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:j=>fe("city",j)})}),y.jsx("div",{className:"col-12",children:y.jsx(CS,{display:!!ee.loadPrevInterval&&!u})})]})}),y.jsx(yt,{path:ms.list.subPath,element:y.jsx("div",{className:"col-12",children:y.jsx(wHe,{visits:Y,selectedVisits:T,setSelectedVisits:le,isOrphanVisits:s})})}),o&&y.jsx(yt,{path:ms.options.subPath,element:y.jsx("div",{className:"col-12 mt-3",children:y.jsx(JVe,{...o})})}),y.jsx(yt,{path:"*",element:y.jsx(Ok,{replace:!0,to:B(ms.byTime.subPath)})})]})})]})]})]})},UG=Oo(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=en(UG),{domain:i=""}=hd(),[o,a=o]=i.split("_"),s=I.useCallback((u,f)=>e({domain:a,options:f,params:u}),[a,e]),l=I.useCallback(u=>r.exportVisits(`domain_${o}_visits.csv`,u),[o,r]);return y.jsx(Fv,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:l,children:y.jsx(Tv,{visits:t.visits,title:`"${o}" visits`})})},()=>[Dr.visits]),xHe=tn(UG,["ReportExporter"]),$G=Oo(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=en($G),i=I.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=I.useCallback((a,s)=>e({options:s,params:a}),[e]);return y.jsx(Fv,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:y.jsx(Tv,{title:"Non-orphan visits",visits:t.visits})})},()=>[Dr.visits]),OHe=tn($G,["ReportExporter"]),BG=Oo(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=$u("orphanVisitsDeletion"),{ReportExporter:a}=en(BG),s=I.useCallback(f=>a.exportVisits("orphan_visits.csv",f),[a]),l=I.useCallback((f,d)=>{var p;return e({options:d,params:f,orphanVisitsType:(p=f.filter)==null?void 0:p.orphanVisitsType})},[e]),u=I.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return y.jsx(Fv,{getVisits:l,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:y.jsx(Tv,{title:"Orphan visits",visits:t.visits})})},()=>[Dr.orphanVisits]),SHe=tn(BG,["ReportExporter"]),zG="shlink/orphanVisits",EHe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},THe=e=>xv({typePrefix:`${zG}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=wv(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),CHe=e=>Ov({name:zG,initialState:EHe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>_v(o.date,r,i))}}),VG="shlink/orphanVisits",kHe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},jHe=(e,t)=>!t||t===e.type,PHe=({data:e,...t},n)=>{const r=e.filter(i=>Hj(i)&&jHe(i,n));return{...t,data:r}},AHe=e=>xv({typePrefix:`${VG}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits(s).then(l=>PHe(l,t)),a=wv(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),NHe=(e,t)=>Ov({name:VG,initialState:kHe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:o}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:a,shortUrl:s})=>!s&&_v(a.date,i,o))}}),HG="shlink/orphanVisitsDeletion",iF={deletedVisits:0,deleting:!1,error:!1},MHe=e=>pr(`${HG}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),RHe=e=>Dn({name:HG,initialState:iF,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:Qi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...iF,deletedVisits:i}})}}),WG="shlink/shortUrlVisits",DHe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},LHe=e=>xv({typePrefix:`${WG}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=l=>i.getShortUrlVisits(t,{...l,domain:n}),s=wv(o,l=>i.getShortUrlVisits(t,{...l,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),IHe=(e,t)=>Ov({name:WG,initialState:DHe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},o)=>Oz(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),YG="shlink/shortUrlVisitsDeletion",oF={shortCode:"",deletedVisits:0,deleting:!1,error:!1},FHe=e=>pr(`${YG}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),UHe=e=>Dn({name:YG,initialState:oF,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:Qi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...oF,shortCode:i,domain:o,deletedVisits:a}})}}),GG="shlink/tagVisits",$He={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},BHe=e=>xv({typePrefix:`${GG}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=wv(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),zHe=e=>Ov({name:GG,initialState:$He,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>Ez(r,t,n==null?void 0:n.dateRange)}),qG="shlink/visitsOverview",dy={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},aF=e=>e.filter(({visit:t})=>t.potentialBot).length,VHe=e=>pr(`${qG}/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}}))),HHe=e=>Dn({name:qG,initialState:dy,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...dy,loading:!0})),t.addCase(e.rejected,()=>({...dy,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...dy,...r})),t.addCase(Sd,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=Dme(o.createdVisits),l=a.length,u=aF(a),f=l-u,d=s.length,p=aF(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}}})}}),WHe=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",o=(e==null?void 0:e.longUrl)??"",a=e==null?void 0:e.title;return y.jsxs(Tv,{title:y.jsxs(y.Fragment,{children:["Visits for ",y.jsx(Ta,{href:i})]}),visits:r,shortUrl:e,children:[y.jsx("hr",{}),y.jsxs("div",{children:["Created: ",(()=>e?y.jsxs("span",{children:[y.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:y.jsx(fb,{date:e.dateCreated,relative:!0})}),y.jsx(Jr,{placement:"bottom",target:"created",children:y.jsx(fb,{date:e.dateCreated})})]}):y.jsx("small",{children:"Loading..."}))()]}),y.jsxs("div",{className:"long-url-container",children:[`${a?"Title":"Long URL"}: `,t&&y.jsx("small",{children:"Loading..."}),!t&&y.jsx(Ta,{href:o,children:a??o})]})]})},KG=Oo(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=$u("shortUrlVisitsDeletion"),{ReportExporter:l}=en(KG),{domain:u}=_d(),f=Dz(),d=I.useMemo(()=>({shortCode:f,domain:u}),[u,f]),p=I.useMemo(()=>{var x;return(x=n.shortUrls)==null?void 0:x.get(d)},[d,n.shortUrls]),m=I.useCallback((x,b)=>r({...d,options:b,params:x}),[r,d]),v=I.useCallback(x=>l.exportVisits(`short-url_${p==null?void 0:p.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,x),[l,p==null?void 0:p.shortUrl]),g=I.useMemo(()=>s?{deleteVisits:()=>o({shortCode:f,domain:u}),visitsDeletion:t}:void 0,[o,u,f,t,s]);return I.useEffect(()=>{i([d])},[d,i]),y.jsx(Fv,{getVisits:m,cancelGetVisits:a,visitsInfo:e,exportCsv:v,deletion:g,children:y.jsx(WHe,{shortUrl:p,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[Dr.shortUrlVisits(Lj(e.shortCode))]:[]),YHe=tn(KG,["ReportExporter"]),GHe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return y.jsx(Tv,{title:y.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[y.jsx("span",{className:"me-2",children:"Visits for"}),y.jsx(gw,{text:r,colorGenerator:t})]}),visits:n})},ZG=Oo(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=en(ZG),{tag:o=""}=hd(),a=I.useCallback((l,u)=>e({tag:o,params:l,options:u}),[e,o]),s=I.useCallback(l=>i.exportVisits(`tag_${o}_visits.csv`,l),[i,o]);return y.jsx(Fv,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:y.jsx(GHe,{tagVisits:t,colorGenerator:r})})},()=>[Dr.visits]),qHe=tn(ZG,["ColorGenerator","ReportExporter"]),EA=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=vl("visits"),l=I.useMemo(()=>Object.keys(a).reduce((_,w,O)=>(_[w]=Object.assign(E_(a[w]),{color:(t==null?void 0:t[w])??OG(O)}),_),{}),[t,a]),u=I.useMemo(()=>Object.values(a).every(_=>_.length===0),[a]),[{dateRange:f,visitsFilter:d},p]=TG(),[m,v]=I.useState(),g=I.useCallback(({startDate:_,endDate:w},O)=>{p({dateRange:{startDate:_??void 0,endDate:w??void 0}}),v(O)},[p]),x=I.useRef(f??(s==null?void 0:s.defaultInterval)??"last30Days"),b=I.useMemo(()=>({...d,excludeBots:d.excludeBots??(s==null?void 0:s.excludeBots)}),[d,s==null?void 0:s.excludeBots]);return I.useEffect(()=>{const _=f??wz(x.current);return n({params:{dateRange:_,filter:b}}),i},[i,f,n,b]),y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"mb-3",children:y.jsxs(Qt,{bodyClassName:"d-flex",children:[y.jsx(Qj,{}),y.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),y.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:y.jsxs("div",{className:"d-md-flex",children:[y.jsx("div",{className:"flex-grow-1",children:y.jsx(hP,{disabled:o,defaultText:"All visits",dateRangeOrInterval:m??x.current,onDatesChange:g})}),y.jsx(RG,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:b,onChange:({orphanVisitsType:_,excludeBots:w})=>p({visitsFilter:{orphanVisitsType:_,excludeBots:w}})})]})}),y.jsx(DG,{info:r}),!o&&y.jsx(Wy,{showFallback:u,children:y.jsx(EG,{visitsGroups:l})})]})},KHe=Oo(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=Gj("domains"),i=I.useCallback(o=>e({...o,domains:r}),[r,e]);return y.jsx(EA,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[Dr.visits]),ZHe=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(l=>[l,0])),a=(l,u)=>{o[l]=u;const f=Object.values(o),d=f.reduce((p,m)=>p+m,0);n(d/f.length)},s=Object.entries(e).map(([l,u])=>[l,Tz({visitsLoader:u,batchSize:i,shouldCancel:t,progressChanged:f=>a(l,f)})]);return async l=>{const u=await Promise.all(s.map(async([f,d])=>{const p=await d(l);return[f,p]}));return Object.fromEntries(u)}},TA=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Mn(`${e}/progressChanged`),i=pr(e,async(o,{getState:a,dispatch:s})=>{const l=t(o),u=await ZHe({visitsLoaders:l,shouldCancel:()=>n(a),progressChanged:f=>s(r(f))})(OE(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:r})},CA=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:l,actions:u}=Dn({name:e,initialState:n,reducers:{cancelGetVisits:d=>({...d,cancelLoad:!0})},extraReducers:d=>{d.addCase(i,()=>({...n,loading:!0})),d.addCase(o,(p,{error:m})=>({...n,errorData:Qi(m)??null})),d.addCase(a,(p,{payload:m})=>({...p,...m,loading:!1,progress:null,errorData:null})),d.addCase(s,(p,{payload:m})=>({...p,progress:m})),d.addCase(Sd,(p,{payload:m})=>{const{visitsGroups:v,...g}=p,x=Object.keys(v).map(_=>{const w=r({...g,groupKey:_},m.createdVisits).map(({visit:O})=>O);return[_,[...w,...v[_]]]}),b=Object.fromEntries(x);return{...g,visitsGroups:b}})}}),{cancelGetVisits:f}=u;return{reducer:l,cancelGetVisits:f}},QG="shlink/domainVisitsComparison",QHe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},XHe=e=>TA({typePrefix:`${QG}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getDomainVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),JHe=e=>CA({name:QG,initialState:QHe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>Sz(r,t,n==null?void 0:n.dateRange)}),XG="shlink/shortUrlVisitsComparison",eWe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},tWe=e=>TA({typePrefix:`${XG}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[Ij(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),nWe=e=>CA({name:XG,initialState:eWe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>Oz(r,iz(t),n==null?void 0:n.dateRange)}),JG="shlink/tagVisitsComparison",rWe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},iWe=e=>TA({typePrefix:`${JG}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getTagVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),oWe=e=>CA({name:JG,initialState:rWe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>Ez(r,t,n==null?void 0:n.dateRange)}),aWe=Oo(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=Gj("short-urls"),a=I.useMemo(()=>o.map(iz),[o]),s=I.useCallback(f=>e({...f,shortUrls:a}),[e,a]),l=I.useMemo(()=>{var f;return[...((f=r.shortUrls)==null?void 0:f.values())??[]]},[r.shortUrls]),u=I.useMemo(()=>{const{visitsGroups:f,loading:d,...p}=t,m=l.reduce((v,g)=>(v[g.shortUrl]=f[Ij(g)]??[],v),{});return{...p,visitsGroups:m,loading:d||r.loading}},[t,r.loading,l]);return I.useEffect(()=>{a.length>0&&i(a)},[i,a]),y.jsx(EA,{title:y.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${l.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:n})},()=>[Dr.visits]),eq=Oo(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=en(eq),i=Gj("tags"),o=I.useCallback(l=>e({...l,tags:i}),[e,i]),{visitsGroups:a}=t,s=I.useMemo(()=>Object.keys(a).reduce((l,u)=>(l[u]=r.getColorForKey(u),l),{}),[r,a]);return y.jsx(EA,{title:y.jsxs(y.Fragment,{children:["Comparing ",i.map(l=>y.jsx(gw,{colorGenerator:r,text:l},l))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[Dr.visits]),sWe=tn(eq,["ColorGenerator"]),lWe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>MG),e.factory("ShortUrlVisits",YHe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",qHe),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",sWe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>KHe),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>aWe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",xHe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",SHe),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",OHe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>vHe),e.serviceFactory("getShortUrlVisits",LHe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",tWe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",FHe,"apiClientFactory"),e.serviceFactory("getTagVisits",BHe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",iWe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",Hme,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",XHe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",AHe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",MHe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",THe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Sd),e.serviceFactory("loadVisitsOverview",VHe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",HHe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",Wme,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",CHe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",NHe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",RHe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",IHe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",UHe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",zHe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",oWe,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",JHe,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",nWe,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},Np=({children:e,to:t,className:n,...r})=>y.jsx(o7,{className:({isActive:i})=>We("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),uWe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=xr(),r=We("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return y.jsx("aside",{className:r,children:y.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[y.jsxs(Np,{to:i("/overview"),children:[y.jsx(Ne,{fixedWidth:!0,icon:Mee}),y.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),y.jsxs(Np,{to:i("/list-short-urls/1"),className:We({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[y.jsx(Ne,{fixedWidth:!0,icon:w7}),y.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),y.jsxs(Np,{to:i("/create-short-url"),children:[y.jsx(Ne,{fixedWidth:!0,icon:Fee,flip:"horizontal"}),y.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),y.jsxs(Np,{to:i("/manage-tags"),children:[y.jsx(Ne,{fixedWidth:!0,icon:x7}),y.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),y.jsxs(Np,{to:i("/manage-domains"),children:[y.jsx(Ne,{fixedWidth:!0,icon:dee}),y.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},tq=({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,TagVisitsComparison:p,DomainVisitsComparison:m,ShortUrlVisitsComparison:v}=en(tq),g=xr(),x=ml(),[b,_,w,O]=Cn();I.useEffect(()=>O(),[g,O]);const E=$u("domainVisits"),T=We("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":b}),k=ave(w,O);return y.jsxs(y.Fragment,{children:[y.jsx(Ne,{icon:see,className:T,onClick:_}),y.jsx("div",{...k,className:"shlink-layout__swipeable",children:y.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[y.jsx(uWe,{routePrefix:x,showOnMobile:b}),y.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>O(),children:y.jsx("div",{className:"container-xl",children:y.jsxs(Y_,{children:[y.jsx(yt,{index:!0,element:y.jsx(Ok,{replace:!0,to:"overview"})}),y.jsx(yt,{path:"/overview",element:y.jsx(u,{})}),y.jsx(yt,{path:"/list-short-urls/:page",element:y.jsx(n,{})}),y.jsx(yt,{path:"/create-short-url",element:y.jsx(r,{})}),y.jsx(yt,{path:"/short-code/:shortCode/visits/*",element:y.jsx(i,{})}),y.jsx(yt,{path:"/short-code/:shortCode/edit",element:y.jsx(f,{})}),y.jsx(yt,{path:"/short-urls/compare-visits",element:y.jsx(v,{})}),y.jsx(yt,{path:"/tag/:tag/visits/*",element:y.jsx(o,{})}),y.jsx(yt,{path:"/tags/compare-visits",element:y.jsx(p,{})}),E&&y.jsx(yt,{path:"/domain/:domain/visits/*",element:y.jsx(a,{})}),y.jsx(yt,{path:"/orphan-visits/*",element:y.jsx(s,{})}),y.jsx(yt,{path:"/non-orphan-visits/*",element:y.jsx(l,{})}),y.jsx(yt,{path:"/manage-tags",element:y.jsx(t,{})}),y.jsx(yt,{path:"/manage-domains",element:y.jsx(d,{})}),y.jsx(yt,{path:"/domains/compare-visits",element:y.jsx(m,{})}),e&&y.jsx(yt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},cWe=tn(tq,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison"]),fWe=!0,dWe=e=>M9({devTools:!fWe,reducer:xj({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlsDetails:e.shortUrlsDetailsReducer,shortUrlVisits:e.shortUrlVisitsReducer,shortUrlVisitsDeletion:e.shortUrlVisitsDeletionReducer,shortUrlVisitsComparison:e.shortUrlVisitsComparisonReducer,tagVisits:e.tagVisitsReducer,tagVisitsComparison:e.tagVisitsComparisonReducer,domainVisits:e.domainVisitsReducer,domainVisitsComparison:e.domainVisitsComparisonReducer,orphanVisits:e.orphanVisitsReducer,orphanVisitsDeletion:e.orphanVisitsDeletionReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),pWe=e=>{e.factory("Main",cWe),e.factory("store",dWe)},ua=new jpe,{container:hWe}=ua,mWe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),vWe=(e,t)=>(...n)=>e[t](...n),gWe=(e,t)=>({...e,[t]:vWe(hWe,t)}),Uv=(e,t=[])=>G$(e?mWe(e):null,t.reduce(gWe,{}));pWe(ua);Dwe(ua,Uv);tOe(ua,Uv);lWe(ua,Uv);bve(ua);vve(ua,Uv);Mve(ua,Uv);SOe(ua);let sF;const yWe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=Vpe(t),l=I.useRef(),[u,f]=I.useState(),d=Fu(),p=I.useMemo(()=>d?I.Fragment:i7,[d]);return I.useEffect(()=>{sF=n,e.value("apiClientFactory",()=>sF),a&&e.value("TagColorsStorage",a);const{container:m}=e,{Main:v,store:g,loadMercureInfo:x,listTags:b}=m;l.current=y.jsx(v,{createNotFound:o}),f(g),g.dispatch(x(r)),g.dispatch(b())},[n,o,r,a]),u?y.jsx(q$,{store:u,children:y.jsx(Ave,{value:r,children:y.jsx(zpe,{value:s,children:y.jsx(Rpe,{value:i,children:y.jsx(p,{children:l.current})})})})}):y.jsx(y.Fragment,{})},bWe="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=",_We="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==",wWe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",xWe=()=>{delete tF.Icon.Default.prototype._getIconUrl,tF.Icon.Default.mergeOptions({iconRetinaUrl:_We,iconUrl:bWe,shadowUrl:wWe})};xWe();const OWe=yWe(ua);function T_(e){return t=>{const{resetSelectedServer:n}=t;return I.useEffect(()=>{n()},[n]),y.jsx(e,{...t})}}let SWe=class extends I.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return y.jsx("div",{className:"home",children:y.jsxs(Qt,{className:"p-4",children:[y.jsx("h1",{children:"Oops! This is awkward :S"}),y.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),y.jsx("br",{}),y.jsx(_t,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const nq=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),EWe=({id:e,name:t})=>y.jsxs(YB,{tag:$t,to:`/server/${e}`,className:"servers-list__server-item",children:[t,y.jsx(Ne,{icon:Vee,className:"servers-list__server-item-icon"})]}),rq=({servers:e,children:t,embedded:n=!1})=>y.jsxs(y.Fragment,{children:[t&&y.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&y.jsx(VB,{"data-testid":"list",tag:"div",className:xd("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>y.jsx(EWe,{id:r,name:i},r))})]}),iq=({color:e=rm,className:t})=>y.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{fill:e,children:[y.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),y.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),y.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),y.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})}),TWe=({servers:e})=>{const t=oa(),n=Object.values(e),r=n.length>0;return I.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),y.jsx("div",{className:"home",children:y.jsx(di,{className:"home__main-card",children:y.jsxs(Pr,{className:"g-0",children:[y.jsx("div",{className:"col-md-5 d-none d-md-block",children:y.jsx("div",{className:"home__logo-wrapper",children:y.jsx("div",{className:"home__logo",children:y.jsx(iq,{})})})}),y.jsxs("div",{className:"col-md-7 home__servers-container",children:[y.jsx("div",{className:"home__title-wrapper",children:y.jsx("h1",{className:"home__title",children:"Welcome!"})}),y.jsx(rq,{embedded:!0,servers:n,children:!r&&y.jsxs("div",{className:"p-4 text-center",children:[y.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),y.jsx("p",{children:y.jsxs($t,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[y.jsx(Ne,{icon:Nk})," ",y.jsx("span",{className:"ms-1",children:"Add a server"})]})}),y.jsx("p",{className:"mb-0 mt-5",children:y.jsx(nq,{href:"https://shlink.io/documentation",children:y.jsxs("small",{children:[y.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",y.jsx(Ne,{icon:See})]})})})]})})]})]})})})},oq=()=>{const{ServersDropdown:e}=Ki(oq),[t,n,,r]=Cn(),i=xr(),{pathname:o}=i;I.useEffect(r,[i,r]);const a="/settings",s=xd("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return y.jsxs(uB,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[y.jsxs(cB,{tag:$t,to:"/",children:[y.jsx(iq,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),y.jsx(fB,{onClick:n,children:y.jsx(Ne,{icon:Bee,className:s})}),y.jsx(zae,{navbar:!0,isOpen:t,children:y.jsxs(qk,{navbar:!0,className:"ms-auto",children:[y.jsx(Kk,{children:y.jsxs(hB,{tag:$t,to:a,active:o.startsWith(a),children:[y.jsx(Ne,{icon:Yee})," Settings"]})}),y.jsx(e,{})]})})]})},CWe=Zi(oq,["ServersDropdown"]),kWe=({children:e})=>{const t=xr();return I.useEffect(()=>{scrollTo(0,0)},[t]),y.jsx(y.Fragment,{children:e})},kS=e=>Object.prototype.toString.call(e)==="[object Object]",aq=(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}},sq=(e,t)=>{const n={...e};return!kS(e)||!kS(t)||Object.keys(t).forEach(r=>{kS(t[r])?n[r]=r in e&&e[r]!==void 0?sq(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},jWe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lF=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(jWe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},uF=e=>e==="*"||e==="x"||e==="X",cF=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},PWe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],AWe=(e,t)=>{if(uF(e)||uF(t))return 0;const[n,r]=PWe(cF(e),cF(t));return n>r?1:n<r?-1:0},fF=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=AWe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},NWe=(e,t)=>{const n=lF(e),r=lF(t),i=n.pop(),o=r.pop(),a=fF(n,r);return a!==0?a:i&&o?fF(i.split("."),o.split(".")):i||o?i?-1:1:0},MWe=(e,t,n)=>{RWe(n);const r=NWe(e,t);return lq[n].includes(r)},lq={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},dF=Object.keys(lq),RWe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(dF.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${dF.join("|")}`)},uq=aq(e=>e,e=>{try{return MWe(e,e,"=")}catch{return!1}}),cq=e=>uq(e)?`v${e}`:e,fq=(e,t="latest")=>uq(e)?e:t,DWe="%_VERSION_%",LWe=e=>cq(fq(e)),pF=({project:e,version:t})=>y.jsx(nq,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:y.jsx("b",{children:t})}),IWe=({selectedServer:e,clientVersion:t=DWe})=>{const n=LWe(t);return y.jsxs("small",{className:"text-muted",children:[b7(e)&&y.jsxs(y.Fragment,{children:["Server: ",y.jsx(pF,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",y.jsx(pF,{project:"shlink-web-client",version:n})]})},FWe=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,UWe=({selectedServer:e})=>{const{pathname:t}=xr(),n=I.useMemo(()=>FWe.test(t),[t]),r=xd("text-center",{"shlink-versions-container--with-sidebar":n});return y.jsx("div",{className:r,children:y.jsx(IWe,{selectedServer:e})})},Vd=({children:e})=>y.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function dq(e){const t=n=>{const{ServerError:r}=Ki(t),i=hd(),{selectServer:o,selectedServer:a}=n;return I.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?q3(a)?y.jsx(r,{}):y.jsx(e,{...n}):y.jsx(Vd,{children:y.jsx(el,{loading:!0})})};return t}const pq=dq(I.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Ki(pq);if(!b7(e))return y.jsx(o,{});const a=`/server/${e.id}`;return y.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:a,tagColorsStorage:r,createNotFound:s=>y.jsx(y9,{to:`${a}${s}`,children:"List short URLs"})})})),$We=Zi(pq,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),BWe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",epe,"fetch"),e.serviceFactory("ScrollToTop",()=>kWe),e.factory("MainHeader",CWe),e.serviceFactory("Home",()=>TWe),e.decorator("Home",T_),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>OWe),e.factory("ShlinkWebComponentContainer",$We),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>UWe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>SWe)};let py;const zWe=new Uint8Array(16);function VWe(){if(!py&&(py=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!py))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return py(zWe)}const ar=[];for(let e=0;e<256;++e)ar.push((e+256).toString(16).slice(1));function HWe(e,t=0){return ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+"-"+ar[e[t+4]]+ar[e[t+5]]+"-"+ar[e[t+6]]+ar[e[t+7]]+"-"+ar[e[t+8]]+ar[e[t+9]]+"-"+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]}const WWe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hF={randomUUID:WWe};function hq(e,t,n){if(hF.randomUUID&&!t&&!e)return hF.randomUUID();e=e||{};const r=e.random||(e.rng||VWe)();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 HWe(r)}const mq=()=>{const e=oa();return I.useCallback(()=>e(-1),[e])},YWe=()=>{const{search:e}=xr();return I.useMemo(()=>yj(e),[e])},vq=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return y.jsxs(Ka,{centered:!0,isOpen:e,children:[y.jsxs(Za,{children:["Duplicated server",i&&"s"]}),y.jsxs(aa,{children:[y.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),y.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?y.jsxs("li",{children:[y.jsx("b",{children:o})," - ",y.jsx("b",{children:a})]},s):y.jsxs(I.Fragment,{children:[y.jsxs("li",{children:["URL: ",y.jsx("b",{children:o})]}),y.jsxs("li",{children:["API key: ",y.jsx("b",{children:a})]})]},s))}),y.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),y.jsxs(Uu,{children:[y.jsx(_t,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),y.jsx(_t,{color:"primary",onClick:r,children:"Save anyway"})]})]})},GWe=e=>t=>{t.preventDefault(),e()},gq=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=I.useState(""),[a,s]=I.useState(""),[l,u]=I.useState(""),f=GWe(()=>e({name:i,url:a,apiKey:l}));return I.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&u(t.apiKey)},[t]),y.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[y.jsxs(Qt,{className:"mb-3",title:r,children:[y.jsx(Ny,{value:i,onChange:o,children:"Name"}),y.jsx(Ny,{type:"url",value:a,onChange:s,children:"URL"}),y.jsx(Ny,{value:l,onChange:u,children:"API key"})]}),y.jsx("div",{className:"text-end",children:n})]})},mF=4e3,vF=({type:e})=>y.jsx("div",{className:"mt-3",children:y.jsxs(li,{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."]})}),yq=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Ki(yq),i=oa(),o=mq(),a=!!Object.keys(e).length,[s,l]=r(!1,mF),[u,f]=r(!1,mF),[d,p]=Cn(),[m,v]=I.useState(),g=I.useCallback(x=>{const b=hq();t([{...x,id:b}]),i(`/server/${b}`)},[t,i]);return I.useEffect(()=>{if(!m)return;Object.values(e).some(({url:b,apiKey:_})=>(m==null?void 0:m.url)===b&&(m==null?void 0:m.apiKey)===_)?p():g(m)},[g,m,e,p]),y.jsxs(Vd,{children:[y.jsxs(gq,{title:y.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!a&&y.jsx(n,{tooltipPlacement:"top",onImport:l,onImportError:f}),a&&y.jsx(_t,{outline:!0,onClick:o,children:"Cancel"}),y.jsx(_t,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&y.jsx(vF,{type:"success"}),u&&y.jsx(vF,{type:"error"}),y.jsx(vq,{isOpen:d,duplicatedServers:m?[m]:[],onDiscard:o,onSave:()=>m&&g(m)})]})},qWe=Zi(yq,["ImportServersBtn","useTimeoutToggle"]),bq=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Ki(bq),[o,,a,s]=Cn();return y.jsxs(y.Fragment,{children:[y.jsxs("button",{type:"button",className:xd(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&y.jsx(Ne,{fixedWidth:!0,icon:kk}),y.jsx("span",{className:r,children:n??"Remove this server"})]}),y.jsx(i,{server:e,isOpen:o,toggle:s})]})},KWe=Zi(bq,["DeleteServerModal"]),ZWe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=oa(),a=I.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return y.jsxs(Ka,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[y.jsx(Za,{toggle:t,className:"text-danger",children:"Remove server"}),y.jsxs(aa,{children:[y.jsxs("p",{children:["Are you sure you want to remove ",y.jsx("b",{children:e?e.name:""}),"?"]}),y.jsx("p",{children:y.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),y.jsxs(Uu,{children:[y.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),y.jsx(_t,{color:"danger",onClick:s,children:"Delete"})]})]})},QWe=dq(({editServer:e,selectedServer:t,selectServer:n})=>{const r=mq(),{reconnect:i}=YWe();if(!nh(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return y.jsx(Vd,{children:y.jsxs(gq,{title:y.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[y.jsx(_t,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),y.jsx(_t,{outline:!0,color:"primary",children:"Save"})]})})}),XWe=Zi(QWe,["ServerError"]),gF=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),_q=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Ki(_q),l=hl(),[u,f]=I.useState([]),[d,,p,m]=Cn(),v=I.useRef([]),g=I.useCallback(w=>{e(w),r()},[e,r]),x=I.useCallback(async({target:w})=>{var O;return s.importServersFromFile((O=w.files)==null?void 0:O[0]).then(E=>{v.current=E;const T=Object.values(t),k=E.filter(D=>gF(T,D)),P=!!k.length;P?f(k):g(E),P&&p()}).then(()=>{w.value=null}).catch(i)},[g,i,t,s,p]),b=I.useCallback(()=>{g(v.current),m()},[g,m,v]),_=I.useCallback(()=>{g(v.current.filter(w=>!gF(u,w))),m()},[g,u,m]);return y.jsxs(y.Fragment,{children:[y.jsxs(_t,{outline:!0,id:"importBtn",className:a,onClick:()=>{var w;return(w=l.current)==null?void 0:w.click()},children:[y.jsx(Ne,{icon:mee,fixedWidth:!0})," ",n??"Import from file"]}),y.jsxs(Jr,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",y.jsx("b",{children:"name"}),", ",y.jsx("b",{children:"apiKey"})," and ",y.jsx("b",{children:"url"})," columns."]}),y.jsx("input",{type:"file",accept:"text/csv",className:"d-none",ref:l,onChange:x,"aria-hidden":!0}),y.jsx(vq,{isOpen:d,duplicatedServers:u,onDiscard:_,onSave:b})]})},JWe=Zi(_q,["ServersImporter"]),wq=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Ki(wq);return y.jsx(Vd,{children:y.jsxs("div",{className:"server-error__container flex-column",children:[y.jsxs(el,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!nh(t)&&"Could not find this Shlink server.",nh(t)&&y.jsxs(y.Fragment,{children:[y.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),y.jsx(rq,{servers:Object.values(e),children:y.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",y.jsx($t,{to:"/server/create",children:"add a new one"}),"."]})}),nh(t)&&y.jsx("div",{className:"container mt-3 mt-md-5",children:y.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",y.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",y.jsx($t,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},eYe=Zi(wq,["DeleteServerButton"]),tYe=4e3,xq=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Ki(xq),o=Object.values(e),[a,s]=I.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,tYe);return I.useEffect(()=>{s(Object.values(e))},[e]),y.jsxs(Vd,{children:[y.jsx(gv,{className:"mb-3",onChange:l}),y.jsxs(Pr,{className:"mb-3",children:[y.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[y.jsx(n,{className:"flex-fill",onImportError:d,children:"Import servers"}),o.length>0&&y.jsxs(_t,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[y.jsx(Ne,{icon:O7,fixedWidth:!0})," Export servers"]})]}),y.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:y.jsxs(_t,{outline:!0,color:"primary",className:"flex-fill",tag:$t,to:"/server/create",children:[y.jsx(Ne,{icon:Nk,fixedWidth:!0})," Add a server"]})})]}),y.jsx(Qt,{children:y.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[y.jsx("thead",{className:"responsive-table__header",children:y.jsxs("tr",{children:[u&&y.jsx("th",{style:{width:"50px"},children:y.jsx("span",{className:"sr-only",children:"Auto-connect"})}),y.jsx("th",{children:"Name"}),y.jsx("th",{children:"Base URL"}),y.jsx("th",{children:y.jsx("span",{className:"sr-only",children:"Options"})})]})}),y.jsxs("tbody",{children:[!a.length&&y.jsx("tr",{className:"text-center",children:y.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(p=>y.jsx(i,{server:p,hasAutoConnect:u},p.id))]})]})}),f&&y.jsx("div",{className:"mt-3",children:y.jsx(li,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},nYe=Zi(xq,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),Oq=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Ki(Oq);return y.jsxs("tr",{className:"responsive-table__row",children:[t&&y.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&y.jsxs(y.Fragment,{children:[y.jsx(Ne,{icon:Wh,className:"text-primary",id:"autoConnectIcon"}),y.jsx(Jr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),y.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:y.jsx($t,{to:`/server/${e.id}`,children:e.name})}),y.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),y.jsx("td",{className:"responsive-table__cell text-end",children:y.jsx(n,{server:e})})]})},rYe=Zi(Oq,["ManageServersRowDropdown"]),Sq=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Ki(Sq),[r,,i,o]=Cn(),a=`/server/${e.id}`,{autoConnect:s}=e,l=s?pee:ope;return y.jsxs(ow,{minWidth:170,children:[y.jsxs(Re,{tag:$t,to:a,children:[y.jsx(Ne,{icon:fee,fixedWidth:!0})," Connect"]}),y.jsxs(Re,{tag:$t,to:`${a}/edit`,children:[y.jsx(Ne,{icon:jk,fixedWidth:!0})," Edit server"]}),y.jsxs(Re,{onClick:()=>t(e,!s),children:[y.jsx(Ne,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsxs(Re,{className:"dropdown-item--danger",onClick:i,children:[y.jsx(Ne,{icon:kk,fixedWidth:!0})," Remove server"]}),y.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},iYe=Zi(Sq,["DeleteServerModal"]),Eq=(e,t)=>L9(e,t,{serializeError:n=>n}),oYe={},aYe=e=>"id"in e?e:{...e,id:hq()},sYe=e=>e.reduce((t,n)=>({...t,[n.id]:n}),{}),{actions:lYe,reducer:uYe}=Dn({name:"shlink/servers",initialState:oYe,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:sYe(e.map(aYe))}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:cYe,deleteServer:fYe,setAutoConnect:dYe,createServers:Tq}=lYe,pYe=uYe,hYe=e=>Array.isArray(e)?e.filter(y7):[],mYe=e=>Eq("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${_0.homepage}/servers.json`),i=hYe(r);n(Tq(i))}),kA="shlink/selectedServer",vYe="1.0.0",gYe="999.999.999",yYe="latest",bYe=e=>fq(e===yYe?gYe:e,vYe),_Ye=aq(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:bYe(n),printableVersion:cq(n)}))),yF=null,jA=Mn(`${kA}/resetSelectedServer`),wYe=e=>Eq(`${kA}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(jA());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:l}=await _Ye(o,()=>a.health());return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),xYe=e=>Dn({name:kA,initialState:yF,reducers:{},extraReducers:t=>{t.addCase(jA,()=>yF),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),OYe=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?y.jsxs(Re,{tag:$t,to:"/server/create",children:[y.jsx(Ne,{icon:Nk})," ",y.jsx("span",{className:"ms-1",children:"Add a server"})]}):y.jsxs(y.Fragment,{children:[n.map(({name:i,id:o})=>y.jsx(Re,{tag:$t,to:`/server/${o}`,active:K3(t)===o,children:i},o)),y.jsx(Re,{divider:!0,tag:"hr"}),y.jsxs(Re,{tag:$t,to:"/manage-servers",children:[y.jsx(Ne,{icon:tR})," ",y.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return y.jsxs(mv,{nav:!0,inNavbar:!0,children:[y.jsxs(gd,{nav:!0,caret:!0,children:[y.jsx(Ne,{icon:tR})," ",y.jsx("span",{className:"ms-1",children:"Servers"})]}),y.jsx(vd,{end:!0,style:{right:0},children:r()})]})},SYe=({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)},EYe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);SYe(e,i,n)},TYe="shlink-servers.csv";class CYe{constructor(t,n,r){nc(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(Z3);try{const n=this.jsonToCsv(t);EYe(this.window,n,TYe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const kYe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",jYe=e=>Array.isArray(e)&&e.every(kYe);class PYe{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(!jYe(r))throw new Error("Provided file does not have the right format.");return r}}const AYe=(e,t)=>{e.factory("ManageServers",nYe),e.decorator("ManageServers",T_),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",rYe),e.factory("ManageServersRowDropdown",iYe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",qWe),e.decorator("CreateServer",T_),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",XWe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>OYe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>ZWe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",KWe),e.factory("ImportServersBtn",JWe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",eYe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",PYe,"csvToJson"),e.service("ServersExporter",CYe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",wYe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>Tq),e.serviceFactory("deleteServer",()=>fYe),e.serviceFactory("editServer",()=>cYe),e.serviceFactory("setAutoConnect",()=>dYe),e.serviceFactory("fetchServers",mYe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>jA),e.serviceFactory("selectedServerReducerCreator",xYe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},yu=({children:e})=>y.jsx("small",{className:"form-text text-muted d-block",children:e}),NYe=e=>e?`${e}`:"",MYe=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=iw();return y.jsxs(Qt,{title:"Real-time updates",className:"h-100",children:[y.jsx(zr,{children:y.jsxs(ku,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",y.jsxs(yu,{children:["Real-time updates are currently being ",y.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),y.jsxs(wd,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:xd("form-label",{"text-muted":!r.enabled}),id:i,children:[y.jsx(Cu,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:NYe(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&y.jsxs(yu,{children:[r.interval!==void 0&&r.interval>0&&y.jsxs("span",{children:["Updates will be reflected in the UI every ",y.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},Cq={field:"dateCreated",dir:"DESC"},RYe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:_j()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Cq}},DYe=(e,{payload:t})=>sq(e,t),Ml=e=>({reducer:DYe,prepare:e}),Rl=e=>({payload:e}),{reducer:LYe,actions:IYe}=Dn({name:"shlink/settings",initialState:RYe,reducers:{toggleRealTimeUpdates:Ml(e=>Rl({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:Ml(e=>Rl({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:Ml(e=>Rl({shortUrlCreation:e})),setShortUrlsListSettings:Ml(e=>Rl({shortUrlsList:e})),setUiSettings:Ml(e=>Rl({ui:e})),setVisitsSettings:Ml(e=>Rl({visits:e})),setTagsSettings:Ml(e=>Rl({tags:e}))}}),{toggleRealTimeUpdates:FYe,setRealTimeUpdatesInterval:UYe,setShortUrlCreationSettings:$Ye,setShortUrlsListSettings:BYe,setUiSettings:zYe,setVisitsSettings:VYe,setTagsSettings:HYe}=IYe,WYe=LYe,jS=({items:e})=>y.jsx(y.Fragment,{children:e.map((t,n)=>y.jsx("div",{className:"mb-3",children:t},n))}),kq=()=>{const{RealTimeUpdatesSettings:e,ShortUrlCreationSettings:t,ShortUrlsListSettings:n,UserInterfaceSettings:r,VisitsSettings:i,TagsSettings:o}=Ki(kq);return y.jsxs(Vd,{children:[y.jsxs(m9,{className:"mb-3",children:[y.jsx(fh,{to:"general",children:"General"}),y.jsx(fh,{to:"short-urls",children:"Short URLs"}),y.jsx(fh,{to:"other-items",children:"Other items"})]}),y.jsxs(Y_,{children:[y.jsx(yt,{path:"general",element:y.jsx(jS,{items:[y.jsx(r,{}),y.jsx(e,{})]})}),y.jsx(yt,{path:"short-urls",element:y.jsx(jS,{items:[y.jsx(t,{}),y.jsx(n,{})]})}),y.jsx(yt,{path:"other-items",element:y.jsx(jS,{items:[y.jsx(o,{}),y.jsx(i,{})]})}),y.jsx(yt,{path:"*",element:y.jsx(Ok,{replace:!0,to:"general"})})]})]})},YYe=Zi(kq,["RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"]),PS=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",GYe=e=>e==="includes"?y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"including"})," provided input."]}):y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"starting with"})," provided input."]}),qYe=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return y.jsxs(Qt,{title:"Short URLs form",className:"h-100",children:[y.jsx(zr,{children:y.jsxs(ku,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",y.jsxs(yu,{children:["The initial state of the ",y.jsx("b",{children:"Validate URL"})," checkbox will be ",y.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),y.jsx(zr,{children:y.jsxs(ku,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",y.jsxs(yu,{children:["The initial state of the ",y.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",y.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),y.jsxs(wd,{noMargin:!0,label:"Tag suggestions search mode:",children:[y.jsxs(Qa,{text:PS(n.tagFilteringMode),children:[y.jsx(Re,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:PS("startsWith")}),y.jsx(Re,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:PS("includes")})]}),y.jsx(yu,{children:GYe(n.tagFilteringMode)})]})]})},KYe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},ZYe=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>y.jsx(Qt,{title:"Short URLs list",className:"h-100",children:y.jsx(wd,{noMargin:!0,label:"Default ordering for short URLs list:",children:y.jsx(yv,{items:KYe,order:(e==null?void 0:e.defaultOrdering)??Cq,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),QYe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},XYe=({settings:{tags:e},setTagsSettings:t})=>y.jsx(Qt,{title:"Tags",className:"h-100",children:y.jsx(wd,{noMargin:!0,label:"Default ordering for tags list:",children:y.jsx(yv,{items:QYe,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})}),JYe=({settings:{ui:e},setUiSettings:t,_matchMedia:n})=>{const r=I.useMemo(()=>(e==null?void 0:e.theme)??_j(n),[e==null?void 0:e.theme,n]);return y.jsxs(Qt,{title:"User interface",className:"h-100",children:[y.jsx(Ne,{icon:r==="dark"?qee:Iee,className:"user-interface__theme-icon"}),y.jsx(ku,{checked:r==="dark",onChange:i=>{t({...e,theme:i?"dark":"light"})},children:"Use dark theme."})]})},jq={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},eGe=(e,t)=>!e||e==="all"?t:jq[e],tGe=({onChange:e,active:t,allText:n})=>y.jsxs(Qa,{text:eGe(t,n),children:[y.jsx(Re,{active:t==="all",onClick:()=>e("all"),children:n}),y.jsx(Re,{divider:!0}),Object.entries(jq).map(([r,i])=>y.jsx(Re,{active:t===r,onClick:()=>e(r),children:i},r))]}),bF=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},nGe=({settings:e,setVisitsSettings:t})=>{var r,i,o,a;const n=I.useCallback(({defaultInterval:s,...l})=>t({defaultInterval:s??bF(e),...l}),[t,e]);return y.jsxs(Qt,{title:"Visits",className:"h-100",children:[y.jsx(zr,{children:y.jsxs(ku,{checked:!!((r=e.visits)!=null&&r.excludeBots),onChange:s=>n({excludeBots:s}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",y.jsxs(yu,{children:["The visits coming from potential bots will be ",y.jsx("b",{children:(i=e.visits)!=null&&i.excludeBots?"excluded":"included"}),"."]})]})}),y.jsx(zr,{children:y.jsxs(ku,{checked:!!((o=e.visits)!=null&&o.loadPrevInterval),onChange:s=>n({loadPrevInterval:s}),children:["Compare visits with previous period.",y.jsxs(yu,{children:["When loading visits, previous period ",y.jsx("b",{children:(a=e.visits)!=null&&a.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),y.jsx(wd,{noMargin:!0,label:"Default interval to load on visits sections:",children:y.jsx(tGe,{allText:"All visits",active:bF(e),onChange:s=>n({defaultInterval:s})})})]})},rGe=(e,t)=>{e.factory("Settings",YYe),e.decorator("Settings",T_),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>MYe),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>qYe),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>JYe),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>nGe),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>XYe),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>ZYe),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>FYe),e.serviceFactory("setRealTimeUpdatesInterval",()=>UYe),e.serviceFactory("setShortUrlCreationSettings",()=>$Ye),e.serviceFactory("setShortUrlsListSettings",()=>BYe),e.serviceFactory("setUiSettings",()=>zYe),e.serviceFactory("setVisitsSettings",()=>VYe),e.serviceFactory("setTagsSettings",()=>HYe)};function AS(e){return e==null?"":`${e}`}function iGe(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 PA(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function oGe(e={stringFormatter:PA()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function aGe(e={stringFormatter:PA()}){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 sGe=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function lGe(e){var t,n,r;const i=[];let o;for(;o=sGe.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 _F(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:lGe(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 Pq(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function xC(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var wF;(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"})(wF||(wF={}));class uGe{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||PA(),i=aGe({stringFormatter:r}),o={header:r,undefined:AS,boolean:AS,number:iGe(),bigint:AS,string:r,symbol:oGe({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=>_F(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=>_F(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 xC(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(Pq,[]),[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 xC(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 cGe extends uGe{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(Pq,[])}processData(t){return xC(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var $n;(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"})($n||($n={}));$n.QUOTATION_MARK+"",$n.QUOTATION_MARK,$n.REVERSE_SOLIDUS+"",$n.REVERSE_SOLIDUS,$n.SOLIDUS+"",$n.SOLIDUS,$n.LATIN_SMALL_LETTER_B+"",$n.BACKSPACE,$n.LATIN_SMALL_LETTER_F+"",$n.FORM_FEED,$n.LATIN_SMALL_LETTER_N+"",$n.NEWLINE,$n.LATIN_SMALL_LETTER_R+"",$n.CARRIAGE_RETURN,$n.LATIN_SMALL_LETTER_T+"",$n.TAB;var xF;(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"})(xF||(xF={}));var OF;(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"})(OF||(OF={}));var SF;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(SF||(SF={}));var EF;(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"})(EF||(EF={}));var fGe=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 x in v)g.push(x);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,A){if(s()<A)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(j=new Uint8Array(A)).__proto__=u.prototype:(j===null&&(j=new u(A)),j.length=A),j}function u(j,A,$){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(j,A,$);if(typeof j=="number"){if(typeof A=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,j)}return f(this,j,A,$)}function f(j,A,$,J){if(typeof A=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&A instanceof ArrayBuffer?function(K,se,he,Ee){if(se.byteLength,he<0||se.byteLength<he)throw new RangeError("'offset' is out of bounds");if(se.byteLength<he+(Ee||0))throw new RangeError("'length' is out of bounds");return se=he===void 0&&Ee===void 0?new Uint8Array(se):Ee===void 0?new Uint8Array(se,he):new Uint8Array(se,he,Ee),u.TYPED_ARRAY_SUPPORT?(K=se).__proto__=u.prototype:K=m(K,se),K}(j,A,$,J):typeof A=="string"?function(K,se,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(se,he),ue=(K=l(K,Ee)).write(se,he);return ue!==Ee&&(K=K.slice(0,ue)),K}(j,A,$):function(K,se){if(u.isBuffer(se)){var he=0|v(se.length);return(K=l(K,he)).length===0||se.copy(K,0,0,he),K}if(se){if(typeof ArrayBuffer<"u"&&se.buffer instanceof ArrayBuffer||"length"in se)return typeof se.length!="number"||function(Ee){return Ee!=Ee}(se.length)?l(K,0):m(K,se);if(se.type==="Buffer"&&a(se.data))return m(K,se.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(j,A)}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,A){if(d(A),j=l(j,A<0?0:0|v(A)),!u.TYPED_ARRAY_SUPPORT)for(var $=0;$<A;++$)j[$]=0;return j}function m(j,A){var $=A.length<0?0:0|v(A.length);j=l(j,$);for(var J=0;J<$;J+=1)j[J]=255&A[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,A){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 $=j.length;if($===0)return 0;for(var J=!1;;)switch(A){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return oe(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$;case"hex":return $>>>1;case"base64":return le(j).length;default:if(J)return oe(j).length;A=(""+A).toLowerCase(),J=!0}}function x(j,A,$){var J=j[A];j[A]=j[$],j[$]=J}function b(j,A,$,J,K){if(j.length===0)return-1;if(typeof $=="string"?(J=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=K?0:j.length-1),$<0&&($=j.length+$),$>=j.length){if(K)return-1;$=j.length-1}else if($<0){if(!K)return-1;$=0}if(typeof A=="string"&&(A=u.from(A,J)),u.isBuffer(A))return A.length===0?-1:_(j,A,$,J,K);if(typeof A=="number")return A&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(j,A,$):Uint8Array.prototype.lastIndexOf.call(j,A,$):_(j,[A],$,J,K);throw new TypeError("val must be string, number or Buffer")}function _(j,A,$,J,K){var se,he=1,Ee=j.length,ue=A.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(j.length<2||A.length<2)return-1;he=2,Ee/=2,ue/=2,$/=2}function ve(ke,Pe){return he===1?ke[Pe]:ke.readUInt16BE(Pe*he)}if(K){var ge=-1;for(se=$;se<Ee;se++)if(ve(j,se)===ve(A,ge===-1?0:se-ge)){if(ge===-1&&(ge=se),se-ge+1===ue)return ge*he}else ge!==-1&&(se-=se-ge),ge=-1}else for($+ue>Ee&&($=Ee-ue),se=$;se>=0;se--){for(var Oe=!0,Ce=0;Ce<ue;Ce++)if(ve(j,se+Ce)!==ve(A,Ce)){Oe=!1;break}if(Oe)return se}return-1}function w(j,A,$,J){$=Number($)||0;var K=j.length-$;J?(J=Number(J))>K&&(J=K):J=K;var se=A.length;if(se%2!=0)throw new TypeError("Invalid hex string");J>se/2&&(J=se/2);for(var he=0;he<J;++he){var Ee=parseInt(A.substr(2*he,2),16);if(isNaN(Ee))return he;j[$+he]=Ee}return he}function O(j,A,$,J){return fe(oe(A,j.length-$),j,$,J)}function E(j,A,$,J){return fe(function(K){for(var se=[],he=0;he<K.length;++he)se.push(255&K.charCodeAt(he));return se}(A),j,$,J)}function T(j,A,$,J){return E(j,A,$,J)}function k(j,A,$,J){return fe(le(A),j,$,J)}function P(j,A,$,J){return fe(function(K,se){for(var he,Ee,ue,ve=[],ge=0;ge<K.length&&!((se-=2)<0);++ge)Ee=(he=K.charCodeAt(ge))>>8,ue=he%256,ve.push(ue),ve.push(Ee);return ve}(A,j.length-$),j,$,J)}function D(j,A,$){return A===0&&$===j.length?i.fromByteArray(j):i.fromByteArray(j.slice(A,$))}function N(j,A,$){$=Math.min(j.length,$);for(var J=[],K=A;K<$;){var se,he,Ee,ue,ve=j[K],ge=null,Oe=ve>239?4:ve>223?3:ve>191?2:1;if(K+Oe<=$)switch(Oe){case 1:ve<128&&(ge=ve);break;case 2:(192&(se=j[K+1]))==128&&(ue=(31&ve)<<6|63&se)>127&&(ge=ue);break;case 3:se=j[K+1],he=j[K+2],(192&se)==128&&(192&he)==128&&(ue=(15&ve)<<12|(63&se)<<6|63&he)>2047&&(ue<55296||ue>57343)&&(ge=ue);break;case 4:se=j[K+1],he=j[K+2],Ee=j[K+3],(192&se)==128&&(192&he)==128&&(192&Ee)==128&&(ue=(15&ve)<<18|(63&se)<<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<=F)return String.fromCharCode.apply(String,Ce);for(var Pe="",ce=0;ce<ke;)Pe+=String.fromCharCode.apply(String,Ce.slice(ce,ce+=F));return Pe}(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,A,$){return f(null,j,A,$)},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,A,$){return function(J,K,se,he){return d(K),K<=0?l(J,K):se!==void 0?typeof he=="string"?l(J,K).fill(se,he):l(J,K).fill(se):l(J,K)}(null,j,A,$)},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,A){if(!u.isBuffer(j)||!u.isBuffer(A))throw new TypeError("Arguments must be Buffers");if(j===A)return 0;for(var $=j.length,J=A.length,K=0,se=Math.min($,J);K<se;++K)if(j[K]!==A[K]){$=j[K],J=A[K];break}return $<J?-1:J<$?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,A){if(!a(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return u.alloc(0);var $;if(A===void 0)for(A=0,$=0;$<j.length;++$)A+=j[$].length;var J=u.allocUnsafe(A),K=0;for($=0;$<j.length;++$){var se=j[$];if(!u.isBuffer(se))throw new TypeError('"list" argument must be an Array of Buffers');se.copy(J,K),K+=se.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 A=0;A<j;A+=2)x(this,A,A+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 A=0;A<j;A+=4)x(this,A,A+3),x(this,A+1,A+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 A=0;A<j;A+=8)x(this,A,A+7),x(this,A+1,A+6),x(this,A+2,A+5),x(this,A+3,A+4);return this},u.prototype.toString=function(){var j=0|this.length;return j===0?"":arguments.length===0?N(this,0,j):(function(A,$,J){var K=!1;if(($===void 0||$<0)&&($=0),$>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0)<=($>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return H(this,$,J);case"utf8":case"utf-8":return N(this,$,J);case"ascii":return B(this,$,J);case"latin1":case"binary":return Y(this,$,J);case"base64":return D(this,$,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,$,J);default:if(K)throw new TypeError("Unknown encoding: "+A);A=(A+"").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="",A=t.INSPECT_MAX_BYTES;return this.length>0&&(j=this.toString("hex",0,A).match(/.{2}/g).join(" "),this.length>A&&(j+=" ... ")),"<Buffer "+j+">"},u.prototype.compare=function(j,A,$,J,K){if(!u.isBuffer(j))throw new TypeError("Argument must be a Buffer");if(A===void 0&&(A=0),$===void 0&&($=j?j.length:0),J===void 0&&(J=0),K===void 0&&(K=this.length),A<0||$>j.length||J<0||K>this.length)throw new RangeError("out of range index");if(J>=K&&A>=$)return 0;if(J>=K)return-1;if(A>=$)return 1;if(A>>>=0,$>>>=0,J>>>=0,K>>>=0,this===j)return 0;for(var se=K-J,he=$-A,Ee=Math.min(se,he),ue=this.slice(J,K),ve=j.slice(A,$),ge=0;ge<Ee;++ge)if(ue[ge]!==ve[ge]){se=ue[ge],he=ve[ge];break}return se<he?-1:he<se?1:0},u.prototype.includes=function(j,A,$){return this.indexOf(j,A,$)!==-1},u.prototype.indexOf=function(j,A,$){return b(this,j,A,$,!0)},u.prototype.lastIndexOf=function(j,A,$){return b(this,j,A,$,!1)},u.prototype.write=function(j,A,$,J){if(A===void 0)J="utf8",$=this.length,A=0;else if($===void 0&&typeof A=="string")J=A,$=this.length,A=0;else{if(!isFinite(A))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");A|=0,isFinite($)?($|=0,J===void 0&&(J="utf8")):(J=$,$=void 0)}var K=this.length-A;if(($===void 0||$>K)&&($=K),j.length>0&&($<0||A<0)||A>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var se=!1;;)switch(J){case"hex":return w(this,j,A,$);case"utf8":case"utf-8":return O(this,j,A,$);case"ascii":return E(this,j,A,$);case"latin1":case"binary":return T(this,j,A,$);case"base64":return k(this,j,A,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,j,A,$);default:if(se)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),se=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var F=4096;function B(j,A,$){var J="";$=Math.min(j.length,$);for(var K=A;K<$;++K)J+=String.fromCharCode(127&j[K]);return J}function Y(j,A,$){var J="";$=Math.min(j.length,$);for(var K=A;K<$;++K)J+=String.fromCharCode(j[K]);return J}function H(j,A,$){var J=j.length;(!A||A<0)&&(A=0),(!$||$<0||$>J)&&($=J);for(var K="",se=A;se<$;++se)K+=ee(j[se]);return K}function Q(j,A,$){for(var J=j.slice(A,$),K="",se=0;se<J.length;se+=2)K+=String.fromCharCode(J[se]+256*J[se+1]);return K}function Z(j,A,$){if(j%1!=0||j<0)throw new RangeError("offset is not uint");if(j+A>$)throw new RangeError("Trying to access beyond buffer length")}function te(j,A,$,J,K,se){if(!u.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>K||A<se)throw new RangeError('"value" argument is out of bounds');if($+J>j.length)throw new RangeError("Index out of range")}function X(j,A,$,J){A<0&&(A=65535+A+1);for(var K=0,se=Math.min(j.length-$,2);K<se;++K)j[$+K]=(A&255<<8*(J?K:1-K))>>>8*(J?K:1-K)}function z(j,A,$,J){A<0&&(A=4294967295+A+1);for(var K=0,se=Math.min(j.length-$,4);K<se;++K)j[$+K]=A>>>8*(J?K:3-K)&255}function V(j,A,$,J,K,se){if($+J>j.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function W(j,A,$,J,K){return K||V(j,0,$,4),o.write(j,A,$,J,23,4),$+4}function re(j,A,$,J,K){return K||V(j,0,$,8),o.write(j,A,$,J,52,8),$+8}u.prototype.slice=function(j,A){var $,J=this.length;if(j=~~j,A=A===void 0?J:~~A,j<0?(j+=J)<0&&(j=0):j>J&&(j=J),A<0?(A+=J)<0&&(A=0):A>J&&(A=J),A<j&&(A=j),u.TYPED_ARRAY_SUPPORT)($=this.subarray(j,A)).__proto__=u.prototype;else{var K=A-j;$=new u(K,void 0);for(var se=0;se<K;++se)$[se]=this[se+j]}return $},u.prototype.readUIntLE=function(j,A,$){j|=0,A|=0,$||Z(j,A,this.length);for(var J=this[j],K=1,se=0;++se<A&&(K*=256);)J+=this[j+se]*K;return J},u.prototype.readUIntBE=function(j,A,$){j|=0,A|=0,$||Z(j,A,this.length);for(var J=this[j+--A],K=1;A>0&&(K*=256);)J+=this[j+--A]*K;return J},u.prototype.readUInt8=function(j,A){return A||Z(j,1,this.length),this[j]},u.prototype.readUInt16LE=function(j,A){return A||Z(j,2,this.length),this[j]|this[j+1]<<8},u.prototype.readUInt16BE=function(j,A){return A||Z(j,2,this.length),this[j]<<8|this[j+1]},u.prototype.readUInt32LE=function(j,A){return A||Z(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+16777216*this[j+3]},u.prototype.readUInt32BE=function(j,A){return A||Z(j,4,this.length),16777216*this[j]+(this[j+1]<<16|this[j+2]<<8|this[j+3])},u.prototype.readIntLE=function(j,A,$){j|=0,A|=0,$||Z(j,A,this.length);for(var J=this[j],K=1,se=0;++se<A&&(K*=256);)J+=this[j+se]*K;return J>=(K*=128)&&(J-=Math.pow(2,8*A)),J},u.prototype.readIntBE=function(j,A,$){j|=0,A|=0,$||Z(j,A,this.length);for(var J=A,K=1,se=this[j+--J];J>0&&(K*=256);)se+=this[j+--J]*K;return se>=(K*=128)&&(se-=Math.pow(2,8*A)),se},u.prototype.readInt8=function(j,A){return A||Z(j,1,this.length),128&this[j]?-1*(255-this[j]+1):this[j]},u.prototype.readInt16LE=function(j,A){A||Z(j,2,this.length);var $=this[j]|this[j+1]<<8;return 32768&$?4294901760|$:$},u.prototype.readInt16BE=function(j,A){A||Z(j,2,this.length);var $=this[j+1]|this[j]<<8;return 32768&$?4294901760|$:$},u.prototype.readInt32LE=function(j,A){return A||Z(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},u.prototype.readInt32BE=function(j,A){return A||Z(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},u.prototype.readFloatLE=function(j,A){return A||Z(j,4,this.length),o.read(this,j,!0,23,4)},u.prototype.readFloatBE=function(j,A){return A||Z(j,4,this.length),o.read(this,j,!1,23,4)},u.prototype.readDoubleLE=function(j,A){return A||Z(j,8,this.length),o.read(this,j,!0,52,8)},u.prototype.readDoubleBE=function(j,A){return A||Z(j,8,this.length),o.read(this,j,!1,52,8)},u.prototype.writeUIntLE=function(j,A,$,J){j=+j,A|=0,$|=0,J||te(this,j,A,$,Math.pow(2,8*$)-1,0);var K=1,se=0;for(this[A]=255&j;++se<$&&(K*=256);)this[A+se]=j/K&255;return A+$},u.prototype.writeUIntBE=function(j,A,$,J){j=+j,A|=0,$|=0,J||te(this,j,A,$,Math.pow(2,8*$)-1,0);var K=$-1,se=1;for(this[A+K]=255&j;--K>=0&&(se*=256);)this[A+K]=j/se&255;return A+$},u.prototype.writeUInt8=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,1,255,0),u.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),this[A]=255&j,A+1},u.prototype.writeUInt16LE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[A]=255&j,this[A+1]=j>>>8):X(this,j,A,!0),A+2},u.prototype.writeUInt16BE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[A]=j>>>8,this[A+1]=255&j):X(this,j,A,!1),A+2},u.prototype.writeUInt32LE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[A+3]=j>>>24,this[A+2]=j>>>16,this[A+1]=j>>>8,this[A]=255&j):z(this,j,A,!0),A+4},u.prototype.writeUInt32BE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[A]=j>>>24,this[A+1]=j>>>16,this[A+2]=j>>>8,this[A+3]=255&j):z(this,j,A,!1),A+4},u.prototype.writeIntLE=function(j,A,$,J){if(j=+j,A|=0,!J){var K=Math.pow(2,8*$-1);te(this,j,A,$,K-1,-K)}var se=0,he=1,Ee=0;for(this[A]=255&j;++se<$&&(he*=256);)j<0&&Ee===0&&this[A+se-1]!==0&&(Ee=1),this[A+se]=(j/he>>0)-Ee&255;return A+$},u.prototype.writeIntBE=function(j,A,$,J){if(j=+j,A|=0,!J){var K=Math.pow(2,8*$-1);te(this,j,A,$,K-1,-K)}var se=$-1,he=1,Ee=0;for(this[A+se]=255&j;--se>=0&&(he*=256);)j<0&&Ee===0&&this[A+se+1]!==0&&(Ee=1),this[A+se]=(j/he>>0)-Ee&255;return A+$},u.prototype.writeInt8=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,1,127,-128),u.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),j<0&&(j=255+j+1),this[A]=255&j,A+1},u.prototype.writeInt16LE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[A]=255&j,this[A+1]=j>>>8):X(this,j,A,!0),A+2},u.prototype.writeInt16BE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[A]=j>>>8,this[A+1]=255&j):X(this,j,A,!1),A+2},u.prototype.writeInt32LE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[A]=255&j,this[A+1]=j>>>8,this[A+2]=j>>>16,this[A+3]=j>>>24):z(this,j,A,!0),A+4},u.prototype.writeInt32BE=function(j,A,$){return j=+j,A|=0,$||te(this,j,A,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),u.TYPED_ARRAY_SUPPORT?(this[A]=j>>>24,this[A+1]=j>>>16,this[A+2]=j>>>8,this[A+3]=255&j):z(this,j,A,!1),A+4},u.prototype.writeFloatLE=function(j,A,$){return W(this,j,A,!0,$)},u.prototype.writeFloatBE=function(j,A,$){return W(this,j,A,!1,$)},u.prototype.writeDoubleLE=function(j,A,$){return re(this,j,A,!0,$)},u.prototype.writeDoubleBE=function(j,A,$){return re(this,j,A,!1,$)},u.prototype.copy=function(j,A,$,J){if($||($=0),J||J===0||(J=this.length),A>=j.length&&(A=j.length),A||(A=0),J>0&&J<$&&(J=$),J===$||j.length===0||this.length===0)return 0;if(A<0)throw new RangeError("targetStart out of bounds");if($<0||$>=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-A<J-$&&(J=j.length-A+$);var K,se=J-$;if(this===j&&$<A&&A<J)for(K=se-1;K>=0;--K)j[K+A]=this[K+$];else if(se<1e3||!u.TYPED_ARRAY_SUPPORT)for(K=0;K<se;++K)j[K+A]=this[K+$];else Uint8Array.prototype.set.call(j,this.subarray($,$+se),A);return se},u.prototype.fill=function(j,A,$,J){if(typeof j=="string"){if(typeof A=="string"?(J=A,A=0,$=this.length):typeof $=="string"&&(J=$,$=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(A<0||this.length<A||this.length<$)throw new RangeError("Out of range index");if($<=A)return this;var se;if(A>>>=0,$=$===void 0?this.length:$>>>0,j||(j=0),typeof j=="number")for(se=A;se<$;++se)this[se]=j;else{var he=u.isBuffer(j)?j:oe(new u(j,J).toString()),Ee=he.length;for(se=0;se<$-A;++se)this[se+A]=he[se%Ee]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function ee(j){return j<16?"0"+j.toString(16):j.toString(16)}function oe(j,A){var $;A=A||1/0;for(var J=j.length,K=null,se=[],he=0;he<J;++he){if(($=j.charCodeAt(he))>55295&&$<57344){if(!K){if($>56319){(A-=3)>-1&&se.push(239,191,189);continue}if(he+1===J){(A-=3)>-1&&se.push(239,191,189);continue}K=$;continue}if($<56320){(A-=3)>-1&&se.push(239,191,189),K=$;continue}$=65536+(K-55296<<10|$-56320)}else K&&(A-=3)>-1&&se.push(239,191,189);if(K=null,$<128){if((A-=1)<0)break;se.push($)}else if($<2048){if((A-=2)<0)break;se.push($>>6|192,63&$|128)}else if($<65536){if((A-=3)<0)break;se.push($>>12|224,$>>6&63|128,63&$|128)}else{if(!($<1114112))throw new Error("Invalid code point");if((A-=4)<0)break;se.push($>>18|240,$>>12&63|128,$>>6&63|128,63&$|128)}}return se}function le(j){return i.toByteArray(function(A){if((A=function($){return $.trim?$.trim():$.replace(/^\s+|\s+$/g,"")}(A).replace(q,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(j))}function fe(j,A,$,J){for(var K=0;K<J&&!(K+$>=A.length||K>=j.length);++K)A[K+$]=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(x){if(n===setTimeout)return setTimeout(x,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,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 x=s(p);f=!0;for(var b=u.length;b;){for(l=u,u=[];++d<b;)l&&l[d].run();d=-1,b=u.length}l=null,f=!1,function(_){if(r===clearTimeout)return clearTimeout(_);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(_);try{r(_)}catch{try{return r.call(null,_)}catch{return r.call(this,_)}}}(x)}}function v(x,b){this.fun=x,this.array=b}function g(){}i.nextTick=function(x){var b=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)b[_-1]=arguments[_];u.push(new v(x,b)),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(x){return[]},i.binding=function(x){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(x){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(N){var F=this;this.next=null,this.entry=null,this.finish=function(){(function(B,Y,H){var Q=B.entry;for(B.entry=null;Q;){var Z=Q.callback;Y.pendingcb--,Z(void 0),Q=Q.next}Y.corkedRequestsFree?Y.corkedRequestsFree.next=B:Y.corkedRequestsFree=B})(F,N)}}e.exports=w;var l,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;w.WritableState=_;var f=n(5);f.inherits=n(2);var d,p={deprecate:n(44)},m=n(24),v=n(7).Buffer,g=o.Uint8Array||function(){},x=n(25);function b(){}function _(N,F){l=l||n(1),N=N||{};var B=F instanceof l;this.objectMode=!!N.objectMode,B&&(this.objectMode=this.objectMode||!!N.writableObjectMode);var Y=N.highWaterMark,H=N.writableHighWaterMark,Q=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:B&&(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=N.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){(function(X,z){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),z)(function(ee,oe,le,fe,j){--oe.pendingcb,le?(a.nextTick(j,fe),a.nextTick(D,ee,oe),ee._writableState.errorEmitted=!0,ee.emit("error",fe)):(j(fe),ee._writableState.errorEmitted=!0,ee.emit("error",fe),D(ee,oe))})(X,V,W,z,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)}})(F,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 w(N){if(l=l||n(1),!(d.call(w,this)||this instanceof l))return new w(N);this._writableState=new _(N,this),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),m.call(this)}function O(N,F,B,Y,H,Q,Z){F.writelen=Y,F.writecb=Z,F.writing=!0,F.sync=!0,B?N._writev(H,F.onwrite):N._write(H,Q,F.onwrite),F.sync=!1}function E(N,F,B,Y){B||function(H,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,H.emit("drain"))}(N,F),F.pendingcb--,Y(),D(N,F)}function T(N,F){F.bufferProcessing=!0;var B=F.bufferedRequest;if(N._writev&&B&&B.next){var Y=F.bufferedRequestCount,H=new Array(Y),Q=F.corkedRequestsFree;Q.entry=B;for(var Z=0,te=!0;B;)H[Z]=B,B.isBuf||(te=!1),B=B.next,Z+=1;H.allBuffers=te,O(N,F,!0,F.length,H,"",Q.finish),F.pendingcb++,F.lastBufferedRequest=null,Q.next?(F.corkedRequestsFree=Q.next,Q.next=null):F.corkedRequestsFree=new s(F),F.bufferedRequestCount=0}else{for(;B;){var X=B.chunk,z=B.encoding,V=B.callback;if(O(N,F,!1,F.objectMode?1:X.length,X,z,V),B=B.next,F.bufferedRequestCount--,F.writing)break}B===null&&(F.lastBufferedRequest=null)}F.bufferedRequest=B,F.bufferProcessing=!1}function k(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function P(N,F){N._final(function(B){F.pendingcb--,B&&N.emit("error",B),F.prefinished=!0,N.emit("prefinish"),D(N,F)})}function D(N,F){var B=k(F);return B&&(function(Y,H){H.prefinished||H.finalCalled||(typeof Y._final=="function"?(H.pendingcb++,H.finalCalled=!0,a.nextTick(P,Y,H)):(H.prefinished=!0,Y.emit("prefinish")))}(N,F),F.pendingcb===0&&(F.finished=!0,N.emit("finish"))),B}f.inherits(w,m),_.prototype.getBuffer=function(){for(var N=this.bufferedRequest,F=[];N;)F.push(N),N=N.next;return F},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(N){return!!d.call(this,N)||this===w&&N&&N._writableState instanceof _}})):d=function(N){return N instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(N,F,B){var Y=this._writableState,H=!1,Q=!Y.objectMode&&function(Z){return v.isBuffer(Z)||Z instanceof g}(N);return Q&&!v.isBuffer(N)&&(N=function(Z){return v.from(Z)}(N)),typeof F=="function"&&(B=F,F=null),Q?F="buffer":F||(F=Y.defaultEncoding),typeof B!="function"&&(B=b),Y.ended?function(Z,te){var X=new Error("write after end");Z.emit("error",X),a.nextTick(te,X)}(this,B):(Q||function(Z,te,X,z){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(z,W),V=!1),V}(this,Y,N,B))&&(Y.pendingcb++,H=function(Z,te,X,z,V,W){if(!X){var re=function(le,fe,j){return le.objectMode||le.decodeStrings===!1||typeof fe!="string"||(fe=v.from(fe,j)),fe}(te,z,V);z!==re&&(X=!0,V="buffer",z=re)}var q=te.objectMode?1:z.length;te.length+=q;var ee=te.length<te.highWaterMark;if(ee||(te.needDrain=!0),te.writing||te.corked){var oe=te.lastBufferedRequest;te.lastBufferedRequest={chunk:z,encoding:V,isBuf:X,callback:W,next:null},oe?oe.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else O(Z,te,!1,q,z,V,W);return ee}(this,Y,Q,N,F,B)),H},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,N.writing||N.corked||N.finished||N.bufferProcessing||!N.bufferedRequest||T(this,N))},w.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(N,F,B){B(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(N,F,B){var Y=this._writableState;typeof N=="function"?(B=N,N=null,F=null):typeof F=="function"&&(B=F,F=null),N!=null&&this.write(N,F),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||Y.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,Y,B)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),w.prototype.destroy=x.destroy,w.prototype._undestroy=x.undestroy,w.prototype._destroy=function(N,F){this.end(),F(N)}}).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 x=new Error("Cannot find module '"+m+"'");throw x.code="MODULE_NOT_FOUND",x}var b=l[m]={exports:{}};s[m][0].call(b.exports,function(_){return f(s[m][1][_]||_)},b,b.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(b){u=b}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 b=this;this.drainQueues=function(){b._drainQueues()},this._schedule=f}function v(b,_,w){this._lateQueue.push(b,_,w),this._queueTick()}function g(b,_,w){this._normalQueue.push(b,_,w),this._queueTick()}function x(b){this._normalQueue._pushOne(b),this._queueTick()}m.prototype.setScheduler=function(b){var _=this._schedule;return this._schedule=b,this._customScheduler=!0,_},m.prototype.hasCustomScheduler=function(){return this._customScheduler},m.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},m.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},m.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},m.prototype.fatalError=function(b,_){_?(r.stderr.write("Fatal "+(b instanceof Error?b.stack:b)+`
|
||
`),r.exit(2)):this.throwLater(b)},m.prototype.throwLater=function(b,_){if(arguments.length===1&&(_=b,b=function(){throw _}),typeof setTimeout<"u")setTimeout(function(){b(_)},0);else try{this._schedule(function(){b(_)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(m.prototype.invokeLater=function(b,_,w){this._trampolineEnabled?v.call(this,b,_,w):this._schedule(function(){setTimeout(function(){b.call(_,w)},100)})},m.prototype.invoke=function(b,_,w){this._trampolineEnabled?g.call(this,b,_,w):this._schedule(function(){b.call(_,w)})},m.prototype.settlePromises=function(b){this._trampolineEnabled?x.call(this,b):this._schedule(function(){b._settlePromises()})}):(m.prototype.invokeLater=v,m.prototype.invoke=g,m.prototype.settlePromises=x),m.prototype._drainQueue=function(b){for(;b.length()>0;){var _=b.shift();if(typeof _=="function"){var w=b.shift(),O=b.shift();_.call(w,O)}else _._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},s.exports=m,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(u,f,d,p){var m=!1,v=function(_,w){this._reject(w)},g=function(_,w){w.promiseRejectionQueued=!0,w.bindingPromise._then(v,v,null,this,_)},x=function(_,w){!(50397184&this._bitField)&&this._resolveCallback(w.target)},b=function(_,w){w.promiseRejectionQueued||this._reject(_)};u.prototype.bind=function(_){m||(m=!0,u.prototype._propagateFrom=p.propagateFromFunction(),u.prototype._boundValue=p.boundValueFunction());var w=d(_),O=new u(f);O._propagateFrom(this,1);var E=this._target();if(O._setBoundTo(w),w instanceof u){var T={promiseRejectionQueued:!1,promise:O,target:E,bindingPromise:w};E._then(f,g,void 0,O,T),w._then(x,b,void 0,O,T),O._setOnCancel(w)}else O._resolveCallback(E);return O},u.prototype._setBoundTo=function(_){_!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=_):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(_,w){return u.resolve(w).bind(_)}}},{}],4:[function(a,s,l){var u;typeof Promise<"u"&&(u=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=u)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,l){var u=Object.create;if(u){var f=u(null),d=u(null);f[" size"]=d[" size"]=0}s.exports=function(p){var m=a("./util"),v=m.canEvaluate;function g(_){return function(w,O){var E;if(w!=null&&(E=w[O]),typeof E!="function"){var T="Object "+m.classString(w)+" has no method '"+m.toString(O)+"'";throw new p.TypeError(T)}return E}(_,this.pop()).apply(_,this)}function x(_){return _[this]}function b(_){var w=+this;return w<0&&(w=Math.max(0,w+_.length)),_[w]}m.isIdentifier,p.prototype.call=function(_){var w=[].slice.call(arguments,1);return w.push(_),this._then(g,void 0,void 0,w,void 0)},p.prototype.get=function(_){var w;if(typeof _=="number")w=b;else if(v){var O=(void 0)(_);w=O!==null?O:x}else w=x;return this._then(w,void 0,void 0,_,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(u,f,d,p){var m=a("./util"),v=m.tryCatch,g=m.errorObj,x=u._async;u.prototype.break=u.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var b=this,_=b;b._isCancellable();){if(!b._cancelBy(_)){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}var w=b._cancellationParent;if(w==null||!w._isCancellable()){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}b._isFollowing()&&b._followee().cancel(),b._setWillBeCancelled(),_=b,b=w}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(b){return b===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(),x.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(b,_){if(m.isArray(b))for(var w=0;w<b.length;++w)this._doInvokeOnCancel(b[w],_);else if(b!==void 0)if(typeof b=="function"){if(!_){var O=v(b).call(this._boundValue());O===g&&(this._attachExtraTrace(O.e),x.throwLater(O.e))}}else b._resultCancelled(this)},u.prototype._invokeOnCancel=function(){var b=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,b)},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,x){return function(b){var _=x._boundValue();e:for(var w=0;w<v.length;++w){var O=v[w];if(O===Error||O!=null&&O.prototype instanceof Error){if(b instanceof O)return p(g).call(_,b)}else if(typeof O=="function"){var E=p(O).call(_,b);if(E===m)return E;if(E)return p(g).call(_,b)}else if(f.isObject(b)){for(var T=d(O),k=0;k<T.length;++k){var P=T[k];if(O[P]!=b[P])continue e}return p(g).call(_,b)}}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,x=u._peekContext,b=u.prototype._peekContext,_=u.prototype._promiseCreated;p.deactivateLongStackTraces=function(){u.prototype._pushContext=v,u.prototype._popContext=g,u._peekContext=x,u.prototype._peekContext=b,u.prototype._promiseCreated=_,f=!1},f=!0,u.prototype._pushContext=p.prototype._pushContext,u.prototype._popContext=p.prototype._popContext,u._peekContext=u.prototype._peekContext=m,u.prototype._promiseCreated=function(){var w=this._peekContext();w&&w._promiseCreated==null&&(w._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(u,f){var d,p,m,v=u._getDomain,g=u._async,x=a("./errors").Warning,b=a("./util"),_=b.canAttachTrace,w=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,O=/\((?:timers\.js):\d+:\d+\)/,E=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,T=null,k=null,P=!1,D=b.env("BLUEBIRD_DEBUG")!=0,N=!(b.env("BLUEBIRD_WARNINGS")==0||!D&&!b.env("BLUEBIRD_WARNINGS")),F=!(b.env("BLUEBIRD_LONG_STACK_TRACES")==0||!D&&!b.env("BLUEBIRD_LONG_STACK_TRACES")),B=b.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(N||!!b.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 $(ce,de,_e||this)},u.onPossiblyUnhandledRejection=function(ce){var de=v();p=typeof ce=="function"?de===null?ce:b.domainBind(de,ce):void 0},u.onUnhandledRejectionHandled=function(ce){var de=v();d=typeof ce=="function"?de===null?ce:b.domainBind(de,ce):void 0};var Y=function(){};u.longStackTraces=function(){if(g.haveItemsQueued()&&!Pe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!Pe.longStackTraces&&ue()){var ce=u.prototype._captureStackTrace,de=u.prototype._attachExtraTrace;Pe.longStackTraces=!0,Y=function(){if(g.haveItemsQueued()&&!Pe.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(),Pe.longStackTraces=!1},u.prototype._captureStackTrace=j,u.prototype._attachExtraTrace=A,f.activateLongStackTraces(),g.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return Pe.longStackTraces&&ue()};var H=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return b.global.dispatchEvent(ce),function(de,_e){var be=new CustomEvent(de.toLowerCase(),{detail:_e,cancelable:!0});return!b.global.dispatchEvent(be)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),b.global.dispatchEvent(ce),function(de,_e){var be=new Event(de.toLowerCase(),{cancelable:!0});return be.detail=_e,!b.global.dispatchEvent(be)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),b.global.dispatchEvent(ce),function(de,_e){var be=document.createEvent("CustomEvent");return be.initCustomEvent(de.toLowerCase(),!1,!0,_e),!b.global.dispatchEvent(be)})}catch{}return function(){return!1}}(),Q=b.isNode?function(){return r.emit.apply(r,arguments)}:b.global?function(ce){var de="on"+ce.toLowerCase(),_e=b.global[de];return!!_e&&(_e.apply(b.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 z(){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: "+b.toString(Se));be._attachCancellationCallback(Se)})}catch(Se){return Se}}function W(ce){if(!this._isCancellable())return this;var de=this._onCancel();de!==void 0?b.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 oe(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()&&Y()),"warnings"in ce){var de=ce.warnings;Pe.warnings=!!de,B=Pe.warnings,b.isObject(de)&&"wForgottenReturn"in de&&(B=!!de.wForgottenReturn)}if("cancellation"in ce&&ce.cancellation&&!Pe.cancellation){if(g.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=ee,u.prototype._propagateFrom=oe,u.prototype._onCancel=re,u.prototype._setOnCancel=q,u.prototype._attachCancellationCallback=W,u.prototype._execute=V,le=oe,Pe.cancellation=!0}return"monitoring"in ce&&(ce.monitoring&&!Pe.monitoring?(Pe.monitoring=!0,u.prototype._fireEvent=X):!ce.monitoring&&Pe.monitoring&&(Pe.monitoring=!1,u.prototype._fireEvent=z)),u},u.prototype._fireEvent=z,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 le=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 A(ce,de){if(_(ce)){var _e=this._trace;if(_e!==void 0&&de&&(_e=_e._parent),_e!==void 0)_e.attachExtraTrace(ce);else if(!ce.__stackCleaned__){var be=K(ce);b.notEnumerableProp(ce,"stack",be.message+`
|
||
`+be.stack.join(`
|
||
`)),b.notEnumerableProp(ce,"__stackCleaned__",!0)}}}function $(ce,de,_e){if(Pe.warnings){var be,Se=new x(ce);if(de)_e._attachExtraTrace(Se);else if(Pe.longStackTraces&&(be=u._peekContext()))be.attachExtraTrace(Se);else{var Ae=K(Se);Se.stack=Ae.message+`
|
||
`+Ae.stack.join(`
|
||
`)}X("warning",Se)||se(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),Ae=Se&&ve(be);Se&&!Ae&&(P&&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(`
|
||
`),Ae=0;Ae<Se.length;++Ae){var Le=Se[Ae];if(Le===" (No stack trace)"||T.test(Le))break}return Ae>0&&be.name!="SyntaxError"&&(Se=Se.slice(Ae)),Se}(ce):[" (No stack trace)"],{message:_e,stack:ce.name=="SyntaxError"?de:J(de)}}function se(ce,de,_e){if(typeof console<"u"){var be;if(b.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(Ae){g.throwLater(Ae)}ce==="unhandledRejection"?X(ce,_e,be)||Se||se(_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():b.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()}b.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 Ae=de[be].stack;_e[Ae]===void 0&&(_e[Ae]=be)}for(be=0;be<ce;++be){var Le=_e[de[be].stack];if(Le!==void 0&&Le!==be){Le>0&&(de[Le-1]._parent=void 0,de[Le-1]._length=1),de[be]._parent=void 0,de[be]._length=1;var st=be>0?de[be-1]:this;Le<ce-1?(st._parent=de[Le+1],st._parent.uncycle(),st._length=st._parent._length+1):(st._parent=void 0,st._length=1);for(var ct=st._length+1,et=be-2;et>=0;--et)de[et]._length=ct,ct++;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(Ae){for(var Le=Ae[0],st=1;st<Ae.length;++st){for(var ct=Ae[st],et=Le.length-1,fn=Le[et],nn=-1,In=ct.length-1;In>=0;--In)if(ct[In]===fn){nn=In;break}for(In=nn;In>=0;--In){var Or=ct[In];if(Le[et]!==Or)break;Le.pop(),et--}Le=ct}})(be),function(Ae){for(var Le=0;Le<Ae.length;++Le)(Ae[Le].length===0||Le+1<Ae.length&&Ae[Le][0]===Ae[Le+1][0])&&(Ae.splice(Le,1),Le--)}(be),b.notEnumerableProp(ce,"stack",function(Ae,Le){for(var st=0;st<Le.length-1;++st)Le[st].push("From previous event:"),Le[st]=Le[st].join(`
|
||
`);return st<Le.length&&(Le[st]=Le[st].join(`
|
||
`)),Ae+`
|
||
`+Le.join(`
|
||
`)}(_e,be)),b.notEnumerableProp(ce,"__stackCleaned__",!0)}};var ke=function(){var ce=/^\s*at\s*/,de=function(Ae,Le){return typeof Ae=="string"?Ae:Le.name!==void 0&&Le.message!==void 0?Le.toString():Ee(Le)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,T=ce,k=de;var _e=Error.captureStackTrace;return ve=function(Ae){return w.test(Ae)},function(Ae,Le){Error.stackTraceLimit+=6,_e(Ae,Le),Error.stackTraceLimit-=6}}var be,Se=new Error;if(typeof Se.stack=="string"&&Se.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return T=/@/,k=de,P=!0,function(Ae){Ae.stack=new Error().stack};try{throw new Error}catch(Ae){be="stack"in Ae}return"stack"in Se||!be||typeof Error.stackTraceLimit!="number"?(k=function(Ae,Le){return typeof Ae=="string"?Ae:typeof Le!="object"&&typeof Le!="function"||Le.name===void 0||Le.message===void 0?Ee(Le):Le.toString()},null):(T=ce,k=de,function(Ae){Error.stackTraceLimit+=6;try{throw new Error}catch(Le){Ae.stack=Le.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ce){console.warn(ce)},b.isNode&&r.stderr.isTTY?m=function(ce,de){var _e=de?"\x1B[33m":"\x1B[31m";console.warn(_e+ce+`\x1B[0m
|
||
`)}:b.isNode||typeof new Error().stack!="string"||(m=function(ce,de){console.warn("%c"+ce,de?"color: darkorange":"color: red")}));var Pe={warnings:N,longStackTraces:!1,cancellation:!1,monitoring:!1};return F&&u.longStackTraces(),{longStackTraces:function(){return Pe.longStackTraces},warnings:function(){return Pe.warnings},cancellation:function(){return Pe.cancellation},monitoring:function(){return Pe.monitoring},propagateFromFunction:function(){return le},boundValueFunction:function(){return fe},checkForgottenReturns:function(ce,de,_e,be,Se){if(ce===void 0&&de!==null&&B){if(Se!==void 0&&Se._returnedNonUndefined()||!(65535&be._bitField))return;_e&&(_e+=" ");var Ae="",Le="";if(de._trace){for(var st=de._trace.stack.split(`
|
||
`),ct=J(st),et=ct.length-1;et>=0;--et){var fn=ct[et];if(!O.test(fn)){var nn=fn.match(E);nn&&(Ae="at "+nn[1]+":"+nn[2]+":"+nn[3]+" ");break}}if(ct.length>0){var In=ct[0];for(et=0;et<st.length;++et)if(st[et]===In){et>0&&(Le=`
|
||
`+st[et-1]);break}}}var Or="a promise was created in a "+_e+"handler "+Ae+"but was not returned from it, see http://goo.gl/rRqMUw"+Le;be._warn(Or,!0,de)}},setBounds:function(ce,de){if(ue()){for(var _e,be,Se=ce.stack.split(`
|
||
`),Ae=de.stack.split(`
|
||
`),Le=-1,st=-1,ct=0;ct<Se.length;++ct)if(et=Oe(Se[ct])){_e=et.fileName,Le=et.line;break}for(ct=0;ct<Ae.length;++ct){var et;if(et=Oe(Ae[ct])){be=et.fileName,st=et.line;break}}Le<0||st<0||!_e||!be||_e!==be||Le>=st||(ve=function(fn){if(w.test(fn))return!0;var nn=Oe(fn);return!!(nn&&nn.fileName===_e&&Le<=nn.line&&nn.line<=st)})}},warn:$,deprecated:function(ce,de){var _e=ce+" is deprecated and will be removed in a future version.";return de&&(_e+=" Use "+de+" instead."),$(_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 x(N,F){function B(Y){if(!(this instanceof B))return new B(Y);g(this,"message",typeof Y=="string"?Y:F),g(this,"name",N),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(B,Error),B}var b=x("Warning","warning"),_=x("CancellationError","cancellation error"),w=x("TimeoutError","timeout error"),O=x("AggregateError","aggregate error");try{u=TypeError,f=RangeError}catch{u=x("TypeError","type error"),f=x("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 P(N){if(!(this instanceof P))return new P(N);g(this,"name","OperationalError"),g(this,"message",N),this.cause=N,this.isOperational=!0,N instanceof Error?(g(this,"message",N.message),g(this,"stack",N.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}O.prototype.toString=function(){var N=Array(4*k+1).join(" "),F=`
|
||
`+N+`AggregateError of:
|
||
`;k++,N=Array(4*k+1).join(" ");for(var B=0;B<this.length;++B){for(var Y=this[B]===this?"[Circular AggregateError]":this[B]+"",H=Y.split(`
|
||
`),Q=0;Q<H.length;++Q)H[Q]=N+H[Q];F+=(Y=H.join(`
|
||
`))+`
|
||
`}return k--,F},v(P,Error);var D=Error.__BluebirdErrorTypes__;D||(D=p({CancellationError:_,TimeoutError:w,OperationalError:P,RejectionError:P,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:b}},{"./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 x=Object.getOwnPropertyDescriptor(v,g);return!(x&&!x.writable&&!x.set)}};else{var f={}.hasOwnProperty,d={}.toString,p={}.constructor.prototype,m=function(v){var g=[];for(var x in v)f.call(v,x)&&g.push(x);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,x){return v[g]=x.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 x(T,k,P){this.promise=T,this.type=k,this.handler=P,this.called=!1,this.cancelPromise=null}function b(T){this.finallyHandler=T}function _(T,k){return T.cancelPromise!=null&&(arguments.length>1?T.cancelPromise._reject(k):T.cancelPromise._cancel(),T.cancelPromise=null,!0)}function w(){return E.call(this,this.promise._target()._settledValue())}function O(T){if(!_(this,T))return v.e=T,v}function E(T){var k=this.promise,P=this.handler;if(!this.called){this.called=!0;var D=this.isFinallyHandler()?P.call(k._boundValue()):P.call(k._boundValue(),T);if(D===d)return D;if(D!==void 0){k._setReturnedNonUndefined();var N=f(D,k);if(N instanceof u){if(this.cancelPromise!=null){if(N._isCancelled()){var F=new m("late cancellation observer");return k._attachExtraTrace(F),v.e=F,v}N.isPending()&&N._attachCancellationCallback(new b(this))}return N._then(w,O,void 0,this,void 0)}}}return k.isRejected()?(_(this),v.e=T,v):(_(this),T)}return x.prototype.isFinallyHandler=function(){return this.type===0},b.prototype._resultCancelled=function(){_(this.finallyHandler)},u.prototype._passThrough=function(T,k,P,D){return typeof T!="function"?this.then():this._then(P,D,void 0,new x(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 P,D=new Array(k-1),N=0;for(P=0;P<k-1;++P){var F=arguments[P];if(!p.isObject(F))return u.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(F)));D[N++]=F}D.length=N;var B=arguments[P];return this._passThrough(g(D,B,this),1,void 0,E)},x}},{"./catch_filter":7,"./util":36}],16:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=a("./errors").TypeError,x=a("./util"),b=x.errorObj,_=x.tryCatch,w=[];function O(E,T,k,P){if(v.cancellation()){var D=new u(d),N=this._finallyPromise=new u(d);this._promise=D.lastly(function(){return N}),D._captureStackTrace(),D._setOnCancel(this)}else(this._promise=new u(d))._captureStackTrace();this._stack=P,this._generatorFunction=E,this._receiver=T,this._generator=void 0,this._yieldHandlers=typeof k=="function"?[k].concat(w):w,this._yieldedPromise=null,this._cancellationPhase=!1}x.inherits(O,m),O.prototype._isResolved=function(){return this._promise===null},O.prototype._cleanup=function(){this._promise=this._generator=null,v.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},O.prototype._promiseCancelled=function(){if(!this._isResolved()){var E;if(this._generator.return!==void 0)this._promise._pushContext(),E=_(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var T=new u.CancellationError("generator .return() sentinel");u.coroutine.returnSentinel=T,this._promise._attachExtraTrace(T),this._promise._pushContext(),E=_(this._generator.throw).call(this._generator,T),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(E)}},O.prototype._promiseFulfilled=function(E){this._yieldedPromise=null,this._promise._pushContext();var T=_(this._generator.next).call(this._generator,E);this._promise._popContext(),this._continue(T)},O.prototype._promiseRejected=function(E){this._yieldedPromise=null,this._promise._attachExtraTrace(E),this._promise._pushContext();var T=_(this._generator.throw).call(this._generator,E);this._promise._popContext(),this._continue(T)},O.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof u){var E=this._yieldedPromise;this._yieldedPromise=null,E.cancel()}},O.prototype.promise=function(){return this._promise},O.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},O.prototype._continue=function(E){var T=this._promise;if(E===b)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 P=p(k,this._promise);if(P instanceof u||(P=function(N,F,B){for(var Y=0;Y<F.length;++Y){B._pushContext();var H=_(F[Y])(N);if(B._popContext(),H===b){B._pushContext();var Q=u.reject(b.e);return B._popContext(),Q}var Z=p(H,B);if(Z instanceof u)return Z}return null}(P,this._yieldHandlers,this._promise))!==null){var D=(P=P._target())._bitField;50397184&D?33554432&D?u._async.invoke(this._promiseFulfilled,this,P._value()):16777216&D?u._async.invoke(this._promiseRejected,this,P._reason()):this._promiseCancelled():(this._yieldedPromise=P,P._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,P=O,D=new Error().stack;return function(){var N=E.apply(this,arguments),F=new P(void 0,void 0,k,D),B=F.promise();return F._generator=N,F._promiseFulfilled(void 0),B}},u.coroutine.addYieldHandler=function(E){if(typeof E!="function")throw new g("expecting a function but got "+x.classString(E));w.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 x,b=arguments.length-1;b>0&&typeof arguments[b]=="function"&&(x=arguments[b]);var _=[].slice.call(arguments);x&&_.pop();var w=new f(_).promise();return x!==void 0?w.spread(x):w}}},{"./util":36}],18:[function(a,s,l){s.exports=function(u,f,d,p,m,v){var g=u._getDomain,x=a("./util"),b=x.tryCatch,_=x.errorObj,w=u._async;function O(T,k,P,D){this.constructor$(T),this._promise._captureStackTrace();var N=g();this._callback=N===null?k:x.domainBind(N,k),this._preservedValues=D===m?new Array(this.length()):null,this._limit=P,this._inFlight=0,this._queue=[],w.invoke(this._asyncInit,this,void 0)}function E(T,k,P,D){if(typeof k!="function")return d("expecting a function but got "+x.classString(k));var N=0;if(P!==void 0){if(typeof P!="object"||P===null)return u.reject(new TypeError("options argument must be an object but it is "+x.classString(P)));if(typeof P.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(P.concurrency)));N=P.concurrency}return new O(T,k,N=typeof N=="number"&&isFinite(N)&&N>=1?N:0,D).promise()}x.inherits(O,f),O.prototype._asyncInit=function(){this._init$(void 0,-2)},O.prototype._init=function(){},O.prototype._promiseFulfilled=function(T,k){var P=this._values,D=this.length(),N=this._preservedValues,F=this._limit;if(k<0){if(P[k=-1*k-1]=T,F>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(F>=1&&this._inFlight>=F)return P[k]=T,this._queue.push(k),!1;N!==null&&(N[k]=T);var B=this._promise,Y=this._callback,H=B._boundValue();B._pushContext();var Q=b(Y).call(H,T,k,D),Z=B._popContext();if(v.checkForgottenReturns(Q,Z,N!==null?"Promise.filter":"Promise.map",B),Q===_)return this._reject(Q.e),!0;var te=p(Q,this._promise);if(te instanceof u){var X=(te=te._target())._bitField;if(!(50397184&X))return F>=1&&this._inFlight++,P[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()}P[k]=Q}return++this._totalResolved>=D&&(N!==null?this._filter(P,N):this._resolve(P),!0)},O.prototype._drainQueue=function(){for(var T=this._queue,k=this._limit,P=this._values;T.length>0&&this._inFlight<k;){if(this._isResolved())return;var D=T.pop();this._promiseFulfilled(P[D],D)}},O.prototype._filter=function(T,k){for(var P=k.length,D=new Array(P),N=0,F=0;F<P;++F)T[F]&&(D[N++]=k[F]);D.length=N,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,P,D){return E(T,k,P,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(x){if(typeof x!="function")throw new u.TypeError("expecting a function but got "+v.classString(x));return function(){var b=new u(f);b._captureStackTrace(),b._pushContext();var _=g(x).apply(this,arguments),w=b._popContext();return m.checkForgottenReturns(_,w,"Promise.method",b),b._resolveFromSyncValue(_),b}},u.attempt=u.try=function(x){if(typeof x!="function")return p("expecting a function but got "+v.classString(x));var b,_=new u(f);if(_._captureStackTrace(),_._pushContext(),arguments.length>1){m.deprecated("calling Promise.try with more than 1 argument");var w=arguments[1],O=arguments[2];b=v.isArray(w)?g(x).apply(O,w):g(x).call(O,w)}else b=g(x)();var E=_._popContext();return m.checkForgottenReturns(b,E,"Promise.try",_),_._resolveFromSyncValue(b),_},u.prototype._resolveFromSyncValue=function(x){x===v.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!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 x;if(function(O){return O instanceof Error&&p.getPrototypeOf(O)===Error.prototype}(g)){(x=new d(g)).name=g.name,x.message=g.message,x.stack=g.stack;for(var b=p.keys(g),_=0;_<b.length;++_){var w=b[_];m.test(w)||(x[w]=g[w])}return x}return u.markAsOriginatingFromRejection(g),g}s.exports=function(g,x){return function(b,_){if(g!==null){if(b){var w=v(f(b));g._attachExtraTrace(w),g._reject(w)}else if(x){var O=[].slice.call(arguments,1);g._fulfill(O)}else g._fulfill(_);g=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(u){var f=a("./util"),d=u._async,p=f.tryCatch,m=f.errorObj;function v(b,_){if(!f.isArray(b))return g.call(this,b,_);var w=p(_).apply(this._boundValue(),[null].concat(b));w===m&&d.throwLater(w.e)}function g(b,_){var w=this._boundValue(),O=b===void 0?p(_).call(w,null):p(_).call(w,null,b);O===m&&d.throwLater(O.e)}function x(b,_){if(!b){var w=new Error(b+"");w.cause=b,b=w}var O=p(_).call(this._boundValue(),b);O===m&&d.throwLater(O.e)}u.prototype.asCallback=u.prototype.nodeify=function(b,_){if(typeof b=="function"){var w=g;_!==void 0&&Object(_).spread&&(w=v),this._then(w,x,void 0,this,b)}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 z.PromiseInspection(this._target())},d=function(q){return z.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(z,"_getDomain",m);var x=a("./es5"),b=a("./async"),_=new b;x.defineProperty(z,"_async",{value:_});var w=a("./errors"),O=z.TypeError=w.TypeError;z.RangeError=w.RangeError;var E=z.CancellationError=w.CancellationError;z.TimeoutError=w.TimeoutError,z.OperationalError=w.OperationalError,z.RejectionError=w.OperationalError,z.AggregateError=w.AggregateError;var T=function(){},k={},P={},D=a("./thenables")(z,T),N=a("./promise_array")(z,T,D,d,p),F=a("./context")(z),B=F.create,Y=a("./debuggability")(z,F),H=(Y.CapturedTrace,a("./finally")(z,D,P)),Q=a("./catch_filter")(P),Z=a("./nodeback"),te=g.errorObj,X=g.tryCatch;function z(q){q!==T&&function(ee,oe){if(ee==null||ee.constructor!==z)throw new O(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof oe!="function")throw new O("expecting a function but got "+g.classString(oe))}(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 z(T);ee._fulfillmentHandler0=q,ee._rejectionHandler0=q,ee._promise0=q,ee._receiver0=q}return z.prototype.toString=function(){return"[object Promise]"},z.prototype.caught=z.prototype.catch=function(q){var ee=arguments.length;if(ee>1){var oe,le=new Array(ee-1),fe=0;for(oe=0;oe<ee-1;++oe){var j=arguments[oe];if(!g.isObject(j))return d("Catch statement predicate: expecting an object but got "+g.classString(j));le[fe++]=j}return le.length=fe,q=arguments[oe],this.then(void 0,Q(le,q,this))}return this.then(void 0,q)},z.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},z.prototype.then=function(q,ee){if(Y.warnings()&&arguments.length>0&&typeof q!="function"&&typeof ee!="function"){var oe=".then() only accepts functions but was passed: "+g.classString(q);arguments.length>1&&(oe+=", "+g.classString(ee)),this._warn(oe)}return this._then(q,ee,void 0,void 0,void 0)},z.prototype.done=function(q,ee){this._then(q,ee,void 0,void 0,void 0)._setIsFinal()},z.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)},z.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},z.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new N(this).promise()},z.prototype.error=function(q){return this.caught(g.originatesFromRejection,q)},z.getNewLibraryCopy=s.exports,z.is=function(q){return q instanceof z},z.fromNode=z.fromCallback=function(q){var ee=new z(T);ee._captureStackTrace();var oe=arguments.length>1&&!!Object(arguments[1]).multiArgs,le=X(q)(Z(ee,oe));return le===te&&ee._rejectCallback(le.e,!0),ee._isFateSealed()||ee._setAsyncGuaranteed(),ee},z.all=function(q){return new N(q).promise()},z.cast=function(q){var ee=D(q);return ee instanceof z||((ee=new z(T))._captureStackTrace(),ee._setFulfilled(),ee._rejectionHandler0=q),ee},z.resolve=z.fulfilled=z.cast,z.reject=z.rejected=function(q){var ee=new z(T);return ee._captureStackTrace(),ee._rejectCallback(q,!0),ee},z.setScheduler=function(q){if(typeof q!="function")throw new O("expecting a function but got "+g.classString(q));return _.setScheduler(q)},z.prototype._then=function(q,ee,oe,le,fe){var j=fe!==void 0,A=j?fe:new z(T),$=this._target(),J=$._bitField;j||(A._propagateFrom(this,3),A._captureStackTrace(),le===void 0&&2097152&this._bitField&&(le=50397184&J?this._boundValue():$===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,A));var K=m();if(50397184&J){var se,he,Ee=$._settlePromiseCtx;33554432&J?(he=$._rejectionHandler0,se=q):16777216&J?(he=$._fulfillmentHandler0,se=ee,$._unsetRejectionIsUnhandled()):(Ee=$._settlePromiseLateCancellationObserver,he=new E("late cancellation observer"),$._attachExtraTrace(he),se=ee),_.invoke(Ee,$,{handler:K===null?se:typeof se=="function"&&g.domainBind(K,se),promise:A,receiver:le,value:he})}else $._addCallbacks(q,ee,A,le,K);return A},z.prototype._length=function(){return 65535&this._bitField},z.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},z.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},z.prototype._setLength=function(q){this._bitField=-65536&this._bitField|65535&q},z.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},z.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},z.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},z.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},z.prototype._isFinal=function(){return(4194304&this._bitField)>0},z.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},z.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},z.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},z.prototype._setAsyncGuaranteed=function(){_.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},z.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},z.prototype._promiseAt=function(q){return this[4*q-4+2]},z.prototype._fulfillmentHandlerAt=function(q){return this[4*q-4+0]},z.prototype._rejectionHandlerAt=function(q){return this[4*q-4+1]},z.prototype._boundValue=function(){},z.prototype._migrateCallback0=function(q){q._bitField;var ee=q._fulfillmentHandler0,oe=q._rejectionHandler0,le=q._promise0,fe=q._receiverAt(0);fe===void 0&&(fe=v),this._addCallbacks(ee,oe,le,fe,null)},z.prototype._migrateCallbackAt=function(q,ee){var oe=q._fulfillmentHandlerAt(ee),le=q._rejectionHandlerAt(ee),fe=q._promiseAt(ee),j=q._receiverAt(ee);j===void 0&&(j=v),this._addCallbacks(oe,le,fe,j,null)},z.prototype._addCallbacks=function(q,ee,oe,le,fe){var j=this._length();if(j>=65531&&(j=0,this._setLength(0)),j===0)this._promise0=oe,this._receiver0=le,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 A=4*j-4;this[A+2]=oe,this[A+3]=le,typeof q=="function"&&(this[A+0]=fe===null?q:g.domainBind(fe,q)),typeof ee=="function"&&(this[A+1]=fe===null?ee:g.domainBind(fe,ee))}return this._setLength(j+1),j},z.prototype._proxy=function(q,ee){this._addCallbacks(void 0,void 0,ee,q,null)},z.prototype._resolveCallback=function(q,ee){if(!(117506048&this._bitField)){if(q===this)return this._rejectCallback(u(),!1);var oe=D(q,this);if(!(oe instanceof z))return this._fulfill(q);ee&&this._propagateFrom(oe,2);var le=oe._target();if(le!==this){var fe=le._bitField;if(50397184&fe)if(33554432&fe)this._fulfill(le._value());else if(16777216&fe)this._reject(le._reason());else{var $=new E("late cancellation observer");le._attachExtraTrace($),this._reject($)}else{var j=this._length();j>0&&le._migrateCallback0(this);for(var A=1;A<j;++A)le._migrateCallbackAt(this,A);this._setFollowing(),this._setLength(0),this._setFollowee(le)}}else this._reject(u())}},z.prototype._rejectCallback=function(q,ee,oe){var le=g.ensureErrorObject(q),fe=le===q;if(!fe&&!oe&&Y.warnings()){var j="a promise was rejected with a non-error: "+g.classString(q);this._warn(j,!0)}this._attachExtraTrace(le,!!ee&&fe),this._reject(q)},z.prototype._resolveFromExecutor=function(q){if(q!==T){var ee=this;this._captureStackTrace(),this._pushContext();var oe=!0,le=this._execute(q,function(fe){ee._resolveCallback(fe)},function(fe){ee._rejectCallback(fe,oe)});oe=!1,this._popContext(),le!==void 0&&ee._rejectCallback(le,!0)}},z.prototype._settlePromiseFromHandler=function(q,ee,oe,le){var fe=le._bitField;if(!(65536&fe)){var j;le._pushContext(),ee===k?oe&&typeof oe.length=="number"?j=X(q).apply(this._boundValue(),oe):(j=te).e=new O("cannot .spread() a non-array: "+g.classString(oe)):j=X(q).call(ee,oe);var A=le._popContext();!(65536&(fe=le._bitField))&&(j===P?le._reject(oe):j===te?le._rejectCallback(j.e,!1):(Y.checkForgottenReturns(j,A,"",le,this),le._resolveCallback(j)))}},z.prototype._target=function(){for(var q=this;q._isFollowing();)q=q._followee();return q},z.prototype._followee=function(){return this._rejectionHandler0},z.prototype._setFollowee=function(q){this._rejectionHandler0=q},z.prototype._settlePromise=function(q,ee,oe,le){var fe=q instanceof z,j=this._bitField,A=(134217728&j)!=0;65536&j?(fe&&q._invokeInternalOnCancel(),oe instanceof H&&oe.isFinallyHandler()?(oe.cancelPromise=q,X(ee).call(oe,le)===te&&q._reject(te.e)):ee===f?q._fulfill(f.call(oe)):oe instanceof p?oe._promiseCancelled(q):fe||q instanceof N?q._cancel():oe.cancel()):typeof ee=="function"?fe?(A&&q._setAsyncGuaranteed(),this._settlePromiseFromHandler(ee,oe,le,q)):ee.call(oe,le,q):oe instanceof p?oe._isResolved()||(33554432&j?oe._promiseFulfilled(le,q):oe._promiseRejected(le,q)):fe&&(A&&q._setAsyncGuaranteed(),33554432&j?q._fulfill(le):q._reject(le))},z.prototype._settlePromiseLateCancellationObserver=function(q){var ee=q.handler,oe=q.promise,le=q.receiver,fe=q.value;typeof ee=="function"?oe instanceof z?this._settlePromiseFromHandler(ee,le,fe,oe):ee.call(le,fe,oe):oe instanceof z&&oe._reject(fe)},z.prototype._settlePromiseCtx=function(q){this._settlePromise(q.promise,q.handler,q.receiver,q.value)},z.prototype._settlePromise0=function(q,ee,oe){var le=this._promise0,fe=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(le,q,fe,ee)},z.prototype._clearCallbackDataAtIndex=function(q){var ee=4*q-4;this[ee+2]=this[ee+3]=this[ee+0]=this[ee+1]=void 0},z.prototype._fulfill=function(q){var ee=this._bitField;if(!((117506048&ee)>>>16)){if(q===this){var oe=u();return this._attachExtraTrace(oe),this._reject(oe)}this._setFulfilled(),this._rejectionHandler0=q,(65535&ee)>0&&(134217728&ee?this._settlePromises():_.settlePromises(this))}},z.prototype._reject=function(q){var ee=this._bitField;if(!((117506048&ee)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=q,this._isFinal())return _.fatalError(q,g.isNode);(65535&ee)>0?_.settlePromises(this):this._ensurePossibleRejectionHandled()}},z.prototype._fulfillPromises=function(q,ee){for(var oe=1;oe<q;oe++){var le=this._fulfillmentHandlerAt(oe),fe=this._promiseAt(oe),j=this._receiverAt(oe);this._clearCallbackDataAtIndex(oe),this._settlePromise(fe,le,j,ee)}},z.prototype._rejectPromises=function(q,ee){for(var oe=1;oe<q;oe++){var le=this._rejectionHandlerAt(oe),fe=this._promiseAt(oe),j=this._receiverAt(oe);this._clearCallbackDataAtIndex(oe),this._settlePromise(fe,le,j,ee)}},z.prototype._settlePromises=function(){var q=this._bitField,ee=65535&q;if(ee>0){if(16842752&q){var oe=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,oe,q),this._rejectPromises(ee,oe)}else{var le=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,le,q),this._fulfillPromises(ee,le)}this._setLength(0)}this._clearCancellationData()},z.prototype._settledValue=function(){var q=this._bitField;return 33554432&q?this._rejectionHandler0:16777216&q?this._fulfillmentHandler0:void 0},z.defer=z.pending=function(){return Y.deprecated("Promise.defer","new Promise"),{promise:new z(T),resolve:V,reject:W}},g.notEnumerableProp(z,"_makeSelfResolutionError",u),a("./method")(z,T,D,d,Y),a("./bind")(z,T,D,Y),a("./cancel")(z,N,d,Y),a("./direct_resolve")(z),a("./synchronous_inspection")(z),a("./join")(z,N,D,T,_,m),z.Promise=z,z.version="3.5.1",a("./map.js")(z,N,d,D,T,Y),a("./call_get.js")(z),a("./using.js")(z,d,D,B,T,Y),a("./timers.js")(z,T,Y),a("./generators.js")(z,d,T,D,p,Y),a("./nodeify.js")(z),a("./promisify.js")(z,T),a("./props.js")(z,N,D,d),a("./race.js")(z,T,D,d),a("./reduce.js")(z,N,d,D,T,Y),a("./settle.js")(z,N,Y),a("./some.js")(z,N,d),a("./filter.js")(z,T),a("./each.js")(z,T),a("./any.js")(z),g.toFastProperties(z),g.toFastProperties(z.prototype),re({a:1}),re({b:2}),re({c:3}),re(1),re(function(){}),re(void 0),re(!1),re(new z(T)),Y.setBounds(b.firstLineError,g.lastLineError),z}},{"./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(x){var b=this._promise=new u(f);x instanceof u&&b._propagateFrom(x,3),b._setOnCancel(this),this._values=x,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 x(b,_){var w=d(this._values,this._promise);if(w instanceof u){var O=(w=w._target())._bitField;if(this._values=w,(50397184&O)==0)return this._promise._setAsyncGuaranteed(),w._then(x,this._reject,void 0,this,_);if(!(33554432&O))return 16777216&O?this._reject(w._reason()):this._cancel();w=w._value()}if((w=v.asArray(w))!==null)w.length!==0?this._iterate(w):_===-5?this._resolveEmptyArray():this._resolve(function(T){switch(_){case-2:return[];case-3:return{};case-6:return new Map}}());else{var E=p("expecting an array or an iterable object but got "+v.classString(w)).reason();this._promise._rejectCallback(E,!1)}},g.prototype._iterate=function(x){var b=this.getActualLength(x.length);this._length=b,this._values=this.shouldCopyValues()?new Array(b):this._values;for(var _=this._promise,w=!1,O=null,E=0;E<b;++E){var T=d(x[E],_);O=T instanceof u?(T=T._target())._bitField:null,w?O!==null&&T.suppressUnhandledRejections():O!==null?50397184&O?w=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):w=this._promiseFulfilled(T,E)}w||_._setAsyncGuaranteed()},g.prototype._isResolved=function(){return this._values===null},g.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},g.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},g.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},g.prototype._promiseFulfilled=function(x,b){return this._values[b]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},g.prototype._promiseCancelled=function(){return this._cancel(),!0},g.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},g.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof u)x.cancel();else for(var b=0;b<x.length;++b)x[b]instanceof u&&x[b].cancel()}},g.prototype.shouldCopyValues=function(){return!0},g.prototype.getActualLength=function(x){return x},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,x=p.canEvaluate,b=a("./errors").TypeError,_={__isPromisified__:!0},w=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),O=function(B){return p.isIdentifier(B)&&B.charAt(0)!=="_"&&B!=="constructor"};function E(B){return!w.test(B)}function T(B){try{return B.__isPromisified__===!0}catch{return!1}}function k(B,Y,H){var Q=p.getDataPropertyOrDefault(B,Y+H,_);return!!Q&&T(Q)}function P(B,Y,H,Q){for(var Z=p.inheritedDataKeys(B),te=[],X=0;X<Z.length;++X){var z=Z[X],V=B[z],W=Q===O||O(z);typeof V!="function"||T(V)||k(B,z,Y)||!Q(z,V,B,W)||te.push(z,V)}return function(re,q,ee){for(var oe=0;oe<re.length;oe+=2){var le=re[oe];if(ee.test(le)){for(var fe=le.replace(ee,""),j=0;j<re.length;j+=2)if(re[j]===fe)throw new b(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",q))}}}(te,Y,H),te}var D=function(B){return B.replace(/([$])/,"\\$")},N=x?void 0:function(B,Y,H,Q,Z,te){var X=function(){return this}(),z=B;function V(){var W=Y;Y===d&&(W=this);var re=new u(f);re._captureStackTrace();var q=typeof z=="string"&&this!==X?this[z]:B,ee=m(re,te);try{q.apply(W,v(arguments,ee))}catch(oe){re._rejectCallback(g(oe),!0,!0)}return re._isFateSealed()||re._setAsyncGuaranteed(),re}return typeof z=="string"&&(B=Q),p.notEnumerableProp(V,"__isPromisified__",!0),V};function F(B,Y,H,Q,Z){for(var te=new RegExp(D(Y)+"$"),X=P(B,Y,te,H),z=0,V=X.length;z<V;z+=2){var W=X[z],re=X[z+1],q=W+Y;if(Q===N)B[q]=N(W,d,W,re,Y,Z);else{var ee=Q(re,function(){return N(W,d,W,re,Y,Z)});p.notEnumerableProp(ee,"__isPromisified__",!0),B[q]=ee}}return p.toFastProperties(B),B}u.promisify=function(B,Y){if(typeof B!="function")throw new b("expecting a function but got "+p.classString(B));if(T(B))return B;var H=(Y=Object(Y)).context===void 0?d:Y.context,Q=!!Y.multiArgs,Z=function(te,X,z){return N(te,X,void 0,te,null,Q)}(B,H);return p.copyDescriptors(B,Z,E),Z},u.promisifyAll=function(B,Y){if(typeof B!="function"&&typeof B!="object")throw new b(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var H=!!(Y=Object(Y)).multiArgs,Q=Y.suffix;typeof Q!="string"&&(Q="Async");var Z=Y.filter;typeof Z!="function"&&(Z=O);var te=Y.promisifier;if(typeof te!="function"&&(te=N),!p.isIdentifier(Q))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var X=p.inheritedDataKeys(B),z=0;z<X.length;++z){var V=B[X[z]];X[z]!=="constructor"&&p.isClass(V)&&(F(V.prototype,Q,Z,te,H),F(V,Q,Z,te,H))}return F(B,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,x=a("./es5");typeof Map=="function"&&(m=Map);var b=function(){var O=0,E=0;function T(k,P){this[O]=k,this[O+E]=P,O++}return function(k){E=k.size,O=0;var P=new Array(2*k.size);return k.forEach(T,P),P}}();function _(O){var E,T=!1;if(m!==void 0&&O instanceof m)E=b(O),T=!0;else{var k=x.keys(O),P=k.length;E=new Array(2*P);for(var D=0;D<P;++D){var N=k[D];E[D]=O[N],E[D+P]=N}}this.constructor$(E),this._isMap=T,this._init$(void 0,T?-6:-3)}function w(O){var E,T=d(O);return g(T)?(E=T instanceof u?T._then(u.props,void 0,void 0,void 0,void 0):new _(T).promise(),T instanceof u&&E._propagateFrom(T,2),E):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}v.inherits(_,f),_.prototype._init=function(){},_.prototype._promiseFulfilled=function(O,E){if(this._values[E]=O,++this._totalResolved>=this._length){var T;if(this._isMap)T=function(N){for(var F=new m,B=N.length/2|0,Y=0;Y<B;++Y){var H=N[B+Y],Q=N[Y];F.set(H,Q)}return F}(this._values);else{T={};for(var k=this.length(),P=0,D=this.length();P<D;++P)T[this._values[P+k]]=this._values[P]}return this._resolve(T),!0}return!1},_.prototype.shouldCopyValues=function(){return!1},_.prototype.getActualLength=function(O){return O>>1},u.prototype.props=function(){return w(this)},u.props=function(O){return w(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,x){for(var b=0;b<x;++b)v[b+g]=p[b+0],p[b+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(x){return x.then(function(b){return g(b,x)})};function g(x,b){var _=d(x);if(_ instanceof u)return v(_);if((x=m.asArray(x))===null)return p("expecting an array or an iterable object but got "+m.classString(x));var w=new u(f);b!==void 0&&w._propagateFrom(b,3);for(var O=w._fulfill,E=w._reject,T=0,k=x.length;T<k;++T){var P=x[T];(P!==void 0||T in x)&&u.cast(P)._then(O,E,void 0,w,null)}return w}u.race=function(x){return g(x,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,x=a("./util"),b=x.tryCatch;function _(k,P,D,N){this.constructor$(k);var F=g();this._fn=F===null?P:x.domainBind(F,P),D!==void 0&&(D=u.resolve(D))._attachCancellationCallback(this),this._initialValue=D,this._currentCancellable=null,this._eachValues=N===m?Array(this._length):N===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function w(k,P){this.isFulfilled()?P._resolve(k):P._reject(k)}function O(k,P,D,N){return typeof P!="function"?d("expecting a function but got "+x.classString(P)):new _(k,P,D,N).promise()}function E(k){this.accum=k,this.array._gotAccum(k);var P=p(this.value,this.array._promise);return P instanceof u?(this.array._currentCancellable=P,P._then(T,void 0,void 0,this,void 0)):T.call(this,P)}function T(k){var P,D=this.array,N=D._promise,F=b(D._fn);N._pushContext(),(P=D._eachValues!==void 0?F.call(N._boundValue(),k,this.index,this.length):F.call(N._boundValue(),this.accum,k,this.index,this.length))instanceof u&&(D._currentCancellable=P);var B=N._popContext();return v.checkForgottenReturns(P,B,D._eachValues!==void 0?"Promise.each":"Promise.reduce",N),P}x.inherits(_,f),_.prototype._gotAccum=function(k){this._eachValues!==void 0&&this._eachValues!==null&&k!==m&&this._eachValues.push(k)},_.prototype._eachComplete=function(k){return this._eachValues!==null&&this._eachValues.push(k),this._eachValues},_.prototype._init=function(){},_.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},_.prototype.shouldCopyValues=function(){return!1},_.prototype._resolve=function(k){this._promise._resolveCallback(k),this._values=null},_.prototype._resultCancelled=function(k){if(k===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof u&&this._currentCancellable.cancel(),this._initialValue instanceof u&&this._initialValue.cancel())},_.prototype._iterate=function(k){var P,D;this._values=k;var N=k.length;if(this._initialValue!==void 0?(P=this._initialValue,D=0):(P=u.resolve(k[0]),D=1),this._currentCancellable=P,!P.isRejected())for(;D<N;++D){var F={accum:null,value:k[D],index:D,length:N,array:this};P=P._then(E,void 0,void 0,F,void 0)}this._eachValues!==void 0&&(P=P._then(this._eachComplete,void 0,void 0,this,void 0)),P._then(w,w,void 0,P,this)},u.prototype.reduce=function(k,P){return O(this,k,P,null)},u.reduce=function(k,P,D,N){return O(k,P,D,N)}}},{"./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"),x={attributes:!0},b=!1,_=document.createElement("div");return new MutationObserver(function(){g.classList.toggle("foo"),b=!1}).observe(_,x),function(w){var O=new MutationObserver(function(){O.disconnect(),w()});O.observe(g,x),b||(b=!0,_.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,l){s.exports=function(u,f,d){var p=u.PromiseInspection;function m(v){this.constructor$(v)}a("./util").inherits(m,f),m.prototype._promiseResolved=function(v,g){return this._values[v]=g,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(v,g){var x=new p;return x._bitField=33554432,x._settledValueField=v,this._promiseResolved(g,x)},m.prototype._promiseRejected=function(v,g){var x=new p;return x._bitField=16777216,x._settledValueField=v,this._promiseResolved(g,x)},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,x={};function b(w){this.constructor$(w),this._howMany=0,this._unwrap=!1,this._initialized=!1}function _(w,O){if((0|O)!==O||O<0)return d(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var E=new b(w),T=E.promise();return E.setHowMany(O),E.init(),T}p.inherits(b,f),b.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var w=g(this._values);!this._isResolved()&&w&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},b.prototype.init=function(){this._initialized=!0,this._init()},b.prototype.setUnwrap=function(){this._unwrap=!0},b.prototype.howMany=function(){return this._howMany},b.prototype.setHowMany=function(w){this._howMany=w},b.prototype._promiseFulfilled=function(w){return this._addFulfilled(w),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},b.prototype._promiseRejected=function(w){return this._addRejected(w),this._checkOutcome()},b.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},b.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var w=new v,O=this.length();O<this._values.length;++O)this._values[O]!==x&&w.push(this._values[O]);return w.length>0?this._reject(w):this._cancel(),!0}return!1},b.prototype._fulfilled=function(){return this._totalResolved},b.prototype._rejected=function(){return this._values.length-this.length()},b.prototype._addRejected=function(w){this._values.push(w)},b.prototype._addFulfilled=function(w){this._values[this._totalResolved++]=w},b.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},b.prototype._getRangeError=function(w){var O="Input array must contain at least "+this._howMany+" items but contains only "+w+" items";return new m(O)},b.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(w,O){return _(w,O)},u.prototype.some=function(w){return _(this,w)},u._SomePromiseArray=b}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(u){function f(b){b!==void 0?(b=b._target(),this._bitField=b._bitField,this._settledValueField=b._isFateSealed()?b._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},x=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 x.call(this._target())},u.prototype.value=function(){return d.call(this._target())},u.prototype.reason=function(){var b=this._target();return b._unsetRejectionIsUnhandled(),p.call(b)},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,x){if(m(g)){if(g instanceof u)return g;var b=function(w){try{return function(O){return O.then}(w)}catch(O){return p.e=O,p}}(g);if(b===p){x&&x._pushContext();var _=u.reject(b.e);return x&&x._popContext(),_}if(typeof b=="function")return function(w){try{return v.call(w,"_promise0")}catch{return!1}}(g)?(_=new u(f),g._then(_._fulfill,_._reject,void 0,_,null),_):function(w,O,E){var T=new u(f),k=T;E&&E._pushContext(),T._captureStackTrace(),E&&E._popContext();var P=!0,D=d.tryCatch(O).call(w,function(N){T&&(T._resolveCallback(N),T=null)},function(N){T&&(T._rejectCallback(N,P,!0),T=null)});return P=!1,T&&D===p&&(T._rejectCallback(D.e,!0,!0),T=null),k}(g,b,x)}return g}}},{"./util":36}],34:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),m=u.TimeoutError;function v(w){this.handle=w}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var g=function(w){return x(+this).thenReturn(w)},x=u.delay=function(w,O){var E,T;return O!==void 0?(E=u.resolve(O)._then(g,null,null,w,void 0),d.cancellation()&&O instanceof u&&E._setOnCancel(O)):(E=new u(f),T=setTimeout(function(){E._fulfill()},+w),d.cancellation()&&E._setOnCancel(new v(T)),E._captureStackTrace()),E._setAsyncGuaranteed(),E};function b(w){return clearTimeout(this.handle),w}function _(w){throw clearTimeout(this.handle),w}u.prototype.delay=function(w){return x(w,this)},u.prototype.timeout=function(w,O){var E,T;w=+w;var k=new v(setTimeout(function(){E.isPending()&&function(P,D,N){var F;F=typeof D!="string"?D instanceof Error?D:new m("operation timed out"):new m(D),p.markAsOriginatingFromRejection(F),P._attachExtraTrace(F),P._reject(F),N!=null&&N.cancel()}(E,O,T)},w));return d.cancellation()?(T=this.then(),(E=T._then(b,_,void 0,k,void 0))._setOnCancel(k)):E=this._then(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"),x=a("./errors").TypeError,b=a("./util").inherits,_=g.errorObj,w=g.tryCatch,O={};function E(F){setTimeout(function(){throw F},0)}function T(F,B){var Y=0,H=F.length,Q=new u(m);return function Z(){if(Y>=H)return Q._fulfill();var te=function(X){var z=d(X);return z!==X&&typeof X._isDisposable=="function"&&typeof X._getDisposer=="function"&&X._isDisposable()&&z._setDisposable(X._getDisposer()),z}(F[Y++]);if(te instanceof u&&te._isDisposable()){try{te=d(te._getDisposer().tryDispose(B),F.promise)}catch(X){return E(X)}if(te instanceof u)return te._then(Z,E,null,null,null)}Z()}(),Q}function k(F,B,Y){this._data=F,this._promise=B,this._context=Y}function P(F,B,Y){this.constructor$(F,B,Y)}function D(F){return k.isDisposer(F)?(this.resources[this.index]._setDisposable(F),F.promise()):F}function N(F){this.length=F,this.promise=null,this[F-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(F){var B=this.resource(),Y=this._context;Y!==void 0&&Y._pushContext();var H=B!==O?this.doDispose(B,F):null;return Y!==void 0&&Y._popContext(),this._promise._unsetDisposable(),this._data=null,H},k.isDisposer=function(F){return F!=null&&typeof F.resource=="function"&&typeof F.tryDispose=="function"},b(P,k),P.prototype.doDispose=function(F,B){return this.data().call(F,F,B)},N.prototype._resultCancelled=function(){for(var F=this.length,B=0;B<F;++B){var Y=this[B];Y instanceof u&&Y.cancel()}},u.using=function(){var F=arguments.length;if(F<2)return f("you must pass at least 2 arguments to Promise.using");var B,Y=arguments[F-1];if(typeof Y!="function")return f("expecting a function but got "+g.classString(Y));var H=!0;F===2&&Array.isArray(arguments[0])?(F=(B=arguments[0]).length,H=!1):(B=arguments,F--);for(var Q=new N(F),Z=0;Z<F;++Z){var te=B[Z];if(k.isDisposer(te)){var X=te;(te=te.promise())._setDisposable(X)}else{var z=d(te);z instanceof u&&(te=z._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 oe=q[ee];if(oe.isRejected())return _.e=oe.error(),_;if(!oe.isFulfilled())return void W.cancel();q[ee]=oe.value()}re._pushContext(),Y=w(Y);var le=H?Y.apply(void 0,q):Y(q),fe=re._popContext();return v.checkForgottenReturns(le,fe,"Promise.using",re),le}),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(F){this._bitField=131072|this._bitField,this._disposer=F},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(F){if(typeof F=="function")return new P(F,this,p());throw new x}}},{"./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 x(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 b=function(){var H=[Array.prototype,Object.prototype,Function.prototype],Q=function(X){for(var z=0;z<H.length;++z)if(H[z]===X)return!0;return!1};if(f.isES5){var Z=Object.getOwnPropertyNames;return function(X){for(var z=[],V=Object.create(null);X!=null&&!Q(X);){var W;try{W=Z(X)}catch{return z}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&&z.push(q)}}X=f.getPrototypeOf(X)}return z}}var te={}.hasOwnProperty;return function(X){if(Q(X))return[];var z=[];e:for(var V in X)if(te.call(X,V))z.push(V);else{for(var W=0;W<H.length;++W)if(te.call(H[W],V))continue e;z.push(V)}return z}}(),_=/this\s*\.\s*\S+\s*=/,w=/^[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 P(H){return{}.toString.call(H)}var D=function(H){return f.isArray(H)?H:null};if(typeof Symbol<"u"&&Symbol.iterator){var N=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"?N(H):null}}var F=r!==void 0&&P(r).toLowerCase()==="[object process]",B=r!==void 0&&r.env!==void 0,Y={isClass:function(H){try{if(typeof H=="function"){var Q=f.names(H.prototype),Z=f.isES5&&Q.length>1,te=Q.length>0&&!(Q.length===1&&Q[0]==="constructor"),X=_.test(H+"")&&f.names(H).length>0;if(Z||te||X)return!0}return!1}catch{return!1}},isIdentifier:function(H){return w.test(H)},inheritedDataKeys:b,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:x,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{x(H,"isOperational",!0)}catch{}},classString:P,copyDescriptors:function(H,Q,Z){for(var te=f.names(H),X=0;X<te.length;++X){var z=te[X];if(Z(z))try{f.defineProperty(Q,z,f.getDescriptor(H,z))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:F,hasEnvVariables:B,env:function(H){return B?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)}};Y.isRecentNode=Y.isNode&&function(){var H=r.versions.node.split(".").map(Number);return H[0]===0&&H[1]>10||H[0]>0}(),Y.isNode&&Y.toFastProperties(r);try{throw new Error}catch(H){Y.lastLineError=H}s.exports=Y},{"./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=w,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,x=n(42),b=n(25);p.inherits(O,u);var _=["error","close","destroy","pause","resume"];function w(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,oe=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:re&&(ee||ee===0)?ee:oe,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new x,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 w(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 oe,le=V._readableState;return W===null?(le.reading=!1,function(fe,j){if(!j.ended){if(j.decoder){var A=j.decoder.end();A&&A.length&&(j.buffer.push(A),j.length+=j.objectMode?1:A.length)}j.ended=!0,D(fe)}}(V,le)):(ee||(oe=function(fe,j){var A;return function($){return f.isBuffer($)||$ instanceof d}(j)||typeof j=="string"||j===void 0||fe.objectMode||(A=new TypeError("Invalid non-string/buffer chunk")),A}(le,W)),oe?V.emit("error",oe):le.objectMode||W&&W.length>0?(typeof W=="string"||le.objectMode||Object.getPrototypeOf(W)===f.prototype||(W=function(fe){return f.from(fe)}(W)),q?le.endEmitted?V.emit("error",new Error("stream.unshift() after end event")):T(V,le,W,!0):le.ended?V.emit("error",new Error("stream.push() after EOF")):(le.reading=!1,le.decoder&&!re?(W=le.decoder.write(W),le.objectMode||W.length!==0?T(V,le,W,!1):F(V,le)):T(V,le,W,!1))):q||(le.reading=!1)),function(fe){return!fe.ended&&(fe.needReadable||fe.length<fe.highWaterMark||fe.length===0)}(le)}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)),F(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=b.destroy,O.prototype._undestroy=b.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 P(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(N,V):N(V))}function N(V){v("emit readable"),V.emit("readable"),Q(V)}function F(V,W){W.readingMore||(W.readingMore=!0,o.nextTick(B,V,W))}function B(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 Y(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,oe){var le;return q<ee.head.data.length?(le=ee.head.data.slice(0,q),ee.head.data=ee.head.data.slice(q)):le=q===ee.head.data.length?ee.shift():oe?function(fe,j){var A=j.head,$=1,J=A.data;for(fe-=J.length;A=A.next;){var K=A.data,se=fe>K.length?K.length:fe;if(se===K.length?J+=K:J+=K.slice(0,fe),(fe-=se)==0){se===K.length?(++$,A.next?j.head=A.next:j.head=j.tail=null):(j.head=A,A.data=K.slice(se));break}++$}return j.length-=$,J}(q,ee):function(fe,j){var A=f.allocUnsafe(fe),$=j.head,J=1;for($.data.copy(A),fe-=$.data.length;$=$.next;){var K=$.data,se=fe>K.length?K.length:fe;if(K.copy(A,A.length-fe,0,se),(fe-=se)==0){se===K.length?(++J,$.next?j.head=$.next:j.head=j.tail=null):(j.head=$,$.data=K.slice(se));break}++J}return j.length-=J,A}(q,ee),le}(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 z(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=P(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=P(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?se:oe;function oe(){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",le),V.removeListener("error",$),V.removeListener("unpipe",he),re.removeListener("end",oe),re.removeListener("end",se),re.removeListener("data",A),fe=!0,!q.awaitDrain||V._writableState&&!V._writableState.needDrain||le())});var le=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",le);var fe=!1,j=!1;function A(he){v("ondata"),j=!1,V.write(he)!==!1||j||((q.pipesCount===1&&q.pipes===V||q.pipesCount>1&&z(q.pipes,V)!==-1)&&!fe&&(v("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,j=!0),re.pause())}function $(he){v("onerror",he),se(),V.removeListener("error",$),l(V,"error")===0&&V.emit("error",he)}function J(){V.removeListener("finish",K),se()}function K(){v("onfinish"),V.removeListener("close",J),se()}function se(){v("unpipe"),re.unpipe(V)}return re.on("data",A),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",$),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 oe=0;oe<ee;oe++)q[oe].emit("unpipe",this,re);return this}var le=z(W.pipes,V);return le===-1?this:(W.pipes.splice(le,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(Y,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 le=re.decoder.end();le&&le.length&&W.push(le)}W.push(null)}),V.on("data",function(le){v("wrapped data"),re.decoder&&(le=re.decoder.write(le)),(!re.objectMode||le!=null)&&(re.objectMode||le&&le.length)&&(W.push(le)||(q=!0,V.pause()))}),V)this[ee]===void 0&&typeof V[ee]=="function"&&(this[ee]=function(le){return function(){return V[le].apply(V,arguments)}}(ee));for(var oe=0;oe<_.length;oe++)V.on(_[oe],this.emit.bind(this,_[oe]));return this._read=function(le){v("wrapped _read",le),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(x){var b=function(_){if(!_)return"utf8";for(var w;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(w)return;_=(""+_).toLowerCase(),w=!0}}(x);if(typeof b!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return b||x}(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,x=function(b,_,w){if((192&_[0])!=128)return b.lastNeed=0,"<22>";if(b.lastNeed>1&&_.length>1){if((192&_[1])!=128)return b.lastNeed=1,"<22>";if(b.lastNeed>2&&_.length>2&&(192&_[2])!=128)return b.lastNeed=2,"<22>"}}(this,v);return x!==void 0?x: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 x=v.toString("utf16le",g);if(x){var b=x.charCodeAt(x.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],x.slice(0,-1)}return x}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 x=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,x)}return g}function f(v,g){var x=(v.length-g)%3;return x===0?v.toString("base64",g):(this.lastNeed=3-x,this.lastTotal=3,x===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-x))}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,x;if(this.lastNeed){if((g=this.fillLast(v))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<v.length?g?g+this.text(v,x):this.text(v,x):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 x=function(_,w,O){var E=w.length-1;if(E<O)return 0;var T=a(w[E]);return T>=0?(T>0&&(_.lastNeed=T-1),T):--E<O||T===-2?0:(T=a(w[E]))>=0?(T>0&&(_.lastNeed=T-2),T):--E<O||T===-2?0:(T=a(w[E]))>=0?(T>0&&(T===2?T=0:_.lastNeed=T-3),T):0}(this,v,g);if(!this.lastNeed)return v.toString("utf8",g);this.lastTotal=x;var b=v.length-(x-this.lastNeed);return v.copy(this.lastChar,0,b),v.toString("utf8",g,b)},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 x in g)g.hasOwnProperty(x)&&(v[x]=g[x])};return function(v,g){function x(){this.constructor=v}m(v,g),v.prototype=g===null?Object.create(g):(x.prototype=g.prototype,new x)}}(),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,x){x===void 0&&(x={});var b=m.call(this,x)||this;return b.options=x,b.params=s.mergeParams(g),b.runtime=l.initParseRuntime(b),b.result=new d.Result(b),b.processor=new f.ProcessorLocal(b),b.once("error",function(_){r(function(){b.result.processError(_),b.emit("done",_)})}),b.once("done",function(){b.processor.destroy()}),b}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,x,b){return this.parseRuntime.subscribe={onNext:g,onError:x,onCompleted:b},this},v.prototype.fromFile=function(g,x){var b=this,_=n(!function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}());return _.exists(g,function(w){w?_.createReadStream(g,x).pipe(b):b.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 x=new a.Readable,b=0;return x._read=function(_){if(b>=g.length)this.push(null);else{var w=g.substr(b,_);this.push(w),b+=_}},this.fromStream(x)},v.prototype.then=function(g,x){var b=this;return new u.default(function(_,w){b.parseRuntime.then={onfulfilled:function(O){_(g?g(O):O)},onrejected:function(O){x?_(x(O)):w(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,x,b){var _=this;this.processor.process(g).then(function(w){if(w.length>0)return _.runtime.started=!0,_.result.processResult(w)}).then(function(){_.emit("drained"),b()},function(w){_.runtime.hasError=!0,_.runtime.error=w,_.emit("error",w),b()})},v.prototype._flush=function(g){var x=this;this.processor.flush().then(function(b){if(b.length>0)return x.result.processResult(b)}).then(function(){x.processEnd(g)},function(b){x.emit("error",b),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,x=o.onmessage;return o.onmessage=function(){g=!1},o.postMessage("","*"),o.onmessage=x,g}}()?function(){var g="setImmediate$"+Math.random()+"$",x=function(b){b.source===o&&typeof b.data=="string"&&b.data.indexOf(g)===0&&v(+b.data.slice(g.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),s=function(b){o.postMessage(g+b,"*")}}():o.MessageChannel?function(){var g=new MessageChannel;g.port1.onmessage=function(x){v(x.data)},s=function(x){g.port2.postMessage(x)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var g=d.documentElement;s=function(x){var b=d.createElement("script");b.onreadystatechange=function(){v(x),b.onreadystatechange=null,g.removeChild(b),b=null},g.appendChild(b)}}():s=function(g){setTimeout(v,0,g)},p.setImmediate=function(g){typeof g!="function"&&(g=new Function(""+g));for(var x=new Array(arguments.length-1),b=0;b<x.length;b++)x[b]=arguments[b+1];var _={callback:g,args:x};return u[l]=_,s(l),l++},p.clearImmediate=m}function m(g){delete u[g]}function v(g){if(f)setTimeout(v,0,g);else{var x=u[g];if(x){f=!0;try{(function(b){var _=b.callback,w=b.args;switch(w.length){case 0:_();break;case 1:_(w[0]);break;case 2:_(w[0],w[1]);break;case 3:_(w[0],w[1],w[2]);break;default:_.apply(a,w)}})(x)}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],x=v[1],b=new o(3*(g+x)/4-x),_=0,w=x>0?g-4:g,O=0;O<w;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)],b[_++]=m>>16&255,b[_++]=m>>8&255,b[_++]=255&m;return x===2&&(m=i[p.charCodeAt(O)]<<2|i[p.charCodeAt(O+1)]>>4,b[_++]=255&m),x===1&&(m=i[p.charCodeAt(O)]<<10|i[p.charCodeAt(O+1)]<<4|i[p.charCodeAt(O+2)]>>2,b[_++]=m>>8&255,b[_++]=255&m),b},t.fromByteArray=function(p){for(var m,v=p.length,g=v%3,x=[],b=0,_=v-g;b<_;b+=16383)x.push(d(p,b,b+16383>_?_:b+16383));return g===1?(m=p[v-1],x.push(r[m>>2]+r[m<<4&63]+"==")):g===2&&(m=(p[v-2]<<8)+p[v-1],x.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),x.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,x=[],b=m;b<v;b+=3)g=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(255&p[b+2]),x.push(f(g));return x.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,x=o?1:-1,b=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+=x,u/=256,a-=8);for(l=l<<a|u,d+=a;d>0;n[i+g]=255&l,g+=x,l/=256,d-=8);n[i+g-x]|=128*b}},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 x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,_){b.__proto__=_}||function(b,_){for(var w in _)_.hasOwnProperty(w)&&(b[w]=_[w])};return function(b,_){function w(){this.constructor=b}x(b,_),b.prototype=_===null?Object.create(_):(w.prototype=_.prototype,new w)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};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(x){function b(){var _=x!==null&&x.apply(this,arguments)||this;return _.rowSplit=new p.RowSplit(_.converter),_.eolEmitted=!1,_._needEmitEol=void 0,_.headEmitted=!1,_._needEmitHead=void 0,_}return i(b,x),b.prototype.flush=function(){var _=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var w=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(w,!0).then(function(O){return _.runtime.csvLineBuffer&&_.runtime.csvLineBuffer.length>0?s.default.reject(v.default.unclosed_quote(_.runtime.parsedLineNumber,_.runtime.csvLineBuffer.toString())):s.default.resolve(O)})}return s.default.resolve([])},b.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(b.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(b.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),b.prototype.process=function(_,w){var O,E=this;return w===void 0&&(w=!1),O=w?_.toString():l.prepareData(_,this.converter.parseRuntime),s.default.resolve().then(function(){return E.runtime.preRawDataHook?E.runtime.preRawDataHook(O):O}).then(function(T){return T&&T.length>0?E.processCSV(T,w):s.default.resolve([])})},b.prototype.processCSV=function(_,w){var O=this,E=this.params,T=this.runtime;T.eol||u.default(_,T),this.needEmitEol&&!this.eolEmitted&&T.eol&&(this.converter.emit("eol",T.eol),this.eolEmitted=!0),E.ignoreEmpty&&!T.started&&(_=d.trimLeft(_));var k=f.stringToLines(_,T);return w?(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(P){return T.started||O.runtime.headers?O.processCSVBody(P):O.processDataWithHead(P)}):s.default.resolve([])},b.prototype.processDataWithHead=function(_){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var w="",O=[];_.length;){var E=w+_.shift(),T=this.rowSplit.parse(E);if(T.closed){O=T.cells,w="";break}w=E+u.default(E,this.runtime)}if(this.prependLeftBuf(d.bufFromString(w)),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.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var _=this.runtime.headers,w=0;w<_.length;w++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(_[w])){if(!this.params.includeColumns||!this.params.includeColumns.test(_[w]))continue;this.runtime.selectedColumns.push(w)}else this.runtime.selectedColumns.push(w);else this.params.includeColumns?this.params.includeColumns.test(_[w])&&this.runtime.selectedColumns.push(w):this.runtime.selectedColumns.push(w);this.runtime.headers=d.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},b.prototype.processCSVBody=function(_){if(this.params.output==="line")return _;var w=this.rowSplit.parseMultiLines(_);return this.prependLeftBuf(d.bufFromString(w.partial)),this.params.output==="csv"?w.rowsCells:m.default(w.rowsCells,this.converter)},b.prototype.prependLeftBuf=function(_){_&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([_,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=_)},b.prototype.runPreLineHook=function(_){var w=this;return new s.default(function(O,E){(function T(k,P,D,N){if(D>=k.length)N();else if(P.preFileLineHook){var F=k[D],B=P.preFileLineHook(F,P.parsedLineNumber+D);if(D++,B&&B.then)B.then(function(Y){k[D-1]=Y,T(k,P,D,N)});else{for(k[D-1]=B;D<k.length;)k[D]=P.preFileLineHook(k[D],P.parsedLineNumber+D),D++;N()}}else N()})(_,w.runtime,0,function(T){T?E(T):O(_)})})},b}(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="",x=0,b=u.length;x<b;x++){var _=u[x];!v&&f&&(_=o.trimLeft(_));var w=_.length;if(v)this.isQuoteClose(_)?(v=!1,g+=p+(_=_.substr(0,w-1)),g=this.escapeQuote(g),f&&(g=o.trimRight(g)),m.push(g),g=""):g+=p+_;else{if(w===2&&_===this.quote+this.quote){m.push("");continue}if(this.isQuoteOpen(_)){if(_=_.substr(1),this.isQuoteClose(_)){_=_.substring(0,_.lastIndexOf(d)),_=this.escapeQuote(_),m.push(_);continue}if(_.indexOf(d)!==-1){for(var O=0,E="",T=0,k=_;T<k.length;T++){var P=k[T];P===d&&E!==this.escape?(O++,E=""):E=P}if(O%2==1){f&&(_=o.trimRight(_)),m.push(d+_);continue}v=!0,g+=_;continue}v=!0,g+=_;continue}f&&(_=o.trimRight(_)),m.push(_)}}return{cells:m,closed:!v}},l.prototype.getDelimiter=function(u){var f;if(this.conv.parseParam.delimiter==="auto")f=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var d=0,p=",";return f.forEach(function(m){var v=u.split(m).length;v>d&&(p=m,d=v)}),p},l.prototype.isQuoteOpen=function(u){var f=this.quote,d=this.escape;return u[0]===f&&(u[1]!==f||u[1]===d&&(u[2]===f||u.length===2))},l.prototype.isQuoteClose=function(u){var f=this.quote,d=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var p=0,m=u.length-1;u[m]===f||u[m]===d;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(u){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var d=this.cachedRegExp[f];return u.replace(d,this.quote)},l.prototype.parseMultiLines=function(u){for(var f=[],d="";u.length;){var p=d+u.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),d=""):d=p+(i.default(p,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:f,partial:d}},l}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};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(b,_,w){if(_.parseParam.checkColumn&&_.parseRuntime.headers&&b.length!==_.parseRuntime.headers.length)throw i.default.column_mismatched(_.parseRuntime.parsedLineNumber+w);return function(O,E,T){for(var k=!1,P={},D=0,N=O.length;D<N;D++){var F=O[D];if(!T.parseParam.ignoreEmpty||F!==""){k=!0;var B=E[D];B&&B!==""||(B=E[D]="field"+(D+1));var Y=u(B,D,T);if(Y){var H=Y(F,B,P,O,D);H!==void 0&&f(P,B,H,T,D)}else T.parseParam.checkType&&(F=m(F,B,D,T)(F)),F!==void 0&&f(P,B,F,T,D)}}return k?P:null}(b,_.parseRuntime.headers||[],_)||null}t.default=function(b,_){for(var w=[],O=0,E=b.length;O<E;O++){var T=s(b[O],_,O);T&&w.push(T)}return w};var l={string:g,number:v,omit:function(){}};function u(b,_,w){if(w.parseRuntime.columnConv[_]!==void 0)return w.parseRuntime.columnConv[_];var O=w.parseParam.colParser[b];if(O===void 0)return w.parseRuntime.columnConv[_]=null;if(typeof O=="object"&&(O=O.cellParser||"string"),typeof O=="string"){O=O.trim().toLowerCase();var E=l[O];return w.parseRuntime.columnConv[_]=E||null}return w.parseRuntime.columnConv[_]=typeof O=="function"?O:null}function f(b,_,w,O,E){if(!O.parseRuntime.columnValueSetter[E])if(O.parseParam.flatKeys)O.parseRuntime.columnValueSetter[E]=d;else if(_.indexOf(".")>-1){for(var T=_.split("."),k=!0;T.length>0;)if(T.shift().length===0){k=!1;break}!k||O.parseParam.colParser[_]&&O.parseParam.colParser[_].flat?O.parseRuntime.columnValueSetter[E]=d:O.parseRuntime.columnValueSetter[E]=p}else O.parseRuntime.columnValueSetter[E]=d;O.parseParam.nullObject===!0&&w==="null"&&(w=null),O.parseRuntime.columnValueSetter[E](b,_,w)}function d(b,_,w){b[_]=w}function p(b,_,w){o.default(b,_,w)}function m(b,_,w,O){return O.parseRuntime.headerType[w]?O.parseRuntime.headerType[w]:_.indexOf("number#!")>-1?O.parseRuntime.headerType[w]=v:_.indexOf("string#!")>-1?O.parseRuntime.headerType[w]=g:O.parseParam.checkType?O.parseRuntime.headerType[w]=x:O.parseRuntime.headerType[w]=g}function v(b){var _=parseFloat(b);return isNaN(_)?b:_}function g(b){return b.toString()}function x(b){var _=b.trim();return _===""?g(b):a.test(_)?v(b):_.length===5&&_.toLowerCase()==="false"||_.length===4&&_.toLowerCase()==="true"?function(w){var O=w.trim();return O.length!==5||O.toLowerCase()!=="false"}(b):_[0]==="{"&&_[_.length-1]==="}"||_[0]==="["&&_[_.length-1]==="]"?function(w){try{return JSON.parse(w)}catch{return w}}(b):g(b)}},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 x=s(u[p]),b=f;if(p!=v){var _=g[x];(b=d?d(_,x,g):void 0)===void 0&&(b=a(_)?_:o(u[p+1])?[]:{})}r(g,x,b),g=g[x]}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,x,b,_,w){if(b>=g.length)w();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var O=x.parseRuntime.subscribe.onNext,E=g[b],T=O(E,x.parseRuntime.parsedLineNumber+b);if(b++,T&&T.then)T.then(function(){(function(P,D,N,F,B,Y,H){B&&s(N,H),v(P,N,F,B,Y)})(g,0,x,b,_,w,E)},w);else{for(_&&s(x,E);b<g.length;){var k=g[b];O(k,x.parseRuntime.parsedLineNumber+b),b++,_&&s(x,k)}w()}}else{if(_)for(;b<g.length;)k=g[b++],s(x,k);w()}}(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 dGe=Du(fGe),pGe=e=>new Promise(t=>{dGe().fromString(e).then(t)}),hGe=new cGe,mGe=e=>hGe.parse(e),vGe="shlink",TF=e=>`${vGe}.${e}`;class gGe{constructor(t){nc(this,"get",t=>{const n=this.localStorage.getItem(TF(t));return n?JSON.parse(n):void 0});nc(this,"set",(t,n)=>this.localStorage.setItem(TF(t),JSON.stringify(n)));this.localStorage=t}}class yGe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const bGe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",gGe,"localStorage"),e.service("TagColorsStorage",yGe,"Storage"),e.constant("csvToJson",pGe),e.constant("jsonToCsv",mGe),e.serviceFactory("useTimeoutToggle",()=>d9)},Yu=new I3,{container:AA}=Yu,_Ge=(e,t)=>(...n)=>e[t](...n),wGe=(e,t)=>({...e,[t]:_Ge(AA,t)}),xGe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),ix=(e,t=[])=>G$(e?xGe(e):null,t.reduce(wGe,{}));Jde(Yu,ix);BWe(Yu,ix);eee(Yu);AYe(Yu,ix);bGe(Yu);rGe(Yu,ix);var NA={},OC={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 x=u?o(v[g]):v[g];p[g]=f?s(p[g],x):x}}}return p}})(OC,OC.exports);var OGe=OC.exports;(function(e){var t=n(OGe);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=Y,e.combineLoads=B,e.load=F,e.save=N;function n(z){return z&&z.__esModule?z:{default:z}}function r(z,V){return l(z)||s(z,V)||o(z,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(z,V){if(z){if(typeof z=="string")return a(z,V);var W=Object.prototype.toString.call(z).slice(8,-1);return W==="Object"&&z.constructor&&(W=z.constructor.name),W==="Map"||W==="Set"?Array.from(z):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?a(z,V):void 0}}function a(z,V){(V==null||V>z.length)&&(V=z.length);for(var W=0,re=Array(V);W<V;W++)re[W]=z[W];return re}function s(z,V){var W=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(W!=null){var re,q,ee=[],oe=!0,le=!1;try{for(W=W.call(z);!(oe=(re=W.next()).done)&&(ee.push(re.value),!(V&&ee.length===V));oe=!0);}catch(fe){le=!0,q=fe}finally{try{oe||W.return==null||W.return()}finally{if(le)throw q}}return ee}}function l(z){if(Array.isArray(z))return z}function u(z){"@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(z)}function f(z,V,W){return V in z?Object.defineProperty(z,V,{value:W,enumerable:!0,configurable:!0,writable:!0}):z[V]=W,z}var d="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",m="_",v=[],g=[],x=0,b=!1,_=!1,w=new Map;function O(z){console.warn(d,z)}function E(){}var T=function(z){return z?E:O};function k(z,V){return V===void 0?null:z.length===1?V[z[0]]:k(z.slice(1),V[z[0]])}function P(z){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(z.split(".").reverse(),W)}function D(z){this.warnFn=z||O}Object.defineProperty(D.prototype,"length",{get:function(){try{return localStorage.length}catch(z){this.warnFn(z)}return 0},configurable:!0,enumerable:!0}),D.prototype.key=function(z){try{return localStorage.key(z)}catch(V){this.warnFn(V)}return null},D.prototype.setItem=function(z,V){try{localStorage.setItem(z,JSON.stringify(V))}catch(W){this.warnFn(W)}},D.prototype.getItem=function(z){try{return JSON.parse(localStorage.getItem(z))}catch(V){this.warnFn(V)}return null},D.prototype.removeItem=function(z){try{localStorage.removeItem(z)}catch(V){this.warnFn(V)}};function N(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},V=z.states,W=V===void 0?v:V,re=z.ignoreStates,q=re===void 0?g:re,ee=z.namespace,oe=ee===void 0?p:ee,le=z.namespaceSeparator,fe=le===void 0?m:le,j=z.debounce,A=j===void 0?x:j,$=z.disableWarnings,J=$===void 0?_:$;return function(K){return function(se){return function(he){function Ee(ke,Pe){return 1<ke.split(".").length?k(ke.split("."),Pe):k([ke],Pe)}function ue(){W.length===0?Ce.setItem(oe,ve):W.forEach(function(ke){var Pe=oe+fe+ke,ce=Ee(ke,ve);ce?Ce.setItem(Pe,ce):Ce.removeItem(Pe)})}var ve,ge=T(J),Oe=se(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(oe)||(console.error(d,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),oe=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(A)||(console.error(d,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),A=x),ve=0<q.length?X(q,K.getState()):K.getState();var Ce=new D(ge);return A?(w.get(W+oe)&&clearTimeout(w.get(W+oe)),w.set(W+oe,setTimeout(function(){ue()},A))):ue(),Oe}}}}function F(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},V=z.states,W=V===void 0?v:V,re=z.immutablejs,q=re===void 0?b:re,ee=z.namespace,oe=ee===void 0?p:ee,le=z.namespaceSeparator,fe=le===void 0?m:le,j=z.preloadedState,A=j===void 0?{}:j,$=z.disableWarnings,J=$===void 0?_:$,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(oe)||(console.error(d,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),oe=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 se=new D(K),he=A;if(W.length===0){var Ee=se.getItem(oe);Ee&&(he=Ee)}else W.forEach(function(ue){var ve=oe+fe+ue,ge=se.getItem(ve);ge?he=t.default.recursive(he,P(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 B(){for(var z={},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)z[ee]=q[ee]}),z}function Y(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},V=z.namespace,W=V===void 0?p:V,re=z.disableWarnings,q=re===void 0?_:re,ee=T(q);Q(W)||(console.error(d,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),W=p);for(var oe,le=new D(ee),fe=le.length,j=0;j<fe;j++)oe=le.key(j),oe&&oe.slice(0,W.length)===W&&le.removeItem(oe)}function H(z){return Object.prototype.toString.call(z)==="[object Array]"}function Q(z){return typeof z=="string"}function Z(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function te(z){return z!==null&&u(z)==="object"}function X(z,V){var W=Object.entries(V).reduce(function(re,q){var ee=r(q,2),oe=ee[0];return ee[1],z.indexOf(oe)===-1&&(re[oe]=V[oe]),re},{});return W}})(NA);const SGe=e=>xj({appUpdated:Xde,servers:pYe,selectedServer:e.selectedServerReducer,settings:WYe}),EGe=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},TGe=!0,Aq={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},CGe=EGe(NA.load(Aq)),kGe=e=>M9({devTools:!TGe,reducer:SGe(e),preloadedState:CGe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(NA.save(Aq))}),jGe=!!(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 PGe(e){if("serviceWorker"in navigator){if(new URL(_0.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${_0.homepage}/service-worker.js`;jGe?(AGe(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")})):Nq(n,e)})}}function Nq(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 AGe(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()})}):Nq(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const Mq=kGe(AA),{App:NGe,ScrollToTop:MGe,ErrorHandler:RGe,appUpdateAvailable:DGe}=AA;$$(document.getElementById("root")).render(y.jsx(q$,{store:Mq,children:y.jsx(i7,{basename:_0.homepage,children:y.jsx(RGe,{children:y.jsx(MGe,{children:y.jsx(NGe,{})})})})}));PGe({onUpdate(){Mq.dispatch(DGe())}});
|