mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
824 lines
1.5 MiB
824 lines
1.5 MiB
var hq=Object.defineProperty;var pq=(e,t,r)=>t in e?hq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ec=(e,t,r)=>pq(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var $v=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a1={exports:{}},rh={},s1={exports:{}},Et={};/**
|
||
* @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 e3;function mq(){if(e3)return Et;e3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=p&&z[p]||z["@@iterator"],typeof z=="function"?z:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,_={};function w(z,re,X){this.props=z,this.context=re,this.refs=_,this.updater=X||b}w.prototype.isReactComponent={},w.prototype.setState=function(z,re){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,re,"setState")},w.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function O(){}O.prototype=w.prototype;function S(z,re,X){this.props=z,this.context=re,this.refs=_,this.updater=X||b}var E=S.prototype=new O;E.constructor=S,x(E,w.prototype),E.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function F(z,re,X){var le,ce={},de=null,be=null;if(re!=null)for(le in re.ref!==void 0&&(be=re.ref),re.key!==void 0&&(de=""+re.key),re)A.call(re,le)&&!N.hasOwnProperty(le)&&(ce[le]=re[le]);var M=arguments.length-2;if(M===1)ce.children=X;else if(1<M){for(var $=Array(M),Y=0;Y<M;Y++)$[Y]=arguments[Y+2];ce.children=$}if(z&&z.defaultProps)for(le in M=z.defaultProps,M)ce[le]===void 0&&(ce[le]=M[le]);return{$$typeof:e,type:z,key:de,ref:be,props:ce,_owner:j.current}}function V(z,re){return{$$typeof:e,type:z.type,key:re,ref:z.ref,props:z.props,_owner:z._owner}}function B(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function W(z){var re={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(X){return re[X]})}var q=/\/+/g;function J(z,re){return typeof z=="object"&&z!==null&&z.key!=null?W(""+z.key):re.toString(36)}function Q(z,re,X,le,ce){var de=typeof z;(de==="undefined"||de==="boolean")&&(z=null);var be=!1;if(z===null)be=!0;else switch(de){case"string":case"number":be=!0;break;case"object":switch(z.$$typeof){case e:case t:be=!0}}if(be)return be=z,ce=ce(be),z=le===""?"."+J(be,0):le,T(ce)?(X="",z!=null&&(X=z.replace(q,"$&/")+"/"),Q(ce,re,X,"",function(Y){return Y})):ce!=null&&(B(ce)&&(ce=V(ce,X+(!ce.key||be&&be.key===ce.key?"":(""+ce.key).replace(q,"$&/")+"/")+z)),re.push(ce)),1;if(be=0,le=le===""?".":le+":",T(z))for(var M=0;M<z.length;M++){de=z[M];var $=le+J(de,M);be+=Q(de,re,X,$,ce)}else if($=v(z),typeof $=="function")for(z=$.call(z),M=0;!(de=z.next()).done;)de=de.value,$=le+J(de,M++),be+=Q(de,re,X,$,ce);else if(de==="object")throw re=String(z),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.");return be}function ne(z,re,X){if(z==null)return z;var le=[],ce=0;return Q(z,le,"","",function(de){return re.call(X,de,ce++)}),le}function ae(z){if(z._status===-1){var re=z._result;re=re(),re.then(function(X){(z._status===0||z._status===-1)&&(z._status=1,z._result=X)},function(X){(z._status===0||z._status===-1)&&(z._status=2,z._result=X)}),z._status===-1&&(z._status=0,z._result=re)}if(z._status===1)return z._result.default;throw z._result}var se={current:null},oe={transition:null},K={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:oe,ReactCurrentOwner:j};function G(){throw Error("act(...) is not supported in production builds of React.")}return Et.Children={map:ne,forEach:function(z,re,X){ne(z,function(){re.apply(this,arguments)},X)},count:function(z){var re=0;return ne(z,function(){re++}),re},toArray:function(z){return ne(z,function(re){return re})||[]},only:function(z){if(!B(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Et.Component=w,Et.Fragment=r,Et.Profiler=i,Et.PureComponent=S,Et.StrictMode=n,Et.Suspense=c,Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,Et.act=G,Et.cloneElement=function(z,re,X){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var le=x({},z.props),ce=z.key,de=z.ref,be=z._owner;if(re!=null){if(re.ref!==void 0&&(de=re.ref,be=j.current),re.key!==void 0&&(ce=""+re.key),z.type&&z.type.defaultProps)var M=z.type.defaultProps;for($ in re)A.call(re,$)&&!N.hasOwnProperty($)&&(le[$]=re[$]===void 0&&M!==void 0?M[$]:re[$])}var $=arguments.length-2;if($===1)le.children=X;else if(1<$){M=Array($);for(var Y=0;Y<$;Y++)M[Y]=arguments[Y+2];le.children=M}return{$$typeof:e,type:z.type,key:ce,ref:de,props:le,_owner:be}},Et.createContext=function(z){return z={$$typeof:a,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:o,_context:z},z.Consumer=z},Et.createElement=F,Et.createFactory=function(z){var re=F.bind(null,z);return re.type=z,re},Et.createRef=function(){return{current:null}},Et.forwardRef=function(z){return{$$typeof:s,render:z}},Et.isValidElement=B,Et.lazy=function(z){return{$$typeof:h,_payload:{_status:-1,_result:z},_init:ae}},Et.memo=function(z,re){return{$$typeof:u,type:z,compare:re===void 0?null:re}},Et.startTransition=function(z){var re=oe.transition;oe.transition={};try{z()}finally{oe.transition=re}},Et.unstable_act=G,Et.useCallback=function(z,re){return se.current.useCallback(z,re)},Et.useContext=function(z){return se.current.useContext(z)},Et.useDebugValue=function(){},Et.useDeferredValue=function(z){return se.current.useDeferredValue(z)},Et.useEffect=function(z,re){return se.current.useEffect(z,re)},Et.useId=function(){return se.current.useId()},Et.useImperativeHandle=function(z,re,X){return se.current.useImperativeHandle(z,re,X)},Et.useInsertionEffect=function(z,re){return se.current.useInsertionEffect(z,re)},Et.useLayoutEffect=function(z,re){return se.current.useLayoutEffect(z,re)},Et.useMemo=function(z,re){return se.current.useMemo(z,re)},Et.useReducer=function(z,re,X){return se.current.useReducer(z,re,X)},Et.useRef=function(z){return se.current.useRef(z)},Et.useState=function(z){return se.current.useState(z)},Et.useSyncExternalStore=function(z,re,X){return se.current.useSyncExternalStore(z,re,X)},Et.useTransition=function(){return se.current.useTransition()},Et.version="18.3.1",Et}var t3;function S0(){return t3||(t3=1,s1.exports=mq()),s1.exports}/**
|
||
* @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 r3;function vq(){if(r3)return rh;r3=1;var e=S0(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,u){var h,p={},v=null,b=null;u!==void 0&&(v=""+u),c.key!==void 0&&(v=""+c.key),c.ref!==void 0&&(b=c.ref);for(h in c)n.call(c,h)&&!o.hasOwnProperty(h)&&(p[h]=c[h]);if(s&&s.defaultProps)for(h in c=s.defaultProps,c)p[h]===void 0&&(p[h]=c[h]);return{$$typeof:t,type:s,key:v,ref:b,props:p,_owner:i.current}}return rh.Fragment=r,rh.jsx=a,rh.jsxs=a,rh}var n3;function gq(){return n3||(n3=1,a1.exports=vq()),a1.exports}var g=gq(),Fv={},l1={exports:{}},zn={},u1={exports:{}},c1={};/**
|
||
* @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.
|
||
*/var i3;function yq(){return i3||(i3=1,function(e){function t(oe,K){var G=oe.length;oe.push(K);e:for(;0<G;){var z=G-1>>>1,re=oe[z];if(0<i(re,K))oe[z]=K,oe[G]=re,G=z;else break e}}function r(oe){return oe.length===0?null:oe[0]}function n(oe){if(oe.length===0)return null;var K=oe[0],G=oe.pop();if(G!==K){oe[0]=G;e:for(var z=0,re=oe.length,X=re>>>1;z<X;){var le=2*(z+1)-1,ce=oe[le],de=le+1,be=oe[de];if(0>i(ce,G))de<re&&0>i(be,ce)?(oe[z]=be,oe[de]=G,z=de):(oe[z]=ce,oe[le]=G,z=le);else if(de<re&&0>i(be,G))oe[z]=be,oe[de]=G,z=de;else break e}}return K}function i(oe,K){var G=oe.sortIndex-K.sortIndex;return G!==0?G:oe.id-K.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 c=[],u=[],h=1,p=null,v=3,b=!1,x=!1,_=!1,w=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(oe){for(var K=r(u);K!==null;){if(K.callback===null)n(u);else if(K.startTime<=oe)n(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=r(u)}}function T(oe){if(_=!1,E(oe),!x)if(r(c)!==null)x=!0,ae(A);else{var K=r(u);K!==null&&se(T,K.startTime-oe)}}function A(oe,K){x=!1,_&&(_=!1,O(F),F=-1),b=!0;var G=v;try{for(E(K),p=r(c);p!==null&&(!(p.expirationTime>K)||oe&&!W());){var z=p.callback;if(typeof z=="function"){p.callback=null,v=p.priorityLevel;var re=z(p.expirationTime<=K);K=e.unstable_now(),typeof re=="function"?p.callback=re:p===r(c)&&n(c),E(K)}else n(c);p=r(c)}if(p!==null)var X=!0;else{var le=r(u);le!==null&&se(T,le.startTime-K),X=!1}return X}finally{p=null,v=G,b=!1}}var j=!1,N=null,F=-1,V=5,B=-1;function W(){return!(e.unstable_now()-B<V)}function q(){if(N!==null){var oe=e.unstable_now();B=oe;var K=!0;try{K=N(!0,oe)}finally{K?J():(j=!1,N=null)}}else j=!1}var J;if(typeof S=="function")J=function(){S(q)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ne=Q.port2;Q.port1.onmessage=q,J=function(){ne.postMessage(null)}}else J=function(){w(q,0)};function ae(oe){N=oe,j||(j=!0,J())}function se(oe,K){F=w(function(){oe(e.unstable_now())},K)}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(oe){oe.callback=null},e.unstable_continueExecution=function(){x||b||(x=!0,ae(A))},e.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<oe?Math.floor(1e3/oe):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(oe){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var G=v;v=K;try{return oe()}finally{v=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(oe,K){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var G=v;v=oe;try{return K()}finally{v=G}},e.unstable_scheduleCallback=function(oe,K,G){var z=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?z+G:z):G=z,oe){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=G+re,oe={id:h++,callback:K,priorityLevel:oe,startTime:G,expirationTime:re,sortIndex:-1},G>z?(oe.sortIndex=G,t(u,oe),r(c)===null&&oe===r(u)&&(_?(O(F),F=-1):_=!0,se(T,G-z))):(oe.sortIndex=re,t(c,oe),x||b||(x=!0,ae(A))),oe},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(oe){var K=v;return function(){var G=v;v=K;try{return oe.apply(this,arguments)}finally{v=G}}}}(c1)),c1}var o3;function bq(){return o3||(o3=1,u1.exports=yq()),u1.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 a3;function _q(){if(a3)return zn;a3=1;var e=S0(),t=bq();function r(l){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+l,y=1;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+l+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(l,d){a(l,d),a(l+"Capture",d)}function a(l,d){for(i[l]=d,l=0;l<d.length;l++)n.add(d[l])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,h={},p={};function v(l){return c.call(p,l)?!0:c.call(h,l)?!1:u.test(l)?p[l]=!0:(h[l]=!0,!1)}function b(l,d,y,C){if(y!==null&&y.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return C?!1:y!==null?!y.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function x(l,d,y,C){if(d===null||typeof d>"u"||b(l,d,y,C))return!0;if(C)return!1;if(y!==null)switch(y.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function _(l,d,y,C,R,D,ee){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=C,this.attributeNamespace=R,this.mustUseProperty=y,this.propertyName=l,this.type=d,this.sanitizeURL=D,this.removeEmptyString=ee}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){w[l]=new _(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0];w[d]=new _(d,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){w[l]=new _(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){w[l]=new _(l,2,!1,l,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(l){w[l]=new _(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){w[l]=new _(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){w[l]=new _(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){w[l]=new _(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){w[l]=new _(l,5,!1,l.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function S(l){return l[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(l){var d=l.replace(O,S);w[d]=new _(d,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var d=l.replace(O,S);w[d]=new _(d,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(O,S);w[d]=new _(d,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){w[l]=new _(l,1,!1,l.toLowerCase(),null,!1,!1)}),w.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){w[l]=new _(l,1,!1,l.toLowerCase(),null,!0,!0)});function E(l,d,y,C){var R=w.hasOwnProperty(d)?w[d]:null;(R!==null?R.type!==0:C||!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(x(d,y,R,C)&&(y=null),C||R===null?v(d)&&(y===null?l.removeAttribute(d):l.setAttribute(d,""+y)):R.mustUseProperty?l[R.propertyName]=y===null?R.type===3?!1:"":y:(d=R.attributeName,C=R.attributeNamespace,y===null?l.removeAttribute(d):(R=R.type,y=R===3||R===4&&y===!0?"":""+y,C?l.setAttributeNS(C,d,y):l.setAttribute(d,y))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),W=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),oe=Symbol.iterator;function K(l){return l===null||typeof l!="object"?null:(l=oe&&l[oe]||l["@@iterator"],typeof l=="function"?l:null)}var G=Object.assign,z;function re(l){if(z===void 0)try{throw Error()}catch(y){var d=y.stack.trim().match(/\n( *(at )?)/);z=d&&d[1]||""}return`
|
||
`+z+l}var X=!1;function le(l,d){if(!l||X)return"";X=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(d)if(d=function(){throw Error()},Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(Ce){var C=Ce}Reflect.construct(l,[],d)}else{try{d.call()}catch(Ce){C=Ce}l.call(d.prototype)}else{try{throw Error()}catch(Ce){C=Ce}l()}}catch(Ce){if(Ce&&C&&typeof Ce.stack=="string"){for(var R=Ce.stack.split(`
|
||
`),D=C.stack.split(`
|
||
`),ee=R.length-1,fe=D.length-1;1<=ee&&0<=fe&&R[ee]!==D[fe];)fe--;for(;1<=ee&&0<=fe;ee--,fe--)if(R[ee]!==D[fe]){if(ee!==1||fe!==1)do if(ee--,fe--,0>fe||R[ee]!==D[fe]){var me=`
|
||
`+R[ee].replace(" at new "," at ");return l.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",l.displayName)),me}while(1<=ee&&0<=fe);break}}}finally{X=!1,Error.prepareStackTrace=y}return(l=l?l.displayName||l.name:"")?re(l):""}function ce(l){switch(l.tag){case 5:return re(l.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return l=le(l.type,!1),l;case 11:return l=le(l.type.render,!1),l;case 1:return l=le(l.type,!0),l;default:return""}}function de(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case N:return"Fragment";case j:return"Portal";case V:return"Profiler";case F:return"StrictMode";case J:return"Suspense";case Q:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case W:return(l.displayName||"Context")+".Consumer";case B:return(l._context.displayName||"Context")+".Provider";case q:var d=l.render;return l=l.displayName,l||(l=d.displayName||d.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case ne:return d=l.displayName||null,d!==null?d:de(l.type)||"Memo";case ae:d=l._payload,l=l._init;try{return de(l(d))}catch{}}return null}function be(l){var d=l.type;switch(l.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=d.render,l=l.displayName||l.name||"",d.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(d);case 8:return d===F?"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 d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function M(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function $(l){var d=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Y(l){var d=$(l)?"checked":"value",y=Object.getOwnPropertyDescriptor(l.constructor.prototype,d),C=""+l[d];if(!l.hasOwnProperty(d)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var R=y.get,D=y.set;return Object.defineProperty(l,d,{configurable:!0,get:function(){return R.call(this)},set:function(ee){C=""+ee,D.call(this,ee)}}),Object.defineProperty(l,d,{enumerable:y.enumerable}),{getValue:function(){return C},setValue:function(ee){C=""+ee},stopTracking:function(){l._valueTracker=null,delete l[d]}}}}function ue(l){l._valueTracker||(l._valueTracker=Y(l))}function ie(l){if(!l)return!1;var d=l._valueTracker;if(!d)return!0;var y=d.getValue(),C="";return l&&(C=$(l)?l.checked?"true":"false":l.value),l=C,l!==y?(d.setValue(l),!0):!1}function he(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function Se(l,d){var y=d.checked;return G({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??l._wrapperState.initialChecked})}function Fe(l,d){var y=d.defaultValue==null?"":d.defaultValue,C=d.checked!=null?d.checked:d.defaultChecked;y=M(d.value!=null?d.value:y),l._wrapperState={initialChecked:C,initialValue:y,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function ge(l,d){d=d.checked,d!=null&&E(l,"checked",d,!1)}function Ee(l,d){ge(l,d);var y=M(d.value),C=d.type;if(y!=null)C==="number"?(y===0&&l.value===""||l.value!=y)&&(l.value=""+y):l.value!==""+y&&(l.value=""+y);else if(C==="submit"||C==="reset"){l.removeAttribute("value");return}d.hasOwnProperty("value")?Me(l,d.type,y):d.hasOwnProperty("defaultValue")&&Me(l,d.type,M(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(l.defaultChecked=!!d.defaultChecked)}function je(l,d,y){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var C=d.type;if(!(C!=="submit"&&C!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+l._wrapperState.initialValue,y||d===l.value||(l.value=d),l.defaultValue=d}y=l.name,y!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,y!==""&&(l.name=y)}function Me(l,d,y){(d!=="number"||he(l.ownerDocument)!==l)&&(y==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+y&&(l.defaultValue=""+y))}var He=Array.isArray;function Be(l,d,y,C){if(l=l.options,d){d={};for(var R=0;R<y.length;R++)d["$"+y[R]]=!0;for(y=0;y<l.length;y++)R=d.hasOwnProperty("$"+l[y].value),l[y].selected!==R&&(l[y].selected=R),R&&C&&(l[y].defaultSelected=!0)}else{for(y=""+M(y),d=null,R=0;R<l.length;R++){if(l[R].value===y){l[R].selected=!0,C&&(l[R].defaultSelected=!0);return}d!==null||l[R].disabled||(d=l[R])}d!==null&&(d.selected=!0)}}function qe(l,d){if(d.dangerouslySetInnerHTML!=null)throw Error(r(91));return G({},d,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function ye(l,d){var y=d.value;if(y==null){if(y=d.children,d=d.defaultValue,y!=null){if(d!=null)throw Error(r(92));if(He(y)){if(1<y.length)throw Error(r(93));y=y[0]}d=y}d==null&&(d=""),y=d}l._wrapperState={initialValue:M(y)}}function we(l,d){var y=M(d.value),C=M(d.defaultValue);y!=null&&(y=""+y,y!==l.value&&(l.value=y),d.defaultValue==null&&l.defaultValue!==y&&(l.defaultValue=y)),C!=null&&(l.defaultValue=""+C)}function Ae(l){var d=l.textContent;d===l._wrapperState.initialValue&&d!==""&&d!==null&&(l.value=d)}function ke(l){switch(l){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 De(l,d){return l==null||l==="http://www.w3.org/1999/xhtml"?ke(d):l==="http://www.w3.org/2000/svg"&&d==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var Ke,Xe=function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(d,y,C,R){MSApp.execUnsafeLocalFunction(function(){return l(d,y,C,R)})}:l}(function(l,d){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=d;else{for(Ke=Ke||document.createElement("div"),Ke.innerHTML="<svg>"+d.valueOf().toString()+"</svg>",d=Ke.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;d.firstChild;)l.appendChild(d.firstChild)}});function bt(l,d){if(d){var y=l.firstChild;if(y&&y===l.lastChild&&y.nodeType===3){y.nodeValue=d;return}}l.textContent=d}var Ot={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},xt=["Webkit","ms","Moz","O"];Object.keys(Ot).forEach(function(l){xt.forEach(function(d){d=d+l.charAt(0).toUpperCase()+l.substring(1),Ot[d]=Ot[l]})});function Jt(l,d,y){return d==null||typeof d=="boolean"||d===""?"":y||typeof d!="number"||d===0||Ot.hasOwnProperty(l)&&Ot[l]?(""+d).trim():d+"px"}function Gt(l,d){l=l.style;for(var y in d)if(d.hasOwnProperty(y)){var C=y.indexOf("--")===0,R=Jt(y,d[y],C);y==="float"&&(y="cssFloat"),C?l.setProperty(y,R):l[y]=R}}var jr=G({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 Lr(l,d){if(d){if(jr[l]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(r(137,l));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(r(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(r(61))}if(d.style!=null&&typeof d.style!="object")throw Error(r(62))}}function Nn(l,d){if(l.indexOf("-")===-1)return typeof d.is=="string";switch(l){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 Pr=null;function fa(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Mn=null,Ji=null,eo=null;function xl(l){if(l=Oa(l)){if(typeof Mn!="function")throw Error(r(280));var d=l.stateNode;d&&(d=dc(d),Mn(l.stateNode,l.type,d))}}function is(l){Ji?eo?eo.push(l):eo=[l]:Ji=l}function Ro(){if(Ji){var l=Ji,d=eo;if(eo=Ji=null,xl(l),d)for(l=0;l<d.length;l++)xl(d[l])}}function dr(l,d){return l(d)}function or(){}var Ir=!1;function Ar(l,d,y){if(Ir)return l(d,y);Ir=!0;try{return dr(l,d,y)}finally{Ir=!1,(Ji!==null||eo!==null)&&(or(),Ro())}}function hr(l,d){var y=l.stateNode;if(y===null)return null;var C=dc(y);if(C===null)return null;y=C[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(l=l.type,C=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!C;break e;default:l=!1}if(l)return null;if(y&&typeof y!="function")throw Error(r(231,d,typeof y));return y}var pr=!1;if(s)try{var en={};Object.defineProperty(en,"passive",{get:function(){pr=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{pr=!1}function Xn(l,d,y,C,R,D,ee,fe,me){var Ce=Array.prototype.slice.call(arguments,3);try{d.apply(y,Ce)}catch(Ie){this.onError(Ie)}}var mr=!1,nt=null,wl=!1,Uu=null,Pm={onError:function(l){mr=!0,nt=l}};function Cm(l,d,y,C,R,D,ee,fe,me){mr=!1,nt=null,Xn.apply(Pm,arguments)}function hd(l,d,y,C,R,D,ee,fe,me){if(Cm.apply(this,arguments),mr){if(mr){var Ce=nt;mr=!1,nt=null}else throw Error(r(198));wl||(wl=!0,Uu=Ce)}}function No(l){var d=l,y=l;if(l.alternate)for(;d.return;)d=d.return;else{l=d;do d=l,d.flags&4098&&(y=d.return),l=d.return;while(l)}return d.tag===3?y:null}function da(l){if(l.tag===13){var d=l.memoizedState;if(d===null&&(l=l.alternate,l!==null&&(d=l.memoizedState)),d!==null)return d.dehydrated}return null}function pd(l){if(No(l)!==l)throw Error(r(188))}function $b(l){var d=l.alternate;if(!d){if(d=No(l),d===null)throw Error(r(188));return d!==l?null:l}for(var y=l,C=d;;){var R=y.return;if(R===null)break;var D=R.alternate;if(D===null){if(C=R.return,C!==null){y=C;continue}break}if(R.child===D.child){for(D=R.child;D;){if(D===y)return pd(R),l;if(D===C)return pd(R),d;D=D.sibling}throw Error(r(188))}if(y.return!==C.return)y=R,C=D;else{for(var ee=!1,fe=R.child;fe;){if(fe===y){ee=!0,y=R,C=D;break}if(fe===C){ee=!0,C=R,y=D;break}fe=fe.sibling}if(!ee){for(fe=D.child;fe;){if(fe===y){ee=!0,y=D,C=R;break}if(fe===C){ee=!0,C=D,y=R;break}fe=fe.sibling}if(!ee)throw Error(r(189))}}if(y.alternate!==C)throw Error(r(190))}if(y.tag!==3)throw Error(r(188));return y.stateNode.current===y?l:d}function Em(l){return l=$b(l),l!==null?Tm(l):null}function Tm(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var d=Tm(l);if(d!==null)return d;l=l.sibling}return null}var jm=t.unstable_scheduleCallback,md=t.unstable_cancelCallback,Fb=t.unstable_shouldYield,zu=t.unstable_requestPaint,vr=t.unstable_now,Bb=t.unstable_getCurrentPriorityLevel,vd=t.unstable_ImmediatePriority,Am=t.unstable_UserBlockingPriority,Vu=t.unstable_NormalPriority,gd=t.unstable_LowPriority,os=t.unstable_IdlePriority,Ol=null,Qn=null;function Sl(l){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(Ol,l,void 0,(l.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:as,er=Math.log,Wu=Math.LN2;function as(l){return l>>>=0,l===0?32:31-(er(l)/Wu|0)|0}var to=64,ss=4194304;function gt(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Kt(l,d){var y=l.pendingLanes;if(y===0)return 0;var C=0,R=l.suspendedLanes,D=l.pingedLanes,ee=y&268435455;if(ee!==0){var fe=ee&~R;fe!==0?C=gt(fe):(D&=ee,D!==0&&(C=gt(D)))}else ee=y&~R,ee!==0?C=gt(ee):D!==0&&(C=gt(D));if(C===0)return 0;if(d!==0&&d!==C&&!(d&R)&&(R=C&-C,D=d&-d,R>=D||R===16&&(D&4194240)!==0))return d;if(C&4&&(C|=y&16),d=l.entangledLanes,d!==0)for(l=l.entanglements,d&=C;0<d;)y=31-wt(d),R=1<<y,C|=l[y],d&=~R;return C}function yd(l,d){switch(l){case 1:case 2:case 4:return d+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 d+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 qu(l,d){for(var y=l.suspendedLanes,C=l.pingedLanes,R=l.expirationTimes,D=l.pendingLanes;0<D;){var ee=31-wt(D),fe=1<<ee,me=R[ee];me===-1?(!(fe&y)||fe&C)&&(R[ee]=yd(fe,d)):me<=d&&(l.expiredLanes|=fe),D&=~fe}}function sn(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function km(){var l=to;return to<<=1,!(to&4194240)&&(to=64),l}function ls(l){for(var d=[],y=0;31>y;y++)d.push(l);return d}function Jn(l,d,y){l.pendingLanes|=d,d!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,d=31-wt(d),l[d]=y}function xr(l,d){var y=l.pendingLanes&~d;l.pendingLanes=d,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=d,l.mutableReadLanes&=d,l.entangledLanes&=d,d=l.entanglements;var C=l.eventTimes;for(l=l.expirationTimes;0<y;){var R=31-wt(y),D=1<<R;d[R]=0,C[R]=-1,l[R]=-1,y&=~D}}function ro(l,d){var y=l.entangledLanes|=d;for(l=l.entanglements;y;){var C=31-wt(y),R=1<<C;R&d|l[C]&d&&(l[C]|=d),y&=~R}}var Rt=0;function us(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var Hu,ha,Gu,Ku,Pl,Cl=!1,cs=[],ei=null,no=null,Si=null,El=new Map,pt=new Map,Dr=[],Bt="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 bd(l,d){switch(l){case"focusin":case"focusout":ei=null;break;case"dragenter":case"dragleave":no=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":El.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":pt.delete(d.pointerId)}}function pa(l,d,y,C,R,D){return l===null||l.nativeEvent!==D?(l={blockedOn:d,domEventName:y,eventSystemFlags:C,nativeEvent:D,targetContainers:[R]},d!==null&&(d=Oa(d),d!==null&&ha(d)),l):(l.eventSystemFlags|=C,d=l.targetContainers,R!==null&&d.indexOf(R)===-1&&d.push(R),l)}function _d(l,d,y,C,R){switch(d){case"focusin":return ei=pa(ei,l,d,y,C,R),!0;case"dragenter":return no=pa(no,l,d,y,C,R),!0;case"mouseover":return Si=pa(Si,l,d,y,C,R),!0;case"pointerover":var D=R.pointerId;return El.set(D,pa(El.get(D)||null,l,d,y,C,R)),!0;case"gotpointercapture":return D=R.pointerId,pt.set(D,pa(pt.get(D)||null,l,d,y,C,R)),!0}return!1}function Yu(l){var d=wa(l.target);if(d!==null){var y=No(d);if(y!==null){if(d=y.tag,d===13){if(d=da(y),d!==null){l.blockedOn=d,Pl(l.priority,function(){Gu(y)});return}}else if(d===3&&y.stateNode.current.memoizedState.isDehydrated){l.blockedOn=y.tag===3?y.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Pi(l){if(l.blockedOn!==null)return!1;for(var d=l.targetContainers;0<d.length;){var y=Qu(l.domEventName,l.eventSystemFlags,d[0],l.nativeEvent);if(y===null){y=l.nativeEvent;var C=new y.constructor(y.type,y);Pr=C,y.target.dispatchEvent(C),Pr=null}else return d=Oa(y),d!==null&&ha(d),l.blockedOn=y,!1;d.shift()}return!0}function Zu(l,d,y){Pi(l)&&y.delete(d)}function Tl(){Cl=!1,ei!==null&&Pi(ei)&&(ei=null),no!==null&&Pi(no)&&(no=null),Si!==null&&Pi(Si)&&(Si=null),El.forEach(Zu),pt.forEach(Zu)}function gr(l,d){l.blockedOn===d&&(l.blockedOn=null,Cl||(Cl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Tl)))}function ti(l){function d(R){return gr(R,l)}if(0<cs.length){gr(cs[0],l);for(var y=1;y<cs.length;y++){var C=cs[y];C.blockedOn===l&&(C.blockedOn=null)}}for(ei!==null&&gr(ei,l),no!==null&&gr(no,l),Si!==null&&gr(Si,l),El.forEach(d),pt.forEach(d),y=0;y<Dr.length;y++)C=Dr[y],C.blockedOn===l&&(C.blockedOn=null);for(;0<Dr.length&&(y=Dr[0],y.blockedOn===null);)Yu(y),y.blockedOn===null&&Dr.shift()}var ma=T.ReactCurrentBatchConfig,jl=!0;function Ub(l,d,y,C){var R=Rt,D=ma.transition;ma.transition=null;try{Rt=1,Al(l,d,y,C)}finally{Rt=R,ma.transition=D}}function Rm(l,d,y,C){var R=Rt,D=ma.transition;ma.transition=null;try{Rt=4,Al(l,d,y,C)}finally{Rt=R,ma.transition=D}}function Al(l,d,y,C){if(jl){var R=Qu(l,d,y,C);if(R===null)f(l,d,C,Xu,y),bd(l,C);else if(_d(R,l,d,y,C))C.stopPropagation();else if(bd(l,C),d&4&&-1<Bt.indexOf(l)){for(;R!==null;){var D=Oa(R);if(D!==null&&Hu(D),D=Qu(l,d,y,C),D===null&&f(l,d,C,Xu,y),D===R)break;R=D}R!==null&&C.stopPropagation()}else f(l,d,C,null,y)}}var Xu=null;function Qu(l,d,y,C){if(Xu=null,l=fa(C),l=wa(l),l!==null)if(d=No(l),d===null)l=null;else if(y=d.tag,y===13){if(l=da(d),l!==null)return l;l=null}else if(y===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;l=null}else d!==l&&(l=null);return Xu=l,null}function Tt(l){switch(l){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(Bb()){case vd:return 1;case Am:return 4;case Vu:case gd:return 16;case os:return 536870912;default:return 16}default:return 16}}var Mo=null,yn=null,Lo=null;function xd(){if(Lo)return Lo;var l,d=yn,y=d.length,C,R="value"in Mo?Mo.value:Mo.textContent,D=R.length;for(l=0;l<y&&d[l]===R[l];l++);var ee=y-l;for(C=1;C<=ee&&d[y-C]===R[D-C];C++);return Lo=R.slice(l,1<C?1-C:void 0)}function Ju(l){var d=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&d===13&&(l=13)):l=d,l===10&&(l=13),32<=l||l===13?l:0}function fs(){return!0}function Nm(){return!1}function ln(l){function d(y,C,R,D,ee){this._reactName=y,this._targetInst=R,this.type=C,this.nativeEvent=D,this.target=ee,this.currentTarget=null;for(var fe in l)l.hasOwnProperty(fe)&&(y=l[fe],this[fe]=y?y(D):D[fe]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?fs:Nm,this.isPropagationStopped=Nm,this}return G(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var y=this.nativeEvent;y&&(y.preventDefault?y.preventDefault():typeof y.returnValue!="unknown"&&(y.returnValue=!1),this.isDefaultPrevented=fs)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),d}var ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wd=ln(ds),va=G({},ds,{view:0,detail:0}),zb=ln(va),Ln,Od,hs,ri=G({},va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ya,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==hs&&(hs&&l.type==="mousemove"?(Ln=l.screenX-hs.screenX,Od=l.screenY-hs.screenY):Od=Ln=0,hs=l),Ln)},movementY:function(l){return"movementY"in l?l.movementY:Od}}),Sd=ln(ri),Mm=G({},ri,{dataTransfer:0}),Pd=ln(Mm),Vb=G({},va,{relatedTarget:0}),ec=ln(Vb),Lm=G({},ds,{animationName:0,elapsedTime:0,pseudoElement:0}),Wb=ln(Lm),qb=G({},ds,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Cd=ln(qb),Hb=G({},ds,{data:0}),Ed=ln(Hb),Im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tc={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"},ga={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gb(l){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(l):(l=ga[l])?!!d[l]:!1}function ya(){return Gb}var In=G({},va,{key:function(l){if(l.key){var d=Im[l.key]||l.key;if(d!=="Unidentified")return d}return l.type==="keypress"?(l=Ju(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?tc[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ya,charCode:function(l){return l.type==="keypress"?Ju(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Ju(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Dm=ln(In),$m=G({},ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fm=ln($m),Td=G({},va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ya}),jd=ln(Td),Kb=G({},ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yb=ln(Kb),Bm=G({},ri,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Zb=ln(Bm),ni=[9,13,27,32],Io=s&&"CompositionEvent"in window,kl=null;s&&"documentMode"in document&&(kl=document.documentMode);var io=s&&"TextEvent"in window&&!kl,Um=s&&(!Io||kl&&8<kl&&11>=kl),ba=" ",zm=!1;function ps(l,d){switch(l){case"keyup":return ni.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var oo=!1;function Xb(l,d){switch(l){case"compositionend":return Ad(d);case"keypress":return d.which!==32?null:(zm=!0,ba);case"textInput":return l=d.data,l===ba&&zm?null:l;default:return null}}function Do(l,d){if(oo)return l==="compositionend"||!Io&&ps(l,d)?(l=xd(),Lo=yn=Mo=null,oo=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return Um&&d.locale!=="ko"?null:d.data;default:return null}}var rc={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 Vm(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d==="input"?!!rc[l.type]:d==="textarea"}function nc(l,d,y,C){is(C),d=P(d,"onChange"),0<d.length&&(y=new wd("onChange","change",null,y,C),l.push({event:y,listeners:d}))}var Rl=null,bn=null;function Qb(l){Fd(l,0)}function ao(l){var d=Sa(l);if(ie(d))return l}function Jb(l,d){if(l==="change")return d}var Ci=!1;if(s){var ms;if(s){var ic="oninput"in document;if(!ic){var oc=document.createElement("div");oc.setAttribute("oninput","return;"),ic=typeof oc.oninput=="function"}ms=ic}else ms=!1;Ci=ms&&(!document.documentMode||9<document.documentMode)}function Nl(){Rl&&(Rl.detachEvent("onpropertychange",ac),bn=Rl=null)}function ac(l){if(l.propertyName==="value"&&ao(bn)){var d=[];nc(d,bn,l,fa(l)),Ar(Qb,d)}}function sc(l,d,y){l==="focusin"?(Nl(),Rl=d,bn=y,Rl.attachEvent("onpropertychange",ac)):l==="focusout"&&Nl()}function vs(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return ao(bn)}function lc(l,d){if(l==="click")return ao(d)}function kd(l,d){if(l==="input"||l==="change")return ao(d)}function Wm(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var ii=typeof Object.is=="function"?Object.is:Wm;function $o(l,d){if(ii(l,d))return!0;if(typeof l!="object"||l===null||typeof d!="object"||d===null)return!1;var y=Object.keys(l),C=Object.keys(d);if(y.length!==C.length)return!1;for(C=0;C<y.length;C++){var R=y[C];if(!c.call(d,R)||!ii(l[R],d[R]))return!1}return!0}function qm(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Rd(l,d){var y=qm(l);l=0;for(var C;y;){if(y.nodeType===3){if(C=l+y.textContent.length,l<=d&&C>=d)return{node:y,offset:d-l};l=C}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=qm(y)}}function Hm(l,d){return l&&d?l===d?!0:l&&l.nodeType===3?!1:d&&d.nodeType===3?Hm(l,d.parentNode):"contains"in l?l.contains(d):l.compareDocumentPosition?!!(l.compareDocumentPosition(d)&16):!1:!1}function Nd(){for(var l=window,d=he();d instanceof l.HTMLIFrameElement;){try{var y=typeof d.contentWindow.location.href=="string"}catch{y=!1}if(y)l=d.contentWindow;else break;d=he(l.document)}return d}function Md(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d&&(d==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||d==="textarea"||l.contentEditable==="true")}function Ei(l){var d=Nd(),y=l.focusedElem,C=l.selectionRange;if(d!==y&&y&&y.ownerDocument&&Hm(y.ownerDocument.documentElement,y)){if(C!==null&&Md(y)){if(d=C.start,l=C.end,l===void 0&&(l=d),"selectionStart"in y)y.selectionStart=d,y.selectionEnd=Math.min(l,y.value.length);else if(l=(d=y.ownerDocument||document)&&d.defaultView||window,l.getSelection){l=l.getSelection();var R=y.textContent.length,D=Math.min(C.start,R);C=C.end===void 0?D:Math.min(C.end,R),!l.extend&&D>C&&(R=C,C=D,D=R),R=Rd(y,D);var ee=Rd(y,C);R&&ee&&(l.rangeCount!==1||l.anchorNode!==R.node||l.anchorOffset!==R.offset||l.focusNode!==ee.node||l.focusOffset!==ee.offset)&&(d=d.createRange(),d.setStart(R.node,R.offset),l.removeAllRanges(),D>C?(l.addRange(d),l.extend(ee.node,ee.offset)):(d.setEnd(ee.node,ee.offset),l.addRange(d)))}}for(d=[],l=y;l=l.parentNode;)l.nodeType===1&&d.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<d.length;y++)l=d[y],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var uc=s&&"documentMode"in document&&11>=document.documentMode,gs=null,ys=null,Ml=null,cc=!1;function Gm(l,d,y){var C=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;cc||gs==null||gs!==he(C)||(C=gs,"selectionStart"in C&&Md(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),Ml&&$o(Ml,C)||(Ml=C,C=P(ys,"onSelect"),0<C.length&&(d=new wd("onSelect","select",null,d,y),l.push({event:d,listeners:C}),d.target=gs)))}function Fo(l,d){var y={};return y[l.toLowerCase()]=d.toLowerCase(),y["Webkit"+l]="webkit"+d,y["Moz"+l]="moz"+d,y}var bs={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionend:Fo("Transition","TransitionEnd")},Bo={},Ld={};s&&(Ld=document.createElement("div").style,"AnimationEvent"in window||(delete bs.animationend.animation,delete bs.animationiteration.animation,delete bs.animationstart.animation),"TransitionEvent"in window||delete bs.transitionend.transition);function Ll(l){if(Bo[l])return Bo[l];if(!bs[l])return l;var d=bs[l],y;for(y in d)if(d.hasOwnProperty(y)&&y in Ld)return Bo[l]=d[y];return l}var Km=Ll("animationend"),Ti=Ll("animationiteration"),Id=Ll("animationstart"),Dd=Ll("transitionend"),_s=new Map,Ym="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 oi(l,d){_s.set(l,d),o(d,[l])}for(var _a=0;_a<Ym.length;_a++){var fc=Ym[_a],Zm=fc.toLowerCase(),e_=fc[0].toUpperCase()+fc.slice(1);oi(Zm,"on"+e_)}oi(Km,"onAnimationEnd"),oi(Ti,"onAnimationIteration"),oi(Id,"onAnimationStart"),oi("dblclick","onDoubleClick"),oi("focusin","onFocus"),oi("focusout","onBlur"),oi(Dd,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xs="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(" "),Xm=new Set("cancel close invalid load scroll toggle".split(" ").concat(xs));function $d(l,d,y){var C=l.type||"unknown-event";l.currentTarget=y,hd(C,d,void 0,l),l.currentTarget=null}function Fd(l,d){d=(d&4)!==0;for(var y=0;y<l.length;y++){var C=l[y],R=C.event;C=C.listeners;e:{var D=void 0;if(d)for(var ee=C.length-1;0<=ee;ee--){var fe=C[ee],me=fe.instance,Ce=fe.currentTarget;if(fe=fe.listener,me!==D&&R.isPropagationStopped())break e;$d(R,fe,Ce),D=me}else for(ee=0;ee<C.length;ee++){if(fe=C[ee],me=fe.instance,Ce=fe.currentTarget,fe=fe.listener,me!==D&&R.isPropagationStopped())break e;$d(R,fe,Ce),D=me}}}if(wl)throw l=Uu,wl=!1,Uu=null,l}function Ut(l,d){var y=d[Ps];y===void 0&&(y=d[Ps]=new Set);var C=l+"__bubble";y.has(C)||(Qm(d,l,2,!1),y.add(C))}function Bd(l,d,y){var C=0;d&&(C|=4),Qm(y,l,C,d)}var Il="_reactListening"+Math.random().toString(36).slice(2);function ws(l){if(!l[Il]){l[Il]=!0,n.forEach(function(y){y!=="selectionchange"&&(Xm.has(y)||Bd(y,!1,l),Bd(y,!0,l))});var d=l.nodeType===9?l:l.ownerDocument;d===null||d[Il]||(d[Il]=!0,Bd("selectionchange",!1,d))}}function Qm(l,d,y,C){switch(Tt(d)){case 1:var R=Ub;break;case 4:R=Rm;break;default:R=Al}y=R.bind(null,d,y,l),R=void 0,!pr||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(R=!0),C?R!==void 0?l.addEventListener(d,y,{capture:!0,passive:R}):l.addEventListener(d,y,!0):R!==void 0?l.addEventListener(d,y,{passive:R}):l.addEventListener(d,y,!1)}function f(l,d,y,C,R){var D=C;if(!(d&1)&&!(d&2)&&C!==null)e:for(;;){if(C===null)return;var ee=C.tag;if(ee===3||ee===4){var fe=C.stateNode.containerInfo;if(fe===R||fe.nodeType===8&&fe.parentNode===R)break;if(ee===4)for(ee=C.return;ee!==null;){var me=ee.tag;if((me===3||me===4)&&(me=ee.stateNode.containerInfo,me===R||me.nodeType===8&&me.parentNode===R))return;ee=ee.return}for(;fe!==null;){if(ee=wa(fe),ee===null)return;if(me=ee.tag,me===5||me===6){C=D=ee;continue e}fe=fe.parentNode}}C=C.return}Ar(function(){var Ce=D,Ie=fa(y),$e=[];e:{var Le=_s.get(l);if(Le!==void 0){var Qe=wd,tt=l;switch(l){case"keypress":if(Ju(y)===0)break e;case"keydown":case"keyup":Qe=Dm;break;case"focusin":tt="focus",Qe=ec;break;case"focusout":tt="blur",Qe=ec;break;case"beforeblur":case"afterblur":Qe=ec;break;case"click":if(y.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=Pd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=jd;break;case Km:case Ti:case Id:Qe=Wb;break;case Dd:Qe=Yb;break;case"scroll":Qe=zb;break;case"wheel":Qe=Zb;break;case"copy":case"cut":case"paste":Qe=Cd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Fm}var rt=(d&4)!==0,Cr=!rt&&l==="scroll",xe=rt?Le!==null?Le+"Capture":null:Le;rt=[];for(var ve=Ce,Oe;ve!==null;){Oe=ve;var We=Oe.stateNode;if(Oe.tag===5&&We!==null&&(Oe=We,xe!==null&&(We=hr(ve,xe),We!=null&&rt.push(m(ve,We,Oe)))),Cr)break;ve=ve.return}0<rt.length&&(Le=new Qe(Le,tt,null,y,Ie),$e.push({event:Le,listeners:rt}))}}if(!(d&7)){e:{if(Le=l==="mouseover"||l==="pointerover",Qe=l==="mouseout"||l==="pointerout",Le&&y!==Pr&&(tt=y.relatedTarget||y.fromElement)&&(wa(tt)||tt[Dt]))break e;if((Qe||Le)&&(Le=Ie.window===Ie?Ie:(Le=Ie.ownerDocument)?Le.defaultView||Le.parentWindow:window,Qe?(tt=y.relatedTarget||y.toElement,Qe=Ce,tt=tt?wa(tt):null,tt!==null&&(Cr=No(tt),tt!==Cr||tt.tag!==5&&tt.tag!==6)&&(tt=null)):(Qe=null,tt=Ce),Qe!==tt)){if(rt=Sd,We="onMouseLeave",xe="onMouseEnter",ve="mouse",(l==="pointerout"||l==="pointerover")&&(rt=Fm,We="onPointerLeave",xe="onPointerEnter",ve="pointer"),Cr=Qe==null?Le:Sa(Qe),Oe=tt==null?Le:Sa(tt),Le=new rt(We,ve+"leave",Qe,y,Ie),Le.target=Cr,Le.relatedTarget=Oe,We=null,wa(Ie)===Ce&&(rt=new rt(xe,ve+"enter",tt,y,Ie),rt.target=Oe,rt.relatedTarget=Cr,We=rt),Cr=We,Qe&&tt)t:{for(rt=Qe,xe=tt,ve=0,Oe=rt;Oe;Oe=k(Oe))ve++;for(Oe=0,We=xe;We;We=k(We))Oe++;for(;0<ve-Oe;)rt=k(rt),ve--;for(;0<Oe-ve;)xe=k(xe),Oe--;for(;ve--;){if(rt===xe||xe!==null&&rt===xe.alternate)break t;rt=k(rt),xe=k(xe)}rt=null}else rt=null;Qe!==null&&U($e,Le,Qe,rt,!1),tt!==null&&Cr!==null&&U($e,Cr,tt,rt,!0)}}e:{if(Le=Ce?Sa(Ce):window,Qe=Le.nodeName&&Le.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Le.type==="file")var ot=Jb;else if(Vm(Le))if(Ci)ot=kd;else{ot=vs;var lt=sc}else(Qe=Le.nodeName)&&Qe.toLowerCase()==="input"&&(Le.type==="checkbox"||Le.type==="radio")&&(ot=lc);if(ot&&(ot=ot(l,Ce))){nc($e,ot,y,Ie);break e}lt&<(l,Le,Ce),l==="focusout"&&(lt=Le._wrapperState)&<.controlled&&Le.type==="number"&&Me(Le,"number",Le.value)}switch(lt=Ce?Sa(Ce):window,l){case"focusin":(Vm(lt)||lt.contentEditable==="true")&&(gs=lt,ys=Ce,Ml=null);break;case"focusout":Ml=ys=gs=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,Gm($e,y,Ie);break;case"selectionchange":if(uc)break;case"keydown":case"keyup":Gm($e,y,Ie)}var ut;if(Io)e:{switch(l){case"compositionstart":var vt="onCompositionStart";break e;case"compositionend":vt="onCompositionEnd";break e;case"compositionupdate":vt="onCompositionUpdate";break e}vt=void 0}else oo?ps(l,y)&&(vt="onCompositionEnd"):l==="keydown"&&y.keyCode===229&&(vt="onCompositionStart");vt&&(Um&&y.locale!=="ko"&&(oo||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&oo&&(ut=xd()):(Mo=Ie,yn="value"in Mo?Mo.value:Mo.textContent,oo=!0)),lt=P(Ce,vt),0<lt.length&&(vt=new Ed(vt,l,null,y,Ie),$e.push({event:vt,listeners:lt}),ut?vt.data=ut:(ut=Ad(y),ut!==null&&(vt.data=ut)))),(ut=io?Xb(l,y):Do(l,y))&&(Ce=P(Ce,"onBeforeInput"),0<Ce.length&&(Ie=new Ed("onBeforeInput","beforeinput",null,y,Ie),$e.push({event:Ie,listeners:Ce}),Ie.data=ut))}Fd($e,d)})}function m(l,d,y){return{instance:l,listener:d,currentTarget:y}}function P(l,d){for(var y=d+"Capture",C=[];l!==null;){var R=l,D=R.stateNode;R.tag===5&&D!==null&&(R=D,D=hr(l,y),D!=null&&C.unshift(m(l,D,R)),D=hr(l,d),D!=null&&C.push(m(l,D,R))),l=l.return}return C}function k(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function U(l,d,y,C,R){for(var D=d._reactName,ee=[];y!==null&&y!==C;){var fe=y,me=fe.alternate,Ce=fe.stateNode;if(me!==null&&me===C)break;fe.tag===5&&Ce!==null&&(fe=Ce,R?(me=hr(y,D),me!=null&&ee.unshift(m(y,me,fe))):R||(me=hr(y,D),me!=null&&ee.push(m(y,me,fe)))),y=y.return}ee.length!==0&&l.push({event:d,listeners:ee})}var te=/\r\n?/g,pe=/\u0000|\uFFFD/g;function _e(l){return(typeof l=="string"?l:""+l).replace(te,`
|
||
`).replace(pe,"")}function Pe(l,d,y){if(d=_e(d),_e(l)!==d&&y)throw Error(r(425))}function Re(){}var Ze=null,st=null;function St(l,d){return l==="textarea"||l==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var $r=typeof setTimeout=="function"?setTimeout:void 0,kr=typeof clearTimeout=="function"?clearTimeout:void 0,_n=typeof Promise=="function"?Promise:void 0,un=typeof queueMicrotask=="function"?queueMicrotask:typeof _n<"u"?function(l){return _n.resolve(null).then(l).catch(Os)}:$r;function Os(l){setTimeout(function(){throw l})}function Ud(l,d){var y=d,C=0;do{var R=y.nextSibling;if(l.removeChild(y),R&&R.nodeType===8)if(y=R.data,y==="/$"){if(C===0){l.removeChild(R),ti(d);return}C--}else y!=="$"&&y!=="$?"&&y!=="$!"||C++;y=R}while(y);ti(d)}function Uo(l){for(;l!=null;l=l.nextSibling){var d=l.nodeType;if(d===1||d===3)break;if(d===8){if(d=l.data,d==="$"||d==="$!"||d==="$?")break;if(d==="/$")return null}}return l}function Jm(l){l=l.previousSibling;for(var d=0;l;){if(l.nodeType===8){var y=l.data;if(y==="$"||y==="$!"||y==="$?"){if(d===0)return l;d--}else y==="/$"&&d++}l=l.previousSibling}return null}var xa=Math.random().toString(36).slice(2),ji="__reactFiber$"+xa,Ss="__reactProps$"+xa,Dt="__reactContainer$"+xa,Ps="__reactEvents$"+xa,t_="__reactListeners$"+xa,r_="__reactHandles$"+xa;function wa(l){var d=l[ji];if(d)return d;for(var y=l.parentNode;y;){if(d=y[Dt]||y[ji]){if(y=d.alternate,d.child!==null||y!==null&&y.child!==null)for(l=Jm(l);l!==null;){if(y=l[ji])return y;l=Jm(l)}return d}l=y,y=l.parentNode}return null}function Oa(l){return l=l[ji]||l[Dt],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function Sa(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(r(33))}function dc(l){return l[Ss]||null}var n_=[],hc=-1;function Cs(l){return{current:l}}function tr(l){0>hc||(l.current=n_[hc],n_[hc]=null,hc--)}function Yt(l,d){hc++,n_[hc]=l.current,l.current=d}var Es={},cn=Cs(Es),Dn=Cs(!1),Dl=Es;function pc(l,d){var y=l.type.contextTypes;if(!y)return Es;var C=l.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===d)return C.__reactInternalMemoizedMaskedChildContext;var R={},D;for(D in y)R[D]=d[D];return C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=d,l.__reactInternalMemoizedMaskedChildContext=R),R}function $n(l){return l=l.childContextTypes,l!=null}function ev(){tr(Dn),tr(cn)}function wA(l,d,y){if(cn.current!==Es)throw Error(r(168));Yt(cn,d),Yt(Dn,y)}function OA(l,d,y){var C=l.stateNode;if(d=d.childContextTypes,typeof C.getChildContext!="function")return y;C=C.getChildContext();for(var R in C)if(!(R in d))throw Error(r(108,be(l)||"Unknown",R));return G({},y,C)}function tv(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Es,Dl=cn.current,Yt(cn,l),Yt(Dn,Dn.current),!0}function SA(l,d,y){var C=l.stateNode;if(!C)throw Error(r(169));y?(l=OA(l,d,Dl),C.__reactInternalMemoizedMergedChildContext=l,tr(Dn),tr(cn),Yt(cn,l)):tr(Dn),Yt(Dn,y)}var Pa=null,rv=!1,i_=!1;function PA(l){Pa===null?Pa=[l]:Pa.push(l)}function RW(l){rv=!0,PA(l)}function Ts(){if(!i_&&Pa!==null){i_=!0;var l=0,d=Rt;try{var y=Pa;for(Rt=1;l<y.length;l++){var C=y[l];do C=C(!0);while(C!==null)}Pa=null,rv=!1}catch(R){throw Pa!==null&&(Pa=Pa.slice(l+1)),jm(vd,Ts),R}finally{Rt=d,i_=!1}}return null}var mc=[],vc=0,nv=null,iv=0,Ai=[],ki=0,$l=null,Ca=1,Ea="";function Fl(l,d){mc[vc++]=iv,mc[vc++]=nv,nv=l,iv=d}function CA(l,d,y){Ai[ki++]=Ca,Ai[ki++]=Ea,Ai[ki++]=$l,$l=l;var C=Ca;l=Ea;var R=32-wt(C)-1;C&=~(1<<R),y+=1;var D=32-wt(d)+R;if(30<D){var ee=R-R%5;D=(C&(1<<ee)-1).toString(32),C>>=ee,R-=ee,Ca=1<<32-wt(d)+R|y<<R|C,Ea=D+l}else Ca=1<<D|y<<R|C,Ea=l}function o_(l){l.return!==null&&(Fl(l,1),CA(l,1,0))}function a_(l){for(;l===nv;)nv=mc[--vc],mc[vc]=null,iv=mc[--vc],mc[vc]=null;for(;l===$l;)$l=Ai[--ki],Ai[ki]=null,Ea=Ai[--ki],Ai[ki]=null,Ca=Ai[--ki],Ai[ki]=null}var ai=null,si=null,ar=!1,so=null;function EA(l,d){var y=Li(5,null,null,0);y.elementType="DELETED",y.stateNode=d,y.return=l,d=l.deletions,d===null?(l.deletions=[y],l.flags|=16):d.push(y)}function TA(l,d){switch(l.tag){case 5:var y=l.type;return d=d.nodeType!==1||y.toLowerCase()!==d.nodeName.toLowerCase()?null:d,d!==null?(l.stateNode=d,ai=l,si=Uo(d.firstChild),!0):!1;case 6:return d=l.pendingProps===""||d.nodeType!==3?null:d,d!==null?(l.stateNode=d,ai=l,si=null,!0):!1;case 13:return d=d.nodeType!==8?null:d,d!==null?(y=$l!==null?{id:Ca,overflow:Ea}:null,l.memoizedState={dehydrated:d,treeContext:y,retryLane:1073741824},y=Li(18,null,null,0),y.stateNode=d,y.return=l,l.child=y,ai=l,si=null,!0):!1;default:return!1}}function s_(l){return(l.mode&1)!==0&&(l.flags&128)===0}function l_(l){if(ar){var d=si;if(d){var y=d;if(!TA(l,d)){if(s_(l))throw Error(r(418));d=Uo(y.nextSibling);var C=ai;d&&TA(l,d)?EA(C,y):(l.flags=l.flags&-4097|2,ar=!1,ai=l)}}else{if(s_(l))throw Error(r(418));l.flags=l.flags&-4097|2,ar=!1,ai=l}}}function jA(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;ai=l}function ov(l){if(l!==ai)return!1;if(!ar)return jA(l),ar=!0,!1;var d;if((d=l.tag!==3)&&!(d=l.tag!==5)&&(d=l.type,d=d!=="head"&&d!=="body"&&!St(l.type,l.memoizedProps)),d&&(d=si)){if(s_(l))throw AA(),Error(r(418));for(;d;)EA(l,d),d=Uo(d.nextSibling)}if(jA(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));e:{for(l=l.nextSibling,d=0;l;){if(l.nodeType===8){var y=l.data;if(y==="/$"){if(d===0){si=Uo(l.nextSibling);break e}d--}else y!=="$"&&y!=="$!"&&y!=="$?"||d++}l=l.nextSibling}si=null}}else si=ai?Uo(l.stateNode.nextSibling):null;return!0}function AA(){for(var l=si;l;)l=Uo(l.nextSibling)}function gc(){si=ai=null,ar=!1}function u_(l){so===null?so=[l]:so.push(l)}var NW=T.ReactCurrentBatchConfig;function zd(l,d,y){if(l=y.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(y._owner){if(y=y._owner,y){if(y.tag!==1)throw Error(r(309));var C=y.stateNode}if(!C)throw Error(r(147,l));var R=C,D=""+l;return d!==null&&d.ref!==null&&typeof d.ref=="function"&&d.ref._stringRef===D?d.ref:(d=function(ee){var fe=R.refs;ee===null?delete fe[D]:fe[D]=ee},d._stringRef=D,d)}if(typeof l!="string")throw Error(r(284));if(!y._owner)throw Error(r(290,l))}return l}function av(l,d){throw l=Object.prototype.toString.call(d),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":l))}function kA(l){var d=l._init;return d(l._payload)}function RA(l){function d(xe,ve){if(l){var Oe=xe.deletions;Oe===null?(xe.deletions=[ve],xe.flags|=16):Oe.push(ve)}}function y(xe,ve){if(!l)return null;for(;ve!==null;)d(xe,ve),ve=ve.sibling;return null}function C(xe,ve){for(xe=new Map;ve!==null;)ve.key!==null?xe.set(ve.key,ve):xe.set(ve.index,ve),ve=ve.sibling;return xe}function R(xe,ve){return xe=Is(xe,ve),xe.index=0,xe.sibling=null,xe}function D(xe,ve,Oe){return xe.index=Oe,l?(Oe=xe.alternate,Oe!==null?(Oe=Oe.index,Oe<ve?(xe.flags|=2,ve):Oe):(xe.flags|=2,ve)):(xe.flags|=1048576,ve)}function ee(xe){return l&&xe.alternate===null&&(xe.flags|=2),xe}function fe(xe,ve,Oe,We){return ve===null||ve.tag!==6?(ve=e1(Oe,xe.mode,We),ve.return=xe,ve):(ve=R(ve,Oe),ve.return=xe,ve)}function me(xe,ve,Oe,We){var ot=Oe.type;return ot===N?Ie(xe,ve,Oe.props.children,We,Oe.key):ve!==null&&(ve.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===ae&&kA(ot)===ve.type)?(We=R(ve,Oe.props),We.ref=zd(xe,ve,Oe),We.return=xe,We):(We=Av(Oe.type,Oe.key,Oe.props,null,xe.mode,We),We.ref=zd(xe,ve,Oe),We.return=xe,We)}function Ce(xe,ve,Oe,We){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==Oe.containerInfo||ve.stateNode.implementation!==Oe.implementation?(ve=t1(Oe,xe.mode,We),ve.return=xe,ve):(ve=R(ve,Oe.children||[]),ve.return=xe,ve)}function Ie(xe,ve,Oe,We,ot){return ve===null||ve.tag!==7?(ve=Gl(Oe,xe.mode,We,ot),ve.return=xe,ve):(ve=R(ve,Oe),ve.return=xe,ve)}function $e(xe,ve,Oe){if(typeof ve=="string"&&ve!==""||typeof ve=="number")return ve=e1(""+ve,xe.mode,Oe),ve.return=xe,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case A:return Oe=Av(ve.type,ve.key,ve.props,null,xe.mode,Oe),Oe.ref=zd(xe,null,ve),Oe.return=xe,Oe;case j:return ve=t1(ve,xe.mode,Oe),ve.return=xe,ve;case ae:var We=ve._init;return $e(xe,We(ve._payload),Oe)}if(He(ve)||K(ve))return ve=Gl(ve,xe.mode,Oe,null),ve.return=xe,ve;av(xe,ve)}return null}function Le(xe,ve,Oe,We){var ot=ve!==null?ve.key:null;if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number")return ot!==null?null:fe(xe,ve,""+Oe,We);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case A:return Oe.key===ot?me(xe,ve,Oe,We):null;case j:return Oe.key===ot?Ce(xe,ve,Oe,We):null;case ae:return ot=Oe._init,Le(xe,ve,ot(Oe._payload),We)}if(He(Oe)||K(Oe))return ot!==null?null:Ie(xe,ve,Oe,We,null);av(xe,Oe)}return null}function Qe(xe,ve,Oe,We,ot){if(typeof We=="string"&&We!==""||typeof We=="number")return xe=xe.get(Oe)||null,fe(ve,xe,""+We,ot);if(typeof We=="object"&&We!==null){switch(We.$$typeof){case A:return xe=xe.get(We.key===null?Oe:We.key)||null,me(ve,xe,We,ot);case j:return xe=xe.get(We.key===null?Oe:We.key)||null,Ce(ve,xe,We,ot);case ae:var lt=We._init;return Qe(xe,ve,Oe,lt(We._payload),ot)}if(He(We)||K(We))return xe=xe.get(Oe)||null,Ie(ve,xe,We,ot,null);av(ve,We)}return null}function tt(xe,ve,Oe,We){for(var ot=null,lt=null,ut=ve,vt=ve=0,Gr=null;ut!==null&&vt<Oe.length;vt++){ut.index>vt?(Gr=ut,ut=null):Gr=ut.sibling;var Lt=Le(xe,ut,Oe[vt],We);if(Lt===null){ut===null&&(ut=Gr);break}l&&ut&&Lt.alternate===null&&d(xe,ut),ve=D(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt,ut=Gr}if(vt===Oe.length)return y(xe,ut),ar&&Fl(xe,vt),ot;if(ut===null){for(;vt<Oe.length;vt++)ut=$e(xe,Oe[vt],We),ut!==null&&(ve=D(ut,ve,vt),lt===null?ot=ut:lt.sibling=ut,lt=ut);return ar&&Fl(xe,vt),ot}for(ut=C(xe,ut);vt<Oe.length;vt++)Gr=Qe(ut,xe,vt,Oe[vt],We),Gr!==null&&(l&&Gr.alternate!==null&&ut.delete(Gr.key===null?vt:Gr.key),ve=D(Gr,ve,vt),lt===null?ot=Gr:lt.sibling=Gr,lt=Gr);return l&&ut.forEach(function(Ds){return d(xe,Ds)}),ar&&Fl(xe,vt),ot}function rt(xe,ve,Oe,We){var ot=K(Oe);if(typeof ot!="function")throw Error(r(150));if(Oe=ot.call(Oe),Oe==null)throw Error(r(151));for(var lt=ot=null,ut=ve,vt=ve=0,Gr=null,Lt=Oe.next();ut!==null&&!Lt.done;vt++,Lt=Oe.next()){ut.index>vt?(Gr=ut,ut=null):Gr=ut.sibling;var Ds=Le(xe,ut,Lt.value,We);if(Ds===null){ut===null&&(ut=Gr);break}l&&ut&&Ds.alternate===null&&d(xe,ut),ve=D(Ds,ve,vt),lt===null?ot=Ds:lt.sibling=Ds,lt=Ds,ut=Gr}if(Lt.done)return y(xe,ut),ar&&Fl(xe,vt),ot;if(ut===null){for(;!Lt.done;vt++,Lt=Oe.next())Lt=$e(xe,Lt.value,We),Lt!==null&&(ve=D(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return ar&&Fl(xe,vt),ot}for(ut=C(xe,ut);!Lt.done;vt++,Lt=Oe.next())Lt=Qe(ut,xe,vt,Lt.value,We),Lt!==null&&(l&&Lt.alternate!==null&&ut.delete(Lt.key===null?vt:Lt.key),ve=D(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return l&&ut.forEach(function(dq){return d(xe,dq)}),ar&&Fl(xe,vt),ot}function Cr(xe,ve,Oe,We){if(typeof Oe=="object"&&Oe!==null&&Oe.type===N&&Oe.key===null&&(Oe=Oe.props.children),typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case A:e:{for(var ot=Oe.key,lt=ve;lt!==null;){if(lt.key===ot){if(ot=Oe.type,ot===N){if(lt.tag===7){y(xe,lt.sibling),ve=R(lt,Oe.props.children),ve.return=xe,xe=ve;break e}}else if(lt.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===ae&&kA(ot)===lt.type){y(xe,lt.sibling),ve=R(lt,Oe.props),ve.ref=zd(xe,lt,Oe),ve.return=xe,xe=ve;break e}y(xe,lt);break}else d(xe,lt);lt=lt.sibling}Oe.type===N?(ve=Gl(Oe.props.children,xe.mode,We,Oe.key),ve.return=xe,xe=ve):(We=Av(Oe.type,Oe.key,Oe.props,null,xe.mode,We),We.ref=zd(xe,ve,Oe),We.return=xe,xe=We)}return ee(xe);case j:e:{for(lt=Oe.key;ve!==null;){if(ve.key===lt)if(ve.tag===4&&ve.stateNode.containerInfo===Oe.containerInfo&&ve.stateNode.implementation===Oe.implementation){y(xe,ve.sibling),ve=R(ve,Oe.children||[]),ve.return=xe,xe=ve;break e}else{y(xe,ve);break}else d(xe,ve);ve=ve.sibling}ve=t1(Oe,xe.mode,We),ve.return=xe,xe=ve}return ee(xe);case ae:return lt=Oe._init,Cr(xe,ve,lt(Oe._payload),We)}if(He(Oe))return tt(xe,ve,Oe,We);if(K(Oe))return rt(xe,ve,Oe,We);av(xe,Oe)}return typeof Oe=="string"&&Oe!==""||typeof Oe=="number"?(Oe=""+Oe,ve!==null&&ve.tag===6?(y(xe,ve.sibling),ve=R(ve,Oe),ve.return=xe,xe=ve):(y(xe,ve),ve=e1(Oe,xe.mode,We),ve.return=xe,xe=ve),ee(xe)):y(xe,ve)}return Cr}var yc=RA(!0),NA=RA(!1),sv=Cs(null),lv=null,bc=null,c_=null;function f_(){c_=bc=lv=null}function d_(l){var d=sv.current;tr(sv),l._currentValue=d}function h_(l,d,y){for(;l!==null;){var C=l.alternate;if((l.childLanes&d)!==d?(l.childLanes|=d,C!==null&&(C.childLanes|=d)):C!==null&&(C.childLanes&d)!==d&&(C.childLanes|=d),l===y)break;l=l.return}}function _c(l,d){lv=l,c_=bc=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&d&&(Fn=!0),l.firstContext=null)}function Ri(l){var d=l._currentValue;if(c_!==l)if(l={context:l,memoizedValue:d,next:null},bc===null){if(lv===null)throw Error(r(308));bc=l,lv.dependencies={lanes:0,firstContext:l}}else bc=bc.next=l;return d}var Bl=null;function p_(l){Bl===null?Bl=[l]:Bl.push(l)}function MA(l,d,y,C){var R=d.interleaved;return R===null?(y.next=y,p_(d)):(y.next=R.next,R.next=y),d.interleaved=y,Ta(l,C)}function Ta(l,d){l.lanes|=d;var y=l.alternate;for(y!==null&&(y.lanes|=d),y=l,l=l.return;l!==null;)l.childLanes|=d,y=l.alternate,y!==null&&(y.childLanes|=d),y=l,l=l.return;return y.tag===3?y.stateNode:null}var js=!1;function m_(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function LA(l,d){l=l.updateQueue,d.updateQueue===l&&(d.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function ja(l,d){return{eventTime:l,lane:d,tag:0,payload:null,callback:null,next:null}}function As(l,d,y){var C=l.updateQueue;if(C===null)return null;if(C=C.shared,Mt&2){var R=C.pending;return R===null?d.next=d:(d.next=R.next,R.next=d),C.pending=d,Ta(l,y)}return R=C.interleaved,R===null?(d.next=d,p_(C)):(d.next=R.next,R.next=d),C.interleaved=d,Ta(l,y)}function uv(l,d,y){if(d=d.updateQueue,d!==null&&(d=d.shared,(y&4194240)!==0)){var C=d.lanes;C&=l.pendingLanes,y|=C,d.lanes=y,ro(l,y)}}function IA(l,d){var y=l.updateQueue,C=l.alternate;if(C!==null&&(C=C.updateQueue,y===C)){var R=null,D=null;if(y=y.firstBaseUpdate,y!==null){do{var ee={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};D===null?R=D=ee:D=D.next=ee,y=y.next}while(y!==null);D===null?R=D=d:D=D.next=d}else R=D=d;y={baseState:C.baseState,firstBaseUpdate:R,lastBaseUpdate:D,shared:C.shared,effects:C.effects},l.updateQueue=y;return}l=y.lastBaseUpdate,l===null?y.firstBaseUpdate=d:l.next=d,y.lastBaseUpdate=d}function cv(l,d,y,C){var R=l.updateQueue;js=!1;var D=R.firstBaseUpdate,ee=R.lastBaseUpdate,fe=R.shared.pending;if(fe!==null){R.shared.pending=null;var me=fe,Ce=me.next;me.next=null,ee===null?D=Ce:ee.next=Ce,ee=me;var Ie=l.alternate;Ie!==null&&(Ie=Ie.updateQueue,fe=Ie.lastBaseUpdate,fe!==ee&&(fe===null?Ie.firstBaseUpdate=Ce:fe.next=Ce,Ie.lastBaseUpdate=me))}if(D!==null){var $e=R.baseState;ee=0,Ie=Ce=me=null,fe=D;do{var Le=fe.lane,Qe=fe.eventTime;if((C&Le)===Le){Ie!==null&&(Ie=Ie.next={eventTime:Qe,lane:0,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null});e:{var tt=l,rt=fe;switch(Le=d,Qe=y,rt.tag){case 1:if(tt=rt.payload,typeof tt=="function"){$e=tt.call(Qe,$e,Le);break e}$e=tt;break e;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=rt.payload,Le=typeof tt=="function"?tt.call(Qe,$e,Le):tt,Le==null)break e;$e=G({},$e,Le);break e;case 2:js=!0}}fe.callback!==null&&fe.lane!==0&&(l.flags|=64,Le=R.effects,Le===null?R.effects=[fe]:Le.push(fe))}else Qe={eventTime:Qe,lane:Le,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null},Ie===null?(Ce=Ie=Qe,me=$e):Ie=Ie.next=Qe,ee|=Le;if(fe=fe.next,fe===null){if(fe=R.shared.pending,fe===null)break;Le=fe,fe=Le.next,Le.next=null,R.lastBaseUpdate=Le,R.shared.pending=null}}while(!0);if(Ie===null&&(me=$e),R.baseState=me,R.firstBaseUpdate=Ce,R.lastBaseUpdate=Ie,d=R.shared.interleaved,d!==null){R=d;do ee|=R.lane,R=R.next;while(R!==d)}else D===null&&(R.shared.lanes=0);Vl|=ee,l.lanes=ee,l.memoizedState=$e}}function DA(l,d,y){if(l=d.effects,d.effects=null,l!==null)for(d=0;d<l.length;d++){var C=l[d],R=C.callback;if(R!==null){if(C.callback=null,C=y,typeof R!="function")throw Error(r(191,R));R.call(C)}}}var Vd={},zo=Cs(Vd),Wd=Cs(Vd),qd=Cs(Vd);function Ul(l){if(l===Vd)throw Error(r(174));return l}function v_(l,d){switch(Yt(qd,d),Yt(Wd,l),Yt(zo,Vd),l=d.nodeType,l){case 9:case 11:d=(d=d.documentElement)?d.namespaceURI:De(null,"");break;default:l=l===8?d.parentNode:d,d=l.namespaceURI||null,l=l.tagName,d=De(d,l)}tr(zo),Yt(zo,d)}function xc(){tr(zo),tr(Wd),tr(qd)}function $A(l){Ul(qd.current);var d=Ul(zo.current),y=De(d,l.type);d!==y&&(Yt(Wd,l),Yt(zo,y))}function g_(l){Wd.current===l&&(tr(zo),tr(Wd))}var yr=Cs(0);function fv(l){for(var d=l;d!==null;){if(d.tag===13){var y=d.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||y.data==="$?"||y.data==="$!"))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if(d.flags&128)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var y_=[];function b_(){for(var l=0;l<y_.length;l++)y_[l]._workInProgressVersionPrimary=null;y_.length=0}var dv=T.ReactCurrentDispatcher,__=T.ReactCurrentBatchConfig,zl=0,br=null,Fr=null,qr=null,hv=!1,Hd=!1,Gd=0,MW=0;function fn(){throw Error(r(321))}function x_(l,d){if(d===null)return!1;for(var y=0;y<d.length&&y<l.length;y++)if(!ii(l[y],d[y]))return!1;return!0}function w_(l,d,y,C,R,D){if(zl=D,br=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,dv.current=l===null||l.memoizedState===null?$W:FW,l=y(C,R),Hd){D=0;do{if(Hd=!1,Gd=0,25<=D)throw Error(r(301));D+=1,qr=Fr=null,d.updateQueue=null,dv.current=BW,l=y(C,R)}while(Hd)}if(dv.current=vv,d=Fr!==null&&Fr.next!==null,zl=0,qr=Fr=br=null,hv=!1,d)throw Error(r(300));return l}function O_(){var l=Gd!==0;return Gd=0,l}function Vo(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?br.memoizedState=qr=l:qr=qr.next=l,qr}function Ni(){if(Fr===null){var l=br.alternate;l=l!==null?l.memoizedState:null}else l=Fr.next;var d=qr===null?br.memoizedState:qr.next;if(d!==null)qr=d,Fr=l;else{if(l===null)throw Error(r(310));Fr=l,l={memoizedState:Fr.memoizedState,baseState:Fr.baseState,baseQueue:Fr.baseQueue,queue:Fr.queue,next:null},qr===null?br.memoizedState=qr=l:qr=qr.next=l}return qr}function Kd(l,d){return typeof d=="function"?d(l):d}function S_(l){var d=Ni(),y=d.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=l;var C=Fr,R=C.baseQueue,D=y.pending;if(D!==null){if(R!==null){var ee=R.next;R.next=D.next,D.next=ee}C.baseQueue=R=D,y.pending=null}if(R!==null){D=R.next,C=C.baseState;var fe=ee=null,me=null,Ce=D;do{var Ie=Ce.lane;if((zl&Ie)===Ie)me!==null&&(me=me.next={lane:0,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null}),C=Ce.hasEagerState?Ce.eagerState:l(C,Ce.action);else{var $e={lane:Ie,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};me===null?(fe=me=$e,ee=C):me=me.next=$e,br.lanes|=Ie,Vl|=Ie}Ce=Ce.next}while(Ce!==null&&Ce!==D);me===null?ee=C:me.next=fe,ii(C,d.memoizedState)||(Fn=!0),d.memoizedState=C,d.baseState=ee,d.baseQueue=me,y.lastRenderedState=C}if(l=y.interleaved,l!==null){R=l;do D=R.lane,br.lanes|=D,Vl|=D,R=R.next;while(R!==l)}else R===null&&(y.lanes=0);return[d.memoizedState,y.dispatch]}function P_(l){var d=Ni(),y=d.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=l;var C=y.dispatch,R=y.pending,D=d.memoizedState;if(R!==null){y.pending=null;var ee=R=R.next;do D=l(D,ee.action),ee=ee.next;while(ee!==R);ii(D,d.memoizedState)||(Fn=!0),d.memoizedState=D,d.baseQueue===null&&(d.baseState=D),y.lastRenderedState=D}return[D,C]}function FA(){}function BA(l,d){var y=br,C=Ni(),R=d(),D=!ii(C.memoizedState,R);if(D&&(C.memoizedState=R,Fn=!0),C=C.queue,C_(VA.bind(null,y,C,l),[l]),C.getSnapshot!==d||D||qr!==null&&qr.memoizedState.tag&1){if(y.flags|=2048,Yd(9,zA.bind(null,y,C,R,d),void 0,null),Hr===null)throw Error(r(349));zl&30||UA(y,d,R)}return R}function UA(l,d,y){l.flags|=16384,l={getSnapshot:d,value:y},d=br.updateQueue,d===null?(d={lastEffect:null,stores:null},br.updateQueue=d,d.stores=[l]):(y=d.stores,y===null?d.stores=[l]:y.push(l))}function zA(l,d,y,C){d.value=y,d.getSnapshot=C,WA(d)&&qA(l)}function VA(l,d,y){return y(function(){WA(d)&&qA(l)})}function WA(l){var d=l.getSnapshot;l=l.value;try{var y=d();return!ii(l,y)}catch{return!0}}function qA(l){var d=Ta(l,1);d!==null&&fo(d,l,1,-1)}function HA(l){var d=Vo();return typeof l=="function"&&(l=l()),d.memoizedState=d.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Kd,lastRenderedState:l},d.queue=l,l=l.dispatch=DW.bind(null,br,l),[d.memoizedState,l]}function Yd(l,d,y,C){return l={tag:l,create:d,destroy:y,deps:C,next:null},d=br.updateQueue,d===null?(d={lastEffect:null,stores:null},br.updateQueue=d,d.lastEffect=l.next=l):(y=d.lastEffect,y===null?d.lastEffect=l.next=l:(C=y.next,y.next=l,l.next=C,d.lastEffect=l)),l}function GA(){return Ni().memoizedState}function pv(l,d,y,C){var R=Vo();br.flags|=l,R.memoizedState=Yd(1|d,y,void 0,C===void 0?null:C)}function mv(l,d,y,C){var R=Ni();C=C===void 0?null:C;var D=void 0;if(Fr!==null){var ee=Fr.memoizedState;if(D=ee.destroy,C!==null&&x_(C,ee.deps)){R.memoizedState=Yd(d,y,D,C);return}}br.flags|=l,R.memoizedState=Yd(1|d,y,D,C)}function KA(l,d){return pv(8390656,8,l,d)}function C_(l,d){return mv(2048,8,l,d)}function YA(l,d){return mv(4,2,l,d)}function ZA(l,d){return mv(4,4,l,d)}function XA(l,d){if(typeof d=="function")return l=l(),d(l),function(){d(null)};if(d!=null)return l=l(),d.current=l,function(){d.current=null}}function QA(l,d,y){return y=y!=null?y.concat([l]):null,mv(4,4,XA.bind(null,d,l),y)}function E_(){}function JA(l,d){var y=Ni();d=d===void 0?null:d;var C=y.memoizedState;return C!==null&&d!==null&&x_(d,C[1])?C[0]:(y.memoizedState=[l,d],l)}function ek(l,d){var y=Ni();d=d===void 0?null:d;var C=y.memoizedState;return C!==null&&d!==null&&x_(d,C[1])?C[0]:(l=l(),y.memoizedState=[l,d],l)}function tk(l,d,y){return zl&21?(ii(y,d)||(y=km(),br.lanes|=y,Vl|=y,l.baseState=!0),d):(l.baseState&&(l.baseState=!1,Fn=!0),l.memoizedState=y)}function LW(l,d){var y=Rt;Rt=y!==0&&4>y?y:4,l(!0);var C=__.transition;__.transition={};try{l(!1),d()}finally{Rt=y,__.transition=C}}function rk(){return Ni().memoizedState}function IW(l,d,y){var C=Ms(l);if(y={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null},nk(l))ik(d,y);else if(y=MA(l,d,y,C),y!==null){var R=wn();fo(y,l,C,R),ok(y,d,C)}}function DW(l,d,y){var C=Ms(l),R={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null};if(nk(l))ik(d,R);else{var D=l.alternate;if(l.lanes===0&&(D===null||D.lanes===0)&&(D=d.lastRenderedReducer,D!==null))try{var ee=d.lastRenderedState,fe=D(ee,y);if(R.hasEagerState=!0,R.eagerState=fe,ii(fe,ee)){var me=d.interleaved;me===null?(R.next=R,p_(d)):(R.next=me.next,me.next=R),d.interleaved=R;return}}catch{}finally{}y=MA(l,d,R,C),y!==null&&(R=wn(),fo(y,l,C,R),ok(y,d,C))}}function nk(l){var d=l.alternate;return l===br||d!==null&&d===br}function ik(l,d){Hd=hv=!0;var y=l.pending;y===null?d.next=d:(d.next=y.next,y.next=d),l.pending=d}function ok(l,d,y){if(y&4194240){var C=d.lanes;C&=l.pendingLanes,y|=C,d.lanes=y,ro(l,y)}}var vv={readContext:Ri,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useInsertionEffect:fn,useLayoutEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useMutableSource:fn,useSyncExternalStore:fn,useId:fn,unstable_isNewReconciler:!1},$W={readContext:Ri,useCallback:function(l,d){return Vo().memoizedState=[l,d===void 0?null:d],l},useContext:Ri,useEffect:KA,useImperativeHandle:function(l,d,y){return y=y!=null?y.concat([l]):null,pv(4194308,4,XA.bind(null,d,l),y)},useLayoutEffect:function(l,d){return pv(4194308,4,l,d)},useInsertionEffect:function(l,d){return pv(4,2,l,d)},useMemo:function(l,d){var y=Vo();return d=d===void 0?null:d,l=l(),y.memoizedState=[l,d],l},useReducer:function(l,d,y){var C=Vo();return d=y!==void 0?y(d):d,C.memoizedState=C.baseState=d,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:d},C.queue=l,l=l.dispatch=IW.bind(null,br,l),[C.memoizedState,l]},useRef:function(l){var d=Vo();return l={current:l},d.memoizedState=l},useState:HA,useDebugValue:E_,useDeferredValue:function(l){return Vo().memoizedState=l},useTransition:function(){var l=HA(!1),d=l[0];return l=LW.bind(null,l[1]),Vo().memoizedState=l,[d,l]},useMutableSource:function(){},useSyncExternalStore:function(l,d,y){var C=br,R=Vo();if(ar){if(y===void 0)throw Error(r(407));y=y()}else{if(y=d(),Hr===null)throw Error(r(349));zl&30||UA(C,d,y)}R.memoizedState=y;var D={value:y,getSnapshot:d};return R.queue=D,KA(VA.bind(null,C,D,l),[l]),C.flags|=2048,Yd(9,zA.bind(null,C,D,y,d),void 0,null),y},useId:function(){var l=Vo(),d=Hr.identifierPrefix;if(ar){var y=Ea,C=Ca;y=(C&~(1<<32-wt(C)-1)).toString(32)+y,d=":"+d+"R"+y,y=Gd++,0<y&&(d+="H"+y.toString(32)),d+=":"}else y=MW++,d=":"+d+"r"+y.toString(32)+":";return l.memoizedState=d},unstable_isNewReconciler:!1},FW={readContext:Ri,useCallback:JA,useContext:Ri,useEffect:C_,useImperativeHandle:QA,useInsertionEffect:YA,useLayoutEffect:ZA,useMemo:ek,useReducer:S_,useRef:GA,useState:function(){return S_(Kd)},useDebugValue:E_,useDeferredValue:function(l){var d=Ni();return tk(d,Fr.memoizedState,l)},useTransition:function(){var l=S_(Kd)[0],d=Ni().memoizedState;return[l,d]},useMutableSource:FA,useSyncExternalStore:BA,useId:rk,unstable_isNewReconciler:!1},BW={readContext:Ri,useCallback:JA,useContext:Ri,useEffect:C_,useImperativeHandle:QA,useInsertionEffect:YA,useLayoutEffect:ZA,useMemo:ek,useReducer:P_,useRef:GA,useState:function(){return P_(Kd)},useDebugValue:E_,useDeferredValue:function(l){var d=Ni();return Fr===null?d.memoizedState=l:tk(d,Fr.memoizedState,l)},useTransition:function(){var l=P_(Kd)[0],d=Ni().memoizedState;return[l,d]},useMutableSource:FA,useSyncExternalStore:BA,useId:rk,unstable_isNewReconciler:!1};function lo(l,d){if(l&&l.defaultProps){d=G({},d),l=l.defaultProps;for(var y in l)d[y]===void 0&&(d[y]=l[y]);return d}return d}function T_(l,d,y,C){d=l.memoizedState,y=y(C,d),y=y==null?d:G({},d,y),l.memoizedState=y,l.lanes===0&&(l.updateQueue.baseState=y)}var gv={isMounted:function(l){return(l=l._reactInternals)?No(l)===l:!1},enqueueSetState:function(l,d,y){l=l._reactInternals;var C=wn(),R=Ms(l),D=ja(C,R);D.payload=d,y!=null&&(D.callback=y),d=As(l,D,R),d!==null&&(fo(d,l,R,C),uv(d,l,R))},enqueueReplaceState:function(l,d,y){l=l._reactInternals;var C=wn(),R=Ms(l),D=ja(C,R);D.tag=1,D.payload=d,y!=null&&(D.callback=y),d=As(l,D,R),d!==null&&(fo(d,l,R,C),uv(d,l,R))},enqueueForceUpdate:function(l,d){l=l._reactInternals;var y=wn(),C=Ms(l),R=ja(y,C);R.tag=2,d!=null&&(R.callback=d),d=As(l,R,C),d!==null&&(fo(d,l,C,y),uv(d,l,C))}};function ak(l,d,y,C,R,D,ee){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(C,D,ee):d.prototype&&d.prototype.isPureReactComponent?!$o(y,C)||!$o(R,D):!0}function sk(l,d,y){var C=!1,R=Es,D=d.contextType;return typeof D=="object"&&D!==null?D=Ri(D):(R=$n(d)?Dl:cn.current,C=d.contextTypes,D=(C=C!=null)?pc(l,R):Es),d=new d(y,D),l.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=gv,l.stateNode=d,d._reactInternals=l,C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=R,l.__reactInternalMemoizedMaskedChildContext=D),d}function lk(l,d,y,C){l=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(y,C),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(y,C),d.state!==l&&gv.enqueueReplaceState(d,d.state,null)}function j_(l,d,y,C){var R=l.stateNode;R.props=y,R.state=l.memoizedState,R.refs={},m_(l);var D=d.contextType;typeof D=="object"&&D!==null?R.context=Ri(D):(D=$n(d)?Dl:cn.current,R.context=pc(l,D)),R.state=l.memoizedState,D=d.getDerivedStateFromProps,typeof D=="function"&&(T_(l,d,D,y),R.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(d=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),d!==R.state&&gv.enqueueReplaceState(R,R.state,null),cv(l,y,R,C),R.state=l.memoizedState),typeof R.componentDidMount=="function"&&(l.flags|=4194308)}function wc(l,d){try{var y="",C=d;do y+=ce(C),C=C.return;while(C);var R=y}catch(D){R=`
|
||
Error generating stack: `+D.message+`
|
||
`+D.stack}return{value:l,source:d,stack:R,digest:null}}function A_(l,d,y){return{value:l,source:null,stack:y??null,digest:d??null}}function k_(l,d){try{console.error(d.value)}catch(y){setTimeout(function(){throw y})}}var UW=typeof WeakMap=="function"?WeakMap:Map;function uk(l,d,y){y=ja(-1,y),y.tag=3,y.payload={element:null};var C=d.value;return y.callback=function(){Sv||(Sv=!0,H_=C),k_(l,d)},y}function ck(l,d,y){y=ja(-1,y),y.tag=3;var C=l.type.getDerivedStateFromError;if(typeof C=="function"){var R=d.value;y.payload=function(){return C(R)},y.callback=function(){k_(l,d)}}var D=l.stateNode;return D!==null&&typeof D.componentDidCatch=="function"&&(y.callback=function(){k_(l,d),typeof C!="function"&&(Rs===null?Rs=new Set([this]):Rs.add(this));var ee=d.stack;this.componentDidCatch(d.value,{componentStack:ee!==null?ee:""})}),y}function fk(l,d,y){var C=l.pingCache;if(C===null){C=l.pingCache=new UW;var R=new Set;C.set(d,R)}else R=C.get(d),R===void 0&&(R=new Set,C.set(d,R));R.has(y)||(R.add(y),l=tq.bind(null,l,d,y),d.then(l,l))}function dk(l){do{var d;if((d=l.tag===13)&&(d=l.memoizedState,d=d!==null?d.dehydrated!==null:!0),d)return l;l=l.return}while(l!==null);return null}function hk(l,d,y,C,R){return l.mode&1?(l.flags|=65536,l.lanes=R,l):(l===d?l.flags|=65536:(l.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(d=ja(-1,1),d.tag=2,As(y,d,1))),y.lanes|=1),l)}var zW=T.ReactCurrentOwner,Fn=!1;function xn(l,d,y,C){d.child=l===null?NA(d,null,y,C):yc(d,l.child,y,C)}function pk(l,d,y,C,R){y=y.render;var D=d.ref;return _c(d,R),C=w_(l,d,y,C,D,R),y=O_(),l!==null&&!Fn?(d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~R,Aa(l,d,R)):(ar&&y&&o_(d),d.flags|=1,xn(l,d,C,R),d.child)}function mk(l,d,y,C,R){if(l===null){var D=y.type;return typeof D=="function"&&!J_(D)&&D.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(d.tag=15,d.type=D,vk(l,d,D,C,R)):(l=Av(y.type,null,C,d,d.mode,R),l.ref=d.ref,l.return=d,d.child=l)}if(D=l.child,!(l.lanes&R)){var ee=D.memoizedProps;if(y=y.compare,y=y!==null?y:$o,y(ee,C)&&l.ref===d.ref)return Aa(l,d,R)}return d.flags|=1,l=Is(D,C),l.ref=d.ref,l.return=d,d.child=l}function vk(l,d,y,C,R){if(l!==null){var D=l.memoizedProps;if($o(D,C)&&l.ref===d.ref)if(Fn=!1,d.pendingProps=C=D,(l.lanes&R)!==0)l.flags&131072&&(Fn=!0);else return d.lanes=l.lanes,Aa(l,d,R)}return R_(l,d,y,C,R)}function gk(l,d,y){var C=d.pendingProps,R=C.children,D=l!==null?l.memoizedState:null;if(C.mode==="hidden")if(!(d.mode&1))d.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yt(Sc,li),li|=y;else{if(!(y&1073741824))return l=D!==null?D.baseLanes|y:y,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:l,cachePool:null,transitions:null},d.updateQueue=null,Yt(Sc,li),li|=l,null;d.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=D!==null?D.baseLanes:y,Yt(Sc,li),li|=C}else D!==null?(C=D.baseLanes|y,d.memoizedState=null):C=y,Yt(Sc,li),li|=C;return xn(l,d,R,y),d.child}function yk(l,d){var y=d.ref;(l===null&&y!==null||l!==null&&l.ref!==y)&&(d.flags|=512,d.flags|=2097152)}function R_(l,d,y,C,R){var D=$n(y)?Dl:cn.current;return D=pc(d,D),_c(d,R),y=w_(l,d,y,C,D,R),C=O_(),l!==null&&!Fn?(d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~R,Aa(l,d,R)):(ar&&C&&o_(d),d.flags|=1,xn(l,d,y,R),d.child)}function bk(l,d,y,C,R){if($n(y)){var D=!0;tv(d)}else D=!1;if(_c(d,R),d.stateNode===null)bv(l,d),sk(d,y,C),j_(d,y,C,R),C=!0;else if(l===null){var ee=d.stateNode,fe=d.memoizedProps;ee.props=fe;var me=ee.context,Ce=y.contextType;typeof Ce=="object"&&Ce!==null?Ce=Ri(Ce):(Ce=$n(y)?Dl:cn.current,Ce=pc(d,Ce));var Ie=y.getDerivedStateFromProps,$e=typeof Ie=="function"||typeof ee.getSnapshotBeforeUpdate=="function";$e||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(fe!==C||me!==Ce)&&lk(d,ee,C,Ce),js=!1;var Le=d.memoizedState;ee.state=Le,cv(d,C,ee,R),me=d.memoizedState,fe!==C||Le!==me||Dn.current||js?(typeof Ie=="function"&&(T_(d,y,Ie,C),me=d.memoizedState),(fe=js||ak(d,y,fe,C,Le,me,Ce))?($e||typeof ee.UNSAFE_componentWillMount!="function"&&typeof ee.componentWillMount!="function"||(typeof ee.componentWillMount=="function"&&ee.componentWillMount(),typeof ee.UNSAFE_componentWillMount=="function"&&ee.UNSAFE_componentWillMount()),typeof ee.componentDidMount=="function"&&(d.flags|=4194308)):(typeof ee.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=C,d.memoizedState=me),ee.props=C,ee.state=me,ee.context=Ce,C=fe):(typeof ee.componentDidMount=="function"&&(d.flags|=4194308),C=!1)}else{ee=d.stateNode,LA(l,d),fe=d.memoizedProps,Ce=d.type===d.elementType?fe:lo(d.type,fe),ee.props=Ce,$e=d.pendingProps,Le=ee.context,me=y.contextType,typeof me=="object"&&me!==null?me=Ri(me):(me=$n(y)?Dl:cn.current,me=pc(d,me));var Qe=y.getDerivedStateFromProps;(Ie=typeof Qe=="function"||typeof ee.getSnapshotBeforeUpdate=="function")||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(fe!==$e||Le!==me)&&lk(d,ee,C,me),js=!1,Le=d.memoizedState,ee.state=Le,cv(d,C,ee,R);var tt=d.memoizedState;fe!==$e||Le!==tt||Dn.current||js?(typeof Qe=="function"&&(T_(d,y,Qe,C),tt=d.memoizedState),(Ce=js||ak(d,y,Ce,C,Le,tt,me)||!1)?(Ie||typeof ee.UNSAFE_componentWillUpdate!="function"&&typeof ee.componentWillUpdate!="function"||(typeof ee.componentWillUpdate=="function"&&ee.componentWillUpdate(C,tt,me),typeof ee.UNSAFE_componentWillUpdate=="function"&&ee.UNSAFE_componentWillUpdate(C,tt,me)),typeof ee.componentDidUpdate=="function"&&(d.flags|=4),typeof ee.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof ee.componentDidUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=1024),d.memoizedProps=C,d.memoizedState=tt),ee.props=C,ee.state=tt,ee.context=me,C=Ce):(typeof ee.componentDidUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=1024),C=!1)}return N_(l,d,y,C,D,R)}function N_(l,d,y,C,R,D){yk(l,d);var ee=(d.flags&128)!==0;if(!C&&!ee)return R&&SA(d,y,!1),Aa(l,d,D);C=d.stateNode,zW.current=d;var fe=ee&&typeof y.getDerivedStateFromError!="function"?null:C.render();return d.flags|=1,l!==null&&ee?(d.child=yc(d,l.child,null,D),d.child=yc(d,null,fe,D)):xn(l,d,fe,D),d.memoizedState=C.state,R&&SA(d,y,!0),d.child}function _k(l){var d=l.stateNode;d.pendingContext?wA(l,d.pendingContext,d.pendingContext!==d.context):d.context&&wA(l,d.context,!1),v_(l,d.containerInfo)}function xk(l,d,y,C,R){return gc(),u_(R),d.flags|=256,xn(l,d,y,C),d.child}var M_={dehydrated:null,treeContext:null,retryLane:0};function L_(l){return{baseLanes:l,cachePool:null,transitions:null}}function wk(l,d,y){var C=d.pendingProps,R=yr.current,D=!1,ee=(d.flags&128)!==0,fe;if((fe=ee)||(fe=l!==null&&l.memoizedState===null?!1:(R&2)!==0),fe?(D=!0,d.flags&=-129):(l===null||l.memoizedState!==null)&&(R|=1),Yt(yr,R&1),l===null)return l_(d),l=d.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?(d.mode&1?l.data==="$!"?d.lanes=8:d.lanes=1073741824:d.lanes=1,null):(ee=C.children,l=C.fallback,D?(C=d.mode,D=d.child,ee={mode:"hidden",children:ee},!(C&1)&&D!==null?(D.childLanes=0,D.pendingProps=ee):D=kv(ee,C,0,null),l=Gl(l,C,y,null),D.return=d,l.return=d,D.sibling=l,d.child=D,d.child.memoizedState=L_(y),d.memoizedState=M_,l):I_(d,ee));if(R=l.memoizedState,R!==null&&(fe=R.dehydrated,fe!==null))return VW(l,d,ee,C,fe,R,y);if(D){D=C.fallback,ee=d.mode,R=l.child,fe=R.sibling;var me={mode:"hidden",children:C.children};return!(ee&1)&&d.child!==R?(C=d.child,C.childLanes=0,C.pendingProps=me,d.deletions=null):(C=Is(R,me),C.subtreeFlags=R.subtreeFlags&14680064),fe!==null?D=Is(fe,D):(D=Gl(D,ee,y,null),D.flags|=2),D.return=d,C.return=d,C.sibling=D,d.child=C,C=D,D=d.child,ee=l.child.memoizedState,ee=ee===null?L_(y):{baseLanes:ee.baseLanes|y,cachePool:null,transitions:ee.transitions},D.memoizedState=ee,D.childLanes=l.childLanes&~y,d.memoizedState=M_,C}return D=l.child,l=D.sibling,C=Is(D,{mode:"visible",children:C.children}),!(d.mode&1)&&(C.lanes=y),C.return=d,C.sibling=null,l!==null&&(y=d.deletions,y===null?(d.deletions=[l],d.flags|=16):y.push(l)),d.child=C,d.memoizedState=null,C}function I_(l,d){return d=kv({mode:"visible",children:d},l.mode,0,null),d.return=l,l.child=d}function yv(l,d,y,C){return C!==null&&u_(C),yc(d,l.child,null,y),l=I_(d,d.pendingProps.children),l.flags|=2,d.memoizedState=null,l}function VW(l,d,y,C,R,D,ee){if(y)return d.flags&256?(d.flags&=-257,C=A_(Error(r(422))),yv(l,d,ee,C)):d.memoizedState!==null?(d.child=l.child,d.flags|=128,null):(D=C.fallback,R=d.mode,C=kv({mode:"visible",children:C.children},R,0,null),D=Gl(D,R,ee,null),D.flags|=2,C.return=d,D.return=d,C.sibling=D,d.child=C,d.mode&1&&yc(d,l.child,null,ee),d.child.memoizedState=L_(ee),d.memoizedState=M_,D);if(!(d.mode&1))return yv(l,d,ee,null);if(R.data==="$!"){if(C=R.nextSibling&&R.nextSibling.dataset,C)var fe=C.dgst;return C=fe,D=Error(r(419)),C=A_(D,C,void 0),yv(l,d,ee,C)}if(fe=(ee&l.childLanes)!==0,Fn||fe){if(C=Hr,C!==null){switch(ee&-ee){case 4:R=2;break;case 16:R=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:R=32;break;case 536870912:R=268435456;break;default:R=0}R=R&(C.suspendedLanes|ee)?0:R,R!==0&&R!==D.retryLane&&(D.retryLane=R,Ta(l,R),fo(C,l,R,-1))}return Q_(),C=A_(Error(r(421))),yv(l,d,ee,C)}return R.data==="$?"?(d.flags|=128,d.child=l.child,d=rq.bind(null,l),R._reactRetry=d,null):(l=D.treeContext,si=Uo(R.nextSibling),ai=d,ar=!0,so=null,l!==null&&(Ai[ki++]=Ca,Ai[ki++]=Ea,Ai[ki++]=$l,Ca=l.id,Ea=l.overflow,$l=d),d=I_(d,C.children),d.flags|=4096,d)}function Ok(l,d,y){l.lanes|=d;var C=l.alternate;C!==null&&(C.lanes|=d),h_(l.return,d,y)}function D_(l,d,y,C,R){var D=l.memoizedState;D===null?l.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:C,tail:y,tailMode:R}:(D.isBackwards=d,D.rendering=null,D.renderingStartTime=0,D.last=C,D.tail=y,D.tailMode=R)}function Sk(l,d,y){var C=d.pendingProps,R=C.revealOrder,D=C.tail;if(xn(l,d,C.children,y),C=yr.current,C&2)C=C&1|2,d.flags|=128;else{if(l!==null&&l.flags&128)e:for(l=d.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Ok(l,y,d);else if(l.tag===19)Ok(l,y,d);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===d)break e;for(;l.sibling===null;){if(l.return===null||l.return===d)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}C&=1}if(Yt(yr,C),!(d.mode&1))d.memoizedState=null;else switch(R){case"forwards":for(y=d.child,R=null;y!==null;)l=y.alternate,l!==null&&fv(l)===null&&(R=y),y=y.sibling;y=R,y===null?(R=d.child,d.child=null):(R=y.sibling,y.sibling=null),D_(d,!1,R,y,D);break;case"backwards":for(y=null,R=d.child,d.child=null;R!==null;){if(l=R.alternate,l!==null&&fv(l)===null){d.child=R;break}l=R.sibling,R.sibling=y,y=R,R=l}D_(d,!0,y,null,D);break;case"together":D_(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function bv(l,d){!(d.mode&1)&&l!==null&&(l.alternate=null,d.alternate=null,d.flags|=2)}function Aa(l,d,y){if(l!==null&&(d.dependencies=l.dependencies),Vl|=d.lanes,!(y&d.childLanes))return null;if(l!==null&&d.child!==l.child)throw Error(r(153));if(d.child!==null){for(l=d.child,y=Is(l,l.pendingProps),d.child=y,y.return=d;l.sibling!==null;)l=l.sibling,y=y.sibling=Is(l,l.pendingProps),y.return=d;y.sibling=null}return d.child}function WW(l,d,y){switch(d.tag){case 3:_k(d),gc();break;case 5:$A(d);break;case 1:$n(d.type)&&tv(d);break;case 4:v_(d,d.stateNode.containerInfo);break;case 10:var C=d.type._context,R=d.memoizedProps.value;Yt(sv,C._currentValue),C._currentValue=R;break;case 13:if(C=d.memoizedState,C!==null)return C.dehydrated!==null?(Yt(yr,yr.current&1),d.flags|=128,null):y&d.child.childLanes?wk(l,d,y):(Yt(yr,yr.current&1),l=Aa(l,d,y),l!==null?l.sibling:null);Yt(yr,yr.current&1);break;case 19:if(C=(y&d.childLanes)!==0,l.flags&128){if(C)return Sk(l,d,y);d.flags|=128}if(R=d.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),Yt(yr,yr.current),C)break;return null;case 22:case 23:return d.lanes=0,gk(l,d,y)}return Aa(l,d,y)}var Pk,$_,Ck,Ek;Pk=function(l,d){for(var y=d.child;y!==null;){if(y.tag===5||y.tag===6)l.appendChild(y.stateNode);else if(y.tag!==4&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===d)break;for(;y.sibling===null;){if(y.return===null||y.return===d)return;y=y.return}y.sibling.return=y.return,y=y.sibling}},$_=function(){},Ck=function(l,d,y,C){var R=l.memoizedProps;if(R!==C){l=d.stateNode,Ul(zo.current);var D=null;switch(y){case"input":R=Se(l,R),C=Se(l,C),D=[];break;case"select":R=G({},R,{value:void 0}),C=G({},C,{value:void 0}),D=[];break;case"textarea":R=qe(l,R),C=qe(l,C),D=[];break;default:typeof R.onClick!="function"&&typeof C.onClick=="function"&&(l.onclick=Re)}Lr(y,C);var ee;y=null;for(Ce in R)if(!C.hasOwnProperty(Ce)&&R.hasOwnProperty(Ce)&&R[Ce]!=null)if(Ce==="style"){var fe=R[Ce];for(ee in fe)fe.hasOwnProperty(ee)&&(y||(y={}),y[ee]="")}else Ce!=="dangerouslySetInnerHTML"&&Ce!=="children"&&Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&Ce!=="autoFocus"&&(i.hasOwnProperty(Ce)?D||(D=[]):(D=D||[]).push(Ce,null));for(Ce in C){var me=C[Ce];if(fe=R!=null?R[Ce]:void 0,C.hasOwnProperty(Ce)&&me!==fe&&(me!=null||fe!=null))if(Ce==="style")if(fe){for(ee in fe)!fe.hasOwnProperty(ee)||me&&me.hasOwnProperty(ee)||(y||(y={}),y[ee]="");for(ee in me)me.hasOwnProperty(ee)&&fe[ee]!==me[ee]&&(y||(y={}),y[ee]=me[ee])}else y||(D||(D=[]),D.push(Ce,y)),y=me;else Ce==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,fe=fe?fe.__html:void 0,me!=null&&fe!==me&&(D=D||[]).push(Ce,me)):Ce==="children"?typeof me!="string"&&typeof me!="number"||(D=D||[]).push(Ce,""+me):Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ce)?(me!=null&&Ce==="onScroll"&&Ut("scroll",l),D||fe===me||(D=[])):(D=D||[]).push(Ce,me))}y&&(D=D||[]).push("style",y);var Ce=D;(d.updateQueue=Ce)&&(d.flags|=4)}},Ek=function(l,d,y,C){y!==C&&(d.flags|=4)};function Zd(l,d){if(!ar)switch(l.tailMode){case"hidden":d=l.tail;for(var y=null;d!==null;)d.alternate!==null&&(y=d),d=d.sibling;y===null?l.tail=null:y.sibling=null;break;case"collapsed":y=l.tail;for(var C=null;y!==null;)y.alternate!==null&&(C=y),y=y.sibling;C===null?d||l.tail===null?l.tail=null:l.tail.sibling=null:C.sibling=null}}function dn(l){var d=l.alternate!==null&&l.alternate.child===l.child,y=0,C=0;if(d)for(var R=l.child;R!==null;)y|=R.lanes|R.childLanes,C|=R.subtreeFlags&14680064,C|=R.flags&14680064,R.return=l,R=R.sibling;else for(R=l.child;R!==null;)y|=R.lanes|R.childLanes,C|=R.subtreeFlags,C|=R.flags,R.return=l,R=R.sibling;return l.subtreeFlags|=C,l.childLanes=y,d}function qW(l,d,y){var C=d.pendingProps;switch(a_(d),d.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dn(d),null;case 1:return $n(d.type)&&ev(),dn(d),null;case 3:return C=d.stateNode,xc(),tr(Dn),tr(cn),b_(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(l===null||l.child===null)&&(ov(d)?d.flags|=4:l===null||l.memoizedState.isDehydrated&&!(d.flags&256)||(d.flags|=1024,so!==null&&(Y_(so),so=null))),$_(l,d),dn(d),null;case 5:g_(d);var R=Ul(qd.current);if(y=d.type,l!==null&&d.stateNode!=null)Ck(l,d,y,C,R),l.ref!==d.ref&&(d.flags|=512,d.flags|=2097152);else{if(!C){if(d.stateNode===null)throw Error(r(166));return dn(d),null}if(l=Ul(zo.current),ov(d)){C=d.stateNode,y=d.type;var D=d.memoizedProps;switch(C[ji]=d,C[Ss]=D,l=(d.mode&1)!==0,y){case"dialog":Ut("cancel",C),Ut("close",C);break;case"iframe":case"object":case"embed":Ut("load",C);break;case"video":case"audio":for(R=0;R<xs.length;R++)Ut(xs[R],C);break;case"source":Ut("error",C);break;case"img":case"image":case"link":Ut("error",C),Ut("load",C);break;case"details":Ut("toggle",C);break;case"input":Fe(C,D),Ut("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!D.multiple},Ut("invalid",C);break;case"textarea":ye(C,D),Ut("invalid",C)}Lr(y,D),R=null;for(var ee in D)if(D.hasOwnProperty(ee)){var fe=D[ee];ee==="children"?typeof fe=="string"?C.textContent!==fe&&(D.suppressHydrationWarning!==!0&&Pe(C.textContent,fe,l),R=["children",fe]):typeof fe=="number"&&C.textContent!==""+fe&&(D.suppressHydrationWarning!==!0&&Pe(C.textContent,fe,l),R=["children",""+fe]):i.hasOwnProperty(ee)&&fe!=null&&ee==="onScroll"&&Ut("scroll",C)}switch(y){case"input":ue(C),je(C,D,!0);break;case"textarea":ue(C),Ae(C);break;case"select":case"option":break;default:typeof D.onClick=="function"&&(C.onclick=Re)}C=R,d.updateQueue=C,C!==null&&(d.flags|=4)}else{ee=R.nodeType===9?R:R.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=ke(y)),l==="http://www.w3.org/1999/xhtml"?y==="script"?(l=ee.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof C.is=="string"?l=ee.createElement(y,{is:C.is}):(l=ee.createElement(y),y==="select"&&(ee=l,C.multiple?ee.multiple=!0:C.size&&(ee.size=C.size))):l=ee.createElementNS(l,y),l[ji]=d,l[Ss]=C,Pk(l,d,!1,!1),d.stateNode=l;e:{switch(ee=Nn(y,C),y){case"dialog":Ut("cancel",l),Ut("close",l),R=C;break;case"iframe":case"object":case"embed":Ut("load",l),R=C;break;case"video":case"audio":for(R=0;R<xs.length;R++)Ut(xs[R],l);R=C;break;case"source":Ut("error",l),R=C;break;case"img":case"image":case"link":Ut("error",l),Ut("load",l),R=C;break;case"details":Ut("toggle",l),R=C;break;case"input":Fe(l,C),R=Se(l,C),Ut("invalid",l);break;case"option":R=C;break;case"select":l._wrapperState={wasMultiple:!!C.multiple},R=G({},C,{value:void 0}),Ut("invalid",l);break;case"textarea":ye(l,C),R=qe(l,C),Ut("invalid",l);break;default:R=C}Lr(y,R),fe=R;for(D in fe)if(fe.hasOwnProperty(D)){var me=fe[D];D==="style"?Gt(l,me):D==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,me!=null&&Xe(l,me)):D==="children"?typeof me=="string"?(y!=="textarea"||me!=="")&&bt(l,me):typeof me=="number"&&bt(l,""+me):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(i.hasOwnProperty(D)?me!=null&&D==="onScroll"&&Ut("scroll",l):me!=null&&E(l,D,me,ee))}switch(y){case"input":ue(l),je(l,C,!1);break;case"textarea":ue(l),Ae(l);break;case"option":C.value!=null&&l.setAttribute("value",""+M(C.value));break;case"select":l.multiple=!!C.multiple,D=C.value,D!=null?Be(l,!!C.multiple,D,!1):C.defaultValue!=null&&Be(l,!!C.multiple,C.defaultValue,!0);break;default:typeof R.onClick=="function"&&(l.onclick=Re)}switch(y){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(d.flags|=4)}d.ref!==null&&(d.flags|=512,d.flags|=2097152)}return dn(d),null;case 6:if(l&&d.stateNode!=null)Ek(l,d,l.memoizedProps,C);else{if(typeof C!="string"&&d.stateNode===null)throw Error(r(166));if(y=Ul(qd.current),Ul(zo.current),ov(d)){if(C=d.stateNode,y=d.memoizedProps,C[ji]=d,(D=C.nodeValue!==y)&&(l=ai,l!==null))switch(l.tag){case 3:Pe(C.nodeValue,y,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Pe(C.nodeValue,y,(l.mode&1)!==0)}D&&(d.flags|=4)}else C=(y.nodeType===9?y:y.ownerDocument).createTextNode(C),C[ji]=d,d.stateNode=C}return dn(d),null;case 13:if(tr(yr),C=d.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(ar&&si!==null&&d.mode&1&&!(d.flags&128))AA(),gc(),d.flags|=98560,D=!1;else if(D=ov(d),C!==null&&C.dehydrated!==null){if(l===null){if(!D)throw Error(r(318));if(D=d.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(r(317));D[ji]=d}else gc(),!(d.flags&128)&&(d.memoizedState=null),d.flags|=4;dn(d),D=!1}else so!==null&&(Y_(so),so=null),D=!0;if(!D)return d.flags&65536?d:null}return d.flags&128?(d.lanes=y,d):(C=C!==null,C!==(l!==null&&l.memoizedState!==null)&&C&&(d.child.flags|=8192,d.mode&1&&(l===null||yr.current&1?Br===0&&(Br=3):Q_())),d.updateQueue!==null&&(d.flags|=4),dn(d),null);case 4:return xc(),$_(l,d),l===null&&ws(d.stateNode.containerInfo),dn(d),null;case 10:return d_(d.type._context),dn(d),null;case 17:return $n(d.type)&&ev(),dn(d),null;case 19:if(tr(yr),D=d.memoizedState,D===null)return dn(d),null;if(C=(d.flags&128)!==0,ee=D.rendering,ee===null)if(C)Zd(D,!1);else{if(Br!==0||l!==null&&l.flags&128)for(l=d.child;l!==null;){if(ee=fv(l),ee!==null){for(d.flags|=128,Zd(D,!1),C=ee.updateQueue,C!==null&&(d.updateQueue=C,d.flags|=4),d.subtreeFlags=0,C=y,y=d.child;y!==null;)D=y,l=C,D.flags&=14680066,ee=D.alternate,ee===null?(D.childLanes=0,D.lanes=l,D.child=null,D.subtreeFlags=0,D.memoizedProps=null,D.memoizedState=null,D.updateQueue=null,D.dependencies=null,D.stateNode=null):(D.childLanes=ee.childLanes,D.lanes=ee.lanes,D.child=ee.child,D.subtreeFlags=0,D.deletions=null,D.memoizedProps=ee.memoizedProps,D.memoizedState=ee.memoizedState,D.updateQueue=ee.updateQueue,D.type=ee.type,l=ee.dependencies,D.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),y=y.sibling;return Yt(yr,yr.current&1|2),d.child}l=l.sibling}D.tail!==null&&vr()>Pc&&(d.flags|=128,C=!0,Zd(D,!1),d.lanes=4194304)}else{if(!C)if(l=fv(ee),l!==null){if(d.flags|=128,C=!0,y=l.updateQueue,y!==null&&(d.updateQueue=y,d.flags|=4),Zd(D,!0),D.tail===null&&D.tailMode==="hidden"&&!ee.alternate&&!ar)return dn(d),null}else 2*vr()-D.renderingStartTime>Pc&&y!==1073741824&&(d.flags|=128,C=!0,Zd(D,!1),d.lanes=4194304);D.isBackwards?(ee.sibling=d.child,d.child=ee):(y=D.last,y!==null?y.sibling=ee:d.child=ee,D.last=ee)}return D.tail!==null?(d=D.tail,D.rendering=d,D.tail=d.sibling,D.renderingStartTime=vr(),d.sibling=null,y=yr.current,Yt(yr,C?y&1|2:y&1),d):(dn(d),null);case 22:case 23:return X_(),C=d.memoizedState!==null,l!==null&&l.memoizedState!==null!==C&&(d.flags|=8192),C&&d.mode&1?li&1073741824&&(dn(d),d.subtreeFlags&6&&(d.flags|=8192)):dn(d),null;case 24:return null;case 25:return null}throw Error(r(156,d.tag))}function HW(l,d){switch(a_(d),d.tag){case 1:return $n(d.type)&&ev(),l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 3:return xc(),tr(Dn),tr(cn),b_(),l=d.flags,l&65536&&!(l&128)?(d.flags=l&-65537|128,d):null;case 5:return g_(d),null;case 13:if(tr(yr),l=d.memoizedState,l!==null&&l.dehydrated!==null){if(d.alternate===null)throw Error(r(340));gc()}return l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 19:return tr(yr),null;case 4:return xc(),null;case 10:return d_(d.type._context),null;case 22:case 23:return X_(),null;case 24:return null;default:return null}}var _v=!1,hn=!1,GW=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Oc(l,d){var y=l.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(C){wr(l,d,C)}else y.current=null}function F_(l,d,y){try{y()}catch(C){wr(l,d,C)}}var Tk=!1;function KW(l,d){if(Ze=jl,l=Nd(),Md(l)){if("selectionStart"in l)var y={start:l.selectionStart,end:l.selectionEnd};else e:{y=(y=l.ownerDocument)&&y.defaultView||window;var C=y.getSelection&&y.getSelection();if(C&&C.rangeCount!==0){y=C.anchorNode;var R=C.anchorOffset,D=C.focusNode;C=C.focusOffset;try{y.nodeType,D.nodeType}catch{y=null;break e}var ee=0,fe=-1,me=-1,Ce=0,Ie=0,$e=l,Le=null;t:for(;;){for(var Qe;$e!==y||R!==0&&$e.nodeType!==3||(fe=ee+R),$e!==D||C!==0&&$e.nodeType!==3||(me=ee+C),$e.nodeType===3&&(ee+=$e.nodeValue.length),(Qe=$e.firstChild)!==null;)Le=$e,$e=Qe;for(;;){if($e===l)break t;if(Le===y&&++Ce===R&&(fe=ee),Le===D&&++Ie===C&&(me=ee),(Qe=$e.nextSibling)!==null)break;$e=Le,Le=$e.parentNode}$e=Qe}y=fe===-1||me===-1?null:{start:fe,end:me}}else y=null}y=y||{start:0,end:0}}else y=null;for(st={focusedElem:l,selectionRange:y},jl=!1,Je=d;Je!==null;)if(d=Je,l=d.child,(d.subtreeFlags&1028)!==0&&l!==null)l.return=d,Je=l;else for(;Je!==null;){d=Je;try{var tt=d.alternate;if(d.flags&1024)switch(d.tag){case 0:case 11:case 15:break;case 1:if(tt!==null){var rt=tt.memoizedProps,Cr=tt.memoizedState,xe=d.stateNode,ve=xe.getSnapshotBeforeUpdate(d.elementType===d.type?rt:lo(d.type,rt),Cr);xe.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var Oe=d.stateNode.containerInfo;Oe.nodeType===1?Oe.textContent="":Oe.nodeType===9&&Oe.documentElement&&Oe.removeChild(Oe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(We){wr(d,d.return,We)}if(l=d.sibling,l!==null){l.return=d.return,Je=l;break}Je=d.return}return tt=Tk,Tk=!1,tt}function Xd(l,d,y){var C=d.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var R=C=C.next;do{if((R.tag&l)===l){var D=R.destroy;R.destroy=void 0,D!==void 0&&F_(d,y,D)}R=R.next}while(R!==C)}}function xv(l,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var y=d=d.next;do{if((y.tag&l)===l){var C=y.create;y.destroy=C()}y=y.next}while(y!==d)}}function B_(l){var d=l.ref;if(d!==null){var y=l.stateNode;switch(l.tag){case 5:l=y;break;default:l=y}typeof d=="function"?d(l):d.current=l}}function jk(l){var d=l.alternate;d!==null&&(l.alternate=null,jk(d)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(d=l.stateNode,d!==null&&(delete d[ji],delete d[Ss],delete d[Ps],delete d[t_],delete d[r_])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function Ak(l){return l.tag===5||l.tag===3||l.tag===4}function kk(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||Ak(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function U_(l,d,y){var C=l.tag;if(C===5||C===6)l=l.stateNode,d?y.nodeType===8?y.parentNode.insertBefore(l,d):y.insertBefore(l,d):(y.nodeType===8?(d=y.parentNode,d.insertBefore(l,y)):(d=y,d.appendChild(l)),y=y._reactRootContainer,y!=null||d.onclick!==null||(d.onclick=Re));else if(C!==4&&(l=l.child,l!==null))for(U_(l,d,y),l=l.sibling;l!==null;)U_(l,d,y),l=l.sibling}function z_(l,d,y){var C=l.tag;if(C===5||C===6)l=l.stateNode,d?y.insertBefore(l,d):y.appendChild(l);else if(C!==4&&(l=l.child,l!==null))for(z_(l,d,y),l=l.sibling;l!==null;)z_(l,d,y),l=l.sibling}var tn=null,uo=!1;function ks(l,d,y){for(y=y.child;y!==null;)Rk(l,d,y),y=y.sibling}function Rk(l,d,y){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(Ol,y)}catch{}switch(y.tag){case 5:hn||Oc(y,d);case 6:var C=tn,R=uo;tn=null,ks(l,d,y),tn=C,uo=R,tn!==null&&(uo?(l=tn,y=y.stateNode,l.nodeType===8?l.parentNode.removeChild(y):l.removeChild(y)):tn.removeChild(y.stateNode));break;case 18:tn!==null&&(uo?(l=tn,y=y.stateNode,l.nodeType===8?Ud(l.parentNode,y):l.nodeType===1&&Ud(l,y),ti(l)):Ud(tn,y.stateNode));break;case 4:C=tn,R=uo,tn=y.stateNode.containerInfo,uo=!0,ks(l,d,y),tn=C,uo=R;break;case 0:case 11:case 14:case 15:if(!hn&&(C=y.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){R=C=C.next;do{var D=R,ee=D.destroy;D=D.tag,ee!==void 0&&(D&2||D&4)&&F_(y,d,ee),R=R.next}while(R!==C)}ks(l,d,y);break;case 1:if(!hn&&(Oc(y,d),C=y.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=y.memoizedProps,C.state=y.memoizedState,C.componentWillUnmount()}catch(fe){wr(y,d,fe)}ks(l,d,y);break;case 21:ks(l,d,y);break;case 22:y.mode&1?(hn=(C=hn)||y.memoizedState!==null,ks(l,d,y),hn=C):ks(l,d,y);break;default:ks(l,d,y)}}function Nk(l){var d=l.updateQueue;if(d!==null){l.updateQueue=null;var y=l.stateNode;y===null&&(y=l.stateNode=new GW),d.forEach(function(C){var R=nq.bind(null,l,C);y.has(C)||(y.add(C),C.then(R,R))})}}function co(l,d){var y=d.deletions;if(y!==null)for(var C=0;C<y.length;C++){var R=y[C];try{var D=l,ee=d,fe=ee;e:for(;fe!==null;){switch(fe.tag){case 5:tn=fe.stateNode,uo=!1;break e;case 3:tn=fe.stateNode.containerInfo,uo=!0;break e;case 4:tn=fe.stateNode.containerInfo,uo=!0;break e}fe=fe.return}if(tn===null)throw Error(r(160));Rk(D,ee,R),tn=null,uo=!1;var me=R.alternate;me!==null&&(me.return=null),R.return=null}catch(Ce){wr(R,d,Ce)}}if(d.subtreeFlags&12854)for(d=d.child;d!==null;)Mk(d,l),d=d.sibling}function Mk(l,d){var y=l.alternate,C=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(co(d,l),Wo(l),C&4){try{Xd(3,l,l.return),xv(3,l)}catch(rt){wr(l,l.return,rt)}try{Xd(5,l,l.return)}catch(rt){wr(l,l.return,rt)}}break;case 1:co(d,l),Wo(l),C&512&&y!==null&&Oc(y,y.return);break;case 5:if(co(d,l),Wo(l),C&512&&y!==null&&Oc(y,y.return),l.flags&32){var R=l.stateNode;try{bt(R,"")}catch(rt){wr(l,l.return,rt)}}if(C&4&&(R=l.stateNode,R!=null)){var D=l.memoizedProps,ee=y!==null?y.memoizedProps:D,fe=l.type,me=l.updateQueue;if(l.updateQueue=null,me!==null)try{fe==="input"&&D.type==="radio"&&D.name!=null&&ge(R,D),Nn(fe,ee);var Ce=Nn(fe,D);for(ee=0;ee<me.length;ee+=2){var Ie=me[ee],$e=me[ee+1];Ie==="style"?Gt(R,$e):Ie==="dangerouslySetInnerHTML"?Xe(R,$e):Ie==="children"?bt(R,$e):E(R,Ie,$e,Ce)}switch(fe){case"input":Ee(R,D);break;case"textarea":we(R,D);break;case"select":var Le=R._wrapperState.wasMultiple;R._wrapperState.wasMultiple=!!D.multiple;var Qe=D.value;Qe!=null?Be(R,!!D.multiple,Qe,!1):Le!==!!D.multiple&&(D.defaultValue!=null?Be(R,!!D.multiple,D.defaultValue,!0):Be(R,!!D.multiple,D.multiple?[]:"",!1))}R[Ss]=D}catch(rt){wr(l,l.return,rt)}}break;case 6:if(co(d,l),Wo(l),C&4){if(l.stateNode===null)throw Error(r(162));R=l.stateNode,D=l.memoizedProps;try{R.nodeValue=D}catch(rt){wr(l,l.return,rt)}}break;case 3:if(co(d,l),Wo(l),C&4&&y!==null&&y.memoizedState.isDehydrated)try{ti(d.containerInfo)}catch(rt){wr(l,l.return,rt)}break;case 4:co(d,l),Wo(l);break;case 13:co(d,l),Wo(l),R=l.child,R.flags&8192&&(D=R.memoizedState!==null,R.stateNode.isHidden=D,!D||R.alternate!==null&&R.alternate.memoizedState!==null||(q_=vr())),C&4&&Nk(l);break;case 22:if(Ie=y!==null&&y.memoizedState!==null,l.mode&1?(hn=(Ce=hn)||Ie,co(d,l),hn=Ce):co(d,l),Wo(l),C&8192){if(Ce=l.memoizedState!==null,(l.stateNode.isHidden=Ce)&&!Ie&&l.mode&1)for(Je=l,Ie=l.child;Ie!==null;){for($e=Je=Ie;Je!==null;){switch(Le=Je,Qe=Le.child,Le.tag){case 0:case 11:case 14:case 15:Xd(4,Le,Le.return);break;case 1:Oc(Le,Le.return);var tt=Le.stateNode;if(typeof tt.componentWillUnmount=="function"){C=Le,y=Le.return;try{d=C,tt.props=d.memoizedProps,tt.state=d.memoizedState,tt.componentWillUnmount()}catch(rt){wr(C,y,rt)}}break;case 5:Oc(Le,Le.return);break;case 22:if(Le.memoizedState!==null){Dk($e);continue}}Qe!==null?(Qe.return=Le,Je=Qe):Dk($e)}Ie=Ie.sibling}e:for(Ie=null,$e=l;;){if($e.tag===5){if(Ie===null){Ie=$e;try{R=$e.stateNode,Ce?(D=R.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none"):(fe=$e.stateNode,me=$e.memoizedProps.style,ee=me!=null&&me.hasOwnProperty("display")?me.display:null,fe.style.display=Jt("display",ee))}catch(rt){wr(l,l.return,rt)}}}else if($e.tag===6){if(Ie===null)try{$e.stateNode.nodeValue=Ce?"":$e.memoizedProps}catch(rt){wr(l,l.return,rt)}}else if(($e.tag!==22&&$e.tag!==23||$e.memoizedState===null||$e===l)&&$e.child!==null){$e.child.return=$e,$e=$e.child;continue}if($e===l)break e;for(;$e.sibling===null;){if($e.return===null||$e.return===l)break e;Ie===$e&&(Ie=null),$e=$e.return}Ie===$e&&(Ie=null),$e.sibling.return=$e.return,$e=$e.sibling}}break;case 19:co(d,l),Wo(l),C&4&&Nk(l);break;case 21:break;default:co(d,l),Wo(l)}}function Wo(l){var d=l.flags;if(d&2){try{e:{for(var y=l.return;y!==null;){if(Ak(y)){var C=y;break e}y=y.return}throw Error(r(160))}switch(C.tag){case 5:var R=C.stateNode;C.flags&32&&(bt(R,""),C.flags&=-33);var D=kk(l);z_(l,D,R);break;case 3:case 4:var ee=C.stateNode.containerInfo,fe=kk(l);U_(l,fe,ee);break;default:throw Error(r(161))}}catch(me){wr(l,l.return,me)}l.flags&=-3}d&4096&&(l.flags&=-4097)}function YW(l,d,y){Je=l,Lk(l)}function Lk(l,d,y){for(var C=(l.mode&1)!==0;Je!==null;){var R=Je,D=R.child;if(R.tag===22&&C){var ee=R.memoizedState!==null||_v;if(!ee){var fe=R.alternate,me=fe!==null&&fe.memoizedState!==null||hn;fe=_v;var Ce=hn;if(_v=ee,(hn=me)&&!Ce)for(Je=R;Je!==null;)ee=Je,me=ee.child,ee.tag===22&&ee.memoizedState!==null?$k(R):me!==null?(me.return=ee,Je=me):$k(R);for(;D!==null;)Je=D,Lk(D),D=D.sibling;Je=R,_v=fe,hn=Ce}Ik(l)}else R.subtreeFlags&8772&&D!==null?(D.return=R,Je=D):Ik(l)}}function Ik(l){for(;Je!==null;){var d=Je;if(d.flags&8772){var y=d.alternate;try{if(d.flags&8772)switch(d.tag){case 0:case 11:case 15:hn||xv(5,d);break;case 1:var C=d.stateNode;if(d.flags&4&&!hn)if(y===null)C.componentDidMount();else{var R=d.elementType===d.type?y.memoizedProps:lo(d.type,y.memoizedProps);C.componentDidUpdate(R,y.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var D=d.updateQueue;D!==null&&DA(d,D,C);break;case 3:var ee=d.updateQueue;if(ee!==null){if(y=null,d.child!==null)switch(d.child.tag){case 5:y=d.child.stateNode;break;case 1:y=d.child.stateNode}DA(d,ee,y)}break;case 5:var fe=d.stateNode;if(y===null&&d.flags&4){y=fe;var me=d.memoizedProps;switch(d.type){case"button":case"input":case"select":case"textarea":me.autoFocus&&y.focus();break;case"img":me.src&&(y.src=me.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(d.memoizedState===null){var Ce=d.alternate;if(Ce!==null){var Ie=Ce.memoizedState;if(Ie!==null){var $e=Ie.dehydrated;$e!==null&&ti($e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}hn||d.flags&512&&B_(d)}catch(Le){wr(d,d.return,Le)}}if(d===l){Je=null;break}if(y=d.sibling,y!==null){y.return=d.return,Je=y;break}Je=d.return}}function Dk(l){for(;Je!==null;){var d=Je;if(d===l){Je=null;break}var y=d.sibling;if(y!==null){y.return=d.return,Je=y;break}Je=d.return}}function $k(l){for(;Je!==null;){var d=Je;try{switch(d.tag){case 0:case 11:case 15:var y=d.return;try{xv(4,d)}catch(me){wr(d,y,me)}break;case 1:var C=d.stateNode;if(typeof C.componentDidMount=="function"){var R=d.return;try{C.componentDidMount()}catch(me){wr(d,R,me)}}var D=d.return;try{B_(d)}catch(me){wr(d,D,me)}break;case 5:var ee=d.return;try{B_(d)}catch(me){wr(d,ee,me)}}}catch(me){wr(d,d.return,me)}if(d===l){Je=null;break}var fe=d.sibling;if(fe!==null){fe.return=d.return,Je=fe;break}Je=d.return}}var ZW=Math.ceil,wv=T.ReactCurrentDispatcher,V_=T.ReactCurrentOwner,Mi=T.ReactCurrentBatchConfig,Mt=0,Hr=null,Rr=null,rn=0,li=0,Sc=Cs(0),Br=0,Qd=null,Vl=0,Ov=0,W_=0,Jd=null,Bn=null,q_=0,Pc=1/0,ka=null,Sv=!1,H_=null,Rs=null,Pv=!1,Ns=null,Cv=0,eh=0,G_=null,Ev=-1,Tv=0;function wn(){return Mt&6?vr():Ev!==-1?Ev:Ev=vr()}function Ms(l){return l.mode&1?Mt&2&&rn!==0?rn&-rn:NW.transition!==null?(Tv===0&&(Tv=km()),Tv):(l=Rt,l!==0||(l=window.event,l=l===void 0?16:Tt(l.type)),l):1}function fo(l,d,y,C){if(50<eh)throw eh=0,G_=null,Error(r(185));Jn(l,y,C),(!(Mt&2)||l!==Hr)&&(l===Hr&&(!(Mt&2)&&(Ov|=y),Br===4&&Ls(l,rn)),Un(l,C),y===1&&Mt===0&&!(d.mode&1)&&(Pc=vr()+500,rv&&Ts()))}function Un(l,d){var y=l.callbackNode;qu(l,d);var C=Kt(l,l===Hr?rn:0);if(C===0)y!==null&&md(y),l.callbackNode=null,l.callbackPriority=0;else if(d=C&-C,l.callbackPriority!==d){if(y!=null&&md(y),d===1)l.tag===0?RW(Bk.bind(null,l)):PA(Bk.bind(null,l)),un(function(){!(Mt&6)&&Ts()}),y=null;else{switch(us(C)){case 1:y=vd;break;case 4:y=Am;break;case 16:y=Vu;break;case 536870912:y=os;break;default:y=Vu}y=Kk(y,Fk.bind(null,l))}l.callbackPriority=d,l.callbackNode=y}}function Fk(l,d){if(Ev=-1,Tv=0,Mt&6)throw Error(r(327));var y=l.callbackNode;if(Cc()&&l.callbackNode!==y)return null;var C=Kt(l,l===Hr?rn:0);if(C===0)return null;if(C&30||C&l.expiredLanes||d)d=jv(l,C);else{d=C;var R=Mt;Mt|=2;var D=zk();(Hr!==l||rn!==d)&&(ka=null,Pc=vr()+500,ql(l,d));do try{JW();break}catch(fe){Uk(l,fe)}while(!0);f_(),wv.current=D,Mt=R,Rr!==null?d=0:(Hr=null,rn=0,d=Br)}if(d!==0){if(d===2&&(R=sn(l),R!==0&&(C=R,d=K_(l,R))),d===1)throw y=Qd,ql(l,0),Ls(l,C),Un(l,vr()),y;if(d===6)Ls(l,C);else{if(R=l.current.alternate,!(C&30)&&!XW(R)&&(d=jv(l,C),d===2&&(D=sn(l),D!==0&&(C=D,d=K_(l,D))),d===1))throw y=Qd,ql(l,0),Ls(l,C),Un(l,vr()),y;switch(l.finishedWork=R,l.finishedLanes=C,d){case 0:case 1:throw Error(r(345));case 2:Hl(l,Bn,ka);break;case 3:if(Ls(l,C),(C&130023424)===C&&(d=q_+500-vr(),10<d)){if(Kt(l,0)!==0)break;if(R=l.suspendedLanes,(R&C)!==C){wn(),l.pingedLanes|=l.suspendedLanes&R;break}l.timeoutHandle=$r(Hl.bind(null,l,Bn,ka),d);break}Hl(l,Bn,ka);break;case 4:if(Ls(l,C),(C&4194240)===C)break;for(d=l.eventTimes,R=-1;0<C;){var ee=31-wt(C);D=1<<ee,ee=d[ee],ee>R&&(R=ee),C&=~D}if(C=R,C=vr()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*ZW(C/1960))-C,10<C){l.timeoutHandle=$r(Hl.bind(null,l,Bn,ka),C);break}Hl(l,Bn,ka);break;case 5:Hl(l,Bn,ka);break;default:throw Error(r(329))}}}return Un(l,vr()),l.callbackNode===y?Fk.bind(null,l):null}function K_(l,d){var y=Jd;return l.current.memoizedState.isDehydrated&&(ql(l,d).flags|=256),l=jv(l,d),l!==2&&(d=Bn,Bn=y,d!==null&&Y_(d)),l}function Y_(l){Bn===null?Bn=l:Bn.push.apply(Bn,l)}function XW(l){for(var d=l;;){if(d.flags&16384){var y=d.updateQueue;if(y!==null&&(y=y.stores,y!==null))for(var C=0;C<y.length;C++){var R=y[C],D=R.getSnapshot;R=R.value;try{if(!ii(D(),R))return!1}catch{return!1}}}if(y=d.child,d.subtreeFlags&16384&&y!==null)y.return=d,d=y;else{if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function Ls(l,d){for(d&=~W_,d&=~Ov,l.suspendedLanes|=d,l.pingedLanes&=~d,l=l.expirationTimes;0<d;){var y=31-wt(d),C=1<<y;l[y]=-1,d&=~C}}function Bk(l){if(Mt&6)throw Error(r(327));Cc();var d=Kt(l,0);if(!(d&1))return Un(l,vr()),null;var y=jv(l,d);if(l.tag!==0&&y===2){var C=sn(l);C!==0&&(d=C,y=K_(l,C))}if(y===1)throw y=Qd,ql(l,0),Ls(l,d),Un(l,vr()),y;if(y===6)throw Error(r(345));return l.finishedWork=l.current.alternate,l.finishedLanes=d,Hl(l,Bn,ka),Un(l,vr()),null}function Z_(l,d){var y=Mt;Mt|=1;try{return l(d)}finally{Mt=y,Mt===0&&(Pc=vr()+500,rv&&Ts())}}function Wl(l){Ns!==null&&Ns.tag===0&&!(Mt&6)&&Cc();var d=Mt;Mt|=1;var y=Mi.transition,C=Rt;try{if(Mi.transition=null,Rt=1,l)return l()}finally{Rt=C,Mi.transition=y,Mt=d,!(Mt&6)&&Ts()}}function X_(){li=Sc.current,tr(Sc)}function ql(l,d){l.finishedWork=null,l.finishedLanes=0;var y=l.timeoutHandle;if(y!==-1&&(l.timeoutHandle=-1,kr(y)),Rr!==null)for(y=Rr.return;y!==null;){var C=y;switch(a_(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&ev();break;case 3:xc(),tr(Dn),tr(cn),b_();break;case 5:g_(C);break;case 4:xc();break;case 13:tr(yr);break;case 19:tr(yr);break;case 10:d_(C.type._context);break;case 22:case 23:X_()}y=y.return}if(Hr=l,Rr=l=Is(l.current,null),rn=li=d,Br=0,Qd=null,W_=Ov=Vl=0,Bn=Jd=null,Bl!==null){for(d=0;d<Bl.length;d++)if(y=Bl[d],C=y.interleaved,C!==null){y.interleaved=null;var R=C.next,D=y.pending;if(D!==null){var ee=D.next;D.next=R,C.next=ee}y.pending=C}Bl=null}return l}function Uk(l,d){do{var y=Rr;try{if(f_(),dv.current=vv,hv){for(var C=br.memoizedState;C!==null;){var R=C.queue;R!==null&&(R.pending=null),C=C.next}hv=!1}if(zl=0,qr=Fr=br=null,Hd=!1,Gd=0,V_.current=null,y===null||y.return===null){Br=1,Qd=d,Rr=null;break}e:{var D=l,ee=y.return,fe=y,me=d;if(d=rn,fe.flags|=32768,me!==null&&typeof me=="object"&&typeof me.then=="function"){var Ce=me,Ie=fe,$e=Ie.tag;if(!(Ie.mode&1)&&($e===0||$e===11||$e===15)){var Le=Ie.alternate;Le?(Ie.updateQueue=Le.updateQueue,Ie.memoizedState=Le.memoizedState,Ie.lanes=Le.lanes):(Ie.updateQueue=null,Ie.memoizedState=null)}var Qe=dk(ee);if(Qe!==null){Qe.flags&=-257,hk(Qe,ee,fe,D,d),Qe.mode&1&&fk(D,Ce,d),d=Qe,me=Ce;var tt=d.updateQueue;if(tt===null){var rt=new Set;rt.add(me),d.updateQueue=rt}else tt.add(me);break e}else{if(!(d&1)){fk(D,Ce,d),Q_();break e}me=Error(r(426))}}else if(ar&&fe.mode&1){var Cr=dk(ee);if(Cr!==null){!(Cr.flags&65536)&&(Cr.flags|=256),hk(Cr,ee,fe,D,d),u_(wc(me,fe));break e}}D=me=wc(me,fe),Br!==4&&(Br=2),Jd===null?Jd=[D]:Jd.push(D),D=ee;do{switch(D.tag){case 3:D.flags|=65536,d&=-d,D.lanes|=d;var xe=uk(D,me,d);IA(D,xe);break e;case 1:fe=me;var ve=D.type,Oe=D.stateNode;if(!(D.flags&128)&&(typeof ve.getDerivedStateFromError=="function"||Oe!==null&&typeof Oe.componentDidCatch=="function"&&(Rs===null||!Rs.has(Oe)))){D.flags|=65536,d&=-d,D.lanes|=d;var We=ck(D,fe,d);IA(D,We);break e}}D=D.return}while(D!==null)}Wk(y)}catch(ot){d=ot,Rr===y&&y!==null&&(Rr=y=y.return);continue}break}while(!0)}function zk(){var l=wv.current;return wv.current=vv,l===null?vv:l}function Q_(){(Br===0||Br===3||Br===2)&&(Br=4),Hr===null||!(Vl&268435455)&&!(Ov&268435455)||Ls(Hr,rn)}function jv(l,d){var y=Mt;Mt|=2;var C=zk();(Hr!==l||rn!==d)&&(ka=null,ql(l,d));do try{QW();break}catch(R){Uk(l,R)}while(!0);if(f_(),Mt=y,wv.current=C,Rr!==null)throw Error(r(261));return Hr=null,rn=0,Br}function QW(){for(;Rr!==null;)Vk(Rr)}function JW(){for(;Rr!==null&&!Fb();)Vk(Rr)}function Vk(l){var d=Gk(l.alternate,l,li);l.memoizedProps=l.pendingProps,d===null?Wk(l):Rr=d,V_.current=null}function Wk(l){var d=l;do{var y=d.alternate;if(l=d.return,d.flags&32768){if(y=HW(y,d),y!==null){y.flags&=32767,Rr=y;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Br=6,Rr=null;return}}else if(y=qW(y,d,li),y!==null){Rr=y;return}if(d=d.sibling,d!==null){Rr=d;return}Rr=d=l}while(d!==null);Br===0&&(Br=5)}function Hl(l,d,y){var C=Rt,R=Mi.transition;try{Mi.transition=null,Rt=1,eq(l,d,y,C)}finally{Mi.transition=R,Rt=C}return null}function eq(l,d,y,C){do Cc();while(Ns!==null);if(Mt&6)throw Error(r(327));y=l.finishedWork;var R=l.finishedLanes;if(y===null)return null;if(l.finishedWork=null,l.finishedLanes=0,y===l.current)throw Error(r(177));l.callbackNode=null,l.callbackPriority=0;var D=y.lanes|y.childLanes;if(xr(l,D),l===Hr&&(Rr=Hr=null,rn=0),!(y.subtreeFlags&2064)&&!(y.flags&2064)||Pv||(Pv=!0,Kk(Vu,function(){return Cc(),null})),D=(y.flags&15990)!==0,y.subtreeFlags&15990||D){D=Mi.transition,Mi.transition=null;var ee=Rt;Rt=1;var fe=Mt;Mt|=4,V_.current=null,KW(l,y),Mk(y,l),Ei(st),jl=!!Ze,st=Ze=null,l.current=y,YW(y),zu(),Mt=fe,Rt=ee,Mi.transition=D}else l.current=y;if(Pv&&(Pv=!1,Ns=l,Cv=R),D=l.pendingLanes,D===0&&(Rs=null),Sl(y.stateNode),Un(l,vr()),d!==null)for(C=l.onRecoverableError,y=0;y<d.length;y++)R=d[y],C(R.value,{componentStack:R.stack,digest:R.digest});if(Sv)throw Sv=!1,l=H_,H_=null,l;return Cv&1&&l.tag!==0&&Cc(),D=l.pendingLanes,D&1?l===G_?eh++:(eh=0,G_=l):eh=0,Ts(),null}function Cc(){if(Ns!==null){var l=us(Cv),d=Mi.transition,y=Rt;try{if(Mi.transition=null,Rt=16>l?16:l,Ns===null)var C=!1;else{if(l=Ns,Ns=null,Cv=0,Mt&6)throw Error(r(331));var R=Mt;for(Mt|=4,Je=l.current;Je!==null;){var D=Je,ee=D.child;if(Je.flags&16){var fe=D.deletions;if(fe!==null){for(var me=0;me<fe.length;me++){var Ce=fe[me];for(Je=Ce;Je!==null;){var Ie=Je;switch(Ie.tag){case 0:case 11:case 15:Xd(8,Ie,D)}var $e=Ie.child;if($e!==null)$e.return=Ie,Je=$e;else for(;Je!==null;){Ie=Je;var Le=Ie.sibling,Qe=Ie.return;if(jk(Ie),Ie===Ce){Je=null;break}if(Le!==null){Le.return=Qe,Je=Le;break}Je=Qe}}}var tt=D.alternate;if(tt!==null){var rt=tt.child;if(rt!==null){tt.child=null;do{var Cr=rt.sibling;rt.sibling=null,rt=Cr}while(rt!==null)}}Je=D}}if(D.subtreeFlags&2064&&ee!==null)ee.return=D,Je=ee;else e:for(;Je!==null;){if(D=Je,D.flags&2048)switch(D.tag){case 0:case 11:case 15:Xd(9,D,D.return)}var xe=D.sibling;if(xe!==null){xe.return=D.return,Je=xe;break e}Je=D.return}}var ve=l.current;for(Je=ve;Je!==null;){ee=Je;var Oe=ee.child;if(ee.subtreeFlags&2064&&Oe!==null)Oe.return=ee,Je=Oe;else e:for(ee=ve;Je!==null;){if(fe=Je,fe.flags&2048)try{switch(fe.tag){case 0:case 11:case 15:xv(9,fe)}}catch(ot){wr(fe,fe.return,ot)}if(fe===ee){Je=null;break e}var We=fe.sibling;if(We!==null){We.return=fe.return,Je=We;break e}Je=fe.return}}if(Mt=R,Ts(),Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(Ol,l)}catch{}C=!0}return C}finally{Rt=y,Mi.transition=d}}return!1}function qk(l,d,y){d=wc(y,d),d=uk(l,d,1),l=As(l,d,1),d=wn(),l!==null&&(Jn(l,1,d),Un(l,d))}function wr(l,d,y){if(l.tag===3)qk(l,l,y);else for(;d!==null;){if(d.tag===3){qk(d,l,y);break}else if(d.tag===1){var C=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(Rs===null||!Rs.has(C))){l=wc(y,l),l=ck(d,l,1),d=As(d,l,1),l=wn(),d!==null&&(Jn(d,1,l),Un(d,l));break}}d=d.return}}function tq(l,d,y){var C=l.pingCache;C!==null&&C.delete(d),d=wn(),l.pingedLanes|=l.suspendedLanes&y,Hr===l&&(rn&y)===y&&(Br===4||Br===3&&(rn&130023424)===rn&&500>vr()-q_?ql(l,0):W_|=y),Un(l,d)}function Hk(l,d){d===0&&(l.mode&1?(d=ss,ss<<=1,!(ss&130023424)&&(ss=4194304)):d=1);var y=wn();l=Ta(l,d),l!==null&&(Jn(l,d,y),Un(l,y))}function rq(l){var d=l.memoizedState,y=0;d!==null&&(y=d.retryLane),Hk(l,y)}function nq(l,d){var y=0;switch(l.tag){case 13:var C=l.stateNode,R=l.memoizedState;R!==null&&(y=R.retryLane);break;case 19:C=l.stateNode;break;default:throw Error(r(314))}C!==null&&C.delete(d),Hk(l,y)}var Gk;Gk=function(l,d,y){if(l!==null)if(l.memoizedProps!==d.pendingProps||Dn.current)Fn=!0;else{if(!(l.lanes&y)&&!(d.flags&128))return Fn=!1,WW(l,d,y);Fn=!!(l.flags&131072)}else Fn=!1,ar&&d.flags&1048576&&CA(d,iv,d.index);switch(d.lanes=0,d.tag){case 2:var C=d.type;bv(l,d),l=d.pendingProps;var R=pc(d,cn.current);_c(d,y),R=w_(null,d,C,l,R,y);var D=O_();return d.flags|=1,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,$n(C)?(D=!0,tv(d)):D=!1,d.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,m_(d),R.updater=gv,d.stateNode=R,R._reactInternals=d,j_(d,C,l,y),d=N_(null,d,C,!0,D,y)):(d.tag=0,ar&&D&&o_(d),xn(null,d,R,y),d=d.child),d;case 16:C=d.elementType;e:{switch(bv(l,d),l=d.pendingProps,R=C._init,C=R(C._payload),d.type=C,R=d.tag=oq(C),l=lo(C,l),R){case 0:d=R_(null,d,C,l,y);break e;case 1:d=bk(null,d,C,l,y);break e;case 11:d=pk(null,d,C,l,y);break e;case 14:d=mk(null,d,C,lo(C.type,l),y);break e}throw Error(r(306,C,""))}return d;case 0:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:lo(C,R),R_(l,d,C,R,y);case 1:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:lo(C,R),bk(l,d,C,R,y);case 3:e:{if(_k(d),l===null)throw Error(r(387));C=d.pendingProps,D=d.memoizedState,R=D.element,LA(l,d),cv(d,C,null,y);var ee=d.memoizedState;if(C=ee.element,D.isDehydrated)if(D={element:C,isDehydrated:!1,cache:ee.cache,pendingSuspenseBoundaries:ee.pendingSuspenseBoundaries,transitions:ee.transitions},d.updateQueue.baseState=D,d.memoizedState=D,d.flags&256){R=wc(Error(r(423)),d),d=xk(l,d,C,y,R);break e}else if(C!==R){R=wc(Error(r(424)),d),d=xk(l,d,C,y,R);break e}else for(si=Uo(d.stateNode.containerInfo.firstChild),ai=d,ar=!0,so=null,y=NA(d,null,C,y),d.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(gc(),C===R){d=Aa(l,d,y);break e}xn(l,d,C,y)}d=d.child}return d;case 5:return $A(d),l===null&&l_(d),C=d.type,R=d.pendingProps,D=l!==null?l.memoizedProps:null,ee=R.children,St(C,R)?ee=null:D!==null&&St(C,D)&&(d.flags|=32),yk(l,d),xn(l,d,ee,y),d.child;case 6:return l===null&&l_(d),null;case 13:return wk(l,d,y);case 4:return v_(d,d.stateNode.containerInfo),C=d.pendingProps,l===null?d.child=yc(d,null,C,y):xn(l,d,C,y),d.child;case 11:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:lo(C,R),pk(l,d,C,R,y);case 7:return xn(l,d,d.pendingProps,y),d.child;case 8:return xn(l,d,d.pendingProps.children,y),d.child;case 12:return xn(l,d,d.pendingProps.children,y),d.child;case 10:e:{if(C=d.type._context,R=d.pendingProps,D=d.memoizedProps,ee=R.value,Yt(sv,C._currentValue),C._currentValue=ee,D!==null)if(ii(D.value,ee)){if(D.children===R.children&&!Dn.current){d=Aa(l,d,y);break e}}else for(D=d.child,D!==null&&(D.return=d);D!==null;){var fe=D.dependencies;if(fe!==null){ee=D.child;for(var me=fe.firstContext;me!==null;){if(me.context===C){if(D.tag===1){me=ja(-1,y&-y),me.tag=2;var Ce=D.updateQueue;if(Ce!==null){Ce=Ce.shared;var Ie=Ce.pending;Ie===null?me.next=me:(me.next=Ie.next,Ie.next=me),Ce.pending=me}}D.lanes|=y,me=D.alternate,me!==null&&(me.lanes|=y),h_(D.return,y,d),fe.lanes|=y;break}me=me.next}}else if(D.tag===10)ee=D.type===d.type?null:D.child;else if(D.tag===18){if(ee=D.return,ee===null)throw Error(r(341));ee.lanes|=y,fe=ee.alternate,fe!==null&&(fe.lanes|=y),h_(ee,y,d),ee=D.sibling}else ee=D.child;if(ee!==null)ee.return=D;else for(ee=D;ee!==null;){if(ee===d){ee=null;break}if(D=ee.sibling,D!==null){D.return=ee.return,ee=D;break}ee=ee.return}D=ee}xn(l,d,R.children,y),d=d.child}return d;case 9:return R=d.type,C=d.pendingProps.children,_c(d,y),R=Ri(R),C=C(R),d.flags|=1,xn(l,d,C,y),d.child;case 14:return C=d.type,R=lo(C,d.pendingProps),R=lo(C.type,R),mk(l,d,C,R,y);case 15:return vk(l,d,d.type,d.pendingProps,y);case 17:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:lo(C,R),bv(l,d),d.tag=1,$n(C)?(l=!0,tv(d)):l=!1,_c(d,y),sk(d,C,R),j_(d,C,R,y),N_(null,d,C,!0,l,y);case 19:return Sk(l,d,y);case 22:return gk(l,d,y)}throw Error(r(156,d.tag))};function Kk(l,d){return jm(l,d)}function iq(l,d,y,C){this.tag=l,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Li(l,d,y,C){return new iq(l,d,y,C)}function J_(l){return l=l.prototype,!(!l||!l.isReactComponent)}function oq(l){if(typeof l=="function")return J_(l)?1:0;if(l!=null){if(l=l.$$typeof,l===q)return 11;if(l===ne)return 14}return 2}function Is(l,d){var y=l.alternate;return y===null?(y=Li(l.tag,d,l.key,l.mode),y.elementType=l.elementType,y.type=l.type,y.stateNode=l.stateNode,y.alternate=l,l.alternate=y):(y.pendingProps=d,y.type=l.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=l.flags&14680064,y.childLanes=l.childLanes,y.lanes=l.lanes,y.child=l.child,y.memoizedProps=l.memoizedProps,y.memoizedState=l.memoizedState,y.updateQueue=l.updateQueue,d=l.dependencies,y.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},y.sibling=l.sibling,y.index=l.index,y.ref=l.ref,y}function Av(l,d,y,C,R,D){var ee=2;if(C=l,typeof l=="function")J_(l)&&(ee=1);else if(typeof l=="string")ee=5;else e:switch(l){case N:return Gl(y.children,R,D,d);case F:ee=8,R|=8;break;case V:return l=Li(12,y,d,R|2),l.elementType=V,l.lanes=D,l;case J:return l=Li(13,y,d,R),l.elementType=J,l.lanes=D,l;case Q:return l=Li(19,y,d,R),l.elementType=Q,l.lanes=D,l;case se:return kv(y,R,D,d);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:ee=10;break e;case W:ee=9;break e;case q:ee=11;break e;case ne:ee=14;break e;case ae:ee=16,C=null;break e}throw Error(r(130,l==null?l:typeof l,""))}return d=Li(ee,y,d,R),d.elementType=l,d.type=C,d.lanes=D,d}function Gl(l,d,y,C){return l=Li(7,l,C,d),l.lanes=y,l}function kv(l,d,y,C){return l=Li(22,l,C,d),l.elementType=se,l.lanes=y,l.stateNode={isHidden:!1},l}function e1(l,d,y){return l=Li(6,l,null,d),l.lanes=y,l}function t1(l,d,y){return d=Li(4,l.children!==null?l.children:[],l.key,d),d.lanes=y,d.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},d}function aq(l,d,y,C,R){this.tag=d,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ls(0),this.expirationTimes=ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.identifierPrefix=C,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function r1(l,d,y,C,R,D,ee,fe,me){return l=new aq(l,d,y,fe,me),d===1?(d=1,D===!0&&(d|=8)):d=0,D=Li(3,null,null,d),l.current=D,D.stateNode=l,D.memoizedState={element:C,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},m_(D),l}function sq(l,d,y){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:C==null?null:""+C,children:l,containerInfo:d,implementation:y}}function Yk(l){if(!l)return Es;l=l._reactInternals;e:{if(No(l)!==l||l.tag!==1)throw Error(r(170));var d=l;do{switch(d.tag){case 3:d=d.stateNode.context;break e;case 1:if($n(d.type)){d=d.stateNode.__reactInternalMemoizedMergedChildContext;break e}}d=d.return}while(d!==null);throw Error(r(171))}if(l.tag===1){var y=l.type;if($n(y))return OA(l,y,d)}return d}function Zk(l,d,y,C,R,D,ee,fe,me){return l=r1(y,C,!0,l,R,D,ee,fe,me),l.context=Yk(null),y=l.current,C=wn(),R=Ms(y),D=ja(C,R),D.callback=d??null,As(y,D,R),l.current.lanes=R,Jn(l,R,C),Un(l,C),l}function Rv(l,d,y,C){var R=d.current,D=wn(),ee=Ms(R);return y=Yk(y),d.context===null?d.context=y:d.pendingContext=y,d=ja(D,ee),d.payload={element:l},C=C===void 0?null:C,C!==null&&(d.callback=C),l=As(R,d,ee),l!==null&&(fo(l,R,ee,D),uv(l,R,ee)),ee}function Nv(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function Xk(l,d){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var y=l.retryLane;l.retryLane=y!==0&&y<d?y:d}}function n1(l,d){Xk(l,d),(l=l.alternate)&&Xk(l,d)}function lq(){return null}var Qk=typeof reportError=="function"?reportError:function(l){console.error(l)};function i1(l){this._internalRoot=l}Mv.prototype.render=i1.prototype.render=function(l){var d=this._internalRoot;if(d===null)throw Error(r(409));Rv(l,d,null,null)},Mv.prototype.unmount=i1.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var d=l.containerInfo;Wl(function(){Rv(null,l,null,null)}),d[Dt]=null}};function Mv(l){this._internalRoot=l}Mv.prototype.unstable_scheduleHydration=function(l){if(l){var d=Ku();l={blockedOn:null,target:l,priority:d};for(var y=0;y<Dr.length&&d!==0&&d<Dr[y].priority;y++);Dr.splice(y,0,l),y===0&&Yu(l)}};function o1(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Lv(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function Jk(){}function uq(l,d,y,C,R){if(R){if(typeof C=="function"){var D=C;C=function(){var Ce=Nv(ee);D.call(Ce)}}var ee=Zk(d,C,l,0,null,!1,!1,"",Jk);return l._reactRootContainer=ee,l[Dt]=ee.current,ws(l.nodeType===8?l.parentNode:l),Wl(),ee}for(;R=l.lastChild;)l.removeChild(R);if(typeof C=="function"){var fe=C;C=function(){var Ce=Nv(me);fe.call(Ce)}}var me=r1(l,0,!1,null,null,!1,!1,"",Jk);return l._reactRootContainer=me,l[Dt]=me.current,ws(l.nodeType===8?l.parentNode:l),Wl(function(){Rv(d,me,y,C)}),me}function Iv(l,d,y,C,R){var D=y._reactRootContainer;if(D){var ee=D;if(typeof R=="function"){var fe=R;R=function(){var me=Nv(ee);fe.call(me)}}Rv(d,ee,l,R)}else ee=uq(y,d,l,R,C);return Nv(ee)}Hu=function(l){switch(l.tag){case 3:var d=l.stateNode;if(d.current.memoizedState.isDehydrated){var y=gt(d.pendingLanes);y!==0&&(ro(d,y|1),Un(d,vr()),!(Mt&6)&&(Pc=vr()+500,Ts()))}break;case 13:Wl(function(){var C=Ta(l,1);if(C!==null){var R=wn();fo(C,l,1,R)}}),n1(l,1)}},ha=function(l){if(l.tag===13){var d=Ta(l,134217728);if(d!==null){var y=wn();fo(d,l,134217728,y)}n1(l,134217728)}},Gu=function(l){if(l.tag===13){var d=Ms(l),y=Ta(l,d);if(y!==null){var C=wn();fo(y,l,d,C)}n1(l,d)}},Ku=function(){return Rt},Pl=function(l,d){var y=Rt;try{return Rt=l,d()}finally{Rt=y}},Mn=function(l,d,y){switch(d){case"input":if(Ee(l,y),d=y.name,y.type==="radio"&&d!=null){for(y=l;y.parentNode;)y=y.parentNode;for(y=y.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),d=0;d<y.length;d++){var C=y[d];if(C!==l&&C.form===l.form){var R=dc(C);if(!R)throw Error(r(90));ie(C),Ee(C,R)}}}break;case"textarea":we(l,y);break;case"select":d=y.value,d!=null&&Be(l,!!y.multiple,d,!1)}},dr=Z_,or=Wl;var cq={usingClientEntryPoint:!1,Events:[Oa,Sa,dc,is,Ro,Z_]},th={findFiberByHostInstance:wa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fq={bundleType:th.bundleType,version:th.version,rendererPackageName:th.rendererPackageName,rendererConfig:th.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Em(l),l===null?null:l.stateNode},findFiberByHostInstance:th.findFiberByHostInstance||lq,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dv.isDisabled&&Dv.supportsFiber)try{Ol=Dv.inject(fq),Qn=Dv}catch{}}return zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cq,zn.createPortal=function(l,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o1(d))throw Error(r(200));return sq(l,d,null,y)},zn.createRoot=function(l,d){if(!o1(l))throw Error(r(299));var y=!1,C="",R=Qk;return d!=null&&(d.unstable_strictMode===!0&&(y=!0),d.identifierPrefix!==void 0&&(C=d.identifierPrefix),d.onRecoverableError!==void 0&&(R=d.onRecoverableError)),d=r1(l,1,!1,null,null,y,!1,C,R),l[Dt]=d.current,ws(l.nodeType===8?l.parentNode:l),new i1(d)},zn.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var d=l._reactInternals;if(d===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=Em(d),l=l===null?null:l.stateNode,l},zn.flushSync=function(l){return Wl(l)},zn.hydrate=function(l,d,y){if(!Lv(d))throw Error(r(200));return Iv(null,l,d,!0,y)},zn.hydrateRoot=function(l,d,y){if(!o1(l))throw Error(r(405));var C=y!=null&&y.hydratedSources||null,R=!1,D="",ee=Qk;if(y!=null&&(y.unstable_strictMode===!0&&(R=!0),y.identifierPrefix!==void 0&&(D=y.identifierPrefix),y.onRecoverableError!==void 0&&(ee=y.onRecoverableError)),d=Zk(d,null,l,1,y??null,R,!1,D,ee),l[Dt]=d.current,ws(l),C)for(l=0;l<C.length;l++)y=C[l],R=y._getVersion,R=R(y._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[y,R]:d.mutableSourceEagerHydrationData.push(y,R);return new Mv(d)},zn.render=function(l,d,y){if(!Lv(d))throw Error(r(200));return Iv(null,l,d,!1,y)},zn.unmountComponentAtNode=function(l){if(!Lv(l))throw Error(r(40));return l._reactRootContainer?(Wl(function(){Iv(null,null,l,!1,function(){l._reactRootContainer=null,l[Dt]=null})}),!0):!1},zn.unstable_batchedUpdates=Z_,zn.unstable_renderSubtreeIntoContainer=function(l,d,y,C){if(!Lv(y))throw Error(r(200));if(l==null||l._reactInternals===void 0)throw Error(r(38));return Iv(l,d,y,!1,C)},zn.version="18.3.1-next-f1338f8080-20240426",zn}var s3;function w8(){if(s3)return l1.exports;s3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),l1.exports=_q(),l1.exports}var l3;function xq(){if(l3)return Fv;l3=1;var e=w8();return Fv.createRoot=e.createRoot,Fv.hydrateRoot=e.hydrateRoot,Fv}var wq=xq(),I=S0();const Z=Nt(I);var f1={exports:{}},d1={};/**
|
||
* @license React
|
||
* use-sync-external-store-with-selector.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var u3;function Oq(){if(u3)return d1;u3=1;var e=S0();function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return d1.useSyncExternalStoreWithSelector=function(c,u,h,p,v){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=a(function(){function w(A){if(!O){if(O=!0,S=A,A=p(A),v!==void 0&&x.hasValue){var j=x.value;if(v(j,A))return E=j}return E=A}if(j=E,r(S,A))return j;var N=p(A);return v!==void 0&&v(j,N)?(S=A,j):(S=A,E=N)}var O=!1,S,E,T=h===void 0?null:h;return[function(){return w(u())},T===null?void 0:function(){return w(T())}]},[u,h,p,v]);var _=n(c,b[0],b[1]);return o(function(){x.hasValue=!0,x.value=_},[_]),s(_),_},d1}var c3;function Sq(){return c3||(c3=1,f1.exports=Oq()),f1.exports}Sq();var Pq=I.version.startsWith("19"),Cq=Symbol.for(Pq?"react.transitional.element":"react.element"),Eq=Symbol.for("react.portal"),Tq=Symbol.for("react.fragment"),jq=Symbol.for("react.strict_mode"),Aq=Symbol.for("react.profiler"),kq=Symbol.for("react.consumer"),Rq=Symbol.for("react.context"),O8=Symbol.for("react.forward_ref"),Nq=Symbol.for("react.suspense"),Mq=Symbol.for("react.suspense_list"),kE=Symbol.for("react.memo"),Lq=Symbol.for("react.lazy"),Iq=O8,Dq=kE;function $q(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case Cq:switch(e=e.type,e){case Tq:case Aq:case jq:case Nq:case Mq:return e;default:switch(e=e&&e.$$typeof,e){case Rq:case O8:case Lq:case kE:return e;case kq:return e;default:return t}}case Eq:return t}}}function Fq(e){return $q(e)===kE}function Bq(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,c,u,h,p,v;function b(S,E){return c=S,u=E,h=e(c,u),p=t(n,u),v=r(h,p,u),s=!0,v}function x(){return h=e(c,u),t.dependsOnOwnProps&&(p=t(n,u)),v=r(h,p,u),v}function _(){return e.dependsOnOwnProps&&(h=e(c,u)),t.dependsOnOwnProps&&(p=t(n,u)),v=r(h,p,u),v}function w(){const S=e(c,u),E=!a(S,h);return h=S,E&&(v=r(h,p,u)),v}function O(S,E){const T=!o(E,u),A=!i(S,c,E,u);return c=S,u=E,T&&A?x():T?_():A?w():v}return function(E,T){return s?O(E,T):b(E,T)}}function Uq(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const o=t(e,i),a=r(e,i),s=n(e,i);return Bq(o,a,s,e,i)}function zq(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...o)=>t(i(...o)))}return r}function QO(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function f3(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function S8(e,t){return function(n,{displayName:i}){const o=function(s,c){return o.dependsOnOwnProps?o.mapToProps(s,c):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,c){o.mapToProps=e,o.dependsOnOwnProps=f3(e);let u=o(s,c);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=f3(u),u=o(s,c)),u},o}}function RE(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function Vq(e){return e&&typeof e=="object"?QO(t=>zq(e,t)):e?typeof e=="function"?S8(e):RE(e,"mapDispatchToProps"):QO(t=>({dispatch:t}))}function Wq(e){return e?typeof e=="function"?S8(e):RE(e,"mapStateToProps"):QO(()=>({}))}function qq(e,t,r){return{...r,...e,...t}}function Hq(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let o=!1,a;return function(c,u,h){const p=e(c,u,h);return o?i(p,a)||(a=p):(o=!0,a=p),a}}}function Gq(e){return e?typeof e=="function"?Hq(e):RE(e,"mergeProps"):()=>qq}function Kq(e){e()}function Yq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Kq(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var d3={notify(){},get:()=>[]};function P8(e,t){let r,n=d3,i=0,o=!1;function a(_){h();const w=n.subscribe(_);let O=!1;return()=>{O||(O=!0,w(),p())}}function s(){n.notify()}function c(){x.onStateChange&&x.onStateChange()}function u(){return o}function h(){i++,r||(r=t?t.addNestedSub(c):e.subscribe(c),n=Yq())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=d3)}function v(){o||(o=!0,h())}function b(){o&&(o=!1,p())}const x={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:u,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>n};return x}var Zq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xq=Zq(),Qq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Jq=Qq(),eH=()=>Xq||Jq?I.useLayoutEffect:I.useEffect,Tg=eH();function h3(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function h1(e,t){if(h3(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!h3(e[r[i]],t[r[i]]))return!1;return!0}var tH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},rH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iH={[Iq]:nH,[Dq]:C8};function p3(e){return Fq(e)?C8:iH[e.$$typeof]||tH}var oH=Object.defineProperty,aH=Object.getOwnPropertyNames,m3=Object.getOwnPropertySymbols,sH=Object.getOwnPropertyDescriptor,lH=Object.getPrototypeOf,v3=Object.prototype;function JO(e,t){if(typeof t!="string"){if(v3){const o=lH(t);o&&o!==v3&&JO(e,o)}let r=aH(t);m3&&(r=r.concat(m3(t)));const n=p3(e),i=p3(t);for(let o=0;o<r.length;++o){const a=r[o];if(!rH[a]&&!(i&&i[a])&&!(n&&n[a])){const s=sH(t,a);try{oH(e,a,s)}catch{}}}}return e}var p1=Symbol.for("react-redux-context"),m1=typeof globalThis<"u"?globalThis:{};function uH(){if(!I.createContext)return{};const e=m1[p1]??(m1[p1]=new Map);let t=e.get(I.createContext);return t||(t=I.createContext(null),e.set(I.createContext,t)),t}var E8=uH(),cH=[null,null];function fH(e,t,r){Tg(()=>e(...t),r)}function dH(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function hH(e,t,r,n,i,o,a,s,c,u,h){if(!e)return()=>{};let p=!1,v=null;const b=()=>{if(p||!s.current)return;const _=t.getState();let w,O;try{w=n(_,i.current)}catch(S){O=S,v=S}O||(v=null),w===o.current?a.current||u():(o.current=w,c.current=w,a.current=!0,h())};return r.onStateChange=b,r.trySubscribe(),b(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,v)throw v}}function pH(e,t){return e===t}function mH(e,t,r,{pure:n,areStatesEqual:i=pH,areOwnPropsEqual:o=h1,areStatePropsEqual:a=h1,areMergedPropsEqual:s=h1,forwardRef:c=!1,context:u=E8}={}){const h=u,p=Wq(e),v=Vq(t),b=Gq(r),x=!!e;return w=>{const O=w.displayName||w.name||"Component",S=`Connect(${O})`,E={shouldHandleStateChanges:x,displayName:S,wrappedComponentName:O,WrappedComponent:w,initMapStateToProps:p,initMapDispatchToProps:v,initMergeProps:b,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function T(N){const[F,V,B]=I.useMemo(()=>{const{reactReduxForwardedRef:ie,...he}=N;return[N.context,ie,he]},[N]),W=I.useMemo(()=>{let ie=h;return F!=null&&F.Consumer,ie},[F,h]),q=I.useContext(W),J=!!N.store&&!!N.store.getState&&!!N.store.dispatch,Q=!!q&&!!q.store,ne=J?N.store:q.store,ae=Q?q.getServerState:ne.getState,se=I.useMemo(()=>Uq(ne.dispatch,E),[ne]),[oe,K]=I.useMemo(()=>{if(!x)return cH;const ie=P8(ne,J?void 0:q.subscription),he=ie.notifyNestedSubs.bind(ie);return[ie,he]},[ne,J,q]),G=I.useMemo(()=>J?q:{...q,subscription:oe},[J,q,oe]),z=I.useRef(void 0),re=I.useRef(B),X=I.useRef(void 0),le=I.useRef(!1),ce=I.useRef(!1),de=I.useRef(void 0);Tg(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const be=I.useMemo(()=>()=>X.current&&B===re.current?X.current:se(ne.getState(),B),[ne,B]),M=I.useMemo(()=>he=>oe?hH(x,ne,oe,se,re,z,le,ce,X,K,he):()=>{},[oe]);fH(dH,[re,z,le,B,X,K]);let $;try{$=I.useSyncExternalStore(M,be,ae?()=>se(ae(),B):be)}catch(ie){throw de.current&&(ie.message+=`
|
||
The error may be correlated with this previous error:
|
||
${de.current.stack}
|
||
|
||
`),ie}Tg(()=>{de.current=void 0,X.current=void 0,z.current=$});const Y=I.useMemo(()=>I.createElement(w,{...$,ref:V}),[V,w,$]);return I.useMemo(()=>x?I.createElement(W.Provider,{value:G},Y):Y,[W,Y,G])}const j=I.memo(T);if(j.WrappedComponent=w,j.displayName=T.displayName=S,c){const F=I.forwardRef(function(B,W){return I.createElement(j,{...B,reactReduxForwardedRef:W})});return F.displayName=S,F.WrappedComponent=w,JO(F,w)}return JO(j,w)}}var T8=mH;function vH(e){const{children:t,context:r,serverState:n,store:i}=e,o=I.useMemo(()=>{const c=P8(i);return{store:i,subscription:c,getServerState:n?()=>n:void 0}},[i,n]),a=I.useMemo(()=>i.getState(),[i]);Tg(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,a]);const s=r||E8;return I.createElement(s.Provider,{value:o},t)}var j8=vH,nh={},g3;function gH(){if(g3)return nh;g3=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.parse=a,nh.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,o=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function a(v,b){const x=new o,_=v.length;if(_<2)return x;const w=(b==null?void 0:b.decode)||h;let O=0;do{const S=v.indexOf("=",O);if(S===-1)break;const E=v.indexOf(";",O),T=E===-1?_:E;if(S>T){O=v.lastIndexOf(";",S-1)+1;continue}const A=s(v,O,S),j=c(v,S,A),N=v.slice(A,j);if(x[N]===void 0){let F=s(v,S+1,T),V=c(v,T,F);const B=w(v.slice(F,V));x[N]=B}O=T+1}while(O<_);return x}function s(v,b,x){do{const _=v.charCodeAt(b);if(_!==32&&_!==9)return b}while(++b<x);return x}function c(v,b,x){for(;b>x;){const _=v.charCodeAt(--b);if(_!==32&&_!==9)return b+1}return x}function u(v,b,x){const _=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const w=_(b);if(!t.test(w))throw new TypeError(`argument val is invalid: ${b}`);let O=v+"="+w;if(!x)return O;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);O+="; Max-Age="+x.maxAge}if(x.domain){if(!r.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);O+="; Domain="+x.domain}if(x.path){if(!n.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);O+="; Path="+x.path}if(x.expires){if(!p(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);O+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(O+="; HttpOnly"),x.secure&&(O+="; Secure"),x.partitioned&&(O+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return O}function h(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return i.call(v)==="[object Date]"}return nh}gH();/**
|
||
* react-router v7.1.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/var y3="popstate";function yH(e={}){function t(n,i){let{pathname:o,search:a,hash:s}=n.location;return eS("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Yh(i)}return _H(t,r,null,e)}function lr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bH(){return Math.random().toString(36).substring(2,10)}function b3(e,t){return{usr:e.state,key:e.key,idx:t}}function eS(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?qf(t):t,state:r,key:t&&t.key||n||bH()}}function Yh({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function qf(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function _H(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s="POP",c=null,u=h();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function h(){return(a.state||{idx:null}).idx}function p(){s="POP";let w=h(),O=w==null?null:w-u;u=w,c&&c({action:s,location:_.location,delta:O})}function v(w,O){s="PUSH";let S=eS(_.location,w,O);u=h()+1;let E=b3(S,u),T=_.createHref(S);try{a.pushState(E,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}o&&c&&c({action:s,location:_.location,delta:1})}function b(w,O){s="REPLACE";let S=eS(_.location,w,O);u=h();let E=b3(S,u),T=_.createHref(S);a.replaceState(E,"",T),o&&c&&c({action:s,location:_.location,delta:0})}function x(w){let O=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof w=="string"?w:Yh(w);return S=S.replace(/ $/,"%20"),lr(O,`No window.location.(origin|href) available to create URL for href: ${S}`),new URL(S,O)}let _={get action(){return s},get location(){return e(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(y3,p),c=w,()=>{i.removeEventListener(y3,p),c=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let O=x(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:b,go(w){return a.go(w)}};return _}function A8(e,t,r="/"){return xH(e,t,r,!1)}function xH(e,t,r,n){let i=typeof t=="string"?qf(t):t,o=rl(i.pathname||"/",r);if(o==null)return null;let a=k8(e);wH(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let u=NH(o);s=kH(a[c],u,n)}return s}function k8(e,t=[],r=[],n=""){let i=(o,a,s)=>{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(lr(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length));let u=Da([n,c.relativePath]),h=r.concat(c);o.children&&o.children.length>0&&(lr(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),k8(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:jH(u,o.index),routesMeta:h})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of R8(o.path))i(o,a,c)}),t}function R8(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=R8(n.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function wH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:AH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var OH=/^:[\w-]+$/,SH=3,PH=2,CH=1,EH=10,TH=-2,_3=e=>e==="*";function jH(e,t){let r=e.split("/"),n=r.length;return r.some(_3)&&(n+=TH),t&&(n+=PH),r.filter(i=>!_3(i)).reduce((i,o)=>i+(OH.test(o)?SH:o===""?CH:EH),n)}function AH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function kH(e,t,r=!1){let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s<n.length;++s){let c=n[s],u=s===n.length-1,h=o==="/"?t:t.slice(o.length)||"/",p=jg({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},h),v=c.route;if(!p&&u&&r&&!n[n.length-1].route.index&&(p=jg({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!p)return null;Object.assign(i,p.params),a.push({params:i,pathname:Da([o,p.pathname]),pathnameBase:DH(Da([o,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(o=Da([o,p.pathnameBase]))}return a}function jg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=RH(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((u,{paramName:h,isOptional:p},v)=>{if(h==="*"){let x=s[v]||"";a=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const b=s[v];return p&&!b?u[h]=void 0:u[h]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function RH(e,t=!1,r=!0){wo(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function NH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wo(!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 rl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function MH(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?qf(e):e;return{pathname:r?r.startsWith("/")?r:LH(r,t):t,search:$H(n),hash:FH(i)}}function LH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function v1(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function IH(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function NE(e){let t=IH(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ME(e,t,r,n=!1){let i;typeof e=="string"?i=qf(e):(i={...e},lr(!i.pathname||!i.pathname.includes("?"),v1("?","pathname","search",i)),lr(!i.pathname||!i.pathname.includes("#"),v1("#","pathname","hash",i)),lr(!i.search||!i.search.includes("#"),v1("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let p=t.length-1;if(!n&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let c=MH(i,s),u=a&&a!=="/"&&a.endsWith("/"),h=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}var Da=e=>e.join("/").replace(/\/\/+/g,"/"),DH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$H=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,FH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function BH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var N8=["POST","PUT","PATCH","DELETE"];new Set(N8);var UH=["GET",...N8];new Set(UH);var Hf=I.createContext(null);Hf.displayName="DataRouter";var P0=I.createContext(null);P0.displayName="DataRouterState";var M8=I.createContext({isTransitioning:!1});M8.displayName="ViewTransition";var zH=I.createContext(new Map);zH.displayName="Fetchers";var VH=I.createContext(null);VH.displayName="Await";var So=I.createContext(null);So.displayName="Navigation";var Gp=I.createContext(null);Gp.displayName="Location";var Po=I.createContext({outlet:null,matches:[],isDataRoute:!1});Po.displayName="Route";var LE=I.createContext(null);LE.displayName="RouteError";function WH(e,{relative:t}={}){lr(Nu(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=I.useContext(So),{hash:i,pathname:o,search:a}=Kp(e,{relative:t}),s=o;return r!=="/"&&(s=o==="/"?r:Da([r,o])),n.createHref({pathname:s,search:a,hash:i})}function Nu(){return I.useContext(Gp)!=null}function gn(){return lr(Nu(),"useLocation() may be used only in the context of a <Router> component."),I.useContext(Gp).location}var L8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function I8(e){I.useContext(So).static||I.useLayoutEffect(e)}function sa(){let{isDataRoute:e}=I.useContext(Po);return e?nG():qH()}function qH(){lr(Nu(),"useNavigate() may be used only in the context of a <Router> component.");let e=I.useContext(Hf),{basename:t,navigator:r}=I.useContext(So),{matches:n}=I.useContext(Po),{pathname:i}=gn(),o=JSON.stringify(NE(n)),a=I.useRef(!1);return I8(()=>{a.current=!0}),I.useCallback((c,u={})=>{if(wo(a.current,L8),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=ME(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Da([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,o,i,e])}I.createContext(null);function Gf(){let{matches:e}=I.useContext(Po),t=e[e.length-1];return t?t.params:{}}function Kp(e,{relative:t}={}){let{matches:r}=I.useContext(Po),{pathname:n}=gn(),i=JSON.stringify(NE(r));return I.useMemo(()=>ME(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function HH(e,t){return D8(e,t)}function D8(e,t,r,n){var O;lr(Nu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=I.useContext(So),{matches:o}=I.useContext(Po),a=o[o.length-1],s=a?a.params:{},c=a?a.pathname:"/",u=a?a.pathnameBase:"/",h=a&&a.route;{let S=h&&h.path||"";$8(c,!h||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let p=gn(),v;if(t){let S=typeof t=="string"?qf(t):t;lr(u==="/"||((O=S.pathname)==null?void 0:O.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${S.pathname}" was given in the \`location\` prop.`),v=S}else v=p;let b=v.pathname||"/",x=b;if(u!=="/"){let S=u.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let _=A8(e,{pathname:x});wo(h||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),wo(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=XH(_&&_.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:Da([u,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Da([u,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&w?I.createElement(Gp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},w):w}function GH(){let e=rG(),t=BH(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:o},"ErrorBoundary")," or"," ",I.createElement("code",{style:o},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),r?I.createElement("pre",{style:i},r):null,a)}var KH=I.createElement(GH,null),YH=class extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?I.createElement(Po.Provider,{value:this.props.routeContext},I.createElement(LE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ZH({routeContext:e,match:t,children:r}){let n=I.useContext(Hf);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(Po.Provider,{value:e},r)}function XH(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,o=r==null?void 0:r.errors;if(o!=null){let c=i.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);lr(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let a=!1,s=-1;if(r)for(let c=0;c<i.length;c++){let u=i[c];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(s=c),u.route.id){let{loaderData:h,errors:p}=r,v=u.route.loader&&!h.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||v){a=!0,s>=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((c,u,h)=>{let p,v=!1,b=null,x=null;r&&(p=o&&u.route.id?o[u.route.id]:void 0,b=u.route.errorElement||KH,a&&(s<0&&h===0?($8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):s===h&&(v=!0,x=u.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,h+1)),w=()=>{let O;return p?O=b:v?O=x:u.route.Component?O=I.createElement(u.route.Component,null):u.route.element?O=u.route.element:O=c,I.createElement(ZH,{match:u,routeContext:{outlet:c,matches:_,isDataRoute:r!=null},children:O})};return r&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?I.createElement(YH,{location:r.location,revalidation:r.revalidation,component:b,error:p,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}function IE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function QH(e){let t=I.useContext(Hf);return lr(t,IE(e)),t}function JH(e){let t=I.useContext(P0);return lr(t,IE(e)),t}function eG(e){let t=I.useContext(Po);return lr(t,IE(e)),t}function DE(e){let t=eG(e),r=t.matches[t.matches.length-1];return lr(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function tG(){return DE("useRouteId")}function rG(){var n;let e=I.useContext(LE),t=JH("useRouteError"),r=DE("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function nG(){let{router:e}=QH("useNavigate"),t=DE("useNavigate"),r=I.useRef(!1);return I8(()=>{r.current=!0}),I.useCallback(async(i,o={})=>{wo(r.current,L8),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var x3={};function $8(e,t,r){!t&&!x3[e]&&(x3[e]=!0,wo(!1,r))}I.memo(iG);function iG({routes:e,future:t,state:r}){return D8(e,void 0,r,t)}function $E({to:e,replace:t,state:r,relative:n}){lr(Nu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=I.useContext(So);wo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=I.useContext(Po),{pathname:a}=gn(),s=sa(),c=ME(e,NE(o),a,n==="path"),u=JSON.stringify(c);return I.useEffect(()=>{s(JSON.parse(u),{replace:t,state:r,relative:n})},[s,u,n,t,r]),null}function Pt(e){lr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function oG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:o=!1}){lr(!Nu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=I.useMemo(()=>({basename:a,navigator:i,static:o,future:{}}),[a,i,o]);typeof r=="string"&&(r=qf(r));let{pathname:c="/",search:u="",hash:h="",state:p=null,key:v="default"}=r,b=I.useMemo(()=>{let x=rl(c,a);return x==null?null:{location:{pathname:x,search:u,hash:h,state:p,key:v},navigationType:n}},[a,c,u,h,p,v,n]);return wo(b!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:I.createElement(So.Provider,{value:s},I.createElement(Gp.Provider,{children:t,value:b}))}function C0({children:e,location:t}){return HH(tS(e),t)}function tS(e,t=[]){let r=[];return I.Children.forEach(e,(n,i)=>{if(!I.isValidElement(n))return;let o=[...t,i];if(n.type===I.Fragment){r.push.apply(r,tS(n.props.children,o));return}lr(n.type===Pt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),lr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=tS(n.props.children,o)),r.push(a)}),r}var vg="get",gg="application/x-www-form-urlencoded";function E0(e){return e!=null&&typeof e.tagName=="string"}function aG(e){return E0(e)&&e.tagName.toLowerCase()==="button"}function sG(e){return E0(e)&&e.tagName.toLowerCase()==="form"}function lG(e){return E0(e)&&e.tagName.toLowerCase()==="input"}function uG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cG(e,t){return e.button===0&&(!t||t==="_self")&&!uG(e)}var Bv=null;function fG(){if(Bv===null)try{new FormData(document.createElement("form"),0),Bv=!1}catch{Bv=!0}return Bv}var dG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g1(e){return e!=null&&!dG.has(e)?(wo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gg}"`),null):e}function hG(e,t){let r,n,i,o,a;if(sG(e)){let s=e.getAttribute("action");n=s?rl(s,t):null,r=e.getAttribute("method")||vg,i=g1(e.getAttribute("enctype"))||gg,o=new FormData(e)}else if(aG(e)||lG(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||s.getAttribute("action");if(n=c?rl(c,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||vg,i=g1(e.getAttribute("formenctype"))||g1(s.getAttribute("enctype"))||gg,o=new FormData(s,e),!fG()){let{name:u,type:h,value:p}=e;if(h==="image"){let v=u?`${u}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else u&&o.append(u,p)}}else{if(E0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=vg,n=null,i=gg,a=e}return o&&i==="text/plain"&&(a=o,o=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:o,body:a}}function FE(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function pG(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mG(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function vG(e,t,r){let n=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let a=await pG(o,r);return a.links?a.links():[]}return[]}));return _G(n.flat(1).filter(mG).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function w3(e,t,r,n,i,o){let a=(c,u)=>r[u]?c.route.id!==r[u].route.id:!0,s=(c,u)=>{var h;return r[u].pathname!==c.pathname||((h=r[u].route.path)==null?void 0:h.endsWith("*"))&&r[u].params["*"]!==c.params["*"]};return o==="assets"?t.filter((c,u)=>a(c,u)||s(c,u)):o==="data"?t.filter((c,u)=>{var p;let h=n.routes[c.route.id];if(!h||!h.hasLoader)return!1;if(a(c,u)||s(c,u))return!0;if(c.route.shouldRevalidate){let v=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=r[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function gG(e,t){return yG(e.map(r=>{let n=t.routes[r.route.id];if(!n)return[];let i=[n.module];return n.imports&&(i=i.concat(n.imports)),i}).flat(1))}function yG(e){return[...new Set(e)]}function bG(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function _G(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let o=JSON.stringify(bG(i));return r.has(o)||(r.add(o),n.push({key:o,link:i})),n},[])}function xG(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function wG(){let e=I.useContext(Hf);return FE(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function OG(){let e=I.useContext(P0);return FE(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var BE=I.createContext(void 0);BE.displayName="FrameworkContext";function F8(){let e=I.useContext(BE);return FE(e,"You must render this element inside a <HydratedRouter> element"),e}function SG(e,t){let r=I.useContext(BE),[n,i]=I.useState(!1),[o,a]=I.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:h,onTouchStart:p}=t,v=I.useRef(null);I.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let _=O=>{O.forEach(S=>{a(S.isIntersecting)})},w=new IntersectionObserver(_,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),I.useEffect(()=>{if(n){let _=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(_)}}},[n]);let b=()=>{i(!0)},x=()=>{i(!1),a(!1)};return r?e!=="intent"?[o,v,{}]:[o,v,{onFocus:ih(s,b),onBlur:ih(c,x),onMouseEnter:ih(u,b),onMouseLeave:ih(h,x),onTouchStart:ih(p,b)}]:[!1,v,{}]}function ih(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function PG({page:e,...t}){let{router:r}=wG(),n=I.useMemo(()=>A8(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?I.createElement(EG,{page:e,matches:n,...t}):null}function CG(e){let{manifest:t,routeModules:r}=F8(),[n,i]=I.useState([]);return I.useEffect(()=>{let o=!1;return vG(e,t,r).then(a=>{o||i(a)}),()=>{o=!0}},[e,t,r]),n}function EG({page:e,matches:t,...r}){let n=gn(),{manifest:i,routeModules:o}=F8(),{loaderData:a,matches:s}=OG(),c=I.useMemo(()=>w3(e,t,s,i,n,"data"),[e,t,s,i,n]),u=I.useMemo(()=>w3(e,t,s,i,n,"assets"),[e,t,s,i,n]),h=I.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let b=new Set,x=!1;if(t.forEach(w=>{var S;let O=i.routes[w.route.id];!O||!O.hasLoader||(!c.some(E=>E.route.id===w.route.id)&&w.route.id in a&&((S=o[w.route.id])!=null&&S.shouldRevalidate)||O.hasClientLoader?x=!0:b.add(w.route.id))}),b.size===0)return[];let _=xG(e);return x&&b.size>0&&_.searchParams.set("_routes",t.filter(w=>b.has(w.route.id)).map(w=>w.route.id).join(",")),[_.pathname+_.search]},[a,n,i,c,t,e,o]),p=I.useMemo(()=>gG(u,i),[u,i]),v=CG(u);return I.createElement(I.Fragment,null,h.map(b=>I.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...r})),p.map(b=>I.createElement("link",{key:b,rel:"modulepreload",href:b,...r})),v.map(({key:b,link:x})=>I.createElement("link",{key:b,...x})))}function TG(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var B8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{B8&&(window.__reactRouterVersion="7.1.1")}catch{}function U8({basename:e,children:t,window:r}){let n=I.useRef();n.current==null&&(n.current=yH({window:r,v5Compat:!0}));let i=n.current,[o,a]=I.useState({action:i.action,location:i.location}),s=I.useCallback(c=>{I.startTransition(()=>a(c))},[a]);return I.useLayoutEffect(()=>i.listen(s),[i,s]),I.createElement(oG,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var z8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ht=I.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:o,replace:a,state:s,target:c,to:u,preventScrollReset:h,viewTransition:p,...v},b){let{basename:x}=I.useContext(So),_=typeof u=="string"&&z8.test(u),w,O=!1;if(typeof u=="string"&&_&&(w=u,B8))try{let V=new URL(window.location.href),B=u.startsWith("//")?new URL(V.protocol+u):new URL(u),W=rl(B.pathname,x);B.origin===V.origin&&W!=null?u=W+B.search+B.hash:O=!0}catch{wo(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=WH(u,{relative:i}),[E,T,A]=SG(n,v),j=kG(u,{replace:a,state:s,target:c,preventScrollReset:h,relative:i,viewTransition:p});function N(V){t&&t(V),V.defaultPrevented||j(V)}let F=I.createElement("a",{...v,...A,href:w||S,onClick:O||o?t:N,ref:TG(b,T),target:c,"data-discover":!_&&r==="render"?"true":void 0});return E&&!_?I.createElement(I.Fragment,null,F,I.createElement(PG,{page:S})):F});Ht.displayName="Link";var UE=I.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:o,to:a,viewTransition:s,children:c,...u},h){let p=Kp(a,{relative:u.relative}),v=gn(),b=I.useContext(P0),{navigator:x,basename:_}=I.useContext(So),w=b!=null&&IG(p)&&s===!0,O=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,S=v.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(S=S.toLowerCase(),E=E?E.toLowerCase():null,O=O.toLowerCase()),E&&_&&(E=rl(E,_)||E);const T=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let A=S===O||!i&&S.startsWith(O)&&S.charAt(T)==="/",j=E!=null&&(E===O||!i&&E.startsWith(O)&&E.charAt(O.length)==="/"),N={isActive:A,isPending:j,isTransitioning:w},F=A?t:void 0,V;typeof n=="function"?V=n(N):V=[n,A?"active":null,j?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let B=typeof o=="function"?o(N):o;return I.createElement(Ht,{...u,"aria-current":F,className:V,ref:h,style:B,to:a,viewTransition:s},typeof c=="function"?c(N):c)});UE.displayName="NavLink";var jG=I.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:o,method:a=vg,action:s,onSubmit:c,relative:u,preventScrollReset:h,viewTransition:p,...v},b)=>{let x=MG(),_=LG(s,{relative:u}),w=a.toLowerCase()==="get"?"get":"post",O=typeof s=="string"&&z8.test(s),S=E=>{if(c&&c(E),E.defaultPrevented)return;E.preventDefault();let T=E.nativeEvent.submitter,A=(T==null?void 0:T.getAttribute("formmethod"))||a;x(T||E.currentTarget,{fetcherKey:t,method:A,navigate:r,replace:i,state:o,relative:u,preventScrollReset:h,viewTransition:p})};return I.createElement("form",{ref:b,method:w,action:_,onSubmit:n?c:S,...v,"data-discover":!O&&e==="render"?"true":void 0})});jG.displayName="Form";function AG(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V8(e){let t=I.useContext(Hf);return lr(t,AG(e)),t}function kG(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:o,viewTransition:a}={}){let s=sa(),c=gn(),u=Kp(e,{relative:o});return I.useCallback(h=>{if(cG(h,t)){h.preventDefault();let p=r!==void 0?r:Yh(c)===Yh(u);s(e,{replace:p,state:n,preventScrollReset:i,relative:o,viewTransition:a})}},[c,s,u,r,n,t,e,i,o,a])}var RG=0,NG=()=>`__${String(++RG)}__`;function MG(){let{router:e}=V8("useSubmit"),{basename:t}=I.useContext(So),r=tG();return I.useCallback(async(n,i={})=>{let{action:o,method:a,encType:s,formData:c,body:u}=hG(n,t);if(i.navigate===!1){let h=i.fetcherKey||NG();await e.fetch(h,r,i.action||o,{preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||a,formEncType:i.encType||s,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||a,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function LG(e,{relative:t}={}){let{basename:r}=I.useContext(So),n=I.useContext(Po);lr(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),o={...Kp(e||".",{relative:t})},a=gn();if(e==null){o.search=a.search;let s=new URLSearchParams(o.search),c=s.getAll("index");if(c.some(h=>h==="")){s.delete("index"),c.filter(p=>p).forEach(p=>s.append("index",p));let h=s.toString();o.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Da([r,o.pathname])),Yh(o)}function IG(e,t={}){let r=I.useContext(M8);lr(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=V8("useViewTransitionState"),i=Kp(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=rl(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=rl(r.nextLocation.pathname,n)||r.nextLocation.pathname;return jg(i.pathname,a)!=null||jg(i.pathname,o)!=null}new TextEncoder;const DG="shlink-web-client",$G="A React-based progressive web application for shlink",FG="/shlink-web-client/dependabot/npm_and_yarn/eslint-c560062209",BG="https://github.com/shlinkio/shlink-web-client",UG="MIT",zG="module",VG={lint:"node --run lint:css && node --run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint src test config/test","lint:fix":"node --run lint:css:fix && node --run lint:js:fix","lint:css:fix":"node --run lint:css -- --fix","lint:js:fix":"node --run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"node --run types && vite build && node scripts/replace-version.mjs","build:dist":"node --run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"node --run test -- --coverage","test:verbose":"node --run test -- --verbose"},WG={"@fortawesome/fontawesome-free":"^6.7.1","@fortawesome/fontawesome-svg-core":"^6.7.1","@fortawesome/free-brands-svg-icons":"^6.7.1","@fortawesome/free-regular-svg-icons":"^6.7.1","@fortawesome/free-solid-svg-icons":"^6.7.1","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.4.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.7.0","@shlinkio/shlink-js-sdk":"^1.3.0","@shlinkio/shlink-web-component":"^0.12.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.1","compare-versions":"^6.1.1",csvtojson:"^2.0.10","date-fns":"^4.1.0",react:"^18.3.1","react-dom":"^18.3.1","react-external-link":"^2.4.0","react-redux":"^9.2.0","react-router":"^7.1.1",reactstrap:"^9.2.3","redux-localstorage-simple":"^2.5.1","workbox-core":"^7.3.0","workbox-expiration":"^7.3.0","workbox-precaching":"^7.3.0","workbox-routing":"^7.3.0","workbox-strategies":"^7.3.0"},qG={"@shlinkio/eslint-config-js-coding-standard":"~3.2.1","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^2.12.1","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.1.0","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@types/uuid":"^10.0.0","@vitejs/plugin-react":"^4.3.4","@vitest/coverage-v8":"^2.1.6","adm-zip":"^0.5.16","axe-core":"^4.10.2",chalk:"^5.4.1",eslint:"^9.17.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react":"^7.37.3","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-simple-import-sort":"^12.1.1",history:"^5.3.0",jsdom:"^25.0.1",sass:"^1.83.0",stylelint:"^15.11.0",typescript:"^5.7.2","typescript-eslint":"^8.19.0",vite:"^6.0.6","vite-plugin-pwa":"^0.21.1",vitest:"^2.0.2"},HG=[">0.2%","not dead","not ie <= 11","not op_mini all"],Ag={name:DG,description:$G,private:!1,homepage:FG,repository:BG,license:UG,type:zG,scripts:VG,dependencies:WG,devDependencies:qG,browserslist:HG};var Oo,ra=".",W8="function",q8="string",H8="__global__",zE="Provider",GG=0,VE=Array.prototype.slice,KG=function(t,r){var n=t[r];if(n===void 0&&Oo.config.strict)throw new Error("Bottle was unable to resolve a service. `"+r+"` is undefined.");return n},T0=function(t){var r;return this.nested[t]||(r=Oo.pop(),this.nested[t]=r,this.factory(t,function(){return r.container})),this.nested[t]},G8=function(t){return t.split(ra).reduce(KG,this)},YG=function(t,r,n,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,c=function(h){if(h)throw h;t[s]&&t[s++](n,c)};return c(),n}:(o.value=n,o.writable=!0),Object.defineProperty(i,r,o),i[r]},ZG=function(t,r){var n,i;return typeof t===W8&&(r=t,t=H8),n=t.split(ra),i=n.shift(),n.length?T0.call(this,i).middleware(n.join(ra),r):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(r)),this},XG=function(t,r){return r(t)},O3=function(t,r){return(t[r]||[]).concat(t.__global__||[])},QG=function(t,r){var n,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,n=t+zE,i=Object.create(null),i[n]={configurable:!0,enumerable:!0,get:function(){var u=new r;return delete o[n],o[n]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=o[n],h;return u&&(h=O3(a,t).reduce(XG,u.$get(o)),delete o[n],delete o[t]),h===void 0?h:YG(O3(s,t),t,h,o)}},Object.defineProperties(o,i),this},K8=function(t,r){var n,i;return n=t.split(ra),this.providerMap[t]&&n.length===1&&!this.container[t+zE]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=r,this.providerMap[t]=!0,i=n.shift(),n.length?(T0.call(this,i).provider(n.join(ra),r),this):QG.call(this,i,r))},WE=function(t,r){return K8.call(this,t,function(){this.$get=r})},Y8=function(t,r,n){var i=arguments.length>3?VE.call(arguments,3):[],o=this;return WE.call(this,t,function(){var s=r,c=i.map(G8,o.container);return n?new(r.bind.apply(r,[null].concat(c))):s.apply(null,c)})},JG=function(t,r){return Y8.apply(this,[t,r,!0].concat(VE.call(arguments,2)))},eK=function(t,r){return Y8.apply(this,[t,r,!1].concat(VE.call(arguments,2)))},Z8=function(t,r){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:r,writable:!0})},X8=function(t,r){var n=t[r];return n||(n={},Z8.call(t,r,n)),n},tK=function(t,r){var n;return n=t.split(ra),t=n.pop(),Z8.call(n.reduce(X8,this.container),t,r),this},rK=function(t,r){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:r,writable:!1})},nK=function(t,r){var n=t.split(ra);return t=n.pop(),rK.call(n.reduce(X8,this.container),t,r),this},Q8=function(t,r){var n,i;return typeof t===W8&&(r=t,t=H8),n=t.split(ra),i=n.shift(),n.length?T0.call(this,i).decorator(n.join(ra),r):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(r)),this},iK=function(t){return this.deferred.push(t),this},oK=function(t){return(t||[]).map(G8,this.container)},aK=function(t,r){return WE.call(this,t,function(i){return{instance:r.bind(r,i)}})},sK=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},qE=function(t){return Object.keys(t||this.container||{}).filter(sK)},kg={},lK=function(t){var r;return typeof t===q8?(r=kg[t],r||(kg[t]=r=new Oo,r.constant("BOTTLE_NAME",t)),r):new Oo},uK=function(t){typeof t===q8?delete kg[t]:kg={}},J8=function(t){var r=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,r].concat(t.$inject||[]))},S3=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+zE]},cK=function(t){var r=this.originalProviders,n=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(n&&t.indexOf(o)===-1)){var a=o.split(ra);a.length>1&&a.forEach(S3,T0.call(this,a[0])),S3.call(this,o),this.provider(o,r[o])}},this)},fK=function(t){return this.deferred.forEach(function(n){n(t)}),this};Oo=function e(t){if(!(this instanceof e))return e.pop(t);this.id=GG++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:Q8.bind(this),$register:J8.bind(this),$list:qE.bind(this)}};Oo.prototype={constant:nK,decorator:Q8,defer:iK,digest:oK,factory:WE,instanceFactory:aK,list:qE,middleware:ZG,provider:K8,resetProviders:cK,register:J8,resolve:fK,service:JG,serviceFactory:eK,value:tK};Oo.pop=lK;Oo.clear=uK;Oo.list=qE;Oo.config={strict:!1};const e$=Oo;var dK=Object.defineProperty,hK=(e,t,r)=>t in e?dK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pK=(e,t,r)=>hK(e,t+"",r);const mK=(e,t)=>`${e}/rest/v${t}`,vK=e=>e.dir?`${e.field}-${e.dir}`:void 0,gK=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:r,...n})=>({...n,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:r===!0?"true":void 0,orderBy:vK(e)}),yK=(e,t)=>{const[r,n]=e.split("://");if(!n)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=n.split("/"),o=i.length?`/${i.join("/")}`:"";return`${r}://${t}${o}`},bK=(e={})=>{const t=Object.entries(e).flatMap(([r,n])=>n==null?[]:Array.isArray(n)?n.map(i=>[`${r}[]`,i]):[[r,n]]);return new URLSearchParams(t).toString()};class _K{constructor(t,r){pK(this,"apiVersion"),this.httpClient=t,this.serverInfo=r,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:gK(t)}).then(({shortUrls:r})=>r)}async createShortUrl(t){const r=Object.entries(t).reduce((n,[i,o])=>(o&&(n[i]=o),n),{});return this.performRequest({url:"/short-urls",method:"POST",body:r})}async getShortUrl(t,r){return this.performRequest({url:`/short-urls/${t}`,query:{domain:r}})}async deleteShortUrl(t,r){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:r}})}async updateShortUrl(t,r,n){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:r},body:n})}async getShortUrlRedirectRules(t,r){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:r}})}async setShortUrlRedirectRules(t,r,n){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:r},body:n})}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrlVisits(t,r){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:r})}async getTagVisits(t,r){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:r})}async getDomainVisits(t,r){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:r})}async getOrphanVisits(t){return this.performVisitsRequest({url:"/visits/orphan",query:t})}async getNonOrphanVisits(t){return this.performVisitsRequest({url:"/visits/non-orphan",query:t})}async performVisitsRequest(t){return this.performRequest(t).then(({visits:r})=>r)}async deleteShortUrlVisits(t,r){const n=r?{domain:r}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:n})}async deleteOrphanVisits(){return this.performRequest({method:"DELETE",url:"/visits/orphan"})}async listTags(){return this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t)}async tagsStats(){return this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t)}async deleteTags(t){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t}))}async editTag(t,r){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:r}}).then(()=>({oldName:t,newName:r}))}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 health(t){return this.performRequest({url:"/health",domain:t})}async mercureInfo(){return this.performRequest({url:"/mercure-info"})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t))}toFetchParams({url:t,method:r="GET",query:n={},body:i,domain:o}){const a=bK(n),s=a?`?${a}`:"",c=o?yK(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${mK(c,this.apiVersion)}${t}${s}`,{method:r,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const t$=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Ah=e=>!!(e!=null&&e.id),HE=e=>!!(e!=null&&e.version),xK=e=>!!(e!=null&&e.serverNotFound),wK=e=>Ah(e)?e.id:"",OK=({name:e,url:t,apiKey:r})=>({name:e,url:t,apiKey:r}),P3={},SK=e=>typeof e=="function",PK=e=>{const{selectedServer:t}=e();if(!t$(t))throw new Error("There's no selected server or it is not found");return t},CK=e=>t=>{const{url:r,apiKey:n}=SK(t)?PK(t):t,i=`${n}_${r}`,o=P3[i]??new _K(e,{apiKey:n,baseUrl:r});return P3[i]=o,o},EK=e=>{e.serviceFactory("buildShlinkApiClient",CK,"HttpClient")};/*!
|
||
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const TK={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},jK={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},AK={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},kK=AK,RK={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},GE=RK,NK={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},MK={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},r$=MK,n$={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"]},LK={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},KE={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},IK={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"]},DK=IK,$K={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},YE=$K,FK={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},BK={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},UK={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"]},C3={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},zK={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},VK=zK,WK={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},rS=WK,qK={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},HK={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},GK={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"]},KK=GK,ZE={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},j0={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},i$={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},E3={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},YK={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},ZK={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"]},XK={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},QK=XK,JK={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},eY={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},XE=eY,QE={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},tY=QE,rY={prefix:"fas",iconName:"grip-vertical",icon:[320,512,[],"f58e","M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]},nY={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"]},iY={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"]},oY=iY,aY={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},sY=aY,lY={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},uY=lY,cY={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},o$=cY,fY={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"]},dY={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},hY={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"]},pY={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"]},mY=pY,vY={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"]},gY={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Yp={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},a$={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"]},nS=a$,yY={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"]},bY={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"]},_Y=bY,T3={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},s$={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},xY=s$,wY={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},OY={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"]},SY={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},PY={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},CY={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},Zh={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"]},l$={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M246.6 150.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L352 109.3 352 384c0 35.3 28.7 64 64 64l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64l-114.7 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L109.3 256 224 256c23.3 0 45.2 6.2 64 17.1l0-163.9-41.4 41.4z"]},EY={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},TY=EY;/*!
|
||
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/function jY(e,t,r){return(t=kY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j3(Object(r),!0).forEach(function(n){jY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kY(e){var t=AY(e,"string");return typeof t=="symbol"?t:t+""}const A3=()=>{};let JE={},u$={},c$=null,f$={mark:A3,measure:A3};try{typeof window<"u"&&(JE=window),typeof document<"u"&&(u$=document),typeof MutationObserver<"u"&&(c$=MutationObserver),typeof performance<"u"&&(f$=performance)}catch{}const{userAgent:k3=""}=JE.navigator||{},nl=JE,ir=u$,R3=c$,Uv=f$;nl.document;const Xa=!!ir.documentElement&&!!ir.head&&typeof ir.addEventListener=="function"&&typeof ir.createElement=="function",d$=~k3.indexOf("MSIE")||~k3.indexOf("Trident/");var RY=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,NY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,h$={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},MY={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},p$=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],vn="classic",A0="duotone",LY="sharp",IY="sharp-duotone",m$=[vn,A0,LY,IY],DY={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},$Y={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},FY=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),BY={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},UY=["fak","fa-kit","fakd","fa-kit-duotone"],N3={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},zY=["kit"],VY={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},WY=["fak","fakd"],qY={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},M3={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},zv={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},HY=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],GY=["fak","fa-kit","fakd","fa-kit-duotone"],KY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},YY={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},ZY={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},iS={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},XY=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],oS=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...HY,...XY],QY=["solid","regular","light","thin","duotone","brands"],v$=[1,2,3,4,5,6,7,8,9,10],JY=v$.concat([11,12,13,14,15,16,17,18,19,20]),eZ=[...Object.keys(ZY),...QY,"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",zv.GROUP,zv.SWAP_OPACITY,zv.PRIMARY,zv.SECONDARY].concat(v$.map(e=>"".concat(e,"x"))).concat(JY.map(e=>"w-".concat(e))),tZ={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const za="___FONT_AWESOME___",aS=16,g$="fa",y$="svg-inline--fa",bu="data-fa-i2svg",sS="data-fa-pseudo-element",rZ="data-fa-pseudo-element-pending",eT="data-prefix",tT="data-icon",L3="fontawesome-i2svg",nZ="async",iZ=["HTML","HEAD","STYLE","SCRIPT"],b$=(()=>{try{return!0}catch{return!1}})();function Zp(e){return new Proxy(e,{get(t,r){return r in t?t[r]:t[vn]}})}const _$=Ue({},h$);_$[vn]=Ue(Ue(Ue(Ue({},{"fa-duotone":"duotone"}),h$[vn]),N3.kit),N3["kit-duotone"]);const oZ=Zp(_$),lS=Ue({},BY);lS[vn]=Ue(Ue(Ue(Ue({},{duotone:"fad"}),lS[vn]),M3.kit),M3["kit-duotone"]);const I3=Zp(lS),uS=Ue({},iS);uS[vn]=Ue(Ue({},uS[vn]),qY.kit);const rT=Zp(uS),cS=Ue({},YY);cS[vn]=Ue(Ue({},cS[vn]),VY.kit);Zp(cS);const aZ=RY,x$="fa-layers-text",sZ=NY,lZ=Ue({},DY);Zp(lZ);const uZ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],y1=MY,cZ=[...zY,...eZ],kh=nl.FontAwesomeConfig||{};function fZ(e){var t=ir.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function dZ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}ir&&typeof ir.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[r,n]=t;const i=dZ(fZ(r));i!=null&&(kh[n]=i)});const w$={styleDefault:"solid",familyDefault:vn,cssPrefix:g$,replacementClass:y$,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};kh.familyPrefix&&(kh.cssPrefix=kh.familyPrefix);const of=Ue(Ue({},w$),kh);of.autoReplaceSvg||(of.observeMutations=!1);const at={};Object.keys(w$).forEach(e=>{Object.defineProperty(at,e,{enumerable:!0,set:function(t){of[e]=t,Rh.forEach(r=>r(at))},get:function(){return of[e]}})});Object.defineProperty(at,"familyPrefix",{enumerable:!0,set:function(e){of.cssPrefix=e,Rh.forEach(t=>t(at))},get:function(){return of.cssPrefix}});nl.FontAwesomeConfig=at;const Rh=[];function hZ(e){return Rh.push(e),()=>{Rh.splice(Rh.indexOf(e),1)}}const $s=aS,Go={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function pZ(e){if(!e||!Xa)return;const t=ir.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const r=ir.head.childNodes;let n=null;for(let i=r.length-1;i>-1;i--){const o=r[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(n=o)}return ir.head.insertBefore(t,n),e}const mZ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Xh(){let e=12,t="";for(;e-- >0;)t+=mZ[Math.random()*62|0];return t}function Kf(e){const t=[];for(let r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function nT(e){return e.classList?Kf(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function O$(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function vZ(e){return Object.keys(e||{}).reduce((t,r)=>t+"".concat(r,'="').concat(O$(e[r]),'" '),"").trim()}function k0(e){return Object.keys(e||{}).reduce((t,r)=>t+"".concat(r,": ").concat(e[r].trim(),";"),"")}function iT(e){return e.size!==Go.size||e.x!==Go.x||e.y!==Go.y||e.rotate!==Go.rotate||e.flipX||e.flipY}function gZ(e){let{transform:t,containerWidth:r,iconWidth:n}=e;const i={transform:"translate(".concat(r/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)"),c={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:c,path:u}}function yZ(e){let{transform:t,width:r=aS,height:n=aS,startCentered:i=!1}=e,o="";return i&&d$?o+="translate(".concat(t.x/$s-r/2,"em, ").concat(t.y/$s-n/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/$s,"em), calc(-50% + ").concat(t.y/$s,"em)) "):o+="translate(".concat(t.x/$s,"em, ").concat(t.y/$s,"em) "),o+="scale(".concat(t.size/$s*(t.flipX?-1:1),", ").concat(t.size/$s*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var bZ=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
||
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
}
|
||
|
||
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
||
overflow: visible;
|
||
box-sizing: content-box;
|
||
}
|
||
|
||
.svg-inline--fa {
|
||
display: var(--fa-display, inline-block);
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
}
|
||
.svg-inline--fa.fa-2xs {
|
||
vertical-align: 0.1em;
|
||
}
|
||
.svg-inline--fa.fa-xs {
|
||
vertical-align: 0em;
|
||
}
|
||
.svg-inline--fa.fa-sm {
|
||
vertical-align: -0.0714285705em;
|
||
}
|
||
.svg-inline--fa.fa-lg {
|
||
vertical-align: -0.2em;
|
||
}
|
||
.svg-inline--fa.fa-xl {
|
||
vertical-align: -0.25em;
|
||
}
|
||
.svg-inline--fa.fa-2xl {
|
||
vertical-align: -0.3125em;
|
||
}
|
||
.svg-inline--fa.fa-pull-left {
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-pull-right {
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-li {
|
||
width: var(--fa-li-width, 2em);
|
||
top: 0.25em;
|
||
}
|
||
.svg-inline--fa.fa-fw {
|
||
width: var(--fa-fw-width, 1.25em);
|
||
}
|
||
|
||
.fa-layers svg.svg-inline--fa {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.fa-layers-counter, .fa-layers-text {
|
||
display: inline-block;
|
||
position: absolute;
|
||
text-align: center;
|
||
}
|
||
|
||
.fa-layers {
|
||
display: inline-block;
|
||
height: 1em;
|
||
position: relative;
|
||
text-align: center;
|
||
vertical-align: -0.125em;
|
||
width: 1em;
|
||
}
|
||
.fa-layers svg.svg-inline--fa {
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translate(-50%, -50%);
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-counter {
|
||
background-color: var(--fa-counter-background-color, #ff253a);
|
||
border-radius: var(--fa-counter-border-radius, 1em);
|
||
box-sizing: border-box;
|
||
color: var(--fa-inverse, #fff);
|
||
line-height: var(--fa-counter-line-height, 1);
|
||
max-width: var(--fa-counter-max-width, 5em);
|
||
min-width: var(--fa-counter-min-width, 1.5em);
|
||
overflow: hidden;
|
||
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
||
right: var(--fa-right, 0);
|
||
text-overflow: ellipsis;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top left;
|
||
}
|
||
|
||
.fa-1x {
|
||
font-size: 1em;
|
||
}
|
||
|
||
.fa-2x {
|
||
font-size: 2em;
|
||
}
|
||
|
||
.fa-3x {
|
||
font-size: 3em;
|
||
}
|
||
|
||
.fa-4x {
|
||
font-size: 4em;
|
||
}
|
||
|
||
.fa-5x {
|
||
font-size: 5em;
|
||
}
|
||
|
||
.fa-6x {
|
||
font-size: 6em;
|
||
}
|
||
|
||
.fa-7x {
|
||
font-size: 7em;
|
||
}
|
||
|
||
.fa-8x {
|
||
font-size: 8em;
|
||
}
|
||
|
||
.fa-9x {
|
||
font-size: 9em;
|
||
}
|
||
|
||
.fa-10x {
|
||
font-size: 10em;
|
||
}
|
||
|
||
.fa-2xs {
|
||
font-size: 0.625em;
|
||
line-height: 0.1em;
|
||
vertical-align: 0.225em;
|
||
}
|
||
|
||
.fa-xs {
|
||
font-size: 0.75em;
|
||
line-height: 0.0833333337em;
|
||
vertical-align: 0.125em;
|
||
}
|
||
|
||
.fa-sm {
|
||
font-size: 0.875em;
|
||
line-height: 0.0714285718em;
|
||
vertical-align: 0.0535714295em;
|
||
}
|
||
|
||
.fa-lg {
|
||
font-size: 1.25em;
|
||
line-height: 0.05em;
|
||
vertical-align: -0.075em;
|
||
}
|
||
|
||
.fa-xl {
|
||
font-size: 1.5em;
|
||
line-height: 0.0416666682em;
|
||
vertical-align: -0.125em;
|
||
}
|
||
|
||
.fa-2xl {
|
||
font-size: 2em;
|
||
line-height: 0.03125em;
|
||
vertical-align: -0.1875em;
|
||
}
|
||
|
||
.fa-fw {
|
||
text-align: center;
|
||
width: 1.25em;
|
||
}
|
||
|
||
.fa-ul {
|
||
list-style-type: none;
|
||
margin-left: var(--fa-li-margin, 2.5em);
|
||
padding-left: 0;
|
||
}
|
||
.fa-ul > li {
|
||
position: relative;
|
||
}
|
||
|
||
.fa-li {
|
||
left: calc(-1 * var(--fa-li-width, 2em));
|
||
position: absolute;
|
||
text-align: center;
|
||
width: var(--fa-li-width, 2em);
|
||
line-height: inherit;
|
||
}
|
||
|
||
.fa-border {
|
||
border-color: var(--fa-border-color, #eee);
|
||
border-radius: var(--fa-border-radius, 0.1em);
|
||
border-style: var(--fa-border-style, solid);
|
||
border-width: var(--fa-border-width, 0.08em);
|
||
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
||
}
|
||
|
||
.fa-pull-left {
|
||
float: left;
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-pull-right {
|
||
float: right;
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-beat {
|
||
animation-name: fa-beat;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
animation-name: fa-bounce;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
animation-name: fa-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
animation-name: fa-beat-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-flip {
|
||
animation-name: fa-flip;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
animation-name: fa-shake;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin {
|
||
animation-name: fa-spin;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
animation-name: fa-spin;
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.fa-beat,
|
||
.fa-bounce,
|
||
.fa-fade,
|
||
.fa-beat-fade,
|
||
.fa-flip,
|
||
.fa-pulse,
|
||
.fa-shake,
|
||
.fa-spin,
|
||
.fa-spin-pulse {
|
||
animation-delay: -1ms;
|
||
animation-duration: 1ms;
|
||
animation-iteration-count: 1;
|
||
transition-delay: 0s;
|
||
transition-duration: 0s;
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0%, 90% {
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
}
|
||
50% {
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
50% {
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
transform: rotate(var(--fa-rotate-angle, 0));
|
||
}
|
||
|
||
.fa-stack {
|
||
display: inline-block;
|
||
vertical-align: middle;
|
||
height: 2em;
|
||
position: relative;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-stack-1x,
|
||
.fa-stack-2x {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
z-index: var(--fa-stack-z-index, auto);
|
||
}
|
||
|
||
.svg-inline--fa.fa-stack-1x {
|
||
height: 1em;
|
||
width: 1.25em;
|
||
}
|
||
.svg-inline--fa.fa-stack-2x {
|
||
height: 2em;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.sr-only,
|
||
.fa-sr-only {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.sr-only-focusable:not(:focus),
|
||
.fa-sr-only-focusable:not(:focus) {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.svg-inline--fa .fa-primary {
|
||
fill: var(--fa-primary-color, currentColor);
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa .fa-secondary {
|
||
fill: var(--fa-secondary-color, currentColor);
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa mask .fa-primary,
|
||
.svg-inline--fa mask .fa-secondary {
|
||
fill: black;
|
||
}`;function S$(){const e=g$,t=y$,r=at.cssPrefix,n=at.replacementClass;let i=bZ;if(r!==e||n!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(r,"-")).replace(a,"--".concat(r,"-")).replace(s,".".concat(n))}return i}let D3=!1;function b1(){at.autoAddCss&&!D3&&(pZ(S$()),D3=!0)}var _Z={mixout(){return{dom:{css:S$,insertCss:b1}}},hooks(){return{beforeDOMElementCreation(){b1()},beforeI2svg(){b1()}}}};const Va=nl||{};Va[za]||(Va[za]={});Va[za].styles||(Va[za].styles={});Va[za].hooks||(Va[za].hooks={});Va[za].shims||(Va[za].shims=[]);var Ko=Va[za];const P$=[],C$=function(){ir.removeEventListener("DOMContentLoaded",C$),Rg=1,P$.map(e=>e())};let Rg=!1;Xa&&(Rg=(ir.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ir.readyState),Rg||ir.addEventListener("DOMContentLoaded",C$));function xZ(e){Xa&&(Rg?setTimeout(e,0):P$.push(e))}function Xp(e){const{tag:t,attributes:r={},children:n=[]}=e;return typeof e=="string"?O$(e):"<".concat(t," ").concat(vZ(r),">").concat(n.map(Xp).join(""),"</").concat(t,">")}function $3(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var _1=function(t,r,n,i){var o=Object.keys(t),a=o.length,s=r,c,u,h;for(n===void 0?(c=1,h=t[o[0]]):(c=0,h=n);c<a;c++)u=o[c],h=s(h,t[u],u,t);return h};function wZ(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const o=e.charCodeAt(r++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}function fS(e){const t=wZ(e);return t.length===1?t[0].toString(16):null}function OZ(e,t){const r=e.length;let n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function F3(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return!!n.icon?t[n.iconName]=n.icon:t[r]=n,t},{})}function dS(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:n=!1}=r,i=F3(t);typeof Ko.hooks.addPack=="function"&&!n?Ko.hooks.addPack(e,F3(t)):Ko.styles[e]=Ue(Ue({},Ko.styles[e]||{}),i),e==="fas"&&dS("fa",t)}const{styles:Qh,shims:SZ}=Ko,E$=Object.keys(rT),PZ=E$.reduce((e,t)=>(e[t]=Object.keys(rT[t]),e),{});let oT=null,T$={},j$={},A$={},k$={},R$={};function CZ(e){return~cZ.indexOf(e)}function EZ(e,t){const r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!CZ(i)?i:null}const N$=()=>{const e=n=>_1(Qh,(i,o,a)=>(i[a]=_1(o,n,{}),i),{});T$=e((n,i,o)=>(i[3]&&(n[i[3]]=o),i[2]&&i[2].filter(s=>typeof s=="number").forEach(s=>{n[s.toString(16)]=o}),n)),j$=e((n,i,o)=>(n[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{n[s]=o}),n)),R$=e((n,i,o)=>{const a=i[2];return n[o]=o,a.forEach(s=>{n[s]=o}),n});const t="far"in Qh||at.autoFetchSvg,r=_1(SZ,(n,i)=>{const o=i[0];let a=i[1];const s=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(n.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(n.unicodes[o.toString(16)]={prefix:a,iconName:s}),n},{names:{},unicodes:{}});A$=r.names,k$=r.unicodes,oT=R0(at.styleDefault,{family:at.familyDefault})};hZ(e=>{oT=R0(e.styleDefault,{family:at.familyDefault})});N$();function aT(e,t){return(T$[e]||{})[t]}function TZ(e,t){return(j$[e]||{})[t]}function su(e,t){return(R$[e]||{})[t]}function M$(e){return A$[e]||{prefix:null,iconName:null}}function jZ(e){const t=k$[e],r=aT("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function il(){return oT}const L$=()=>({prefix:null,iconName:null,rest:[]});function AZ(e){let t=vn;const r=E$.reduce((n,i)=>(n[i]="".concat(at.cssPrefix,"-").concat(i),n),{});return m$.forEach(n=>{(e.includes(r[n])||e.some(i=>PZ[n].includes(i)))&&(t=n)}),t}function R0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:r=vn}=t,n=oZ[r][e];if(r===A0&&!e)return"fad";const i=I3[r][e]||I3[r][n],o=e in Ko.styles?e:null;return i||o||null}function kZ(e){let t=[],r=null;return e.forEach(n=>{const i=EZ(at.cssPrefix,n);i?r=i:n&&t.push(n)}),{iconName:r,rest:t}}function B3(e){return e.sort().filter((t,r,n)=>n.indexOf(t)===r)}function N0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:r=!1}=t;let n=null;const i=oS.concat(GY),o=B3(e.filter(p=>i.includes(p))),a=B3(e.filter(p=>!oS.includes(p))),s=o.filter(p=>(n=p,!p$.includes(p))),[c=null]=s,u=AZ(o),h=Ue(Ue({},kZ(a)),{},{prefix:R0(c,{family:u})});return Ue(Ue(Ue({},h),LZ({values:e,family:u,styles:Qh,config:at,canonical:h,givenPrefix:n})),RZ(r,n,h))}function RZ(e,t,r){let{prefix:n,iconName:i}=r;if(e||!n||!i)return{prefix:n,iconName:i};const o=t==="fa"?M$(i):{},a=su(n,i);return i=o.iconName||a||i,n=o.prefix||n,n==="far"&&!Qh.far&&Qh.fas&&!at.autoFetchSvg&&(n="fas"),{prefix:n,iconName:i}}const NZ=m$.filter(e=>e!==vn||e!==A0),MZ=Object.keys(iS).filter(e=>e!==vn).map(e=>Object.keys(iS[e])).flat();function LZ(e){const{values:t,family:r,canonical:n,givenPrefix:i="",styles:o={},config:a={}}=e,s=r===A0,c=t.includes("fa-duotone")||t.includes("fad"),u=a.familyDefault==="duotone",h=n.prefix==="fad"||n.prefix==="fa-duotone";if(!s&&(c||u||h)&&(n.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(n.prefix="fab"),!n.prefix&&NZ.includes(r)&&(Object.keys(o).find(v=>MZ.includes(v))||a.autoFetchSvg)){const v=FY.get(r).defaultShortPrefixId;n.prefix=v,n.iconName=su(n.prefix,n.iconName)||n.iconName}return(n.prefix==="fa"||i==="fa")&&(n.prefix=il()||"fas"),n}class IZ{constructor(){this.definitions={}}add(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const i=r.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=Ue(Ue({},this.definitions[o]||{}),i[o]),dS(o,i[o]);const a=rT[vn][o];a&&dS(a,i[o]),N$()})}reset(){this.definitions={}}_pullDefinitions(t,r){const n=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(n).map(i=>{const{prefix:o,iconName:a,icon:s}=n[i],c=s[2];t[o]||(t[o]={}),c.length>0&&c.forEach(u=>{typeof u=="string"&&(t[o][u]=s)}),t[o][a]=s}),t}}let U3=[],Vc={};const Qc={},DZ=Object.keys(Qc);function $Z(e,t){let{mixoutsTo:r}=t;return U3=e,Vc={},Object.keys(Qc).forEach(n=>{DZ.indexOf(n)===-1&&delete Qc[n]}),U3.forEach(n=>{const i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(r[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{r[o]||(r[o]={}),r[o][a]=i[o][a]})}),n.hooks){const o=n.hooks();Object.keys(o).forEach(a=>{Vc[a]||(Vc[a]=[]),Vc[a].push(o[a])})}n.provides&&n.provides(Qc)}),r}function hS(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(Vc[e]||[]).forEach(a=>{t=a.apply(null,[t,...n])}),t}function _u(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(Vc[e]||[]).forEach(o=>{o.apply(null,r)})}function ol(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Qc[e]?Qc[e].apply(null,t):void 0}function pS(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const r=e.prefix||il();if(t)return t=su(r,t)||t,$3(I$.definitions,r,t)||$3(Ko.styles,r,t)}const I$=new IZ,FZ=()=>{at.autoReplaceSvg=!1,at.observeMutations=!1,_u("noAuto")},BZ={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Xa?(_u("beforeI2svg",e),ol("pseudoElements2svg",e),ol("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;at.autoReplaceSvg===!1&&(at.autoReplaceSvg=!0),at.observeMutations=!0,xZ(()=>{zZ({autoReplaceSvgRoot:t}),_u("watch",e)})}},UZ={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:su(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=R0(e[0]);return{prefix:r,iconName:su(r,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(at.cssPrefix,"-"))>-1||e.match(aZ))){const t=N0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||il(),iconName:su(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=il();return{prefix:t,iconName:su(t,e)||e}}}},_i={noAuto:FZ,config:at,dom:BZ,parse:UZ,library:I$,findIconDefinition:pS,toHtml:Xp},zZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=ir}=e;(Object.keys(Ko.styles).length>0||at.autoFetchSvg)&&Xa&&at.autoReplaceSvg&&_i.dom.i2svg({node:t})};function M0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(r=>Xp(r))}}),Object.defineProperty(e,"node",{get:function(){if(!Xa)return;const r=ir.createElement("div");return r.innerHTML=e.html,r.children}}),e}function VZ(e){let{children:t,main:r,mask:n,attributes:i,styles:o,transform:a}=e;if(iT(a)&&r.found&&!n.found){const{width:s,height:c}=r,u={x:s/c/2,y:.5};i.style=k0(Ue(Ue({},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 WZ(e){let{prefix:t,iconName:r,children:n,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(at.cssPrefix,"-").concat(r):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ue(Ue({},i),{},{id:a}),children:n}]}]}function sT(e){const{icons:{main:t,mask:r},prefix:n,iconName:i,transform:o,symbol:a,title:s,maskId:c,titleId:u,extra:h,watchable:p=!1}=e,{width:v,height:b}=r.found?r:t,x=WY.includes(n),_=[at.replacementClass,i?"".concat(at.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let w={children:[],attributes:Ue(Ue({},h.attributes),{},{"data-prefix":n,"data-icon":i,class:_,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(b)})};const O=x&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/b*16*.0625,"em")}:{};p&&(w.attributes[bu]=""),s&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(u||Xh())},children:[s]}),delete w.attributes.title);const S=Ue(Ue({},w),{},{prefix:n,iconName:i,main:t,mask:r,maskId:c,transform:o,symbol:a,styles:Ue(Ue({},O),h.styles)}),{children:E,attributes:T}=r.found&&t.found?ol("generateAbstractMask",S)||{children:[],attributes:{}}:ol("generateAbstractIcon",S)||{children:[],attributes:{}};return S.children=E,S.attributes=T,a?WZ(S):VZ(S)}function z3(e){const{content:t,width:r,height:n,transform:i,title:o,extra:a,watchable:s=!1}=e,c=Ue(Ue(Ue({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});s&&(c[bu]="");const u=Ue({},a.styles);iT(i)&&(u.transform=yZ({transform:i,startCentered:!0,width:r,height:n}),u["-webkit-transform"]=u.transform);const h=k0(u);h.length>0&&(c.style=h);const p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function qZ(e){const{content:t,title:r,extra:n}=e,i=Ue(Ue(Ue({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),o=k0(n.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),r&&a.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),a}const{styles:x1}=Ko;function mS(e){const t=e[0],r=e[1],[n]=e.slice(4);let i=null;return Array.isArray(n)?i={tag:"g",attributes:{class:"".concat(at.cssPrefix,"-").concat(y1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(y1.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(y1.PRIMARY),fill:"currentColor",d:n[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:n}},{found:!0,width:t,height:r,icon:i}}const HZ={found:!1,width:512,height:512};function GZ(e,t){!b$&&!at.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function vS(e,t){let r=t;return t==="fa"&&at.styleDefault!==null&&(t=il()),new Promise((n,i)=>{if(r==="fa"){const o=M$(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&x1[t]&&x1[t][e]){const o=x1[t][e];return n(mS(o))}GZ(e,t),n(Ue(Ue({},HZ),{},{icon:at.showMissingIcons&&e?ol("missingIconAbstract")||{}:{}}))})}const V3=()=>{},gS=at.measurePerformance&&Uv&&Uv.mark&&Uv.measure?Uv:{mark:V3,measure:V3},_h='FA "6.7.1"',KZ=e=>(gS.mark("".concat(_h," ").concat(e," begins")),()=>D$(e)),D$=e=>{gS.mark("".concat(_h," ").concat(e," ends")),gS.measure("".concat(_h," ").concat(e),"".concat(_h," ").concat(e," begins"),"".concat(_h," ").concat(e," ends"))};var lT={begin:KZ,end:D$};const yg=()=>{};function W3(e){return typeof(e.getAttribute?e.getAttribute(bu):null)=="string"}function YZ(e){const t=e.getAttribute?e.getAttribute(eT):null,r=e.getAttribute?e.getAttribute(tT):null;return t&&r}function ZZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(at.replacementClass)}function XZ(){return at.autoReplaceSvg===!0?bg.replace:bg[at.autoReplaceSvg]||bg.replace}function QZ(e){return ir.createElementNS("http://www.w3.org/2000/svg",e)}function JZ(e){return ir.createElement(e)}function $$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:r=e.tag==="svg"?QZ:JZ}=t;if(typeof e=="string")return ir.createTextNode(e);const n=r(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){n.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){n.appendChild($$(o,{ceFn:r}))}),n}function eX(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const bg={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(r=>{t.parentNode.insertBefore($$(r),t)}),t.getAttribute(bu)===null&&at.keepOriginalSource){let r=ir.createComment(eX(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){const t=e[0],r=e[1];if(~nT(t).indexOf(at.replacementClass))return bg.replace(e);const n=new RegExp("".concat(at.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){const o=r[0].attributes.class.split(" ").reduce((a,s)=>(s===at.replacementClass||s.match(n)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=r.map(o=>Xp(o)).join(`
|
||
`);t.setAttribute(bu,""),t.innerHTML=i}};function q3(e){e()}function F$(e,t){const r=typeof t=="function"?t:yg;if(e.length===0)r();else{let n=q3;at.mutateApproach===nZ&&(n=nl.requestAnimationFrame||q3),n(()=>{const i=XZ(),o=lT.begin("mutate");e.map(i),o(),r()})}}let uT=!1;function B$(){uT=!0}function yS(){uT=!1}let Ng=null;function H3(e){if(!R3||!at.observeMutations)return;const{treeCallback:t=yg,nodeCallback:r=yg,pseudoElementsCallback:n=yg,observeMutationsRoot:i=ir}=e;Ng=new R3(o=>{if(uT)return;const a=il();Kf(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!W3(s.addedNodes[0])&&(at.searchPseudoElements&&n(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&at.searchPseudoElements&&n(s.target.parentNode),s.type==="attributes"&&W3(s.target)&&~uZ.indexOf(s.attributeName))if(s.attributeName==="class"&&YZ(s.target)){const{prefix:c,iconName:u}=N0(nT(s.target));s.target.setAttribute(eT,c||a),u&&s.target.setAttribute(tT,u)}else ZZ(s.target)&&r(s.target)})}),Xa&&Ng.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function tX(){Ng&&Ng.disconnect()}function rX(e){const t=e.getAttribute("style");let r=[];return t&&(r=t.split(";").reduce((n,i)=>{const o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(n[a]=s.join(":").trim()),n},{})),r}function nX(e){const t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"";let i=N0(nT(e));return i.prefix||(i.prefix=il()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=TZ(i.prefix,e.innerText)||aT(i.prefix,fS(e.innerText))),!i.iconName&&at.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function iX(e){const t=Kf(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return at.autoA11y&&(r?t["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(n||Xh()):(t["aria-hidden"]="true",t.focusable="false")),t}function oX(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Go,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function G3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:r,prefix:n,rest:i}=nX(e),o=iX(e),a=hS("parseNodeAttributes",{},e);let s=t.styleParser?rX(e):[];return Ue({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:n,transform:Go,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},a)}const{styles:aX}=Ko;function U$(e){const t=at.autoReplaceSvg==="nest"?G3(e,{styleParser:!1}):G3(e);return~t.extra.classes.indexOf(x$)?ol("generateLayersText",e,t):ol("generateSvgReplacementMutation",e,t)}function sX(){return[...UY,...oS]}function K3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Xa)return Promise.resolve();const r=ir.documentElement.classList,n=h=>r.add("".concat(L3,"-").concat(h)),i=h=>r.remove("".concat(L3,"-").concat(h)),o=at.autoFetchSvg?sX():p$.concat(Object.keys(aX));o.includes("fa")||o.push("fa");const a=[".".concat(x$,":not([").concat(bu,"])")].concat(o.map(h=>".".concat(h,":not([").concat(bu,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=Kf(e.querySelectorAll(a))}catch{}if(s.length>0)n("pending"),i("complete");else return Promise.resolve();const c=lT.begin("onTree"),u=s.reduce((h,p)=>{try{const v=U$(p);v&&h.push(v)}catch(v){b$||v.name==="MissingIcon"&&console.error(v)}return h},[]);return new Promise((h,p)=>{Promise.all(u).then(v=>{F$(v,()=>{n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),c(),h()})}).catch(v=>{c(),p(v)})})}function lX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;U$(e).then(r=>{r&&F$([r],t)})}function uX(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=(t||{}).icon?t:pS(t||{});let{mask:i}=r;return i&&(i=(i||{}).icon?i:pS(i||{})),e(n,Ue(Ue({},r),{},{mask:i}))}}const cX=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Go,symbol:n=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:c=[],attributes:u={},styles:h={}}=t;if(!e)return;const{prefix:p,iconName:v,icon:b}=e;return M0(Ue({type:"icon"},e),()=>(_u("beforeDOMElementCreation",{iconDefinition:e,params:t}),at.autoA11y&&(a?u["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(s||Xh()):(u["aria-hidden"]="true",u.focusable="false")),sT({icons:{main:mS(b),mask:i?mS(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:v,transform:Ue(Ue({},Go),r),symbol:n,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:h,classes:c}})))};var fX={mixout(){return{icon:uX(cX)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=K3,e.nodeCallback=lX,e}}},provides(e){e.i2svg=function(t){const{node:r=ir,callback:n=()=>{}}=t;return K3(r,n)},e.generateSvgReplacementMutation=function(t,r){const{iconName:n,title:i,titleId:o,prefix:a,transform:s,symbol:c,mask:u,maskId:h,extra:p}=r;return new Promise((v,b)=>{Promise.all([vS(n,a),u.iconName?vS(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(x=>{let[_,w]=x;v([t,sT({icons:{main:_,mask:w},prefix:a,iconName:n,transform:s,symbol:c,maskId:h,title:i,titleId:o,extra:p,watchable:!0})])}).catch(b)})},e.generateAbstractIcon=function(t){let{children:r,attributes:n,main:i,transform:o,styles:a}=t;const s=k0(a);s.length>0&&(n.style=s);let c;return iT(o)&&(c=ol("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(c||i.icon),{children:r,attributes:n}}}},dX={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:r=[]}=t;return M0({type:"layer"},()=>{_u("beforeDOMElementCreation",{assembler:e,params:t});let n=[];return e(i=>{Array.isArray(i)?i.map(o=>{n=n.concat(o.abstract)}):n=n.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(at.cssPrefix,"-layers"),...r].join(" ")},children:n}]})}}}},hX={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:r=null,classes:n=[],attributes:i={},styles:o={}}=t;return M0({type:"counter",content:e},()=>(_u("beforeDOMElementCreation",{content:e,params:t}),qZ({content:e.toString(),title:r,extra:{attributes:i,styles:o,classes:["".concat(at.cssPrefix,"-layers-counter"),...n]}})))}}}},pX={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Go,title:n=null,classes:i=[],attributes:o={},styles:a={}}=t;return M0({type:"text",content:e},()=>(_u("beforeDOMElementCreation",{content:e,params:t}),z3({content:e,transform:Ue(Ue({},Go),r),title:n,extra:{attributes:o,styles:a,classes:["".concat(at.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,r){const{title:n,transform:i,extra:o}=r;let a=null,s=null;if(d$){const c=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();a=u.width/c,s=u.height/c}return at.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,z3({content:t.innerHTML,width:a,height:s,transform:i,title:n,extra:o,watchable:!0})])}}};const mX=new RegExp('"',"ug"),Y3=[1105920,1112319],Z3=Ue(Ue(Ue(Ue({},{FontAwesome:{normal:"fas",400:"fas"}}),$Y),tZ),KY),bS=Object.keys(Z3).reduce((e,t)=>(e[t.toLowerCase()]=Z3[t],e),{}),vX=Object.keys(bS).reduce((e,t)=>{const r=bS[t];return e[t]=r[900]||[...Object.entries(r)][0][1],e},{});function gX(e){const t=e.replace(mX,""),r=OZ(t,0),n=r>=Y3[0]&&r<=Y3[1],i=t.length===2?t[0]===t[1]:!1;return{value:fS(i?t[0]:t),isSecondary:n||i}}function yX(e,t){const r=e.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(t),i=isNaN(n)?"normal":n;return(bS[r]||{})[i]||vX[r]}function X3(e,t){const r="".concat(rZ).concat(t.replace(":","-"));return new Promise((n,i)=>{if(e.getAttribute(r)!==null)return n();const a=Kf(e.children).filter(v=>v.getAttribute(sS)===t)[0],s=nl.getComputedStyle(e,t),c=s.getPropertyValue("font-family"),u=c.match(sZ),h=s.getPropertyValue("font-weight"),p=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),n();if(u&&p!=="none"&&p!==""){const v=s.getPropertyValue("content");let b=yX(c,h);const{value:x,isSecondary:_}=gX(v),w=u[0].startsWith("FontAwesome");let O=aT(b,x),S=O;if(w){const E=jZ(x);E.iconName&&E.prefix&&(O=E.iconName,b=E.prefix)}if(O&&!_&&(!a||a.getAttribute(eT)!==b||a.getAttribute(tT)!==S)){e.setAttribute(r,S),a&&e.removeChild(a);const E=oX(),{extra:T}=E;T.attributes[sS]=t,vS(O,b).then(A=>{const j=sT(Ue(Ue({},E),{},{icons:{main:A,mask:L$()},prefix:b,iconName:S,extra:T,watchable:!0})),N=ir.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=j.map(F=>Xp(F)).join(`
|
||
`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function bX(e){return Promise.all([X3(e,"::before"),X3(e,"::after")])}function _X(e){return e.parentNode!==document.head&&!~iZ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(sS)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Q3(e){if(Xa)return new Promise((t,r)=>{const n=Kf(e.querySelectorAll("*")).filter(_X).map(bX),i=lT.begin("searchPseudoElements");B$(),Promise.all(n).then(()=>{i(),yS(),t()}).catch(()=>{i(),yS(),r()})})}var xX={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Q3,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:r=ir}=t;at.searchPseudoElements&&Q3(r)}}};let J3=!1;var wX={mixout(){return{dom:{unwatch(){B$(),J3=!0}}}},hooks(){return{bootstrap(){H3(hS("mutationObserverCallbacks",{}))},noAuto(){tX()},watch(e){const{observeMutationsRoot:t}=e;J3?yS():H3(hS("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const eR=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((r,n)=>{const i=n.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return r.flipX=!0,r;if(o&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(o){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},t)};var OX={mixout(){return{parse:{transform:e=>eR(e)}}},hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-transform");return r&&(e.transform=eR(r)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:r,transform:n,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(n.x*32,", ").concat(n.y*32,") "),c="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),h={transform:"".concat(s," ").concat(c," ").concat(u)},p={transform:"translate(".concat(o/2*-1," -256)")},v={outer:a,inner:h,path:p};return{tag:"g",attributes:Ue({},v.outer),children:[{tag:"g",attributes:Ue({},v.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Ue(Ue({},r.icon.attributes),v.path)}]}]}}}};const w1={x:0,y:0,width:"100%",height:"100%"};function tR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function SX(e){return e.tag==="g"?e.children:[e]}var PX={hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-mask"),n=r?N0(r.split(" ").map(i=>i.trim())):L$();return n.prefix||(n.prefix=il()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:r,attributes:n,main:i,mask:o,maskId:a,transform:s}=t;const{width:c,icon:u}=i,{width:h,icon:p}=o,v=gZ({transform:s,containerWidth:h,iconWidth:c}),b={tag:"rect",attributes:Ue(Ue({},w1),{},{fill:"white"})},x=u.children?{children:u.children.map(tR)}:{},_={tag:"g",attributes:Ue({},v.inner),children:[tR(Ue({tag:u.tag,attributes:Ue(Ue({},u.attributes),v.path)},x))]},w={tag:"g",attributes:Ue({},v.outer),children:[_]},O="mask-".concat(a||Xh()),S="clip-".concat(a||Xh()),E={tag:"mask",attributes:Ue(Ue({},w1),{},{id:O,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,w]},T={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:SX(p)},E]};return r.push(T,{tag:"rect",attributes:Ue({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(O,")")},w1)}),{children:r,attributes:n}}}},CX={provides(e){let t=!1;nl.matchMedia&&(t=nl.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const r=[],n={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Ue(Ue({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=Ue(Ue({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Ue(Ue({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Ue(Ue({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ue(Ue({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:Ue(Ue({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Ue(Ue({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||r.push({tag:"path",attributes:Ue(Ue({},n),{},{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:Ue(Ue({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},EX={hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-symbol"),n=r===null?!1:r===""?!0:r;return e.symbol=n,e}}}},TX=[_Z,fX,dX,hX,pX,xX,wX,OX,PX,CX,EX];$Z(TX,{mixoutsTo:_i});_i.noAuto;_i.config;_i.library;_i.dom;const _S=_i.parse;_i.findIconDefinition;_i.toHtml;const jX=_i.icon;_i.layer;_i.text;_i.counter;var O1={exports:{}},S1,rR;function AX(){if(rR)return S1;rR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return S1=e,S1}var P1,nR;function kX(){if(nR)return P1;nR=1;var e=AX();function t(){}function r(){}return r.resetWarningCache=t,P1=function(){function n(a,s,c,u,h,p){if(p!==e){var v=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 v.name="Invariant Violation",v}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},P1}var iR;function RX(){return iR||(iR=1,O1.exports=kX()()),O1.exports}var NX=RX();const H=Nt(NX);function oR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ho(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oR(Object(r),!0).forEach(function(n){Wc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mg(e){"@babel/helpers - typeof";return Mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mg(e)}function Wc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MX(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function LX(e,t){if(e==null)return{};var r=MX(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xS(e){return IX(e)||DX(e)||$X(e)||FX()}function IX(e){if(Array.isArray(e))return wS(e)}function DX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $X(e,t){if(e){if(typeof e=="string")return wS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wS(e,t)}}function wS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FX(){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 BX(e){var t,r=e.beat,n=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,c=e.spin,u=e.spinPulse,h=e.spinReverse,p=e.pulse,v=e.fixedWidth,b=e.inverse,x=e.border,_=e.listItem,w=e.flip,O=e.size,S=e.rotation,E=e.pull,T=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":c,"fa-spin-reverse":h,"fa-spin-pulse":u,"fa-pulse":p,"fa-fw":v,"fa-inverse":b,"fa-border":x,"fa-li":_,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Wc(t,"fa-".concat(O),typeof O<"u"&&O!==null),Wc(t,"fa-rotate-".concat(S),typeof S<"u"&&S!==null&&S!==0),Wc(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),Wc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(T).map(function(A){return T[A]?A:null}).filter(function(A){return A})}function UX(e){return e=e-0,e===e}function z$(e){return UX(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var zX=["style"];function VX(e){return e.charAt(0).toUpperCase()+e.slice(1)}function WX(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=z$(r.slice(0,n)),o=r.slice(n+1).trim();return i.startsWith("webkit")?t[VX(i)]=o:t[i]=o,t},{})}function V$(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(c){return V$(e,c)}),i=Object.keys(t.attributes||{}).reduce(function(c,u){var h=t.attributes[u];switch(u){case"class":c.attrs.className=h,delete t.attributes.class;break;case"style":c.attrs.style=WX(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?c.attrs[u.toLowerCase()]=h:c.attrs[z$(u)]=h}return c},{attrs:{}}),o=r.style,a=o===void 0?{}:o,s=LX(r,zX);return i.attrs.style=Ho(Ho({},i.attrs.style),a),e.apply(void 0,[t.tag,Ho(Ho({},i.attrs),s)].concat(xS(n)))}var W$=!1;try{W$=!0}catch{}function qX(){if(!W$&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function aR(e){if(e&&Mg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(_S.icon)return _S.icon(e);if(e===null)return null;if(e&&Mg(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 C1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Wc({},e,t):{}}var sR={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},Ge=Z.forwardRef(function(e,t){var r=Ho(Ho({},sR),e),n=r.icon,i=r.mask,o=r.symbol,a=r.className,s=r.title,c=r.titleId,u=r.maskId,h=aR(n),p=C1("classes",[].concat(xS(BX(r)),xS((a||"").split(" ")))),v=C1("transform",typeof r.transform=="string"?_S.transform(r.transform):r.transform),b=C1("mask",aR(i)),x=jX(h,Ho(Ho(Ho(Ho({},p),v),b),{},{symbol:o,title:s,titleId:c,maskId:u}));if(!x)return qX("Could not find icon",h),null;var _=x.abstract,w={ref:t};return Object.keys(r).forEach(function(O){sR.hasOwnProperty(O)||(w[O]=r[O])}),HX(_[0],w)});Ge.displayName="FontAwesomeIcon";Ge.propTypes={beat:H.bool,border:H.bool,beatFade:H.bool,bounce:H.bool,className:H.string,fade:H.bool,flash:H.bool,mask:H.oneOfType([H.object,H.array,H.string]),maskId:H.string,fixedWidth:H.bool,inverse:H.bool,flip:H.oneOf([!0,!1,"horizontal","vertical","both"]),icon:H.oneOfType([H.object,H.array,H.string]),listItem:H.bool,pull:H.oneOf(["right","left"]),pulse:H.bool,rotation:H.oneOf([0,90,180,270]),shake:H.bool,size:H.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:H.bool,spinPulse:H.bool,spinReverse:H.bool,symbol:H.oneOfType([H.bool,H.string]),title:H.string,titleId:H.string,transform:H.oneOfType([H.string,H.object]),swapOpacity:H.bool};var HX=V$.bind(null,Z.createElement);function q$(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=q$(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ze(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=q$(e))&&(n&&(n+=" "),n+=t);return n}var E1={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/var lR;function GX(){return lR||(lR=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&n.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var c in o)t.call(o,c)&&o[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(E1)),E1.exports}var KX=GX();const mt=Nt(KX);function uR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uR(Object(r),!0).forEach(function(n){ZX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZX(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function XX(){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 H$(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function QX(){return document.body.clientWidth<window.innerWidth}function JX(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function eQ(){var e=XX(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],r=t?parseInt(t.style.paddingRight||0,10):0;QX()&&H$(r+e)}var tQ;function ct(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tQ;return t?e.split(" ").map(function(r){return t[r]||r}).join(" "):e}function fl(e,t){var r={};return Object.keys(e).forEach(function(n){t.indexOf(n)===-1&&(r[n]=e[n])}),r}function G$(e,t){for(var r=Array.isArray(t)?t:[t],n=r.length,i,o={};n>0;)n-=1,i=r[n],o[i]=e[i];return o}var cR={};function OS(e){cR[e]||(typeof console<"u"&&console.error(e),cR[e]=!0)}function K$(e,t){return function(n,i,o){n[i]!==null&&typeof n[i]<"u"&&OS('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
|
||
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];return e.apply(void 0,[n,i,o].concat(s))}}var rQ=(typeof window>"u"?"undefined":xu(window))==="object"&&window.Element||function(){};function cT(e,t,r){if(!(e[t]instanceof rQ))return new Error("Invalid prop `"+t+"` supplied to `"+r+"`. Expected prop to be an instance of Element. Validation failed.")}var af=H.oneOfType([H.string,H.func,cT,H.shape({current:H.any})]),kt=H.oneOfType([H.func,H.string,H.shape({$$typeof:H.symbol,render:H.func}),H.arrayOf(H.oneOfType([H.func,H.string,H.shape({$$typeof:H.symbol,render:H.func})]))]),Lg={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Ig=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Vv={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Ft={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},nQ=["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"],fT=!!(typeof window<"u"&&window.document&&window.document.createElement);function iQ(e){return e&&xu(e)==="object"?"current"in e:!1}function Y$(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function SS(e){var t=xu(e);return e!=null&&(t==="object"||t==="function")}function fR(e){var t=xu(e),r=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&Y$(e)==="[object Symbol]")return r;if(SS(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=SS(n)?"".concat(n):n}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)?r:+e}function oQ(e){if(!SS(e))return!1;var t=Y$(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function aQ(e){if(iQ(e))return e.current;if(oQ(e))return e();if(typeof e=="string"&&fT){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 dR(e){return e===null?!1:Array.isArray(e)||fT&&typeof e.length=="number"}function Jh(e,t){var r=aQ(e);return t?dR(r)?r:r===null?[]:[r]:dR(r)?r[0]:r}var sQ=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function dT(e,t){if(!e||!t)return t;var r=YX({},t);return Object.keys(e).forEach(function(n){r[n]===void 0&&(r[n]=e[n]),Object.keys(e[n]||{}).length>0&&xu(e[n])==="object"&&dT(e[n],r)}),r}var lQ=["className","cssModule","noGutters","tag","widths"];function PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PS.apply(this,arguments)}function uQ(e,t){if(e==null)return{};var r=cQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var fQ=["xs","sm","md","lg","xl","xxl"],Tc=H.oneOfType([H.number,H.string]),dQ={tag:kt,noGutters:K$(H.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:H.string,cssModule:H.object,xs:Tc,sm:Tc,md:Tc,lg:Tc,xl:Tc,xxl:Tc,widths:H.array};function Yo(e){var t=e.className,r=e.cssModule,n=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?fQ:a,c=uQ(e,lQ),u=[];s.forEach(function(p,v){var b=e[p];if(delete c[p],!!b){var x=!v;u.push(x?"row-cols-".concat(b):"row-cols-".concat(p,"-").concat(b))}});var h=ct(mt(t,n?"gx-0":null,"row",u),r);return Z.createElement(o,PS({},c,{className:h}))}Yo.propTypes=dQ;var hQ=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CS.apply(this,arguments)}function T1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pQ(e,t){if(e==null)return{};var r=mQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var vQ={children:H.node,className:H.string,color:H.string,container:H.oneOfType([H.bool,H.string]),cssModule:H.object,dark:H.bool,expand:H.oneOfType([H.bool,H.string]),fixed:H.string,light:H.bool,role:H.string,sticky:H.string,tag:kt},gQ=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function Z$(e){var t,r=e.expand,n=r===void 0?!1:r,i=e.className,o=e.cssModule,a=e.light,s=e.dark,c=e.fixed,u=e.sticky,h=e.color,p=e.container,v=p===void 0?"fluid":p,b=e.tag,x=b===void 0?"nav":b,_=e.children,w=pQ(e,hQ),O=ct(mt(i,"navbar",gQ(n),(t={"navbar-light":a,"navbar-dark":s},T1(t,"bg-".concat(h),h),T1(t,"fixed-".concat(c),c),T1(t,"sticky-".concat(u),u),t)),o),S=v&&v===!0?"container":"container-".concat(v);return Z.createElement(x,CS({},w,{className:O}),v?Z.createElement("div",{className:S},_):_)}Z$.propTypes=vQ;var yQ=["className","cssModule","tag"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ES.apply(this,arguments)}function bQ(e,t){if(e==null)return{};var r=_Q(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _Q(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var xQ={className:H.string,cssModule:H.object,tag:kt};function X$(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"a":n,o=bQ(e,yQ),a=ct(mt(t,"navbar-brand"),r);return Z.createElement(i,ES({},o,{className:a}))}X$.propTypes=xQ;var wQ=["className","cssModule","children","tag"];function TS(){return TS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TS.apply(this,arguments)}function hR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function OQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(r),!0).forEach(function(n){SQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SQ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PQ(e,t){if(e==null)return{};var r=CQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var EQ={className:H.string,cssModule:H.object,tag:kt,type:H.string,children:H.node};function Q$(e){var t=e.className,r=e.cssModule,n=e.children,i=e.tag,o=i===void 0?"button":i,a=PQ(e,wQ),s=ct(mt(t,"navbar-toggler"),r);return Z.createElement(o,TS({"aria-label":"Toggle navigation"},OQ({type:"button"},a),{className:s}),n||Z.createElement("span",{className:ct("navbar-toggler-icon",r)}))}Q$.propTypes=EQ;var TQ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jS.apply(this,arguments)}function jQ(e,t){if(e==null)return{};var r=AQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var kQ={card:H.bool,className:H.string,cssModule:H.object,fill:H.bool,horizontal:H.oneOf(["center","end"]),justified:H.bool,navbar:H.bool,pills:H.bool,tabs:H.bool,tag:kt,vertical:H.oneOfType([H.bool,H.string])},RQ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function hT(e){var t=e.className,r=e.cssModule,n=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,c=e.justified,u=e.fill,h=e.navbar,p=e.card,v=e.tag,b=v===void 0?"ul":v,x=jQ(e,TQ),_=ct(mt(t,h?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,RQ(a),{"nav-tabs":n,"card-header-tabs":p&&n,"nav-pills":i,"card-header-pills":p&&i,"nav-justified":c,"nav-fill":u}),r);return Z.createElement(b,jS({},x,{className:_}))}hT.propTypes=kQ;var NQ=["className","cssModule","active","tag"];function AS(){return AS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AS.apply(this,arguments)}function MQ(e,t){if(e==null)return{};var r=LQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var IQ={active:H.bool,className:H.string,cssModule:H.object,tag:kt};function pT(e){var t=e.className,r=e.cssModule,n=e.active,i=e.tag,o=i===void 0?"li":i,a=MQ(e,NQ),s=ct(mt(t,"nav-item",n?"active":!1),r);return Z.createElement(o,AS({},a,{className:s}))}pT.propTypes=IQ;function kS(e){"@babel/helpers - typeof";return kS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kS(e)}var DQ=["className","cssModule","active","tag","innerRef"];function RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RS.apply(this,arguments)}function $Q(e,t){if(e==null)return{};var r=FQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function BQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UQ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zQ(e,t,r){return t&&UQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VQ(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&&NS(e,t)}function NS(e,t){return NS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},NS(e,t)}function WQ(e){var t=HQ();return function(){var n=Dg(e),i;if(t){var o=Dg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return qQ(this,i)}}function qQ(e,t){if(t&&(kS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J$(e)}function J$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HQ(){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 Dg(e){return Dg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dg(e)}var GQ={active:H.bool,className:H.string,cssModule:H.object,disabled:H.bool,href:H.any,innerRef:H.oneOfType([H.object,H.func,H.string]),onClick:H.func,tag:kt},mT=function(e){VQ(r,e);var t=WQ(r);function r(n){var i;return BQ(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(J$(i)),i}return zQ(r,[{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,c=i.tag,u=c===void 0?"a":c,h=i.innerRef,p=$Q(i,DQ),v=ct(mt(o,"nav-link",{disabled:p.disabled,active:s}),a);return Z.createElement(u,RS({},p,{ref:h,onClick:this.onClick,className:v}))}}]),r}(Z.Component);mT.propTypes=GQ;var KQ=["className","cssModule","variant","innerRef"];function MS(){return MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},MS.apply(this,arguments)}function pR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pR(Object(r),!0).forEach(function(n){ZQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZQ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XQ(e,t){if(e==null)return{};var r=QQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var JQ={active:H.bool,"aria-label":H.string,onClick:H.func,variant:H.oneOf(["white"]),className:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func])};function eF(e){var t=e.className;e.cssModule;var r=e.variant,n=e.innerRef,i=XQ(e,KQ),o=ct(mt(t,"btn-close",r&&"btn-close-".concat(r)));return Z.createElement("button",MS({ref:n,type:"button",className:o},YQ({"aria-label":"close"},i)))}eF.propTypes=JQ;var eJ=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function LS(){return LS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LS.apply(this,arguments)}function tJ(e,t){if(e==null)return{};var r=rJ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var nJ={active:H.bool,"aria-label":H.string,block:H.bool,children:H.node,className:H.string,cssModule:H.object,close:H.bool,color:H.string,disabled:H.bool,innerRef:H.oneOfType([H.object,H.func,H.string]),onClick:H.func,outline:H.bool,size:H.string,tag:kt};function _t(e){var t=I.useCallback(function(S){if(e.disabled){S.preventDefault();return}if(e.onClick)return e.onClick(S)},[e.onClick,e.disabled]),r=e.active,n=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,c=e.color,u=c===void 0?"secondary":c,h=e.outline,p=e.size,v=e.tag,b=v===void 0?"button":v,x=e.innerRef,_=tJ(e,eJ);if(a)return Z.createElement(eF,_);var w="btn".concat(h?"-outline":"","-").concat(u),O=ct(mt(o,"btn",w,p?"btn-".concat(p):!1,i?"d-block w-100":!1,{active:r,disabled:e.disabled}),s);return _.href&&b==="button"&&(b="a"),Z.createElement(b,LS({type:b==="button"&&_.onClick?"button":void 0},_,{className:O,ref:x,onClick:t,"aria-label":n}))}_t.propTypes=nJ;var tF=I.createContext(),rF=I.createContext();function mR(e){var t=e.children,r=I.useState(null),n=r[0],i=r[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(tF.Provider,{value:n},I.createElement(rF.Provider,{value:a},t))}var nF=function(t){return Array.isArray(t)?t[0]:t},iF=function(t){if(typeof t=="function"){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.apply(void 0,n)}},IS=function(t,r){if(typeof t=="function")return iF(t,r);t!=null&&(t.current=r)},vR=function(t){return t.reduce(function(r,n){var i=n[0],o=n[1];return r[i]=o,r},{})},gR=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,vT=w8();const lu=Nt(vT);var qn="top",Gi="bottom",Ki="right",Hn="left",gT="auto",Qp=[qn,Gi,Ki,Hn],sf="start",ep="end",iJ="clippingParents",oF="viewport",oh="popper",oJ="reference",yR=Qp.reduce(function(e,t){return e.concat([t+"-"+sf,t+"-"+ep])},[]),aF=[].concat(Qp,[gT]).reduce(function(e,t){return e.concat([t,t+"-"+sf,t+"-"+ep])},[]),aJ="beforeRead",sJ="read",lJ="afterRead",uJ="beforeMain",cJ="main",fJ="afterMain",dJ="beforeWrite",hJ="write",pJ="afterWrite",mJ=[aJ,sJ,lJ,uJ,cJ,fJ,dJ,hJ,pJ];function na(e){return e?(e.nodeName||"").toLowerCase():null}function vi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wu(e){var t=vi(e).Element;return e instanceof t||e instanceof Element}function qi(e){var t=vi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yT(e){if(typeof ShadowRoot>"u")return!1;var t=vi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vJ(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!qi(o)||!na(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function gJ(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(c,u){return c[u]="",c},{});!qi(i)||!na(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const yJ={name:"applyStyles",enabled:!0,phase:"write",fn:vJ,effect:gJ,requires:["computeStyles"]};function Qo(e){return e.split("-")[0]}var pu=Math.max,$g=Math.min,lf=Math.round;function DS(){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 sF(){return!/^((?!chrome|android).)*safari/i.test(DS())}function uf(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&qi(e)&&(i=e.offsetWidth>0&&lf(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&lf(n.height)/e.offsetHeight||1);var a=wu(e)?vi(e):window,s=a.visualViewport,c=!sF()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,h=(n.top+(c&&s?s.offsetTop:0))/o,p=n.width/i,v=n.height/o;return{width:p,height:v,top:h,right:u+p,bottom:h+v,left:u,x:u,y:h}}function bT(e){var t=uf(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function lF(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&yT(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Wa(e){return vi(e).getComputedStyle(e)}function bJ(e){return["table","td","th"].indexOf(na(e))>=0}function dl(e){return((wu(e)?e.ownerDocument:e.document)||window.document).documentElement}function L0(e){return na(e)==="html"?e:e.assignedSlot||e.parentNode||(yT(e)?e.host:null)||dl(e)}function bR(e){return!qi(e)||Wa(e).position==="fixed"?null:e.offsetParent}function _J(e){var t=/firefox/i.test(DS()),r=/Trident/i.test(DS());if(r&&qi(e)){var n=Wa(e);if(n.position==="fixed")return null}var i=L0(e);for(yT(i)&&(i=i.host);qi(i)&&["html","body"].indexOf(na(i))<0;){var o=Wa(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 Jp(e){for(var t=vi(e),r=bR(e);r&&bJ(r)&&Wa(r).position==="static";)r=bR(r);return r&&(na(r)==="html"||na(r)==="body"&&Wa(r).position==="static")?t:r||_J(e)||t}function _T(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nh(e,t,r){return pu(e,$g(t,r))}function xJ(e,t,r){var n=Nh(e,t,r);return n>r?r:n}function uF(){return{top:0,right:0,bottom:0,left:0}}function cF(e){return Object.assign({},uF(),e)}function fF(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var wJ=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,cF(typeof t!="number"?t:fF(t,Qp))};function OJ(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Qo(r.placement),c=_T(s),u=[Hn,Ki].indexOf(s)>=0,h=u?"height":"width";if(!(!o||!a)){var p=wJ(i.padding,r),v=bT(o),b=c==="y"?qn:Hn,x=c==="y"?Gi:Ki,_=r.rects.reference[h]+r.rects.reference[c]-a[c]-r.rects.popper[h],w=a[c]-r.rects.reference[c],O=Jp(o),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=_/2-w/2,T=p[b],A=S-v[h]-p[x],j=S/2-v[h]/2+E,N=Nh(T,j,A),F=c;r.modifiersData[n]=(t={},t[F]=N,t.centerOffset=N-j,t)}}function SJ(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||lF(t.elements.popper,i)&&(t.elements.arrow=i))}const PJ={name:"arrow",enabled:!0,phase:"main",fn:OJ,effect:SJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cf(e){return e.split("-")[1]}var CJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function EJ(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:lf(r*i)/i||0,y:lf(n*i)/i||0}}function _R(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,h=e.roundOffsets,p=e.isFixed,v=a.x,b=v===void 0?0:v,x=a.y,_=x===void 0?0:x,w=typeof h=="function"?h({x:b,y:_}):{x:b,y:_};b=w.x,_=w.y;var O=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),E=Hn,T=qn,A=window;if(u){var j=Jp(r),N="clientHeight",F="clientWidth";if(j===vi(r)&&(j=dl(r),Wa(j).position!=="static"&&s==="absolute"&&(N="scrollHeight",F="scrollWidth")),j=j,i===qn||(i===Hn||i===Ki)&&o===ep){T=Gi;var V=p&&j===A&&A.visualViewport?A.visualViewport.height:j[N];_-=V-n.height,_*=c?1:-1}if(i===Hn||(i===qn||i===Gi)&&o===ep){E=Ki;var B=p&&j===A&&A.visualViewport?A.visualViewport.width:j[F];b-=B-n.width,b*=c?1:-1}}var W=Object.assign({position:s},u&&CJ),q=h===!0?EJ({x:b,y:_},vi(r)):{x:b,y:_};if(b=q.x,_=q.y,c){var J;return Object.assign({},W,(J={},J[T]=S?"0":"",J[E]=O?"0":"",J.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+_+"px)":"translate3d("+b+"px, "+_+"px, 0)",J))}return Object.assign({},W,(t={},t[T]=S?_+"px":"",t[E]=O?b+"px":"",t.transform="",t))}function TJ(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,c=s===void 0?!0:s,u={placement:Qo(t.placement),variation:cf(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,_R(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_R(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:TJ,data:{}};var Wv={passive:!0};function AJ(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,c=vi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(h){h.addEventListener("scroll",r.update,Wv)}),s&&c.addEventListener("resize",r.update,Wv),function(){o&&u.forEach(function(h){h.removeEventListener("scroll",r.update,Wv)}),s&&c.removeEventListener("resize",r.update,Wv)}}const kJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AJ,data:{}};var RJ={left:"right",right:"left",bottom:"top",top:"bottom"};function _g(e){return e.replace(/left|right|bottom|top/g,function(t){return RJ[t]})}var NJ={start:"end",end:"start"};function xR(e){return e.replace(/start|end/g,function(t){return NJ[t]})}function xT(e){var t=vi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function wT(e){return uf(dl(e)).left+xT(e).scrollLeft}function MJ(e,t){var r=vi(e),n=dl(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=sF();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+wT(e),y:c}}function LJ(e){var t,r=dl(e),n=xT(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=pu(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=pu(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+wT(e),c=-n.scrollTop;return Wa(i||r).direction==="rtl"&&(s+=pu(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function OT(e){var t=Wa(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function dF(e){return["html","body","#document"].indexOf(na(e))>=0?e.ownerDocument.body:qi(e)&&OT(e)?e:dF(L0(e))}function Mh(e,t){var r;t===void 0&&(t=[]);var n=dF(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=vi(n),a=i?[o].concat(o.visualViewport||[],OT(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Mh(L0(a)))}function $S(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function IJ(e,t){var r=uf(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function wR(e,t,r){return t===oF?$S(MJ(e,r)):wu(t)?IJ(t,r):$S(LJ(dl(e)))}function DJ(e){var t=Mh(L0(e)),r=["absolute","fixed"].indexOf(Wa(e).position)>=0,n=r&&qi(e)?Jp(e):e;return wu(n)?t.filter(function(i){return wu(i)&&lF(i,n)&&na(i)!=="body"}):[]}function $J(e,t,r,n){var i=t==="clippingParents"?DJ(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(c,u){var h=wR(e,u,n);return c.top=pu(h.top,c.top),c.right=$g(h.right,c.right),c.bottom=$g(h.bottom,c.bottom),c.left=pu(h.left,c.left),c},wR(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function hF(e){var t=e.reference,r=e.element,n=e.placement,i=n?Qo(n):null,o=n?cf(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case qn:c={x:a,y:t.y-r.height};break;case Gi:c={x:a,y:t.y+t.height};break;case Ki:c={x:t.x+t.width,y:s};break;case Hn:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?_T(i):null;if(u!=null){var h=u==="y"?"height":"width";switch(o){case sf:c[u]=c[u]-(t[h]/2-r[h]/2);break;case ep:c[u]=c[u]+(t[h]/2-r[h]/2);break}}return c}function tp(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,c=s===void 0?iJ:s,u=r.rootBoundary,h=u===void 0?oF:u,p=r.elementContext,v=p===void 0?oh:p,b=r.altBoundary,x=b===void 0?!1:b,_=r.padding,w=_===void 0?0:_,O=cF(typeof w!="number"?w:fF(w,Qp)),S=v===oh?oJ:oh,E=e.rects.popper,T=e.elements[x?S:v],A=$J(wu(T)?T:T.contextElement||dl(e.elements.popper),c,h,a),j=uf(e.elements.reference),N=hF({reference:j,element:E,strategy:"absolute",placement:i}),F=$S(Object.assign({},E,N)),V=v===oh?F:j,B={top:A.top-V.top+O.top,bottom:V.bottom-A.bottom+O.bottom,left:A.left-V.left+O.left,right:V.right-A.right+O.right},W=e.modifiersData.offset;if(v===oh&&W){var q=W[i];Object.keys(B).forEach(function(J){var Q=[Ki,Gi].indexOf(J)>=0?1:-1,ne=[qn,Gi].indexOf(J)>=0?"y":"x";B[J]+=q[ne]*Q})}return B}function FJ(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?aF:c,h=cf(n),p=h?s?yR:yR.filter(function(x){return cf(x)===h}):Qp,v=p.filter(function(x){return u.indexOf(x)>=0});v.length===0&&(v=p);var b=v.reduce(function(x,_){return x[_]=tp(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[Qo(_)],x},{});return Object.keys(b).sort(function(x,_){return b[x]-b[_]})}function BJ(e){if(Qo(e)===gT)return[];var t=_g(e);return[xR(e),t,xR(t)]}function UJ(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,c=r.fallbackPlacements,u=r.padding,h=r.boundary,p=r.rootBoundary,v=r.altBoundary,b=r.flipVariations,x=b===void 0?!0:b,_=r.allowedAutoPlacements,w=t.options.placement,O=Qo(w),S=O===w,E=c||(S||!x?[_g(w)]:BJ(w)),T=[w].concat(E).reduce(function(le,ce){return le.concat(Qo(ce)===gT?FJ(t,{placement:ce,boundary:h,rootBoundary:p,padding:u,flipVariations:x,allowedAutoPlacements:_}):ce)},[]),A=t.rects.reference,j=t.rects.popper,N=new Map,F=!0,V=T[0],B=0;B<T.length;B++){var W=T[B],q=Qo(W),J=cf(W)===sf,Q=[qn,Gi].indexOf(q)>=0,ne=Q?"width":"height",ae=tp(t,{placement:W,boundary:h,rootBoundary:p,altBoundary:v,padding:u}),se=Q?J?Ki:Hn:J?Gi:qn;A[ne]>j[ne]&&(se=_g(se));var oe=_g(se),K=[];if(o&&K.push(ae[q]<=0),s&&K.push(ae[se]<=0,ae[oe]<=0),K.every(function(le){return le})){V=W,F=!1;break}N.set(W,K)}if(F)for(var G=x?3:1,z=function(ce){var de=T.find(function(be){var M=N.get(be);if(M)return M.slice(0,ce).every(function($){return $})});if(de)return V=de,"break"},re=G;re>0;re--){var X=z(re);if(X==="break")break}t.placement!==V&&(t.modifiersData[n]._skip=!0,t.placement=V,t.reset=!0)}}const zJ={name:"flip",enabled:!0,phase:"main",fn:UJ,requiresIfExists:["offset"],data:{_skip:!1}};function OR(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function SR(e){return[qn,Ki,Gi,Hn].some(function(t){return e[t]>=0})}function VJ(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=tp(t,{elementContext:"reference"}),s=tp(t,{altBoundary:!0}),c=OR(a,n),u=OR(s,i,o),h=SR(c),p=SR(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const WJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:VJ};function qJ(e,t,r){var n=Qo(e),i=[Hn,qn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Hn,Ki].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function HJ(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=aF.reduce(function(h,p){return h[p]=qJ(p,t.rects,o),h},{}),s=a[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const GJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HJ};function KJ(e){var t=e.state,r=e.name;t.modifiersData[r]=hF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const YJ={name:"popperOffsets",enabled:!0,phase:"read",fn:KJ,data:{}};function ZJ(e){return e==="x"?"y":"x"}function XJ(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,c=r.boundary,u=r.rootBoundary,h=r.altBoundary,p=r.padding,v=r.tether,b=v===void 0?!0:v,x=r.tetherOffset,_=x===void 0?0:x,w=tp(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:h}),O=Qo(t.placement),S=cf(t.placement),E=!S,T=_T(O),A=ZJ(T),j=t.modifiersData.popperOffsets,N=t.rects.reference,F=t.rects.popper,V=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,B=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(j){if(o){var J,Q=T==="y"?qn:Hn,ne=T==="y"?Gi:Ki,ae=T==="y"?"height":"width",se=j[T],oe=se+w[Q],K=se-w[ne],G=b?-F[ae]/2:0,z=S===sf?N[ae]:F[ae],re=S===sf?-F[ae]:-N[ae],X=t.elements.arrow,le=b&&X?bT(X):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uF(),de=ce[Q],be=ce[ne],M=Nh(0,N[ae],le[ae]),$=E?N[ae]/2-G-M-de-B.mainAxis:z-M-de-B.mainAxis,Y=E?-N[ae]/2+G+M+be+B.mainAxis:re+M+be+B.mainAxis,ue=t.elements.arrow&&Jp(t.elements.arrow),ie=ue?T==="y"?ue.clientTop||0:ue.clientLeft||0:0,he=(J=W==null?void 0:W[T])!=null?J:0,Se=se+$-he-ie,Fe=se+Y-he,ge=Nh(b?$g(oe,Se):oe,se,b?pu(K,Fe):K);j[T]=ge,q[T]=ge-se}if(s){var Ee,je=T==="x"?qn:Hn,Me=T==="x"?Gi:Ki,He=j[A],Be=A==="y"?"height":"width",qe=He+w[je],ye=He-w[Me],we=[qn,Hn].indexOf(O)!==-1,Ae=(Ee=W==null?void 0:W[A])!=null?Ee:0,ke=we?qe:He-N[Be]-F[Be]-Ae+B.altAxis,De=we?He+N[Be]+F[Be]-Ae-B.altAxis:ye,Ke=b&&we?xJ(ke,He,De):Nh(b?ke:qe,He,b?De:ye);j[A]=Ke,q[A]=Ke-He}t.modifiersData[n]=q}}const QJ={name:"preventOverflow",enabled:!0,phase:"main",fn:XJ,requiresIfExists:["offset"]};function JJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function eee(e){return e===vi(e)||!qi(e)?xT(e):JJ(e)}function tee(e){var t=e.getBoundingClientRect(),r=lf(t.width)/e.offsetWidth||1,n=lf(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ree(e,t,r){r===void 0&&(r=!1);var n=qi(t),i=qi(t)&&tee(t),o=dl(t),a=uf(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((na(t)!=="body"||OT(o))&&(s=eee(t)),qi(t)?(c=uf(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=wT(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function nee(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function iee(e){var t=nee(e);return mJ.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function oee(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function aee(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var PR={placement:"bottom",modifiers:[],strategy:"absolute"};function CR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function see(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?PR:i;return function(s,c,u){u===void 0&&(u=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},PR,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},p=[],v=!1,b={state:h,setOptions:function(O){var S=typeof O=="function"?O(h.options):O;_(),h.options=Object.assign({},o,h.options,S),h.scrollParents={reference:wu(s)?Mh(s):s.contextElement?Mh(s.contextElement):[],popper:Mh(c)};var E=iee(aee([].concat(n,h.options.modifiers)));return h.orderedModifiers=E.filter(function(T){return T.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var O=h.elements,S=O.reference,E=O.popper;if(CR(S,E)){h.rects={reference:ree(S,Jp(E),h.options.strategy==="fixed"),popper:bT(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(B){return h.modifiersData[B.name]=Object.assign({},B.data)});for(var T=0;T<h.orderedModifiers.length;T++){if(h.reset===!0){h.reset=!1,T=-1;continue}var A=h.orderedModifiers[T],j=A.fn,N=A.options,F=N===void 0?{}:N,V=A.name;typeof j=="function"&&(h=j({state:h,options:F,name:V,instance:b})||h)}}}},update:oee(function(){return new Promise(function(w){b.forceUpdate(),w(h)})}),destroy:function(){_(),v=!0}};if(!CR(s,c))return b;b.setOptions(u).then(function(w){!v&&u.onFirstUpdate&&u.onFirstUpdate(w)});function x(){h.orderedModifiers.forEach(function(w){var O=w.name,S=w.options,E=S===void 0?{}:S,T=w.effect;if(typeof T=="function"){var A=T({state:h,name:O,instance:b,options:E}),j=function(){};p.push(A||j)}})}function _(){p.forEach(function(w){return w()}),p=[]}return b}}var lee=[kJ,YJ,jJ,yJ,GJ,zJ,QJ,PJ,WJ],uee=see({defaultModifiers:lee}),j1,ER;function cee(){if(ER)return j1;ER=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var s,c,u;if(Array.isArray(o)){if(s=o.length,s!=a.length)return!1;for(c=s;c--!==0;)if(!i(o[c],a[c]))return!1;return!0}var h;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(h=o.entries();!(c=h.next()).done;)if(!a.has(c.value[0]))return!1;for(h=o.entries();!(c=h.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(h=o.entries();!(c=h.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(s=o.length,s!=a.length)return!1;for(c=s;c--!==0;)if(o[c]!==a[c])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===a.toString();if(u=Object.keys(o),s=u.length,s!==Object.keys(a).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(e&&o instanceof Element)return!1;for(c=s;c--!==0;)if(!((u[c]==="_owner"||u[c]==="__v"||u[c]==="__o")&&o.$$typeof)&&!i(o[u[c]],a[u[c]]))return!1;return!0}return o!==o&&a!==a}return j1=function(a,s){try{return i(a,s)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},j1}var fee=cee();const dee=Nt(fee);var hee=[],pee=function(t,r,n){n===void 0&&(n={});var i=I.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||hee},a=I.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],u=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var x=b.state,_=Object.keys(x.elements);vT.flushSync(function(){c({styles:vR(_.map(function(w){return[w,x.styles[w]||{}]})),attributes:vR(_.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),h=I.useMemo(function(){var v={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return dee(i.current,v)?i.current||v:(i.current=v,v)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),p=I.useRef();return gR(function(){p.current&&p.current.setOptions(h)},[h]),gR(function(){if(!(t==null||r==null)){var v=n.createPopper||uee,b=v(t,r,h);return p.current=b,function(){b.destroy(),p.current=null}}},[t,r,n.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}},mee=function(){},vee=function(){return Promise.resolve(null)},gee=[];function pF(e){var t=e.placement,r=t===void 0?"bottom":t,n=e.strategy,i=n===void 0?"absolute":n,o=e.modifiers,a=o===void 0?gee:o,s=e.referenceElement,c=e.onFirstUpdate,u=e.innerRef,h=e.children,p=I.useContext(tF),v=I.useState(null),b=v[0],x=v[1],_=I.useState(null),w=_[0],O=_[1];I.useEffect(function(){IS(u,b)},[u,b]);var S=I.useMemo(function(){return{placement:r,strategy:i,onFirstUpdate:c,modifiers:[].concat(a,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[r,i,c,a,w]),E=pee(s||p,b,S),T=E.state,A=E.styles,j=E.forceUpdate,N=E.update,F=I.useMemo(function(){return{ref:x,style:A.popper,placement:T?T.placement:r,hasPopperEscaped:T&&T.modifiersData.hide?T.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:T&&T.modifiersData.hide?T.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:A.arrow,ref:O},forceUpdate:j||mee,update:N||vee}},[x,O,r,T,A,N,j]);return nF(h)(F)}var A1,TR;function yee(){if(TR)return A1;TR=1;var e=function(){};return A1=e,A1}var bee=yee();const _ee=Nt(bee);function xee(e){var t=e.children,r=e.innerRef,n=I.useContext(rF),i=I.useCallback(function(o){IS(r,o),iF(n,o)},[r,n]);return I.useEffect(function(){return function(){return IS(r,null)}},[]),I.useEffect(function(){_ee(!!n,"`Reference` should not be used outside of a `Manager` component.")},[n]),nF(t)({ref:i})}var rp=Z.createContext({}),mF=Z.createContext({});function FS(e){"@babel/helpers - typeof";return FS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FS(e)}var wee=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function BS(){return BS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BS.apply(this,arguments)}function Fs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oee(e,t){if(e==null)return{};var r=See(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function See(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Pee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Eee(e,t,r){return t&&Cee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tee(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&&US(e,t)}function US(e,t){return US=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},US(e,t)}function jee(e){var t=kee();return function(){var n=Fg(e),i;if(t){var o=Fg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Aee(this,i)}}function Aee(e,t){if(t&&(FS(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 kee(){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 Fg(e){return Fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fg(e)}var Ree={a11y:H.bool,disabled:H.bool,direction:H.oneOf(["up","down","start","end","left","right"]),group:H.bool,isOpen:H.bool,nav:H.bool,active:H.bool,size:H.string,tag:kt,toggle:H.func,children:H.node,className:H.string,cssModule:H.object,dropup:H.bool,inNavbar:H.bool,setActiveFromChild:H.bool,menuRole:H.oneOf(["listbox","menu"])},Nee={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Mee=[Ft.space,Ft.enter,Ft.up,Ft.down,Ft.end,Ft.home],hl=function(e){Tee(r,e);var t=jee(r);function r(n){var i;return Pee(this,r),i=t.call(this,n),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=Z.createRef(),i.menuRef=Z.createRef(),i.toggleRef=Z.createRef(),i}return Eee(r,[{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!==Ft.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var c=s.contains(i.target),u=a&&a.contains(i.target)&&a!==i.target,h=!1;o&&(h=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((c&&!h||u)&&(i.type!=="keyup"||i.which===Ft.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,c=Ft.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||c&&!this.props.a11y||c&&!(a||s))&&((Mee.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([Ft.space,Ft.enter,Ft.up,Ft.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var S;return(S=o.getMenuItems()[0])===null||S===void 0?void 0:S.focus()});else if(this.props.isOpen&&c){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===Ft.esc&&this.toggle(i);if(this.props.isOpen&&a){if([Ft.tab,Ft.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Ft.space,Ft.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Ft.down,Ft.up].indexOf(i.which)>-1||[Ft.n,Ft.p].indexOf(i.which)>-1&&i.ctrlKey){var h=this.getMenuItems(),p=h.indexOf(i.target);Ft.up===i.which||Ft.p===i.which&&i.ctrlKey?p=p!==0?p-1:h.length-1:(Ft.down===i.which||Ft.n===i.which&&i.ctrlKey)&&(p=p===h.length-1?0:p+1),h[p].focus()}else if(Ft.end===i.which){var v=this.getMenuItems();v[v.length-1].focus()}else if(Ft.home===i.which){var b=this.getMenuItems();b[0].focus()}else if(i.which>=48&&i.which<=90)for(var x=this.getMenuItems(),_=String.fromCharCode(i.which).toLowerCase(),w=0;w<x.length;w+=1){var O=x[w].textContent&&x[w].textContent[0].toLowerCase();if(O===_){x[w].focus();break}}}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}},{key:"getItemType",value:function(){return this.props.menuRole==="listbox"?"option":"menuitem"}},{key:"getMenuItems",value:function(){var i=this.getMenu()||this.getContainer();return[].slice.call(i.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.addEventListener(o,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.removeEventListener(o,i.handleDocumentClick,!0)})}},{key:"toggle",value:function(i){return this.props.disabled?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i,o=this,a=fl(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,c=a.cssModule,u=a.direction,h=a.isOpen,p=a.group,v=a.size,b=a.nav,x=a.setActiveFromChild,_=a.active,w=a.tag;a.menuRole;var O=Oee(a,wee),S=w||(b?"li":"div"),E=!1;x&&Z.Children.map(this.props.children[1].props.children,function(A){A&&A.props.active&&(E=!0)});var T=ct(mt(s,b&&_?"active":!1,x&&E?"active":!1,(i={"btn-group":p},Fs(i,"btn-group-".concat(v),!!v),Fs(i,"dropdown",!p),Fs(i,"dropup",u==="up"),Fs(i,"dropstart",u==="start"||u==="left"),Fs(i,"dropend",u==="end"||u==="right"),Fs(i,"show",h),Fs(i,"nav-item",b),i)),c);return this.context.insideInputGroup?Z.createElement(rp.Provider,{value:this.getContextValue()},Z.createElement(mR,null,Z.Children.map(this.props.children,function(A){return Z.cloneElement(A,{onKeyDown:o.handleKeyDown})}))):Z.createElement(rp.Provider,{value:this.getContextValue()},Z.createElement(mR,null,Z.createElement(S,BS({},O,Fs({},typeof S=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:T}))))}}]),r}(Z.Component);hl.propTypes=Ree;hl.defaultProps=Nee;hl.contextType=mF;function zS(e){"@babel/helpers - typeof";return zS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zS(e)}var Lee=["className","cssModule","divider","tag","header","active","text"];function VS(){return VS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},VS.apply(this,arguments)}function Iee(e,t){if(e==null)return{};var r=Dee(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function $ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bee(e,t,r){return t&&Fee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uee(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&&WS(e,t)}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},WS(e,t)}function zee(e){var t=Wee();return function(){var n=Bg(e),i;if(t){var o=Bg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Vee(this,i)}}function Vee(e,t){if(t&&(zS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qS(e)}function qS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wee(){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 Bg(e){return Bg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bg(e)}var qee={children:H.node,active:H.bool,disabled:H.bool,divider:H.bool,tag:kt,header:H.bool,onClick:H.func,className:H.string,cssModule:H.object,toggle:H.bool,text:H.bool},Ye=function(e){Uee(r,e);var t=zee(r);function r(n){var i;return $ee(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(qS(i)),i.getTabIndex=i.getTabIndex.bind(qS(i)),i}return Bee(r,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,c=a.header,u=a.divider,h=a.text;if(s||c||u||h){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,c=i.text;return o||a||s||c?"-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,c=a.cssModule,u=a.divider,h=a.tag,p=h===void 0?"button":h,v=a.header,b=a.active,x=a.text,_=Iee(a,Lee),w=ct(mt(s,{disabled:_.disabled,"dropdown-item":!u&&!v&&!x,active:b,"dropdown-header":v,"dropdown-divider":u,"dropdown-item-text":x}),c);return p==="button"&&(v?p="h6":u?p="div":_.href?p="a":x&&(p="span")),Z.createElement(p,VS({type:p==="button"&&(_.onClick||this.props.toggle)?"button":void 0},_,{tabIndex:i,role:o,className:w,onClick:this.onClick}))}}]),r}(Z.Component);Ye.propTypes=qee;Ye.contextType=rp;function HS(e){"@babel/helpers - typeof";return HS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HS(e)}var Hee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function Ug(){return Ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ug.apply(this,arguments)}function jR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jR(Object(r),!0).forEach(function(n){Gee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kee(e){return Qee(e)||Xee(e)||Zee(e)||Yee()}function Yee(){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 Zee(e,t){if(e){if(typeof e=="string")return GS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GS(e,t)}}function Xee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qee(e){if(Array.isArray(e))return GS(e)}function GS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Jee(e,t){if(e==null)return{};var r=ete(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ete(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rte(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nte(e,t,r){return t&&rte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ite(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&&KS(e,t)}function KS(e,t){return KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},KS(e,t)}function ote(e){var t=lte();return function(){var n=zg(e),i;if(t){var o=zg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return ate(this,i)}}function ate(e,t){if(t&&(HS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ste(e)}function ste(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lte(){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 zg(e){return zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zg(e)}var ute={tag:kt,children:H.node.isRequired,dark:H.bool,end:H.bool,flip:H.bool,modifiers:H.array,className:H.string,cssModule:H.object,style:H.object,persist:H.bool,strategy:H.string,container:af,updateOnSelect:H.bool,right:K$(H.bool,'Please use "end" instead.')},cte={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},pl=function(e){ite(r,e);var t=ote(r);function r(){return tte(this,r),t.apply(this,arguments)}return nte(r,[{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,c=o.dark,u=o.end,h=o.right,p=o.tag,v=p===void 0?"div":p,b=o.flip,x=b===void 0?!0:b,_=o.modifiers,w=_===void 0?[]:_,O=o.persist,S=o.strategy,E=o.container,T=o.updateOnSelect,A=Jee(o,Hee),j=ct(mt(a,"dropdown-menu",{"dropdown-menu-dark":c,"dropdown-menu-end":u||h,show:this.context.isOpen}),s),N=v;if(O||this.context.isOpen&&!this.context.inNavbar){var F=cte[this.context.direction]||"bottom",V=u||h?"end":"start",B="".concat(F,"-").concat(V),W=[].concat(Kee(w),[{name:"flip",enabled:!!x}]),q={};O&&(q.display="block",q.visibility=this.context.isOpen?"visible":"hidden");var J=Z.createElement(pF,{placement:B,modifiers:W,strategy:S},function(ne){var ae=ne.ref,se=ne.style,oe=ne.placement,K=ne.update,G=k1(k1(k1({},i.props.style),q),se),z=function(X){ae(X);var le=i.context.onMenuRef;le&&le(X)};return Z.createElement(N,Ug({tabIndex:"-1",role:i.getRole(),ref:z},A,{style:G,"aria-hidden":!i.context.isOpen,className:j,"data-popper-placement":oe,onClick:function(){return T&&K()}}))});return E?lu.createPortal(J,Jh(E)):J}var Q=this.context.onMenuRef;return Z.createElement(N,Ug({tabIndex:"-1",role:this.getRole()},A,{ref:Q,"aria-hidden":!this.context.isOpen,className:j,"data-popper-placement":A.placement,"data-bs-popper":"static"}))}}]),r}(Z.Component);pl.propTypes=ute;pl.contextType=rp;function YS(e){"@babel/helpers - typeof";return YS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YS(e)}var fte=["className","color","cssModule","caret","split","nav","tag","innerRef"];function ZS(){return ZS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ZS.apply(this,arguments)}function dte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hte(e,t){if(e==null)return{};var r=pte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function mte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vte(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gte(e,t,r){return t&&vte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yte(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&&XS(e,t)}function XS(e,t){return XS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},XS(e,t)}function bte(e){var t=xte();return function(){var n=Vg(e),i;if(t){var o=Vg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _te(this,i)}}function _te(e,t){if(t&&(YS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vF(e)}function vF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xte(){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 Vg(e){return Vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vg(e)}var wte={caret:H.bool,color:H.string,children:H.node,className:H.string,cssModule:H.object,disabled:H.bool,onClick:H.func,"aria-haspopup":H.bool,split:H.bool,tag:kt,nav:H.bool,innerRef:H.oneOfType([H.object,H.string,H.func])},Ote={color:"secondary","aria-haspopup":!0},Qa=function(e){yte(r,e);var t=bte(r);function r(n){var i;return mte(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(vF(i)),i}return gte(r,[{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,c=o.cssModule,u=o.caret,h=o.split,p=o.nav,v=o.tag,b=o.innerRef,x=hte(o,fte),_=x["aria-label"]||"Toggle Dropdown",w=ct(mt(a,{"dropdown-toggle":u||h,"dropdown-toggle-split":h,"nav-link":p}),c),O=typeof x.children<"u"?x.children:Z.createElement("span",{className:"visually-hidden"},_),S;p&&!v?(S="a",x.href="#"):v?S=v:(S=_t,x.color=s,x.cssModule=c);var E=function(A){var j=A.ref,N=function(V){j(V);var B=i.context.onToggleRef;B&&B(V)};return Z.createElement(S,ZS({},x,dte({},typeof S=="string"?"ref":"innerRef",N),{className:w,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:O}))};return this.context.inNavbar?Z.createElement(Z.Fragment,null,E({ref:this.context.onToggleRef})):Z.createElement(xee,{innerRef:b},E)}}]),r}(Z.Component);Qa.propTypes=wte;Qa.defaultProps=Ote;Qa.contextType=rp;function Ste(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function QS(e,t){return QS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},QS(e,t)}function Pte(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,QS(e,t)}const AR={disabled:!1},gF=Z.createContext(null);var Cte=function(t){return t.scrollTop},xh="unmounted",Ql="exited",Jl="entering",Bc="entered",JS="exiting",Kn=function(e){Pte(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=i,s=a&&!a.isMounting?n.enter:n.appear,c;return o.appearStatus=null,n.in?s?(c=Ql,o.appearStatus=Jl):c=Bc:n.unmountOnExit||n.mountOnEnter?c=xh:c=Ql,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===xh?{status:Ql}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Jl&&a!==Bc&&(o=Jl):(a===Jl||a===Bc)&&(o=JS)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.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}},r.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:lu.findDOMNode(this);a&&Cte(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ql&&this.setState({status:xh})},r.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[lu.findDOMNode(this),s],u=c[0],h=c[1],p=this.getTimeouts(),v=s?p.appear:p.enter;if(!i&&!a||AR.disabled){this.safeSetState({status:Bc},function(){o.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:Jl},function(){o.props.onEntering(u,h),o.onTransitionEnd(v,function(){o.safeSetState({status:Bc},function(){o.props.onEntered(u,h)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:lu.findDOMNode(this);if(!o||AR.disabled){this.safeSetState({status:Ql},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:JS},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ql},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.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},r.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 c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],h=c[1];this.props.addEndListener(u,h)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===xh)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=Ste(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(gF.Provider,{value:null},typeof a=="function"?a(i,s):Z.cloneElement(Z.Children.only(a),s))},t}(Z.Component);Kn.contextType=gF;Kn.propTypes={};function jc(){}Kn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jc,onEntering:jc,onEntered:jc,onExit:jc,onExiting:jc,onExited:jc};Kn.UNMOUNTED=xh;Kn.EXITED=Ql;Kn.ENTERING=Jl;Kn.ENTERED=Bc;Kn.EXITING=JS;var Ete=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wg.apply(this,arguments)}function Tte(e,t){if(e==null)return{};var r=jte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function kR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function np(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kR(Object(r),!0).forEach(function(n){Ate(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ate(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kte=np(np({},Kn.propTypes),{},{children:H.oneOfType([H.arrayOf(H.node),H.node]),tag:kt,baseClass:H.string,baseClassActive:H.string,className:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func])}),RR=np(np({},Kn.defaultProps),{},{timeout:Lg.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Vn(e){var t=I.useRef(null),r=dT(RR,e),n=r.tag,i=n===void 0?"div":n,o=r.baseClass,a=o===void 0?"fade":o,s=r.baseClassActive,c=s===void 0?"show":s,u=r.className,h=r.cssModule,p=r.children,v=r.innerRef,b=v===void 0?t:v,x=Tte(r,Ete),_=G$(np({defaultProps:RR},x),Ig),w=fl(x,Ig);return Z.createElement(Kn,Wg({nodeRef:b},_),function(O){var S=O==="entered",E=ct(mt(u,a,S&&c),h);return Z.createElement(i,Wg({className:E},w,{ref:b}),p)})}Vn.propTypes=kte;function eP(e){"@babel/helpers - typeof";return eP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eP(e)}var Rte=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Ac;function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qg.apply(this,arguments)}function Nte(e,t){if(e==null)return{};var r=Mte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Lte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ite(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Dte(e,t,r){return t&&Ite(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $te(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&&tP(e,t)}function tP(e,t){return tP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tP(e,t)}function Fte(e){var t=Ute();return function(){var n=Hg(e),i;if(t){var o=Hg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Bte(this,i)}}function Bte(e,t){if(t&&(eP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yF(e)}function yF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ute(){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 Hg(e){return Hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hg(e)}function NR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ff(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NR(Object(r),!0).forEach(function(n){qc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zte=ff(ff({},Kn.propTypes),{},{horizontal:H.bool,isOpen:H.bool,children:H.oneOfType([H.arrayOf(H.node),H.node]),tag:kt,className:H.node,navbar:H.bool,cssModule:H.object,innerRef:H.shape({current:H.object})}),Vte=ff(ff({},Kn.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Lg.Collapse}),Wte=(Ac={},qc(Ac,Vv.ENTERING,"collapsing"),qc(Ac,Vv.ENTERED,"collapse show"),qc(Ac,Vv.EXITING,"collapsing"),qc(Ac,Vv.EXITED,"collapse"),Ac);function qte(e){return Wte[e]||"collapse"}var ST=function(e){$te(r,e);var t=Fte(r);function r(n){var i;return Lte(this,r),i=t.call(this,n),i.state={dimension:null},i.nodeRef=n.innerRef||Z.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(o){i[o]=i[o].bind(yF(i))}),i}return Dte(r,[{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,c=o.isOpen,u=o.className,h=o.navbar,p=o.cssModule,v=o.children;o.innerRef;var b=Nte(o,Rte),x=this.state.dimension,_=G$(b,Ig),w=fl(b,Ig);return Z.createElement(Kn,qg({},_,{in:c,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(O){var S=qte(O),E=ct(mt(u,s&&"collapse-horizontal",S,h&&"navbar-collapse"),p),T=x===null?null:qc({},s?"width":"height",x);return Z.createElement(a,qg({},w,{style:ff(ff({},w.style),T),className:E,ref:i.nodeRef}),v)})}}]),r}(I.Component);ST.propTypes=zte;ST.defaultProps=Vte;var Hte=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function rP(){return rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rP.apply(this,arguments)}function Gte(e,t){if(e==null)return{};var r=Kte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Yte={body:H.bool,className:H.string,color:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func]),inverse:H.bool,outline:H.bool,tag:kt};function xi(e){var t=e.className,r=e.cssModule,n=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,c=s===void 0?"div":s,u=e.innerRef,h=Gte(e,Hte),p=ct(mt(t,"card",o?"text-white":!1,i?"card-body":!1,n?"".concat(a?"border":"bg","-").concat(n):!1),r);return Z.createElement(c,rP({},h,{className:p,ref:u}))}xi.propTypes=Yte;var Zte=["className","cssModule","innerRef","tag"];function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nP.apply(this,arguments)}function Xte(e,t){if(e==null)return{};var r=Qte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Jte={className:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func]),tag:kt};function em(e){var t=e.className,r=e.cssModule,n=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Xte(e,Zte),s=ct(mt(t,"card-body"),r);return Z.createElement(o,nP({},a,{className:s,ref:n}))}em.propTypes=Jte;var ere=["className","cssModule","tag"];function iP(){return iP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iP.apply(this,arguments)}function tre(e,t){if(e==null)return{};var r=rre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var nre={className:H.string,cssModule:H.object,tag:kt};function bF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=tre(e,ere),a=ct(mt(t,"card-footer"),r);return Z.createElement(i,iP({},o,{className:a}))}bF.propTypes=nre;var ire=["className","cssModule","tag"];function oP(){return oP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oP.apply(this,arguments)}function ore(e,t){if(e==null)return{};var r=are(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function are(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var sre={className:H.string,cssModule:H.object,tag:kt};function tm(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=ore(e,ire),a=ct(mt(t,"card-header"),r);return Z.createElement(i,oP({},o,{className:a}))}tm.propTypes=sre;var lre=["className","cssModule","tag"];function aP(){return aP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aP.apply(this,arguments)}function ure(e,t){if(e==null)return{};var r=cre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var fre={className:H.string,cssModule:H.object,tag:kt};function _F(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"p":n,o=ure(e,lre),a=ct(mt(t,"card-text"),r);return Z.createElement(i,aP({},o,{className:a}))}_F.propTypes=fre;var dre=["className","cssModule","tag"];function sP(){return sP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sP.apply(this,arguments)}function hre(e,t){if(e==null)return{};var r=pre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var mre={className:H.string,cssModule:H.object,tag:kt};function xF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=hre(e,dre),a=ct(mt(t,"card-title"),r);return Z.createElement(i,sP({},o,{className:a}))}xF.propTypes=mre;function lP(e){"@babel/helpers - typeof";return lP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lP(e)}var vre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uP.apply(this,arguments)}function MR(e){return _re(e)||bre(e)||yre(e)||gre()}function gre(){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 yre(e,t){if(e){if(typeof e=="string")return cP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cP(e,t)}}function bre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _re(e){if(Array.isArray(e))return cP(e)}function cP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xre(e,t){if(e==null)return{};var r=wre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Ore(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Sre(e,t,r){return t&&LR(e.prototype,t),r&&LR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pre(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&&fP(e,t)}function fP(e,t){return fP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fP(e,t)}function Cre(e){var t=Tre();return function(){var n=Gg(e),i;if(t){var o=Gg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Ere(this,i)}}function Ere(e,t){if(t&&(lP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wh(e)}function wh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tre(){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 Gg(e){return Gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gg(e)}function IR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IR(Object(r),!0).forEach(function(n){jre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jre(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Are(){}var kre={children:H.oneOfType([H.node,H.func]).isRequired,popperClassName:H.string,placement:H.string,placementPrefix:H.string,arrowClassName:H.string,hideArrow:H.bool,tag:kt,isOpen:H.bool,cssModule:H.object,offset:H.arrayOf(H.number),fallbackPlacements:H.array,flip:H.bool,container:af,target:af.isRequired,modifiers:H.array,strategy:H.string,boundariesElement:H.oneOfType([H.string,cT]),onClosed:H.func,fade:H.bool,transition:H.shape(Vn.propTypes)},Rre={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Are,fade:!0,transition:xg({},Vn.defaultProps)},PT=function(e){Pre(r,e);var t=Cre(r);function r(n){var i;return Ore(this,r),i=t.call(this,n),i.setTargetNode=i.setTargetNode.bind(wh(i)),i.getTargetNode=i.getTargetNode.bind(wh(i)),i.getRef=i.getRef.bind(wh(i)),i.onClosed=i.onClosed.bind(wh(i)),i.state={isOpen:n.isOpen},i}return Sre(r,[{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 Jh(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Jh(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,c=i.flip;i.target;var u=i.offset,h=i.fallbackPlacements,p=i.placementPrefix,v=i.arrowClassName,b=i.hideArrow,x=i.popperClassName,_=i.tag;i.container;var w=i.modifiers,O=i.strategy,S=i.boundariesElement;i.onClosed;var E=i.fade,T=i.transition,A=i.placement,j=xre(i,vre),N=ct(mt("arrow",v),o),F=ct(mt(x,p?"".concat(p,"-auto"):""),this.props.cssModule),V=w.map(function(J){return J.name}),B=[{name:"offset",options:{offset:u}},{name:"flip",enabled:c,options:{fallbackPlacements:h}},{name:"preventOverflow",options:{boundary:S}}].filter(function(J){return!V.includes(J.name)}),W=[].concat(MR(B),MR(w)),q=xg(xg(xg({},Vn.defaultProps),T),{},{baseClass:E?T.baseClass:"",timeout:E?T.timeout:0});return Z.createElement(Vn,uP({},q,j,{in:s,onExited:this.onClosed,tag:_}),Z.createElement(pF,{referenceElement:this.targetNode,modifiers:W,placement:A,strategy:O},function(J){var Q=J.ref,ne=J.style,ae=J.placement,se=J.isReferenceHidden,oe=J.arrowProps,K=J.update;return Z.createElement("div",{ref:Q,style:ne,className:F,"data-popper-placement":ae,"data-popper-reference-hidden":se?"true":void 0},typeof a=="function"?a({update:K}):a,!b&&Z.createElement("span",{ref:oe.ref,className:N,style:oe.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():lu.createPortal(Z.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}}]),r}(Z.Component);PT.propTypes=kre;PT.defaultProps=Rre;function dP(){return dP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dP.apply(this,arguments)}function ip(e){"@babel/helpers - typeof";return ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ip(e)}function Nre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mre(e,t,r){return t&&DR(e.prototype,t),r&&DR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lre(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&&hP(e,t)}function hP(e,t){return hP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hP(e,t)}function Ire(e){var t=$re();return function(){var n=Kg(e),i;if(t){var o=Kg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Dre(this,i)}}function Dre(e,t){if(t&&(ip(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ui(e)}function ui(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $re(){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 Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kg(e)}var CT={children:H.oneOfType([H.node,H.func]),placement:H.oneOf(nQ),target:af.isRequired,container:af,isOpen:H.bool,disabled:H.bool,hideArrow:H.bool,boundariesElement:H.oneOfType([H.string,cT]),className:H.string,innerClassName:H.string,arrowClassName:H.string,popperClassName:H.string,cssModule:H.object,toggle:H.func,autohide:H.bool,placementPrefix:H.string,delay:H.oneOfType([H.shape({show:H.number,hide:H.number}),H.number]),modifiers:H.array,strategy:H.string,offset:H.arrayOf(H.number),innerRef:H.oneOfType([H.func,H.string,H.object]),trigger:H.string,fade:H.bool,flip:H.bool},wF={show:0,hide:50},Fre={isOpen:!1,hideArrow:!1,autohide:!1,delay:wF,toggle:function(){},trigger:"click",fade:!0};function OF(e,t){return t&&(e===t||t.contains(e))}function $R(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(r){return OF(e,r)})[0]}var ET=function(e){Lre(r,e);var t=Ire(r);function r(n){var i;return Nre(this,r),i=t.call(this,n),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(ui(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ui(i)),i.removeTargetEvents=i.removeTargetEvents.bind(ui(i)),i.toggle=i.toggle.bind(ui(i)),i.showWithDelay=i.showWithDelay.bind(ui(i)),i.hideWithDelay=i.hideWithDelay.bind(ui(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(ui(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(ui(i)),i.show=i.show.bind(ui(i)),i.hide=i.hide.bind(ui(i)),i.onEscKeyDown=i.onEscKeyDown.bind(ui(i)),i.getRef=i.getRef.bind(ui(i)),i.state={isOpen:n.isOpen},i._isMounted=!1,i}return Mre(r,[{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||$R(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!OF(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&$R(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):ip(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return ip(o)==="object"?isNaN(o[i])?wF[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=Jh(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,c=a.cssModule,u=a.innerClassName,h=a.isOpen,p=a.hideArrow,v=a.boundariesElement,b=a.placement,x=a.placementPrefix,_=a.arrowClassName,w=a.popperClassName,O=a.container,S=a.modifiers,E=a.strategy,T=a.offset,A=a.fade,j=a.flip,N=a.children,F=fl(this.props,Object.keys(CT)),V=ct(w,c),B=ct(u,c);return Z.createElement(PT,{className:s,target:o,isOpen:h,hideArrow:p,boundariesElement:v,placement:b,placementPrefix:x,arrowClassName:_,popperClassName:V,container:O,modifiers:S,strategy:E,offset:T,cssModule:c,fade:A,flip:j},function(W){var q=W.update;return Z.createElement("div",dP({},F,{ref:i.getRef,className:B,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof N=="function"?N({update:q}):N)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),r}(Z.Component);ET.propTypes=CT;ET.defaultProps=Fre;var Bre=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Yg(){return Yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yg.apply(this,arguments)}function FR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function R1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FR(Object(r),!0).forEach(function(n){Ure(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ure(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zre(e,t){if(e==null)return{};var r=Vre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Wre={animated:H.bool,bar:H.bool,barAriaLabelledBy:H.string,barAriaValueText:H.string,barClassName:H.string,barStyle:H.object,children:H.node,className:H.string,cssModule:H.object,color:H.string,max:H.oneOfType([H.string,H.number]),min:H.oneOfType([H.string,H.number]),multi:H.bool,striped:H.bool,style:H.object,tag:kt,value:H.oneOfType([H.string,H.number])};function SF(e){var t=e.children,r=e.className,n=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,c=s===void 0?0:s,u=e.max,h=u===void 0?100:u,p=e.animated,v=e.striped,b=e.color,x=e.bar,_=e.multi,w=e.tag,O=w===void 0?"div":w,S=e.style,E=S===void 0?{}:S,T=e.barStyle,A=T===void 0?{}:T,j=e.barAriaValueText,N=e.barAriaLabelledBy,F=zre(e,Bre),V=fR(a)/fR(h)*100,B=ct(mt(r,"progress"),i),W=ct(mt("progress-bar",x&&r||n,p?"progress-bar-animated":null,b?"bg-".concat(b):null,v||p?"progress-bar-striped":null),i),q={className:W,style:R1(R1(R1({},x?E:{}),A),{},{width:"".concat(V,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":c,"aria-valuemax":h,"aria-valuetext":j,"aria-labelledby":N,children:t};return x?Z.createElement(O,Yg({},F,q)):Z.createElement(O,Yg({},F,{style:E,className:B}),_?t:Z.createElement("div",q))}SF.propTypes=Wre;function pP(e){"@babel/helpers - typeof";return pP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pP(e)}function qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hre(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Gre(e,t,r){return t&&Hre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kre(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&&mP(e,t)}function mP(e,t){return mP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mP(e,t)}function Yre(e){var t=Qre();return function(){var n=Zg(e),i;if(t){var o=Zg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Zre(this,i)}}function Zre(e,t){if(t&&(pP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xre(e)}function Xre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qre(){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 Zg(e){return Zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zg(e)}var Jre={children:H.node.isRequired,node:H.any},PF=function(e){Kre(r,e);var t=Yre(r);function r(){return qre(this,r),t.apply(this,arguments)}return Gre(r,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return fT?(!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}}]),r}(Z.Component);PF.propTypes=Jre;function vP(e){"@babel/helpers - typeof";return vP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vP(e)}function BR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(r),!0).forEach(function(n){Uc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lh.apply(this,arguments)}function Uc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ene(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rne(e,t,r){return t&&tne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nne(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&&gP(e,t)}function gP(e,t){return gP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gP(e,t)}function ine(e){var t=ane();return function(){var n=Xg(e),i;if(t){var o=Xg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return one(this,i)}}function one(e,t){if(t&&(vP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fi(e)}function Fi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ane(){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 Xg(e){return Xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xg(e)}function Qg(){}var UR=H.shape(Vn.propTypes),CF={autoFocus:H.bool,backdrop:H.oneOfType([H.bool,H.oneOf(["static"])]),backdropClassName:H.string,backdropTransition:UR,centered:H.bool,children:H.node,contentClassName:H.string,className:H.string,container:af,cssModule:H.object,external:H.node,fade:H.bool,fullscreen:H.oneOfType([H.bool,H.oneOf(["sm","md","lg","xl"])]),innerRef:H.oneOfType([H.object,H.string,H.func]),isOpen:H.bool,keyboard:H.bool,labelledBy:H.string,modalClassName:H.string,modalTransition:UR,onClosed:H.func,onEnter:H.func,onExit:H.func,onOpened:H.func,returnFocusAfterClose:H.bool,role:H.string,scrollable:H.bool,size:H.string,toggle:H.func,trapFocus:H.bool,unmountOnClose:H.bool,wrapClassName:H.string,zIndex:H.oneOfType([H.number,H.string])},sne=Object.keys(CF),lne={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Qg,onClosed:Qg,modalTransition:{timeout:Lg.Modal},backdropTransition:{mountOnEnter:!0,timeout:Lg.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Yn=function(e){nne(r,e);var t=ine(r);function r(n){var i;return ene(this,r),i=t.call(this,n),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Fi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Fi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Fi(i)),i.handleEscape=i.handleEscape.bind(Fi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Fi(i)),i.handleTab=i.handleTab.bind(Fi(i)),i.onOpened=i.onOpened.bind(Fi(i)),i.onClosed=i.onClosed.bind(Fi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Fi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Fi(i)),i.trapFocus=i.trapFocus.bind(Fi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return rne(r,[{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<r.openCount-1)){var o=this.getFocusableChildren(),a=o.length;if(a!==0){for(var s=this.getFocusedChild(),c=0,u=0;u<a;u+=1)if(o[u]===s){c=u;break}i.shiftKey&&c===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&c===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===Ft.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||Qg)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Qg)(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(sQ.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<r.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=Jh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=JX(),r.openCount<1&&(r.originalBodyOverflow=window.getComputedStyle(document.body).overflow),eQ(),r.openCount===0&&(document.body.className=mt(document.body.className,ct("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=r.openCount,r.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(r.openCount<=1){var i=ct("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=r.originalBodyOverflow}this.manageFocusAfterClose(),r.openCount=Math.max(0,r.openCount-1),H$(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,sne),s="modal-dialog";return Z.createElement("div",Lh({},a,{className:ct(mt(s,this.props.className,(i={},Uc(i,"modal-".concat(this.props.size),this.props.size),Uc(i,"".concat(s,"-centered"),this.props.centered),Uc(i,"".concat(s,"-scrollable"),this.props.scrollable),Uc(i,"modal-fullscreen",this.props.fullscreen===!0),Uc(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}}),Z.createElement("div",{className:ct(mt("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,c=a.modalClassName,u=a.backdropClassName,h=a.cssModule,p=a.isOpen,v=a.backdrop,b=a.role,x=a.labelledBy,_=a.external,w=a.innerRef,O={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":x,"aria-modal":!0,role:b,tabIndex:"-1"},S=this.props.fade,E=kc(kc(kc({},Vn.defaultProps),this.props.modalTransition),{},{baseClass:S?this.props.modalTransition.baseClass:"",timeout:S?this.props.modalTransition.timeout:0}),T=kc(kc(kc({},Vn.defaultProps),this.props.backdropTransition),{},{baseClass:S?this.props.backdropTransition.baseClass:"",timeout:S?this.props.backdropTransition.timeout:0}),A=v&&(S?Z.createElement(Vn,Lh({},T,{in:p&&!!v,cssModule:h,className:ct(mt("modal-backdrop",u),h)})):Z.createElement("div",{className:ct(mt("modal-backdrop","show",u),h)}));return Z.createElement(PF,{node:this._element},Z.createElement("div",{className:ct(s)},Z.createElement(Vn,Lh({},O,E,{in:p,onEntered:this.onOpened,onExited:this.onClosed,cssModule:h,className:ct(mt("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),h),innerRef:w}),_,this.renderModalDialog()),A))}return null}}]),r}(Z.Component);Yn.propTypes=CF;Yn.defaultProps=lne;Yn.openCount=0;Yn.originalBodyOverflow=null;var une=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function yP(){return yP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yP.apply(this,arguments)}function cne(e,t){if(e==null)return{};var r=fne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var dne={children:H.node,className:H.string,close:H.object,closeAriaLabel:H.string,cssModule:H.object,tag:kt,toggle:H.func,wrapTag:kt};function la(e){var t,r=e.className,n=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,c=e.wrapTag,u=c===void 0?"div":c,h=e.closeAriaLabel,p=h===void 0?"Close":h,v=e.close,b=cne(e,une),x=ct(mt(r,"modal-header"),n);return!v&&o&&(t=Z.createElement("button",{type:"button",onClick:o,className:ct("btn-close",n),"aria-label":p})),Z.createElement(u,yP({},b,{className:x}),Z.createElement(s,{className:ct("modal-title",n)},i),v||t)}la.propTypes=dne;var hne=["className","cssModule","tag"];function bP(){return bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bP.apply(this,arguments)}function pne(e,t){if(e==null)return{};var r=mne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var vne={className:H.string,cssModule:H.object,tag:kt};function Co(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=pne(e,hne),a=ct(mt(t,"modal-body"),r);return Z.createElement(i,bP({},o,{className:a}))}Co.propTypes=vne;var gne=["className","cssModule","tag"];function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_P.apply(this,arguments)}function yne(e,t){if(e==null)return{};var r=bne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var _ne={className:H.string,cssModule:H.object,tag:kt};function Ja(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=yne(e,gne),a=ct(mt(t,"modal-footer"),r);return Z.createElement(i,_P({},o,{className:a}))}Ja.propTypes=_ne;function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xP.apply(this,arguments)}var xne={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function I0(e){var t=mt("tooltip-arrow",e.arrowClassName),r=mt("tooltip","show",e.popperClassName),n=mt("tooltip-inner",e.innerClassName),i=dT(xne,e);return Z.createElement(ET,xP({},i,{arrowClassName:t,popperClassName:r,innerClassName:n}))}I0.propTypes=CT;var wne=["className","cssModule","tag","flush","horizontal","numbered"];function wP(){return wP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wP.apply(this,arguments)}function One(e,t){if(e==null)return{};var r=Sne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Sne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Pne={className:H.string,cssModule:H.object,flush:H.bool,horizontal:H.oneOfType([H.bool,H.string]),numbered:H.bool,tag:kt},Cne=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function EF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"ul":n,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,c=e.numbered,u=c===void 0?!1:c,h=One(e,wne),p=ct(mt(t,"list-group",o?"list-group-flush":Cne(s),{"list-group-numbered":u}),r);return Z.createElement(i,wP({},h,{className:p}))}EF.propTypes=Pne;var Ene=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function OP(){return OP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OP.apply(this,arguments)}function Tne(e,t){if(e==null)return{};var r=jne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ane={children:H.node,row:H.bool,check:H.bool,switch:H.bool,inline:H.bool,floating:H.bool,noMargin:H.bool,disabled:H.bool,tag:kt,className:H.string,cssModule:H.object};function Jg(e){var t=e.className,r=e.cssModule,n=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,c=e.noMargin,u=e.tag,h=u===void 0?"div":u,p=e.switch,v=Tne(e,Ene),b=o||p,x=ct(mt(t,n?"row":!1,b?"form-check":!1,p?"form-switch":!1,b||c?!1:"mb-3",b&&a?"form-check-inline":!1,b&&i?"disabled":!1,s&&"form-floating"),r);return h==="fieldset"&&(v.disabled=i),Z.createElement(h,OP({},v,{className:x}))}Jg.propTypes=Ane;function SP(e){"@babel/helpers - typeof";return SP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SP(e)}var kne=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function PP(){return PP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PP.apply(this,arguments)}function Rne(e,t){if(e==null)return{};var r=Nne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Mne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ine(e,t,r){return t&&Lne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dne(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&&CP(e,t)}function CP(e,t){return CP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},CP(e,t)}function $ne(e){var t=Bne();return function(){var n=ey(e),i;if(t){var o=ey(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Fne(this,i)}}function Fne(e,t){if(t&&(SP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EP(e)}function EP(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 ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ey(e)}var Une={children:H.node,type:H.string,size:H.oneOfType([H.number,H.string]),bsSize:H.string,valid:H.bool,invalid:H.bool,tag:kt,innerRef:H.oneOfType([H.object,H.func,H.string]),plaintext:H.bool,addon:H.bool,className:H.string,cssModule:H.object},Zr=function(e){Dne(r,e);var t=$ne(r);function r(n){var i;return Mne(this,r),i=t.call(this,n),i.getRef=i.getRef.bind(EP(i)),i.focus=i.focus.bind(EP(i)),i}return Ine(r,[{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,c=s===void 0?"text":s,u=i.bsSize,h=i.valid,p=i.invalid,v=i.tag,b=i.addon,x=i.plaintext,_=i.innerRef,w=Rne(i,kne),O=["switch","radio","checkbox"].indexOf(c)>-1,S=/\D/g,E=c==="textarea",T=c==="select",A=c==="range",j=v||(T||E?c:"input"),N="form-control";x?(N="".concat(N,"-plaintext"),j=v||"input"):A?N="form-range":T?N="form-select":O&&(b?N=null:N="form-check-input"),w.size&&S.test(w.size)&&(OS(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=w.size,delete w.size);var F=ct(mt(o,p&&"is-invalid",h&&"is-valid",u?T?"form-select-".concat(u):"form-control-".concat(u):!1,N),a);return(j==="input"||v&&typeof v=="function")&&(w.type=c==="switch"?"checkbox":c),w.children&&!(x||c==="select"||typeof j!="string"||j==="select")&&(OS('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete w.children),Z.createElement(j,PP({},w,{ref:_,className:F,"aria-invalid":p}))}}]),r}(Z.Component);Zr.propTypes=Une;var zne=["className","cssModule","tag","type","size"];function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ty.apply(this,arguments)}function Vne(e,t){if(e==null)return{};var r=Wne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var qne={className:H.string,cssModule:H.object,size:H.string,tag:kt,type:H.string};function rm(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n;e.type;var o=e.size,a=Vne(e,zne),s=ct(mt(t,"input-group",o?"input-group-".concat(o):null),r);return e.type==="dropdown"?Z.createElement(hl,ty({},a,{className:s})):Z.createElement(mF.Provider,{value:{insideInputGroup:!0}},Z.createElement(i,ty({},a,{className:s})))}rm.propTypes=qne;var Hne=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function TP(){return TP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TP.apply(this,arguments)}function Gne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kne(e,t){if(e==null)return{};var r=Yne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Zne={children:H.node,className:H.string,listClassName:H.string,cssModule:H.object,size:H.string,tag:kt,listTag:kt,"aria-label":H.string};function TT(e){var t=e.className,r=e.listClassName,n=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,c=s===void 0?"ul":s,u=e["aria-label"],h=u===void 0?"pagination":u,p=Kne(e,Hne),v=ct(mt(t),n),b=ct(mt(r,"pagination",Gne({},"pagination-".concat(i),!!i)),n);return Z.createElement(a,{className:v,"aria-label":h},Z.createElement(c,TP({},p,{className:b})))}TT.propTypes=Zne;var Xne=["active","className","cssModule","disabled","tag"];function jP(){return jP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jP.apply(this,arguments)}function Qne(e,t){if(e==null)return{};var r=Jne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var eie={active:H.bool,children:H.node,className:H.string,cssModule:H.object,disabled:H.bool,tag:kt};function mu(e){var t=e.active,r=e.className,n=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Qne(e,Xne),c=ct(mt(r,"page-item",{active:t,disabled:i}),n);return Z.createElement(a,jP({},s,{className:c}))}mu.propTypes=eie;var tie=["className","cssModule","next","previous","first","last","tag"];function AP(){return AP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AP.apply(this,arguments)}function rie(e,t){if(e==null)return{};var r=nie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var iie={"aria-label":H.string,children:H.node,className:H.string,cssModule:H.object,next:H.bool,previous:H.bool,first:H.bool,last:H.bool,tag:kt};function vu(e){var t=e.className,r=e.cssModule,n=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,c=s===void 0?"a":s,u=rie(e,tie),h=ct(mt(t,"page-link"),r),p;i?p="Previous":n?p="Next":o?p="First":a&&(p="Last");var v=e["aria-label"]||p,b;i?b="‹":n?b="›":o?b="«":a&&(b="»");var x=e.children;return x&&Array.isArray(x)&&x.length===0&&(x=null),!u.href&&c==="a"&&(c="button"),(i||n||o||a)&&(x=[Z.createElement("span",{"aria-hidden":"true",key:"caret"},x||b),Z.createElement("span",{className:"visually-hidden",key:"ariaLabel"},v)]),Z.createElement(c,AP({},u,{className:h,"aria-label":v}),x)}vu.propTypes=iie;var oie=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function kP(){return kP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kP.apply(this,arguments)}function zR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ah(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zR(Object(r),!0).forEach(function(n){aie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sie(e,t){if(e==null)return{};var r=lie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var uie={children:H.node,className:H.string,closeClassName:H.string,closeAriaLabel:H.string,color:H.string,cssModule:H.object,fade:H.bool,innerRef:H.oneOfType([H.object,H.string,H.func]),isOpen:H.bool,tag:kt,toggle:H.func,transition:H.shape(Vn.propTypes)};function TF(e){var t=e.className,r=e.closeClassName,n=e.closeAriaLabel,i=n===void 0?"Close":n,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,c=e.color,u=c===void 0?"success":c,h=e.isOpen,p=h===void 0?!0:h,v=e.toggle,b=e.children,x=e.transition,_=x===void 0?ah(ah({},Vn.defaultProps),{},{unmountOnExit:!0}):x,w=e.fade,O=w===void 0?!0:w,S=e.innerRef,E=sie(e,oie),T=ct(mt(t,"alert","alert-".concat(u),{"alert-dismissible":v}),o),A=ct(mt("btn-close",r),o),j=ah(ah(ah({},Vn.defaultProps),_),{},{baseClass:O?_.baseClass:"",timeout:O?_.timeout:0});return Z.createElement(Vn,kP({},E,j,{tag:s,className:T,in:p,role:"alert",innerRef:S}),v?Z.createElement("button",{type:"button",className:A,"aria-label":i,onClick:v}):null,b)}TF.propTypes=uie;var cie=["className","cssModule","tag","active","disabled","action","color"];function RP(){return RP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RP.apply(this,arguments)}function fie(e,t){if(e==null)return{};var r=die(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function die(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var hie={action:H.bool,active:H.bool,className:H.string,cssModule:H.object,color:H.string,disabled:H.bool,tag:kt},pie=function(t){t.preventDefault()};function jF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"li":n,o=e.active,a=e.disabled,s=e.action,c=e.color,u=fie(e,cie),h=ct(mt(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,c?"list-group-item-".concat(c):!1,"list-group-item"),r);return a&&(u.onClick=pie),Z.createElement(i,RP({},u,{className:h}))}jF.propTypes=hie;function NP(e){"@babel/helpers - typeof";return NP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NP(e)}function VR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VR(Object(r),!0).forEach(function(n){vie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MP(){return MP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},MP.apply(this,arguments)}function gie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bie(e,t,r){return t&&yie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ie(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&&LP(e,t)}function LP(e,t){return LP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},LP(e,t)}function xie(e){var t=Oie();return function(){var n=ry(e),i;if(t){var o=ry(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return wie(this,i)}}function wie(e,t){if(t&&(NP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AF(e)}function AF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ry(e)}var Sie=["defaultOpen"],nm=function(e){_ie(r,e);var t=xie(r);function r(n){var i;return gie(this,r),i=t.call(this,n),i.state={isOpen:n.defaultOpen||!1},i.toggle=i.toggle.bind(AF(i)),i}return bie(r,[{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 Z.createElement(hl,MP({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,Sie)))}}]),r}(I.Component);nm.propTypes=mie({defaultOpen:H.bool,onToggle:H.func},hl.propTypes);function IP(e){"@babel/helpers - typeof";return IP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IP(e)}function WR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WR(Object(r),!0).forEach(function(n){Cie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DP(){return DP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},DP.apply(this,arguments)}function Eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function jie(e,t,r){return t&&Tie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aie(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&&$P(e,t)}function $P(e,t){return $P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$P(e,t)}function kie(e){var t=Nie();return function(){var n=ny(e),i;if(t){var o=ny(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Rie(this,i)}}function Rie(e,t){if(t&&(IP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kF(e)}function kF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nie(){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 ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ny(e)}var Mie=["defaultOpen"],wi=function(e){Aie(r,e);var t=kie(r);function r(n){var i;return Eie(this,r),i=t.call(this,n),i.state={isOpen:n.defaultOpen||!1},i.toggle=i.toggle.bind(kF(i)),i}return jie(r,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return Z.createElement(I0,DP({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,Mie)))}}]),r}(I.Component);wi.propTypes=Pie({defaultOpen:H.bool},I0.propTypes);const qa=({className:e,children:t,loading:r=!1,type:n="default",fullWidth:i=!1})=>g.jsx(xi,{body:!0,className:ze(e,{"w-100":i,"w-75 mx-auto":!i,"border-danger":n==="error"}),children:g.jsxs("h3",{className:ze("text-center mb-0",{"text-muted":n==="default","text-danger":n==="error"}),children:[r&&g.jsx(Ge,{icon:n$,spin:!0}),r&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!r&&t]})}),Wt=({title:e,children:t,bodyClassName:r,...n})=>g.jsxs(xi,{...n,children:[e&&g.jsx(tm,{role:"heading","aria-level":4,children:e}),g.jsx(em,{className:r,children:t})]}),Tn=({children:e,type:t,className:r,small:n=!1})=>g.jsx(Wt,{role:"document",className:ze("text-center",{"w-75 mx-auto":!n,"w-100":n,"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"},r),bodyClassName:ze({"p-2":n}),children:e}),RF=({checked:e=!1,onChange:t,className:r,children:n,type:i,inline:o=!1})=>{const a=I.useId(),s=h=>t==null?void 0:t(h.target.checked,h),c={"form-switch":i==="switch","form-checkbox":i==="checkbox"},u=o?{display:"inline-block"}:{};return g.jsxs("span",{className:ze("form-check",c,r),style:u,children:[g.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),g.jsx("label",{className:"form-check-label",htmlFor:a,children:n})]})},NF=e=>g.jsx(RF,{type:"checkbox",...e}),Ha=e=>g.jsx(RF,{type:"switch",...e}),Yf=({children:e,label:t,className:r="",labelClassName:n="",noMargin:i=!1,id:o})=>g.jsxs("div",{className:`${r} ${i?"":"mb-3"}`,children:[g.jsx("label",{className:`form-label ${n}`,htmlFor:o,children:t}),e]}),wg=({children:e,value:t,onChange:r,type:n,required:i,placeholder:o,className:a,labelClassName:s})=>{const c=I.useId();return g.jsx(Yf,{label:g.jsxs(g.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:c,children:g.jsx("input",{id:c,className:"form-control",type:n??"text",value:t,required:i??!0,placeholder:o,onChange:u=>r(u.target.value)})})},Lie=500;let Og;const qR=()=>{Og!==null&&clearTimeout(Og),Og=null},im=({onChange:e,className:t,large:r=!0,noBorder:n=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=I.useState(i),c=(u,h=Lie)=>{s(u),qR(),Og=o(()=>{e(u),qR()},h)};return g.jsxs("div",{className:ze("search-field",t),children:[g.jsx("input",{type:"text",className:ze("form-control search-field__input",{"form-control-lg":r,"search-field__input--no-border":n}),placeholder:"Search...",value:a,onChange:u=>c(u.target.value)}),g.jsx(Ge,{icon:mY,className:"search-field__icon"}),g.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>c("",0)})]})},MF=e=>{const t=new URLSearchParams(e),r={};return t.forEach((n,i)=>{if(i.endsWith("[]")){const o=i.slice(0,-2);r[o]??(r[o]=[]),r[o].push(n)}else r[i]=n}),r},D0=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))n!==void 0&&(Array.isArray(n)?n.forEach(i=>t.append(`${r}[]`,`${i}`)):t.append(r,`${n}`));return t.toString()},ur=(e=!1)=>{const[t,r]=I.useState(e),n=I.useCallback(()=>r(a=>!a),[]),i=I.useCallback(()=>r(!0),[]),o=I.useCallback(()=>r(!1),[]);return[t,n,i,o]},LF=(e=!1,t=2e3,r=window.setTimeout,n=window.clearTimeout)=>{const[i,o]=I.useState(e),a=I.useRef(e),s=I.useRef(),c=I.useCallback(()=>{o(!a.current),s.current&&n(s.current),s.current=r(()=>o(a.current),t)},[n,t,r]);return[i,c]},Yi=()=>I.useRef(null),Zf=()=>{const{search:e}=gn();return I.useMemo(()=>MF(e),[e])},es=({text:e,disabled:t=!1,className:r,children:n,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:c,size:u,...h})=>{const[p,v]=ur(),b=ze("dropdown-btn__toggle",r,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),x={minWidth:s&&`${s}px`};return g.jsxs(hl,{isOpen:p,toggle:v,disabled:t,className:i,children:[g.jsx(Qa,{size:u,caret:!o,className:b,color:"primary",...h,children:e}),g.jsx(pl,{className:"w-100",end:a,style:x,children:n})]})},$0=({children:e,minWidth:t,label:r="Options"})=>g.jsx(es,{text:g.jsx(Ge,{className:"px-1",icon:oY}),"aria-label":r,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Ih=({children:e,...t})=>g.jsx(pT,{children:g.jsx(mT,{className:"nav-pills__nav-link",tag:UE,...t,children:e})}),IF=({children:e,fill:t=!1,className:r=""})=>g.jsx(xi,{className:`nav-pills__nav p-0 overflow-hidden ${r}`,body:!0,children:g.jsx(hT,{pills:!0,fill:t,children:I.Children.map(e,n=>{if(!I.isValidElement(n)||n.type!==Ih)throw new Error("Only NavPillItem children are allowed inside NavPills.");return n})})}),F0=(e,t,r)=>e!==t?"ASC":r?{ASC:"DESC",DESC:void 0}[r]:"ASC",DF=(e,{field:t,dir:r})=>!t||!r?e:e.sort((n,i)=>{const o=r==="ASC"?1:-1,a=r==="ASC"?-1:1;return n[t]>i[t]?o:a}),Iie=e=>e.dir?`${e.field}-${e.dir}`:void 0,Die=e=>{const[t,r]=e.split("-");return{field:t,dir:r}};function om({items:e,order:t,onChange:r,isButton:n=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const c=F0(s,t.field,t.dir);r(c?s:void 0,c)};return g.jsxs(nm,{children:[g.jsxs(Qa,{caret:!0,color:n?"primary":"link",className:ze({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":n,"btn-sm p-0":!n}),children:[!n&&g.jsx(g.Fragment,{children:"Order by"}),n&&!t.field&&g.jsx("i",{children:"Order by..."}),n&&t.field&&g.jsxs(g.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",g.jsx("small",{children:t.dir??"DESC"})]})]}),g.jsxs(pl,{end:i,className:ze("w-100",{"ordering-dropdown__menu--link":!n}),children:[Object.entries(e).map(([s,c])=>g.jsxs(Ye,{active:t.field===s,onClick:a(s),children:[c,t.field===s&&g.jsx(Ge,{icon:t.dir==="ASC"?uY:KK,className:"ordering-dropdown__sort-icon"})]},s)),g.jsx(Ye,{divider:!0}),g.jsx(Ye,{disabled:!t.field,onClick:()=>r(),children:g.jsx("i",{children:"Clear selection"})})]})]})}const op="#4696e5",$ie="rgba(70, 150, 229, 0.4)",FP="#f77f28",Fie="rgba(247, 127, 40, 0.4)",Bie="white",Uie="#161b22",zie=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},am=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},jT=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",Vie=I.forwardRef(({isOpen:e,toggle:t,forceUpdate:r},n)=>{const[i,,o]=ur(),a=I.useCallback(()=>{o(),r()},[r,o]);return g.jsxs(TF,{className:"app-update-banner",isOpen:e,toggle:t,tag:Wt,color:"secondary",innerRef:n,children:[g.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),g.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",g.jsxs(_t,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&g.jsxs(g.Fragment,{children:["Restart now ",g.jsx(Ge,{icon:_Y,className:"ms-1"})]}),i&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})}),$F=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(Wt,{className:"p-4",children:[g.jsx("h2",{children:"Oops! We could not find requested route."}),g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(Ht,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Eo(e){return I.useRef(e).current}function To(e,t){return(r,n=globalThis.console)=>(t.forEach(i=>{const o=r[i];e[i]=o}),e)}const Wie=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:r})=>{r==null||r.addEventListener("statechange",n=>{var i;((i=n.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),r==null||r.postMessage({type:"SKIP_WAITING"})})},FF=({fetchServers:e,servers:t,settings:r,appUpdated:n,resetAppUpdate:i})=>{var w;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:c,EditServer:u,Settings:h,ManageServers:p,ShlinkVersionsContainer:v}=Eo(FF),b=gn(),x=I.useRef(t),_=b.pathname==="/";return I.useEffect(()=>{Object.keys(x.current).length===0&&e()},[e]),I.useEffect(()=>{var O;zie(((O=r.ui)==null?void 0:O.theme)??jT())},[(w=r.ui)==null?void 0:w.theme]),g.jsxs("div",{className:"container-fluid app-container",children:[g.jsx(o,{}),g.jsxs("div",{className:"app",children:[g.jsx("div",{className:ze("shlink-wrapper",{"d-flex align-items-center pt-3":_}),children:g.jsxs(C0,{children:[g.jsx(Pt,{index:!0,element:g.jsx(a,{})}),g.jsx(Pt,{path:"/settings",children:["","*"].map(O=>g.jsx(Pt,{path:O,element:g.jsx(h,{})},O))}),g.jsx(Pt,{path:"/manage-servers",element:g.jsx(p,{})}),g.jsx(Pt,{path:"/server/create",element:g.jsx(c,{})}),g.jsx(Pt,{path:"/server/:serverId/edit",element:g.jsx(u,{})}),g.jsx(Pt,{path:"/server/:serverId",children:["","*"].map(O=>g.jsx(Pt,{path:O,element:g.jsx(s,{})},O))}),g.jsx(Pt,{path:"*",element:g.jsx($F,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(v,{})})]}),g.jsx(Vie,{isOpen:n,toggle:i,forceUpdate:Wie})]})},qie=To(FF,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function nn(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 Hie=typeof Symbol=="function"&&Symbol.observable||"@@observable",HR=Hie,N1=()=>Math.random().toString(36).substring(7).split("").join("."),Gie={INIT:`@@redux/INIT${N1()}`,REPLACE:`@@redux/REPLACE${N1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${N1()}`},iy=Gie;function AT(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 BF(e,t,r){if(typeof e!="function")throw new Error(nn(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(nn(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(nn(1));return r(BF)(e,t)}let n=e,i=t,o=new Map,a=o,s=0,c=!1;function u(){a===o&&(a=new Map,o.forEach((w,O)=>{a.set(O,w)}))}function h(){if(c)throw new Error(nn(3));return i}function p(w){if(typeof w!="function")throw new Error(nn(4));if(c)throw new Error(nn(5));let O=!0;u();const S=s++;return a.set(S,w),function(){if(O){if(c)throw new Error(nn(6));O=!1,u(),a.delete(S),o=null}}}function v(w){if(!AT(w))throw new Error(nn(7));if(typeof w.type>"u")throw new Error(nn(8));if(typeof w.type!="string")throw new Error(nn(17));if(c)throw new Error(nn(9));try{c=!0,i=n(i,w)}finally{c=!1}return(o=a).forEach(S=>{S()}),w}function b(w){if(typeof w!="function")throw new Error(nn(10));n=w,v({type:iy.REPLACE})}function x(){const w=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(nn(11));function S(){const T=O;T.next&&T.next(h())}return S(),{unsubscribe:w(S)}},[HR](){return this}}}return v({type:iy.INIT}),{dispatch:v,subscribe:p,getState:h,replaceReducer:b,[HR]:x}}function Kie(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:iy.INIT})>"u")throw new Error(nn(12));if(typeof r(void 0,{type:iy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nn(13))})}function kT(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;try{Kie(r)}catch(o){i=o}return function(a={},s){if(i)throw i;let c=!1;const u={};for(let h=0;h<n.length;h++){const p=n[h],v=r[p],b=a[p],x=v(b,s);if(typeof x>"u")throw s&&s.type,new Error(nn(14));u[p]=x,c=c||x!==b}return c=c||n.length!==Object.keys(a).length,c?u:a}}function oy(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Yie(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(nn(15))};const a={getState:i.getState,dispatch:(c,...u)=>o(c,...u)},s=e.map(c=>c(a));return o=oy(...s)(i.dispatch),{...i,dispatch:o}}}function Zie(e){return AT(e)&&"type"in e&&typeof e.type=="string"}var UF=Symbol.for("immer-nothing"),GR=Symbol.for("immer-draftable"),gi=Symbol.for("immer-state");function go(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var df=Object.getPrototypeOf;function Ou(e){return!!e&&!!e[gi]}function Ga(e){var t;return e?zF(e)||Array.isArray(e)||!!e[GR]||!!((t=e.constructor)!=null&&t[GR])||U0(e)||z0(e):!1}var Xie=Object.prototype.constructor.toString();function zF(e){if(!e||typeof e!="object")return!1;const t=df(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Xie}function ap(e,t){B0(e)===0?Object.entries(e).forEach(([r,n])=>{t(r,n,e)}):e.forEach((r,n)=>t(n,r,e))}function B0(e){const t=e[gi];return t?t.type_:Array.isArray(e)?1:U0(e)?2:z0(e)?3:0}function BP(e,t){return B0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function VF(e,t,r){const n=B0(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Qie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function U0(e){return e instanceof Map}function z0(e){return e instanceof Set}function eu(e){return e.copy_||e.base_}function UP(e,t){if(U0(e))return new Map(e);if(z0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&zF(e))return df(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[gi];let n=Reflect.ownKeys(r);for(let i=0;i<n.length;i++){const o=n[i],a=r[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(df(e),r)}function RT(e,t=!1){return V0(e)||Ou(e)||!Ga(e)||(B0(e)>1&&(e.set=e.add=e.clear=e.delete=Jie),Object.freeze(e),t&&ap(e,(r,n)=>RT(n,!0))),e}function Jie(){go(2)}function V0(e){return Object.isFrozen(e)}var eoe={};function Su(e){const t=eoe[e];return t||go(0,e),t}var sp;function WF(){return sp}function toe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function KR(e,t){t&&(Su("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zP(e){VP(e),e.drafts_.forEach(roe),e.drafts_=null}function VP(e){e===sp&&(sp=e.parent_)}function YR(e){return sp=toe(sp,e)}function roe(e){const t=e[gi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ZR(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[gi].modified_&&(zP(t),go(4)),Ga(e)&&(e=ay(t,e),t.parent_||sy(t,e)),t.patches_&&Su("Patches").generateReplacementPatches_(r[gi].base_,e,t.patches_,t.inversePatches_)):e=ay(t,r,[]),zP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==UF?e:void 0}function ay(e,t,r){if(V0(t))return t;const n=t[gi];if(!n)return ap(t,(i,o)=>XR(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return sy(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,a=!1;n.type_===3&&(o=new Set(i),i.clear(),a=!0),ap(o,(s,c)=>XR(e,n,i,s,c,r,a)),sy(e,i,!1),r&&e.patches_&&Su("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function XR(e,t,r,n,i,o,a){if(Ou(i)){const s=o&&t&&t.type_!==3&&!BP(t.assigned_,n)?o.concat(n):void 0,c=ay(e,i,s);if(VF(r,n,c),Ou(c))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(Ga(i)&&!V0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ay(e,i),(!t||!t.scope_.parent_)&&sy(e,i)}}function sy(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&RT(t,r)}function noe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:WF(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=NT;r&&(i=[n],o=lp);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var NT={get(e,t){if(t===gi)return e;const r=eu(e);if(!BP(r,t))return ioe(e,r,t);const n=r[t];return e.finalized_||!Ga(n)?n:n===M1(e.base_,t)?(L1(e),e.copy_[t]=qP(n,e)):n},has(e,t){return t in eu(e)},ownKeys(e){return Reflect.ownKeys(eu(e))},set(e,t,r){const n=qF(eu(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=M1(eu(e),t),o=i==null?void 0:i[gi];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Qie(r,i)&&(r!==void 0||BP(e.base_,t)))return!0;L1(e),WP(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return M1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,L1(e),WP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=eu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){go(11)},getPrototypeOf(e){return df(e.base_)},setPrototypeOf(){go(12)}},lp={};ap(NT,(e,t)=>{lp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});lp.deleteProperty=function(e,t){return lp.set.call(this,e,t,void 0)};lp.set=function(e,t,r){return NT.set.call(this,e[0],t,r,e[0])};function M1(e,t){const r=e[gi];return(r?eu(r):e)[t]}function ioe(e,t,r){var i;const n=qF(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function qF(e,t){if(!(t in e))return;let r=df(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=df(r)}}function WP(e){e.modified_||(e.modified_=!0,e.parent_&&WP(e.parent_))}function L1(e){e.copy_||(e.copy_=UP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ooe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const a=this;return function(c=o,...u){return a.produce(c,h=>r.call(this,h,...u))}}typeof r!="function"&&go(6),n!==void 0&&typeof n!="function"&&go(7);let i;if(Ga(t)){const o=YR(this),a=qP(t,void 0);let s=!0;try{i=r(a),s=!1}finally{s?zP(o):VP(o)}return KR(o,n),ZR(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===UF&&(i=void 0),this.autoFreeze_&&RT(i,!0),n){const o=[],a=[];Su("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else go(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let n,i;return[this.produce(t,r,(a,s)=>{n=a,i=s}),n,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){Ga(e)||go(8),Ou(e)&&(e=aoe(e));const t=YR(this),r=qP(e,void 0);return r[gi].isManual_=!0,VP(t),r}finishDraft(e,t){const r=e&&e[gi];(!r||!r.isManual_)&&go(9);const{scope_:n}=r;return KR(n,t),ZR(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Su("Patches").applyPatches_;return Ou(e)?n(e,t):this.produce(e,i=>n(i,t))}};function qP(e,t){const r=U0(e)?Su("MapSet").proxyMap_(e,t):z0(e)?Su("MapSet").proxySet_(e,t):noe(e,t);return(t?t.scope_:WF()).drafts_.push(r),r}function aoe(e){return Ou(e)||go(10,e),HF(e)}function HF(e){if(!Ga(e)||V0(e))return e;const t=e[gi];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=UP(e,t.scope_.immer_.useStrictShallowCopy_)}else r=UP(e,!0);return ap(r,(n,i)=>{VF(r,n,HF(i))}),t&&(t.finalized_=!1),r}var yi=new ooe,GF=yi.produce;yi.produceWithPatches.bind(yi);yi.setAutoFreeze.bind(yi);yi.setUseStrictShallowCopy.bind(yi);yi.applyPatches.bind(yi);yi.createDraft.bind(yi);yi.finishDraft.bind(yi);function KF(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var soe=KF(),loe=KF,uoe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oy:oy.apply(null,arguments)},coe=e=>e&&typeof e.match=="function";function jn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error($a(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Zie(n)&&n.type===e,r}var YF=class Oh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Oh.prototype)}static get[Symbol.species](){return Oh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Oh(...t[0].concat(this)):new Oh(...t.concat(this))}};function QR(e){return Ga(e)?GF(e,()=>{}):e}function JR(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function foe(e){return typeof e=="boolean"}var doe=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new YF;return r&&(foe(r)?a.push(soe):a.push(loe(r.extraArgument))),a},hoe="RTK_autoBatch",eN=e=>t=>{setTimeout(t,e)},poe=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,a=!1;const s=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eN(10):e.type==="callback"?e.queueNotification:eN(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){const p=()=>i&&h(),v=n.subscribe(p);return s.add(h),()=>{v(),s.delete(h)}},dispatch(h){var p;try{return i=!((p=h==null?void 0:h.meta)!=null&&p[hoe]),o=!i,o&&(a||(a=!0,c(u))),n.dispatch(h)}finally{i=!0}}})},moe=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new YF(e);return n&&i.push(poe(typeof n=="object"?n:void 0)),i};function ZF(e){const t=doe(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(AT(r))s=kT(r);else throw new Error($a(1));let c;typeof n=="function"?c=n(t):c=t();let u=oy;i&&(u=uoe({trace:!1,...typeof i=="object"&&i}));const h=Yie(...c),p=moe(h);let v=typeof a=="function"?a(p):p();const b=u(...v);return BF(s,o,b)}function XF(e){const t={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error($a(28));if(s in t)throw new Error($a(29));return t[s]=a,i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function voe(e){return typeof e=="function"}function goe(e,t){let[r,n,i]=XF(t),o;if(voe(e))o=()=>QR(e());else{const s=QR(e);o=()=>s}function a(s=o(),c){let u=[r[c.type],...n.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return u.filter(h=>!!h).length===0&&(u=[i]),u.reduce((h,p)=>{if(p)if(Ou(h)){const b=p(h,c);return b===void 0?h:b}else{if(Ga(h))return GF(h,v=>p(v,c));{const v=p(h,c);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return h},s)}return a.getInitialState=o,a}var yoe=(e,t)=>coe(e)?e.match(t):e(t);function boe(...e){return t=>e.some(r=>yoe(r,t))}var _oe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xoe=(e=21)=>{let t="",r=e;for(;r--;)t+=_oe[Math.random()*64|0];return t},woe=["name","message","stack","code"],I1=class{constructor(e,t){Ec(this,"_type");this.payload=e,this.meta=t}},tN=class{constructor(e,t){Ec(this,"_type");this.payload=e,this.meta=t}},Ooe=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of woe)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},QF=(()=>{function e(t,r,n){const i=jn(t+"/fulfilled",(c,u,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:u,requestStatus:"fulfilled"}})),o=jn(t+"/pending",(c,u,h)=>({payload:void 0,meta:{...h||{},arg:u,requestId:c,requestStatus:"pending"}})),a=jn(t+"/rejected",(c,u,h,p,v)=>({payload:p,error:(n&&n.serializeError||Ooe)(c||"Rejected"),meta:{...v||{},arg:h,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function s(c){return(u,h,p)=>{const v=n!=null&&n.idGenerator?n.idGenerator(c):xoe(),b=new AbortController;let x,_;function w(S){_=S,b.abort()}const O=async function(){var T,A;let S;try{let j=(T=n==null?void 0:n.condition)==null?void 0:T.call(n,c,{getState:h,extra:p});if(Poe(j)&&(j=await j),j===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const N=new Promise((F,V)=>{x=()=>{V({name:"AbortError",message:_||"Aborted"})},b.signal.addEventListener("abort",x)});u(o(v,c,(A=n==null?void 0:n.getPendingMeta)==null?void 0:A.call(n,{requestId:v,arg:c},{getState:h,extra:p}))),S=await Promise.race([N,Promise.resolve(r(c,{dispatch:u,getState:h,extra:p,requestId:v,signal:b.signal,abort:w,rejectWithValue:(F,V)=>new I1(F,V),fulfillWithValue:(F,V)=>new tN(F,V)})).then(F=>{if(F instanceof I1)throw F;return F instanceof tN?i(F.payload,v,c,F.meta):i(F,v,c)})])}catch(j){S=j instanceof I1?a(null,v,c,j.payload,j.meta):a(j,v,c)}finally{x&&b.signal.removeEventListener("abort",x)}return n&&!n.dispatchConditionRejection&&a.match(S)&&S.meta.condition||u(S),S}();return Object.assign(O,{abort:w,requestId:v,arg:c,unwrap(){return O.then(Soe)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:boe(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Soe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Poe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Coe=Symbol.for("rtk-slice-createasyncthunk");function Eoe(e,t){return`${e}/${t}`}function Toe({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Coe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error($a(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Aoe()):i.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(E,T){const A=typeof E=="string"?E:E.type;if(!A)throw new Error($a(12));if(A in u.sliceCaseReducersByType)throw new Error($a(13));return u.sliceCaseReducersByType[A]=T,h},addMatcher(E,T){return u.sliceMatchers.push({matcher:E,reducer:T}),h},exposeAction(E,T){return u.actionCreators[E]=T,h},exposeCaseReducer(E,T){return u.sliceCaseReducersByName[E]=T,h}};c.forEach(E=>{const T=s[E],A={reducerName:E,type:Eoe(o,E),createNotation:typeof i.reducers=="function"};Roe(T)?Moe(A,T,h,t):koe(A,T,h)});function p(){const[E={},T=[],A=void 0]=typeof i.extraReducers=="function"?XF(i.extraReducers):[i.extraReducers],j={...E,...u.sliceCaseReducersByType};return goe(i.initialState,N=>{for(let F in j)N.addCase(F,j[F]);for(let F of u.sliceMatchers)N.addMatcher(F.matcher,F.reducer);for(let F of T)N.addMatcher(F.matcher,F.reducer);A&&N.addDefaultCase(A)})}const v=E=>E,b=new Map;let x;function _(E,T){return x||(x=p()),x(E,T)}function w(){return x||(x=p()),x.getInitialState()}function O(E,T=!1){function A(N){let F=N[E];return typeof F>"u"&&T&&(F=w()),F}function j(N=v){const F=JR(b,T,()=>new WeakMap);return JR(F,N,()=>{const V={};for(const[B,W]of Object.entries(i.selectors??{}))V[B]=joe(W,N,w,T);return V})}return{reducerPath:E,getSelectors:j,get selectors(){return j(A)},selectSlice:A}}const S={name:o,reducer:_,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...O(a),injectInto(E,{reducerPath:T,...A}={}){const j=T??a;return E.inject({reducerPath:j,reducer:_},A),{...S,...O(j,!0)}}};return S}}function joe(e,t,r,n){function i(o,...a){let s=t(o);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return i.unwrapped=e,i}var Tr=Toe();function Aoe(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function koe({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!Noe(n))throw new Error($a(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?jn(e,a):jn(e))}function Roe(e){return e._reducerDefinitionType==="asyncThunk"}function Noe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Moe({type:e,reducerName:t},r,n,i){if(!i)throw new Error($a(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:c,settled:u,options:h}=r,p=i(e,o,h);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),s&&n.addCase(p.pending,s),c&&n.addCase(p.rejected,c),u&&n.addMatcher(p.settled,u),n.exposeCaseReducer(t,{fulfilled:a||qv,pending:s||qv,rejected:c||qv,settled:u||qv})}function qv(){}function $a(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:Loe,reducer:Ioe}=Tr({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Doe,resetAppUpdate:$oe}=Loe,Foe=Ioe,Boe=(e,t)=>{e.factory("App",qie),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Doe),e.serviceFactory("resetAppUpdate",()=>$oe)},rN={"Content-Type":"application/json"},nN=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...rN}}:{headers:rN}:e;let Uoe=class{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,r){return this.fetch(t,nN(r)).then(async n=>{const i=await n.json();if(!n.ok)throw i;return i})}async emptyRequest(t,r){return this.fetch(t,nN(r)).then(async n=>{if(!n.ok)throw await n.json()})}};var MT=(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_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.INVALID_URL="https://shlink.io/api/error/invalid-url",e))(MT||{});const zoe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,iN=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(zoe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},oN=e=>e==="*"||e==="x"||e==="X",aN=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Voe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Woe=(e,t)=>{if(oN(e)||oN(t))return 0;const[r,n]=Voe(aN(e),aN(t));return r>n?1:r<n?-1:0},sN=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=Woe(e[r]||"0",t[r]||"0");if(n!==0)return n}return 0},qoe=(e,t)=>{const r=iN(e),n=iN(t),i=r.pop(),o=n.pop(),a=sN(r,n);return a!==0?a:i&&o?sN(i.split("."),o.split(".")):i||o?i?-1:1:0},HP=(e,t,r)=>{Hoe(r);const n=qoe(e,t);return JF[r].includes(n)},JF={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},lN=Object.keys(JF),Hoe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(lN.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${lN.join("|")}`)},e7=(e,t)=>e.reduce((r,n)=>{const i=t(n);return r[i]=(r[i]||0)+1,r},{}),t7=(e,t)=>e.reduce((r,n)=>{const i=t(n);return(r[i]=r[i]||[]).push(n),r},{}),D1=e=>Object.prototype.toString.call(e)==="[object Object]",r7=(e,t)=>{const r={};return(...n)=>{const i=e(...n);if(r[i])return r[i];const o=t(...n);return r[i]=o,o}},W0=(e,t)=>{const r={...e};return!D1(e)||!D1(t)||Object.keys(t).forEach(n=>{D1(t[n])?r[n]=n in e&&e[n]!==void 0?W0(e[n],t[n]):{...t[n]}:r[n]=t[n]}),r},LT=(e,t)=>Array.from({length:t-e},(r,n)=>e+n),Goe=(e,t)=>[...e].sort((r,n)=>{const i=t(r),o=t(n);return i===o?0:i<o?-1:1}),Jc=(e,t)=>{const r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r},uN=(e,t)=>Object.fromEntries(e.map((r,n)=>[r,t[n]])),Gn=({href:e,children:t,rel:r,...n})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${r?` ${r}`:""}`,href:e,...n,children:t??e}),Koe="Left",Yoe="Right",Zoe="Up",Xoe="Down",Hc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},GP={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},cN="mousemove",fN="mouseup",Qoe="touchend",Joe="touchmove",eae="touchstart";function tae(e,t,r,n){return e>t?r>0?Yoe:Koe:n>0?Xoe:Zoe}function dN(e,t){if(t===0)return e;const r=Math.PI/180*t,n=e[0]*Math.cos(r)+e[1]*Math.sin(r),i=e[1]*Math.cos(r)-e[0]*Math.sin(r);return[n,i]}function rae(e,t){const r=h=>{const p="touches"in h;p&&h.touches.length>1||e((v,b)=>{b.trackMouse&&!p&&(document.addEventListener(cN,n),document.addEventListener(fN,a));const{clientX:x,clientY:_}=p?h.touches[0]:h,w=dN([x,_],b.rotationAngle);return b.onTouchStartOrOnMouseDown&&b.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},v),GP),{initial:w.slice(),xy:w,start:h.timeStamp||0})})},n=h=>{e((p,v)=>{const b="touches"in h;if(b&&h.touches.length>1)return p;if(h.timeStamp-p.start>v.swipeDuration)return p.swiping?Object.assign(Object.assign({},p),{swiping:!1}):p;const{clientX:x,clientY:_}=b?h.touches[0]:h,[w,O]=dN([x,_],v.rotationAngle),S=w-p.xy[0],E=O-p.xy[1],T=Math.abs(S),A=Math.abs(E),j=(h.timeStamp||0)-p.start,N=Math.sqrt(T*T+A*A)/(j||1),F=[S/(j||1),E/(j||1)],V=tae(T,A,S,E),B=typeof v.delta=="number"?v.delta:v.delta[V.toLowerCase()]||Hc.delta;if(T<B&&A<B&&!p.swiping)return p;const W={absX:T,absY:A,deltaX:S,deltaY:E,dir:V,event:h,first:p.first,initial:p.initial,velocity:N,vxvy:F};W.first&&v.onSwipeStart&&v.onSwipeStart(W),v.onSwiping&&v.onSwiping(W);let q=!1;return(v.onSwiping||v.onSwiped||v[`onSwiped${V}`])&&(q=!0),q&&v.preventScrollOnSwipe&&v.trackTouch&&h.cancelable&&h.preventDefault(),Object.assign(Object.assign({},p),{first:!1,eventData:W,swiping:!0})})},i=h=>{e((p,v)=>{let b;if(p.swiping&&p.eventData){if(h.timeStamp-p.start<v.swipeDuration){b=Object.assign(Object.assign({},p.eventData),{event:h}),v.onSwiped&&v.onSwiped(b);const x=v[`onSwiped${b.dir}`];x&&x(b)}}else v.onTap&&v.onTap({event:h});return v.onTouchEndOrOnMouseUp&&v.onTouchEndOrOnMouseUp({event:h}),Object.assign(Object.assign(Object.assign({},p),GP),{eventData:b})})},o=()=>{document.removeEventListener(cN,n),document.removeEventListener(fN,a)},a=h=>{o(),i(h)},s=(h,p)=>{let v=()=>{};if(h&&h.addEventListener){const b=Object.assign(Object.assign({},Hc.touchEventOptions),p.touchEventOptions),x=[[eae,r,b],[Joe,n,Object.assign(Object.assign({},b),p.preventScrollOnSwipe?{passive:!1}:{})],[Qoe,i,b]];x.forEach(([_,w,O])=>h.addEventListener(_,w,O)),v=()=>x.forEach(([_,w])=>h.removeEventListener(_,w))}return v},u={ref:h=>{h!==null&&e((p,v)=>{if(p.el===h)return p;const b={};return p.el&&p.el!==h&&p.cleanUpTouch&&(p.cleanUpTouch(),b.cleanUpTouch=void 0),v.trackTouch&&h&&(b.cleanUpTouch=s(h,v)),Object.assign(Object.assign(Object.assign({},p),{el:h}),b)})}};return t.trackMouse&&(u.onMouseDown=r),[u,s]}function nae(e,t,r,n){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==r.preventScrollOnSwipe||t.touchEventOptions.passive!==r.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:n(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:n(e.el,t)})}function iae(e){const{trackMouse:t}=e,r=I.useRef(Object.assign({},GP)),n=I.useRef(Object.assign({},Hc)),i=I.useRef(Object.assign({},n.current));i.current=Object.assign({},n.current),n.current=Object.assign(Object.assign({},Hc),e);let o;for(o in Hc)n.current[o]===void 0&&(n.current[o]=Hc[o]);const[a,s]=I.useMemo(()=>rae(c=>r.current=c(r.current,n.current),{trackMouse:t}),[t]);return r.current=nae(r.current,n.current,i.current,s),a}var Sh={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/var oae=Sh.exports,hN;function aae(){return hN||(hN=1,function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,o=r.XMLHttpRequest,a=r.XDomainRequest,s=r.ActiveXObject,c=r.EventSource,u=r.document,h=r.Promise,p=r.fetch,v=r.Response,b=r.TextDecoder,x=r.TextEncoder,_=r.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(ge){u.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ge){function Ee(){}return Ee.prototype=ge,new Ee}),Date.now||(Date.now=function(){return new Date().getTime()}),_==null){var w=p;p=function(ge,Ee){var je=Ee.signal;return w(ge,{headers:Ee.headers,credentials:Ee.credentials,cache:Ee.cache}).then(function(Me){var He=Me.body.getReader();return je._reader=He,je._aborted&&je._reader.cancel(),{status:Me.status,statusText:Me.statusText,headers:Me.headers,body:{getReader:function(){return He}}}})},_=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function O(){this.bitsNeeded=0,this.codePoint=0}O.prototype.decode=function(ge){function Ee(Ae,ke,De){if(De===1)return Ae>=128>>ke&&Ae<<ke<=2047;if(De===2)return Ae>=2048>>ke&&Ae<<ke<=55295||Ae>=57344>>ke&&Ae<<ke<=65535;if(De===3)return Ae>=65536>>ke&&Ae<<ke<=1114111;throw new Error}function je(Ae,ke){if(Ae===6*1)return ke>>6>15?3:ke>31?2:1;if(Ae===6*2)return ke>15?3:2;if(Ae===6*3)return 3;throw new Error}for(var Me=65533,He="",Be=this.bitsNeeded,qe=this.codePoint,ye=0;ye<ge.length;ye+=1){var we=ge[ye];Be!==0&&(we<128||we>191||!Ee(qe<<6|we&63,Be-6,je(Be,qe)))&&(Be=0,qe=Me,He+=String.fromCharCode(qe)),Be===0?(we>=0&&we<=127?(Be=0,qe=we):we>=192&&we<=223?(Be=6*1,qe=we&31):we>=224&&we<=239?(Be=6*2,qe=we&15):we>=240&&we<=247?(Be=6*3,qe=we&7):(Be=0,qe=Me),Be!==0&&!Ee(qe,Be,je(Be,qe))&&(Be=0,qe=Me)):(Be-=6,qe=qe<<6|we&63),Be===0&&(qe<=65535?He+=String.fromCharCode(qe):(He+=String.fromCharCode(55296+(qe-65535-1>>10)),He+=String.fromCharCode(56320+(qe-65535-1&1023))))}return this.bitsNeeded=Be,this.codePoint=qe,He};var S=function(){try{return new b().decode(new x().encode("test"),{stream:!0})==="test"}catch(ge){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ge)}return!1};(b==null||x==null||!S())&&(b=O);var E=function(){};function T(ge){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=E,this.onload=E,this.onerror=E,this.onreadystatechange=E,this._contentType="",this._xhr=ge,this._sendTimeout=0,this._abort=E}T.prototype.open=function(ge,Ee){this._abort(!0);var je=this,Me=this._xhr,He=1,Be=0;this._abort=function(De){je._sendTimeout!==0&&(i(je._sendTimeout),je._sendTimeout=0),(He===1||He===2||He===3)&&(He=4,Me.onload=E,Me.onerror=E,Me.onabort=E,Me.onprogress=E,Me.onreadystatechange=E,Me.abort(),Be!==0&&(i(Be),Be=0),De||(je.readyState=4,je.onabort(null),je.onreadystatechange())),He=0};var qe=function(){if(He===1){var De=0,Ke="",Xe=void 0;if("contentType"in Me)De=200,Ke="OK",Xe=Me.contentType;else try{De=Me.status,Ke=Me.statusText,Xe=Me.getResponseHeader("Content-Type")}catch{De=0,Ke="",Xe=void 0}De!==0&&(He=2,je.readyState=2,je.status=De,je.statusText=Ke,je._contentType=Xe,je.onreadystatechange())}},ye=function(){if(qe(),He===2||He===3){He=3;var De="";try{De=Me.responseText}catch{}je.readyState=3,je.responseText=De,je.onprogress()}},we=function(De,Ke){if((Ke==null||Ke.preventDefault==null)&&(Ke={preventDefault:E}),ye(),He===1||He===2||He===3){if(He=4,Be!==0&&(i(Be),Be=0),je.readyState=4,De==="load")je.onload(Ke);else if(De==="error")je.onerror(Ke);else if(De==="abort")je.onabort(Ke);else throw new TypeError;je.onreadystatechange()}},Ae=function(De){Me!=null&&(Me.readyState===4?(!("onload"in Me)||!("onerror"in Me)||!("onabort"in Me))&&we(Me.responseText===""?"error":"load",De):Me.readyState===3?"onprogress"in Me||ye():Me.readyState===2&&qe())},ke=function(){Be=n(function(){ke()},500),Me.readyState===3&&ye()};"onload"in Me&&(Me.onload=function(De){we("load",De)}),"onerror"in Me&&(Me.onerror=function(De){we("error",De)}),"onabort"in Me&&(Me.onabort=function(De){we("abort",De)}),"onprogress"in Me&&(Me.onprogress=ye),"onreadystatechange"in Me&&(Me.onreadystatechange=function(De){Ae(De)}),("contentType"in Me||!("ontimeout"in o.prototype))&&(Ee+=(Ee.indexOf("?")===-1?"?":"&")+"padding=true"),Me.open(ge,Ee,!0),"readyState"in Me&&(Be=n(function(){ke()},0))},T.prototype.abort=function(){this._abort(!1)},T.prototype.getResponseHeader=function(ge){return this._contentType},T.prototype.setRequestHeader=function(ge,Ee){var je=this._xhr;"setRequestHeader"in je&&je.setRequestHeader(ge,Ee)},T.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},T.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 ge=this;ge._sendTimeout=n(function(){ge._sendTimeout=0,ge.send()},4);return}var Ee=this._xhr;"withCredentials"in Ee&&(Ee.withCredentials=this.withCredentials);try{Ee.send(void 0)}catch(je){throw je}};function A(ge){return ge.replace(/[A-Z]/g,function(Ee){return String.fromCharCode(Ee.charCodeAt(0)+32)})}function j(ge){for(var Ee=Object.create(null),je=ge.split(`\r
|
||
`),Me=0;Me<je.length;Me+=1){var He=je[Me],Be=He.split(": "),qe=Be.shift(),ye=Be.join(": ");Ee[A(qe)]=ye}this._map=Ee}j.prototype.get=function(ge){return this._map[A(ge)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function N(){}N.prototype.open=function(ge,Ee,je,Me,He,Be,qe){ge.open("GET",He);var ye=0;ge.onprogress=function(){var Ae=ge.responseText,ke=Ae.slice(ye);ye+=ke.length,je(ke)},ge.onerror=function(Ae){Ae.preventDefault(),Me(new Error("NetworkError"))},ge.onload=function(){Me(null)},ge.onabort=function(){Me(null)},ge.onreadystatechange=function(){if(ge.readyState===o.HEADERS_RECEIVED){var Ae=ge.status,ke=ge.statusText,De=ge.getResponseHeader("Content-Type"),Ke=ge.getAllResponseHeaders();Ee(Ae,ke,De,new j(Ke))}},ge.withCredentials=Be;for(var we in qe)Object.prototype.hasOwnProperty.call(qe,we)&&ge.setRequestHeader(we,qe[we]);return ge.send(),ge};function F(ge){this._headers=ge}F.prototype.get=function(ge){return this._headers.get(ge)};function V(){}V.prototype.open=function(ge,Ee,je,Me,He,Be,qe){var ye=null,we=new _,Ae=we.signal,ke=new b;return p(He,{headers:qe,credentials:Be?"include":"same-origin",signal:Ae,cache:"no-store"}).then(function(De){return ye=De.body.getReader(),Ee(De.status,De.statusText,De.headers.get("Content-Type"),new F(De.headers)),new h(function(Ke,Xe){var bt=function(){ye.read().then(function(Ot){if(Ot.done)Ke(void 0);else{var xt=ke.decode(Ot.value,{stream:!0});je(xt),bt()}}).catch(function(Ot){Xe(Ot)})};bt()})}).catch(function(De){if(De.name!=="AbortError")return De}).then(function(De){Me(De)}),{abort:function(){ye!=null&&ye.cancel(),we.abort()}}};function B(){this._listeners=Object.create(null)}function W(ge){n(function(){throw ge},0)}B.prototype.dispatchEvent=function(ge){ge.target=this;var Ee=this._listeners[ge.type];if(Ee!=null)for(var je=Ee.length,Me=0;Me<je;Me+=1){var He=Ee[Me];try{typeof He.handleEvent=="function"?He.handleEvent(ge):He.call(this,ge)}catch(Be){W(Be)}}},B.prototype.addEventListener=function(ge,Ee){ge=String(ge);var je=this._listeners,Me=je[ge];Me==null&&(Me=[],je[ge]=Me);for(var He=!1,Be=0;Be<Me.length;Be+=1)Me[Be]===Ee&&(He=!0);He||Me.push(Ee)},B.prototype.removeEventListener=function(ge,Ee){ge=String(ge);var je=this._listeners,Me=je[ge];if(Me!=null){for(var He=[],Be=0;Be<Me.length;Be+=1)Me[Be]!==Ee&&He.push(Me[Be]);He.length===0?delete je[ge]:je[ge]=He}};function q(ge){this.type=ge,this.target=void 0}function J(ge,Ee){q.call(this,ge),this.data=Ee.data,this.lastEventId=Ee.lastEventId}J.prototype=Object.create(q.prototype);function Q(ge,Ee){q.call(this,ge),this.status=Ee.status,this.statusText=Ee.statusText,this.headers=Ee.headers}Q.prototype=Object.create(q.prototype);function ne(ge,Ee){q.call(this,ge),this.error=Ee.error}ne.prototype=Object.create(q.prototype);var ae=-1,se=0,oe=1,K=2,G=-1,z=0,re=1,X=2,le=3,ce=/^text\/event\-stream(;.*)?$/i,de=1e3,be=18e6,M=function(ge,Ee){var je=ge==null?Ee:parseInt(ge,10);return je!==je&&(je=Ee),$(je)},$=function(ge){return Math.min(Math.max(ge,de),be)},Y=function(ge,Ee,je){try{typeof Ee=="function"&&Ee.call(ge,je)}catch(Me){W(Me)}};function ue(ge,Ee){B.call(this),Ee=Ee||{},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,Se(this,ge,Ee)}function ie(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var he=p!=null&&v!=null&&"body"in v.prototype;function Se(ge,Ee,je){Ee=String(Ee);var Me=!!je.withCredentials,He=je.lastEventIdQueryParameterName||"lastEventId",Be=$(1e3),qe=M(je.heartbeatTimeout,45e3),ye="",we=Be,Ae=!1,ke=0,De=je.headers||{},Ke=je.Transport,Xe=he&&Ke==null?void 0:new T(Ke!=null?new Ke:ie()),bt=Ke!=null&&typeof Ke!="string"?new Ke:Xe==null?new V:new N,Ot=void 0,xt=0,Jt=ae,Gt="",jr="",Lr="",Nn="",Pr=z,fa=0,Mn=0,Ji=function(dr,or,Ir,Ar){if(Jt===se)if(dr===200&&Ir!=null&&ce.test(Ir)){Jt=oe,Ae=Date.now(),we=Be,ge.readyState=oe;var hr=new Q("open",{status:dr,statusText:or,headers:Ar});ge.dispatchEvent(hr),Y(ge,ge.onopen,hr)}else{var pr="";dr!==200?(or&&(or=or.replace(/\s+/g," ")),pr="EventSource's response has a status "+dr+" "+or+" that is not 200. Aborting the connection."):pr="EventSource's response has a Content-Type specifying an unsupported type: "+(Ir==null?"-":Ir.replace(/\s+/g," "))+". Aborting the connection.",is();var hr=new Q("error",{status:dr,statusText:or,headers:Ar});ge.dispatchEvent(hr),Y(ge,ge.onerror,hr),console.error(pr)}},eo=function(dr){if(Jt===oe){for(var or=-1,Ir=0;Ir<dr.length;Ir+=1){var Ar=dr.charCodeAt(Ir);(Ar===10||Ar===13)&&(or=Ir)}var hr=(or!==-1?Nn:"")+dr.slice(0,or+1);Nn=(or===-1?Nn:"")+dr.slice(or+1),dr!==""&&(Ae=Date.now(),ke+=dr.length);for(var pr=0;pr<hr.length;pr+=1){var Ar=hr.charCodeAt(pr);if(Pr===G&&Ar===10)Pr=z;else if(Pr===G&&(Pr=z),Ar===13||Ar===10){if(Pr!==z){Pr===re&&(Mn=pr+1);var en=hr.slice(fa,Mn-1),Xn=hr.slice(Mn+(Mn<pr&&hr.charCodeAt(Mn)===32?1:0),pr);en==="data"?(Gt+=`
|
||
`,Gt+=Xn):en==="id"?jr=Xn:en==="event"?Lr=Xn:en==="retry"?(Be=M(Xn,Be),we=Be):en==="heartbeatTimeout"&&(qe=M(Xn,qe),xt!==0&&(i(xt),xt=n(function(){Ro()},qe)))}if(Pr===z){if(Gt!==""){ye=jr,Lr===""&&(Lr="message");var mr=new J(Lr,{data:Gt.slice(1),lastEventId:jr});if(ge.dispatchEvent(mr),Lr==="open"?Y(ge,ge.onopen,mr):Lr==="message"?Y(ge,ge.onmessage,mr):Lr==="error"&&Y(ge,ge.onerror,mr),Jt===K)return}Gt="",Lr=""}Pr=Ar===13?G:z}else Pr===z&&(fa=pr,Pr=re),Pr===re?Ar===58&&(Mn=pr+1,Pr=X):Pr===X&&(Pr=le)}}},xl=function(dr){if(Jt===oe||Jt===se){Jt=ae,xt!==0&&(i(xt),xt=0),xt=n(function(){Ro()},we),we=$(Math.min(Be*16,we*2)),ge.readyState=se;var or=new ne("error",{error:dr});ge.dispatchEvent(or),Y(ge,ge.onerror,or),dr!=null&&console.error(dr)}},is=function(){Jt=K,Ot!=null&&(Ot.abort(),Ot=void 0),xt!==0&&(i(xt),xt=0),ge.readyState=K},Ro=function(){if(xt=0,Jt!==ae){if(!Ae&&Ot!=null)xl(new Error("No activity within "+qe+" milliseconds. "+(Jt===se?"No response received.":ke+" chars received.")+" Reconnecting.")),Ot!=null&&(Ot.abort(),Ot=void 0);else{var dr=Math.max((Ae||Date.now())+qe-Date.now(),1);Ae=!1,xt=n(function(){Ro()},dr)}return}Ae=!1,ke=0,xt=n(function(){Ro()},qe),Jt=se,Gt="",Lr="",jr=ye,Nn="",fa=0,Mn=0,Pr=z;var or=Ee;if(Ee.slice(0,5)!=="data:"&&Ee.slice(0,5)!=="blob:"&&ye!==""){var Ir=Ee.indexOf("?");or=Ir===-1?Ee:Ee.slice(0,Ir+1)+Ee.slice(Ir+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Xn,mr){return mr===He?"":Xn}),or+=(Ee.indexOf("?")===-1?"?":"&")+He+"="+encodeURIComponent(ye)}var Ar=ge.withCredentials,hr={};hr.Accept="text/event-stream";var pr=ge.headers;if(pr!=null)for(var en in pr)Object.prototype.hasOwnProperty.call(pr,en)&&(hr[en]=pr[en]);try{Ot=bt.open(Xe,Ji,eo,xl,or,Ar,hr)}catch(Xn){throw is(),Xn}};ge.url=Ee,ge.readyState=se,ge.withCredentials=Me,ge.headers=De,ge._close=is,Ro()}ue.prototype=Object.create(B.prototype),ue.prototype.CONNECTING=se,ue.prototype.OPEN=oe,ue.prototype.CLOSED=K,ue.prototype.close=function(){this._close()},ue.CONNECTING=se,ue.OPEN=oe,ue.CLOSED=K,ue.prototype.withCredentials=void 0;var Fe=c;o!=null&&(c==null||!("withCredentials"in c.prototype))&&(Fe=ue),function(ge){{var Ee=ge(t);Ee!==void 0&&(e.exports=Ee)}}(function(ge){ge.EventSourcePolyfill=ue,ge.NativeEventSource=c,ge.EventSource=Fe})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:oae:globalThis)}(Sh,Sh.exports)),Sh.exports}var sae=aae();const Xs=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),lae=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:r,interval:n}=Rn("realTimeUpdates",{enabled:!0}),i=I.useId();return g.jsxs(Wt,{title:"Real-time updates",className:"h-100",children:[g.jsx(Jg,{children:g.jsxs(Ha,{checked:r,onChange:e,children:["Enable or disable real-time updates.",g.jsxs(Xs,{children:["Real-time updates are currently being ",g.jsx("b",{children:r?"processed":"ignored"}),"."]})]})}),g.jsxs(Yf,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ze("form-label",{"text-muted":!r}),id:i,children:[g.jsx(Zr,{type:"number",min:0,placeholder:"Immediate",disabled:!r,value:`${n??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),r&&g.jsx(Xs,{children:n?g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:n})," minute",n>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},$1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",uae=e=>e==="includes"?g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"including"})," provided input."]}):g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"starting with"})," provided input."]}),cae=({updateShortUrlCreationSettings:e})=>{const t=Rn("shortUrlCreation",{validateUrls:!1}),r=n=>()=>e({...t??{validateUrls:!1},tagFilteringMode:n});return g.jsxs(Wt,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Ha,{checked:t.validateUrls??!1,onChange:n=>e({...t,validateUrls:n}),children:["Request validation on long URLs when creating new short URLs."," ",g.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]}),g.jsxs(Xs,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]}),g.jsxs(Ha,{checked:t.forwardQuery??!0,onChange:n=>e({...t,forwardQuery:n}),children:["Make all new short URLs forward their query params to the long URL.",g.jsxs(Xs,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]})]}),g.jsxs(Yf,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(es,{text:$1(t.tagFilteringMode),children:[g.jsx(Ye,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:$1("startsWith")}),g.jsx(Ye,{active:t.tagFilteringMode==="includes",onClick:r("includes"),children:$1("includes")})]}),g.jsx(Xs,{children:uae(t.tagFilteringMode)})]})]})},fae={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},dae=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const r=Rn("shortUrlsList"),n=(r==null?void 0:r.confirmDeletions)??!0;return g.jsxs(Wt,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Ha,{checked:n,onChange:i=>e({...r,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",g.jsxs(Xs,{children:["When deleting a short URL, confirmation ",g.jsx("b",{children:n?"will":"won't"})," be required."]})]}),g.jsx(Yf,{noMargin:!0,label:"Default ordering for short URLs list:",children:g.jsx(om,{items:fae,order:(r==null?void 0:r.defaultOrdering)??t,onChange:(i,o)=>e({defaultOrdering:{field:i,dir:o}})})})]})},hae={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},pae=({updateTagsSettings:e})=>{const t=Rn("tags",{});return g.jsx(Wt,{title:"Tags",className:"h-100",children:g.jsx(Yf,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(om,{items:hae,order:t.defaultOrdering??{},onChange:(r,n)=>e({...t,defaultOrdering:{field:r,dir:n}})})})})},mae=({updateUiSettings:e,_matchMedia:t})=>{const r=Rn("ui"),n=I.useMemo(()=>(r==null?void 0:r.theme)??jT(t),[r==null?void 0:r.theme,t]);return g.jsxs(Wt,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[g.jsx(Ha,{checked:n==="dark",onChange:i=>{e({...r,theme:i?"dark":"light"})},children:"Use dark theme."}),g.jsx(Ge,{icon:n==="dark"?OY:fY})]})},n7={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},vae=(e,t)=>!e||e==="all"?t:n7[e],gae=({onChange:e,active:t,allText:r})=>g.jsxs(es,{text:vae(t,r),children:[g.jsx(Ye,{active:t==="all",onClick:()=>e("all"),children:r}),g.jsx(Ye,{divider:!0}),Object.entries(n7).map(([n,i])=>g.jsx(Ye,{active:t===n,onClick:()=>e(n),children:i},n))]}),pN=e=>(e==null?void 0:e.defaultInterval)??"last30Days",yae=({updateVisitsSettings:e})=>{const t=Rn("visits"),r=I.useCallback(({defaultInterval:n,...i})=>e({defaultInterval:n??pN(t),...i}),[e,t]);return g.jsxs(Wt,{title:"Visits",className:"h-100",children:[g.jsx(Jg,{children:g.jsxs(Ha,{checked:!!(t!=null&&t.excludeBots),onChange:n=>r({excludeBots:n}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",g.jsxs(Xs,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(Jg,{children:g.jsxs(Ha,{checked:!!(t!=null&&t.loadPrevInterval),onChange:n=>r({loadPrevInterval:n}),children:["Compare visits with previous period.",g.jsxs(Xs,{children:["When loading visits, previous period ",g.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),g.jsx(Yf,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(gae,{allText:"All visits",active:pN(t),onChange:n=>r({defaultInterval:n})})})]})},F1=({children:e})=>I.Children.map(e,(t,r)=>g.jsx("div",{className:"mb-3",children:t},r)),bae=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:r})=>{const n=I.useCallback(s=>t(W0(e,s)),[e,t]),i=I.useCallback(s=>n({realTimeUpdates:{enabled:s}}),[n]),o=I.useCallback(s=>n({realTimeUpdates:{interval:s}}),[n]),a=I.useCallback((s,c)=>n({[s]:c}),[n]);return g.jsxs(a7,{value:e,children:[g.jsxs(IF,{className:"mb-3",children:[g.jsx(Ih,{to:"../general",children:"General"}),g.jsx(Ih,{to:"../short-urls",children:"Short URLs"}),g.jsx(Ih,{to:"../other-items",children:"Other items"})]}),g.jsxs(C0,{children:[g.jsx(Pt,{path:"general",element:g.jsxs(F1,{children:[g.jsx(mae,{updateUiSettings:s=>a("ui",s)}),g.jsx(lae,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),g.jsx(Pt,{path:"short-urls",element:g.jsxs(F1,{children:[g.jsx(cae,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),g.jsx(dae,{defaultOrdering:r,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),g.jsx(Pt,{path:"other-items",element:g.jsxs(F1,{children:[g.jsx(pae,{updateTagsSettings:s=>a("tags",s)}),g.jsx(yae,{updateVisitsSettings:s=>a("visits",s)})]})}),g.jsx(Pt,{path:"*",element:g.jsx($E,{replace:!0,to:"../general"})})]})]})},i7={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},o7=I.createContext(i7),{Provider:a7}=o7,IT=()=>I.useContext(o7)??i7;function Rn(e,t){return IT()[e]??t}/*!
|
||
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const _ae={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},xae=_ae,wae={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"]},s7={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z"]},DT=6048e5,Oae=864e5,l7=6e4,$T=36e5,Hv=43200,mN=1440,vN=Symbol.for("constructDateFrom");function an(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&vN in e?e[vN](t):e instanceof Date?new e.constructor(t):new Date(t)}function At(e,t){return an(t||e,e)}function FT(e,t,r){const n=At(e,r==null?void 0:r.in);return isNaN(t)?an(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Sae(e,t,r){const n=At(e,r==null?void 0:r.in);if(isNaN(t))return an(e,NaN);if(!t)return n;const i=n.getDate(),o=an(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Pae(e,t,r){const{years:n=0,months:i=0,weeks:o=0,days:a=0,hours:s=0,minutes:c=0,seconds:u=0}=t,h=At(e,r==null?void 0:r.in),p=i||n?Sae(h,i+n*12):h,v=a||o?FT(p,a+o*7):p,b=c+s*60,_=(u+b*60)*1e3;return an(e,+v+_)}let Cae={};function sm(){return Cae}function Pu(e,t){var s,c,u,h;const r=sm(),n=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((h=(u=r.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,i=At(e,t==null?void 0:t.in),o=i.getDay(),a=(o<n?7:0)+o-n;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function up(e,t){return Pu(e,{...t,weekStartsOn:1})}function u7(e,t){const r=At(e,t==null?void 0:t.in),n=r.getFullYear(),i=an(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const o=up(i),a=an(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=up(a);return r.getTime()>=o.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function hf(e){const t=At(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Mu(e,...t){const r=an.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function Cu(e,t){const r=At(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function q0(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=Cu(n),a=Cu(i),s=+o-hf(o),c=+a-hf(a);return Math.round((s-c)/Oae)}function Eae(e,t){const r=u7(e,t),n=an(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),up(n)}function c7(e,t){let r,n=t==null?void 0:t.in;return e.forEach(i=>{!n&&typeof i=="object"&&(n=an.bind(null,i));const o=At(i,n);(!r||r<o||isNaN(+o))&&(r=o)}),an(n,r||NaN)}function Tae(e,t){let r,n=t==null?void 0:t.in;return e.forEach(i=>{!n&&typeof i=="object"&&(n=an.bind(null,i));const o=At(i,n);(!r||r>o||isNaN(+o))&&(r=o)}),an(n,r||NaN)}function Sg(e,t){const r=+At(e)-+At(t);return r<0?-1:r>0?1:r}function jae(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Aae(e){return!(!jae(e)&&typeof e!="number"||isNaN(+At(e)))}function ly(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return o*12+a}function kae(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=Pu(n,r),a=Pu(i,r),s=+o-hf(o),c=+a-hf(a);return Math.round((s-c)/DT)}function f7(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=gN(n,i),a=Math.abs(q0(n,i));n.setDate(n.getDate()-o*a);const s=+(gN(n,i)===-o),c=o*(a-s);return c===0?0:c}function gN(e,t){const r=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 r<0?-1:r>0?1:r}function d7(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Rae(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=(+n-+i)/$T;return d7(r==null?void 0:r.roundingMethod)(o)}function Nae(e,t){return+At(e)-+At(t)}function pf(e,t){const r=At(e,t==null?void 0:t.in);return r.setHours(23,59,59,999),r}function Mae(e,t){const r=At(e,t==null?void 0:t.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Lae(e,t){const r=At(e,t==null?void 0:t.in);return+pf(r,t)==+Mae(r,t)}function Iae(e,t,r){const[n,i,o]=Mu(r==null?void 0:r.in,e,e,t),a=Sg(i,o),s=Math.abs(ly(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let c=Sg(i,o)===-a;Lae(n)&&s===1&&Sg(n,o)===1&&(c=!1);const u=a*(s-+c);return u===0?0:u}function Dae(e,t,r){const n=Nae(e,t)/1e3;return d7(r==null?void 0:r.roundingMethod)(n)}function $ae(e,t){const r=At(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Fae(e,t){const r=t==null?void 0:t.weekStartsOn,n=At(e,t==null?void 0:t.in),i=n.getDay(),o=(i<r?-7:0)+6-(i-r);return n.setDate(n.getDate()+o),n.setHours(23,59,59,999),n}function Bae(e,t){return Fae(e,{...t,weekStartsOn:1})}const Uae={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"}},zae=(e,t,r)=>{let n;const i=Uae[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function B1(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Vae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hae={date:B1({formats:Vae,defaultWidth:"full"}),time:B1({formats:Wae,defaultWidth:"full"}),dateTime:B1({formats:qae,defaultWidth:"full"})},Gae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kae=(e,t,r,n)=>Gae[e];function sh(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Yae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Xae={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"]},Qae={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"]},Jae={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"}},ese={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"}},tse=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},rse={ordinalNumber:tse,era:sh({values:Yae,defaultWidth:"wide"}),quarter:sh({values:Zae,defaultWidth:"wide",argumentCallback:e=>e-1}),month:sh({values:Xae,defaultWidth:"wide"}),day:sh({values:Qae,defaultWidth:"wide"}),dayPeriod:sh({values:Jae,defaultWidth:"wide",formattingValues:ese,defaultFormattingWidth:"wide"})};function lh(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?ise(s,p=>p.test(a)):nse(s,p=>p.test(a));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const h=t.slice(a.length);return{value:u,rest:h}}}function nse(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function ise(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function ose(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const ase=/^(\d+)(th|st|nd|rd)?/i,sse=/\d+/i,lse={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},use={any:[/^b/i,/^(a|c)/i]},cse={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fse={any:[/1/i,/2/i,/3/i,/4/i]},dse={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},hse={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]},pse={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},mse={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]},vse={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},gse={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}},yse={ordinalNumber:ose({matchPattern:ase,parsePattern:sse,valueCallback:e=>parseInt(e,10)}),era:lh({matchPatterns:lse,defaultMatchWidth:"wide",parsePatterns:use,defaultParseWidth:"any"}),quarter:lh({matchPatterns:cse,defaultMatchWidth:"wide",parsePatterns:fse,defaultParseWidth:"any",valueCallback:e=>e+1}),month:lh({matchPatterns:dse,defaultMatchWidth:"wide",parsePatterns:hse,defaultParseWidth:"any"}),day:lh({matchPatterns:pse,defaultMatchWidth:"wide",parsePatterns:mse,defaultParseWidth:"any"}),dayPeriod:lh({matchPatterns:vse,defaultMatchWidth:"any",parsePatterns:gse,defaultParseWidth:"any"})},h7={code:"en-US",formatDistance:zae,formatLong:Hae,formatRelative:Kae,localize:rse,match:yse,options:{weekStartsOn:0,firstWeekContainsDate:1}};function bse(e,t){const r=At(e,t==null?void 0:t.in);return q0(r,$ae(r))+1}function _se(e,t){const r=At(e,t==null?void 0:t.in),n=+up(r)-+Eae(r);return Math.round(n/DT)+1}function p7(e,t){var h,p,v,b;const r=At(e,t==null?void 0:t.in),n=r.getFullYear(),i=sm(),o=(t==null?void 0:t.firstWeekContainsDate)??((p=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((b=(v=i.locale)==null?void 0:v.options)==null?void 0:b.firstWeekContainsDate)??1,a=an((t==null?void 0:t.in)||e,0);a.setFullYear(n+1,0,o),a.setHours(0,0,0,0);const s=Pu(a,t),c=an((t==null?void 0:t.in)||e,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const u=Pu(c,t);return+r>=+s?n+1:+r>=+u?n:n-1}function xse(e,t){var s,c,u,h;const r=sm(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(u=r.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,i=p7(e,t),o=an((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,n),o.setHours(0,0,0,0),Pu(o,t)}function wse(e,t){const r=At(e,t==null?void 0:t.in),n=+Pu(r,t)-+xse(r,t);return Math.round(n/DT)+1}function jt(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Bs={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return jt(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):jt(r+1,2)},d(e,t){return jt(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return jt(e.getHours()%12||12,t.length)},H(e,t){return jt(e.getHours(),t.length)},m(e,t){return jt(e.getMinutes(),t.length)},s(e,t){return jt(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return jt(i,t.length)}},Rc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yN={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Bs.y(e,t)},Y:function(e,t,r,n){const i=p7(e,n),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return jt(a,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):jt(o,t.length)},R:function(e,t){const r=u7(e);return jt(r,t.length)},u:function(e,t){const r=e.getFullYear();return jt(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return jt(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return jt(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Bs.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return jt(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=wse(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):jt(i,t.length)},I:function(e,t,r){const n=_se(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):jt(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Bs.d(e,t)},D:function(e,t,r){const n=bse(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):jt(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return jt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return jt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return jt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=Rc.noon:n===0?i=Rc.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=Rc.evening:n>=12?i=Rc.afternoon:n>=4?i=Rc.morning:i=Rc.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Bs.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Bs.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):jt(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):jt(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Bs.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Bs.s(e,t)},S:function(e,t){return Bs.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return _N(n);case"XXXX":case"XX":return tu(n);case"XXXXX":case"XXX":default:return tu(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return _N(n);case"xxxx":case"xx":return tu(n);case"xxxxx":case"xxx":default:return tu(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bN(n,":");case"OOOO":default:return"GMT"+tu(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bN(n,":");case"zzzz":default:return"GMT"+tu(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return jt(n,t.length)},T:function(e,t,r){return jt(+e,t.length)}};function bN(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return o===0?r+String(i):r+String(i)+t+jt(o,2)}function _N(e,t){return e%60===0?(e>0?"-":"+")+jt(Math.abs(e)/60,2):tu(e,t)}function tu(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=jt(Math.trunc(n/60),2),o=jt(n%60,2);return r+i+t+o}const xN=(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"})}},m7=(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"})}},Ose=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return xN(e,t);let o;switch(n){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}}",xN(n,t)).replace("{{time}}",m7(i,t))},Sse={p:m7,P:Ose},Pse=/^D+$/,Cse=/^Y+$/,Ese=["D","DD","YY","YYYY"];function Tse(e){return Pse.test(e)}function jse(e){return Cse.test(e)}function Ase(e,t,r){const n=kse(e,t,r);if(console.warn(n),Ese.includes(e))throw new RangeError(n)}function kse(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Rse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nse=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mse=/^'([^]*?)'?$/,Lse=/''/g,Ise=/[a-zA-Z]/;function uy(e,t,r){var h,p,v,b;const n=sm(),i=n.locale??h7,o=n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,a=n.weekStartsOn??((b=(v=n.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??0,s=At(e,r==null?void 0:r.in);if(!Aae(s))throw new RangeError("Invalid time value");let c=t.match(Nse).map(x=>{const _=x[0];if(_==="p"||_==="P"){const w=Sse[_];return w(x,i.formatLong)}return x}).join("").match(Rse).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const _=x[0];if(_==="'")return{isToken:!1,value:Dse(x)};if(yN[_])return{isToken:!0,value:x};if(_.match(Ise))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:x}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(x=>{if(!x.isToken)return x.value;const _=x.value;(jse(_)||Tse(_))&&Ase(_,t,String(e));const w=yN[_[0]];return w(s,_,i.localize,u)}).join("")}function Dse(e){const t=e.match(Mse);return t?t[1].replace(Lse,"'"):e}function $se(e,t,r){const n=sm(),i=(r==null?void 0:r.locale)??n.locale??h7,o=2520,a=Sg(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:a}),[c,u]=Mu(r==null?void 0:r.in,...a>0?[t,e]:[e,t]),h=Dae(u,c),p=(hf(u)-hf(c))/1e3,v=Math.round((h-p)/60);let b;if(v<2)return r!=null&&r.includeSeconds?h<5?i.formatDistance("lessThanXSeconds",5,s):h<10?i.formatDistance("lessThanXSeconds",10,s):h<20?i.formatDistance("lessThanXSeconds",20,s):h<40?i.formatDistance("halfAMinute",0,s):h<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):v===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",v,s);if(v<45)return i.formatDistance("xMinutes",v,s);if(v<90)return i.formatDistance("aboutXHours",1,s);if(v<mN){const x=Math.round(v/60);return i.formatDistance("aboutXHours",x,s)}else{if(v<o)return i.formatDistance("xDays",1,s);if(v<Hv){const x=Math.round(v/mN);return i.formatDistance("xDays",x,s)}else if(v<Hv*2)return b=Math.round(v/Hv),i.formatDistance("aboutXMonths",b,s)}if(b=Iae(u,c),b<12){const x=Math.round(v/Hv);return i.formatDistance("xMonths",x,s)}else{const x=b%12,_=Math.trunc(b/12);return x<3?i.formatDistance("aboutXYears",_,s):x<9?i.formatDistance("overXYears",_,s):i.formatDistance("almostXYears",_+1,s)}}function Fse(e,t){const r=At(e,t==null?void 0:t.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n="",i="";const o="-",a=":";{const s=jt(r.getDate(),2),c=jt(r.getMonth()+1,2);n=`${jt(r.getFullYear(),4)}${o}${c}${o}${s}`}{const s=r.getTimezoneOffset();if(s!==0){const b=Math.abs(s),x=jt(Math.trunc(b/60),2),_=jt(b%60,2);i=`${s<0?"+":"-"}${x}:${_}`}else i="Z";const c=jt(r.getHours(),2),u=jt(r.getMinutes(),2),h=jt(r.getSeconds(),2),p=n===""?"":"T",v=[c,u,h].join(a);n=`${n}${p}${v}${i}`}return n}function Bse(e){return Math.trunc(+At(e)/1e3)}function Use(e,t){return+At(e)>+At(t)}function cy(e,t){return+At(e)<+At(t)}function KP(e,t){return+At(e)==+At(t)}function zse(e,t,r){const n=+At(e,r==null?void 0:r.in),[i,o]=[+At(t.start,r==null?void 0:r.in),+At(t.end,r==null?void 0:r.in)].sort((a,s)=>a-s);return n>=i&&n<=o}function fy(e,t,r){return FT(e,-t,r)}function al(e,t){const r=()=>an(t==null?void 0:t.in,NaN),i=Hse(e);let o;if(i.date){const u=Gse(i.date,2);o=Kse(u.restDateString,u.year)}if(!o||isNaN(+o))return r();const a=+o;let s=0,c;if(i.time&&(s=Yse(i.time),isNaN(s)))return r();if(i.timezone){if(c=Zse(i.timezone),isNaN(c))return r()}else{const u=new Date(a+s),h=At(0,t==null?void 0:t.in);return h.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),h.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),h}return At(a+s+c,t==null?void 0:t.in)}const Gv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Vse=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Wse=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,qse=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Hse(e){const t={},r=e.split(Gv.dateTimeDelimiter);let n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Gv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Gv.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const i=Gv.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function Gse(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};const i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function Kse(e,t){if(t===null)return new Date(NaN);const r=e.match(Vse);if(!r)return new Date(NaN);const n=!!r[4],i=uh(r[1]),o=uh(r[2])-1,a=uh(r[3]),s=uh(r[4]),c=uh(r[5])-1;if(n)return tle(t,s,c)?Xse(t,s,c):new Date(NaN);{const u=new Date(0);return!Jse(t,o,a)||!ele(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function uh(e){return e?parseInt(e):1}function Yse(e){const t=e.match(Wse);if(!t)return NaN;const r=U1(t[1]),n=U1(t[2]),i=U1(t[3]);return rle(r,n,i)?r*$T+n*l7+i*1e3:NaN}function U1(e){return e&&parseFloat(e.replace(",","."))||0}function Zse(e){if(e==="Z")return 0;const t=e.match(qse);if(!t)return 0;const r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return nle(n,i)?r*(n*$T+i*l7):NaN}function Xse(e,t,r){const n=new Date(0);n.setUTCFullYear(e,0,4);const i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}const Qse=[31,null,31,30,31,30,31,31,30,31,30,31];function v7(e){return e%400===0||e%4===0&&e%100!==0}function Jse(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Qse[t]||(v7(e)?29:28))}function ele(e,t){return t>=1&&t<=(v7(e)?366:365)}function tle(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function rle(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function nle(e,t){return t>=0&&t<=59}/*!
|
||
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const ile={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"]},ole={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"]},ru={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},BT=Symbol("Create new tag"),g7=Symbol("No options"),zc=()=>{},Qr=Z.createContext(void 0);function wN(e,t){return e===t?[]:e.filter(r=>!t.includes(r))}function ale(e){return e.selectionStart===0&&e.selectionEnd===0}function sle(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function H0(e){return`${e}-label`}function lle(e){return`${e}-combobox`}function ule(e){return`${e}-input`}function y7(e){return`${e}-listbox`}function b7(e,t){return`${e}-option-${vle(t)}`}function cle(e,t){if((e==null?void 0:e.value)===BT&&e.disabled===!1)return{value:t,label:t}}function fle(e){const t=cle(e.activeOption,e.value)||e.activeOption||_le(e.value,e.options);return t&&!t.disabled?t:void 0}function dle(e,t,r){const n=t-1;return e>n?r:e<r?n:e}const hle=/%value%/;function dy(e,t){return e.replace(hle,t)}function ple(e,t){const r=x7(t),n=e.match(r);if(n){const i=n[0],o=n.index+i.length;return[e.slice(0,n.index),e.slice(n.index,o),e.slice(o)]}}const mle=/\s+/g;function YP(e){return`${String(e.value)}-${e.label}`}function vle(e){return YP(e).replace(mle,"_")}function ZP(e,t){return t.findIndex(({value:r})=>r===e.value)}const gle=/[-\\^$*+?.()|[\]{}]/g;function _7(e){return e.replace(gle,"\\$&")}function x7(e){return new RegExp(_7(e),"i")}function yle(e){return new RegExp(`^${_7(e)}$`,"i")}function ble(e,t){if(e){const r=x7(e);return t.filter(n=>r.test(n.label))}else return[].concat(t)}function _le(e,t){const r=yle(e);return t.find(n=>r.test(n.label))||null}const xle={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function wle({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:r,delimiterKeys:n}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:c,managerRef:u}=I.useContext(Qr),h=I.useMemo(()=>{const x=B=>{const W=B.currentTarget.value;u.current.updateInputValue(W),document.activeElement===a.current&&u.current.listBoxExpand(W)},_=()=>{u.current.listBoxExpand()},w=B=>{var W;((W=o.current)==null?void 0:W.contains(B.relatedTarget))===!1&&u.current.listBoxCollapse()},O=()=>{u.current.listBoxExpand()},S=B=>{const{activeIndex:W,isExpanded:q}=u.current.state;q?(B.preventDefault(),u.current.updateActiveIndex(W+1)):(sle(B.currentTarget)||B.altKey)&&(B.preventDefault(),u.current.listBoxExpand())},E=B=>{const{activeIndex:W,isExpanded:q}=u.current.state;q?(B.preventDefault(),u.current.updateActiveIndex(W-1)):ale(B.currentTarget)&&(B.preventDefault(),u.current.listBoxExpand())},T=B=>{const{isExpanded:W,options:q}=u.current.state;W&&(B.preventDefault(),u.current.updateActiveIndex(q.length-1))},A=B=>{u.current.state.isExpanded&&(B.preventDefault(),u.current.updateActiveIndex(0))},j=()=>{u.current.state.isExpanded?u.current.listBoxCollapse():u.current.updateInputValue("")},N=()=>{if(e){const{value:B,selected:W}=u.current.state,q=W[W.length-1];B===""&&q&&u.current.selectTag(q)}},F=B=>{u.current.state.isExpanded&&(B.preventDefault(),u.current.selectTag())};return{onBlur:w,onChange:x,onClick:O,onFocus:_,onKeyDown:B=>{if(B.key===ru.UpArrow)return E(B);if(B.key===ru.DownArrow)return S(B);if(B.key===ru.PageUp)return A(B);if(B.key===ru.PageDown)return T(B);if(B.key===ru.Escape)return j();if(B.key===ru.Backspace)return N();if(n.includes(B.key))return F(B)}}},[e,o,n,a,u]),{activeOption:p,isExpanded:v,value:b}=u.current.state;return{...xle,"aria-autocomplete":"list","aria-activedescendant":p?b7(i,p):void 0,"aria-controls":y7(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":c&&r||void 0,"aria-invalid":c,"aria-labelledby":H0(i),"aria-expanded":v,id:ule(i),onBlur:s?zc:h.onBlur,onChange:s?zc:h.onChange,onClick:s?zc:h.onClick,onFocus:s?zc:h.onFocus,onKeyDown:s?zc:h.onKeyDown,ref:a,role:"combobox",type:"text",value:b}}const Ole={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},Sle=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function Ple({allowResize:e=!0,text:t}){const r=I.useRef(null),{inputRef:n}=I.useContext(Qr),[i,o]=I.useState(null);return I.useLayoutEffect(()=>{if(e&&n.current&&r.current&&window.getComputedStyle){const a=window.getComputedStyle(n.current);Sle.forEach(s=>{const c=a.getPropertyValue(s);r.current.style.setProperty(s,c)})}},[e,n,r]),I.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=r.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:r,style:Ole}}}function Cle(){const{id:e,inputRef:t,listBoxRef:r,managerRef:n}=I.useContext(Qr),i=n.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=r.current)==null||a.scrollTo({top:0}))},[r,i]),{"aria-labelledby":H0(e),id:y7(e),onFocus:o,ref:r,role:"listbox",tabIndex:-1}}function Ele({activateFirstOption:e,allowNew:t,collapseOnSelect:r,newOptionPosition:n,newOptionText:i,noOptionsText:o,onAdd:a,onDelete:s,onCollapse:c,onExpand:u,onInput:h,onShouldCollapse:p,onShouldExpand:v,onValidate:b,selected:x,suggestions:_,suggestionsTransform:w}){const O=I.useRef(),[S,E]=I.useState(null),[T,A]=I.useState(!1),[j,N]=I.useState(""),F=I.useMemo(()=>{const ne=w(j,_);return j&&(t&&ne[n==="first"?"unshift":"push"]({disabled:b?!b(j):!1,label:i,value:BT}),ne.length===0&&ne.push({disabled:!0,label:o,value:g7})),ne},[t,n,i,o,b,_,w,j]),V=S?ZP(S,F):-1,B=e?Math.max(V,0):V,W=F[B],q={activeIndex:B,activeOption:W,isExpanded:T,options:F,selected:x,value:j},J={tagsAdded:O.current?wN(x,O.current.state.selected):[],tagsDeleted:O.current?wN(O.current.state.selected,x):[]},Q={listBoxCollapse(ne){T&&(!p||p(ne??q.value))&&(A(!1),E(null),c==null||c())},listBoxExpand(ne){T||(!v||v(ne??q.value))&&(A(!0),E(F[B]),u==null||u())},updateActiveIndex(ne){const ae=dle(ne,F.length,e?0:-1);E(F[ae])},updateInputValue(ne){j!==ne&&(N(ne),h==null||h(ne))},selectTag(ne){if(ne??(ne=fle(q)),ne){const ae=ZP(ne,q.selected);ae>-1?s(ae):a(ne),r&&this.listBoxCollapse(),this.updateInputValue("")}}};return O.current={...Q,flags:J,state:q},O}function Tle(e){const{id:t,inputRef:r,listBoxRef:n,managerRef:i}=I.useContext(Qr),o=I.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,c=a.disabled??!1,u=ZP(a,i.current.state.selected)>-1,h=I.useCallback(()=>{var v;i.current.selectTag(),(v=r.current)==null||v.focus()},[r,i]),p=I.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return kle(o,n,s),{option:{...a,active:s,disabled:c,index:e,selected:u},optionProps:{"aria-disabled":c,"aria-posinset":e+1,"aria-selected":c?void 0:u,"aria-setsize":i.current.state.options.length,id:b7(t,a),onClick:h,onMouseDown:p,ref:o,role:"option",tabIndex:-1}}}function jle({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 Ale({onBlur:e,onFocus:t}){const[r,n]=I.useState(!1),{id:i,inputRef:o,rootRef:a}=I.useContext(Qr),s=I.useMemo(()=>({"aria-describedby":H0(i),id:i,onFocus(){n(!0),t==null||t()},onBlur(){var c;(c=a.current)!=null&&c.contains(document.activeElement)||(n(!1),e==null||e())},onClick(){var c;document.activeElement===a.current&&((c=o.current)==null||c.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:r,rootProps:s}}function kle(e,t,r){I.useEffect(()=>{var n,i,o,a;if(r){const s=(n=e.current)==null?void 0:n.offsetHeight,c=(i=e.current)==null?void 0:i.offsetTop,u=(o=t.current)==null?void 0:o.offsetHeight,h=(a=t.current)==null?void 0:a.scrollTop;c<h&&t.current.scrollTo(0,c),c+s>h+u&&t.current.scrollTo(0,c+s-u)}},[r,t,e])}function Rle(e,t){const{isDisabled:r,managerRef:n}=I.useContext(Qr),i=n.current.state.selected[e],o=I.useCallback(()=>n.current.selectTag(i),[n,i]);return{tag:i,tagProps:{"aria-disabled":r,title:dy(t,i.label),onClick:r?zc:o}}}function Nle({label:e}){var t;const{rootRef:r,managerRef:n}=I.useContext(Qr),i=I.useRef(),o=n.current.flags.tagsDeleted[0],a=(t=i.current)==null?void 0:t.contains(document.activeElement);return I.useLayoutEffect(()=>{var s,c;if(o){const u=(s=i.current)==null?void 0:s.contains(document.activeElement);a&&!u&&((c=r.current)==null||c.focus({preventScroll:!0}))}},[a,i,r,o]),{ref:i,"aria-label":e}}const Mle={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function Lle({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:r}=I.useContext(Qr),n=I.useRef([]);return r.current.flags.tagsAdded.forEach(i=>{n.current.push(dy(e,i.label))}),r.current.flags.tagsDeleted.forEach(i=>{n.current.push(dy(t,i.label))}),Z.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:Mle},n.current.join(`
|
||
`))}function Ile({children:e}){const{classNames:t,comboBoxRef:r,id:n}=I.useContext(Qr);return Z.createElement("div",{className:t.comboBox,id:lle(n),ref:r},e)}const Dle=({classNames:e,text:t})=>Z.createElement("mark",{className:e.highlight},t);function $le({option:e,query:t,render:r=Dle}){const{classNames:n}=I.useContext(Qr);if(e.value===BT||e.value===g7)return Z.createElement(Z.Fragment,null,dy(e.label,t));if(t){const i=ple(e.label,t);if(i){const o=r({text:i[1],classNames:n});return Z.createElement(Z.Fragment,null,i[0],o,i[2])}}return Z.createElement(Z.Fragment,null,e.label)}const Fle=Z.memo($le),Ble=({classNames:e,inputWidth:t,...r})=>Z.createElement("input",{className:e.input,style:{width:t},...r});function Ule({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:r,ariaErrorMessage:n,delimiterKeys:i,placeholderText:o,render:a=Ble}){const{classNames:s}=I.useContext(Qr),{value:c,...u}=wle({allowBackspace:e,ariaDescribedBy:r,ariaErrorMessage:n,delimiterKeys:i}),h=c.length<o.length?o:c,{width:p,sizerProps:v}=Ple({allowResize:t,text:h});return Z.createElement(Z.Fragment,null,a({classNames:s,inputWidth:p,placeholder:o,value:c,...u}),t?Z.createElement("div",{...v},h):null)}const zle=({children:e,classNames:t,id:r})=>Z.createElement("div",{className:t.label,id:r},e);function Vle({children:e,render:t=zle}){const{classNames:r,id:n}=I.useContext(Qr);return t({children:e,classNames:r,id:H0(n)})}const Wle=({children:e,classNames:t,...r})=>Z.createElement("div",{className:t.listBox,...r},e);function qle({children:e,render:t=Wle}){const{classNames:r,managerRef:n}=I.useContext(Qr),i=Cle();return!n.current.state.isExpanded||Z.Children.count(e)===0?null:t({children:e,classNames:r,...i})}const Hle=({children:e,classNames:t,option:r,...n})=>{const i=[t.option];return r.active&&i.push(t.optionIsActive),Z.createElement("div",{className:i.join(" "),...n},e)};function Gle({children:e,index:t,render:r=Hle}){const{classNames:n}=I.useContext(Qr),{option:i,optionProps:o}=Tle(t);return r({classNames:n,children:e,option:i,...o})}const Kle=({children:e,classNames:t,isActive:r,isDisabled:n,isInvalid:i,...o})=>{const a=[t.root];return r&&a.push(t.rootIsActive),n&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),Z.createElement("div",{className:a.join(" "),...o},e)};function Yle({children:e,onBlur:t,onFocus:r,render:n=Kle}){const{classNames:i,isDisabled:o,isInvalid:a}=I.useContext(Qr),{isActive:s,rootProps:c}=Ale({onBlur:t,onFocus:r});return n({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...c})}const Zle=({classNames:e,tag:t,...r})=>Z.createElement("button",{type:"button",className:e.tag,...r},Z.createElement("span",{className:e.tagName},t.label));function Xle({render:e=Zle,index:t,title:r}){const{classNames:n}=I.useContext(Qr),{tag:i,tagProps:o}=Rle(t,r);return e({classNames:n,tag:i,...o})}const Qle=({children:e,classNames:t,...r})=>Z.createElement("ul",{className:t.tagList,...r,role:"list"},Z.Children.map(e,n=>{if(Z.isValidElement(n))return Z.createElement("li",{className:t.tagListItem,key:n.key,role:"listitem"},n)}));function Jle({children:e,label:t,render:r=Qle}){const{classNames:n}=I.useContext(Qr),i=Nle({label:t});return r({classNames:n,children:e,...i})}const eue={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"},tue=[ru.Enter];function rue({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:r=!1,allowResize:n=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:c=eue,collapseOnSelect:u=!1,deleteButtonText:h="Remove %value% from the list",delimiterKeys:p=tue,id:v="react-tags",isDisabled:b=!1,isInvalid:x=!1,labelText:_="Select tags",newOptionPosition:w="last",newOptionText:O="Add %value%",noOptionsText:S="No options found for %value%",onAdd:E,onBlur:T,onCollapse:A,onDelete:j,onExpand:N,onFocus:F,onInput:V,onShouldCollapse:B,onShouldExpand:W,onValidate:q,placeholderText:J="Add a tag",renderHighlight:Q,renderInput:ne,renderLabel:ae,renderListBox:se,renderOption:oe,renderRoot:K,renderTag:G,renderTagList:z,selected:re=[],suggestions:X=[],suggestionsTransform:le=ble,tagListLabelText:ce="Selected tags"},de){const be=I.useRef(null),M=I.useRef(null),$=I.useRef(null),Y=I.useRef(null),ue=Ele({activateFirstOption:e,allowNew:r,collapseOnSelect:u,newOptionPosition:w,newOptionText:O,noOptionsText:S,onAdd:E,onDelete:j,onCollapse:A,onExpand:N,onInput:V,onShouldCollapse:B,onShouldExpand:W,onValidate:q,selected:re,suggestions:X,suggestionsTransform:le}),ie=jle({inputRef:M,managerRef:ue});return de&&(typeof de=="function"?de(ie):de.current=ie),Z.createElement(Qr.Provider,{value:{classNames:c,comboBoxRef:be,id:v,inputRef:M,isDisabled:b,isInvalid:x,listBoxRef:$,managerRef:ue,rootRef:Y}},Z.createElement(Yle,{onBlur:T,onFocus:F,render:K},Z.createElement(Vle,{render:ae},_),Z.createElement(Jle,{render:z,label:ce},ue.current.state.selected.map((he,Se)=>Z.createElement(Xle,{key:YP(he),index:Se,render:G,title:h}))),Z.createElement(Ile,null,Z.createElement(Ule,{allowBackspace:t,allowResize:n,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:p,placeholderText:J,render:ne}),Z.createElement(qle,{render:se},ue.current.state.options.map((he,Se)=>Z.createElement(Gle,{key:YP(he),index:Se,render:oe},Z.createElement(Fle,{option:he,query:ue.current.state.value,render:Q}))))),Z.createElement(Lle,{ariaAddedText:i,ariaDeletedText:s})))}const nue=Z.forwardRef(rue);function z1(e){return e==null?"":`${e}`}function iue(e={}){const{separator:t,decimals:r}=e;return t?r?n=>n.toFixed(r).replace(".",t):n=>`${n}`.replace(".",t):r?n=>n.toFixed(r):n=>`${n}`}function UT(e={}){const t=typeof e.quote=="string"?e.quote:'"',r=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===r)return i=>i;const n=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(n,r)),`${t}${i}${t}`)}function oue(e={stringFormatter:UT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function aue(e={stringFormatter:UT()}){return t=>{if(t===null)return"";let r=JSON.stringify(t);return r===void 0?"":(r[0]==='"'&&(r=r.replace(/^"(.+)"$/,"$1")),e.stringFormatter(r))}}const sue=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function lue(e){var t,r,n;const i=[];let o;for(;o=sue.exec(e);)i.push((n=(t=o[3])!==null&&t!==void 0?t:(r=o[1])===null||r===void 0?void 0:r.trim())!==null&&n!==void 0?n:o[0]);return i}function ON(e,t,r){if(t in e){const o=e[t];return o===void 0?r:o}const n=Array.isArray(t)?t:lue(t);let i=e;for(const o of n)if(i=i==null?void 0:i[o],i===void 0)return r;return i}function w7(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function XP(e,t){let r=!0;return e.reduce((n,i)=>(i==null&&(i=""),r?(r=!1,`${i}`):`${n}${t}${i}`),"")}var SN;(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"})(SN||(SN={}));class uue{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const r=Object.assign({},t);r.fields&&(r.fields=this.preprocessFieldsInfo(r.fields,r.defaultValue)),r.transforms=r.transforms||[];const n=r.formatters&&r.formatters.string||UT(),i=aue({stringFormatter:n}),o={header:n,undefined:z1,boolean:z1,number:iue(),bigint:z1,string:n,symbol:oue({stringFormatter:n}),function:i,object:i};return r.formatters=Object.assign(Object.assign({},o),r.formatters),r.delimiter=r.delimiter||",",r.eol=r.eol||`
|
||
`,r.header=r.header!==!1,r.includeEmptyRows=r.includeEmptyRows||!1,r.withBOM=r.withBOM||!1,r}preprocessFieldsInfo(t,r){return t.map(n=>{if(typeof n=="string")return{label:n,value:i=>ON(i,n,r)};if(typeof n=="object"){const i="default"in n?n.default:r;if(typeof n.value=="string"){const o=n.value;return{label:n.label||n.value,value:a=>ON(a,o,i)}}if(typeof n.value=="function"){const o=n.label||n.value.name||"",a={label:o,default:i},s=n.value;return{label:o,value(c){const u=s(c,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(n))})}getHeader(){return XP(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((r,n)=>r.map(i=>n(i)).reduce(w7,[]),[t])}processRow(t){if(!t)return;const r=this.opts.fields.map(n=>this.processCell(t,n));if(!(!this.opts.includeEmptyRows&&r.every(n=>n==="")))return XP(r,this.opts.delimiter)}processCell(t,r){return this.processValue(r.value(t))}processValue(t){const r=this.opts.formatters[typeof t];return r(t)}}class O7 extends uue{constructor(t){super(t)}parse(t){const r=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(r.reduce((a,s)=>(Object.keys(s).forEach(c=>{a.includes(c)||a.push(c)}),a),[]),this.opts.defaultValue);const n=this.opts.header?this.getHeader():"",i=this.processData(r);return(this.opts.withBOM?"\uFEFF":"")+n+(n&&i?this.opts.eol:"")+i}preprocessData(t){const r=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||r.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof r[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?r:r.map(n=>this.preprocessRow(n)).reduce(w7,[])}processData(t){return XP(t.map(r=>this.processRow(r)).filter(r=>r),this.opts.eol)}}var Kr;(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"})(Kr||(Kr={}));Kr.QUOTATION_MARK+"",Kr.QUOTATION_MARK,Kr.REVERSE_SOLIDUS+"",Kr.REVERSE_SOLIDUS,Kr.SOLIDUS+"",Kr.SOLIDUS,Kr.LATIN_SMALL_LETTER_B+"",Kr.BACKSPACE,Kr.LATIN_SMALL_LETTER_F+"",Kr.FORM_FEED,Kr.LATIN_SMALL_LETTER_N+"",Kr.NEWLINE,Kr.LATIN_SMALL_LETTER_R+"",Kr.CARRIAGE_RETURN,Kr.LATIN_SMALL_LETTER_T+"",Kr.TAB;var PN;(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"})(PN||(PN={}));var CN;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(CN||(CN={}));var EN;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(EN||(EN={}));var TN;(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"})(TN||(TN={}));var V1,jN;function Zn(){if(jN)return V1;jN=1;var e=Array.isArray;return V1=e,V1}var W1,AN;function S7(){if(AN)return W1;AN=1;var e=typeof $v=="object"&&$v&&$v.Object===Object&&$v;return W1=e,W1}var q1,kN;function ua(){if(kN)return q1;kN=1;var e=S7(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return q1=r,q1}var H1,RN;function lm(){if(RN)return H1;RN=1;var e=ua(),t=e.Symbol;return H1=t,H1}var G1,NN;function cue(){if(NN)return G1;NN=1;var e=lm(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function o(a){var s=r.call(a,i),c=a[i];try{a[i]=void 0;var u=!0}catch{}var h=n.call(a);return u&&(s?a[i]=c:delete a[i]),h}return G1=o,G1}var K1,MN;function fue(){if(MN)return K1;MN=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return K1=r,K1}var Y1,LN;function ts(){if(LN)return Y1;LN=1;var e=lm(),t=cue(),r=fue(),n="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?i:n:o&&o in Object(s)?t(s):r(s)}return Y1=a,Y1}var Z1,IN;function rs(){if(IN)return Z1;IN=1;function e(t){return t!=null&&typeof t=="object"}return Z1=e,Z1}var X1,DN;function Xf(){if(DN)return X1;DN=1;var e=ts(),t=rs(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return X1=n,X1}var Q1,$N;function zT(){if($N)return Q1;$N=1;var e=Zn(),t=Xf(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(o,a){if(e(o))return!1;var s=typeof o;return s=="number"||s=="symbol"||s=="boolean"||o==null||t(o)?!0:n.test(o)||!r.test(o)||a!=null&&o in Object(a)}return Q1=i,Q1}var J1,FN;function ml(){if(FN)return J1;FN=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return J1=e,J1}var ex,BN;function VT(){if(BN)return ex;BN=1;var e=ts(),t=ml(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==o}return ex=a,ex}var tx,UN;function due(){if(UN)return tx;UN=1;var e=ua(),t=e["__core-js_shared__"];return tx=t,tx}var rx,zN;function hue(){if(zN)return rx;zN=1;var e=due(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return rx=r,rx}var nx,VN;function P7(){if(VN)return nx;VN=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return nx=r,nx}var ix,WN;function pue(){if(WN)return ix;WN=1;var e=VT(),t=hue(),r=ml(),n=P7(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,h=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(v){if(!r(v)||t(v))return!1;var b=e(v)?h:o;return b.test(n(v))}return ix=p,ix}var ox,qN;function mue(){if(qN)return ox;qN=1;function e(t,r){return t==null?void 0:t[r]}return ox=e,ox}var ax,HN;function Lu(){if(HN)return ax;HN=1;var e=pue(),t=mue();function r(n,i){var o=t(n,i);return e(o)?o:void 0}return ax=r,ax}var sx,GN;function G0(){if(GN)return sx;GN=1;var e=Lu(),t=e(Object,"create");return sx=t,sx}var lx,KN;function vue(){if(KN)return lx;KN=1;var e=G0();function t(){this.__data__=e?e(null):{},this.size=0}return lx=t,lx}var ux,YN;function gue(){if(YN)return ux;YN=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ux=e,ux}var cx,ZN;function yue(){if(ZN)return cx;ZN=1;var e=G0(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(o){var a=this.__data__;if(e){var s=a[o];return s===t?void 0:s}return n.call(a,o)?a[o]:void 0}return cx=i,cx}var fx,XN;function bue(){if(XN)return fx;XN=1;var e=G0(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:r.call(o,i)}return fx=n,fx}var dx,QN;function _ue(){if(QN)return dx;QN=1;var e=G0(),t="__lodash_hash_undefined__";function r(n,i){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&i===void 0?t:i,this}return dx=r,dx}var hx,JN;function xue(){if(JN)return hx;JN=1;var e=vue(),t=gue(),r=yue(),n=bue(),i=_ue();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,hx=o,hx}var px,eM;function wue(){if(eM)return px;eM=1;function e(){this.__data__=[],this.size=0}return px=e,px}var mx,tM;function WT(){if(tM)return mx;tM=1;function e(t,r){return t===r||t!==t&&r!==r}return mx=e,mx}var vx,rM;function K0(){if(rM)return vx;rM=1;var e=WT();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return vx=t,vx}var gx,nM;function Oue(){if(nM)return gx;nM=1;var e=K0(),t=Array.prototype,r=t.splice;function n(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():r.call(o,a,1),--this.size,!0}return gx=n,gx}var yx,iM;function Sue(){if(iM)return yx;iM=1;var e=K0();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return yx=t,yx}var bx,oM;function Pue(){if(oM)return bx;oM=1;var e=K0();function t(r){return e(this.__data__,r)>-1}return bx=t,bx}var _x,aM;function Cue(){if(aM)return _x;aM=1;var e=K0();function t(r,n){var i=this.__data__,o=e(i,r);return o<0?(++this.size,i.push([r,n])):i[o][1]=n,this}return _x=t,_x}var xx,sM;function Y0(){if(sM)return xx;sM=1;var e=wue(),t=Oue(),r=Sue(),n=Pue(),i=Cue();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,xx=o,xx}var wx,lM;function qT(){if(lM)return wx;lM=1;var e=Lu(),t=ua(),r=e(t,"Map");return wx=r,wx}var Ox,uM;function Eue(){if(uM)return Ox;uM=1;var e=xue(),t=Y0(),r=qT();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ox=n,Ox}var Sx,cM;function Tue(){if(cM)return Sx;cM=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Sx=e,Sx}var Px,fM;function Z0(){if(fM)return Px;fM=1;var e=Tue();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Px=t,Px}var Cx,dM;function jue(){if(dM)return Cx;dM=1;var e=Z0();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Cx=t,Cx}var Ex,hM;function Aue(){if(hM)return Ex;hM=1;var e=Z0();function t(r){return e(this,r).get(r)}return Ex=t,Ex}var Tx,pM;function kue(){if(pM)return Tx;pM=1;var e=Z0();function t(r){return e(this,r).has(r)}return Tx=t,Tx}var jx,mM;function Rue(){if(mM)return jx;mM=1;var e=Z0();function t(r,n){var i=e(this,r),o=i.size;return i.set(r,n),this.size+=i.size==o?0:1,this}return jx=t,jx}var Ax,vM;function HT(){if(vM)return Ax;vM=1;var e=Eue(),t=jue(),r=Aue(),n=kue(),i=Rue();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Ax=o,Ax}var kx,gM;function C7(){if(gM)return kx;gM=1;var e=HT(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var a=arguments,s=i?i.apply(this,a):a[0],c=o.cache;if(c.has(s))return c.get(s);var u=n.apply(this,a);return o.cache=c.set(s,u)||c,u};return o.cache=new(r.Cache||e),o}return r.Cache=e,kx=r,kx}var Rx,yM;function Nue(){if(yM)return Rx;yM=1;var e=C7(),t=500;function r(n){var i=e(n,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return Rx=r,Rx}var Nx,bM;function Mue(){if(bM)return Nx;bM=1;var e=Nue(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(a,s,c,u){o.push(c?u.replace(r,"$1"):s||a)}),o});return Nx=n,Nx}var Mx,_M;function GT(){if(_M)return Mx;_M=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=Array(i);++n<i;)o[n]=r(t[n],n,t);return o}return Mx=e,Mx}var Lx,xM;function Lue(){if(xM)return Lx;xM=1;var e=lm(),t=GT(),r=Zn(),n=Xf(),i=1/0,o=e?e.prototype:void 0,a=o?o.toString:void 0;function s(c){if(typeof c=="string")return c;if(r(c))return t(c,s)+"";if(n(c))return a?a.call(c):"";var u=c+"";return u=="0"&&1/c==-i?"-0":u}return Lx=s,Lx}var Ix,wM;function E7(){if(wM)return Ix;wM=1;var e=Lue();function t(r){return r==null?"":e(r)}return Ix=t,Ix}var Dx,OM;function T7(){if(OM)return Dx;OM=1;var e=Zn(),t=zT(),r=Mue(),n=E7();function i(o,a){return e(o)?o:t(o,a)?[o]:r(n(o))}return Dx=i,Dx}var $x,SM;function X0(){if(SM)return $x;SM=1;var e=Xf(),t=1/0;function r(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-t?"-0":i}return $x=r,$x}var Fx,PM;function KT(){if(PM)return Fx;PM=1;var e=T7(),t=X0();function r(n,i){i=e(i,n);for(var o=0,a=i.length;n!=null&&o<a;)n=n[t(i[o++])];return o&&o==a?n:void 0}return Fx=r,Fx}var Bx,CM;function j7(){if(CM)return Bx;CM=1;var e=KT();function t(r,n,i){var o=r==null?void 0:e(r,n);return o===void 0?i:o}return Bx=t,Bx}var Iue=j7();const mi=Nt(Iue);var Ux,EM;function Due(){if(EM)return Ux;EM=1;function e(t){return t==null}return Ux=e,Ux}var $ue=Due();const dt=Nt($ue);var zx,TM;function Fue(){if(TM)return zx;TM=1;var e=ts(),t=Zn(),r=rs(),n="[object String]";function i(o){return typeof o=="string"||!t(o)&&r(o)&&e(o)==n}return zx=i,zx}var Bue=Fue();const um=Nt(Bue);var Uue=VT();const ft=Nt(Uue);var zue=ml();const Qf=Nt(zue);var Vx={exports:{}},$t={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var jM;function Vue(){if(jM)return $t;jM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function _(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case e:switch(w=w.type,w){case r:case i:case n:case u:case h:return w;default:switch(w=w&&w.$$typeof,w){case s:case a:case c:case v:case p:case o:return w;default:return O}}case t:return O}}}return $t.ContextConsumer=a,$t.ContextProvider=o,$t.Element=e,$t.ForwardRef=c,$t.Fragment=r,$t.Lazy=v,$t.Memo=p,$t.Portal=t,$t.Profiler=i,$t.StrictMode=n,$t.Suspense=u,$t.SuspenseList=h,$t.isAsyncMode=function(){return!1},$t.isConcurrentMode=function(){return!1},$t.isContextConsumer=function(w){return _(w)===a},$t.isContextProvider=function(w){return _(w)===o},$t.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},$t.isForwardRef=function(w){return _(w)===c},$t.isFragment=function(w){return _(w)===r},$t.isLazy=function(w){return _(w)===v},$t.isMemo=function(w){return _(w)===p},$t.isPortal=function(w){return _(w)===t},$t.isProfiler=function(w){return _(w)===i},$t.isStrictMode=function(w){return _(w)===n},$t.isSuspense=function(w){return _(w)===u},$t.isSuspenseList=function(w){return _(w)===h},$t.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===i||w===n||w===u||w===h||w===b||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===p||w.$$typeof===o||w.$$typeof===a||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},$t.typeOf=_,$t}var AM;function Wue(){return AM||(AM=1,Vx.exports=Vue()),Vx.exports}var que=Wue(),Wx,kM;function A7(){if(kM)return Wx;kM=1;var e=ts(),t=rs(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Wx=n,Wx}var qx,RM;function Hue(){if(RM)return qx;RM=1;var e=A7();function t(r){return e(r)&&r!=+r}return qx=t,qx}var Gue=Hue();const Jf=Nt(Gue);var Kue=A7();const Yue=Nt(Kue);var Pn=function(t){return t===0?0:t>0?1:-1},uu=function(t){return um(t)&&t.indexOf("%")===t.length-1},Ve=function(t){return Yue(t)&&!Jf(t)},zr=function(t){return Ve(t)||um(t)},Zue=0,vl=function(t){var r=++Zue;return"".concat(t||"").concat(r)},Cn=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ve(t)&&!um(t))return n;var o;if(uu(t)){var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return Jf(o)&&(o=n),i&&o>r&&(o=r),o},Hs=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Xue=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},_r=function(t,r){return Ve(t)&&Ve(r)?function(n){return t+n*(r-t)}:function(){return r}};function hy(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):mi(n,t))===r})}var Que=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,o=0,a=0,s=1/0,c=-1/0,u=0,h=0,p=0;p<r;p++)u=t[p].cx||0,h=t[p].cy||0,n+=u,i+=h,o+=u*h,a+=u*u,s=Math.min(s,u),c=Math.max(c,u);var v=r*a!==n*n?(r*o-n*i)/(r*a-n*n):0;return{xmin:s,xmax:c,a:v,b:(i-v*n)/r}};function ef(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function QP(e){"@babel/helpers - typeof";return QP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QP(e)}var Jue=["viewBox","children"],ece=["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"],NM=["points","pathLength"],Hx={svg:Jue,polygon:NM,polyline:NM},YT=["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"],py=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(I.isValidElement(t)&&(n=t.props),!Qf(n))return null;var i={};return Object.keys(n).forEach(function(o){YT.includes(o)&&(i[o]=r||function(a){return n[o](n,a)})}),i},tce=function(t,r,n){return function(i){return t(r,n,i),null}},sl=function(t,r,n){if(!Qf(t)||QP(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];YT.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=tce(a,r,n))}),i},rce=["children"],nce=["children"];function MM(e,t){if(e==null)return{};var r=ice(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ice(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function JP(e){"@babel/helpers - typeof";return JP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JP(e)}var LM={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Fa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},IM=null,Gx=null,ZT=function e(t){if(t===IM&&Array.isArray(Gx))return Gx;var r=[];return I.Children.forEach(t,function(n){dt(n)||(que.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Gx=r,IM=t,r};function An(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Fa(i)}):n=[Fa(t)],ZT(e).forEach(function(i){var o=mi(i,"type.displayName")||mi(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function di(e,t){var r=An(e,t);return r&&r[0]}var DM=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Ve(n)||n<=0||!Ve(i)||i<=0)},oce=["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"],ace=function(t){return t&&t.type&&um(t.type)&&oce.indexOf(t.type)>=0},k7=function(t){return t&&JP(t)==="object"&&"clipDot"in t},sce=function(t,r,n,i){var o,a=(o=Hx==null?void 0:Hx[i])!==null&&o!==void 0?o:[];return!ft(t)&&(i&&a.includes(r)||ece.includes(r))||n&&YT.includes(r)},it=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(I.isValidElement(t)&&(i=t.props),!Qf(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;sce((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},eC=function e(t,r){if(t===r)return!0;var n=I.Children.count(t);if(n!==I.Children.count(r))return!1;if(n===0)return!0;if(n===1)return $M(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=t[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!$M(o,a))return!1}return!0},$M=function(t,r){if(dt(t)&&dt(r))return!0;if(!dt(t)&&!dt(r)){var n=t.props||{},i=n.children,o=MM(n,rce),a=r.props||{},s=a.children,c=MM(a,nce);return i&&s?ef(o,c)&&eC(i,s):!i&&!s?ef(o,c):!1}return!1},FM=function(t,r){var n=[],i={};return ZT(t).forEach(function(o,a){if(ace(o))n.push(o);else if(o){var s=Fa(o.type),c=r[s]||{},u=c.handler,h=c.once;if(u&&(!h||!i[s])){var p=u(o,s,a);n.push(p),i[s]=!0}}}),n},lce=function(t){var r=t&&t.type;return r&&LM[r]?LM[r]:null},uce=function(t,r){return ZT(r).indexOf(t)},cce=["children","width","height","viewBox","className","style","title","desc"];function tC(){return tC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tC.apply(this,arguments)}function fce(e,t){if(e==null)return{};var r=dce(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rC(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,c=e.desc,u=fce(e,cce),h=i||{width:r,height:n,x:0,y:0},p=ze("recharts-surface",o);return Z.createElement("svg",tC({},it(u,!0,"svg"),{className:p,width:r,height:n,style:a,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),Z.createElement("title",null,s),Z.createElement("desc",null,c),t)}var hce=["children","className"];function nC(){return nC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nC.apply(this,arguments)}function pce(e,t){if(e==null)return{};var r=mce(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Ct=Z.forwardRef(function(e,t){var r=e.children,n=e.className,i=pce(e,hce),o=ze("recharts-layer",n);return Z.createElement("g",nC({className:o},it(i,!0),{ref:t}),r)}),_o=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o]},Kx,BM;function vce(){if(BM)return Kx;BM=1;function e(t,r,n){var i=-1,o=t.length;r<0&&(r=-r>o?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var a=Array(o);++i<o;)a[i]=t[i+r];return a}return Kx=e,Kx}var Yx,UM;function gce(){if(UM)return Yx;UM=1;var e=vce();function t(r,n,i){var o=r.length;return i=i===void 0?o:i,!n&&i>=o?r:e(r,n,i)}return Yx=t,Yx}var Zx,zM;function R7(){if(zM)return Zx;zM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+e+i+o+"]");function c(u){return s.test(u)}return Zx=c,Zx}var Xx,VM;function yce(){if(VM)return Xx;VM=1;function e(t){return t.split("")}return Xx=e,Xx}var Qx,WM;function bce(){if(WM)return Qx;WM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",a="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",h="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",x=u+"?",_="["+o+"]?",w="(?:"+b+"(?:"+[h,p,v].join("|")+")"+_+x+")*",O=_+x+w,S="(?:"+[h+s+"?",s,p,v,a].join("|")+")",E=RegExp(c+"(?="+c+")|"+S+O,"g");function T(A){return A.match(E)||[]}return Qx=T,Qx}var Jx,qM;function _ce(){if(qM)return Jx;qM=1;var e=yce(),t=R7(),r=bce();function n(i){return t(i)?r(i):e(i)}return Jx=n,Jx}var ew,HM;function xce(){if(HM)return ew;HM=1;var e=gce(),t=R7(),r=_ce(),n=E7();function i(o){return function(a){a=n(a);var s=t(a)?r(a):void 0,c=s?s[0]:a.charAt(0),u=s?e(s,1).join(""):a.slice(1);return c[o]()+u}}return ew=i,ew}var tw,GM;function wce(){if(GM)return tw;GM=1;var e=xce(),t=e("toUpperCase");return tw=t,tw}var Oce=wce();const Q0=Nt(Oce);function Xt(e){return function(){return e}}const N7=Math.cos,my=Math.sin,jo=Math.sqrt,vy=Math.PI,J0=2*vy,iC=Math.PI,oC=2*iC,nu=1e-6,Sce=oC-nu;function M7(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Pce(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return M7;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Cce{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?M7:Pce(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,o,a){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,c=n-t,u=i-r,h=a-t,p=s-r,v=h*h+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(v>nu)if(!(Math.abs(p*c-u*h)>nu)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let b=n-a,x=i-s,_=c*c+u*u,w=b*b+x*x,O=Math.sqrt(_),S=Math.sqrt(v),E=o*Math.tan((iC-Math.acos((_+v-w)/(2*O*S)))/2),T=E/S,A=E/O;Math.abs(T-1)>nu&&this._append`L${t+T*h},${r+T*p}`,this._append`A${o},${o},0,0,${+(p*b>h*x)},${this._x1=t+A*c},${this._y1=r+A*u}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),c=n*Math.sin(i),u=t+s,h=r+c,p=1^a,v=a?i-o:o-i;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>nu||Math.abs(this._y1-h)>nu)&&this._append`L${u},${h}`,n&&(v<0&&(v=v%oC+oC),v>Sce?this._append`A${n},${n},0,1,${p},${t-s},${r-c}A${n},${n},0,1,${p},${this._x1=u},${this._y1=h}`:v>nu&&this._append`A${n},${n},0,${+(v>=iC)},${p},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function XT(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Cce(t)}function QT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function L7(e){this._context=e}L7.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 eb(e){return new L7(e)}function I7(e){return e[0]}function D7(e){return e[1]}function $7(e,t){var r=Xt(!0),n=null,i=eb,o=null,a=XT(s);e=typeof e=="function"?e:e===void 0?I7:Xt(e),t=typeof t=="function"?t:t===void 0?D7:Xt(t);function s(c){var u,h=(c=QT(c)).length,p,v=!1,b;for(n==null&&(o=i(b=a())),u=0;u<=h;++u)!(u<h&&r(p=c[u],u,c))===v&&((v=!v)?o.lineStart():o.lineEnd()),v&&o.point(+e(p,u,c),+t(p,u,c));if(b)return o=null,b+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Xt(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Xt(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Xt(!!c),s):r},s.curve=function(c){return arguments.length?(i=c,n!=null&&(o=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=o=null:o=i(n=c),s):n},s}function Kv(e,t,r){var n=null,i=Xt(!0),o=null,a=eb,s=null,c=XT(u);e=typeof e=="function"?e:e===void 0?I7:Xt(+e),t=typeof t=="function"?t:Xt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?D7:Xt(+r);function u(p){var v,b,x,_=(p=QT(p)).length,w,O=!1,S,E=new Array(_),T=new Array(_);for(o==null&&(s=a(S=c())),v=0;v<=_;++v){if(!(v<_&&i(w=p[v],v,p))===O)if(O=!O)b=v,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),x=v-1;x>=b;--x)s.point(E[x],T[x]);s.lineEnd(),s.areaEnd()}O&&(E[v]=+e(w,v,p),T[v]=+t(w,v,p),s.point(n?+n(w,v,p):E[v],r?+r(w,v,p):T[v]))}if(S)return s=null,S+""||null}function h(){return $7().defined(i).curve(a).context(o)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),n=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),u):e},u.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Xt(+p),u):n},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),r=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),u):t},u.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Xt(+p),u):r},u.lineX0=u.lineY0=function(){return h().x(e).y(t)},u.lineY1=function(){return h().x(e).y(r)},u.lineX1=function(){return h().x(n).y(t)},u.defined=function(p){return arguments.length?(i=typeof p=="function"?p:Xt(!!p),u):i},u.curve=function(p){return arguments.length?(a=p,o!=null&&(s=a(o)),u):a},u.context=function(p){return arguments.length?(p==null?o=s=null:s=a(o=p),u):o},u}class F7{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Ece(e){return new F7(e,!0)}function Tce(e){return new F7(e,!1)}const JT={draw(e,t){const r=jo(t/vy);e.moveTo(r,0),e.arc(0,0,r,0,J0)}},jce={draw(e,t){const r=jo(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},B7=jo(1/3),Ace=B7*2,kce={draw(e,t){const r=jo(t/Ace),n=r*B7;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Rce={draw(e,t){const r=jo(t),n=-r/2;e.rect(n,n,r,r)}},Nce=.8908130915292852,U7=my(vy/10)/my(7*vy/10),Mce=my(J0/10)*U7,Lce=-N7(J0/10)*U7,Ice={draw(e,t){const r=jo(t*Nce),n=Mce*r,i=Lce*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=J0*o/5,s=N7(a),c=my(a);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},rw=jo(3),Dce={draw(e,t){const r=-jo(t/(rw*3));e.moveTo(0,r*2),e.lineTo(-rw*r,-r),e.lineTo(rw*r,-r),e.closePath()}},Ii=-.5,Di=jo(3)/2,aC=1/jo(12),$ce=(aC/2+1)*3,Fce={draw(e,t){const r=jo(t/$ce),n=r/2,i=r*aC,o=n,a=r*aC+r,s=-o,c=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(Ii*n-Di*i,Di*n+Ii*i),e.lineTo(Ii*o-Di*a,Di*o+Ii*a),e.lineTo(Ii*s-Di*c,Di*s+Ii*c),e.lineTo(Ii*n+Di*i,Ii*i-Di*n),e.lineTo(Ii*o+Di*a,Ii*a-Di*o),e.lineTo(Ii*s+Di*c,Ii*c-Di*s),e.closePath()}};function Bce(e,t){let r=null,n=XT(i);e=typeof e=="function"?e:Xt(e||JT),t=typeof t=="function"?t:Xt(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Xt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Xt(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function gy(){}function yy(e,t,r){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+r)/6)}function z7(e){this._context=e}z7.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:yy(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:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uce(e){return new z7(e)}function V7(e){this._context=e}V7.prototype={areaStart:gy,areaEnd:gy,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:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zce(e){return new V7(e)}function W7(e){this._context=e}W7.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vce(e){return new W7(e)}function q7(e){this._context=e}q7.prototype={areaStart:gy,areaEnd:gy,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 Wce(e){return new q7(e)}function KM(e){return e<0?-1:1}function YM(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(KM(o)+KM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ZM(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function nw(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function by(e){this._context=e}by.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:nw(this,this._t0,ZM(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 r=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,nw(this,ZM(this,r=YM(this,e,t)),r);break;default:nw(this,this._t0,r=YM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function H7(e){this._context=new G7(e)}(H7.prototype=Object.create(by.prototype)).point=function(e,t){by.prototype.point.call(this,t,e)};function G7(e){this._context=e}G7.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,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function qce(e){return new by(e)}function Hce(e){return new H7(e)}function K7(e){this._context=e}K7.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=XM(e),i=XM(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&r===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 XM(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Gce(e){return new K7(e)}function tb(e,t){this._context=e,this._t=t}tb.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Kce(e){return new tb(e,.5)}function Yce(e){return new tb(e,0)}function Zce(e){return new tb(e,1)}function mf(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,s=o.length;r<a;++r)for(i=o,o=e[t[r]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function sC(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Xce(e,t){return e[t]}function Qce(e){const t=[];return t.key=e,t}function Jce(){var e=Xt([]),t=sC,r=mf,n=Xce;function i(o){var a=Array.from(e.apply(this,arguments),Qce),s,c=a.length,u=-1,h;for(const p of o)for(s=0,++u;s<c;++s)(a[s][u]=[0,+n(p,a[s].key,u,o)]).data=p;for(s=0,h=QT(t(a));s<c;++s)a[h[s]].index=s;return r(a,h),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Xt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(n=typeof o=="function"?o:Xt(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?sC:typeof o=="function"?o:Xt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??mf,i):r},i}function efe(e,t){if((n=e.length)>0){for(var r,n,i=0,o=e[0].length,a;i<o;++i){for(a=r=0;r<n;++r)a+=e[r][i][1]||0;if(a)for(r=0;r<n;++r)e[r][i][1]/=a}mf(e,t)}}function tfe(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,o=n.length;r<o;++r){for(var a=0,s=0;a<i;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}mf(e,t)}}function rfe(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n<o;++n){for(var s=0,c=0,u=0;s<a;++s){for(var h=e[t[s]],p=h[n][1]||0,v=h[n-1][1]||0,b=(p-v)/2,x=0;x<s;++x){var _=e[t[x]],w=_[n][1]||0,O=_[n-1][1]||0;b+=w-O}c+=p,u+=b*p}i[n-1][1]+=i[n-1][0]=r,c&&(r-=u/c)}i[n-1][1]+=i[n-1][0]=r,mf(e,t)}}function cp(e){"@babel/helpers - typeof";return cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cp(e)}var nfe=["type","size","sizeType"];function lC(){return lC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lC.apply(this,arguments)}function QM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function JM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QM(Object(r),!0).forEach(function(n){ife(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ife(e,t,r){return t=ofe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ofe(e){var t=afe(e,"string");return cp(t)=="symbol"?t:t+""}function afe(e,t){if(cp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sfe(e,t){if(e==null)return{};var r=lfe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lfe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Y7={symbolCircle:JT,symbolCross:jce,symbolDiamond:kce,symbolSquare:Rce,symbolStar:Ice,symbolTriangle:Dce,symbolWye:Fce},ufe=Math.PI/180,cfe=function(t){var r="symbol".concat(Q0(t));return Y7[r]||JT},ffe=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*ufe;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},dfe=function(t,r){Y7["symbol".concat(Q0(t))]=r},rb=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,c=sfe(t,nfe),u=JM(JM({},c),{},{type:n,size:o,sizeType:s}),h=function(){var w=cfe(n),O=Bce().type(w).size(ffe(o,s,n));return O()},p=u.className,v=u.cx,b=u.cy,x=it(u,!0);return v===+v&&b===+b&&o===+o?Z.createElement("path",lC({},x,{className:ze("recharts-symbols",p),transform:"translate(".concat(v,", ").concat(b,")"),d:h()})):null};rb.registerSymbol=dfe;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 uC(){return uC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uC.apply(this,arguments)}function eL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hfe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(r),!0).forEach(function(n){fp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mfe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,X7(n.key),n)}}function vfe(e,t,r){return t&&mfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gfe(e,t,r){return t=_y(t),yfe(e,Z7()?Reflect.construct(t,r||[],_y(e).constructor):t.apply(e,r))}function yfe(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 bfe(e)}function bfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z7=function(){return!!e})()}function _y(e){return _y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_y(e)}function _fe(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,i){return n.__proto__=i,n},cC(e,t)}function fp(e,t,r){return t=X7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X7(e){var t=xfe(e,"string");return vf(t)=="symbol"?t:t+""}function xfe(e,t){if(vf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $i=32,ej=function(e){function t(){return pfe(this,t),gfe(this,t,arguments)}return _fe(t,e),vfe(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,o=$i/2,a=$i/6,s=$i/3,c=n.inactive?i:n.color;if(n.type==="plainline")return Z.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:$i,y2:o,className:"recharts-legend-icon"});if(n.type==="line")return Z.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(s,`
|
||
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
|
||
H`).concat($i,"M").concat(2*s,",").concat(o,`
|
||
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return Z.createElement("path",{stroke:"none",fill:c,d:"M0,".concat($i/8,"h").concat($i,"v").concat($i*3/4,"h").concat(-$i,"z"),className:"recharts-legend-icon"});if(Z.isValidElement(n.legendIcon)){var u=hfe({},n);return delete u.legendIcon,Z.cloneElement(n.legendIcon,u)}return Z.createElement(rb,{fill:c,cx:o,cy:o,size:$i,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,c=i.formatter,u=i.inactiveColor,h={x:0,y:0,width:$i,height:$i},p={display:s==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,x){var _=b.formatter||c,w=ze(fp(fp({"recharts-legend-item":!0},"legend-item-".concat(x),!0),"inactive",b.inactive));if(b.type==="none")return null;var O=ft(b.value)?null:b.value;_o(!ft(b.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 S=b.inactive?u:b.color;return Z.createElement("li",uC({className:w,style:p,key:"legend-item-".concat(x)},sl(n.props,b,x)),Z.createElement(rC,{width:a,height:a,viewBox:h,style:v},n.renderIcon(b)),Z.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},_?_(O,b,x):O))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,a=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return Z.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(I.PureComponent);fp(ej,"displayName","Legend");fp(ej,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var iw,tL;function wfe(){if(tL)return iw;tL=1;var e=Y0();function t(){this.__data__=new e,this.size=0}return iw=t,iw}var ow,rL;function Ofe(){if(rL)return ow;rL=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ow=e,ow}var aw,nL;function Sfe(){if(nL)return aw;nL=1;function e(t){return this.__data__.get(t)}return aw=e,aw}var sw,iL;function Pfe(){if(iL)return sw;iL=1;function e(t){return this.__data__.has(t)}return sw=e,sw}var lw,oL;function Cfe(){if(oL)return lw;oL=1;var e=Y0(),t=qT(),r=HT(),n=200;function i(o,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([o,a]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(o,a),this.size=s.size,this}return lw=i,lw}var uw,aL;function Q7(){if(aL)return uw;aL=1;var e=Y0(),t=wfe(),r=Ofe(),n=Sfe(),i=Pfe(),o=Cfe();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=o,uw=a,uw}var cw,sL;function Efe(){if(sL)return cw;sL=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return cw=t,cw}var fw,lL;function Tfe(){if(lL)return fw;lL=1;function e(t){return this.__data__.has(t)}return fw=e,fw}var dw,uL;function J7(){if(uL)return dw;uL=1;var e=HT(),t=Efe(),r=Tfe();function n(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,dw=n,dw}var hw,cL;function eB(){if(cL)return hw;cL=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return hw=e,hw}var pw,fL;function tB(){if(fL)return pw;fL=1;function e(t,r){return t.has(r)}return pw=e,pw}var mw,dL;function rB(){if(dL)return mw;dL=1;var e=J7(),t=eB(),r=tB(),n=1,i=2;function o(a,s,c,u,h,p){var v=c&n,b=a.length,x=s.length;if(b!=x&&!(v&&x>b))return!1;var _=p.get(a),w=p.get(s);if(_&&w)return _==s&&w==a;var O=-1,S=!0,E=c&i?new e:void 0;for(p.set(a,s),p.set(s,a);++O<b;){var T=a[O],A=s[O];if(u)var j=v?u(A,T,O,s,a,p):u(T,A,O,a,s,p);if(j!==void 0){if(j)continue;S=!1;break}if(E){if(!t(s,function(N,F){if(!r(E,F)&&(T===N||h(T,N,c,u,p)))return E.push(F)})){S=!1;break}}else if(!(T===A||h(T,A,c,u,p))){S=!1;break}}return p.delete(a),p.delete(s),S}return mw=o,mw}var vw,hL;function jfe(){if(hL)return vw;hL=1;var e=ua(),t=e.Uint8Array;return vw=t,vw}var gw,pL;function Afe(){if(pL)return gw;pL=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,o){n[++r]=[o,i]}),n}return gw=e,gw}var yw,mL;function tj(){if(mL)return yw;mL=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return yw=e,yw}var bw,vL;function kfe(){if(vL)return bw;vL=1;var e=lm(),t=jfe(),r=WT(),n=rB(),i=Afe(),o=tj(),a=1,s=2,c="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Map]",v="[object Number]",b="[object RegExp]",x="[object Set]",_="[object String]",w="[object Symbol]",O="[object ArrayBuffer]",S="[object DataView]",E=e?e.prototype:void 0,T=E?E.valueOf:void 0;function A(j,N,F,V,B,W,q){switch(F){case S:if(j.byteLength!=N.byteLength||j.byteOffset!=N.byteOffset)return!1;j=j.buffer,N=N.buffer;case O:return!(j.byteLength!=N.byteLength||!W(new t(j),new t(N)));case c:case u:case v:return r(+j,+N);case h:return j.name==N.name&&j.message==N.message;case b:case _:return j==N+"";case p:var J=i;case x:var Q=V&a;if(J||(J=o),j.size!=N.size&&!Q)return!1;var ne=q.get(j);if(ne)return ne==N;V|=s,q.set(j,N);var ae=n(J(j),J(N),V,B,W,q);return q.delete(j),ae;case w:if(T)return T.call(j)==T.call(N)}return!1}return bw=A,bw}var _w,gL;function nB(){if(gL)return _w;gL=1;function e(t,r){for(var n=-1,i=r.length,o=t.length;++n<i;)t[o+n]=r[n];return t}return _w=e,_w}var xw,yL;function Rfe(){if(yL)return xw;yL=1;var e=nB(),t=Zn();function r(n,i,o){var a=i(n);return t(n)?a:e(a,o(n))}return xw=r,xw}var ww,bL;function Nfe(){if(bL)return ww;bL=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=0,a=[];++n<i;){var s=t[n];r(s,n,t)&&(a[o++]=s)}return a}return ww=e,ww}var Ow,_L;function Mfe(){if(_L)return Ow;_L=1;function e(){return[]}return Ow=e,Ow}var Sw,xL;function Lfe(){if(xL)return Sw;xL=1;var e=Nfe(),t=Mfe(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(s){return n.call(a,s)}))}:t;return Sw=o,Sw}var Pw,wL;function Ife(){if(wL)return Pw;wL=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Pw=e,Pw}var Cw,OL;function Dfe(){if(OL)return Cw;OL=1;var e=ts(),t=rs(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Cw=n,Cw}var Ew,SL;function rj(){if(SL)return Ew;SL=1;var e=Dfe(),t=rs(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(a){return t(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return Ew=o,Ew}var Ph={exports:{}},Tw,PL;function $fe(){if(PL)return Tw;PL=1;function e(){return!1}return Tw=e,Tw}Ph.exports;var CL;function iB(){return CL||(CL=1,function(e,t){var r=ua(),n=$fe(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u}(Ph,Ph.exports)),Ph.exports}var jw,EL;function nj(){if(EL)return jw;EL=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var o=typeof n;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return jw=r,jw}var Aw,TL;function ij(){if(TL)return Aw;TL=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Aw=t,Aw}var kw,jL;function Ffe(){if(jL)return kw;jL=1;var e=ts(),t=ij(),r=rs(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",h="[object Number]",p="[object Object]",v="[object RegExp]",b="[object Set]",x="[object String]",_="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",S="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",j="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",B="[object Uint32Array]",W={};W[S]=W[E]=W[T]=W[A]=W[j]=W[N]=W[F]=W[V]=W[B]=!0,W[n]=W[i]=W[w]=W[o]=W[O]=W[a]=W[s]=W[c]=W[u]=W[h]=W[p]=W[v]=W[b]=W[x]=W[_]=!1;function q(J){return r(J)&&t(J.length)&&!!W[e(J)]}return kw=q,kw}var Rw,AL;function oB(){if(AL)return Rw;AL=1;function e(t){return function(r){return t(r)}}return Rw=e,Rw}var Ch={exports:{}};Ch.exports;var kL;function Bfe(){return kL||(kL=1,function(e,t){var r=S7(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Ch,Ch.exports)),Ch.exports}var Nw,RL;function aB(){if(RL)return Nw;RL=1;var e=Ffe(),t=oB(),r=Bfe(),n=r&&r.isTypedArray,i=n?t(n):e;return Nw=i,Nw}var Mw,NL;function Ufe(){if(NL)return Mw;NL=1;var e=Ife(),t=rj(),r=Zn(),n=iB(),i=nj(),o=aB(),a=Object.prototype,s=a.hasOwnProperty;function c(u,h){var p=r(u),v=!p&&t(u),b=!p&&!v&&n(u),x=!p&&!v&&!b&&o(u),_=p||v||b||x,w=_?e(u.length,String):[],O=w.length;for(var S in u)(h||s.call(u,S))&&!(_&&(S=="length"||b&&(S=="offset"||S=="parent")||x&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||i(S,O)))&&w.push(S);return w}return Mw=c,Mw}var Lw,ML;function zfe(){if(ML)return Lw;ML=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Lw=t,Lw}var Iw,LL;function sB(){if(LL)return Iw;LL=1;function e(t,r){return function(n){return t(r(n))}}return Iw=e,Iw}var Dw,IL;function Vfe(){if(IL)return Dw;IL=1;var e=sB(),t=e(Object.keys,Object);return Dw=t,Dw}var $w,DL;function Wfe(){if(DL)return $w;DL=1;var e=zfe(),t=Vfe(),r=Object.prototype,n=r.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var s in Object(o))n.call(o,s)&&s!="constructor"&&a.push(s);return a}return $w=i,$w}var Fw,$L;function cm(){if($L)return Fw;$L=1;var e=VT(),t=ij();function r(n){return n!=null&&t(n.length)&&!e(n)}return Fw=r,Fw}var Bw,FL;function nb(){if(FL)return Bw;FL=1;var e=Ufe(),t=Wfe(),r=cm();function n(i){return r(i)?e(i):t(i)}return Bw=n,Bw}var Uw,BL;function qfe(){if(BL)return Uw;BL=1;var e=Rfe(),t=Lfe(),r=nb();function n(i){return e(i,r,t)}return Uw=n,Uw}var zw,UL;function Hfe(){if(UL)return zw;UL=1;var e=qfe(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(o,a,s,c,u,h){var p=s&t,v=e(o),b=v.length,x=e(a),_=x.length;if(b!=_&&!p)return!1;for(var w=b;w--;){var O=v[w];if(!(p?O in a:n.call(a,O)))return!1}var S=h.get(o),E=h.get(a);if(S&&E)return S==a&&E==o;var T=!0;h.set(o,a),h.set(a,o);for(var A=p;++w<b;){O=v[w];var j=o[O],N=a[O];if(c)var F=p?c(N,j,O,a,o,h):c(j,N,O,o,a,h);if(!(F===void 0?j===N||u(j,N,s,c,h):F)){T=!1;break}A||(A=O=="constructor")}if(T&&!A){var V=o.constructor,B=a.constructor;V!=B&&"constructor"in o&&"constructor"in a&&!(typeof V=="function"&&V instanceof V&&typeof B=="function"&&B instanceof B)&&(T=!1)}return h.delete(o),h.delete(a),T}return zw=i,zw}var Vw,zL;function Gfe(){if(zL)return Vw;zL=1;var e=Lu(),t=ua(),r=e(t,"DataView");return Vw=r,Vw}var Ww,VL;function Kfe(){if(VL)return Ww;VL=1;var e=Lu(),t=ua(),r=e(t,"Promise");return Ww=r,Ww}var qw,WL;function lB(){if(WL)return qw;WL=1;var e=Lu(),t=ua(),r=e(t,"Set");return qw=r,qw}var Hw,qL;function Yfe(){if(qL)return Hw;qL=1;var e=Lu(),t=ua(),r=e(t,"WeakMap");return Hw=r,Hw}var Gw,HL;function Zfe(){if(HL)return Gw;HL=1;var e=Gfe(),t=qT(),r=Kfe(),n=lB(),i=Yfe(),o=ts(),a=P7(),s="[object Map]",c="[object Object]",u="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",b=a(e),x=a(t),_=a(r),w=a(n),O=a(i),S=o;return(e&&S(new e(new ArrayBuffer(1)))!=v||t&&S(new t)!=s||r&&S(r.resolve())!=u||n&&S(new n)!=h||i&&S(new i)!=p)&&(S=function(E){var T=o(E),A=T==c?E.constructor:void 0,j=A?a(A):"";if(j)switch(j){case b:return v;case x:return s;case _:return u;case w:return h;case O:return p}return T}),Gw=S,Gw}var Kw,GL;function Xfe(){if(GL)return Kw;GL=1;var e=Q7(),t=rB(),r=kfe(),n=Hfe(),i=Zfe(),o=Zn(),a=iB(),s=aB(),c=1,u="[object Arguments]",h="[object Array]",p="[object Object]",v=Object.prototype,b=v.hasOwnProperty;function x(_,w,O,S,E,T){var A=o(_),j=o(w),N=A?h:i(_),F=j?h:i(w);N=N==u?p:N,F=F==u?p:F;var V=N==p,B=F==p,W=N==F;if(W&&a(_)){if(!a(w))return!1;A=!0,V=!1}if(W&&!V)return T||(T=new e),A||s(_)?t(_,w,O,S,E,T):r(_,w,N,O,S,E,T);if(!(O&c)){var q=V&&b.call(_,"__wrapped__"),J=B&&b.call(w,"__wrapped__");if(q||J){var Q=q?_.value():_,ne=J?w.value():w;return T||(T=new e),E(Q,ne,O,S,T)}}return W?(T||(T=new e),n(_,w,O,S,E,T)):!1}return Kw=x,Kw}var Yw,KL;function oj(){if(KL)return Yw;KL=1;var e=Xfe(),t=rs();function r(n,i,o,a,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,o,a,r,s)}return Yw=r,Yw}var Zw,YL;function Qfe(){if(YL)return Zw;YL=1;var e=Q7(),t=oj(),r=1,n=2;function i(o,a,s,c){var u=s.length,h=u,p=!c;if(o==null)return!h;for(o=Object(o);u--;){var v=s[u];if(p&&v[2]?v[1]!==o[v[0]]:!(v[0]in o))return!1}for(;++u<h;){v=s[u];var b=v[0],x=o[b],_=v[1];if(p&&v[2]){if(x===void 0&&!(b in o))return!1}else{var w=new e;if(c)var O=c(x,_,b,o,a,w);if(!(O===void 0?t(_,x,r|n,c,w):O))return!1}}return!0}return Zw=i,Zw}var Xw,ZL;function uB(){if(ZL)return Xw;ZL=1;var e=ml();function t(r){return r===r&&!e(r)}return Xw=t,Xw}var Qw,XL;function Jfe(){if(XL)return Qw;XL=1;var e=uB(),t=nb();function r(n){for(var i=t(n),o=i.length;o--;){var a=i[o],s=n[a];i[o]=[a,s,e(s)]}return i}return Qw=r,Qw}var Jw,QL;function cB(){if(QL)return Jw;QL=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Jw=e,Jw}var e2,JL;function ede(){if(JL)return e2;JL=1;var e=Qfe(),t=Jfe(),r=cB();function n(i){var o=t(i);return o.length==1&&o[0][2]?r(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return e2=n,e2}var t2,e4;function tde(){if(e4)return t2;e4=1;function e(t,r){return t!=null&&r in Object(t)}return t2=e,t2}var r2,t4;function rde(){if(t4)return r2;t4=1;var e=T7(),t=rj(),r=Zn(),n=nj(),i=ij(),o=X0();function a(s,c,u){c=e(c,s);for(var h=-1,p=c.length,v=!1;++h<p;){var b=o(c[h]);if(!(v=s!=null&&u(s,b)))break;s=s[b]}return v||++h!=p?v:(p=s==null?0:s.length,!!p&&i(p)&&n(b,p)&&(r(s)||t(s)))}return r2=a,r2}var n2,r4;function nde(){if(r4)return n2;r4=1;var e=tde(),t=rde();function r(n,i){return n!=null&&t(n,i,e)}return n2=r,n2}var i2,n4;function ide(){if(n4)return i2;n4=1;var e=oj(),t=j7(),r=nde(),n=zT(),i=uB(),o=cB(),a=X0(),s=1,c=2;function u(h,p){return n(h)&&i(p)?o(a(h),p):function(v){var b=t(v,h);return b===void 0&&b===p?r(v,h):e(p,b,s|c)}}return i2=u,i2}var o2,i4;function ed(){if(i4)return o2;i4=1;function e(t){return t}return o2=e,o2}var a2,o4;function ode(){if(o4)return a2;o4=1;function e(t){return function(r){return r==null?void 0:r[t]}}return a2=e,a2}var s2,a4;function ade(){if(a4)return s2;a4=1;var e=KT();function t(r){return function(n){return e(n,r)}}return s2=t,s2}var l2,s4;function sde(){if(s4)return l2;s4=1;var e=ode(),t=ade(),r=zT(),n=X0();function i(o){return r(o)?e(n(o)):t(o)}return l2=i,l2}var u2,l4;function ca(){if(l4)return u2;l4=1;var e=ede(),t=ide(),r=ed(),n=Zn(),i=sde();function o(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):i(a)}return u2=o,u2}var c2,u4;function fB(){if(u4)return c2;u4=1;function e(t,r,n,i){for(var o=t.length,a=n+(i?1:-1);i?a--:++a<o;)if(r(t[a],a,t))return a;return-1}return c2=e,c2}var f2,c4;function lde(){if(c4)return f2;c4=1;function e(t){return t!==t}return f2=e,f2}var d2,f4;function ude(){if(f4)return d2;f4=1;function e(t,r,n){for(var i=n-1,o=t.length;++i<o;)if(t[i]===r)return i;return-1}return d2=e,d2}var h2,d4;function cde(){if(d4)return h2;d4=1;var e=fB(),t=lde(),r=ude();function n(i,o,a){return o===o?r(i,o,a):e(i,t,a)}return h2=n,h2}var p2,h4;function fde(){if(h4)return p2;h4=1;var e=cde();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return p2=t,p2}var m2,p4;function dde(){if(p4)return m2;p4=1;function e(t,r,n){for(var i=-1,o=t==null?0:t.length;++i<o;)if(n(r,t[i]))return!0;return!1}return m2=e,m2}var v2,m4;function hde(){if(m4)return v2;m4=1;function e(){}return v2=e,v2}var g2,v4;function pde(){if(v4)return g2;v4=1;var e=lB(),t=hde(),r=tj(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return g2=i,g2}var y2,g4;function mde(){if(g4)return y2;g4=1;var e=J7(),t=fde(),r=dde(),n=tB(),i=pde(),o=tj(),a=200;function s(c,u,h){var p=-1,v=t,b=c.length,x=!0,_=[],w=_;if(h)x=!1,v=r;else if(b>=a){var O=u?null:i(c);if(O)return o(O);x=!1,v=n,w=new e}else w=u?[]:_;e:for(;++p<b;){var S=c[p],E=u?u(S):S;if(S=h||S!==0?S:0,x&&E===E){for(var T=w.length;T--;)if(w[T]===E)continue e;u&&w.push(E),_.push(S)}else v(w,E,h)||(w!==_&&w.push(E),_.push(S))}return _}return y2=s,y2}var b2,y4;function vde(){if(y4)return b2;y4=1;var e=ca(),t=mde();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return b2=r,b2}var gde=vde();const b4=Nt(gde);function dB(e,t,r){return t===!0?b4(e,r):ft(t)?b4(e,t):e}function gf(e){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gf(e)}var yde=["ref"];function _4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ra(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_4(Object(r),!0).forEach(function(n){ib(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pB(n.key),n)}}function _de(e,t,r){return t&&x4(e.prototype,t),r&&x4(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xde(e,t,r){return t=xy(t),wde(e,hB()?Reflect.construct(t,r||[],xy(e).constructor):t.apply(e,r))}function wde(e,t){if(t&&(gf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ode(e)}function Ode(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hB=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xy(e)}function Sde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fC(e,t)}function fC(e,t){return fC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fC(e,t)}function ib(e,t,r){return t=pB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pB(e){var t=Pde(e,"string");return gf(t)=="symbol"?t:t+""}function Pde(e,t){if(gf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cde(e,t){if(e==null)return{};var r=Ede(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ede(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tde(e){return e.value}function jde(e,t){if(Z.isValidElement(e))return Z.cloneElement(e,t);if(typeof e=="function")return Z.createElement(e,t);t.ref;var r=Cde(t,yde);return Z.createElement(ej,r)}var w4=1,tf=function(e){function t(){var r;bde(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=xde(this,t,[].concat(i)),ib(r,"lastBoundingBox",{width:-1,height:-1}),r}return Sde(t,e),_de(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>w4||Math.abs(i.height-this.lastBoundingBox.height)>w4)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ra({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,c=i.margin,u=i.chartWidth,h=i.chartHeight,p,v;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(a==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();p={left:((u||0)-b.width)/2}}else p=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var x=this.getBBoxSnapshot();v={top:((h||0)-x.height)/2}}else v=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Ra(Ra({},p),v)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,a=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,h=i.payload,p=Ra(Ra({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return Z.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(b){n.wrapperNode=b}},jde(o,Ra(Ra({},this.props),{},{payload:dB(h,u,Tde)})))}}],[{key:"getWithHeight",value:function(n,i){var o=Ra(Ra({},this.defaultProps),n.props),a=o.layout;return a==="vertical"&&Ve(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||i}:null}}])}(I.PureComponent);ib(tf,"displayName","Legend");ib(tf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var _2,O4;function Ade(){if(O4)return _2;O4=1;var e=lm(),t=rj(),r=Zn(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return _2=i,_2}var x2,S4;function mB(){if(S4)return x2;S4=1;var e=nB(),t=Ade();function r(n,i,o,a,s){var c=-1,u=n.length;for(o||(o=t),s||(s=[]);++c<u;){var h=n[c];i>0&&o(h)?i>1?r(h,i-1,o,a,s):e(s,h):a||(s[s.length]=h)}return s}return x2=r,x2}var w2,P4;function kde(){if(P4)return w2;P4=1;function e(t){return function(r,n,i){for(var o=-1,a=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++o];if(n(a[u],u,a)===!1)break}return r}}return w2=e,w2}var O2,C4;function Rde(){if(C4)return O2;C4=1;var e=kde(),t=e();return O2=t,O2}var S2,E4;function vB(){if(E4)return S2;E4=1;var e=Rde(),t=nb();function r(n,i){return n&&e(n,i,t)}return S2=r,S2}var P2,T4;function Nde(){if(T4)return P2;T4=1;var e=cm();function t(r,n){return function(i,o){if(i==null)return i;if(!e(i))return r(i,o);for(var a=i.length,s=n?a:-1,c=Object(i);(n?s--:++s<a)&&o(c[s],s,c)!==!1;);return i}}return P2=t,P2}var C2,j4;function aj(){if(j4)return C2;j4=1;var e=vB(),t=Nde(),r=t(e);return C2=r,C2}var E2,A4;function gB(){if(A4)return E2;A4=1;var e=aj(),t=cm();function r(n,i){var o=-1,a=t(n)?Array(n.length):[];return e(n,function(s,c,u){a[++o]=i(s,c,u)}),a}return E2=r,E2}var T2,k4;function Mde(){if(k4)return T2;k4=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return T2=e,T2}var j2,R4;function Lde(){if(R4)return j2;R4=1;var e=Xf();function t(r,n){if(r!==n){var i=r!==void 0,o=r===null,a=r===r,s=e(r),c=n!==void 0,u=n===null,h=n===n,p=e(n);if(!u&&!p&&!s&&r>n||s&&c&&h&&!u&&!p||o&&c&&h||!i&&h||!a)return 1;if(!o&&!s&&!p&&r<n||p&&i&&a&&!o&&!s||u&&i&&a||!c&&a||!h)return-1}return 0}return j2=t,j2}var A2,N4;function Ide(){if(N4)return A2;N4=1;var e=Lde();function t(r,n,i){for(var o=-1,a=r.criteria,s=n.criteria,c=a.length,u=i.length;++o<c;){var h=e(a[o],s[o]);if(h){if(o>=u)return h;var p=i[o];return h*(p=="desc"?-1:1)}}return r.index-n.index}return A2=t,A2}var k2,M4;function Dde(){if(M4)return k2;M4=1;var e=GT(),t=KT(),r=ca(),n=gB(),i=Mde(),o=oB(),a=Ide(),s=ed(),c=Zn();function u(h,p,v){p.length?p=e(p,function(_){return c(_)?function(w){return t(w,_.length===1?_[0]:_)}:_}):p=[s];var b=-1;p=e(p,o(r));var x=n(h,function(_,w,O){var S=e(p,function(E){return E(_)});return{criteria:S,index:++b,value:_}});return i(x,function(_,w){return a(_,w,v)})}return k2=u,k2}var R2,L4;function $de(){if(L4)return R2;L4=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return R2=e,R2}var N2,I4;function Fde(){if(I4)return N2;I4=1;var e=$de(),t=Math.max;function r(n,i,o){return i=t(i===void 0?n.length-1:i,0),function(){for(var a=arguments,s=-1,c=t(a.length-i,0),u=Array(c);++s<c;)u[s]=a[i+s];s=-1;for(var h=Array(i+1);++s<i;)h[s]=a[s];return h[i]=o(u),e(n,this,h)}}return N2=r,N2}var M2,D4;function Bde(){if(D4)return M2;D4=1;function e(t){return function(){return t}}return M2=e,M2}var L2,$4;function yB(){if($4)return L2;$4=1;var e=Lu(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return L2=t,L2}var I2,F4;function Ude(){if(F4)return I2;F4=1;var e=Bde(),t=yB(),r=ed(),n=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return I2=n,I2}var D2,B4;function zde(){if(B4)return D2;B4=1;var e=800,t=16,r=Date.now;function n(i){var o=0,a=0;return function(){var s=r(),c=t-(s-a);if(a=s,c>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return D2=n,D2}var $2,U4;function Vde(){if(U4)return $2;U4=1;var e=Ude(),t=zde(),r=t(e);return $2=r,$2}var F2,z4;function Wde(){if(z4)return F2;z4=1;var e=ed(),t=Fde(),r=Vde();function n(i,o){return r(t(i,o,e),i+"")}return F2=n,F2}var B2,V4;function ob(){if(V4)return B2;V4=1;var e=WT(),t=cm(),r=nj(),n=ml();function i(o,a,s){if(!n(s))return!1;var c=typeof a;return(c=="number"?t(s)&&r(a,s.length):c=="string"&&a in s)?e(s[a],o):!1}return B2=i,B2}var U2,W4;function qde(){if(W4)return U2;W4=1;var e=mB(),t=Dde(),r=Wde(),n=ob(),i=r(function(o,a){if(o==null)return[];var s=a.length;return s>1&&n(o,a[0],a[1])?a=[]:s>2&&n(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return U2=i,U2}var Hde=qde();const sj=Nt(Hde);function dp(e){"@babel/helpers - typeof";return dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dp(e)}function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dC.apply(this,arguments)}function Gde(e,t){return Xde(e)||Zde(e,t)||Yde(e,t)||Kde()}function Kde(){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 Yde(e,t){if(e){if(typeof e=="string")return q4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q4(e,t)}}function q4(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zde(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Xde(e){if(Array.isArray(e))return e}function H4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H4(Object(r),!0).forEach(function(n){Qde(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qde(e,t,r){return t=Jde(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jde(e){var t=ehe(e,"string");return dp(t)=="symbol"?t:t+""}function ehe(e,t){if(dp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function the(e){return Array.isArray(e)&&zr(e[0])&&zr(e[1])?e.join(" ~ "):e}var rhe=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,c=t.labelStyle,u=c===void 0?{}:c,h=t.payload,p=t.formatter,v=t.itemSorter,b=t.wrapperClassName,x=t.labelClassName,_=t.label,w=t.labelFormatter,O=t.accessibilityLayer,S=O===void 0?!1:O,E=function(){if(h&&h.length){var q={padding:0,margin:0},J=(v?sj(h,v):h).map(function(Q,ne){if(Q.type==="none")return null;var ae=z2({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},s),se=Q.formatter||p||the,oe=Q.value,K=Q.name,G=oe,z=K;if(se&&G!=null&&z!=null){var re=se(oe,K,Q,ne,h);if(Array.isArray(re)){var X=Gde(re,2);G=X[0],z=X[1]}else G=re}return Z.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(ne),style:ae},zr(z)?Z.createElement("span",{className:"recharts-tooltip-item-name"},z):null,zr(z)?Z.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,Z.createElement("span",{className:"recharts-tooltip-item-value"},G),Z.createElement("span",{className:"recharts-tooltip-item-unit"},Q.unit||""))});return Z.createElement("ul",{className:"recharts-tooltip-item-list",style:q},J)}return null},T=z2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),A=z2({margin:0},u),j=!dt(_),N=j?_:"",F=ze("recharts-default-tooltip",b),V=ze("recharts-tooltip-label",x);j&&w&&h!==void 0&&h!==null&&(N=w(_,h));var B=S?{role:"status","aria-live":"assertive"}:{};return Z.createElement("div",dC({className:F,style:T},B),Z.createElement("p",{className:V,style:A},Z.isValidElement(N)?N:"".concat(N)),E())};function hp(e){"@babel/helpers - typeof";return hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hp(e)}function Yv(e,t,r){return t=nhe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nhe(e){var t=ihe(e,"string");return hp(t)=="symbol"?t:t+""}function ihe(e,t){if(hp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ch="recharts-tooltip-wrapper",ohe={visibility:"hidden"};function ahe(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ze(ch,Yv(Yv(Yv(Yv({},"".concat(ch,"-right"),Ve(r)&&t&&Ve(t.x)&&r>=t.x),"".concat(ch,"-left"),Ve(r)&&t&&Ve(t.x)&&r<t.x),"".concat(ch,"-bottom"),Ve(n)&&t&&Ve(t.y)&&n>=t.y),"".concat(ch,"-top"),Ve(n)&&t&&Ve(t.y)&&n<t.y))}function G4(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(o&&Ve(o[n]))return o[n];var h=r[n]-s-i,p=r[n]+i;if(t[n])return a[n]?h:p;if(a[n]){var v=h,b=c[n];return v<b?Math.max(p,c[n]):Math.max(h,c[n])}var x=p+s,_=c[n]+u;return x>_?Math.max(h,c[n]):Math.max(p,c[n])}function she(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function lhe(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,h,p;return a.height>0&&a.width>0&&r?(h=G4({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),p=G4({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),u=she({translateX:h,translateY:p,useTranslate3d:s})):u=ohe,{cssProperties:u,cssClasses:ahe({translateX:h,translateY:p,coordinate:r})}}function yf(e){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yf(e)}function K4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K4(Object(r),!0).forEach(function(n){pC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function che(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_B(n.key),n)}}function fhe(e,t,r){return t&&che(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dhe(e,t,r){return t=wy(t),hhe(e,bB()?Reflect.construct(t,r||[],wy(e).constructor):t.apply(e,r))}function hhe(e,t){if(t&&(yf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return phe(e)}function phe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bB=function(){return!!e})()}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wy(e)}function mhe(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,i){return n.__proto__=i,n},hC(e,t)}function pC(e,t,r){return t=_B(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _B(e){var t=vhe(e,"string");return yf(t)=="symbol"?t:t+""}function vhe(e,t){if(yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Z4=1,ghe=function(e){function t(){var r;uhe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=dhe(this,t,[].concat(i)),pC(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),pC(r,"handleKeyDown",function(a){if(a.key==="Escape"){var s,c,u,h;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(h=r.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&u!==void 0?u:0}})}}),r}return mhe(t,e),fhe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Z4||Math.abs(n.height-this.state.lastBoundingBox.height)>Z4)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.children,h=i.coordinate,p=i.hasPayload,v=i.isAnimationActive,b=i.offset,x=i.position,_=i.reverseDirection,w=i.useTranslate3d,O=i.viewBox,S=i.wrapperStyle,E=lhe({allowEscapeViewBox:a,coordinate:h,offsetTopLeft:b,position:x,reverseDirection:_,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:O}),T=E.cssClasses,A=E.cssProperties,j=Y4(Y4({transition:v&&o?"transform ".concat(s,"ms ").concat(c):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&p?"visible":"hidden",position:"absolute",top:0,left:0},S);return Z.createElement("div",{tabIndex:-1,className:T,style:j,ref:function(F){n.wrapperNode=F}},u)}}])}(I.PureComponent),yhe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Hi={isSsr:yhe(),get:function(t){return Hi[t]},set:function(t,r){if(typeof t=="string")Hi[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Hi[i]=t[i]})}}};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)}function X4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Q4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X4(Object(r),!0).forEach(function(n){lj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _he(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wB(n.key),n)}}function xhe(e,t,r){return t&&_he(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function whe(e,t,r){return t=Oy(t),Ohe(e,xB()?Reflect.construct(t,r||[],Oy(e).constructor):t.apply(e,r))}function Ohe(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 She(e)}function She(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xB=function(){return!!e})()}function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oy(e)}function Phe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mC(e,t)}function mC(e,t){return mC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mC(e,t)}function lj(e,t,r){return t=wB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wB(e){var t=Che(e,"string");return bf(t)=="symbol"?t:t+""}function Che(e,t){if(bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ehe(e){return e.dataKey}function The(e,t){return Z.isValidElement(e)?Z.cloneElement(e,t):typeof e=="function"?Z.createElement(e,t):Z.createElement(rhe,t)}var Ui=function(e){function t(){return bhe(this,t),whe(this,t,arguments)}return Phe(t,e),xhe(t,[{key:"render",value:function(){var n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.content,h=i.coordinate,p=i.filterNull,v=i.isAnimationActive,b=i.offset,x=i.payload,_=i.payloadUniqBy,w=i.position,O=i.reverseDirection,S=i.useTranslate3d,E=i.viewBox,T=i.wrapperStyle,A=x??[];p&&A.length&&(A=dB(x.filter(function(N){return N.value!=null&&(N.hide!==!0||n.props.includeHidden)}),_,Ehe));var j=A.length>0;return Z.createElement(ghe,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:v,active:o,coordinate:h,hasPayload:j,offset:b,position:w,reverseDirection:O,useTranslate3d:S,viewBox:E,wrapperStyle:T},The(u,Q4(Q4({},this.props),{},{payload:A})))}}])}(I.PureComponent);lj(Ui,"displayName","Tooltip");lj(Ui,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Hi.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 V2,J4;function jhe(){if(J4)return V2;J4=1;var e=ua(),t=function(){return e.Date.now()};return V2=t,V2}var W2,eI;function Ahe(){if(eI)return W2;eI=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return W2=t,W2}var q2,tI;function khe(){if(tI)return q2;tI=1;var e=Ahe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return q2=r,q2}var H2,rI;function OB(){if(rI)return H2;rI=1;var e=khe(),t=ml(),r=Xf(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var p=o.test(u);return p||a.test(u)?s(u.slice(2),p?2:8):i.test(u)?n:+u}return H2=c,H2}var G2,nI;function Rhe(){if(nI)return G2;nI=1;var e=ml(),t=jhe(),r=OB(),n="Expected a function",i=Math.max,o=Math.min;function a(s,c,u){var h,p,v,b,x,_,w=0,O=!1,S=!1,E=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(u)&&(O=!!u.leading,S="maxWait"in u,v=S?i(r(u.maxWait)||0,c):v,E="trailing"in u?!!u.trailing:E);function T(J){var Q=h,ne=p;return h=p=void 0,w=J,b=s.apply(ne,Q),b}function A(J){return w=J,x=setTimeout(F,c),O?T(J):b}function j(J){var Q=J-_,ne=J-w,ae=c-Q;return S?o(ae,v-ne):ae}function N(J){var Q=J-_,ne=J-w;return _===void 0||Q>=c||Q<0||S&&ne>=v}function F(){var J=t();if(N(J))return V(J);x=setTimeout(F,j(J))}function V(J){return x=void 0,E&&h?T(J):(h=p=void 0,b)}function B(){x!==void 0&&clearTimeout(x),w=0,h=_=p=x=void 0}function W(){return x===void 0?b:V(t())}function q(){var J=t(),Q=N(J);if(h=arguments,p=this,_=J,Q){if(x===void 0)return A(_);if(S)return clearTimeout(x),x=setTimeout(F,c),T(_)}return x===void 0&&(x=setTimeout(F,c)),b}return q.cancel=B,q.flush=W,q}return G2=a,G2}var K2,iI;function Nhe(){if(iI)return K2;iI=1;var e=Rhe(),t=ml(),r="Expected a function";function n(i,o,a){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(a)&&(s="leading"in a?!!a.leading:s,c="trailing"in a?!!a.trailing:c),e(i,o,{leading:s,maxWait:o,trailing:c})}return K2=n,K2}var Mhe=Nhe();const SB=Nt(Mhe);function pp(e){"@babel/helpers - typeof";return pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pp(e)}function oI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oI(Object(r),!0).forEach(function(n){Lhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lhe(e,t,r){return t=Ihe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ihe(e){var t=Dhe(e,"string");return pp(t)=="symbol"?t:t+""}function Dhe(e,t){if(pp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $he(e,t){return zhe(e)||Uhe(e,t)||Bhe(e,t)||Fhe()}function Fhe(){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 Bhe(e,t){if(e){if(typeof e=="string")return aI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aI(e,t)}}function aI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uhe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function zhe(e){if(Array.isArray(e))return e}var uj=I.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,o=e.width,a=o===void 0?"100%":o,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,h=u===void 0?0:u,p=e.minHeight,v=e.maxHeight,b=e.children,x=e.debounce,_=x===void 0?0:x,w=e.id,O=e.className,S=e.onResize,E=e.style,T=E===void 0?{}:E,A=I.useRef(null),j=I.useRef();j.current=S,I.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var N=I.useState({containerWidth:i.width,containerHeight:i.height}),F=$he(N,2),V=F[0],B=F[1],W=I.useCallback(function(J,Q){B(function(ne){var ae=Math.round(J),se=Math.round(Q);return ne.containerWidth===ae&&ne.containerHeight===se?ne:{containerWidth:ae,containerHeight:se}})},[]);I.useEffect(function(){var J=function(K){var G,z=K[0].contentRect,re=z.width,X=z.height;W(re,X),(G=j.current)===null||G===void 0||G.call(j,re,X)};_>0&&(J=SB(J,_,{trailing:!0,leading:!1}));var Q=new ResizeObserver(J),ne=A.current.getBoundingClientRect(),ae=ne.width,se=ne.height;return W(ae,se),Q.observe(A.current),function(){Q.disconnect()}},[W,_]);var q=I.useMemo(function(){var J=V.containerWidth,Q=V.containerHeight;if(J<0||Q<0)return null;_o(uu(a)||uu(c),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,a,c),_o(!r||r>0,"The aspect(%s) must be greater than zero.",r);var ne=uu(a)?J:a,ae=uu(c)?Q:c;r&&r>0&&(ne?ae=ne/r:ae&&(ne=ae*r),v&&ae>v&&(ae=v)),_o(ne>0||ae>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.`,ne,ae,a,c,h,p,r);var se=!Array.isArray(b)&&Fa(b.type).endsWith("Chart");return Z.Children.map(b,function(oe){return Z.isValidElement(oe)?I.cloneElement(oe,Zv({width:ne,height:ae},se?{style:Zv({height:"100%",width:"100%",maxHeight:ae,maxWidth:ne},oe.props.style)}:{})):oe})},[r,b,c,v,p,h,V,a]);return Z.createElement("div",{id:w?"".concat(w):void 0,className:ze("recharts-responsive-container",O),style:Zv(Zv({},T),{},{width:a,height:c,minWidth:h,minHeight:p,maxHeight:v}),ref:A},q)}),Qs=function(t){return null};Qs.displayName="Cell";function mp(e){"@babel/helpers - typeof";return mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mp(e)}function sI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sI(Object(r),!0).forEach(function(n){Vhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vhe(e,t,r){return t=Whe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Whe(e){var t=qhe(e,"string");return mp(t)=="symbol"?t:t+""}function qhe(e,t){if(mp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nc={widthCache:{},cacheCount:0},Hhe=2e3,Ghe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},lI="recharts_measurement_span";function Khe(e){var t=vC({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Dh=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Hi.isSsr)return{width:0,height:0};var n=Khe(r),i=JSON.stringify({text:t,copyStyle:n});if(Nc.widthCache[i])return Nc.widthCache[i];try{var o=document.getElementById(lI);o||(o=document.createElement("span"),o.setAttribute("id",lI),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=vC(vC({},Ghe),n);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Nc.widthCache[i]=c,++Nc.cacheCount>Hhe&&(Nc.cacheCount=0,Nc.widthCache={}),c}catch{return{width:0,height:0}}},Yhe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function vp(e){"@babel/helpers - typeof";return vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vp(e)}function Sy(e,t){return Jhe(e)||Qhe(e,t)||Xhe(e,t)||Zhe()}function Zhe(){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 Xhe(e,t){if(e){if(typeof e=="string")return uI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uI(e,t)}}function uI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qhe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Jhe(e){if(Array.isArray(e))return e}function epe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rpe(n.key),n)}}function tpe(e,t,r){return t&&cI(e.prototype,t),r&&cI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rpe(e){var t=npe(e,"string");return vp(t)=="symbol"?t:t+""}function npe(e,t){if(vp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ipe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ope=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,PB={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ape=Object.keys(PB),Gc="NaN";function spe(e,t){return e*PB[t]}var Xv=function(){function e(t,r){epe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!ipe.test(r)&&(this.num=NaN,this.unit=""),ape.includes(r)&&(this.num=spe(t,r),this.unit="px")}return tpe(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.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(r){var n,i=(n=ope.exec(r))!==null&&n!==void 0?n:[],o=Sy(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function CB(e){if(e.includes(Gc))return Gc;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=fI.exec(t))!==null&&r!==void 0?r:[],i=Sy(n,4),o=i[1],a=i[2],s=i[3],c=Xv.parse(o??""),u=Xv.parse(s??""),h=a==="*"?c.multiply(u):c.divide(u);if(h.isNaN())return Gc;t=t.replace(fI,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,v=(p=dI.exec(t))!==null&&p!==void 0?p:[],b=Sy(v,4),x=b[1],_=b[2],w=b[3],O=Xv.parse(x??""),S=Xv.parse(w??""),E=_==="+"?O.add(S):O.subtract(S);if(E.isNaN())return Gc;t=t.replace(dI,E.toString())}return t}var hI=/\(([^()]*)\)/;function lpe(e){for(var t=e;t.includes("(");){var r=hI.exec(t),n=Sy(r,2),i=n[1];t=t.replace(hI,CB(i))}return t}function upe(e){var t=e.replace(/\s+/g,"");return t=lpe(t),t=CB(t),t}function cpe(e){try{return upe(e)}catch{return Gc}}function Y2(e){var t=cpe(e.slice(5,-1));return t===Gc?"":t}var fpe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],dpe=["dx","dy","angle","className","breakAll"];function gC(){return gC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gC.apply(this,arguments)}function pI(e,t){if(e==null)return{};var r=hpe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hpe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mI(e,t){return gpe(e)||vpe(e,t)||mpe(e,t)||ppe()}function ppe(){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 mpe(e,t){if(e){if(typeof e=="string")return vI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vI(e,t)}}function vI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vpe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function gpe(e){if(Array.isArray(e))return e}var EB=/[ \f\n\r\t\v\u2028\u2029]+/,TB=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var o=[];dt(r)||(n?o=r.toString().split(""):o=r.toString().split(EB));var a=o.map(function(c){return{word:c,width:Dh(c,i).width}}),s=n?0:Dh(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},ype=function(t,r,n,i,o){var a=t.maxLines,s=t.children,c=t.style,u=t.breakAll,h=Ve(a),p=s,v=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ne.reduce(function(ae,se){var oe=se.word,K=se.width,G=ae[ae.length-1];if(G&&(i==null||o||G.width+K+n<Number(i)))G.words.push(oe),G.width+=K+n;else{var z={words:[oe],width:K};ae.push(z)}return ae},[])},b=v(r),x=function(ne){return ne.reduce(function(ae,se){return ae.width>se.width?ae:se})};if(!h)return b;for(var _="…",w=function(ne){var ae=p.slice(0,ne),se=TB({breakAll:u,style:c,children:ae+_}).wordsWithComputedWidth,oe=v(se),K=oe.length>a||x(oe).width>Number(i);return[K,oe]},O=0,S=p.length-1,E=0,T;O<=S&&E<=p.length-1;){var A=Math.floor((O+S)/2),j=A-1,N=w(j),F=mI(N,2),V=F[0],B=F[1],W=w(A),q=mI(W,1),J=q[0];if(!V&&!J&&(O=A+1),V&&J&&(S=A-1),!V&&J){T=B;break}E++}return T||b},gI=function(t){var r=dt(t)?[]:t.toString().split(EB);return[{words:r}]},bpe=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!Hi.isSsr){var c,u,h=TB({breakAll:a,children:i,style:o});if(h){var p=h.wordsWithComputedWidth,v=h.spaceWidth;c=p,u=v}else return gI(i);return ype({breakAll:a,children:i,maxLines:s,style:o},c,u,r,n)}return gI(i)},yI="#808080",Eu=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,c=t.capHeight,u=c===void 0?"0.71em":c,h=t.scaleToFit,p=h===void 0?!1:h,v=t.textAnchor,b=v===void 0?"start":v,x=t.verticalAnchor,_=x===void 0?"end":x,w=t.fill,O=w===void 0?yI:w,S=pI(t,fpe),E=I.useMemo(function(){return bpe({breakAll:S.breakAll,children:S.children,maxLines:S.maxLines,scaleToFit:p,style:S.style,width:S.width})},[S.breakAll,S.children,S.maxLines,p,S.style,S.width]),T=S.dx,A=S.dy,j=S.angle,N=S.className,F=S.breakAll,V=pI(S,dpe);if(!zr(n)||!zr(o))return null;var B=n+(Ve(T)?T:0),W=o+(Ve(A)?A:0),q;switch(_){case"start":q=Y2("calc(".concat(u,")"));break;case"middle":q=Y2("calc(".concat((E.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:q=Y2("calc(".concat(E.length-1," * -").concat(s,")"));break}var J=[];if(p){var Q=E[0].width,ne=S.width;J.push("scale(".concat((Ve(ne)?ne/Q:1)/Q,")"))}return j&&J.push("rotate(".concat(j,", ").concat(B,", ").concat(W,")")),J.length&&(V.transform=J.join(" ")),Z.createElement("text",gC({},it(V,!0),{x:B,y:W,className:ze("recharts-text",N),textAnchor:b,fill:O.includes("url")?yI:O}),E.map(function(ae,se){var oe=ae.words.join(F?"":" ");return Z.createElement("tspan",{x:B,dy:se===0?q:s,key:"".concat(oe,"-").concat(se)},oe)}))};function Js(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _pe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cj(e){let t,r,n;e.length!==2?(t=Js,r=(s,c)=>Js(e(s),c),n=(s,c)=>e(s)-c):(t=e===Js||e===_pe?e:xpe,r=e,n=e);function i(s,c,u=0,h=s.length){if(u<h){if(t(c,c)!==0)return h;do{const p=u+h>>>1;r(s[p],c)<0?u=p+1:h=p}while(u<h)}return u}function o(s,c,u=0,h=s.length){if(u<h){if(t(c,c)!==0)return h;do{const p=u+h>>>1;r(s[p],c)<=0?u=p+1:h=p}while(u<h)}return u}function a(s,c,u=0,h=s.length){const p=i(s,c,u,h-1);return p>u&&n(s[p-1],c)>-n(s[p],c)?p-1:p}return{left:i,center:a,right:o}}function xpe(){return 0}function jB(e){return e===null?NaN:+e}function*wpe(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Ope=cj(Js),fm=Ope.right;cj(jB).center;class bI extends Map{constructor(t,r=Cpe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(_I(this,t))}has(t){return super.has(_I(this,t))}set(t,r){return super.set(Spe(this,t),r)}delete(t){return super.delete(Ppe(this,t))}}function _I({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Spe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Ppe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Cpe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Epe(e=Js){if(e===Js)return AB;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function AB(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Tpe=Math.sqrt(50),jpe=Math.sqrt(10),Ape=Math.sqrt(2);function Py(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=Tpe?10:o>=jpe?5:o>=Ape?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=r&&r<2?Py(e,t,r*2):[s,c,u]}function yC(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,o,a]=n?Py(t,e,r):Py(e,t,r);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(n)if(a<0)for(let u=0;u<s;++u)c[u]=(o-u)/-a;else for(let u=0;u<s;++u)c[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(i+u)/-a;else for(let u=0;u<s;++u)c[u]=(i+u)*a;return c}function bC(e,t,r){return t=+t,e=+e,r=+r,Py(e,t,r)[2]}function _C(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?bC(t,e,r):bC(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function xI(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function wI(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function kB(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?AB:Epe(i);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,h=Math.log(c),p=.5*Math.exp(2*h/3),v=.5*Math.sqrt(h*p*(c-p)/c)*(u-c/2<0?-1:1),b=Math.max(r,Math.floor(t-u*p/c+v)),x=Math.min(n,Math.floor(t+(c-u)*p/c+v));kB(e,t,b,x,i)}const o=e[t];let a=r,s=n;for(fh(e,r,t),i(e[n],o)>0&&fh(e,r,n);a<s;){for(fh(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[r],o)===0?fh(e,r,s):(++s,fh(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function fh(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function kpe(e,t,r){if(e=Float64Array.from(wpe(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wI(e);if(t>=1)return xI(e);var n,i=(n-1)*t,o=Math.floor(i),a=xI(kB(e,o).subarray(0,o+1)),s=wI(e.subarray(o+1));return a+(s-a)*(i-o)}}function Rpe(e,t,r=jB){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function Npe(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n<i;)o[n]=e+n*r;return o}function Qi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ns(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 xC=Symbol("implicit");function fj(){var e=new bI,t=[],r=[],n=xC;function i(o){let a=e.get(o);if(a===void 0){if(n!==xC)return n;e.set(o,a=t.push(o)-1)}return r[a%r.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new bI;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return fj(t,r).unknown(n)},Qi.apply(i,arguments),i}function gp(){var e=fj().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,o,a,s=!1,c=0,u=0,h=.5;delete e.unknown;function p(){var v=t().length,b=i<n,x=b?i:n,_=b?n:i;o=(_-x)/Math.max(1,v-c+u*2),s&&(o=Math.floor(o)),x+=(_-x-o*(v-c))*h,a=o*(1-c),s&&(x=Math.round(x),a=Math.round(a));var w=Npe(v).map(function(O){return x+o*O});return r(b?w.reverse():w)}return e.domain=function(v){return arguments.length?(t(v),p()):t()},e.range=function(v){return arguments.length?([n,i]=v,n=+n,i=+i,p()):[n,i]},e.rangeRound=function(v){return[n,i]=v,n=+n,i=+i,s=!0,p()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(v){return arguments.length?(s=!!v,p()):s},e.padding=function(v){return arguments.length?(c=Math.min(1,u=+v),p()):c},e.paddingInner=function(v){return arguments.length?(c=Math.min(1,v),p()):c},e.paddingOuter=function(v){return arguments.length?(u=+v,p()):u},e.align=function(v){return arguments.length?(h=Math.max(0,Math.min(1,v)),p()):h},e.copy=function(){return gp(t(),[n,i]).round(s).paddingInner(c).paddingOuter(u).align(h)},Qi.apply(p(),arguments)}function RB(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return RB(t())},e}function $h(){return RB(gp.apply(null,arguments).paddingInner(1))}function dj(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function NB(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function dm(){}var yp=.7,Cy=1/yp,rf="\\s*([+-]?\\d+)\\s*",bp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mpe=/^#([0-9a-f]{3,8})$/,Lpe=new RegExp(`^rgb\\(${rf},${rf},${rf}\\)$`),Ipe=new RegExp(`^rgb\\(${Jo},${Jo},${Jo}\\)$`),Dpe=new RegExp(`^rgba\\(${rf},${rf},${rf},${bp}\\)$`),$pe=new RegExp(`^rgba\\(${Jo},${Jo},${Jo},${bp}\\)$`),Fpe=new RegExp(`^hsl\\(${bp},${Jo},${Jo}\\)$`),Bpe=new RegExp(`^hsla\\(${bp},${Jo},${Jo},${bp}\\)$`),OI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};dj(dm,_p,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:SI,formatHex:SI,formatHex8:Upe,formatHsl:zpe,formatRgb:PI,toString:PI});function SI(){return this.rgb().formatHex()}function Upe(){return this.rgb().formatHex8()}function zpe(){return MB(this).formatHsl()}function PI(){return this.rgb().formatRgb()}function _p(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Mpe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?CI(t):r===3?new Wn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Qv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Qv(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=Lpe.exec(e))?new Wn(t[1],t[2],t[3],1):(t=Ipe.exec(e))?new Wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dpe.exec(e))?Qv(t[1],t[2],t[3],t[4]):(t=$pe.exec(e))?Qv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fpe.exec(e))?jI(t[1],t[2]/100,t[3]/100,1):(t=Bpe.exec(e))?jI(t[1],t[2]/100,t[3]/100,t[4]):OI.hasOwnProperty(e)?CI(OI[e]):e==="transparent"?new Wn(NaN,NaN,NaN,0):null}function CI(e){return new Wn(e>>16&255,e>>8&255,e&255,1)}function Qv(e,t,r,n){return n<=0&&(e=t=r=NaN),new Wn(e,t,r,n)}function Vpe(e){return e instanceof dm||(e=_p(e)),e?(e=e.rgb(),new Wn(e.r,e.g,e.b,e.opacity)):new Wn}function wC(e,t,r,n){return arguments.length===1?Vpe(e):new Wn(e,t,r,n??1)}function Wn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}dj(Wn,wC,NB(dm,{brighter(e){return e=e==null?Cy:Math.pow(Cy,e),new Wn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yp:Math.pow(yp,e),new Wn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wn(gu(this.r),gu(this.g),gu(this.b),Ey(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:EI,formatHex:EI,formatHex8:Wpe,formatRgb:TI,toString:TI}));function EI(){return`#${cu(this.r)}${cu(this.g)}${cu(this.b)}`}function Wpe(){return`#${cu(this.r)}${cu(this.g)}${cu(this.b)}${cu((isNaN(this.opacity)?1:this.opacity)*255)}`}function TI(){const e=Ey(this.opacity);return`${e===1?"rgb(":"rgba("}${gu(this.r)}, ${gu(this.g)}, ${gu(this.b)}${e===1?")":`, ${e})`}`}function Ey(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cu(e){return e=gu(e),(e<16?"0":"")+e.toString(16)}function jI(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yo(e,t,r,n)}function MB(e){if(e instanceof yo)return new yo(e.h,e.s,e.l,e.opacity);if(e instanceof dm||(e=_p(e)),!e)return new yo;if(e instanceof yo)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,c=(o+i)/2;return s?(t===o?a=(r-n)/s+(r<n)*6:r===o?a=(n-t)/s+2:a=(t-r)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new yo(a,s,c,e.opacity)}function qpe(e,t,r,n){return arguments.length===1?MB(e):new yo(e,t,r,n??1)}function yo(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}dj(yo,qpe,NB(dm,{brighter(e){return e=e==null?Cy:Math.pow(Cy,e),new yo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yp:Math.pow(yp,e),new yo(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Wn(Z2(e>=240?e-240:e+120,i,n),Z2(e,i,n),Z2(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new yo(AI(this.h),Jv(this.s),Jv(this.l),Ey(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=Ey(this.opacity);return`${e===1?"hsl(":"hsla("}${AI(this.h)}, ${Jv(this.s)*100}%, ${Jv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AI(e){return e=(e||0)%360,e<0?e+360:e}function Jv(e){return Math.max(0,Math.min(1,e||0))}function Z2(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const hj=e=>()=>e;function Hpe(e,t){return function(r){return e+r*t}}function Gpe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Kpe(e){return(e=+e)==1?LB:function(t,r){return r-t?Gpe(t,r,e):hj(isNaN(t)?r:t)}}function LB(e,t){var r=t-e;return r?Hpe(e,r):hj(isNaN(e)?t:e)}const kI=function e(t){var r=Kpe(t);function n(i,o){var a=r((i=wC(i)).r,(o=wC(o)).r),s=r(i.g,o.g),c=r(i.b,o.b),u=LB(i.opacity,o.opacity);return function(h){return i.r=a(h),i.g=s(h),i.b=c(h),i.opacity=u(h),i+""}}return n.gamma=e,n}(1);function Ype(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function Zpe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Xpe(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),a;for(a=0;a<n;++a)i[a]=td(e[a],t[a]);for(;a<r;++a)o[a]=t[a];return function(s){for(a=0;a<n;++a)o[a]=i[a](s);return o}}function Qpe(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ty(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Jpe(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=td(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var OC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,X2=new RegExp(OC.source,"g");function eme(e){return function(){return e}}function tme(e){return function(t){return e(t)+""}}function rme(e,t){var r=OC.lastIndex=X2.lastIndex=0,n,i,o,a=-1,s=[],c=[];for(e=e+"",t=t+"";(n=OC.exec(e))&&(i=X2.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Ty(n,i)})),r=X2.lastIndex;return r<t.length&&(o=t.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?tme(c[0].x):eme(t):(t=c.length,function(u){for(var h=0,p;h<t;++h)s[(p=c[h]).i]=p.x(u);return s.join("")})}function td(e,t){var r=typeof t,n;return t==null||r==="boolean"?hj(t):(r==="number"?Ty:r==="string"?(n=_p(t))?(t=n,kI):rme:t instanceof _p?kI:t instanceof Date?Qpe:Zpe(t)?Ype:Array.isArray(t)?Xpe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Jpe:Ty)(e,t)}function pj(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function nme(e,t){t===void 0&&(t=e,e=td);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return o[s](a-s)}}function ime(e){return function(){return e}}function jy(e){return+e}var RI=[0,1];function En(e){return e}function SC(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:ime(isNaN(t)?NaN:.5)}function ome(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ame(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=SC(i,n),o=r(a,o)):(n=SC(n,i),o=r(o,a)),function(s){return o(n(s))}}function sme(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=SC(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(s){var c=fm(e,s,1,n)-1;return o[c](i[c](s))}}function hm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ab(){var e=RI,t=RI,r=td,n,i,o,a=En,s,c,u;function h(){var v=Math.min(e.length,t.length);return a!==En&&(a=ome(e[0],e[v-1])),s=v>2?sme:ame,c=u=null,p}function p(v){return v==null||isNaN(v=+v)?o:(c||(c=s(e.map(n),t,r)))(n(a(v)))}return p.invert=function(v){return a(i((u||(u=s(t,e.map(n),Ty)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,jy),h()):e.slice()},p.range=function(v){return arguments.length?(t=Array.from(v),h()):t.slice()},p.rangeRound=function(v){return t=Array.from(v),r=pj,h()},p.clamp=function(v){return arguments.length?(a=v?!0:En,h()):a!==En},p.interpolate=function(v){return arguments.length?(r=v,h()):r},p.unknown=function(v){return arguments.length?(o=v,p):o},function(v,b){return n=v,i=b,h()}}function mj(){return ab()(En,En)}function lme(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ay(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function _f(e){return e=Ay(Math.abs(e)),e?e[1]:NaN}function ume(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),o.push(r.substring(i-=s,i+s)),!((c+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function cme(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var fme=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xp(e){if(!(t=fme.exec(e)))throw new Error("invalid format: "+e);var t;return new vj({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]})}xp.prototype=vj.prototype;function vj(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+""}vj.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 dme(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var IB;function hme(e,t){var r=Ay(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(IB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Ay(e,Math.max(0,t+o-1))[0]}function NI(e,t){var r=Ay(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const MI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:lme,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)=>NI(e*100,t),r:NI,s:hme,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function LI(e){return e}var II=Array.prototype.map,DI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pme(e){var t=e.grouping===void 0||e.thousands===void 0?LI:ume(II.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?LI:cme(II.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(p){p=xp(p);var v=p.fill,b=p.align,x=p.sign,_=p.symbol,w=p.zero,O=p.width,S=p.comma,E=p.precision,T=p.trim,A=p.type;A==="n"?(S=!0,A="g"):MI[A]||(E===void 0&&(E=12),T=!0,A="g"),(w||v==="0"&&b==="=")&&(w=!0,v="0",b="=");var j=_==="$"?r:_==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",N=_==="$"?n:/[%p]/.test(A)?a:"",F=MI[A],V=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function B(W){var q=j,J=N,Q,ne,ae;if(A==="c")J=F(W)+J,W="";else{W=+W;var se=W<0||1/W<0;if(W=isNaN(W)?c:F(Math.abs(W),E),T&&(W=dme(W)),se&&+W==0&&x!=="+"&&(se=!1),q=(se?x==="("?x:s:x==="-"||x==="("?"":x)+q,J=(A==="s"?DI[8+IB/3]:"")+J+(se&&x==="("?")":""),V){for(Q=-1,ne=W.length;++Q<ne;)if(ae=W.charCodeAt(Q),48>ae||ae>57){J=(ae===46?i+W.slice(Q+1):W.slice(Q))+J,W=W.slice(0,Q);break}}}S&&!w&&(W=t(W,1/0));var oe=q.length+W.length+J.length,K=oe<O?new Array(O-oe+1).join(v):"";switch(S&&w&&(W=t(K+W,K.length?O-J.length:1/0),K=""),b){case"<":W=q+W+J+K;break;case"=":W=q+K+W+J;break;case"^":W=K.slice(0,oe=K.length>>1)+q+W+J+K.slice(oe);break;default:W=K+q+W+J;break}return o(W)}return B.toString=function(){return p+""},B}function h(p,v){var b=u((p=xp(p),p.type="f",p)),x=Math.max(-8,Math.min(8,Math.floor(_f(v)/3)))*3,_=Math.pow(10,-x),w=DI[8+x/3];return function(O){return b(_*O)+w}}return{format:u,formatPrefix:h}}var eg,gj,DB;mme({thousands:",",grouping:[3],currency:["$",""]});function mme(e){return eg=pme(e),gj=eg.format,DB=eg.formatPrefix,eg}function vme(e){return Math.max(0,-_f(Math.abs(e)))}function gme(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(_f(t)/3)))*3-_f(Math.abs(e)))}function yme(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_f(t)-_f(e))+1}function $B(e,t,r,n){var i=_C(e,t,r),o;switch(n=xp(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=gme(i,a))&&(n.precision=o),DB(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=yme(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=vme(i))&&(n.precision=o-(n.type==="%")*2);break}}return gj(n)}function gl(e){var t=e.domain;return e.ticks=function(r){var n=t();return yC(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return $B(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],s=n[o],c,u,h=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);h-- >0;){if(u=bC(a,s,r),u===c)return n[i]=a,n[o]=s,t(n);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;c=u}return e},e}function ky(){var e=mj();return e.copy=function(){return hm(e,ky())},Qi.apply(e,arguments),gl(e)}function FB(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,jy),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return FB(e).unknown(t)},e=arguments.length?Array.from(e,jy):[0,1],gl(r)}function BB(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return o<i&&(a=r,r=n,n=a,a=i,i=o,o=a),e[r]=t.floor(i),e[n]=t.ceil(o),e}function $I(e){return Math.log(e)}function FI(e){return Math.exp(e)}function bme(e){return-Math.log(-e)}function _me(e){return-Math.exp(-e)}function xme(e){return isFinite(e)?+("1e"+e):e<0?0:e}function wme(e){return e===10?xme:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Ome(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 BI(e){return(t,r)=>-e(-t,r)}function yj(e){const t=e($I,FI),r=t.domain;let n=10,i,o;function a(){return i=Ome(n),o=wme(n),r()[0]<0?(i=BI(i),o=BI(o),e(bme,_me)):e($I,FI),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const c=r();let u=c[0],h=c[c.length-1];const p=h<u;p&&([u,h]=[h,u]);let v=i(u),b=i(h),x,_;const w=s==null?10:+s;let O=[];if(!(n%1)&&b-v<w){if(v=Math.floor(v),b=Math.ceil(b),u>0){for(;v<=b;++v)for(x=1;x<n;++x)if(_=v<0?x/o(-v):x*o(v),!(_<u)){if(_>h)break;O.push(_)}}else for(;v<=b;++v)for(x=n-1;x>=1;--x)if(_=v>0?x/o(-v):x*o(v),!(_<u)){if(_>h)break;O.push(_)}O.length*2<w&&(O=yC(u,h,w))}else O=yC(v,b,Math.min(b-v,w)).map(o);return p?O.reverse():O},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=xp(c)).precision==null&&(c.trim=!0),c=gj(c)),s===1/0)return c;const u=Math.max(1,n*s/t.ticks().length);return h=>{let p=h/o(Math.round(i(h)));return p*n<n-.5&&(p*=n),p<=u?c(h):""}},t.nice=()=>r(BB(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function UB(){const e=yj(ab()).domain([1,10]);return e.copy=()=>hm(e,UB()).base(e.base()),Qi.apply(e,arguments),e}function UI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function bj(e){var t=1,r=e(UI(t),zI(t));return r.constant=function(n){return arguments.length?e(UI(t=+n),zI(t)):t},gl(r)}function zB(){var e=bj(ab());return e.copy=function(){return hm(e,zB()).constant(e.constant())},Qi.apply(e,arguments)}function VI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Sme(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Pme(e){return e<0?-e*e:e*e}function _j(e){var t=e(En,En),r=1;function n(){return r===1?e(En,En):r===.5?e(Sme,Pme):e(VI(r),VI(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},gl(t)}function xj(){var e=_j(ab());return e.copy=function(){return hm(e,xj()).exponent(e.exponent())},Qi.apply(e,arguments),e}function Cme(){return xj.apply(null,arguments).exponent(.5)}function WI(e){return Math.sign(e)*e*e}function Eme(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function VB(){var e=mj(),t=[0,1],r=!1,n;function i(o){var a=Eme(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(WI(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,jy)).map(WI)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return VB(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qi.apply(i,arguments),gl(i)}function WB(){var e=[],t=[],r=[],n;function i(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=Rpe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?n:t[fm(r,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[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(Js),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return WB().domain(e).range(t).unknown(n)},Qi.apply(o,arguments)}function qB(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[fm(n,c,0,r)]:o}function s(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},a.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,s()):i.slice()},a.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return n.slice()},a.copy=function(){return qB().domain([e,t]).range(i).unknown(o)},Qi.apply(gl(a),arguments)}function HB(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[fm(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=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?(r=o,i):r},i.copy=function(){return HB().domain(e).range(t).unknown(r)},Qi.apply(i,arguments)}const Q2=new Date,J2=new Date;function Wr(e,t,r,n){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 c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let u;do c.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return c},i.filter=o=>Wr(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););}),r&&(i.count=(o,a)=>(Q2.setTime(+o),J2.setTime(+a),e(Q2),e(J2),Math.floor(r(Q2,J2))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ry=Wr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ry.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ry);Ry.range;const Ma=1e3,Wi=Ma*60,La=Wi*60,Ka=La*24,wj=Ka*7,qI=Ka*30,eO=Ka*365,fu=Wr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ma)},(e,t)=>(t-e)/Ma,e=>e.getUTCSeconds());fu.range;const Oj=Wr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ma)},(e,t)=>{e.setTime(+e+t*Wi)},(e,t)=>(t-e)/Wi,e=>e.getMinutes());Oj.range;const Sj=Wr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Wi)},(e,t)=>(t-e)/Wi,e=>e.getUTCMinutes());Sj.range;const Pj=Wr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ma-e.getMinutes()*Wi)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getHours());Pj.range;const Cj=Wr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getUTCHours());Cj.range;const pm=Wr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wi)/Ka,e=>e.getDate()-1);pm.range;const sb=Wr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ka,e=>e.getUTCDate()-1);sb.range;const GB=Wr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ka,e=>Math.floor(e/Ka));GB.range;function Iu(e){return Wr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Wi)/wj)}const lb=Iu(0),Ny=Iu(1),Tme=Iu(2),jme=Iu(3),xf=Iu(4),Ame=Iu(5),kme=Iu(6);lb.range;Ny.range;Tme.range;jme.range;xf.range;Ame.range;kme.range;function Du(e){return Wr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/wj)}const ub=Du(0),My=Du(1),Rme=Du(2),Nme=Du(3),wf=Du(4),Mme=Du(5),Lme=Du(6);ub.range;My.range;Rme.range;Nme.range;wf.range;Mme.range;Lme.range;const Ej=Wr(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());Ej.range;const Tj=Wr(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());Tj.range;const Ya=Wr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ya.range;const Za=Wr(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());Za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Za.range;function KB(e,t,r,n,i,o){const a=[[fu,1,Ma],[fu,5,5*Ma],[fu,15,15*Ma],[fu,30,30*Ma],[o,1,Wi],[o,5,5*Wi],[o,15,15*Wi],[o,30,30*Wi],[i,1,La],[i,3,3*La],[i,6,6*La],[i,12,12*La],[n,1,Ka],[n,2,2*Ka],[r,1,wj],[t,1,qI],[t,3,3*qI],[e,1,eO]];function s(u,h,p){const v=h<u;v&&([u,h]=[h,u]);const b=p&&typeof p.range=="function"?p:c(u,h,p),x=b?b.range(u,+h+1):[];return v?x.reverse():x}function c(u,h,p){const v=Math.abs(h-u)/p,b=cj(([,,w])=>w).right(a,v);if(b===a.length)return e.every(_C(u/eO,h/eO,p));if(b===0)return Ry.every(Math.max(_C(u,h,p),1));const[x,_]=a[v/a[b-1][2]<a[b][2]/v?b-1:b];return x.every(_)}return[s,c]}const[Ime,Dme]=KB(Za,Tj,ub,GB,Cj,Sj),[$me,Fme]=KB(Ya,Ej,lb,pm,Pj,Oj);function tO(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 rO(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 dh(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Bme(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=hh(i),h=ph(i),p=hh(o),v=ph(o),b=hh(a),x=ph(a),_=hh(s),w=ph(s),O=hh(c),S=ph(c),E={a:se,A:oe,b:K,B:G,c:null,d:XI,e:XI,f:uve,g:bve,G:xve,H:ave,I:sve,j:lve,L:YB,m:cve,M:fve,p:z,q:re,Q:eD,s:tD,S:dve,u:hve,U:pve,V:mve,w:vve,W:gve,x:null,X:null,y:yve,Y:_ve,Z:wve,"%":JI},T={a:X,A:le,b:ce,B:de,c:null,d:QI,e:QI,f:Cve,g:Ive,G:$ve,H:Ove,I:Sve,j:Pve,L:XB,m:Eve,M:Tve,p:be,q:M,Q:eD,s:tD,S:jve,u:Ave,U:kve,V:Rve,w:Nve,W:Mve,x:null,X:null,y:Lve,Y:Dve,Z:Fve,"%":JI},A={a:B,A:W,b:q,B:J,c:Q,d:YI,e:YI,f:rve,g:KI,G:GI,H:ZI,I:ZI,j:Qme,L:tve,m:Xme,M:Jme,p:V,q:Zme,Q:ive,s:ove,S:eve,u:qme,U:Hme,V:Gme,w:Wme,W:Kme,x:ne,X:ae,y:KI,Y:GI,Z:Yme,"%":nve};E.x=j(r,E),E.X=j(n,E),E.c=j(t,E),T.x=j(r,T),T.X=j(n,T),T.c=j(t,T);function j($,Y){return function(ue){var ie=[],he=-1,Se=0,Fe=$.length,ge,Ee,je;for(ue instanceof Date||(ue=new Date(+ue));++he<Fe;)$.charCodeAt(he)===37&&(ie.push($.slice(Se,he)),(Ee=HI[ge=$.charAt(++he)])!=null?ge=$.charAt(++he):Ee=ge==="e"?" ":"0",(je=Y[ge])&&(ge=je(ue,Ee)),ie.push(ge),Se=he+1);return ie.push($.slice(Se,he)),ie.join("")}}function N($,Y){return function(ue){var ie=dh(1900,void 0,1),he=F(ie,$,ue+="",0),Se,Fe;if(he!=ue.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(Y&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Se=rO(dh(ie.y,0,1)),Fe=Se.getUTCDay(),Se=Fe>4||Fe===0?My.ceil(Se):My(Se),Se=sb.offset(Se,(ie.V-1)*7),ie.y=Se.getUTCFullYear(),ie.m=Se.getUTCMonth(),ie.d=Se.getUTCDate()+(ie.w+6)%7):(Se=tO(dh(ie.y,0,1)),Fe=Se.getDay(),Se=Fe>4||Fe===0?Ny.ceil(Se):Ny(Se),Se=pm.offset(Se,(ie.V-1)*7),ie.y=Se.getFullYear(),ie.m=Se.getMonth(),ie.d=Se.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),Fe="Z"in ie?rO(dh(ie.y,0,1)).getUTCDay():tO(dh(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(Fe+5)%7:ie.w+ie.U*7-(Fe+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,rO(ie)):tO(ie)}}function F($,Y,ue,ie){for(var he=0,Se=Y.length,Fe=ue.length,ge,Ee;he<Se;){if(ie>=Fe)return-1;if(ge=Y.charCodeAt(he++),ge===37){if(ge=Y.charAt(he++),Ee=A[ge in HI?Y.charAt(he++):ge],!Ee||(ie=Ee($,ue,ie))<0)return-1}else if(ge!=ue.charCodeAt(ie++))return-1}return ie}function V($,Y,ue){var ie=u.exec(Y.slice(ue));return ie?($.p=h.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function B($,Y,ue){var ie=b.exec(Y.slice(ue));return ie?($.w=x.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function W($,Y,ue){var ie=p.exec(Y.slice(ue));return ie?($.w=v.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function q($,Y,ue){var ie=O.exec(Y.slice(ue));return ie?($.m=S.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function J($,Y,ue){var ie=_.exec(Y.slice(ue));return ie?($.m=w.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function Q($,Y,ue){return F($,t,Y,ue)}function ne($,Y,ue){return F($,r,Y,ue)}function ae($,Y,ue){return F($,n,Y,ue)}function se($){return a[$.getDay()]}function oe($){return o[$.getDay()]}function K($){return c[$.getMonth()]}function G($){return s[$.getMonth()]}function z($){return i[+($.getHours()>=12)]}function re($){return 1+~~($.getMonth()/3)}function X($){return a[$.getUTCDay()]}function le($){return o[$.getUTCDay()]}function ce($){return c[$.getUTCMonth()]}function de($){return s[$.getUTCMonth()]}function be($){return i[+($.getUTCHours()>=12)]}function M($){return 1+~~($.getUTCMonth()/3)}return{format:function($){var Y=j($+="",E);return Y.toString=function(){return $},Y},parse:function($){var Y=N($+="",!1);return Y.toString=function(){return $},Y},utcFormat:function($){var Y=j($+="",T);return Y.toString=function(){return $},Y},utcParse:function($){var Y=N($+="",!0);return Y.toString=function(){return $},Y}}}var HI={"-":"",_:" ",0:"0"},Jr=/^\s*\d+/,Ume=/^%/,zme=/[\\^$*+?|[\]().{}]/g;function It(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function Vme(e){return e.replace(zme,"\\$&")}function hh(e){return new RegExp("^(?:"+e.map(Vme).join("|")+")","i")}function ph(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Wme(e,t,r){var n=Jr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function qme(e,t,r){var n=Jr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Hme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Gme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Kme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function GI(e,t,r){var n=Jr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function KI(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Yme(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Zme(e,t,r){var n=Jr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Xme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function YI(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Qme(e,t,r){var n=Jr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ZI(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Jme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function eve(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function tve(e,t,r){var n=Jr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function rve(e,t,r){var n=Jr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nve(e,t,r){var n=Ume.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function ive(e,t,r){var n=Jr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function ove(e,t,r){var n=Jr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function XI(e,t){return It(e.getDate(),t,2)}function ave(e,t){return It(e.getHours(),t,2)}function sve(e,t){return It(e.getHours()%12||12,t,2)}function lve(e,t){return It(1+pm.count(Ya(e),e),t,3)}function YB(e,t){return It(e.getMilliseconds(),t,3)}function uve(e,t){return YB(e,t)+"000"}function cve(e,t){return It(e.getMonth()+1,t,2)}function fve(e,t){return It(e.getMinutes(),t,2)}function dve(e,t){return It(e.getSeconds(),t,2)}function hve(e){var t=e.getDay();return t===0?7:t}function pve(e,t){return It(lb.count(Ya(e)-1,e),t,2)}function ZB(e){var t=e.getDay();return t>=4||t===0?xf(e):xf.ceil(e)}function mve(e,t){return e=ZB(e),It(xf.count(Ya(e),e)+(Ya(e).getDay()===4),t,2)}function vve(e){return e.getDay()}function gve(e,t){return It(Ny.count(Ya(e)-1,e),t,2)}function yve(e,t){return It(e.getFullYear()%100,t,2)}function bve(e,t){return e=ZB(e),It(e.getFullYear()%100,t,2)}function _ve(e,t){return It(e.getFullYear()%1e4,t,4)}function xve(e,t){var r=e.getDay();return e=r>=4||r===0?xf(e):xf.ceil(e),It(e.getFullYear()%1e4,t,4)}function wve(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+It(t/60|0,"0",2)+It(t%60,"0",2)}function QI(e,t){return It(e.getUTCDate(),t,2)}function Ove(e,t){return It(e.getUTCHours(),t,2)}function Sve(e,t){return It(e.getUTCHours()%12||12,t,2)}function Pve(e,t){return It(1+sb.count(Za(e),e),t,3)}function XB(e,t){return It(e.getUTCMilliseconds(),t,3)}function Cve(e,t){return XB(e,t)+"000"}function Eve(e,t){return It(e.getUTCMonth()+1,t,2)}function Tve(e,t){return It(e.getUTCMinutes(),t,2)}function jve(e,t){return It(e.getUTCSeconds(),t,2)}function Ave(e){var t=e.getUTCDay();return t===0?7:t}function kve(e,t){return It(ub.count(Za(e)-1,e),t,2)}function QB(e){var t=e.getUTCDay();return t>=4||t===0?wf(e):wf.ceil(e)}function Rve(e,t){return e=QB(e),It(wf.count(Za(e),e)+(Za(e).getUTCDay()===4),t,2)}function Nve(e){return e.getUTCDay()}function Mve(e,t){return It(My.count(Za(e)-1,e),t,2)}function Lve(e,t){return It(e.getUTCFullYear()%100,t,2)}function Ive(e,t){return e=QB(e),It(e.getUTCFullYear()%100,t,2)}function Dve(e,t){return It(e.getUTCFullYear()%1e4,t,4)}function $ve(e,t){var r=e.getUTCDay();return e=r>=4||r===0?wf(e):wf.ceil(e),It(e.getUTCFullYear()%1e4,t,4)}function Fve(){return"+0000"}function JI(){return"%"}function eD(e){return+e}function tD(e){return Math.floor(+e/1e3)}var Mc,JB,eU;Bve({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 Bve(e){return Mc=Bme(e),JB=Mc.format,Mc.parse,eU=Mc.utcFormat,Mc.utcParse,Mc}function Uve(e){return new Date(e)}function zve(e){return e instanceof Date?+e:+new Date(+e)}function jj(e,t,r,n,i,o,a,s,c,u){var h=mj(),p=h.invert,v=h.domain,b=u(".%L"),x=u(":%S"),_=u("%I:%M"),w=u("%I %p"),O=u("%a %d"),S=u("%b %d"),E=u("%B"),T=u("%Y");function A(j){return(c(j)<j?b:s(j)<j?x:a(j)<j?_:o(j)<j?w:n(j)<j?i(j)<j?O:S:r(j)<j?E:T)(j)}return h.invert=function(j){return new Date(p(j))},h.domain=function(j){return arguments.length?v(Array.from(j,zve)):v().map(Uve)},h.ticks=function(j){var N=v();return e(N[0],N[N.length-1],j??10)},h.tickFormat=function(j,N){return N==null?A:u(N)},h.nice=function(j){var N=v();return(!j||typeof j.range!="function")&&(j=t(N[0],N[N.length-1],j??10)),j?v(BB(N,j)):h},h.copy=function(){return hm(h,jj(e,t,r,n,i,o,a,s,c,u))},h}function Vve(){return Qi.apply(jj($me,Fme,Ya,Ej,lb,pm,Pj,Oj,fu,JB).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Wve(){return Qi.apply(jj(Ime,Dme,Za,Tj,ub,sb,Cj,Sj,fu,eU).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function cb(){var e=0,t=1,r,n,i,o,a=En,s=!1,c;function u(p){return p==null||isNaN(p=+p)?c:a(i===0?.5:(p=(o(p)-r)*i,s?Math.max(0,Math.min(1,p)):p))}u.domain=function(p){return arguments.length?([e,t]=p,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(p){return arguments.length?(s=!!p,u):s},u.interpolator=function(p){return arguments.length?(a=p,u):a};function h(p){return function(v){var b,x;return arguments.length?([b,x]=v,a=p(b,x),u):[a(0),a(1)]}}return u.range=h(td),u.rangeRound=h(pj),u.unknown=function(p){return arguments.length?(c=p,u):c},function(p){return o=p,r=p(e),n=p(t),i=r===n?0:1/(n-r),u}}function yl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function tU(){var e=gl(cb()(En));return e.copy=function(){return yl(e,tU())},ns.apply(e,arguments)}function rU(){var e=yj(cb()).domain([1,10]);return e.copy=function(){return yl(e,rU()).base(e.base())},ns.apply(e,arguments)}function nU(){var e=bj(cb());return e.copy=function(){return yl(e,nU()).constant(e.constant())},ns.apply(e,arguments)}function Aj(){var e=_j(cb());return e.copy=function(){return yl(e,Aj()).exponent(e.exponent())},ns.apply(e,arguments)}function qve(){return Aj.apply(null,arguments).exponent(.5)}function iU(){var e=[],t=En;function r(n){if(n!=null&&!isNaN(n=+n))return t((fm(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Js),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>kpe(e,o/n))},r.copy=function(){return iU(t).domain(e)},ns.apply(r,arguments)}function fb(){var e=0,t=.5,r=1,n=1,i,o,a,s,c,u=En,h,p=!1,v;function b(_){return isNaN(_=+_)?v:(_=.5+((_=+h(_))-o)*(n*_<n*o?s:c),u(p?Math.max(0,Math.min(1,_)):_))}b.domain=function(_){return arguments.length?([e,t,r]=_,i=h(e=+e),o=h(t=+t),a=h(r=+r),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),n=o<i?-1:1,b):[e,t,r]},b.clamp=function(_){return arguments.length?(p=!!_,b):p},b.interpolator=function(_){return arguments.length?(u=_,b):u};function x(_){return function(w){var O,S,E;return arguments.length?([O,S,E]=w,u=nme(_,[O,S,E]),b):[u(0),u(.5),u(1)]}}return b.range=x(td),b.rangeRound=x(pj),b.unknown=function(_){return arguments.length?(v=_,b):v},function(_){return h=_,i=_(e),o=_(t),a=_(r),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),n=o<i?-1:1,b}}function oU(){var e=gl(fb()(En));return e.copy=function(){return yl(e,oU())},ns.apply(e,arguments)}function aU(){var e=yj(fb()).domain([.1,1,10]);return e.copy=function(){return yl(e,aU()).base(e.base())},ns.apply(e,arguments)}function sU(){var e=bj(fb());return e.copy=function(){return yl(e,sU()).constant(e.constant())},ns.apply(e,arguments)}function kj(){var e=_j(fb());return e.copy=function(){return yl(e,kj()).exponent(e.exponent())},ns.apply(e,arguments)}function Hve(){return kj.apply(null,arguments).exponent(.5)}const rD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:gp,scaleDiverging:oU,scaleDivergingLog:aU,scaleDivergingPow:kj,scaleDivergingSqrt:Hve,scaleDivergingSymlog:sU,scaleIdentity:FB,scaleImplicit:xC,scaleLinear:ky,scaleLog:UB,scaleOrdinal:fj,scalePoint:$h,scalePow:xj,scaleQuantile:WB,scaleQuantize:qB,scaleRadial:VB,scaleSequential:tU,scaleSequentialLog:rU,scaleSequentialPow:Aj,scaleSequentialQuantile:iU,scaleSequentialSqrt:qve,scaleSequentialSymlog:nU,scaleSqrt:Cme,scaleSymlog:zB,scaleThreshold:HB,scaleTime:Vve,scaleUtc:Wve,tickFormat:$B},Symbol.toStringTag,{value:"Module"}));var nO,nD;function db(){if(nD)return nO;nD=1;var e=Xf();function t(r,n,i){for(var o=-1,a=r.length;++o<a;){var s=r[o],c=n(s);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,h=s}return h}return nO=t,nO}var iO,iD;function lU(){if(iD)return iO;iD=1;function e(t,r){return t>r}return iO=e,iO}var oO,oD;function Gve(){if(oD)return oO;oD=1;var e=db(),t=lU(),r=ed();function n(i){return i&&i.length?e(i,r,t):void 0}return oO=n,oO}var Kve=Gve();const Gs=Nt(Kve);var aO,aD;function uU(){if(aD)return aO;aD=1;function e(t,r){return t<r}return aO=e,aO}var sO,sD;function Yve(){if(sD)return sO;sD=1;var e=db(),t=uU(),r=ed();function n(i){return i&&i.length?e(i,r,t):void 0}return sO=n,sO}var Zve=Yve();const hb=Nt(Zve);var lO,lD;function Xve(){if(lD)return lO;lD=1;var e=GT(),t=ca(),r=gB(),n=Zn();function i(o,a){var s=n(o)?e:r;return s(o,t(a,3))}return lO=i,lO}var uO,uD;function Qve(){if(uD)return uO;uD=1;var e=mB(),t=Xve();function r(n,i){return e(t(n,i),1)}return uO=r,uO}var Jve=Qve();const ege=Nt(Jve);var cO,cD;function tge(){if(cD)return cO;cD=1;var e=oj();function t(r,n){return e(r,n)}return cO=t,cO}var rge=tge();const ll=Nt(rge);var rd=1e9,nge={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Nj,sr=!0,Zi="[DecimalError] ",yu=Zi+"Invalid argument: ",Rj=Zi+"Exponent out of range: ",nd=Math.floor,iu=Math.pow,ige=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,hi,Yr=1e7,rr=7,cU=9007199254740991,Ly=nd(cU/rr),et={};et.absoluteValue=et.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};et.comparedTo=et.cmp=function(e){var t,r,n,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(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};et.decimalPlaces=et.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*rr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};et.dividedBy=et.div=function(e){return Ba(this,new this.constructor(e))};et.dividedToIntegerBy=et.idiv=function(e){var t=this,r=t.constructor;return qt(Ba(t,new r(e),0,1),r.precision)};et.equals=et.eq=function(e){return!this.cmp(e)};et.exponent=function(){return Mr(this)};et.greaterThan=et.gt=function(e){return this.cmp(e)>0};et.greaterThanOrEqualTo=et.gte=function(e){return this.cmp(e)>=0};et.isInteger=et.isint=function(){return this.e>this.d.length-2};et.isNegative=et.isneg=function(){return this.s<0};et.isPositive=et.ispos=function(){return this.s>0};et.isZero=function(){return this.s===0};et.lessThan=et.lt=function(e){return this.cmp(e)<0};et.lessThanOrEqualTo=et.lte=function(e){return this.cmp(e)<1};et.logarithm=et.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(hi))throw Error(Zi+"NaN");if(r.s<1)throw Error(Zi+(r.s?"NaN":"-Infinity"));return r.eq(hi)?new n(0):(sr=!1,t=Ba(wp(r,o),wp(e,o),o),sr=!0,qt(t,i))};et.minus=et.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?hU(t,e):fU(t,(e.s=-e.s,e))};et.modulo=et.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Zi+"NaN");return r.s?(sr=!1,t=Ba(r,e,0,1).times(e),sr=!0,r.minus(t)):qt(new n(r),i)};et.naturalExponential=et.exp=function(){return dU(this)};et.naturalLogarithm=et.ln=function(){return wp(this)};et.negated=et.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};et.plus=et.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fU(t,e):hU(t,(e.s=-e.s,e))};et.precision=et.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yu+e);if(t=Mr(i)+1,n=i.d.length-1,r=n*rr+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};et.squareRoot=et.sqrt=function(){var e,t,r,n,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Zi+"NaN")}for(e=Mr(s),sr=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Zo(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=nd((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),n=new c(t)):n=new c(i.toString()),r=c.precision,i=a=r+3;;)if(o=n,n=o.plus(Ba(s,o,a+2)).times(.5),Zo(o.d).slice(0,a)===(t=Zo(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(qt(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return sr=!0,qt(n,r)};et.times=et.mul=function(e){var t,r,n,i,o,a,s,c,u,h=this,p=h.constructor,v=h.d,b=(e=new p(e)).d;if(!h.s||!e.s)return new p(0);for(e.s*=h.s,r=h.e+e.e,c=v.length,u=b.length,c<u&&(o=v,v=b,b=o,a=c,c=u,u=a),o=[],a=c+u,n=a;n--;)o.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)s=o[i]+b[n]*v[i-n-1]+t,o[i--]=s%Yr|0,t=s/Yr|0;o[i]=(o[i]+t)%Yr|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,sr?qt(e,p.precision):e};et.toDecimalPlaces=et.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ia(e,0,rd),t===void 0?t=n.rounding:ia(t,0,8),qt(r,e+Mr(r)+1,t))};et.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Tu(n,!0):(ia(e,0,rd),t===void 0?t=i.rounding:ia(t,0,8),n=qt(new i(n),e+1,t),r=Tu(n,!0,e+1)),r};et.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Tu(i):(ia(e,0,rd),t===void 0?t=o.rounding:ia(t,0,8),n=qt(new o(i),e+Mr(i)+1,t),r=Tu(n.abs(),!1,e+Mr(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};et.toInteger=et.toint=function(){var e=this,t=e.constructor;return qt(new t(e),Mr(e)+1,t.rounding)};et.toNumber=function(){return+this};et.toPower=et.pow=function(e){var t,r,n,i,o,a,s=this,c=s.constructor,u=12,h=+(e=new c(e));if(!e.s)return new c(hi);if(s=new c(s),!s.s){if(e.s<1)throw Error(Zi+"Infinity");return s}if(s.eq(hi))return s;if(n=c.precision,e.eq(hi))return qt(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=h<0?-h:h)<=cU){for(i=new c(hi),t=Math.ceil(n/rr+4),sr=!1;r%2&&(i=i.times(s),dD(i.d,t)),r=nd(r/2),r!==0;)s=s.times(s),dD(s.d,t);return sr=!0,e.s<0?new c(hi).div(i):qt(i,n)}}else if(o<0)throw Error(Zi+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,sr=!1,i=e.times(wp(s,n+u)),sr=!0,i=dU(i),i.s=o,i};et.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=Mr(i),n=Tu(i,r<=o.toExpNeg||r>=o.toExpPos)):(ia(e,1,rd),t===void 0?t=o.rounding:ia(t,0,8),i=qt(new o(i),e,t),r=Mr(i),n=Tu(i,e<=r||r<=o.toExpNeg,e)),n};et.toSignificantDigits=et.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ia(e,1,rd),t===void 0?t=n.rounding:ia(t,0,8)),qt(new n(r),e,t)};et.toString=et.valueOf=et.val=et.toJSON=et[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Mr(e),r=e.constructor;return Tu(e,t<=r.toExpNeg||t>=r.toExpPos)};function fU(e,t){var r,n,i,o,a,s,c,u,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),sr?qt(t,p):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(n=c,o=-o,s=u.length):(n=u,i=a,s=c.length),a=Math.ceil(p/rr),s=a>s?a+1:s+1,o>s&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(s=c.length,o=u.length,s-o<0&&(o=s,n=u,u=c,c=n),r=0;o;)r=(c[--o]=c[o]+u[o]+r)/Yr|0,c[o]%=Yr;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,sr?qt(t,p):t}function ia(e,t,r){if(e!==~~e||e<t||e>r)throw Error(yu+e)}function Zo(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)n=e[t]+"",r=rr-n.length,r&&(o+=qs(r)),o+=n;a=e[t],n=a+"",r=rr-n.length,r&&(o+=qs(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Ba=function(){function e(n,i){var o,a=0,s=n.length;for(n=n.slice();s--;)o=n[s]*i+a,n[s]=o%Yr|0,a=o/Yr|0;return a&&n.unshift(a),n}function t(n,i,o,a){var s,c;if(o!=a)c=o>a?1:-1;else for(s=c=0;s<o;s++)if(n[s]!=i[s]){c=n[s]>i[s]?1:-1;break}return c}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]<i[o]?1:0,n[o]=a*Yr+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,a){var s,c,u,h,p,v,b,x,_,w,O,S,E,T,A,j,N,F,V=n.constructor,B=n.s==i.s?1:-1,W=n.d,q=i.d;if(!n.s)return new V(n);if(!i.s)throw Error(Zi+"Division by zero");for(c=n.e-i.e,N=q.length,A=W.length,b=new V(B),x=b.d=[],u=0;q[u]==(W[u]||0);)++u;if(q[u]>(W[u]||0)&&--c,o==null?S=o=V.precision:a?S=o+(Mr(n)-Mr(i))+1:S=o,S<0)return new V(0);if(S=S/rr+2|0,u=0,N==1)for(h=0,q=q[0],S++;(u<A||h)&&S--;u++)E=h*Yr+(W[u]||0),x[u]=E/q|0,h=E%q|0;else{for(h=Yr/(q[0]+1)|0,h>1&&(q=e(q,h),W=e(W,h),N=q.length,A=W.length),T=N,_=W.slice(0,N),w=_.length;w<N;)_[w++]=0;F=q.slice(),F.unshift(0),j=q[0],q[1]>=Yr/2&&++j;do h=0,s=t(q,_,N,w),s<0?(O=_[0],N!=w&&(O=O*Yr+(_[1]||0)),h=O/j|0,h>1?(h>=Yr&&(h=Yr-1),p=e(q,h),v=p.length,w=_.length,s=t(p,_,v,w),s==1&&(h--,r(p,N<v?F:q,v))):(h==0&&(s=h=1),p=q.slice()),v=p.length,v<w&&p.unshift(0),r(_,p,w),s==-1&&(w=_.length,s=t(q,_,N,w),s<1&&(h++,r(_,N<w?F:q,w))),w=_.length):s===0&&(h++,_=[0]),x[u++]=h,s&&_[0]?_[w++]=W[T]||0:(_=[W[T]],w=1);while((T++<A||_[0]!==void 0)&&S--)}return x[0]||x.shift(),b.e=c,qt(b,a?o+Mr(b)+1:o)}}();function dU(e,t){var r,n,i,o,a,s,c=0,u=0,h=e.constructor,p=h.precision;if(Mr(e)>16)throw Error(Rj+Mr(e));if(!e.s)return new h(hi);for(t==null?(sr=!1,s=p):s=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(n=Math.log(iu(2,u))/Math.LN10*2+5|0,s+=n,r=i=o=new h(hi),h.precision=s;;){if(i=qt(i.times(e),s),r=r.times(++c),a=o.plus(Ba(i,r,s)),Zo(a.d).slice(0,s)===Zo(o.d).slice(0,s)){for(;u--;)o=qt(o.times(o),s);return h.precision=p,t==null?(sr=!0,qt(o,p)):o}o=a}}function Mr(e){for(var t=e.e*rr,r=e.d[0];r>=10;r/=10)t++;return t}function fO(e,t,r){if(t>e.LN10.sd())throw sr=!0,r&&(e.precision=r),Error(Zi+"LN10 precision limit exceeded");return qt(new e(e.LN10),t)}function qs(e){for(var t="";e--;)t+="0";return t}function wp(e,t){var r,n,i,o,a,s,c,u,h,p=1,v=10,b=e,x=b.d,_=b.constructor,w=_.precision;if(b.s<1)throw Error(Zi+(b.s?"NaN":"-Infinity"));if(b.eq(hi))return new _(0);if(t==null?(sr=!1,u=w):u=t,b.eq(10))return t==null&&(sr=!0),fO(_,u);if(u+=v,_.precision=u,r=Zo(x),n=r.charAt(0),o=Mr(b),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)b=b.times(e),r=Zo(b.d),n=r.charAt(0),p++;o=Mr(b),n>1?(b=new _("0."+r),o++):b=new _(n+"."+r.slice(1))}else return c=fO(_,u+2,w).times(o+""),b=wp(new _(n+"."+r.slice(1)),u-v).plus(c),_.precision=w,t==null?(sr=!0,qt(b,w)):b;for(s=a=b=Ba(b.minus(hi),b.plus(hi),u),h=qt(b.times(b),u),i=3;;){if(a=qt(a.times(h),u),c=s.plus(Ba(a,new _(i),u)),Zo(c.d).slice(0,u)===Zo(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(fO(_,u+2,w).times(o+""))),s=Ba(s,new _(p),u),_.precision=w,t==null?(sr=!0,qt(s,w)):s;s=c,i+=2}}function fD(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=nd(r/rr),e.d=[],n=(r+1)%rr,r<0&&(n+=rr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=rr;n<i;)e.d.push(+t.slice(n,n+=rr));t=t.slice(n),n=rr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),sr&&(e.e>Ly||e.e<-Ly))throw Error(Rj+r)}else e.s=0,e.e=0,e.d=[0];return e}function qt(e,t,r){var n,i,o,a,s,c,u,h,p=e.d;for(a=1,o=p[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=rr,i=t,u=p[h=0];else{if(h=Math.ceil((n+1)/rr),o=p.length,h>=o)return e;for(u=o=p[h],a=1;o>=10;o/=10)a++;n%=rr,i=n-rr+a}if(r!==void 0&&(o=iu(10,a-i-1),s=u/o%10|0,c=t<0||p[h+1]!==void 0||u%o,c=r<4?(s||c)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||c||r==6&&(n>0?i>0?u/iu(10,a-i):0:p[h-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return c?(o=Mr(e),p.length=1,t=t-o-1,p[0]=iu(10,(rr-t%rr)%rr),e.e=nd(-t/rr)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=h,o=1,h--):(p.length=h+1,o=iu(10,rr-n),p[h]=i>0?(u/iu(10,a-i)%iu(10,i)|0)*o:0),c)for(;;)if(h==0){(p[0]+=o)==Yr&&(p[0]=1,++e.e);break}else{if(p[h]+=o,p[h]!=Yr)break;p[h--]=0,o=1}for(n=p.length;p[--n]===0;)p.pop();if(sr&&(e.e>Ly||e.e<-Ly))throw Error(Rj+Mr(e));return e}function hU(e,t){var r,n,i,o,a,s,c,u,h,p,v=e.constructor,b=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),sr?qt(t,b):t;if(c=e.d,p=t.d,n=t.e,u=e.e,c=c.slice(),a=u-n,a){for(h=a<0,h?(r=c,a=-a,s=p.length):(r=p,n=u,s=c.length),i=Math.max(Math.ceil(b/rr),s)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=c.length,s=p.length,h=i<s,h&&(s=i),i=0;i<s;i++)if(c[i]!=p[i]){h=c[i]<p[i];break}a=0}for(h&&(r=c,c=p,p=r,t.s=-t.s),s=c.length,i=p.length-s;i>0;--i)c[s++]=0;for(i=p.length;i>a;){if(c[--i]<p[i]){for(o=i;o&&c[--o]===0;)c[o]=Yr-1;--c[o],c[i]+=Yr}c[i]-=p[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,sr?qt(t,b):t):new v(0)}function Tu(e,t,r){var n,i=Mr(e),o=Zo(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+qs(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+qs(-i-1)+o,r&&(n=r-a)>0&&(o+=qs(n))):i>=a?(o+=qs(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+qs(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=qs(n))),e.s<0?"-"+o:o}function dD(e,t){if(e.length>t)return e.length=t,!0}function pU(e){var t,r,n;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(yu+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 fD(a,o.toString())}else if(typeof o!="string")throw Error(yu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,ige.test(o))fD(a,o);else throw Error(yu+o)}if(i.prototype=et,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=pU,i.config=i.set=oge,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function oge(e){if(!e||typeof e!="object")throw Error(Zi+"Object expected");var t,r,n,i=["precision",1,rd,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(nd(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(yu+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(yu+r+": "+n);return this}var Nj=pU(nge);hi=new Nj(1);const zt=Nj;function age(e){return cge(e)||uge(e)||lge(e)||sge()}function sge(){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 lge(e,t){if(e){if(typeof e=="string")return PC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PC(e,t)}}function uge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cge(e){if(Array.isArray(e))return PC(e)}function PC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fge=function(t){return t},mU={"@@functional/placeholder":!0},vU=function(t){return t===mU},hD=function(t){return function r(){return arguments.length===0||arguments.length===1&&vU(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},dge=function e(t,r){return t===1?r:hD(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==mU}).length;return a>=t?r.apply(void 0,i):e(t-a,hD(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var h=i.map(function(p){return vU(p)?c.shift():p});return r.apply(void 0,age(h).concat(c))}))})},pb=function(t){return dge(t.length,t)},CC=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},hge=pb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),pge=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return fge;var i=r.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,c){return c(s)},o.apply(void 0,arguments))}},EC=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},gU=function(t){var r=null,n=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r&&o.every(function(s,c){return s===r[c]})||(r=o,n=t.apply(void 0,o)),n}};function mge(e){var t;return e===0?t=1:t=Math.floor(new zt(e).abs().log(10).toNumber())+1,t}function vge(e,t,r){for(var n=new zt(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var gge=pb(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),yge=pb(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),bge=pb(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const mb={rangeStep:vge,getDigitCount:mge,interpolateNumber:gge,uninterpolateNumber:yge,uninterpolateTruncation:bge};function TC(e){return wge(e)||xge(e)||yU(e)||_ge()}function _ge(){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 xge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function wge(e){if(Array.isArray(e))return jC(e)}function Op(e,t){return Pge(e)||Sge(e,t)||yU(e,t)||Oge()}function Oge(){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 yU(e,t){if(e){if(typeof e=="string")return jC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jC(e,t)}}function jC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sge(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,o=c}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw o}}return r}}function Pge(e){if(Array.isArray(e))return e}function bU(e){var t=Op(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function _U(e,t,r){if(e.lte(0))return new zt(0);var n=mb.getDigitCount(e.toNumber()),i=new zt(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new zt(Math.ceil(o.div(a).toNumber())).add(r).mul(a),c=s.mul(i);return t?c:new zt(Math.ceil(c))}function Cge(e,t,r){var n=1,i=new zt(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new zt(10).pow(mb.getDigitCount(e)-1),i=new zt(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new zt(Math.floor(e)))}else e===0?i=new zt(Math.floor((t-1)/2)):r||(i=new zt(Math.floor(e)));var a=Math.floor((t-1)/2),s=pge(hge(function(c){return i.add(new zt(c-a).mul(n)).toNumber()}),CC);return s(0,t)}function xU(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new zt(0),tickMin:new zt(0),tickMax:new zt(0)};var o=_U(new zt(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new zt(0):(a=new zt(e).add(t).div(2),a=a.sub(new zt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new zt(t).sub(a).div(o).toNumber()),u=s+c+1;return u>r?xU(e,t,r,n,i+1):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:o,tickMin:a.sub(new zt(s).mul(o)),tickMax:a.add(new zt(c).mul(o))})}function Ege(e){var t=Op(e,2),r=t[0],n=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=bU([r,n]),c=Op(s,2),u=c[0],h=c[1];if(u===-1/0||h===1/0){var p=h===1/0?[u].concat(TC(CC(0,i-1).map(function(){return 1/0}))):[].concat(TC(CC(0,i-1).map(function(){return-1/0})),[h]);return r>n?EC(p):p}if(u===h)return Cge(u,i,o);var v=xU(u,h,a,o),b=v.step,x=v.tickMin,_=v.tickMax,w=mb.rangeStep(x,_.add(new zt(.1).mul(b)),b);return r>n?EC(w):w}function Tge(e,t){var r=Op(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=bU([n,i]),s=Op(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var h=Math.max(t,2),p=_U(new zt(u).sub(c).div(h-1),o,0),v=[].concat(TC(mb.rangeStep(new zt(c),new zt(u).sub(new zt(.99).mul(p)),p)),[u]);return n>i?EC(v):v}var jge=gU(Ege),Age=gU(Tge),kge="Invariant failed";function ju(e,t){throw new Error(kge)}var Rge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Of(e){"@babel/helpers - typeof";return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Of(e)}function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iy.apply(this,arguments)}function Nge(e,t){return Dge(e)||Ige(e,t)||Lge(e,t)||Mge()}function Mge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lge(e,t){if(e){if(typeof e=="string")return pD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pD(e,t)}}function pD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ige(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Dge(e){if(Array.isArray(e))return e}function $ge(e,t){if(e==null)return{};var r=Fge(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fge(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Bge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SU(n.key),n)}}function zge(e,t,r){return t&&Uge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vge(e,t,r){return t=Dy(t),Wge(e,wU()?Reflect.construct(t,r||[],Dy(e).constructor):t.apply(e,r))}function Wge(e,t){if(t&&(Of(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qge(e)}function qge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wU=function(){return!!e})()}function Dy(e){return Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dy(e)}function Hge(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&&AC(e,t)}function AC(e,t){return AC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},AC(e,t)}function OU(e,t,r){return t=SU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SU(e){var t=Gge(e,"string");return Of(t)=="symbol"?t:t+""}function Gge(e,t){if(Of(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Of(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var id=function(e){function t(){return Bge(this,t),Vge(this,t,arguments)}return Hge(t,e),zge(t,[{key:"render",value:function(){var n=this.props,i=n.offset,o=n.layout,a=n.width,s=n.dataKey,c=n.data,u=n.dataPointFormatter,h=n.xAxis,p=n.yAxis,v=$ge(n,Rge),b=it(v,!1);this.props.direction==="x"&&h.type!=="number"&&ju();var x=c.map(function(_){var w=u(_,s),O=w.x,S=w.y,E=w.value,T=w.errorVal;if(!T)return null;var A=[],j,N;if(Array.isArray(T)){var F=Nge(T,2);j=F[0],N=F[1]}else j=N=T;if(o==="vertical"){var V=h.scale,B=S+i,W=B+a,q=B-a,J=V(E-j),Q=V(E+N);A.push({x1:Q,y1:W,x2:Q,y2:q}),A.push({x1:J,y1:B,x2:Q,y2:B}),A.push({x1:J,y1:W,x2:J,y2:q})}else if(o==="horizontal"){var ne=p.scale,ae=O+i,se=ae-a,oe=ae+a,K=ne(E-j),G=ne(E+N);A.push({x1:se,y1:G,x2:oe,y2:G}),A.push({x1:ae,y1:K,x2:ae,y2:G}),A.push({x1:se,y1:K,x2:oe,y2:K})}return Z.createElement(Ct,Iy({className:"recharts-errorBar",key:"bar-".concat(A.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},b),A.map(function(z){return Z.createElement("line",Iy({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return Z.createElement(Ct,{className:"recharts-errorBars"},x)}}])}(Z.Component);OU(id,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});OU(id,"displayName","ErrorBar");function Sp(e){"@babel/helpers - typeof";return Sp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sp(e)}function mD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mD(Object(r),!0).forEach(function(n){Kge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kge(e,t,r){return t=Yge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yge(e){var t=Zge(e,"string");return Sp(t)=="symbol"?t:t+""}function Zge(e,t){if(Sp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PU=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=di(r,tf);if(!a)return null;var s=tf.defaultProps,c=s!==void 0?Kl(Kl({},s),a.props):{},u;return a.props&&a.props.payload?u=a.props&&a.props.payload:o==="children"?u=(n||[]).reduce(function(h,p){var v=p.item,b=p.props,x=b.sectors||b.data||[];return h.concat(x.map(function(_){return{type:a.props.iconType||v.props.legendType,value:_.name,color:_.fill,payload:_}}))},[]):u=(n||[]).map(function(h){var p=h.item,v=p.type.defaultProps,b=v!==void 0?Kl(Kl({},v),p.props):{},x=b.dataKey,_=b.name,w=b.legendType,O=b.hide;return{inactive:O,dataKey:x,type:c.iconType||w||"square",color:Mj(p),value:_||x,payload:b}}),Kl(Kl(Kl({},c),tf.getWithHeight(a,i)),{},{payload:u,item:a})};function Pp(e){"@babel/helpers - typeof";return Pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pp(e)}function vD(e){return eye(e)||Jge(e)||Qge(e)||Xge()}function Xge(){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 Qge(e,t){if(e){if(typeof e=="string")return kC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kC(e,t)}}function Jge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eye(e){if(Array.isArray(e))return kC(e)}function kC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gD(Object(r),!0).forEach(function(n){nf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nf(e,t,r){return t=tye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tye(e){var t=rye(e,"string");return Pp(t)=="symbol"?t:t+""}function rye(e,t){if(Pp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nr(e,t,r){return dt(e)||dt(t)?r:zr(t)?mi(e,t,r):ft(t)?t(e):r}function Fh(e,t,r,n){var i=ege(e,function(s){return nr(s,t)});if(r==="number"){var o=i.filter(function(s){return Ve(s)||parseFloat(s)});return o.length?[hb(o),Gs(o)]:[1/0,-1/0]}var a=n?i.filter(function(s){return!dt(s)}):i;return a.map(function(s){return zr(s)||s instanceof Date?s:""})}var nye=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<s;u++){var h=u>0?i[u-1].coordinate:i[s-1].coordinate,p=i[u].coordinate,v=u>=s-1?i[0].coordinate:i[u+1].coordinate,b=void 0;if(Pn(p-h)!==Pn(v-p)){var x=[];if(Pn(v-p)===Pn(c[1]-c[0])){b=v;var _=p+c[1]-c[0];x[0]=Math.min(_,(_+h)/2),x[1]=Math.max(_,(_+h)/2)}else{b=h;var w=v+c[1]-c[0];x[0]=Math.min(p,(w+p)/2),x[1]=Math.max(p,(w+p)/2)}var O=[Math.min(p,(b+p)/2),Math.max(p,(b+p)/2)];if(t>O[0]&&t<=O[1]||t>=x[0]&&t<=x[1]){a=i[u].index;break}}else{var S=Math.min(h,v),E=Math.max(h,v);if(t>(S+p)/2&&t<=(E+p)/2){a=i[u].index;break}}}else for(var T=0;T<s;T++)if(T===0&&t<=(n[T].coordinate+n[T+1].coordinate)/2||T>0&&T<s-1&&t>(n[T].coordinate+n[T-1].coordinate)/2&&t<=(n[T].coordinate+n[T+1].coordinate)/2||T===s-1&&t>(n[T].coordinate+n[T-1].coordinate)/2){a=n[T].index;break}return a},Mj=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Or(Or({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,c;switch(i){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:s;break;default:c=s;break}return c},iye=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),c=0,u=s.length;c<u;c++)for(var h=o[s[c]].stackGroups,p=Object.keys(h),v=0,b=p.length;v<b;v++){var x=h[p[v]],_=x.items,w=x.cateAxisId,O=_.filter(function(N){return Fa(N.type).indexOf("Bar")>=0});if(O&&O.length){var S=O[0].type.defaultProps,E=S!==void 0?Or(Or({},S),O[0].props):O[0].props,T=E.barSize,A=E[w];a[A]||(a[A]=[]);var j=dt(T)?r:T;a[A].push({item:O[0],stackList:O.slice(1),barSize:dt(j)?void 0:Cn(j,n,0)})}}return a},oye=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,c=a.length;if(c<1)return null;var u=Cn(r,i,0,!0),h,p=[];if(a[0].barSize===+a[0].barSize){var v=!1,b=i/c,x=a.reduce(function(T,A){return T+A.barSize||0},0);x+=(c-1)*u,x>=i&&(x-=(c-1)*u,u=0),x>=i&&b>0&&(v=!0,b*=.9,x=c*b);var _=(i-x)/2>>0,w={offset:_-u,size:0};h=a.reduce(function(T,A){var j={item:A.item,position:{offset:w.offset+w.size+u,size:v?b:A.barSize}},N=[].concat(vD(T),[j]);return w=N[N.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(F){N.push({item:F,position:w})}),N},p)}else{var O=Cn(n,i,0,!0);i-2*O-(c-1)*u<=0&&(u=0);var S=(i-2*O-(c-1)*u)/c;S>1&&(S>>=0);var E=s===+s?Math.min(S,s):S;h=a.reduce(function(T,A,j){var N=[].concat(vD(T),[{item:A.item,position:{offset:O+(S+u)*j+(S-E)/2,size:E}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(F){N.push({item:F,position:N[N.length-1].position})}),N},p)}return h},aye=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,c=a-(s.left||0)-(s.right||0),u=PU({children:o,legendWidth:c});if(u){var h=i||{},p=h.width,v=h.height,b=u.align,x=u.verticalAlign,_=u.layout;if((_==="vertical"||_==="horizontal"&&x==="middle")&&b!=="center"&&Ve(t[b]))return Or(Or({},t),{},nf({},b,t[b]+(p||0)));if((_==="horizontal"||_==="vertical"&&b==="center")&&x!=="middle"&&Ve(t[x]))return Or(Or({},t),{},nf({},x,t[x]+(v||0)))}return t},sye=function(t,r,n){return dt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},CU=function(t,r,n,i,o){var a=r.props.children,s=An(a,id).filter(function(u){return sye(i,o,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,h){var p=nr(h,n);if(dt(p))return u;var v=Array.isArray(p)?[hb(p),Gs(p)]:[p,p],b=c.reduce(function(x,_){var w=nr(h,_,0),O=v[0]-Math.abs(Array.isArray(w)?w[0]:w),S=v[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(O,x[0]),Math.max(S,x[1])]},[1/0,-1/0]);return[Math.min(b[0],u[0]),Math.max(b[1],u[1])]},[1/0,-1/0])}return null},lye=function(t,r,n,i,o){var a=r.map(function(s){return CU(t,s,n,o,i)}).filter(function(s){return!dt(s)});return a&&a.length?a.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},EU=function(t,r,n,i,o){var a=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&CU(t,c,u,i)||Fh(t,u,n,o)});if(n==="number")return a.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(c,u){for(var h=0,p=u.length;h<p;h++)s[u[h]]||(s[u[h]]=!0,c.push(u[h]));return c},[])},TU=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},jU=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var o,a,s=t.map(function(c){return c.coordinate===r&&(o=!0),c.coordinate===n&&(a=!0),c.coordinate});return o||s.push(r),a||s.push(n),s},Ia=function(t,r,n){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&a==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Pn(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(p){var v=o?o.indexOf(p):p;return{coordinate:i(v)+u,value:p,offset:u}});return h.filter(function(p){return!Jf(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,v){return{coordinate:i(p)+u,value:p,index:v,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+u,value:p,offset:u}}):i.domain().map(function(p,v){return{coordinate:i(p)+u,value:o?o[p]:p,index:v,offset:u}})},dO=new WeakMap,tg=function(t,r){if(typeof r!="function")return t;dO.has(t)||dO.set(t,new WeakMap);var n=dO.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},AU=function(t,r,n){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:gp(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:ky(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:$h(),realScaleType:"point"}:o==="category"?{scale:gp(),realScaleType:"band"}:{scale:ky(),realScaleType:"linear"};if(um(i)){var c="scale".concat(Q0(i));return{scale:(rD[c]||$h)(),realScaleType:rD[c]?c:"point"}}return ft(i)?{scale:i}:{scale:$h(),realScaleType:"point"}},yD=1e-4,kU=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-yD,a=Math.max(i[0],i[1])+yD,s=t(r[0]),c=t(r[n-1]);(s<o||s>a||c<o||c>a)&&t.domain([r[0],r[n-1]])}},uye=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},cye=function(t,r){if(!r||r.length!==2||!Ve(r[0])||!Ve(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),o=[t[0],t[1]];return(!Ve(t[0])||t[0]<n)&&(o[0]=n),(!Ve(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<n&&(o[1]=n),o},fye=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0,s=0;s<r;++s){var c=Jf(t[s][n][1])?t[s][n][0]:t[s][n][1];c>=0?(t[s][n][0]=o,t[s][n][1]=o+c,o=t[s][n][1]):(t[s][n][0]=a,t[s][n][1]=a+c,a=t[s][n][1])}},dye=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0;a<r;++a){var s=Jf(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=0,t[a][n][1]=0)}},hye={sign:fye,expand:efe,none:mf,silhouette:tfe,wiggle:rfe,positive:dye},pye=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=hye[n],a=Jce().keys(i).value(function(s,c){return+nr(s,c,0)}).order(sC).offset(o);return a(t)},mye=function(t,r,n,i,o,a){if(!t)return null;var s=a?r.reverse():r,c={},u=s.reduce(function(p,v){var b,x=(b=v.type)!==null&&b!==void 0&&b.defaultProps?Or(Or({},v.type.defaultProps),v.props):v.props,_=x.stackId,w=x.hide;if(w)return p;var O=x[n],S=p[O]||{hasStack:!1,stackGroups:{}};if(zr(_)){var E=S.stackGroups[_]||{numericAxisId:n,cateAxisId:i,items:[]};E.items.push(v),S.hasStack=!0,S.stackGroups[_]=E}else S.stackGroups[vl("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[v]};return Or(Or({},p),{},nf({},O,S))},c),h={};return Object.keys(u).reduce(function(p,v){var b=u[v];if(b.hasStack){var x={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(_,w){var O=b.stackGroups[w];return Or(Or({},_),{},nf({},w,{numericAxisId:n,cateAxisId:i,items:O.items,stackedData:pye(t,O.items,o)}))},x)}return Or(Or({},p),{},nf({},v,b))},h)},RU=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,a=r.originalDomain,s=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var h=jge(u,o,s);return t.domain([hb(h),Gs(h)]),{niceTicks:h}}if(o&&i==="number"){var p=t.domain(),v=Age(p,o,s);return{niceTicks:v}}return null};function Sf(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!dt(i[t.dataKey])){var s=hy(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var c=nr(i,dt(a)?t.dataKey:a);return dt(c)?null:t.scale(c)}var bD=function(t){var r=t.axis,n=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var c=nr(a,r.dataKey,r.domain[s]);return dt(c)?null:r.scale(c)-o/2+i},vye=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return i<=0&&o>=0?0:o<0?o:i}return n[0]},gye=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Or(Or({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(zr(o)){var a=r[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},yye=function(t){return t.reduce(function(r,n){return[hb(n.concat([r[0]]).filter(Ve)),Gs(n.concat([r[1]]).filter(Ve))]},[1/0,-1/0])},NU=function(t,r,n){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,c=s.reduce(function(u,h){var p=yye(h.slice(r,n+1));return[Math.min(u[0],p[0]),Math.max(u[1],p[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},_D=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RC=function(t,r,n){if(ft(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(Ve(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(_D.test(t[0])){var o=+_D.exec(t[0])[1];i[0]=r[0]-o}else ft(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Ve(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(xD.test(t[1])){var a=+xD.exec(t[1])[1];i[1]=r[1]+a}else ft(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},$y=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var o=sj(r,function(p){return p.coordinate}),a=1/0,s=1,c=o.length;s<c;s++){var u=o[s],h=o[s-1];a=Math.min((u.coordinate||0)-(h.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},wD=function(t,r,n){return!t||!t.length||ll(t,mi(n,"type.defaultProps.domain"))?r:t},MU=function(t,r){var n=t.type.defaultProps?Or(Or({},t.type.defaultProps),t.props):t.props,i=n.dataKey,o=n.name,a=n.unit,s=n.formatter,c=n.tooltipType,u=n.chartType,h=n.hide;return Or(Or({},it(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:Mj(t),value:nr(r,i),type:c,payload:r,chartType:u,hide:h})};function Cp(e){"@babel/helpers - typeof";return Cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cp(e)}function OD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(r),!0).forEach(function(n){LU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LU(e,t,r){return t=bye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bye(e){var t=_ye(e,"string");return Cp(t)=="symbol"?t:t+""}function _ye(e,t){if(Cp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xye(e,t){return Pye(e)||Sye(e,t)||Oye(e,t)||wye()}function wye(){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 Oye(e,t){if(e){if(typeof e=="string")return SD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SD(e,t)}}function SD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Pye(e){if(Array.isArray(e))return e}var Fy=Math.PI/180,Cye=function(t){return t*180/Math.PI},Qt=function(t,r,n,i){return{x:t+Math.cos(-Fy*i)*n,y:r+Math.sin(-Fy*i)*n}},IU=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Eye=function(t,r,n,i,o){var a=t.width,s=t.height,c=t.startAngle,u=t.endAngle,h=Cn(t.cx,a,a/2),p=Cn(t.cy,s,s/2),v=IU(a,s,n),b=Cn(t.innerRadius,v,0),x=Cn(t.outerRadius,v,v*.8),_=Object.keys(r);return _.reduce(function(w,O){var S=r[O],E=S.domain,T=S.reversed,A;if(dt(S.range))i==="angleAxis"?A=[c,u]:i==="radiusAxis"&&(A=[b,x]),T&&(A=[A[1],A[0]]);else{A=S.range;var j=A,N=xye(j,2);c=N[0],u=N[1]}var F=AU(S,o),V=F.realScaleType,B=F.scale;B.domain(E).range(A),kU(B);var W=RU(B,Na(Na({},S),{},{realScaleType:V})),q=Na(Na(Na({},S),W),{},{range:A,radius:x,realScaleType:V,scale:B,cx:h,cy:p,innerRadius:b,outerRadius:x,startAngle:c,endAngle:u});return Na(Na({},w),{},LU({},O,q))},{})},Tye=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(i-a,2))},jye=function(t,r){var n=t.x,i=t.y,o=r.cx,a=r.cy,s=Tye({x:n,y:i},{x:o,y:a});if(s<=0)return{radius:s};var c=(n-o)/s,u=Math.acos(c);return i>a&&(u=2*Math.PI-u),{radius:s,angle:Cye(u),angleInRadian:u}},Aye=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return{startAngle:r-a*360,endAngle:n-a*360}},kye=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},PD=function(t,r){var n=t.x,i=t.y,o=jye({x:n,y:i},r),a=o.radius,s=o.angle,c=r.innerRadius,u=r.outerRadius;if(a<c||a>u)return!1;if(a===0)return!0;var h=Aye(r),p=h.startAngle,v=h.endAngle,b=s,x;if(p<=v){for(;b>v;)b-=360;for(;b<p;)b+=360;x=b>=p&&b<=v}else{for(;b>p;)b-=360;for(;b<v;)b+=360;x=b>=v&&b<=p}return x?Na(Na({},r),{},{radius:a,angle:kye(b,r)}):null},DU=function(t){return!I.isValidElement(t)&&!ft(t)&&typeof t!="boolean"?t.className:""};function Ep(e){"@babel/helpers - typeof";return Ep=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ep(e)}var Rye=["offset"];function Nye(e){return Dye(e)||Iye(e)||Lye(e)||Mye()}function Mye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lye(e,t){if(e){if(typeof e=="string")return NC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NC(e,t)}}function Iye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dye(e){if(Array.isArray(e))return NC(e)}function NC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $ye(e,t){if(e==null)return{};var r=Fye(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fye(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function CD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CD(Object(r),!0).forEach(function(n){Bye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bye(e,t,r){return t=Uye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uye(e){var t=zye(e,"string");return Ep(t)=="symbol"?t:t+""}function zye(e,t){if(Ep(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ep(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tp.apply(this,arguments)}var Vye=function(t){var r=t.value,n=t.formatter,i=dt(t.children)?r:t.children;return ft(n)?n(i):i},Wye=function(t,r){var n=Pn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},qye=function(t,r,n){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,c=o,u=c.cx,h=c.cy,p=c.innerRadius,v=c.outerRadius,b=c.startAngle,x=c.endAngle,_=c.clockWise,w=(p+v)/2,O=Wye(b,x),S=O>=0?1:-1,E,T;i==="insideStart"?(E=b+S*a,T=_):i==="insideEnd"?(E=x-S*a,T=!_):i==="end"&&(E=x+S*a,T=_),T=O<=0?T:!T;var A=Qt(u,h,w,E),j=Qt(u,h,w,E+(T?1:-1)*359),N="M".concat(A.x,",").concat(A.y,`
|
||
A`).concat(w,",").concat(w,",0,1,").concat(T?0:1,`,
|
||
`).concat(j.x,",").concat(j.y),F=dt(t.id)?vl("recharts-radial-line-"):t.id;return Z.createElement("text",Tp({},n,{dominantBaseline:"central",className:ze("recharts-radial-bar-label",s)}),Z.createElement("defs",null,Z.createElement("path",{id:F,d:N})),Z.createElement("textPath",{xlinkHref:"#".concat(F)},r))},Hye=function(t){var r=t.viewBox,n=t.offset,i=t.position,o=r,a=o.cx,s=o.cy,c=o.innerRadius,u=o.outerRadius,h=o.startAngle,p=o.endAngle,v=(h+p)/2;if(i==="outside"){var b=Qt(a,s,u+n,v),x=b.x,_=b.y;return{x,y:_,textAnchor:x>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var w=(c+u)/2,O=Qt(a,s,w,v),S=O.x,E=O.y;return{x:S,y:E,textAnchor:"middle",verticalAnchor:"middle"}},Gye=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,a=r,s=a.x,c=a.y,u=a.width,h=a.height,p=h>=0?1:-1,v=p*i,b=p>0?"end":"start",x=p>0?"start":"end",_=u>=0?1:-1,w=_*i,O=_>0?"end":"start",S=_>0?"start":"end";if(o==="top"){var E={x:s+u/2,y:c-p*i,textAnchor:"middle",verticalAnchor:b};return Ur(Ur({},E),n?{height:Math.max(c-n.y,0),width:u}:{})}if(o==="bottom"){var T={x:s+u/2,y:c+h+v,textAnchor:"middle",verticalAnchor:x};return Ur(Ur({},T),n?{height:Math.max(n.y+n.height-(c+h),0),width:u}:{})}if(o==="left"){var A={x:s-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"};return Ur(Ur({},A),n?{width:Math.max(A.x-n.x,0),height:h}:{})}if(o==="right"){var j={x:s+u+w,y:c+h/2,textAnchor:S,verticalAnchor:"middle"};return Ur(Ur({},j),n?{width:Math.max(n.x+n.width-j.x,0),height:h}:{})}var N=n?{width:u,height:h}:{};return o==="insideLeft"?Ur({x:s+w,y:c+h/2,textAnchor:S,verticalAnchor:"middle"},N):o==="insideRight"?Ur({x:s+u-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"},N):o==="insideTop"?Ur({x:s+u/2,y:c+v,textAnchor:"middle",verticalAnchor:x},N):o==="insideBottom"?Ur({x:s+u/2,y:c+h-v,textAnchor:"middle",verticalAnchor:b},N):o==="insideTopLeft"?Ur({x:s+w,y:c+v,textAnchor:S,verticalAnchor:x},N):o==="insideTopRight"?Ur({x:s+u-w,y:c+v,textAnchor:O,verticalAnchor:x},N):o==="insideBottomLeft"?Ur({x:s+w,y:c+h-v,textAnchor:S,verticalAnchor:b},N):o==="insideBottomRight"?Ur({x:s+u-w,y:c+h-v,textAnchor:O,verticalAnchor:b},N):Qf(o)&&(Ve(o.x)||uu(o.x))&&(Ve(o.y)||uu(o.y))?Ur({x:s+Cn(o.x,u),y:c+Cn(o.y,h),textAnchor:"end",verticalAnchor:"end"},N):Ur({x:s+u/2,y:c+h/2,textAnchor:"middle",verticalAnchor:"middle"},N)},Kye=function(t){return"cx"in t&&Ve(t.cx)};function Xr(e){var t=e.offset,r=t===void 0?5:t,n=$ye(e,Rye),i=Ur({offset:r},n),o=i.viewBox,a=i.position,s=i.value,c=i.children,u=i.content,h=i.className,p=h===void 0?"":h,v=i.textBreakAll;if(!o||dt(s)&&dt(c)&&!I.isValidElement(u)&&!ft(u))return null;if(I.isValidElement(u))return I.cloneElement(u,i);var b;if(ft(u)){if(b=I.createElement(u,i),I.isValidElement(b))return b}else b=Vye(i);var x=Kye(o),_=it(i,!0);if(x&&(a==="insideStart"||a==="insideEnd"||a==="end"))return qye(i,b,_);var w=x?Hye(i):Gye(i);return Z.createElement(Eu,Tp({className:ze("recharts-label",p)},_,w,{breakAll:v}),b)}Xr.displayName="Label";var $U=function(t){var r=t.cx,n=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,h=t.outerRadius,p=t.x,v=t.y,b=t.top,x=t.left,_=t.width,w=t.height,O=t.clockWise,S=t.labelViewBox;if(S)return S;if(Ve(_)&&Ve(w)){if(Ve(p)&&Ve(v))return{x:p,y:v,width:_,height:w};if(Ve(b)&&Ve(x))return{x:b,y:x,width:_,height:w}}return Ve(p)&&Ve(v)?{x:p,y:v,width:0,height:0}:Ve(r)&&Ve(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:h||c||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},Yye=function(t,r){return t?t===!0?Z.createElement(Xr,{key:"label-implicit",viewBox:r}):zr(t)?Z.createElement(Xr,{key:"label-implicit",viewBox:r,value:t}):I.isValidElement(t)?t.type===Xr?I.cloneElement(t,{key:"label-implicit",viewBox:r}):Z.createElement(Xr,{key:"label-implicit",content:t,viewBox:r}):ft(t)?Z.createElement(Xr,{key:"label-implicit",content:t,viewBox:r}):Qf(t)?Z.createElement(Xr,Tp({viewBox:r},t,{key:"label-implicit"})):null:null},Zye=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=$U(t),a=An(i,Xr).map(function(c,u){return I.cloneElement(c,{viewBox:r||o,key:"label-".concat(u)})});if(!n)return a;var s=Yye(t.label,r||o);return[s].concat(Nye(a))};Xr.parseViewBox=$U;Xr.renderCallByParent=Zye;var hO,ED;function Xye(){if(ED)return hO;ED=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return hO=e,hO}var Qye=Xye();const Jye=Nt(Qye);function jp(e){"@babel/helpers - typeof";return jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jp(e)}var e0e=["valueAccessor"],t0e=["data","dataKey","clockWise","id","textBreakAll"];function r0e(e){return a0e(e)||o0e(e)||i0e(e)||n0e()}function n0e(){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 i0e(e,t){if(e){if(typeof e=="string")return MC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MC(e,t)}}function o0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a0e(e){if(Array.isArray(e))return MC(e)}function MC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function By(){return By=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},By.apply(this,arguments)}function TD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TD(Object(r),!0).forEach(function(n){s0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s0e(e,t,r){return t=l0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l0e(e){var t=u0e(e,"string");return jp(t)=="symbol"?t:t+""}function u0e(e,t){if(jp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AD(e,t){if(e==null)return{};var r=c0e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c0e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var f0e=function(t){return Array.isArray(t.value)?Jye(t.value):t.value};function xo(e){var t=e.valueAccessor,r=t===void 0?f0e:t,n=AD(e,e0e),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,c=n.textBreakAll,u=AD(n,t0e);return!i||!i.length?null:Z.createElement(Ct,{className:"recharts-label-list"},i.map(function(h,p){var v=dt(o)?r(h,p):nr(h&&h.payload,o),b=dt(s)?{}:{id:"".concat(s,"-").concat(p)};return Z.createElement(Xr,By({},it(h,!0),u,b,{parentViewBox:h.parentViewBox,value:v,textBreakAll:c,viewBox:Xr.parseViewBox(dt(a)?h:jD(jD({},h),{},{clockWise:a})),key:"label-".concat(p),index:p}))}))}xo.displayName="LabelList";function d0e(e,t){return e?e===!0?Z.createElement(xo,{key:"labelList-implicit",data:t}):Z.isValidElement(e)||ft(e)?Z.createElement(xo,{key:"labelList-implicit",data:t,content:e}):Qf(e)?Z.createElement(xo,By({data:t},e,{key:"labelList-implicit"})):null:null}function h0e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=An(n,xo).map(function(a,s){return I.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=d0e(e.label,t);return[o].concat(r0e(i))}xo.renderCallByParent=h0e;function Ap(e){"@babel/helpers - typeof";return Ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ap(e)}function LC(){return LC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LC.apply(this,arguments)}function kD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kD(Object(r),!0).forEach(function(n){p0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p0e(e,t,r){return t=m0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m0e(e){var t=v0e(e,"string");return Ap(t)=="symbol"?t:t+""}function v0e(e,t){if(Ap(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ap(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g0e=function(t,r){var n=Pn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},rg=function(t){var r=t.cx,n=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,h=c*(s?1:-1)+i,p=Math.asin(c/h)/Fy,v=u?o:o+a*p,b=Qt(r,n,h,v),x=Qt(r,n,i,v),_=u?o-a*p:o,w=Qt(r,n,h*Math.cos(p*Fy),_);return{center:b,circleTangency:x,lineTangency:w,theta:p}},FU=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,c=g0e(a,s),u=a+c,h=Qt(r,n,o,a),p=Qt(r,n,o,u),v="M ".concat(h.x,",").concat(h.y,`
|
||
A `).concat(o,",").concat(o,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(a>u),`,
|
||
`).concat(p.x,",").concat(p.y,`
|
||
`);if(i>0){var b=Qt(r,n,i,a),x=Qt(r,n,i,u);v+="L ".concat(x.x,",").concat(x.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(a<=u),`,
|
||
`).concat(b.x,",").concat(b.y," Z")}else v+="L ".concat(r,",").concat(n," Z");return v},y0e=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,h=t.endAngle,p=Pn(h-u),v=rg({cx:r,cy:n,radius:o,angle:u,sign:p,cornerRadius:a,cornerIsExternal:c}),b=v.circleTangency,x=v.lineTangency,_=v.theta,w=rg({cx:r,cy:n,radius:o,angle:h,sign:-p,cornerRadius:a,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,E=w.theta,T=c?Math.abs(u-h):Math.abs(u-h)-_-E;if(T<0)return s?"M ".concat(x.x,",").concat(x.y,`
|
||
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
|
||
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
|
||
`):FU({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:h});var A="M ".concat(x.x,",").concat(x.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(b.x,",").concat(b.y,`
|
||
A`).concat(o,",").concat(o,",0,").concat(+(T>180),",").concat(+(p<0),",").concat(O.x,",").concat(O.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(S.x,",").concat(S.y,`
|
||
`);if(i>0){var j=rg({cx:r,cy:n,radius:i,angle:u,sign:p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),N=j.circleTangency,F=j.lineTangency,V=j.theta,B=rg({cx:r,cy:n,radius:i,angle:h,sign:-p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),W=B.circleTangency,q=B.lineTangency,J=B.theta,Q=c?Math.abs(u-h):Math.abs(u-h)-V-J;if(Q<0&&a===0)return"".concat(A,"L").concat(r,",").concat(n,"Z");A+="L".concat(q.x,",").concat(q.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(W.x,",").concat(W.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(p>0),",").concat(N.x,",").concat(N.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(F.x,",").concat(F.y,"Z")}else A+="L".concat(r,",").concat(n,"Z");return A},b0e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},BU=function(t){var r=RD(RD({},b0e),t),n=r.cx,i=r.cy,o=r.innerRadius,a=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,h=r.startAngle,p=r.endAngle,v=r.className;if(a<o||h===p)return null;var b=ze("recharts-sector",v),x=a-o,_=Cn(s,x,0,!0),w;return _>0&&Math.abs(h-p)<360?w=y0e({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(_,x/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:h,endAngle:p}):w=FU({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:h,endAngle:p}),Z.createElement("path",LC({},it(r,!0),{className:b,d:w,role:"img"}))};function kp(e){"@babel/helpers - typeof";return kp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kp(e)}function IC(){return IC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IC.apply(this,arguments)}function ND(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function MD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ND(Object(r),!0).forEach(function(n){_0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ND(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _0e(e,t,r){return t=x0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x0e(e){var t=w0e(e,"string");return kp(t)=="symbol"?t:t+""}function w0e(e,t){if(kp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LD={curveBasisClosed:zce,curveBasisOpen:Vce,curveBasis:Uce,curveBumpX:Ece,curveBumpY:Tce,curveLinearClosed:Wce,curveLinear:eb,curveMonotoneX:qce,curveMonotoneY:Hce,curveNatural:Gce,curveStep:Kce,curveStepAfter:Zce,curveStepBefore:Yce},ng=function(t){return t.x===+t.x&&t.y===+t.y},mh=function(t){return t.x},vh=function(t){return t.y},O0e=function(t,r){if(ft(t))return t;var n="curve".concat(Q0(t));return(n==="curveMonotone"||n==="curveBump")&&r?LD["".concat(n).concat(r==="vertical"?"Y":"X")]:LD[n]||eb},S0e=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,h=O0e(n,s),p=u?o.filter(function(_){return ng(_)}):o,v;if(Array.isArray(a)){var b=u?a.filter(function(_){return ng(_)}):a,x=p.map(function(_,w){return MD(MD({},_),{},{base:b[w]})});return s==="vertical"?v=Kv().y(vh).x1(mh).x0(function(_){return _.base.x}):v=Kv().x(mh).y1(vh).y0(function(_){return _.base.y}),v.defined(ng).curve(h),v(x)}return s==="vertical"&&Ve(a)?v=Kv().y(vh).x1(mh).x0(a):Ve(a)?v=Kv().x(mh).y1(vh).y0(a):v=$7().x(mh).y(vh),v.defined(ng).curve(h),v(p)},el=function(t){var r=t.className,n=t.points,i=t.path,o=t.pathRef;if((!n||!n.length)&&!i)return null;var a=n&&n.length?S0e(t):i;return Z.createElement("path",IC({},it(t,!1),py(t),{className:ze("recharts-curve",r),d:a,ref:o}))},P0e=Object.getOwnPropertyNames,C0e=Object.getOwnPropertySymbols,E0e=Object.prototype.hasOwnProperty;function ID(e,t){return function(n,i,o){return e(n,i,o)&&t(n,i,o)}}function ig(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var o=i.cache,a=o.get(r),s=o.get(n);if(a&&s)return a===n&&s===r;o.set(r,n),o.set(n,r);var c=e(r,n,i);return o.delete(r),o.delete(n),c}}function DD(e){return P0e(e).concat(C0e(e))}var UU=Object.hasOwn||function(e,t){return E0e.call(e,t)};function od(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var zU="_owner",$D=Object.getOwnPropertyDescriptor,FD=Object.keys;function T0e(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function j0e(e,t){return od(e.getTime(),t.getTime())}function BD(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var c=t.entries(),u=!1,h=0;(s=c.next())&&!s.done;){var p=a.value,v=p[0],b=p[1],x=s.value,_=x[0],w=x[1];!u&&!n[h]&&(u=r.equals(v,_,o,h,e,t,r)&&r.equals(b,w,v,_,e,t,r))&&(n[h]=!0),h++}if(!u)return!1;o++}return!0}function A0e(e,t,r){var n=FD(e),i=n.length;if(FD(t).length!==i)return!1;for(var o;i-- >0;)if(o=n[i],o===zU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!UU(t,o)||!r.equals(e[o],t[o],o,o,e,t,r))return!1;return!0}function gh(e,t,r){var n=DD(e),i=n.length;if(DD(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=n[i],o===zU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!UU(t,o)||!r.equals(e[o],t[o],o,o,e,t,r)||(a=$D(e,o),s=$D(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function k0e(e,t){return od(e.valueOf(),t.valueOf())}function R0e(e,t){return e.source===t.source&&e.flags===t.flags}function UD(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),c=!1,u=0;(a=s.next())&&!a.done;)!c&&!n[u]&&(c=r.equals(o.value,a.value,o.value,a.value,e,t,r))&&(n[u]=!0),u++;if(!c)return!1}return!0}function N0e(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var M0e="[object Arguments]",L0e="[object Boolean]",I0e="[object Date]",D0e="[object Map]",$0e="[object Number]",F0e="[object Object]",B0e="[object RegExp]",U0e="[object Set]",z0e="[object String]",V0e=Array.isArray,zD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,VD=Object.assign,W0e=Object.prototype.toString.call.bind(Object.prototype.toString);function q0e(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(h,p,v){if(h===p)return!0;if(h==null||p==null||typeof h!="object"||typeof p!="object")return h!==h&&p!==p;var b=h.constructor;if(b!==p.constructor)return!1;if(b===Object)return i(h,p,v);if(V0e(h))return t(h,p,v);if(zD!=null&&zD(h))return c(h,p,v);if(b===Date)return r(h,p,v);if(b===RegExp)return a(h,p,v);if(b===Map)return n(h,p,v);if(b===Set)return s(h,p,v);var x=W0e(h);return x===I0e?r(h,p,v):x===B0e?a(h,p,v):x===D0e?n(h,p,v):x===U0e?s(h,p,v):x===F0e?typeof h.then!="function"&&typeof p.then!="function"&&i(h,p,v):x===M0e?i(h,p,v):x===L0e||x===$0e||x===z0e?o(h,p,v):!1}}function H0e(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?gh:T0e,areDatesEqual:j0e,areMapsEqual:n?ID(BD,gh):BD,areObjectsEqual:n?gh:A0e,arePrimitiveWrappersEqual:k0e,areRegExpsEqual:R0e,areSetsEqual:n?ID(UD,gh):UD,areTypedArraysEqual:n?gh:N0e};if(r&&(i=VD({},i,r(i))),t){var o=ig(i.areArraysEqual),a=ig(i.areMapsEqual),s=ig(i.areObjectsEqual),c=ig(i.areSetsEqual);i=VD({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return i}function G0e(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function K0e(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,o=e.strict;if(n)return function(c,u){var h=n(),p=h.cache,v=p===void 0?t?new WeakMap:void 0:p,b=h.meta;return r(c,u,{cache:v,equals:i,meta:b,strict:o})};if(t)return function(c,u){return r(c,u,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(c,u){return r(c,u,a)}}var Y0e=bl();bl({strict:!0});bl({circular:!0});bl({circular:!0,strict:!0});bl({createInternalComparator:function(){return od}});bl({strict:!0,createInternalComparator:function(){return od}});bl({circular:!0,createInternalComparator:function(){return od}});bl({circular:!0,createInternalComparator:function(){return od},strict:!0});function bl(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=H0e(e),c=q0e(s),u=n?n(c):G0e(c);return K0e({circular:r,comparator:c,createState:i,equals:u,strict:a})}function Z0e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function WD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):Z0e(i)};requestAnimationFrame(n)}function DC(e){"@babel/helpers - typeof";return DC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DC(e)}function X0e(e){return tbe(e)||ebe(e)||J0e(e)||Q0e()}function Q0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J0e(e,t){if(e){if(typeof e=="string")return qD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qD(e,t)}}function qD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ebe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tbe(e){if(Array.isArray(e))return e}function rbe(){var e={},t=function(){return null},r=!1,n=function i(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var a=o,s=X0e(a),c=s[0],u=s.slice(1);if(typeof c=="number"){WD(i.bind(null,u),c);return}i(c),WD(i.bind(null,u));return}DC(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,n(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Rp(e){"@babel/helpers - typeof";return Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(e)}function HD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function GD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HD(Object(r),!0).forEach(function(n){VU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VU(e,t,r){return t=nbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nbe(e){var t=ibe(e,"string");return Rp(t)==="symbol"?t:String(t)}function ibe(e,t){if(Rp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var obe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(o){return i.includes(o)})})},abe=function(t){return t},sbe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Bh=function(t,r){return Object.keys(r).reduce(function(n,i){return GD(GD({},n),{},VU({},i,t(i,r[i])))},{})},KD=function(t,r,n){return t.map(function(i){return"".concat(sbe(i)," ").concat(r,"ms ").concat(n)}).join(",")};function lbe(e,t){return fbe(e)||cbe(e,t)||WU(e,t)||ube()}function ube(){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 cbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function fbe(e){if(Array.isArray(e))return e}function dbe(e){return mbe(e)||pbe(e)||WU(e)||hbe()}function hbe(){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 WU(e,t){if(e){if(typeof e=="string")return $C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $C(e,t)}}function pbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mbe(e){if(Array.isArray(e))return $C(e)}function $C(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Uy=1e-4,qU=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},HU=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},YD=function(t,r){return function(n){var i=qU(t,r);return HU(i,n)}},vbe=function(t,r){return function(n){var i=qU(t,r),o=[].concat(dbe(i.map(function(a,s){return a*s}).slice(1)),[0]);return HU(o,n)}},ZD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],o=r[1],a=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),h=lbe(u,4);i=h[0],o=h[1],a=h[2],s=h[3]}}}var p=YD(i,a),v=YD(o,s),b=vbe(i,a),x=function(O){return O>1?1:O<0?0:O},_=function(O){for(var S=O>1?1:O,E=S,T=0;T<8;++T){var A=p(E)-S,j=b(E);if(Math.abs(A-S)<Uy||j<Uy)return v(E);E=x(E-A/j)}return v(E)};return _.isStepper=!1,_},gbe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,c=function(h,p,v){var b=-(h-p)*n,x=v*o,_=v+(b-x)*s/1e3,w=v*s/1e3+h;return Math.abs(w-p)<Uy&&Math.abs(_)<Uy?[p,0]:[w,_]};return c.isStepper=!0,c.dt=s,c},ybe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ZD(i);case"spring":return gbe();default:if(i.split("(")[0]==="cubic-bezier")return ZD(i)}return typeof i=="function"?i:null};function Np(e){"@babel/helpers - typeof";return Np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Np(e)}function XD(e){return xbe(e)||_be(e)||GU(e)||bbe()}function bbe(){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 _be(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xbe(e){if(Array.isArray(e))return BC(e)}function QD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function on(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QD(Object(r),!0).forEach(function(n){FC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FC(e,t,r){return t=wbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wbe(e){var t=Obe(e,"string");return Np(t)==="symbol"?t:String(t)}function Obe(e,t){if(Np(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Np(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sbe(e,t){return Ebe(e)||Cbe(e,t)||GU(e,t)||Pbe()}function Pbe(){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 GU(e,t){if(e){if(typeof e=="string")return BC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BC(e,t)}}function BC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Ebe(e){if(Array.isArray(e))return e}var zy=function(t,r,n){return t+(r-t)*n},UC=function(t){var r=t.from,n=t.to;return r!==n},Tbe=function e(t,r,n){var i=Bh(function(o,a){if(UC(a)){var s=t(a.from,a.to,a.velocity),c=Sbe(s,2),u=c[0],h=c[1];return on(on({},a),{},{from:u,velocity:h})}return a},r);return n<1?Bh(function(o,a){return UC(a)?on(on({},a),{},{velocity:zy(a.velocity,i[o].velocity,n),from:zy(a.from,i[o].from,n)}):a},r):e(t,i,n-1)};const jbe=function(e,t,r,n,i){var o=obe(e,t),a=o.reduce(function(w,O){return on(on({},w),{},FC({},O,[e[O],t[O]]))},{}),s=o.reduce(function(w,O){return on(on({},w),{},FC({},O,{from:e[O],velocity:0,to:t[O]}))},{}),c=-1,u,h,p=function(){return null},v=function(){return Bh(function(O,S){return S.from},s)},b=function(){return!Object.values(s).filter(UC).length},x=function(O){u||(u=O);var S=O-u,E=S/r.dt;s=Tbe(r,s,E),i(on(on(on({},e),t),v())),u=O,b()||(c=requestAnimationFrame(p))},_=function(O){h||(h=O);var S=(O-h)/n,E=Bh(function(A,j){return zy.apply(void 0,XD(j).concat([r(S)]))},a);if(i(on(on(on({},e),t),E)),S<1)c=requestAnimationFrame(p);else{var T=Bh(function(A,j){return zy.apply(void 0,XD(j).concat([r(1)]))},a);i(on(on(on({},e),t),T))}};return p=r.isStepper?x:_,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(c)}}};function Pf(e){"@babel/helpers - typeof";return Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pf(e)}var Abe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function kbe(e,t){if(e==null)return{};var r=Rbe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rbe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function pO(e){return Ibe(e)||Lbe(e)||Mbe(e)||Nbe()}function Nbe(){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 Mbe(e,t){if(e){if(typeof e=="string")return zC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zC(e,t)}}function Lbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ibe(e){if(Array.isArray(e))return zC(e)}function zC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ho(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JD(Object(r),!0).forEach(function(n){Eh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eh(e,t,r){return t=KU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $be(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KU(n.key),n)}}function Fbe(e,t,r){return t&&$be(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KU(e){var t=Bbe(e,"string");return Pf(t)==="symbol"?t:String(t)}function Bbe(e,t){if(Pf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ube(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VC(e,t)}function VC(e,t){return VC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},VC(e,t)}function zbe(e){var t=Vbe();return function(){var n=Vy(e),i;if(t){var o=Vy(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return WC(this,i)}}function WC(e,t){if(t&&(Pf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qC(e)}function qC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vbe(){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 Vy(e){return Vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vy(e)}var Xi=function(e){Ube(r,e);var t=zbe(r);function r(n,i){var o;Dbe(this,r),o=t.call(this,n,i);var a=o.props,s=a.isActive,c=a.attributeName,u=a.from,h=a.to,p=a.steps,v=a.children,b=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(qC(o)),o.changeStyle=o.changeStyle.bind(qC(o)),!s||b<=0)return o.state={style:{}},typeof v=="function"&&(o.state={style:h}),WC(o);if(p&&p.length)o.state={style:p[0].style};else if(u){if(typeof v=="function")return o.state={style:u},WC(o);o.state={style:c?Eh({},c,u):u}}else o.state={style:{}};return o}return Fbe(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,c=o.attributeName,u=o.shouldReAnimate,h=o.to,p=o.from,v=this.state.style;if(s){if(!a){var b={style:c?Eh({},c,h):h};this.state&&v&&(c&&v[c]!==h||!c&&v!==h)&&this.setState(b);return}if(!(Y0e(i.to,h)&&i.canBegin&&i.isActive)){var x=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var _=x||u?p:i.to;if(this.state&&v){var w={style:c?Eh({},c,_):_};(c&&v[c]!==_||!c&&v!==_)&&this.setState(w)}this.runAnimation(ho(ho({},this.props),{},{from:_,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,c=i.duration,u=i.easing,h=i.begin,p=i.onAnimationEnd,v=i.onAnimationStart,b=jbe(a,s,ybe(u),c,this.changeStyle),x=function(){o.stopJSAnimation=b()};this.manager.start([v,h,x,c,p])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,c=i.onAnimationStart,u=a[0],h=u.style,p=u.duration,v=p===void 0?0:p,b=function(_,w,O){if(O===0)return _;var S=w.duration,E=w.easing,T=E===void 0?"ease":E,A=w.style,j=w.properties,N=w.onAnimationEnd,F=O>0?a[O-1]:w,V=j||Object.keys(A);if(typeof T=="function"||T==="spring")return[].concat(pO(_),[o.runJSAnimation.bind(o,{from:F.style,to:A,duration:S,easing:T}),S]);var B=KD(V,S,T),W=ho(ho(ho({},F.style),A),{},{transition:B});return[].concat(pO(_),[W,S,N]).filter(abe)};return this.manager.start([c].concat(pO(a.reduce(b,[h,Math.max(v,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=rbe());var o=i.begin,a=i.duration,s=i.attributeName,c=i.to,u=i.easing,h=i.onAnimationStart,p=i.onAnimationEnd,v=i.steps,b=i.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof u=="function"||typeof b=="function"||u==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var _=s?Eh({},s,c):c,w=KD(Object.keys(_),a,u);x.start([h,o,ho(ho({},_),{},{transition:w}),a,p])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=kbe(i,Abe),u=I.Children.count(o),h=this.state.style;if(typeof o=="function")return o(h);if(!s||u===0||a<=0)return o;var p=function(b){var x=b.props,_=x.style,w=_===void 0?{}:_,O=x.className,S=I.cloneElement(b,ho(ho({},c),{},{style:ho(ho({},w),h),className:O}));return S};return u===1?p(I.Children.only(o)):Z.createElement("div",null,I.Children.map(o,function(v){return p(v)}))}}]),r}(I.PureComponent);Xi.displayName="Animate";Xi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Xi.propTypes={from:H.oneOfType([H.object,H.string]),to:H.oneOfType([H.object,H.string]),attributeName:H.string,duration:H.number,begin:H.number,easing:H.oneOfType([H.string,H.func]),steps:H.arrayOf(H.shape({duration:H.number.isRequired,style:H.object.isRequired,easing:H.oneOfType([H.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),H.func]),properties:H.arrayOf("string"),onAnimationEnd:H.func})),children:H.oneOfType([H.node,H.func]),isActive:H.bool,canBegin:H.bool,onAnimationEnd:H.func,shouldReAnimate:H.bool,onAnimationStart:H.func,onAnimationReStart:H.func};function Mp(e){"@babel/helpers - typeof";return Mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mp(e)}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wy.apply(this,arguments)}function Wbe(e,t){return Kbe(e)||Gbe(e,t)||Hbe(e,t)||qbe()}function qbe(){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 Hbe(e,t){if(e){if(typeof e=="string")return e6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e6(e,t)}}function e6(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Kbe(e){if(Array.isArray(e))return e}function t6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function r6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t6(Object(r),!0).forEach(function(n){Ybe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ybe(e,t,r){return t=Zbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zbe(e){var t=Xbe(e,"string");return Mp(t)=="symbol"?t:t+""}function Xbe(e,t){if(Mp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n6=function(t,r,n,i,o){var a=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,c=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,h;if(a>0&&o instanceof Array){for(var p=[0,0,0,0],v=0,b=4;v<b;v++)p[v]=o[v]>a?a:o[v];h="M".concat(t,",").concat(r+s*p[0]),p[0]>0&&(h+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(u,",").concat(t+c*p[0],",").concat(r)),h+="L ".concat(t+n-c*p[1],",").concat(r),p[1]>0&&(h+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(u,`,
|
||
`).concat(t+n,",").concat(r+s*p[1])),h+="L ".concat(t+n,",").concat(r+i-s*p[2]),p[2]>0&&(h+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(u,`,
|
||
`).concat(t+n-c*p[2],",").concat(r+i)),h+="L ".concat(t+c*p[3],",").concat(r+i),p[3]>0&&(h+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(u,`,
|
||
`).concat(t,",").concat(r+i-s*p[3])),h+="Z"}else if(a>0&&o===+o&&o>0){var x=Math.min(a,o);h="M ".concat(t,",").concat(r+s*x,`
|
||
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+c*x,",").concat(r,`
|
||
L `).concat(t+n-c*x,",").concat(r,`
|
||
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*x,`
|
||
L `).concat(t+n,",").concat(r+i-s*x,`
|
||
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+n-c*x,",").concat(r+i,`
|
||
L `).concat(t+c*x,",").concat(r+i,`
|
||
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*x," Z")}else h="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return h},Qbe=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,a=r.y,s=r.width,c=r.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(o,o+s),h=Math.max(o,o+s),p=Math.min(a,a+c),v=Math.max(a,a+c);return n>=u&&n<=h&&i>=p&&i<=v}return!1},Jbe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Lj=function(t){var r=r6(r6({},Jbe),t),n=I.useRef(),i=I.useState(-1),o=Wbe(i,2),a=o[0],s=o[1];I.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var T=n.current.getTotalLength();T&&s(T)}catch{}},[]);var c=r.x,u=r.y,h=r.width,p=r.height,v=r.radius,b=r.className,x=r.animationEasing,_=r.animationDuration,w=r.animationBegin,O=r.isAnimationActive,S=r.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||p!==+p||h===0||p===0)return null;var E=ze("recharts-rectangle",b);return S?Z.createElement(Xi,{canBegin:a>0,from:{width:h,height:p,x:c,y:u},to:{width:h,height:p,x:c,y:u},duration:_,animationEasing:x,isActive:S},function(T){var A=T.width,j=T.height,N=T.x,F=T.y;return Z.createElement(Xi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:_,isActive:O,easing:x},Z.createElement("path",Wy({},it(r,!0),{className:E,d:n6(N,F,A,j,v),ref:n})))}):Z.createElement("path",Wy({},it(r,!0),{className:E,d:n6(c,u,h,p,v)}))},e_e=["points","className","baseLinePoints","connectNulls"];function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kc.apply(this,arguments)}function t_e(e,t){if(e==null)return{};var r=r_e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function r_e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function i6(e){return a_e(e)||o_e(e)||i_e(e)||n_e()}function n_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i_e(e,t){if(e){if(typeof e=="string")return HC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HC(e,t)}}function o_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a_e(e){if(Array.isArray(e))return HC(e)}function HC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o6=function(t){return t&&t.x===+t.x&&t.y===+t.y},s_e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){o6(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),o6(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Uh=function(t,r){var n=s_e(t);r&&(n=[n.reduce(function(o,a){return[].concat(i6(o),i6(a))},[])]);var i=n.map(function(o){return o.reduce(function(a,s,c){return"".concat(a).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},l_e=function(t,r,n){var i=Uh(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Uh(r.reverse(),n).slice(1))},u_e=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,o=t.connectNulls,a=t_e(t,e_e);if(!r||!r.length)return null;var s=ze("recharts-polygon",n);if(i&&i.length){var c=a.stroke&&a.stroke!=="none",u=l_e(r,i,o);return Z.createElement("g",{className:s},Z.createElement("path",Kc({},it(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),c?Z.createElement("path",Kc({},it(a,!0),{fill:"none",d:Uh(r,o)})):null,c?Z.createElement("path",Kc({},it(a,!0),{fill:"none",d:Uh(i,o)})):null)}var h=Uh(r,o);return Z.createElement("path",Kc({},it(a,!0),{fill:h.slice(-1)==="Z"?a.fill:"none",className:s,d:h}))};function GC(){return GC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},GC.apply(this,arguments)}var mm=function(t){var r=t.cx,n=t.cy,i=t.r,o=t.className,a=ze("recharts-dot",o);return r===+r&&n===+n&&i===+i?Z.createElement("circle",GC({},it(t,!1),py(t),{className:a,cx:r,cy:n,r:i})):null};function Lp(e){"@babel/helpers - typeof";return Lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lp(e)}var c_e=["x","y","top","left","width","height","className"];function KC(){return KC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},KC.apply(this,arguments)}function a6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function f_e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a6(Object(r),!0).forEach(function(n){d_e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d_e(e,t,r){return t=h_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h_e(e){var t=p_e(e,"string");return Lp(t)=="symbol"?t:t+""}function p_e(e,t){if(Lp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m_e(e,t){if(e==null)return{};var r=v_e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v_e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var g_e=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},y_e=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,c=t.left,u=c===void 0?0:c,h=t.width,p=h===void 0?0:h,v=t.height,b=v===void 0?0:v,x=t.className,_=m_e(t,c_e),w=f_e({x:n,y:o,top:s,left:u,width:p,height:b},_);return!Ve(n)||!Ve(o)||!Ve(p)||!Ve(b)||!Ve(s)||!Ve(u)?null:Z.createElement("path",KC({},it(w,!0),{className:ze("recharts-cross",x),d:g_e(n,o,p,b,s,u)}))},mO,s6;function b_e(){if(s6)return mO;s6=1;var e=db(),t=lU(),r=ca();function n(i,o){return i&&i.length?e(i,r(o,2),t):void 0}return mO=n,mO}var __e=b_e();const x_e=Nt(__e);var vO,l6;function w_e(){if(l6)return vO;l6=1;var e=db(),t=ca(),r=uU();function n(i,o){return i&&i.length?e(i,t(o,2),r):void 0}return vO=n,vO}var O_e=w_e();const S_e=Nt(O_e);var P_e=["cx","cy","angle","ticks","axisLine"],C_e=["ticks","tick","angle","tickFormatter","stroke"];function Cf(e){"@babel/helpers - typeof";return Cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(e)}function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zh.apply(this,arguments)}function u6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u6(Object(r),!0).forEach(function(n){vb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c6(e,t){if(e==null)return{};var r=E_e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E_e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function T_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZU(n.key),n)}}function j_e(e,t,r){return t&&f6(e.prototype,t),r&&f6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function A_e(e,t,r){return t=qy(t),k_e(e,YU()?Reflect.construct(t,r||[],qy(e).constructor):t.apply(e,r))}function k_e(e,t){if(t&&(Cf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R_e(e)}function R_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YU=function(){return!!e})()}function qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qy(e)}function N_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&&YC(e,t)}function YC(e,t){return YC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},YC(e,t)}function vb(e,t,r){return t=ZU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZU(e){var t=M_e(e,"string");return Cf(t)=="symbol"?t:t+""}function M_e(e,t){if(Cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gb=function(e){function t(){return T_e(this,t),A_e(this,t,arguments)}return N_e(t,e),j_e(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,o=this.props,a=o.angle,s=o.cx,c=o.cy;return Qt(s,c,i,a)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,c=x_e(s,function(h){return h.coordinate||0}),u=S_e(s,function(h){return h.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,c=n.axisLine,u=c6(n,P_e),h=s.reduce(function(x,_){return[Math.min(x[0],_.coordinate),Math.max(x[1],_.coordinate)]},[1/0,-1/0]),p=Qt(i,o,h[0],a),v=Qt(i,o,h[1],a),b=Yl(Yl(Yl({},it(u,!1)),{},{fill:"none"},it(c,!1)),{},{x1:p.x,y1:p.y,x2:v.x,y2:v.y});return Z.createElement("line",zh({className:"recharts-polar-radius-axis-line"},b))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,h=c6(i,C_e),p=this.getTickTextAnchor(),v=it(h,!1),b=it(a,!1),x=o.map(function(_,w){var O=n.getTickValueCoord(_),S=Yl(Yl(Yl(Yl({textAnchor:p,transform:"rotate(".concat(90-s,", ").concat(O.x,", ").concat(O.y,")")},v),{},{stroke:"none",fill:u},b),{},{index:w},O),{},{payload:_});return Z.createElement(Ct,zh({className:ze("recharts-polar-radius-axis-tick",DU(a)),key:"tick-".concat(_.coordinate)},sl(n.props,_,w)),t.renderTickItem(a,S,c?c(_.value,w):_.value))});return Z.createElement(Ct,{className:"recharts-polar-radius-axis-ticks"},x)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.axisLine,a=n.tick;return!i||!i.length?null:Z.createElement(Ct,{className:ze("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),Xr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return Z.isValidElement(n)?a=Z.cloneElement(n,i):ft(n)?a=n(i):a=Z.createElement(Eu,zh({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(I.PureComponent);vb(gb,"displayName","PolarRadiusAxis");vb(gb,"axisType","radiusAxis");vb(gb,"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 Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(e)}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ou.apply(this,arguments)}function d6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d6(Object(r),!0).forEach(function(n){yb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QU(n.key),n)}}function I_e(e,t,r){return t&&h6(e.prototype,t),r&&h6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D_e(e,t,r){return t=Hy(t),$_e(e,XU()?Reflect.construct(t,r||[],Hy(e).constructor):t.apply(e,r))}function $_e(e,t){if(t&&(Ef(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F_e(e)}function F_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XU=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hy(e)}function B_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZC(e,t)}function ZC(e,t){return ZC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ZC(e,t)}function yb(e,t,r){return t=QU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QU(e){var t=U_e(e,"string");return Ef(t)=="symbol"?t:t+""}function U_e(e,t){if(Ef(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ef(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z_e=Math.PI/180,p6=1e-5,bb=function(e){function t(){return L_e(this,t),D_e(this,t,arguments)}return B_e(t,e),I_e(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,o=i.cx,a=i.cy,s=i.radius,c=i.orientation,u=i.tickSize,h=u||8,p=Qt(o,a,s,n.coordinate),v=Qt(o,a,s+(c==="inner"?-1:1)*h,n.coordinate);return{x1:p.x,y1:p.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,o=Math.cos(-n.coordinate*z_e),a;return o>p6?a=i==="outer"?"start":"end":o<-p6?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.radius,s=n.axisLine,c=n.axisLineType,u=Zl(Zl({},it(this.props,!1)),{},{fill:"none"},it(s,!1));if(c==="circle")return Z.createElement(mm,ou({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var h=this.props.ticks,p=h.map(function(v){return Qt(i,o,a,v.coordinate)});return Z.createElement(u_e,ou({className:"recharts-polar-angle-axis-line"},u,{points:p}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,h=it(this.props,!1),p=it(a,!1),v=Zl(Zl({},h),{},{fill:"none"},it(s,!1)),b=o.map(function(x,_){var w=n.getTickLineCoord(x),O=n.getTickTextAnchor(x),S=Zl(Zl(Zl({textAnchor:O},h),{},{stroke:"none",fill:u},p),{},{index:_,payload:x,x:w.x2,y:w.y2});return Z.createElement(Ct,ou({className:ze("recharts-polar-angle-axis-tick",DU(a)),key:"tick-".concat(x.coordinate)},sl(n.props,x,_)),s&&Z.createElement("line",ou({className:"recharts-polar-angle-axis-tick-line"},v,w)),a&&t.renderTickItem(a,S,c?c(x.value,_):x.value))});return Z.createElement(Ct,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.radius,a=n.axisLine;return o<=0||!i||!i.length?null:Z.createElement(Ct,{className:ze("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,o){var a;return Z.isValidElement(n)?a=Z.cloneElement(n,i):ft(n)?a=n(i):a=Z.createElement(Eu,ou({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(I.PureComponent);yb(bb,"displayName","PolarAngleAxis");yb(bb,"axisType","angleAxis");yb(bb,"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 gO,m6;function V_e(){if(m6)return gO;m6=1;var e=sB(),t=e(Object.getPrototypeOf,Object);return gO=t,gO}var yO,v6;function W_e(){if(v6)return yO;v6=1;var e=ts(),t=V_e(),r=rs(),n="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,s=o.hasOwnProperty,c=a.call(Object);function u(h){if(!r(h)||e(h)!=n)return!1;var p=t(h);if(p===null)return!0;var v=s.call(p,"constructor")&&p.constructor;return typeof v=="function"&&v instanceof v&&a.call(v)==c}return yO=u,yO}var q_e=W_e();const H_e=Nt(q_e);var bO,g6;function G_e(){if(g6)return bO;g6=1;var e=ts(),t=rs(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return bO=n,bO}var K_e=G_e();const Y_e=Nt(K_e);function Ip(e){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(e)}function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gy.apply(this,arguments)}function Z_e(e,t){return e1e(e)||J_e(e,t)||Q_e(e,t)||X_e()}function X_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 Q_e(e,t){if(e){if(typeof e=="string")return y6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y6(e,t)}}function y6(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J_e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function e1e(e){if(Array.isArray(e))return e}function b6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b6(Object(r),!0).forEach(function(n){t1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t1e(e,t,r){return t=r1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1e(e){var t=n1e(e,"string");return Ip(t)=="symbol"?t:t+""}function n1e(e,t){if(Ip(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ip(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x6=function(t,r,n,i,o){var a=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-a/2,",").concat(r+o),s+="L ".concat(t+n-a/2-i,",").concat(r+o),s+="L ".concat(t,",").concat(r," Z"),s},i1e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},o1e=function(t){var r=_6(_6({},i1e),t),n=I.useRef(),i=I.useState(-1),o=Z_e(i,2),a=o[0],s=o[1];I.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var E=n.current.getTotalLength();E&&s(E)}catch{}},[]);var c=r.x,u=r.y,h=r.upperWidth,p=r.lowerWidth,v=r.height,b=r.className,x=r.animationEasing,_=r.animationDuration,w=r.animationBegin,O=r.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||p!==+p||v!==+v||h===0&&p===0||v===0)return null;var S=ze("recharts-trapezoid",b);return O?Z.createElement(Xi,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:v,x:c,y:u},to:{upperWidth:h,lowerWidth:p,height:v,x:c,y:u},duration:_,animationEasing:x,isActive:O},function(E){var T=E.upperWidth,A=E.lowerWidth,j=E.height,N=E.x,F=E.y;return Z.createElement(Xi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:_,easing:x},Z.createElement("path",Gy({},it(r,!0),{className:S,d:x6(N,F,T,A,j),ref:n})))}):Z.createElement("g",null,Z.createElement("path",Gy({},it(r,!0),{className:S,d:x6(c,u,h,p,v)})))},a1e=["option","shapeType","propTransformer","activeClassName","isActive"];function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}function s1e(e,t){if(e==null)return{};var r=l1e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l1e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function w6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ky(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w6(Object(r),!0).forEach(function(n){u1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u1e(e,t,r){return t=c1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c1e(e){var t=f1e(e,"string");return Dp(t)=="symbol"?t:t+""}function f1e(e,t){if(Dp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d1e(e,t){return Ky(Ky({},t),e)}function h1e(e,t){return e==="symbols"}function O6(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return Z.createElement(Lj,r);case"trapezoid":return Z.createElement(o1e,r);case"sector":return Z.createElement(BU,r);case"symbols":if(h1e(t))return Z.createElement(rb,r);break;default:return null}}function p1e(e){return I.isValidElement(e)?e.props:e}function Yy(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?d1e:n,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,c=s1e(e,a1e),u;if(I.isValidElement(t))u=I.cloneElement(t,Ky(Ky({},c),p1e(t)));else if(ft(t))u=t(c);else if(H_e(t)&&!Y_e(t)){var h=i(t,c);u=Z.createElement(O6,{shapeType:r,elementProps:h})}else{var p=c;u=Z.createElement(O6,{shapeType:r,elementProps:p})}return s?Z.createElement(Ct,{className:a},u):u}function _b(e,t){return t!=null&&"trapezoids"in e.props}function xb(e,t){return t!=null&&"sectors"in e.props}function $p(e,t){return t!=null&&"points"in e.props}function m1e(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,o=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&o}function v1e(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function g1e(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function y1e(e,t){var r;return _b(e,t)?r=m1e:xb(e,t)?r=v1e:$p(e,t)&&(r=g1e),r}function b1e(e,t){var r;return _b(e,t)?r="trapezoids":xb(e,t)?r="sectors":$p(e,t)&&(r="points"),r}function _1e(e,t){if(_b(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}if(xb(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}return $p(e,t)?t.payload:{}}function x1e(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=b1e(r,t),o=_1e(r,t),a=n.filter(function(c,u){var h=ll(o,c),p=r.props[i].filter(function(x){var _=y1e(r,t);return _(x,t)}),v=r.props[i].indexOf(p[p.length-1]),b=u===v;return h&&b}),s=n.indexOf(a[a.length-1]);return s}var Pg;function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yc.apply(this,arguments)}function S6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(r),!0).forEach(function(n){Vi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e9(n.key),n)}}function O1e(e,t,r){return t&&P6(e.prototype,t),r&&P6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function S1e(e,t,r){return t=Zy(t),P1e(e,JU()?Reflect.construct(t,r||[],Zy(e).constructor):t.apply(e,r))}function P1e(e,t){if(t&&(Tf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C1e(e)}function C1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JU=function(){return!!e})()}function Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zy(e)}function E1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XC(e,t)}function XC(e,t){return XC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},XC(e,t)}function Vi(e,t,r){return t=e9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e9(e){var t=T1e(e,"string");return Tf(t)=="symbol"?t:t+""}function T1e(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oa=function(e){function t(r){var n;return w1e(this,t),n=S1e(this,t,[r]),Vi(n,"pieRef",null),Vi(n,"sectorRefs",[]),Vi(n,"id",vl("recharts-pie-")),Vi(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ft(i)&&i()}),Vi(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ft(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return E1e(t,e),O1e(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,c=o.dataKey,u=o.valueKey,h=it(this.props,!1),p=it(a,!1),v=it(s,!1),b=a&&a.offsetRadius||20,x=n.map(function(_,w){var O=(_.startAngle+_.endAngle)/2,S=Qt(_.cx,_.cy,_.outerRadius+b,O),E=Zt(Zt(Zt(Zt({},h),_),{},{stroke:"none"},p),{},{index:w,textAnchor:t.getTextAnchor(S.x,_.cx)},S),T=Zt(Zt(Zt(Zt({},h),_),{},{fill:"none",stroke:_.fill},v),{},{index:w,points:[Qt(_.cx,_.cy,_.outerRadius,O),S]}),A=c;return dt(c)&&dt(u)?A="value":dt(c)&&(A=u),Z.createElement(Ct,{key:"label-".concat(_.startAngle,"-").concat(_.endAngle,"-").concat(_.midAngle,"-").concat(w)},s&&t.renderLabelLineItem(s,T,"line"),t.renderLabelItem(a,E,nr(_,A)))});return Z.createElement(Ct,{className:"recharts-pie-labels"},x)}},{key:"renderSectorsStatically",value:function(n){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,c=o.inactiveShape;return n.map(function(u,h){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var p=i.isActiveIndex(h),v=c&&i.hasActiveIndex()?c:null,b=p?a:v,x=Zt(Zt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return Z.createElement(Ct,Yc({ref:function(w){w&&!i.sectorRefs.includes(w)&&i.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},sl(i.props,u,h),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(h)}),Z.createElement(Yy,Yc({option:b,isActive:p,shapeType:"sector"},x)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,h=i.animationId,p=this.state,v=p.prevSectors,b=p.prevIsAnimationActive;return Z.createElement(Xi,{begin:s,duration:c,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h,"-").concat(b),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(x){var _=x.t,w=[],O=o&&o[0],S=O.startAngle;return o.forEach(function(E,T){var A=v&&v[T],j=T>0?mi(E,"paddingAngle",0):0;if(A){var N=_r(A.endAngle-A.startAngle,E.endAngle-E.startAngle),F=Zt(Zt({},E),{},{startAngle:S+j,endAngle:S+N(_)+j});w.push(F),S=F.endAngle}else{var V=E.endAngle,B=E.startAngle,W=_r(0,V-B),q=W(_),J=Zt(Zt({},E),{},{startAngle:S+j,endAngle:S+q+j});w.push(J),S=J.endAngle}}),Z.createElement(Ct,null,n.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.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 n=this.props,i=n.sectors,o=n.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,c=i.label,u=i.cx,h=i.cy,p=i.innerRadius,v=i.outerRadius,b=i.isAnimationActive,x=this.state.isAnimationFinished;if(o||!a||!a.length||!Ve(u)||!Ve(h)||!Ve(p)||!Ve(v))return null;var _=ze("recharts-pie",s);return Z.createElement(Ct,{tabIndex:this.props.rootTabIndex,className:_,ref:function(O){n.pieRef=O}},this.renderSectors(),c&&this.renderLabels(a),Xr.renderCallByParent(this.props,null,!1),(!b||x)&&xo.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,o){if(Z.isValidElement(n))return Z.cloneElement(n,i);if(ft(n))return n(i);var a=ze("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return Z.createElement(el,Yc({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(n,i,o){if(Z.isValidElement(n))return Z.cloneElement(n,i);var a=o;if(ft(n)&&(a=n(i),Z.isValidElement(a)))return a;var s=ze("recharts-pie-label-text",typeof n!="boolean"&&!ft(n)?n.className:"");return Z.createElement(Eu,Yc({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(I.PureComponent);Pg=oa;Vi(oa,"displayName","Pie");Vi(oa,"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:!Hi.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Vi(oa,"parseDeltaAngle",function(e,t){var r=Pn(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Vi(oa,"getRealPieData",function(e){var t=e.data,r=e.children,n=it(e,!1),i=An(r,Qs);return t&&t.length?t.map(function(o,a){return Zt(Zt(Zt({payload:o},n),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return Zt(Zt({},n),o.props)}):[]});Vi(oa,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,o=t.height,a=IU(i,o),s=n+Cn(e.cx,i,i/2),c=r+Cn(e.cy,o,o/2),u=Cn(e.innerRadius,a,0),h=Cn(e.outerRadius,a,a*.8),p=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:h,maxRadius:p}});Vi(oa,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Zt(Zt({},t.type.defaultProps),t.props):t.props,i=Pg.getRealPieData(n);if(!i||!i.length)return null;var o=n.cornerRadius,a=n.startAngle,s=n.endAngle,c=n.paddingAngle,u=n.dataKey,h=n.nameKey,p=n.valueKey,v=n.tooltipType,b=Math.abs(n.minAngle),x=Pg.parseCoordinateOfPie(n,r),_=Pg.parseDeltaAngle(a,s),w=Math.abs(_),O=u;dt(u)&&dt(p)?(_o(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),O="value"):dt(u)&&(_o(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),O=p);var S=i.filter(function(F){return nr(F,O,0)!==0}).length,E=(w>=360?S:S-1)*c,T=w-S*b-E,A=i.reduce(function(F,V){var B=nr(V,O,0);return F+(Ve(B)?B:0)},0),j;if(A>0){var N;j=i.map(function(F,V){var B=nr(F,O,0),W=nr(F,h,V),q=(Ve(B)?B:0)/A,J;V?J=N.endAngle+Pn(_)*c*(B!==0?1:0):J=a;var Q=J+Pn(_)*((B!==0?b:0)+q*T),ne=(J+Q)/2,ae=(x.innerRadius+x.outerRadius)/2,se=[{name:W,value:B,payload:F,dataKey:O,type:v}],oe=Qt(x.cx,x.cy,ae,ne);return N=Zt(Zt(Zt({percent:q,cornerRadius:o,name:W,tooltipPayload:se,midAngle:ne,middleRadius:ae,tooltipPosition:oe},F),x),{},{value:nr(F,O),startAngle:J,endAngle:Q,payload:F,paddingAngle:Pn(_)*c}),N})}return Zt(Zt({},x),{},{sectors:j,data:i})});var _O,C6;function j1e(){if(C6)return _O;C6=1;var e=Math.ceil,t=Math.max;function r(n,i,o,a){for(var s=-1,c=t(e((i-n)/(o||1)),0),u=Array(c);c--;)u[a?c:++s]=n,n+=o;return u}return _O=r,_O}var xO,E6;function t9(){if(E6)return xO;E6=1;var e=OB(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*r}return i===i?i:0}return xO=n,xO}var wO,T6;function A1e(){if(T6)return wO;T6=1;var e=j1e(),t=ob(),r=t9();function n(i){return function(o,a,s){return s&&typeof s!="number"&&t(o,a,s)&&(a=s=void 0),o=r(o),a===void 0?(a=o,o=0):a=r(a),s=s===void 0?o<a?1:-1:r(s),e(o,a,s,i)}}return wO=n,wO}var OO,j6;function k1e(){if(j6)return OO;j6=1;var e=A1e(),t=e();return OO=t,OO}var R1e=k1e();const Xy=Nt(R1e);function Fp(e){"@babel/helpers - typeof";return Fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(e)}function A6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A6(Object(r),!0).forEach(function(n){r9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r9(e,t,r){return t=N1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N1e(e){var t=M1e(e,"string");return Fp(t)=="symbol"?t:t+""}function M1e(e,t){if(Fp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L1e=["Webkit","Moz","O","ms"],I1e=function(t,r){var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=L1e.reduce(function(o,a){return k6(k6({},o),{},r9({},a+n,r))},{});return i[t]=r,i};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 Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qy.apply(this,arguments)}function R6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R6(Object(r),!0).forEach(function(n){fi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i9(n.key),n)}}function $1e(e,t,r){return t&&N6(e.prototype,t),r&&N6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F1e(e,t,r){return t=Jy(t),B1e(e,n9()?Reflect.construct(t,r||[],Jy(e).constructor):t.apply(e,r))}function B1e(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 U1e(e)}function U1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n9=function(){return!!e})()}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jy(e)}function z1e(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&&QC(e,t)}function QC(e,t){return QC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},QC(e,t)}function fi(e,t,r){return t=i9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i9(e){var t=V1e(e,"string");return jf(t)=="symbol"?t:t+""}function V1e(e,t){if(jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var W1e=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=$h().domain(Xy(0,c)).range([o,o+a-s]),h=u.domain().map(function(p){return u(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:h}},M6=function(t){return t.changedTouches&&!!t.changedTouches.length},Af=function(e){function t(r){var n;return D1e(this,t),n=F1e(this,t,[r]),fi(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),fi(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),fi(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),n.detachDragEndListener()}),fi(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),fi(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),fi(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),fi(n,"handleSlideDragStart",function(i){var o=M6(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return z1e(t,e),$1e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,a=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,h=u.length-1,p=Math.min(i,o),v=Math.max(i,o),b=t.getIndexInRange(a,p),x=t.getIndexInRange(a,v);return{startIndex:b-b%c,endIndex:x===h?h:x-x%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,c=nr(o[n],s,n);return ft(a)?a(c,n):c}},{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(n){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,c=this.props,u=c.x,h=c.width,p=c.travellerWidth,v=c.startIndex,b=c.endIndex,x=c.onChange,_=n.pageX-o;_>0?_=Math.min(_,u+h-p-s,u+h-p-a):_<0&&(_=Math.max(_,u-a,u-s));var w=this.getIndex({startX:a+_,endX:s+_});(w.startIndex!==v||w.endIndex!==b)&&x&&x(w),this.setState({startX:a+_,endX:s+_,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=M6(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,c=i.startX,u=this.state[a],h=this.props,p=h.x,v=h.width,b=h.travellerWidth,x=h.onChange,_=h.gap,w=h.data,O={startX:this.state.startX,endX:this.state.endX},S=n.pageX-o;S>0?S=Math.min(S,p+v-b-u):S<0&&(S=Math.max(S,p-u)),O[a]=u+S;var E=this.getIndex(O),T=E.startIndex,A=E.endIndex,j=function(){var F=w.length-1;return a==="startX"&&(s>c?T%_===0:A%_===0)||s<c&&A===F||a==="endX"&&(s>c?A%_===0:T%_===0)||s>c&&A===F};this.setState(fi(fi({},a,u+S),"brushMoveStartX",n.pageX),function(){x&&j()&&x(E)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var o=this,a=this.state,s=a.scaleValues,c=a.startX,u=a.endX,h=this.state[i],p=s.indexOf(h);if(p!==-1){var v=p+n;if(!(v===-1||v>=s.length)){var b=s[v];i==="startX"&&b>=u||i==="endX"&&b<=c||this.setState(fi({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,c=n.fill,u=n.stroke;return Z.createElement("rect",{stroke:u,fill:c,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,c=n.data,u=n.children,h=n.padding,p=I.Children.only(u);return p?Z.cloneElement(p,{x:i,y:o,width:a,height:s,margin:h,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var o,a,s=this,c=this.props,u=c.y,h=c.travellerWidth,p=c.height,v=c.traveller,b=c.ariaLabel,x=c.data,_=c.startIndex,w=c.endIndex,O=Math.max(n,this.props.x),S=SO(SO({},it(this.props,!1)),{},{x:O,y:u,width:h,height:p}),E=b||"Min value: ".concat((o=x[_])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=x[w])===null||a===void 0?void 0:a.name);return Z.createElement(Ct,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,S))}},{key:"renderSlide",value:function(n,i){var o=this.props,a=o.y,s=o.height,c=o.stroke,u=o.travellerWidth,h=Math.min(n,i)+u,p=Math.max(Math.abs(i-n)-u,0);return Z.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:h,y:a,width:p,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,o=n.endIndex,a=n.y,s=n.height,c=n.travellerWidth,u=n.stroke,h=this.state,p=h.startX,v=h.endX,b=5,x={pointerEvents:"none",fill:u};return Z.createElement(Ct,{className:"recharts-brush-texts"},Z.createElement(Eu,Qy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,v)-b,y:a+s/2},x),this.getTextOfTick(i)),Z.createElement(Eu,Qy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,v)+c+b,y:a+s/2},x),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,a=n.children,s=n.x,c=n.y,u=n.width,h=n.height,p=n.alwaysShowText,v=this.state,b=v.startX,x=v.endX,_=v.isTextActive,w=v.isSlideMoving,O=v.isTravellerMoving,S=v.isTravellerFocused;if(!i||!i.length||!Ve(s)||!Ve(c)||!Ve(u)||!Ve(h)||u<=0||h<=0)return null;var E=ze("recharts-brush",o),T=Z.Children.count(a)===1,A=I1e("userSelect","none");return Z.createElement(Ct,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(b,x),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(x,"endX"),(_||w||O||S||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,a=n.width,s=n.height,c=n.stroke,u=Math.floor(o+s/2)-1;return Z.createElement(Z.Fragment,null,Z.createElement("rect",{x:i,y:o,width:a,height:s,fill:c,stroke:"none"}),Z.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),Z.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var o;return Z.isValidElement(n)?o=Z.cloneElement(n,i):ft(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,a=n.width,s=n.x,c=n.travellerWidth,u=n.updateId,h=n.startIndex,p=n.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return SO({prevData:o,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?W1e({data:o,width:a,x:s,travellerWidth:c,startIndex:h,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+a-c]);var v=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,a=0,s=o-1;s-a>1;){var c=Math.floor((a+s)/2);n[c]>i?s=c:a=c}return i>=n[s]?s:a}}])}(I.PureComponent);fi(Af,"displayName","Brush");fi(Af,"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 PO,L6;function q1e(){if(L6)return PO;L6=1;var e=aj();function t(r,n){var i;return e(r,function(o,a,s){return i=n(o,a,s),!i}),!!i}return PO=t,PO}var CO,I6;function H1e(){if(I6)return CO;I6=1;var e=eB(),t=ca(),r=q1e(),n=Zn(),i=ob();function o(a,s,c){var u=n(a)?e:r;return c&&i(a,s,c)&&(s=void 0),u(a,t(s,3))}return CO=o,CO}var G1e=H1e();const K1e=Nt(G1e);var ea=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},EO,D6;function Y1e(){if(D6)return EO;D6=1;var e=yB();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return EO=t,EO}var TO,$6;function Z1e(){if($6)return TO;$6=1;var e=Y1e(),t=vB(),r=ca();function n(i,o){var a={};return o=r(o,3),t(i,function(s,c,u){e(a,c,o(s,c,u))}),a}return TO=n,TO}var X1e=Z1e();const Q1e=Nt(X1e);var jO,F6;function J1e(){if(F6)return jO;F6=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return jO=e,jO}var AO,B6;function exe(){if(B6)return AO;B6=1;var e=aj();function t(r,n){var i=!0;return e(r,function(o,a,s){return i=!!n(o,a,s),i}),i}return AO=t,AO}var kO,U6;function txe(){if(U6)return kO;U6=1;var e=J1e(),t=exe(),r=ca(),n=Zn(),i=ob();function o(a,s,c){var u=n(a)?e:t;return c&&i(a,s,c)&&(s=void 0),u(a,r(s,3))}return kO=o,kO}var rxe=txe();const o9=Nt(rxe);var nxe=["x","y"];function Bp(e){"@babel/helpers - typeof";return Bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bp(e)}function JC(){return JC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},JC.apply(this,arguments)}function z6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z6(Object(r),!0).forEach(function(n){ixe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ixe(e,t,r){return t=oxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oxe(e){var t=axe(e,"string");return Bp(t)=="symbol"?t:t+""}function axe(e,t){if(Bp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sxe(e,t){if(e==null)return{};var r=lxe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lxe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uxe(e,t){var r=e.x,n=e.y,i=sxe(e,nxe),o="".concat(r),a=parseInt(o,10),s="".concat(n),c=parseInt(s,10),u="".concat(t.height||i.height),h=parseInt(u,10),p="".concat(t.width||i.width),v=parseInt(p,10);return yh(yh(yh(yh(yh({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:h,width:v,name:t.name,radius:t.radius})}function V6(e){return Z.createElement(Yy,JC({shapeType:"rectangle",propTransformer:uxe,activeClassName:"recharts-active-bar"},e))}var cxe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var o=typeof n=="number";return o?t(n,i):(o||ju(),r)}},fxe=["value","background"],a9;function kf(e){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kf(e)}function dxe(e,t){if(e==null)return{};var r=hxe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hxe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e0.apply(this,arguments)}function W6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W6(Object(r),!0).forEach(function(n){Ks(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l9(n.key),n)}}function mxe(e,t,r){return t&&q6(e.prototype,t),r&&q6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vxe(e,t,r){return t=t0(t),gxe(e,s9()?Reflect.construct(t,r||[],t0(e).constructor):t.apply(e,r))}function gxe(e,t){if(t&&(kf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yxe(e)}function yxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s9=function(){return!!e})()}function t0(e){return t0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},t0(e)}function bxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eE(e,t)}function eE(e,t){return eE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eE(e,t)}function Ks(e,t,r){return t=l9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l9(e){var t=_xe(e,"string");return kf(t)=="symbol"?t:t+""}function _xe(e,t){if(kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ua=function(e){function t(){var r;pxe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=vxe(this,t,[].concat(i)),Ks(r,"state",{isAnimationFinished:!1}),Ks(r,"id",vl("recharts-bar-")),Ks(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),a&&a()}),Ks(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),a&&a()}),r}return bxe(t,e),mxe(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,o=this.props,a=o.shape,s=o.dataKey,c=o.activeIndex,u=o.activeBar,h=it(this.props,!1);return n&&n.map(function(p,v){var b=v===c,x=b?u:a,_=Nr(Nr(Nr({},h),p),{},{isActive:b,option:x,index:v,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return Z.createElement(Ct,e0({className:"recharts-bar-rectangle"},sl(i.props,p,v),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value)}),Z.createElement(V6,_))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,h=i.animationEasing,p=i.animationId,v=this.state.prevData;return Z.createElement(Xi,{begin:c,duration:u,isActive:s,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t,_=o.map(function(w,O){var S=v&&v[O];if(S){var E=_r(S.x,w.x),T=_r(S.y,w.y),A=_r(S.width,w.width),j=_r(S.height,w.height);return Nr(Nr({},w),{},{x:E(x),y:T(x),width:A(x),height:j(x)})}if(a==="horizontal"){var N=_r(0,w.height),F=N(x);return Nr(Nr({},w),{},{y:w.y+w.height-F,height:F})}var V=_r(0,w.width),B=V(x);return Nr(Nr({},w),{},{width:B})});return Z.createElement(Ct,null,n.renderRectanglesStatically(_))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,o=n.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,c=it(this.props.background,!1);return o.map(function(u,h){u.value;var p=u.background,v=dxe(u,fxe);if(!p)return null;var b=Nr(Nr(Nr(Nr(Nr({},v),{},{fill:"#eee"},p),c),sl(n.props,u,h)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:a,index:h,className:"recharts-bar-background-rectangle"});return Z.createElement(V6,e0({key:"background-bar-".concat(h),option:n.props.background,isActive:h===s},b))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,c=o.yAxis,u=o.layout,h=o.children,p=An(h,id);if(!p)return null;var v=u==="vertical"?a[0].height/2:a[0].width/2,b=function(w,O){var S=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:S,errorVal:nr(w,O)}},x={clipPath:n?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Ct,x,p.map(function(_){return Z.cloneElement(_,{key:"error-bar-".concat(i,"-").concat(_.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,offset:v,dataPointFormatter:b})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,o=n.data,a=n.className,s=n.xAxis,c=n.yAxis,u=n.left,h=n.top,p=n.width,v=n.height,b=n.isAnimationActive,x=n.background,_=n.id;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=ze("recharts-bar",a),S=s&&s.allowDataOverflow,E=c&&c.allowDataOverflow,T=S||E,A=dt(_)?this.id:_;return Z.createElement(Ct,{className:O},S||E?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(A)},Z.createElement("rect",{x:S?u:u-p/2,y:E?h:h-v/2,width:S?p:p*2,height:E?v:v*2}))):null,Z.createElement(Ct,{className:"recharts-bar-rectangles",clipPath:T?"url(#clipPath-".concat(A,")"):null},x?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(T,A),(!b||w)&&xo.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(I.PureComponent);a9=Ua;Ks(Ua,"displayName","Bar");Ks(Ua,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Hi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ks(Ua,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,h=e.dataStartIndex,p=e.displayedData,v=e.offset,b=uye(n,r);if(!b)return null;var x=t.layout,_=r.type.defaultProps,w=_!==void 0?Nr(Nr({},_),r.props):r.props,O=w.dataKey,S=w.children,E=w.minPointSize,T=x==="horizontal"?a:o,A=u?T.scale.domain():null,j=vye({numericAxis:T}),N=An(S,Qs),F=p.map(function(V,B){var W,q,J,Q,ne,ae;u?W=cye(u[h+B],A):(W=nr(V,O),Array.isArray(W)||(W=[j,W]));var se=cxe(E,a9.defaultProps.minPointSize)(W[1],B);if(x==="horizontal"){var oe,K=[a.scale(W[0]),a.scale(W[1])],G=K[0],z=K[1];q=bD({axis:o,ticks:s,bandSize:i,offset:b.offset,entry:V,index:B}),J=(oe=z??G)!==null&&oe!==void 0?oe:void 0,Q=b.size;var re=G-z;if(ne=Number.isNaN(re)?0:re,ae={x:q,y:a.y,width:Q,height:a.height},Math.abs(se)>0&&Math.abs(ne)<Math.abs(se)){var X=Pn(ne||se)*(Math.abs(se)-Math.abs(ne));J-=X,ne+=X}}else{var le=[o.scale(W[0]),o.scale(W[1])],ce=le[0],de=le[1];if(q=ce,J=bD({axis:a,ticks:c,bandSize:i,offset:b.offset,entry:V,index:B}),Q=de-ce,ne=b.size,ae={x:o.x,y:J,width:o.width,height:ne},Math.abs(se)>0&&Math.abs(Q)<Math.abs(se)){var be=Pn(Q||se)*(Math.abs(se)-Math.abs(Q));Q+=be}}return Nr(Nr(Nr({},V),{},{x:q,y:J,width:Q,height:ne,value:u?W:W[1],payload:V,background:ae},N&&N[B]&&N[B].props),{},{tooltipPayload:[MU(r,V)],tooltipPosition:{x:q+Q/2,y:J+ne/2}})});return Nr({data:F,layout:x},v)});function Up(e){"@babel/helpers - typeof";return Up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Up(e)}function xxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u9(n.key),n)}}function wxe(e,t,r){return t&&H6(e.prototype,t),r&&H6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G6(Object(r),!0).forEach(function(n){wb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wb(e,t,r){return t=u9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u9(e){var t=Oxe(e,"string");return Up(t)=="symbol"?t:t+""}function Oxe(e,t){if(Up(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Up(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c9=function(t,r,n,i,o){var a=t.width,s=t.height,c=t.layout,u=t.children,h=Object.keys(r),p={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},v=!!di(u,Ua);return h.reduce(function(b,x){var _=r[x],w=_.orientation,O=_.domain,S=_.padding,E=S===void 0?{}:S,T=_.mirror,A=_.reversed,j="".concat(w).concat(T?"Mirror":""),N,F,V,B,W;if(_.type==="number"&&(_.padding==="gap"||_.padding==="no-gap")){var q=O[1]-O[0],J=1/0,Q=_.categoricalDomain.sort();if(Q.forEach(function(le,ce){ce>0&&(J=Math.min((le||0)-(Q[ce-1]||0),J))}),Number.isFinite(J)){var ne=J/q,ae=_.layout==="vertical"?n.height:n.width;if(_.padding==="gap"&&(N=ne*ae/2),_.padding==="no-gap"){var se=Cn(t.barCategoryGap,ne*ae),oe=ne*ae/2;N=oe-se-(oe-se)/ae*se}}}i==="xAxis"?F=[n.left+(E.left||0)+(N||0),n.left+n.width-(E.right||0)-(N||0)]:i==="yAxis"?F=c==="horizontal"?[n.top+n.height-(E.bottom||0),n.top+(E.top||0)]:[n.top+(E.top||0)+(N||0),n.top+n.height-(E.bottom||0)-(N||0)]:F=_.range,A&&(F=[F[1],F[0]]);var K=AU(_,o,v),G=K.scale,z=K.realScaleType;G.domain(O).range(F),kU(G);var re=RU(G,mo(mo({},_),{},{realScaleType:z}));i==="xAxis"?(W=w==="top"&&!T||w==="bottom"&&T,V=n.left,B=p[j]-W*_.height):i==="yAxis"&&(W=w==="left"&&!T||w==="right"&&T,V=p[j]-W*_.width,B=n.top);var X=mo(mo(mo({},_),re),{},{realScaleType:z,x:V,y:B,scale:G,width:i==="xAxis"?n.width:_.width,height:i==="yAxis"?n.height:_.height});return X.bandSize=$y(X,re),!_.hide&&i==="xAxis"?p[j]+=(W?-1:1)*X.height:_.hide||(p[j]+=(W?-1:1)*X.width),mo(mo({},b),{},wb({},x,X))},{})},f9=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return{x:Math.min(n,o),y:Math.min(i,a),width:Math.abs(o-n),height:Math.abs(a-i)}},Sxe=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return f9({x:r,y:n},{x:i,y:o})},d9=function(){function e(t){xxe(this,e),this.scale=t}return wxe(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();wb(d9,"EPS",1e-4);var Ij=function(t){var r=Object.keys(t).reduce(function(n,i){return mo(mo({},n),{},wb({},i,d9.create(t[i])))},{});return mo(mo({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return Q1e(i,function(c,u){return r[u].apply(c,{bandAware:a,position:s})})},isInRange:function(i){return o9(i,function(o,a){return r[a].isInRange(o)})}})};function Pxe(e){return(e%180+180)%180}var Cxe=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Pxe(i),a=o*Math.PI/180,s=Math.atan(n/r),c=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(c)},RO,K6;function Exe(){if(K6)return RO;K6=1;var e=ca(),t=cm(),r=nb();function n(i){return function(o,a,s){var c=Object(o);if(!t(o)){var u=e(a,3);o=r(o),a=function(p){return u(c[p],p,c)}}var h=i(o,a,s);return h>-1?c[u?o[h]:h]:void 0}}return RO=n,RO}var NO,Y6;function Txe(){if(Y6)return NO;Y6=1;var e=t9();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return NO=t,NO}var MO,Z6;function jxe(){if(Z6)return MO;Z6=1;var e=fB(),t=ca(),r=Txe(),n=Math.max;function i(o,a,s){var c=o==null?0:o.length;if(!c)return-1;var u=s==null?0:r(s);return u<0&&(u=n(c+u,0)),e(o,t(a,3),u)}return MO=i,MO}var LO,X6;function Axe(){if(X6)return LO;X6=1;var e=Exe(),t=jxe(),r=e(t);return LO=r,LO}var kxe=Axe();const Rxe=Nt(kxe);var Nxe=C7();const Mxe=Nt(Nxe);var Lxe=Mxe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Dj=I.createContext(void 0),$j=I.createContext(void 0),h9=I.createContext(void 0),p9=I.createContext({}),m9=I.createContext(void 0),v9=I.createContext(0),g9=I.createContext(0),Q6=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,a=t.clipPathId,s=t.children,c=t.width,u=t.height,h=Lxe(o);return Z.createElement(Dj.Provider,{value:n},Z.createElement($j.Provider,{value:i},Z.createElement(p9.Provider,{value:o},Z.createElement(h9.Provider,{value:h},Z.createElement(m9.Provider,{value:a},Z.createElement(v9.Provider,{value:u},Z.createElement(g9.Provider,{value:c},s)))))))},Ixe=function(){return I.useContext(m9)},y9=function(t){var r=I.useContext(Dj);r==null&&ju();var n=r[t];return n==null&&ju(),n},Dxe=function(){var t=I.useContext(Dj);return Hs(t)},$xe=function(){var t=I.useContext($j),r=Rxe(t,function(n){return o9(n.domain,Number.isFinite)});return r||Hs(t)},b9=function(t){var r=I.useContext($j);r==null&&ju();var n=r[t];return n==null&&ju(),n},Fxe=function(){var t=I.useContext(h9);return t},Bxe=function(){return I.useContext(p9)},Fj=function(){return I.useContext(g9)},Bj=function(){return I.useContext(v9)};function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function Uxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zxe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x9(n.key),n)}}function Vxe(e,t,r){return t&&zxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wxe(e,t,r){return t=r0(t),qxe(e,_9()?Reflect.construct(t,r||[],r0(e).constructor):t.apply(e,r))}function qxe(e,t){if(t&&(Rf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hxe(e)}function Hxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_9=function(){return!!e})()}function r0(e){return r0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},r0(e)}function Gxe(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&&tE(e,t)}function tE(e,t){return tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tE(e,t)}function J6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function e5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J6(Object(r),!0).forEach(function(n){Uj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uj(e,t,r){return t=x9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x9(e){var t=Kxe(e,"string");return Rf(t)=="symbol"?t:t+""}function Kxe(e,t){if(Rf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yxe(e,t){return Jxe(e)||Qxe(e,t)||Xxe(e,t)||Zxe()}function Zxe(){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 Xxe(e,t){if(e){if(typeof e=="string")return t5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t5(e,t)}}function t5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qxe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Jxe(e){if(Array.isArray(e))return e}function rE(){return rE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rE.apply(this,arguments)}var ewe=function(t,r){var n;return Z.isValidElement(t)?n=Z.cloneElement(t,r):ft(t)?n=t(r):n=Z.createElement("line",rE({},r,{className:"recharts-reference-line-line"})),n},twe=function(t,r,n,i,o,a,s,c,u){var h=o.x,p=o.y,v=o.width,b=o.height;if(n){var x=u.y,_=t.y.apply(x,{position:a});if(ea(u,"discard")&&!t.y.isInRange(_))return null;var w=[{x:h+v,y:_},{x:h,y:_}];return c==="left"?w.reverse():w}if(r){var O=u.x,S=t.x.apply(O,{position:a});if(ea(u,"discard")&&!t.x.isInRange(S))return null;var E=[{x:S,y:p+b},{x:S,y:p}];return s==="top"?E.reverse():E}if(i){var T=u.segment,A=T.map(function(j){return t.apply(j,{position:a})});return ea(u,"discard")&&K1e(A,function(j){return!t.isInRange(j)})?null:A}return null};function rwe(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,c=e.alwaysShow,u=Ixe(),h=y9(i),p=b9(o),v=Fxe();if(!u||!v)return null;_o(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=Ij({x:h.scale,y:p.scale}),x=zr(t),_=zr(r),w=n&&n.length===2,O=twe(b,x,_,w,v,e.position,h.orientation,p.orientation,e);if(!O)return null;var S=Yxe(O,2),E=S[0],T=E.x,A=E.y,j=S[1],N=j.x,F=j.y,V=ea(e,"hidden")?"url(#".concat(u,")"):void 0,B=e5(e5({clipPath:V},it(e,!0)),{},{x1:T,y1:A,x2:N,y2:F});return Z.createElement(Ct,{className:ze("recharts-reference-line",s)},ewe(a,B),Xr.renderCallByParent(e,Sxe({x1:T,y1:A,x2:N,y2:F})))}var zj=function(e){function t(){return Uxe(this,t),Wxe(this,t,arguments)}return Gxe(t,e),Vxe(t,[{key:"render",value:function(){return Z.createElement(rwe,this.props)}}])}(Z.Component);Uj(zj,"displayName","ReferenceLine");Uj(zj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nE(){return nE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nE.apply(this,arguments)}function Nf(e){"@babel/helpers - typeof";return Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nf(e)}function r5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function n5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r5(Object(r),!0).forEach(function(n){Ob(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iwe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O9(n.key),n)}}function owe(e,t,r){return t&&iwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function awe(e,t,r){return t=n0(t),swe(e,w9()?Reflect.construct(t,r||[],n0(e).constructor):t.apply(e,r))}function swe(e,t){if(t&&(Nf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lwe(e)}function lwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w9=function(){return!!e})()}function n0(e){return n0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},n0(e)}function uwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iE(e,t)}function iE(e,t){return iE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},iE(e,t)}function Ob(e,t,r){return t=O9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O9(e){var t=cwe(e,"string");return Nf(t)=="symbol"?t:t+""}function cwe(e,t){if(Nf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fwe=function(t){var r=t.x,n=t.y,i=t.xAxis,o=t.yAxis,a=Ij({x:i.scale,y:o.scale}),s=a.apply({x:r,y:n},{bandAware:!0});return ea(t,"discard")&&!a.isInRange(s)?null:s},Sb=function(e){function t(){return nwe(this,t),awe(this,t,arguments)}return uwe(t,e),owe(t,[{key:"render",value:function(){var n=this.props,i=n.x,o=n.y,a=n.r,s=n.alwaysShow,c=n.clipPathId,u=zr(i),h=zr(o);if(_o(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!h)return null;var p=fwe(this.props);if(!p)return null;var v=p.x,b=p.y,x=this.props,_=x.shape,w=x.className,O=ea(this.props,"hidden")?"url(#".concat(c,")"):void 0,S=n5(n5({clipPath:O},it(this.props,!0)),{},{cx:v,cy:b});return Z.createElement(Ct,{className:ze("recharts-reference-dot",w)},t.renderDot(_,S),Xr.renderCallByParent(this.props,{x:v-a,y:b-a,width:2*a,height:2*a}))}}])}(Z.Component);Ob(Sb,"displayName","ReferenceDot");Ob(Sb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ob(Sb,"renderDot",function(e,t){var r;return Z.isValidElement(e)?r=Z.cloneElement(e,t):ft(e)?r=e(t):r=Z.createElement(mm,nE({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function oE(){return oE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oE.apply(this,arguments)}function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}function i5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function o5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i5(Object(r),!0).forEach(function(n){Pb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hwe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P9(n.key),n)}}function pwe(e,t,r){return t&&hwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mwe(e,t,r){return t=i0(t),vwe(e,S9()?Reflect.construct(t,r||[],i0(e).constructor):t.apply(e,r))}function vwe(e,t){if(t&&(Mf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gwe(e)}function gwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S9=function(){return!!e})()}function i0(e){return i0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},i0(e)}function ywe(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&&aE(e,t)}function aE(e,t){return aE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},aE(e,t)}function Pb(e,t,r){return t=P9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P9(e){var t=bwe(e,"string");return Mf(t)=="symbol"?t:t+""}function bwe(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _we=function(t,r,n,i,o){var a=o.x1,s=o.x2,c=o.y1,u=o.y2,h=o.xAxis,p=o.yAxis;if(!h||!p)return null;var v=Ij({x:h.scale,y:p.scale}),b={x:t?v.x.apply(a,{position:"start"}):v.x.rangeMin,y:n?v.y.apply(c,{position:"start"}):v.y.rangeMin},x={x:r?v.x.apply(s,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(u,{position:"end"}):v.y.rangeMax};return ea(o,"discard")&&(!v.isInRange(b)||!v.isInRange(x))?null:f9(b,x)},vm=function(e){function t(){return dwe(this,t),mwe(this,t,arguments)}return ywe(t,e),pwe(t,[{key:"render",value:function(){var n=this.props,i=n.x1,o=n.x2,a=n.y1,s=n.y2,c=n.className,u=n.alwaysShow,h=n.clipPathId;_o(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=zr(i),v=zr(o),b=zr(a),x=zr(s),_=this.props.shape;if(!p&&!v&&!b&&!x&&!_)return null;var w=_we(p,v,b,x,this.props);if(!w&&!_)return null;var O=ea(this.props,"hidden")?"url(#".concat(h,")"):void 0;return Z.createElement(Ct,{className:ze("recharts-reference-area",c)},t.renderRect(_,o5(o5({clipPath:O},it(this.props,!0)),w)),Xr.renderCallByParent(this.props,w))}}])}(Z.Component);Pb(vm,"displayName","ReferenceArea");Pb(vm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Pb(vm,"renderRect",function(e,t){var r;return Z.isValidElement(e)?r=Z.cloneElement(e,t):ft(e)?r=e(t):r=Z.createElement(Lj,oE({},t,{className:"recharts-reference-area-rect"})),r});function C9(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function xwe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Cxe(n,r)}function wwe(e,t,r){var n=r==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:n?i:o,end:n?i+a:o+s}:{start:n?i+a:o+s,end:n?i:o}}function o0(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function Owe(e,t){return C9(e,t+1)}function Swe(e,t,r,n,i){for(var o=(n||[]).slice(),a=t.start,s=t.end,c=0,u=1,h=a,p=function(){var x=n==null?void 0:n[c];if(x===void 0)return{v:C9(n,u)};var _=c,w,O=function(){return w===void 0&&(w=r(x,_)),w},S=x.coordinate,E=c===0||o0(e,S,O,h,s);E||(c=0,h=a,u+=1),E&&(h=S+e*(O()/2+i),c+=u)},v;u<=o.length;)if(v=p(),v)return v.v;return[]}function zp(e){"@babel/helpers - typeof";return zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zp(e)}function a5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a5(Object(r),!0).forEach(function(n){Pwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pwe(e,t,r){return t=Cwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cwe(e){var t=Ewe(e,"string");return zp(t)=="symbol"?t:t+""}function Ewe(e,t){if(zp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Twe(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,s=t.start,c=t.end,u=function(v){var b=o[v],x,_=function(){return x===void 0&&(x=r(b,v)),x};if(v===a-1){var w=e*(b.coordinate+e*_()/2-c);o[v]=b=pn(pn({},b),{},{tickCoord:w>0?b.coordinate-w*e:b.coordinate})}else o[v]=b=pn(pn({},b),{},{tickCoord:b.coordinate});var O=o0(e,b.tickCoord,_,s,c);O&&(c=b.tickCoord-e*(_()/2+i),o[v]=pn(pn({},b),{},{isShow:!0}))},h=a-1;h>=0;h--)u(h);return o}function jwe(e,t,r,n,i,o){var a=(n||[]).slice(),s=a.length,c=t.start,u=t.end;if(o){var h=n[s-1],p=r(h,s-1),v=e*(h.coordinate+e*p/2-u);a[s-1]=h=pn(pn({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate});var b=o0(e,h.tickCoord,function(){return p},c,u);b&&(u=h.tickCoord-e*(p/2+i),a[s-1]=pn(pn({},h),{},{isShow:!0}))}for(var x=o?s-1:s,_=function(S){var E=a[S],T,A=function(){return T===void 0&&(T=r(E,S)),T};if(S===0){var j=e*(E.coordinate-e*A()/2-c);a[S]=E=pn(pn({},E),{},{tickCoord:j<0?E.coordinate-j*e:E.coordinate})}else a[S]=E=pn(pn({},E),{},{tickCoord:E.coordinate});var N=o0(e,E.tickCoord,A,c,u);N&&(c=E.tickCoord+e*(A()/2+i),a[S]=pn(pn({},E),{},{isShow:!0}))},w=0;w<x;w++)_(w);return a}function Vj(e,t,r){var n=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,h=e.unit,p=e.angle;if(!i||!i.length||!n)return[];if(Ve(c)||Hi.isSsr)return Owe(i,typeof c=="number"&&Ve(c)?c:0);var v=[],b=s==="top"||s==="bottom"?"width":"height",x=h&&b==="width"?Dh(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},_=function(E,T){var A=ft(u)?u(E.value,T):E.value;return b==="width"?xwe(Dh(A,{fontSize:t,letterSpacing:r}),x,p):Dh(A,{fontSize:t,letterSpacing:r})[b]},w=i.length>=2?Pn(i[1].coordinate-i[0].coordinate):1,O=wwe(o,w,b);return c==="equidistantPreserveStart"?Swe(w,O,_,i,a):(c==="preserveStart"||c==="preserveStartEnd"?v=jwe(w,O,_,i,a,c==="preserveStartEnd"):v=Twe(w,O,_,i,a),v.filter(function(S){return S.isShow}))}var Awe=["viewBox"],kwe=["viewBox"],Rwe=["ticks"];function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zc.apply(this,arguments)}function s5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s5(Object(r),!0).forEach(function(n){Wj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IO(e,t){if(e==null)return{};var r=Nwe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T9(n.key),n)}}function Lwe(e,t,r){return t&&l5(e.prototype,t),r&&l5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iwe(e,t,r){return t=a0(t),Dwe(e,E9()?Reflect.construct(t,r||[],a0(e).constructor):t.apply(e,r))}function Dwe(e,t){if(t&&(Lf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $we(e)}function $we(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E9=function(){return!!e})()}function a0(e){return a0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},a0(e)}function Fwe(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&&sE(e,t)}function sE(e,t){return sE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sE(e,t)}function Wj(e,t,r){return t=T9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9(e){var t=Bwe(e,"string");return Lf(t)=="symbol"?t:t+""}function Bwe(e,t){if(Lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ad=function(e){function t(r){var n;return Mwe(this,t),n=Iwe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Fwe(t,e),Lwe(t,[{key:"shouldComponentUpdate",value:function(n,i){var o=n.viewBox,a=IO(n,Awe),s=this.props,c=s.viewBox,u=IO(s,kwe);return!ef(o,c)||!ef(a,u)||!ef(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,o=i.x,a=i.y,s=i.width,c=i.height,u=i.orientation,h=i.tickSize,p=i.mirror,v=i.tickMargin,b,x,_,w,O,S,E=p?-1:1,T=n.tickSize||h,A=Ve(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":b=x=n.coordinate,w=a+ +!p*c,_=w-E*T,S=_-E*v,O=A;break;case"left":_=w=n.coordinate,x=o+ +!p*s,b=x-E*T,O=b-E*v,S=A;break;case"right":_=w=n.coordinate,x=o+ +p*s,b=x+E*T,O=b+E*v,S=A;break;default:b=x=n.coordinate,w=a+ +p*c,_=w+E*T,S=_+E*v,O=A;break}return{line:{x1:b,y1:_,x2:x,y2:w},tick:{x:O,y:S}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,o=n.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 n=this.props,i=n.orientation,o=n.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 n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,c=n.orientation,u=n.mirror,h=n.axisLine,p=On(On(On({},it(this.props,!1)),it(h,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var v=+(c==="top"&&!u||c==="bottom"&&u);p=On(On({},p),{},{x1:i,y1:o+v*s,x2:i+a,y2:o+v*s})}else{var b=+(c==="left"&&!u||c==="right"&&u);p=On(On({},p),{},{x1:i+b*a,y1:o,x2:i+b*a,y2:o+s})}return Z.createElement("line",Zc({},p,{className:ze("recharts-cartesian-axis-line",mi(h,"className"))}))}},{key:"renderTicks",value:function(n,i,o){var a=this,s=this.props,c=s.tickLine,u=s.stroke,h=s.tick,p=s.tickFormatter,v=s.unit,b=Vj(On(On({},this.props),{},{ticks:n}),i,o),x=this.getTickTextAnchor(),_=this.getTickVerticalAnchor(),w=it(this.props,!1),O=it(h,!1),S=On(On({},w),{},{fill:"none"},it(c,!1)),E=b.map(function(T,A){var j=a.getTickLineCoord(T),N=j.line,F=j.tick,V=On(On(On(On({textAnchor:x,verticalAnchor:_},w),{},{stroke:"none",fill:u},O),F),{},{index:A,payload:T,visibleTicksCount:b.length,tickFormatter:p});return Z.createElement(Ct,Zc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},sl(a.props,T,A)),c&&Z.createElement("line",Zc({},S,N,{className:ze("recharts-cartesian-axis-tick-line",mi(c,"className"))})),h&&t.renderTickItem(h,V,"".concat(ft(p)?p(T.value,A):T.value).concat(v||"")))});return Z.createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var n=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,c=i.ticksGenerator,u=i.className,h=i.hide;if(h)return null;var p=this.props,v=p.ticks,b=IO(p,Rwe),x=v;return ft(c)&&(x=v&&v.length>0?c(this.props):c(b)),a<=0||s<=0||!x||!x.length?null:Z.createElement(Ct,{className:ze("recharts-cartesian-axis",u),ref:function(w){n.layerReference=w}},o&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),Xr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return Z.isValidElement(n)?a=Z.cloneElement(n,i):ft(n)?a=n(i):a=Z.createElement(Eu,Zc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(I.Component);Wj(ad,"displayName","CartesianAxis");Wj(ad,"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 Uwe=["x1","y1","x2","y2","key"],zwe=["offset"];function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function u5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u5(Object(r),!0).forEach(function(n){Vwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vwe(e,t,r){return t=Wwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wwe(e){var t=qwe(e,"string");return Au(t)=="symbol"?t:t+""}function qwe(e,t){if(Au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},du.apply(this,arguments)}function c5(e,t){if(e==null)return{};var r=Hwe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Gwe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,c=t.ry;return Z.createElement("rect",{x:i,y:o,ry:c,width:a,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function j9(e,t){var r;if(Z.isValidElement(e))r=Z.cloneElement(e,t);else if(ft(e))r=e(t);else{var n=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,c=c5(t,Uwe),u=it(c,!1);u.offset;var h=c5(u,zwe);r=Z.createElement("line",du({},h,{x1:n,y1:i,x2:o,y2:a,fill:"none",key:s}))}return r}function Kwe(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,c){var u=mn(mn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return j9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Ywe(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,c){var u=mn(mn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return j9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Zwe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var h=s.map(function(v){return Math.round(v+i-i)}).sort(function(v,b){return v-b});i!==h[0]&&h.unshift(0);var p=h.map(function(v,b){var x=!h[b+1],_=x?i+a-v:h[b+1]-v;if(_<=0)return null;var w=b%t.length;return Z.createElement("rect",{key:"react-".concat(b),y:v,x:n,height:_,width:o,stroke:"none",fill:t[w],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Xwe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var h=u.map(function(v){return Math.round(v+o-o)}).sort(function(v,b){return v-b});o!==h[0]&&h.unshift(0);var p=h.map(function(v,b){var x=!h[b+1],_=x?o+s-v:h[b+1]-v;if(_<=0)return null;var w=b%n.length;return Z.createElement("rect",{key:"react-".concat(b),x:v,y:a,width:_,height:c,stroke:"none",fill:n[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Qwe=function(t,r){var n=t.xAxis,i=t.width,o=t.height,a=t.offset;return jU(Vj(mn(mn(mn({},ad.defaultProps),n),{},{ticks:Ia(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,r)},Jwe=function(t,r){var n=t.yAxis,i=t.width,o=t.height,a=t.offset;return jU(Vj(mn(mn(mn({},ad.defaultProps),n),{},{ticks:Ia(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,r)},Lc={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function qj(e){var t,r,n,i,o,a,s=Fj(),c=Bj(),u=Bxe(),h=mn(mn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Lc.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Lc.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Lc.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Lc.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Lc.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Lc.verticalFill,x:Ve(e.x)?e.x:u.left,y:Ve(e.y)?e.y:u.top,width:Ve(e.width)?e.width:u.width,height:Ve(e.height)?e.height:u.height}),p=h.x,v=h.y,b=h.width,x=h.height,_=h.syncWithTicks,w=h.horizontalValues,O=h.verticalValues,S=Dxe(),E=$xe();if(!Ve(b)||b<=0||!Ve(x)||x<=0||!Ve(p)||p!==+p||!Ve(v)||v!==+v)return null;var T=h.verticalCoordinatesGenerator||Qwe,A=h.horizontalCoordinatesGenerator||Jwe,j=h.horizontalPoints,N=h.verticalPoints;if((!j||!j.length)&&ft(A)){var F=w&&w.length,V=A({yAxis:E?mn(mn({},E),{},{ticks:F?w:E.ticks}):void 0,width:s,height:c,offset:u},F?!0:_);_o(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Au(V),"]")),Array.isArray(V)&&(j=V)}if((!N||!N.length)&&ft(T)){var B=O&&O.length,W=T({xAxis:S?mn(mn({},S),{},{ticks:B?O:S.ticks}):void 0,width:s,height:c,offset:u},B?!0:_);_o(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Au(W),"]")),Array.isArray(W)&&(N=W)}return Z.createElement("g",{className:"recharts-cartesian-grid"},Z.createElement(Gwe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),Z.createElement(Kwe,du({},h,{offset:u,horizontalPoints:j,xAxis:S,yAxis:E})),Z.createElement(Ywe,du({},h,{offset:u,verticalPoints:N,xAxis:S,yAxis:E})),Z.createElement(Zwe,du({},h,{horizontalPoints:j})),Z.createElement(Xwe,du({},h,{verticalPoints:N})))}qj.displayName="CartesianGrid";var e2e=["type","layout","connectNulls","ref"],t2e=["key"];function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function f5(e,t){if(e==null)return{};var r=r2e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function r2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vh.apply(this,arguments)}function d5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d5(Object(r),!0).forEach(function(n){vo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ic(e){return a2e(e)||o2e(e)||i2e(e)||n2e()}function n2e(){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 i2e(e,t){if(e){if(typeof e=="string")return lE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lE(e,t)}}function o2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a2e(e){if(Array.isArray(e))return lE(e)}function lE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k9(n.key),n)}}function l2e(e,t,r){return t&&h5(e.prototype,t),r&&h5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u2e(e,t,r){return t=s0(t),c2e(e,A9()?Reflect.construct(t,r||[],s0(e).constructor):t.apply(e,r))}function c2e(e,t){if(t&&(If(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f2e(e)}function f2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A9=function(){return!!e})()}function s0(e){return s0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},s0(e)}function d2e(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&&uE(e,t)}function uE(e,t){return uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uE(e,t)}function vo(e,t,r){return t=k9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k9(e){var t=h2e(e,"string");return If(t)=="symbol"?t:t+""}function h2e(e,t){if(If(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sd=function(e){function t(){var r;s2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=u2e(this,t,[].concat(i)),vo(r,"state",{isAnimationFinished:!0,totalLength:0}),vo(r,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),vo(r,"getStrokeDasharray",function(a,s,c){var u=c.reduce(function(O,S){return O+S});if(!u)return r.generateSimpleStrokeDasharray(s,a);for(var h=Math.floor(a/u),p=a%u,v=s-a,b=[],x=0,_=0;x<c.length;_+=c[x],++x)if(_+c[x]>p){b=[].concat(Ic(c.slice(0,x)),[p-_]);break}var w=b.length%2===0?[0,v]:[v];return[].concat(Ic(t.repeat(c,h)),Ic(b),w).map(function(O){return"".concat(O,"px")}).join(", ")}),vo(r,"id",vl("recharts-line-")),vo(r,"pathRef",function(a){r.mainCurve=a}),vo(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),vo(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return d2e(t,e),l2e(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,c=o.yAxis,u=o.layout,h=o.children,p=An(h,id);if(!p)return null;var v=function(_,w){return{x:_.x,y:_.y,value:_.value,errorVal:nr(_.payload,w)}},b={clipPath:n?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Ct,b,p.map(function(x){return Z.cloneElement(x,{key:"bar-".concat(x.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,dataPointFormatter:v})}))}},{key:"renderDots",value:function(n,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,h=s.dataKey,p=it(this.props,!1),v=it(c,!0),b=u.map(function(_,w){var O=ci(ci(ci({key:"dot-".concat(w),r:3},p),v),{},{value:_.value,dataKey:h,cx:_.x,cy:_.y,index:w,payload:_.payload});return t.renderDotItem(c,O)}),x={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Ct,Vh({className:"recharts-line-dots",key:"dots"},x),b)}},{key:"renderCurveStatically",value:function(n,i,o,a){var s=this.props,c=s.type,u=s.layout,h=s.connectNulls;s.ref;var p=f5(s,e2e),v=ci(ci(ci({},it(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:n},a),{},{type:c,layout:u,connectNulls:h});return Z.createElement(el,Vh({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var o=this,a=this.props,s=a.points,c=a.strokeDasharray,u=a.isAnimationActive,h=a.animationBegin,p=a.animationDuration,v=a.animationEasing,b=a.animationId,x=a.animateNewValues,_=a.width,w=a.height,O=this.state,S=O.prevPoints,E=O.totalLength;return Z.createElement(Xi,{begin:h,duration:p,isActive:u,easing:v,from:{t:0},to:{t:1},key:"line-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(T){var A=T.t;if(S){var j=S.length/s.length,N=s.map(function(q,J){var Q=Math.floor(J*j);if(S[Q]){var ne=S[Q],ae=_r(ne.x,q.x),se=_r(ne.y,q.y);return ci(ci({},q),{},{x:ae(A),y:se(A)})}if(x){var oe=_r(_*2,q.x),K=_r(w/2,q.y);return ci(ci({},q),{},{x:oe(A),y:K(A)})}return ci(ci({},q),{},{x:q.x,y:q.y})});return o.renderCurveStatically(N,n,i)}var F=_r(0,E),V=F(A),B;if(c){var W="".concat(c).split(/[,\s]+/gim).map(function(q){return parseFloat(q)});B=o.getStrokeDasharray(V,E,W)}else B=o.generateSimpleStrokeDasharray(E,V);return o.renderCurveStatically(s,n,i,{strokeDasharray:B})})}},{key:"renderCurve",value:function(n,i){var o=this.props,a=o.points,s=o.isAnimationActive,c=this.state,u=c.prevPoints,h=c.totalLength;return s&&a&&a.length&&(!u&&h>0||!ll(u,a))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(a,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,u=i.xAxis,h=i.yAxis,p=i.top,v=i.left,b=i.width,x=i.height,_=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,S=s.length===1,E=ze("recharts-line",c),T=u&&u.allowDataOverflow,A=h&&h.allowDataOverflow,j=T||A,N=dt(w)?this.id:w,F=(n=it(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},V=F.r,B=V===void 0?3:V,W=F.strokeWidth,q=W===void 0?2:W,J=k7(a)?a:{},Q=J.clipDot,ne=Q===void 0?!0:Q,ae=B*2+q;return Z.createElement(Ct,{className:E},T||A?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(N)},Z.createElement("rect",{x:T?v:v-b/2,y:A?p:p-x/2,width:T?b:b*2,height:A?x:x*2})),!ne&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:v-ae/2,y:p-ae/2,width:b+ae,height:x+ae}))):null,!S&&this.renderCurve(j,N),this.renderErrorBar(j,N),(S||a)&&this.renderDots(j,ne,N),(!_||O)&&xo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var o=n.length%2!==0?[].concat(Ic(n),[0]):n,a=[],s=0;s<i;++s)a=[].concat(Ic(a),Ic(o));return a}},{key:"renderDotItem",value:function(n,i){var o;if(Z.isValidElement(n))o=Z.cloneElement(n,i);else if(ft(n))o=n(i);else{var a=i.key,s=f5(i,t2e),c=ze("recharts-line-dot",typeof n!="boolean"?n.className:"");o=Z.createElement(mm,Vh({key:a},s,{className:c}))}return o}}])}(I.PureComponent);vo(sd,"displayName","Line");vo(sd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Hi.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});vo(sd,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,h=t.layout,p=c.map(function(v,b){var x=nr(v,a);return h==="horizontal"?{x:Sf({axis:r,ticks:i,bandSize:s,entry:v,index:b}),y:dt(x)?null:n.scale(x),value:x,payload:v}:{x:dt(x)?null:r.scale(x),y:Sf({axis:n,ticks:o,bandSize:s,entry:v,index:b}),value:x,payload:v}});return ci({points:p,layout:h},u)});var p2e=["layout","type","stroke","connectNulls","isRange","ref"],m2e=["key"],R9;function Df(e){"@babel/helpers - typeof";return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(e)}function N9(e,t){if(e==null)return{};var r=v2e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hu.apply(this,arguments)}function p5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p5(Object(r),!0).forEach(function(n){Xo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L9(n.key),n)}}function y2e(e,t,r){return t&&m5(e.prototype,t),r&&m5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function b2e(e,t,r){return t=l0(t),_2e(e,M9()?Reflect.construct(t,r||[],l0(e).constructor):t.apply(e,r))}function _2e(e,t){if(t&&(Df(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x2e(e)}function x2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M9=function(){return!!e})()}function l0(e){return l0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},l0(e)}function w2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cE(e,t)}function cE(e,t){return cE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cE(e,t)}function Xo(e,t,r){return t=L9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L9(e){var t=O2e(e,"string");return Df(t)=="symbol"?t:t+""}function O2e(e,t){if(Df(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Df(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $u=function(e){function t(){var r;g2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=b2e(this,t,[].concat(i)),Xo(r,"state",{isAnimationFinished:!0}),Xo(r,"id",vl("recharts-area-")),Xo(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ft(a)&&a()}),Xo(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ft(a)&&a()}),r}return w2e(t,e),y2e(t,[{key:"renderDots",value:function(n,i,o){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var c=this.props,u=c.dot,h=c.points,p=c.dataKey,v=it(this.props,!1),b=it(u,!0),x=h.map(function(w,O){var S=zs(zs(zs({key:"dot-".concat(O),r:3},v),b),{},{index:O,cx:w.x,cy:w.y,dataKey:p,value:w.value,payload:w.payload,points:h});return t.renderDotItem(u,S)}),_={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Ct,hu({className:"recharts-area-dots"},_),x)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].x,u=a[a.length-1].x,h=n*Math.abs(c-u),p=Gs(a.map(function(v){return v.y||0}));return Ve(o)&&typeof o=="number"?p=Math.max(o,p):o&&Array.isArray(o)&&o.length&&(p=Math.max(Gs(o.map(function(v){return v.y||0})),p)),Ve(p)?Z.createElement("rect",{x:c<u?c:c-h,y:0,width:h,height:Math.floor(p+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].y,u=a[a.length-1].y,h=n*Math.abs(c-u),p=Gs(a.map(function(v){return v.x||0}));return Ve(o)&&typeof o=="number"?p=Math.max(o,p):o&&Array.isArray(o)&&o.length&&(p=Math.max(Gs(o.map(function(v){return v.x||0})),p)),Ve(p)?Z.createElement("rect",{x:0,y:c<u?c:c-h,width:p+(s?parseInt("".concat(s),10):1),height:Math.floor(h)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,o,a){var s=this.props,c=s.layout,u=s.type,h=s.stroke,p=s.connectNulls,v=s.isRange;s.ref;var b=N9(s,p2e);return Z.createElement(Ct,{clipPath:o?"url(#clipPath-".concat(a,")"):null},Z.createElement(el,hu({},it(b,!0),{points:n,connectNulls:p,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),h!=="none"&&Z.createElement(el,hu({},it(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:p,fill:"none",points:n})),h!=="none"&&v&&Z.createElement(el,hu({},it(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:p,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var o=this,a=this.props,s=a.points,c=a.baseLine,u=a.isAnimationActive,h=a.animationBegin,p=a.animationDuration,v=a.animationEasing,b=a.animationId,x=this.state,_=x.prevPoints,w=x.prevBaseLine;return Z.createElement(Xi,{begin:h,duration:p,isActive:u,easing:v,from:{t:0},to:{t:1},key:"area-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var S=O.t;if(_){var E=_.length/s.length,T=s.map(function(F,V){var B=Math.floor(V*E);if(_[B]){var W=_[B],q=_r(W.x,F.x),J=_r(W.y,F.y);return zs(zs({},F),{},{x:q(S),y:J(S)})}return F}),A;if(Ve(c)&&typeof c=="number"){var j=_r(w,c);A=j(S)}else if(dt(c)||Jf(c)){var N=_r(w,0);A=N(S)}else A=c.map(function(F,V){var B=Math.floor(V*E);if(w[B]){var W=w[B],q=_r(W.x,F.x),J=_r(W.y,F.y);return zs(zs({},F),{},{x:q(S),y:J(S)})}return F});return o.renderAreaStatically(T,A,n,i)}return Z.createElement(Ct,null,Z.createElement("defs",null,Z.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(S))),Z.createElement(Ct,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,c,n,i)))})}},{key:"renderArea",value:function(n,i){var o=this.props,a=o.points,s=o.baseLine,c=o.isAnimationActive,u=this.state,h=u.prevPoints,p=u.prevBaseLine,v=u.totalLength;return c&&a&&a.length&&(!h&&v>0||!ll(h,a)||!ll(p,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(a,s,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,u=i.top,h=i.left,p=i.xAxis,v=i.yAxis,b=i.width,x=i.height,_=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,S=s.length===1,E=ze("recharts-area",c),T=p&&p.allowDataOverflow,A=v&&v.allowDataOverflow,j=T||A,N=dt(w)?this.id:w,F=(n=it(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},V=F.r,B=V===void 0?3:V,W=F.strokeWidth,q=W===void 0?2:W,J=k7(a)?a:{},Q=J.clipDot,ne=Q===void 0?!0:Q,ae=B*2+q;return Z.createElement(Ct,{className:E},T||A?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(N)},Z.createElement("rect",{x:T?h:h-b/2,y:A?u:u-x/2,width:T?b:b*2,height:A?x:x*2})),!ne&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:h-ae/2,y:u-ae/2,width:b+ae,height:x+ae}))):null,S?null:this.renderArea(j,N),(a||S)&&this.renderDots(j,ne,N),(!_||O)&&xo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(I.PureComponent);R9=$u;Xo($u,"displayName","Area");Xo($u,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Hi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Xo($u,"getBaseValue",function(e,t,r,n){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(Ve(s)&&typeof s=="number")return s;var c=i==="horizontal"?n:r,u=c.scale.domain();if(c.type==="number"){var h=Math.max(u[0],u[1]),p=Math.min(u[0],u[1]);return s==="dataMin"?p:s==="dataMax"||h<0?h:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Xo($u,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,h=e.dataStartIndex,p=e.displayedData,v=e.offset,b=t.layout,x=u&&u.length,_=R9.getBaseValue(t,r,n,i),w=b==="horizontal",O=!1,S=p.map(function(T,A){var j;x?j=u[h+A]:(j=nr(T,c),Array.isArray(j)?O=!0:j=[_,j]);var N=j[1]==null||x&&nr(T,c)==null;return w?{x:Sf({axis:n,ticks:o,bandSize:s,entry:T,index:A}),y:N?null:i.scale(j[1]),value:j,payload:T}:{x:N?null:n.scale(j[1]),y:Sf({axis:i,ticks:a,bandSize:s,entry:T,index:A}),value:j,payload:T}}),E;return x||O?E=S.map(function(T){var A=Array.isArray(T.value)?T.value[0]:null;return w?{x:T.x,y:A!=null&&T.y!=null?i.scale(A):null}:{x:A!=null?n.scale(A):null,y:T.y}}):E=w?i.scale(_):n.scale(_),zs({points:S,baseLine:E,layout:b,isRange:O},v)});Xo($u,"renderDotItem",function(e,t){var r;if(Z.isValidElement(e))r=Z.cloneElement(e,t);else if(ft(e))r=e(t);else{var n=ze("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=N9(t,m2e);r=Z.createElement(mm,hu({},o,{key:i,className:n}))}return r});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 S2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$9(n.key),n)}}function C2e(e,t,r){return t&&P2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E2e(e,t,r){return t=u0(t),T2e(e,I9()?Reflect.construct(t,r||[],u0(e).constructor):t.apply(e,r))}function T2e(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 j2e(e)}function j2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I9=function(){return!!e})()}function u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},u0(e)}function A2e(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&&fE(e,t)}function fE(e,t){return fE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fE(e,t)}function D9(e,t,r){return t=$9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $9(e){var t=k2e(e,"string");return $f(t)=="symbol"?t:t+""}function k2e(e,t){if($f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cb=function(e){function t(){return S2e(this,t),E2e(this,t,arguments)}return A2e(t,e),C2e(t,[{key:"render",value:function(){return null}}])}(Z.Component);D9(Cb,"displayName","ZAxis");D9(Cb,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var R2e=["option","isActive"];function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wh.apply(this,arguments)}function N2e(e,t){if(e==null)return{};var r=M2e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function M2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function L2e(e){var t=e.option,r=e.isActive,n=N2e(e,R2e);return typeof t=="string"?Z.createElement(Yy,Wh({option:Z.createElement(rb,Wh({type:t},n)),isActive:r,shapeType:"symbols"},n)):Z.createElement(Yy,Wh({option:t,isActive:r,shapeType:"symbols"},n))}function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qh.apply(this,arguments)}function v5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v5(Object(r),!0).forEach(function(n){Ys(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B9(n.key),n)}}function D2e(e,t,r){return t&&g5(e.prototype,t),r&&g5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $2e(e,t,r){return t=c0(t),F2e(e,F9()?Reflect.construct(t,r||[],c0(e).constructor):t.apply(e,r))}function F2e(e,t){if(t&&(Ff(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B2e(e)}function B2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F9=function(){return!!e})()}function c0(e){return c0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},c0(e)}function U2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dE(e,t)}function dE(e,t){return dE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dE(e,t)}function Ys(e,t,r){return t=B9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B9(e){var t=z2e(e,"string");return Ff(t)=="symbol"?t:t+""}function z2e(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eb=function(e){function t(){var r;I2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=$2e(this,t,[].concat(i)),Ys(r,"state",{isAnimationFinished:!1}),Ys(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Ys(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Ys(r,"id",vl("recharts-scatter-")),r}return U2e(t,e),D2e(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,o=this.props,a=o.shape,s=o.activeShape,c=o.activeIndex,u=it(this.props,!1);return n.map(function(h,p){var v=c===p,b=v?s:a,x=Bi(Bi({},u),h);return Z.createElement(Ct,qh({className:"recharts-scatter-symbol",key:"symbol-".concat(h==null?void 0:h.cx,"-").concat(h==null?void 0:h.cy,"-").concat(h==null?void 0:h.size,"-").concat(p)},sl(i.props,h,p),{role:"img"}),Z.createElement(L2e,qh({option:b,isActive:v,key:"symbol-".concat(p)},x)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,o=i.points,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,h=i.animationId,p=this.state.prevPoints;return Z.createElement(Xi,{begin:s,duration:c,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var b=v.t,x=o.map(function(_,w){var O=p&&p[w];if(O){var S=_r(O.cx,_.cx),E=_r(O.cy,_.cy),T=_r(O.size,_.size);return Bi(Bi({},_),{},{cx:S(b),cy:E(b),size:T(b)})}var A=_r(0,_.size);return Bi(Bi({},_),{},{size:A(b)})});return Z.createElement(Ct,null,n.renderSymbolsStatically(x))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,o=n.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,a=i.xAxis,s=i.yAxis,c=i.children,u=An(c,id);return u?u.map(function(h,p){var v=h.props,b=v.direction,x=v.dataKey;return Z.cloneElement(h,{key:"".concat(b,"-").concat(x,"-").concat(o[p]),data:o,xAxis:a,yAxis:s,layout:b==="x"?"vertical":"horizontal",dataPointFormatter:function(w,O){return{x:w.cx,y:w.cy,value:b==="x"?+w.node.x:+w.node.y,errorVal:nr(w,O)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,o=n.line,a=n.lineType,s=n.lineJointType,c=it(this.props,!1),u=it(o,!1),h,p;if(a==="joint")h=i.map(function(E){return{x:E.cx,y:E.cy}});else if(a==="fitting"){var v=Que(i),b=v.xmin,x=v.xmax,_=v.a,w=v.b,O=function(T){return _*T+w};h=[{x:b,y:O(b)},{x,y:O(x)}]}var S=Bi(Bi(Bi({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:h});return Z.isValidElement(o)?p=Z.cloneElement(o,S):ft(o)?p=o(S):p=Z.createElement(el,qh({},S,{type:s})),Z.createElement(Ct,{className:"recharts-scatter-line",key:"recharts-scatter-line"},p)}},{key:"render",value:function(){var n=this.props,i=n.hide,o=n.points,a=n.line,s=n.className,c=n.xAxis,u=n.yAxis,h=n.left,p=n.top,v=n.width,b=n.height,x=n.id,_=n.isAnimationActive;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=ze("recharts-scatter",s),S=c&&c.allowDataOverflow,E=u&&u.allowDataOverflow,T=S||E,A=dt(x)?this.id:x;return Z.createElement(Ct,{className:O,clipPath:T?"url(#clipPath-".concat(A,")"):null},S||E?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(A)},Z.createElement("rect",{x:S?h:h-v/2,y:E?p:p-b/2,width:S?v:v*2,height:E?b:b*2}))):null,a&&this.renderLine(),this.renderErrorBar(),Z.createElement(Ct,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!_||w)&&xo.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])}(I.PureComponent);Ys(Eb,"displayName","Scatter");Ys(Eb,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Hi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Ys(Eb,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,h=An(i.props.children,Qs),p=dt(t.dataKey)?i.props.dataKey:t.dataKey,v=dt(r.dataKey)?i.props.dataKey:r.dataKey,b=n&&n.dataKey,x=n?n.range:Cb.defaultProps.range,_=x&&x[0],w=t.scale.bandwidth?t.scale.bandwidth():0,O=r.scale.bandwidth?r.scale.bandwidth():0,S=o.map(function(E,T){var A=nr(E,p),j=nr(E,v),N=!dt(b)&&nr(E,b)||"-",F=[{name:dt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:A,payload:E,dataKey:p,type:u},{name:dt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:j,payload:E,dataKey:v,type:u}];N!=="-"&&F.push({name:n.name||n.dataKey,unit:n.unit||"",value:N,payload:E,dataKey:b,type:u});var V=Sf({axis:t,ticks:a,bandSize:w,entry:E,index:T,dataKey:p}),B=Sf({axis:r,ticks:s,bandSize:O,entry:E,index:T,dataKey:v}),W=N!=="-"?n.scale(N):_,q=Math.sqrt(Math.max(W,0)/Math.PI);return Bi(Bi({},E),{},{cx:V,cy:B,x:V-q,y:B-q,xAxis:t,yAxis:r,zAxis:n,width:2*q,height:2*q,size:W,node:{x:A,y:j,z:N},tooltipPayload:F,tooltipPosition:{x:V,y:B},payload:E},h&&h[T]&&h[T].props)});return Bi({points:S},c)});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)}function V2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V9(n.key),n)}}function q2e(e,t,r){return t&&W2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function H2e(e,t,r){return t=f0(t),G2e(e,U9()?Reflect.construct(t,r||[],f0(e).constructor):t.apply(e,r))}function G2e(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 K2e(e)}function K2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U9=function(){return!!e})()}function f0(e){return f0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},f0(e)}function Y2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hE(e,t)}function hE(e,t){return hE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hE(e,t)}function z9(e,t,r){return t=V9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V9(e){var t=Z2e(e,"string");return Bf(t)=="symbol"?t:t+""}function Z2e(e,t){if(Bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pE(){return pE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pE.apply(this,arguments)}function X2e(e){var t=e.xAxisId,r=Fj(),n=Bj(),i=y9(t);return i==null?null:Z.createElement(ad,pE({},i,{className:ze("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(a){return Ia(a,!0)}}))}var ld=function(e){function t(){return V2e(this,t),H2e(this,t,arguments)}return Y2e(t,e),q2e(t,[{key:"render",value:function(){return Z.createElement(X2e,this.props)}}])}(Z.Component);z9(ld,"displayName","XAxis");z9(ld,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function Q2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H9(n.key),n)}}function eOe(e,t,r){return t&&J2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tOe(e,t,r){return t=d0(t),rOe(e,W9()?Reflect.construct(t,r||[],d0(e).constructor):t.apply(e,r))}function rOe(e,t){if(t&&(Uf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nOe(e)}function nOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W9=function(){return!!e})()}function d0(e){return d0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d0(e)}function iOe(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&&mE(e,t)}function mE(e,t){return mE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mE(e,t)}function q9(e,t,r){return t=H9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H9(e){var t=oOe(e,"string");return Uf(t)=="symbol"?t:t+""}function oOe(e,t){if(Uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vE(){return vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vE.apply(this,arguments)}var aOe=function(t){var r=t.yAxisId,n=Fj(),i=Bj(),o=b9(r);return o==null?null:Z.createElement(ad,vE({},o,{className:ze("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Ia(s,!0)}}))},ud=function(e){function t(){return Q2e(this,t),tOe(this,t,arguments)}return iOe(t,e),eOe(t,[{key:"render",value:function(){return Z.createElement(aOe,this.props)}}])}(Z.Component);q9(ud,"displayName","YAxis");q9(ud,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function y5(e){return cOe(e)||uOe(e)||lOe(e)||sOe()}function sOe(){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 lOe(e,t){if(e){if(typeof e=="string")return gE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gE(e,t)}}function uOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cOe(e){if(Array.isArray(e))return gE(e)}function gE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yE=function(t,r,n,i,o){var a=An(t,zj),s=An(t,Sb),c=[].concat(y5(a),y5(s)),u=An(t,vm),h="".concat(i,"Id"),p=i[0],v=r;if(c.length&&(v=c.reduce(function(_,w){if(w.props[h]===n&&ea(w.props,"extendDomain")&&Ve(w.props[p])){var O=w.props[p];return[Math.min(_[0],O),Math.max(_[1],O)]}return _},v)),u.length){var b="".concat(p,"1"),x="".concat(p,"2");v=u.reduce(function(_,w){if(w.props[h]===n&&ea(w.props,"extendDomain")&&Ve(w.props[b])&&Ve(w.props[x])){var O=w.props[b],S=w.props[x];return[Math.min(_[0],O,S),Math.max(_[1],O,S)]}return _},v)}return o&&o.length&&(v=o.reduce(function(_,w){return Ve(w)?[Math.min(_[0],w),Math.max(_[1],w)]:_},v)),v},DO={exports:{}},b5;function fOe(){return b5||(b5=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,u,h){this.fn=c,this.context=u,this.once=h||!1}function o(c,u,h,p,v){if(typeof h!="function")throw new TypeError("The listener must be a function");var b=new i(h,p||c,v),x=r?r+u:u;return c._events[x]?c._events[x].fn?c._events[x]=[c._events[x],b]:c._events[x].push(b):(c._events[x]=b,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],h,p;if(this._eventsCount===0)return u;for(p in h=this._events)t.call(h,p)&&u.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},s.prototype.listeners=function(u){var h=r?r+u:u,p=this._events[h];if(!p)return[];if(p.fn)return[p.fn];for(var v=0,b=p.length,x=new Array(b);v<b;v++)x[v]=p[v].fn;return x},s.prototype.listenerCount=function(u){var h=r?r+u:u,p=this._events[h];return p?p.fn?1:p.length:0},s.prototype.emit=function(u,h,p,v,b,x){var _=r?r+u:u;if(!this._events[_])return!1;var w=this._events[_],O=arguments.length,S,E;if(w.fn){switch(w.once&&this.removeListener(u,w.fn,void 0,!0),O){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,h),!0;case 3:return w.fn.call(w.context,h,p),!0;case 4:return w.fn.call(w.context,h,p,v),!0;case 5:return w.fn.call(w.context,h,p,v,b),!0;case 6:return w.fn.call(w.context,h,p,v,b,x),!0}for(E=1,S=new Array(O-1);E<O;E++)S[E-1]=arguments[E];w.fn.apply(w.context,S)}else{var T=w.length,A;for(E=0;E<T;E++)switch(w[E].once&&this.removeListener(u,w[E].fn,void 0,!0),O){case 1:w[E].fn.call(w[E].context);break;case 2:w[E].fn.call(w[E].context,h);break;case 3:w[E].fn.call(w[E].context,h,p);break;case 4:w[E].fn.call(w[E].context,h,p,v);break;default:if(!S)for(A=1,S=new Array(O-1);A<O;A++)S[A-1]=arguments[A];w[E].fn.apply(w[E].context,S)}}return!0},s.prototype.on=function(u,h,p){return o(this,u,h,p,!1)},s.prototype.once=function(u,h,p){return o(this,u,h,p,!0)},s.prototype.removeListener=function(u,h,p,v){var b=r?r+u:u;if(!this._events[b])return this;if(!h)return a(this,b),this;var x=this._events[b];if(x.fn)x.fn===h&&(!v||x.once)&&(!p||x.context===p)&&a(this,b);else{for(var _=0,w=[],O=x.length;_<O;_++)(x[_].fn!==h||v&&!x[_].once||p&&x[_].context!==p)&&w.push(x[_]);w.length?this._events[b]=w.length===1?w[0]:w:a(this,b)}return this},s.prototype.removeAllListeners=function(u){var h;return u?(h=r?r+u:u,this._events[h]&&a(this,h)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(DO)),DO.exports}var dOe=fOe();const hOe=Nt(dOe);var $O=new hOe,FO="recharts.syncMouseEvents";function Vp(e){"@babel/helpers - typeof";return Vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vp(e)}function pOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mOe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G9(n.key),n)}}function vOe(e,t,r){return t&&mOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BO(e,t,r){return t=G9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G9(e){var t=gOe(e,"string");return Vp(t)=="symbol"?t:t+""}function gOe(e,t){if(Vp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yOe=function(){function e(){pOe(this,e),BO(this,"activeIndex",0),BO(this,"coordinateList",[]),BO(this,"layout","horizontal")}return vOe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,o=i===void 0?null:i,a=r.container,s=a===void 0?null:a,c=r.layout,u=c===void 0?null:c,h=r.offset,p=h===void 0?null:h,v=r.mouseHandlerCallback,b=v===void 0?null:v;this.coordinateList=(n=o??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=b??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(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,h=((n=window)===null||n===void 0?void 0:n.scrollY)||0,p=o+c+u,v=a+this.offset.top+s/2+h;this.mouseHandlerCallback({pageX:p,pageY:v})}}}])}();function bOe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&Ve(n)&&Ve(i))return!0}return!1}function _Oe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function K9(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,o=e.endAngle,a=Qt(t,r,n,i),s=Qt(t,r,n,o);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function xOe(e,t,r){var n,i,o,a;if(e==="horizontal")n=t.x,o=n,i=r.top,a=r.top+r.height;else if(e==="vertical")i=t.y,a=i,n=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,h=t.outerRadius,p=t.angle,v=Qt(s,c,u,p),b=Qt(s,c,h,p);n=v.x,i=v.y,o=b.x,a=b.y}else return K9(t);return[{x:n,y:i},{x:o,y:a}]}function Wp(e){"@babel/helpers - typeof";return Wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wp(e)}function _5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function og(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_5(Object(r),!0).forEach(function(n){wOe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wOe(e,t,r){return t=OOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OOe(e){var t=SOe(e,"string");return Wp(t)=="symbol"?t:t+""}function SOe(e,t){if(Wp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function POe(e){var t,r,n=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,h=e.tooltipAxisBandSize,p=e.layout,v=e.chartName,b=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!b||!o||!a||v!=="ScatterChart"&&i!=="axis")return null;var x,_=el;if(v==="ScatterChart")x=a,_=y_e;else if(v==="BarChart")x=_Oe(p,a,c,h),_=Lj;else if(p==="radial"){var w=K9(a),O=w.cx,S=w.cy,E=w.radius,T=w.startAngle,A=w.endAngle;x={cx:O,cy:S,startAngle:T,endAngle:A,innerRadius:E,outerRadius:E},_=BU}else x={points:xOe(p,a,c)},_=el;var j=og(og(og(og({stroke:"#ccc",pointerEvents:"none"},c),x),it(b,!1)),{},{payload:s,payloadIndex:u,className:ze("recharts-tooltip-cursor",b.className)});return I.isValidElement(b)?I.cloneElement(b,j):I.createElement(_,j)}var COe=["item"],EOe=["children","className","width","height","style","compact","title","desc"];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 Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xc.apply(this,arguments)}function x5(e,t){return AOe(e)||jOe(e,t)||Z9(e,t)||TOe()}function TOe(){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 jOe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function AOe(e){if(Array.isArray(e))return e}function w5(e,t){if(e==null)return{};var r=kOe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kOe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ROe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NOe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,X9(n.key),n)}}function MOe(e,t,r){return t&&NOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LOe(e,t,r){return t=h0(t),IOe(e,Y9()?Reflect.construct(t,r||[],h0(e).constructor):t.apply(e,r))}function IOe(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 DOe(e)}function DOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y9=function(){return!!e})()}function h0(e){return h0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},h0(e)}function $Oe(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&&bE(e,t)}function bE(e,t){return bE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bE(e,t)}function Vf(e){return UOe(e)||BOe(e)||Z9(e)||FOe()}function FOe(){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 Z9(e,t){if(e){if(typeof e=="string")return _E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _E(e,t)}}function BOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UOe(e){if(Array.isArray(e))return _E(e)}function _E(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O5(Object(r),!0).forEach(function(n){ht(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ht(e,t,r){return t=X9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X9(e){var t=zOe(e,"string");return zf(t)=="symbol"?t:t+""}function zOe(e,t){if(zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VOe={xAxis:["bottom","top"],yAxis:["left","right"]},WOe={width:"100%",height:"100%"},Q9={x:0,y:0};function ag(e){return e}var qOe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},HOe=function(t,r,n,i){var o=r.find(function(h){return h&&h.index===n});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,s=i.radius;return Te(Te(Te({},i),Qt(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var c=o.coordinate,u=i.angle;return Te(Te(Te({},i),Qt(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return Q9},Tb=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,o=r.dataEndIndex,a=(n??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(Vf(s),Vf(u)):s},[]);return a.length>0?a:t&&t.length&&Ve(i)&&Ve(o)?t.slice(i,o+1):[]};function J9(e){return e==="number"?[0,"auto"]:void 0}var xE=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Tb(r,t);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(c,u){var h,p=(h=u.props.data)!==null&&h!==void 0?h:r;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(a.dataKey&&!a.allowDuplicatedCategory){var b=p===void 0?s:p;v=hy(b,a.dataKey,i)}else v=p&&p[n]||s[n];return v?[].concat(Vf(c),[MU(u,v)]):c},[])},S5=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=qOe(o,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,h=nye(a,s,u,c);if(h>=0&&u){var p=u[h]&&u[h].value,v=xE(t,r,h,p),b=HOe(n,s,h,o);return{activeTooltipIndex:h,activeLabel:p,activePayload:v,activeCoordinate:b}}return null},GOe=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.layout,p=t.children,v=t.stackOffset,b=TU(h,o);return n.reduce(function(x,_){var w,O=_.type.defaultProps!==void 0?Te(Te({},_.type.defaultProps),_.props):_.props,S=O.type,E=O.dataKey,T=O.allowDataOverflow,A=O.allowDuplicatedCategory,j=O.scale,N=O.ticks,F=O.includeHidden,V=O[a];if(x[V])return x;var B=Tb(t.data,{graphicalItems:i.filter(function(re){var X,le=a in re.props?re.props[a]:(X=re.type.defaultProps)===null||X===void 0?void 0:X[a];return le===V}),dataStartIndex:c,dataEndIndex:u}),W=B.length,q,J,Q;bOe(O.domain,T,S)&&(q=RC(O.domain,null,T),b&&(S==="number"||j!=="auto")&&(Q=Fh(B,E,"category")));var ne=J9(S);if(!q||q.length===0){var ae,se=(ae=O.domain)!==null&&ae!==void 0?ae:ne;if(E){if(q=Fh(B,E,S),S==="category"&&b){var oe=Xue(q);A&&oe?(J=q,q=Xy(0,W)):A||(q=wD(se,q,_).reduce(function(re,X){return re.indexOf(X)>=0?re:[].concat(Vf(re),[X])},[]))}else if(S==="category")A?q=q.filter(function(re){return re!==""&&!dt(re)}):q=wD(se,q,_).reduce(function(re,X){return re.indexOf(X)>=0||X===""||dt(X)?re:[].concat(Vf(re),[X])},[]);else if(S==="number"){var K=lye(B,i.filter(function(re){var X,le,ce=a in re.props?re.props[a]:(X=re.type.defaultProps)===null||X===void 0?void 0:X[a],de="hide"in re.props?re.props.hide:(le=re.type.defaultProps)===null||le===void 0?void 0:le.hide;return ce===V&&(F||!de)}),E,o,h);K&&(q=K)}b&&(S==="number"||j!=="auto")&&(Q=Fh(B,E,"category"))}else b?q=Xy(0,W):s&&s[V]&&s[V].hasStack&&S==="number"?q=v==="expand"?[0,1]:NU(s[V].stackGroups,c,u):q=EU(B,i.filter(function(re){var X=a in re.props?re.props[a]:re.type.defaultProps[a],le="hide"in re.props?re.props.hide:re.type.defaultProps.hide;return X===V&&(F||!le)}),S,h,!0);if(S==="number")q=yE(p,q,V,o,N),se&&(q=RC(se,q,T));else if(S==="category"&&se){var G=se,z=q.every(function(re){return G.indexOf(re)>=0});z&&(q=G)}}return Te(Te({},x),{},ht({},V,Te(Te({},O),{},{axisType:o,domain:q,categoricalDomain:Q,duplicateDomain:J,originalDomain:(w=O.domain)!==null&&w!==void 0?w:ne,isCategorical:b,layout:h})))},{})},KOe=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.layout,p=t.children,v=Tb(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),b=v.length,x=TU(h,o),_=-1;return n.reduce(function(w,O){var S=O.type.defaultProps!==void 0?Te(Te({},O.type.defaultProps),O.props):O.props,E=S[a],T=J9("number");if(!w[E]){_++;var A;return x?A=Xy(0,b):s&&s[E]&&s[E].hasStack?(A=NU(s[E].stackGroups,c,u),A=yE(p,A,E,o)):(A=RC(T,EU(v,n.filter(function(j){var N,F,V=a in j.props?j.props[a]:(N=j.type.defaultProps)===null||N===void 0?void 0:N[a],B="hide"in j.props?j.props.hide:(F=j.type.defaultProps)===null||F===void 0?void 0:F.hide;return V===E&&!B}),"number",h),i.defaultProps.allowDataOverflow),A=yE(p,A,E,o)),Te(Te({},w),{},ht({},E,Te(Te({axisType:o},i.defaultProps),{},{hide:!0,orientation:mi(VOe,"".concat(o,".").concat(_%2),null),domain:A,originalDomain:T,isCategorical:x,layout:h})))}return w},{})},YOe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,a=r.graphicalItems,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.children,p="".concat(i,"Id"),v=An(h,o),b={};return v&&v.length?b=GOe(t,{axes:v,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):a&&a.length&&(b=KOe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),b},ZOe=function(t){var r=Hs(t),n=Ia(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:sj(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:$y(r,n)}},P5=function(t){var r=t.children,n=t.defaultShowTooltip,i=di(r,Af),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},XOe=function(t){return!t||!t.length?!1:t.some(function(r){var n=Fa(r&&r.type);return n&&n.indexOf("Bar")>=0})},C5=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},QOe=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,c=s===void 0?{}:s,u=n.width,h=n.height,p=n.children,v=n.margin||{},b=di(p,Af),x=di(p,tf),_=Object.keys(c).reduce(function(A,j){var N=c[j],F=N.orientation;return!N.mirror&&!N.hide?Te(Te({},A),{},ht({},F,A[F]+N.width)):A},{left:v.left||0,right:v.right||0}),w=Object.keys(a).reduce(function(A,j){var N=a[j],F=N.orientation;return!N.mirror&&!N.hide?Te(Te({},A),{},ht({},F,mi(A,"".concat(F))+N.height)):A},{top:v.top||0,bottom:v.bottom||0}),O=Te(Te({},w),_),S=O.bottom;b&&(O.bottom+=b.props.height||Af.defaultProps.height),x&&r&&(O=aye(O,i,n,r));var E=u-O.left-O.right,T=h-O.top-O.bottom;return Te(Te({brushBottom:S},O),{},{width:Math.max(E,0),height:Math.max(T,0)})},JOe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Hj=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,c=t.axisComponents,u=t.legendContent,h=t.formatAxisMap,p=t.defaultProps,v=function(O,S){var E=S.graphicalItems,T=S.stackGroups,A=S.offset,j=S.updateId,N=S.dataStartIndex,F=S.dataEndIndex,V=O.barSize,B=O.layout,W=O.barGap,q=O.barCategoryGap,J=O.maxBarSize,Q=C5(B),ne=Q.numericAxisName,ae=Q.cateAxisName,se=XOe(E),oe=[];return E.forEach(function(K,G){var z=Tb(O.data,{graphicalItems:[K],dataStartIndex:N,dataEndIndex:F}),re=K.type.defaultProps!==void 0?Te(Te({},K.type.defaultProps),K.props):K.props,X=re.dataKey,le=re.maxBarSize,ce=re["".concat(ne,"Id")],de=re["".concat(ae,"Id")],be={},M=c.reduce(function(Be,qe){var ye=S["".concat(qe.axisType,"Map")],we=re["".concat(qe.axisType,"Id")];ye&&ye[we]||qe.axisType==="zAxis"||ju();var Ae=ye[we];return Te(Te({},Be),{},ht(ht({},qe.axisType,Ae),"".concat(qe.axisType,"Ticks"),Ia(Ae)))},be),$=M[ae],Y=M["".concat(ae,"Ticks")],ue=T&&T[ce]&&T[ce].hasStack&&gye(K,T[ce].stackGroups),ie=Fa(K.type).indexOf("Bar")>=0,he=$y($,Y),Se=[],Fe=se&&iye({barSize:V,stackGroups:T,totalSize:JOe(M,ae)});if(ie){var ge,Ee,je=dt(le)?J:le,Me=(ge=(Ee=$y($,Y,!0))!==null&&Ee!==void 0?Ee:je)!==null&&ge!==void 0?ge:0;Se=oye({barGap:W,barCategoryGap:q,bandSize:Me!==he?Me:he,sizeList:Fe[de],maxBarSize:je}),Me!==he&&(Se=Se.map(function(Be){return Te(Te({},Be),{},{position:Te(Te({},Be.position),{},{offset:Be.position.offset-Me/2})})}))}var He=K&&K.type&&K.type.getComposedData;He&&oe.push({props:Te(Te({},He(Te(Te({},M),{},{displayedData:z,props:O,dataKey:X,item:K,bandSize:he,barPosition:Se,offset:A,stackedData:ue,layout:B,dataStartIndex:N,dataEndIndex:F}))),{},ht(ht(ht({key:K.key||"item-".concat(G)},ne,M[ne]),ae,M[ae]),"animationId",j)),childIndex:uce(K,O.children),item:K})}),oe},b=function(O,S){var E=O.props,T=O.dataStartIndex,A=O.dataEndIndex,j=O.updateId;if(!DM({props:E}))return null;var N=E.children,F=E.layout,V=E.stackOffset,B=E.data,W=E.reverseStackOrder,q=C5(F),J=q.numericAxisName,Q=q.cateAxisName,ne=An(N,n),ae=mye(B,ne,"".concat(J,"Id"),"".concat(Q,"Id"),V,W),se=c.reduce(function(re,X){var le="".concat(X.axisType,"Map");return Te(Te({},re),{},ht({},le,YOe(E,Te(Te({},X),{},{graphicalItems:ne,stackGroups:X.axisType===J&&ae,dataStartIndex:T,dataEndIndex:A}))))},{}),oe=QOe(Te(Te({},se),{},{props:E,graphicalItems:ne}),S==null?void 0:S.legendBBox);Object.keys(se).forEach(function(re){se[re]=h(E,se[re],oe,re.replace("Map",""),r)});var K=se["".concat(Q,"Map")],G=ZOe(K),z=v(E,Te(Te({},se),{},{dataStartIndex:T,dataEndIndex:A,updateId:j,graphicalItems:ne,stackGroups:ae,offset:oe}));return Te(Te({formattedGraphicalItems:z,graphicalItems:ne,offset:oe,stackGroups:ae},G),se)},x=function(w){function O(S){var E,T,A;return ROe(this,O),A=LOe(this,O,[S]),ht(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ht(A,"accessibilityManager",new yOe),ht(A,"handleLegendBBoxUpdate",function(j){if(j){var N=A.state,F=N.dataStartIndex,V=N.dataEndIndex,B=N.updateId;A.setState(Te({legendBBox:j},b({props:A.props,dataStartIndex:F,dataEndIndex:V,updateId:B},Te(Te({},A.state),{},{legendBBox:j}))))}}),ht(A,"handleReceiveSyncEvent",function(j,N,F){if(A.props.syncId===j){if(F===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(N)}}),ht(A,"handleBrushChange",function(j){var N=j.startIndex,F=j.endIndex;if(N!==A.state.dataStartIndex||F!==A.state.dataEndIndex){var V=A.state.updateId;A.setState(function(){return Te({dataStartIndex:N,dataEndIndex:F},b({props:A.props,dataStartIndex:N,dataEndIndex:F,updateId:V},A.state))}),A.triggerSyncEvent({dataStartIndex:N,dataEndIndex:F})}}),ht(A,"handleMouseEnter",function(j){var N=A.getMouseInfo(j);if(N){var F=Te(Te({},N),{},{isTooltipActive:!0});A.setState(F),A.triggerSyncEvent(F);var V=A.props.onMouseEnter;ft(V)&&V(F,j)}}),ht(A,"triggeredAfterMouseMove",function(j){var N=A.getMouseInfo(j),F=N?Te(Te({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(F),A.triggerSyncEvent(F);var V=A.props.onMouseMove;ft(V)&&V(F,j)}),ht(A,"handleItemMouseEnter",function(j){A.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),ht(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),ht(A,"handleMouseMove",function(j){j.persist(),A.throttleTriggeredAfterMouseMove(j)}),ht(A,"handleMouseLeave",function(j){A.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};A.setState(N),A.triggerSyncEvent(N);var F=A.props.onMouseLeave;ft(F)&&F(N,j)}),ht(A,"handleOuterEvent",function(j){var N=lce(j),F=mi(A.props,"".concat(N));if(N&&ft(F)){var V,B;/.*touch.*/i.test(N)?B=A.getMouseInfo(j.changedTouches[0]):B=A.getMouseInfo(j),F((V=B)!==null&&V!==void 0?V:{},j)}}),ht(A,"handleClick",function(j){var N=A.getMouseInfo(j);if(N){var F=Te(Te({},N),{},{isTooltipActive:!0});A.setState(F),A.triggerSyncEvent(F);var V=A.props.onClick;ft(V)&&V(F,j)}}),ht(A,"handleMouseDown",function(j){var N=A.props.onMouseDown;if(ft(N)){var F=A.getMouseInfo(j);N(F,j)}}),ht(A,"handleMouseUp",function(j){var N=A.props.onMouseUp;if(ft(N)){var F=A.getMouseInfo(j);N(F,j)}}),ht(A,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),ht(A,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.handleMouseDown(j.changedTouches[0])}),ht(A,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.handleMouseUp(j.changedTouches[0])}),ht(A,"handleDoubleClick",function(j){var N=A.props.onDoubleClick;if(ft(N)){var F=A.getMouseInfo(j);N(F,j)}}),ht(A,"handleContextMenu",function(j){var N=A.props.onContextMenu;if(ft(N)){var F=A.getMouseInfo(j);N(F,j)}}),ht(A,"triggerSyncEvent",function(j){A.props.syncId!==void 0&&$O.emit(FO,A.props.syncId,j,A.eventEmitterSymbol)}),ht(A,"applySyncEvent",function(j){var N=A.props,F=N.layout,V=N.syncMethod,B=A.state.updateId,W=j.dataStartIndex,q=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)A.setState(Te({dataStartIndex:W,dataEndIndex:q},b({props:A.props,dataStartIndex:W,dataEndIndex:q,updateId:B},A.state)));else if(j.activeTooltipIndex!==void 0){var J=j.chartX,Q=j.chartY,ne=j.activeTooltipIndex,ae=A.state,se=ae.offset,oe=ae.tooltipTicks;if(!se)return;if(typeof V=="function")ne=V(oe,j);else if(V==="value"){ne=-1;for(var K=0;K<oe.length;K++)if(oe[K].value===j.activeLabel){ne=K;break}}var G=Te(Te({},se),{},{x:se.left,y:se.top}),z=Math.min(J,G.x+G.width),re=Math.min(Q,G.y+G.height),X=oe[ne]&&oe[ne].value,le=xE(A.state,A.props.data,ne),ce=oe[ne]?{x:F==="horizontal"?oe[ne].coordinate:z,y:F==="horizontal"?re:oe[ne].coordinate}:Q9;A.setState(Te(Te({},j),{},{activeLabel:X,activeCoordinate:ce,activePayload:le,activeTooltipIndex:ne}))}else A.setState(j)}),ht(A,"renderCursor",function(j){var N,F=A.state,V=F.isTooltipActive,B=F.activeCoordinate,W=F.activePayload,q=F.offset,J=F.activeTooltipIndex,Q=F.tooltipAxisBandSize,ne=A.getTooltipEventType(),ae=(N=j.props.active)!==null&&N!==void 0?N:V,se=A.props.layout,oe=j.key||"_recharts-cursor";return Z.createElement(POe,{key:oe,activeCoordinate:B,activePayload:W,activeTooltipIndex:J,chartName:r,element:j,isActive:ae,layout:se,offset:q,tooltipAxisBandSize:Q,tooltipEventType:ne})}),ht(A,"renderPolarAxis",function(j,N,F){var V=mi(j,"type.axisType"),B=mi(A.state,"".concat(V,"Map")),W=j.type.defaultProps,q=W!==void 0?Te(Te({},W),j.props):j.props,J=B&&B[q["".concat(V,"Id")]];return I.cloneElement(j,Te(Te({},J),{},{className:ze(V,J.className),key:j.key||"".concat(N,"-").concat(F),ticks:Ia(J,!0)}))}),ht(A,"renderPolarGrid",function(j){var N=j.props,F=N.radialLines,V=N.polarAngles,B=N.polarRadius,W=A.state,q=W.radiusAxisMap,J=W.angleAxisMap,Q=Hs(q),ne=Hs(J),ae=ne.cx,se=ne.cy,oe=ne.innerRadius,K=ne.outerRadius;return I.cloneElement(j,{polarAngles:Array.isArray(V)?V:Ia(ne,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(B)?B:Ia(Q,!0).map(function(G){return G.coordinate}),cx:ae,cy:se,innerRadius:oe,outerRadius:K,key:j.key||"polar-grid",radialLines:F})}),ht(A,"renderLegend",function(){var j=A.state.formattedGraphicalItems,N=A.props,F=N.children,V=N.width,B=N.height,W=A.props.margin||{},q=V-(W.left||0)-(W.right||0),J=PU({children:F,formattedGraphicalItems:j,legendWidth:q,legendContent:u});if(!J)return null;var Q=J.item,ne=w5(J,COe);return I.cloneElement(Q,Te(Te({},ne),{},{chartWidth:V,chartHeight:B,margin:W,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),ht(A,"renderTooltip",function(){var j,N=A.props,F=N.children,V=N.accessibilityLayer,B=di(F,Ui);if(!B)return null;var W=A.state,q=W.isTooltipActive,J=W.activeCoordinate,Q=W.activePayload,ne=W.activeLabel,ae=W.offset,se=(j=B.props.active)!==null&&j!==void 0?j:q;return I.cloneElement(B,{viewBox:Te(Te({},ae),{},{x:ae.left,y:ae.top}),active:se,label:ne,payload:se?Q:[],coordinate:J,accessibilityLayer:V})}),ht(A,"renderBrush",function(j){var N=A.props,F=N.margin,V=N.data,B=A.state,W=B.offset,q=B.dataStartIndex,J=B.dataEndIndex,Q=B.updateId;return I.cloneElement(j,{key:j.key||"_recharts-brush",onChange:tg(A.handleBrushChange,j.props.onChange),data:V,x:Ve(j.props.x)?j.props.x:W.left,y:Ve(j.props.y)?j.props.y:W.top+W.height+W.brushBottom-(F.bottom||0),width:Ve(j.props.width)?j.props.width:W.width,startIndex:q,endIndex:J,updateId:"brush-".concat(Q)})}),ht(A,"renderReferenceElement",function(j,N,F){if(!j)return null;var V=A,B=V.clipPathId,W=A.state,q=W.xAxisMap,J=W.yAxisMap,Q=W.offset,ne=j.type.defaultProps||{},ae=j.props,se=ae.xAxisId,oe=se===void 0?ne.xAxisId:se,K=ae.yAxisId,G=K===void 0?ne.yAxisId:K;return I.cloneElement(j,{key:j.key||"".concat(N,"-").concat(F),xAxis:q[oe],yAxis:J[G],viewBox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:B})}),ht(A,"renderActivePoints",function(j){var N=j.item,F=j.activePoint,V=j.basePoint,B=j.childIndex,W=j.isRange,q=[],J=N.props.key,Q=N.item.type.defaultProps!==void 0?Te(Te({},N.item.type.defaultProps),N.item.props):N.item.props,ne=Q.activeDot,ae=Q.dataKey,se=Te(Te({index:B,dataKey:ae,cx:F.x,cy:F.y,r:4,fill:Mj(N.item),strokeWidth:2,stroke:"#fff",payload:F.payload,value:F.value},it(ne,!1)),py(ne));return q.push(O.renderActiveDot(ne,se,"".concat(J,"-activePoint-").concat(B))),V?q.push(O.renderActiveDot(ne,Te(Te({},se),{},{cx:V.x,cy:V.y}),"".concat(J,"-basePoint-").concat(B))):W&&q.push(null),q}),ht(A,"renderGraphicChild",function(j,N,F){var V=A.filterFormatItem(j,N,F);if(!V)return null;var B=A.getTooltipEventType(),W=A.state,q=W.isTooltipActive,J=W.tooltipAxis,Q=W.activeTooltipIndex,ne=W.activeLabel,ae=A.props.children,se=di(ae,Ui),oe=V.props,K=oe.points,G=oe.isRange,z=oe.baseLine,re=V.item.type.defaultProps!==void 0?Te(Te({},V.item.type.defaultProps),V.item.props):V.item.props,X=re.activeDot,le=re.hide,ce=re.activeBar,de=re.activeShape,be=!!(!le&&q&&se&&(X||ce||de)),M={};B!=="axis"&&se&&se.props.trigger==="click"?M={onClick:tg(A.handleItemMouseEnter,j.props.onClick)}:B!=="axis"&&(M={onMouseLeave:tg(A.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:tg(A.handleItemMouseEnter,j.props.onMouseEnter)});var $=I.cloneElement(j,Te(Te({},V.props),M));function Y(qe){return typeof J.dataKey=="function"?J.dataKey(qe.payload):null}if(be)if(Q>=0){var ue,ie;if(J.dataKey&&!J.allowDuplicatedCategory){var he=typeof J.dataKey=="function"?Y:"payload.".concat(J.dataKey.toString());ue=hy(K,he,ne),ie=G&&z&&hy(z,he,ne)}else ue=K==null?void 0:K[Q],ie=G&&z&&z[Q];if(de||ce){var Se=j.props.activeIndex!==void 0?j.props.activeIndex:Q;return[I.cloneElement(j,Te(Te(Te({},V.props),M),{},{activeIndex:Se})),null,null]}if(!dt(ue))return[$].concat(Vf(A.renderActivePoints({item:V,activePoint:ue,basePoint:ie,childIndex:Q,isRange:G})))}else{var Fe,ge=(Fe=A.getItemByXY(A.state.activeCoordinate))!==null&&Fe!==void 0?Fe:{graphicalItem:$},Ee=ge.graphicalItem,je=Ee.item,Me=je===void 0?j:je,He=Ee.childIndex,Be=Te(Te(Te({},V.props),M),{},{activeIndex:He});return[I.cloneElement(Me,Be),null,null]}return G?[$,null,null]:[$,null]}),ht(A,"renderCustomized",function(j,N,F){return I.cloneElement(j,Te(Te({key:"recharts-customized-".concat(F)},A.props),A.state))}),ht(A,"renderMap",{CartesianGrid:{handler:ag,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:ag},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:ag},YAxis:{handler:ag},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((E=S.id)!==null&&E!==void 0?E:vl("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=SB(A.triggeredAfterMouseMove,(T=S.throttleDelay)!==null&&T!==void 0?T:1e3/60),A.state={},A}return $Oe(O,w),MOe(O,[{key:"componentDidMount",value:function(){var E,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,T=E.children,A=E.data,j=E.height,N=E.layout,F=di(T,Ui);if(F){var V=F.props.defaultIndex;if(!(typeof V!="number"||V<0||V>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[V]&&this.state.tooltipTicks[V].value,W=xE(this.state,A,V,B),q=this.state.tooltipTicks[V].coordinate,J=(this.state.offset.top+j)/2,Q=N==="horizontal",ne=Q?{x:q,y:J}:{y:q,x:J},ae=this.state.formattedGraphicalItems.find(function(oe){var K=oe.item;return K.type.name==="Scatter"});ae&&(ne=Te(Te({},ne),ae.props.points[V].tooltipPosition),W=ae.props.points[V].tooltipPayload);var se={activeTooltipIndex:V,isTooltipActive:!0,activeLabel:B,activePayload:W,activeCoordinate:ne};this.setState(se),this.renderCursor(F),this.accessibilityManager.setIndex(V)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var A,j;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(E){eC([di(E.children,Ui)],[di(this.props.children,Ui)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=di(this.props.children,Ui);if(E&&typeof E.props.shared=="boolean"){var T=E.props.shared?"axis":"item";return s.indexOf(T)>=0?T:o}return o}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var T=this.container,A=T.getBoundingClientRect(),j=Yhe(A),N={chartX:Math.round(E.pageX-j.left),chartY:Math.round(E.pageY-j.top)},F=A.width/T.offsetWidth||1,V=this.inRange(N.chartX,N.chartY,F);if(!V)return null;var B=this.state,W=B.xAxisMap,q=B.yAxisMap,J=this.getTooltipEventType();if(J!=="axis"&&W&&q){var Q=Hs(W).scale,ne=Hs(q).scale,ae=Q&&Q.invert?Q.invert(N.chartX):null,se=ne&&ne.invert?ne.invert(N.chartY):null;return Te(Te({},N),{},{xValue:ae,yValue:se})}var oe=S5(this.state,this.props.data,this.props.layout,V);return oe?Te(Te({},N),oe):null}},{key:"inRange",value:function(E,T){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,N=E/A,F=T/A;if(j==="horizontal"||j==="vertical"){var V=this.state.offset,B=N>=V.left&&N<=V.left+V.width&&F>=V.top&&F<=V.top+V.height;return B?{x:N,y:F}:null}var W=this.state,q=W.angleAxisMap,J=W.radiusAxisMap;if(q&&J){var Q=Hs(q);return PD({x:N,y:F},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,T=this.getTooltipEventType(),A=di(E,Ui),j={};A&&T==="axis"&&(A.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=py(this.props,this.handleOuterEvent);return Te(Te({},N),j)}},{key:"addListener",value:function(){$O.on(FO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){$O.removeListener(FO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,T,A){for(var j=this.state.formattedGraphicalItems,N=0,F=j.length;N<F;N++){var V=j[N];if(V.item===E||V.props.key===E.key||T===Fa(V.item.type)&&A===V.childIndex)return V}return null}},{key:"renderClipPath",value:function(){var E=this.clipPathId,T=this.state.offset,A=T.left,j=T.top,N=T.height,F=T.width;return Z.createElement("defs",null,Z.createElement("clipPath",{id:E},Z.createElement("rect",{x:A,y:j,height:N,width:F})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(T,A){var j=x5(A,2),N=j[0],F=j[1];return Te(Te({},T),{},ht({},N,F.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(T,A){var j=x5(A,2),N=j[0],F=j[1];return Te(Te({},T),{},ht({},N,F.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(E){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(E){var T=this.state,A=T.formattedGraphicalItems,j=T.activeItem;if(A&&A.length)for(var N=0,F=A.length;N<F;N++){var V=A[N],B=V.props,W=V.item,q=W.type.defaultProps!==void 0?Te(Te({},W.type.defaultProps),W.props):W.props,J=Fa(W.type);if(J==="Bar"){var Q=(B.data||[]).find(function(oe){return Qbe(E,oe)});if(Q)return{graphicalItem:V,payload:Q}}else if(J==="RadialBar"){var ne=(B.data||[]).find(function(oe){return PD(E,oe)});if(ne)return{graphicalItem:V,payload:ne}}else if(_b(V,j)||xb(V,j)||$p(V,j)){var ae=x1e({graphicalItem:V,activeTooltipItem:j,itemData:q.data}),se=q.activeIndex===void 0?ae:q.activeIndex;return{graphicalItem:Te(Te({},V),{},{childIndex:se}),payload:$p(V,j)?q.data[ae]:V.props.data[ae]}}}return null}},{key:"render",value:function(){var E=this;if(!DM(this))return null;var T=this.props,A=T.children,j=T.className,N=T.width,F=T.height,V=T.style,B=T.compact,W=T.title,q=T.desc,J=w5(T,EOe),Q=it(J,!1);if(B)return Z.createElement(Q6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement(rC,Xc({},Q,{width:N,height:F,title:W,desc:q}),this.renderClipPath(),FM(A,this.renderMap)));if(this.props.accessibilityLayer){var ne,ae;Q.tabIndex=(ne=this.props.tabIndex)!==null&&ne!==void 0?ne:0,Q.role=(ae=this.props.role)!==null&&ae!==void 0?ae:"application",Q.onKeyDown=function(oe){E.accessibilityManager.keyboardEvent(oe)},Q.onFocus=function(){E.accessibilityManager.focus()}}var se=this.parseEventsOfWrapper();return Z.createElement(Q6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement("div",Xc({className:ze("recharts-wrapper",j),style:Te({position:"relative",cursor:"default",width:N,height:F},V)},se,{ref:function(K){E.container=K}}),Z.createElement(rC,Xc({},Q,{width:N,height:F,title:W,desc:q,style:WOe}),this.renderClipPath(),FM(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(I.Component);ht(x,"displayName",r),ht(x,"defaultProps",Te({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),ht(x,"getDerivedStateFromProps",function(w,O){var S=w.dataKey,E=w.data,T=w.children,A=w.width,j=w.height,N=w.layout,F=w.stackOffset,V=w.margin,B=O.dataStartIndex,W=O.dataEndIndex;if(O.updateId===void 0){var q=P5(w);return Te(Te(Te({},q),{},{updateId:0},b(Te(Te({props:w},q),{},{updateId:0}),O)),{},{prevDataKey:S,prevData:E,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:F,prevMargin:V,prevChildren:T})}if(S!==O.prevDataKey||E!==O.prevData||A!==O.prevWidth||j!==O.prevHeight||N!==O.prevLayout||F!==O.prevStackOffset||!ef(V,O.prevMargin)){var J=P5(w),Q={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},ne=Te(Te({},S5(O,E,N)),{},{updateId:O.updateId+1}),ae=Te(Te(Te({},J),Q),ne);return Te(Te(Te({},ae),b(Te({props:w},ae),O)),{},{prevDataKey:S,prevData:E,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:F,prevMargin:V,prevChildren:T})}if(!eC(T,O.prevChildren)){var se,oe,K,G,z=di(T,Af),re=z&&(se=(oe=z.props)===null||oe===void 0?void 0:oe.startIndex)!==null&&se!==void 0?se:B,X=z&&(K=(G=z.props)===null||G===void 0?void 0:G.endIndex)!==null&&K!==void 0?K:W,le=re!==B||X!==W,ce=!dt(E),de=ce&&!le?O.updateId:O.updateId+1;return Te(Te({updateId:de},b(Te(Te({props:w},O),{},{updateId:de,dataStartIndex:re,dataEndIndex:X}),O)),{},{prevChildren:T,dataStartIndex:re,dataEndIndex:X})}return null}),ht(x,"renderActiveDot",function(w,O,S){var E;return I.isValidElement(w)?E=I.cloneElement(w,O):ft(w)?E=w(O):E=Z.createElement(mm,O),Z.createElement(Ct,{className:"recharts-active-dot",key:S},E)});var _=I.forwardRef(function(O,S){return Z.createElement(x,Xc({},O,{ref:S}))});return _.displayName=x.displayName,_},eSe=Hj({chartName:"LineChart",GraphicalChild:sd,axisComponents:[{axisType:"xAxis",AxisComp:ld},{axisType:"yAxis",AxisComp:ud}],formatAxisMap:c9}),tSe=Hj({chartName:"PieChart",GraphicalChild:oa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:bb},{axisType:"radiusAxis",AxisComp:gb}],formatAxisMap:Eye,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),rSe=Hj({chartName:"ComposedChart",GraphicalChild:[sd,$u,Ua,Eb],axisComponents:[{axisType:"xAxis",AxisComp:ld},{axisType:"yAxis",AxisComp:ud},{axisType:"zAxis",AxisComp:Cb}],formatAxisMap:c9});function ez(e,t){const r=I.useRef(t);I.useEffect(function(){t!==r.current&&e.attributionControl!=null&&(r.current!=null&&e.attributionControl.removeAttribution(r.current),t!=null&&e.attributionControl.addAttribution(t)),r.current=t},[e,t])}const nSe=1;function iSe(e){return Object.freeze({__version:nSe,map:e})}function oSe(e,t){return Object.freeze({...e,...t})}const tz=I.createContext(null),rz=tz.Provider;function nz(){const e=I.useContext(tz);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function aSe(e){function t(r,n){const{instance:i,context:o}=e(r).current;return I.useImperativeHandle(n,()=>i),r.children==null?null:Z.createElement(rz,{value:o},r.children)}return I.forwardRef(t)}function sSe(e){function t(r,n){const[i,o]=I.useState(!1),{instance:a}=e(r,o).current;I.useImperativeHandle(n,()=>a),I.useEffect(function(){i&&a.update()},[a,i,r.children]);const s=a._contentNode;return s?vT.createPortal(r.children,s):null}return I.forwardRef(t)}function lSe(e){function t(r,n){const{instance:i}=e(r).current;return I.useImperativeHandle(n,()=>i),null}return I.forwardRef(t)}function iz(e,t){const r=I.useRef();I.useEffect(function(){return t!=null&&e.instance.on(t),r.current=t,function(){r.current!=null&&e.instance.off(r.current),r.current=null}},[e,t])}function Gj(e,t){const r=e.pane??t.pane;return r?{...e,pane:r}:e}function uSe(e,t){return function(n,i){const o=nz(),a=e(Gj(n,o),o);return ez(o.map,n.attribution),iz(a.current,n.eventHandlers),t(a.current,o,n,i),a}}var Th={exports:{}};/* @preserve
|
||
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
*/var cSe=Th.exports,E5;function fSe(){return E5||(E5=1,function(e,t){(function(r,n){n(t)})(cSe,function(r){var n="1.9.4";function i(f){var m,P,k,U;for(P=1,k=arguments.length;P<k;P++){U=arguments[P];for(m in U)f[m]=U[m]}return f}var o=Object.create||function(){function f(){}return function(m){return f.prototype=m,new f}}();function a(f,m){var P=Array.prototype.slice;if(f.bind)return f.bind.apply(f,P.call(arguments,1));var k=P.call(arguments,2);return function(){return f.apply(m,k.length?k.concat(P.call(arguments)):arguments)}}var s=0;function c(f){return"_leaflet_id"in f||(f._leaflet_id=++s),f._leaflet_id}function u(f,m,P){var k,U,te,pe;return pe=function(){k=!1,U&&(te.apply(P,U),U=!1)},te=function(){k?U=arguments:(f.apply(P,arguments),setTimeout(pe,m),k=!0)},te}function h(f,m,P){var k=m[1],U=m[0],te=k-U;return f===k&&P?f:((f-U)%te+te)%te+U}function p(){return!1}function v(f,m){if(m===!1)return f;var P=Math.pow(10,m===void 0?6:m);return Math.round(f*P)/P}function b(f){return f.trim?f.trim():f.replace(/^\s+|\s+$/g,"")}function x(f){return b(f).split(/\s+/)}function _(f,m){Object.prototype.hasOwnProperty.call(f,"options")||(f.options=f.options?o(f.options):{});for(var P in m)f.options[P]=m[P];return f.options}function w(f,m,P){var k=[];for(var U in f)k.push(encodeURIComponent(P?U.toUpperCase():U)+"="+encodeURIComponent(f[U]));return(!m||m.indexOf("?")===-1?"?":"&")+k.join("&")}var O=/\{ *([\w_ -]+) *\}/g;function S(f,m){return f.replace(O,function(P,k){var U=m[k];if(U===void 0)throw new Error("No value provided for variable "+P);return typeof U=="function"&&(U=U(m)),U})}var E=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function T(f,m){for(var P=0;P<f.length;P++)if(f[P]===m)return P;return-1}var A="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function j(f){return window["webkit"+f]||window["moz"+f]||window["ms"+f]}var N=0;function F(f){var m=+new Date,P=Math.max(0,16-(m-N));return N=m+P,window.setTimeout(f,P)}var V=window.requestAnimationFrame||j("RequestAnimationFrame")||F,B=window.cancelAnimationFrame||j("CancelAnimationFrame")||j("CancelRequestAnimationFrame")||function(f){window.clearTimeout(f)};function W(f,m,P){if(P&&V===F)f.call(m);else return V.call(window,a(f,m))}function q(f){f&&B.call(window,f)}var J={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:c,throttle:u,wrapNum:h,falseFn:p,formatNum:v,trim:b,splitWords:x,setOptions:_,getParamString:w,template:S,isArray:E,indexOf:T,emptyImageUrl:A,requestFn:V,cancelFn:B,requestAnimFrame:W,cancelAnimFrame:q};function Q(){}Q.extend=function(f){var m=function(){_(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},P=m.__super__=this.prototype,k=o(P);k.constructor=m,m.prototype=k;for(var U in this)Object.prototype.hasOwnProperty.call(this,U)&&U!=="prototype"&&U!=="__super__"&&(m[U]=this[U]);return f.statics&&i(m,f.statics),f.includes&&(ne(f.includes),i.apply(null,[k].concat(f.includes))),i(k,f),delete k.statics,delete k.includes,k.options&&(k.options=P.options?o(P.options):{},i(k.options,f.options)),k._initHooks=[],k.callInitHooks=function(){if(!this._initHooksCalled){P.callInitHooks&&P.callInitHooks.call(this),this._initHooksCalled=!0;for(var te=0,pe=k._initHooks.length;te<pe;te++)k._initHooks[te].call(this)}},m},Q.include=function(f){var m=this.prototype.options;return i(this.prototype,f),f.options&&(this.prototype.options=m,this.mergeOptions(f.options)),this},Q.mergeOptions=function(f){return i(this.prototype.options,f),this},Q.addInitHook=function(f){var m=Array.prototype.slice.call(arguments,1),P=typeof f=="function"?f:function(){this[f].apply(this,m)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(P),this};function ne(f){if(!(typeof L>"u"||!L||!L.Mixin)){f=E(f)?f:[f];for(var m=0;m<f.length;m++)f[m]===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 ae={on:function(f,m,P){if(typeof f=="object")for(var k in f)this._on(k,f[k],m);else{f=x(f);for(var U=0,te=f.length;U<te;U++)this._on(f[U],m,P)}return this},off:function(f,m,P){if(!arguments.length)delete this._events;else if(typeof f=="object")for(var k in f)this._off(k,f[k],m);else{f=x(f);for(var U=arguments.length===1,te=0,pe=f.length;te<pe;te++)U?this._off(f[te]):this._off(f[te],m,P)}return this},_on:function(f,m,P,k){if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}if(this._listens(f,m,P)===!1){P===this&&(P=void 0);var U={fn:m,ctx:P};k&&(U.once=!0),this._events=this._events||{},this._events[f]=this._events[f]||[],this._events[f].push(U)}},_off:function(f,m,P){var k,U,te;if(this._events&&(k=this._events[f],!!k)){if(arguments.length===1){if(this._firingCount)for(U=0,te=k.length;U<te;U++)k[U].fn=p;delete this._events[f];return}if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}var pe=this._listens(f,m,P);if(pe!==!1){var _e=k[pe];this._firingCount&&(_e.fn=p,this._events[f]=k=k.slice()),k.splice(pe,1)}}},fire:function(f,m,P){if(!this.listens(f,P))return this;var k=i({},m,{type:f,target:this,sourceTarget:m&&m.sourceTarget||this});if(this._events){var U=this._events[f];if(U){this._firingCount=this._firingCount+1||1;for(var te=0,pe=U.length;te<pe;te++){var _e=U[te],Pe=_e.fn;_e.once&&this.off(f,Pe,_e.ctx),Pe.call(_e.ctx||this,k)}this._firingCount--}}return P&&this._propagateEvent(k),this},listens:function(f,m,P,k){typeof f!="string"&&console.warn('"string" type argument expected');var U=m;typeof m!="function"&&(k=!!m,U=void 0,P=void 0);var te=this._events&&this._events[f];if(te&&te.length&&this._listens(f,U,P)!==!1)return!0;if(k){for(var pe in this._eventParents)if(this._eventParents[pe].listens(f,m,P,k))return!0}return!1},_listens:function(f,m,P){if(!this._events)return!1;var k=this._events[f]||[];if(!m)return!!k.length;P===this&&(P=void 0);for(var U=0,te=k.length;U<te;U++)if(k[U].fn===m&&k[U].ctx===P)return U;return!1},once:function(f,m,P){if(typeof f=="object")for(var k in f)this._on(k,f[k],m,!0);else{f=x(f);for(var U=0,te=f.length;U<te;U++)this._on(f[U],m,P,!0)}return this},addEventParent:function(f){return this._eventParents=this._eventParents||{},this._eventParents[c(f)]=f,this},removeEventParent:function(f){return this._eventParents&&delete this._eventParents[c(f)],this},_propagateEvent:function(f){for(var m in this._eventParents)this._eventParents[m].fire(f.type,i({layer:f.target,propagatedFrom:f.target},f),!0)}};ae.addEventListener=ae.on,ae.removeEventListener=ae.clearAllEventListeners=ae.off,ae.addOneTimeEventListener=ae.once,ae.fireEvent=ae.fire,ae.hasEventListeners=ae.listens;var se=Q.extend(ae);function oe(f,m,P){this.x=P?Math.round(f):f,this.y=P?Math.round(m):m}var K=Math.trunc||function(f){return f>0?Math.floor(f):Math.ceil(f)};oe.prototype={clone:function(){return new oe(this.x,this.y)},add:function(f){return this.clone()._add(G(f))},_add:function(f){return this.x+=f.x,this.y+=f.y,this},subtract:function(f){return this.clone()._subtract(G(f))},_subtract:function(f){return this.x-=f.x,this.y-=f.y,this},divideBy:function(f){return this.clone()._divideBy(f)},_divideBy:function(f){return this.x/=f,this.y/=f,this},multiplyBy:function(f){return this.clone()._multiplyBy(f)},_multiplyBy:function(f){return this.x*=f,this.y*=f,this},scaleBy:function(f){return new oe(this.x*f.x,this.y*f.y)},unscaleBy:function(f){return new oe(this.x/f.x,this.y/f.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=K(this.x),this.y=K(this.y),this},distanceTo:function(f){f=G(f);var m=f.x-this.x,P=f.y-this.y;return Math.sqrt(m*m+P*P)},equals:function(f){return f=G(f),f.x===this.x&&f.y===this.y},contains:function(f){return f=G(f),Math.abs(f.x)<=Math.abs(this.x)&&Math.abs(f.y)<=Math.abs(this.y)},toString:function(){return"Point("+v(this.x)+", "+v(this.y)+")"}};function G(f,m,P){return f instanceof oe?f:E(f)?new oe(f[0],f[1]):f==null?f:typeof f=="object"&&"x"in f&&"y"in f?new oe(f.x,f.y):new oe(f,m,P)}function z(f,m){if(f)for(var P=m?[f,m]:f,k=0,U=P.length;k<U;k++)this.extend(P[k])}z.prototype={extend:function(f){var m,P;if(!f)return this;if(f instanceof oe||typeof f[0]=="number"||"x"in f)m=P=G(f);else if(f=re(f),m=f.min,P=f.max,!m||!P)return this;return!this.min&&!this.max?(this.min=m.clone(),this.max=P.clone()):(this.min.x=Math.min(m.x,this.min.x),this.max.x=Math.max(P.x,this.max.x),this.min.y=Math.min(m.y,this.min.y),this.max.y=Math.max(P.y,this.max.y)),this},getCenter:function(f){return G((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,f)},getBottomLeft:function(){return G(this.min.x,this.max.y)},getTopRight:function(){return G(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(f){var m,P;return typeof f[0]=="number"||f instanceof oe?f=G(f):f=re(f),f instanceof z?(m=f.min,P=f.max):m=P=f,m.x>=this.min.x&&P.x<=this.max.x&&m.y>=this.min.y&&P.y<=this.max.y},intersects:function(f){f=re(f);var m=this.min,P=this.max,k=f.min,U=f.max,te=U.x>=m.x&&k.x<=P.x,pe=U.y>=m.y&&k.y<=P.y;return te&&pe},overlaps:function(f){f=re(f);var m=this.min,P=this.max,k=f.min,U=f.max,te=U.x>m.x&&k.x<P.x,pe=U.y>m.y&&k.y<P.y;return te&&pe},isValid:function(){return!!(this.min&&this.max)},pad:function(f){var m=this.min,P=this.max,k=Math.abs(m.x-P.x)*f,U=Math.abs(m.y-P.y)*f;return re(G(m.x-k,m.y-U),G(P.x+k,P.y+U))},equals:function(f){return f?(f=re(f),this.min.equals(f.getTopLeft())&&this.max.equals(f.getBottomRight())):!1}};function re(f,m){return!f||f instanceof z?f:new z(f,m)}function X(f,m){if(f)for(var P=m?[f,m]:f,k=0,U=P.length;k<U;k++)this.extend(P[k])}X.prototype={extend:function(f){var m=this._southWest,P=this._northEast,k,U;if(f instanceof ce)k=f,U=f;else if(f instanceof X){if(k=f._southWest,U=f._northEast,!k||!U)return this}else return f?this.extend(de(f)||le(f)):this;return!m&&!P?(this._southWest=new ce(k.lat,k.lng),this._northEast=new ce(U.lat,U.lng)):(m.lat=Math.min(k.lat,m.lat),m.lng=Math.min(k.lng,m.lng),P.lat=Math.max(U.lat,P.lat),P.lng=Math.max(U.lng,P.lng)),this},pad:function(f){var m=this._southWest,P=this._northEast,k=Math.abs(m.lat-P.lat)*f,U=Math.abs(m.lng-P.lng)*f;return new X(new ce(m.lat-k,m.lng-U),new ce(P.lat+k,P.lng+U))},getCenter:function(){return new ce((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 ce(this.getNorth(),this.getWest())},getSouthEast:function(){return new ce(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(f){typeof f[0]=="number"||f instanceof ce||"lat"in f?f=de(f):f=le(f);var m=this._southWest,P=this._northEast,k,U;return f instanceof X?(k=f.getSouthWest(),U=f.getNorthEast()):k=U=f,k.lat>=m.lat&&U.lat<=P.lat&&k.lng>=m.lng&&U.lng<=P.lng},intersects:function(f){f=le(f);var m=this._southWest,P=this._northEast,k=f.getSouthWest(),U=f.getNorthEast(),te=U.lat>=m.lat&&k.lat<=P.lat,pe=U.lng>=m.lng&&k.lng<=P.lng;return te&&pe},overlaps:function(f){f=le(f);var m=this._southWest,P=this._northEast,k=f.getSouthWest(),U=f.getNorthEast(),te=U.lat>m.lat&&k.lat<P.lat,pe=U.lng>m.lng&&k.lng<P.lng;return te&&pe},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(f,m){return f?(f=le(f),this._southWest.equals(f.getSouthWest(),m)&&this._northEast.equals(f.getNorthEast(),m)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function le(f,m){return f instanceof X?f:new X(f,m)}function ce(f,m,P){if(isNaN(f)||isNaN(m))throw new Error("Invalid LatLng object: ("+f+", "+m+")");this.lat=+f,this.lng=+m,P!==void 0&&(this.alt=+P)}ce.prototype={equals:function(f,m){if(!f)return!1;f=de(f);var P=Math.max(Math.abs(this.lat-f.lat),Math.abs(this.lng-f.lng));return P<=(m===void 0?1e-9:m)},toString:function(f){return"LatLng("+v(this.lat,f)+", "+v(this.lng,f)+")"},distanceTo:function(f){return M.distance(this,de(f))},wrap:function(){return M.wrapLatLng(this)},toBounds:function(f){var m=180*f/40075017,P=m/Math.cos(Math.PI/180*this.lat);return le([this.lat-m,this.lng-P],[this.lat+m,this.lng+P])},clone:function(){return new ce(this.lat,this.lng,this.alt)}};function de(f,m,P){return f instanceof ce?f:E(f)&&typeof f[0]!="object"?f.length===3?new ce(f[0],f[1],f[2]):f.length===2?new ce(f[0],f[1]):null:f==null?f:typeof f=="object"&&"lat"in f?new ce(f.lat,"lng"in f?f.lng:f.lon,f.alt):m===void 0?null:new ce(f,m,P)}var be={latLngToPoint:function(f,m){var P=this.projection.project(f),k=this.scale(m);return this.transformation._transform(P,k)},pointToLatLng:function(f,m){var P=this.scale(m),k=this.transformation.untransform(f,P);return this.projection.unproject(k)},project:function(f){return this.projection.project(f)},unproject:function(f){return this.projection.unproject(f)},scale:function(f){return 256*Math.pow(2,f)},zoom:function(f){return Math.log(f/256)/Math.LN2},getProjectedBounds:function(f){if(this.infinite)return null;var m=this.projection.bounds,P=this.scale(f),k=this.transformation.transform(m.min,P),U=this.transformation.transform(m.max,P);return new z(k,U)},infinite:!1,wrapLatLng:function(f){var m=this.wrapLng?h(f.lng,this.wrapLng,!0):f.lng,P=this.wrapLat?h(f.lat,this.wrapLat,!0):f.lat,k=f.alt;return new ce(P,m,k)},wrapLatLngBounds:function(f){var m=f.getCenter(),P=this.wrapLatLng(m),k=m.lat-P.lat,U=m.lng-P.lng;if(k===0&&U===0)return f;var te=f.getSouthWest(),pe=f.getNorthEast(),_e=new ce(te.lat-k,te.lng-U),Pe=new ce(pe.lat-k,pe.lng-U);return new X(_e,Pe)}},M=i({},be,{wrapLng:[-180,180],R:6371e3,distance:function(f,m){var P=Math.PI/180,k=f.lat*P,U=m.lat*P,te=Math.sin((m.lat-f.lat)*P/2),pe=Math.sin((m.lng-f.lng)*P/2),_e=te*te+Math.cos(k)*Math.cos(U)*pe*pe,Pe=2*Math.atan2(Math.sqrt(_e),Math.sqrt(1-_e));return this.R*Pe}}),$=6378137,Y={R:$,MAX_LATITUDE:85.0511287798,project:function(f){var m=Math.PI/180,P=this.MAX_LATITUDE,k=Math.max(Math.min(P,f.lat),-P),U=Math.sin(k*m);return new oe(this.R*f.lng*m,this.R*Math.log((1+U)/(1-U))/2)},unproject:function(f){var m=180/Math.PI;return new ce((2*Math.atan(Math.exp(f.y/this.R))-Math.PI/2)*m,f.x*m/this.R)},bounds:function(){var f=$*Math.PI;return new z([-f,-f],[f,f])}()};function ue(f,m,P,k){if(E(f)){this._a=f[0],this._b=f[1],this._c=f[2],this._d=f[3];return}this._a=f,this._b=m,this._c=P,this._d=k}ue.prototype={transform:function(f,m){return this._transform(f.clone(),m)},_transform:function(f,m){return m=m||1,f.x=m*(this._a*f.x+this._b),f.y=m*(this._c*f.y+this._d),f},untransform:function(f,m){return m=m||1,new oe((f.x/m-this._b)/this._a,(f.y/m-this._d)/this._c)}};function ie(f,m,P,k){return new ue(f,m,P,k)}var he=i({},M,{code:"EPSG:3857",projection:Y,transformation:function(){var f=.5/(Math.PI*Y.R);return ie(f,.5,-f,.5)}()}),Se=i({},he,{code:"EPSG:900913"});function Fe(f){return document.createElementNS("http://www.w3.org/2000/svg",f)}function ge(f,m){var P="",k,U,te,pe,_e,Pe;for(k=0,te=f.length;k<te;k++){for(_e=f[k],U=0,pe=_e.length;U<pe;U++)Pe=_e[U],P+=(U?"L":"M")+Pe.x+" "+Pe.y;P+=m?nt.svg?"z":"x":""}return P||"M0 0"}var Ee=document.documentElement.style,je="ActiveXObject"in window,Me=je&&!document.addEventListener,He="msLaunchUri"in navigator&&!("documentMode"in document),Be=mr("webkit"),qe=mr("android"),ye=mr("android 2")||mr("android 3"),we=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ae=qe&&mr("Google")&&we<537&&!("AudioNode"in window),ke=!!window.opera,De=!He&&mr("chrome"),Ke=mr("gecko")&&!Be&&!ke&&!je,Xe=!De&&mr("safari"),bt=mr("phantom"),Ot="OTransition"in Ee,xt=navigator.platform.indexOf("Win")===0,Jt=je&&"transition"in Ee,Gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ye,jr="MozPerspective"in Ee,Lr=!window.L_DISABLE_3D&&(Jt||Gt||jr)&&!Ot&&!bt,Nn=typeof orientation<"u"||mr("mobile"),Pr=Nn&&Be,fa=Nn&&Gt,Mn=!window.PointerEvent&&window.MSPointerEvent,Ji=!!(window.PointerEvent||Mn),eo="ontouchstart"in window||!!window.TouchEvent,xl=!window.L_NO_TOUCH&&(eo||Ji),is=Nn&&ke,Ro=Nn&&Ke,dr=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,or=function(){var f=!1;try{var m=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("testPassiveEventSupport",p,m),window.removeEventListener("testPassiveEventSupport",p,m)}catch{}return f}(),Ir=function(){return!!document.createElement("canvas").getContext}(),Ar=!!(document.createElementNS&&Fe("svg").createSVGRect),hr=!!Ar&&function(){var f=document.createElement("div");return f.innerHTML="<svg/>",(f.firstChild&&f.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),pr=!Ar&&function(){try{var f=document.createElement("div");f.innerHTML='<v:shape adj="1"/>';var m=f.firstChild;return m.style.behavior="url(#default#VML)",m&&typeof m.adj=="object"}catch{return!1}}(),en=navigator.platform.indexOf("Mac")===0,Xn=navigator.platform.indexOf("Linux")===0;function mr(f){return navigator.userAgent.toLowerCase().indexOf(f)>=0}var nt={ie:je,ielt9:Me,edge:He,webkit:Be,android:qe,android23:ye,androidStock:Ae,opera:ke,chrome:De,gecko:Ke,safari:Xe,phantom:bt,opera12:Ot,win:xt,ie3d:Jt,webkit3d:Gt,gecko3d:jr,any3d:Lr,mobile:Nn,mobileWebkit:Pr,mobileWebkit3d:fa,msPointer:Mn,pointer:Ji,touch:xl,touchNative:eo,mobileOpera:is,mobileGecko:Ro,retina:dr,passiveEvents:or,canvas:Ir,svg:Ar,vml:pr,inlineSvg:hr,mac:en,linux:Xn},wl=nt.msPointer?"MSPointerDown":"pointerdown",Uu=nt.msPointer?"MSPointerMove":"pointermove",Pm=nt.msPointer?"MSPointerUp":"pointerup",Cm=nt.msPointer?"MSPointerCancel":"pointercancel",hd={touchstart:wl,touchmove:Uu,touchend:Pm,touchcancel:Cm},No={touchstart:vr,touchmove:zu,touchend:zu,touchcancel:zu},da={},pd=!1;function $b(f,m,P){return m==="touchstart"&&Fb(),No[m]?(P=No[m].bind(this,P),f.addEventListener(hd[m],P,!1),P):(console.warn("wrong event specified:",m),p)}function Em(f,m,P){if(!hd[m]){console.warn("wrong event specified:",m);return}f.removeEventListener(hd[m],P,!1)}function Tm(f){da[f.pointerId]=f}function jm(f){da[f.pointerId]&&(da[f.pointerId]=f)}function md(f){delete da[f.pointerId]}function Fb(){pd||(document.addEventListener(wl,Tm,!0),document.addEventListener(Uu,jm,!0),document.addEventListener(Pm,md,!0),document.addEventListener(Cm,md,!0),pd=!0)}function zu(f,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){m.touches=[];for(var P in da)m.touches.push(da[P]);m.changedTouches=[m],f(m)}}function vr(f,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&gr(m),zu(f,m)}function Bb(f){var m={},P,k;for(k in f)P=f[k],m[k]=P&&P.bind?P.bind(f):P;return f=m,m.type="dblclick",m.detail=2,m.isTrusted=!1,m._simulated=!0,m}var vd=200;function Am(f,m){f.addEventListener("dblclick",m);var P=0,k;function U(te){if(te.detail!==1){k=te.detail;return}if(!(te.pointerType==="mouse"||te.sourceCapabilities&&!te.sourceCapabilities.firesTouchEvents)){var pe=ma(te);if(!(pe.some(function(Pe){return Pe instanceof HTMLLabelElement&&Pe.attributes.for})&&!pe.some(function(Pe){return Pe instanceof HTMLInputElement||Pe instanceof HTMLSelectElement}))){var _e=Date.now();_e-P<=vd?(k++,k===2&&m(Bb(te))):k=1,P=_e}}}return f.addEventListener("click",U),{dblclick:m,simDblclick:U}}function Vu(f,m){f.removeEventListener("dblclick",m.dblclick),f.removeEventListener("click",m.simDblclick)}var gd=ls(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),os=ls(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ol=os==="webkitTransition"||os==="OTransition"?os+"End":"transitionend";function Qn(f){return typeof f=="string"?document.getElementById(f):f}function Sl(f,m){var P=f.style[m]||f.currentStyle&&f.currentStyle[m];if((!P||P==="auto")&&document.defaultView){var k=document.defaultView.getComputedStyle(f,null);P=k?k[m]:null}return P==="auto"?null:P}function wt(f,m,P){var k=document.createElement(f);return k.className=m||"",P&&P.appendChild(k),k}function er(f){var m=f.parentNode;m&&m.removeChild(f)}function Wu(f){for(;f.firstChild;)f.removeChild(f.firstChild)}function as(f){var m=f.parentNode;m&&m.lastChild!==f&&m.appendChild(f)}function to(f){var m=f.parentNode;m&&m.firstChild!==f&&m.insertBefore(f,m.firstChild)}function ss(f,m){if(f.classList!==void 0)return f.classList.contains(m);var P=qu(f);return P.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(P)}function gt(f,m){if(f.classList!==void 0)for(var P=x(m),k=0,U=P.length;k<U;k++)f.classList.add(P[k]);else if(!ss(f,m)){var te=qu(f);yd(f,(te?te+" ":"")+m)}}function Kt(f,m){f.classList!==void 0?f.classList.remove(m):yd(f,b((" "+qu(f)+" ").replace(" "+m+" "," ")))}function yd(f,m){f.className.baseVal===void 0?f.className=m:f.className.baseVal=m}function qu(f){return f.correspondingElement&&(f=f.correspondingElement),f.className.baseVal===void 0?f.className:f.className.baseVal}function sn(f,m){"opacity"in f.style?f.style.opacity=m:"filter"in f.style&&km(f,m)}function km(f,m){var P=!1,k="DXImageTransform.Microsoft.Alpha";try{P=f.filters.item(k)}catch{if(m===1)return}m=Math.round(m*100),P?(P.Enabled=m!==100,P.Opacity=m):f.style.filter+=" progid:"+k+"(opacity="+m+")"}function ls(f){for(var m=document.documentElement.style,P=0;P<f.length;P++)if(f[P]in m)return f[P];return!1}function Jn(f,m,P){var k=m||new oe(0,0);f.style[gd]=(nt.ie3d?"translate("+k.x+"px,"+k.y+"px)":"translate3d("+k.x+"px,"+k.y+"px,0)")+(P?" scale("+P+")":"")}function xr(f,m){f._leaflet_pos=m,nt.any3d?Jn(f,m):(f.style.left=m.x+"px",f.style.top=m.y+"px")}function ro(f){return f._leaflet_pos||new oe(0,0)}var Rt,us,Hu;if("onselectstart"in document)Rt=function(){pt(window,"selectstart",gr)},us=function(){Bt(window,"selectstart",gr)};else{var ha=ls(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Rt=function(){if(ha){var f=document.documentElement.style;Hu=f[ha],f[ha]="none"}},us=function(){ha&&(document.documentElement.style[ha]=Hu,Hu=void 0)}}function Gu(){pt(window,"dragstart",gr)}function Ku(){Bt(window,"dragstart",gr)}var Pl,Cl;function cs(f){for(;f.tabIndex===-1;)f=f.parentNode;f.style&&(ei(),Pl=f,Cl=f.style.outlineStyle,f.style.outlineStyle="none",pt(window,"keydown",ei))}function ei(){Pl&&(Pl.style.outlineStyle=Cl,Pl=void 0,Cl=void 0,Bt(window,"keydown",ei))}function no(f){do f=f.parentNode;while((!f.offsetWidth||!f.offsetHeight)&&f!==document.body);return f}function Si(f){var m=f.getBoundingClientRect();return{x:m.width/f.offsetWidth||1,y:m.height/f.offsetHeight||1,boundingClientRect:m}}var El={__proto__:null,TRANSFORM:gd,TRANSITION:os,TRANSITION_END:Ol,get:Qn,getStyle:Sl,create:wt,remove:er,empty:Wu,toFront:as,toBack:to,hasClass:ss,addClass:gt,removeClass:Kt,setClass:yd,getClass:qu,setOpacity:sn,testProp:ls,setTransform:Jn,setPosition:xr,getPosition:ro,get disableTextSelection(){return Rt},get enableTextSelection(){return us},disableImageDrag:Gu,enableImageDrag:Ku,preventOutline:cs,restoreOutline:ei,getSizedParentNode:no,getScale:Si};function pt(f,m,P,k){if(m&&typeof m=="object")for(var U in m)_d(f,U,m[U],P);else{m=x(m);for(var te=0,pe=m.length;te<pe;te++)_d(f,m[te],P,k)}return this}var Dr="_leaflet_events";function Bt(f,m,P,k){if(arguments.length===1)bd(f),delete f[Dr];else if(m&&typeof m=="object")for(var U in m)Yu(f,U,m[U],P);else if(m=x(m),arguments.length===2)bd(f,function(_e){return T(m,_e)!==-1});else for(var te=0,pe=m.length;te<pe;te++)Yu(f,m[te],P,k);return this}function bd(f,m){for(var P in f[Dr]){var k=P.split(/\d/)[0];(!m||m(k))&&Yu(f,k,null,null,P)}}var pa={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function _d(f,m,P,k){var U=m+c(P)+(k?"_"+c(k):"");if(f[Dr]&&f[Dr][U])return this;var te=function(_e){return P.call(k||f,_e||window.event)},pe=te;!nt.touchNative&&nt.pointer&&m.indexOf("touch")===0?te=$b(f,m,te):nt.touch&&m==="dblclick"?te=Am(f,te):"addEventListener"in f?m==="touchstart"||m==="touchmove"||m==="wheel"||m==="mousewheel"?f.addEventListener(pa[m]||m,te,nt.passiveEvents?{passive:!1}:!1):m==="mouseenter"||m==="mouseleave"?(te=function(_e){_e=_e||window.event,Al(f,_e)&&pe(_e)},f.addEventListener(pa[m],te,!1)):f.addEventListener(m,pe,!1):f.attachEvent("on"+m,te),f[Dr]=f[Dr]||{},f[Dr][U]=te}function Yu(f,m,P,k,U){U=U||m+c(P)+(k?"_"+c(k):"");var te=f[Dr]&&f[Dr][U];if(!te)return this;!nt.touchNative&&nt.pointer&&m.indexOf("touch")===0?Em(f,m,te):nt.touch&&m==="dblclick"?Vu(f,te):"removeEventListener"in f?f.removeEventListener(pa[m]||m,te,!1):f.detachEvent("on"+m,te),f[Dr][U]=null}function Pi(f){return f.stopPropagation?f.stopPropagation():f.originalEvent?f.originalEvent._stopped=!0:f.cancelBubble=!0,this}function Zu(f){return _d(f,"wheel",Pi),this}function Tl(f){return pt(f,"mousedown touchstart dblclick contextmenu",Pi),f._leaflet_disable_click=!0,this}function gr(f){return f.preventDefault?f.preventDefault():f.returnValue=!1,this}function ti(f){return gr(f),Pi(f),this}function ma(f){if(f.composedPath)return f.composedPath();for(var m=[],P=f.target;P;)m.push(P),P=P.parentNode;return m}function jl(f,m){if(!m)return new oe(f.clientX,f.clientY);var P=Si(m),k=P.boundingClientRect;return new oe((f.clientX-k.left)/P.x-m.clientLeft,(f.clientY-k.top)/P.y-m.clientTop)}var Ub=nt.linux&&nt.chrome?window.devicePixelRatio:nt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Rm(f){return nt.edge?f.wheelDeltaY/2:f.deltaY&&f.deltaMode===0?-f.deltaY/Ub:f.deltaY&&f.deltaMode===1?-f.deltaY*20:f.deltaY&&f.deltaMode===2?-f.deltaY*60:f.deltaX||f.deltaZ?0:f.wheelDelta?(f.wheelDeltaY||f.wheelDelta)/2:f.detail&&Math.abs(f.detail)<32765?-f.detail*20:f.detail?f.detail/-32765*60:0}function Al(f,m){var P=m.relatedTarget;if(!P)return!0;try{for(;P&&P!==f;)P=P.parentNode}catch{return!1}return P!==f}var Xu={__proto__:null,on:pt,off:Bt,stopPropagation:Pi,disableScrollPropagation:Zu,disableClickPropagation:Tl,preventDefault:gr,stop:ti,getPropagationPath:ma,getMousePosition:jl,getWheelDelta:Rm,isExternalTarget:Al,addListener:pt,removeListener:Bt},Qu=se.extend({run:function(f,m,P,k){this.stop(),this._el=f,this._inProgress=!0,this._duration=P||.25,this._easeOutPower=1/Math.max(k||.5,.2),this._startPos=ro(f),this._offset=m.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=W(this._animate,this),this._step()},_step:function(f){var m=+new Date-this._startTime,P=this._duration*1e3;m<P?this._runFrame(this._easeOut(m/P),f):(this._runFrame(1),this._complete())},_runFrame:function(f,m){var P=this._startPos.add(this._offset.multiplyBy(f));m&&P._round(),xr(this._el,P),this.fire("step")},_complete:function(){q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(f){return 1-Math.pow(1-f,this._easeOutPower)}}),Tt=se.extend({options:{crs:he,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(f,m){m=_(this,m),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(f),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),m.maxBounds&&this.setMaxBounds(m.maxBounds),m.zoom!==void 0&&(this._zoom=this._limitZoom(m.zoom)),m.center&&m.zoom!==void 0&&this.setView(de(m.center),m.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=os&&nt.any3d&&!nt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),pt(this._proxy,Ol,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(f,m,P){if(m=m===void 0?this._zoom:this._limitZoom(m),f=this._limitCenter(de(f),m,this.options.maxBounds),P=P||{},this._stop(),this._loaded&&!P.reset&&P!==!0){P.animate!==void 0&&(P.zoom=i({animate:P.animate},P.zoom),P.pan=i({animate:P.animate,duration:P.duration},P.pan));var k=this._zoom!==m?this._tryAnimatedZoom&&this._tryAnimatedZoom(f,m,P.zoom):this._tryAnimatedPan(f,P.pan);if(k)return clearTimeout(this._sizeTimer),this}return this._resetView(f,m,P.pan&&P.pan.noMoveStart),this},setZoom:function(f,m){return this._loaded?this.setView(this.getCenter(),f,{zoom:m}):(this._zoom=f,this)},zoomIn:function(f,m){return f=f||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+f,m)},zoomOut:function(f,m){return f=f||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-f,m)},setZoomAround:function(f,m,P){var k=this.getZoomScale(m),U=this.getSize().divideBy(2),te=f instanceof oe?f:this.latLngToContainerPoint(f),pe=te.subtract(U).multiplyBy(1-1/k),_e=this.containerPointToLatLng(U.add(pe));return this.setView(_e,m,{zoom:P})},_getBoundsCenterZoom:function(f,m){m=m||{},f=f.getBounds?f.getBounds():le(f);var P=G(m.paddingTopLeft||m.padding||[0,0]),k=G(m.paddingBottomRight||m.padding||[0,0]),U=this.getBoundsZoom(f,!1,P.add(k));if(U=typeof m.maxZoom=="number"?Math.min(m.maxZoom,U):U,U===1/0)return{center:f.getCenter(),zoom:U};var te=k.subtract(P).divideBy(2),pe=this.project(f.getSouthWest(),U),_e=this.project(f.getNorthEast(),U),Pe=this.unproject(pe.add(_e).divideBy(2).add(te),U);return{center:Pe,zoom:U}},fitBounds:function(f,m){if(f=le(f),!f.isValid())throw new Error("Bounds are not valid.");var P=this._getBoundsCenterZoom(f,m);return this.setView(P.center,P.zoom,m)},fitWorld:function(f){return this.fitBounds([[-90,-180],[90,180]],f)},panTo:function(f,m){return this.setView(f,this._zoom,{pan:m})},panBy:function(f,m){if(f=G(f).round(),m=m||{},!f.x&&!f.y)return this.fire("moveend");if(m.animate!==!0&&!this.getSize().contains(f))return this._resetView(this.unproject(this.project(this.getCenter()).add(f)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Qu,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),m.noMoveStart||this.fire("movestart"),m.animate!==!1){gt(this._mapPane,"leaflet-pan-anim");var P=this._getMapPanePos().subtract(f).round();this._panAnim.run(this._mapPane,P,m.duration||.25,m.easeLinearity)}else this._rawPanBy(f),this.fire("move").fire("moveend");return this},flyTo:function(f,m,P){if(P=P||{},P.animate===!1||!nt.any3d)return this.setView(f,m,P);this._stop();var k=this.project(this.getCenter()),U=this.project(f),te=this.getSize(),pe=this._zoom;f=de(f),m=m===void 0?pe:m;var _e=Math.max(te.x,te.y),Pe=_e*this.getZoomScale(pe,m),Re=U.distanceTo(k)||1,Ze=1.42,st=Ze*Ze;function St(Dt){var Ps=Dt?-1:1,t_=Dt?Pe:_e,r_=Pe*Pe-_e*_e+Ps*st*st*Re*Re,wa=2*t_*st*Re,Oa=r_/wa,Sa=Math.sqrt(Oa*Oa+1)-Oa,dc=Sa<1e-9?-18:Math.log(Sa);return dc}function $r(Dt){return(Math.exp(Dt)-Math.exp(-Dt))/2}function kr(Dt){return(Math.exp(Dt)+Math.exp(-Dt))/2}function _n(Dt){return $r(Dt)/kr(Dt)}var un=St(0);function Os(Dt){return _e*(kr(un)/kr(un+Ze*Dt))}function Ud(Dt){return _e*(kr(un)*_n(un+Ze*Dt)-$r(un))/st}function Uo(Dt){return 1-Math.pow(1-Dt,1.5)}var Jm=Date.now(),xa=(St(1)-un)/Ze,ji=P.duration?1e3*P.duration:1e3*xa*.8;function Ss(){var Dt=(Date.now()-Jm)/ji,Ps=Uo(Dt)*xa;Dt<=1?(this._flyToFrame=W(Ss,this),this._move(this.unproject(k.add(U.subtract(k).multiplyBy(Ud(Ps)/Re)),pe),this.getScaleZoom(_e/Os(Ps),pe),{flyTo:!0})):this._move(f,m)._moveEnd(!0)}return this._moveStart(!0,P.noMoveStart),Ss.call(this),this},flyToBounds:function(f,m){var P=this._getBoundsCenterZoom(f,m);return this.flyTo(P.center,P.zoom,m)},setMaxBounds:function(f){return f=le(f),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),f.isValid()?(this.options.maxBounds=f,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(f){var m=this.options.minZoom;return this.options.minZoom=f,this._loaded&&m!==f&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(f):this},setMaxZoom:function(f){var m=this.options.maxZoom;return this.options.maxZoom=f,this._loaded&&m!==f&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(f):this},panInsideBounds:function(f,m){this._enforcingBounds=!0;var P=this.getCenter(),k=this._limitCenter(P,this._zoom,le(f));return P.equals(k)||this.panTo(k,m),this._enforcingBounds=!1,this},panInside:function(f,m){m=m||{};var P=G(m.paddingTopLeft||m.padding||[0,0]),k=G(m.paddingBottomRight||m.padding||[0,0]),U=this.project(this.getCenter()),te=this.project(f),pe=this.getPixelBounds(),_e=re([pe.min.add(P),pe.max.subtract(k)]),Pe=_e.getSize();if(!_e.contains(te)){this._enforcingBounds=!0;var Re=te.subtract(_e.getCenter()),Ze=_e.extend(te).getSize().subtract(Pe);U.x+=Re.x<0?-Ze.x:Ze.x,U.y+=Re.y<0?-Ze.y:Ze.y,this.panTo(this.unproject(U),m),this._enforcingBounds=!1}return this},invalidateSize:function(f){if(!this._loaded)return this;f=i({animate:!1,pan:!0},f===!0?{animate:!0}:f);var m=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var P=this.getSize(),k=m.divideBy(2).round(),U=P.divideBy(2).round(),te=k.subtract(U);return!te.x&&!te.y?this:(f.animate&&f.pan?this.panBy(te):(f.pan&&this._rawPanBy(te),this.fire("move"),f.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:m,newSize:P}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(f){if(f=this._locateOptions=i({timeout:1e4,watch:!1},f),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var m=a(this._handleGeolocationResponse,this),P=a(this._handleGeolocationError,this);return f.watch?this._locationWatchId=navigator.geolocation.watchPosition(m,P,f):navigator.geolocation.getCurrentPosition(m,P,f),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(f){if(this._container._leaflet_id){var m=f.code,P=f.message||(m===1?"permission denied":m===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:m,message:"Geolocation error: "+P+"."})}},_handleGeolocationResponse:function(f){if(this._container._leaflet_id){var m=f.coords.latitude,P=f.coords.longitude,k=new ce(m,P),U=k.toBounds(f.coords.accuracy*2),te=this._locateOptions;if(te.setView){var pe=this.getBoundsZoom(U);this.setView(k,te.maxZoom?Math.min(pe,te.maxZoom):pe)}var _e={latlng:k,bounds:U,timestamp:f.timestamp};for(var Pe in f.coords)typeof f.coords[Pe]=="number"&&(_e[Pe]=f.coords[Pe]);this.fire("locationfound",_e)}},addHandler:function(f,m){if(!m)return this;var P=this[f]=new m(this);return this._handlers.push(P),this.options[f]&&P.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(),er(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var f;for(f in this._layers)this._layers[f].remove();for(f in this._panes)er(this._panes[f]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(f,m){var P="leaflet-pane"+(f?" leaflet-"+f.replace("Pane","")+"-pane":""),k=wt("div",P,m||this._mapPane);return f&&(this._panes[f]=k),k},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var f=this.getPixelBounds(),m=this.unproject(f.getBottomLeft()),P=this.unproject(f.getTopRight());return new X(m,P)},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(f,m,P){f=le(f),P=G(P||[0,0]);var k=this.getZoom()||0,U=this.getMinZoom(),te=this.getMaxZoom(),pe=f.getNorthWest(),_e=f.getSouthEast(),Pe=this.getSize().subtract(P),Re=re(this.project(_e,k),this.project(pe,k)).getSize(),Ze=nt.any3d?this.options.zoomSnap:1,st=Pe.x/Re.x,St=Pe.y/Re.y,$r=m?Math.max(st,St):Math.min(st,St);return k=this.getScaleZoom($r,k),Ze&&(k=Math.round(k/(Ze/100))*(Ze/100),k=m?Math.ceil(k/Ze)*Ze:Math.floor(k/Ze)*Ze),Math.max(U,Math.min(te,k))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new oe(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(f,m){var P=this._getTopLeftPoint(f,m);return new z(P,P.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(f){return this.options.crs.getProjectedBounds(f===void 0?this.getZoom():f)},getPane:function(f){return typeof f=="string"?this._panes[f]:f},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(f,m){var P=this.options.crs;return m=m===void 0?this._zoom:m,P.scale(f)/P.scale(m)},getScaleZoom:function(f,m){var P=this.options.crs;m=m===void 0?this._zoom:m;var k=P.zoom(f*P.scale(m));return isNaN(k)?1/0:k},project:function(f,m){return m=m===void 0?this._zoom:m,this.options.crs.latLngToPoint(de(f),m)},unproject:function(f,m){return m=m===void 0?this._zoom:m,this.options.crs.pointToLatLng(G(f),m)},layerPointToLatLng:function(f){var m=G(f).add(this.getPixelOrigin());return this.unproject(m)},latLngToLayerPoint:function(f){var m=this.project(de(f))._round();return m._subtract(this.getPixelOrigin())},wrapLatLng:function(f){return this.options.crs.wrapLatLng(de(f))},wrapLatLngBounds:function(f){return this.options.crs.wrapLatLngBounds(le(f))},distance:function(f,m){return this.options.crs.distance(de(f),de(m))},containerPointToLayerPoint:function(f){return G(f).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(f){return G(f).add(this._getMapPanePos())},containerPointToLatLng:function(f){var m=this.containerPointToLayerPoint(G(f));return this.layerPointToLatLng(m)},latLngToContainerPoint:function(f){return this.layerPointToContainerPoint(this.latLngToLayerPoint(de(f)))},mouseEventToContainerPoint:function(f){return jl(f,this._container)},mouseEventToLayerPoint:function(f){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(f))},mouseEventToLatLng:function(f){return this.layerPointToLatLng(this.mouseEventToLayerPoint(f))},_initContainer:function(f){var m=this._container=Qn(f);if(m){if(m._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");pt(m,"scroll",this._onScroll,this),this._containerId=c(m)},_initLayout:function(){var f=this._container;this._fadeAnimated=this.options.fadeAnimation&&nt.any3d,gt(f,"leaflet-container"+(nt.touch?" leaflet-touch":"")+(nt.retina?" leaflet-retina":"")+(nt.ielt9?" leaflet-oldie":"")+(nt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var m=Sl(f,"position");m!=="absolute"&&m!=="relative"&&m!=="fixed"&&m!=="sticky"&&(f.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var f=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),xr(this._mapPane,new oe(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(gt(f.markerPane,"leaflet-zoom-hide"),gt(f.shadowPane,"leaflet-zoom-hide"))},_resetView:function(f,m,P){xr(this._mapPane,new oe(0,0));var k=!this._loaded;this._loaded=!0,m=this._limitZoom(m),this.fire("viewprereset");var U=this._zoom!==m;this._moveStart(U,P)._move(f,m)._moveEnd(U),this.fire("viewreset"),k&&this.fire("load")},_moveStart:function(f,m){return f&&this.fire("zoomstart"),m||this.fire("movestart"),this},_move:function(f,m,P,k){m===void 0&&(m=this._zoom);var U=this._zoom!==m;return this._zoom=m,this._lastCenter=f,this._pixelOrigin=this._getNewPixelOrigin(f),k?P&&P.pinch&&this.fire("zoom",P):((U||P&&P.pinch)&&this.fire("zoom",P),this.fire("move",P)),this},_moveEnd:function(f){return f&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(f){xr(this._mapPane,this._getMapPanePos().subtract(f))},_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(f){this._targets={},this._targets[c(this._container)]=this;var m=f?Bt:pt;m(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&m(window,"resize",this._onResize,this),nt.any3d&&this.options.transform3DLimit&&(f?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=W(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var f=this._getMapPanePos();Math.max(Math.abs(f.x),Math.abs(f.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(f,m){for(var P=[],k,U=m==="mouseout"||m==="mouseover",te=f.target||f.srcElement,pe=!1;te;){if(k=this._targets[c(te)],k&&(m==="click"||m==="preclick")&&this._draggableMoved(k)){pe=!0;break}if(k&&k.listens(m,!0)&&(U&&!Al(te,f)||(P.push(k),U))||te===this._container)break;te=te.parentNode}return!P.length&&!pe&&!U&&this.listens(m,!0)&&(P=[this]),P},_isClickDisabled:function(f){for(;f&&f!==this._container;){if(f._leaflet_disable_click)return!0;f=f.parentNode}},_handleDOMEvent:function(f){var m=f.target||f.srcElement;if(!(!this._loaded||m._leaflet_disable_events||f.type==="click"&&this._isClickDisabled(m))){var P=f.type;P==="mousedown"&&cs(m),this._fireDOMEvent(f,P)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(f,m,P){if(f.type==="click"){var k=i({},f);k.type="preclick",this._fireDOMEvent(k,k.type,P)}var U=this._findEventTargets(f,m);if(P){for(var te=[],pe=0;pe<P.length;pe++)P[pe].listens(m,!0)&&te.push(P[pe]);U=te.concat(U)}if(U.length){m==="contextmenu"&&gr(f);var _e=U[0],Pe={originalEvent:f};if(f.type!=="keypress"&&f.type!=="keydown"&&f.type!=="keyup"){var Re=_e.getLatLng&&(!_e._radius||_e._radius<=10);Pe.containerPoint=Re?this.latLngToContainerPoint(_e.getLatLng()):this.mouseEventToContainerPoint(f),Pe.layerPoint=this.containerPointToLayerPoint(Pe.containerPoint),Pe.latlng=Re?_e.getLatLng():this.layerPointToLatLng(Pe.layerPoint)}for(pe=0;pe<U.length;pe++)if(U[pe].fire(m,Pe,!0),Pe.originalEvent._stopped||U[pe].options.bubblingMouseEvents===!1&&T(this._mouseEvents,m)!==-1)return}},_draggableMoved:function(f){return f=f.dragging&&f.dragging.enabled()?f:this,f.dragging&&f.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var f=0,m=this._handlers.length;f<m;f++)this._handlers[f].disable()},whenReady:function(f,m){return this._loaded?f.call(m||this,{target:this}):this.on("load",f,m),this},_getMapPanePos:function(){return ro(this._mapPane)||new oe(0,0)},_moved:function(){var f=this._getMapPanePos();return f&&!f.equals([0,0])},_getTopLeftPoint:function(f,m){var P=f&&m!==void 0?this._getNewPixelOrigin(f,m):this.getPixelOrigin();return P.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(f,m){var P=this.getSize()._divideBy(2);return this.project(f,m)._subtract(P)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(f,m,P){var k=this._getNewPixelOrigin(P,m);return this.project(f,m)._subtract(k)},_latLngBoundsToNewLayerBounds:function(f,m,P){var k=this._getNewPixelOrigin(P,m);return re([this.project(f.getSouthWest(),m)._subtract(k),this.project(f.getNorthWest(),m)._subtract(k),this.project(f.getSouthEast(),m)._subtract(k),this.project(f.getNorthEast(),m)._subtract(k)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(f){return this.latLngToLayerPoint(f).subtract(this._getCenterLayerPoint())},_limitCenter:function(f,m,P){if(!P)return f;var k=this.project(f,m),U=this.getSize().divideBy(2),te=new z(k.subtract(U),k.add(U)),pe=this._getBoundsOffset(te,P,m);return Math.abs(pe.x)<=1&&Math.abs(pe.y)<=1?f:this.unproject(k.add(pe),m)},_limitOffset:function(f,m){if(!m)return f;var P=this.getPixelBounds(),k=new z(P.min.add(f),P.max.add(f));return f.add(this._getBoundsOffset(k,m))},_getBoundsOffset:function(f,m,P){var k=re(this.project(m.getNorthEast(),P),this.project(m.getSouthWest(),P)),U=k.min.subtract(f.min),te=k.max.subtract(f.max),pe=this._rebound(U.x,-te.x),_e=this._rebound(U.y,-te.y);return new oe(pe,_e)},_rebound:function(f,m){return f+m>0?Math.round(f-m)/2:Math.max(0,Math.ceil(f))-Math.max(0,Math.floor(m))},_limitZoom:function(f){var m=this.getMinZoom(),P=this.getMaxZoom(),k=nt.any3d?this.options.zoomSnap:1;return k&&(f=Math.round(f/k)*k),Math.max(m,Math.min(P,f))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Kt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(f,m){var P=this._getCenterOffset(f)._trunc();return(m&&m.animate)!==!0&&!this.getSize().contains(P)?!1:(this.panBy(P,m),!0)},_createAnimProxy:function(){var f=this._proxy=wt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(f),this.on("zoomanim",function(m){var P=gd,k=this._proxy.style[P];Jn(this._proxy,this.project(m.center,m.zoom),this.getZoomScale(m.zoom,1)),k===this._proxy.style[P]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){er(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var f=this.getCenter(),m=this.getZoom();Jn(this._proxy,this.project(f,m),this.getZoomScale(m,1))},_catchTransitionEnd:function(f){this._animatingZoom&&f.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(f,m,P){if(this._animatingZoom)return!0;if(P=P||{},!this._zoomAnimated||P.animate===!1||this._nothingToAnimate()||Math.abs(m-this._zoom)>this.options.zoomAnimationThreshold)return!1;var k=this.getZoomScale(m),U=this._getCenterOffset(f)._divideBy(1-1/k);return P.animate!==!0&&!this.getSize().contains(U)?!1:(W(function(){this._moveStart(!0,P.noMoveStart||!1)._animateZoom(f,m,!0)},this),!0)},_animateZoom:function(f,m,P,k){this._mapPane&&(P&&(this._animatingZoom=!0,this._animateToCenter=f,this._animateToZoom=m,gt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:f,zoom:m,noUpdate:k}),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&&Kt(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 Mo(f,m){return new Tt(f,m)}var yn=Q.extend({options:{position:"topright"},initialize:function(f){_(this,f)},getPosition:function(){return this.options.position},setPosition:function(f){var m=this._map;return m&&m.removeControl(this),this.options.position=f,m&&m.addControl(this),this},getContainer:function(){return this._container},addTo:function(f){this.remove(),this._map=f;var m=this._container=this.onAdd(f),P=this.getPosition(),k=f._controlCorners[P];return gt(m,"leaflet-control"),P.indexOf("bottom")!==-1?k.insertBefore(m,k.firstChild):k.appendChild(m),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(er(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(f){this._map&&f&&f.screenX>0&&f.screenY>0&&this._map.getContainer().focus()}}),Lo=function(f){return new yn(f)};Tt.include({addControl:function(f){return f.addTo(this),this},removeControl:function(f){return f.remove(),this},_initControlPos:function(){var f=this._controlCorners={},m="leaflet-",P=this._controlContainer=wt("div",m+"control-container",this._container);function k(U,te){var pe=m+U+" "+m+te;f[U+te]=wt("div",pe,P)}k("top","left"),k("top","right"),k("bottom","left"),k("bottom","right")},_clearControlPos:function(){for(var f in this._controlCorners)er(this._controlCorners[f]);er(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xd=yn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(f,m,P,k){return P<k?-1:k<P?1:0}},initialize:function(f,m,P){_(this,P),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var k in f)this._addLayer(f[k],k);for(k in m)this._addLayer(m[k],k,!0)},onAdd:function(f){this._initLayout(),this._update(),this._map=f,f.on("zoomend",this._checkDisabledLayers,this);for(var m=0;m<this._layers.length;m++)this._layers[m].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(f){return yn.prototype.addTo.call(this,f),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var f=0;f<this._layers.length;f++)this._layers[f].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(f,m){return this._addLayer(f,m),this._map?this._update():this},addOverlay:function(f,m){return this._addLayer(f,m,!0),this._map?this._update():this},removeLayer:function(f){f.off("add remove",this._onLayerChange,this);var m=this._getLayer(c(f));return m&&this._layers.splice(this._layers.indexOf(m),1),this._map?this._update():this},expand:function(){gt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var f=this._map.getSize().y-(this._container.offsetTop+50);return f<this._section.clientHeight?(gt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=f+"px"):Kt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Kt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var f="leaflet-control-layers",m=this._container=wt("div",f),P=this.options.collapsed;m.setAttribute("aria-haspopup",!0),Tl(m),Zu(m);var k=this._section=wt("section",f+"-list");P&&(this._map.on("click",this.collapse,this),pt(m,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var U=this._layersLink=wt("a",f+"-toggle",m);U.href="#",U.title="Layers",U.setAttribute("role","button"),pt(U,{keydown:function(te){te.keyCode===13&&this._expandSafely()},click:function(te){gr(te),this._expandSafely()}},this),P||this.expand(),this._baseLayersList=wt("div",f+"-base",k),this._separator=wt("div",f+"-separator",k),this._overlaysList=wt("div",f+"-overlays",k),m.appendChild(k)},_getLayer:function(f){for(var m=0;m<this._layers.length;m++)if(this._layers[m]&&c(this._layers[m].layer)===f)return this._layers[m]},_addLayer:function(f,m,P){this._map&&f.on("add remove",this._onLayerChange,this),this._layers.push({layer:f,name:m,overlay:P}),this.options.sortLayers&&this._layers.sort(a(function(k,U){return this.options.sortFunction(k.layer,U.layer,k.name,U.name)},this)),this.options.autoZIndex&&f.setZIndex&&(this._lastZIndex++,f.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Wu(this._baseLayersList),Wu(this._overlaysList),this._layerControlInputs=[];var f,m,P,k,U=0;for(P=0;P<this._layers.length;P++)k=this._layers[P],this._addItem(k),m=m||k.overlay,f=f||!k.overlay,U+=k.overlay?0:1;return this.options.hideSingleBase&&(f=f&&U>1,this._baseLayersList.style.display=f?"":"none"),this._separator.style.display=m&&f?"":"none",this},_onLayerChange:function(f){this._handlingClick||this._update();var m=this._getLayer(c(f.target)),P=m.overlay?f.type==="add"?"overlayadd":"overlayremove":f.type==="add"?"baselayerchange":null;P&&this._map.fire(P,m)},_createRadioElement:function(f,m){var P='<input type="radio" class="leaflet-control-layers-selector" name="'+f+'"'+(m?' checked="checked"':"")+"/>",k=document.createElement("div");return k.innerHTML=P,k.firstChild},_addItem:function(f){var m=document.createElement("label"),P=this._map.hasLayer(f.layer),k;f.overlay?(k=document.createElement("input"),k.type="checkbox",k.className="leaflet-control-layers-selector",k.defaultChecked=P):k=this._createRadioElement("leaflet-base-layers_"+c(this),P),this._layerControlInputs.push(k),k.layerId=c(f.layer),pt(k,"click",this._onInputClick,this);var U=document.createElement("span");U.innerHTML=" "+f.name;var te=document.createElement("span");m.appendChild(te),te.appendChild(k),te.appendChild(U);var pe=f.overlay?this._overlaysList:this._baseLayersList;return pe.appendChild(m),this._checkDisabledLayers(),m},_onInputClick:function(){if(!this._preventClick){var f=this._layerControlInputs,m,P,k=[],U=[];this._handlingClick=!0;for(var te=f.length-1;te>=0;te--)m=f[te],P=this._getLayer(m.layerId).layer,m.checked?k.push(P):m.checked||U.push(P);for(te=0;te<U.length;te++)this._map.hasLayer(U[te])&&this._map.removeLayer(U[te]);for(te=0;te<k.length;te++)this._map.hasLayer(k[te])||this._map.addLayer(k[te]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var f=this._layerControlInputs,m,P,k=this._map.getZoom(),U=f.length-1;U>=0;U--)m=f[U],P=this._getLayer(m.layerId).layer,m.disabled=P.options.minZoom!==void 0&&k<P.options.minZoom||P.options.maxZoom!==void 0&&k>P.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var f=this._section;this._preventClick=!0,pt(f,"click",gr),this.expand();var m=this;setTimeout(function(){Bt(f,"click",gr),m._preventClick=!1})}}),Ju=function(f,m,P){return new xd(f,m,P)},fs=yn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(f){var m="leaflet-control-zoom",P=wt("div",m+" leaflet-bar"),k=this.options;return this._zoomInButton=this._createButton(k.zoomInText,k.zoomInTitle,m+"-in",P,this._zoomIn),this._zoomOutButton=this._createButton(k.zoomOutText,k.zoomOutTitle,m+"-out",P,this._zoomOut),this._updateDisabled(),f.on("zoomend zoomlevelschange",this._updateDisabled,this),P},onRemove:function(f){f.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(f){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(f.shiftKey?3:1))},_zoomOut:function(f){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(f.shiftKey?3:1))},_createButton:function(f,m,P,k,U){var te=wt("a",P,k);return te.innerHTML=f,te.href="#",te.title=m,te.setAttribute("role","button"),te.setAttribute("aria-label",m),Tl(te),pt(te,"click",ti),pt(te,"click",U,this),pt(te,"click",this._refocusOnMap,this),te},_updateDisabled:function(){var f=this._map,m="leaflet-disabled";Kt(this._zoomInButton,m),Kt(this._zoomOutButton,m),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||f._zoom===f.getMinZoom())&&(gt(this._zoomOutButton,m),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||f._zoom===f.getMaxZoom())&&(gt(this._zoomInButton,m),this._zoomInButton.setAttribute("aria-disabled","true"))}});Tt.mergeOptions({zoomControl:!0}),Tt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new fs,this.addControl(this.zoomControl))});var Nm=function(f){return new fs(f)},ln=yn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(f){var m="leaflet-control-scale",P=wt("div",m),k=this.options;return this._addScales(k,m+"-line",P),f.on(k.updateWhenIdle?"moveend":"move",this._update,this),f.whenReady(this._update,this),P},onRemove:function(f){f.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(f,m,P){f.metric&&(this._mScale=wt("div",m,P)),f.imperial&&(this._iScale=wt("div",m,P))},_update:function(){var f=this._map,m=f.getSize().y/2,P=f.distance(f.containerPointToLatLng([0,m]),f.containerPointToLatLng([this.options.maxWidth,m]));this._updateScales(P)},_updateScales:function(f){this.options.metric&&f&&this._updateMetric(f),this.options.imperial&&f&&this._updateImperial(f)},_updateMetric:function(f){var m=this._getRoundNum(f),P=m<1e3?m+" m":m/1e3+" km";this._updateScale(this._mScale,P,m/f)},_updateImperial:function(f){var m=f*3.2808399,P,k,U;m>5280?(P=m/5280,k=this._getRoundNum(P),this._updateScale(this._iScale,k+" mi",k/P)):(U=this._getRoundNum(m),this._updateScale(this._iScale,U+" ft",U/m))},_updateScale:function(f,m,P){f.style.width=Math.round(this.options.maxWidth*P)+"px",f.innerHTML=m},_getRoundNum:function(f){var m=Math.pow(10,(Math.floor(f)+"").length-1),P=f/m;return P=P>=10?10:P>=5?5:P>=3?3:P>=2?2:1,m*P}}),ds=function(f){return new ln(f)},wd='<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>',va=yn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(nt.inlineSvg?wd+" ":"")+"Leaflet</a>"},initialize:function(f){_(this,f),this._attributions={}},onAdd:function(f){f.attributionControl=this,this._container=wt("div","leaflet-control-attribution"),Tl(this._container);for(var m in f._layers)f._layers[m].getAttribution&&this.addAttribution(f._layers[m].getAttribution());return this._update(),f.on("layeradd",this._addAttribution,this),this._container},onRemove:function(f){f.off("layeradd",this._addAttribution,this)},_addAttribution:function(f){f.layer.getAttribution&&(this.addAttribution(f.layer.getAttribution()),f.layer.once("remove",function(){this.removeAttribution(f.layer.getAttribution())},this))},setPrefix:function(f){return this.options.prefix=f,this._update(),this},addAttribution:function(f){return f?(this._attributions[f]||(this._attributions[f]=0),this._attributions[f]++,this._update(),this):this},removeAttribution:function(f){return f?(this._attributions[f]&&(this._attributions[f]--,this._update()),this):this},_update:function(){if(this._map){var f=[];for(var m in this._attributions)this._attributions[m]&&f.push(m);var P=[];this.options.prefix&&P.push(this.options.prefix),f.length&&P.push(f.join(", ")),this._container.innerHTML=P.join(' <span aria-hidden="true">|</span> ')}}});Tt.mergeOptions({attributionControl:!0}),Tt.addInitHook(function(){this.options.attributionControl&&new va().addTo(this)});var zb=function(f){return new va(f)};yn.Layers=xd,yn.Zoom=fs,yn.Scale=ln,yn.Attribution=va,Lo.layers=Ju,Lo.zoom=Nm,Lo.scale=ds,Lo.attribution=zb;var Ln=Q.extend({initialize:function(f){this._map=f},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}});Ln.addTo=function(f,m){return f.addHandler(m,this),this};var Od={Events:ae},hs=nt.touch?"touchstart mousedown":"mousedown",ri=se.extend({options:{clickTolerance:3},initialize:function(f,m,P,k){_(this,k),this._element=f,this._dragStartTarget=m||f,this._preventOutline=P},enable:function(){this._enabled||(pt(this._dragStartTarget,hs,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ri._dragging===this&&this.finishDrag(!0),Bt(this._dragStartTarget,hs,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(f){if(this._enabled&&(this._moved=!1,!ss(this._element,"leaflet-zoom-anim"))){if(f.touches&&f.touches.length!==1){ri._dragging===this&&this.finishDrag();return}if(!(ri._dragging||f.shiftKey||f.which!==1&&f.button!==1&&!f.touches)&&(ri._dragging=this,this._preventOutline&&cs(this._element),Gu(),Rt(),!this._moving)){this.fire("down");var m=f.touches?f.touches[0]:f,P=no(this._element);this._startPoint=new oe(m.clientX,m.clientY),this._startPos=ro(this._element),this._parentScale=Si(P);var k=f.type==="mousedown";pt(document,k?"mousemove":"touchmove",this._onMove,this),pt(document,k?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(f){if(this._enabled){if(f.touches&&f.touches.length>1){this._moved=!0;return}var m=f.touches&&f.touches.length===1?f.touches[0]:f,P=new oe(m.clientX,m.clientY)._subtract(this._startPoint);!P.x&&!P.y||Math.abs(P.x)+Math.abs(P.y)<this.options.clickTolerance||(P.x/=this._parentScale.x,P.y/=this._parentScale.y,gr(f),this._moved||(this.fire("dragstart"),this._moved=!0,gt(document.body,"leaflet-dragging"),this._lastTarget=f.target||f.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),gt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(P),this._moving=!0,this._lastEvent=f,this._updatePosition())}},_updatePosition:function(){var f={originalEvent:this._lastEvent};this.fire("predrag",f),xr(this._element,this._newPos),this.fire("drag",f)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(f){Kt(document.body,"leaflet-dragging"),this._lastTarget&&(Kt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Bt(document,"mousemove touchmove",this._onMove,this),Bt(document,"mouseup touchend touchcancel",this._onUp,this),Ku(),us();var m=this._moved&&this._moving;this._moving=!1,ri._dragging=!1,m&&this.fire("dragend",{noInertia:f,distance:this._newPos.distanceTo(this._startPos)})}});function Sd(f,m,P){var k,U=[1,4,2,8],te,pe,_e,Pe,Re,Ze,st,St;for(te=0,Ze=f.length;te<Ze;te++)f[te]._code=ga(f[te],m);for(_e=0;_e<4;_e++){for(st=U[_e],k=[],te=0,Ze=f.length,pe=Ze-1;te<Ze;pe=te++)Pe=f[te],Re=f[pe],Pe._code&st?Re._code&st||(St=tc(Re,Pe,st,m,P),St._code=ga(St,m),k.push(St)):(Re._code&st&&(St=tc(Re,Pe,st,m,P),St._code=ga(St,m),k.push(St)),k.push(Pe));f=k}return f}function Mm(f,m){var P,k,U,te,pe,_e,Pe,Re,Ze;if(!f||f.length===0)throw new Error("latlngs not passed");In(f)||(console.warn("latlngs are not flat! Only the first ring will be used"),f=f[0]);var st=de([0,0]),St=le(f),$r=St.getNorthWest().distanceTo(St.getSouthWest())*St.getNorthEast().distanceTo(St.getNorthWest());$r<1700&&(st=Pd(f));var kr=f.length,_n=[];for(P=0;P<kr;P++){var un=de(f[P]);_n.push(m.project(de([un.lat-st.lat,un.lng-st.lng])))}for(_e=Pe=Re=0,P=0,k=kr-1;P<kr;k=P++)U=_n[P],te=_n[k],pe=U.y*te.x-te.y*U.x,Pe+=(U.x+te.x)*pe,Re+=(U.y+te.y)*pe,_e+=pe*3;_e===0?Ze=_n[0]:Ze=[Pe/_e,Re/_e];var Os=m.unproject(G(Ze));return de([Os.lat+st.lat,Os.lng+st.lng])}function Pd(f){for(var m=0,P=0,k=0,U=0;U<f.length;U++){var te=de(f[U]);m+=te.lat,P+=te.lng,k++}return de([m/k,P/k])}var Vb={__proto__:null,clipPolygon:Sd,polygonCenter:Mm,centroid:Pd};function ec(f,m){if(!m||!f.length)return f.slice();var P=m*m;return f=Hb(f,P),f=qb(f,P),f}function Lm(f,m,P){return Math.sqrt(ya(f,m,P,!0))}function Wb(f,m,P){return ya(f,m,P)}function qb(f,m){var P=f.length,k=typeof Uint8Array<"u"?Uint8Array:Array,U=new k(P);U[0]=U[P-1]=1,Cd(f,U,m,0,P-1);var te,pe=[];for(te=0;te<P;te++)U[te]&&pe.push(f[te]);return pe}function Cd(f,m,P,k,U){var te=0,pe,_e,Pe;for(_e=k+1;_e<=U-1;_e++)Pe=ya(f[_e],f[k],f[U],!0),Pe>te&&(pe=_e,te=Pe);te>P&&(m[pe]=1,Cd(f,m,P,k,pe),Cd(f,m,P,pe,U))}function Hb(f,m){for(var P=[f[0]],k=1,U=0,te=f.length;k<te;k++)Gb(f[k],f[U])>m&&(P.push(f[k]),U=k);return U<te-1&&P.push(f[te-1]),P}var Ed;function Im(f,m,P,k,U){var te=k?Ed:ga(f,P),pe=ga(m,P),_e,Pe,Re;for(Ed=pe;;){if(!(te|pe))return[f,m];if(te&pe)return!1;_e=te||pe,Pe=tc(f,m,_e,P,U),Re=ga(Pe,P),_e===te?(f=Pe,te=Re):(m=Pe,pe=Re)}}function tc(f,m,P,k,U){var te=m.x-f.x,pe=m.y-f.y,_e=k.min,Pe=k.max,Re,Ze;return P&8?(Re=f.x+te*(Pe.y-f.y)/pe,Ze=Pe.y):P&4?(Re=f.x+te*(_e.y-f.y)/pe,Ze=_e.y):P&2?(Re=Pe.x,Ze=f.y+pe*(Pe.x-f.x)/te):P&1&&(Re=_e.x,Ze=f.y+pe*(_e.x-f.x)/te),new oe(Re,Ze,U)}function ga(f,m){var P=0;return f.x<m.min.x?P|=1:f.x>m.max.x&&(P|=2),f.y<m.min.y?P|=4:f.y>m.max.y&&(P|=8),P}function Gb(f,m){var P=m.x-f.x,k=m.y-f.y;return P*P+k*k}function ya(f,m,P,k){var U=m.x,te=m.y,pe=P.x-U,_e=P.y-te,Pe=pe*pe+_e*_e,Re;return Pe>0&&(Re=((f.x-U)*pe+(f.y-te)*_e)/Pe,Re>1?(U=P.x,te=P.y):Re>0&&(U+=pe*Re,te+=_e*Re)),pe=f.x-U,_e=f.y-te,k?pe*pe+_e*_e:new oe(U,te)}function In(f){return!E(f[0])||typeof f[0][0]!="object"&&typeof f[0][0]<"u"}function Dm(f){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),In(f)}function $m(f,m){var P,k,U,te,pe,_e,Pe,Re;if(!f||f.length===0)throw new Error("latlngs not passed");In(f)||(console.warn("latlngs are not flat! Only the first ring will be used"),f=f[0]);var Ze=de([0,0]),st=le(f),St=st.getNorthWest().distanceTo(st.getSouthWest())*st.getNorthEast().distanceTo(st.getNorthWest());St<1700&&(Ze=Pd(f));var $r=f.length,kr=[];for(P=0;P<$r;P++){var _n=de(f[P]);kr.push(m.project(de([_n.lat-Ze.lat,_n.lng-Ze.lng])))}for(P=0,k=0;P<$r-1;P++)k+=kr[P].distanceTo(kr[P+1])/2;if(k===0)Re=kr[0];else for(P=0,te=0;P<$r-1;P++)if(pe=kr[P],_e=kr[P+1],U=pe.distanceTo(_e),te+=U,te>k){Pe=(te-k)/U,Re=[_e.x-Pe*(_e.x-pe.x),_e.y-Pe*(_e.y-pe.y)];break}var un=m.unproject(G(Re));return de([un.lat+Ze.lat,un.lng+Ze.lng])}var Fm={__proto__:null,simplify:ec,pointToSegmentDistance:Lm,closestPointOnSegment:Wb,clipSegment:Im,_getEdgeIntersection:tc,_getBitCode:ga,_sqClosestPointOnSegment:ya,isFlat:In,_flat:Dm,polylineCenter:$m},Td={project:function(f){return new oe(f.lng,f.lat)},unproject:function(f){return new ce(f.y,f.x)},bounds:new z([-180,-90],[180,90])},jd={R:6378137,R_MINOR:6356752314245179e-9,bounds:new z([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(f){var m=Math.PI/180,P=this.R,k=f.lat*m,U=this.R_MINOR/P,te=Math.sqrt(1-U*U),pe=te*Math.sin(k),_e=Math.tan(Math.PI/4-k/2)/Math.pow((1-pe)/(1+pe),te/2);return k=-P*Math.log(Math.max(_e,1e-10)),new oe(f.lng*m*P,k)},unproject:function(f){for(var m=180/Math.PI,P=this.R,k=this.R_MINOR/P,U=Math.sqrt(1-k*k),te=Math.exp(-f.y/P),pe=Math.PI/2-2*Math.atan(te),_e=0,Pe=.1,Re;_e<15&&Math.abs(Pe)>1e-7;_e++)Re=U*Math.sin(pe),Re=Math.pow((1-Re)/(1+Re),U/2),Pe=Math.PI/2-2*Math.atan(te*Re)-pe,pe+=Pe;return new ce(pe*m,f.x*m/P)}},Kb={__proto__:null,LonLat:Td,Mercator:jd,SphericalMercator:Y},Yb=i({},M,{code:"EPSG:3395",projection:jd,transformation:function(){var f=.5/(Math.PI*jd.R);return ie(f,.5,-f,.5)}()}),Bm=i({},M,{code:"EPSG:4326",projection:Td,transformation:ie(1/180,1,-1/180,.5)}),Zb=i({},be,{projection:Td,transformation:ie(1,0,-1,0),scale:function(f){return Math.pow(2,f)},zoom:function(f){return Math.log(f)/Math.LN2},distance:function(f,m){var P=m.lng-f.lng,k=m.lat-f.lat;return Math.sqrt(P*P+k*k)},infinite:!0});be.Earth=M,be.EPSG3395=Yb,be.EPSG3857=he,be.EPSG900913=Se,be.EPSG4326=Bm,be.Simple=Zb;var ni=se.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(f){return f.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(f){return f&&f.removeLayer(this),this},getPane:function(f){return this._map.getPane(f?this.options[f]||f:this.options.pane)},addInteractiveTarget:function(f){return this._map._targets[c(f)]=this,this},removeInteractiveTarget:function(f){return delete this._map._targets[c(f)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(f){var m=f.target;if(m.hasLayer(this)){if(this._map=m,this._zoomAnimated=m._zoomAnimated,this.getEvents){var P=this.getEvents();m.on(P,this),this.once("remove",function(){m.off(P,this)},this)}this.onAdd(m),this.fire("add"),m.fire("layeradd",{layer:this})}}});Tt.include({addLayer:function(f){if(!f._layerAdd)throw new Error("The provided object is not a Layer.");var m=c(f);return this._layers[m]?this:(this._layers[m]=f,f._mapToAdd=this,f.beforeAdd&&f.beforeAdd(this),this.whenReady(f._layerAdd,f),this)},removeLayer:function(f){var m=c(f);return this._layers[m]?(this._loaded&&f.onRemove(this),delete this._layers[m],this._loaded&&(this.fire("layerremove",{layer:f}),f.fire("remove")),f._map=f._mapToAdd=null,this):this},hasLayer:function(f){return c(f)in this._layers},eachLayer:function(f,m){for(var P in this._layers)f.call(m,this._layers[P]);return this},_addLayers:function(f){f=f?E(f)?f:[f]:[];for(var m=0,P=f.length;m<P;m++)this.addLayer(f[m])},_addZoomLimit:function(f){(!isNaN(f.options.maxZoom)||!isNaN(f.options.minZoom))&&(this._zoomBoundLayers[c(f)]=f,this._updateZoomLevels())},_removeZoomLimit:function(f){var m=c(f);this._zoomBoundLayers[m]&&(delete this._zoomBoundLayers[m],this._updateZoomLevels())},_updateZoomLevels:function(){var f=1/0,m=-1/0,P=this._getZoomSpan();for(var k in this._zoomBoundLayers){var U=this._zoomBoundLayers[k].options;f=U.minZoom===void 0?f:Math.min(f,U.minZoom),m=U.maxZoom===void 0?m:Math.max(m,U.maxZoom)}this._layersMaxZoom=m===-1/0?void 0:m,this._layersMinZoom=f===1/0?void 0:f,P!==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 Io=ni.extend({initialize:function(f,m){_(this,m),this._layers={};var P,k;if(f)for(P=0,k=f.length;P<k;P++)this.addLayer(f[P])},addLayer:function(f){var m=this.getLayerId(f);return this._layers[m]=f,this._map&&this._map.addLayer(f),this},removeLayer:function(f){var m=f in this._layers?f:this.getLayerId(f);return this._map&&this._layers[m]&&this._map.removeLayer(this._layers[m]),delete this._layers[m],this},hasLayer:function(f){var m=typeof f=="number"?f:this.getLayerId(f);return m in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(f){var m=Array.prototype.slice.call(arguments,1),P,k;for(P in this._layers)k=this._layers[P],k[f]&&k[f].apply(k,m);return this},onAdd:function(f){this.eachLayer(f.addLayer,f)},onRemove:function(f){this.eachLayer(f.removeLayer,f)},eachLayer:function(f,m){for(var P in this._layers)f.call(m,this._layers[P]);return this},getLayer:function(f){return this._layers[f]},getLayers:function(){var f=[];return this.eachLayer(f.push,f),f},setZIndex:function(f){return this.invoke("setZIndex",f)},getLayerId:function(f){return c(f)}}),kl=function(f,m){return new Io(f,m)},io=Io.extend({addLayer:function(f){return this.hasLayer(f)?this:(f.addEventParent(this),Io.prototype.addLayer.call(this,f),this.fire("layeradd",{layer:f}))},removeLayer:function(f){return this.hasLayer(f)?(f in this._layers&&(f=this._layers[f]),f.removeEventParent(this),Io.prototype.removeLayer.call(this,f),this.fire("layerremove",{layer:f})):this},setStyle:function(f){return this.invoke("setStyle",f)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var f=new X;for(var m in this._layers){var P=this._layers[m];f.extend(P.getBounds?P.getBounds():P.getLatLng())}return f}}),Um=function(f,m){return new io(f,m)},ba=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(f){_(this,f)},createIcon:function(f){return this._createIcon("icon",f)},createShadow:function(f){return this._createIcon("shadow",f)},_createIcon:function(f,m){var P=this._getIconUrl(f);if(!P){if(f==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var k=this._createImg(P,m&&m.tagName==="IMG"?m:null);return this._setIconStyles(k,f),(this.options.crossOrigin||this.options.crossOrigin==="")&&(k.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),k},_setIconStyles:function(f,m){var P=this.options,k=P[m+"Size"];typeof k=="number"&&(k=[k,k]);var U=G(k),te=G(m==="shadow"&&P.shadowAnchor||P.iconAnchor||U&&U.divideBy(2,!0));f.className="leaflet-marker-"+m+" "+(P.className||""),te&&(f.style.marginLeft=-te.x+"px",f.style.marginTop=-te.y+"px"),U&&(f.style.width=U.x+"px",f.style.height=U.y+"px")},_createImg:function(f,m){return m=m||document.createElement("img"),m.src=f,m},_getIconUrl:function(f){return nt.retina&&this.options[f+"RetinaUrl"]||this.options[f+"Url"]}});function zm(f){return new ba(f)}var ps=ba.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(f){return typeof ps.imagePath!="string"&&(ps.imagePath=this._detectIconPath()),(this.options.imagePath||ps.imagePath)+ba.prototype._getIconUrl.call(this,f)},_stripUrl:function(f){var m=function(P,k,U){var te=k.exec(P);return te&&te[U]};return f=m(f,/^url\((['"])?(.+)\1\)$/,2),f&&m(f,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var f=wt("div","leaflet-default-icon-path",document.body),m=Sl(f,"background-image")||Sl(f,"backgroundImage");if(document.body.removeChild(f),m=this._stripUrl(m),m)return m;var P=document.querySelector('link[href$="leaflet.css"]');return P?P.href.substring(0,P.href.length-11-1):""}}),Ad=Ln.extend({initialize:function(f){this._marker=f},addHooks:function(){var f=this._marker._icon;this._draggable||(this._draggable=new ri(f,f,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),gt(f,"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&&Kt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(f){var m=this._marker,P=m._map,k=this._marker.options.autoPanSpeed,U=this._marker.options.autoPanPadding,te=ro(m._icon),pe=P.getPixelBounds(),_e=P.getPixelOrigin(),Pe=re(pe.min._subtract(_e).add(U),pe.max._subtract(_e).subtract(U));if(!Pe.contains(te)){var Re=G((Math.max(Pe.max.x,te.x)-Pe.max.x)/(pe.max.x-Pe.max.x)-(Math.min(Pe.min.x,te.x)-Pe.min.x)/(pe.min.x-Pe.min.x),(Math.max(Pe.max.y,te.y)-Pe.max.y)/(pe.max.y-Pe.max.y)-(Math.min(Pe.min.y,te.y)-Pe.min.y)/(pe.min.y-Pe.min.y)).multiplyBy(k);P.panBy(Re,{animate:!1}),this._draggable._newPos._add(Re),this._draggable._startPos._add(Re),xr(m._icon,this._draggable._newPos),this._onDrag(f),this._panRequest=W(this._adjustPan.bind(this,f))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(f){this._marker.options.autoPan&&(q(this._panRequest),this._panRequest=W(this._adjustPan.bind(this,f)))},_onDrag:function(f){var m=this._marker,P=m._shadow,k=ro(m._icon),U=m._map.layerPointToLatLng(k);P&&xr(P,k),m._latlng=U,f.latlng=U,f.oldLatLng=this._oldLatLng,m.fire("move",f).fire("drag",f)},_onDragEnd:function(f){q(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",f)}}),oo=ni.extend({options:{icon:new ps,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(f,m){_(this,m),this._latlng=de(f)},onAdd:function(f){this._zoomAnimated=this._zoomAnimated&&f.options.markerZoomAnimation,this._zoomAnimated&&f.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(f){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&f.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(f){var m=this._latlng;return this._latlng=de(f),this.update(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},setZIndexOffset:function(f){return this.options.zIndexOffset=f,this.update()},getIcon:function(){return this.options.icon},setIcon:function(f){return this.options.icon=f,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 f=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(f)}return this},_initIcon:function(){var f=this.options,m="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),P=f.icon.createIcon(this._icon),k=!1;P!==this._icon&&(this._icon&&this._removeIcon(),k=!0,f.title&&(P.title=f.title),P.tagName==="IMG"&&(P.alt=f.alt||"")),gt(P,m),f.keyboard&&(P.tabIndex="0",P.setAttribute("role","button")),this._icon=P,f.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&pt(P,"focus",this._panOnFocus,this);var U=f.icon.createShadow(this._shadow),te=!1;U!==this._shadow&&(this._removeShadow(),te=!0),U&&(gt(U,m),U.alt=""),this._shadow=U,f.opacity<1&&this._updateOpacity(),k&&this.getPane().appendChild(this._icon),this._initInteraction(),U&&te&&this.getPane(f.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Bt(this._icon,"focus",this._panOnFocus,this),er(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&er(this._shadow),this._shadow=null},_setPos:function(f){this._icon&&xr(this._icon,f),this._shadow&&xr(this._shadow,f),this._zIndex=f.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(f){this._icon&&(this._icon.style.zIndex=this._zIndex+f)},_animateZoom:function(f){var m=this._map._latLngToNewLayerPoint(this._latlng,f.zoom,f.center).round();this._setPos(m)},_initInteraction:function(){if(this.options.interactive&&(gt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ad)){var f=this.options.draggable;this.dragging&&(f=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ad(this),f&&this.dragging.enable()}},setOpacity:function(f){return this.options.opacity=f,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var f=this.options.opacity;this._icon&&sn(this._icon,f),this._shadow&&sn(this._shadow,f)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var f=this._map;if(f){var m=this.options.icon.options,P=m.iconSize?G(m.iconSize):G(0,0),k=m.iconAnchor?G(m.iconAnchor):G(0,0);f.panInside(this._latlng,{paddingTopLeft:k,paddingBottomRight:P.subtract(k)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Xb(f,m){return new oo(f,m)}var Do=ni.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(f){this._renderer=f.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(f){return _(this,f),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&f&&Object.prototype.hasOwnProperty.call(f,"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)}}),rc=Do.extend({options:{fill:!0,radius:10},initialize:function(f,m){_(this,m),this._latlng=de(f),this._radius=this.options.radius},setLatLng:function(f){var m=this._latlng;return this._latlng=de(f),this.redraw(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(f){return this.options.radius=this._radius=f,this.redraw()},getRadius:function(){return this._radius},setStyle:function(f){var m=f&&f.radius||this._radius;return Do.prototype.setStyle.call(this,f),this.setRadius(m),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var f=this._radius,m=this._radiusY||f,P=this._clickTolerance(),k=[f+P,m+P];this._pxBounds=new z(this._point.subtract(k),this._point.add(k))},_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(f){return f.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Vm(f,m){return new rc(f,m)}var nc=rc.extend({initialize:function(f,m,P){if(typeof m=="number"&&(m=i({},P,{radius:m})),_(this,m),this._latlng=de(f),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(f){return this._mRadius=f,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var f=[this._radius,this._radiusY||this._radius];return new X(this._map.layerPointToLatLng(this._point.subtract(f)),this._map.layerPointToLatLng(this._point.add(f)))},setStyle:Do.prototype.setStyle,_project:function(){var f=this._latlng.lng,m=this._latlng.lat,P=this._map,k=P.options.crs;if(k.distance===M.distance){var U=Math.PI/180,te=this._mRadius/M.R/U,pe=P.project([m+te,f]),_e=P.project([m-te,f]),Pe=pe.add(_e).divideBy(2),Re=P.unproject(Pe).lat,Ze=Math.acos((Math.cos(te*U)-Math.sin(m*U)*Math.sin(Re*U))/(Math.cos(m*U)*Math.cos(Re*U)))/U;(isNaN(Ze)||Ze===0)&&(Ze=te/Math.cos(Math.PI/180*m)),this._point=Pe.subtract(P.getPixelOrigin()),this._radius=isNaN(Ze)?0:Pe.x-P.project([Re,f-Ze]).x,this._radiusY=Pe.y-pe.y}else{var st=k.unproject(k.project(this._latlng).subtract([this._mRadius,0]));this._point=P.latLngToLayerPoint(this._latlng),this._radius=this._point.x-P.latLngToLayerPoint(st).x}this._updateBounds()}});function Rl(f,m,P){return new nc(f,m,P)}var bn=Do.extend({options:{smoothFactor:1,noClip:!1},initialize:function(f,m){_(this,m),this._setLatLngs(f)},getLatLngs:function(){return this._latlngs},setLatLngs:function(f){return this._setLatLngs(f),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(f){for(var m=1/0,P=null,k=ya,U,te,pe=0,_e=this._parts.length;pe<_e;pe++)for(var Pe=this._parts[pe],Re=1,Ze=Pe.length;Re<Ze;Re++){U=Pe[Re-1],te=Pe[Re];var st=k(f,U,te,!0);st<m&&(m=st,P=k(f,U,te))}return P&&(P.distance=Math.sqrt(m)),P},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return $m(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(f,m){return m=m||this._defaultShape(),f=de(f),m.push(f),this._bounds.extend(f),this.redraw()},_setLatLngs:function(f){this._bounds=new X,this._latlngs=this._convertLatLngs(f)},_defaultShape:function(){return In(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(f){for(var m=[],P=In(f),k=0,U=f.length;k<U;k++)P?(m[k]=de(f[k]),this._bounds.extend(m[k])):m[k]=this._convertLatLngs(f[k]);return m},_project:function(){var f=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,f),this._bounds.isValid()&&f.isValid()&&(this._rawPxBounds=f,this._updateBounds())},_updateBounds:function(){var f=this._clickTolerance(),m=new oe(f,f);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(m),this._rawPxBounds.max.add(m)]))},_projectLatlngs:function(f,m,P){var k=f[0]instanceof ce,U=f.length,te,pe;if(k){for(pe=[],te=0;te<U;te++)pe[te]=this._map.latLngToLayerPoint(f[te]),P.extend(pe[te]);m.push(pe)}else for(te=0;te<U;te++)this._projectLatlngs(f[te],m,P)},_clipPoints:function(){var f=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(f))){if(this.options.noClip){this._parts=this._rings;return}var m=this._parts,P,k,U,te,pe,_e,Pe;for(P=0,U=0,te=this._rings.length;P<te;P++)for(Pe=this._rings[P],k=0,pe=Pe.length;k<pe-1;k++)_e=Im(Pe[k],Pe[k+1],f,k,!0),_e&&(m[U]=m[U]||[],m[U].push(_e[0]),(_e[1]!==Pe[k+1]||k===pe-2)&&(m[U].push(_e[1]),U++))}},_simplifyPoints:function(){for(var f=this._parts,m=this.options.smoothFactor,P=0,k=f.length;P<k;P++)f[P]=ec(f[P],m)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(f,m){var P,k,U,te,pe,_e,Pe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(f))return!1;for(P=0,te=this._parts.length;P<te;P++)for(_e=this._parts[P],k=0,pe=_e.length,U=pe-1;k<pe;U=k++)if(!(!m&&k===0)&&Lm(f,_e[U],_e[k])<=Pe)return!0;return!1}});function Qb(f,m){return new bn(f,m)}bn._flat=Dm;var ao=bn.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 Mm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(f){var m=bn.prototype._convertLatLngs.call(this,f),P=m.length;return P>=2&&m[0]instanceof ce&&m[0].equals(m[P-1])&&m.pop(),m},_setLatLngs:function(f){bn.prototype._setLatLngs.call(this,f),In(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return In(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var f=this._renderer._bounds,m=this.options.weight,P=new oe(m,m);if(f=new z(f.min.subtract(P),f.max.add(P)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(f))){if(this.options.noClip){this._parts=this._rings;return}for(var k=0,U=this._rings.length,te;k<U;k++)te=Sd(this._rings[k],f,!0),te.length&&this._parts.push(te)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(f){var m=!1,P,k,U,te,pe,_e,Pe,Re;if(!this._pxBounds||!this._pxBounds.contains(f))return!1;for(te=0,Pe=this._parts.length;te<Pe;te++)for(P=this._parts[te],pe=0,Re=P.length,_e=Re-1;pe<Re;_e=pe++)k=P[pe],U=P[_e],k.y>f.y!=U.y>f.y&&f.x<(U.x-k.x)*(f.y-k.y)/(U.y-k.y)+k.x&&(m=!m);return m||bn.prototype._containsPoint.call(this,f,!0)}});function Jb(f,m){return new ao(f,m)}var Ci=io.extend({initialize:function(f,m){_(this,m),this._layers={},f&&this.addData(f)},addData:function(f){var m=E(f)?f:f.features,P,k,U;if(m){for(P=0,k=m.length;P<k;P++)U=m[P],(U.geometries||U.geometry||U.features||U.coordinates)&&this.addData(U);return this}var te=this.options;if(te.filter&&!te.filter(f))return this;var pe=ms(f,te);return pe?(pe.feature=lc(f),pe.defaultOptions=pe.options,this.resetStyle(pe),te.onEachFeature&&te.onEachFeature(f,pe),this.addLayer(pe)):this},resetStyle:function(f){return f===void 0?this.eachLayer(this.resetStyle,this):(f.options=i({},f.defaultOptions),this._setLayerStyle(f,this.options.style),this)},setStyle:function(f){return this.eachLayer(function(m){this._setLayerStyle(m,f)},this)},_setLayerStyle:function(f,m){f.setStyle&&(typeof m=="function"&&(m=m(f.feature)),f.setStyle(m))}});function ms(f,m){var P=f.type==="Feature"?f.geometry:f,k=P?P.coordinates:null,U=[],te=m&&m.pointToLayer,pe=m&&m.coordsToLatLng||oc,_e,Pe,Re,Ze;if(!k&&!P)return null;switch(P.type){case"Point":return _e=pe(k),ic(te,f,_e,m);case"MultiPoint":for(Re=0,Ze=k.length;Re<Ze;Re++)_e=pe(k[Re]),U.push(ic(te,f,_e,m));return new io(U);case"LineString":case"MultiLineString":return Pe=Nl(k,P.type==="LineString"?0:1,pe),new bn(Pe,m);case"Polygon":case"MultiPolygon":return Pe=Nl(k,P.type==="Polygon"?1:2,pe),new ao(Pe,m);case"GeometryCollection":for(Re=0,Ze=P.geometries.length;Re<Ze;Re++){var st=ms({geometry:P.geometries[Re],type:"Feature",properties:f.properties},m);st&&U.push(st)}return new io(U);case"FeatureCollection":for(Re=0,Ze=P.features.length;Re<Ze;Re++){var St=ms(P.features[Re],m);St&&U.push(St)}return new io(U);default:throw new Error("Invalid GeoJSON object.")}}function ic(f,m,P,k){return f?f(m,P):new oo(P,k&&k.markersInheritOptions&&k)}function oc(f){return new ce(f[1],f[0],f[2])}function Nl(f,m,P){for(var k=[],U=0,te=f.length,pe;U<te;U++)pe=m?Nl(f[U],m-1,P):(P||oc)(f[U]),k.push(pe);return k}function ac(f,m){return f=de(f),f.alt!==void 0?[v(f.lng,m),v(f.lat,m),v(f.alt,m)]:[v(f.lng,m),v(f.lat,m)]}function sc(f,m,P,k){for(var U=[],te=0,pe=f.length;te<pe;te++)U.push(m?sc(f[te],In(f[te])?0:m-1,P,k):ac(f[te],k));return!m&&P&&U.length>0&&U.push(U[0].slice()),U}function vs(f,m){return f.feature?i({},f.feature,{geometry:m}):lc(m)}function lc(f){return f.type==="Feature"||f.type==="FeatureCollection"?f:{type:"Feature",properties:{},geometry:f}}var kd={toGeoJSON:function(f){return vs(this,{type:"Point",coordinates:ac(this.getLatLng(),f)})}};oo.include(kd),nc.include(kd),rc.include(kd),bn.include({toGeoJSON:function(f){var m=!In(this._latlngs),P=sc(this._latlngs,m?1:0,!1,f);return vs(this,{type:(m?"Multi":"")+"LineString",coordinates:P})}}),ao.include({toGeoJSON:function(f){var m=!In(this._latlngs),P=m&&!In(this._latlngs[0]),k=sc(this._latlngs,P?2:m?1:0,!0,f);return m||(k=[k]),vs(this,{type:(P?"Multi":"")+"Polygon",coordinates:k})}}),Io.include({toMultiPoint:function(f){var m=[];return this.eachLayer(function(P){m.push(P.toGeoJSON(f).geometry.coordinates)}),vs(this,{type:"MultiPoint",coordinates:m})},toGeoJSON:function(f){var m=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(m==="MultiPoint")return this.toMultiPoint(f);var P=m==="GeometryCollection",k=[];return this.eachLayer(function(U){if(U.toGeoJSON){var te=U.toGeoJSON(f);if(P)k.push(te.geometry);else{var pe=lc(te);pe.type==="FeatureCollection"?k.push.apply(k,pe.features):k.push(pe)}}}),P?vs(this,{geometries:k,type:"GeometryCollection"}):{type:"FeatureCollection",features:k}}});function Wm(f,m){return new Ci(f,m)}var ii=Wm,$o=ni.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(f,m,P){this._url=f,this._bounds=le(m),_(this,P)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(gt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){er(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(f){return this.options.opacity=f,this._image&&this._updateOpacity(),this},setStyle:function(f){return f.opacity&&this.setOpacity(f.opacity),this},bringToFront:function(){return this._map&&as(this._image),this},bringToBack:function(){return this._map&&to(this._image),this},setUrl:function(f){return this._url=f,this._image&&(this._image.src=f),this},setBounds:function(f){return this._bounds=le(f),this._map&&this._reset(),this},getEvents:function(){var f={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},setZIndex:function(f){return this.options.zIndex=f,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var f=this._url.tagName==="IMG",m=this._image=f?this._url:wt("img");if(gt(m,"leaflet-image-layer"),this._zoomAnimated&>(m,"leaflet-zoom-animated"),this.options.className&>(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onload=a(this.fire,this,"load"),m.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),f){this._url=m.src;return}m.src=this._url,m.alt=this.options.alt},_animateZoom:function(f){var m=this._map.getZoomScale(f.zoom),P=this._map._latLngBoundsToNewLayerBounds(this._bounds,f.zoom,f.center).min;Jn(this._image,P,m)},_reset:function(){var f=this._image,m=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),P=m.getSize();xr(f,m.min),f.style.width=P.x+"px",f.style.height=P.y+"px"},_updateOpacity:function(){sn(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 f=this.options.errorOverlayUrl;f&&this._url!==f&&(this._url=f,this._image.src=f)},getCenter:function(){return this._bounds.getCenter()}}),qm=function(f,m,P){return new $o(f,m,P)},Rd=$o.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var f=this._url.tagName==="VIDEO",m=this._image=f?this._url:wt("video");if(gt(m,"leaflet-image-layer"),this._zoomAnimated&>(m,"leaflet-zoom-animated"),this.options.className&>(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onloadeddata=a(this.fire,this,"load"),f){for(var P=m.getElementsByTagName("source"),k=[],U=0;U<P.length;U++)k.push(P[U].src);this._url=P.length>0?k:[m.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(m.style,"objectFit")&&(m.style.objectFit="fill"),m.autoplay=!!this.options.autoplay,m.loop=!!this.options.loop,m.muted=!!this.options.muted,m.playsInline=!!this.options.playsInline;for(var te=0;te<this._url.length;te++){var pe=wt("source");pe.src=this._url[te],m.appendChild(pe)}}});function Hm(f,m,P){return new Rd(f,m,P)}var Nd=$o.extend({_initImage:function(){var f=this._image=this._url;gt(f,"leaflet-image-layer"),this._zoomAnimated&>(f,"leaflet-zoom-animated"),this.options.className&>(f,this.options.className),f.onselectstart=p,f.onmousemove=p}});function Md(f,m,P){return new Nd(f,m,P)}var Ei=ni.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(f,m){f&&(f instanceof ce||E(f))?(this._latlng=de(f),_(this,m)):(_(this,f),this._source=m),this.options.content&&(this._content=this.options.content)},openOn:function(f){return f=arguments.length?f:this._source._map,f.hasLayer(this)||f.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(f){return this._map?this.close():(arguments.length?this._source=f:f=this._source,this._prepareOpen(),this.openOn(f._map)),this},onAdd:function(f){this._zoomAnimated=f._zoomAnimated,this._container||this._initLayout(),f._fadeAnimated&&sn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),f._fadeAnimated&&sn(this._container,1),this.bringToFront(),this.options.interactive&&(gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(f){f._fadeAnimated?(sn(this._container,0),this._removeTimeout=setTimeout(a(er,void 0,this._container),200)):er(this._container),this.options.interactive&&(Kt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(f){return this._latlng=de(f),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(f){return this._content=f,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 f={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&as(this._container),this},bringToBack:function(){return this._map&&to(this._container),this},_prepareOpen:function(f){var m=this._source;if(!m._map)return!1;if(m instanceof io){m=null;var P=this._source._layers;for(var k in P)if(P[k]._map){m=P[k];break}if(!m)return!1;this._source=m}if(!f)if(m.getCenter)f=m.getCenter();else if(m.getLatLng)f=m.getLatLng();else if(m.getBounds)f=m.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(f),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var f=this._contentNode,m=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof m=="string")f.innerHTML=m;else{for(;f.hasChildNodes();)f.removeChild(f.firstChild);f.appendChild(m)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var f=this._map.latLngToLayerPoint(this._latlng),m=G(this.options.offset),P=this._getAnchor();this._zoomAnimated?xr(this._container,f.add(P)):m=m.add(f).add(P);var k=this._containerBottom=-m.y,U=this._containerLeft=-Math.round(this._containerWidth/2)+m.x;this._container.style.bottom=k+"px",this._container.style.left=U+"px"}},_getAnchor:function(){return[0,0]}});Tt.include({_initOverlay:function(f,m,P,k){var U=m;return U instanceof f||(U=new f(k).setContent(m)),P&&U.setLatLng(P),U}}),ni.include({_initOverlay:function(f,m,P,k){var U=P;return U instanceof f?(_(U,k),U._source=this):(U=m&&!k?m:new f(k,this),U.setContent(P)),U}});var uc=Ei.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(f){return f=arguments.length?f:this._source._map,!f.hasLayer(this)&&f._popup&&f._popup.options.autoClose&&f.removeLayer(f._popup),f._popup=this,Ei.prototype.openOn.call(this,f)},onAdd:function(f){Ei.prototype.onAdd.call(this,f),f.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Do||this._source.on("preclick",Pi))},onRemove:function(f){Ei.prototype.onRemove.call(this,f),f.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Do||this._source.off("preclick",Pi))},getEvents:function(){var f=Ei.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(f.preclick=this.close),this.options.keepInView&&(f.moveend=this._adjustPan),f},_initLayout:function(){var f="leaflet-popup",m=this._container=wt("div",f+" "+(this.options.className||"")+" leaflet-zoom-animated"),P=this._wrapper=wt("div",f+"-content-wrapper",m);if(this._contentNode=wt("div",f+"-content",P),Tl(m),Zu(this._contentNode),pt(m,"contextmenu",Pi),this._tipContainer=wt("div",f+"-tip-container",m),this._tip=wt("div",f+"-tip",this._tipContainer),this.options.closeButton){var k=this._closeButton=wt("a",f+"-close-button",m);k.setAttribute("role","button"),k.setAttribute("aria-label","Close popup"),k.href="#close",k.innerHTML='<span aria-hidden="true">×</span>',pt(k,"click",function(U){gr(U),this.close()},this)}},_updateLayout:function(){var f=this._contentNode,m=f.style;m.width="",m.whiteSpace="nowrap";var P=f.offsetWidth;P=Math.min(P,this.options.maxWidth),P=Math.max(P,this.options.minWidth),m.width=P+1+"px",m.whiteSpace="",m.height="";var k=f.offsetHeight,U=this.options.maxHeight,te="leaflet-popup-scrolled";U&&k>U?(m.height=U+"px",gt(f,te)):Kt(f,te),this._containerWidth=this._container.offsetWidth},_animateZoom:function(f){var m=this._map._latLngToNewLayerPoint(this._latlng,f.zoom,f.center),P=this._getAnchor();xr(this._container,m.add(P))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var f=this._map,m=parseInt(Sl(this._container,"marginBottom"),10)||0,P=this._container.offsetHeight+m,k=this._containerWidth,U=new oe(this._containerLeft,-P-this._containerBottom);U._add(ro(this._container));var te=f.layerPointToContainerPoint(U),pe=G(this.options.autoPanPadding),_e=G(this.options.autoPanPaddingTopLeft||pe),Pe=G(this.options.autoPanPaddingBottomRight||pe),Re=f.getSize(),Ze=0,st=0;te.x+k+Pe.x>Re.x&&(Ze=te.x+k-Re.x+Pe.x),te.x-Ze-_e.x<0&&(Ze=te.x-_e.x),te.y+P+Pe.y>Re.y&&(st=te.y+P-Re.y+Pe.y),te.y-st-_e.y<0&&(st=te.y-_e.y),(Ze||st)&&(this.options.keepInView&&(this._autopanning=!0),f.fire("autopanstart").panBy([Ze,st]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),gs=function(f,m){return new uc(f,m)};Tt.mergeOptions({closePopupOnClick:!0}),Tt.include({openPopup:function(f,m,P){return this._initOverlay(uc,f,m,P).openOn(this),this},closePopup:function(f){return f=arguments.length?f:this._popup,f&&f.close(),this}}),ni.include({bindPopup:function(f,m){return this._popup=this._initOverlay(uc,this._popup,f,m),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(f){return this._popup&&(this instanceof io||(this._popup._source=this),this._popup._prepareOpen(f||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(f){return this._popup&&this._popup.setContent(f),this},getPopup:function(){return this._popup},_openPopup:function(f){if(!(!this._popup||!this._map)){ti(f);var m=f.layer||f.target;if(this._popup._source===m&&!(m instanceof Do)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(f.latlng);return}this._popup._source=m,this.openPopup(f.latlng)}},_movePopup:function(f){this._popup.setLatLng(f.latlng)},_onKeyPress:function(f){f.originalEvent.keyCode===13&&this._openPopup(f)}});var ys=Ei.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(f){Ei.prototype.onAdd.call(this,f),this.setOpacity(this.options.opacity),f.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(f){Ei.prototype.onRemove.call(this,f),f.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var f=Ei.prototype.getEvents.call(this);return this.options.permanent||(f.preclick=this.close),f},_initLayout:function(){var f="leaflet-tooltip",m=f+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=wt("div",m),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(f){var m,P,k=this._map,U=this._container,te=k.latLngToContainerPoint(k.getCenter()),pe=k.layerPointToContainerPoint(f),_e=this.options.direction,Pe=U.offsetWidth,Re=U.offsetHeight,Ze=G(this.options.offset),st=this._getAnchor();_e==="top"?(m=Pe/2,P=Re):_e==="bottom"?(m=Pe/2,P=0):_e==="center"?(m=Pe/2,P=Re/2):_e==="right"?(m=0,P=Re/2):_e==="left"?(m=Pe,P=Re/2):pe.x<te.x?(_e="right",m=0,P=Re/2):(_e="left",m=Pe+(Ze.x+st.x)*2,P=Re/2),f=f.subtract(G(m,P,!0)).add(Ze).add(st),Kt(U,"leaflet-tooltip-right"),Kt(U,"leaflet-tooltip-left"),Kt(U,"leaflet-tooltip-top"),Kt(U,"leaflet-tooltip-bottom"),gt(U,"leaflet-tooltip-"+_e),xr(U,f)},_updatePosition:function(){var f=this._map.latLngToLayerPoint(this._latlng);this._setPosition(f)},setOpacity:function(f){this.options.opacity=f,this._container&&sn(this._container,f)},_animateZoom:function(f){var m=this._map._latLngToNewLayerPoint(this._latlng,f.zoom,f.center);this._setPosition(m)},_getAnchor:function(){return G(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ml=function(f,m){return new ys(f,m)};Tt.include({openTooltip:function(f,m,P){return this._initOverlay(ys,f,m,P).openOn(this),this},closeTooltip:function(f){return f.close(),this}}),ni.include({bindTooltip:function(f,m){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ys,this._tooltip,f,m),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(f){if(!(!f&&this._tooltipHandlersAdded)){var m=f?"off":"on",P={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?P.add=this._openTooltip:(P.mouseover=this._openTooltip,P.mouseout=this.closeTooltip,P.click=this._openTooltip,this._map?this._addFocusListeners():P.add=this._addFocusListeners),this._tooltip.options.sticky&&(P.mousemove=this._moveTooltip),this[m](P),this._tooltipHandlersAdded=!f}},openTooltip:function(f){return this._tooltip&&(this instanceof io||(this._tooltip._source=this),this._tooltip._prepareOpen(f)&&(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(f){return this._tooltip&&this._tooltip.setContent(f),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(f){var m=typeof f.getElement=="function"&&f.getElement();m&&(pt(m,"focus",function(){this._tooltip._source=f,this.openTooltip()},this),pt(m,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(f){var m=typeof f.getElement=="function"&&f.getElement();m&&m.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(f){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var m=this;this._map.once("moveend",function(){m._openOnceFlag=!1,m._openTooltip(f)});return}this._tooltip._source=f.layer||f.target,this.openTooltip(this._tooltip.options.sticky?f.latlng:void 0)}},_moveTooltip:function(f){var m=f.latlng,P,k;this._tooltip.options.sticky&&f.originalEvent&&(P=this._map.mouseEventToContainerPoint(f.originalEvent),k=this._map.containerPointToLayerPoint(P),m=this._map.layerPointToLatLng(k)),this._tooltip.setLatLng(m)}});var cc=ba.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(f){var m=f&&f.tagName==="DIV"?f:document.createElement("div"),P=this.options;if(P.html instanceof Element?(Wu(m),m.appendChild(P.html)):m.innerHTML=P.html!==!1?P.html:"",P.bgPos){var k=G(P.bgPos);m.style.backgroundPosition=-k.x+"px "+-k.y+"px"}return this._setIconStyles(m,"icon"),m},createShadow:function(){return null}});function Gm(f){return new cc(f)}ba.Default=ps;var Fo=ni.extend({options:{tileSize:256,opacity:1,updateWhenIdle:nt.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(f){_(this,f)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(f){f._addZoomLimit(this)},onRemove:function(f){this._removeAllTiles(),er(this._container),f._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(as(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(to(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(f){return this.options.opacity=f,this._updateOpacity(),this},setZIndex:function(f){return this.options.zIndex=f,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var f=this._clampZoom(this._map.getZoom());f!==this._tileZoom&&(this._tileZoom=f,this._updateLevels()),this._update()}return this},getEvents:function(){var f={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)),f.move=this._onMove),this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},createTile:function(){return document.createElement("div")},getTileSize:function(){var f=this.options.tileSize;return f instanceof oe?f:new oe(f,f)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(f){for(var m=this.getPane().children,P=-f(-1/0,1/0),k=0,U=m.length,te;k<U;k++)te=m[k].style.zIndex,m[k]!==this._container&&te&&(P=f(P,+te));isFinite(P)&&(this.options.zIndex=P+f(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!nt.ielt9){sn(this._container,this.options.opacity);var f=+new Date,m=!1,P=!1;for(var k in this._tiles){var U=this._tiles[k];if(!(!U.current||!U.loaded)){var te=Math.min(1,(f-U.loaded)/200);sn(U.el,te),te<1?m=!0:(U.active?P=!0:this._onOpaqueTile(U),U.active=!0)}}P&&!this._noPrune&&this._pruneTiles(),m&&(q(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=wt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var f=this._tileZoom,m=this.options.maxZoom;if(f!==void 0){for(var P in this._levels)P=Number(P),this._levels[P].el.children.length||P===f?(this._levels[P].el.style.zIndex=m-Math.abs(f-P),this._onUpdateLevel(P)):(er(this._levels[P].el),this._removeTilesAtZoom(P),this._onRemoveLevel(P),delete this._levels[P]);var k=this._levels[f],U=this._map;return k||(k=this._levels[f]={},k.el=wt("div","leaflet-tile-container leaflet-zoom-animated",this._container),k.el.style.zIndex=m,k.origin=U.project(U.unproject(U.getPixelOrigin()),f).round(),k.zoom=f,this._setZoomTransform(k,U.getCenter(),U.getZoom()),p(k.el.offsetWidth),this._onCreateLevel(k)),this._level=k,k}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var f,m,P=this._map.getZoom();if(P>this.options.maxZoom||P<this.options.minZoom){this._removeAllTiles();return}for(f in this._tiles)m=this._tiles[f],m.retain=m.current;for(f in this._tiles)if(m=this._tiles[f],m.current&&!m.active){var k=m.coords;this._retainParent(k.x,k.y,k.z,k.z-5)||this._retainChildren(k.x,k.y,k.z,k.z+2)}for(f in this._tiles)this._tiles[f].retain||this._removeTile(f)}},_removeTilesAtZoom:function(f){for(var m in this._tiles)this._tiles[m].coords.z===f&&this._removeTile(m)},_removeAllTiles:function(){for(var f in this._tiles)this._removeTile(f)},_invalidateAll:function(){for(var f in this._levels)er(this._levels[f].el),this._onRemoveLevel(Number(f)),delete this._levels[f];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(f,m,P,k){var U=Math.floor(f/2),te=Math.floor(m/2),pe=P-1,_e=new oe(+U,+te);_e.z=+pe;var Pe=this._tileCoordsToKey(_e),Re=this._tiles[Pe];return Re&&Re.active?(Re.retain=!0,!0):(Re&&Re.loaded&&(Re.retain=!0),pe>k?this._retainParent(U,te,pe,k):!1)},_retainChildren:function(f,m,P,k){for(var U=2*f;U<2*f+2;U++)for(var te=2*m;te<2*m+2;te++){var pe=new oe(U,te);pe.z=P+1;var _e=this._tileCoordsToKey(pe),Pe=this._tiles[_e];if(Pe&&Pe.active){Pe.retain=!0;continue}else Pe&&Pe.loaded&&(Pe.retain=!0);P+1<k&&this._retainChildren(U,te,P+1,k)}},_resetView:function(f){var m=f&&(f.pinch||f.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),m,m)},_animateZoom:function(f){this._setView(f.center,f.zoom,!0,f.noUpdate)},_clampZoom:function(f){var m=this.options;return m.minNativeZoom!==void 0&&f<m.minNativeZoom?m.minNativeZoom:m.maxNativeZoom!==void 0&&m.maxNativeZoom<f?m.maxNativeZoom:f},_setView:function(f,m,P,k){var U=Math.round(m);this.options.maxZoom!==void 0&&U>this.options.maxZoom||this.options.minZoom!==void 0&&U<this.options.minZoom?U=void 0:U=this._clampZoom(U);var te=this.options.updateWhenZooming&&U!==this._tileZoom;(!k||te)&&(this._tileZoom=U,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),U!==void 0&&this._update(f),P||this._pruneTiles(),this._noPrune=!!P),this._setZoomTransforms(f,m)},_setZoomTransforms:function(f,m){for(var P in this._levels)this._setZoomTransform(this._levels[P],f,m)},_setZoomTransform:function(f,m,P){var k=this._map.getZoomScale(P,f.zoom),U=f.origin.multiplyBy(k).subtract(this._map._getNewPixelOrigin(m,P)).round();nt.any3d?Jn(f.el,U,k):xr(f.el,U)},_resetGrid:function(){var f=this._map,m=f.options.crs,P=this._tileSize=this.getTileSize(),k=this._tileZoom,U=this._map.getPixelWorldBounds(this._tileZoom);U&&(this._globalTileRange=this._pxBoundsToTileRange(U)),this._wrapX=m.wrapLng&&!this.options.noWrap&&[Math.floor(f.project([0,m.wrapLng[0]],k).x/P.x),Math.ceil(f.project([0,m.wrapLng[1]],k).x/P.y)],this._wrapY=m.wrapLat&&!this.options.noWrap&&[Math.floor(f.project([m.wrapLat[0],0],k).y/P.x),Math.ceil(f.project([m.wrapLat[1],0],k).y/P.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(f){var m=this._map,P=m._animatingZoom?Math.max(m._animateToZoom,m.getZoom()):m.getZoom(),k=m.getZoomScale(P,this._tileZoom),U=m.project(f,this._tileZoom).floor(),te=m.getSize().divideBy(k*2);return new z(U.subtract(te),U.add(te))},_update:function(f){var m=this._map;if(m){var P=this._clampZoom(m.getZoom());if(f===void 0&&(f=m.getCenter()),this._tileZoom!==void 0){var k=this._getTiledPixelBounds(f),U=this._pxBoundsToTileRange(k),te=U.getCenter(),pe=[],_e=this.options.keepBuffer,Pe=new z(U.getBottomLeft().subtract([_e,-_e]),U.getTopRight().add([_e,-_e]));if(!(isFinite(U.min.x)&&isFinite(U.min.y)&&isFinite(U.max.x)&&isFinite(U.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Re in this._tiles){var Ze=this._tiles[Re].coords;(Ze.z!==this._tileZoom||!Pe.contains(new oe(Ze.x,Ze.y)))&&(this._tiles[Re].current=!1)}if(Math.abs(P-this._tileZoom)>1){this._setView(f,P);return}for(var st=U.min.y;st<=U.max.y;st++)for(var St=U.min.x;St<=U.max.x;St++){var $r=new oe(St,st);if($r.z=this._tileZoom,!!this._isValidTile($r)){var kr=this._tiles[this._tileCoordsToKey($r)];kr?kr.current=!0:pe.push($r)}}if(pe.sort(function(un,Os){return un.distanceTo(te)-Os.distanceTo(te)}),pe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _n=document.createDocumentFragment();for(St=0;St<pe.length;St++)this._addTile(pe[St],_n);this._level.el.appendChild(_n)}}}},_isValidTile:function(f){var m=this._map.options.crs;if(!m.infinite){var P=this._globalTileRange;if(!m.wrapLng&&(f.x<P.min.x||f.x>P.max.x)||!m.wrapLat&&(f.y<P.min.y||f.y>P.max.y))return!1}if(!this.options.bounds)return!0;var k=this._tileCoordsToBounds(f);return le(this.options.bounds).overlaps(k)},_keyToBounds:function(f){return this._tileCoordsToBounds(this._keyToTileCoords(f))},_tileCoordsToNwSe:function(f){var m=this._map,P=this.getTileSize(),k=f.scaleBy(P),U=k.add(P),te=m.unproject(k,f.z),pe=m.unproject(U,f.z);return[te,pe]},_tileCoordsToBounds:function(f){var m=this._tileCoordsToNwSe(f),P=new X(m[0],m[1]);return this.options.noWrap||(P=this._map.wrapLatLngBounds(P)),P},_tileCoordsToKey:function(f){return f.x+":"+f.y+":"+f.z},_keyToTileCoords:function(f){var m=f.split(":"),P=new oe(+m[0],+m[1]);return P.z=+m[2],P},_removeTile:function(f){var m=this._tiles[f];m&&(er(m.el),delete this._tiles[f],this.fire("tileunload",{tile:m.el,coords:this._keyToTileCoords(f)}))},_initTile:function(f){gt(f,"leaflet-tile");var m=this.getTileSize();f.style.width=m.x+"px",f.style.height=m.y+"px",f.onselectstart=p,f.onmousemove=p,nt.ielt9&&this.options.opacity<1&&sn(f,this.options.opacity)},_addTile:function(f,m){var P=this._getTilePos(f),k=this._tileCoordsToKey(f),U=this.createTile(this._wrapCoords(f),a(this._tileReady,this,f));this._initTile(U),this.createTile.length<2&&W(a(this._tileReady,this,f,null,U)),xr(U,P),this._tiles[k]={el:U,coords:f,current:!0},m.appendChild(U),this.fire("tileloadstart",{tile:U,coords:f})},_tileReady:function(f,m,P){m&&this.fire("tileerror",{error:m,tile:P,coords:f});var k=this._tileCoordsToKey(f);P=this._tiles[k],P&&(P.loaded=+new Date,this._map._fadeAnimated?(sn(P.el,0),q(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this)):(P.active=!0,this._pruneTiles()),m||(gt(P.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:P.el,coords:f})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),nt.ielt9||!this._map._fadeAnimated?W(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(f){return f.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(f){var m=new oe(this._wrapX?h(f.x,this._wrapX):f.x,this._wrapY?h(f.y,this._wrapY):f.y);return m.z=f.z,m},_pxBoundsToTileRange:function(f){var m=this.getTileSize();return new z(f.min.unscaleBy(m).floor(),f.max.unscaleBy(m).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var f in this._tiles)if(!this._tiles[f].loaded)return!1;return!0}});function bs(f){return new Fo(f)}var Bo=Fo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(f,m){this._url=f,m=_(this,m),m.detectRetina&&nt.retina&&m.maxZoom>0?(m.tileSize=Math.floor(m.tileSize/2),m.zoomReverse?(m.zoomOffset--,m.minZoom=Math.min(m.maxZoom,m.minZoom+1)):(m.zoomOffset++,m.maxZoom=Math.max(m.minZoom,m.maxZoom-1)),m.minZoom=Math.max(0,m.minZoom)):m.zoomReverse?m.minZoom=Math.min(m.maxZoom,m.minZoom):m.maxZoom=Math.max(m.minZoom,m.maxZoom),typeof m.subdomains=="string"&&(m.subdomains=m.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(f,m){return this._url===f&&m===void 0&&(m=!0),this._url=f,m||this.redraw(),this},createTile:function(f,m){var P=document.createElement("img");return pt(P,"load",a(this._tileOnLoad,this,m,P)),pt(P,"error",a(this._tileOnError,this,m,P)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(P.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(P.referrerPolicy=this.options.referrerPolicy),P.alt="",P.src=this.getTileUrl(f),P},getTileUrl:function(f){var m={r:nt.retina?"@2x":"",s:this._getSubdomain(f),x:f.x,y:f.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var P=this._globalTileRange.max.y-f.y;this.options.tms&&(m.y=P),m["-y"]=P}return S(this._url,i(m,this.options))},_tileOnLoad:function(f,m){nt.ielt9?setTimeout(a(f,this,null,m),0):f(null,m)},_tileOnError:function(f,m,P){var k=this.options.errorTileUrl;k&&m.getAttribute("src")!==k&&(m.src=k),f(P,m)},_onTileRemove:function(f){f.tile.onload=null},_getZoomForUrl:function(){var f=this._tileZoom,m=this.options.maxZoom,P=this.options.zoomReverse,k=this.options.zoomOffset;return P&&(f=m-f),f+k},_getSubdomain:function(f){var m=Math.abs(f.x+f.y)%this.options.subdomains.length;return this.options.subdomains[m]},_abortLoading:function(){var f,m;for(f in this._tiles)if(this._tiles[f].coords.z!==this._tileZoom&&(m=this._tiles[f].el,m.onload=p,m.onerror=p,!m.complete)){m.src=A;var P=this._tiles[f].coords;er(m),delete this._tiles[f],this.fire("tileabort",{tile:m,coords:P})}},_removeTile:function(f){var m=this._tiles[f];if(m)return m.el.setAttribute("src",A),Fo.prototype._removeTile.call(this,f)},_tileReady:function(f,m,P){if(!(!this._map||P&&P.getAttribute("src")===A))return Fo.prototype._tileReady.call(this,f,m,P)}});function Ld(f,m){return new Bo(f,m)}var Ll=Bo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(f,m){this._url=f;var P=i({},this.defaultWmsParams);for(var k in m)k in this.options||(P[k]=m[k]);m=_(this,m);var U=m.detectRetina&&nt.retina?2:1,te=this.getTileSize();P.width=te.x*U,P.height=te.y*U,this.wmsParams=P},onAdd:function(f){this._crs=this.options.crs||f.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var m=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[m]=this._crs.code,Bo.prototype.onAdd.call(this,f)},getTileUrl:function(f){var m=this._tileCoordsToNwSe(f),P=this._crs,k=re(P.project(m[0]),P.project(m[1])),U=k.min,te=k.max,pe=(this._wmsVersion>=1.3&&this._crs===Bm?[U.y,U.x,te.y,te.x]:[U.x,U.y,te.x,te.y]).join(","),_e=Bo.prototype.getTileUrl.call(this,f);return _e+w(this.wmsParams,_e,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+pe},setParams:function(f,m){return i(this.wmsParams,f),m||this.redraw(),this}});function Km(f,m){return new Ll(f,m)}Bo.WMS=Ll,Ld.wms=Km;var Ti=ni.extend({options:{padding:.1},initialize:function(f){_(this,f),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),gt(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 f={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(f.zoomanim=this._onAnimZoom),f},_onAnimZoom:function(f){this._updateTransform(f.center,f.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(f,m){var P=this._map.getZoomScale(m,this._zoom),k=this._map.getSize().multiplyBy(.5+this.options.padding),U=this._map.project(this._center,m),te=k.multiplyBy(-P).add(U).subtract(this._map._getNewPixelOrigin(f,m));nt.any3d?Jn(this._container,te,P):xr(this._container,te)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var f in this._layers)this._layers[f]._reset()},_onZoomEnd:function(){for(var f in this._layers)this._layers[f]._project()},_updatePaths:function(){for(var f in this._layers)this._layers[f]._update()},_update:function(){var f=this.options.padding,m=this._map.getSize(),P=this._map.containerPointToLayerPoint(m.multiplyBy(-f)).round();this._bounds=new z(P,P.add(m.multiplyBy(1+f*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Id=Ti.extend({options:{tolerance:0},getEvents:function(){var f=Ti.prototype.getEvents.call(this);return f.viewprereset=this._onViewPreReset,f},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ti.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var f=this._container=document.createElement("canvas");pt(f,"mousemove",this._onMouseMove,this),pt(f,"click dblclick mousedown mouseup contextmenu",this._onClick,this),pt(f,"mouseout",this._handleMouseOut,this),f._leaflet_disable_events=!0,this._ctx=f.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,er(this._container),Bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var f;this._redrawBounds=null;for(var m in this._layers)f=this._layers[m],f._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ti.prototype._update.call(this);var f=this._bounds,m=this._container,P=f.getSize(),k=nt.retina?2:1;xr(m,f.min),m.width=k*P.x,m.height=k*P.y,m.style.width=P.x+"px",m.style.height=P.y+"px",nt.retina&&this._ctx.scale(2,2),this._ctx.translate(-f.min.x,-f.min.y),this.fire("update")}},_reset:function(){Ti.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(f){this._updateDashArray(f),this._layers[c(f)]=f;var m=f._order={layer:f,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=m),this._drawLast=m,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(f){this._requestRedraw(f)},_removePath:function(f){var m=f._order,P=m.next,k=m.prev;P?P.prev=k:this._drawLast=k,k?k.next=P:this._drawFirst=P,delete f._order,delete this._layers[c(f)],this._requestRedraw(f)},_updatePath:function(f){this._extendRedrawBounds(f),f._project(),f._update(),this._requestRedraw(f)},_updateStyle:function(f){this._updateDashArray(f),this._requestRedraw(f)},_updateDashArray:function(f){if(typeof f.options.dashArray=="string"){var m=f.options.dashArray.split(/[, ]+/),P=[],k,U;for(U=0;U<m.length;U++){if(k=Number(m[U]),isNaN(k))return;P.push(k)}f.options._dashArray=P}else f.options._dashArray=f.options.dashArray},_requestRedraw:function(f){this._map&&(this._extendRedrawBounds(f),this._redrawRequest=this._redrawRequest||W(this._redraw,this))},_extendRedrawBounds:function(f){if(f._pxBounds){var m=(f.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(f._pxBounds.min.subtract([m,m])),this._redrawBounds.extend(f._pxBounds.max.add([m,m]))}},_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 f=this._redrawBounds;if(f){var m=f.getSize();this._ctx.clearRect(f.min.x,f.min.y,m.x,m.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 f,m=this._redrawBounds;if(this._ctx.save(),m){var P=m.getSize();this._ctx.beginPath(),this._ctx.rect(m.min.x,m.min.y,P.x,P.y),this._ctx.clip()}this._drawing=!0;for(var k=this._drawFirst;k;k=k.next)f=k.layer,(!m||f._pxBounds&&f._pxBounds.intersects(m))&&f._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(f,m){if(this._drawing){var P,k,U,te,pe=f._parts,_e=pe.length,Pe=this._ctx;if(_e){for(Pe.beginPath(),P=0;P<_e;P++){for(k=0,U=pe[P].length;k<U;k++)te=pe[P][k],Pe[k?"lineTo":"moveTo"](te.x,te.y);m&&Pe.closePath()}this._fillStroke(Pe,f)}}},_updateCircle:function(f){if(!(!this._drawing||f._empty())){var m=f._point,P=this._ctx,k=Math.max(Math.round(f._radius),1),U=(Math.max(Math.round(f._radiusY),1)||k)/k;U!==1&&(P.save(),P.scale(1,U)),P.beginPath(),P.arc(m.x,m.y/U,k,0,Math.PI*2,!1),U!==1&&P.restore(),this._fillStroke(P,f)}},_fillStroke:function(f,m){var P=m.options;P.fill&&(f.globalAlpha=P.fillOpacity,f.fillStyle=P.fillColor||P.color,f.fill(P.fillRule||"evenodd")),P.stroke&&P.weight!==0&&(f.setLineDash&&f.setLineDash(m.options&&m.options._dashArray||[]),f.globalAlpha=P.opacity,f.lineWidth=P.weight,f.strokeStyle=P.color,f.lineCap=P.lineCap,f.lineJoin=P.lineJoin,f.stroke())},_onClick:function(f){for(var m=this._map.mouseEventToLayerPoint(f),P,k,U=this._drawFirst;U;U=U.next)P=U.layer,P.options.interactive&&P._containsPoint(m)&&(!(f.type==="click"||f.type==="preclick")||!this._map._draggableMoved(P))&&(k=P);this._fireEvent(k?[k]:!1,f)},_onMouseMove:function(f){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var m=this._map.mouseEventToLayerPoint(f);this._handleMouseHover(f,m)}},_handleMouseOut:function(f){var m=this._hoveredLayer;m&&(Kt(this._container,"leaflet-interactive"),this._fireEvent([m],f,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(f,m){if(!this._mouseHoverThrottled){for(var P,k,U=this._drawFirst;U;U=U.next)P=U.layer,P.options.interactive&&P._containsPoint(m)&&(k=P);k!==this._hoveredLayer&&(this._handleMouseOut(f),k&&(gt(this._container,"leaflet-interactive"),this._fireEvent([k],f,"mouseover"),this._hoveredLayer=k)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,f),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(f,m,P){this._map._fireDOMEvent(m,P||m.type,f)},_bringToFront:function(f){var m=f._order;if(m){var P=m.next,k=m.prev;if(P)P.prev=k;else return;k?k.next=P:P&&(this._drawFirst=P),m.prev=this._drawLast,this._drawLast.next=m,m.next=null,this._drawLast=m,this._requestRedraw(f)}},_bringToBack:function(f){var m=f._order;if(m){var P=m.next,k=m.prev;if(k)k.next=P;else return;P?P.prev=k:k&&(this._drawLast=k),m.prev=null,m.next=this._drawFirst,this._drawFirst.prev=m,this._drawFirst=m,this._requestRedraw(f)}}});function Dd(f){return nt.canvas?new Id(f):null}var _s=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(f){return document.createElement("<lvml:"+f+' class="lvml">')}}catch{}return function(f){return document.createElement("<"+f+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ym={_initContainer:function(){this._container=wt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ti.prototype._update.call(this),this.fire("update"))},_initPath:function(f){var m=f._container=_s("shape");gt(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",f._path=_s("path"),m.appendChild(f._path),this._updateStyle(f),this._layers[c(f)]=f},_addPath:function(f){var m=f._container;this._container.appendChild(m),f.options.interactive&&f.addInteractiveTarget(m)},_removePath:function(f){var m=f._container;er(m),f.removeInteractiveTarget(m),delete this._layers[c(f)]},_updateStyle:function(f){var m=f._stroke,P=f._fill,k=f.options,U=f._container;U.stroked=!!k.stroke,U.filled=!!k.fill,k.stroke?(m||(m=f._stroke=_s("stroke")),U.appendChild(m),m.weight=k.weight+"px",m.color=k.color,m.opacity=k.opacity,k.dashArray?m.dashStyle=E(k.dashArray)?k.dashArray.join(" "):k.dashArray.replace(/( *, *)/g," "):m.dashStyle="",m.endcap=k.lineCap.replace("butt","flat"),m.joinstyle=k.lineJoin):m&&(U.removeChild(m),f._stroke=null),k.fill?(P||(P=f._fill=_s("fill")),U.appendChild(P),P.color=k.fillColor||k.color,P.opacity=k.fillOpacity):P&&(U.removeChild(P),f._fill=null)},_updateCircle:function(f){var m=f._point.round(),P=Math.round(f._radius),k=Math.round(f._radiusY||P);this._setPath(f,f._empty()?"M0 0":"AL "+m.x+","+m.y+" "+P+","+k+" 0,"+65535*360)},_setPath:function(f,m){f._path.v=m},_bringToFront:function(f){as(f._container)},_bringToBack:function(f){to(f._container)}},oi=nt.vml?_s:Fe,_a=Ti.extend({_initContainer:function(){this._container=oi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=oi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){er(this._container),Bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ti.prototype._update.call(this);var f=this._bounds,m=f.getSize(),P=this._container;(!this._svgSize||!this._svgSize.equals(m))&&(this._svgSize=m,P.setAttribute("width",m.x),P.setAttribute("height",m.y)),xr(P,f.min),P.setAttribute("viewBox",[f.min.x,f.min.y,m.x,m.y].join(" ")),this.fire("update")}},_initPath:function(f){var m=f._path=oi("path");f.options.className&>(m,f.options.className),f.options.interactive&>(m,"leaflet-interactive"),this._updateStyle(f),this._layers[c(f)]=f},_addPath:function(f){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(f._path),f.addInteractiveTarget(f._path)},_removePath:function(f){er(f._path),f.removeInteractiveTarget(f._path),delete this._layers[c(f)]},_updatePath:function(f){f._project(),f._update()},_updateStyle:function(f){var m=f._path,P=f.options;m&&(P.stroke?(m.setAttribute("stroke",P.color),m.setAttribute("stroke-opacity",P.opacity),m.setAttribute("stroke-width",P.weight),m.setAttribute("stroke-linecap",P.lineCap),m.setAttribute("stroke-linejoin",P.lineJoin),P.dashArray?m.setAttribute("stroke-dasharray",P.dashArray):m.removeAttribute("stroke-dasharray"),P.dashOffset?m.setAttribute("stroke-dashoffset",P.dashOffset):m.removeAttribute("stroke-dashoffset")):m.setAttribute("stroke","none"),P.fill?(m.setAttribute("fill",P.fillColor||P.color),m.setAttribute("fill-opacity",P.fillOpacity),m.setAttribute("fill-rule",P.fillRule||"evenodd")):m.setAttribute("fill","none"))},_updatePoly:function(f,m){this._setPath(f,ge(f._parts,m))},_updateCircle:function(f){var m=f._point,P=Math.max(Math.round(f._radius),1),k=Math.max(Math.round(f._radiusY),1)||P,U="a"+P+","+k+" 0 1,0 ",te=f._empty()?"M0 0":"M"+(m.x-P)+","+m.y+U+P*2+",0 "+U+-P*2+",0 ";this._setPath(f,te)},_setPath:function(f,m){f._path.setAttribute("d",m)},_bringToFront:function(f){as(f._path)},_bringToBack:function(f){to(f._path)}});nt.vml&&_a.include(Ym);function fc(f){return nt.svg||nt.vml?new _a(f):null}Tt.include({getRenderer:function(f){var m=f.options.renderer||this._getPaneRenderer(f.options.pane)||this.options.renderer||this._renderer;return m||(m=this._renderer=this._createRenderer()),this.hasLayer(m)||this.addLayer(m),m},_getPaneRenderer:function(f){if(f==="overlayPane"||f===void 0)return!1;var m=this._paneRenderers[f];return m===void 0&&(m=this._createRenderer({pane:f}),this._paneRenderers[f]=m),m},_createRenderer:function(f){return this.options.preferCanvas&&Dd(f)||fc(f)}});var Zm=ao.extend({initialize:function(f,m){ao.prototype.initialize.call(this,this._boundsToLatLngs(f),m)},setBounds:function(f){return this.setLatLngs(this._boundsToLatLngs(f))},_boundsToLatLngs:function(f){return f=le(f),[f.getSouthWest(),f.getNorthWest(),f.getNorthEast(),f.getSouthEast()]}});function e_(f,m){return new Zm(f,m)}_a.create=oi,_a.pointsToPath=ge,Ci.geometryToLayer=ms,Ci.coordsToLatLng=oc,Ci.coordsToLatLngs=Nl,Ci.latLngToCoords=ac,Ci.latLngsToCoords=sc,Ci.getFeature=vs,Ci.asFeature=lc,Tt.mergeOptions({boxZoom:!0});var xs=Ln.extend({initialize:function(f){this._map=f,this._container=f._container,this._pane=f._panes.overlayPane,this._resetStateTimeout=0,f.on("unload",this._destroy,this)},addHooks:function(){pt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){er(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(f){if(!f.shiftKey||f.which!==1&&f.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Rt(),Gu(),this._startPoint=this._map.mouseEventToContainerPoint(f),pt(document,{contextmenu:ti,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(f){this._moved||(this._moved=!0,this._box=wt("div","leaflet-zoom-box",this._container),gt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(f);var m=new z(this._point,this._startPoint),P=m.getSize();xr(this._box,m.min),this._box.style.width=P.x+"px",this._box.style.height=P.y+"px"},_finish:function(){this._moved&&(er(this._box),Kt(this._container,"leaflet-crosshair")),us(),Ku(),Bt(document,{contextmenu:ti,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(f){if(!(f.which!==1&&f.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var m=new X(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(m).fire("boxzoomend",{boxZoomBounds:m})}},_onKeyDown:function(f){f.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Tt.addInitHook("addHandler","boxZoom",xs),Tt.mergeOptions({doubleClickZoom:!0});var Xm=Ln.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(f){var m=this._map,P=m.getZoom(),k=m.options.zoomDelta,U=f.originalEvent.shiftKey?P-k:P+k;m.options.doubleClickZoom==="center"?m.setZoom(U):m.setZoomAround(f.containerPoint,U)}});Tt.addInitHook("addHandler","doubleClickZoom",Xm),Tt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var $d=Ln.extend({addHooks:function(){if(!this._draggable){var f=this._map;this._draggable=new ri(f._mapPane,f._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),f.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),f.on("zoomend",this._onZoomEnd,this),f.whenReady(this._onZoomEnd,this))}gt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Kt(this._map._container,"leaflet-grab"),Kt(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 f=this._map;if(f._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var m=le(this._map.options.maxBounds);this._offsetLimit=re(this._map.latLngToContainerPoint(m.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(m.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;f.fire("movestart").fire("dragstart"),f.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(f){if(this._map.options.inertia){var m=this._lastTime=+new Date,P=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(P),this._times.push(m),this._prunePositions(m)}this._map.fire("move",f).fire("drag",f)},_prunePositions:function(f){for(;this._positions.length>1&&f-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var f=this._map.getSize().divideBy(2),m=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=m.subtract(f).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(f,m){return f-(f-m)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var f=this._draggable._newPos.subtract(this._draggable._startPos),m=this._offsetLimit;f.x<m.min.x&&(f.x=this._viscousLimit(f.x,m.min.x)),f.y<m.min.y&&(f.y=this._viscousLimit(f.y,m.min.y)),f.x>m.max.x&&(f.x=this._viscousLimit(f.x,m.max.x)),f.y>m.max.y&&(f.y=this._viscousLimit(f.y,m.max.y)),this._draggable._newPos=this._draggable._startPos.add(f)}},_onPreDragWrap:function(){var f=this._worldWidth,m=Math.round(f/2),P=this._initialWorldOffset,k=this._draggable._newPos.x,U=(k-m+P)%f+m-P,te=(k+m+P)%f-m-P,pe=Math.abs(U+P)<Math.abs(te+P)?U:te;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=pe},_onDragEnd:function(f){var m=this._map,P=m.options,k=!P.inertia||f.noInertia||this._times.length<2;if(m.fire("dragend",f),k)m.fire("moveend");else{this._prunePositions(+new Date);var U=this._lastPos.subtract(this._positions[0]),te=(this._lastTime-this._times[0])/1e3,pe=P.easeLinearity,_e=U.multiplyBy(pe/te),Pe=_e.distanceTo([0,0]),Re=Math.min(P.inertiaMaxSpeed,Pe),Ze=_e.multiplyBy(Re/Pe),st=Re/(P.inertiaDeceleration*pe),St=Ze.multiplyBy(-st/2).round();!St.x&&!St.y?m.fire("moveend"):(St=m._limitOffset(St,m.options.maxBounds),W(function(){m.panBy(St,{duration:st,easeLinearity:pe,noMoveStart:!0,animate:!0})}))}}});Tt.addInitHook("addHandler","dragging",$d),Tt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Fd=Ln.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(f){this._map=f,this._setPanDelta(f.options.keyboardPanDelta),this._setZoomDelta(f.options.zoomDelta)},addHooks:function(){var f=this._map._container;f.tabIndex<=0&&(f.tabIndex="0"),pt(f,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Bt(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 f=document.body,m=document.documentElement,P=f.scrollTop||m.scrollTop,k=f.scrollLeft||m.scrollLeft;this._map._container.focus(),window.scrollTo(k,P)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(f){var m=this._panKeys={},P=this.keyCodes,k,U;for(k=0,U=P.left.length;k<U;k++)m[P.left[k]]=[-1*f,0];for(k=0,U=P.right.length;k<U;k++)m[P.right[k]]=[f,0];for(k=0,U=P.down.length;k<U;k++)m[P.down[k]]=[0,f];for(k=0,U=P.up.length;k<U;k++)m[P.up[k]]=[0,-1*f]},_setZoomDelta:function(f){var m=this._zoomKeys={},P=this.keyCodes,k,U;for(k=0,U=P.zoomIn.length;k<U;k++)m[P.zoomIn[k]]=f;for(k=0,U=P.zoomOut.length;k<U;k++)m[P.zoomOut[k]]=-f},_addHooks:function(){pt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(f){if(!(f.altKey||f.ctrlKey||f.metaKey)){var m=f.keyCode,P=this._map,k;if(m in this._panKeys){if(!P._panAnim||!P._panAnim._inProgress)if(k=this._panKeys[m],f.shiftKey&&(k=G(k).multiplyBy(3)),P.options.maxBounds&&(k=P._limitOffset(G(k),P.options.maxBounds)),P.options.worldCopyJump){var U=P.wrapLatLng(P.unproject(P.project(P.getCenter()).add(k)));P.panTo(U)}else P.panBy(k)}else if(m in this._zoomKeys)P.setZoom(P.getZoom()+(f.shiftKey?3:1)*this._zoomKeys[m]);else if(m===27&&P._popup&&P._popup.options.closeOnEscapeKey)P.closePopup();else return;ti(f)}}});Tt.addInitHook("addHandler","keyboard",Fd),Tt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ut=Ln.extend({addHooks:function(){pt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(f){var m=Rm(f),P=this._map.options.wheelDebounceTime;this._delta+=m,this._lastMousePos=this._map.mouseEventToContainerPoint(f),this._startTime||(this._startTime=+new Date);var k=Math.max(P-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),k),ti(f)},_performZoom:function(){var f=this._map,m=f.getZoom(),P=this._map.options.zoomSnap||0;f._stop();var k=this._delta/(this._map.options.wheelPxPerZoomLevel*4),U=4*Math.log(2/(1+Math.exp(-Math.abs(k))))/Math.LN2,te=P?Math.ceil(U/P)*P:U,pe=f._limitZoom(m+(this._delta>0?te:-te))-m;this._delta=0,this._startTime=null,pe&&(f.options.scrollWheelZoom==="center"?f.setZoom(m+pe):f.setZoomAround(this._lastMousePos,m+pe))}});Tt.addInitHook("addHandler","scrollWheelZoom",Ut);var Bd=600;Tt.mergeOptions({tapHold:nt.touchNative&&nt.safari&&nt.mobile,tapTolerance:15});var Il=Ln.extend({addHooks:function(){pt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(f){if(clearTimeout(this._holdTimeout),f.touches.length===1){var m=f.touches[0];this._startPos=this._newPos=new oe(m.clientX,m.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(pt(document,"touchend",gr),pt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),Bd),pt(document,"touchend touchcancel contextmenu",this._cancel,this),pt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function f(){Bt(document,"touchend",gr),Bt(document,"touchend touchcancel",f)},_cancel:function(){clearTimeout(this._holdTimeout),Bt(document,"touchend touchcancel contextmenu",this._cancel,this),Bt(document,"touchmove",this._onMove,this)},_onMove:function(f){var m=f.touches[0];this._newPos=new oe(m.clientX,m.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(f,m){var P=new MouseEvent(f,{bubbles:!0,cancelable:!0,view:window,screenX:m.screenX,screenY:m.screenY,clientX:m.clientX,clientY:m.clientY});P._simulated=!0,m.target.dispatchEvent(P)}});Tt.addInitHook("addHandler","tapHold",Il),Tt.mergeOptions({touchZoom:nt.touch,bounceAtZoomLimits:!0});var ws=Ln.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),pt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Kt(this._map._container,"leaflet-touch-zoom"),Bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(f){var m=this._map;if(!(!f.touches||f.touches.length!==2||m._animatingZoom||this._zooming)){var P=m.mouseEventToContainerPoint(f.touches[0]),k=m.mouseEventToContainerPoint(f.touches[1]);this._centerPoint=m.getSize()._divideBy(2),this._startLatLng=m.containerPointToLatLng(this._centerPoint),m.options.touchZoom!=="center"&&(this._pinchStartLatLng=m.containerPointToLatLng(P.add(k)._divideBy(2))),this._startDist=P.distanceTo(k),this._startZoom=m.getZoom(),this._moved=!1,this._zooming=!0,m._stop(),pt(document,"touchmove",this._onTouchMove,this),pt(document,"touchend touchcancel",this._onTouchEnd,this),gr(f)}},_onTouchMove:function(f){if(!(!f.touches||f.touches.length!==2||!this._zooming)){var m=this._map,P=m.mouseEventToContainerPoint(f.touches[0]),k=m.mouseEventToContainerPoint(f.touches[1]),U=P.distanceTo(k)/this._startDist;if(this._zoom=m.getScaleZoom(U,this._startZoom),!m.options.bounceAtZoomLimits&&(this._zoom<m.getMinZoom()&&U<1||this._zoom>m.getMaxZoom()&&U>1)&&(this._zoom=m._limitZoom(this._zoom)),m.options.touchZoom==="center"){if(this._center=this._startLatLng,U===1)return}else{var te=P._add(k)._divideBy(2)._subtract(this._centerPoint);if(U===1&&te.x===0&&te.y===0)return;this._center=m.unproject(m.project(this._pinchStartLatLng,this._zoom).subtract(te),this._zoom)}this._moved||(m._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var pe=a(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=W(pe,this,!0),gr(f)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),Bt(document,"touchmove",this._onTouchMove,this),Bt(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))}});Tt.addInitHook("addHandler","touchZoom",ws),Tt.BoxZoom=xs,Tt.DoubleClickZoom=Xm,Tt.Drag=$d,Tt.Keyboard=Fd,Tt.ScrollWheelZoom=Ut,Tt.TapHold=Il,Tt.TouchZoom=ws,r.Bounds=z,r.Browser=nt,r.CRS=be,r.Canvas=Id,r.Circle=nc,r.CircleMarker=rc,r.Class=Q,r.Control=yn,r.DivIcon=cc,r.DivOverlay=Ei,r.DomEvent=Xu,r.DomUtil=El,r.Draggable=ri,r.Evented=se,r.FeatureGroup=io,r.GeoJSON=Ci,r.GridLayer=Fo,r.Handler=Ln,r.Icon=ba,r.ImageOverlay=$o,r.LatLng=ce,r.LatLngBounds=X,r.Layer=ni,r.LayerGroup=Io,r.LineUtil=Fm,r.Map=Tt,r.Marker=oo,r.Mixin=Od,r.Path=Do,r.Point=oe,r.PolyUtil=Vb,r.Polygon=ao,r.Polyline=bn,r.Popup=uc,r.PosAnimation=Qu,r.Projection=Kb,r.Rectangle=Zm,r.Renderer=Ti,r.SVG=_a,r.SVGOverlay=Nd,r.TileLayer=Bo,r.Tooltip=ys,r.Transformation=ue,r.Util=J,r.VideoOverlay=Rd,r.bind=a,r.bounds=re,r.canvas=Dd,r.circle=Rl,r.circleMarker=Vm,r.control=Lo,r.divIcon=Gm,r.extend=i,r.featureGroup=Um,r.geoJSON=Wm,r.geoJson=ii,r.gridLayer=bs,r.icon=zm,r.imageOverlay=qm,r.latLng=de,r.latLngBounds=le,r.layerGroup=kl,r.map=Mo,r.marker=Xb,r.point=G,r.polygon=Jb,r.polyline=Qb,r.popup=gs,r.rectangle=e_,r.setOptions=_,r.stamp=c,r.svg=fc,r.svgOverlay=Md,r.tileLayer=Ld,r.tooltip=Ml,r.transformation=ie,r.version=n,r.videoOverlay=Hm;var Qm=window.L;r.noConflict=function(){return window.L=Qm,this},window.L=r})}(Th,Th.exports)),Th.exports}var gm=fSe();const T5=Nt(gm);function Kj(e,t,r){return Object.freeze({instance:e,context:t,container:r})}function Yj(e,t){return t==null?function(n,i){const o=I.useRef();return o.current||(o.current=e(n,i)),o}:function(n,i){const o=I.useRef();o.current||(o.current=e(n,i));const a=I.useRef(n),{instance:s}=o.current;return I.useEffect(function(){a.current!==n&&(t(s,n,a.current),a.current=n)},[s,n,i]),o}}function dSe(e,t){I.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function oz(e){return function(r){const n=nz(),i=e(Gj(r,n),n);return ez(n.map,r.attribution),iz(i.current,r.eventHandlers),dSe(i.current,n),i}}function hSe(e,t){const r=Yj(e,t),n=oz(r);return aSe(n)}function pSe(e,t){const r=Yj(e),n=uSe(r,t);return sSe(n)}function mSe(e,t){const r=Yj(e,t),n=oz(r);return lSe(n)}function vSe(e,t,r){const{opacity:n,zIndex:i}=t;n!=null&&n!==r.opacity&&e.setOpacity(n),i!=null&&i!==r.zIndex&&e.setZIndex(i)}function wE(){return wE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wE.apply(this,arguments)}function gSe({bounds:e,boundsOptions:t,center:r,children:n,className:i,id:o,placeholder:a,style:s,whenReady:c,zoom:u,...h},p){const[v]=I.useState({className:i,id:o,style:s}),[b,x]=I.useState(null);I.useImperativeHandle(p,()=>(b==null?void 0:b.map)??null,[b]);const _=I.useCallback(O=>{if(O!==null&&b===null){const S=new gm.Map(O,h);r!=null&&u!=null?S.setView(r,u):e!=null&&S.fitBounds(e,t),c!=null&&S.whenReady(c),x(iSe(S))}},[]);I.useEffect(()=>()=>{b==null||b.map.remove()},[b]);const w=b?Z.createElement(rz,{value:b},n):a??null;return Z.createElement("div",wE({},v,{ref:_}),w)}const ySe=I.forwardRef(gSe),bSe=hSe(function({position:t,...r},n){const i=new gm.Marker(t,r);return Kj(i,oSe(n,{overlayContainer:i}))},function(t,r,n){r.position!==n.position&&t.setLatLng(r.position),r.icon!=null&&r.icon!==n.icon&&t.setIcon(r.icon),r.zIndexOffset!=null&&r.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(r.zIndexOffset),r.opacity!=null&&r.opacity!==n.opacity&&t.setOpacity(r.opacity),t.dragging!=null&&r.draggable!==n.draggable&&(r.draggable===!0?t.dragging.enable():t.dragging.disable())}),_Se=pSe(function(t,r){const n=new gm.Popup(t,r.overlayContainer);return Kj(n,r)},function(t,r,{position:n},i){I.useEffect(function(){const{instance:a}=t;function s(u){u.popup===a&&(a.update(),i(!0))}function c(u){u.popup===a&&i(!1)}return r.map.on({popupopen:s,popupclose:c}),r.overlayContainer==null?(n!=null&&a.setLatLng(n),a.openOn(r.map)):r.overlayContainer.bindPopup(a),function(){var h;r.map.off({popupopen:s,popupclose:c}),(h=r.overlayContainer)==null||h.unbindPopup(),r.map.removeLayer(a)}},[t,r,i,n])}),xSe=mSe(function({url:t,...r},n){const i=new gm.TileLayer(t,Gj(r,n));return Kj(i,n)},function(t,r,n){vSe(t,r,n);const{url:i}=r;i!=null&&i!==n.url&&t.setUrl(i)}),wSe={"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"},az={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"},Er={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Sn={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"},Vs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Ne{static getFirstMatch(t,r){const n=r.match(t);return n&&n.length>0&&n[1]||""}static getSecondMatch(t,r){const n=r.match(t);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(t,r,n){if(t.test(r))return n}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 r=t.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[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 r=t.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,r,n=!1){const i=Ne.getVersionPrecision(t),o=Ne.getVersionPrecision(r);let a=Math.max(i,o),s=0;const c=Ne.map([t,r],u=>{const h=a-Ne.getVersionPrecision(u),p=u+new Array(h+1).join(".0");return Ne.map(p.split("."),v=>new Array(20-v.length).join("0")+v).reverse()});for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}}static map(t,r){const n=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,r);for(i=0;i<t.length;i+=1)n.push(r(t[i]));return n}static find(t,r){let n,i;if(Array.prototype.find)return Array.prototype.find.call(t,r);for(n=0,i=t.length;n<i;n+=1){const o=t[n];if(r(o,n))return o}}static assign(t,...r){const n=t;let i,o;if(Object.assign)return Object.assign(t,...r);for(i=0,o=r.length;i<o;i+=1){const a=r[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(c=>{n[c]=a[c]})}return t}static getBrowserAlias(t){return wSe[t]}static getBrowserTypeByAlias(t){return az[t]||""}}const Vt=/version\/(\d+(\.?_?\d+)+)/i,OSe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},r=Ne.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},r=Ne.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},r=Ne.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},r=Ne.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},r=Ne.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},r=Ne.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},r=Ne.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},r=Ne.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=Ne.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},r=Ne.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},r=Ne.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},r=Ne.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},r=Ne.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},r=Ne.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},r=Ne.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},r=Ne.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},r=Ne.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},r=Ne.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},r=Ne.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},r=Ne.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},r=Ne.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},r=Ne.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},r=Ne.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},r=Ne.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},r=Ne.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},r=Ne.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},r=Ne.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t={name:"Android Browser"},r=Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},r=Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},r=Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?r:t;return{name:Ne.getFirstMatch(i,e),version:Ne.getSecondMatch(i,e)}}}],SSe=[{test:[/Roku\/DVP/],describe(e){const t=Ne.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Sn.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Ne.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Sn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Ne.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=Ne.getWindowsVersionName(t);return{name:Sn.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Sn.iOS},r=Ne.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){const t=Ne.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=Ne.getMacOSVersionName(t),n={name:Sn.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Ne.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Sn.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t=Ne.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=Ne.getAndroidVersionName(t),n={name:Sn.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Ne.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:Sn.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Ne.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Ne.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Ne.getFirstMatch(/\bbb(\d+)/i,e);return{name:Sn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Ne.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Sn.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Ne.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Sn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Sn.Linux}}},{test:[/CrOS/],describe(){return{name:Sn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Ne.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Sn.PlayStation4,version:t}}}],PSe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Ne.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:Er.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Er.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Er.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Er.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Er.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Er.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Er.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){const t=Ne.getFirstMatch(/(ipod|iphone)/i,e);return{type:Er.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Er.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Er.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Er.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Er.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Er.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Er.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Er.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Er.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Er.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Er.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Er.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Er.tv}}}],CSe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Vs.Blink};const r=Ne.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Vs.EdgeHTML,version:r}}},{test:[/trident/i],describe(e){const t={name:Vs.Trident},r=Ne.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Vs.Presto},r=Ne.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){const t={name:Vs.Gecko},r=Ne.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Vs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Vs.WebKit},r=Ne.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];class j5{constructor(t,r=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Ne.find(OSe,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));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=Ne.find(SSe,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));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:r}=this.getOS();return t?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:r}=this.getPlatform();return t?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const t=Ne.find(PSe,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));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=Ne.find(CSe,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));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 Ne.assign({},this.parsedResult)}satisfies(t){const r={};let n=0;const i={};let o=0;if(Object.keys(t).forEach(s=>{const c=t[s];typeof c=="string"?(i[s]=c,o+=1):typeof c=="object"&&(r[s]=c,n+=1)}),n>0){const s=Object.keys(r),c=Ne.find(s,h=>this.isOS(h));if(c){const h=this.satisfies(r[c]);if(h!==void 0)return h}const u=Ne.find(s,h=>this.isPlatform(h));if(u){const h=this.satisfies(r[u]);if(h!==void 0)return h}}if(o>0){const s=Object.keys(i),c=Ne.find(s,u=>this.isBrowser(u,!0));if(c!==void 0)return this.compareVersion(i[c])}}isBrowser(t,r=!1){const n=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=Ne.getBrowserTypeByAlias(i);return r&&o&&(i=o.toLowerCase()),i===n}compareVersion(t){let r=[0],n=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(n=t.substr(1),t[1]==="="?(i=!0,n=t.substr(2)):r=[],t[0]===">"?r.push(1):r.push(-1)):t[0]==="="?n=t.substr(1):t[0]==="~"&&(i=!0,n=t.substr(1)),r.indexOf(Ne.compareVersions(o,n,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,r=!1){return this.isBrowser(t,r)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(r=>this.is(r))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class ESe{static getParser(t,r=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new j5(t,r)}static parse(t){return new j5(t).getResult()}static get BROWSER_MAP(){return az}static get ENGINE_MAP(){return Vs}static get OS_MAP(){return Sn}static get PLATFORMS_MAP(){return Er}}var TSe=Object.defineProperty,jSe=(e,t,r)=>t in e?TSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tl=(e,t,r)=>jSe(e,typeof t!="symbol"?t+"":t,r);const ASe=e=>(e==null?void 0:e.type)===MT.INVALID_ARGUMENT,kSe=e=>(e==null?void 0:e.type)===MT.INVALID_SHORT_URL_DELETION,RSe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Oi=e=>RSe(e)?e:void 0,Zj=e=>"error"in e,aa=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,ASe(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),ku=({style:e,className:t,...r})=>g.jsx("button",{type:"button",className:ze("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...r}),sz=I.createContext(""),NSe=sz.Provider,_l=()=>I.useContext(sz),lz=I.createContext(void 0),{Provider:Xj}=lz,jb=()=>I.useContext(lz),MSe=5,Qj=()=>{const[e,t]=I.useState([]),r=I.useMemo(()=>e.length>=MSe,[e.length]),n=I.useCallback(s=>!r&&t(c=>[...c,s]),[r]),i=I.useCallback(s=>!r&&e.every(c=>c.name!==s),[e,r]),o=I.useCallback(s=>t(c=>c.filter(u=>u!==s)),[]),a=I.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:n,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},Jj=({className:e,type:t})=>{const r=_l(),n=jb(),i=I.useMemo(()=>n?encodeURIComponent(n.itemsToCompare.map(c=>c.query).join(",")):"",[n]);if(!n||n.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=n;return g.jsx("div",{className:ze("top-sticky",e),children:g.jsxs(Wt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[g.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((c,u)=>{var h;return g.jsxs("li",{className:ze("badge pe-1",{"bg-secondary":!((h=c.style)!=null&&h.backgroundColor)}),style:c.style,children:[c.name,g.jsx(ku,{"aria-label":`Remove ${c.name}`,className:"fw-bold fs-6",onClick:()=>s(c),children:"×"})]},`${c.name}_${u}`)})}),g.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[g.jsxs(_t,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:Ht,to:`${r}/${t}/compare-visits?${t}=${i}`,children:[g.jsx(Ge,{icon:j0,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),g.jsx(_t,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},LSe=(e,{maxVersion:t,minVersion:r})=>{const n=!r||HP(e,r,">=");return(!t||HP(e,t,"<="))&&n},uz={excludeBotsOnShortUrls:{minVersion:"3.4.0"},filterDisabledUrls:{minVersion:"3.4.0"},deviceLongUrls:{minVersion:"3.5.0",maxVersion:"3.*.*"},shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},shortUrlRedirectRules:{minVersion:"4.0.0"},qrCodeColors:{minVersion:"4.0.0"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"}};Object.freeze(uz);const po=(e,t)=>LSe(t==="latest"?"999.99.99":t,uz[e]),cz=e=>({excludeBotsOnShortUrls:po("excludeBotsOnShortUrls",e),filterDisabledUrls:po("filterDisabledUrls",e),deviceLongUrls:po("deviceLongUrls",e),shortUrlVisitsDeletion:po("shortUrlVisitsDeletion",e),orphanVisitsDeletion:po("orphanVisitsDeletion",e),shortUrlRedirectRules:po("shortUrlRedirectRules",e),qrCodeColors:po("qrCodeColors",e),urlValidation:po("urlValidation",e),ipRedirectCondition:po("ipRedirectCondition",e),geolocationRedirectCondition:po("geolocationRedirectCondition",e),filterShortUrlsByDomain:po("filterShortUrlsByDomain",e)}),fz=I.createContext(cz("0.0.0")),ISe=fz.Provider,DSe=e=>I.useMemo(()=>cz(e),[e]),bi=e=>I.useContext(fz)[e],Wf="DEFAULT",Cg=({className:e="",placement:t,children:r})=>{const n=Yi();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:n,children:g.jsx(Ge,{icon:XE})}),g.jsx(wi,{target:n,placement:t,children:r})]})},dz=e=>t=>{t.preventDefault(),e()},eA=(e,t,r=1)=>LT(r,e+1).map(t),$Se=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,au=e=>e!=null&&!$Se(e),UO=e=>e||null,OE=e=>e?"true":"false",zO=e=>e===void 0?void 0:OE(e),VO=({isLast:e,...t})=>g.jsx(wg,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),FSe=({isOpen:e,toggle:t,domain:r,editDomainRedirects:n})=>{var i,o,a;const[s,c]=I.useState(((i=r.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,h]=I.useState(((o=r.redirects)==null?void 0:o.regular404Redirect)??""),[p,v]=I.useState(((a=r.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),b=dz(async()=>n({domain:r.domain,redirects:{baseUrlRedirect:UO(s),regular404Redirect:UO(u),invalidShortUrlRedirect:UO(p)}}).then(t));return g.jsx(Yn,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:b,children:[g.jsxs(la,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:r.domain})]}),g.jsxs(Co,{children:[g.jsxs(VO,{value:s,onChange:c,children:[g.jsxs(Cg,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",g.jsxs("b",{children:["https://",r.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),g.jsxs(VO,{value:u,onChange:h,children:[g.jsxs(Cg,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",g.jsxs("b",{children:["https://",r.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),g.jsxs(VO,{value:p,isLast:!0,onChange:v,children:[g.jsx(Cg,{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"]})]}),g.jsxs(Ja,{children:[g.jsx(_t,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",children:"Save"})]})]})})},BSe=({domain:e,editDomainRedirects:t})=>{const[r,n]=ur(),i=_l(),o=jb(),a=bi("filterShortUrlsByDomain");return g.jsxs($0,{children:[g.jsxs(Ye,{tag:Ht,to:`${i}/domain/${e.domain}${e.isDefault?`_${Wf}`:""}/visits`,children:[g.jsx(Ge,{icon:ZE,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ye,{disabled:!o||!o.canAddItemWithName(e.domain),onClick:()=>o==null?void 0:o.addItemToCompare({name:e.domain,query:e.domain}),children:[g.jsx(Ge,{icon:j0,fixedWidth:!0})," Compare visits"]}),a&&g.jsxs(Ye,{tag:Ht,to:`${i}/list-short-urls/1?domain=${e.isDefault?Wf:e.domain}`,children:[g.jsx(Ge,{icon:KE,fixedWidth:!0})," Short URLs"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{onClick:n,children:[g.jsx(Ge,{icon:YE,fixedWidth:!0})," Edit redirects"]}),g.jsx(FSe,{domain:e,isOpen:r,toggle:n,editDomainRedirects:t})]})},USe=(e,t)=>{const r=n=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||n()};return iae({delta:40,onSwipedLeft:r(t),onSwipedRight:r(e)})},zSe=(e,t)=>{const[r,n]=I.useState(t),i=I.useCallback(o=>{const{location:a,history:s}=window,c=MF(a.search);c[e]=o,s.pushState(null,"",`${a.pathname}?${D0(c)}`),n(o)},[e]);return[r,i]},tA=e=>{const t=Zf();return I.useMemo(()=>{var r;return((r=t[e])==null?void 0:r.split(",").filter(Boolean))??[]},[e,t])},VSe=()=>{const e=sa();return I.useCallback(()=>e(-1),[e])},rA=(e,t)=>{const r=I.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[n,i]=I.useState(r());return I.useEffect(()=>{const o=()=>i(r());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[r]),n},WSe=(e,t,r)=>{I.useEffect(()=>{if(!r)return()=>{};const n=i=>i.key===e&&t();return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r,t,e])},qSe=({status:e,matchMedia:t=window.matchMedia})=>{const r=Yi(),n=rA(991,t);return e==="validating"?g.jsx(Ge,{fixedWidth:!0,icon:n$,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:r,children:e==="valid"?g.jsx(Ge,{fixedWidth:!0,icon:Zh,className:"text-muted"}):g.jsx(Ge,{fixedWidth:!0,icon:nS,className:"text-danger"})}),g.jsx(wi,{target:r,placement:n?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":g.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",g.jsx("br",{}),"Check the ",g.jsx(Gn,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},WO=({fallback:e})=>g.jsxs("span",{className:"text-muted",children:[!e&&g.jsx("small",{children:"No redirect"}),e&&g.jsxs(g.Fragment,{children:[e," ",g.jsx("small",{children:"(as fallback)"})]})]}),HSe=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ge,{fixedWidth:!0,icon:DK,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(wi,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),GSe=({domain:e,editDomainRedirects:t,checkDomainHealth:r,defaultRedirects:n})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return I.useEffect(()=>{r(e.domain)},[r,e.domain]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&g.jsx(HSe,{})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??g.jsx(WO,{fallback:n==null?void 0:n.baseUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??g.jsx(WO,{fallback:n==null?void 0:n.regular404Redirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??g.jsx(WO,{fallback:n==null?void 0:n.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(qSe,{status:s})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(BSe,{domain:e,editDomainRedirects:t})})]})},A5=[{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}],KSe=({domainsList:e,filterDomains:t,editDomainRedirects:r,checkDomainHealth:n})=>{var i;const{filteredDomains:o,defaultRedirects:a,loading:s,error:c,errorData:u}=e,h=a??((i=o.find(({isDefault:v})=>v))==null?void 0:i.redirects),p=Qj();return s?g.jsx(qa,{loading:!0}):g.jsxs(Xj,{value:p,children:[g.jsx(im,{className:"mb-3",onChange:t}),g.jsx(Jj,{type:"domains",className:"mb-3"}),c?g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:u,fallbackMessage:"Error loading domains :("})}):g.jsx(Wt,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsx("tr",{children:A5.map((v,b)=>g.jsx("th",{children:g.jsx("span",{className:v.isHidden?"sr-only":void 0,children:v.value})},b))})}),g.jsxs("tbody",{children:[o.length<1&&g.jsx("tr",{children:g.jsx("td",{colSpan:A5.length,className:"text-center",children:"No results found"})}),o.map(v=>g.jsx(GSe,{domain:v,editDomainRedirects:r,checkDomainHealth:n,defaultRedirects:h},v.domain))]})]})})]})},Vr=(e,t)=>QF(e,t,{serializeError:r=>r}),YSe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",ZSe=e=>Vr(YSe,async({domain:t,redirects:r})=>{const n=await e().editDomainRedirects({domain:t,...r});return{domain:t,redirects:n}}),sg="shlink/domainsList",lg={domains:[],filteredDomains:[],loading:!1,error:!1},k5=({domain:e,redirects:t})=>r=>r.domain!==e?r:{...r,redirects:t},R5=(e,t)=>r=>r.domain!==e?r:{...r,status:t},XSe=(e,t,r)=>{const n=Vr(`${sg}/listDomains`,async()=>{const{data:s,defaultRedirects:c}=await e().listDomains();return{domains:s.map(u=>({...u,status:"validating"})),defaultRedirects:c}}),i=Vr(`${sg}/checkDomainHealth`,async s=>{try{const{status:c}=await e().health(s);return{domain:s,status:c==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),o=jn(`${sg}/filterDomains`),{reducer:a}=Tr({name:sg,initialState:lg,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...lg,loading:!0})),s.addCase(n.rejected,(c,{error:u})=>({...lg,error:!0,errorData:Oi(u)})),s.addCase(n.fulfilled,(c,{payload:u})=>({...lg,...u,filteredDomains:u.domains})),s.addCase(i.fulfilled,({domains:c,filteredDomains:u,...h},{payload:p})=>({...h,domains:c.map(R5(p.domain,p.status)),filteredDomains:u.map(R5(p.domain,p.status))})),s.addCase(o,(c,{payload:u})=>({...c,filteredDomains:c.domains.filter(({domain:h})=>h.toLowerCase().match(u.toLowerCase()))})),s.addCase(t.fulfilled,(c,{payload:u})=>({...c,domains:c.domains.map(k5(u)),filteredDomains:c.filteredDomains.map(k5(u))})),s.addCase(r.fulfilled,(c,{payload:u})=>{u.domain===null||c.domains.some(h=>h.domain===u.domain)||c.domains.push({domain:u.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:a,listDomains:n,checkDomainHealth:i,filterDomains:o}},QSe=(e,t)=>{e.serviceFactory("ManageDomains",()=>KSe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",XSe,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",r=>r.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",r=>r.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",r=>r.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",ZSe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",r=>r.checkDomainHealth,"domainsListReducerCreator")},N5="shlink/mercure",JSe={loading:!0,error:!1},ePe=e=>{const t=Vr(`${N5}/loadMercureInfo`,n=>{if(n&&n.realTimeUpdates&&!n.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:r}=Tr({name:N5,initialState:JSe,reducers:{},extraReducers:n=>{n.addCase(t.pending,i=>({...i,loading:!0,error:!1})),n.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),n.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:r}},tPe=e=>{e.serviceFactory("mercureInfoReducerCreator",ePe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function cr(e){return I.useRef(e).current}function fr(e,t){return(r,n=globalThis.console)=>(t.forEach(i=>{const o=r[i];e[i]=o}),e)}const rPe=(e,t,r,n)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const c=({data:p})=>r(JSON.parse(p)),u=({status:p})=>p===401&&n(),h=t.map(p=>{const v=new URL(i);v.searchParams.append("topic",p);const b=new sae.EventSourcePolyfill(v,{headers:{Authorization:`Bearer ${o}`}});return b.onmessage=c,b.onerror=u,b});return()=>h.forEach(p=>p.close())};function Ao(e,t){const r=new Set;return n=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=n,s=Gf();return I.useEffect(()=>{const{interval:c}=a,u=b=>c?r.add(b):i([b]),h=t(s),p=rPe(a,h,u,o);if(!c)return p;const v=setInterval(()=>{i([...r]),r.clear()},c*1e3*60);return()=>{clearInterval(v),p==null||p()}},[i,o,a,s]),g.jsx(e,{...n})}}class kn{}tl(kn,"visits","https://shlink.io/new-visit"),tl(kn,"orphanVisits","https://shlink.io/new-orphan-visit"),tl(kn,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const cd=jn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Hh=(e,t,r)=>r==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===r,nPe=(e,t)=>!e.domain&&t===Wf?!0:e.domain===t,iPe=(e,t)=>{const r=(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:r}:{longUrl:"",validateUrl:r}},hz=e=>e.replaceAll("/","__"),nA=e=>e.replaceAll("__","/"),iA=({domain:e,shortCode:t})=>`${e??Wf}__${hz(t)}`,pz=e=>{const[t,r]=e.split(/__(.+)/);if(!r)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===Wf?null:t,shortCode:nA(r)}},oA="shlink/shortUrlDeletion",M5={shortCode:"",loading:!1,deleted:!1,error:!1},oPe=e=>Vr(`${oA}/deleteShortUrl`,async({shortCode:t,domain:r})=>(await e().deleteShortUrl(t,r),{shortCode:t,domain:r})),mz=jn(`${oA}/shortUrlDeleted`),aPe=e=>{const{actions:t,reducer:r}=Tr({name:oA,initialState:M5,reducers:{resetDeleteShortUrl:()=>M5},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Oi(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:n}=t;return{reducer:r,resetDeleteShortUrl:n}},vz="shlink/shortUrlsList",gz=5,sPe={loading:!0,error:!1},lPe=e=>Vr(`${vz}/listShortUrls`,t=>e().listShortUrls(t??{})),uPe=(e,t,r)=>Tr({name:vz,initialState:sPe,reducers:{},extraReducers:n=>{n.addCase(e.pending,i=>({...i,loading:!0,error:!1})),n.addCase(e.rejected,()=>({loading:!1,error:!0})),n.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),n.addCase(r.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,gz-1)],i.shortUrls.pagination.totalItems+=1)}),n.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:c}=o;return Hh(a,s,c)?o:a}))}),n.addCase(mz,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Hh(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),n.addCase(cd,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:c})=>c&&Hh(a,c.shortCode,c.domain)))==null?void 0:s.shortUrl)??a}))})}}),L5=10,{ceil:cPe}=Math,fPe=new Intl.NumberFormat("en-US"),Sr=e=>fPe.format(Number(e)),dPe=e=>cPe(e/L5)*L5,SE=({children:e,title:t,link:r,tooltip:n})=>{const i=Yi();return g.jsxs(g.Fragment,{children:[g.jsxs(xi,{innerRef:i,className:"highlight-card",body:!0,tag:Ht,to:r,children:[g.jsx(Ge,{size:"3x",className:"highlight-card__link-icon",icon:xae}),g.jsx(xF,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),g.jsx(_F,{className:"fs-2 fw-semibold lh-sm",children:e})]}),n&&g.jsx(wi,{target:i,placement:"bottom",children:n})]})},I5=({loading:e,excludeBots:t,visitsSummary:r,...n})=>g.jsx(SE,{tooltip:r.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("strong",{children:Sr(r.bots)})," potential bot visits"]}):void 0,...n,children:e?"Loading...":Sr(t&&r.nonBots?r.nonBots:r.total)}),D5=({children:e,titleLinkText:t,titleLink:r,title:n})=>g.jsxs(xi,{children:[g.jsxs(tm,{className:"d-flex justify-content-between align-items-center",children:[g.jsx("span",{className:"d-sm-none",children:n}),g.jsx("h5",{className:"d-none d-sm-inline m-0",children:n}),g.jsxs(Ht,{to:r,children:[t," »"]})]}),g.jsx(em,{children:e})]}),yz=Ao(({shortUrlsList:e,listShortUrls:t,tagsList:r,loadVisitsOverview:n,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=cr(yz),{loading:s,shortUrls:c}=e,{loading:u}=r,{loading:h,nonOrphanVisits:p,orphanVisits:v}=i,b=_l(),x=sa(),_=Rn("visits");return I.useEffect(()=>{t({itemsPerPage:gz,orderBy:{field:"dateCreated",dir:"DESC"}}),n()},[t,n]),g.jsxs(g.Fragment,{children:[g.jsxs(Yo,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(I5,{title:"Visits",link:`${b}/non-orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:h,visitsSummary:p})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(I5,{title:"Orphan visits",link:`${b}/orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:h,visitsSummary:v})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(SE,{title:"Short URLs",link:`${b}/list-short-urls/1`,children:s?"Loading...":Sr((c==null?void 0:c.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(SE,{title:"Tags",link:`${b}/manage-tags`,children:u?"Loading...":Sr(r.tags.length)})})]}),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(D5,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${b}/create-short-url`,children:g.jsx(a,{basicMode:!0})}),g.jsx(D5,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${b}/list-short-urls/1`,children:g.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:w=>x(`${b}/list-short-urls/1?tags=${encodeURIComponent(w)}`)})})]})]})},()=>[kn.visits,kn.orphanVisits]),hPe=fr(yz,["ShortUrlsTable","CreateShortUrl"]);function pPe(e,t){e.factory("Overview",hPe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const bz="shlink/setShortUrlRedirectRules",$5={saving:!1,saved:!1,error:!1},mPe=e=>Vr(`${bz}/setShortUrlRedirectRules`,({shortUrl:t,data:r})=>{const{shortCode:n,domain:i}=t;return e().setShortUrlRedirectRules(n,i,r)}),vPe=e=>{const{reducer:t,actions:r}=Tr({name:bz,initialState:$5,reducers:{resetSetRules:()=>$5},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:Oi(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:n}=r;return{reducer:t,resetSetRules:n}},_z="shlink/getShortUrlRedirectRules",gPe={loading:!0,error:!1},yPe=e=>Vr(`${_z}/getShortUrlRedirectRules`,({shortCode:t,domain:r})=>e().getShortUrlRedirectRules(t,r)),bPe=e=>Tr({name:_z,initialState:gPe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(r,{payload:n})=>({loading:!1,error:!1,...n}))}});function _Pe(e,t){var r=!1;return function(...n){r||(e.call(null,...n),r=!0,setTimeout(function(){r=!1},t))}}function xz(e){return e.split(" ").filter(t=>t)}var wz=typeof window<"u";function Ru(e,t,r=!1){if(!t)return;const n=xz(t);if(n.length&&!n.includes("longTouch"))for(const i of e){if(!ym(i)||!ta.has(i)){i.classList.add(...n);continue}const o=[],a=ta.get(i);if(a){for(const s of n)i.classList.contains(s)?i.classList.contains(s)&&r===!1&&o.push(s):i.classList.add(s);a.privateClasses=o,ta.set(i,a)}}}function p0(e,t){if(!t)return;const r=xz(t);if(r.length)for(const n of e){if(!ym(n)){n.classList.remove(...r);continue}const i=ta.get(n);if(i)for(const o of r)i.privateClasses.includes(o)||n.classList.remove(o)}}function Oz(e){let t=e.parentNode;for(;t!==null&&t.nodeType===1&&t instanceof HTMLElement;){const r=window.getComputedStyle(t).getPropertyValue("overflow");if(r==="scroll"||r==="auto")return t;t=t.parentNode}return document.documentElement}function xPe(e){if(!(e.e instanceof TouchEvent))return;const t=e.e.touches[0].clientX,r=e.e.touches[0].clientY;let n=document.elementFromPoint(t,r);if(!ym(n))return;let i,o=!0;for(;n&&o;){if(ta.has(n)||bo.has(n)){o=!1,i=bo.has(n);break}n=n.parentNode}if(i){const a=bo.get(n);return a?{parent:{el:n,data:a}}:void 0}else{const a=ta.get(n);if(!a)return;const s=bo.get(n.parentNode);return s?{node:{el:n,data:a},parent:{el:n.parentNode,data:s}}:void 0}}function ym(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function Sz(e,t){const r=new AbortController;for(const n in t){const i=t[n];e.addEventListener(n,i,{signal:r.signal,passive:!1})}return r}function Pz(e,t,r=!1){const n=window.getComputedStyle(e),i=["position","z-index","top","left","x","pointer-events","y","transform-origin","filter","-webkit-text-fill-color"];for(const o of Array.from(n))r===!1&&o&&i.includes(o)||t.style.setProperty(o,n.getPropertyValue(o),n.getPropertyPriority(o));for(const o of Array.from(e.children)){if(!ym(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];Pz(o,a,r)}}function Fu(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}Array();var F5={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},ta=new WeakMap,bo=new WeakMap,yt=void 0;function wPe(){yt=void 0}function Cz(e){return yt={ascendingDirection:!1,incomingDirection:void 0,enterCount:0,targetIndex:0,affectedNodes:[],lastValue:void 0,activeNode:void 0,lastTargetValue:void 0,remapJustFinished:!1,preventEnter:!1,clonedDraggedEls:[],swappedNodeValue:!1,originalZIndex:void 0,...e},yt}function OPe(e,t){return yt={...e,...t},yt}function Ez(e){const{x:t,y:r}=Fu(e.e);return{coordinates:{x:t,y:r},draggedNode:{el:e.targetData.node.el,data:e.targetData.node.data},draggedNodes:[{el:e.targetData.node.el,data:e.targetData.node.data}],initialIndex:e.targetData.node.data.index,initialParent:{el:e.targetData.parent.el,data:e.targetData.parent.data},lastParent:{el:e.targetData.parent.el,data:e.targetData.parent.data},scrollParent:Oz(e.targetData.node.el)}}function SPe(e,t){const r=Tz(e),n=[...PE(t.targetData.parent.el,t.targetData.parent.data).filter(i=>!r.includes(i))];n.splice(t.targetData.node.data.index,0,...r),e.lastTargetValue=t.targetData.node.data.value,CE(t.targetData.parent.el,t.targetData.parent.data,[...n])}function PE(e,t){return[...t.getValues(e)]}function CE(e,t,r){t.setValues(r,e)}function Tz(e){return[...e.draggedNodes.map(t=>t.data.value)]}function PPe({parent:e,getValues:t,setValues:r,config:n={}}){var i,o;if(!wz)return;document.addEventListener("dragover",s=>{if(s.preventDefault(),yt){yt.remapJustFinished=!1,yt.lastTargetValue=void 0;const{x:c,y:u}=Fu(s);yt.coordinates.y=u,yt.coordinates.x=c,Ab()}}),jz(e);const a={getValues:t,setValues:r,config:{handleDragstart:jPe,handleDragoverNode:tCe,handleDragoverParent:rCe,handleEnd:FPe,handleTouchstart:UPe,handleTouchmove:qPe,handleTouchOverNode:MPe,handleTouchOverParent:nCe,performSort:SPe,performTransfer:sCe,root:document,setupNode:LPe,setupNodeRemap:Rz,reapplyDragClasses:IPe,tearDownNode:$Pe,tearDownNodeRemap:DPe,remapFinished:TPe,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...n},enabledNodes:[],abortControllers:{}};CPe(e,a),(i=n.plugins)==null||i.forEach(s=>{var c,u;(u=(c=s(e))==null?void 0:c.tearDown)==null||u.call(c)}),(o=n.plugins)==null||o.forEach(s=>{var c,u;(u=(c=s(e))==null?void 0:c.setup)==null||u.call(c)}),Az(e,!0)}function jz(e){const t=bo.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function CPe(e,t){new MutationObserver(EPe).observe(e,{childList:!0}),bo.set(e,t),t.abortControllers.mainParent=Sz(e,{dragover:lCe(_Pe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function EPe(e){const t=e[0].target;t instanceof HTMLElement&&Az(t)}function Az(e,t){const r=bo.get(e);if(!r)return;const n=[],i=r.config;for(let s=0;s<e.children.length;s++){const c=e.children[s];if(!ym(c))continue;const u=ta.get(c);(t||!u)&&i.tearDownNode({node:c,parent:e,nodeData:u,parentData:r}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(c))&&n.push(c)}if(n.length!==r.getValues(e).length&&!i.disabled){console.warn("The number of enabled nodes does not match the number of values.");return}const o=r.getValues(e),a=[];for(let s=0;s<n.length;s++){const c=n[s],u=ta.get(c),h=Object.assign(u??{privateClasses:[],abortControllers:{}},{value:o[s],index:s});if(yt&&h.value===yt.draggedNode.data.value&&(yt.draggedNode.data=h,yt.draggedNode.el=c),yt&&yt.draggedNodes.map(v=>v.data.value).includes(h.value)){const v=yt.draggedNodes.find(b=>b.data.value===h.value);v&&(v.el=c)}a.push({el:c,data:h});const p={node:c,parent:e,parentData:r,nodeData:h};(t||!u)&&i.setupNode(p),Rz(p)}bo.set(e,{...r,enabledNodes:a}),i.remapFinished(r)}function TPe(){yt&&(yt.preventEnter=!1,yt.swappedNodeValue=void 0,yt.remapJustFinished=!0)}function jPe(e){e.e instanceof DragEvent&&NPe({e:e.e,targetData:e.targetData})}function APe(e,t,r){Ru([e],t),setTimeout(()=>{p0([e],t),Ru([e],r)})}function kPe(e){const t=Cz(Ez(e));return e.e.stopPropagation(),e.e.dataTransfer&&(e.e.dataTransfer.dropEffect="move",e.e.dataTransfer.effectAllowed="move",e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY)),t}function kz(e){if(!(e.e instanceof DragEvent)&&!(e.e instanceof TouchEvent))return!1;const t=e.targetData.parent.data.config;if(!t.dragHandle)return!0;const r=e.targetData.node.el.querySelectorAll(t.dragHandle);if(!r)return!1;const n=Fu(e.e),i=t.root.elementFromPoint(n.x,n.y);if(!i)return!1;for(const o of Array.from(r))if(i===o||o.contains(i))return!0;return!1}function RPe(e){if(!kz(e))return;const t=zPe(e);VPe(e,t),WPe(e,t)}function NPe(e){if(!kz(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,r=kPe(e),n=e.targetData.node.el.style.zIndex;r.originalZIndex=n,e.targetData.node.el.style.zIndex="9999",APe(r.draggedNode.el,t.draggingClass,t.dropZoneClass)}function MPe(e){yt&&(e.detail.targetData.parent.el===yt.lastParent.el?Lz(e.detail,yt):kb(e.detail,yt))}function LPe(e){var t;const r=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=Sz(e.node,{dragstart:Dc(r.handleDragstart),dragover:Dc(r.handleDragoverNode),dragend:Dc(r.handleEnd),touchstart:Dc(r.handleTouchstart),touchmove:Dc(r.handleTouchmove),touchend:Dc(r.handleEnd),touchOverNode:r.handleTouchOverNode}),r.reapplyDragClasses(e.node,e.parentData),(t=e.parentData.config.plugins)==null||t.forEach(n=>{var i,o;(o=(i=n(e.parent))==null?void 0:i.setupNode)==null||o.call(i,e)})}function Rz(e){var t;ta.set(e.node,e.nodeData),(t=e.parentData.config.plugins)==null||t.forEach(r=>{var n,i;(i=(n=r(e.parent))==null?void 0:n.setupNodeRemap)==null||i.call(n,e)})}function IPe(e,t){if(!yt)return;const r="touchedNode"in yt?t.config.touchDropZoneClass:t.config.dropZoneClass;yt.draggedNode.el===e&&Ru([e],r,!0)}function DPe(e){var t;(t=e.parentData.config.plugins)==null||t.forEach(r=>{var n,i;(i=(n=r(e.parent))==null?void 0:n.tearDownNodeRemap)==null||i.call(n,e)})}function $Pe(e){var t,r,n,i,o;(t=e.parentData.config.plugins)==null||t.forEach(a=>{var s,c;(c=(s=a(e.parent))==null?void 0:s.tearDownNode)==null||c.call(s,e)}),e.node.draggable=!1,(n=(r=e.nodeData)==null?void 0:r.abortControllers)!=null&&n.mainNode&&((o=(i=e.nodeData)==null?void 0:i.abortControllers)==null||o.mainNode.abort())}function FPe(e){yt&&(BPe(e,yt),wPe())}function BPe(e,t){var r,n,i,o;document.removeEventListener("contextmenu",Nz),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(r=bo.get(t.initialParent.el))==null?void 0:r.config,s="touchedNode"in t?a==null?void 0:a.touchDropZoneClass:a==null?void 0:a.dropZoneClass;t.originalZIndex!==void 0&&(t.draggedNode.el.style.zIndex=t.originalZIndex),Ru(t.draggedNodes.map(c=>c.el),s,!0),p0(t.draggedNodes.map(c=>c.el),s),a!=null&&a.longTouchClass&&p0(t.draggedNodes.map(c=>c.el),(i=(n=t.initialParent.data)==null?void 0:n.config)==null?void 0:i.longTouchClass),"touchedNode"in t&&((o=t.touchedNode)==null||o.remove())}function UPe(e){e.e instanceof TouchEvent&&RPe({e:e.e,targetData:e.targetData})}function zPe(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),r=e.targetData.node.el.getBoundingClientRect();return OPe(Cz(Ez(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:Oz(e.targetData.node.el),touchStartLeft:e.e.touches[0].clientX-r.left,touchStartTop:e.e.touches[0].clientY-r.top,touchedNode:t,touchMoving:!1})}function Nz(e){e.preventDefault()}function VPe(e,t){t.touchedNodeDisplay=t.touchedNode.style.display;const r=e.targetData.node.el.getBoundingClientRect();t.touchedNode.style.cssText=`
|
||
width: ${r.width}px;
|
||
position: fixed;
|
||
pointer-events: none;
|
||
top: -9999px;
|
||
z-index: 999999;
|
||
display: none;
|
||
`,document.body.append(t.touchedNode),Pz(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",Nz)}function WPe(e,t){const r=e.targetData.parent.data.config;r.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,r.longTouchClass&&e.e.cancelable&&Ru(t.draggedNodes.map(n=>n.el),r.longTouchClass),e.e.preventDefault())},r.longTouchTimeout||200))}function qPe(e){!yt||!("touchedNode"in yt)||eCe(e,yt)}function HPe(e,t){t.longTouchClass&&p0(e.draggedNodes.map(r=>r.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&Ru([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&Ru(e.draggedNodes.map(r=>r.el),t.touchDropZoneClass)}function GPe(e){if(!e||!e.scrollParent)return;const{x:t,y:r,width:n,height:i}=e.scrollParent.getBoundingClientRect(),{x:o,y:a,scrollOutside:s}=e.lastParent.data.config.scrollBehavior;return{state:e,xThresh:o,yThresh:a,scrollOutside:s,scrollParent:e.scrollParent,x:t,y:r,width:n,height:i}}function KPe(e){const t=GPe(yt);if(t)switch(e){case"down":return QPe(t.state,t);case"up":return XPe(t.state,t);case"right":return YPe(t.state,t);case"left":return ZPe(t.state,t)}}function YPe(e,t){const r=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&r<0)&&r<(1-t.xThresh)*t.scrollParent.clientWidth&&!(t.scrollParent.scrollLeft+t.scrollParent.clientWidth>=t.scrollParent.scrollWidth))return e}function ZPe(e,t){const r=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&r>t.scrollParent.clientWidth)&&r>t.xThresh*t.scrollParent.clientWidth&&t.scrollParent.scrollLeft!==0)return e}function XPe(e,t){const r=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&r>t.scrollParent.clientHeight)&&r>t.yThresh*t.scrollParent.clientHeight&&t.scrollParent.scrollTop!==0)return e}function QPe(e,t){const r=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&r<0)&&r<(1-t.yThresh)*t.scrollParent.clientHeight&&!(t.scrollParent.scrollTop+t.scrollParent.clientHeight>=t.scrollParent.scrollHeight))return e}function JPe(e,t){t.touchMoving=!0,t.touchedNode.style.display=t.touchedNodeDisplay||"";const{x:r,y:n}=Fu(e.e);t.coordinates.y=n,t.coordinates.x=r;const i=t.touchStartLeft??0,o=t.touchStartTop??0;t.touchedNode.style.left=`${r-i}px`,t.touchedNode.style.top=`${n-o}px`,HPe(t,e.targetData.parent.data.config)}function eCe(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),JPe(e,t),Ab();const r=xPe(e);if(!r)return;const n={e:e.e,targetData:r};"node"in r?r.node.el.dispatchEvent(new CustomEvent("touchOverNode",{detail:n})):r.parent.el.dispatchEvent(new CustomEvent("touchOverParent",{detail:n}))}function Ab(){for(const e of Object.keys(F5)){const[t,r]=F5[e];Mz(e,t,r)}}function Mz(e,t,r){const n=KPe(e);n&&(n.scrollParent.scrollBy(t,r),setTimeout(()=>{Mz(e,t,r)},"touchedNode"in n?10:100))}function tCe(e){if(!yt)return;const{x:t,y:r}=Fu(e.e);yt.coordinates.y=r,yt.coordinates.x=t,Ab(),oCe(e,yt)}function rCe(e){if(!yt)return;const{x:t,y:r}=Fu(e.e);yt.coordinates.y=r,yt.coordinates.x=t,Ab(),kb(e,yt)}function nCe(e){yt&&kb(e.detail,yt)}function iCe(e,t){if(e.targetData.parent.el===t.lastParent.el)return!1;const r=e.targetData.parent.data.config;if(r.dropZone===!1)return!1;const n=t.initialParent.data.config;return r.accepts?r.accepts(e.targetData.parent,t.initialParent,t.lastParent,t):!(!r.group||r.group!==n.group)}function oCe(e,t){var r;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((r=t.lastParent)==null?void 0:r.el)?Lz(e,t):kb(e,t)}function aCe(e,t,r,n){var i;if(t.remapJustFinished)return t.remapJustFinished=!1,t.lastTargetValue=e.targetData.node.data.value,!1;if(t.lastTargetValue===e.targetData.node.data.value||t.draggedNodes.map(v=>v.el).includes(e.targetData.node.el)||t.preventEnter||t.swappedNodeValue===e.targetData.node.data.value||e.targetData.parent.el!==((i=t.lastParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1)return!1;const o=e.targetData.node.el.getBoundingClientRect(),a=t.draggedNode.el.getBoundingClientRect(),s=o.y-a.y,c=o.x-a.x;let u;const h=t.draggedNode.data.index>e.targetData.node.data.index?[e.targetData.node.data.index,t.draggedNode.data.index]:[t.draggedNode.data.index,e.targetData.node.data.index];t.targetIndex=e.targetData.node.data.index,t.affectedNodes=e.targetData.parent.data.enabledNodes.filter(v=>h[0]<=v.data.index&&v.data.index<=h[1]&&v.el!==t.draggedNode.el),Math.abs(s)>Math.abs(c)?u=s>0?"above":"below":u=c>0?"left":"right";const p=t.lastParent.data.config.threshold;switch(u){case"left":if(r>o.x+o.width*p.horizontal)return t.incomingDirection="left",!0;break;case"right":if(r<o.x+o.width*(1-p.horizontal))return t.incomingDirection="right",!0;break;case"above":if(n>o.y+o.height*p.vertical)return t.incomingDirection="above",!0;break;case"below":if(n<o.y+o.height*(1-p.vertical))return t.incomingDirection="below",!0;break}return!1}function Lz(e,t){const{x:r,y:n}=Fu(e.e);aCe(e,t,r,n)&&(t.swappedNodeValue=e.targetData.node.data.value,t.preventEnter=!0,e.targetData.parent.data.config.performSort(t,e))}function Dc(e){function t(r){var n;const i=ta.get(r),o=r.parentNode||((n=yt==null?void 0:yt.lastParent)==null?void 0:n.el);if(!i)return;const a=bo.get(o);if(a)return{node:{el:r,data:i},parent:{el:o,data:a}}}return r=>{const n=t(r.currentTarget);if(n)return e({e:r,targetData:n})}}function sCe(e,t){const r=Tz(e),n=PE(e.lastParent.el,e.lastParent.data).filter(s=>!r.includes(s)),i=PE(t.targetData.parent.el,t.targetData.parent.data),o=e.initialParent.el===t.targetData.parent.el&&t.targetData.parent.data.config.sortable===!1;let a;"node"in t.targetData?(o?a=e.initialIndex:t.targetData.parent.data.config.sortable===!1?a=t.targetData.parent.data.enabledNodes.length:a=t.targetData.node.data.index,i.splice(a,0,...r)):(a=o?e.initialIndex:t.targetData.parent.data.enabledNodes.length,i.splice(a,0,...r)),CE(e.lastParent.el,e.lastParent.data,n),CE(t.targetData.parent.el,t.targetData.parent.data,i)}function kb(e,t){iCe(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function lCe(e){function t(r){const n=bo.get(r);if(n)return{parent:{el:r,data:n}}}return r=>{const n=t(r.currentTarget);if(n)return e({e:r,targetData:n})}}function uCe(e){if(e instanceof HTMLElement)return e;if("current"in e&&e.current instanceof HTMLElement)return e.current;console.warn("Invalid parent element",e)}function cCe(e,t){const r=uCe(e);r&&t(r)}var m0=new WeakMap;function fCe(e){const t=m0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function dCe(e,t){const r=m0.get(t);r&&r[1](e),m0.set(t,[e,r[1]])}function hCe(e,t){return r=>{m0.set(r,t),PPe({parent:r,getValues:fCe,setValues:dCe,config:e})}}function B5(e){wz&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:r,state:n,...i}=t;cCe(r,hCe(i,n))}))}function pCe(e,t={}){const r=I.useRef(null),[n,i]=I.useState(e);function o(a={}){B5({parent:r,state:[n,i],...a})}return I.useEffect(()=>{B5({parent:r,state:[n,i],...t})},[n]),I.useEffect(()=>()=>{r.current&&jz(r.current)},[]),[r,n,i,o]}const Rb=()=>{const e=sa(),t=_l(),r=Zf(),n=I.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:c,excludePastValidUntil:u,...h}=r,p=o?Die(o):void 0,v=(a==null?void 0:a.split(","))??[];return{...h,orderBy:p,tags:v,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:c!==void 0?c==="true":void 0,excludePastValidUntil:u!==void 0?u==="true":void 0}},[r]),i=I.useCallback(o=>{const a={...n,...o},{orderBy:s,tags:c,excludeBots:u,excludeMaxVisitsReached:h,excludePastValidUntil:p,...v}=a,b={...v,orderBy:s&&Iie(s),tags:c.length>0?c.join(","):void 0,excludeBots:zO(u),excludeMaxVisitsReached:zO(h),excludePastValidUntil:zO(p)},x=D0(b),_=x?`?${x}`:"";e(`${t}/list-short-urls/1${_}`)},[n,e,t]);return[n,i]},aA=()=>{const{domain:e}=Zf(),{shortCode:t=""}=Gf();return I.useMemo(()=>({shortCode:nA(t),domain:e}),[e,t])},Nb=()=>{const e=VSe();return g.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:g.jsx(Ge,{icon:ZK})})},mCe={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"East Timor",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",CG:"Republic of the Congo",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},vCe={android:"Android",ios:"iOS",desktop:"Desktop"},gCe=({deviceType:e,onDeviceTypeChange:t})=>{const r=I.useId();return g.jsxs("div",{children:[g.jsx("label",{htmlFor:r,children:"Device type:"}),g.jsxs("select",{id:r,className:"form-select",value:e,onChange:n=>t(n.target.value),required:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select type -"}),Object.entries(vCe).map(([n,i])=>g.jsx("option",{value:n,children:i},n))]})]})},sA=({value:e,onValueChange:t,label:r,placeholder:n})=>{const i=I.useId();return g.jsxs("div",{children:[g.jsxs("label",{htmlFor:i,children:[r,":"]}),g.jsx(Zr,{id:i,value:e??"",onChange:o=>t(o.target.value),placeholder:n,required:!0})]})},yCe=({language:e,onLanguageChange:t})=>g.jsx(sA,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),bCe=({name:e,value:t,onNameChange:r,onValueChange:n})=>{const i=I.useId(),o=I.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:i,children:"Param name:"}),g.jsx(Zr,{id:i,value:e??"",onChange:a=>r(a.target.value),placeholder:"hello",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:o,children:"Param value:"}),g.jsx(Zr,{id:o,value:t??"",onChange:a=>n(a.target.value),placeholder:"world",required:!0})]})]})},_Ce=({ipAddress:e,onIpAddressChange:t})=>g.jsx(sA,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),xCe=({countryCode:e,onCountryCodeChange:t})=>{const r=I.useId();return g.jsxs("div",{children:[g.jsx("label",{htmlFor:r,children:"Country:"}),g.jsxs("select",{id:r,className:"form-select",value:e,onChange:n=>t(n.target.value),required:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select country -"}),Object.entries(mCe).map(([n,i])=>g.jsx("option",{value:n,children:i},n))]})]})},wCe=({cityName:e,onCityNameChange:t})=>g.jsx(sA,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),OCe=({condition:e,onConditionChange:t,onDelete:r})=>{const n=I.useId(),i=I.useCallback(h=>t({type:h,matchValue:"",matchKey:null}),[t]),o=I.useCallback(h=>t({...e,matchValue:h}),[e,t]),a=I.useCallback(h=>t({...e,matchKey:h}),[e,t]),s=bi("ipRedirectCondition"),c=bi("geolocationRedirectCondition"),u=I.useMemo(()=>{const h={device:"Device type",language:"Language","query-param":"Query param"};return s&&(h["ip-address"]="IP address"),c&&(h["geolocation-country-code"]="Country (geolocation)",h["geolocation-city-name"]="City name (geolocation)"),h},[c,s]);return g.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2 position-relative",children:[g.jsxs("div",{children:[g.jsx(_t,{outline:!0,size:"sm",type:"button","aria-label":"Remove condition",onClick:r,className:"position-absolute rounded-circle redirect-rule-modal__remove-condition-button",children:g.jsx(Ge,{icon:a$,className:"redirect-rule-modal__remove-condition-button-icon"})}),g.jsx("label",{htmlFor:n,children:"Type:"}),g.jsx("select",{id:n,className:"form-select flex-grow-1",value:e.type,onChange:h=>i(h.target.value),children:Object.entries(u).map(([h,p])=>g.jsx("option",{value:h,children:p},h))})]}),e.type==="device"&&g.jsx(gCe,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&g.jsx(yCe,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&g.jsx(bCe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o}),e.type==="ip-address"&&g.jsx(_Ce,{ipAddress:e.matchValue,onIpAddressChange:o}),e.type==="geolocation-country-code"&&g.jsx(xCe,{countryCode:e.matchValue,onCountryCodeChange:o}),e.type==="geolocation-city-name"&&g.jsx(wCe,{cityName:e.matchValue,onCityNameChange:o})]})},Iz=({isOpen:e,toggle:t,onSave:r,initialData:n})=>{const[i,o]=I.useState(n??{longUrl:"",conditions:[]}),a=I.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i&&r(i),t()},[r,i,t]),s=I.useCallback(()=>o(({longUrl:b,conditions:x})=>({longUrl:b,conditions:[...x,{type:"device",matchValue:"",matchKey:null}]})),[]),c=I.useCallback((b,x)=>o(({longUrl:_,conditions:w})=>{const O=[...w];return O[b]=x,{longUrl:_,conditions:O}}),[]),u=I.useCallback(b=>o(({longUrl:x,conditions:_})=>{const w=[..._];return w.splice(b,1),{longUrl:x,conditions:w}}),[]),h=Yi(),p=I.useCallback(()=>{var b;return(b=h==null?void 0:h.current)==null?void 0:b.focus()},[h]),v=I.useCallback(()=>o(n??{longUrl:"",conditions:[]}),[n]);return g.jsx(Yn,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:p,onClosed:v,children:g.jsxs("form",{onSubmit:a,children:[g.jsx(la,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),g.jsxs(Co,{children:[g.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),g.jsx(Zr,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:b=>o(x=>({...x,longUrl:b.target.value})),required:!0,innerRef:h}),g.jsx("hr",{}),g.jsxs("div",{className:"d-flex justify-content-between",children:[g.jsx("b",{children:"Conditions:"}),g.jsx(_t,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:s,children:g.jsx(Ge,{icon:Yp})})]}),i.conditions.length===0&&g.jsx("div",{className:"text-center",children:g.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&g.jsx(Yo,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((b,x)=>g.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:g.jsx(OCe,{condition:b,onConditionChange:_=>c(x,_),onDelete:()=>u(x)})},`${x}_${b.type}`))})]}),g.jsxs(Ja,{className:"sticky-bottom redirect-rule-modal__footer",children:[g.jsx(_t,{type:"button",color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},SCe=({priority:e,isLast:t,redirectRule:r,onDelete:n,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,c]=ur();return g.jsxs(Wt,{children:[g.jsxs("div",{className:"d-flex align-content-center gap-3",children:[g.jsx("div",{className:"d-flex flex-column my-auto drag-n-drop-handler d-none d-md-block",style:{cursor:"grab"},children:g.jsx(Ge,{icon:rY})}),g.jsxs("div",{className:"d-flex flex-column my-auto",children:[g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"rounded-0 rounded-top",style:{marginBottom:"-1px"},children:g.jsx(Ge,{icon:gY})}),g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:o,className:"rounded-0 rounded-bottom",children:g.jsx(Ge,{icon:dY})})]}),g.jsxs("div",{className:"flex-grow-1",children:[g.jsxs("div",{className:"mb-2",children:[g.jsx("b",{children:"Long URL:"})," ",g.jsx(Gn,{href:r.longUrl,"data-testid":"rule-long-url"})]}),g.jsxs("div",{className:"d-flex flex-column flex-lg-row gap-2",children:[g.jsx("b",{children:"Conditions:"}),r.conditions.map((u,h)=>g.jsxs("div",{className:"badge bg-secondary",children:[u.type==="device"&&g.jsxs(g.Fragment,{children:["Device is ",u.matchValue]}),u.type==="language"&&g.jsxs(g.Fragment,{children:[u.matchValue," language is accepted"]}),u.type==="query-param"&&g.jsxs(g.Fragment,{children:["Query string contains ",u.matchKey,"=",u.matchValue]}),u.type==="ip-address"&&g.jsxs(g.Fragment,{children:["IP address matches ",u.matchValue]}),u.type==="geolocation-country-code"&&g.jsxs(g.Fragment,{children:["Country code is ",u.matchValue]}),u.type==="geolocation-city-name"&&g.jsxs(g.Fragment,{children:["City name is ",u.matchValue]})]},`${u.type}_${h}`))]})]}),g.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:c,children:g.jsx(Ge,{icon:r$})}),g.jsx(_t,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:n,children:g.jsx(Ge,{icon:TK})})]})]}),g.jsx(Iz,{onSave:a,isOpen:s,toggle:c,initialData:r})]})},PCe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:r,shortUrlsDetails:n,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=aA(),{shortUrls:c}=n,u=s&&(c==null?void 0:c.get(s)),[h,p,v]=pCe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:b,saved:x,errorData:_}=o,[w,O]=ur(),S=I.useCallback(V=>v((B=[])=>[...B,V]),[v]),E=I.useCallback(V=>v((B=[])=>{const W=[...B];return W.splice(V,1),W}),[v]),T=I.useCallback((V,B)=>v((W=[])=>{const q=[...W];return q[V]=B,q}),[v]),A=I.useCallback((V,B)=>v((W=[])=>{if(!W[B])return W;const q=[...W],J=q[B];return q[B]=q[V],q[V]=J,q}),[v]),j=I.useCallback(V=>A(V,V-1),[A]),N=I.useCallback(V=>A(V,V+1),[A]),F=I.useCallback(V=>{V.preventDefault(),p&&i({shortUrl:s,data:{redirectRules:p}})},[s,p,i]);return I.useEffect(()=>(t(s),r([s]),a),[t,r,s,a]),I.useEffect(()=>{e.redirectRules&&v(e.redirectRules)},[v,e.redirectRules]),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx("header",{children:g.jsxs(xi,{body:!0,children:[g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(Nb,{}),g.jsxs("div",{className:"text-center flex-grow-1",children:[n.loading&&g.jsx(g.Fragment,{children:"Loading..."}),!n.loading&&g.jsxs("small",{children:["Redirect rules for ",g.jsx(Gn,{href:(u==null?void 0:u.shortUrl)??""})]})]})]}),g.jsx("hr",{}),g.jsxs("div",{children:[g.jsx("p",{className:"mb-2",children:"Configure dynamic conditions that will be checked at runtime."}),"If no conditions match, visitors will be redirected to: ",g.jsx(Gn,{href:e.defaultLongUrl??""})]})]})}),g.jsx("div",{children:g.jsxs(_t,{outline:!0,color:"primary",onClick:O,children:[g.jsx(Ge,{icon:Yp,className:"me-1"})," Add rule"]})}),g.jsxs("form",{onSubmit:F,children:[e.loading&&g.jsx(qa,{loading:!0}),p.length===0&&!e.loading&&g.jsx(Wt,{className:"text-center",children:g.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),g.jsx("div",{className:"d-flex flex-column gap-2",ref:h,children:p.map((V,B)=>g.jsx(SCe,{redirectRule:V,priority:B+1,isLast:B===p.length-1,onDelete:()=>E(B),onMoveUp:()=>j(B),onMoveDown:()=>N(B),onUpdate:W=>T(B,W)},`${V.longUrl}_${B}`))}),g.jsx("div",{className:"text-center mt-3",children:g.jsx(_t,{outline:!0,color:"primary",className:"btn-sm-block",disabled:b,"data-testid":"save-button",children:b?"Saving...":"Save rules"})})]}),_&&g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:_,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),x&&g.jsx(Tn,{type:"success",children:"Redirect rules properly saved."}),g.jsx(Iz,{isOpen:w,toggle:O,onSave:S})]})},CCe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>PCe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",yPe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",mPe,"apiClientFactory"),e.serviceFactory("resetSetRules",r=>r.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",bPe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",r=>r.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",vPe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",r=>r.reducer,"setShortUrlRedirectRulesReducerCreator")},ECe=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}),Dz=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:r,basicMode:n=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=cr(Dz),a=Rn("shortUrlCreation"),s=I.useMemo(()=>ECe(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(i,{initialState:s,saving:t.saving,basicMode:n,onSave:async c=>(r(),e(c))}),g.jsx(o,{creation:t,resetCreateShortUrl:r,canBeClosed:n})]})},TCe=fr(Dz,["ShortUrlForm","CreateShortUrlResult"]),$z=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:r,editShortUrl:n})=>{const{ShortUrlForm:i}=cr($z),o=aA(),{loading:a,error:s,errorData:c,shortUrls:u}=e,h=o&&(u==null?void 0:u.get(o)),{saving:p,saved:v,error:b,errorData:x}=r,_=Rn("shortUrlCreation"),w=I.useMemo(()=>iPe(h,_),[h,_]);return I.useEffect(()=>{o&&t([o])},[t,o]),a?g.jsx(qa,{loading:!0}):s?g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:c,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs(g.Fragment,{children:[g.jsx("header",{className:"mb-3",children:g.jsx(xi,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(Nb,{}),g.jsx("div",{className:"text-center flex-grow-1",children:g.jsxs("small",{children:["Edit ",g.jsx(Gn,{href:(h==null?void 0:h.shortUrl)??""})]})})]})})}),g.jsx(i,{initialState:w,saving:p,onSave:async O=>{h&&n({...h,data:O})}}),v&&b&&g.jsx(Tn,{type:"error",className:"mt-3",children:g.jsx(aa,{errorData:x,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!b&&g.jsx(Tn,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},jCe=fr($z,["ShortUrlForm"]),Fz=({text:e,onCopy:t},r=navigator)=>{var n;return(n=r.clipboard)==null?void 0:n.writeText(e).then(()=>t==null?void 0:t(e,!0)).catch(()=>t==null?void 0:t(e,!1))},Bz=({creation:e,resetCreateShortUrl:t,canBeClosed:r=!1})=>{const{useTimeoutToggle:n}=cr(Bz),[i,o]=n(),{error:a,saved:s}=e;if(I.useEffect(()=>{t()},[t]),a)return g.jsxs(Tn,{type:"error",className:"mt-3",children:[r&&g.jsx(Ge,{"data-testid":"error-close-button",icon:nS,className:"float-end pointer",onClick:t}),g.jsx(aa,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:c}=e.result;return g.jsxs(Tn,{type:"success",className:"mt-3",children:[r&&g.jsx(Ge,{"data-testid":"success-close-button",icon:nS,className:"float-end pointer",onClick:t}),g.jsxs("span",{children:[g.jsx("b",{children:"Great!"})," The short URL is ",g.jsx("b",{children:c})]}),g.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>Fz({text:c,onCopy:o}),children:[g.jsx(Ge,{icon:s7})," Copy ",g.jsxs("span",{className:"sr-only",children:[c," to clipboard"]})]}),g.jsx(I0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},ACe=fr(Bz,["useTimeoutToggle"]),qO="delete",kCe=({shortUrl:e,toggle:t,isOpen:r,shortUrlDeletion:n,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,c]=I.useState("");I.useEffect(()=>i,[i]);const{loading:u,error:h,deleted:p,errorData:v}=n,b=I.useCallback(()=>{i(),t()},[i,t]),x=I.useCallback(_=>(_.preventDefault(),o(e).then(w=>!Zj(w)&&t())),[o,e,t]);return g.jsx(Yn,{isOpen:r,toggle:b,centered:!0,onClosed:()=>p&&a(e),children:g.jsxs("form",{onSubmit:x,children:[g.jsx(la,{toggle:b,children:g.jsx("span",{className:"text-danger",children:"Delete short URL"})}),g.jsxs(Co,{children:[g.jsxs("p",{children:[g.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),g.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),g.jsxs("p",{children:["Write ",g.jsx("b",{children:qO})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${qO}`,value:s,onChange:_=>c(_.target.value)}),h&&g.jsx(Tn,{type:kSe(v)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:v,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs(Ja,{children:[g.jsx("button",{type:"button",className:"btn btn-link",onClick:b,children:"Cancel"}),g.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==qO||u,children:u?"Deleting...":"Delete"})]})]})})},Uz=({amount:e=0,loading:t=!1,...r})=>g.jsxs(_t,{...r,outline:!0,color:"primary",disabled:t,children:[g.jsx(Ge,{icon:NK})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",Sr(e),")"]})]}),U5=20,zz=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:r}=cr(zz),[{tags:n,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:c}]=Rb(),[u,,h,p]=ur(),v=I.useCallback(async()=>{const b=e/U5,x=async(w=1)=>{const{data:O}=await t().listShortUrls({page:`${w}`,tags:n,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:c,itemsPerPage:U5});return w>=b?O:O.concat(await x(w+1))};h();const _=await x();r.exportShortUrls(_.map(w=>{var O;const{hostname:S,pathname:E}=new URL(w.shortUrl),T=E.substring(1);return{createdAt:w.dateCreated,domain:S,shortCode:T,shortUrl:w.shortUrl,longUrl:w.longUrl,title:w.title??"",tags:w.tags.join("|"),visits:((O=w==null?void 0:w.visitsSummary)==null?void 0:O.total)??w.visitsCount??0}})),p()},[e,t,a,s,r,i,o,h,p,n,c]);return g.jsx(Uz,{loading:u,className:"btn-md-block",amount:e,onClick:v})},RCe=fr(zz,["apiClientFactory","ReportExporter"]),Vz=({text:e,onCopy:t,copyToClipboard:r=Fz})=>g.jsx(ku,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>r({text:e,onCopy:t}),children:g.jsx(Ge,{icon:s7,className:"fs-5"})}),z5=e=>e&&e.startsWith("#")?e.substring(1):e,NCe=(e,{color:t,bgColor:r,...n})=>{const i=`${e}/qr-code`,o=D0({...n,color:z5(t),bgColor:z5(r)});return`${i}${o?`?${o}`:""}`},MCe=6,V5="0123456789ABCDEF",LCe=128;function ICe(){return`#${eA(MCe,()=>V5[Math.floor(Math.random()*V5.length)]).join("")}`}function DCe(e,t,r){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*r**2))}function Wz(e){const[t,r,n]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return DCe(t,r,n)>=LCe}const qz=I.forwardRef(({name:e,color:t,onChange:r,className:n},i)=>g.jsxs("div",{className:ze("p-0 position-relative",n),style:{backgroundColor:t,borderColor:t},children:[g.jsx(Ge,{icon:HK,className:"position-absolute top-50 start-50 translate-middle",style:{color:Wz(t.substring(1))?"#000":"fff"}}),g.jsx(Zr,{className:"form-control-color opacity-0",type:"color",value:t,onChange:o=>r(o.target.value),innerRef:i,name:e,"aria-label":e})]})),$Ce=({color:e,onChange:t,name:r})=>{const n=Yi();return g.jsxs(rm,{children:[g.jsx(qz,{name:r,color:e,onChange:t,className:"input-group-text",ref:n}),g.jsx(Zr,{readOnly:!0,value:e,onClick:()=>{var i;return(i=n.current)==null?void 0:i.click()},"aria-label":r,"data-testid":"text-input"})]})},v0=({label:e,...t})=>g.jsx(_t,{outline:!0,color:"link",style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},"aria-label":e,title:e,...t}),W5=({name:e,color:t,initialColor:r,onChange:n})=>g.jsx(g.Fragment,{children:t===void 0?g.jsx(v0,{className:"text-start fst-italic w-100",onClick:()=>n(r),children:g.jsxs("span",{className:"indivisible",children:["Customize ",e]})}):g.jsxs("div",{className:"d-flex gap-1 w-100",children:[g.jsx($Ce,{color:t,onChange:n,name:e}),g.jsx(v0,{label:`Default ${e}`,onClick:()=>n(void 0),children:g.jsx(Ge,{icon:QE})})]})}),q5=({name:e,value:t,step:r,min:n,max:i,onChange:o,initial:a=n})=>{const s=I.useId();return g.jsx(g.Fragment,{children:t===void 0?g.jsxs(v0,{className:"text-start fst-italic w-100",onClick:()=>o(a),children:["Customize ",e]}):g.jsxs("div",{className:"d-flex gap-1 w-100",children:[g.jsxs("div",{className:"d-flex flex-column flex-grow-1",children:[g.jsxs("label",{htmlFor:s,className:"text-capitalize",children:[e,": ",t,"px"]}),g.jsx("input",{id:s,type:"range",className:"form-control-range",value:t,step:r,min:n,max:i,onChange:c=>o(Number(c.target.value))})]}),g.jsx(v0,{label:`Default ${e}`,onClick:()=>o(void 0),children:g.jsx(Ge,{icon:QE})})]})})},FCe=({errorCorrection:e,onChange:t})=>g.jsxs(es,{text:e?`Error correction (${e})`:g.jsx("i",{children:"Default error correction"}),dropdownClassName:"w-100",children:[g.jsx(Ye,{active:!e,onClick:()=>t(void 0),children:"Default"}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Ye,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Ye,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Ye,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),BCe=({format:e,onChange:t})=>g.jsxs(es,{text:e?`Format (${e})`:g.jsx("i",{children:"Default format"}),dropdownClassName:"w-100",children:[g.jsx(Ye,{active:!e,onClick:()=>t(void 0),children:"Default"}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),g.jsx(Ye,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),Hz=({shortUrl:{shortUrl:e,shortCode:t},toggle:r,isOpen:n})=>{const{ImageDownloader:i}=cr(Hz),[o,a]=I.useState(),[s,c]=I.useState(),[u,h]=I.useState(),[p,v]=I.useState(),[b,x]=I.useState(),[_,w]=I.useState(),O=bi("qrCodeColors"),S=I.useMemo(()=>NCe(e,{size:o,format:u,margin:s,errorCorrection:p,color:b,bgColor:_}),[e,o,u,s,p,b,_]);return g.jsxs(Yn,{isOpen:n,toggle:r,centered:!0,size:"lg",children:[g.jsxs(la,{toggle:r,children:["QR code for ",g.jsx(Gn,{href:e,children:e})]}),g.jsxs(Co,{className:"d-flex flex-column-reverse flex-lg-row gap-3",children:[g.jsx("div",{className:"flex-grow-1 d-flex align-items-center justify-content-around text-center",children:g.jsx("img",{src:S,alt:"QR code",className:"shadow",style:{maxWidth:"100%"}})}),g.jsxs("div",{className:"d-flex flex-column gap-2 qr-code-modal__controls",children:[g.jsx(q5,{name:"size",value:o,onChange:a,step:10,min:50,max:1e3,initial:300}),g.jsx(q5,{name:"margin",value:s,onChange:c,step:1,min:0,max:100}),g.jsx(BCe,{format:u,onChange:h}),g.jsx(FCe,{errorCorrection:p,onChange:v}),O&&g.jsxs(g.Fragment,{children:[g.jsx(W5,{name:"color",initialColor:"#000000",color:b,onChange:x}),g.jsx(W5,{name:"background",initialColor:"#ffffff",color:_,onChange:w})]}),g.jsx("div",{className:"mt-auto",children:g.jsxs(_t,{block:!0,color:"primary",onClick:()=>{i.saveImage(S,`${t}-qr-code.${u??"png"}`).catch(()=>{})},children:["Download ",g.jsx(Ge,{icon:o$,className:"ms-1"})]})})]})]}),g.jsx(Ja,{className:"sticky-bottom justify-content-around",style:{backgroundColor:"var(--primary-color)",zIndex:"1"},children:g.jsxs("div",{className:"text-center",children:[g.jsx(Gn,{href:S}),g.jsx(Vz,{text:S})]})})]})},UCe=fr(Hz,["ImageDownloader"]),zCe="yyyy-MM-dd",Gz="yyyy-MM-dd HH:mm",ul=()=>new Date,lA=e=>typeof e!="string",uA=(e,t)=>!e||!lA(e)?e:t?uy(e,t):Fse(e),cl=e=>uA(e,void 0),Zs=e=>uA(e,zCe),qp=e=>uA(e,Gz),pi=e=>lA(e)?e:al(e),bm=(e,t,r)=>{const n=pi(e),i=t&&pi(t),o=r&&pi(r);if(i&&o)try{return zse(n,{start:i,end:o})}catch{return!1}return i?KP(n,i)||Use(n,i):o?KP(n,o)||cy(n,o):!0},Xl=(e,t)=>KP(e,t)||cy(e,t),g0=({date:e,format:t=Gz,relative:r=!1})=>{const n=lA(e)?e:al(e);return g.jsx("time",{dateTime:`${Bse(n)}000`,children:r?`${$se(ul(),n)} ago`:uy(n,t)})},VCe=(e,{shortCode:t,domain:r},n)=>{const i=r?`?domain=${r}`:"";return`${e}/short-code/${hz(t)}/${n}${i}`},Gh=({shortUrl:e,suffix:t,asLink:r,children:n,...i})=>{const o=_l();return!r||!e?g.jsx("span",{...i,children:n}):g.jsx(Ht,{to:VCe(o,e,t),...i,children:n})},WCe=e=>{const{meta:t,visitsCount:r,visitsSummary:n}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(n==null?void 0:n.total)??r??0;return i&&s>=i?{icon:PY,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",g.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&cy(pi(a),ul())?{icon:E3,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:qp(pi(a))}),"."]})}:o&&cy(ul(),pi(o))?{icon:E3,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:qp(pi(o))}),"."]})}:{icon:Zh,className:"text-primary",description:"This short URL can be visited normally."}},qCe=({shortUrl:e})=>{const t=Yi(),{icon:r,className:n,description:i}=WCe(e);return g.jsxs(g.Fragment,{children:[g.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:g.jsx(Ge,{icon:r,className:n})}),g.jsx(wi,{target:t,placement:"bottom",children:i})]})},Kz=({visitsCount:e,shortUrl:t,active:r=!1,asLink:n=!1})=>{const i=Yi(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},c=!!o||!!a||!!s,u=g.jsx(Gh,{shortUrl:t,suffix:"visits",asLink:n,children:g.jsx("strong",{className:ze("short-url-visits-count__amount",{"short-url-visits-count__amount--big":r}),children:Sr(e)})});return c?g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"indivisible",children:[u,g.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&g.jsxs(g.Fragment,{children:[" / ",Sr(o)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(Ge,{icon:XE})})]})]}),g.jsx(wi,{target:i,placement:"bottom",children:g.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",g.jsx("b",{children:Sr(o)})," visit",o===1?"":"s","."]}),a&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",g.jsx("b",{className:"indivisible",children:qp(pi(a))}),"."]}),s&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",g.jsx("b",{className:"indivisible",children:qp(pi(s))}),"."]})]})})]}):u},HCe=e=>!!e.onClose,GCe=e=>!!e.onClick,Mb=e=>{const{text:t,children:r,className:n,colorGenerator:i}=e,o=GCe(e),a=o?ku:"span",s=I.useMemo(()=>i.stylesForKey(t),[t,i]);return g.jsxs(a,{className:ze("badge tag fw-bold",n,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[r??t,HCe(e)&&g.jsx(ku,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},KCe=({tags:e,onTagClick:t,colorGenerator:r})=>e.length===0?g.jsx("i",{className:"indivisible",children:g.jsx("small",{children:"No tags"})}):g.jsx(g.Fragment,{children:e.map(n=>g.jsx(Mb,{text:n,colorGenerator:r,onClick:()=>t==null?void 0:t(n)},n))}),Yz=({shortUrl:e,onTagClick:t})=>{var r,n,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:c}=cr(Yz),[u,h]=c(),[p,v]=c(!1,500),b=I.useRef(!0),[{excludeBots:x}]=Rb(),_=Rn("visits"),w=x??(_==null?void 0:_.excludeBots);return I.useEffect(()=>{b.current||v(),b.current=!1},[(r=e.visitsSummary)==null?void 0:r.total,(n=e.visitsSummary)==null?void 0:n.nonBots,e.visitsCount,v]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:g.jsx(g0,{date:e.dateCreated})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:g.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[g.jsx("span",{className:"short-urls-row__short-url-wrapper",children:g.jsx(Gn,{href:e.shortUrl})}),g.jsx(Vz,{text:e.shortUrl,onCopy:h}),g.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:g.jsx(Gn,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&g.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:g.jsx(Gn,{href:e.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(KCe,{tags:e.tags,colorGenerator:s,onTagClick:t})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:g.jsx(Kz,{visitsCount:(w?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount??0,shortUrl:e,active:p,asLink:!0})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(qCe,{shortUrl:e}),e.hasRedirectRules&&g.jsx(Gh,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:g.jsx(Ge,{icon:l$})})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(a,{shortUrl:e})})]})},YCe=fr(Yz,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),Zz=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:r})=>{const{DeleteShortUrlModal:n,QrCodeModal:i}=cr(Zz),[o,,a,s]=ur(),[c,,u,h]=ur(),p=jb(),v=bi("shortUrlRedirectRules"),{confirmDeletions:b=!0}=Rn("shortUrlsList",{}),x=I.useCallback(async()=>{const _=await t(e);Zj(_)||r(e)},[t,e,r]);return g.jsxs($0,{minWidth:v?220:190,children:[g.jsxs(Ye,{tag:Gh,shortUrl:e,suffix:"visits",asLink:!0,children:[g.jsx(Ge,{icon:ZE,fixedWidth:!0})," Visit stats"]}),p&&g.jsxs(g.Fragment,{children:[g.jsxs(Ye,{disabled:!p.canAddItemWithName(e.shortUrl),onClick:()=>p.addItemToCompare({name:e.shortUrl,query:iA(e)}),children:[g.jsx(Ge,{icon:j0,fixedWidth:!0})," Compare visits"]}),g.jsx(Ye,{divider:!0,tag:"hr"})]}),g.jsxs(Ye,{tag:Gh,shortUrl:e,suffix:"edit",asLink:!0,children:[g.jsx(Ge,{icon:YE,fixedWidth:!0})," Edit short URL"]}),v&&g.jsxs(Ye,{tag:Gh,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[g.jsx(Ge,{icon:l$,fixedWidth:!0})," Manage redirect rules"]}),g.jsxs(Ye,{onClick:a,children:[g.jsx(Ge,{icon:wY,fixedWidth:!0})," QR code"]}),g.jsx(i,{shortUrl:e,isOpen:o,toggle:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:b?u:x,children:[g.jsx(Ge,{icon:GE,fixedWidth:!0})," Delete short URL"]}),g.jsx(n,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:r,isOpen:c,toggle:h})]})},ZCe=fr(Zz,["DeleteShortUrlModal","QrCodeModal"]),Xz="shlink/shortUrlCreation",H5={saving:!1,saved:!1,error:!1},XCe=e=>Vr(`${Xz}/createShortUrl`,t=>e().createShortUrl(t)),QCe=e=>{const{reducer:t,actions:r}=Tr({name:Xz,initialState:H5,reducers:{resetCreateShortUrl:()=>H5},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:Oi(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:n}=r;return{reducer:t,resetCreateShortUrl:n}},Qz="shlink/shortUrlEdition",JCe={saving:!1,saved:!1,error:!1},eEe=e=>Vr(`${Qz}/editShortUrl`,({shortCode:t,domain:r,data:n})=>e().updateShortUrl(t,r,n)),tEe=e=>Tr({name:Qz,initialState:JCe,reducers:{},extraReducers:t=>{t.addCase(e.pending,r=>({...r,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(r,{error:n})=>({...r,saving:!1,error:!0,saved:!1,errorData:Oi(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>({shortUrl:n,saving:!1,error:!1,saved:!0}))}}),G5="shlink/shortUrlsDetails",K5={loading:!1,error:!1},rEe=e=>{const t=Vr(`${G5}/getShortUrlsDetails`,async(n,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(n.map(async s=>{var c;const{shortCode:u,domain:h}=s,p=(c=o==null?void 0:o.shortUrls)==null?void 0:c.data.find(v=>Hh(v,u,h));return[s,p??await e().getShortUrl(u,h)]}));return new Map(a)}),{reducer:r}=Tr({name:G5,initialState:K5,reducers:{},extraReducers:n=>{n.addCase(t.pending,()=>({loading:!0,error:!1})),n.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Oi(o)})),n.addCase(t.fulfilled,(i,{payload:o})=>({...K5,shortUrls:o}))}});return{reducer:r,getShortUrlsDetails:t}},nEe=({domains:e,value:t,onChange:r})=>{const[n,,i,o]=ur(),a=!t,s=I.useCallback(()=>{r(""),o()},[r,o]),c=I.useCallback(()=>{r(""),i()},[r,i]);return n?g.jsxs(rm,{children:[g.jsx(Zr,{value:t??"",placeholder:"Domain",onChange:u=>r(u.target.value)}),g.jsx(_t,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:s,children:g.jsx(Ge,{icon:tY})}),g.jsx(wi,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(es,{text:a?"Domain":`Domain: ${t}`,className:a?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[e.map(({domain:u,isDefault:h})=>g.jsxs(Ye,{active:(t===u||h)&&a,onClick:()=>r(u),className:"d-flex justify-content-between align-items-center",children:[u,h&&g.jsx("span",{className:"text-muted",children:"default"})]},u)),g.jsx(Ye,{divider:!0}),g.jsx(Ye,{onClick:c,children:g.jsx("i",{children:"New domain"})})]})},HO=({icon:e,className:t,...r})=>{const n=Yi();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Zr,{className:ze("icon-input-container__input",t),innerRef:n,...r}),g.jsx(Ge,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=n.current)==null?void 0:i.focus()}})]})},iEe=({minDate:e,maxDate:t,value:r,onChange:n,withTime:i=!1,...o})=>{const a=I.useCallback(({target:c})=>{if(!c.value){n==null||n(null);return}n==null||n(pi(c.value))},[n]),s=I.useMemo(()=>i?qp:Zs,[i]);return g.jsx(Zr,{...o,type:i?"datetime-local":"date",value:s(r)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},y0=({label:e,id:t,...r})=>{const n=I.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("label",{htmlFor:t??n,className:"mb-1",children:[e,":"]}),g.jsx(iEe,{id:t??n,...r})]})},GO=({children:e,infoTooltip:t,checked:r,onChange:n})=>g.jsxs("p",{children:[g.jsx(NF,{inline:!0,checked:r,className:t?"me-2":"",onChange:n,children:e}),t&&g.jsx(Cg,{placement:"right",children:t})]}),oEe=({isOpen:e,toggle:t})=>g.jsxs(Yn,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(la,{toggle:t,children:"Info"}),g.jsxs(Co,{children:[g.jsxs("p",{children:["When the ",g.jsx("b",{children:g.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),g.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),g.jsxs("ul",{children:[g.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."}),g.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.",g.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),g.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"})]})]})]}),aEe=()=>{const[e,t]=ur();return g.jsxs(g.Fragment,{children:[g.jsx(ku,{className:"p-0",title:"What does this mean?",onClick:t,children:g.jsx(Ge,{icon:XE})}),g.jsx(oEe,{isOpen:e,toggle:t})]})},ug=e=>typeof e=="string"?al(e):e,sEe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Jz=({basicMode:e=!1,saving:t,onSave:r,initialState:n,tagsList:i,domainsList:o})=>{var a,s,c;const{TagsSelector:u}=cr(Jz),[h,p]=I.useState(n),v=sEe(h),b=bi("deviceLongUrls"),x=bi("urlValidation"),_=x||v,w=I.useCallback(()=>p(n),[n]),O=I.useCallback((j,N)=>au(j)?j:au(N)?null:void 0,[]),S=I.useCallback((j,N)=>p(({deviceLongUrls:F={},...V})=>{var B;return{...V,deviceLongUrls:{...F,[j]:O(N,(B=n.deviceLongUrls)==null?void 0:B[j])}}}),[n.deviceLongUrls,O]),E=I.useCallback(j=>p(N=>({...N,tags:j})),[]),T=I.useCallback(async j=>(j.preventDefault(),r(h).then(N=>v&&!Zj(N)&&w()).catch(()=>{})),[v,r,w,h]),A=I.useMemo(()=>g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(Zr,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:h.longUrl,onChange:j=>p(N=>({...N,longUrl:j.target.value}))}),g.jsxs("div",{className:ze("d-flex flex-column flex-lg-row gap-3",{"mb-3":e}),children:[e&&v&&g.jsx("div",{className:"w-100 w-lg-50",children:g.jsx(Zr,{bsSize:"lg",placeholder:"Custom slug",value:h.customSlug??"",onChange:j=>p(N=>({...N,customSlug:j.target.value}))})}),g.jsx("div",{className:ze("w-100",{"w-lg-50":e}),children:g.jsx(u,{tags:i.tags,selectedTags:h.tags??[],onChange:E})})]})]}),[u,e,E,v,h,i.tags]);return g.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:T,children:[e&&A,!e&&g.jsxs(g.Fragment,{children:[g.jsxs(Yo,{children:[g.jsx("div",{className:ze("mb-3",{"col-sm-6":b,"col-12":!b}),children:g.jsx(Wt,{title:"Main options",children:A})}),b&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(Wt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(HO,{type:"url",icon:ole,placeholder:"Android-specific redirection",value:((a=h.deviceLongUrls)==null?void 0:a.android)??"",onChange:({target:j})=>S("android",j.value)}),g.jsx(HO,{type:"url",icon:ile,placeholder:"iOS-specific redirection",value:((s=h.deviceLongUrls)==null?void 0:s.ios)??"",onChange:({target:j})=>S("ios",j.value)}),g.jsx(HO,{type:"url",icon:CY,placeholder:"Desktop-specific redirection",value:((c=h.deviceLongUrls)==null?void 0:c.desktop)??"",onChange:({target:j})=>S("desktop",j.value)})]})})]}),g.jsxs(Yo,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(Wt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(Zr,{placeholder:"Title",value:h.title??"",onChange:({target:j})=>p(N=>({...N,title:O(j.value,n.title)}))}),v&&g.jsxs(g.Fragment,{children:[g.jsxs(Yo,{children:[g.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:g.jsx(Zr,{placeholder:"Custom slug",value:h.customSlug??"",onChange:j=>p(N=>({...N,customSlug:j.target.value})),disabled:au(h.shortCodeLength)})}),g.jsx("div",{className:"col-lg-6",children:g.jsx(Zr,{type:"number",placeholder:"Short code length",value:h.shortCodeLength??"",onChange:j=>p(N=>({...N,shortCodeLength:j.target.value})),min:4,disabled:au(h.customSlug)})})]}),g.jsx(nEe,{value:h.domain,onChange:j=>p(N=>({...N,domain:j})),domains:o.domains})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(Wt,{title:"Limit access to the short URL",children:[g.jsxs("div",{className:"row mb-3",children:[g.jsx("div",{className:"col-lg-6",children:g.jsx(y0,{label:"Enabled since",withTime:!0,maxDate:h.validUntil?ug(h.validUntil):void 0,value:h.validSince?ug(h.validSince):null,onChange:j=>p(N=>({...N,validSince:cl(j)}))})}),g.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:g.jsx(y0,{label:"Enabled until",withTime:!0,minDate:h.validSince?ug(h.validSince):void 0,value:h.validUntil?ug(h.validUntil):null,onChange:j=>p(N=>({...N,validUntil:cl(j)}))})})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),g.jsx(Zr,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:h.maxVisits??"",onChange:j=>p(N=>({...N,maxVisits:au(j.target.value)?Number(j.target.value):null}))})]})]})})]}),g.jsxs(Yo,{children:[_&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(Wt,{title:"Extra checks",children:[x&&g.jsx(GO,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:h.validateUrl,onChange:j=>p(N=>({...N,validateUrl:j})),children:"Validate URL"}),v&&g.jsxs("p",{children:[g.jsx(NF,{inline:!0,className:"me-2",checked:h.findIfExists,onChange:j=>p(N=>({...N,findIfExists:j})),children:"Use existing URL if found"}),g.jsx(aEe,{})]})]})}),g.jsx("div",{className:ze("mb-3",{"col-sm-6":_}),children:g.jsxs(Wt,{title:"Configure behavior",children:[g.jsx(GO,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:h.crawlable,onChange:j=>p(N=>({...N,crawlable:j})),children:"Make it crawlable"}),g.jsx(GO,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:h.forwardQuery,onChange:j=>p(N=>({...N,forwardQuery:j})),children:"Forward query params on redirect"})]})})]})]}),g.jsx("div",{className:"text-center",children:g.jsx(_t,{outline:!0,color:"primary",disabled:t||!h.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},lEe=fr(Jz,["TagsSelector"]),Lb="all",eV={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Lb]:void 0},tV=Object.keys(eV),uEe=e=>!e||!e.startDate&&!e.endDate,b0=e=>typeof e=="string"&&tV.includes(e),cEe=tV.filter(e=>e!==Lb),Y5=e=>e?pi(e):null,rV=(e,t)=>({startDate:Y5(e),endDate:Y5(t)}),fEe=e=>{if(!(!e||uEe(e)))return e.startDate&&!e.endDate?`Since ${Zs(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Zs(e.endDate)}`:`${Zs(e.startDate)} - ${Zs(e.endDate)}`},nV=e=>{if(!(!e||e===Lb))return b0(e)?eV[e]:fEe(e)},zi=e=>Cu(fy(ul(),e)),$c=e=>({startDate:e,endDate:pf(ul())}),iV=e=>{var t;return((t=[[()=>e==="today",()=>$c(Cu(ul()))],[()=>e==="yesterday",()=>({startDate:zi(1),endDate:pf(fy(ul(),1))})],[()=>e==="last7Days",()=>$c(zi(7))],[()=>e==="last30Days",()=>$c(zi(30))],[()=>e==="last90Days",()=>$c(zi(90))],[()=>e==="last180Days",()=>$c(zi(180))],[()=>e==="last365Days",()=>$c(zi(365))]].find(([r])=>r()))==null?void 0:t[1]())??{}},dEe=e=>{var t;const r=pi(e);return((t=[[()=>Xl(Cu(ul()),r),"today"],[()=>Xl(zi(1),r),"yesterday"],[()=>Xl(zi(7),r),"last7Days"],[()=>Xl(zi(30),r),"last30Days"],[()=>Xl(zi(90),r),"last90Days"],[()=>Xl(zi(180),r),"last180Days"],[()=>Xl(zi(365),r),"last365Days"]].find(([n])=>n()))==null?void 0:t[1])??Lb},oV=e=>b0(e)?iV(e):e,aV=e=>!!(e&&e.startDate),hEe=({startDate:e,endDate:t})=>{const r=f7(pf(t??new Date),Cu(e))+1,n=fy(Cu(e),r),i=fy(pf(e),1);return{startDate:n,endDate:i}},pEe=e=>{if(aV(e))return f7(e.endDate??new Date,e.startDate)},mEe=({active:e,allText:t,onChange:r})=>g.jsxs(g.Fragment,{children:[g.jsx(Ye,{active:e==="all",onClick:()=>r("all"),children:t}),g.jsx(Ye,{divider:!0,tag:"hr"}),cEe.map(n=>g.jsx(Ye,{active:e===n,onClick:()=>r(n),children:nV(n)},n))]}),vEe=({startDate:e,endDate:t,disabled:r=!1,onStartDateChange:n,onEndDateChange:i})=>g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(y0,{label:"Since",value:e,maxDate:t??void 0,disabled:r,onChange:n})}),g.jsx("div",{className:"col-md-6 mt-3 mt-md-0",children:g.jsx(y0,{label:"Until",value:t,minDate:e??void 0,disabled:r,onChange:o=>i(o&&pf(o))})})]}),cA=({onDatesChange:e,dateRangeOrInterval:t,defaultText:r,disabled:n})=>{const i=I.useMemo(()=>nV(t)??r,[t,r]),[o,a]=I.useMemo(()=>b0(t)?[void 0,t]:[t,void 0],[t]),s=I.useCallback(c=>{b0(c)?e(iV(c),c):e(c)},[e]);return g.jsxs(es,{disabled:n,text:i,children:[g.jsx(mEe,{allText:r,active:a,onChange:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx("div",{className:"px-3 py-1",children:g.jsx(vEe,{...o,onStartDateChange:c=>s({...o,startDate:c}),onEndDateChange:c=>s({...o,endDate:c})})})]})},gEe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},yEe=({onChange:e,selected:t={},className:r,domains:n})=>{const i=bi("filterDisabledUrls"),o=bi("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:s=!1,excludePastValidUntil:c=!1,domain:u}=t,h=I.useCallback(v=>e({...t,...v}),[e,t]),p=I.useCallback(v=>h({[v]:!(t!=null&&t[v])}),[h,t]);return g.jsxs(es,{text:"Filters",dropdownClassName:r,end:!0,minWidth:250,children:[g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Visits:"}),g.jsx(Ye,{active:a,onClick:()=>p("excludeBots"),children:"Ignore visits from bots"}),i&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),g.jsx(Ye,{active:s,onClick:()=>p("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),g.jsx(Ye,{active:c,onClick:()=>p("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),o&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{header:!0,"aria-hidden":!0,children:["Domain: ",!n&&g.jsx("i",{children:"loading..."})]}),n==null?void 0:n.map(v=>{const b=v.isDefault?Wf:v.domain,x=u===b;return g.jsx(Ye,{active:x,onClick:()=>h({domain:x?void 0:b}),children:v.domain},v.domain)})]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0&&t.domain===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0,domain:void 0}),className:"fst-italic",children:"Reset to defaults"})]})},sV=({className:e,shortUrlsAmount:t,order:r,handleOrderBy:n,tagsList:i,domainsList:o})=>{const{ExportShortUrlsBtn:a,TagsSelector:s}=cr(sV),[{search:c,tags:u,startDate:h,endDate:p,excludeBots:v,excludeMaxVisitsReached:b,excludePastValidUntil:x,domain:_,tagsMode:w="any"},O]=Rb(),S=Rn("visits"),[E,T]=I.useState(),A=I.useCallback(({startDate:V,endDate:B},W)=>{O({startDate:cl(V)??void 0,endDate:cl(B)??void 0}),T(W)},[O]),j=I.useCallback(V=>O({search:V||void 0}),[O]),N=I.useCallback(V=>O({tags:V}),[O]),F=I.useCallback(()=>O({tagsMode:w==="any"?"all":"any"}),[w,O]);return g.jsxs("div",{className:ze("short-urls-filtering-bar-container",e),children:[g.jsx(im,{initialValue:c,onChange:j}),g.jsxs(rm,{className:"mt-3",children:[g.jsx(s,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:u,onChange:N}),u.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(_t,{outline:!0,color:"secondary",onClick:F,id:"tagsModeBtn","aria-label":"Change tags mode",children:g.jsx(Ge,{className:"short-urls-filtering-bar__tags-icon",icon:w==="all"?i$:JK})}),g.jsx(wi,{target:"tagsModeBtn",placement:"left",children:w==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(Yo,{className:"flex-lg-row-reverse",children:[g.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(cA,{defaultText:"All short URLs",dateRangeOrInterval:E??rV(h,p),onDatesChange:A})}),g.jsx(yEe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:v??(S==null?void 0:S.excludeBots),excludeMaxVisitsReached:b,excludePastValidUntil:x,domain:_},onChange:O,domains:o.loading?void 0:o.domains})]})}),g.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:g.jsx(a,{amount:t})}),g.jsx("div",{className:"col-6 d-lg-none mt-3",children:g.jsx(om,{prefixed:!1,items:gEe,order:r,onChange:n})})]})]})},bEe=fr(sV,["ExportShortUrlsBtn","TagsSelector"]);function Kh({currentOrder:e,field:t,className:r="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(Ge,{icon:e.dir==="ASC"?qK:nY,className:r})}const Fc=2,EE="...",lV=(e,t)=>{const r=LT(Math.max(Fc,e-Fc),Math.min(t-1,e+Fc)+1);return e-Fc>Fc&&r.unshift(EE),e+Fc<t-1&&r.push(EE),r.unshift(1),r.push(t),r},Hp=e=>e===EE,uV=e=>Hp(e)?e:Sr(e),cV=(e,t)=>Hp(e)?`${e}_${t}`:`${e}`,_Ee=({paginator:e,currentQueryString:t=""})=>{const{currentPage:r=0,pagesCount:n=0}=e??{},i=_l(),o=s=>`${i}/list-short-urls/${s}${t}`;if(n<=1)return g.jsx("div",{className:"pb-3"});const a=()=>lV(r,n).map((s,c)=>g.jsx(mu,{disabled:Hp(s),active:r===s,children:g.jsx(vu,{tag:Ht,to:o(s),children:uV(s)})},cV(s,c)));return g.jsxs(TT,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(mu,{disabled:r===1,children:g.jsx(vu,{previous:!0,tag:Ht,to:o(r-1)})}),a(),g.jsx(mu,{disabled:r>=n,children:g.jsx(vu,{next:!0,tag:Ht,to:o(r+1)})})]})},xEe={field:"dateCreated",dir:"DESC"},fV=Ao(({listShortUrls:e,shortUrlsList:t})=>{var r,n,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=cr(fV),{page:s}=Gf(),c=gn(),[{tags:u,search:h,startDate:p,endDate:v,orderBy:b,tagsMode:x,excludeBots:_,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:S},E]=Rb(),T=IT(),[A,j]=I.useState(b??((r=T.shortUrlsList)==null?void 0:r.defaultOrdering)??xEe),{pagination:N}=(t==null?void 0:t.shortUrls)??{},F=I.useMemo(()=>{var ae;return _??((ae=T.visits)==null?void 0:ae.excludeBots)},[_,(n=T.visits)==null?void 0:n.excludeBots]),V=bi("excludeBotsOnShortUrls"),B=I.useCallback((ae,se)=>{E({orderBy:{field:ae,dir:se}}),j({field:ae,dir:se})},[E]),W=ae=>()=>B(ae,F0(ae,A.field,A.dir)),q=ae=>g.jsx(Kh,{currentOrder:A,field:ae}),J=I.useCallback(ae=>E({tags:[...new Set([...u,ae])]}),[u,E]),Q=I.useCallback(({field:ae,dir:se})=>V&&F&&ae==="visits"?{field:"nonBotVisits",dir:se}:{field:ae,dir:se},[F,V]),ne=Qj();return I.useEffect(()=>{e({page:s,searchTerm:h,tags:u,startDate:p,endDate:v,orderBy:Q(A),tagsMode:x,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:S})},[e,Q,s,h,u,p,v,A,x,w,O,S]),g.jsxs(Xj,{value:ne,children:[g.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:A,handleOrderBy:B,className:"mb-3"}),g.jsx(Jj,{type:"short-urls",className:"mb-3"}),g.jsxs(xi,{body:!0,className:ze({"pb-0":!t.loading}),children:[g.jsx(o,{shortUrlsList:t,orderByColumn:W,renderOrderIcon:q,onTagClick:J}),!t.loading&&g.jsx(_Ee,{paginator:N,currentQueryString:c.search})]})]})},()=>[kn.visits]),wEe=fr(fV,["ShortUrlsTable","ShortUrlsFilteringBar"]),OEe=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:r})=>{const{error:n,loading:i,shortUrls:o}=e;return n?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):i?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!i&&(!o||o.data.length===0)?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):o==null?void 0:o.data.map(a=>g.jsx(r,{shortUrl:a,onTagClick:t},a.shortUrl))},dV=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:r,onTagClick:n,className:i})=>{const{ShortUrlsRow:o}=cr(dV),a=ze({"short-urls-table__header-cell--with-action":!!e}),s=ze("short-urls-table__header-cell",a),c=ze("table table-hover responsive-table short-urls-table",i);return g.jsxs("table",{className:c,children:[g.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:g.jsxs("tr",{children:[g.jsxs("th",{className:s,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),g.jsxs("th",{className:s,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),g.jsxs("th",{className:"short-urls-table__header-cell",children:[g.jsxs(ku,{className:ze("p-0",a),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",g.jsxs(ku,{className:ze("p-0",a),onClick:e==null?void 0:e("longUrl"),children:[g.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),g.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),g.jsx("th",{className:s,onClick:e==null?void 0:e("visits"),children:g.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),g.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),g.jsx("tbody",{children:g.jsx(OEe,{ShortUrlsRow:o,shortUrlsList:r,onTagClick:n})})]})},SEe=fr(dV,["ShortUrlsRow"]),PEe=(e,t)=>{e.factory("ShortUrlsList",wEe),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",SEe),e.factory("ShortUrlsRow",YCe),e.factory("CreateShortUrlResult",ACe),e.factory("ShortUrlsRowMenu",ZCe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",lEe),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",TCe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",jCe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>kCe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",UCe),e.factory("ExportShortUrlsBtn",RCe),e.factory("ShortUrlsFilteringBar",bEe),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",uPe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",r=>r.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",QCe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",r=>r.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",tEe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",r=>r.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",aPe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",r=>r.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",rEe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",r=>r.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",lPe,"apiClientFactory"),e.serviceFactory("createShortUrl",XCe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",r=>r.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",oPe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",r=>r.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>mz),e.serviceFactory("getShortUrlsDetails",r=>r.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",eEe,"apiClientFactory")},CEe=({tag:e,toggle:t,isOpen:r,deleteTag:n,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:c,errorData:u}=i;return g.jsxs(Yn,{toggle:t,isOpen:r,centered:!0,onClosed:()=>c&&o(e),children:[g.jsx(la,{toggle:t,className:"text-danger",children:"Delete tag"}),g.jsxs(Co,{children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",s&&g.jsx(Tn,{type:"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs(Ja,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",disabled:a,onClick:async()=>{await n(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},hV=({tag:e,editTag:t,toggle:r,tagEdited:n,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=cr(hV),[s,c]=I.useState(e),[u,h]=I.useState(a.getColorForKey(e)),{editing:p,error:v,edited:b,errorData:x}=o,_=dz(async()=>{await t({oldName:e,newName:s,color:u}),r()}),w=I.useCallback(()=>b&&n({oldName:e,newName:s,color:u}),[u,b,s,e,n]);return g.jsx(Yn,{isOpen:i,toggle:r,centered:!0,onClosed:w,children:g.jsxs("form",{name:"editTag",onSubmit:_,children:[g.jsx(la,{toggle:r,children:"Edit tag"}),g.jsxs(Co,{children:[g.jsxs(rm,{children:[g.jsx(qz,{color:u,onChange:h,className:"input-group-text",name:"tag-color"}),g.jsx(Zr,{value:s,placeholder:"Tag",required:!0,onChange:({target:O})=>c(O.value)})]}),v&&g.jsx(Tn,{type:"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:x,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs(Ja,{children:[g.jsx(_t,{type:"button",color:"link",onClick:r,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:p,children:p?"Saving...":"Save"})]})]})})},EEe=fr(hV,["ColorGenerator"]),TEe=/\s+/g,pV=e=>e.trim().toLowerCase().replace(TEe,"-"),mV=({color:e})=>g.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),vV=({tag:e,colorGenerator:t})=>g.jsx(mV,{color:t.getColorForKey(e)});let Z5=1;const gV="Tag not found",yV="Add tag",jEe=e=>e!==gV,AEe=e=>e===yV,X5=e=>(Z5+=1,{label:e,value:`${e}${Z5}`}),kEe=e=>({tag:t,onClick:r})=>g.jsx(Mb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:r}),REe=(e,t)=>({option:r,classNames:n,...i})=>{var o;const a=jEe(r.label),s=AEe(r.label);return g.jsx("div",{className:ze(n.option,{[n.optionIsActive]:a&&r.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?g.jsxs(g.Fragment,{children:[!s&&g.jsx(vV,{tag:`${r.label}`,colorGenerator:e}),s?g.jsxs("i",{children:['Add "',pV(((o=t.current)==null?void 0:o.input.value)??""),'"']}):r.label]}):g.jsx("i",{children:r.label})})},bV=({selectedTags:e,onChange:t,placeholder:r,tags:n,immutable:i=!1})=>{const{ColorGenerator:o}=cr(bV),a=Rn("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",c=Yi();return g.jsx(nue,{ref:c,selected:e.map(X5),suggestions:n.filter(u=>!e.includes(u)).map(X5),renderTag:kEe(o),renderOption:REe(o,c),activateFirstOption:!0,allowNew:!i,newOptionText:yV,noOptionsText:gV,placeholderText:r??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(u,h)=>{const p=u.toLowerCase().trim();return p.length<1?[]:[...h.filter(({label:v})=>s==="includes"?v.includes(p):v.startsWith(p))].slice(0,5)},onDelete:u=>{const h=[...e];h.splice(u,1),t(h)},onAdd:({label:u})=>t([...new Set([...e,...u.split(",").map(pV)])])})},NEe=fr(bV,["ColorGenerator"]),TE="shlink/tagDelete",MEe={deleting:!1,deleted:!1,error:!1},_V=jn(`${TE}/tagDeleted`),LEe=e=>{const t=Vr(`${TE}/deleteTag`,async n=>{await e().deleteTags([n])}),{reducer:r}=Tr({name:TE,initialState:MEe,reducers:{},extraReducers:n=>{n.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),n.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Oi(o)})),n.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:r,deleteTag:t}},fA="shlink/tagEdit",IEe={editing:!1,edited:!1,error:!1},xV=jn(`${fA}/tagEdited`),DEe=(e,t)=>Vr(`${fA}/editTag`,async({oldName:r,newName:n,color:i})=>(await e().editTag(r,n),t.setColorForKey(n,i),{oldName:r,newName:n,color:i})),$Ee=e=>Tr({name:fA,initialState:IEe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(r,{error:n})=>({editing:!1,edited:!1,error:!0,errorData:Oi(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>{const{oldName:i,newName:o}=n;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),dA="shlink/tagsList",KO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},Q5=(e,t)=>r=>r===e?t:r,J5=(e,t)=>e.filter(r=>r!==t),FEe=(e,t)=>e.reduce((r,[n,i])=>{if(!r[n])return r;const{bots:o,nonBots:a}=i,s=r[n];return{...r,[n]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:(s.visitsCount??0)+o+a}}},{...t}),BEe=e=>Object.entries(e.reduce((t,{shortUrl:r,visit:n})=>(r==null||r.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),n.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),UEe=e=>Vr(`${dA}/listTags`,async()=>{const{data:t}=await e().tagsStats(),r=t.reduce((n,{tag:i,...o})=>(n[i]=o,n),{});return{tags:Object.keys(r),stats:r}}),wV=jn(`${dA}/filterTags`),zEe=(e,t)=>Tr({name:dA,initialState:KO,reducers:{},extraReducers:r=>{r.addCase(wV,(n,{payload:i})=>({...n,filteredTags:n.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),r.addCase(e.pending,n=>({...n,loading:!0,error:!1})),r.addCase(e.rejected,(n,{error:i})=>({...KO,error:!0,errorData:Oi(i)})),r.addCase(e.fulfilled,(n,{payload:i})=>({...KO,stats:i.stats,tags:i.tags,filteredTags:i.tags})),r.addCase(_V,({tags:n,filteredTags:i,...o},{payload:a})=>({...o,tags:J5(n,a),filteredTags:J5(i,a)})),r.addCase(xV,({tags:n,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:n.map(Q5(s.oldName,s.newName)).sort(),filteredTags:i.map(Q5(s.oldName,s.newName)).sort()})),r.addCase(cd,(n,{payload:i})=>({...n,stats:FEe(BEe(i.createdVisits),n.stats)})),r.addCase(t.fulfilled,({tags:n,...i},{payload:o})=>({...i,tags:n.concat(o.tags.filter(a=>!n.includes(a)))}))}}),VEe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},OV=Ao(({filterTags:e,tagsList:t})=>{var r,n;const{TagsTable:i}=cr(OV),o=IT(),[a,s]=I.useState(((r=o.tags)==null?void 0:r.defaultOrdering)??{}),c=I.useMemo(()=>{const h=t.filteredTags.map(p=>{var v,b,x;const _=t.stats[p],w=((v=o.visits)!=null&&v.excludeBots?(b=_==null?void 0:_.visitsSummary)==null?void 0:b.nonBots:(x=_==null?void 0:_.visitsSummary)==null?void 0:x.total)??(_==null?void 0:_.visitsCount)??0;return{tag:p,visits:w,shortUrls:(_==null?void 0:_.shortUrlsCount)??0}});return DF(h,a)},[a,(n=o.visits)==null?void 0:n.excludeBots,t.filteredTags,t.stats]),u=Qj();return t.loading?g.jsx(qa,{loading:!0}):t.error?g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):g.jsxs(Xj,{value:u,children:[g.jsx(im,{className:"mb-3",onChange:e}),g.jsx(Yo,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(om,{items:VEe,order:a,onChange:(h,p)=>s({field:h,dir:p})})})}),g.jsx(Jj,{type:"tags",className:"mb-3"}),g.jsx(i,{sortedTags:c,currentOrder:a,orderByColumn:h=>()=>{const p=F0(h,a.field,a.dir);s({field:p?h:void 0,dir:p})}})]})},()=>[kn.visits]),WEe=fr(OV,["TagsTable"]),hA=({pagesCount:e,currentPage:t,setCurrentPage:r,centered:n=!0})=>{if(e<2)return null;const i=o=>()=>!Hp(o)&&r(o);return g.jsxs(TT,{listClassName:ze("flex-wrap mb-0 simple-paginator",{"justify-content-center":n}),children:[g.jsx(mu,{disabled:t<=1,children:g.jsx(vu,{previous:!0,tag:"span",onClick:i(t-1)})}),lV(t,e).map((o,a)=>g.jsx(mu,{disabled:Hp(o),active:t===o,children:g.jsx(vu,{role:"link",tag:"span",onClick:i(o),children:uV(o)})},cV(o,a))),g.jsx(mu,{disabled:t>=e,children:g.jsx(vu,{next:!0,tag:"span",onClick:i(t+1)})})]})},qEe=20,SV=({sortedTags:e,orderByColumn:t,currentOrder:r})=>{const{TagsTableRow:n}=cr(SV),i=I.useRef(!0),{page:o=1}=Zf(),[a,s]=zSe("page",Number(o)),c=I.useCallback(v=>{s(v),scrollTo(0,0)},[s]),u=Jc(e,qEe),h=u.length>1,p=u[a-1]??[];return I.useEffect(()=>{i.current||c(1),i.current=!1},[c,e]),g.jsxs(Wt,{bodyClassName:h?"pb-1":"",children:[g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsxs("thead",{className:"responsive-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",g.jsx(Kh,{currentOrder:r,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",g.jsx(Kh,{currentOrder:r,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",g.jsx(Kh,{currentOrder:r,field:"visits"})]}),g.jsx("th",{className:"tags-table__header-cell",children:g.jsx("span",{className:"sr-only",children:"Options"})})]}),g.jsx("tr",{children:g.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),g.jsxs("tbody",{children:[p.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),p.map(v=>g.jsx(n,{tag:v},v.tag))]})]}),h&&g.jsx("div",{className:"sticky-card-paginator",children:g.jsx(hA,{pagesCount:u.length,currentPage:a,setCurrentPage:c})})]},a)},HEe=fr(SV,["TagsTableRow"]),PV=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:r,ColorGenerator:n}=cr(PV),[i,o]=ur(),[a,s]=ur(),c=_l(),u=jb();return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(vV,{tag:e.tag,colorGenerator:n})," ",e.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Ht,{to:`${c}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Sr(e.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Ht,{to:`${c}/tag/${e.tag}/visits`,children:Sr(e.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs($0,{children:[g.jsxs(Ye,{onClick:s,children:[g.jsx(Ge,{icon:r$,fixedWidth:!0,className:"me-1"})," Edit"]}),g.jsxs(Ye,{disabled:!u||!u.canAddItemWithName(e.tag),onClick:()=>u==null?void 0:u.addItemToCompare({name:e.tag,query:e.tag,style:n.stylesForKey(e.tag)}),children:[g.jsx(Ge,{icon:j0,fixedWidth:!0})," Compare visits"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:o,children:[g.jsx(Ge,{icon:YK,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),g.jsx(r,{tag:e.tag,toggle:s,isOpen:a}),g.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},GEe=fr(PV,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),KEe=(e,t)=>{e.factory("TagsSelector",NEe),e.serviceFactory("DeleteTagConfirmModal",()=>CEe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",EEe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",GEe),e.factory("TagsTable",HEe),e.factory("TagsList",WEe),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",$Ee,"editTag"),e.serviceFactory("tagEditReducer",r=>r.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",LEe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",r=>r.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",zEe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",r=>r.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",UEe,"apiClientFactory"),e.serviceFactory("filterTags",()=>wV),e.serviceFactory("deleteTag",r=>r.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>_V),e.serviceFactory("editTag",DEe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>xV)},YEe=new O7,ZEe=e=>YEe.parse(e),e8=e=>e.toLowerCase().trim();class XEe{constructor(t){tl(this,"colors"),tl(this,"lights");var r;this.storage=t,this.colors=((r=this.storage)==null?void 0:r.getTagColors())??{},this.lights={}}getColorForKey(t){const r=e8(t);return this.colors[r]||this.setColorForKey(r,ICe())}setColorForKey(t,r){var n;const i=e8(t);return this.colors[i]=r,(n=this.storage)==null||n.storeTagColors(this.colors),r}stylesForKey(t){const r=this.getColorForKey(t);return{backgroundColor:r,color:this.isLightColor(r)?"#222":"#fff"}}isLightColor(t){const r=t.substring(1);return this.lights[r]===void 0&&(this.lights[r]=Wz(r)),this.lights[r]}}const CV=({document:e},t,r)=>{const n=e.createElement("a");n.setAttribute("href",t),n.setAttribute("download",r),n.style.visibility="hidden",e.body.appendChild(n),n.click(),e.body.removeChild(n)},QEe=(e,t,r)=>{const n=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(n);CV(e,i,r)};class JEe{constructor(t,r){this.fetch=t,this.window=r}async saveImage(t,r){const n=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(n);CV(this.window,i,r)}}class eTe{constructor(t,r){tl(this,"exportVisits",(n,i)=>{i.length&&this.exportCsv(n,i)}),tl(this,"exportShortUrls",n=>{n.length&&this.exportCsv("short_urls.csv",n)}),tl(this,"exportCsv",(n,i)=>{const o=this.jsonToCsv(i);QEe(this.window,o,n)}),this.window=t,this.jsonToCsv=r}}function tTe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",JEe,"fetch","window"),e.service("ColorGenerator",XEe,"TagColorsStorage"),e.constant("jsonToCsv",ZEe),e.service("ReportExporter",eTe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>LF)}const _m=({visits:e,shortUrl:t,children:r,title:n})=>g.jsx("header",{children:g.jsxs(xi,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(Nb,{}),g.jsx("span",{className:"text-center d-none d-sm-block",children:g.jsx("small",{children:n})}),g.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",g.jsx(Kz,{visitsCount:e.length,shortUrl:t})]})]}),g.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:g.jsx("small",{children:n})}),r&&g.jsx("div",{className:"mt-md-2",children:r})]})}),Ib=({children:e,className:t})=>g.jsx("div",{className:ze("d-flex justify-content-between align-items-center",t),children:e}),EV=({title:e,footer:t,children:r})=>g.jsxs(xi,{role:"document",children:[g.jsx(tm,{className:"chart-card__header",children:e}),g.jsx(em,{children:r}),t&&g.jsx(bF,{className:"chart-card__footer--sticky",children:t})]}),TV={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},rTe={marginBottom:"5px",fontWeight:"bold"},jV={contentStyle:TV,labelStyle:rTe,itemStyle:{padding:0}},t8=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],AV=e=>t8[e%t8.length],_0=()=>am()?"#46e587":"#1DAA58",nTe=()=>am()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",iTe=({chartData:e,showNumbers:t})=>g.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:r,color:n,value:i})=>g.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[g.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:n}}),g.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[r,t&&g.jsxs("b",{children:[" (",Sr(i),")"]})]})]},r))}),r8=e=>I.useMemo(()=>Object.entries(e).map(([t,r],n)=>({name:t,value:r,color:AV(n)})),[e]),oTe=({stats:e,prevStats:t,showNumbersInLegend:r,dimensions:n})=>{const i=r8(e),o=r8(t),a=o.length>0,s=am()?Uie:Bie;return g.jsxs("div",{className:"row align-items-center",children:[g.jsx("div",{className:"col-sm-12 col-md-7",children:g.jsx("div",{style:n??{width:"100%",height:300},children:g.jsx(n?I.Fragment:uj,{children:g.jsxs(tSe,{...n,children:[g.jsx(Ui,{formatter:Sr,contentStyle:TV,itemStyle:{color:"white"}}),g.jsx(oa,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((c,u)=>g.jsx(Qs,{fill:c.color,stroke:s},`${c.name}-${u}`))}),a&&g.jsx(oa,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:_0()})]})})})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:g.jsx(iTe,{chartData:i,showNumbers:r})})]})},n8=({title:e,...t})=>{const[r,n]=ur(!1);return g.jsx(EV,{title:g.jsxs(Ib,{children:[e,g.jsx("div",{children:g.jsx(Ha,{checked:r,onChange:n,children:"Show numbers"})})]}),children:g.jsx(oTe,{...t,showNumbersInLegend:r})})},aTe=I.forwardRef(({visitsGroups:e},t)=>{const r=I.useMemo(()=>Object.entries(e),[e]);return r.length===0?null:g.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",ref:t,children:r.map(([n,i],o)=>g.jsxs("li",{className:"d-inline",children:[g.jsx(mV,{color:kV(i)}),g.jsxs("strong",{children:[n," (",Sr(i.length),")"]})]},`${n}${o}`))})}),sTe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},lTe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},uTe={hourly:Rae,daily:q0,weekly:kae,monthly:ly},pA={hourly:e=>uy(e,"yyyy-MM-dd HH:00"),daily:e=>Zs(e),weekly(e){const t=Zs(up(e)),r=Zs(Bae(e));return`${t} - ${r}`},monthly:e=>uy(e,"yyyy-MM")},cTe=e=>{var t;const r=Object.values(e).filter(a=>a.length>0);if(r.length===0)return"monthly";const n=new Date,i=r.map(a=>al(a[a.length-1].date)),o=c7(i);return((t=[[()=>q0(n,o)<=2,"hourly"],[()=>ly(n,o)<=1,"daily"],[()=>ly(n,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},fTe=(e,t)=>Object.keys(t).reduce((r,n)=>(r[n]=e7(t[n],i=>pA[e](al(i.date))),r),{}),dTe=(e,t)=>t.reduce((r,n)=>{const i=pA[e](al(n.date));return r[i]=r[i]??[],r[i].push(n),r},{}),hTe=(e,t)=>{const r=Object.values(t).filter(h=>h.length>0).map(h=>[...h].reverse());if(r.length===0)return[];const n=uTe[e],i=pA[e],o=lTe[e],a=r.flat(),s=al(a[0].date),c=al(a[a.length-1].date),u=n(c,s)||1;return[{formattedDate:i(s),date:s},...eA(u,h=>{const p=Pae(s,o(h));return{formattedDate:i(p),date:p}})]},kV=e=>{if(e.color)return e.color;const t={main:op,highlighted:FP,previous:_0()};return e.type?t[e.type]:op},i8=(e,t)=>I.useMemo(()=>Object.values(e).find(r=>r.type===t)??[],[e,t]),pTe=(e,t,r)=>{const n=i8(e,"main"),i=i8(e,"highlighted"),o=I.useMemo(()=>r?dTe(t,n):{},[r,t,n]),a=I.useCallback((s,{payload:c})=>{const u=o[c.formattedDate]??[];r==null||r(u===i?[]:u)},[o,i,r]);return r&&{cursor:"pointer",onClick:a}},o8=e=>{var t,r;return(r=(t=e.activePayload)==null?void 0:t[0])==null?void 0:r.payload},RV=({visitsGroups:e,setSelectedVisits:t,dimensions:r,matchMedia:n,onDateRangeChange:i})=>{const[o,a]=I.useState(cTe(e)),s=rA(767,n??window.matchMedia),c=I.useMemo(()=>{const q=fTe(o,e),J=Object.keys(q);return hTe(o,e).map(({formattedDate:Q,date:ne})=>({date:ne,formattedDate:Q,...J.reduce((ae,se)=>(ae[se]=q[se][Q]??0,ae),{})}))},[o,e]),u=pTe(e,o,t),[h,p,,v]=ur(),b=Yi(),x=I.useId(),_=Yi(),[w,O]=I.useState(s?300:400);I.useLayoutEffect(()=>{if(!h)return O(s?300:400),()=>{};const q=new ResizeObserver(()=>{const{height:J}=b.current.getBoundingClientRect(),{height:Q}=_.current.getBoundingClientRect();O(J-Q-48)});return q.observe(b.current),q.observe(_.current),()=>q.disconnect()},[b,h,s,_]),WSe("Escape",v,h);const S=r?I.Fragment:uj,E=I.useMemo(()=>r?{}:{width:"100%",height:w},[r,w]),[T,A]=I.useState(),[j,N]=I.useState(),F=I.useCallback(()=>{A(void 0),N(void 0)},[]),V=I.useCallback((q,J)=>{const Q=o8(q);J.button===0&&Q&&A(Q)},[]),B=I.useCallback(q=>{const J=o8(q);T&&J&&N(J)},[T]),W=I.useCallback(()=>{if(!T||!j)return;const q=[T.date,j.date],J=Tae(q),Q=c7(q);F(),i({startDate:J,endDate:Q})},[i,F,j,T]);return g.jsxs(xi,{className:ze({"fixed-top fixed-bottom":h}),"data-testid":"line-chart-card",children:[g.jsxs(tm,{role:"heading","aria-level":4,className:"d-flex justify-content-between align-items-center",children:["Visits over time",g.jsxs("div",{className:"d-flex align-content-center gap-1",children:[g.jsx(_t,{"aria-label":h?"Collapse":"Expand","aria-expanded":h,"aria-controls":x,size:"sm",color:"link",onClick:p,children:g.jsx(Ge,{icon:h?jK:SY})}),g.jsxs(nm,{className:"d-flex align-items-center",children:[g.jsx(Qa,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(pl,{end:!0,children:Object.entries(sTe).map(([q,J])=>g.jsx(Ye,{active:o===q,onClick:()=>a(q),children:J},q))})]})]})]}),g.jsxs(em,{innerRef:b,id:x,children:[g.jsx(S,{...E,children:g.jsxs(eSe,{className:"user-select-none",data:c,...r,onMouseDown:V,onMouseMove:B,onMouseUp:W,children:[g.jsx(ld,{dataKey:"formattedDate"}),g.jsx(ud,{tickFormatter:Sr,yAxisId:"1"}),g.jsx(Ui,{formatter:Sr,...jV}),g.jsx(qj,{strokeOpacity:am()?.1:.9}),Object.entries(e).map(([q,J])=>J.length>0&&g.jsx(sd,{yAxisId:"1",dataKey:q,type:"monotone",stroke:kV(J),strokeWidth:2,activeDot:J.type==="previous"?void 0:u,strokeDasharray:J.type==="previous"?"8 3":void 0},q)),T&&j&&g.jsx(vm,{yAxisId:"1",x1:T.formattedDate,x2:j.formattedDate})]})}),g.jsx(aTe,{visitsGroups:e,ref:_})]})]})},mTe=({toggleClassName:e,ranges:t,value:r,setValue:n})=>g.jsxs(nm,{children:[g.jsx(Qa,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(pl,{end:!0,children:[t.map(i=>g.jsxs(Ye,{active:i===r,onClick:()=>n(i),children:[g.jsx("b",{children:i})," items per page"]},i)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:r===1/0,onClick:()=>n(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})]}),a8=e=>e.startsWith("hidden_"),vTe=({stats:e,prevStats:t,highlightedStats:r,highlightedLabel:n,max:i,onClick:o,dimensions:a})=>{const s=I.useMemo(()=>Object.entries(e).map(([p,v])=>{const b=(r==null?void 0:r[p])??0,x=(t==null?void 0:t[p])??0,_=a8(p);return{name:p,amount:Math.max(v,x),nonHighlightedAmount:_?null:v-b,highlightedAmount:_?null:b,prevAmount:_?null:x}}),[e,t,r]),c=I.useMemo(()=>{const p=s.reduce((v,{name:b})=>v>b.length?v:b.length,0);return Math.min(150,p*7)},[s]),u=a?I.Fragment:uj,h=I.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return g.jsx(u,{...h,children:g.jsxs(rSe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[g.jsx(ld,{type:"number",dataKey:"amount",tickFormatter:Sr,domain:i?[0,i]:void 0}),g.jsx(ud,{type:"category",dataKey:"name",width:c,interval:0,style:{fontSize:".8rem"},tickFormatter:p=>a8(p)?"":p}),g.jsx(qj,{strokeOpacity:am()?.05:.9}),g.jsx(Ui,{filterNull:!0,...jV,formatter:(p,v)=>[Sr(p),v==="highlightedAmount"?n:v==="prevAmount"?"Previous period":r?"Non-selected":"Visits"]}),g.jsx(Ua,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:op,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Qs,{fill:$ie,stroke:op,strokeWidth:2},p.name))}),r&&g.jsx(Ua,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:FP,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Qs,{fill:Fie,stroke:FP,strokeWidth:2},p.name))}),t&&g.jsx(Ua,{dataKey:"prevAmount",fill:_0(),children:s.map(p=>g.jsx(Qs,{fill:nTe(),stroke:_0(),strokeWidth:2},p.name))})]})})},gTe=e=>typeof e=="string"?e.toLowerCase():e,yTe=([e])=>e,bTe=([,e])=>e,cg=({stats:e,prevStats:t,highlightedStats:r,title:n,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[c,u]=I.useState({}),[h,p]=I.useState(1),[v,b]=I.useState(50),x=I.useCallback((F,V)=>{const B=Object.entries(F),W=c.field?Goe(B,([q,J])=>gTe(c.field===Object.keys(V)[0]?q:J)):B;return!c.dir||c.dir==="ASC"?W:[...W].reverse()},[c.dir,c.field]),_=I.useCallback(F=>{const V=F[h-1];if(h<F.length)return V;const B=F[0].length;return[...V,...eA(B-V.length,W=>[`hidden_${W}`,0])]},[h]),w=I.useCallback(F=>g.jsx(hA,{currentPage:h,pagesCount:F,setCurrentPage:p}),[h]),O=I.useCallback((F,V,B,W)=>{const q=x(F,V),J=q.map(yTe),Q=B&&Object.entries({...uN(J,J.map(()=>0)),...B}),ne=W&&Object.entries({...uN(J,J.map(()=>0)),...W});if(q.length<=v)return{currentPageStats:Object.fromEntries(q),currentPageHighlightedStats:Q&&Object.fromEntries(Q),currentPagePrevStats:ne&&Object.fromEntries(ne)};const ae=Jc(q,v),se=Q&&Jc(Q,v),oe=ne&&Jc(ne,v);return{currentPageStats:Object.fromEntries(_(ae)),currentPageHighlightedStats:se&&Object.fromEntries(_(se)),currentPagePrevStats:oe&&Object.fromEntries(_(oe)),pagination:w(ae.length),max:dPe(Math.max(...q.map(bTe)))}},[_,x,v,w]),{currentPageStats:S,currentPagePrevStats:E,currentPageHighlightedStats:T,pagination:A,max:j}=I.useMemo(()=>O(e,i,r&&Object.keys(r).length>0?r:void 0,t&&Object.keys(t).length>0?t:void 0),[O,r,t,i,e]),N=I.useMemo(()=>Object.keys(S),[S]);return g.jsx(EV,{title:g.jsxs(Ib,{children:[n,g.jsxs("div",{className:"d-flex gap-3",children:[o==null?void 0:o(A?N:void 0),a&&Object.keys(e).length>50&&g.jsx(mTe,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:v,setValue:F=>{b(F),p(1)}}),g.jsx(om,{isButton:!1,right:!0,items:i,order:c,onChange:(F,V)=>{u({field:F,dir:V}),p(1)}})]})]}),footer:A,children:g.jsx(vTe,{stats:S,prevStats:E,highlightedStats:T,max:j,...s})})},mA=e=>e.type!==void 0,_Te=e=>e.type!==void 0,xTe=e=>{const t=t7(e,r=>mA(r.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},NV=(e,{shortCode:t,domain:r},{endDate:n,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Hh(o,t,r)&&bm(a.date,i,n)),MV=(e,t,{endDate:r,startDate:n}={})=>e.filter(({shortUrl:i,visit:o})=>i&&nPe(i,t)&&bm(o.date,n,r)),LV=(e,t,{endDate:r,startDate:n}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&bm(o.date,n,r)),fg=(e,t)=>e7(e,r=>r[t]),wTe=e=>{const t=((e==null?void 0:e.startDate)&&cl(e==null?void 0:e.startDate))??void 0,r=((e==null?void 0:e.endDate)&&cl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:r}},jE=({filter:e,dateRange:t})=>{const{startDate:r,endDate:n}=wTe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:r,endDate:n,excludeBots:i}},OTe=e=>aV(e.dateRange),STe=({dateRange:e,...t})=>({...t,dateRange:hEe(e)}),s8=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&cl(t[e])||""},IV=()=>{const e=sa(),t=Zf(),{startDate:r,endDate:n,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,c=I.useMemo(()=>({dateRange:r!=null||n!=null?rV(r,n):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:a!==void 0?a==="true":void 0}),[n,o,a,i,r]),u=I.useCallback(h=>{const{dateRange:p,visitsFilter:v={},loadPrevInterval:b}=W0(c,h),{excludeBots:x,orphanVisitsType:_}=v,w={...s,startDate:s8("startDate",p),endDate:s8("endDate",p),excludeBots:x===void 0?void 0:OE(x),orphanVisitsType:_,loadPrevInterval:b===void 0?void 0:OE(b)},O=D0(w),S=O?`?${O}`:"";e(S,{replace:!0,relative:"route"})},[c,e,s]);return[c,u]},PTe=()=>g.jsx(xSe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),CTe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:r})=>r)};const[{latLong:t}]=e;return{zoom:10,center:t}},DV=({toggle:e,isOpen:t,title:r,locations:n=[]})=>g.jsx(Yn,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:g.jsxs(Co,{className:"map-modal__modal-body",children:[g.jsxs(Ib,{className:"map-modal__modal-title fs-4",children:[r,g.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),g.jsxs(ySe,{...CTe(n),children:[g.jsx(PTe,{}),n.map(({cityName:i,latLong:o,count:a},s)=>g.jsx(bSe,{position:o,children:g.jsxs(_Se,{children:[g.jsx("b",{children:a})," visit",a>1?"s":""," from ",g.jsx("b",{children:i})]})},s))]})]})}),ETe=({modalTitle:e,activeCities:t,locations:r=[]})=>{const[n,,i,o]=ur(),[a,s]=ur(),[c,u]=I.useState([]),h=I.useCallback(p=>{u(p?r.filter(p):r),i()},[r,i]);return g.jsxs(g.Fragment,{children:[!t&&g.jsx(_t,{color:"link",className:"p-0",onClick:()=>h(),"aria-label":"Show in map",title:"Show in map",children:g.jsx(Ge,{icon:rS})}),t&&g.jsxs(hl,{isOpen:a,toggle:s,children:[g.jsx(Qa,{color:"link",className:"p-0",title:"Show in map",children:g.jsx(Ge,{icon:rS})}),g.jsxs(pl,{end:!0,children:[g.jsx(Ye,{onClick:()=>h(),children:"Show all locations"}),g.jsx(Ye,{onClick:()=>h(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),g.jsx(DV,{toggle:o,isOpen:n,title:e,locations:c})]})},$V=({onChange:e,selected:t={},className:r,isOrphanVisits:n=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:c=!1}=t,u=v=>({active:a===v,onClick:()=>e({...t,orphanVisitsType:v===a?void 0:v})}),h=I.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),p=I.useCallback(()=>e({...t,loadPrevInterval:!c}),[c,e,t]);return g.jsxs(es,{disabled:o,text:"More",dropdownClassName:r,end:!0,minWidth:250,children:[i&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{active:c,onClick:p,children:"Compare with previous period"}),g.jsx(Ye,{divider:!0,tag:"hr"})]}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Bots:"}),g.jsx(Ye,{active:s,onClick:h,children:"Exclude potential bots"}),n&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),g.jsx(Ye,{...u("base_url"),children:"Base URL"}),g.jsx(Ye,{...u("invalid_short_url"),children:"Invalid short URL"}),g.jsx(Ye,{...u("regular_404"),children:"Regular 404"})]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{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:g.jsx("i",{children:"Reset to defaults"})})]})},FV=({info:e})=>{const{loading:t,errorData:r,progress:n}=e;return g.jsxs(g.Fragment,{children:[t&&n===null&&g.jsx(qa,{loading:!0}),t&&n!==null&&g.jsxs(qa,{loading:!0,children:["This is going to take a while... :S",g.jsx(SF,{value:n,striped:n>=100,className:"mt-3"})]}),r&&g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:r,fallbackMessage:"An error occurred while loading visits :("})})]})},Eg=({children:e,showFallback:t})=>g.jsxs(g.Fragment,{children:[t&&g.jsx(qa,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&g.jsx(g.Fragment,{children:e})]}),TTe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:r}=e,[n,,i]=ur();return g.jsx(Wt,{title:g.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:g.jsxs(Ib,{children:[g.jsxs("dl",{className:"m-0 me-3",children:[g.jsx("dt",{children:"Delete visits."}),g.jsxs("dd",{className:"m-0",children:["This will delete ",g.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!n&&g.jsx(_t,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),n&&g.jsxs(_t,{color:"danger",disabled:r,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!r&&g.jsx(g.Fragment,{children:"Click again to confirm"}),r&&g.jsx(g.Fragment,{children:"Deleting..."})]})]})})},dg="Others",jTe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],ATe=e=>{if(!au(e))return{browser:dg,os:dg};const{browser:{name:t},os:{name:r}}=ESe.parse(e);return{os:r??dg,browser:t&&jTe.includes(t)?t:dg}},kTe=e=>{var t;return au(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},BV=(e,t)=>e[t]!==void 0,l8=e=>typeof e=="number"?e:e?parseFloat(e):0,RTe=(e,{os:t})=>{e[t]=(e[t]||0)+1},NTe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},MTe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},UV=e=>(t,r)=>{const n=BV(r,e)?r[e]:"Unknown";t[n]=(t[n]||0)+1},LTe=UV("country"),ITe=UV("city"),DTe=(e,t)=>{if(!BV(t,"city")||t.city==="Unknown")return;const{city:r,latitude:n,longitude:i}=t,o=e[r]||{cityName:r,count:0,latLong:[l8(n),l8(i)]};o.count+=1,e[r]=o},$Te=(e,t)=>{if(!_Te(t))return;const{visitedUrl:r}=t;e[r]=(e[r]||0)+1},AE=e=>e.reduce((t,r)=>(RTe(t.os,r),NTe(t.browsers,r),MTe(t.referrers,r),LTe(t.countries,r),ITe(t.cities,r),DTe(t.citiesForMap,r),$Te(t.visitedUrls,r),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),x0=e=>e.map(t=>{const{userAgent:r,date:n,referer:i,visitLocation:o,potentialBot:a}=t;return{date:n,potentialBot:a,userAgent:r,...ATe(r),referer:kTe(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,visitedUrl:t.visitedUrl,type:mA(t)?t.type:void 0}}),FTe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:x0,processStatsFromVisits:AE},Symbol.toStringTag,{value:"Module"})),jh=20,BTe=({browser:e,os:t,referer:r,country:n,city:i,userAgent:o,...a},s,c)=>{const u=c?o:`${n} ${i}`;return`${e} ${t} ${r} ${u} ${a.visitedUrl}`.toLowerCase().includes(s.toLowerCase())},UTe=(e,t,r)=>t.filter(n=>BTe(n,e,r)),zTe=(e,t)=>DF(t,e),VTe=({visits:e,searchTerm:t,order:r,searchInRawUserAgent:n})=>{const i=t?UTe(t,e,n):[...e],o=zTe(r,i),a=o.length;return{visitsGroups:Jc(o,jh),total:a}},qo="visits-table__header-cell visits-table__sticky",WTe=({visits:e,selectedVisits:t=[],setSelectedVisits:r,matchMedia:n=window.matchMedia})=>{var i;const o=rA(767,n),[a,s]=I.useState(),c=I.useCallback(F=>{s(F),w(1),r([])},[r]),[u,h]=I.useState({}),[p,v]=ur(),b=I.useCallback(()=>{v(),h({})},[v]),x=I.useMemo(()=>VTe({visits:e,searchTerm:a,order:u,searchInRawUserAgent:p}),[e,a,u,p]),[_,w]=I.useState(1),O=_*jh,S=O-jh,E=I.useMemo(()=>{var F,V;return!!((V=(F=x.visitsGroups[_-1])==null?void 0:F[0])!=null&&V.visitedUrl)},[_,x.visitsGroups]),T=6+Number(E)+(p?1:2),A=x.total>0,j=F=>h({field:F,dir:F0(F,u.field,u.dir)}),N=F=>g.jsx(Kh,{currentOrder:u,field:F,className:"visits-table__header-icon"});return g.jsx(Wt,{className:"mt-3",bodyClassName:"p-0 pb-1",title:g.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:["Visits list",g.jsx(Ha,{checked:p,onChange:b,children:"Show user agent"})]}),children:g.jsx("div",{className:"table-responsive-md",children:g.jsxs("table",{className:ze("table table-sm position-relative m-0 visits-table",{"table-hover":A}),children:[g.jsxs("thead",{className:"visits-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:`${qo} text-center`,onClick:()=>r(t.length<x.total?x.visitsGroups.flat():[]),children:[g.jsx("span",{className:"sr-only",children:"Is selected"}),g.jsx(Ge,{icon:Zh,className:ze({"text-primary":t.length>0})})]}),g.jsxs("th",{className:`${qo} text-center`,onClick:()=>j("potentialBot"),children:[g.jsx("span",{className:"sr-only",children:"Is bot"}),g.jsx(Ge,{icon:T3}),N("potentialBot")]}),g.jsxs("th",{className:qo,onClick:()=>j("date"),children:["Date",N("date")]}),g.jsxs("th",{className:qo,onClick:()=>j("country"),children:["Country",N("country")]}),g.jsxs("th",{className:qo,onClick:()=>j("city"),children:["City",N("city")]}),p?g.jsxs("th",{className:qo,onClick:()=>j("userAgent"),children:["User agent",N("userAgent")]}):g.jsxs(g.Fragment,{children:[g.jsxs("th",{className:qo,onClick:()=>j("browser"),children:["Browser",N("browser")]}),g.jsxs("th",{className:qo,onClick:()=>j("os"),children:["OS",N("os")]})]}),g.jsxs("th",{className:qo,onClick:()=>j("referer"),children:["Referrer",N("referer")]}),E&&g.jsxs("th",{className:qo,onClick:()=>j("visitedUrl"),children:["Visited URL",N("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"p-0",children:g.jsx(im,{noBorder:!0,large:!1,onChange:c})})})]}),g.jsxs("tbody",{children:[!A&&g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"text-center",children:"There are no visits matching current filter"})}),(i=x.visitsGroups[_-1])==null?void 0:i.map((F,V)=>{const B=t.includes(F);return g.jsxs("tr",{style:{cursor:"pointer"},className:ze({"table-active":B}),onClick:()=>r(B?t.filter(W=>W!==F):[...t,F]),children:[g.jsx("td",{className:"text-center",children:B&&g.jsx(Ge,{icon:Zh,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:F.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:T3,id:`botIcon${V}`}),g.jsx(wi,{placement:"right",target:`botIcon${V}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(g0,{date:F.date})}),g.jsx("td",{children:F.country}),g.jsx("td",{children:F.city}),p?g.jsx("td",{children:F.userAgent}):g.jsxs(g.Fragment,{children:[g.jsx("td",{children:F.browser}),g.jsx("td",{children:F.os})]}),g.jsx("td",{children:F.referer}),F.visitedUrl&&g.jsx("td",{children:F.visitedUrl})]},V)})]}),x.total>jh&&g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"visits-table__footer-cell visits-table__sticky",children:g.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-center gap-3 p-2",children:[g.jsx(hA,{pagesCount:Math.ceil(x.total/jh),currentPage:_,setCurrentPage:w,centered:o}),g.jsxs("div",{children:["Visits ",g.jsx("b",{children:Sr(S+1)})," to"," ",g.jsx("b",{children:Sr(Math.min(O,x.total))})," of"," ",g.jsx("b",{children:Sr(x.total)})]})]})})})})]})})})},Ws={byTime:{title:"By time",subPath:"by-time",icon:kK},byContext:{title:"By context",subPath:"by-context",icon:ZE},byLocation:{title:"By location",subPath:"by-location",icon:rS},list:{title:"List",subPath:"list",icon:KE},options:{title:"Options",subPath:"options",icon:s$,shouldRender:({deletion:e})=>!!e}};Object.freeze(Ws);const YO=({display:e})=>e&&g.jsx("div",{className:"mt-3 mx-auto w-75",children:g.jsx(Wt,{children:g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(Ge,{icon:TY,className:"mt-1"}),g.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let hg;const xm=e=>{const{children:t,visitsInfo:r,getVisits:n,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:c,prevVisits:u,loading:h,errorData:p,fallbackInterval:v}=r,[{dateRange:b,visitsFilter:x,loadPrevInterval:_},w]=IV(),O=Rn("visits"),[S,E]=I.useState(),T=I.useCallback(({startDate:$,endDate:Y},ue)=>{w({dateRange:{startDate:$??void 0,endDate:Y??void 0}}),E(ue)},[w]),[A,j]=I.useState(v??(O==null?void 0:O.defaultInterval)??"last30Days"),[N,F]=I.useState([]),[V,B]=I.useState(),W=I.useRef(!0),{search:q}=gn(),J=I.useCallback($=>$?`../${$}${q}`:q,[q]),Q=I.useMemo(()=>x0(c),[c]),ne=I.useMemo(()=>u&&x0(u),[u]),{os:ae,browsers:se,referrers:oe,countries:K,cities:G,citiesForMap:z,visitedUrls:re}=I.useMemo(()=>AE(Q),[Q]),X=I.useMemo(()=>AE(ne??[]),[ne]),le=I.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Q,{type:"main"})],ne&&["Previous period",Object.assign(ne,{type:"previous"})],N.length>0&&[V??"Selected",Object.assign(N,{type:"highlighted"})]].filter(Boolean)),[V,N,ne,Q]),ce=I.useMemo(()=>({...x,excludeBots:x.excludeBots??(O==null?void 0:O.excludeBots),loadPrevInterval:_??(O==null?void 0:O.loadPrevInterval)}),[_,x,O==null?void 0:O.excludeBots,O==null?void 0:O.loadPrevInterval]),de=I.useMemo(()=>Object.values(z),[z]),be=I.useCallback($=>{hg=void 0,F($)},[]),M=I.useCallback(($,Y)=>{const ue=`${$}_${Y}`;hg===ue?(F([]),B(void 0),hg=void 0):(F(Q.filter(ie=>ie[$]===Y)),B(Y),hg=ue)},[Q]);return I.useEffect(()=>i,[i]),I.useEffect(()=>{const $=b??oV(A),{loadPrevInterval:Y,...ue}=ce,ie={doIntervalFallback:W.current,loadPrevInterval:Y};n({dateRange:$,filter:ue},ie),be([]),W.current=!1},[A,b,n,ce,be]),I.useEffect(()=>{v&&A===((O==null?void 0:O.defaultInterval)??"last30Days")&&j(v)},[A,v,O==null?void 0:O.defaultInterval]),g.jsxs(g.Fragment,{children:[t,g.jsx("section",{className:"mt-3",children:g.jsxs("div",{className:"row flex-md-row-reverse",children:[g.jsx("div",{className:"col-lg-7 col-xl-6",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(cA,{disabled:h,dateRangeOrInterval:S??b??A,defaultText:"All visits",onDatesChange:T})}),g.jsx($V,{disabled:h,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ce,onChange:({loadPrevInterval:$,...Y})=>w({visitsFilter:Y,loadPrevInterval:$})})]})}),c.length>0&&g.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:g.jsxs("div",{className:"d-flex",children:[g.jsx(Uz,{className:"btn-md-block",amount:Q.length,onClick:()=>a(Q)}),g.jsxs(_t,{outline:!0,disabled:N.length===0,className:"btn-md-block ms-2",onClick:()=>be([]),children:["Clear selection ",N.length>0&&g.jsxs(g.Fragment,{children:["(",Sr(N.length),")"]})]})]})})]})}),g.jsxs("section",{className:"mt-3",children:[g.jsx(FV,{info:r}),!h&&!p&&g.jsxs(g.Fragment,{children:[g.jsx(IF,{fill:!0,children:Object.values(Ws).map(({title:$,icon:Y,subPath:ue,shouldRender:ie},he)=>!ie||ie(e)?g.jsxs(Ih,{to:J(ue),replace:!0,children:[g.jsx(Ge,{icon:Y}),g.jsx("span",{className:"ms-2 d-none d-lg-inline",children:$})]},he):void 0).filter(Boolean)}),g.jsx(Yo,{children:g.jsxs(C0,{children:[g.jsx(Pt,{path:Ws.byTime.subPath,element:g.jsxs(Eg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:g.jsx(RV,{visitsGroups:le,setSelectedVisits:be,onDateRangeChange:T})}),g.jsx(YO,{display:!!ce.loadPrevInterval&&!u})]})}),g.jsx(Pt,{path:Ws.byContext.subPath,element:g.jsxs(Eg,{showFallback:c.length===0,children:[g.jsx("div",{className:ze("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(n8,{title:"Operating systems",stats:ae,prevStats:X.os})}),g.jsx("div",{className:ze("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(n8,{title:"Browsers",stats:se,prevStats:X.browsers})}),g.jsx("div",{className:ze("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:g.jsx(cg,{title:"Referrers",withPagination:!1,stats:oe,prevStats:X.referrers,highlightedStats:fg(N,"referer"),highlightedLabel:V,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:$=>M("referer",$)})}),s&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(cg,{title:"Visited URLs",stats:re,prevStats:X.visitedUrls,highlightedStats:fg(N,"visitedUrl"),highlightedLabel:V,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:$=>M("visitedUrl",$)})}),g.jsx("div",{className:"col-12",children:g.jsx(YO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Pt,{path:Ws.byLocation.subPath,element:g.jsxs(Eg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(cg,{title:"Countries",stats:K,prevStats:X.countries,highlightedStats:fg(N,"country"),highlightedLabel:V,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:$=>M("country",$)})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(cg,{title:"Cities",stats:G,prevStats:X.cities,highlightedStats:fg(N,"city"),highlightedLabel:V,extraHeaderContent:$=>de.length>0&&g.jsx(ETe,{modalTitle:"Cities",locations:de,activeCities:$}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:$=>M("city",$)})}),g.jsx("div",{className:"col-12",children:g.jsx(YO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Pt,{path:Ws.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(WTe,{visits:Q,selectedVisits:N,setSelectedVisits:be})})}),o&&g.jsx(Pt,{path:Ws.options.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(TTe,{...o})})}),g.jsx(Pt,{path:"*",element:g.jsx($E,{replace:!0,to:J(Ws.byTime.subPath)})})]})})]})]})]})},zV=Ao(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:r})=>{const{ReportExporter:n}=cr(zV),{domain:i=""}=Gf(),[o,a=o]=i.split("_"),s=I.useCallback((u,h)=>e({domain:a,options:h,params:u}),[a,e]),c=I.useCallback(u=>n.exportVisits(`domain_${o}_visits.csv`,u),[o,n]);return g.jsx(xm,{getVisits:s,cancelGetVisits:r,visitsInfo:t,exportCsv:c,children:g.jsx(_m,{visits:t.visits,title:`"${o}" visits`})})},()=>[kn.visits]),qTe=fr(zV,["ReportExporter"]),VV=Ao(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:r})=>{const{ReportExporter:n}=cr(VV),i=I.useCallback(a=>n.exportVisits("non_orphan_visits.csv",a),[n]),o=I.useCallback((a,s)=>e({options:s,params:a}),[e]);return g.jsx(xm,{getVisits:o,cancelGetVisits:r,visitsInfo:t,exportCsv:i,children:g.jsx(_m,{title:"Non-orphan visits",visits:t.visits})})},()=>[kn.visits]),HTe=fr(VV,["ReportExporter"]),WV=Ao(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:r,deleteOrphanVisits:n,orphanVisitsDeletion:i})=>{const o=bi("orphanVisitsDeletion"),{ReportExporter:a}=cr(WV),s=I.useCallback(h=>a.exportVisits("orphan_visits.csv",h),[a]),c=I.useCallback((h,p)=>{var v;return e({options:p,params:h,orphanVisitsType:(v=h.filter)==null?void 0:v.orphanVisitsType})},[e]),u=I.useMemo(()=>o?{deleteVisits:n,visitsDeletion:i}:void 0,[n,i,o]);return g.jsx(xm,{getVisits:c,cancelGetVisits:r,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:g.jsx(_m,{title:"Orphan visits",visits:t.visits})})},()=>[kn.orphanVisits]),GTe=fr(WV,["ReportExporter"]),u8=5e3,KTe=2,YTe=4,ZTe=({currentPage:e,pagesCount:t})=>e>=t,XTe=(e,t)=>t*100/e,qV=({visitsLoader:e,shouldCancel:t,progressChanged:r,batchSize:n})=>{const i=async(a,s)=>Promise.all(s.map(async c=>e({...a,page:c,itemsPerPage:u8}).then(({data:u})=>u))).then(c=>c.flat()),o=async(a,s,c=0)=>{if(t())return[];const u=await i(a,s[c]);return r(XTe(s.length,c+1)),c<s.length-1?u.concat(await o(a,s,c+1)):u};return async a=>{const{pagination:s,data:c}=await e({...a,page:1,itemsPerPage:u8});if(ZTe(s))return c;const u=LT(KTe,s.pagesCount+1),h=Jc(u,n);return s.pagesCount-1>n&&r(0),c.concat(await o(a,h))}},wm=(e,t)=>async r=>e?t({page:1,itemsPerPage:1,excludeBots:r}).then(({data:n})=>n[0]):Promise.resolve(void 0),Om=({typePrefix:e,createLoaders:t,shouldCancel:r})=>{const n=jn(`${e}/progressChanged`),i=jn(`${e}/fallbackToInterval`),o=Vr(e,async(a,{getState:s,dispatch:c})=>{var u;const{params:h,options:p}=a,{visitsLoader:v,lastVisitLoader:b}=t(a),x=pEe(h.dateRange),_=jE(h),w=p.loadPrevInterval&&OTe(h)?jE(STe(h)):void 0,O=YTe/(w?2:1),S=w?{main:0,prev:0}:{main:0},E=(F,V)=>{S[F]=V;const B=Object.values(S),W=B.reduce((q,J)=>q+J,0);c(n(W/B.length))},T=qV({visitsLoader:v,shouldCancel:()=>r(s),progressChanged:F=>E("main",F),batchSize:O}),[A,j,N]=await Promise.all([T(_),b((u=h.filter)==null?void 0:u.excludeBots),w?T(w).then(F=>F.map(V=>{if(x===void 0)return V;const{date:B,...W}=V,q=FT(pi(B),x);return{...W,date:cl(q)}})):Promise.resolve(void 0)]);return!A.length&&j&&c(i(dEe(j.date))),{...a,visits:A,prevVisits:N}});return Object.assign(o,{progressChanged:n,fallbackToInterval:i})},Sm=({name:e,asyncThunkCreator:t,initialState:r,filterCreatedVisits:n,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:c,fallbackToInterval:u}=t,{reducer:h,actions:p}=Tr({name:e,initialState:r,reducers:{cancelGetVisits:b=>({...b,cancelLoad:!0})},extraReducers:b=>{b.addCase(o,()=>({...r,loading:!0})),b.addCase(a,(x,{error:_})=>({...r,errorData:Oi(_)??null})),b.addCase(s,(x,{payload:_})=>({...x,..._,loading:!1,progress:null,errorData:null})),b.addCase(c,(x,{payload:_})=>({...x,progress:_})),b.addCase(u,(x,{payload:_})=>({...x,fallbackInterval:_})),b.addCase(cd,(x,{payload:_})=>{const{visits:w}=x,O=n(x,_.createdVisits).map(({visit:S})=>S);return O.length?{...x,visits:[...O,...w]}:x}),i==null||i(b)}}),{cancelGetVisits:v}=p;return{reducer:h,cancelGetVisits:v}},HV="shlink/domainVisits",QTe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},JTe=e=>Om({typePrefix:`${HV}/getDomainVisits`,createLoaders:({domain:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=s=>n.getDomainVisits(t,s),a=wm(i,s=>n.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),eje=e=>Sm({name:HV,initialState:QTe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:r},n)=>MV(n,t,r==null?void 0:r.dateRange)}),GV="shlink/orphanVisits",tje={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},rje=e=>Om({typePrefix:`${GV}/getNonOrphanVisits`,createLoaders:({options:t})=>{const r=e(),{doIntervalFallback:n=!1}=t,i=async a=>r.getNonOrphanVisits(a),o=wm(n,a=>r.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),nje=e=>Sm({name:GV,initialState:tje,asyncThunkCreator:e,filterCreatedVisits:({params:t},r)=>{const{startDate:n,endDate:i}=(t==null?void 0:t.dateRange)??{};return r.filter(({visit:o})=>bm(o.date,n,i))}}),KV="shlink/orphanVisits",ije={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},oje=(e,t)=>!t||t===e.type,aje=({data:e,...t},r)=>{const n=e.filter(i=>mA(i)&&oje(i,r));return{...t,data:n}},sje=e=>Om({typePrefix:`${KV}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=async s=>n.getOrphanVisits({...s,type:t}).then(c=>aje(c,t)),a=wm(i,s=>n.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),lje=(e,t)=>Sm({name:KV,initialState:ije,asyncThunkCreator:e,extraReducers:r=>{r.addCase(t.fulfilled,n=>({...n,visits:[]}))},filterCreatedVisits:({params:r},n)=>{const{startDate:i,endDate:o}=(r==null?void 0:r.dateRange)??{};return n.filter(({visit:a,shortUrl:s})=>!s&&bm(a.date,i,o))}}),YV="shlink/orphanVisitsDeletion",c8={deletedVisits:0,deleting:!1,error:!1},uje=e=>Vr(`${YV}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),cje=e=>Tr({name:YV,initialState:c8,reducers:{},extraReducers:t=>{t.addCase(e.pending,r=>({...r,deleting:!0,error:!1})),t.addCase(e.rejected,(r,{error:n})=>({...r,deleting:!1,error:!0,errorData:Oi(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>{const{deletedVisits:i}=n;return{...c8,deletedVisits:i}})}}),ZV="shlink/shortUrlVisits",fje={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},dje=e=>Om({typePrefix:`${ZV}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:r,options:n})=>{const i=e(),{doIntervalFallback:o=!1}=n,a=c=>i.getShortUrlVisits(t,{...c,domain:r}),s=wm(o,c=>i.getShortUrlVisits(t,{...c,domain:r}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),hje=(e,t)=>Sm({name:ZV,initialState:fje,asyncThunkCreator:e,extraReducers:r=>{r.addCase(t.fulfilled,(n,{payload:i})=>n.shortCode===i.shortCode&&n.domain===i.domain?{...n,visits:[]}:n)},filterCreatedVisits:({shortCode:r,domain:n,params:i},o)=>NV(o,{shortCode:r,domain:n},i==null?void 0:i.dateRange)}),XV="shlink/shortUrlVisitsDeletion",f8={shortCode:"",deletedVisits:0,deleting:!1,error:!1},pje=e=>Vr(`${XV}/deleteShortUrlVisits`,async({shortCode:t,domain:r})=>({...await e().deleteShortUrlVisits(t,r),shortCode:t,domain:r})),mje=e=>Tr({name:XV,initialState:f8,reducers:{},extraReducers:t=>{t.addCase(e.pending,r=>({...r,deleting:!0,error:!1})),t.addCase(e.rejected,(r,{error:n})=>({...r,deleting:!1,error:!0,errorData:Oi(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>{const{shortCode:i,domain:o,deletedVisits:a}=n;return{...f8,shortCode:i,domain:o,deletedVisits:a}})}}),QV="shlink/tagVisits",vje={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},gje=e=>Om({typePrefix:`${QV}/getTagVisits`,createLoaders:({tag:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=s=>n.getTagVisits(t,s),a=wm(i,async s=>n.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),yje=e=>Sm({name:QV,initialState:vje,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:r},n)=>LV(n,t,r==null?void 0:r.dateRange)}),JV="shlink/visitsOverview",pg={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},d8=e=>e.filter(({visit:t})=>t.potentialBot).length,bje=e=>Vr(`${JV}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:r=0,orphanVisits:n,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??r,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(n==null?void 0:n.total)??i,nonBots:n==null?void 0:n.nonBots,bots:n==null?void 0:n.bots}}))),_je=e=>Tr({name:JV,initialState:pg,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...pg,loading:!0})),t.addCase(e.rejected,()=>({...pg,error:!0})),t.addCase(e.fulfilled,(r,{payload:n})=>({...pg,...n})),t.addCase(cd,({nonOrphanVisits:r,orphanVisits:n,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=xTe(o.createdVisits),c=a.length,u=d8(a),h=c-u,p=s.length,v=d8(s),b=p-v;return{...i,nonOrphanVisits:{total:r.total+c,bots:r.bots&&r.bots+u,nonBots:r.nonBots&&r.nonBots+h},orphanVisits:{total:n.total+p,bots:n.bots&&n.bots+v,nonBots:n.nonBots&&n.nonBots+b}}})}}),xje=({shortUrl:e,loading:t,shortUrlVisits:r})=>{const{visits:n}=r,i=(e==null?void 0:e.shortUrl)??"",o=(e==null?void 0:e.longUrl)??"",a=e==null?void 0:e.title;return g.jsxs(_m,{title:g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Gn,{href:i})]}),visits:n,shortUrl:e,children:[g.jsx("hr",{}),g.jsxs("div",{children:["Created: ",e?g.jsxs("span",{children:[g.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:g.jsx(g0,{date:e.dateCreated,relative:!0})}),g.jsx(wi,{placement:"bottom",target:"created",children:g.jsx(g0,{date:e.dateCreated})})]}):g.jsx("small",{children:"Loading..."})]}),g.jsxs("div",{className:"long-url-container",children:[`${a?"Title":"Long URL"}: `,t&&g.jsx("small",{children:"Loading..."}),!t&&g.jsx(Gn,{href:o,children:a??o})]})]})},eW=Ao(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:r,getShortUrlVisits:n,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=bi("shortUrlVisitsDeletion"),{ReportExporter:c}=cr(eW),u=aA(),h=I.useMemo(()=>{var x;return(x=r.shortUrls)==null?void 0:x.get(u)},[u,r.shortUrls]),p=I.useCallback((x,_)=>n({...u,options:_,params:x}),[n,u]),v=I.useCallback(x=>c.exportVisits(`short-url_${h==null?void 0:h.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,x),[c,h==null?void 0:h.shortUrl]),b=I.useMemo(()=>s?{deleteVisits:()=>o(u),visitsDeletion:t}:void 0,[o,u,t,s]);return I.useEffect(()=>{i([u])},[u,i]),g.jsx(xm,{getVisits:p,cancelGetVisits:a,visitsInfo:e,exportCsv:v,deletion:b,children:g.jsx(xje,{shortUrl:h,loading:r.loading,shortUrlVisits:e})})},e=>e.shortCode?[kn.shortUrlVisits(nA(e.shortCode))]:[]),wje=fr(eW,["ReportExporter"]),Oje=({tagVisits:e,colorGenerator:t})=>{const{visits:r,tag:n}=e;return g.jsx(_m,{title:g.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[g.jsx("span",{className:"me-2",children:"Visits for"}),g.jsx(Mb,{text:n,colorGenerator:t})]}),visits:r})},tW=Ao(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:r})=>{const{ColorGenerator:n,ReportExporter:i}=cr(tW),{tag:o=""}=Gf(),a=I.useCallback((c,u)=>e({tag:o,params:c,options:u}),[e,o]),s=I.useCallback(c=>i.exportVisits(`tag_${o}_visits.csv`,c),[i,o]);return g.jsx(xm,{getVisits:a,cancelGetVisits:r,visitsInfo:t,exportCsv:s,children:g.jsx(Oje,{tagVisits:t,colorGenerator:n})})},()=>[kn.visits]),Sje=fr(tW,["ColorGenerator","ReportExporter"]),vA=({title:e,colors:t,getVisitsForComparison:r,visitsComparisonInfo:n,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=n,s=Rn("visits"),c=I.useMemo(()=>Object.keys(a).reduce((S,E,T)=>(S[E]=Object.assign(x0(a[E]),{color:(t==null?void 0:t[E])??AV(T)}),S),{}),[t,a]),u=I.useMemo(()=>Object.values(a).every(S=>S.length===0),[a]),[{dateRange:h,visitsFilter:p},v]=IV(),[b,x]=I.useState(),_=I.useCallback(({startDate:S,endDate:E},T)=>{v({dateRange:{startDate:S??void 0,endDate:E??void 0}}),x(T)},[v]),w=I.useRef(h??(s==null?void 0:s.defaultInterval)??"last30Days"),O=I.useMemo(()=>({...p,excludeBots:p.excludeBots??(s==null?void 0:s.excludeBots)}),[p,s==null?void 0:s.excludeBots]);return I.useEffect(()=>{const S=h??oV(w.current);return r({params:{dateRange:S,filter:O}}),i},[i,h,r,O]),g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mb-3",children:g.jsxs(Wt,{bodyClassName:"d-flex",children:[g.jsx(Nb,{}),g.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),g.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(cA,{disabled:o,defaultText:"All visits",dateRangeOrInterval:b??h??w.current,onDatesChange:_})}),g.jsx($V,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:O,onChange:({orphanVisitsType:S,excludeBots:E})=>v({visitsFilter:{orphanVisitsType:S,excludeBots:E}})})]})}),g.jsx(FV,{info:n}),!o&&g.jsx(Eg,{showFallback:u,children:g.jsx(RV,{visitsGroups:c,onDateRangeChange:_})})]})},Pje=Ao(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:r})=>{const n=tA("domains"),i=I.useCallback(o=>e({...o,domains:n}),[n,e]);return g.jsx(vA,{title:`Comparing "${n.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:r})},()=>[kn.visits]),Cje=({visitsLoaders:e,shouldCancel:t,progressChanged:r})=>{const n=Object.keys(e),i=Math.max(1,Math.round(4/n.length)),o=Object.fromEntries(n.map(c=>[c,0])),a=(c,u)=>{o[c]=u;const h=Object.values(o),p=h.reduce((v,b)=>v+b,0);r(p/h.length)},s=Object.entries(e).map(([c,u])=>[c,qV({visitsLoader:u,batchSize:i,shouldCancel:t,progressChanged:h=>a(c,h)})]);return async c=>{const u=await Promise.all(s.map(async([h,p])=>{const v=await p(c);return[h,v]}));return Object.fromEntries(u)}},gA=({typePrefix:e,createLoaders:t,shouldCancel:r})=>{const n=jn(`${e}/progressChanged`),i=Vr(e,async(o,{getState:a,dispatch:s})=>{const c=t(o),u=await Cje({visitsLoaders:c,shouldCancel:()=>r(a),progressChanged:h=>s(n(h))})(jE(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:n})},yA=({name:e,asyncThunkCreator:t,initialState:r,filterCreatedVisitsForGroup:n})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:c,actions:u}=Tr({name:e,initialState:r,reducers:{cancelGetVisits:p=>({...p,cancelLoad:!0})},extraReducers:p=>{p.addCase(i,()=>({...r,loading:!0})),p.addCase(o,(v,{error:b})=>({...r,errorData:Oi(b)??null})),p.addCase(a,(v,{payload:b})=>({...v,...b,loading:!1,progress:null,errorData:null})),p.addCase(s,(v,{payload:b})=>({...v,progress:b})),p.addCase(cd,(v,{payload:b})=>{const{visitsGroups:x,..._}=v,w=Object.keys(x).map(S=>{const E=n({..._,groupKey:S},b.createdVisits).map(({visit:T})=>T);return[S,[...E,...x[S]]]}),O=Object.fromEntries(w);return{..._,visitsGroups:O}})}}),{cancelGetVisits:h}=u;return{reducer:c,cancelGetVisits:h}},rW="shlink/domainVisitsComparison",Eje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Tje=e=>gA({typePrefix:`${rW}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const r=e(),n=t.map(i=>[i,o=>r.getDomainVisits(i,o)]);return Object.fromEntries(n)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),jje=e=>yA({name:rW,initialState:Eje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>MV(n,t,r==null?void 0:r.dateRange)}),nW="shlink/shortUrlVisitsComparison",Aje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},kje=e=>gA({typePrefix:`${nW}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const r=e(),n=t.map(i=>[iA(i),o=>r.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(n)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),Rje=e=>yA({name:nW,initialState:Aje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>NV(n,pz(t),r==null?void 0:r.dateRange)}),iW="shlink/tagVisitsComparison",Nje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Mje=e=>gA({typePrefix:`${iW}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const r=e(),n=t.map(i=>[i,o=>r.getTagVisits(i,o)]);return Object.fromEntries(n)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),Lje=e=>yA({name:iW,initialState:Nje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>LV(n,t,r==null?void 0:r.dateRange)}),Ije=Ao(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:r,shortUrlsDetails:n,getShortUrlsDetails:i})=>{const o=tA("short-urls"),a=I.useMemo(()=>o.map(pz),[o]),s=I.useCallback(h=>e({...h,shortUrls:a}),[e,a]),c=I.useMemo(()=>{var h;return[...((h=n.shortUrls)==null?void 0:h.values())??[]]},[n.shortUrls]),u=I.useMemo(()=>{const{visitsGroups:h,loading:p,...v}=t,b=c.reduce((x,_)=>(x[_.shortUrl]=h[iA(_)]??[],x),{});return{...v,visitsGroups:b,loading:p||n.loading}},[t,n.loading,c]);return I.useEffect(()=>{a.length>0&&i(a)},[i,a]),g.jsx(vA,{title:g.jsx("span",{"data-testid":"title",children:n.loading?"Loading...":`Comparing ${c.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:r})},()=>[kn.visits]),oW=Ao(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:r})=>{const{ColorGenerator:n}=cr(oW),i=tA("tags"),o=I.useCallback(c=>e({...c,tags:i}),[e,i]),{visitsGroups:a}=t,s=I.useMemo(()=>Object.keys(a).reduce((c,u)=>(c[u]=n.getColorForKey(u),c),{}),[n,a]);return g.jsx(vA,{title:g.jsxs(g.Fragment,{children:["Comparing ",i.map(c=>g.jsx(Mb,{colorGenerator:n,text:c},c))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:r,colors:s})},()=>[kn.visits]),Dje=fr(oW,["ColorGenerator"]),$je=(e,t)=>{const r=(n,i)=>t([...n,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>DV),e.factory("ShortUrlVisits",wje),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",Sje),e.decorator("TagVisits",r(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",Dje),e.decorator("TagVisitsComparison",r(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>Pje),e.decorator("DomainVisitsComparison",r(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>Ije),e.decorator("ShortUrlVisitsComparison",r(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",qTe),e.decorator("DomainVisits",r(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",GTe),e.decorator("OrphanVisits",r(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",HTe),e.decorator("NonOrphanVisits",r(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>FTe),e.serviceFactory("getShortUrlVisits",dje,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",n=>n.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",kje,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",n=>n.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",pje,"apiClientFactory"),e.serviceFactory("getTagVisits",gje,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",n=>n.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",Mje,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",n=>n.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",JTe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",n=>n.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",Tje,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",n=>n.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",sje,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",n=>n.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",uje,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",rje,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",n=>n.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>cd),e.serviceFactory("loadVisitsOverview",bje,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",_je,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",n=>n.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",eje,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",n=>n.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",nje,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",n=>n.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",lje,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",n=>n.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",cje,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",n=>n.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",hje,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",n=>n.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",mje,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",n=>n.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",yje,"getTagVisits"),e.serviceFactory("tagVisitsReducer",n=>n.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",Lje,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",n=>n.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",jje,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",n=>n.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",Rje,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",n=>n.reducer,"shortUrlVisitsComparisonReducerCreator")},bh=({children:e,to:t,className:r,...n})=>g.jsx(UE,{className:({isActive:i})=>ze("aside-menu__item",r,{"aside-menu__item--selected":i}),to:t,...n,children:e}),Fje=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:r}=gn(),n=ze("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return g.jsx("aside",{className:n,children:g.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[g.jsxs(bh,{to:i("/overview"),children:[g.jsx(Ge,{fixedWidth:!0,icon:sY}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(bh,{to:i("/list-short-urls/1"),className:ze({"aside-menu__item--selected":r.match("/list-short-urls")!==null}),children:[g.jsx(Ge,{fixedWidth:!0,icon:KE}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(bh,{to:i("/create-short-url"),children:[g.jsx(Ge,{fixedWidth:!0,icon:hY,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(bh,{to:i("/manage-tags"),children:[g.jsx(Ge,{fixedWidth:!0,icon:i$}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(bh,{to:i("/manage-domains"),children:[g.jsx(Ge,{fixedWidth:!0,icon:BK}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},aW=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:r,CreateShortUrl:n,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:c,Overview:u,EditShortUrl:h,ManageDomains:p,TagVisitsComparison:v,DomainVisitsComparison:b,ShortUrlVisitsComparison:x,ShortUrlRedirectRules:_}=cr(aW),w=gn(),O=_l(),[S,E,T,A]=ur();I.useEffect(()=>A(),[w,A]);const j=ze("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":S}),N=USe(T,A),F=bi("shortUrlRedirectRules");return g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:LK,className:j,onClick:E}),g.jsx("div",{...N,className:"shlink-layout__swipeable",children:g.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[g.jsx(Fje,{routePrefix:O,showOnMobile:S}),g.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>A(),children:g.jsx("div",{className:"container-xl",children:g.jsxs(C0,{children:[g.jsx(Pt,{index:!0,element:g.jsx($E,{replace:!0,to:"overview"})}),g.jsx(Pt,{path:"/overview",element:g.jsx(u,{})}),g.jsx(Pt,{path:"/list-short-urls/:page",element:g.jsx(r,{})}),g.jsx(Pt,{path:"/create-short-url",element:g.jsx(n,{})}),g.jsx(Pt,{path:"/short-code/:shortCode/visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(i,{})},V))}),g.jsx(Pt,{path:"/short-code/:shortCode/edit",element:g.jsx(h,{})}),F&&g.jsx(Pt,{path:"/short-code/:shortCode/redirect-rules",element:g.jsx(_,{})}),g.jsx(Pt,{path:"/short-urls/compare-visits",element:g.jsx(x,{})}),g.jsx(Pt,{path:"/tag/:tag/visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(o,{})},V))}),g.jsx(Pt,{path:"/tags/compare-visits",element:g.jsx(v,{})}),g.jsx(Pt,{path:"/domain/:domain/visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(a,{})},V))}),g.jsx(Pt,{path:"/orphan-visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(s,{})},V))}),g.jsx(Pt,{path:"/non-orphan-visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(c,{})},V))}),g.jsx(Pt,{path:"/manage-tags",element:g.jsx(t,{})}),g.jsx(Pt,{path:"/manage-domains",element:g.jsx(p,{})}),g.jsx(Pt,{path:"/domains/compare-visits",element:g.jsx(b,{})}),e&&g.jsx(Pt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},Bje=fr(aW,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),Uje=!0,zje=e=>ZF({devTools:!Uje,reducer:kT({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlsDetails:e.shortUrlsDetailsReducer,shortUrlVisits:e.shortUrlVisitsReducer,shortUrlVisitsDeletion:e.shortUrlVisitsDeletionReducer,shortUrlVisitsComparison:e.shortUrlVisitsComparisonReducer,tagVisits:e.tagVisitsReducer,tagVisitsComparison:e.tagVisitsComparisonReducer,domainVisits:e.domainVisitsReducer,domainVisitsComparison:e.domainVisitsComparisonReducer,orphanVisits:e.orphanVisitsReducer,orphanVisitsDeletion:e.orphanVisitsDeletionReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,shortUrlRedirectRules:e.shortUrlRedirectRulesReducer,shortUrlRedirectRulesSaving:e.setShortUrlRedirectRulesReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),Vje=e=>{e.factory("Main",Bje),e.factory("store",zje)},ko=new e$,{container:Wje}=ko,qje=e=>t=>Object.fromEntries(e.map(r=>[r,t[r]])),Hje=(e,t)=>(...r)=>e[t](...r),Gje=(e,t)=>({...e,[t]:Hje(Wje,t)}),fd=(e,t=[])=>T8(e?qje(e):null,t.reduce(Gje,{}));Vje(ko);PEe(ko,fd);KEe(ko,fd);$je(ko,fd);tPe(ko);QSe(ko,fd);pPe(ko,fd);tTe(ko);CCe(ko,fd);let h8;const Kje=e=>({serverVersion:t,apiClient:r,settings:n,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=DSe(t),c=I.useRef(),[u,h]=I.useState(),p=Nu(),v=I.useMemo(()=>p?I.Fragment:U8,[p]);return I.useEffect(()=>{h8=r,e.value("apiClientFactory",()=>h8),a&&e.value("TagColorsStorage",a);const{container:b}=e,{Main:x,store:_,loadMercureInfo:w,listTags:O,listDomains:S}=b;c.current=g.jsx(x,{createNotFound:o}),h(_),_.dispatch(w(n)),_.dispatch(O()),_.dispatch(S())},[r,o,n,a]),u?g.jsx(j8,{store:u,children:g.jsx(a7,{value:n??{},children:g.jsx(ISe,{value:s,children:g.jsx(NSe,{value:i,children:g.jsx(v,{children:c.current})})})})}):g.jsx(g.Fragment,{})},Yje="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=",Zje="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==",Xje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Qje=()=>{delete T5.Icon.Default.prototype._getIconUrl,T5.Icon.Default.mergeOptions({iconRetinaUrl:Zje,iconUrl:Yje,shadowUrl:Xje})};Qje();const Jje=Kje(ko);function w0(e){return t=>{const{resetSelectedServer:r}=t;return I.useEffect(()=>{r()},[r]),g.jsx(e,{...t})}}let eAe=class extends I.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:r=globalThis.console}=this.props;r.error(t)}render(){const{hasError:t}=this.state,{location:r=globalThis.location}=this.props;if(t)return g.jsx("div",{className:"home",children:g.jsxs(Wt,{className:"p-4",children:[g.jsx("h1",{children:"Oops! This is awkward :S"}),g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(_t,{outline:!0,color:"primary",onClick:()=>r.reload(),children:"Take me back"})]})});const{children:n}=this.props;return n}};const tAe=({id:e,name:t})=>g.jsxs(jF,{tag:Ht,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(Ge,{icon:yY,className:"servers-list__server-item-icon"})]}),sW=({servers:e,children:t,embedded:r=!1})=>g.jsxs(g.Fragment,{children:[t&&g.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&g.jsx(EF,{"data-testid":"list",tag:"div",className:ze("servers-list__list-group",{"servers-list__list-group--embedded":r}),children:e.map(({id:n,name:i})=>g.jsx(tAe,{id:n,name:i},n))})]}),lW=({color:e=op,className:t})=>g.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:g.jsxs("g",{fill:e,children:[g.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"}),g.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"}),g.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"}),g.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"})]})}),rAe=({servers:e})=>{const t=sa(),r=Object.values(e),n=r.length>0;return I.useEffect(()=>{const i=r.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[r,t]),g.jsx("div",{className:"w-100",children:g.jsx(xi,{className:"mx-auto",style:{maxWidth:"720px"},children:g.jsxs("div",{className:"d-flex flex-column flex-md-row",children:[g.jsx("div",{className:"p-4 d-none d-md-flex align-items-center",style:{width:"40%"},children:g.jsx("div",{className:"w-100",children:g.jsx(lW,{})})}),g.jsxs("div",{className:"home__servers-container flex-grow-1",children:[g.jsx("h1",{className:ze("home__title p-4 text-center m-0",{"border-bottom":!n}),style:{borderColor:"var(--border-color) !important"},children:"Welcome!"}),g.jsx(sW,{embedded:!0,servers:r,children:!n&&g.jsxs("div",{className:"p-4 text-center d-flex flex-column gap-5",children:[g.jsx("p",{className:"mb-0",children:"This application will help you manage your Shlink servers."}),g.jsx("p",{className:"mb-0",children:g.jsxs(Ht,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(Ge,{icon:Yp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0",children:g.jsx(Gn,{href:"https://shlink.io/documentation",children:g.jsxs("small",{children:[g.jsx("span",{className:"me-2",children:"Learn more about Shlink"}),g.jsx(Ge,{icon:QK})]})})})]})})]})]})})})},uW=()=>{const{ServersDropdown:e}=Eo(uW),[t,r,,n]=ur(),i=gn(),{pathname:o}=i;I.useEffect(n,[i,n]);const a="/settings",s=ze("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(Z$,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(X$,{tag:Ht,to:"/",children:[g.jsx(lW,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx(Q$,{onClick:r,children:g.jsx(Ge,{icon:vY,className:s})}),g.jsx(ST,{navbar:!0,isOpen:t,children:g.jsxs(hT,{navbar:!0,className:"ms-auto",children:[g.jsx(pT,{children:g.jsxs(mT,{tag:Ht,to:a,active:o.startsWith(a),children:[g.jsx(Ge,{icon:xY})," Settings"]})}),g.jsx(e,{})]})})]})},nAe=To(uW,["ServersDropdown"]),iAe=({children:e})=>{const t=gn();return I.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},cW=r7(e=>e,e=>{try{return HP(e,e,"=")}catch{return!1}}),fW=e=>cW(e)?`v${e}`:e,dW=(e,t="latest")=>cW(e)?e:t,oAe="%_VERSION_%",aAe=e=>fW(dW(e)),p8=({project:e,version:t})=>g.jsx(Gn,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),sAe=({selectedServer:e,clientVersion:t=oAe})=>{const r=aAe(t);return g.jsxs("small",{className:"text-muted",children:[HE(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(p8,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(p8,{project:"shlink-web-client",version:r})]})},lAe=({selectedServer:e})=>g.jsx("div",{className:ze("text-center",{"shlink-versions-container--with-sidebar":HE(e)}),children:g.jsx(sAe,{selectedServer:e})}),dd=({children:e,className:t})=>g.jsx("div",{className:ze("no-menu-wrapper container-xl",t),children:e});function hW(e){const t=r=>{const{ServerError:n}=Eo(t),i=Gf(),{selectServer:o,selectedServer:a}=r;return I.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?xK(a)?g.jsx(n,{}):g.jsx(e,{...r}):g.jsx(dd,{children:g.jsx(qa,{loading:!0})})};return t}const pW=hW(I.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:r,TagColorsStorage:n,ShlinkWebComponent:i,ServerError:o}=Eo(pW);if(!HE(e))return g.jsx(o,{});const a=`/server/${e.id}`;return g.jsx(i,{serverVersion:e.version,apiClient:r(e),settings:t,routesPrefix:a,tagColorsStorage:n,createNotFound:s=>g.jsx($F,{to:`${a}${s}`,children:"List short URLs"})})})),uAe=To(pW,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),cAe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Uoe,"fetch"),e.serviceFactory("ScrollToTop",()=>iAe),e.factory("MainHeader",nAe),e.serviceFactory("Home",()=>rAe),e.decorator("Home",w0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>Jje),e.factory("ShlinkWebComponentContainer",uAe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>lAe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>eAe)},mW=()=>{const e=sa();return I.useCallback(()=>e(-1),[e])};function fAe(e){let t=e.url;try{const{host:r,pathname:n}=new URL(t);t=r;const i=n.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function dAe(e){const t={};return e.forEach(r=>{t[r.id]=r}),t}const hAe=(e,{url:t,apiKey:r})=>e.some(n=>n.url===t&&n.apiKey===r);function pAe(e,t){const r=Object.values(e),{duplicatedServers:n=[],newServers:i=[]}=t7(t,o=>hAe(r,o)?"duplicatedServers":"newServers");return{duplicatedServers:n,newServers:i}}function O0(e,t){const r=new Set(Object.keys(e)),n=[];return t.forEach(i=>{const o=fAe(i);let a=o,s=1;for(;r.has(a);)a=`${o}-${s}`,s++;n.push({...i,id:a}),r.add(a)}),n}const vW=({isOpen:e,duplicatedServers:t,onDiscard:r,onSave:n})=>{const i=t.length>1;return g.jsxs(Yn,{centered:!0,isOpen:e,children:[g.jsxs(la,{children:["Duplicated server",i&&"s"]}),g.jsxs(Co,{children:[g.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),g.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?g.jsxs("li",{children:[g.jsx("b",{children:o})," - ",g.jsx("b",{children:a})]},s):g.jsxs(I.Fragment,{children:[g.jsxs("li",{children:["URL: ",g.jsx("b",{children:o})]}),g.jsxs("li",{children:["API key: ",g.jsx("b",{children:a})]})]},s))}),g.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),g.jsxs(Ja,{children:[g.jsx(_t,{color:"link",onClick:r,children:i?"Ignore duplicates":"Discard"}),g.jsx(_t,{color:"primary",onClick:n,children:"Save anyway"})]})]})},mAe=e=>t=>{t.preventDefault(),e()},gW=({onSubmit:e,initialValues:t,children:r,title:n})=>{const[i,o]=I.useState((t==null?void 0:t.name)??""),[a,s]=I.useState((t==null?void 0:t.url)??""),[c,u]=I.useState((t==null?void 0:t.apiKey)??""),h=mAe(()=>e({name:i,url:a,apiKey:c}));return g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:h,children:[g.jsxs(Wt,{className:"mb-3",title:n,children:[g.jsx(wg,{value:i,onChange:o,children:"Name"}),g.jsx(wg,{type:"url",value:a,onChange:s,children:"URL"}),g.jsx(wg,{value:c,onChange:u,children:"API key"})]}),g.jsx("div",{className:"text-end",children:r})]})},m8=4e3,v8=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(Tn,{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."]})}),yW=({servers:e,createServers:t})=>{const{ImportServersBtn:r,useTimeoutToggle:n}=Eo(yW),i=sa(),o=mW(),a=!!Object.keys(e).length,[s,c]=n(!1,m8),[u,h]=n(!1,m8),[p,v]=ur(),[b,x]=I.useState(),_=I.useCallback(O=>{const[S]=O0(e,[O]);t([S]),i(`/server/${S.id}`)},[t,i,e]),w=I.useCallback(O=>{x(O),Object.values(e).some(({url:E,apiKey:T})=>O.url===E&&O.apiKey===T)?v():_(O)},[_,e,v]);return g.jsxs(dd,{children:[g.jsxs(gW,{title:g.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:w,children:[!a&&g.jsx(r,{tooltipPlacement:"top",onImport:c,onImportError:h}),a&&g.jsx(_t,{outline:!0,onClick:o,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&g.jsx(v8,{type:"success"}),u&&g.jsx(v8,{type:"error"}),g.jsx(vW,{isOpen:p,duplicatedServers:b?[b]:[],onDiscard:o,onSave:()=>b&&_(b)})]})},vAe=To(yW,["ImportServersBtn","useTimeoutToggle"]),bW=({server:e,className:t,children:r,textClassName:n})=>{const{DeleteServerModal:i}=Eo(bW),[o,,a,s]=ur();return g.jsxs(g.Fragment,{children:[g.jsxs("button",{type:"button",className:ze(t,"p-0 bg-transparent border-0"),onClick:a,children:[!r&&g.jsx(Ge,{fixedWidth:!0,icon:GE}),g.jsx("span",{className:n,children:r??"Remove this server"})]}),g.jsx(i,{server:e,isOpen:o,toggle:s})]})},gAe=To(bW,["DeleteServerModal"]),yAe=({server:e,toggle:t,isOpen:r,deleteServer:n,redirectHome:i=!0})=>{const o=sa(),a=I.useRef(!1),s=()=>{a.current=!0,t()},c=()=>{a.current&&(n(e),i&&o("/"))};return g.jsxs(Yn,{isOpen:r,toggle:t,centered:!0,onClosed:c,children:[g.jsx(la,{toggle:t,className:"text-danger",children:"Remove server"}),g.jsxs(Co,{children:[g.jsxs("p",{children:["Are you sure you want to remove ",g.jsx("b",{children:e?e.name:""}),"?"]}),g.jsx("p",{children:g.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."})})]}),g.jsxs(Ja,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",onClick:s,children:"Delete"})]})]})},bAe=hW(({editServer:e,selectedServer:t,selectServer:r})=>{const n=mW(),{reconnect:i}=Zf();if(!Ah(t))return null;const o=a=>{e(t.id,a),i==="true"&&r(t.id),n()};return g.jsx(dd,{children:g.jsxs(gW,{title:g.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[g.jsx(_t,{outline:!0,className:"me-2",onClick:n,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",children:"Save"})]})})}),_Ae=To(bAe,["ServerError"]),_W=({createServers:e,servers:t,children:r,onImport:n=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Eo(_W),c=Yi(),[u,h]=I.useState([]),[p,,v,b]=ur(),x=I.useRef([]),_=I.useRef([]),w=I.useCallback(T=>{e(T),n()},[e,n]),O=I.useCallback(async({target:T})=>{var A;return s.importServersFromFile((A=T.files)==null?void 0:A[0]).then(j=>{const{duplicatedServers:N,newServers:F}=pAe(t,j);x.current=O0(t,j),_.current=O0(t,F),N.length===0?w(x.current):(h(N),v())}).then(()=>{T.value=null}).catch(i)},[w,i,t,s,v]),S=I.useCallback(()=>{w(x.current),b()},[w,b]),E=I.useCallback(()=>{w(_.current),b()},[w,b]);return g.jsxs(g.Fragment,{children:[g.jsxs(_t,{outline:!0,id:"importBtn",className:a,onClick:()=>{var T;return(T=c.current)==null?void 0:T.click()},children:[g.jsx(Ge,{icon:VK,fixedWidth:!0})," ",r??"Import from file"]}),g.jsxs(wi,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"})," columns."]}),g.jsx("input",{type:"file",accept:".csv",className:"d-none","aria-hidden":!0,ref:c,onChange:O,"data-testid":"csv-file-input"}),g.jsx(vW,{isOpen:p,duplicatedServers:u,onDiscard:E,onSave:S})]})},xAe=To(_W,["ServersImporter"]),xW=({servers:e,selectedServer:t})=>{const{DeleteServerButton:r}=Eo(xW);return g.jsx(dd,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(qa,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Ah(t)&&"Could not find this Shlink server.",Ah(t)&&g.jsxs(g.Fragment,{children:[g.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."]})]}),g.jsx(sW,{servers:Object.values(e),children:g.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",g.jsx(Ht,{to:"/server/create",children:"add a new one"}),"."]})}),Ah(t)&&g.jsx("div",{className:"container mt-3 mt-md-5",children:g.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",g.jsx(r,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",g.jsx(Ht,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},wAe=To(xW,["DeleteServerButton"]),OAe=4e3,wW=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:r,useTimeoutToggle:n,ManageServersRow:i}=Eo(wW),[o,a]=I.useState(""),s=I.useMemo(()=>Object.values(e),[e]),c=I.useMemo(()=>s.filter(({name:v,url:b})=>`${v} ${b}`.toLowerCase().match(o.toLowerCase())),[s,o]),u=s.some(({autoConnect:v})=>!!v),[h,p]=n(!1,OAe);return g.jsxs(dd,{className:"d-flex flex-column gap-3",children:[g.jsx(im,{onChange:a}),g.jsxs("div",{className:"d-flex flex-column flex-md-row gap-2",children:[g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(r,{className:"flex-fill",onImportError:p,children:"Import servers"}),c.length>0&&g.jsxs(_t,{outline:!0,className:"flex-fill",onClick:async()=>t.exportServers(),children:[g.jsx(Ge,{icon:o$,fixedWidth:!0})," Export servers"]})]}),g.jsxs(_t,{outline:!0,color:"primary",className:"ms-md-auto",tag:Ht,to:"/server/create",children:[g.jsx(Ge,{icon:Yp,fixedWidth:!0})," Add a server"]})]}),g.jsx(Wt,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsxs("tr",{children:[u&&g.jsx("th",{style:{width:"50px"},children:g.jsx("span",{className:"sr-only",children:"Auto-connect"})}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{children:g.jsx("span",{className:"sr-only",children:"Options"})})]})}),g.jsxs("tbody",{children:[!c.length&&g.jsx("tr",{className:"text-center",children:g.jsx("td",{colSpan:4,children:"No servers found."})}),c.map(v=>g.jsx(i,{server:v,hasAutoConnect:u},v.id))]})]})}),h&&g.jsx("div",{children:g.jsx(Tn,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},SAe=To(wW,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),OW=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:r}=Eo(OW);return g.jsxs("tr",{className:"responsive-table__row",children:[t&&g.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:Zh,className:"text-primary",id:"autoConnectIcon"}),g.jsx(wi,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Ht,{to:`/server/${e.id}`,children:e.name})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(r,{server:e})})]})},PAe=To(OW,["ManageServersRowDropdown"]),SW=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:r}=Eo(SW),[n,,i,o]=ur(),a=`/server/${e.id}`,{autoConnect:s}=e,c=s?UK:wae;return g.jsxs($0,{minWidth:s?210:170,children:[g.jsxs(Ye,{tag:Ht,to:a,children:[g.jsx(Ge,{icon:FK,fixedWidth:!0})," Connect"]}),g.jsxs(Ye,{tag:Ht,to:`${a}/edit`,children:[g.jsx(Ge,{icon:YE,fixedWidth:!0})," Edit server"]}),g.jsxs(Ye,{onClick:()=>t(e,!s),children:[g.jsx(Ge,{icon:c,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:i,children:[g.jsx(Ge,{icon:GE,fixedWidth:!0})," Remove server"]}),g.jsx(r,{redirectHome:!1,server:e,isOpen:n,toggle:o})]})},CAe=To(SW,["DeleteServerModal"]),PW=(e,t)=>QF(e,t,{serializeError:r=>r}),EAe={},{actions:TAe,reducer:jAe}=Tr({name:"shlink/servers",initialState:EAe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:r,serverData:n}=t;return e[r]?{...e,[r]:{...e[r],...n}}:e}},deleteServer:(e,{payload:t})=>(delete e[t.id],e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:r,autoConnect:n}=t;return e[r]?n?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===r}])):{...e,[r]:{...e[r],autoConnect:n}}:e}},createServers:{prepare:e=>({payload:dAe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:AAe,deleteServer:kAe,setAutoConnect:RAe,createServers:CW}=TAe,NAe=jAe,MAe=e=>O0({},Array.isArray(e)?e.filter(t$):[]),LAe=e=>PW("shlink/remoteServers/fetchServers",async(t,{dispatch:r})=>{const n=await e.jsonRequest(`${Ag.homepage}/servers.json`),i=MAe(n);r(CW(i))}),bA="shlink/selectedServer",IAe="1.0.0",DAe="999.999.999",$Ae="latest",FAe=e=>dW(e===$Ae?DAe:e,IAe),BAe=r7(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:r})=>({version:FAe(r),printableVersion:fW(r)}))),g8=null,_A=jn(`${bA}/resetSelectedServer`),UAe=e=>PW(`${bA}/selectServer`,async(t,{dispatch:r,getState:n})=>{r(_A());const{servers:i}=n(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:c}=await BAe(o,()=>a.health());return{...o,version:s,printableVersion:c}}catch{return{...o,serverNotReachable:!0}}}),zAe=e=>Tr({name:bA,initialState:g8,reducers:{},extraReducers:t=>{t.addCase(_A,()=>g8),t.addCase(e.fulfilled,(r,{payload:n})=>n)}}),VAe=({servers:e,selectedServer:t})=>{const r=Object.values(e),n=()=>r.length===0?g.jsxs(Ye,{tag:Ht,to:"/server/create",children:[g.jsx(Ge,{icon:Yp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[r.map(({name:i,id:o})=>g.jsx(Ye,{tag:Ht,to:`/server/${o}`,active:wK(t)===o,children:i},o)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{tag:Ht,to:"/manage-servers",children:[g.jsx(Ge,{icon:C3})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(nm,{nav:!0,inNavbar:!0,children:[g.jsxs(Qa,{nav:!0,caret:!0,children:[g.jsx(Ge,{icon:C3})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(pl,{end:!0,style:{right:0},children:n()})]})},WAe=({document:e},t,r)=>{const n=e.createElement("a");n.setAttribute("href",t),n.setAttribute("download",r),n.style.visibility="hidden",e.body.appendChild(n),n.click(),e.body.removeChild(n)},qAe=(e,t,r)=>{const n=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(n);WAe(e,i,r)},HAe="shlink-servers.csv";class GAe{constructor(t,r,n){Ec(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(OK);try{const r=this.jsonToCsv(t);qAe(this.window,r,HAe)}catch(r){console.error(r)}});this.storage=t,this.window=r,this.jsonToCsv=n}}const KAe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",YAe=e=>Array.isArray(e)&&e.every(KAe);class ZAe{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const r=await t.text(),n=await this.csvToJson(r);if(!YAe(n))throw new Error("Provided file does not have the right format.");return n}}const XAe=(e,t)=>{e.factory("ManageServers",SAe),e.decorator("ManageServers",w0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",PAe),e.factory("ManageServersRowDropdown",CAe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",vAe),e.decorator("CreateServer",w0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",_Ae),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>VAe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>yAe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",gAe),e.factory("ImportServersBtn",xAe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",wAe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",ZAe,"csvToJson"),e.service("ServersExporter",GAe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",UAe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>CW),e.serviceFactory("deleteServer",()=>kAe),e.serviceFactory("editServer",()=>AAe),e.serviceFactory("setAutoConnect",()=>RAe),e.serviceFactory("fetchServers",LAe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>_A),e.serviceFactory("selectedServerReducerCreator",zAe,"selectServer"),e.serviceFactory("selectedServerReducer",r=>r.reducer,"selectedServerReducerCreator")},EW={field:"dateCreated",dir:"DESC"},QAe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:jT()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:EW}},{reducer:JAe,actions:eke}=Tr({name:"shlink/settings",initialState:QAe,reducers:{setSettings:(e,{payload:t})=>W0(e,t)}}),{setSettings:tke}=eke,rke=JAe,nke=({settings:e,setSettings:t})=>g.jsx(dd,{children:g.jsx(bae,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:EW})}),ike=(e,t)=>{e.serviceFactory("Settings",()=>nke),e.decorator("Settings",w0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>tke)};var ZO,y8;function oke(){return y8||(y8=1,ZO=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(n,i,o){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:o})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,i){if(1&i&&(n=r(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var a in n)r.d(o,a,(function(s){return n[s]}).bind(null,a));return o},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=32)}([function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(r=window)}e.exports=r},function(e,t,r){var n=r(6),i=Object.keys||function(x){var _=[];for(var w in x)_.push(w);return _};e.exports=p;var o=r(5);o.inherits=r(2);var a=r(23),s=r(14);o.inherits(p,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var h=c[u];p.prototype[h]||(p.prototype[h]=s.prototype[h])}function p(x){if(!(this instanceof p))return new p(x);a.call(this,x),s.call(this,x),x&&x.readable===!1&&(this.readable=!1),x&&x.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,x&&x.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||n.nextTick(b,this)}function b(x){x.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(x){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=x,this._writableState.destroyed=x)}}),p.prototype._destroy=function(x,_){this.push(null),this.end(),n.nextTick(_,x)}},function(e,t){typeof Object.create=="function"?e.exports=function(r,n){r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(r,n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}},function(e,t,r){(function(n){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var i=r(38),o=r(39),a=r(40);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(M,$){if(s()<$)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(M=new Uint8Array($)).__proto__=u.prototype:(M===null&&(M=new u($)),M.length=$),M}function u(M,$,Y){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(M,$,Y);if(typeof M=="number"){if(typeof $=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,M)}return h(this,M,$,Y)}function h(M,$,Y,ue){if(typeof $=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer?function(ie,he,Se,Fe){if(he.byteLength,Se<0||he.byteLength<Se)throw new RangeError("'offset' is out of bounds");if(he.byteLength<Se+(Fe||0))throw new RangeError("'length' is out of bounds");return he=Se===void 0&&Fe===void 0?new Uint8Array(he):Fe===void 0?new Uint8Array(he,Se):new Uint8Array(he,Se,Fe),u.TYPED_ARRAY_SUPPORT?(ie=he).__proto__=u.prototype:ie=b(ie,he),ie}(M,$,Y,ue):typeof $=="string"?function(ie,he,Se){if(typeof Se=="string"&&Se!==""||(Se="utf8"),!u.isEncoding(Se))throw new TypeError('"encoding" must be a valid string encoding');var Fe=0|_(he,Se),ge=(ie=c(ie,Fe)).write(he,Se);return ge!==Fe&&(ie=ie.slice(0,ge)),ie}(M,$,Y):function(ie,he){if(u.isBuffer(he)){var Se=0|x(he.length);return(ie=c(ie,Se)).length===0||he.copy(ie,0,0,Se),ie}if(he){if(typeof ArrayBuffer<"u"&&he.buffer instanceof ArrayBuffer||"length"in he)return typeof he.length!="number"||function(Fe){return Fe!=Fe}(he.length)?c(ie,0):b(ie,he);if(he.type==="Buffer"&&a(he.data))return b(ie,he.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(M,$)}function p(M){if(typeof M!="number")throw new TypeError('"size" argument must be a number');if(M<0)throw new RangeError('"size" argument must not be negative')}function v(M,$){if(p($),M=c(M,$<0?0:0|x($)),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<$;++Y)M[Y]=0;return M}function b(M,$){var Y=$.length<0?0:0|x($.length);M=c(M,Y);for(var ue=0;ue<Y;ue+=1)M[ue]=255&$[ue];return M}function x(M){if(M>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|M}function _(M,$){if(u.isBuffer(M))return M.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(M)||M instanceof ArrayBuffer))return M.byteLength;typeof M!="string"&&(M=""+M);var Y=M.length;if(Y===0)return 0;for(var ue=!1;;)switch($){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return ce(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Y;case"hex":return Y>>>1;case"base64":return de(M).length;default:if(ue)return ce(M).length;$=(""+$).toLowerCase(),ue=!0}}function w(M,$,Y){var ue=M[$];M[$]=M[Y],M[Y]=ue}function O(M,$,Y,ue,ie){if(M.length===0)return-1;if(typeof Y=="string"?(ue=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=ie?0:M.length-1),Y<0&&(Y=M.length+Y),Y>=M.length){if(ie)return-1;Y=M.length-1}else if(Y<0){if(!ie)return-1;Y=0}if(typeof $=="string"&&($=u.from($,ue)),u.isBuffer($))return $.length===0?-1:S(M,$,Y,ue,ie);if(typeof $=="number")return $&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(M,$,Y):Uint8Array.prototype.lastIndexOf.call(M,$,Y):S(M,[$],Y,ue,ie);throw new TypeError("val must be string, number or Buffer")}function S(M,$,Y,ue,ie){var he,Se=1,Fe=M.length,ge=$.length;if(ue!==void 0&&((ue=String(ue).toLowerCase())==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(M.length<2||$.length<2)return-1;Se=2,Fe/=2,ge/=2,Y/=2}function Ee(Be,qe){return Se===1?Be[qe]:Be.readUInt16BE(qe*Se)}if(ie){var je=-1;for(he=Y;he<Fe;he++)if(Ee(M,he)===Ee($,je===-1?0:he-je)){if(je===-1&&(je=he),he-je+1===ge)return je*Se}else je!==-1&&(he-=he-je),je=-1}else for(Y+ge>Fe&&(Y=Fe-ge),he=Y;he>=0;he--){for(var Me=!0,He=0;He<ge;He++)if(Ee(M,he+He)!==Ee($,He)){Me=!1;break}if(Me)return he}return-1}function E(M,$,Y,ue){Y=Number(Y)||0;var ie=M.length-Y;ue?(ue=Number(ue))>ie&&(ue=ie):ue=ie;var he=$.length;if(he%2!=0)throw new TypeError("Invalid hex string");ue>he/2&&(ue=he/2);for(var Se=0;Se<ue;++Se){var Fe=parseInt($.substr(2*Se,2),16);if(isNaN(Fe))return Se;M[Y+Se]=Fe}return Se}function T(M,$,Y,ue){return be(ce($,M.length-Y),M,Y,ue)}function A(M,$,Y,ue){return be(function(ie){for(var he=[],Se=0;Se<ie.length;++Se)he.push(255&ie.charCodeAt(Se));return he}($),M,Y,ue)}function j(M,$,Y,ue){return A(M,$,Y,ue)}function N(M,$,Y,ue){return be(de($),M,Y,ue)}function F(M,$,Y,ue){return be(function(ie,he){for(var Se,Fe,ge,Ee=[],je=0;je<ie.length&&!((he-=2)<0);++je)Fe=(Se=ie.charCodeAt(je))>>8,ge=Se%256,Ee.push(ge),Ee.push(Fe);return Ee}($,M.length-Y),M,Y,ue)}function V(M,$,Y){return $===0&&Y===M.length?i.fromByteArray(M):i.fromByteArray(M.slice($,Y))}function B(M,$,Y){Y=Math.min(M.length,Y);for(var ue=[],ie=$;ie<Y;){var he,Se,Fe,ge,Ee=M[ie],je=null,Me=Ee>239?4:Ee>223?3:Ee>191?2:1;if(ie+Me<=Y)switch(Me){case 1:Ee<128&&(je=Ee);break;case 2:(192&(he=M[ie+1]))==128&&(ge=(31&Ee)<<6|63&he)>127&&(je=ge);break;case 3:he=M[ie+1],Se=M[ie+2],(192&he)==128&&(192&Se)==128&&(ge=(15&Ee)<<12|(63&he)<<6|63&Se)>2047&&(ge<55296||ge>57343)&&(je=ge);break;case 4:he=M[ie+1],Se=M[ie+2],Fe=M[ie+3],(192&he)==128&&(192&Se)==128&&(192&Fe)==128&&(ge=(15&Ee)<<18|(63&he)<<12|(63&Se)<<6|63&Fe)>65535&&ge<1114112&&(je=ge)}je===null?(je=65533,Me=1):je>65535&&(je-=65536,ue.push(je>>>10&1023|55296),je=56320|1023&je),ue.push(je),ie+=Me}return function(He){var Be=He.length;if(Be<=W)return String.fromCharCode.apply(String,He);for(var qe="",ye=0;ye<Be;)qe+=String.fromCharCode.apply(String,He.slice(ye,ye+=W));return qe}(ue)}t.Buffer=u,t.SlowBuffer=function(M){return+M!=M&&(M=0),u.alloc(+M)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=n.TYPED_ARRAY_SUPPORT!==void 0?n.TYPED_ARRAY_SUPPORT:function(){try{var M=new Uint8Array(1);return M.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},M.foo()===42&&typeof M.subarray=="function"&&M.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(M){return M.__proto__=u.prototype,M},u.from=function(M,$,Y){return h(null,M,$,Y)},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(M,$,Y){return function(ue,ie,he,Se){return p(ie),ie<=0?c(ue,ie):he!==void 0?typeof Se=="string"?c(ue,ie).fill(he,Se):c(ue,ie).fill(he):c(ue,ie)}(null,M,$,Y)},u.allocUnsafe=function(M){return v(null,M)},u.allocUnsafeSlow=function(M){return v(null,M)},u.isBuffer=function(M){return!(M==null||!M._isBuffer)},u.compare=function(M,$){if(!u.isBuffer(M)||!u.isBuffer($))throw new TypeError("Arguments must be Buffers");if(M===$)return 0;for(var Y=M.length,ue=$.length,ie=0,he=Math.min(Y,ue);ie<he;++ie)if(M[ie]!==$[ie]){Y=M[ie],ue=$[ie];break}return Y<ue?-1:ue<Y?1:0},u.isEncoding=function(M){switch(String(M).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(M,$){if(!a(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return u.alloc(0);var Y;if($===void 0)for($=0,Y=0;Y<M.length;++Y)$+=M[Y].length;var ue=u.allocUnsafe($),ie=0;for(Y=0;Y<M.length;++Y){var he=M[Y];if(!u.isBuffer(he))throw new TypeError('"list" argument must be an Array of Buffers');he.copy(ue,ie),ie+=he.length}return ue},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var M=this.length;if(M%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<M;$+=2)w(this,$,$+1);return this},u.prototype.swap32=function(){var M=this.length;if(M%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<M;$+=4)w(this,$,$+3),w(this,$+1,$+2);return this},u.prototype.swap64=function(){var M=this.length;if(M%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<M;$+=8)w(this,$,$+7),w(this,$+1,$+6),w(this,$+2,$+5),w(this,$+3,$+4);return this},u.prototype.toString=function(){var M=0|this.length;return M===0?"":arguments.length===0?B(this,0,M):(function($,Y,ue){var ie=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((ue===void 0||ue>this.length)&&(ue=this.length),ue<=0)||(ue>>>=0)<=(Y>>>=0))return"";for($||($="utf8");;)switch($){case"hex":return Q(this,Y,ue);case"utf8":case"utf-8":return B(this,Y,ue);case"ascii":return q(this,Y,ue);case"latin1":case"binary":return J(this,Y,ue);case"base64":return V(this,Y,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,Y,ue);default:if(ie)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),ie=!0}}).apply(this,arguments)},u.prototype.equals=function(M){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M||u.compare(this,M)===0},u.prototype.inspect=function(){var M="",$=t.INSPECT_MAX_BYTES;return this.length>0&&(M=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(M+=" ... ")),"<Buffer "+M+">"},u.prototype.compare=function(M,$,Y,ue,ie){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Y===void 0&&(Y=M?M.length:0),ue===void 0&&(ue=0),ie===void 0&&(ie=this.length),$<0||Y>M.length||ue<0||ie>this.length)throw new RangeError("out of range index");if(ue>=ie&&$>=Y)return 0;if(ue>=ie)return-1;if($>=Y)return 1;if($>>>=0,Y>>>=0,ue>>>=0,ie>>>=0,this===M)return 0;for(var he=ie-ue,Se=Y-$,Fe=Math.min(he,Se),ge=this.slice(ue,ie),Ee=M.slice($,Y),je=0;je<Fe;++je)if(ge[je]!==Ee[je]){he=ge[je],Se=Ee[je];break}return he<Se?-1:Se<he?1:0},u.prototype.includes=function(M,$,Y){return this.indexOf(M,$,Y)!==-1},u.prototype.indexOf=function(M,$,Y){return O(this,M,$,Y,!0)},u.prototype.lastIndexOf=function(M,$,Y){return O(this,M,$,Y,!1)},u.prototype.write=function(M,$,Y,ue){if($===void 0)ue="utf8",Y=this.length,$=0;else if(Y===void 0&&typeof $=="string")ue=$,Y=this.length,$=0;else{if(!isFinite($))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");$|=0,isFinite(Y)?(Y|=0,ue===void 0&&(ue="utf8")):(ue=Y,Y=void 0)}var ie=this.length-$;if((Y===void 0||Y>ie)&&(Y=ie),M.length>0&&(Y<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var he=!1;;)switch(ue){case"hex":return E(this,M,$,Y);case"utf8":case"utf-8":return T(this,M,$,Y);case"ascii":return A(this,M,$,Y);case"latin1":case"binary":return j(this,M,$,Y);case"base64":return N(this,M,$,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,M,$,Y);default:if(he)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),he=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var W=4096;function q(M,$,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=$;ie<Y;++ie)ue+=String.fromCharCode(127&M[ie]);return ue}function J(M,$,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=$;ie<Y;++ie)ue+=String.fromCharCode(M[ie]);return ue}function Q(M,$,Y){var ue=M.length;(!$||$<0)&&($=0),(!Y||Y<0||Y>ue)&&(Y=ue);for(var ie="",he=$;he<Y;++he)ie+=le(M[he]);return ie}function ne(M,$,Y){for(var ue=M.slice($,Y),ie="",he=0;he<ue.length;he+=2)ie+=String.fromCharCode(ue[he]+256*ue[he+1]);return ie}function ae(M,$,Y){if(M%1!=0||M<0)throw new RangeError("offset is not uint");if(M+$>Y)throw new RangeError("Trying to access beyond buffer length")}function se(M,$,Y,ue,ie,he){if(!u.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if($>ie||$<he)throw new RangeError('"value" argument is out of bounds');if(Y+ue>M.length)throw new RangeError("Index out of range")}function oe(M,$,Y,ue){$<0&&($=65535+$+1);for(var ie=0,he=Math.min(M.length-Y,2);ie<he;++ie)M[Y+ie]=($&255<<8*(ue?ie:1-ie))>>>8*(ue?ie:1-ie)}function K(M,$,Y,ue){$<0&&($=4294967295+$+1);for(var ie=0,he=Math.min(M.length-Y,4);ie<he;++ie)M[Y+ie]=$>>>8*(ue?ie:3-ie)&255}function G(M,$,Y,ue,ie,he){if(Y+ue>M.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function z(M,$,Y,ue,ie){return ie||G(M,0,Y,4),o.write(M,$,Y,ue,23,4),Y+4}function re(M,$,Y,ue,ie){return ie||G(M,0,Y,8),o.write(M,$,Y,ue,52,8),Y+8}u.prototype.slice=function(M,$){var Y,ue=this.length;if(M=~~M,$=$===void 0?ue:~~$,M<0?(M+=ue)<0&&(M=0):M>ue&&(M=ue),$<0?($+=ue)<0&&($=0):$>ue&&($=ue),$<M&&($=M),u.TYPED_ARRAY_SUPPORT)(Y=this.subarray(M,$)).__proto__=u.prototype;else{var ie=$-M;Y=new u(ie,void 0);for(var he=0;he<ie;++he)Y[he]=this[he+M]}return Y},u.prototype.readUIntLE=function(M,$,Y){M|=0,$|=0,Y||ae(M,$,this.length);for(var ue=this[M],ie=1,he=0;++he<$&&(ie*=256);)ue+=this[M+he]*ie;return ue},u.prototype.readUIntBE=function(M,$,Y){M|=0,$|=0,Y||ae(M,$,this.length);for(var ue=this[M+--$],ie=1;$>0&&(ie*=256);)ue+=this[M+--$]*ie;return ue},u.prototype.readUInt8=function(M,$){return $||ae(M,1,this.length),this[M]},u.prototype.readUInt16LE=function(M,$){return $||ae(M,2,this.length),this[M]|this[M+1]<<8},u.prototype.readUInt16BE=function(M,$){return $||ae(M,2,this.length),this[M]<<8|this[M+1]},u.prototype.readUInt32LE=function(M,$){return $||ae(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+16777216*this[M+3]},u.prototype.readUInt32BE=function(M,$){return $||ae(M,4,this.length),16777216*this[M]+(this[M+1]<<16|this[M+2]<<8|this[M+3])},u.prototype.readIntLE=function(M,$,Y){M|=0,$|=0,Y||ae(M,$,this.length);for(var ue=this[M],ie=1,he=0;++he<$&&(ie*=256);)ue+=this[M+he]*ie;return ue>=(ie*=128)&&(ue-=Math.pow(2,8*$)),ue},u.prototype.readIntBE=function(M,$,Y){M|=0,$|=0,Y||ae(M,$,this.length);for(var ue=$,ie=1,he=this[M+--ue];ue>0&&(ie*=256);)he+=this[M+--ue]*ie;return he>=(ie*=128)&&(he-=Math.pow(2,8*$)),he},u.prototype.readInt8=function(M,$){return $||ae(M,1,this.length),128&this[M]?-1*(255-this[M]+1):this[M]},u.prototype.readInt16LE=function(M,$){$||ae(M,2,this.length);var Y=this[M]|this[M+1]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt16BE=function(M,$){$||ae(M,2,this.length);var Y=this[M+1]|this[M]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt32LE=function(M,$){return $||ae(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},u.prototype.readInt32BE=function(M,$){return $||ae(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},u.prototype.readFloatLE=function(M,$){return $||ae(M,4,this.length),o.read(this,M,!0,23,4)},u.prototype.readFloatBE=function(M,$){return $||ae(M,4,this.length),o.read(this,M,!1,23,4)},u.prototype.readDoubleLE=function(M,$){return $||ae(M,8,this.length),o.read(this,M,!0,52,8)},u.prototype.readDoubleBE=function(M,$){return $||ae(M,8,this.length),o.read(this,M,!1,52,8)},u.prototype.writeUIntLE=function(M,$,Y,ue){M=+M,$|=0,Y|=0,ue||se(this,M,$,Y,Math.pow(2,8*Y)-1,0);var ie=1,he=0;for(this[$]=255&M;++he<Y&&(ie*=256);)this[$+he]=M/ie&255;return $+Y},u.prototype.writeUIntBE=function(M,$,Y,ue){M=+M,$|=0,Y|=0,ue||se(this,M,$,Y,Math.pow(2,8*Y)-1,0);var ie=Y-1,he=1;for(this[$+ie]=255&M;--ie>=0&&(he*=256);)this[$+ie]=M/he&255;return $+Y},u.prototype.writeUInt8=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,1,255,0),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),this[$]=255&M,$+1},u.prototype.writeUInt16LE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[$]=255&M,this[$+1]=M>>>8):oe(this,M,$,!0),$+2},u.prototype.writeUInt16BE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[$]=M>>>8,this[$+1]=255&M):oe(this,M,$,!1),$+2},u.prototype.writeUInt32LE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[$+3]=M>>>24,this[$+2]=M>>>16,this[$+1]=M>>>8,this[$]=255&M):K(this,M,$,!0),$+4},u.prototype.writeUInt32BE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[$]=M>>>24,this[$+1]=M>>>16,this[$+2]=M>>>8,this[$+3]=255&M):K(this,M,$,!1),$+4},u.prototype.writeIntLE=function(M,$,Y,ue){if(M=+M,$|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,$,Y,ie-1,-ie)}var he=0,Se=1,Fe=0;for(this[$]=255&M;++he<Y&&(Se*=256);)M<0&&Fe===0&&this[$+he-1]!==0&&(Fe=1),this[$+he]=(M/Se>>0)-Fe&255;return $+Y},u.prototype.writeIntBE=function(M,$,Y,ue){if(M=+M,$|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,$,Y,ie-1,-ie)}var he=Y-1,Se=1,Fe=0;for(this[$+he]=255&M;--he>=0&&(Se*=256);)M<0&&Fe===0&&this[$+he+1]!==0&&(Fe=1),this[$+he]=(M/Se>>0)-Fe&255;return $+Y},u.prototype.writeInt8=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,1,127,-128),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),M<0&&(M=255+M+1),this[$]=255&M,$+1},u.prototype.writeInt16LE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[$]=255&M,this[$+1]=M>>>8):oe(this,M,$,!0),$+2},u.prototype.writeInt16BE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[$]=M>>>8,this[$+1]=255&M):oe(this,M,$,!1),$+2},u.prototype.writeInt32LE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[$]=255&M,this[$+1]=M>>>8,this[$+2]=M>>>16,this[$+3]=M>>>24):K(this,M,$,!0),$+4},u.prototype.writeInt32BE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),u.TYPED_ARRAY_SUPPORT?(this[$]=M>>>24,this[$+1]=M>>>16,this[$+2]=M>>>8,this[$+3]=255&M):K(this,M,$,!1),$+4},u.prototype.writeFloatLE=function(M,$,Y){return z(this,M,$,!0,Y)},u.prototype.writeFloatBE=function(M,$,Y){return z(this,M,$,!1,Y)},u.prototype.writeDoubleLE=function(M,$,Y){return re(this,M,$,!0,Y)},u.prototype.writeDoubleBE=function(M,$,Y){return re(this,M,$,!1,Y)},u.prototype.copy=function(M,$,Y,ue){if(Y||(Y=0),ue||ue===0||(ue=this.length),$>=M.length&&($=M.length),$||($=0),ue>0&&ue<Y&&(ue=Y),ue===Y||M.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("sourceStart out of bounds");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),M.length-$<ue-Y&&(ue=M.length-$+Y);var ie,he=ue-Y;if(this===M&&Y<$&&$<ue)for(ie=he-1;ie>=0;--ie)M[ie+$]=this[ie+Y];else if(he<1e3||!u.TYPED_ARRAY_SUPPORT)for(ie=0;ie<he;++ie)M[ie+$]=this[ie+Y];else Uint8Array.prototype.set.call(M,this.subarray(Y,Y+he),$);return he},u.prototype.fill=function(M,$,Y,ue){if(typeof M=="string"){if(typeof $=="string"?(ue=$,$=0,Y=this.length):typeof Y=="string"&&(ue=Y,Y=this.length),M.length===1){var ie=M.charCodeAt(0);ie<256&&(M=ie)}if(ue!==void 0&&typeof ue!="string")throw new TypeError("encoding must be a string");if(typeof ue=="string"&&!u.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue)}else typeof M=="number"&&(M&=255);if($<0||this.length<$||this.length<Y)throw new RangeError("Out of range index");if(Y<=$)return this;var he;if($>>>=0,Y=Y===void 0?this.length:Y>>>0,M||(M=0),typeof M=="number")for(he=$;he<Y;++he)this[he]=M;else{var Se=u.isBuffer(M)?M:ce(new u(M,ue).toString()),Fe=Se.length;for(he=0;he<Y-$;++he)this[he+$]=Se[he%Fe]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function le(M){return M<16?"0"+M.toString(16):M.toString(16)}function ce(M,$){var Y;$=$||1/0;for(var ue=M.length,ie=null,he=[],Se=0;Se<ue;++Se){if((Y=M.charCodeAt(Se))>55295&&Y<57344){if(!ie){if(Y>56319){($-=3)>-1&&he.push(239,191,189);continue}if(Se+1===ue){($-=3)>-1&&he.push(239,191,189);continue}ie=Y;continue}if(Y<56320){($-=3)>-1&&he.push(239,191,189),ie=Y;continue}Y=65536+(ie-55296<<10|Y-56320)}else ie&&($-=3)>-1&&he.push(239,191,189);if(ie=null,Y<128){if(($-=1)<0)break;he.push(Y)}else if(Y<2048){if(($-=2)<0)break;he.push(Y>>6|192,63&Y|128)}else if(Y<65536){if(($-=3)<0)break;he.push(Y>>12|224,Y>>6&63|128,63&Y|128)}else{if(!(Y<1114112))throw new Error("Invalid code point");if(($-=4)<0)break;he.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,63&Y|128)}}return he}function de(M){return i.toByteArray(function($){if(($=function(Y){return Y.trim?Y.trim():Y.replace(/^\s+|\s+$/g,"")}($).replace(X,"")).length<2)return"";for(;$.length%4!=0;)$+="=";return $}(M))}function be(M,$,Y,ue){for(var ie=0;ie<ue&&!(ie+Y>=$.length||ie>=M.length);++ie)$[ie+Y]=M[ie];return ie}}).call(this,r(0))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(w){if(r===setTimeout)return setTimeout(w,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(w,0);try{return r(w,0)}catch{try{return r.call(null,w,0)}catch{return r.call(this,w,0)}}}(function(){try{r=typeof setTimeout=="function"?setTimeout:o}catch{r=o}try{n=typeof clearTimeout=="function"?clearTimeout:a}catch{n=a}})();var c,u=[],h=!1,p=-1;function v(){h&&c&&(h=!1,c.length?u=c.concat(u):p=-1,u.length&&b())}function b(){if(!h){var w=s(v);h=!0;for(var O=u.length;O;){for(c=u,u=[];++p<O;)c&&c[p].run();p=-1,O=u.length}c=null,h=!1,function(S){if(n===clearTimeout)return clearTimeout(S);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(S);try{n(S)}catch{try{return n.call(null,S)}catch{return n.call(this,S)}}}(w)}}function x(w,O){this.fun=w,this.array=O}function _(){}i.nextTick=function(w){var O=new Array(arguments.length-1);if(arguments.length>1)for(var S=1;S<arguments.length;S++)O[S-1]=arguments[S];u.push(new x(w,O)),u.length!==1||h||s(b)},x.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=_,i.addListener=_,i.once=_,i.off=_,i.removeListener=_,i.removeAllListeners=_,i.emit=_,i.prependListener=_,i.prependOnceListener=_,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){(function(n){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=n.isBuffer}).call(this,r(3).Buffer)},function(e,t,r){(function(n){!n.version||n.version.indexOf("v0.")===0||n.version.indexOf("v1.")===0&&n.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 c,u,h=arguments.length;switch(h){case 0:case 1:return n.nextTick(i);case 2:return n.nextTick(function(){i.call(null,o)});case 3:return n.nextTick(function(){i.call(null,o,a)});case 4:return n.nextTick(function(){i.call(null,o,a,s)});default:for(c=new Array(h-1),u=0;u<c.length;)c[u++]=arguments[u];return n.nextTick(function(){i.apply(null,c)})}}}:e.exports=n}).call(this,r(4))},function(e,t,r){var n=r(3),i=n.Buffer;function o(s,c){for(var u in s)c[u]=s[u]}function a(s,c,u){return i(s,c,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(s,c,u){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,c,u)},a.alloc=function(s,c,u){if(typeof s!="number")throw new TypeError("Argument must be a number");var h=i(s);return c!==void 0?typeof u=="string"?h.fill(c,u):h.fill(c):h.fill(0),h},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 n.SlowBuffer(s)}},function(e,t,r){var n=r(17)(Object,"create");e.exports=n},function(e,t,r){var n=r(31);e.exports=function(i,o){for(var a=i.length;a--;)if(n(i[a][0],o))return a;return-1}},function(e,t,r){var n=r(96);e.exports=function(i,o){var a=i.__data__;return n(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,r){(function(n){var i=n!==void 0&&n||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,c){this._id=s,this._clearFn=c}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,c){clearTimeout(s._idleTimeoutId),s._idleTimeout=c},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var c=s._idleTimeout;c>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},c))},r(35),t.setImmediate=typeof self<"u"&&self.setImmediate||n!==void 0&&n.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||n!==void 0&&n.clearImmediate||this&&this.clearImmediate}).call(this,r(0))},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===void 0}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.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},r.prototype.emit=function(a){var s,c,u,h,p,v;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 b=new Error('Uncaught, unspecified "error" event. ('+s+")");throw b.context=s,b}if(o(c=this._events[a]))return!1;if(n(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),c.apply(this,h)}else if(i(c))for(h=Array.prototype.slice.call(arguments,1),u=(v=c.slice()).length,p=0;p<u;p++)v[p].apply(this,h);return!0},r.prototype.addListener=function(a,s){var c;if(!n(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,n(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&&(c=o(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&c>0&&this._events[a].length>c&&(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},r.prototype.on=r.prototype.addListener,r.prototype.once=function(a,s){if(!n(s))throw TypeError("listener must be a function");var c=!1;function u(){this.removeListener(a,u),c||(c=!0,s.apply(this,arguments))}return u.listener=s,this.on(a,u),this},r.prototype.removeListener=function(a,s){var c,u,h,p;if(!n(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(h=(c=this._events[a]).length,u=-1,c===s||n(c.listener)&&c.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(c)){for(p=h;p-- >0;)if(c[p]===s||c[p].listener&&c[p].listener===s){u=p;break}if(u<0)return this;c.length===1?(c.length=0,delete this._events[a]):c.splice(u,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},r.prototype.removeAllListeners=function(a){var s,c;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(n(c=this._events[a]))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},r.prototype.listeners=function(a){return this._events&&this._events[a]?n(this._events[a])?[this._events[a]]:this._events[a].slice():[]},r.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(n(s))return 1;if(s)return s.length}return 0},r.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,r){(t=e.exports=r(23)).Stream=t,t.Readable=t,t.Writable=r(14),t.Duplex=r(1),t.Transform=r(27),t.PassThrough=r(45)},function(e,t,r){(function(n,i,o){var a=r(6);function s(B){var W=this;this.next=null,this.entry=null,this.finish=function(){(function(q,J,Q){var ne=q.entry;for(q.entry=null;ne;){var ae=ne.callback;J.pendingcb--,ae(void 0),ne=ne.next}J.corkedRequestsFree?J.corkedRequestsFree.next=q:J.corkedRequestsFree=q})(W,B)}}e.exports=E;var c,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:a.nextTick;E.WritableState=S;var h=r(5);h.inherits=r(2);var p,v={deprecate:r(44)},b=r(24),x=r(7).Buffer,_=o.Uint8Array||function(){},w=r(25);function O(){}function S(B,W){c=c||r(1),B=B||{};var q=W instanceof c;this.objectMode=!!B.objectMode,q&&(this.objectMode=this.objectMode||!!B.writableObjectMode);var J=B.highWaterMark,Q=B.writableHighWaterMark,ne=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:q&&(Q||Q===0)?Q:ne,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 ae=B.decodeStrings===!1;this.decodeStrings=!ae,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){(function(oe,K){var G=oe._writableState,z=G.sync,re=G.writecb;if(function(le){le.writing=!1,le.writecb=null,le.length-=le.writelen,le.writelen=0}(G),K)(function(le,ce,de,be,M){--ce.pendingcb,de?(a.nextTick(M,be),a.nextTick(V,le,ce),le._writableState.errorEmitted=!0,le.emit("error",be)):(M(be),le._writableState.errorEmitted=!0,le.emit("error",be),V(le,ce))})(oe,G,z,K,re);else{var X=N(G);X||G.corked||G.bufferProcessing||!G.bufferedRequest||j(oe,G),z?u(A,oe,G,X,re):A(oe,G,X,re)}})(W,se)},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 E(B){if(c=c||r(1),!(p.call(E,this)||this instanceof c))return new E(B);this._writableState=new S(B,this),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),b.call(this)}function T(B,W,q,J,Q,ne,ae){W.writelen=J,W.writecb=ae,W.writing=!0,W.sync=!0,q?B._writev(Q,W.onwrite):B._write(Q,ne,W.onwrite),W.sync=!1}function A(B,W,q,J){q||function(Q,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,Q.emit("drain"))}(B,W),W.pendingcb--,J(),V(B,W)}function j(B,W){W.bufferProcessing=!0;var q=W.bufferedRequest;if(B._writev&&q&&q.next){var J=W.bufferedRequestCount,Q=new Array(J),ne=W.corkedRequestsFree;ne.entry=q;for(var ae=0,se=!0;q;)Q[ae]=q,q.isBuf||(se=!1),q=q.next,ae+=1;Q.allBuffers=se,T(B,W,!0,W.length,Q,"",ne.finish),W.pendingcb++,W.lastBufferedRequest=null,ne.next?(W.corkedRequestsFree=ne.next,ne.next=null):W.corkedRequestsFree=new s(W),W.bufferedRequestCount=0}else{for(;q;){var oe=q.chunk,K=q.encoding,G=q.callback;if(T(B,W,!1,W.objectMode?1:oe.length,oe,K,G),q=q.next,W.bufferedRequestCount--,W.writing)break}q===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=q,W.bufferProcessing=!1}function N(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function F(B,W){B._final(function(q){W.pendingcb--,q&&B.emit("error",q),W.prefinished=!0,B.emit("prefinish"),V(B,W)})}function V(B,W){var q=N(W);return q&&(function(J,Q){Q.prefinished||Q.finalCalled||(typeof J._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,a.nextTick(F,J,Q)):(Q.prefinished=!0,J.emit("prefinish")))}(B,W),W.pendingcb===0&&(W.finished=!0,B.emit("finish"))),q}h.inherits(E,b),S.prototype.getBuffer=function(){for(var B=this.bufferedRequest,W=[];B;)W.push(B),B=B.next;return W},function(){try{Object.defineProperty(S.prototype,"buffer",{get:v.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"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(B){return!!p.call(this,B)||this===E&&B&&B._writableState instanceof S}})):p=function(B){return B instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(B,W,q){var J=this._writableState,Q=!1,ne=!J.objectMode&&function(ae){return x.isBuffer(ae)||ae instanceof _}(B);return ne&&!x.isBuffer(B)&&(B=function(ae){return x.from(ae)}(B)),typeof W=="function"&&(q=W,W=null),ne?W="buffer":W||(W=J.defaultEncoding),typeof q!="function"&&(q=O),J.ended?function(ae,se){var oe=new Error("write after end");ae.emit("error",oe),a.nextTick(se,oe)}(this,q):(ne||function(ae,se,oe,K){var G=!0,z=!1;return oe===null?z=new TypeError("May not write null values to stream"):typeof oe=="string"||oe===void 0||se.objectMode||(z=new TypeError("Invalid non-string/buffer chunk")),z&&(ae.emit("error",z),a.nextTick(K,z),G=!1),G}(this,J,B,q))&&(J.pendingcb++,Q=function(ae,se,oe,K,G,z){if(!oe){var re=function(de,be,M){return de.objectMode||de.decodeStrings===!1||typeof be!="string"||(be=x.from(be,M)),be}(se,K,G);K!==re&&(oe=!0,G="buffer",K=re)}var X=se.objectMode?1:K.length;se.length+=X;var le=se.length<se.highWaterMark;if(le||(se.needDrain=!0),se.writing||se.corked){var ce=se.lastBufferedRequest;se.lastBufferedRequest={chunk:K,encoding:G,isBuf:oe,callback:z,next:null},ce?ce.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else T(ae,se,!1,X,K,G,z);return le}(this,J,ne,B,W,q)),Q},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var B=this._writableState;B.corked&&(B.corked--,B.writing||B.corked||B.finished||B.bufferProcessing||!B.bufferedRequest||j(this,B))},E.prototype.setDefaultEncoding=function(B){if(typeof B=="string"&&(B=B.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((B+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(B,W,q){q(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(B,W,q){var J=this._writableState;typeof B=="function"?(q=B,B=null,W=null):typeof W=="function"&&(q=W,W=null),B!=null&&this.write(B,W),J.corked&&(J.corked=1,this.uncork()),J.ending||J.finished||function(Q,ne,ae){ne.ending=!0,V(Q,ne),ae&&(ne.finished?a.nextTick(ae):Q.once("finish",ae)),ne.ended=!0,Q.writable=!1}(this,J,q)},Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),E.prototype.destroy=w.destroy,E.prototype._undestroy=w.undestroy,E.prototype._destroy=function(B,W){this.end(),W(B)}}).call(this,r(4),r(11).setImmediate,r(0))},function(e,t,r){(function(n,i,o){e.exports=function a(s,c,u){function h(b,x){if(!c[b]){if(!s[b]){var _=typeof _dereq_=="function"&&_dereq_;if(!x&&_)return _(b,!0);if(p)return p(b,!0);var w=new Error("Cannot find module '"+b+"'");throw w.code="MODULE_NOT_FOUND",w}var O=c[b]={exports:{}};s[b][0].call(O.exports,function(S){return h(s[b][1][S]||S)},O,O.exports,a,s,c,u)}return c[b].exports}for(var p=typeof _dereq_=="function"&&_dereq_,v=0;v<u.length;v++)h(u[v]);return h}({1:[function(a,s,c){s.exports=function(u){var h=u._SomePromiseArray;function p(v){var b=new h(v),x=b.promise();return b.setHowMany(1),b.setUnwrap(),b.init(),x}u.any=function(v){return p(v)},u.prototype.any=function(){return p(this)}}},{}],2:[function(a,s,c){var u;try{throw new Error}catch(O){u=O}var h=a("./schedule"),p=a("./queue"),v=a("./util");function b(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new p(16),this._normalQueue=new p(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var O=this;this.drainQueues=function(){O._drainQueues()},this._schedule=h}function x(O,S,E){this._lateQueue.push(O,S,E),this._queueTick()}function _(O,S,E){this._normalQueue.push(O,S,E),this._queueTick()}function w(O){this._normalQueue._pushOne(O),this._queueTick()}b.prototype.setScheduler=function(O){var S=this._schedule;return this._schedule=O,this._customScheduler=!0,S},b.prototype.hasCustomScheduler=function(){return this._customScheduler},b.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},b.prototype.disableTrampolineIfNecessary=function(){v.hasDevTools&&(this._trampolineEnabled=!1)},b.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},b.prototype.fatalError=function(O,S){S?(n.stderr.write("Fatal "+(O instanceof Error?O.stack:O)+`
|
||
`),n.exit(2)):this.throwLater(O)},b.prototype.throwLater=function(O,S){if(arguments.length===1&&(S=O,O=function(){throw S}),typeof setTimeout<"u")setTimeout(function(){O(S)},0);else try{this._schedule(function(){O(S)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},v.hasDevTools?(b.prototype.invokeLater=function(O,S,E){this._trampolineEnabled?x.call(this,O,S,E):this._schedule(function(){setTimeout(function(){O.call(S,E)},100)})},b.prototype.invoke=function(O,S,E){this._trampolineEnabled?_.call(this,O,S,E):this._schedule(function(){O.call(S,E)})},b.prototype.settlePromises=function(O){this._trampolineEnabled?w.call(this,O):this._schedule(function(){O._settlePromises()})}):(b.prototype.invokeLater=x,b.prototype.invoke=_,b.prototype.settlePromises=w),b.prototype._drainQueue=function(O){for(;O.length()>0;){var S=O.shift();if(typeof S=="function"){var E=O.shift(),T=O.shift();S.call(E,T)}else S._settlePromises()}},b.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},b.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},b.prototype._reset=function(){this._isTickUsed=!1},s.exports=b,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,c){s.exports=function(u,h,p,v){var b=!1,x=function(S,E){this._reject(E)},_=function(S,E){E.promiseRejectionQueued=!0,E.bindingPromise._then(x,x,null,this,S)},w=function(S,E){!(50397184&this._bitField)&&this._resolveCallback(E.target)},O=function(S,E){E.promiseRejectionQueued||this._reject(S)};u.prototype.bind=function(S){b||(b=!0,u.prototype._propagateFrom=v.propagateFromFunction(),u.prototype._boundValue=v.boundValueFunction());var E=p(S),T=new u(h);T._propagateFrom(this,1);var A=this._target();if(T._setBoundTo(E),E instanceof u){var j={promiseRejectionQueued:!1,promise:T,target:A,bindingPromise:E};A._then(h,_,void 0,T,j),E._then(w,O,void 0,T,j),T._setOnCancel(E)}else T._resolveCallback(A);return T},u.prototype._setBoundTo=function(S){S!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=S):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(S,E){return u.resolve(E).bind(S)}}},{}],4:[function(a,s,c){var u;typeof Promise<"u"&&(u=Promise);var h=a("./promise")();h.noConflict=function(){try{Promise===h&&(Promise=u)}catch{}return h},s.exports=h},{"./promise":22}],5:[function(a,s,c){var u=Object.create;if(u){var h=u(null),p=u(null);h[" size"]=p[" size"]=0}s.exports=function(v){var b=a("./util"),x=b.canEvaluate;function _(S){return function(E,T){var A;if(E!=null&&(A=E[T]),typeof A!="function"){var j="Object "+b.classString(E)+" has no method '"+b.toString(T)+"'";throw new v.TypeError(j)}return A}(S,this.pop()).apply(S,this)}function w(S){return S[this]}function O(S){var E=+this;return E<0&&(E=Math.max(0,E+S.length)),S[E]}b.isIdentifier,v.prototype.call=function(S){var E=[].slice.call(arguments,1);return E.push(S),this._then(_,void 0,void 0,E,void 0)},v.prototype.get=function(S){var E;if(typeof S=="number")E=O;else if(x){var T=(void 0)(S);E=T!==null?T:w}else E=w;return this._then(E,void 0,void 0,S,void 0)}}},{"./util":36}],6:[function(a,s,c){s.exports=function(u,h,p,v){var b=a("./util"),x=b.tryCatch,_=b.errorObj,w=u._async;u.prototype.break=u.prototype.cancel=function(){if(!v.cancellation())return this._warn("cancellation is disabled");for(var O=this,S=O;O._isCancellable();){if(!O._cancelBy(S)){S._isFollowing()?S._followee().cancel():S._cancelBranched();break}var E=O._cancellationParent;if(E==null||!E._isCancellable()){O._isFollowing()?O._followee().cancel():O._cancelBranched();break}O._isFollowing()&&O._followee().cancel(),O._setWillBeCancelled(),S=O,O=E}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(O){return O===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},u.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},u.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),w.invoke(this._cancelPromises,this,void 0))},u.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},u.prototype._unsetOnCancel=function(){this._onCancelField=void 0},u.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},u.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},u.prototype._doInvokeOnCancel=function(O,S){if(b.isArray(O))for(var E=0;E<O.length;++E)this._doInvokeOnCancel(O[E],S);else if(O!==void 0)if(typeof O=="function"){if(!S){var T=x(O).call(this._boundValue());T===_&&(this._attachExtraTrace(T.e),w.throwLater(T.e))}}else O._resultCancelled(this)},u.prototype._invokeOnCancel=function(){var O=this._onCancel();this._unsetOnCancel(),w.invoke(this._doInvokeOnCancel,this,O)},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,c){s.exports=function(u){var h=a("./util"),p=a("./es5").keys,v=h.tryCatch,b=h.errorObj;return function(x,_,w){return function(O){var S=w._boundValue();e:for(var E=0;E<x.length;++E){var T=x[E];if(T===Error||T!=null&&T.prototype instanceof Error){if(O instanceof T)return v(_).call(S,O)}else if(typeof T=="function"){var A=v(T).call(S,O);if(A===b)return A;if(A)return v(_).call(S,O)}else if(h.isObject(O)){for(var j=p(T),N=0;N<j.length;++N){var F=j[N];if(T[F]!=O[F])continue e}return v(_).call(S,O)}}return u}}}},{"./es5":13,"./util":36}],8:[function(a,s,c){s.exports=function(u){var h=!1,p=[];function v(){this._trace=new v.CapturedTrace(b())}function b(){var x=p.length-1;if(x>=0)return p[x]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},v.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,p.push(this._trace))},v.prototype._popContext=function(){if(this._trace!==void 0){var x=p.pop(),_=x._promiseCreated;return x._promiseCreated=null,_}return null},v.CapturedTrace=null,v.create=function(){if(h)return new v},v.deactivateLongStackTraces=function(){},v.activateLongStackTraces=function(){var x=u.prototype._pushContext,_=u.prototype._popContext,w=u._peekContext,O=u.prototype._peekContext,S=u.prototype._promiseCreated;v.deactivateLongStackTraces=function(){u.prototype._pushContext=x,u.prototype._popContext=_,u._peekContext=w,u.prototype._peekContext=O,u.prototype._promiseCreated=S,h=!1},h=!0,u.prototype._pushContext=v.prototype._pushContext,u.prototype._popContext=v.prototype._popContext,u._peekContext=u.prototype._peekContext=b,u.prototype._promiseCreated=function(){var E=this._peekContext();E&&E._promiseCreated==null&&(E._promiseCreated=this)}},v}},{}],9:[function(a,s,c){s.exports=function(u,h){var p,v,b,x=u._getDomain,_=u._async,w=a("./errors").Warning,O=a("./util"),S=O.canAttachTrace,E=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,T=/\((?:timers\.js):\d+:\d+\)/,A=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,j=null,N=null,F=!1,V=O.env("BLUEBIRD_DEBUG")!=0,B=!(O.env("BLUEBIRD_WARNINGS")==0||!V&&!O.env("BLUEBIRD_WARNINGS")),W=!(O.env("BLUEBIRD_LONG_STACK_TRACES")==0||!V&&!O.env("BLUEBIRD_LONG_STACK_TRACES")),q=O.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(B||!!O.env("BLUEBIRD_W_FORGOTTEN_RETURN"));u.prototype.suppressUnhandledRejections=function(){var ye=this._target();ye._bitField=-1048577&ye._bitField|524288},u.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ye=this;setTimeout(function(){ye._notifyUnhandledRejection()},1)}},u.prototype._notifyUnhandledRejectionIsHandled=function(){Se("rejectionHandled",p,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 ye=this._settledValue();this._setUnhandledRejectionIsNotified(),Se("unhandledRejection",v,ye,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(ye,we,Ae){return Y(ye,we,Ae||this)},u.onPossiblyUnhandledRejection=function(ye){var we=x();v=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0},u.onUnhandledRejectionHandled=function(ye){var we=x();p=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0};var J=function(){};u.longStackTraces=function(){if(_.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!qe.longStackTraces&&ge()){var ye=u.prototype._captureStackTrace,we=u.prototype._attachExtraTrace;qe.longStackTraces=!0,J=function(){if(_.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);u.prototype._captureStackTrace=ye,u.prototype._attachExtraTrace=we,h.deactivateLongStackTraces(),_.enableTrampoline(),qe.longStackTraces=!1},u.prototype._captureStackTrace=M,u.prototype._attachExtraTrace=$,h.activateLongStackTraces(),_.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return qe.longStackTraces&&ge()};var Q=function(){try{if(typeof CustomEvent=="function"){var ye=new CustomEvent("CustomEvent");return O.global.dispatchEvent(ye),function(we,Ae){var ke=new CustomEvent(we.toLowerCase(),{detail:Ae,cancelable:!0});return!O.global.dispatchEvent(ke)}}return typeof Event=="function"?(ye=new Event("CustomEvent"),O.global.dispatchEvent(ye),function(we,Ae){var ke=new Event(we.toLowerCase(),{cancelable:!0});return ke.detail=Ae,!O.global.dispatchEvent(ke)}):((ye=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),O.global.dispatchEvent(ye),function(we,Ae){var ke=document.createEvent("CustomEvent");return ke.initCustomEvent(we.toLowerCase(),!1,!0,Ae),!O.global.dispatchEvent(ke)})}catch{}return function(){return!1}}(),ne=O.isNode?function(){return n.emit.apply(n,arguments)}:O.global?function(ye){var we="on"+ye.toLowerCase(),Ae=O.global[we];return!!Ae&&(Ae.apply(O.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ae(ye,we){return{promise:we}}var se={promiseCreated:ae,promiseFulfilled:ae,promiseRejected:ae,promiseResolved:ae,promiseCancelled:ae,promiseChained:function(ye,we,Ae){return{promise:we,child:Ae}},warning:function(ye,we){return{warning:we}},unhandledRejection:function(ye,we,Ae){return{reason:we,promise:Ae}},rejectionHandled:ae},oe=function(ye){var we=!1;try{we=ne.apply(null,arguments)}catch(ke){_.throwLater(ke),we=!0}var Ae=!1;try{Ae=Q(ye,se[ye].apply(null,arguments))}catch(ke){_.throwLater(ke),Ae=!0}return Ae||we};function K(){return!1}function G(ye,we,Ae){var ke=this;try{ye(we,Ae,function(De){if(typeof De!="function")throw new TypeError("onCancel must be a function, got: "+O.toString(De));ke._attachCancellationCallback(De)})}catch(De){return De}}function z(ye){if(!this._isCancellable())return this;var we=this._onCancel();we!==void 0?O.isArray(we)?we.push(ye):this._setOnCancel([we,ye]):this._setOnCancel(ye)}function re(){return this._onCancelField}function X(ye){this._onCancelField=ye}function le(){this._cancellationParent=void 0,this._onCancelField=void 0}function ce(ye,we){if(1&we){this._cancellationParent=ye;var Ae=ye._branchesRemainingToCancel;Ae===void 0&&(Ae=0),ye._branchesRemainingToCancel=Ae+1}2&we&&ye._isBound()&&this._setBoundTo(ye._boundTo)}u.config=function(ye){if("longStackTraces"in(ye=Object(ye))&&(ye.longStackTraces?u.longStackTraces():!ye.longStackTraces&&u.hasLongStackTraces()&&J()),"warnings"in ye){var we=ye.warnings;qe.warnings=!!we,q=qe.warnings,O.isObject(we)&&"wForgottenReturn"in we&&(q=!!we.wForgottenReturn)}if("cancellation"in ye&&ye.cancellation&&!qe.cancellation){if(_.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=le,u.prototype._propagateFrom=ce,u.prototype._onCancel=re,u.prototype._setOnCancel=X,u.prototype._attachCancellationCallback=z,u.prototype._execute=G,de=ce,qe.cancellation=!0}return"monitoring"in ye&&(ye.monitoring&&!qe.monitoring?(qe.monitoring=!0,u.prototype._fireEvent=oe):!ye.monitoring&&qe.monitoring&&(qe.monitoring=!1,u.prototype._fireEvent=K)),u},u.prototype._fireEvent=K,u.prototype._execute=function(ye,we,Ae){try{ye(we,Ae)}catch(ke){return ke}},u.prototype._onCancel=function(){},u.prototype._setOnCancel=function(ye){},u.prototype._attachCancellationCallback=function(ye){},u.prototype._captureStackTrace=function(){},u.prototype._attachExtraTrace=function(){},u.prototype._clearCancellationData=function(){},u.prototype._propagateFrom=function(ye,we){};var de=function(ye,we){2&we&&ye._isBound()&&this._setBoundTo(ye._boundTo)};function be(){var ye=this._boundTo;return ye!==void 0&&ye instanceof u?ye.isFulfilled()?ye.value():void 0:ye}function M(){this._trace=new He(this._peekContext())}function $(ye,we){if(S(ye)){var Ae=this._trace;if(Ae!==void 0&&we&&(Ae=Ae._parent),Ae!==void 0)Ae.attachExtraTrace(ye);else if(!ye.__stackCleaned__){var ke=ie(ye);O.notEnumerableProp(ye,"stack",ke.message+`
|
||
`+ke.stack.join(`
|
||
`)),O.notEnumerableProp(ye,"__stackCleaned__",!0)}}}function Y(ye,we,Ae){if(qe.warnings){var ke,De=new w(ye);if(we)Ae._attachExtraTrace(De);else if(qe.longStackTraces&&(ke=u._peekContext()))ke.attachExtraTrace(De);else{var Ke=ie(De);De.stack=Ke.message+`
|
||
`+Ke.stack.join(`
|
||
`)}oe("warning",De)||he(De,"",!0)}}function ue(ye){for(var we=[],Ae=0;Ae<ye.length;++Ae){var ke=ye[Ae],De=ke===" (No stack trace)"||j.test(ke),Ke=De&&Ee(ke);De&&!Ke&&(F&&ke.charAt(0)!==" "&&(ke=" "+ke),we.push(ke))}return we}function ie(ye){var we=ye.stack,Ae=ye.toString();return we=typeof we=="string"&&we.length>0?function(ke){for(var De=ke.stack.replace(/\s+$/g,"").split(`
|
||
`),Ke=0;Ke<De.length;++Ke){var Xe=De[Ke];if(Xe===" (No stack trace)"||j.test(Xe))break}return Ke>0&&ke.name!="SyntaxError"&&(De=De.slice(Ke)),De}(ye):[" (No stack trace)"],{message:Ae,stack:ye.name=="SyntaxError"?we:ue(we)}}function he(ye,we,Ae){if(typeof console<"u"){var ke;if(O.isObject(ye)){var De=ye.stack;ke=we+N(De,ye)}else ke=we+String(ye);typeof b=="function"?b(ke,Ae):typeof console.log!="function"&&typeof console.log!="object"||console.log(ke)}}function Se(ye,we,Ae,ke){var De=!1;try{typeof we=="function"&&(De=!0,ye==="rejectionHandled"?we(ke):we(Ae,ke))}catch(Ke){_.throwLater(Ke)}ye==="unhandledRejection"?oe(ye,Ae,ke)||De||he(Ae,"Unhandled rejection "):oe(ye,ke)}function Fe(ye){var we;if(typeof ye=="function")we="[function "+(ye.name||"anonymous")+"]";else{if(we=ye&&typeof ye.toString=="function"?ye.toString():O.toString(ye),/\[object [a-zA-Z0-9$_]+\]/.test(we))try{we=JSON.stringify(ye)}catch{}we.length===0&&(we="(empty array)")}return"(<"+function(Ae){return Ae.length<41?Ae:Ae.substr(0,38)+"..."}(we)+">, no stack trace)"}function ge(){return typeof Be=="function"}var Ee=function(){return!1},je=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Me(ye){var we=ye.match(je);if(we)return{fileName:we[1],line:parseInt(we[2],10)}}function He(ye){this._parent=ye,this._promisesCreated=0;var we=this._length=1+(ye===void 0?0:ye._length);Be(this,He),we>32&&this.uncycle()}O.inherits(He,Error),h.CapturedTrace=He,He.prototype.uncycle=function(){var ye=this._length;if(!(ye<2)){for(var we=[],Ae={},ke=0,De=this;De!==void 0;++ke)we.push(De),De=De._parent;for(ke=(ye=this._length=ke)-1;ke>=0;--ke){var Ke=we[ke].stack;Ae[Ke]===void 0&&(Ae[Ke]=ke)}for(ke=0;ke<ye;++ke){var Xe=Ae[we[ke].stack];if(Xe!==void 0&&Xe!==ke){Xe>0&&(we[Xe-1]._parent=void 0,we[Xe-1]._length=1),we[ke]._parent=void 0,we[ke]._length=1;var bt=ke>0?we[ke-1]:this;Xe<ye-1?(bt._parent=we[Xe+1],bt._parent.uncycle(),bt._length=bt._parent._length+1):(bt._parent=void 0,bt._length=1);for(var Ot=bt._length+1,xt=ke-2;xt>=0;--xt)we[xt]._length=Ot,Ot++;return}}}},He.prototype.attachExtraTrace=function(ye){if(!ye.__stackCleaned__){this.uncycle();for(var we=ie(ye),Ae=we.message,ke=[we.stack],De=this;De!==void 0;)ke.push(ue(De.stack.split(`
|
||
`))),De=De._parent;(function(Ke){for(var Xe=Ke[0],bt=1;bt<Ke.length;++bt){for(var Ot=Ke[bt],xt=Xe.length-1,Jt=Xe[xt],Gt=-1,jr=Ot.length-1;jr>=0;--jr)if(Ot[jr]===Jt){Gt=jr;break}for(jr=Gt;jr>=0;--jr){var Lr=Ot[jr];if(Xe[xt]!==Lr)break;Xe.pop(),xt--}Xe=Ot}})(ke),function(Ke){for(var Xe=0;Xe<Ke.length;++Xe)(Ke[Xe].length===0||Xe+1<Ke.length&&Ke[Xe][0]===Ke[Xe+1][0])&&(Ke.splice(Xe,1),Xe--)}(ke),O.notEnumerableProp(ye,"stack",function(Ke,Xe){for(var bt=0;bt<Xe.length-1;++bt)Xe[bt].push("From previous event:"),Xe[bt]=Xe[bt].join(`
|
||
`);return bt<Xe.length&&(Xe[bt]=Xe[bt].join(`
|
||
`)),Ke+`
|
||
`+Xe.join(`
|
||
`)}(Ae,ke)),O.notEnumerableProp(ye,"__stackCleaned__",!0)}};var Be=function(){var ye=/^\s*at\s*/,we=function(Ke,Xe){return typeof Ke=="string"?Ke:Xe.name!==void 0&&Xe.message!==void 0?Xe.toString():Fe(Xe)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,j=ye,N=we;var Ae=Error.captureStackTrace;return Ee=function(Ke){return E.test(Ke)},function(Ke,Xe){Error.stackTraceLimit+=6,Ae(Ke,Xe),Error.stackTraceLimit-=6}}var ke,De=new Error;if(typeof De.stack=="string"&&De.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return j=/@/,N=we,F=!0,function(Ke){Ke.stack=new Error().stack};try{throw new Error}catch(Ke){ke="stack"in Ke}return"stack"in De||!ke||typeof Error.stackTraceLimit!="number"?(N=function(Ke,Xe){return typeof Ke=="string"?Ke:typeof Xe!="object"&&typeof Xe!="function"||Xe.name===void 0||Xe.message===void 0?Fe(Xe):Xe.toString()},null):(j=ye,N=we,function(Ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Xe){Ke.stack=Xe.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(b=function(ye){console.warn(ye)},O.isNode&&n.stderr.isTTY?b=function(ye,we){var Ae=we?"\x1B[33m":"\x1B[31m";console.warn(Ae+ye+`\x1B[0m
|
||
`)}:O.isNode||typeof new Error().stack!="string"||(b=function(ye,we){console.warn("%c"+ye,we?"color: darkorange":"color: red")}));var qe={warnings:B,longStackTraces:!1,cancellation:!1,monitoring:!1};return W&&u.longStackTraces(),{longStackTraces:function(){return qe.longStackTraces},warnings:function(){return qe.warnings},cancellation:function(){return qe.cancellation},monitoring:function(){return qe.monitoring},propagateFromFunction:function(){return de},boundValueFunction:function(){return be},checkForgottenReturns:function(ye,we,Ae,ke,De){if(ye===void 0&&we!==null&&q){if(De!==void 0&&De._returnedNonUndefined()||!(65535&ke._bitField))return;Ae&&(Ae+=" ");var Ke="",Xe="";if(we._trace){for(var bt=we._trace.stack.split(`
|
||
`),Ot=ue(bt),xt=Ot.length-1;xt>=0;--xt){var Jt=Ot[xt];if(!T.test(Jt)){var Gt=Jt.match(A);Gt&&(Ke="at "+Gt[1]+":"+Gt[2]+":"+Gt[3]+" ");break}}if(Ot.length>0){var jr=Ot[0];for(xt=0;xt<bt.length;++xt)if(bt[xt]===jr){xt>0&&(Xe=`
|
||
`+bt[xt-1]);break}}}var Lr="a promise was created in a "+Ae+"handler "+Ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Xe;ke._warn(Lr,!0,we)}},setBounds:function(ye,we){if(ge()){for(var Ae,ke,De=ye.stack.split(`
|
||
`),Ke=we.stack.split(`
|
||
`),Xe=-1,bt=-1,Ot=0;Ot<De.length;++Ot)if(xt=Me(De[Ot])){Ae=xt.fileName,Xe=xt.line;break}for(Ot=0;Ot<Ke.length;++Ot){var xt;if(xt=Me(Ke[Ot])){ke=xt.fileName,bt=xt.line;break}}Xe<0||bt<0||!Ae||!ke||Ae!==ke||Xe>=bt||(Ee=function(Jt){if(E.test(Jt))return!0;var Gt=Me(Jt);return!!(Gt&&Gt.fileName===Ae&&Xe<=Gt.line&&Gt.line<=bt)})}},warn:Y,deprecated:function(ye,we){var Ae=ye+" is deprecated and will be removed in a future version.";return we&&(Ae+=" Use "+we+" instead."),Y(Ae)},CapturedTrace:He,fireDomEvent:Q,fireGlobalEvent:ne}}},{"./errors":12,"./util":36}],10:[function(a,s,c){s.exports=function(u){function h(){return this.value}function p(){throw this.reason}u.prototype.return=u.prototype.thenReturn=function(v){return v instanceof u&&v.suppressUnhandledRejections(),this._then(h,void 0,void 0,{value:v},void 0)},u.prototype.throw=u.prototype.thenThrow=function(v){return this._then(p,void 0,void 0,{reason:v},void 0)},u.prototype.catchThrow=function(v){if(arguments.length<=1)return this._then(void 0,p,void 0,{reason:v},void 0);var b=arguments[1];return this.caught(v,function(){throw b})},u.prototype.catchReturn=function(v){if(arguments.length<=1)return v instanceof u&&v.suppressUnhandledRejections(),this._then(void 0,h,void 0,{value:v},void 0);var b=arguments[1];return b instanceof u&&b.suppressUnhandledRejections(),this.caught(v,function(){return b})}}},{}],11:[function(a,s,c){s.exports=function(u,h){var p=u.reduce,v=u.all;function b(){return v(this)}u.prototype.each=function(x){return p(this,x,h,0)._then(b,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(x){return p(this,x,h,h)},u.each=function(x,_){return p(x,_,h,0)._then(b,void 0,void 0,x,void 0)},u.mapSeries=function(x,_){return p(x,_,h,h)}}},{}],12:[function(a,s,c){var u,h,p=a("./es5"),v=p.freeze,b=a("./util"),x=b.inherits,_=b.notEnumerableProp;function w(B,W){function q(J){if(!(this instanceof q))return new q(J);_(this,"message",typeof J=="string"?J:W),_(this,"name",B),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return x(q,Error),q}var O=w("Warning","warning"),S=w("CancellationError","cancellation error"),E=w("TimeoutError","timeout error"),T=w("AggregateError","aggregate error");try{u=TypeError,h=RangeError}catch{u=w("TypeError","type error"),h=w("RangeError","range error")}for(var A="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),j=0;j<A.length;++j)typeof Array.prototype[A[j]]=="function"&&(T.prototype[A[j]]=Array.prototype[A[j]]);p.defineProperty(T.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),T.prototype.isOperational=!0;var N=0;function F(B){if(!(this instanceof F))return new F(B);_(this,"name","OperationalError"),_(this,"message",B),this.cause=B,this.isOperational=!0,B instanceof Error?(_(this,"message",B.message),_(this,"stack",B.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}T.prototype.toString=function(){var B=Array(4*N+1).join(" "),W=`
|
||
`+B+`AggregateError of:
|
||
`;N++,B=Array(4*N+1).join(" ");for(var q=0;q<this.length;++q){for(var J=this[q]===this?"[Circular AggregateError]":this[q]+"",Q=J.split(`
|
||
`),ne=0;ne<Q.length;++ne)Q[ne]=B+Q[ne];W+=(J=Q.join(`
|
||
`))+`
|
||
`}return N--,W},x(F,Error);var V=Error.__BluebirdErrorTypes__;V||(V=v({CancellationError:S,TimeoutError:E,OperationalError:F,RejectionError:F,AggregateError:T}),p.defineProperty(Error,"__BluebirdErrorTypes__",{value:V,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:u,RangeError:h,CancellationError:V.CancellationError,OperationalError:V.OperationalError,TimeoutError:V.TimeoutError,AggregateError:V.AggregateError,Warning:O}},{"./es5":13,"./util":36}],13:[function(a,s,c){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(x,_){var w=Object.getOwnPropertyDescriptor(x,_);return!(w&&!w.writable&&!w.set)}};else{var h={}.hasOwnProperty,p={}.toString,v={}.constructor.prototype,b=function(x){var _=[];for(var w in x)h.call(x,w)&&_.push(w);return _};s.exports={isArray:function(x){try{return p.call(x)==="[object Array]"}catch{return!1}},keys:b,names:b,defineProperty:function(x,_,w){return x[_]=w.value,x},getDescriptor:function(x,_){return{value:x[_]}},freeze:function(x){return x},getPrototypeOf:function(x){try{return Object(x).constructor.prototype}catch{return v}},isES5:u,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,c){s.exports=function(u,h){var p=u.map;u.prototype.filter=function(v,b){return p(this,v,b,h)},u.filter=function(v,b,x){return p(v,b,x,h)}}},{}],15:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.CancellationError,x=v.errorObj,_=a("./catch_filter")(p);function w(j,N,F){this.promise=j,this.type=N,this.handler=F,this.called=!1,this.cancelPromise=null}function O(j){this.finallyHandler=j}function S(j,N){return j.cancelPromise!=null&&(arguments.length>1?j.cancelPromise._reject(N):j.cancelPromise._cancel(),j.cancelPromise=null,!0)}function E(){return A.call(this,this.promise._target()._settledValue())}function T(j){if(!S(this,j))return x.e=j,x}function A(j){var N=this.promise,F=this.handler;if(!this.called){this.called=!0;var V=this.isFinallyHandler()?F.call(N._boundValue()):F.call(N._boundValue(),j);if(V===p)return V;if(V!==void 0){N._setReturnedNonUndefined();var B=h(V,N);if(B instanceof u){if(this.cancelPromise!=null){if(B._isCancelled()){var W=new b("late cancellation observer");return N._attachExtraTrace(W),x.e=W,x}B.isPending()&&B._attachCancellationCallback(new O(this))}return B._then(E,T,void 0,this,void 0)}}}return N.isRejected()?(S(this),x.e=j,x):(S(this),j)}return w.prototype.isFinallyHandler=function(){return this.type===0},O.prototype._resultCancelled=function(){S(this.finallyHandler)},u.prototype._passThrough=function(j,N,F,V){return typeof j!="function"?this.then():this._then(F,V,void 0,new w(this,N,j),void 0)},u.prototype.lastly=u.prototype.finally=function(j){return this._passThrough(j,0,A,A)},u.prototype.tap=function(j){return this._passThrough(j,1,A)},u.prototype.tapCatch=function(j){var N=arguments.length;if(N===1)return this._passThrough(j,1,void 0,A);var F,V=new Array(N-1),B=0;for(F=0;F<N-1;++F){var W=arguments[F];if(!v.isObject(W))return u.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+v.classString(W)));V[B++]=W}V.length=B;var q=arguments[F];return this._passThrough(_(V,q,this),1,void 0,A)},w}},{"./catch_filter":7,"./util":36}],16:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./errors").TypeError,w=a("./util"),O=w.errorObj,S=w.tryCatch,E=[];function T(A,j,N,F){if(x.cancellation()){var V=new u(p),B=this._finallyPromise=new u(p);this._promise=V.lastly(function(){return B}),V._captureStackTrace(),V._setOnCancel(this)}else(this._promise=new u(p))._captureStackTrace();this._stack=F,this._generatorFunction=A,this._receiver=j,this._generator=void 0,this._yieldHandlers=typeof N=="function"?[N].concat(E):E,this._yieldedPromise=null,this._cancellationPhase=!1}w.inherits(T,b),T.prototype._isResolved=function(){return this._promise===null},T.prototype._cleanup=function(){this._promise=this._generator=null,x.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},T.prototype._promiseCancelled=function(){if(!this._isResolved()){var A;if(this._generator.return!==void 0)this._promise._pushContext(),A=S(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var j=new u.CancellationError("generator .return() sentinel");u.coroutine.returnSentinel=j,this._promise._attachExtraTrace(j),this._promise._pushContext(),A=S(this._generator.throw).call(this._generator,j),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(A)}},T.prototype._promiseFulfilled=function(A){this._yieldedPromise=null,this._promise._pushContext();var j=S(this._generator.next).call(this._generator,A);this._promise._popContext(),this._continue(j)},T.prototype._promiseRejected=function(A){this._yieldedPromise=null,this._promise._attachExtraTrace(A),this._promise._pushContext();var j=S(this._generator.throw).call(this._generator,A);this._promise._popContext(),this._continue(j)},T.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof u){var A=this._yieldedPromise;this._yieldedPromise=null,A.cancel()}},T.prototype.promise=function(){return this._promise},T.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},T.prototype._continue=function(A){var j=this._promise;if(A===O)return this._cleanup(),this._cancellationPhase?j.cancel():j._rejectCallback(A.e,!1);var N=A.value;if(A.done===!0)return this._cleanup(),this._cancellationPhase?j.cancel():j._resolveCallback(N);var F=v(N,this._promise);if(F instanceof u||(F=function(B,W,q){for(var J=0;J<W.length;++J){q._pushContext();var Q=S(W[J])(B);if(q._popContext(),Q===O){q._pushContext();var ne=u.reject(O.e);return q._popContext(),ne}var ae=v(Q,q);if(ae instanceof u)return ae}return null}(F,this._yieldHandlers,this._promise))!==null){var V=(F=F._target())._bitField;50397184&V?33554432&V?u._async.invoke(this._promiseFulfilled,this,F._value()):16777216&V?u._async.invoke(this._promiseRejected,this,F._reason()):this._promiseCancelled():(this._yieldedPromise=F,F._proxy(this,null))}else this._promiseRejected(new _(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(N))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},u.coroutine=function(A,j){if(typeof A!="function")throw new _(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var N=Object(j).yieldHandler,F=T,V=new Error().stack;return function(){var B=A.apply(this,arguments),W=new F(void 0,void 0,N,V),q=W.promise();return W._generator=B,W._promiseFulfilled(void 0),q}},u.coroutine.addYieldHandler=function(A){if(typeof A!="function")throw new _("expecting a function but got "+w.classString(A));E.push(A)},u.spawn=function(A){if(x.deprecated("Promise.spawn()","Promise.coroutine()"),typeof A!="function")return h(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var j=new T(A,this),N=j.promise();return j._run(u.spawn),N}}},{"./errors":12,"./util":36}],17:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./util");_.canEvaluate,_.tryCatch,_.errorObj,u.join=function(){var w,O=arguments.length-1;O>0&&typeof arguments[O]=="function"&&(w=arguments[O]);var S=[].slice.call(arguments);w&&S.pop();var E=new h(S).promise();return w!==void 0?E.spread(w):E}}},{"./util":36}],18:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=u._getDomain,w=a("./util"),O=w.tryCatch,S=w.errorObj,E=u._async;function T(j,N,F,V){this.constructor$(j),this._promise._captureStackTrace();var B=_();this._callback=B===null?N:w.domainBind(B,N),this._preservedValues=V===b?new Array(this.length()):null,this._limit=F,this._inFlight=0,this._queue=[],E.invoke(this._asyncInit,this,void 0)}function A(j,N,F,V){if(typeof N!="function")return p("expecting a function but got "+w.classString(N));var B=0;if(F!==void 0){if(typeof F!="object"||F===null)return u.reject(new TypeError("options argument must be an object but it is "+w.classString(F)));if(typeof F.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+w.classString(F.concurrency)));B=F.concurrency}return new T(j,N,B=typeof B=="number"&&isFinite(B)&&B>=1?B:0,V).promise()}w.inherits(T,h),T.prototype._asyncInit=function(){this._init$(void 0,-2)},T.prototype._init=function(){},T.prototype._promiseFulfilled=function(j,N){var F=this._values,V=this.length(),B=this._preservedValues,W=this._limit;if(N<0){if(F[N=-1*N-1]=j,W>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(W>=1&&this._inFlight>=W)return F[N]=j,this._queue.push(N),!1;B!==null&&(B[N]=j);var q=this._promise,J=this._callback,Q=q._boundValue();q._pushContext();var ne=O(J).call(Q,j,N,V),ae=q._popContext();if(x.checkForgottenReturns(ne,ae,B!==null?"Promise.filter":"Promise.map",q),ne===S)return this._reject(ne.e),!0;var se=v(ne,this._promise);if(se instanceof u){var oe=(se=se._target())._bitField;if(!(50397184&oe))return W>=1&&this._inFlight++,F[N]=se,se._proxy(this,-1*(N+1)),!1;if(!(33554432&oe))return 16777216&oe?(this._reject(se._reason()),!0):(this._cancel(),!0);ne=se._value()}F[N]=ne}return++this._totalResolved>=V&&(B!==null?this._filter(F,B):this._resolve(F),!0)},T.prototype._drainQueue=function(){for(var j=this._queue,N=this._limit,F=this._values;j.length>0&&this._inFlight<N;){if(this._isResolved())return;var V=j.pop();this._promiseFulfilled(F[V],V)}},T.prototype._filter=function(j,N){for(var F=N.length,V=new Array(F),B=0,W=0;W<F;++W)j[W]&&(V[B++]=N[W]);V.length=B,this._resolve(V)},T.prototype.preservedValues=function(){return this._preservedValues},u.prototype.map=function(j,N){return A(this,j,N,null)},u.map=function(j,N,F,V){return A(j,N,F,V)}}},{"./util":36}],19:[function(a,s,c){s.exports=function(u,h,p,v,b){var x=a("./util"),_=x.tryCatch;u.method=function(w){if(typeof w!="function")throw new u.TypeError("expecting a function but got "+x.classString(w));return function(){var O=new u(h);O._captureStackTrace(),O._pushContext();var S=_(w).apply(this,arguments),E=O._popContext();return b.checkForgottenReturns(S,E,"Promise.method",O),O._resolveFromSyncValue(S),O}},u.attempt=u.try=function(w){if(typeof w!="function")return v("expecting a function but got "+x.classString(w));var O,S=new u(h);if(S._captureStackTrace(),S._pushContext(),arguments.length>1){b.deprecated("calling Promise.try with more than 1 argument");var E=arguments[1],T=arguments[2];O=x.isArray(E)?_(w).apply(T,E):_(w).call(T,E)}else O=_(w)();var A=S._popContext();return b.checkForgottenReturns(O,A,"Promise.try",S),S._resolveFromSyncValue(O),S},u.prototype._resolveFromSyncValue=function(w){w===x.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(a,s,c){var u=a("./util"),h=u.maybeWrapAsError,p=a("./errors").OperationalError,v=a("./es5"),b=/^(?:name|message|stack|cause)$/;function x(_){var w;if(function(T){return T instanceof Error&&v.getPrototypeOf(T)===Error.prototype}(_)){(w=new p(_)).name=_.name,w.message=_.message,w.stack=_.stack;for(var O=v.keys(_),S=0;S<O.length;++S){var E=O[S];b.test(E)||(w[E]=_[E])}return w}return u.markAsOriginatingFromRejection(_),_}s.exports=function(_,w){return function(O,S){if(_!==null){if(O){var E=x(h(O));_._attachExtraTrace(E),_._reject(E)}else if(w){var T=[].slice.call(arguments,1);_._fulfill(T)}else _._fulfill(S);_=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,c){s.exports=function(u){var h=a("./util"),p=u._async,v=h.tryCatch,b=h.errorObj;function x(O,S){if(!h.isArray(O))return _.call(this,O,S);var E=v(S).apply(this._boundValue(),[null].concat(O));E===b&&p.throwLater(E.e)}function _(O,S){var E=this._boundValue(),T=O===void 0?v(S).call(E,null):v(S).call(E,null,O);T===b&&p.throwLater(T.e)}function w(O,S){if(!O){var E=new Error(O+"");E.cause=O,O=E}var T=v(S).call(this._boundValue(),O);T===b&&p.throwLater(T.e)}u.prototype.asCallback=u.prototype.nodeify=function(O,S){if(typeof O=="function"){var E=_;S!==void 0&&Object(S).spread&&(E=x),this._then(E,w,void 0,this,O)}return this}}},{"./util":36}],22:[function(a,s,c){s.exports=function(){var u=function(){return new T(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},h=function(){return new K.PromiseInspection(this._target())},p=function(X){return K.reject(new T(X))};function v(){}var b,x={},_=a("./util");b=_.isNode?function(){var X=n.domain;return X===void 0&&(X=null),X}:function(){return null},_.notEnumerableProp(K,"_getDomain",b);var w=a("./es5"),O=a("./async"),S=new O;w.defineProperty(K,"_async",{value:S});var E=a("./errors"),T=K.TypeError=E.TypeError;K.RangeError=E.RangeError;var A=K.CancellationError=E.CancellationError;K.TimeoutError=E.TimeoutError,K.OperationalError=E.OperationalError,K.RejectionError=E.OperationalError,K.AggregateError=E.AggregateError;var j=function(){},N={},F={},V=a("./thenables")(K,j),B=a("./promise_array")(K,j,V,p,v),W=a("./context")(K),q=W.create,J=a("./debuggability")(K,W),Q=(J.CapturedTrace,a("./finally")(K,V,F)),ne=a("./catch_filter")(F),ae=a("./nodeback"),se=_.errorObj,oe=_.tryCatch;function K(X){X!==j&&function(le,ce){if(le==null||le.constructor!==K)throw new T(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof ce!="function")throw new T("expecting a function but got "+_.classString(ce))}(this,X),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(X),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function G(X){this.promise._resolveCallback(X)}function z(X){this.promise._rejectCallback(X,!1)}function re(X){var le=new K(j);le._fulfillmentHandler0=X,le._rejectionHandler0=X,le._promise0=X,le._receiver0=X}return K.prototype.toString=function(){return"[object Promise]"},K.prototype.caught=K.prototype.catch=function(X){var le=arguments.length;if(le>1){var ce,de=new Array(le-1),be=0;for(ce=0;ce<le-1;++ce){var M=arguments[ce];if(!_.isObject(M))return p("Catch statement predicate: expecting an object but got "+_.classString(M));de[be++]=M}return de.length=be,X=arguments[ce],this.then(void 0,ne(de,X,this))}return this.then(void 0,X)},K.prototype.reflect=function(){return this._then(h,h,void 0,this,void 0)},K.prototype.then=function(X,le){if(J.warnings()&&arguments.length>0&&typeof X!="function"&&typeof le!="function"){var ce=".then() only accepts functions but was passed: "+_.classString(X);arguments.length>1&&(ce+=", "+_.classString(le)),this._warn(ce)}return this._then(X,le,void 0,void 0,void 0)},K.prototype.done=function(X,le){this._then(X,le,void 0,void 0,void 0)._setIsFinal()},K.prototype.spread=function(X){return typeof X!="function"?p("expecting a function but got "+_.classString(X)):this.all()._then(X,void 0,void 0,N,void 0)},K.prototype.toJSON=function(){var X={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(X.fulfillmentValue=this.value(),X.isFulfilled=!0):this.isRejected()&&(X.rejectionReason=this.reason(),X.isRejected=!0),X},K.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new B(this).promise()},K.prototype.error=function(X){return this.caught(_.originatesFromRejection,X)},K.getNewLibraryCopy=s.exports,K.is=function(X){return X instanceof K},K.fromNode=K.fromCallback=function(X){var le=new K(j);le._captureStackTrace();var ce=arguments.length>1&&!!Object(arguments[1]).multiArgs,de=oe(X)(ae(le,ce));return de===se&&le._rejectCallback(de.e,!0),le._isFateSealed()||le._setAsyncGuaranteed(),le},K.all=function(X){return new B(X).promise()},K.cast=function(X){var le=V(X);return le instanceof K||((le=new K(j))._captureStackTrace(),le._setFulfilled(),le._rejectionHandler0=X),le},K.resolve=K.fulfilled=K.cast,K.reject=K.rejected=function(X){var le=new K(j);return le._captureStackTrace(),le._rejectCallback(X,!0),le},K.setScheduler=function(X){if(typeof X!="function")throw new T("expecting a function but got "+_.classString(X));return S.setScheduler(X)},K.prototype._then=function(X,le,ce,de,be){var M=be!==void 0,$=M?be:new K(j),Y=this._target(),ue=Y._bitField;M||($._propagateFrom(this,3),$._captureStackTrace(),de===void 0&&2097152&this._bitField&&(de=50397184&ue?this._boundValue():Y===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,$));var ie=b();if(50397184&ue){var he,Se,Fe=Y._settlePromiseCtx;33554432&ue?(Se=Y._rejectionHandler0,he=X):16777216&ue?(Se=Y._fulfillmentHandler0,he=le,Y._unsetRejectionIsUnhandled()):(Fe=Y._settlePromiseLateCancellationObserver,Se=new A("late cancellation observer"),Y._attachExtraTrace(Se),he=le),S.invoke(Fe,Y,{handler:ie===null?he:typeof he=="function"&&_.domainBind(ie,he),promise:$,receiver:de,value:Se})}else Y._addCallbacks(X,le,$,de,ie);return $},K.prototype._length=function(){return 65535&this._bitField},K.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},K.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},K.prototype._setLength=function(X){this._bitField=-65536&this._bitField|65535&X},K.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},K.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},K.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},K.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},K.prototype._isFinal=function(){return(4194304&this._bitField)>0},K.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},K.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},K.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},K.prototype._setAsyncGuaranteed=function(){S.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},K.prototype._receiverAt=function(X){var le=X===0?this._receiver0:this[4*X-4+3];if(le!==x)return le===void 0&&this._isBound()?this._boundValue():le},K.prototype._promiseAt=function(X){return this[4*X-4+2]},K.prototype._fulfillmentHandlerAt=function(X){return this[4*X-4+0]},K.prototype._rejectionHandlerAt=function(X){return this[4*X-4+1]},K.prototype._boundValue=function(){},K.prototype._migrateCallback0=function(X){X._bitField;var le=X._fulfillmentHandler0,ce=X._rejectionHandler0,de=X._promise0,be=X._receiverAt(0);be===void 0&&(be=x),this._addCallbacks(le,ce,de,be,null)},K.prototype._migrateCallbackAt=function(X,le){var ce=X._fulfillmentHandlerAt(le),de=X._rejectionHandlerAt(le),be=X._promiseAt(le),M=X._receiverAt(le);M===void 0&&(M=x),this._addCallbacks(ce,de,be,M,null)},K.prototype._addCallbacks=function(X,le,ce,de,be){var M=this._length();if(M>=65531&&(M=0,this._setLength(0)),M===0)this._promise0=ce,this._receiver0=de,typeof X=="function"&&(this._fulfillmentHandler0=be===null?X:_.domainBind(be,X)),typeof le=="function"&&(this._rejectionHandler0=be===null?le:_.domainBind(be,le));else{var $=4*M-4;this[$+2]=ce,this[$+3]=de,typeof X=="function"&&(this[$+0]=be===null?X:_.domainBind(be,X)),typeof le=="function"&&(this[$+1]=be===null?le:_.domainBind(be,le))}return this._setLength(M+1),M},K.prototype._proxy=function(X,le){this._addCallbacks(void 0,void 0,le,X,null)},K.prototype._resolveCallback=function(X,le){if(!(117506048&this._bitField)){if(X===this)return this._rejectCallback(u(),!1);var ce=V(X,this);if(!(ce instanceof K))return this._fulfill(X);le&&this._propagateFrom(ce,2);var de=ce._target();if(de!==this){var be=de._bitField;if(50397184&be)if(33554432&be)this._fulfill(de._value());else if(16777216&be)this._reject(de._reason());else{var Y=new A("late cancellation observer");de._attachExtraTrace(Y),this._reject(Y)}else{var M=this._length();M>0&&de._migrateCallback0(this);for(var $=1;$<M;++$)de._migrateCallbackAt(this,$);this._setFollowing(),this._setLength(0),this._setFollowee(de)}}else this._reject(u())}},K.prototype._rejectCallback=function(X,le,ce){var de=_.ensureErrorObject(X),be=de===X;if(!be&&!ce&&J.warnings()){var M="a promise was rejected with a non-error: "+_.classString(X);this._warn(M,!0)}this._attachExtraTrace(de,!!le&&be),this._reject(X)},K.prototype._resolveFromExecutor=function(X){if(X!==j){var le=this;this._captureStackTrace(),this._pushContext();var ce=!0,de=this._execute(X,function(be){le._resolveCallback(be)},function(be){le._rejectCallback(be,ce)});ce=!1,this._popContext(),de!==void 0&&le._rejectCallback(de,!0)}},K.prototype._settlePromiseFromHandler=function(X,le,ce,de){var be=de._bitField;if(!(65536&be)){var M;de._pushContext(),le===N?ce&&typeof ce.length=="number"?M=oe(X).apply(this._boundValue(),ce):(M=se).e=new T("cannot .spread() a non-array: "+_.classString(ce)):M=oe(X).call(le,ce);var $=de._popContext();!(65536&(be=de._bitField))&&(M===F?de._reject(ce):M===se?de._rejectCallback(M.e,!1):(J.checkForgottenReturns(M,$,"",de,this),de._resolveCallback(M)))}},K.prototype._target=function(){for(var X=this;X._isFollowing();)X=X._followee();return X},K.prototype._followee=function(){return this._rejectionHandler0},K.prototype._setFollowee=function(X){this._rejectionHandler0=X},K.prototype._settlePromise=function(X,le,ce,de){var be=X instanceof K,M=this._bitField,$=(134217728&M)!=0;65536&M?(be&&X._invokeInternalOnCancel(),ce instanceof Q&&ce.isFinallyHandler()?(ce.cancelPromise=X,oe(le).call(ce,de)===se&&X._reject(se.e)):le===h?X._fulfill(h.call(ce)):ce instanceof v?ce._promiseCancelled(X):be||X instanceof B?X._cancel():ce.cancel()):typeof le=="function"?be?($&&X._setAsyncGuaranteed(),this._settlePromiseFromHandler(le,ce,de,X)):le.call(ce,de,X):ce instanceof v?ce._isResolved()||(33554432&M?ce._promiseFulfilled(de,X):ce._promiseRejected(de,X)):be&&($&&X._setAsyncGuaranteed(),33554432&M?X._fulfill(de):X._reject(de))},K.prototype._settlePromiseLateCancellationObserver=function(X){var le=X.handler,ce=X.promise,de=X.receiver,be=X.value;typeof le=="function"?ce instanceof K?this._settlePromiseFromHandler(le,de,be,ce):le.call(de,be,ce):ce instanceof K&&ce._reject(be)},K.prototype._settlePromiseCtx=function(X){this._settlePromise(X.promise,X.handler,X.receiver,X.value)},K.prototype._settlePromise0=function(X,le,ce){var de=this._promise0,be=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(de,X,be,le)},K.prototype._clearCallbackDataAtIndex=function(X){var le=4*X-4;this[le+2]=this[le+3]=this[le+0]=this[le+1]=void 0},K.prototype._fulfill=function(X){var le=this._bitField;if(!((117506048&le)>>>16)){if(X===this){var ce=u();return this._attachExtraTrace(ce),this._reject(ce)}this._setFulfilled(),this._rejectionHandler0=X,(65535&le)>0&&(134217728&le?this._settlePromises():S.settlePromises(this))}},K.prototype._reject=function(X){var le=this._bitField;if(!((117506048&le)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=X,this._isFinal())return S.fatalError(X,_.isNode);(65535&le)>0?S.settlePromises(this):this._ensurePossibleRejectionHandled()}},K.prototype._fulfillPromises=function(X,le){for(var ce=1;ce<X;ce++){var de=this._fulfillmentHandlerAt(ce),be=this._promiseAt(ce),M=this._receiverAt(ce);this._clearCallbackDataAtIndex(ce),this._settlePromise(be,de,M,le)}},K.prototype._rejectPromises=function(X,le){for(var ce=1;ce<X;ce++){var de=this._rejectionHandlerAt(ce),be=this._promiseAt(ce),M=this._receiverAt(ce);this._clearCallbackDataAtIndex(ce),this._settlePromise(be,de,M,le)}},K.prototype._settlePromises=function(){var X=this._bitField,le=65535&X;if(le>0){if(16842752&X){var ce=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ce,X),this._rejectPromises(le,ce)}else{var de=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,de,X),this._fulfillPromises(le,de)}this._setLength(0)}this._clearCancellationData()},K.prototype._settledValue=function(){var X=this._bitField;return 33554432&X?this._rejectionHandler0:16777216&X?this._fulfillmentHandler0:void 0},K.defer=K.pending=function(){return J.deprecated("Promise.defer","new Promise"),{promise:new K(j),resolve:G,reject:z}},_.notEnumerableProp(K,"_makeSelfResolutionError",u),a("./method")(K,j,V,p,J),a("./bind")(K,j,V,J),a("./cancel")(K,B,p,J),a("./direct_resolve")(K),a("./synchronous_inspection")(K),a("./join")(K,B,V,j,S,b),K.Promise=K,K.version="3.5.1",a("./map.js")(K,B,p,V,j,J),a("./call_get.js")(K),a("./using.js")(K,p,V,q,j,J),a("./timers.js")(K,j,J),a("./generators.js")(K,p,j,V,v,J),a("./nodeify.js")(K),a("./promisify.js")(K,j),a("./props.js")(K,B,V,p),a("./race.js")(K,j,V,p),a("./reduce.js")(K,B,p,V,j,J),a("./settle.js")(K,B,J),a("./some.js")(K,B,p),a("./filter.js")(K,j),a("./each.js")(K,j),a("./any.js")(K),_.toFastProperties(K),_.toFastProperties(K.prototype),re({a:1}),re({b:2}),re({c:3}),re(1),re(function(){}),re(void 0),re(!1),re(new K(j)),J.setBounds(O.firstLineError,_.lastLineError),K}},{"./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,c){s.exports=function(u,h,p,v,b){var x=a("./util");function _(w){var O=this._promise=new u(h);w instanceof u&&O._propagateFrom(w,3),O._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return x.isArray,x.inherits(_,b),_.prototype.length=function(){return this._length},_.prototype.promise=function(){return this._promise},_.prototype._init=function w(O,S){var E=p(this._values,this._promise);if(E instanceof u){var T=(E=E._target())._bitField;if(this._values=E,(50397184&T)==0)return this._promise._setAsyncGuaranteed(),E._then(w,this._reject,void 0,this,S);if(!(33554432&T))return 16777216&T?this._reject(E._reason()):this._cancel();E=E._value()}if((E=x.asArray(E))!==null)E.length!==0?this._iterate(E):S===-5?this._resolveEmptyArray():this._resolve(function(j){switch(S){case-2:return[];case-3:return{};case-6:return new Map}}());else{var A=v("expecting an array or an iterable object but got "+x.classString(E)).reason();this._promise._rejectCallback(A,!1)}},_.prototype._iterate=function(w){var O=this.getActualLength(w.length);this._length=O,this._values=this.shouldCopyValues()?new Array(O):this._values;for(var S=this._promise,E=!1,T=null,A=0;A<O;++A){var j=p(w[A],S);T=j instanceof u?(j=j._target())._bitField:null,E?T!==null&&j.suppressUnhandledRejections():T!==null?50397184&T?E=33554432&T?this._promiseFulfilled(j._value(),A):16777216&T?this._promiseRejected(j._reason(),A):this._promiseCancelled(A):(j._proxy(this,A),this._values[A]=j):E=this._promiseFulfilled(j,A)}E||S._setAsyncGuaranteed()},_.prototype._isResolved=function(){return this._values===null},_.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},_.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},_.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},_.prototype._promiseFulfilled=function(w,O){return this._values[O]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseCancelled=function(){return this._cancel(),!0},_.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},_.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof u)w.cancel();else for(var O=0;O<w.length;++O)w[O]instanceof u&&w[O].cancel()}},_.prototype.shouldCopyValues=function(){return!0},_.prototype.getActualLength=function(w){return w},_}},{"./util":36}],24:[function(a,s,c){s.exports=function(u,h){var p={},v=a("./util"),b=a("./nodeback"),x=v.withAppended,_=v.maybeWrapAsError,w=v.canEvaluate,O=a("./errors").TypeError,S={__isPromisified__:!0},E=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),T=function(q){return v.isIdentifier(q)&&q.charAt(0)!=="_"&&q!=="constructor"};function A(q){return!E.test(q)}function j(q){try{return q.__isPromisified__===!0}catch{return!1}}function N(q,J,Q){var ne=v.getDataPropertyOrDefault(q,J+Q,S);return!!ne&&j(ne)}function F(q,J,Q,ne){for(var ae=v.inheritedDataKeys(q),se=[],oe=0;oe<ae.length;++oe){var K=ae[oe],G=q[K],z=ne===T||T(K);typeof G!="function"||j(G)||N(q,K,J)||!ne(K,G,q,z)||se.push(K,G)}return function(re,X,le){for(var ce=0;ce<re.length;ce+=2){var de=re[ce];if(le.test(de)){for(var be=de.replace(le,""),M=0;M<re.length;M+=2)if(re[M]===be)throw new O(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",X))}}}(se,J,Q),se}var V=function(q){return q.replace(/([$])/,"\\$")},B=w?void 0:function(q,J,Q,ne,ae,se){var oe=function(){return this}(),K=q;function G(){var z=J;J===p&&(z=this);var re=new u(h);re._captureStackTrace();var X=typeof K=="string"&&this!==oe?this[K]:q,le=b(re,se);try{X.apply(z,x(arguments,le))}catch(ce){re._rejectCallback(_(ce),!0,!0)}return re._isFateSealed()||re._setAsyncGuaranteed(),re}return typeof K=="string"&&(q=ne),v.notEnumerableProp(G,"__isPromisified__",!0),G};function W(q,J,Q,ne,ae){for(var se=new RegExp(V(J)+"$"),oe=F(q,J,se,Q),K=0,G=oe.length;K<G;K+=2){var z=oe[K],re=oe[K+1],X=z+J;if(ne===B)q[X]=B(z,p,z,re,J,ae);else{var le=ne(re,function(){return B(z,p,z,re,J,ae)});v.notEnumerableProp(le,"__isPromisified__",!0),q[X]=le}}return v.toFastProperties(q),q}u.promisify=function(q,J){if(typeof q!="function")throw new O("expecting a function but got "+v.classString(q));if(j(q))return q;var Q=(J=Object(J)).context===void 0?p:J.context,ne=!!J.multiArgs,ae=function(se,oe,K){return B(se,oe,void 0,se,null,ne)}(q,Q);return v.copyDescriptors(q,ae,A),ae},u.promisifyAll=function(q,J){if(typeof q!="function"&&typeof q!="object")throw new O(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var Q=!!(J=Object(J)).multiArgs,ne=J.suffix;typeof ne!="string"&&(ne="Async");var ae=J.filter;typeof ae!="function"&&(ae=T);var se=J.promisifier;if(typeof se!="function"&&(se=B),!v.isIdentifier(ne))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var oe=v.inheritedDataKeys(q),K=0;K<oe.length;++K){var G=q[oe[K]];oe[K]!=="constructor"&&v.isClass(G)&&(W(G.prototype,ne,ae,se,Q),W(G,ne,ae,se,Q))}return W(q,ne,ae,se,Q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,c){s.exports=function(u,h,p,v){var b,x=a("./util"),_=x.isObject,w=a("./es5");typeof Map=="function"&&(b=Map);var O=function(){var T=0,A=0;function j(N,F){this[T]=N,this[T+A]=F,T++}return function(N){A=N.size,T=0;var F=new Array(2*N.size);return N.forEach(j,F),F}}();function S(T){var A,j=!1;if(b!==void 0&&T instanceof b)A=O(T),j=!0;else{var N=w.keys(T),F=N.length;A=new Array(2*F);for(var V=0;V<F;++V){var B=N[V];A[V]=T[B],A[V+F]=B}}this.constructor$(A),this._isMap=j,this._init$(void 0,j?-6:-3)}function E(T){var A,j=p(T);return _(j)?(A=j instanceof u?j._then(u.props,void 0,void 0,void 0,void 0):new S(j).promise(),j instanceof u&&A._propagateFrom(j,2),A):v(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}x.inherits(S,h),S.prototype._init=function(){},S.prototype._promiseFulfilled=function(T,A){if(this._values[A]=T,++this._totalResolved>=this._length){var j;if(this._isMap)j=function(B){for(var W=new b,q=B.length/2|0,J=0;J<q;++J){var Q=B[q+J],ne=B[J];W.set(Q,ne)}return W}(this._values);else{j={};for(var N=this.length(),F=0,V=this.length();F<V;++F)j[this._values[F+N]]=this._values[F]}return this._resolve(j),!0}return!1},S.prototype.shouldCopyValues=function(){return!1},S.prototype.getActualLength=function(T){return T>>1},u.prototype.props=function(){return E(this)},u.props=function(T){return E(T)}}},{"./es5":13,"./util":36}],26:[function(a,s,c){function u(h){this._capacity=h,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(h){return this._capacity<h},u.prototype._pushOne=function(h){var p=this.length();this._checkCapacity(p+1),this[this._front+p&this._capacity-1]=h,this._length=p+1},u.prototype.push=function(h,p,v){var b=this.length()+3;if(this._willBeOverCapacity(b))return this._pushOne(h),this._pushOne(p),void this._pushOne(v);var x=this._front+b-3;this._checkCapacity(b);var _=this._capacity-1;this[x+0&_]=h,this[x+1&_]=p,this[x+2&_]=v,this._length=b},u.prototype.shift=function(){var h=this._front,p=this[h];return this[h]=void 0,this._front=h+1&this._capacity-1,this._length--,p},u.prototype.length=function(){return this._length},u.prototype._checkCapacity=function(h){this._capacity<h&&this._resizeTo(this._capacity<<1)},u.prototype._resizeTo=function(h){var p=this._capacity;this._capacity=h,function(v,b,x,_,w){for(var O=0;O<w;++O)x[O+_]=v[O+0],v[O+0]=void 0}(this,0,this,p,this._front+this._length&p-1)},s.exports=u},{}],27:[function(a,s,c){s.exports=function(u,h,p,v){var b=a("./util"),x=function(w){return w.then(function(O){return _(O,w)})};function _(w,O){var S=p(w);if(S instanceof u)return x(S);if((w=b.asArray(w))===null)return v("expecting an array or an iterable object but got "+b.classString(w));var E=new u(h);O!==void 0&&E._propagateFrom(O,3);for(var T=E._fulfill,A=E._reject,j=0,N=w.length;j<N;++j){var F=w[j];(F!==void 0||j in w)&&u.cast(F)._then(T,A,void 0,E,null)}return E}u.race=function(w){return _(w,void 0)},u.prototype.race=function(){return _(this,void 0)}}},{"./util":36}],28:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=u._getDomain,w=a("./util"),O=w.tryCatch;function S(N,F,V,B){this.constructor$(N);var W=_();this._fn=W===null?F:w.domainBind(W,F),V!==void 0&&(V=u.resolve(V))._attachCancellationCallback(this),this._initialValue=V,this._currentCancellable=null,this._eachValues=B===b?Array(this._length):B===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function E(N,F){this.isFulfilled()?F._resolve(N):F._reject(N)}function T(N,F,V,B){return typeof F!="function"?p("expecting a function but got "+w.classString(F)):new S(N,F,V,B).promise()}function A(N){this.accum=N,this.array._gotAccum(N);var F=v(this.value,this.array._promise);return F instanceof u?(this.array._currentCancellable=F,F._then(j,void 0,void 0,this,void 0)):j.call(this,F)}function j(N){var F,V=this.array,B=V._promise,W=O(V._fn);B._pushContext(),(F=V._eachValues!==void 0?W.call(B._boundValue(),N,this.index,this.length):W.call(B._boundValue(),this.accum,N,this.index,this.length))instanceof u&&(V._currentCancellable=F);var q=B._popContext();return x.checkForgottenReturns(F,q,V._eachValues!==void 0?"Promise.each":"Promise.reduce",B),F}w.inherits(S,h),S.prototype._gotAccum=function(N){this._eachValues!==void 0&&this._eachValues!==null&&N!==b&&this._eachValues.push(N)},S.prototype._eachComplete=function(N){return this._eachValues!==null&&this._eachValues.push(N),this._eachValues},S.prototype._init=function(){},S.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},S.prototype.shouldCopyValues=function(){return!1},S.prototype._resolve=function(N){this._promise._resolveCallback(N),this._values=null},S.prototype._resultCancelled=function(N){if(N===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof u&&this._currentCancellable.cancel(),this._initialValue instanceof u&&this._initialValue.cancel())},S.prototype._iterate=function(N){var F,V;this._values=N;var B=N.length;if(this._initialValue!==void 0?(F=this._initialValue,V=0):(F=u.resolve(N[0]),V=1),this._currentCancellable=F,!F.isRejected())for(;V<B;++V){var W={accum:null,value:N[V],index:V,length:B,array:this};F=F._then(A,void 0,void 0,W,void 0)}this._eachValues!==void 0&&(F=F._then(this._eachComplete,void 0,void 0,this,void 0)),F._then(E,E,void 0,F,this)},u.prototype.reduce=function(N,F){return T(this,N,F,null)},u.reduce=function(N,F,V,B){return T(N,F,V,B)}}},{"./util":36}],29:[function(a,s,c){var u,h=a("./util"),p=h.getNativePromise();if(h.isNode&&typeof MutationObserver>"u"){var v=i.setImmediate,b=n.nextTick;u=h.isRecentNode?function(_){v.call(i,_)}:function(_){b.call(n,_)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var x=p.resolve();u=function(_){x.then(_)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(_){o(_)}:typeof setTimeout<"u"?function(_){setTimeout(_,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var _=document.createElement("div"),w={attributes:!0},O=!1,S=document.createElement("div");return new MutationObserver(function(){_.classList.toggle("foo"),O=!1}).observe(S,w),function(E){var T=new MutationObserver(function(){T.disconnect(),E()});T.observe(_,w),O||(O=!0,S.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,c){s.exports=function(u,h,p){var v=u.PromiseInspection;function b(x){this.constructor$(x)}a("./util").inherits(b,h),b.prototype._promiseResolved=function(x,_){return this._values[x]=_,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},b.prototype._promiseFulfilled=function(x,_){var w=new v;return w._bitField=33554432,w._settledValueField=x,this._promiseResolved(_,w)},b.prototype._promiseRejected=function(x,_){var w=new v;return w._bitField=16777216,w._settledValueField=x,this._promiseResolved(_,w)},u.settle=function(x){return p.deprecated(".settle()",".reflect()"),new b(x).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=a("./errors").RangeError,x=a("./errors").AggregateError,_=v.isArray,w={};function O(E){this.constructor$(E),this._howMany=0,this._unwrap=!1,this._initialized=!1}function S(E,T){if((0|T)!==T||T<0)return p(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var A=new O(E),j=A.promise();return A.setHowMany(T),A.init(),j}v.inherits(O,h),O.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var E=_(this._values);!this._isResolved()&&E&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},O.prototype.init=function(){this._initialized=!0,this._init()},O.prototype.setUnwrap=function(){this._unwrap=!0},O.prototype.howMany=function(){return this._howMany},O.prototype.setHowMany=function(E){this._howMany=E},O.prototype._promiseFulfilled=function(E){return this._addFulfilled(E),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},O.prototype._promiseRejected=function(E){return this._addRejected(E),this._checkOutcome()},O.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},O.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var E=new x,T=this.length();T<this._values.length;++T)this._values[T]!==w&&E.push(this._values[T]);return E.length>0?this._reject(E):this._cancel(),!0}return!1},O.prototype._fulfilled=function(){return this._totalResolved},O.prototype._rejected=function(){return this._values.length-this.length()},O.prototype._addRejected=function(E){this._values.push(E)},O.prototype._addFulfilled=function(E){this._values[this._totalResolved++]=E},O.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},O.prototype._getRangeError=function(E){var T="Input array must contain at least "+this._howMany+" items but contains only "+E+" items";return new b(T)},O.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(E,T){return S(E,T)},u.prototype.some=function(E){return S(this,E)},u._SomePromiseArray=O}},{"./errors":12,"./util":36}],32:[function(a,s,c){s.exports=function(u){function h(O){O!==void 0?(O=O._target(),this._bitField=O._bitField,this._settledValueField=O._isFateSealed()?O._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}h.prototype._settledValue=function(){return this._settledValueField};var p=h.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},v=h.prototype.error=h.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},b=h.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},x=h.prototype.isRejected=function(){return(16777216&this._bitField)!=0},_=h.prototype.isPending=function(){return(50397184&this._bitField)==0},w=h.prototype.isResolved=function(){return(50331648&this._bitField)!=0};h.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 _.call(this._target())},u.prototype.isRejected=function(){return x.call(this._target())},u.prototype.isFulfilled=function(){return b.call(this._target())},u.prototype.isResolved=function(){return w.call(this._target())},u.prototype.value=function(){return p.call(this._target())},u.prototype.reason=function(){var O=this._target();return O._unsetRejectionIsUnhandled(),v.call(O)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=h}},{}],33:[function(a,s,c){s.exports=function(u,h){var p=a("./util"),v=p.errorObj,b=p.isObject,x={}.hasOwnProperty;return function(_,w){if(b(_)){if(_ instanceof u)return _;var O=function(E){try{return function(T){return T.then}(E)}catch(T){return v.e=T,v}}(_);if(O===v){w&&w._pushContext();var S=u.reject(O.e);return w&&w._popContext(),S}if(typeof O=="function")return function(E){try{return x.call(E,"_promise0")}catch{return!1}}(_)?(S=new u(h),_._then(S._fulfill,S._reject,void 0,S,null),S):function(E,T,A){var j=new u(h),N=j;A&&A._pushContext(),j._captureStackTrace(),A&&A._popContext();var F=!0,V=p.tryCatch(T).call(E,function(B){j&&(j._resolveCallback(B),j=null)},function(B){j&&(j._rejectCallback(B,F,!0),j=null)});return F=!1,j&&V===v&&(j._rejectCallback(V.e,!0,!0),j=null),N}(_,O,w)}return _}}},{"./util":36}],34:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.TimeoutError;function x(E){this.handle=E}x.prototype._resultCancelled=function(){clearTimeout(this.handle)};var _=function(E){return w(+this).thenReturn(E)},w=u.delay=function(E,T){var A,j;return T!==void 0?(A=u.resolve(T)._then(_,null,null,E,void 0),p.cancellation()&&T instanceof u&&A._setOnCancel(T)):(A=new u(h),j=setTimeout(function(){A._fulfill()},+E),p.cancellation()&&A._setOnCancel(new x(j)),A._captureStackTrace()),A._setAsyncGuaranteed(),A};function O(E){return clearTimeout(this.handle),E}function S(E){throw clearTimeout(this.handle),E}u.prototype.delay=function(E){return w(E,this)},u.prototype.timeout=function(E,T){var A,j;E=+E;var N=new x(setTimeout(function(){A.isPending()&&function(F,V,B){var W;W=typeof V!="string"?V instanceof Error?V:new b("operation timed out"):new b(V),v.markAsOriginatingFromRejection(W),F._attachExtraTrace(W),F._reject(W),B!=null&&B.cancel()}(A,T,j)},E));return p.cancellation()?(j=this.then(),(A=j._then(O,S,void 0,N,void 0))._setOnCancel(N)):A=this._then(O,S,void 0,N,void 0),A}}},{"./util":36}],35:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./util"),w=a("./errors").TypeError,O=a("./util").inherits,S=_.errorObj,E=_.tryCatch,T={};function A(W){setTimeout(function(){throw W},0)}function j(W,q){var J=0,Q=W.length,ne=new u(b);return function ae(){if(J>=Q)return ne._fulfill();var se=function(oe){var K=p(oe);return K!==oe&&typeof oe._isDisposable=="function"&&typeof oe._getDisposer=="function"&&oe._isDisposable()&&K._setDisposable(oe._getDisposer()),K}(W[J++]);if(se instanceof u&&se._isDisposable()){try{se=p(se._getDisposer().tryDispose(q),W.promise)}catch(oe){return A(oe)}if(se instanceof u)return se._then(ae,A,null,null,null)}ae()}(),ne}function N(W,q,J){this._data=W,this._promise=q,this._context=J}function F(W,q,J){this.constructor$(W,q,J)}function V(W){return N.isDisposer(W)?(this.resources[this.index]._setDisposable(W),W.promise()):W}function B(W){this.length=W,this.promise=null,this[W-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():T},N.prototype.tryDispose=function(W){var q=this.resource(),J=this._context;J!==void 0&&J._pushContext();var Q=q!==T?this.doDispose(q,W):null;return J!==void 0&&J._popContext(),this._promise._unsetDisposable(),this._data=null,Q},N.isDisposer=function(W){return W!=null&&typeof W.resource=="function"&&typeof W.tryDispose=="function"},O(F,N),F.prototype.doDispose=function(W,q){return this.data().call(W,W,q)},B.prototype._resultCancelled=function(){for(var W=this.length,q=0;q<W;++q){var J=this[q];J instanceof u&&J.cancel()}},u.using=function(){var W=arguments.length;if(W<2)return h("you must pass at least 2 arguments to Promise.using");var q,J=arguments[W-1];if(typeof J!="function")return h("expecting a function but got "+_.classString(J));var Q=!0;W===2&&Array.isArray(arguments[0])?(W=(q=arguments[0]).length,Q=!1):(q=arguments,W--);for(var ne=new B(W),ae=0;ae<W;++ae){var se=q[ae];if(N.isDisposer(se)){var oe=se;(se=se.promise())._setDisposable(oe)}else{var K=p(se);K instanceof u&&(se=K._then(V,null,null,{resources:ne,index:ae},void 0))}ne[ae]=se}var G=new Array(ne.length);for(ae=0;ae<G.length;++ae)G[ae]=u.resolve(ne[ae]).reflect();var z=u.all(G).then(function(X){for(var le=0;le<X.length;++le){var ce=X[le];if(ce.isRejected())return S.e=ce.error(),S;if(!ce.isFulfilled())return void z.cancel();X[le]=ce.value()}re._pushContext(),J=E(J);var de=Q?J.apply(void 0,X):J(X),be=re._popContext();return x.checkForgottenReturns(de,be,"Promise.using",re),de}),re=z.lastly(function(){var X=new u.PromiseInspection(z);return j(ne,X)});return ne.promise=re,re._setOnCancel(ne),re},u.prototype._setDisposable=function(W){this._bitField=131072|this._bitField,this._disposer=W},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(W){if(typeof W=="function")return new F(W,this,v());throw new w}}},{"./errors":12,"./util":36}],36:[function(a,s,c){var u,h=a("./es5"),p=typeof navigator>"u",v={e:{}},b=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function x(){try{var Q=u;return u=null,Q.apply(this,arguments)}catch(ne){return v.e=ne,v}}function _(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function w(Q,ne,ae){if(_(Q))return Q;var se={value:ae,configurable:!0,enumerable:!1,writable:!0};return h.defineProperty(Q,ne,se),Q}var O=function(){var Q=[Array.prototype,Object.prototype,Function.prototype],ne=function(oe){for(var K=0;K<Q.length;++K)if(Q[K]===oe)return!0;return!1};if(h.isES5){var ae=Object.getOwnPropertyNames;return function(oe){for(var K=[],G=Object.create(null);oe!=null&&!ne(oe);){var z;try{z=ae(oe)}catch{return K}for(var re=0;re<z.length;++re){var X=z[re];if(!G[X]){G[X]=!0;var le=Object.getOwnPropertyDescriptor(oe,X);le!=null&&le.get==null&&le.set==null&&K.push(X)}}oe=h.getPrototypeOf(oe)}return K}}var se={}.hasOwnProperty;return function(oe){if(ne(oe))return[];var K=[];e:for(var G in oe)if(se.call(oe,G))K.push(G);else{for(var z=0;z<Q.length;++z)if(se.call(Q[z],G))continue e;K.push(G)}return K}}(),S=/this\s*\.\s*\S+\s*=/,E=/^[a-z$_][a-z$_0-9]*$/i;function T(Q){try{return Q+""}catch{return"[no string representation]"}}function A(Q){return Q instanceof Error||Q!==null&&typeof Q=="object"&&typeof Q.message=="string"&&typeof Q.name=="string"}function j(Q){return A(Q)&&h.propertyIsWritable(Q,"stack")}var N="stack"in new Error?function(Q){return j(Q)?Q:new Error(T(Q))}:function(Q){if(j(Q))return Q;try{throw new Error(T(Q))}catch(ne){return ne}};function F(Q){return{}.toString.call(Q)}var V=function(Q){return h.isArray(Q)?Q:null};if(typeof Symbol<"u"&&Symbol.iterator){var B=typeof Array.from=="function"?function(Q){return Array.from(Q)}:function(Q){for(var ne,ae=[],se=Q[Symbol.iterator]();!(ne=se.next()).done;)ae.push(ne.value);return ae};V=function(Q){return h.isArray(Q)?Q:Q!=null&&typeof Q[Symbol.iterator]=="function"?B(Q):null}}var W=n!==void 0&&F(n).toLowerCase()==="[object process]",q=n!==void 0&&n.env!==void 0,J={isClass:function(Q){try{if(typeof Q=="function"){var ne=h.names(Q.prototype),ae=h.isES5&&ne.length>1,se=ne.length>0&&!(ne.length===1&&ne[0]==="constructor"),oe=S.test(Q+"")&&h.names(Q).length>0;if(ae||se||oe)return!0}return!1}catch{return!1}},isIdentifier:function(Q){return E.test(Q)},inheritedDataKeys:O,getDataPropertyOrDefault:function(Q,ne,ae){if(!h.isES5)return{}.hasOwnProperty.call(Q,ne)?Q[ne]:void 0;var se=Object.getOwnPropertyDescriptor(Q,ne);return se!=null?se.get==null&&se.set==null?se.value:ae:void 0},thrower:function(Q){throw Q},isArray:h.isArray,asArray:V,notEnumerableProp:w,isPrimitive:_,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:A,canEvaluate:p,errorObj:v,tryCatch:function(Q){return u=Q,x},inherits:function(Q,ne){var ae={}.hasOwnProperty;function se(){for(var oe in this.constructor=Q,this.constructor$=ne,ne.prototype)ae.call(ne.prototype,oe)&&oe.charAt(oe.length-1)!=="$"&&(this[oe+"$"]=ne.prototype[oe])}return se.prototype=ne.prototype,Q.prototype=new se,Q.prototype},withAppended:function(Q,ne){var ae,se=Q.length,oe=new Array(se+1);for(ae=0;ae<se;++ae)oe[ae]=Q[ae];return oe[ae]=ne,oe},maybeWrapAsError:function(Q){return _(Q)?new Error(T(Q)):Q},toFastProperties:function(Q){return Q},filledRange:function(Q,ne,ae){for(var se=new Array(Q),oe=0;oe<Q;++oe)se[oe]=ne+oe+ae;return se},toString:T,canAttachTrace:j,ensureErrorObject:N,originatesFromRejection:function(Q){return Q!=null&&(Q instanceof Error.__BluebirdErrorTypes__.OperationalError||Q.isOperational===!0)},markAsOriginatingFromRejection:function(Q){try{w(Q,"isOperational",!0)}catch{}},classString:F,copyDescriptors:function(Q,ne,ae){for(var se=h.names(Q),oe=0;oe<se.length;++oe){var K=se[oe];if(ae(K))try{h.defineProperty(ne,K,h.getDescriptor(Q,K))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:W,hasEnvVariables:q,env:function(Q){return q?n.env[Q]:void 0},global:b,getNativePromise:function(){if(typeof Promise=="function")try{var Q=new Promise(function(){});if({}.toString.call(Q)==="[object Promise]")return Promise}catch{}},domainBind:function(Q,ne){return Q.bind(ne)}};J.isRecentNode=J.isNode&&function(){var Q=n.versions.node.split(".").map(Number);return Q[0]===0&&Q[1]>10||Q[0]>0}(),J.isNode&&J.toFastProperties(n);try{throw new Error}catch(Q){J.lastLineError=Q}s.exports=J},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,r(4),r(0),r(11).setImmediate)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,i){if(!i.eol&&n){for(var o=0,a=n.length;o<a;o++)if(n[o]==="\r"){if(n[o+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(n[o+1]){i.eol="\r";break}}else if(n[o]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(e,t,r){var n=r(65),i=r(73);e.exports=function(o,a){var s=i(o,a);return n(s)?s:void 0}},function(e,t,r){var n=r(19).Symbol;e.exports=n},function(e,t,r){var n=r(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){var n=r(30),i=r(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&n(o)=="[object Symbol]"}},function(e,t,r){(function(n,i){var o=r(6);e.exports=T;var a,s=r(37);T.ReadableState=E,r(12).EventEmitter;var c=function(G,z){return G.listeners(z).length},u=r(24),h=r(7).Buffer,p=n.Uint8Array||function(){},v=r(5);v.inherits=r(2);var b=r(41),x=void 0;x=b&&b.debuglog?b.debuglog("stream"):function(){};var _,w=r(42),O=r(25);v.inherits(T,u);var S=["error","close","destroy","pause","resume"];function E(G,z){a=a||r(1),G=G||{};var re=z instanceof a;this.objectMode=!!G.objectMode,re&&(this.objectMode=this.objectMode||!!G.readableObjectMode);var X=G.highWaterMark,le=G.readableHighWaterMark,ce=this.objectMode?16:16384;this.highWaterMark=X||X===0?X:re&&(le||le===0)?le:ce,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=G.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,G.encoding&&(_||(_=r(26).StringDecoder),this.decoder=new _(G.encoding),this.encoding=G.encoding)}function T(G){if(a=a||r(1),!(this instanceof T))return new T(G);this._readableState=new E(G,this),this.readable=!0,G&&(typeof G.read=="function"&&(this._read=G.read),typeof G.destroy=="function"&&(this._destroy=G.destroy)),u.call(this)}function A(G,z,re,X,le){var ce,de=G._readableState;return z===null?(de.reading=!1,function(be,M){if(!M.ended){if(M.decoder){var $=M.decoder.end();$&&$.length&&(M.buffer.push($),M.length+=M.objectMode?1:$.length)}M.ended=!0,V(be)}}(G,de)):(le||(ce=function(be,M){var $;return function(Y){return h.isBuffer(Y)||Y instanceof p}(M)||typeof M=="string"||M===void 0||be.objectMode||($=new TypeError("Invalid non-string/buffer chunk")),$}(de,z)),ce?G.emit("error",ce):de.objectMode||z&&z.length>0?(typeof z=="string"||de.objectMode||Object.getPrototypeOf(z)===h.prototype||(z=function(be){return h.from(be)}(z)),X?de.endEmitted?G.emit("error",new Error("stream.unshift() after end event")):j(G,de,z,!0):de.ended?G.emit("error",new Error("stream.push() after EOF")):(de.reading=!1,de.decoder&&!re?(z=de.decoder.write(z),de.objectMode||z.length!==0?j(G,de,z,!1):W(G,de)):j(G,de,z,!1))):X||(de.reading=!1)),function(be){return!be.ended&&(be.needReadable||be.length<be.highWaterMark||be.length===0)}(de)}function j(G,z,re,X){z.flowing&&z.length===0&&!z.sync?(G.emit("data",re),G.read(0)):(z.length+=z.objectMode?1:re.length,X?z.buffer.unshift(re):z.buffer.push(re),z.needReadable&&V(G)),W(G,z)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(G){this._readableState&&(this._readableState.destroyed=G)}}),T.prototype.destroy=O.destroy,T.prototype._undestroy=O.undestroy,T.prototype._destroy=function(G,z){this.push(null),z(G)},T.prototype.push=function(G,z){var re,X=this._readableState;return X.objectMode?re=!0:typeof G=="string"&&((z=z||X.defaultEncoding)!==X.encoding&&(G=h.from(G,z),z=""),re=!0),A(this,G,z,!1,re)},T.prototype.unshift=function(G){return A(this,G,null,!0,!1)},T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(G){return _||(_=r(26).StringDecoder),this._readableState.decoder=new _(G),this._readableState.encoding=G,this};var N=8388608;function F(G,z){return G<=0||z.length===0&&z.ended?0:z.objectMode?1:G!=G?z.flowing&&z.length?z.buffer.head.data.length:z.length:(G>z.highWaterMark&&(z.highWaterMark=function(re){return re>=N?re=N:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}(G)),G<=z.length?G:z.ended?z.length:(z.needReadable=!0,0))}function V(G){var z=G._readableState;z.needReadable=!1,z.emittedReadable||(x("emitReadable",z.flowing),z.emittedReadable=!0,z.sync?o.nextTick(B,G):B(G))}function B(G){x("emit readable"),G.emit("readable"),ne(G)}function W(G,z){z.readingMore||(z.readingMore=!0,o.nextTick(q,G,z))}function q(G,z){for(var re=z.length;!z.reading&&!z.flowing&&!z.ended&&z.length<z.highWaterMark&&(x("maybeReadMore read 0"),G.read(0),re!==z.length);)re=z.length;z.readingMore=!1}function J(G){x("readable nexttick read 0"),G.read(0)}function Q(G,z){z.reading||(x("resume read 0"),G.read(0)),z.resumeScheduled=!1,z.awaitDrain=0,G.emit("resume"),ne(G),z.flowing&&!z.reading&&G.read(0)}function ne(G){var z=G._readableState;for(x("flow",z.flowing);z.flowing&&G.read()!==null;);}function ae(G,z){return z.length===0?null:(z.objectMode?re=z.buffer.shift():!G||G>=z.length?(re=z.decoder?z.buffer.join(""):z.buffer.length===1?z.buffer.head.data:z.buffer.concat(z.length),z.buffer.clear()):re=function(X,le,ce){var de;return X<le.head.data.length?(de=le.head.data.slice(0,X),le.head.data=le.head.data.slice(X)):de=X===le.head.data.length?le.shift():ce?function(be,M){var $=M.head,Y=1,ue=$.data;for(be-=ue.length;$=$.next;){var ie=$.data,he=be>ie.length?ie.length:be;if(he===ie.length?ue+=ie:ue+=ie.slice(0,be),(be-=he)==0){he===ie.length?(++Y,$.next?M.head=$.next:M.head=M.tail=null):(M.head=$,$.data=ie.slice(he));break}++Y}return M.length-=Y,ue}(X,le):function(be,M){var $=h.allocUnsafe(be),Y=M.head,ue=1;for(Y.data.copy($),be-=Y.data.length;Y=Y.next;){var ie=Y.data,he=be>ie.length?ie.length:be;if(ie.copy($,$.length-be,0,he),(be-=he)==0){he===ie.length?(++ue,Y.next?M.head=Y.next:M.head=M.tail=null):(M.head=Y,Y.data=ie.slice(he));break}++ue}return M.length-=ue,$}(X,le),de}(G,z.buffer,z.decoder),re);var re}function se(G){var z=G._readableState;if(z.length>0)throw new Error('"endReadable()" called on non-empty stream');z.endEmitted||(z.ended=!0,o.nextTick(oe,z,G))}function oe(G,z){G.endEmitted||G.length!==0||(G.endEmitted=!0,z.readable=!1,z.emit("end"))}function K(G,z){for(var re=0,X=G.length;re<X;re++)if(G[re]===z)return re;return-1}T.prototype.read=function(G){x("read",G),G=parseInt(G,10);var z=this._readableState,re=G;if(G!==0&&(z.emittedReadable=!1),G===0&&z.needReadable&&(z.length>=z.highWaterMark||z.ended))return x("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?se(this):V(this),null;if((G=F(G,z))===0&&z.ended)return z.length===0&&se(this),null;var X,le=z.needReadable;return x("need readable",le),(z.length===0||z.length-G<z.highWaterMark)&&x("length less than watermark",le=!0),z.ended||z.reading?x("reading or ended",le=!1):le&&(x("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(G=F(re,z))),(X=G>0?ae(G,z):null)===null?(z.needReadable=!0,G=0):z.length-=G,z.length===0&&(z.ended||(z.needReadable=!0),re!==G&&z.ended&&se(this)),X!==null&&this.emit("data",X),X},T.prototype._read=function(G){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(G,z){var re=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=G;break;case 1:X.pipes=[X.pipes,G];break;default:X.pipes.push(G)}X.pipesCount+=1,x("pipe count=%d opts=%j",X.pipesCount,z);var le=z&&z.end===!1||G===i.stdout||G===i.stderr?he:ce;function ce(){x("onend"),G.end()}X.endEmitted?o.nextTick(le):re.once("end",le),G.on("unpipe",function Se(Fe,ge){x("onunpipe"),Fe===re&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,x("cleanup"),G.removeListener("close",ue),G.removeListener("finish",ie),G.removeListener("drain",de),G.removeListener("error",Y),G.removeListener("unpipe",Se),re.removeListener("end",ce),re.removeListener("end",he),re.removeListener("data",$),be=!0,!X.awaitDrain||G._writableState&&!G._writableState.needDrain||de())});var de=function(Se){return function(){var Fe=Se._readableState;x("pipeOnDrain",Fe.awaitDrain),Fe.awaitDrain&&Fe.awaitDrain--,Fe.awaitDrain===0&&c(Se,"data")&&(Fe.flowing=!0,ne(Se))}}(re);G.on("drain",de);var be=!1,M=!1;function $(Se){x("ondata"),M=!1,G.write(Se)!==!1||M||((X.pipesCount===1&&X.pipes===G||X.pipesCount>1&&K(X.pipes,G)!==-1)&&!be&&(x("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,M=!0),re.pause())}function Y(Se){x("onerror",Se),he(),G.removeListener("error",Y),c(G,"error")===0&&G.emit("error",Se)}function ue(){G.removeListener("finish",ie),he()}function ie(){x("onfinish"),G.removeListener("close",ue),he()}function he(){x("unpipe"),re.unpipe(G)}return re.on("data",$),function(Se,Fe,ge){if(typeof Se.prependListener=="function")return Se.prependListener(Fe,ge);Se._events&&Se._events[Fe]?s(Se._events[Fe])?Se._events[Fe].unshift(ge):Se._events[Fe]=[ge,Se._events[Fe]]:Se.on(Fe,ge)}(G,"error",Y),G.once("close",ue),G.once("finish",ie),G.emit("pipe",re),X.flowing||(x("pipe resume"),re.resume()),G},T.prototype.unpipe=function(G){var z=this._readableState,re={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return G&&G!==z.pipes?this:(G||(G=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,G&&G.emit("unpipe",this,re),this);if(!G){var X=z.pipes,le=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var ce=0;ce<le;ce++)X[ce].emit("unpipe",this,re);return this}var de=K(z.pipes,G);return de===-1?this:(z.pipes.splice(de,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),G.emit("unpipe",this,re),this)},T.prototype.on=function(G,z){var re=u.prototype.on.call(this,G,z);if(G==="data")this._readableState.flowing!==!1&&this.resume();else if(G==="readable"){var X=this._readableState;X.endEmitted||X.readableListening||(X.readableListening=X.needReadable=!0,X.emittedReadable=!1,X.reading?X.length&&V(this):o.nextTick(J,this))}return re},T.prototype.addListener=T.prototype.on,T.prototype.resume=function(){var G=this._readableState;return G.flowing||(x("resume"),G.flowing=!0,function(z,re){re.resumeScheduled||(re.resumeScheduled=!0,o.nextTick(Q,z,re))}(this,G)),this},T.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this},T.prototype.wrap=function(G){var z=this,re=this._readableState,X=!1;for(var le in G.on("end",function(){if(x("wrapped end"),re.decoder&&!re.ended){var de=re.decoder.end();de&&de.length&&z.push(de)}z.push(null)}),G.on("data",function(de){x("wrapped data"),re.decoder&&(de=re.decoder.write(de)),(!re.objectMode||de!=null)&&(re.objectMode||de&&de.length)&&(z.push(de)||(X=!0,G.pause()))}),G)this[le]===void 0&&typeof G[le]=="function"&&(this[le]=function(de){return function(){return G[de].apply(G,arguments)}}(le));for(var ce=0;ce<S.length;ce++)G.on(S[ce],this.emit.bind(this,S[ce]));return this._read=function(de){x("wrapped _read",de),X&&(X=!1,G.resume())},this},Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),T._fromList=ae}).call(this,r(0),r(4))},function(e,t,r){e.exports=r(12).EventEmitter},function(e,t,r){var n=r(6);function i(o,a){o.emit("error",a)}e.exports={destroy:function(o,a){var s=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(a?a(o):!o||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(h){!a&&h?(n.nextTick(i,s,h),s._writableState&&(s._writableState.errorEmitted=!0)):a&&a(h)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){var n=r(7).Buffer,i=n.isEncoding||function(x){switch((x=""+x)&&x.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(x){var _;switch(this.encoding=function(w){var O=function(S){if(!S)return"utf8";for(var E;;)switch(S){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 S;default:if(E)return;S=(""+S).toLowerCase(),E=!0}}(w);if(typeof O!="string"&&(n.isEncoding===i||!i(w)))throw new Error("Unknown encoding: "+w);return O||w}(x),this.encoding){case"utf16le":this.text=c,this.end=u,_=4;break;case"utf8":this.fillLast=s,_=4;break;case"base64":this.text=h,this.end=p,_=3;break;default:return this.write=v,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(_)}function a(x){return x<=127?0:x>>5==6?2:x>>4==14?3:x>>3==30?4:x>>6==2?-1:-2}function s(x){var _=this.lastTotal-this.lastNeed,w=function(O,S,E){if((192&S[0])!=128)return O.lastNeed=0,"<22>";if(O.lastNeed>1&&S.length>1){if((192&S[1])!=128)return O.lastNeed=1,"<22>";if(O.lastNeed>2&&S.length>2&&(192&S[2])!=128)return O.lastNeed=2,"<22>"}}(this,x);return w!==void 0?w:this.lastNeed<=x.length?(x.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(x.copy(this.lastChar,_,0,x.length),void(this.lastNeed-=x.length))}function c(x,_){if((x.length-_)%2==0){var w=x.toString("utf16le",_);if(w){var O=w.charCodeAt(w.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",_,x.length-1)}function u(x){var _=x&&x.length?this.write(x):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,w)}return _}function h(x,_){var w=(x.length-_)%3;return w===0?x.toString("base64",_):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",_,x.length-w))}function p(x){var _=x&&x.length?this.write(x):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function v(x){return x.toString(this.encoding)}function b(x){return x&&x.length?this.write(x):""}t.StringDecoder=o,o.prototype.write=function(x){if(x.length===0)return"";var _,w;if(this.lastNeed){if((_=this.fillLast(x))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<x.length?_?_+this.text(x,w):this.text(x,w):_||""},o.prototype.end=function(x){var _=x&&x.length?this.write(x):"";return this.lastNeed?_+"<22>":_},o.prototype.text=function(x,_){var w=function(S,E,T){var A=E.length-1;if(A<T)return 0;var j=a(E[A]);return j>=0?(j>0&&(S.lastNeed=j-1),j):--A<T||j===-2?0:(j=a(E[A]))>=0?(j>0&&(S.lastNeed=j-2),j):--A<T||j===-2?0:(j=a(E[A]))>=0?(j>0&&(j===2?j=0:S.lastNeed=j-3),j):0}(this,x,_);if(!this.lastNeed)return x.toString("utf8",_);this.lastTotal=w;var O=x.length-(w-this.lastNeed);return x.copy(this.lastChar,0,O),x.toString("utf8",_,O)},o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length}},function(e,t,r){e.exports=o;var n=r(1),i=r(5);function o(c){if(!(this instanceof o))return new o(c);n.call(this,c),this._transformState={afterTransform:(function(u,h){var p=this._transformState;p.transforming=!1;var v=p.writecb;if(!v)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,h!=null&&this.push(h),v(u);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",a)}function a(){var c=this;typeof this._flush=="function"?this._flush(function(u,h){s(c,u,h)}):s(this,null,null)}function s(c,u,h){if(u)return c.emit("error",u);if(h!=null&&c.push(h),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}i.inherits=r(2),i.inherits(o,n),o.prototype.push=function(c,u){return this._transformState.needTransform=!1,n.prototype.push.call(this,c,u)},o.prototype._transform=function(c,u,h){throw new Error("_transform() is not implemented")},o.prototype._write=function(c,u,h){var p=this._transformState;if(p.writecb=h,p.writechunk=c,p.writeencoding=u,!p.transforming){var v=this._readableState;(p.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},o.prototype._read=function(c){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(c,u){var h=this;n.prototype._destroy.call(this,c,function(p){u(p),h.emit("close")})}},function(e,t,r){(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=n.byteLength(i),a=n.allocUnsafe?n.allocUnsafe(o):new n(o);return a.write(i),a},t.emptyBuffer=function(){return n.allocUnsafe?n.allocUnsafe(0):new n(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,r(3).Buffer)},function(e,t,r){var n=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])};return function(a,s){function c(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,c,u){var h=o.call(this,"Error: "+s+". JSON Line number: "+c+(u?" near: "+u:""))||this;return h.err=s,h.line=c,h.extra=u,h.name="CSV Parse Error",h}return n(a,o),a.column_mismatched=function(s,c){return new a("column_mismatched",s,c)},a.unclosed_quote=function(s,c){return new a("unclosed_quote",s,c)},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,r){var n=r(18),i=r(68),o=r(69),a=n?n.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(r,n){return r===n||r!=r&&n!=n}},function(e,t,r){e.exports=r(33)},function(e,t,r){var n=r(34),i=function(o,a){return new n.Converter(o,a)};i.csv=i,i.Converter=n.Converter,e.exports=i},function(e,t,r){(function(n){var i=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,_){x.__proto__=_}||function(x,_){for(var w in _)_.hasOwnProperty(w)&&(x[w]=_[w])};return function(x,_){function w(){this.constructor=x}b(x,_),x.prototype=_===null?Object.create(_):(w.prototype=_.prototype,new w)}}(),o=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(36),s=r(50),c=r(51),u=o(r(15)),h=r(52),p=r(105),v=function(b){function x(_,w){w===void 0&&(w={});var O=b.call(this,w)||this;return O.options=w,O.params=s.mergeParams(_),O.runtime=c.initParseRuntime(O),O.result=new p.Result(O),O.processor=new h.ProcessorLocal(O),O.once("error",function(S){n(function(){O.result.processError(S),O.emit("done",S)})}),O.once("done",function(){O.processor.destroy()}),O}return i(x,b),x.prototype.preRawData=function(_){return this.runtime.preRawDataHook=_,this},x.prototype.preFileLine=function(_){return this.runtime.preFileLineHook=_,this},x.prototype.subscribe=function(_,w,O){return this.parseRuntime.subscribe={onNext:_,onError:w,onCompleted:O},this},x.prototype.fromFile=function(_,w){var O=this,S=r(!function(){var E=new Error("Cannot find module 'fs'");throw E.code="MODULE_NOT_FOUND",E}());return S.exists(_,function(E){E?S.createReadStream(_,w).pipe(O):O.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},x.prototype.fromStream=function(_){return _.pipe(this),this},x.prototype.fromString=function(_){_.toString();var w=new a.Readable,O=0;return w._read=function(S){if(O>=_.length)this.push(null);else{var E=_.substr(O,S);this.push(E),O+=S}},this.fromStream(w)},x.prototype.then=function(_,w){var O=this;return new u.default(function(S,E){O.parseRuntime.then={onfulfilled:function(T){S(_?_(T):T)},onrejected:function(T){w?S(w(T)):E(T)}}})},Object.defineProperty(x.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),x.prototype._transform=function(_,w,O){var S=this;this.processor.process(_).then(function(E){if(E.length>0)return S.runtime.started=!0,S.result.processResult(E)}).then(function(){S.emit("drained"),O()},function(E){S.runtime.hasError=!0,S.runtime.error=E,S.emit("error",E),O()})},x.prototype._flush=function(_){var w=this;this.processor.flush().then(function(O){if(O.length>0)return w.result.processResult(O)}).then(function(){w.processEnd(_)},function(O){w.emit("error",O),_()})},x.prototype.processEnd=function(_){this.result.endProcess(),this.emit("done"),_()},Object.defineProperty(x.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),x}(a.Transform);t.Converter=v}).call(this,r(11).setImmediate)},function(e,t,r){(function(n,i){(function(o,a){if(!o.setImmediate){var s,c=1,u={},h=!1,p=o.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(o);v=v&&v.setTimeout?v:o,{}.toString.call(o.process)==="[object process]"?s=function(_){i.nextTick(function(){x(_)})}:function(){if(o.postMessage&&!o.importScripts){var _=!0,w=o.onmessage;return o.onmessage=function(){_=!1},o.postMessage("","*"),o.onmessage=w,_}}()?function(){var _="setImmediate$"+Math.random()+"$",w=function(O){O.source===o&&typeof O.data=="string"&&O.data.indexOf(_)===0&&x(+O.data.slice(_.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),s=function(O){o.postMessage(_+O,"*")}}():o.MessageChannel?function(){var _=new MessageChannel;_.port1.onmessage=function(w){x(w.data)},s=function(w){_.port2.postMessage(w)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var _=p.documentElement;s=function(w){var O=p.createElement("script");O.onreadystatechange=function(){x(w),O.onreadystatechange=null,_.removeChild(O),O=null},_.appendChild(O)}}():s=function(_){setTimeout(x,0,_)},v.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var w=new Array(arguments.length-1),O=0;O<w.length;O++)w[O]=arguments[O+1];var S={callback:_,args:w};return u[c]=S,s(c),c++},v.clearImmediate=b}function b(_){delete u[_]}function x(_){if(h)setTimeout(x,0,_);else{var w=u[_];if(w){h=!0;try{(function(O){var S=O.callback,E=O.args;switch(E.length){case 0:S();break;case 1:S(E[0]);break;case 2:S(E[0],E[1]);break;case 3:S(E[0],E[1],E[2]);break;default:S.apply(a,E)}})(w)}finally{b(_),h=!1}}}}})(typeof self>"u"?n===void 0?this:n:self)}).call(this,r(0),r(4))},function(e,t,r){e.exports=i;var n=r(12).EventEmitter;function i(){n.call(this)}r(2)(i,n),i.Readable=r(13),i.Writable=r(46),i.Duplex=r(47),i.Transform=r(48),i.PassThrough=r(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function c(_){o.writable&&o.write(_)===!1&&s.pause&&s.pause()}function u(){s.readable&&s.resume&&s.resume()}s.on("data",c),o.on("drain",u),o._isStdio||a&&a.end===!1||(s.on("end",p),s.on("close",v));var h=!1;function p(){h||(h=!0,o.end())}function v(){h||(h=!0,typeof o.destroy=="function"&&o.destroy())}function b(_){if(x(),n.listenerCount(this,"error")===0)throw _}function x(){s.removeListener("data",c),o.removeListener("drain",u),s.removeListener("end",p),s.removeListener("close",v),s.removeListener("error",b),o.removeListener("error",b),s.removeListener("end",x),s.removeListener("close",x),o.removeListener("close",x)}return s.on("error",b),o.on("error",b),s.on("end",x),s.on("close",x),o.on("close",x),o.emit("pipe",s),o}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(n){return r.call(n)=="[object Array]"}},function(e,t,r){t.byteLength=function(v){var b=u(v),x=b[0],_=b[1];return 3*(x+_)/4-_},t.toByteArray=function(v){for(var b,x=u(v),_=x[0],w=x[1],O=new o(3*(_+w)/4-w),S=0,E=w>0?_-4:_,T=0;T<E;T+=4)b=i[v.charCodeAt(T)]<<18|i[v.charCodeAt(T+1)]<<12|i[v.charCodeAt(T+2)]<<6|i[v.charCodeAt(T+3)],O[S++]=b>>16&255,O[S++]=b>>8&255,O[S++]=255&b;return w===2&&(b=i[v.charCodeAt(T)]<<2|i[v.charCodeAt(T+1)]>>4,O[S++]=255&b),w===1&&(b=i[v.charCodeAt(T)]<<10|i[v.charCodeAt(T+1)]<<4|i[v.charCodeAt(T+2)]>>2,O[S++]=b>>8&255,O[S++]=255&b),O},t.fromByteArray=function(v){for(var b,x=v.length,_=x%3,w=[],O=0,S=x-_;O<S;O+=16383)w.push(p(v,O,O+16383>S?S:O+16383));return _===1?(b=v[x-1],w.push(n[b>>2]+n[b<<4&63]+"==")):_===2&&(b=(v[x-2]<<8)+v[x-1],w.push(n[b>>10]+n[b>>4&63]+n[b<<2&63]+"=")),w.join("")};for(var n=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(v){var b=v.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=v.indexOf("=");return x===-1&&(x=b),[x,x===b?0:4-x%4]}function h(v){return n[v>>18&63]+n[v>>12&63]+n[v>>6&63]+n[63&v]}function p(v,b,x){for(var _,w=[],O=b;O<x;O+=3)_=(v[O]<<16&16711680)+(v[O+1]<<8&65280)+(255&v[O+2]),w.push(h(_));return w.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(r,n,i,o,a){var s,c,u=8*a-o-1,h=(1<<u)-1,p=h>>1,v=-7,b=i?a-1:0,x=i?-1:1,_=r[n+b];for(b+=x,s=_&(1<<-v)-1,_>>=-v,v+=u;v>0;s=256*s+r[n+b],b+=x,v-=8);for(c=s&(1<<-v)-1,s>>=-v,v+=o;v>0;c=256*c+r[n+b],b+=x,v-=8);if(s===0)s=1-p;else{if(s===h)return c?NaN:1/0*(_?-1:1);c+=Math.pow(2,o),s-=p}return(_?-1:1)*c*Math.pow(2,s-o)},t.write=function(r,n,i,o,a,s){var c,u,h,p=8*s-a-1,v=(1<<p)-1,b=v>>1,x=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=o?0:s-1,w=o?1:-1,O=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,c=v):(c=Math.floor(Math.log(n)/Math.LN2),n*(h=Math.pow(2,-c))<1&&(c--,h*=2),(n+=c+b>=1?x/h:x*Math.pow(2,1-b))*h>=2&&(c++,h/=2),c+b>=v?(u=0,c=v):c+b>=1?(u=(n*h-1)*Math.pow(2,a),c+=b):(u=n*Math.pow(2,b-1)*Math.pow(2,a),c=0));a>=8;r[i+_]=255&u,_+=w,u/=256,a-=8);for(c=c<<a|u,p+=a;p>0;r[i+_]=255&c,_+=w,c/=256,p-=8);r[i+_-w]|=128*O}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(n){return r.call(n)=="[object Array]"}},function(e,t){},function(e,t,r){var n=r(7).Buffer,i=r(43);function o(a,s,c){a.copy(s,c)}e.exports=function(){function a(){(function(s,c){if(!(s instanceof c))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 c={data:s,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},a.prototype.unshift=function(s){var c={data:s,next:this.head};this.length===0&&(this.tail=c),this.head=c,++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 c=this.head,u=""+c.data;c=c.next;)u+=s+c.data;return u},a.prototype.concat=function(s){if(this.length===0)return n.alloc(0);if(this.length===1)return this.head.data;for(var c=n.allocUnsafe(s>>>0),u=this.head,h=0;u;)o(u.data,c,h),h+=u.data.length,u=u.next;return c},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,r){(function(n){function i(o){try{if(!n.localStorage)return!1}catch{return!1}var a=n.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,r(0))},function(e,t,r){e.exports=o;var n=r(27),i=r(5);function o(a){if(!(this instanceof o))return new o(a);n.call(this,a)}i.inherits=r(2),i.inherits(o,n),o.prototype._transform=function(a,s,c){c(null,a)}},function(e,t,r){e.exports=r(14)},function(e,t,r){e.exports=r(1)},function(e,t,r){e.exports=r(13).Transform},function(e,t,r){e.exports=r(13).PassThrough},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(n){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 n||(n={}),n)n.hasOwnProperty(o)&&(Array.isArray(n[o])?i[o]=[].concat(n[o]):i[o]=n[o]);return i}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(n){var i=n.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:n.parseParam.delimiter,eol:n.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,r){(function(n){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var E in S)S.hasOwnProperty(E)&&(O[E]=S[E])};return function(O,S){function E(){this.constructor=O}w(O,S),O.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(53),s=o(r(15)),c=r(54),u=o(r(16)),h=r(57),p=r(28),v=r(58),b=o(r(59)),x=o(r(29)),_=function(w){function O(){var S=w!==null&&w.apply(this,arguments)||this;return S.rowSplit=new v.RowSplit(S.converter),S.eolEmitted=!1,S._needEmitEol=void 0,S.headEmitted=!1,S._needEmitHead=void 0,S}return i(O,w),O.prototype.flush=function(){var S=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var E=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(E,!0).then(function(T){return S.runtime.csvLineBuffer&&S.runtime.csvLineBuffer.length>0?s.default.reject(x.default.unclosed_quote(S.runtime.parsedLineNumber,S.runtime.csvLineBuffer.toString())):s.default.resolve(T)})}return s.default.resolve([])},O.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(O.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(O.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),O.prototype.process=function(S,E){var T,A=this;return E===void 0&&(E=!1),T=E?S.toString():c.prepareData(S,this.converter.parseRuntime),s.default.resolve().then(function(){return A.runtime.preRawDataHook?A.runtime.preRawDataHook(T):T}).then(function(j){return j&&j.length>0?A.processCSV(j,E):s.default.resolve([])})},O.prototype.processCSV=function(S,E){var T=this,A=this.params,j=this.runtime;j.eol||u.default(S,j),this.needEmitEol&&!this.eolEmitted&&j.eol&&(this.converter.emit("eol",j.eol),this.eolEmitted=!0),A.ignoreEmpty&&!j.started&&(S=p.trimLeft(S));var N=h.stringToLines(S,j);return E?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(p.bufFromString(N.partial)),N.lines.length>0?(j.preFileLineHook?this.runPreLineHook(N.lines):s.default.resolve(N.lines)).then(function(F){return j.started||T.runtime.headers?T.processCSVBody(F):T.processDataWithHead(F)}):s.default.resolve([])},O.prototype.processDataWithHead=function(S){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var E="",T=[];S.length;){var A=E+S.shift(),j=this.rowSplit.parse(A);if(j.closed){T=j.cells,E="";break}E=A+u.default(A,this.runtime)}if(this.prependLeftBuf(p.bufFromString(E)),T.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=T}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(S)},O.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var S=this.runtime.headers,E=0;E<S.length;E++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(S[E])){if(!this.params.includeColumns||!this.params.includeColumns.test(S[E]))continue;this.runtime.selectedColumns.push(E)}else this.runtime.selectedColumns.push(E);else this.params.includeColumns?this.params.includeColumns.test(S[E])&&this.runtime.selectedColumns.push(E):this.runtime.selectedColumns.push(E);this.runtime.headers=p.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},O.prototype.processCSVBody=function(S){if(this.params.output==="line")return S;var E=this.rowSplit.parseMultiLines(S);return this.prependLeftBuf(p.bufFromString(E.partial)),this.params.output==="csv"?E.rowsCells:b.default(E.rowsCells,this.converter)},O.prototype.prependLeftBuf=function(S){S&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=n.concat([S,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=S)},O.prototype.runPreLineHook=function(S){var E=this;return new s.default(function(T,A){(function j(N,F,V,B){if(V>=N.length)B();else if(F.preFileLineHook){var W=N[V],q=F.preFileLineHook(W,F.parsedLineNumber+V);if(V++,q&&q.then)q.then(function(J){N[V-1]=J,j(N,F,V,B)});else{for(N[V-1]=q;V<N.length;)N[V]=F.preFileLineHook(N[V],F.parsedLineNumber+V),V++;B()}}else B()})(S,E.runtime,0,function(j){j?A(j):T(S)})})},O}(a.Processor);t.ProcessorLocal=_}).call(this,r(3).Buffer)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=n},function(e,t,r){(function(n){var i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(r(55));t.prepareData=function(a,s){var c=function(h,p){return p.csvLineBuffer&&p.csvLineBuffer.length>0?n.concat([p.csvLineBuffer,h]):h}(a,s);s.csvLineBuffer=void 0;var u=function(h,p){var v=h.length-1;if(128&h[v]){for(;(192&h[v])==128;)v--;v--}return v!=h.length-1?(p.csvLineBuffer=h.slice(v+1),h.slice(0,v+1)):h}(c,s).toString("utf8");return s.started===!1?o.default(u):u}}).call(this,r(3).Buffer)},function(e,t,r){(function(n){var i=r(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):n.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,r(3).Buffer)},function(e,t){e.exports=function(r){for(var n=0;n<r.length;)if(r[n]==9||r[n]==10||r[n]==13||32<=r[n]&&r[n]<=126)n+=1;else if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191)n+=2;else if(r[n]==224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]==238||r[n]==239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]==237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191)n+=3;else{if(!(r[n]==240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]==244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191))return!1;n+=4}return!0}},function(e,t,r){var n=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(16));t.stringToLines=function(o,a){var s=i.default(o,a),c=o.split(s);return{lines:c,partial:c.pop()||""}}},function(e,t,r){var n=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(16)),o=r(28),a=[",","|"," ",";",":"],s=function(){function c(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(c.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),c.prototype.parse=function(u){if(u.length===0||this.conv.parseParam.ignoreEmpty&&u.trim().length===0)return{cells:[],closed:!0};var h=this.quote,p=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 v=this.conv.parseRuntime.delimiter,b=u.split(v);if(h==="off"){if(p)for(var x=0;x<b.length;x++)b[x]=b[x].trim();return{cells:b,closed:!0}}return this.toCSVRow(b,p,h,v)},c.prototype.toCSVRow=function(u,h,p,v){for(var b=[],x=!1,_="",w=0,O=u.length;w<O;w++){var S=u[w];!x&&h&&(S=o.trimLeft(S));var E=S.length;if(x)this.isQuoteClose(S)?(x=!1,_+=v+(S=S.substr(0,E-1)),_=this.escapeQuote(_),h&&(_=o.trimRight(_)),b.push(_),_=""):_+=v+S;else{if(E===2&&S===this.quote+this.quote){b.push("");continue}if(this.isQuoteOpen(S)){if(S=S.substr(1),this.isQuoteClose(S)){S=S.substring(0,S.lastIndexOf(p)),S=this.escapeQuote(S),b.push(S);continue}if(S.indexOf(p)!==-1){for(var T=0,A="",j=0,N=S;j<N.length;j++){var F=N[j];F===p&&A!==this.escape?(T++,A=""):A=F}if(T%2==1){h&&(S=o.trimRight(S)),b.push(p+S);continue}x=!0,_+=S;continue}x=!0,_+=S;continue}h&&(S=o.trimRight(S)),b.push(S)}}return{cells:b,closed:!x}},c.prototype.getDelimiter=function(u){var h;if(this.conv.parseParam.delimiter==="auto")h=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;h=this.conv.parseParam.delimiter}var p=0,v=",";return h.forEach(function(b){var x=u.split(b).length;x>p&&(v=b,p=x)}),v},c.prototype.isQuoteOpen=function(u){var h=this.quote,p=this.escape;return u[0]===h&&(u[1]!==h||u[1]===p&&(u[2]===h||u.length===2))},c.prototype.isQuoteClose=function(u){var h=this.quote,p=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var v=0,b=u.length-1;u[b]===h||u[b]===p;)b--,v++;return v%2!=0},c.prototype.escapeQuote=function(u){var h="es|"+this.quote+"|"+this.escape;this.cachedRegExp[h]===void 0&&(this.cachedRegExp[h]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var p=this.cachedRegExp[h];return u.replace(p,this.quote)},c.prototype.parseMultiLines=function(u){for(var h=[],p="";u.length;){var v=p+u.shift(),b=this.parse(v);b.cells.length===0&&this.conv.parseParam.ignoreEmpty||(b.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?h.push(o.filterArray(b.cells,this.conv.parseRuntime.selectedColumns)):h.push(b.cells),p=""):p=v+(i.default(v,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:h,partial:p}},c}();t.RowSplit=s},function(e,t,r){var n=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(29)),o=n(r(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(O,S,E){if(S.parseParam.checkColumn&&S.parseRuntime.headers&&O.length!==S.parseRuntime.headers.length)throw i.default.column_mismatched(S.parseRuntime.parsedLineNumber+E);return function(T,A,j){for(var N=!1,F={},V=0,B=T.length;V<B;V++){var W=T[V];if(!j.parseParam.ignoreEmpty||W!==""){N=!0;var q=A[V];q&&q!==""||(q=A[V]="field"+(V+1));var J=u(q,V,j);if(J){var Q=J(W,q,F,T,V);Q!==void 0&&h(F,q,Q,j,V)}else j.parseParam.checkType&&(W=b(W,q,V,j)(W)),W!==void 0&&h(F,q,W,j,V)}}return N?F:null}(O,S.parseRuntime.headers||[],S)||null}t.default=function(O,S){for(var E=[],T=0,A=O.length;T<A;T++){var j=s(O[T],S,T);j&&E.push(j)}return E};var c={string:_,number:x,omit:function(){}};function u(O,S,E){if(E.parseRuntime.columnConv[S]!==void 0)return E.parseRuntime.columnConv[S];var T=E.parseParam.colParser[O];if(T===void 0)return E.parseRuntime.columnConv[S]=null;if(typeof T=="object"&&(T=T.cellParser||"string"),typeof T=="string"){T=T.trim().toLowerCase();var A=c[T];return E.parseRuntime.columnConv[S]=A||null}return E.parseRuntime.columnConv[S]=typeof T=="function"?T:null}function h(O,S,E,T,A){if(!T.parseRuntime.columnValueSetter[A])if(T.parseParam.flatKeys)T.parseRuntime.columnValueSetter[A]=p;else if(S.indexOf(".")>-1){for(var j=S.split("."),N=!0;j.length>0;)if(j.shift().length===0){N=!1;break}!N||T.parseParam.colParser[S]&&T.parseParam.colParser[S].flat?T.parseRuntime.columnValueSetter[A]=p:T.parseRuntime.columnValueSetter[A]=v}else T.parseRuntime.columnValueSetter[A]=p;T.parseParam.nullObject===!0&&E==="null"&&(E=null),T.parseRuntime.columnValueSetter[A](O,S,E)}function p(O,S,E){O[S]=E}function v(O,S,E){o.default(O,S,E)}function b(O,S,E,T){return T.parseRuntime.headerType[E]?T.parseRuntime.headerType[E]:S.indexOf("number#!")>-1?T.parseRuntime.headerType[E]=x:S.indexOf("string#!")>-1?T.parseRuntime.headerType[E]=_:T.parseParam.checkType?T.parseRuntime.headerType[E]=w:T.parseRuntime.headerType[E]=_}function x(O){var S=parseFloat(O);return isNaN(S)?O:S}function _(O){return O.toString()}function w(O){var S=O.trim();return S===""?_(O):a.test(S)?x(O):S.length===5&&S.toLowerCase()==="false"||S.length===4&&S.toLowerCase()==="true"?function(E){var T=E.trim();return T.length!==5||T.toLowerCase()!=="false"}(O):S[0]==="{"&&S[S.length-1]==="}"||S[0]==="["&&S[S.length-1]==="]"?function(E){try{return JSON.parse(E)}catch{return E}}(O):_(O)}},function(e,t,r){var n=r(61);e.exports=function(i,o,a){return i==null?i:n(i,o,a)}},function(e,t,r){var n=r(62),i=r(74),o=r(103),a=r(20),s=r(104);e.exports=function(c,u,h,p){if(!a(c))return c;for(var v=-1,b=(u=i(u,c)).length,x=b-1,_=c;_!=null&&++v<b;){var w=s(u[v]),O=h;if(v!=x){var S=_[w];(O=p?p(S,w,_):void 0)===void 0&&(O=a(S)?S:o(u[v+1])?[]:{})}n(_,w,O),_=_[w]}return c}},function(e,t,r){var n=r(63),i=r(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,c){var u=a[s];o.call(a,s)&&i(u,c)&&(c!==void 0||s in a)||n(a,s,c)}},function(e,t,r){var n=r(64);e.exports=function(i,o,a){o=="__proto__"&&n?n(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(e,t,r){var n=r(17),i=function(){try{var o=n(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,r){var n=r(66),i=r(70),o=r(20),a=r(72),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,h=c.toString,p=u.hasOwnProperty,v=RegExp("^"+h.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(b){return!(!o(b)||i(b))&&(n(b)?v:s).test(a(b))}},function(e,t,r){var n=r(30),i=r(20);e.exports=function(o){if(!i(o))return!1;var a=n(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[object Proxy]"}},function(e,t,r){(function(n){var i=typeof n=="object"&&n&&n.Object===Object&&n;e.exports=i}).call(this,r(0))},function(e,t,r){var n=r(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(c){var u=o.call(c,s),h=c[s];try{c[s]=void 0;var p=!0}catch{}var v=a.call(c);return p&&(u?c[s]=h:delete c[s]),v}},function(e,t){var r=Object.prototype.toString;e.exports=function(n){return r.call(n)}},function(e,t,r){var n=r(71),i=function(){var o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,r){var n=r(19)["__core-js_shared__"];e.exports=n},function(e,t){var r=Function.prototype.toString;e.exports=function(n){if(n!=null){try{return r.call(n)}catch{}try{return n+""}catch{}}return""}},function(e,t){e.exports=function(r,n){return r==null?void 0:r[n]}},function(e,t,r){var n=r(21),i=r(75),o=r(77),a=r(100);e.exports=function(s,c){return n(s)?s:i(s,c)?[s]:o(a(s))}},function(e,t,r){var n=r(21),i=r(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,c){if(n(s))return!1;var u=typeof s;return!(u!="number"&&u!="symbol"&&u!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||c!=null&&s in Object(c)}},function(e,t){e.exports=function(r){return r!=null&&typeof r=="object"}},function(e,t,r){var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(n,function(c,u,h,p){s.push(h?p.replace(i,"$1"):u||c)}),s});e.exports=o},function(e,t,r){var n=r(79);e.exports=function(i){var o=n(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,r){var n=r(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var c=function(){var u=arguments,h=s?s.apply(this,u):u[0],p=c.cache;if(p.has(h))return p.get(h);var v=a.apply(this,u);return c.cache=p.set(h,v)||p,v};return c.cache=new(o.Cache||n),c}o.Cache=n,e.exports=o},function(e,t,r){var n=r(81),i=r(95),o=r(97),a=r(98),s=r(99);function c(u){var h=-1,p=u==null?0:u.length;for(this.clear();++h<p;){var v=u[h];this.set(v[0],v[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,r){var n=r(82),i=r(88),o=r(94);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(e,t,r){var n=r(83),i=r(84),o=r(85),a=r(86),s=r(87);function c(u){var h=-1,p=u==null?0:u.length;for(this.clear();++h<p;){var v=u[h];this.set(v[0],v[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,r){var n=r(8);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(r){var n=this.has(r)&&delete this.__data__[r];return this.size-=n?1:0,n}},function(e,t,r){var n=r(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;if(n){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,r){var n=r(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return n?a[o]!==void 0:i.call(a,o)}},function(e,t,r){var n=r(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=n&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,r){var n=r(89),i=r(90),o=r(91),a=r(92),s=r(93);function c(u){var h=-1,p=u==null?0:u.length;for(this.clear();++h<p;){var v=u[h];this.set(v[0],v[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(9),i=Array.prototype.splice;e.exports=function(o){var a=this.__data__,s=n(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,r){var n=r(9);e.exports=function(i){var o=this.__data__,a=n(o,i);return a<0?void 0:o[a][1]}},function(e,t,r){var n=r(9);e.exports=function(i){return n(this.__data__,i)>-1}},function(e,t,r){var n=r(9);e.exports=function(i,o){var a=this.__data__,s=n(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,r){var n=r(17)(r(19),"Map");e.exports=n},function(e,t,r){var n=r(10);e.exports=function(i){var o=n(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}},function(e,t,r){var n=r(10);e.exports=function(i){return n(this,i).get(i)}},function(e,t,r){var n=r(10);e.exports=function(i){return n(this,i).has(i)}},function(e,t,r){var n=r(10);e.exports=function(i,o){var a=n(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,r){var n=r(101);e.exports=function(i){return i==null?"":n(i)}},function(e,t,r){var n=r(18),i=r(102),o=r(21),a=r(22),s=n?n.prototype:void 0,c=s?s.toString:void 0;e.exports=function u(h){if(typeof h=="string")return h;if(o(h))return i(h,u)+"";if(a(h))return c?c.call(h):"";var p=h+"";return p=="0"&&1/h==-1/0?"-0":p}},function(e,t){e.exports=function(r,n){for(var i=-1,o=r==null?0:r.length,a=Array(o);++i<o;)a[i]=n(r[i],i,r);return a}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(n,i){var o=typeof n;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<i}},function(e,t,r){var n=r(22);e.exports=function(i){if(typeof i=="string"||n(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,r){var n=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(15)),o=r(106),a=function(){function c(u){this.converter=u,this.finalResult=[]}return Object.defineProperty(c.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(c.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(c.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),c.prototype.processResult=function(u){var h=this,p=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&p===0&&s(this.converter,"["+o.EOL),new i.default(function(v,b){h.needEmitLine?function x(_,w,O,S,E){if(O>=_.length)E();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var T=w.parseRuntime.subscribe.onNext,A=_[O],j=T(A,w.parseRuntime.parsedLineNumber+O);if(O++,j&&j.then)j.then(function(){(function(F,V,B,W,q,J,Q){q&&s(B,Q),x(F,B,W,q,J)})(_,0,w,O,S,E,A)},E);else{for(S&&s(w,A);O<_.length;){var N=_[O];T(N,w.parseRuntime.parsedLineNumber+O),O++,S&&s(w,N)}E()}}else{if(S)for(;O<_.length;)N=_[O++],s(w,N);E()}}(u,h.converter,0,h.needPushDownstream,function(x){x?b(x):(h.appendFinalResult(u),v())}):(h.appendFinalResult(u),v())})},c.prototype.appendFinalResult=function(u){this.needEmitAll&&(this.finalResult=this.finalResult.concat(u)),this.converter.parseRuntime.parsedLineNumber+=u.length},c.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)},c.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)},c}();function s(c,u){if(typeof u!="object"||c.options.objectMode)c.push(u);else{var h=JSON.stringify(u);c.push(h+(c.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"/"}}])),ZO}var ake=oke();const ske=Nt(ake),lke=e=>new Promise(t=>{ske().fromString(e).then(t)}),uke=new O7,cke=e=>uke.parse(e),fke="shlink",b8=e=>`${fke}.${e}`;class dke{constructor(t){Ec(this,"get",t=>{const r=this.localStorage.getItem(b8(t));return r?JSON.parse(r):void 0});Ec(this,"set",(t,r)=>this.localStorage.setItem(b8(t),JSON.stringify(r)));this.localStorage=t}}class hke{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const pke=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",dke,"localStorage"),e.service("TagColorsStorage",hke,"Storage"),e.constant("csvToJson",lke),e.constant("jsonToCsv",cke),e.serviceFactory("useTimeoutToggle",()=>LF)},Bu=new e$,{container:xA}=Bu,mke=(e,t)=>(...r)=>e[t](...r),vke=(e,t)=>({...e,[t]:mke(xA,t)}),gke=e=>t=>Object.fromEntries(e.map(r=>[r,t[r]])),Db=(e,t=[])=>T8(e?gke(e):null,t.reduce(vke,{}));Boe(Bu,Db);cAe(Bu,Db);EK(Bu);XAe(Bu,Db);pke(Bu);ike(Bu,Db);var XO={},mg={exports:{}},_8;function yke(){return _8||(_8=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=r,t.default=r;function r(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return n.apply(void 0,u)}t.main=r,r.clone=o,r.isPlainObject=a,r.recursive=i;function n(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return c(u[0]===!0,!1,u)}t.merge=n;function i(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return c(u[0]===!0,!0,u)}t.recursive=i;function o(u){if(Array.isArray(u)){for(var h=[],p=0;p<u.length;++p)h.push(o(u[p]));return h}else if(a(u)){var h={};for(var p in u)h[p]=o(u[p]);return h}else return u}t.clone=o;function a(u){return u&&typeof u=="object"&&!Array.isArray(u)}t.isPlainObject=a;function s(u,h){if(!a(u))return h;for(var p in h)p==="__proto__"||p==="constructor"||p==="prototype"||(u[p]=a(u[p])&&a(h[p])?s(u[p],h[p]):h[p]);return u}function c(u,h,p){var v;(u||!a(v=p.shift()))&&(v={});for(var b=0;b<p.length;++b){var x=p[b];if(a(x)){for(var _ in x)if(!(_==="__proto__"||_==="constructor"||_==="prototype")){var w=u?o(x[_]):x[_];v[_]=h?s(v[_],w):w}}}return v}}(mg,mg.exports)),mg.exports}var x8;function bke(){return x8||(x8=1,function(e){var t=r(yke());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=J,e.combineLoads=q,e.load=W,e.save=B;function r(K){return K&&K.__esModule?K:{default:K}}function n(K,G){return c(K)||s(K,G)||o(K,G)||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(K,G){if(K){if(typeof K=="string")return a(K,G);var z=Object.prototype.toString.call(K).slice(8,-1);return z==="Object"&&K.constructor&&(z=K.constructor.name),z==="Map"||z==="Set"?Array.from(K):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?a(K,G):void 0}}function a(K,G){(G==null||G>K.length)&&(G=K.length);for(var z=0,re=Array(G);z<G;z++)re[z]=K[z];return re}function s(K,G){var z=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(z!=null){var re,X,le=[],ce=!0,de=!1;try{for(z=z.call(K);!(ce=(re=z.next()).done)&&(le.push(re.value),!(G&&le.length===G));ce=!0);}catch(be){de=!0,X=be}finally{try{ce||z.return==null||z.return()}finally{if(de)throw X}}return le}}function c(K){if(Array.isArray(K))return K}function u(K){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},u(K)}function h(K,G,z){return G in K?Object.defineProperty(K,G,{value:z,enumerable:!0,configurable:!0,writable:!0}):K[G]=z,K}var p="[Redux-LocalStorage-Simple]",v="redux_localstorage_simple",b="_",x=[],_=[],w=0,O=!1,S=!1,E=new Map;function T(K){console.warn(p,K)}function A(){}var j=function(K){return K?A:T};function N(K,G){return G===void 0?null:K.length===1?G[K[0]]:N(K.slice(1),G[K[0]])}function F(K){function G(re,X){return re.length===0?X:G(re.slice(1),h({},re[0],X))}var z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return G(K.split(".").reverse(),z)}function V(K){this.warnFn=K||T}Object.defineProperty(V.prototype,"length",{get:function(){try{return localStorage.length}catch(K){this.warnFn(K)}return 0},configurable:!0,enumerable:!0}),V.prototype.key=function(K){try{return localStorage.key(K)}catch(G){this.warnFn(G)}return null},V.prototype.setItem=function(K,G){try{localStorage.setItem(K,JSON.stringify(G))}catch(z){this.warnFn(z)}},V.prototype.getItem=function(K){try{return JSON.parse(localStorage.getItem(K))}catch(G){this.warnFn(G)}return null},V.prototype.removeItem=function(K){try{localStorage.removeItem(K)}catch(G){this.warnFn(G)}};function B(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},G=K.states,z=G===void 0?x:G,re=K.ignoreStates,X=re===void 0?_:re,le=K.namespace,ce=le===void 0?v:le,de=K.namespaceSeparator,be=de===void 0?b:de,M=K.debounce,$=M===void 0?w:M,Y=K.disableWarnings,ue=Y===void 0?S:Y;return function(ie){return function(he){return function(Se){function Fe(Be,qe){return 1<Be.split(".").length?N(Be.split("."),qe):N([Be],qe)}function ge(){z.length===0?He.setItem(ce,Ee):z.forEach(function(Be){var qe=ce+be+Be,ye=Fe(Be,Ee);ye?He.setItem(qe,ye):He.removeItem(qe)})}var Ee,je=j(ue),Me=he(Se);Q(z)||(console.error(p,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),z=x),Q(X)||(console.error(p,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),X=_),0<X.length&&(X=X.filter(function(Be){return ne(Be)?Be:void console.error(p,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),ne(ce)||(console.error(p,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ce=v),ne(be)||(console.error(p,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),be=b),ae($)||(console.error(p,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),$=w),Ee=0<X.length?oe(X,ie.getState()):ie.getState();var He=new V(je);return $?(E.get(z+ce)&&clearTimeout(E.get(z+ce)),E.set(z+ce,setTimeout(function(){ge()},$))):ge(),Me}}}}function W(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},G=K.states,z=G===void 0?x:G,re=K.immutablejs,X=re===void 0?O:re,le=K.namespace,ce=le===void 0?v:le,de=K.namespaceSeparator,be=de===void 0?b:de,M=K.preloadedState,$=M===void 0?{}:M,Y=K.disableWarnings,ue=Y===void 0?S:Y,ie=j(ue);Q(z)||(console.error(p,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),z=x),ne(ce)||(console.error(p,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ce=v),ne(be)||(console.error(p,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),be=b),X===!0&&ie("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 he=new V(ie),Se=$;if(z.length===0){var Fe=he.getItem(ce);Fe&&(Se=Fe)}else z.forEach(function(ge){var Ee=ce+be+ge,je=he.getItem(Ee);je?Se=t.default.recursive(Se,F(ge,je)):ie("Invalid load '"+Ee+"' 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 Se}function q(){for(var K={},G=arguments.length,z=Array(G),re=0;re<G;re++)z[re]=arguments[re];return z.forEach(function(X){for(var le in se(X)||(console.error(p,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),X={}),X)K[le]=X[le]}),K}function J(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},G=K.namespace,z=G===void 0?v:G,re=K.disableWarnings,X=re===void 0?S:re,le=j(X);ne(z)||(console.error(p,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),z=v);for(var ce,de=new V(le),be=de.length,M=0;M<be;M++)ce=de.key(M),ce&&ce.slice(0,z.length)===z&&de.removeItem(ce)}function Q(K){return Object.prototype.toString.call(K)==="[object Array]"}function ne(K){return typeof K=="string"}function ae(K){return typeof K=="number"&&isFinite(K)&&Math.floor(K)===K}function se(K){return K!==null&&u(K)==="object"}function oe(K,G){var z=Object.entries(G).reduce(function(re,X){var le=n(X,2),ce=le[0];return le[1],K.indexOf(ce)===-1&&(re[ce]=G[ce]),re},{});return z}}(XO)),XO}var TW=bke();const _ke=e=>kT({appUpdated:Foe,servers:NAe,selectedServer:e.selectedServerReducer,settings:rke}),xke=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),wke=!0,jW={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},Oke=xke(TW.load(jW)),Ske=e=>ZF({devTools:!wke,reducer:_ke(e),preloadedState:Oke,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(TW.save(jW))}),Pke=!!(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 Cke(e){if("serviceWorker"in navigator){if(new URL(Ag.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const r=`${Ag.homepage}/service-worker.js`;Pke?(Eke(r,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")})):AW(r,e)})}}function AW(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const n=r.installing;n!=null&&(n.onstatechange=()=>{n.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(r)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(r)))})}}).catch(r=>{console.error("Error during service worker registration:",r)})}function Eke(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const n=r.headers.get("content-type");r.status===404||n!=null&&n.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):AW(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const kW=Ske(xA),{App:Tke,ScrollToTop:jke,ErrorHandler:Ake,appUpdateAvailable:kke}=xA;wq.createRoot(document.getElementById("root")).render(g.jsx(j8,{store:kW,children:g.jsx(U8,{basename:Ag.homepage,children:g.jsx(Ake,{children:g.jsx(jke,{children:g.jsx(Tke,{})})})})}));Cke({onUpdate(){kW.dispatch(kke())}});
|