mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 10:28:23 +03:00
1032 lines
1.5 MiB
1032 lines
1.5 MiB
var $W=Object.defineProperty;var IW=(e,t,n)=>t in e?$W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xl=(e,t,n)=>(IW(e,typeof t!="symbol"?t+"":t,n),n);function DW(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function st(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function FW(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var z$={exports:{}},E0={},V$={exports:{}},it={};/**
|
||
* @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 xp=Symbol.for("react.element"),BW=Symbol.for("react.portal"),UW=Symbol.for("react.fragment"),zW=Symbol.for("react.strict_mode"),VW=Symbol.for("react.profiler"),WW=Symbol.for("react.provider"),HW=Symbol.for("react.context"),GW=Symbol.for("react.forward_ref"),qW=Symbol.for("react.suspense"),KW=Symbol.for("react.memo"),YW=Symbol.for("react.lazy"),Gj=Symbol.iterator;function ZW(e){return e===null||typeof e!="object"?null:(e=Gj&&e[Gj]||e["@@iterator"],typeof e=="function"?e:null)}var W$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H$=Object.assign,G$={};function zc(e,t,n){this.props=e,this.context=t,this.refs=G$,this.updater=n||W$}zc.prototype.isReactComponent={};zc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};zc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function q$(){}q$.prototype=zc.prototype;function iE(e,t,n){this.props=e,this.context=t,this.refs=G$,this.updater=n||W$}var oE=iE.prototype=new q$;oE.constructor=iE;H$(oE,zc.prototype);oE.isPureReactComponent=!0;var qj=Array.isArray,K$=Object.prototype.hasOwnProperty,aE={current:null},Y$={key:!0,ref:!0,__self:!0,__source:!0};function Z$(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)K$.call(t,r)&&!Y$.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:xp,type:e,key:o,ref:a,props:i,_owner:aE.current}}function XW(e,t){return{$$typeof:xp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function sE(e){return typeof e=="object"&&e!==null&&e.$$typeof===xp}function QW(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Kj=/\/+/g;function L1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?QW(""+e.key):t.toString(36)}function Nv(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case xp:case BW:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+L1(a,0):r,qj(i)?(n="",e!=null&&(n=e.replace(Kj,"$&/")+"/"),Nv(i,t,n,"",function(u){return u})):i!=null&&(sE(i)&&(i=XW(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Kj,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",qj(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+L1(o,s);a+=Nv(o,t,n,l,i)}else if(l=ZW(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+L1(o,s++),a+=Nv(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Tm(e,t,n){if(e==null)return e;var r=[],i=0;return Nv(e,r,"","",function(o){return t.call(n,o,i++)}),r}function JW(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var fr={current:null},Mv={transition:null},eH={ReactCurrentDispatcher:fr,ReactCurrentBatchConfig:Mv,ReactCurrentOwner:aE};function X$(){throw Error("act(...) is not supported in production builds of React.")}it.Children={map:Tm,forEach:function(e,t,n){Tm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tm(e,function(){t++}),t},toArray:function(e){return Tm(e,function(t){return t})||[]},only:function(e){if(!sE(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=zc;it.Fragment=UW;it.Profiler=VW;it.PureComponent=iE;it.StrictMode=zW;it.Suspense=qW;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eH;it.act=X$;it.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=H$({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=aE.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)K$.call(t,l)&&!Y$.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:xp,type:e.type,key:i,ref:o,props:r,_owner:a}};it.createContext=function(e){return e={$$typeof:HW,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:WW,_context:e},e.Consumer=e};it.createElement=Z$;it.createFactory=function(e){var t=Z$.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:GW,render:e}};it.isValidElement=sE;it.lazy=function(e){return{$$typeof:YW,_payload:{_status:-1,_result:e},_init:JW}};it.memo=function(e,t){return{$$typeof:KW,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Mv.transition;Mv.transition={};try{e()}finally{Mv.transition=t}};it.unstable_act=X$;it.useCallback=function(e,t){return fr.current.useCallback(e,t)};it.useContext=function(e){return fr.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return fr.current.useDeferredValue(e)};it.useEffect=function(e,t){return fr.current.useEffect(e,t)};it.useId=function(){return fr.current.useId()};it.useImperativeHandle=function(e,t,n){return fr.current.useImperativeHandle(e,t,n)};it.useInsertionEffect=function(e,t){return fr.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return fr.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return fr.current.useMemo(e,t)};it.useReducer=function(e,t,n){return fr.current.useReducer(e,t,n)};it.useRef=function(e){return fr.current.useRef(e)};it.useState=function(e){return fr.current.useState(e)};it.useSyncExternalStore=function(e,t,n){return fr.current.useSyncExternalStore(e,t,n)};it.useTransition=function(){return fr.current.useTransition()};it.version="18.3.1";V$.exports=it;var R=V$.exports;const V=st(R),Ox=DW({__proto__:null,default:V},[R]);/**
|
||
* @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 tH=R,nH=Symbol.for("react.element"),rH=Symbol.for("react.fragment"),iH=Object.prototype.hasOwnProperty,oH=tH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aH={key:!0,ref:!0,__self:!0,__source:!0};function Q$(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)iH.call(t,r)&&!aH.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:nH,type:e,key:o,ref:a,props:i,_owner:oH.current}}E0.Fragment=rH;E0.jsx=Q$;E0.jsxs=Q$;z$.exports=E0;var m=z$.exports,J$={exports:{}},Wr={},eI={exports:{}},tI={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(Z,z){var B=Z.length;Z.push(z);e:for(;0<B;){var H=B-1>>>1,ee=Z[H];if(0<i(ee,z))Z[H]=z,Z[B]=ee,B=H;else break e}}function n(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var z=Z[0],B=Z.pop();if(B!==z){Z[0]=B;e:for(var H=0,ee=Z.length,K=ee>>>1;H<K;){var te=2*(H+1)-1,ie=Z[te],ae=te+1,fe=Z[ae];if(0>i(ie,B))ae<ee&&0>i(fe,ie)?(Z[H]=fe,Z[ae]=B,H=ae):(Z[H]=ie,Z[te]=B,H=te);else if(ae<ee&&0>i(fe,B))Z[H]=fe,Z[ae]=B,H=ae;else break e}}return z}function i(Z,z){var B=Z.sortIndex-z.sortIndex;return B!==0?B:Z.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,d=null,h=3,v=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(Z){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=Z)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function S(Z){if(y=!1,w(Z),!g)if(n(l)!==null)g=!0,Q(E);else{var z=n(u);z!==null&&ne(S,z.startTime-Z)}}function E(Z,z){g=!1,y&&(y=!1,_(A),A=-1),v=!0;var B=h;try{for(w(z),d=n(l);d!==null&&(!(d.expirationTime>z)||Z&&!I());){var H=d.callback;if(typeof H=="function"){d.callback=null,h=d.priorityLevel;var ee=H(d.expirationTime<=z);z=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(l)&&r(l),w(z)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var te=n(u);te!==null&&ne(S,te.startTime-z),K=!1}return K}finally{d=null,h=B,v=!1}}var P=!1,T=null,A=-1,D=5,k=-1;function I(){return!(e.unstable_now()-k<D)}function F(){if(T!==null){var Z=e.unstable_now();k=Z;var z=!0;try{z=T(!0,Z)}finally{z?q():(P=!1,T=null)}}else P=!1}var q;if(typeof b=="function")q=function(){b(F)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,X=W.port2;W.port1.onmessage=F,q=function(){X.postMessage(null)}}else q=function(){x(F,0)};function Q(Z){T=Z,P||(P=!0,q())}function ne(Z,z){A=x(function(){Z(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,Q(E))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(Z){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var B=h;h=z;try{return Z()}finally{h=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,z){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var B=h;h=Z;try{return z()}finally{h=B}},e.unstable_scheduleCallback=function(Z,z,B){var H=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?H+B:H):B=H,Z){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=B+ee,Z={id:f++,callback:z,priorityLevel:Z,startTime:B,expirationTime:ee,sortIndex:-1},B>H?(Z.sortIndex=B,t(u,Z),n(l)===null&&Z===n(u)&&(y?(_(A),A=-1):y=!0,ne(S,B-H))):(Z.sortIndex=ee,t(l,Z),g||v||(g=!0,Q(E))),Z},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(Z){var z=h;return function(){var B=h;h=z;try{return Z.apply(this,arguments)}finally{h=B}}}})(tI);eI.exports=tI;var sH=eI.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 lH=R,Br=sH;function Oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var nI=new Set,Xd={};function Ml(e,t){Xu(e,t),Xu(e+"Capture",t)}function Xu(e,t){for(Xd[e]=t,e=0;e<t.length;e++)nI.add(t[e])}var Go=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sx=Object.prototype.hasOwnProperty,uH=/^[: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]*$/,Yj={},Zj={};function cH(e){return Sx.call(Zj,e)?!0:Sx.call(Yj,e)?!1:uH.test(e)?Zj[e]=!0:(Yj[e]=!0,!1)}function fH(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function dH(e,t,n,r){if(t===null||typeof t>"u"||fH(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Un[e]=new dr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Un[t]=new dr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Un[e]=new dr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Un[e]=new dr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Un[e]=new dr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Un[e]=new dr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Un[e]=new dr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Un[e]=new dr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Un[e]=new dr(e,5,!1,e.toLowerCase(),null,!1,!1)});var lE=/[\-:]([a-z])/g;function uE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lE,uE);Un[t]=new dr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lE,uE);Un[t]=new dr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lE,uE);Un[t]=new dr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Un[e]=new dr(e,1,!1,e.toLowerCase(),null,!1,!1)});Un.xlinkHref=new dr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Un[e]=new dr(e,1,!1,e.toLowerCase(),null,!0,!0)});function cE(e,t,n,r){var i=Un.hasOwnProperty(t)?Un[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(dH(t,n,i,r)&&(n=null),r||i===null?cH(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var oa=lH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jm=Symbol.for("react.element"),yu=Symbol.for("react.portal"),bu=Symbol.for("react.fragment"),fE=Symbol.for("react.strict_mode"),Ex=Symbol.for("react.profiler"),rI=Symbol.for("react.provider"),iI=Symbol.for("react.context"),dE=Symbol.for("react.forward_ref"),Px=Symbol.for("react.suspense"),Cx=Symbol.for("react.suspense_list"),hE=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),oI=Symbol.for("react.offscreen"),Xj=Symbol.iterator;function $f(e){return e===null||typeof e!="object"?null:(e=Xj&&e[Xj]||e["@@iterator"],typeof e=="function"?e:null)}var Ht=Object.assign,$1;function sd(e){if($1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$1=t&&t[1]||""}return`
|
||
`+$1+e}var I1=!1;function D1(e,t){if(!e||I1)return"";I1=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{I1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sd(e):""}function hH(e){switch(e.tag){case 5:return sd(e.type);case 16:return sd("Lazy");case 13:return sd("Suspense");case 19:return sd("SuspenseList");case 0:case 2:case 15:return e=D1(e.type,!1),e;case 11:return e=D1(e.type.render,!1),e;case 1:return e=D1(e.type,!0),e;default:return""}}function Tx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bu:return"Fragment";case yu:return"Portal";case Ex:return"Profiler";case fE:return"StrictMode";case Px:return"Suspense";case Cx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case iI:return(e.displayName||"Context")+".Consumer";case rI:return(e._context.displayName||"Context")+".Provider";case dE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hE:return t=e.displayName||null,t!==null?t:Tx(e.type)||"Memo";case Ea:t=e._payload,e=e._init;try{return Tx(e(t))}catch{}}return null}function pH(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tx(t);case 8:return t===fE?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ja(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function aI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mH(e){var t=aI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Am(e){e._valueTracker||(e._valueTracker=mH(e))}function sI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=aI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ig(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jx(e,t){var n=t.checked;return Ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qj(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ja(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lI(e,t){t=t.checked,t!=null&&cE(e,"checked",t,!1)}function Ax(e,t){lI(e,t);var n=Ja(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?kx(e,t.type,n):t.hasOwnProperty("defaultValue")&&kx(e,t.type,Ja(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jj(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function kx(e,t,n){(t!=="number"||ig(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ld=Array.isArray;function Fu(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ja(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Nx(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Oe(91));return Ht({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eA(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Oe(92));if(ld(n)){if(1<n.length)throw Error(Oe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ja(n)}}function uI(e,t){var n=Ja(t.value),r=Ja(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function tA(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cI(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Mx(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cI(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var km,fI=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(km=km||document.createElement("div"),km.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=km.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _d={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},vH=["Webkit","ms","Moz","O"];Object.keys(_d).forEach(function(e){vH.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_d[t]=_d[e]})});function dI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_d.hasOwnProperty(e)&&_d[e]?(""+t).trim():t+"px"}function hI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var gH=Ht({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 Rx(e,t){if(t){if(gH[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Oe(62))}}function Lx(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $x=null;function pE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ix=null,Bu=null,Uu=null;function nA(e){if(e=Sp(e)){if(typeof Ix!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=A0(t),Ix(e.stateNode,e.type,t))}}function pI(e){Bu?Uu?Uu.push(e):Uu=[e]:Bu=e}function mI(){if(Bu){var e=Bu,t=Uu;if(Uu=Bu=null,nA(e),t)for(e=0;e<t.length;e++)nA(t[e])}}function vI(e,t){return e(t)}function gI(){}var F1=!1;function yI(e,t,n){if(F1)return e(t,n);F1=!0;try{return vI(e,t,n)}finally{F1=!1,(Bu!==null||Uu!==null)&&(gI(),mI())}}function Jd(e,t){var n=e.stateNode;if(n===null)return null;var r=A0(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Oe(231,t,typeof n));return n}var Dx=!1;if(Go)try{var If={};Object.defineProperty(If,"passive",{get:function(){Dx=!0}}),window.addEventListener("test",If,If),window.removeEventListener("test",If,If)}catch{Dx=!1}function yH(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var xd=!1,og=null,ag=!1,Fx=null,bH={onError:function(e){xd=!0,og=e}};function _H(e,t,n,r,i,o,a,s,l){xd=!1,og=null,yH.apply(bH,arguments)}function xH(e,t,n,r,i,o,a,s,l){if(_H.apply(this,arguments),xd){if(xd){var u=og;xd=!1,og=null}else throw Error(Oe(198));ag||(ag=!0,Fx=u)}}function Rl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function bI(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rA(e){if(Rl(e)!==e)throw Error(Oe(188))}function wH(e){var t=e.alternate;if(!t){if(t=Rl(e),t===null)throw Error(Oe(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return rA(i),e;if(o===r)return rA(i),t;o=o.sibling}throw Error(Oe(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Oe(189))}}if(n.alternate!==r)throw Error(Oe(190))}if(n.tag!==3)throw Error(Oe(188));return n.stateNode.current===n?e:t}function _I(e){return e=wH(e),e!==null?xI(e):null}function xI(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xI(e);if(t!==null)return t;e=e.sibling}return null}var wI=Br.unstable_scheduleCallback,iA=Br.unstable_cancelCallback,OH=Br.unstable_shouldYield,SH=Br.unstable_requestPaint,tn=Br.unstable_now,EH=Br.unstable_getCurrentPriorityLevel,mE=Br.unstable_ImmediatePriority,OI=Br.unstable_UserBlockingPriority,sg=Br.unstable_NormalPriority,PH=Br.unstable_LowPriority,SI=Br.unstable_IdlePriority,P0=null,ho=null;function CH(e){if(ho&&typeof ho.onCommitFiberRoot=="function")try{ho.onCommitFiberRoot(P0,e,void 0,(e.current.flags&128)===128)}catch{}}var $i=Math.clz32?Math.clz32:AH,TH=Math.log,jH=Math.LN2;function AH(e){return e>>>=0,e===0?32:31-(TH(e)/jH|0)|0}var Nm=64,Mm=4194304;function ud(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=ud(s):(o&=a,o!==0&&(r=ud(o)))}else a=n&~i,a!==0?r=ud(a):o!==0&&(r=ud(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-$i(t),i=1<<n,r|=e[n],t&=~i;return r}function kH(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function NH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-$i(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=kH(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Bx(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function EI(){var e=Nm;return Nm<<=1,!(Nm&4194240)&&(Nm=64),e}function B1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$i(t),e[t]=n}function MH(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-$i(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function vE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$i(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var vt=0;function PI(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var CI,gE,TI,jI,AI,Ux=!1,Rm=[],Ba=null,Ua=null,za=null,eh=new Map,th=new Map,ja=[],RH="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 oA(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":eh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":th.delete(t.pointerId)}}function Df(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Sp(t),t!==null&&gE(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function LH(e,t,n,r,i){switch(t){case"focusin":return Ba=Df(Ba,e,t,n,r,i),!0;case"dragenter":return Ua=Df(Ua,e,t,n,r,i),!0;case"mouseover":return za=Df(za,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return eh.set(o,Df(eh.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,th.set(o,Df(th.get(o)||null,e,t,n,r,i)),!0}return!1}function kI(e){var t=Ys(e.target);if(t!==null){var n=Rl(t);if(n!==null){if(t=n.tag,t===13){if(t=bI(n),t!==null){e.blockedOn=t,AI(e.priority,function(){TI(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zx(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$x=r,n.target.dispatchEvent(r),$x=null}else return t=Sp(n),t!==null&&gE(t),e.blockedOn=n,!1;t.shift()}return!0}function aA(e,t,n){Rv(e)&&n.delete(t)}function $H(){Ux=!1,Ba!==null&&Rv(Ba)&&(Ba=null),Ua!==null&&Rv(Ua)&&(Ua=null),za!==null&&Rv(za)&&(za=null),eh.forEach(aA),th.forEach(aA)}function Ff(e,t){e.blockedOn===t&&(e.blockedOn=null,Ux||(Ux=!0,Br.unstable_scheduleCallback(Br.unstable_NormalPriority,$H)))}function nh(e){function t(i){return Ff(i,e)}if(0<Rm.length){Ff(Rm[0],e);for(var n=1;n<Rm.length;n++){var r=Rm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ba!==null&&Ff(Ba,e),Ua!==null&&Ff(Ua,e),za!==null&&Ff(za,e),eh.forEach(t),th.forEach(t),n=0;n<ja.length;n++)r=ja[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ja.length&&(n=ja[0],n.blockedOn===null);)kI(n),n.blockedOn===null&&ja.shift()}var zu=oa.ReactCurrentBatchConfig,ug=!0;function IH(e,t,n,r){var i=vt,o=zu.transition;zu.transition=null;try{vt=1,yE(e,t,n,r)}finally{vt=i,zu.transition=o}}function DH(e,t,n,r){var i=vt,o=zu.transition;zu.transition=null;try{vt=4,yE(e,t,n,r)}finally{vt=i,zu.transition=o}}function yE(e,t,n,r){if(ug){var i=zx(e,t,n,r);if(i===null)Z1(e,t,r,cg,n),oA(e,r);else if(LH(i,e,t,n,r))r.stopPropagation();else if(oA(e,r),t&4&&-1<RH.indexOf(e)){for(;i!==null;){var o=Sp(i);if(o!==null&&CI(o),o=zx(e,t,n,r),o===null&&Z1(e,t,r,cg,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Z1(e,t,r,null,n)}}var cg=null;function zx(e,t,n,r){if(cg=null,e=pE(r),e=Ys(e),e!==null)if(t=Rl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=bI(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return cg=e,null}function NI(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(EH()){case mE:return 1;case OI:return 4;case sg:case PH:return 16;case SI:return 536870912;default:return 16}default:return 16}}var Na=null,bE=null,Lv=null;function MI(){if(Lv)return Lv;var e,t=bE,n=t.length,r,i="value"in Na?Na.value:Na.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Lv=i.slice(e,1<r?1-r:void 0)}function $v(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lm(){return!0}function sA(){return!1}function Hr(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Lm:sA,this.isPropagationStopped=sA,this}return Ht(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lm)},persist:function(){},isPersistent:Lm}),t}var Vc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_E=Hr(Vc),Op=Ht({},Vc,{view:0,detail:0}),FH=Hr(Op),U1,z1,Bf,C0=Ht({},Op,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xE,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Bf&&(Bf&&e.type==="mousemove"?(U1=e.screenX-Bf.screenX,z1=e.screenY-Bf.screenY):z1=U1=0,Bf=e),U1)},movementY:function(e){return"movementY"in e?e.movementY:z1}}),lA=Hr(C0),BH=Ht({},C0,{dataTransfer:0}),UH=Hr(BH),zH=Ht({},Op,{relatedTarget:0}),V1=Hr(zH),VH=Ht({},Vc,{animationName:0,elapsedTime:0,pseudoElement:0}),WH=Hr(VH),HH=Ht({},Vc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),GH=Hr(HH),qH=Ht({},Vc,{data:0}),uA=Hr(qH),KH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YH={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"},ZH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZH[e])?!!t[e]:!1}function xE(){return XH}var QH=Ht({},Op,{key:function(e){if(e.key){var t=KH[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$v(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?YH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xE,charCode:function(e){return e.type==="keypress"?$v(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$v(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),JH=Hr(QH),eG=Ht({},C0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cA=Hr(eG),tG=Ht({},Op,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xE}),nG=Hr(tG),rG=Ht({},Vc,{propertyName:0,elapsedTime:0,pseudoElement:0}),iG=Hr(rG),oG=Ht({},C0,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),aG=Hr(oG),sG=[9,13,27,32],wE=Go&&"CompositionEvent"in window,wd=null;Go&&"documentMode"in document&&(wd=document.documentMode);var lG=Go&&"TextEvent"in window&&!wd,RI=Go&&(!wE||wd&&8<wd&&11>=wd),fA=" ",dA=!1;function LI(e,t){switch(e){case"keyup":return sG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $I(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _u=!1;function uG(e,t){switch(e){case"compositionend":return $I(t);case"keypress":return t.which!==32?null:(dA=!0,fA);case"textInput":return e=t.data,e===fA&&dA?null:e;default:return null}}function cG(e,t){if(_u)return e==="compositionend"||!wE&&LI(e,t)?(e=MI(),Lv=bE=Na=null,_u=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return RI&&t.locale!=="ko"?null:t.data;default:return null}}var fG={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 hA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fG[e.type]:t==="textarea"}function II(e,t,n,r){pI(r),t=fg(t,"onChange"),0<t.length&&(n=new _E("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Od=null,rh=null;function dG(e){KI(e,0)}function T0(e){var t=Ou(e);if(sI(t))return e}function hG(e,t){if(e==="change")return t}var DI=!1;if(Go){var W1;if(Go){var H1="oninput"in document;if(!H1){var pA=document.createElement("div");pA.setAttribute("oninput","return;"),H1=typeof pA.oninput=="function"}W1=H1}else W1=!1;DI=W1&&(!document.documentMode||9<document.documentMode)}function mA(){Od&&(Od.detachEvent("onpropertychange",FI),rh=Od=null)}function FI(e){if(e.propertyName==="value"&&T0(rh)){var t=[];II(t,rh,e,pE(e)),yI(dG,t)}}function pG(e,t,n){e==="focusin"?(mA(),Od=t,rh=n,Od.attachEvent("onpropertychange",FI)):e==="focusout"&&mA()}function mG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return T0(rh)}function vG(e,t){if(e==="click")return T0(t)}function gG(e,t){if(e==="input"||e==="change")return T0(t)}function yG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bi=typeof Object.is=="function"?Object.is:yG;function ih(e,t){if(Bi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Sx.call(t,i)||!Bi(e[i],t[i]))return!1}return!0}function vA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gA(e,t){var n=vA(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vA(n)}}function BI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?BI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function UI(){for(var e=window,t=ig();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ig(e.document)}return t}function OE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function bG(e){var t=UI(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&BI(n.ownerDocument.documentElement,n)){if(r!==null&&OE(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=gA(n,o);var a=gA(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _G=Go&&"documentMode"in document&&11>=document.documentMode,xu=null,Vx=null,Sd=null,Wx=!1;function yA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wx||xu==null||xu!==ig(r)||(r=xu,"selectionStart"in r&&OE(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Sd&&ih(Sd,r)||(Sd=r,r=fg(Vx,"onSelect"),0<r.length&&(t=new _E("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xu)))}function $m(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wu={animationend:$m("Animation","AnimationEnd"),animationiteration:$m("Animation","AnimationIteration"),animationstart:$m("Animation","AnimationStart"),transitionend:$m("Transition","TransitionEnd")},G1={},zI={};Go&&(zI=document.createElement("div").style,"AnimationEvent"in window||(delete wu.animationend.animation,delete wu.animationiteration.animation,delete wu.animationstart.animation),"TransitionEvent"in window||delete wu.transitionend.transition);function j0(e){if(G1[e])return G1[e];if(!wu[e])return e;var t=wu[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zI)return G1[e]=t[n];return e}var VI=j0("animationend"),WI=j0("animationiteration"),HI=j0("animationstart"),GI=j0("transitionend"),qI=new Map,bA="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 fs(e,t){qI.set(e,t),Ml(t,[e])}for(var q1=0;q1<bA.length;q1++){var K1=bA[q1],xG=K1.toLowerCase(),wG=K1[0].toUpperCase()+K1.slice(1);fs(xG,"on"+wG)}fs(VI,"onAnimationEnd");fs(WI,"onAnimationIteration");fs(HI,"onAnimationStart");fs("dblclick","onDoubleClick");fs("focusin","onFocus");fs("focusout","onBlur");fs(GI,"onTransitionEnd");Xu("onMouseEnter",["mouseout","mouseover"]);Xu("onMouseLeave",["mouseout","mouseover"]);Xu("onPointerEnter",["pointerout","pointerover"]);Xu("onPointerLeave",["pointerout","pointerover"]);Ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ml("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cd="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(" "),OG=new Set("cancel close invalid load scroll toggle".split(" ").concat(cd));function _A(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,xH(r,t,void 0,e),e.currentTarget=null}function KI(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;_A(i,s,u),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;_A(i,s,u),o=l}}}if(ag)throw e=Fx,ag=!1,Fx=null,e}function Ct(e,t){var n=t[Yx];n===void 0&&(n=t[Yx]=new Set);var r=e+"__bubble";n.has(r)||(YI(t,e,2,!1),n.add(r))}function Y1(e,t,n){var r=0;t&&(r|=4),YI(n,e,r,t)}var Im="_reactListening"+Math.random().toString(36).slice(2);function oh(e){if(!e[Im]){e[Im]=!0,nI.forEach(function(n){n!=="selectionchange"&&(OG.has(n)||Y1(n,!1,e),Y1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Im]||(t[Im]=!0,Y1("selectionchange",!1,t))}}function YI(e,t,n,r){switch(NI(t)){case 1:var i=IH;break;case 4:i=DH;break;default:i=yE}n=i.bind(null,t,n,e),i=void 0,!Dx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Z1(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Ys(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}yI(function(){var u=o,f=pE(n),d=[];e:{var h=qI.get(e);if(h!==void 0){var v=_E,g=e;switch(e){case"keypress":if($v(n)===0)break e;case"keydown":case"keyup":v=JH;break;case"focusin":g="focus",v=V1;break;case"focusout":g="blur",v=V1;break;case"beforeblur":case"afterblur":v=V1;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=lA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=UH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=nG;break;case VI:case WI:case HI:v=WH;break;case GI:v=iG;break;case"scroll":v=FH;break;case"wheel":v=aG;break;case"copy":case"cut":case"paste":v=GH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=cA}var y=(t&4)!==0,x=!y&&e==="scroll",_=y?h!==null?h+"Capture":null:h;y=[];for(var b=u,w;b!==null;){w=b;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,_!==null&&(S=Jd(b,_),S!=null&&y.push(ah(b,S,w)))),x)break;b=b.return}0<y.length&&(h=new v(h,g,null,n,f),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",h&&n!==$x&&(g=n.relatedTarget||n.fromElement)&&(Ys(g)||g[qo]))break e;if((v||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=u,g=g?Ys(g):null,g!==null&&(x=Rl(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=u),v!==g)){if(y=lA,S="onMouseLeave",_="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(y=cA,S="onPointerLeave",_="onPointerEnter",b="pointer"),x=v==null?h:Ou(v),w=g==null?h:Ou(g),h=new y(S,b+"leave",v,n,f),h.target=x,h.relatedTarget=w,S=null,Ys(f)===u&&(y=new y(_,b+"enter",g,n,f),y.target=w,y.relatedTarget=x,S=y),x=S,v&&g)t:{for(y=v,_=g,b=0,w=y;w;w=Ql(w))b++;for(w=0,S=_;S;S=Ql(S))w++;for(;0<b-w;)y=Ql(y),b--;for(;0<w-b;)_=Ql(_),w--;for(;b--;){if(y===_||_!==null&&y===_.alternate)break t;y=Ql(y),_=Ql(_)}y=null}else y=null;v!==null&&xA(d,h,v,y,!1),g!==null&&x!==null&&xA(d,x,g,y,!0)}}e:{if(h=u?Ou(u):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var E=hG;else if(hA(h))if(DI)E=gG;else{E=mG;var P=pG}else(v=h.nodeName)&&v.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=vG);if(E&&(E=E(e,u))){II(d,E,n,f);break e}P&&P(e,h,u),e==="focusout"&&(P=h._wrapperState)&&P.controlled&&h.type==="number"&&kx(h,"number",h.value)}switch(P=u?Ou(u):window,e){case"focusin":(hA(P)||P.contentEditable==="true")&&(xu=P,Vx=u,Sd=null);break;case"focusout":Sd=Vx=xu=null;break;case"mousedown":Wx=!0;break;case"contextmenu":case"mouseup":case"dragend":Wx=!1,yA(d,n,f);break;case"selectionchange":if(_G)break;case"keydown":case"keyup":yA(d,n,f)}var T;if(wE)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else _u?LI(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(RI&&n.locale!=="ko"&&(_u||A!=="onCompositionStart"?A==="onCompositionEnd"&&_u&&(T=MI()):(Na=f,bE="value"in Na?Na.value:Na.textContent,_u=!0)),P=fg(u,A),0<P.length&&(A=new uA(A,e,null,n,f),d.push({event:A,listeners:P}),T?A.data=T:(T=$I(n),T!==null&&(A.data=T)))),(T=lG?uG(e,n):cG(e,n))&&(u=fg(u,"onBeforeInput"),0<u.length&&(f=new uA("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=T))}KI(d,t)})}function ah(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fg(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Jd(e,n),o!=null&&r.unshift(ah(e,o,i)),o=Jd(e,t),o!=null&&r.push(ah(e,o,i))),e=e.return}return r}function Ql(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xA(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=Jd(n,o),l!=null&&a.unshift(ah(n,l,s))):i||(l=Jd(n,o),l!=null&&a.push(ah(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var SG=/\r\n?/g,EG=/\u0000|\uFFFD/g;function wA(e){return(typeof e=="string"?e:""+e).replace(SG,`
|
||
`).replace(EG,"")}function Dm(e,t,n){if(t=wA(t),wA(e)!==t&&n)throw Error(Oe(425))}function dg(){}var Hx=null,Gx=null;function qx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kx=typeof setTimeout=="function"?setTimeout:void 0,PG=typeof clearTimeout=="function"?clearTimeout:void 0,OA=typeof Promise=="function"?Promise:void 0,CG=typeof queueMicrotask=="function"?queueMicrotask:typeof OA<"u"?function(e){return OA.resolve(null).then(e).catch(TG)}:Kx;function TG(e){setTimeout(function(){throw e})}function X1(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),nh(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);nh(t)}function Va(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function SA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Wc=Math.random().toString(36).slice(2),so="__reactFiber$"+Wc,sh="__reactProps$"+Wc,qo="__reactContainer$"+Wc,Yx="__reactEvents$"+Wc,jG="__reactListeners$"+Wc,AG="__reactHandles$"+Wc;function Ys(e){var t=e[so];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qo]||n[so]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=SA(e);e!==null;){if(n=e[so])return n;e=SA(e)}return t}e=n,n=e.parentNode}return null}function Sp(e){return e=e[so]||e[qo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ou(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Oe(33))}function A0(e){return e[sh]||null}var Zx=[],Su=-1;function ds(e){return{current:e}}function Nt(e){0>Su||(e.current=Zx[Su],Zx[Su]=null,Su--)}function St(e,t){Su++,Zx[Su]=e.current,e.current=t}var es={},Kn=ds(es),yr=ds(!1),vl=es;function Qu(e,t){var n=e.type.contextTypes;if(!n)return es;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function br(e){return e=e.childContextTypes,e!=null}function hg(){Nt(yr),Nt(Kn)}function EA(e,t,n){if(Kn.current!==es)throw Error(Oe(168));St(Kn,t),St(yr,n)}function ZI(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Oe(108,pH(e)||"Unknown",i));return Ht({},n,r)}function pg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||es,vl=Kn.current,St(Kn,e),St(yr,yr.current),!0}function PA(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=ZI(e,t,vl),r.__reactInternalMemoizedMergedChildContext=e,Nt(yr),Nt(Kn),St(Kn,e)):Nt(yr),St(yr,n)}var $o=null,k0=!1,Q1=!1;function XI(e){$o===null?$o=[e]:$o.push(e)}function kG(e){k0=!0,XI(e)}function hs(){if(!Q1&&$o!==null){Q1=!0;var e=0,t=vt;try{var n=$o;for(vt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$o=null,k0=!1}catch(i){throw $o!==null&&($o=$o.slice(e+1)),wI(mE,hs),i}finally{vt=t,Q1=!1}}return null}var Eu=[],Pu=0,mg=null,vg=0,ii=[],oi=0,gl=null,Io=1,Do="";function Ls(e,t){Eu[Pu++]=vg,Eu[Pu++]=mg,mg=e,vg=t}function QI(e,t,n){ii[oi++]=Io,ii[oi++]=Do,ii[oi++]=gl,gl=e;var r=Io;e=Do;var i=32-$i(r)-1;r&=~(1<<i),n+=1;var o=32-$i(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Io=1<<32-$i(t)+i|n<<i|r,Do=o+e}else Io=1<<o|n<<i|r,Do=e}function SE(e){e.return!==null&&(Ls(e,1),QI(e,1,0))}function EE(e){for(;e===mg;)mg=Eu[--Pu],Eu[Pu]=null,vg=Eu[--Pu],Eu[Pu]=null;for(;e===gl;)gl=ii[--oi],ii[oi]=null,Do=ii[--oi],ii[oi]=null,Io=ii[--oi],ii[oi]=null}var Dr=null,$r=null,Lt=!1,ki=null;function JI(e,t){var n=ui(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function CA(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dr=e,$r=Va(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dr=e,$r=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gl!==null?{id:Io,overflow:Do}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ui(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Dr=e,$r=null,!0):!1;default:return!1}}function Xx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qx(e){if(Lt){var t=$r;if(t){var n=t;if(!CA(e,t)){if(Xx(e))throw Error(Oe(418));t=Va(n.nextSibling);var r=Dr;t&&CA(e,t)?JI(r,n):(e.flags=e.flags&-4097|2,Lt=!1,Dr=e)}}else{if(Xx(e))throw Error(Oe(418));e.flags=e.flags&-4097|2,Lt=!1,Dr=e}}}function TA(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dr=e}function Fm(e){if(e!==Dr)return!1;if(!Lt)return TA(e),Lt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qx(e.type,e.memoizedProps)),t&&(t=$r)){if(Xx(e))throw e6(),Error(Oe(418));for(;t;)JI(e,t),t=Va(t.nextSibling)}if(TA(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){$r=Va(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}$r=null}}else $r=Dr?Va(e.stateNode.nextSibling):null;return!0}function e6(){for(var e=$r;e;)e=Va(e.nextSibling)}function Ju(){$r=Dr=null,Lt=!1}function PE(e){ki===null?ki=[e]:ki.push(e)}var NG=oa.ReactCurrentBatchConfig;function Uf(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Oe(309));var r=n.stateNode}if(!r)throw Error(Oe(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Oe(284));if(!n._owner)throw Error(Oe(290,e))}return e}function Bm(e,t){throw e=Object.prototype.toString.call(t),Error(Oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jA(e){var t=e._init;return t(e._payload)}function t6(e){function t(_,b){if(e){var w=_.deletions;w===null?(_.deletions=[b],_.flags|=16):w.push(b)}}function n(_,b){if(!e)return null;for(;b!==null;)t(_,b),b=b.sibling;return null}function r(_,b){for(_=new Map;b!==null;)b.key!==null?_.set(b.key,b):_.set(b.index,b),b=b.sibling;return _}function i(_,b){return _=qa(_,b),_.index=0,_.sibling=null,_}function o(_,b,w){return _.index=w,e?(w=_.alternate,w!==null?(w=w.index,w<b?(_.flags|=2,b):w):(_.flags|=2,b)):(_.flags|=1048576,b)}function a(_){return e&&_.alternate===null&&(_.flags|=2),_}function s(_,b,w,S){return b===null||b.tag!==6?(b=o_(w,_.mode,S),b.return=_,b):(b=i(b,w),b.return=_,b)}function l(_,b,w,S){var E=w.type;return E===bu?f(_,b,w.props.children,S,w.key):b!==null&&(b.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ea&&jA(E)===b.type)?(S=i(b,w.props),S.ref=Uf(_,b,w),S.return=_,S):(S=Vv(w.type,w.key,w.props,null,_.mode,S),S.ref=Uf(_,b,w),S.return=_,S)}function u(_,b,w,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=a_(w,_.mode,S),b.return=_,b):(b=i(b,w.children||[]),b.return=_,b)}function f(_,b,w,S,E){return b===null||b.tag!==7?(b=sl(w,_.mode,S,E),b.return=_,b):(b=i(b,w),b.return=_,b)}function d(_,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return b=o_(""+b,_.mode,w),b.return=_,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case jm:return w=Vv(b.type,b.key,b.props,null,_.mode,w),w.ref=Uf(_,null,b),w.return=_,w;case yu:return b=a_(b,_.mode,w),b.return=_,b;case Ea:var S=b._init;return d(_,S(b._payload),w)}if(ld(b)||$f(b))return b=sl(b,_.mode,w,null),b.return=_,b;Bm(_,b)}return null}function h(_,b,w,S){var E=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:s(_,b,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case jm:return w.key===E?l(_,b,w,S):null;case yu:return w.key===E?u(_,b,w,S):null;case Ea:return E=w._init,h(_,b,E(w._payload),S)}if(ld(w)||$f(w))return E!==null?null:f(_,b,w,S,null);Bm(_,w)}return null}function v(_,b,w,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return _=_.get(w)||null,s(b,_,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case jm:return _=_.get(S.key===null?w:S.key)||null,l(b,_,S,E);case yu:return _=_.get(S.key===null?w:S.key)||null,u(b,_,S,E);case Ea:var P=S._init;return v(_,b,w,P(S._payload),E)}if(ld(S)||$f(S))return _=_.get(w)||null,f(b,_,S,E,null);Bm(b,S)}return null}function g(_,b,w,S){for(var E=null,P=null,T=b,A=b=0,D=null;T!==null&&A<w.length;A++){T.index>A?(D=T,T=null):D=T.sibling;var k=h(_,T,w[A],S);if(k===null){T===null&&(T=D);break}e&&T&&k.alternate===null&&t(_,T),b=o(k,b,A),P===null?E=k:P.sibling=k,P=k,T=D}if(A===w.length)return n(_,T),Lt&&Ls(_,A),E;if(T===null){for(;A<w.length;A++)T=d(_,w[A],S),T!==null&&(b=o(T,b,A),P===null?E=T:P.sibling=T,P=T);return Lt&&Ls(_,A),E}for(T=r(_,T);A<w.length;A++)D=v(T,_,A,w[A],S),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?A:D.key),b=o(D,b,A),P===null?E=D:P.sibling=D,P=D);return e&&T.forEach(function(I){return t(_,I)}),Lt&&Ls(_,A),E}function y(_,b,w,S){var E=$f(w);if(typeof E!="function")throw Error(Oe(150));if(w=E.call(w),w==null)throw Error(Oe(151));for(var P=E=null,T=b,A=b=0,D=null,k=w.next();T!==null&&!k.done;A++,k=w.next()){T.index>A?(D=T,T=null):D=T.sibling;var I=h(_,T,k.value,S);if(I===null){T===null&&(T=D);break}e&&T&&I.alternate===null&&t(_,T),b=o(I,b,A),P===null?E=I:P.sibling=I,P=I,T=D}if(k.done)return n(_,T),Lt&&Ls(_,A),E;if(T===null){for(;!k.done;A++,k=w.next())k=d(_,k.value,S),k!==null&&(b=o(k,b,A),P===null?E=k:P.sibling=k,P=k);return Lt&&Ls(_,A),E}for(T=r(_,T);!k.done;A++,k=w.next())k=v(T,_,A,k.value,S),k!==null&&(e&&k.alternate!==null&&T.delete(k.key===null?A:k.key),b=o(k,b,A),P===null?E=k:P.sibling=k,P=k);return e&&T.forEach(function(F){return t(_,F)}),Lt&&Ls(_,A),E}function x(_,b,w,S){if(typeof w=="object"&&w!==null&&w.type===bu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case jm:e:{for(var E=w.key,P=b;P!==null;){if(P.key===E){if(E=w.type,E===bu){if(P.tag===7){n(_,P.sibling),b=i(P,w.props.children),b.return=_,_=b;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ea&&jA(E)===P.type){n(_,P.sibling),b=i(P,w.props),b.ref=Uf(_,P,w),b.return=_,_=b;break e}n(_,P);break}else t(_,P);P=P.sibling}w.type===bu?(b=sl(w.props.children,_.mode,S,w.key),b.return=_,_=b):(S=Vv(w.type,w.key,w.props,null,_.mode,S),S.ref=Uf(_,b,w),S.return=_,_=S)}return a(_);case yu:e:{for(P=w.key;b!==null;){if(b.key===P)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(_,b.sibling),b=i(b,w.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=a_(w,_.mode,S),b.return=_,_=b}return a(_);case Ea:return P=w._init,x(_,b,P(w._payload),S)}if(ld(w))return g(_,b,w,S);if($f(w))return y(_,b,w,S);Bm(_,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,w),b.return=_,_=b):(n(_,b),b=o_(w,_.mode,S),b.return=_,_=b),a(_)):n(_,b)}return x}var ec=t6(!0),n6=t6(!1),gg=ds(null),yg=null,Cu=null,CE=null;function TE(){CE=Cu=yg=null}function jE(e){var t=gg.current;Nt(gg),e._currentValue=t}function Jx(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vu(e,t){yg=e,CE=Cu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vr=!0),e.firstContext=null)}function pi(e){var t=e._currentValue;if(CE!==e)if(e={context:e,memoizedValue:t,next:null},Cu===null){if(yg===null)throw Error(Oe(308));Cu=e,yg.dependencies={lanes:0,firstContext:e}}else Cu=Cu.next=e;return t}var Zs=null;function AE(e){Zs===null?Zs=[e]:Zs.push(e)}function r6(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,AE(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ko(e,r)}function Ko(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Pa=!1;function kE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function i6(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ft&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ko(e,n)}return i=r.interleaved,i===null?(t.next=t,AE(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ko(e,n)}function Iv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vE(e,n)}}function AA(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bg(e,t,n,r){var i=e.updateQueue;Pa=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,f=u=l=null,s=o;do{var h=s.lane,v=s.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(h=t,v=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(v,d,h);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,h=typeof g=="function"?g.call(v,d,h):g,h==null)break e;d=Ht({},d,h);break e;case 2:Pa=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else v={eventTime:v,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,l=d):f=f.next=v,a|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(f===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);bl|=a,e.lanes=a,e.memoizedState=d}}function kA(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Oe(191,i));i.call(r)}}}var Ep={},po=ds(Ep),lh=ds(Ep),uh=ds(Ep);function Xs(e){if(e===Ep)throw Error(Oe(174));return e}function NE(e,t){switch(St(uh,t),St(lh,e),St(po,Ep),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mx(t,e)}Nt(po),St(po,t)}function tc(){Nt(po),Nt(lh),Nt(uh)}function o6(e){Xs(uh.current);var t=Xs(po.current),n=Mx(t,e.type);t!==n&&(St(lh,e),St(po,n))}function ME(e){lh.current===e&&(Nt(po),Nt(lh))}var Ut=ds(0);function _g(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var J1=[];function RE(){for(var e=0;e<J1.length;e++)J1[e]._workInProgressVersionPrimary=null;J1.length=0}var Dv=oa.ReactCurrentDispatcher,e_=oa.ReactCurrentBatchConfig,yl=0,Vt=null,dn=null,En=null,xg=!1,Ed=!1,ch=0,MG=0;function zn(){throw Error(Oe(321))}function LE(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bi(e[n],t[n]))return!1;return!0}function $E(e,t,n,r,i,o){if(yl=o,Vt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Dv.current=e===null||e.memoizedState===null?IG:DG,e=n(r,i),Ed){o=0;do{if(Ed=!1,ch=0,25<=o)throw Error(Oe(301));o+=1,En=dn=null,t.updateQueue=null,Dv.current=FG,e=n(r,i)}while(Ed)}if(Dv.current=wg,t=dn!==null&&dn.next!==null,yl=0,En=dn=Vt=null,xg=!1,t)throw Error(Oe(300));return e}function IE(){var e=ch!==0;return ch=0,e}function ro(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?Vt.memoizedState=En=e:En=En.next=e,En}function mi(){if(dn===null){var e=Vt.alternate;e=e!==null?e.memoizedState:null}else e=dn.next;var t=En===null?Vt.memoizedState:En.next;if(t!==null)En=t,dn=e;else{if(e===null)throw Error(Oe(310));dn=e,e={memoizedState:dn.memoizedState,baseState:dn.baseState,baseQueue:dn.baseQueue,queue:dn.queue,next:null},En===null?Vt.memoizedState=En=e:En=En.next=e}return En}function fh(e,t){return typeof t=="function"?t(e):t}function t_(e){var t=mi(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=dn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var f=u.lane;if((yl&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,Vt.lanes|=f,bl|=f}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,Bi(r,t.memoizedState)||(vr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Vt.lanes|=o,bl|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function n_(e){var t=mi(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Bi(o,t.memoizedState)||(vr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function a6(){}function s6(e,t){var n=Vt,r=mi(),i=t(),o=!Bi(r.memoizedState,i);if(o&&(r.memoizedState=i,vr=!0),r=r.queue,DE(c6.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||En!==null&&En.memoizedState.tag&1){if(n.flags|=2048,dh(9,u6.bind(null,n,r,i,t),void 0,null),Cn===null)throw Error(Oe(349));yl&30||l6(n,t,i)}return i}function l6(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vt.updateQueue,t===null?(t={lastEffect:null,stores:null},Vt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function u6(e,t,n,r){t.value=n,t.getSnapshot=r,f6(t)&&d6(e)}function c6(e,t,n){return n(function(){f6(t)&&d6(e)})}function f6(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bi(e,n)}catch{return!0}}function d6(e){var t=Ko(e,1);t!==null&&Ii(t,e,1,-1)}function NA(e){var t=ro();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fh,lastRenderedState:e},t.queue=e,e=e.dispatch=$G.bind(null,Vt,e),[t.memoizedState,e]}function dh(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Vt.updateQueue,t===null?(t={lastEffect:null,stores:null},Vt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function h6(){return mi().memoizedState}function Fv(e,t,n,r){var i=ro();Vt.flags|=e,i.memoizedState=dh(1|t,n,void 0,r===void 0?null:r)}function N0(e,t,n,r){var i=mi();r=r===void 0?null:r;var o=void 0;if(dn!==null){var a=dn.memoizedState;if(o=a.destroy,r!==null&&LE(r,a.deps)){i.memoizedState=dh(t,n,o,r);return}}Vt.flags|=e,i.memoizedState=dh(1|t,n,o,r)}function MA(e,t){return Fv(8390656,8,e,t)}function DE(e,t){return N0(2048,8,e,t)}function p6(e,t){return N0(4,2,e,t)}function m6(e,t){return N0(4,4,e,t)}function v6(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function g6(e,t,n){return n=n!=null?n.concat([e]):null,N0(4,4,v6.bind(null,t,e),n)}function FE(){}function y6(e,t){var n=mi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&LE(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function b6(e,t){var n=mi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&LE(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _6(e,t,n){return yl&21?(Bi(n,t)||(n=EI(),Vt.lanes|=n,bl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vr=!0),e.memoizedState=n)}function RG(e,t){var n=vt;vt=n!==0&&4>n?n:4,e(!0);var r=e_.transition;e_.transition={};try{e(!1),t()}finally{vt=n,e_.transition=r}}function x6(){return mi().memoizedState}function LG(e,t,n){var r=Ga(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},w6(e))O6(t,n);else if(n=r6(e,t,n,r),n!==null){var i=sr();Ii(n,e,r,i),S6(n,t,r)}}function $G(e,t,n){var r=Ga(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(w6(e))O6(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Bi(s,a)){var l=t.interleaved;l===null?(i.next=i,AE(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=r6(e,t,i,r),n!==null&&(i=sr(),Ii(n,e,r,i),S6(n,t,r))}}function w6(e){var t=e.alternate;return e===Vt||t!==null&&t===Vt}function O6(e,t){Ed=xg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function S6(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vE(e,n)}}var wg={readContext:pi,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useInsertionEffect:zn,useLayoutEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useMutableSource:zn,useSyncExternalStore:zn,useId:zn,unstable_isNewReconciler:!1},IG={readContext:pi,useCallback:function(e,t){return ro().memoizedState=[e,t===void 0?null:t],e},useContext:pi,useEffect:MA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fv(4194308,4,v6.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fv(4,2,e,t)},useMemo:function(e,t){var n=ro();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ro();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=LG.bind(null,Vt,e),[r.memoizedState,e]},useRef:function(e){var t=ro();return e={current:e},t.memoizedState=e},useState:NA,useDebugValue:FE,useDeferredValue:function(e){return ro().memoizedState=e},useTransition:function(){var e=NA(!1),t=e[0];return e=RG.bind(null,e[1]),ro().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vt,i=ro();if(Lt){if(n===void 0)throw Error(Oe(407));n=n()}else{if(n=t(),Cn===null)throw Error(Oe(349));yl&30||l6(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,MA(c6.bind(null,r,o,e),[e]),r.flags|=2048,dh(9,u6.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ro(),t=Cn.identifierPrefix;if(Lt){var n=Do,r=Io;n=(r&~(1<<32-$i(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ch++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=MG++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},DG={readContext:pi,useCallback:y6,useContext:pi,useEffect:DE,useImperativeHandle:g6,useInsertionEffect:p6,useLayoutEffect:m6,useMemo:b6,useReducer:t_,useRef:h6,useState:function(){return t_(fh)},useDebugValue:FE,useDeferredValue:function(e){var t=mi();return _6(t,dn.memoizedState,e)},useTransition:function(){var e=t_(fh)[0],t=mi().memoizedState;return[e,t]},useMutableSource:a6,useSyncExternalStore:s6,useId:x6,unstable_isNewReconciler:!1},FG={readContext:pi,useCallback:y6,useContext:pi,useEffect:DE,useImperativeHandle:g6,useInsertionEffect:p6,useLayoutEffect:m6,useMemo:b6,useReducer:n_,useRef:h6,useState:function(){return n_(fh)},useDebugValue:FE,useDeferredValue:function(e){var t=mi();return dn===null?t.memoizedState=e:_6(t,dn.memoizedState,e)},useTransition:function(){var e=n_(fh)[0],t=mi().memoizedState;return[e,t]},useMutableSource:a6,useSyncExternalStore:s6,useId:x6,unstable_isNewReconciler:!1};function Ci(e,t){if(e&&e.defaultProps){t=Ht({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ew(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ht({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var M0={isMounted:function(e){return(e=e._reactInternals)?Rl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sr(),i=Ga(e),o=zo(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wa(e,o,i),t!==null&&(Ii(t,e,i,r),Iv(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sr(),i=Ga(e),o=zo(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wa(e,o,i),t!==null&&(Ii(t,e,i,r),Iv(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sr(),r=Ga(e),i=zo(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wa(e,i,r),t!==null&&(Ii(t,e,r,n),Iv(t,e,r))}};function RA(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!ih(n,r)||!ih(i,o):!0}function E6(e,t,n){var r=!1,i=es,o=t.contextType;return typeof o=="object"&&o!==null?o=pi(o):(i=br(t)?vl:Kn.current,r=t.contextTypes,o=(r=r!=null)?Qu(e,i):es),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=M0,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function LA(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&M0.enqueueReplaceState(t,t.state,null)}function tw(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},kE(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=pi(o):(o=br(t)?vl:Kn.current,i.context=Qu(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ew(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&M0.enqueueReplaceState(i,i.state,null),bg(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function nc(e,t){try{var n="",r=t;do n+=hH(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function r_(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var BG=typeof WeakMap=="function"?WeakMap:Map;function P6(e,t,n){n=zo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sg||(Sg=!0,dw=r),nw(e,t)},n}function C6(e,t,n){n=zo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){nw(e,t),typeof r!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function $A(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new BG;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=eq.bind(null,e,t,n),t.then(e,e))}function IA(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function DA(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=zo(-1,1),t.tag=2,Wa(n,t,1))),n.lanes|=1),e)}var UG=oa.ReactCurrentOwner,vr=!1;function tr(e,t,n,r){t.child=e===null?n6(t,null,n,r):ec(t,e.child,n,r)}function FA(e,t,n,r,i){n=n.render;var o=t.ref;return Vu(t,i),r=$E(e,t,n,r,o,i),n=IE(),e!==null&&!vr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yo(e,t,i)):(Lt&&n&&SE(t),t.flags|=1,tr(e,t,r,i),t.child)}function BA(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!qE(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,T6(e,t,o,r,i)):(e=Vv(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:ih,n(a,r)&&e.ref===t.ref)return Yo(e,t,i)}return t.flags|=1,e=qa(o,r),e.ref=t.ref,e.return=t,t.child=e}function T6(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ih(o,r)&&e.ref===t.ref)if(vr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(vr=!0);else return t.lanes=e.lanes,Yo(e,t,i)}return rw(e,t,n,r,i)}function j6(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},St(ju,Mr),Mr|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,St(ju,Mr),Mr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,St(ju,Mr),Mr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,St(ju,Mr),Mr|=r;return tr(e,t,i,n),t.child}function A6(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rw(e,t,n,r,i){var o=br(n)?vl:Kn.current;return o=Qu(t,o),Vu(t,i),n=$E(e,t,n,r,o,i),r=IE(),e!==null&&!vr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yo(e,t,i)):(Lt&&r&&SE(t),t.flags|=1,tr(e,t,n,i),t.child)}function UA(e,t,n,r,i){if(br(n)){var o=!0;pg(t)}else o=!1;if(Vu(t,i),t.stateNode===null)Bv(e,t),E6(t,n,r),tw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=pi(u):(u=br(n)?vl:Kn.current,u=Qu(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&LA(t,a,r,u),Pa=!1;var h=t.memoizedState;a.state=h,bg(t,r,a,i),l=t.memoizedState,s!==r||h!==l||yr.current||Pa?(typeof f=="function"&&(ew(t,n,f,r),l=t.memoizedState),(s=Pa||RA(t,n,s,r,h,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,i6(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ci(t.type,s),a.props=u,d=t.pendingProps,h=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=pi(l):(l=br(n)?vl:Kn.current,l=Qu(t,l));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||h!==l)&&LA(t,a,r,l),Pa=!1,h=t.memoizedState,a.state=h,bg(t,r,a,i);var g=t.memoizedState;s!==d||h!==g||yr.current||Pa?(typeof v=="function"&&(ew(t,n,v,r),g=t.memoizedState),(u=Pa||RA(t,n,u,r,h,g,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return iw(e,t,n,r,o,i)}function iw(e,t,n,r,i,o){A6(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&PA(t,n,!1),Yo(e,t,o);r=t.stateNode,UG.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ec(t,e.child,null,o),t.child=ec(t,null,s,o)):tr(e,t,s,o),t.memoizedState=r.state,i&&PA(t,n,!0),t.child}function k6(e){var t=e.stateNode;t.pendingContext?EA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&EA(e,t.context,!1),NE(e,t.containerInfo)}function zA(e,t,n,r,i){return Ju(),PE(i),t.flags|=256,tr(e,t,n,r),t.child}var ow={dehydrated:null,treeContext:null,retryLane:0};function aw(e){return{baseLanes:e,cachePool:null,transitions:null}}function N6(e,t,n){var r=t.pendingProps,i=Ut.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),St(Ut,i&1),e===null)return Qx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=$0(a,r,0,null),e=sl(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=aw(n),t.memoizedState=ow,e):BE(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return zG(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=qa(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=qa(s,o):(o=sl(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?aw(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=ow,r}return o=e.child,e=o.sibling,r=qa(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function BE(e,t){return t=$0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Um(e,t,n,r){return r!==null&&PE(r),ec(t,e.child,null,n),e=BE(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zG(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=r_(Error(Oe(422))),Um(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=$0({mode:"visible",children:r.children},i,0,null),o=sl(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ec(t,e.child,null,a),t.child.memoizedState=aw(a),t.memoizedState=ow,o);if(!(t.mode&1))return Um(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Oe(419)),r=r_(o,r,void 0),Um(e,t,a,r)}if(s=(a&e.childLanes)!==0,vr||s){if(r=Cn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Ko(e,i),Ii(r,e,i,-1))}return GE(),r=r_(Error(Oe(421))),Um(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=tq.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,$r=Va(i.nextSibling),Dr=t,Lt=!0,ki=null,e!==null&&(ii[oi++]=Io,ii[oi++]=Do,ii[oi++]=gl,Io=e.id,Do=e.overflow,gl=t),t=BE(t,r.children),t.flags|=4096,t)}function VA(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jx(e.return,t,n)}function i_(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function M6(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(tr(e,t,r.children,n),r=Ut.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&VA(e,n,t);else if(e.tag===19)VA(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(St(Ut,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&_g(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),i_(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&_g(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}i_(t,!0,n,null,o);break;case"together":i_(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Oe(153));if(t.child!==null){for(e=t.child,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function VG(e,t,n){switch(t.tag){case 3:k6(t),Ju();break;case 5:o6(t);break;case 1:br(t.type)&&pg(t);break;case 4:NE(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;St(gg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(St(Ut,Ut.current&1),t.flags|=128,null):n&t.child.childLanes?N6(e,t,n):(St(Ut,Ut.current&1),e=Yo(e,t,n),e!==null?e.sibling:null);St(Ut,Ut.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return M6(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),St(Ut,Ut.current),r)break;return null;case 22:case 23:return t.lanes=0,j6(e,t,n)}return Yo(e,t,n)}var R6,sw,L6,$6;R6=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sw=function(){};L6=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Xs(po.current);var o=null;switch(n){case"input":i=jx(e,i),r=jx(e,r),o=[];break;case"select":i=Ht({},i,{value:void 0}),r=Ht({},r,{value:void 0}),o=[];break;case"textarea":i=Nx(e,i),r=Nx(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=dg)}Rx(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Xd.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Xd.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ct("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};$6=function(e,t,n,r){n!==r&&(t.flags|=4)};function zf(e,t){if(!Lt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function WG(e,t,n){var r=t.pendingProps;switch(EE(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vn(t),null;case 1:return br(t.type)&&hg(),Vn(t),null;case 3:return r=t.stateNode,tc(),Nt(yr),Nt(Kn),RE(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ki!==null&&(mw(ki),ki=null))),sw(e,t),Vn(t),null;case 5:ME(t);var i=Xs(uh.current);if(n=t.type,e!==null&&t.stateNode!=null)L6(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Oe(166));return Vn(t),null}if(e=Xs(po.current),Fm(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[so]=t,r[sh]=o,e=(t.mode&1)!==0,n){case"dialog":Ct("cancel",r),Ct("close",r);break;case"iframe":case"object":case"embed":Ct("load",r);break;case"video":case"audio":for(i=0;i<cd.length;i++)Ct(cd[i],r);break;case"source":Ct("error",r);break;case"img":case"image":case"link":Ct("error",r),Ct("load",r);break;case"details":Ct("toggle",r);break;case"input":Qj(r,o),Ct("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ct("invalid",r);break;case"textarea":eA(r,o),Ct("invalid",r)}Rx(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Dm(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Dm(r.textContent,s,e),i=["children",""+s]):Xd.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ct("scroll",r)}switch(n){case"input":Am(r),Jj(r,o,!0);break;case"textarea":Am(r),tA(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=dg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=cI(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[so]=t,e[sh]=r,R6(e,t,!1,!1),t.stateNode=e;e:{switch(a=Lx(n,r),n){case"dialog":Ct("cancel",e),Ct("close",e),i=r;break;case"iframe":case"object":case"embed":Ct("load",e),i=r;break;case"video":case"audio":for(i=0;i<cd.length;i++)Ct(cd[i],e);i=r;break;case"source":Ct("error",e),i=r;break;case"img":case"image":case"link":Ct("error",e),Ct("load",e),i=r;break;case"details":Ct("toggle",e),i=r;break;case"input":Qj(e,r),i=jx(e,r),Ct("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ht({},r,{value:void 0}),Ct("invalid",e);break;case"textarea":eA(e,r),i=Nx(e,r),Ct("invalid",e);break;default:i=r}Rx(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?hI(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&fI(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Qd(e,l):typeof l=="number"&&Qd(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Xd.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ct("scroll",e):l!=null&&cE(e,o,l,a))}switch(n){case"input":Am(e),Jj(e,r,!1);break;case"textarea":Am(e),tA(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ja(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Fu(e,!!r.multiple,o,!1):r.defaultValue!=null&&Fu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=dg)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Vn(t),null;case 6:if(e&&t.stateNode!=null)$6(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Oe(166));if(n=Xs(uh.current),Xs(po.current),Fm(t)){if(r=t.stateNode,n=t.memoizedProps,r[so]=t,(o=r.nodeValue!==n)&&(e=Dr,e!==null))switch(e.tag){case 3:Dm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Dm(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[so]=t,t.stateNode=r}return Vn(t),null;case 13:if(Nt(Ut),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Lt&&$r!==null&&t.mode&1&&!(t.flags&128))e6(),Ju(),t.flags|=98560,o=!1;else if(o=Fm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Oe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Oe(317));o[so]=t}else Ju(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vn(t),o=!1}else ki!==null&&(mw(ki),ki=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ut.current&1?hn===0&&(hn=3):GE())),t.updateQueue!==null&&(t.flags|=4),Vn(t),null);case 4:return tc(),sw(e,t),e===null&&oh(t.stateNode.containerInfo),Vn(t),null;case 10:return jE(t.type._context),Vn(t),null;case 17:return br(t.type)&&hg(),Vn(t),null;case 19:if(Nt(Ut),o=t.memoizedState,o===null)return Vn(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)zf(o,!1);else{if(hn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=_g(e),a!==null){for(t.flags|=128,zf(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return St(Ut,Ut.current&1|2),t.child}e=e.sibling}o.tail!==null&&tn()>rc&&(t.flags|=128,r=!0,zf(o,!1),t.lanes=4194304)}else{if(!r)if(e=_g(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Lt)return Vn(t),null}else 2*tn()-o.renderingStartTime>rc&&n!==1073741824&&(t.flags|=128,r=!0,zf(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=tn(),t.sibling=null,n=Ut.current,St(Ut,r?n&1|2:n&1),t):(Vn(t),null);case 22:case 23:return HE(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mr&1073741824&&(Vn(t),t.subtreeFlags&6&&(t.flags|=8192)):Vn(t),null;case 24:return null;case 25:return null}throw Error(Oe(156,t.tag))}function HG(e,t){switch(EE(t),t.tag){case 1:return br(t.type)&&hg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tc(),Nt(yr),Nt(Kn),RE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ME(t),null;case 13:if(Nt(Ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Oe(340));Ju()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nt(Ut),null;case 4:return tc(),null;case 10:return jE(t.type._context),null;case 22:case 23:return HE(),null;case 24:return null;default:return null}}var zm=!1,Hn=!1,GG=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Tu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qt(e,t,r)}else n.current=null}function lw(e,t,n){try{n()}catch(r){qt(e,t,r)}}var WA=!1;function qG(e,t){if(Hx=ug,e=UI(),OE(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,d=e,h=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(v=d.firstChild)!==null;)h=d,d=v;for(;;){if(d===e)break t;if(h===n&&++u===i&&(s=a),h===o&&++f===r&&(l=a),(v=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gx={focusedElem:e,selectionRange:n},ug=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ci(t.type,y),x);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Oe(163))}}catch(S){qt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return g=WA,WA=!1,g}function Pd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&lw(t,n,o)}i=i.next}while(i!==r)}}function R0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uw(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function I6(e){var t=e.alternate;t!==null&&(e.alternate=null,I6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[so],delete t[sh],delete t[Yx],delete t[jG],delete t[AG])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function D6(e){return e.tag===5||e.tag===3||e.tag===4}function HA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dg));else if(r!==4&&(e=e.child,e!==null))for(cw(e,t,n),e=e.sibling;e!==null;)cw(e,t,n),e=e.sibling}function fw(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fw(e,t,n),e=e.sibling;e!==null;)fw(e,t,n),e=e.sibling}var Fn=null,Ti=!1;function va(e,t,n){for(n=n.child;n!==null;)F6(e,t,n),n=n.sibling}function F6(e,t,n){if(ho&&typeof ho.onCommitFiberUnmount=="function")try{ho.onCommitFiberUnmount(P0,n)}catch{}switch(n.tag){case 5:Hn||Tu(n,t);case 6:var r=Fn,i=Ti;Fn=null,va(e,t,n),Fn=r,Ti=i,Fn!==null&&(Ti?(e=Fn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fn.removeChild(n.stateNode));break;case 18:Fn!==null&&(Ti?(e=Fn,n=n.stateNode,e.nodeType===8?X1(e.parentNode,n):e.nodeType===1&&X1(e,n),nh(e)):X1(Fn,n.stateNode));break;case 4:r=Fn,i=Ti,Fn=n.stateNode.containerInfo,Ti=!0,va(e,t,n),Fn=r,Ti=i;break;case 0:case 11:case 14:case 15:if(!Hn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&lw(n,t,a),i=i.next}while(i!==r)}va(e,t,n);break;case 1:if(!Hn&&(Tu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){qt(n,t,s)}va(e,t,n);break;case 21:va(e,t,n);break;case 22:n.mode&1?(Hn=(r=Hn)||n.memoizedState!==null,va(e,t,n),Hn=r):va(e,t,n);break;default:va(e,t,n)}}function GA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GG),t.forEach(function(r){var i=nq.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ei(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Fn=s.stateNode,Ti=!1;break e;case 3:Fn=s.stateNode.containerInfo,Ti=!0;break e;case 4:Fn=s.stateNode.containerInfo,Ti=!0;break e}s=s.return}if(Fn===null)throw Error(Oe(160));F6(o,a,i),Fn=null,Ti=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){qt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)B6(t,e),t=t.sibling}function B6(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ei(t,e),eo(e),r&4){try{Pd(3,e,e.return),R0(3,e)}catch(y){qt(e,e.return,y)}try{Pd(5,e,e.return)}catch(y){qt(e,e.return,y)}}break;case 1:Ei(t,e),eo(e),r&512&&n!==null&&Tu(n,n.return);break;case 5:if(Ei(t,e),eo(e),r&512&&n!==null&&Tu(n,n.return),e.flags&32){var i=e.stateNode;try{Qd(i,"")}catch(y){qt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&lI(i,o),Lx(s,a);var u=Lx(s,o);for(a=0;a<l.length;a+=2){var f=l[a],d=l[a+1];f==="style"?hI(i,d):f==="dangerouslySetInnerHTML"?fI(i,d):f==="children"?Qd(i,d):cE(i,f,d,u)}switch(s){case"input":Ax(i,o);break;case"textarea":uI(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Fu(i,!!o.multiple,v,!1):h!==!!o.multiple&&(o.defaultValue!=null?Fu(i,!!o.multiple,o.defaultValue,!0):Fu(i,!!o.multiple,o.multiple?[]:"",!1))}i[sh]=o}catch(y){qt(e,e.return,y)}}break;case 6:if(Ei(t,e),eo(e),r&4){if(e.stateNode===null)throw Error(Oe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){qt(e,e.return,y)}}break;case 3:if(Ei(t,e),eo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{nh(t.containerInfo)}catch(y){qt(e,e.return,y)}break;case 4:Ei(t,e),eo(e);break;case 13:Ei(t,e),eo(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(VE=tn())),r&4&&GA(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Hn=(u=Hn)||f,Ei(t,e),Hn=u):Ei(t,e),eo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for($e=e,f=e.child;f!==null;){for(d=$e=f;$e!==null;){switch(h=$e,v=h.child,h.tag){case 0:case 11:case 14:case 15:Pd(4,h,h.return);break;case 1:Tu(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){qt(r,n,y)}}break;case 5:Tu(h,h.return);break;case 22:if(h.memoizedState!==null){KA(d);continue}}v!==null?(v.return=h,$e=v):KA(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=dI("display",a))}catch(y){qt(e,e.return,y)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){qt(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ei(t,e),eo(e),r&4&&GA(e);break;case 21:break;default:Ei(t,e),eo(e)}}function eo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(D6(n)){var r=n;break e}n=n.return}throw Error(Oe(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Qd(i,""),r.flags&=-33);var o=HA(e);fw(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=HA(e);cw(e,s,a);break;default:throw Error(Oe(161))}}catch(l){qt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function KG(e,t,n){$e=e,U6(e)}function U6(e,t,n){for(var r=(e.mode&1)!==0;$e!==null;){var i=$e,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||zm;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Hn;s=zm;var u=Hn;if(zm=a,(Hn=l)&&!u)for($e=i;$e!==null;)a=$e,l=a.child,a.tag===22&&a.memoizedState!==null?YA(i):l!==null?(l.return=a,$e=l):YA(i);for(;o!==null;)$e=o,U6(o),o=o.sibling;$e=i,zm=s,Hn=u}qA(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$e=o):qA(e)}}function qA(e){for(;$e!==null;){var t=$e;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Hn||R0(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Hn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ci(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&kA(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}kA(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&nh(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Oe(163))}Hn||t.flags&512&&uw(t)}catch(h){qt(t,t.return,h)}}if(t===e){$e=null;break}if(n=t.sibling,n!==null){n.return=t.return,$e=n;break}$e=t.return}}function KA(e){for(;$e!==null;){var t=$e;if(t===e){$e=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$e=n;break}$e=t.return}}function YA(e){for(;$e!==null;){var t=$e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{R0(4,t)}catch(l){qt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){qt(t,i,l)}}var o=t.return;try{uw(t)}catch(l){qt(t,o,l)}break;case 5:var a=t.return;try{uw(t)}catch(l){qt(t,a,l)}}}catch(l){qt(t,t.return,l)}if(t===e){$e=null;break}var s=t.sibling;if(s!==null){s.return=t.return,$e=s;break}$e=t.return}}var YG=Math.ceil,Og=oa.ReactCurrentDispatcher,UE=oa.ReactCurrentOwner,fi=oa.ReactCurrentBatchConfig,ft=0,Cn=null,sn=null,Bn=0,Mr=0,ju=ds(0),hn=0,hh=null,bl=0,L0=0,zE=0,Cd=null,mr=null,VE=0,rc=1/0,Ro=null,Sg=!1,dw=null,Ha=null,Vm=!1,Ma=null,Eg=0,Td=0,hw=null,Uv=-1,zv=0;function sr(){return ft&6?tn():Uv!==-1?Uv:Uv=tn()}function Ga(e){return e.mode&1?ft&2&&Bn!==0?Bn&-Bn:NG.transition!==null?(zv===0&&(zv=EI()),zv):(e=vt,e!==0||(e=window.event,e=e===void 0?16:NI(e.type)),e):1}function Ii(e,t,n,r){if(50<Td)throw Td=0,hw=null,Error(Oe(185));wp(e,n,r),(!(ft&2)||e!==Cn)&&(e===Cn&&(!(ft&2)&&(L0|=n),hn===4&&Aa(e,Bn)),_r(e,r),n===1&&ft===0&&!(t.mode&1)&&(rc=tn()+500,k0&&hs()))}function _r(e,t){var n=e.callbackNode;NH(e,t);var r=lg(e,e===Cn?Bn:0);if(r===0)n!==null&&iA(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&iA(n),t===1)e.tag===0?kG(ZA.bind(null,e)):XI(ZA.bind(null,e)),CG(function(){!(ft&6)&&hs()}),n=null;else{switch(PI(r)){case 1:n=mE;break;case 4:n=OI;break;case 16:n=sg;break;case 536870912:n=SI;break;default:n=sg}n=Y6(n,z6.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function z6(e,t){if(Uv=-1,zv=0,ft&6)throw Error(Oe(327));var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=lg(e,e===Cn?Bn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Pg(e,r);else{t=r;var i=ft;ft|=2;var o=W6();(Cn!==e||Bn!==t)&&(Ro=null,rc=tn()+500,al(e,t));do try{QG();break}catch(s){V6(e,s)}while(!0);TE(),Og.current=o,ft=i,sn!==null?t=0:(Cn=null,Bn=0,t=hn)}if(t!==0){if(t===2&&(i=Bx(e),i!==0&&(r=i,t=pw(e,i))),t===1)throw n=hh,al(e,0),Aa(e,r),_r(e,tn()),n;if(t===6)Aa(e,r);else{if(i=e.current.alternate,!(r&30)&&!ZG(i)&&(t=Pg(e,r),t===2&&(o=Bx(e),o!==0&&(r=o,t=pw(e,o))),t===1))throw n=hh,al(e,0),Aa(e,r),_r(e,tn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Oe(345));case 2:$s(e,mr,Ro);break;case 3:if(Aa(e,r),(r&130023424)===r&&(t=VE+500-tn(),10<t)){if(lg(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){sr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Kx($s.bind(null,e,mr,Ro),t);break}$s(e,mr,Ro);break;case 4:if(Aa(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-$i(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=tn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YG(r/1960))-r,10<r){e.timeoutHandle=Kx($s.bind(null,e,mr,Ro),r);break}$s(e,mr,Ro);break;case 5:$s(e,mr,Ro);break;default:throw Error(Oe(329))}}}return _r(e,tn()),e.callbackNode===n?z6.bind(null,e):null}function pw(e,t){var n=Cd;return e.current.memoizedState.isDehydrated&&(al(e,t).flags|=256),e=Pg(e,t),e!==2&&(t=mr,mr=n,t!==null&&mw(t)),e}function mw(e){mr===null?mr=e:mr.push.apply(mr,e)}function ZG(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Bi(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Aa(e,t){for(t&=~zE,t&=~L0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$i(t),r=1<<n;e[n]=-1,t&=~r}}function ZA(e){if(ft&6)throw Error(Oe(327));Wu();var t=lg(e,0);if(!(t&1))return _r(e,tn()),null;var n=Pg(e,t);if(e.tag!==0&&n===2){var r=Bx(e);r!==0&&(t=r,n=pw(e,r))}if(n===1)throw n=hh,al(e,0),Aa(e,t),_r(e,tn()),n;if(n===6)throw Error(Oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$s(e,mr,Ro),_r(e,tn()),null}function WE(e,t){var n=ft;ft|=1;try{return e(t)}finally{ft=n,ft===0&&(rc=tn()+500,k0&&hs())}}function _l(e){Ma!==null&&Ma.tag===0&&!(ft&6)&&Wu();var t=ft;ft|=1;var n=fi.transition,r=vt;try{if(fi.transition=null,vt=1,e)return e()}finally{vt=r,fi.transition=n,ft=t,!(ft&6)&&hs()}}function HE(){Mr=ju.current,Nt(ju)}function al(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,PG(n)),sn!==null)for(n=sn.return;n!==null;){var r=n;switch(EE(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hg();break;case 3:tc(),Nt(yr),Nt(Kn),RE();break;case 5:ME(r);break;case 4:tc();break;case 13:Nt(Ut);break;case 19:Nt(Ut);break;case 10:jE(r.type._context);break;case 22:case 23:HE()}n=n.return}if(Cn=e,sn=e=qa(e.current,null),Bn=Mr=t,hn=0,hh=null,zE=L0=bl=0,mr=Cd=null,Zs!==null){for(t=0;t<Zs.length;t++)if(n=Zs[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Zs=null}return e}function V6(e,t){do{var n=sn;try{if(TE(),Dv.current=wg,xg){for(var r=Vt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}xg=!1}if(yl=0,En=dn=Vt=null,Ed=!1,ch=0,UE.current=null,n===null||n.return===null){hn=1,hh=t,sn=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Bn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=IA(a);if(v!==null){v.flags&=-257,DA(v,a,s,o,t),v.mode&1&&$A(o,u,t),t=v,l=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(l),t.updateQueue=y}else g.add(l);break e}else{if(!(t&1)){$A(o,u,t),GE();break e}l=Error(Oe(426))}}else if(Lt&&s.mode&1){var x=IA(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),DA(x,a,s,o,t),PE(nc(l,s));break e}}o=l=nc(l,s),hn!==4&&(hn=2),Cd===null?Cd=[o]:Cd.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=P6(o,l,t);AA(o,_);break e;case 1:s=l;var b=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ha===null||!Ha.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=C6(o,s,t);AA(o,S);break e}}o=o.return}while(o!==null)}G6(n)}catch(E){t=E,sn===n&&n!==null&&(sn=n=n.return);continue}break}while(!0)}function W6(){var e=Og.current;return Og.current=wg,e===null?wg:e}function GE(){(hn===0||hn===3||hn===2)&&(hn=4),Cn===null||!(bl&268435455)&&!(L0&268435455)||Aa(Cn,Bn)}function Pg(e,t){var n=ft;ft|=2;var r=W6();(Cn!==e||Bn!==t)&&(Ro=null,al(e,t));do try{XG();break}catch(i){V6(e,i)}while(!0);if(TE(),ft=n,Og.current=r,sn!==null)throw Error(Oe(261));return Cn=null,Bn=0,hn}function XG(){for(;sn!==null;)H6(sn)}function QG(){for(;sn!==null&&!OH();)H6(sn)}function H6(e){var t=K6(e.alternate,e,Mr);e.memoizedProps=e.pendingProps,t===null?G6(e):sn=t,UE.current=null}function G6(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=HG(n,t),n!==null){n.flags&=32767,sn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{hn=6,sn=null;return}}else if(n=WG(n,t,Mr),n!==null){sn=n;return}if(t=t.sibling,t!==null){sn=t;return}sn=t=e}while(t!==null);hn===0&&(hn=5)}function $s(e,t,n){var r=vt,i=fi.transition;try{fi.transition=null,vt=1,JG(e,t,n,r)}finally{fi.transition=i,vt=r}return null}function JG(e,t,n,r){do Wu();while(Ma!==null);if(ft&6)throw Error(Oe(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Oe(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(MH(e,o),e===Cn&&(sn=Cn=null,Bn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vm||(Vm=!0,Y6(sg,function(){return Wu(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=fi.transition,fi.transition=null;var a=vt;vt=1;var s=ft;ft|=4,UE.current=null,qG(e,n),B6(n,e),bG(Gx),ug=!!Hx,Gx=Hx=null,e.current=n,KG(n),SH(),ft=s,vt=a,fi.transition=o}else e.current=n;if(Vm&&(Vm=!1,Ma=e,Eg=i),o=e.pendingLanes,o===0&&(Ha=null),CH(n.stateNode),_r(e,tn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sg)throw Sg=!1,e=dw,dw=null,e;return Eg&1&&e.tag!==0&&Wu(),o=e.pendingLanes,o&1?e===hw?Td++:(Td=0,hw=e):Td=0,hs(),null}function Wu(){if(Ma!==null){var e=PI(Eg),t=fi.transition,n=vt;try{if(fi.transition=null,vt=16>e?16:e,Ma===null)var r=!1;else{if(e=Ma,Ma=null,Eg=0,ft&6)throw Error(Oe(331));var i=ft;for(ft|=4,$e=e.current;$e!==null;){var o=$e,a=o.child;if($e.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for($e=u;$e!==null;){var f=$e;switch(f.tag){case 0:case 11:case 15:Pd(8,f,o)}var d=f.child;if(d!==null)d.return=f,$e=d;else for(;$e!==null;){f=$e;var h=f.sibling,v=f.return;if(I6(f),f===u){$e=null;break}if(h!==null){h.return=v,$e=h;break}$e=v}}}var g=o.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}$e=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,$e=a;else e:for(;$e!==null;){if(o=$e,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Pd(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,$e=_;break e}$e=o.return}}var b=e.current;for($e=b;$e!==null;){a=$e;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,$e=w;else e:for(a=b;$e!==null;){if(s=$e,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:R0(9,s)}}catch(E){qt(s,s.return,E)}if(s===a){$e=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,$e=S;break e}$e=s.return}}if(ft=i,hs(),ho&&typeof ho.onPostCommitFiberRoot=="function")try{ho.onPostCommitFiberRoot(P0,e)}catch{}r=!0}return r}finally{vt=n,fi.transition=t}}return!1}function XA(e,t,n){t=nc(n,t),t=P6(e,t,1),e=Wa(e,t,1),t=sr(),e!==null&&(wp(e,1,t),_r(e,t))}function qt(e,t,n){if(e.tag===3)XA(e,e,n);else for(;t!==null;){if(t.tag===3){XA(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ha===null||!Ha.has(r))){e=nc(n,e),e=C6(t,e,1),t=Wa(t,e,1),e=sr(),t!==null&&(wp(t,1,e),_r(t,e));break}}t=t.return}}function eq(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=sr(),e.pingedLanes|=e.suspendedLanes&n,Cn===e&&(Bn&n)===n&&(hn===4||hn===3&&(Bn&130023424)===Bn&&500>tn()-VE?al(e,0):zE|=n),_r(e,t)}function q6(e,t){t===0&&(e.mode&1?(t=Mm,Mm<<=1,!(Mm&130023424)&&(Mm=4194304)):t=1);var n=sr();e=Ko(e,t),e!==null&&(wp(e,t,n),_r(e,n))}function tq(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),q6(e,n)}function nq(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Oe(314))}r!==null&&r.delete(t),q6(e,n)}var K6;K6=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yr.current)vr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vr=!1,VG(e,t,n);vr=!!(e.flags&131072)}else vr=!1,Lt&&t.flags&1048576&&QI(t,vg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bv(e,t),e=t.pendingProps;var i=Qu(t,Kn.current);Vu(t,n),i=$E(null,t,r,e,i,n);var o=IE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,br(r)?(o=!0,pg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kE(t),i.updater=M0,t.stateNode=i,i._reactInternals=t,tw(t,r,e,n),t=iw(null,t,r,!0,o,n)):(t.tag=0,Lt&&o&&SE(t),tr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bv(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=iq(r),e=Ci(r,e),i){case 0:t=rw(null,t,r,e,n);break e;case 1:t=UA(null,t,r,e,n);break e;case 11:t=FA(null,t,r,e,n);break e;case 14:t=BA(null,t,r,Ci(r.type,e),n);break e}throw Error(Oe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ci(r,i),rw(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ci(r,i),UA(e,t,r,i,n);case 3:e:{if(k6(t),e===null)throw Error(Oe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,i6(e,t),bg(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=nc(Error(Oe(423)),t),t=zA(e,t,r,n,i);break e}else if(r!==i){i=nc(Error(Oe(424)),t),t=zA(e,t,r,n,i);break e}else for($r=Va(t.stateNode.containerInfo.firstChild),Dr=t,Lt=!0,ki=null,n=n6(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ju(),r===i){t=Yo(e,t,n);break e}tr(e,t,r,n)}t=t.child}return t;case 5:return o6(t),e===null&&Qx(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,qx(r,i)?a=null:o!==null&&qx(r,o)&&(t.flags|=32),A6(e,t),tr(e,t,a,n),t.child;case 6:return e===null&&Qx(t),null;case 13:return N6(e,t,n);case 4:return NE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ec(t,null,r,n):tr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ci(r,i),FA(e,t,r,i,n);case 7:return tr(e,t,t.pendingProps,n),t.child;case 8:return tr(e,t,t.pendingProps.children,n),t.child;case 12:return tr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,St(gg,r._currentValue),r._currentValue=a,o!==null)if(Bi(o.value,a)){if(o.children===i.children&&!yr.current){t=Yo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=zo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Jx(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Oe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Jx(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}tr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vu(t,n),i=pi(i),r=r(i),t.flags|=1,tr(e,t,r,n),t.child;case 14:return r=t.type,i=Ci(r,t.pendingProps),i=Ci(r.type,i),BA(e,t,r,i,n);case 15:return T6(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ci(r,i),Bv(e,t),t.tag=1,br(r)?(e=!0,pg(t)):e=!1,Vu(t,n),E6(t,r,i),tw(t,r,i,n),iw(null,t,r,!0,e,n);case 19:return M6(e,t,n);case 22:return j6(e,t,n)}throw Error(Oe(156,t.tag))};function Y6(e,t){return wI(e,t)}function rq(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ui(e,t,n,r){return new rq(e,t,n,r)}function qE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iq(e){if(typeof e=="function")return qE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dE)return 11;if(e===hE)return 14}return 2}function qa(e,t){var n=e.alternate;return n===null?(n=ui(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vv(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")qE(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case bu:return sl(n.children,i,o,t);case fE:a=8,i|=8;break;case Ex:return e=ui(12,n,t,i|2),e.elementType=Ex,e.lanes=o,e;case Px:return e=ui(13,n,t,i),e.elementType=Px,e.lanes=o,e;case Cx:return e=ui(19,n,t,i),e.elementType=Cx,e.lanes=o,e;case oI:return $0(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rI:a=10;break e;case iI:a=9;break e;case dE:a=11;break e;case hE:a=14;break e;case Ea:a=16,r=null;break e}throw Error(Oe(130,e==null?e:typeof e,""))}return t=ui(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function sl(e,t,n,r){return e=ui(7,e,r,t),e.lanes=n,e}function $0(e,t,n,r){return e=ui(22,e,r,t),e.elementType=oI,e.lanes=n,e.stateNode={isHidden:!1},e}function o_(e,t,n){return e=ui(6,e,null,t),e.lanes=n,e}function a_(e,t,n){return t=ui(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oq(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=B1(0),this.expirationTimes=B1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=B1(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function KE(e,t,n,r,i,o,a,s,l){return e=new oq(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ui(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kE(o),e}function aq(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yu,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Z6(e){if(!e)return es;e=e._reactInternals;e:{if(Rl(e)!==e||e.tag!==1)throw Error(Oe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(br(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Oe(171))}if(e.tag===1){var n=e.type;if(br(n))return ZI(e,n,t)}return t}function X6(e,t,n,r,i,o,a,s,l){return e=KE(n,r,!0,e,i,o,a,s,l),e.context=Z6(null),n=e.current,r=sr(),i=Ga(n),o=zo(r,i),o.callback=t??null,Wa(n,o,i),e.current.lanes=i,wp(e,i,r),_r(e,r),e}function I0(e,t,n,r){var i=t.current,o=sr(),a=Ga(i);return n=Z6(n),t.context===null?t.context=n:t.pendingContext=n,t=zo(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wa(i,t,a),e!==null&&(Ii(e,i,a,o),Iv(e,i,a)),a}function Cg(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function QA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function YE(e,t){QA(e,t),(e=e.alternate)&&QA(e,t)}function sq(){return null}var Q6=typeof reportError=="function"?reportError:function(e){console.error(e)};function ZE(e){this._internalRoot=e}D0.prototype.render=ZE.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Oe(409));I0(e,t,null,null)};D0.prototype.unmount=ZE.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_l(function(){I0(null,e,null,null)}),t[qo]=null}};function D0(e){this._internalRoot=e}D0.prototype.unstable_scheduleHydration=function(e){if(e){var t=jI();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ja.length&&t!==0&&t<ja[n].priority;n++);ja.splice(n,0,e),n===0&&kI(e)}};function XE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function F0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function JA(){}function lq(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Cg(a);o.call(u)}}var a=X6(t,r,e,0,null,!1,!1,"",JA);return e._reactRootContainer=a,e[qo]=a.current,oh(e.nodeType===8?e.parentNode:e),_l(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Cg(l);s.call(u)}}var l=KE(e,0,!1,null,null,!1,!1,"",JA);return e._reactRootContainer=l,e[qo]=l.current,oh(e.nodeType===8?e.parentNode:e),_l(function(){I0(t,l,n,r)}),l}function B0(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=Cg(a);s.call(l)}}I0(t,a,e,i)}else a=lq(n,t,e,i,r);return Cg(a)}CI=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ud(t.pendingLanes);n!==0&&(vE(t,n|1),_r(t,tn()),!(ft&6)&&(rc=tn()+500,hs()))}break;case 13:_l(function(){var r=Ko(e,1);if(r!==null){var i=sr();Ii(r,e,1,i)}}),YE(e,1)}};gE=function(e){if(e.tag===13){var t=Ko(e,134217728);if(t!==null){var n=sr();Ii(t,e,134217728,n)}YE(e,134217728)}};TI=function(e){if(e.tag===13){var t=Ga(e),n=Ko(e,t);if(n!==null){var r=sr();Ii(n,e,t,r)}YE(e,t)}};jI=function(){return vt};AI=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}};Ix=function(e,t,n){switch(t){case"input":if(Ax(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=A0(r);if(!i)throw Error(Oe(90));sI(r),Ax(r,i)}}}break;case"textarea":uI(e,n);break;case"select":t=n.value,t!=null&&Fu(e,!!n.multiple,t,!1)}};vI=WE;gI=_l;var uq={usingClientEntryPoint:!1,Events:[Sp,Ou,A0,pI,mI,WE]},Vf={findFiberByHostInstance:Ys,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cq={bundleType:Vf.bundleType,version:Vf.version,rendererPackageName:Vf.rendererPackageName,rendererConfig:Vf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:oa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_I(e),e===null?null:e.stateNode},findFiberByHostInstance:Vf.findFiberByHostInstance||sq,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 Wm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wm.isDisabled&&Wm.supportsFiber)try{P0=Wm.inject(cq),ho=Wm}catch{}}Wr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uq;Wr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!XE(t))throw Error(Oe(200));return aq(e,t,null,n)};Wr.createRoot=function(e,t){if(!XE(e))throw Error(Oe(299));var n=!1,r="",i=Q6;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=KE(e,1,!1,null,null,n,!1,r,i),e[qo]=t.current,oh(e.nodeType===8?e.parentNode:e),new ZE(t)};Wr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Oe(188)):(e=Object.keys(e).join(","),Error(Oe(268,e)));return e=_I(t),e=e===null?null:e.stateNode,e};Wr.flushSync=function(e){return _l(e)};Wr.hydrate=function(e,t,n){if(!F0(t))throw Error(Oe(200));return B0(null,e,t,!0,n)};Wr.hydrateRoot=function(e,t,n){if(!XE(e))throw Error(Oe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Q6;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=X6(t,null,e,1,n??null,i,!1,o,a),e[qo]=t.current,oh(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new D0(t)};Wr.render=function(e,t,n){if(!F0(t))throw Error(Oe(200));return B0(null,e,t,!1,n)};Wr.unmountComponentAtNode=function(e){if(!F0(e))throw Error(Oe(40));return e._reactRootContainer?(_l(function(){B0(null,null,e,!1,function(){e._reactRootContainer=null,e[qo]=null})}),!0):!1};Wr.unstable_batchedUpdates=WE;Wr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!F0(n))throw Error(Oe(200));if(e==null||e._reactInternals===void 0)throw Error(Oe(38));return B0(e,t,n,!1,r)};Wr.version="18.3.1-next-f1338f8080-20240426";function J6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J6)}catch(e){console.error(e)}}J6(),J$.exports=Wr;var U0=J$.exports;const Qs=st(U0);var eD,ek=U0;eD=ek.createRoot,ek.hydrateRoot;var fq={};/**
|
||
* @license React
|
||
* use-sync-external-store-with-selector.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Pp=R;function dq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hq=typeof Object.is=="function"?Object.is:dq,pq=Pp.useSyncExternalStore,mq=Pp.useRef,vq=Pp.useEffect,gq=Pp.useMemo,yq=Pp.useDebugValue;fq.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=mq(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=gq(function(){function l(v){if(!u){if(u=!0,f=v,v=r(v),i!==void 0&&a.hasValue){var g=a.value;if(i(g,v))return d=g}return d=v}if(g=d,hq(f,v))return g;var y=r(v);return i!==void 0&&i(g,y)?g:(f=v,d=y)}var u=!1,f,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var s=pq(e,o[0],o[1]);return vq(function(){a.hasValue=!0,a.value=s},[s]),yq(s),s};var pt="default"in Ox?V:Ox,tk=Symbol.for("react-redux-context"),nk=typeof globalThis<"u"?globalThis:{};function bq(){if(!pt.createContext)return{};const e=nk[tk]??(nk[tk]=new Map);let t=e.get(pt.createContext);return t||(t=pt.createContext(null),e.set(pt.createContext,t)),t}var tD=bq(),_q=()=>{throw new Error("uSES not initialized!")},xq=Symbol.for("react.element"),wq=Symbol.for("react.portal"),Oq=Symbol.for("react.fragment"),Sq=Symbol.for("react.strict_mode"),Eq=Symbol.for("react.profiler"),Pq=Symbol.for("react.provider"),Cq=Symbol.for("react.context"),Tq=Symbol.for("react.server_context"),nD=Symbol.for("react.forward_ref"),jq=Symbol.for("react.suspense"),Aq=Symbol.for("react.suspense_list"),QE=Symbol.for("react.memo"),kq=Symbol.for("react.lazy"),Nq=nD,Mq=QE;function Rq(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case xq:{const n=e.type;switch(n){case Oq:case Eq:case Sq:case jq:case Aq:return n;default:{const r=n&&n.$$typeof;switch(r){case Tq:case Cq:case nD:case kq:case QE:case Pq:return r;default:return t}}}}case wq:return t}}}function Lq(e){return Rq(e)===QE}function $q(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,u,f,d,h;function v(b,w){return l=b,u=w,f=e(l,u),d=t(r,u),h=n(f,d,u),s=!0,h}function g(){return f=e(l,u),t.dependsOnOwnProps&&(d=t(r,u)),h=n(f,d,u),h}function y(){return e.dependsOnOwnProps&&(f=e(l,u)),t.dependsOnOwnProps&&(d=t(r,u)),h=n(f,d,u),h}function x(){const b=e(l,u),w=!a(b,f);return f=b,w&&(h=n(f,d,u)),h}function _(b,w){const S=!o(w,u),E=!i(b,l,w,u);return l=b,u=w,S&&E?g():S?y():E?x():h}return function(w,S){return s?_(w,S):v(w,S)}}function Iq(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return $q(o,a,s,e,i)}function Dq(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function vw(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function rk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function rD(e,t){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=rk(e);let u=o(s,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=rk(u),u=o(s,l)),u},o}}function JE(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Fq(e){return e&&typeof e=="object"?vw(t=>Dq(e,t)):e?typeof e=="function"?rD(e):JE(e,"mapDispatchToProps"):vw(t=>({dispatch:t}))}function Bq(e){return e?typeof e=="function"?rD(e):JE(e,"mapStateToProps"):vw(()=>({}))}function Uq(e,t,n){return{...n,...e,...t}}function zq(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,u,f){const d=e(l,u,f);return o?i(d,a)||(a=d):(o=!0,a=d),a}}}function Vq(e){return e?typeof e=="function"?zq(e):JE(e,"mergeProps"):()=>Uq}function Wq(e){e()}function Hq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Wq(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var ik={notify(){},get:()=>[]};function iD(e,t){let n,r=ik,i=0,o=!1;function a(y){f();const x=r.subscribe(y);let _=!1;return()=>{_||(_=!0,x(),d())}}function s(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function u(){return o}function f(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=Hq())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=ik)}function h(){o||(o=!0,f())}function v(){o&&(o=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:h,tryUnsubscribe:v,getListeners:()=>r};return g}var Gq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qq=typeof navigator<"u"&&navigator.product==="ReactNative",Tg=Gq||qq?pt.useLayoutEffect:pt.useEffect;function ok(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function s_(e,t){if(ok(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!ok(e[n[i]],t[n[i]]))return!1;return!0}var Kq={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yq={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Zq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xq={[Nq]:Zq,[Mq]:oD};function ak(e){return Lq(e)?oD:Xq[e.$$typeof]||Kq}var Qq=Object.defineProperty,Jq=Object.getOwnPropertyNames,sk=Object.getOwnPropertySymbols,eK=Object.getOwnPropertyDescriptor,tK=Object.getPrototypeOf,lk=Object.prototype;function gw(e,t){if(typeof t!="string"){if(lk){const o=tK(t);o&&o!==lk&&gw(e,o)}let n=Jq(t);sk&&(n=n.concat(sk(t)));const r=ak(e),i=ak(t);for(let o=0;o<n.length;++o){const a=n[o];if(!Yq[a]&&!(i&&i[a])&&!(r&&r[a])){const s=eK(t,a);try{Qq(e,a,s)}catch{}}}}return e}var aD=_q,nK=e=>{aD=e},rK=[null,null];function iK(e,t,n){Tg(()=>e(...t),n)}function oK(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function aK(e,t,n,r,i,o,a,s,l,u,f){if(!e)return()=>{};let d=!1,h=null;const v=()=>{if(d||!s.current)return;const y=t.getState();let x,_;try{x=r(y,i.current)}catch(b){_=b,h=b}_||(h=null),x===o.current?a.current||u():(o.current=x,l.current=x,a.current=!0,f())};return n.onStateChange=v,n.trySubscribe(),v(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}function sK(e,t){return e===t}function lK(e,t,n,{pure:r,areStatesEqual:i=sK,areOwnPropsEqual:o=s_,areStatePropsEqual:a=s_,areMergedPropsEqual:s=s_,forwardRef:l=!1,context:u=tD}={}){const f=u,d=Bq(e),h=Fq(t),v=Vq(n),g=!!e;return x=>{const _=x.displayName||x.name||"Component",b=`Connect(${_})`,w={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:_,WrappedComponent:x,initMapStateToProps:d,initMapDispatchToProps:h,initMergeProps:v,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function S(T){const[A,D,k]=pt.useMemo(()=>{const{reactReduxForwardedRef:Y,...oe}=T;return[T.context,Y,oe]},[T]),I=pt.useMemo(()=>{let Y=f;return A!=null&&A.Consumer,Y},[A,f]),F=pt.useContext(I),q=!!T.store&&!!T.store.getState&&!!T.store.dispatch,W=!!F&&!!F.store,X=q?T.store:F.store,Q=W?F.getServerState:X.getState,ne=pt.useMemo(()=>Iq(X.dispatch,w),[X]),[Z,z]=pt.useMemo(()=>{if(!g)return rK;const Y=iD(X,q?void 0:F.subscription),oe=Y.notifyNestedSubs.bind(Y);return[Y,oe]},[X,q,F]),B=pt.useMemo(()=>q?F:{...F,subscription:Z},[q,F,Z]),H=pt.useRef(void 0),ee=pt.useRef(k),K=pt.useRef(void 0),te=pt.useRef(!1),ie=pt.useRef(!1),ae=pt.useRef(void 0);Tg(()=>(ie.current=!0,()=>{ie.current=!1}),[]);const fe=pt.useMemo(()=>()=>K.current&&k===ee.current?K.current:ne(X.getState(),k),[X,k]),j=pt.useMemo(()=>oe=>Z?aK(g,X,Z,ne,ee,H,te,ie,K,z,oe):()=>{},[Z]);iK(oK,[ee,H,te,k,K,z]);let N;try{N=aD(j,fe,Q?()=>ne(Q(),k):fe)}catch(Y){throw ae.current&&(Y.message+=`
|
||
The error may be correlated with this previous error:
|
||
${ae.current.stack}
|
||
|
||
`),Y}Tg(()=>{ae.current=void 0,K.current=void 0,H.current=N});const U=pt.useMemo(()=>pt.createElement(x,{...N,ref:D}),[D,x,N]);return pt.useMemo(()=>g?pt.createElement(I.Provider,{value:B},U):U,[I,U,B])}const P=pt.memo(S);if(P.WrappedComponent=x,P.displayName=S.displayName=b,l){const A=pt.forwardRef(function(k,I){return pt.createElement(P,{...k,reactReduxForwardedRef:I})});return A.displayName=b,A.WrappedComponent=x,gw(A,x)}return gw(P,x)}}var sD=lK;function uK({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=pt.useMemo(()=>{const u=iD(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=pt.useMemo(()=>e.getState(),[e]);Tg(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||tD;return pt.createElement(l.Provider,{value:a},n)}var lD=uK;nK(R.useSyncExternalStore);/**
|
||
* @remix-run/router v1.16.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ph.apply(this,arguments)}var Ra;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ra||(Ra={}));const uk="popstate";function cK(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return yw("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:jg(i)}return dK(t,n,null,e)}function Wt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function uD(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fK(){return Math.random().toString(36).substr(2,8)}function ck(e,t){return{usr:e.state,key:e.key,idx:t}}function yw(e,t,n,r){return n===void 0&&(n=null),ph({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hc(t):t,{state:n,key:t&&t.key||r||fK()})}function jg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Hc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dK(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Ra.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(ph({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Ra.Pop;let x=f(),_=x==null?null:x-u;u=x,l&&l({action:s,location:y.location,delta:_})}function h(x,_){s=Ra.Push;let b=yw(y.location,x,_);n&&n(b,x),u=f()+1;let w=ck(b,u),S=y.createHref(b);try{a.pushState(w,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(S)}o&&l&&l({action:s,location:y.location,delta:1})}function v(x,_){s=Ra.Replace;let b=yw(y.location,x,_);n&&n(b,x),u=f();let w=ck(b,u),S=y.createHref(b);a.replaceState(w,"",S),o&&l&&l({action:s,location:y.location,delta:0})}function g(x){let _=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof x=="string"?x:jg(x);return b=b.replace(/ $/,"%20"),Wt(_,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,_)}let y={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(uk,d),l=x,()=>{i.removeEventListener(uk,d),l=null}},createHref(x){return t(i,x)},createURL:g,encodeLocation(x){let _=g(x);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:h,replace:v,go(x){return a.go(x)}};return y}var fk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fk||(fk={}));function hK(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Hc(t):t,i=ic(r.pathname||"/",n);if(i==null)return null;let o=cD(e);pK(o);let a=null;for(let s=0;a==null&&s<o.length;++s){let l=EK(i);a=OK(o[s],l)}return a}function cD(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Wt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ka([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(Wt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),cD(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:xK(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of fD(o.path))i(o,a,l)}),t}function fD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=fD(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function pK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wK(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mK=/^:[\w-]+$/,vK=3,gK=2,yK=1,bK=10,_K=-2,dk=e=>e==="*";function xK(e,t){let n=e.split("/"),r=n.length;return n.some(dk)&&(r+=_K),t&&(r+=gK),n.filter(i=>!dk(i)).reduce((i,o)=>i+(mK.test(o)?vK:o===""?yK:bK),r)}function wK(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function OK(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",f=bw({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!f)return null;Object.assign(r,f.params);let d=s.route;o.push({params:r,pathname:Ka([i,f.pathname]),pathnameBase:jK(Ka([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=Ka([i,f.pathnameBase]))}return o}function bw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=SK(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,f,d)=>{let{paramName:h,isOptional:v}=f;if(h==="*"){let y=s[d]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[d];return v&&!g?u[h]=void 0:u[h]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function SK(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),uD(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function EK(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return uD(!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 ic(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function PK(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Hc(e):e;return{pathname:n?n.startsWith("/")?n:CK(n,t):t,search:AK(r),hash:kK(i)}}function CK(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function l_(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function TK(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eP(e,t){let n=TK(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Hc(e):(i=ph({},e),Wt(!i.pathname||!i.pathname.includes("?"),l_("?","pathname","search",i)),Wt(!i.pathname||!i.pathname.includes("#"),l_("#","pathname","hash",i)),Wt(!i.search||!i.search.includes("#"),l_("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}s=d>=0?t[d]:"/"}let l=PK(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Ka=e=>e.join("/").replace(/\/\/+/g,"/"),jK=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AK=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function NK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const dD=["post","put","patch","delete"];new Set(dD);const MK=["get",...dD];new Set(MK);/**
|
||
* React Router v6.23.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mh.apply(this,arguments)}const z0=R.createContext(null),hD=R.createContext(null),aa=R.createContext(null),V0=R.createContext(null),sa=R.createContext({outlet:null,matches:[],isDataRoute:!1}),pD=R.createContext(null);function RK(e,t){let{relative:n}=t===void 0?{}:t;Ll()||Wt(!1);let{basename:r,navigator:i}=R.useContext(aa),{hash:o,pathname:a,search:s}=W0(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Ka([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Ll(){return R.useContext(V0)!=null}function hr(){return Ll()||Wt(!1),R.useContext(V0).location}function mD(e){R.useContext(aa).static||R.useLayoutEffect(e)}function So(){let{isDataRoute:e}=R.useContext(sa);return e?qK():LK()}function LK(){Ll()||Wt(!1);let e=R.useContext(z0),{basename:t,future:n,navigator:r}=R.useContext(aa),{matches:i}=R.useContext(sa),{pathname:o}=hr(),a=JSON.stringify(eP(i,n.v7_relativeSplatPath)),s=R.useRef(!1);return mD(()=>{s.current=!0}),R.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=tP(u,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ka([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,o,e])}function Gc(){let{matches:e}=R.useContext(sa),t=e[e.length-1];return t?t.params:{}}function W0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(aa),{matches:i}=R.useContext(sa),{pathname:o}=hr(),a=JSON.stringify(eP(i,r.v7_relativeSplatPath));return R.useMemo(()=>tP(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function $K(e,t){return IK(e,t)}function IK(e,t,n,r){Ll()||Wt(!1);let{navigator:i}=R.useContext(aa),{matches:o}=R.useContext(sa),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=hr(),f;if(t){var d;let x=typeof t=="string"?Hc(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Wt(!1),f=x}else f=u;let h=f.pathname||"/",v=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=hK(e,{pathname:v}),y=zK(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Ka([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ka([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&y?R.createElement(V0.Provider,{value:{location:mh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ra.Pop}},y):y}function DK(){let e=GK(),t=NK(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,null)}const FK=R.createElement(DK,null);class BK extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(sa.Provider,{value:this.props.routeContext},R.createElement(pD.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function UK(e){let{routeContext:t,match:n,children:r}=e,i=R.useContext(z0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(sa.Provider,{value:t},r)}function zK(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let f=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);f>=0||Wt(!1),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=f),d.route.id){let{loaderData:h,errors:v}=n,g=d.route.loader&&h[d.route.id]===void 0&&(!v||v[d.route.id]===void 0);if(d.route.lazy||g){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,d,h)=>{let v,g=!1,y=null,x=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||FK,l&&(u<0&&h===0?(KK("route-fallback",!1),g=!0,x=null):u===h&&(g=!0,x=d.route.hydrateFallbackElement||null)));let _=t.concat(a.slice(0,h+1)),b=()=>{let w;return v?w=y:g?w=x:d.route.Component?w=R.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,R.createElement(UK,{match:d,routeContext:{outlet:f,matches:_,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?R.createElement(BK,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:b(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):b()},null)}var vD=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(vD||{}),Ag=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ag||{});function VK(e){let t=R.useContext(z0);return t||Wt(!1),t}function WK(e){let t=R.useContext(hD);return t||Wt(!1),t}function HK(e){let t=R.useContext(sa);return t||Wt(!1),t}function gD(e){let t=HK(),n=t.matches[t.matches.length-1];return n.route.id||Wt(!1),n.route.id}function GK(){var e;let t=R.useContext(pD),n=WK(Ag.UseRouteError),r=gD(Ag.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qK(){let{router:e}=VK(vD.UseNavigateStable),t=gD(Ag.UseNavigateStable),n=R.useRef(!1);return mD(()=>{n.current=!0}),R.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mh({fromRouteId:t},o)))},[e,t])}const hk={};function KK(e,t,n){!t&&!hk[e]&&(hk[e]=!0)}function nP(e){let{to:t,replace:n,state:r,relative:i}=e;Ll()||Wt(!1);let{future:o,static:a}=R.useContext(aa),{matches:s}=R.useContext(sa),{pathname:l}=hr(),u=So(),f=tP(t,eP(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(f);return R.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function lt(e){Wt(!1)}function YK(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ra.Pop,navigator:o,static:a=!1,future:s}=e;Ll()&&Wt(!1);let l=t.replace(/^\/*/,"/"),u=R.useMemo(()=>({basename:l,navigator:o,static:a,future:mh({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Hc(r));let{pathname:f="/",search:d="",hash:h="",state:v=null,key:g="default"}=r,y=R.useMemo(()=>{let x=ic(f,l);return x==null?null:{location:{pathname:x,search:d,hash:h,state:v,key:g},navigationType:i}},[l,f,d,h,v,g,i]);return y==null?null:R.createElement(aa.Provider,{value:u},R.createElement(V0.Provider,{children:n,value:y}))}function H0(e){let{children:t,location:n}=e;return $K(_w(t),n)}new Promise(()=>{});function _w(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,i)=>{if(!R.isValidElement(r))return;let o=[...t,i];if(r.type===R.Fragment){n.push.apply(n,_w(r.props.children,o));return}r.type!==lt&&Wt(!1),!r.props.index||!r.props.children||Wt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=_w(r.props.children,o)),n.push(a)}),n}/**
|
||
* React Router DOM v6.23.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kg.apply(this,arguments)}function yD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ZK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XK(e,t){return e.button===0&&(!t||t==="_self")&&!ZK(e)}const QK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],JK=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],eY="6";try{window.__reactRouterVersion=eY}catch{}const tY=R.createContext({isTransitioning:!1}),nY="startTransition",pk=Ox[nY];function bD(e){let{basename:t,children:n,future:r,window:i}=e,o=R.useRef();o.current==null&&(o.current=cK({window:i,v5Compat:!0}));let a=o.current,[s,l]=R.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=R.useCallback(d=>{u&&pk?pk(()=>l(d)):l(d)},[l,u]);return R.useLayoutEffect(()=>a.listen(f),[a,f]),R.createElement(YK,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const rY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=R.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f,unstable_viewTransition:d}=t,h=yD(t,QK),{basename:v}=R.useContext(aa),g,y=!1;if(typeof u=="string"&&iY.test(u)&&(g=u,rY))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),E=ic(S.pathname,v);S.origin===w.origin&&E!=null?u=E+S.search+S.hash:y=!0}catch{}let x=RK(u,{relative:i}),_=aY(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:d});function b(w){r&&r(w),w.defaultPrevented||_(w)}return R.createElement("a",kg({},h,{href:g||x,onClick:y||o?r:b,ref:n,target:l}))}),_D=R.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:f}=t,d=yD(t,JK),h=W0(l,{relative:d.relative}),v=hr(),g=R.useContext(hD),{navigator:y,basename:x}=R.useContext(aa),_=g!=null&&sY(h)&&u===!0,b=y.encodeLocation?y.encodeLocation(h).pathname:h.pathname,w=v.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&x&&(S=ic(S,x)||S);const E=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let P=w===b||!a&&w.startsWith(b)&&w.charAt(E)==="/",T=S!=null&&(S===b||!a&&S.startsWith(b)&&S.charAt(b.length)==="/"),A={isActive:P,isPending:T,isTransitioning:_},D=P?r:void 0,k;typeof o=="function"?k=o(A):k=[o,P?"active":null,T?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let I=typeof s=="function"?s(A):s;return R.createElement(Pt,kg({},d,{"aria-current":D,className:k,ref:n,style:I,to:l,unstable_viewTransition:u}),typeof f=="function"?f(A):f)});var xw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xw||(xw={}));var mk;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mk||(mk={}));function oY(e){let t=R.useContext(z0);return t||Wt(!1),t}function aY(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=So(),u=hr(),f=W0(e,{relative:a});return R.useCallback(d=>{if(XK(d,n)){d.preventDefault();let h=r!==void 0?r:jg(u)===jg(f);l(e,{replace:h,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,f,r,i,n,e,o,a,s])}function sY(e,t){t===void 0&&(t={});let n=R.useContext(tY);n==null&&Wt(!1);let{basename:r}=oY(xw.useViewTransitionState),i=W0(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ic(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ic(n.nextLocation.pathname,r)||n.nextLocation.pathname;return bw(i.pathname,a)!=null||bw(i.pathname,o)!=null}const lY="shlink-web-client",uY="A React-based progressive web application for shlink",cY="/shlink-web-client/dependabot/npm_and_yarn/sass-1.77.5",fY="https://github.com/shlinkio/shlink-web-client",dY="MIT",hY="module",pY={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},mY={"@fortawesome/fontawesome-free":"^6.5.2","@fortawesome/fontawesome-svg-core":"^6.5.2","@fortawesome/free-brands-svg-icons":"^6.5.2","@fortawesome/free-regular-svg-icons":"^6.5.2","@fortawesome/free-solid-svg-icons":"^6.5.2","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.2.5","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.5.1","@shlinkio/shlink-js-sdk":"^1.1.0","@shlinkio/shlink-web-component":"^0.7.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.1","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^3.6.0",react:"^18.3.1","react-dom":"^18.3.1","react-external-link":"^2.3.1","react-redux":"^9.1.2","react-router-dom":"^6.23.1",reactstrap:"^9.2.2","redux-localstorage-simple":"^2.5.1",uuid:"^9.0.1","workbox-core":"^7.1.0","workbox-expiration":"^7.1.0","workbox-precaching":"^7.1.0","workbox-routing":"^7.1.0","workbox-strategies":"^7.1.0"},vY={"@shlinkio/eslint-config-js-coding-standard":"~2.5.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^6.4.5","@testing-library/react":"^16.0.0","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@types/uuid":"^9.0.8","@typescript-eslint/eslint-plugin":"^7.12.0","@typescript-eslint/parser":"^7.12.0","@vitejs/plugin-react":"^4.3.0","@vitest/coverage-v8":"^1.6.0","adm-zip":"^0.5.14","axe-core":"^4.9.1",chalk:"^5.3.0",eslint:"^8.57.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-react":"^7.34.2","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-simple-import-sort":"^12.1.0",history:"^5.3.0",jsdom:"^24.1.0",sass:"^1.77.5",stylelint:"^15.11.0",typescript:"^5.4.5",vite:"^5.2.12","vite-plugin-pwa":"^0.20.0",vitest:"^1.2.2"},gY=[">0.2%","not dead","not ie <= 11","not op_mini all"],Ng={name:lY,description:uY,private:!1,homepage:cY,repository:fY,license:dY,type:hY,scripts:pY,dependencies:mY,devDependencies:vY,browserslist:gY};var Ui,bo=".",xD="function",wD="string",OD="__global__",rP="Provider",yY=0,iP=Array.prototype.slice,bY=function(t,n){var r=t[n];if(r===void 0&&Ui.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},G0=function(t){var n;return this.nested[t]||(n=Ui.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},SD=function(t){return t.split(bo).reduce(bY,this)},_Y=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,l=function(f){if(f)throw f;t[s]&&t[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},xY=function(t,n){var r,i;return typeof t===xD&&(n=t,t=OD),r=t.split(bo),i=r.shift(),r.length?G0.call(this,i).middleware(r.join(bo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},wY=function(t,n){return n(t)},vk=function(t,n){return(t[n]||[]).concat(t.__global__||[])},OY=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+rP,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var u=new n;return delete o[r],o[r]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=o[r],f;return u&&(f=vk(a,t).reduce(wY,u.$get(o)),delete o[r],delete o[t]),f===void 0?f:_Y(vk(s,t),t,f,o)}},Object.defineProperties(o,i),this},ED=function(t,n){var r,i;return r=t.split(bo),this.providerMap[t]&&r.length===1&&!this.container[t+rP]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(G0.call(this,i).provider(r.join(bo),n),this):OY.call(this,i,n))},oP=function(t,n){return ED.call(this,t,function(){this.$get=n})},PD=function(t,n,r){var i=arguments.length>3?iP.call(arguments,3):[],o=this;return oP.call(this,t,function(){var s=n,l=i.map(SD,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},SY=function(t,n){return PD.apply(this,[t,n,!0].concat(iP.call(arguments,2)))},EY=function(t,n){return PD.apply(this,[t,n,!1].concat(iP.call(arguments,2)))},CD=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},TD=function(t,n){var r=t[n];return r||(r={},CD.call(t,n,r)),r},PY=function(t,n){var r;return r=t.split(bo),t=r.pop(),CD.call(r.reduce(TD,this.container),t,n),this},CY=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},TY=function(t,n){var r=t.split(bo);return t=r.pop(),CY.call(r.reduce(TD,this.container),t,n),this},jD=function(t,n){var r,i;return typeof t===xD&&(n=t,t=OD),r=t.split(bo),i=r.shift(),r.length?G0.call(this,i).decorator(r.join(bo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},jY=function(t){return this.deferred.push(t),this},AY=function(t){return(t||[]).map(SD,this.container)},kY=function(t,n){return oP.call(this,t,function(i){return{instance:n.bind(n,i)}})},NY=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},aP=function(t){return Object.keys(t||this.container||{}).filter(NY)},Mg={},MY=function(t){var n;return typeof t===wD?(n=Mg[t],n||(Mg[t]=n=new Ui,n.constant("BOTTLE_NAME",t)),n):new Ui},RY=function(t){typeof t===wD?delete Mg[t]:Mg={}},AD=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},gk=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+rP]},LY=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(bo);a.length>1&&a.forEach(gk,G0.call(this,a[0])),gk.call(this,o),this.provider(o,n[o])}},this)},$Y=function(t){return this.deferred.forEach(function(r){r(t)}),this};Ui=function e(t){if(!(this instanceof e))return e.pop(t);this.id=yY++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:jD.bind(this),$register:AD.bind(this),$list:aP.bind(this)}};Ui.prototype={constant:TY,decorator:jD,defer:jY,digest:AY,factory:oP,instanceFactory:kY,list:aP,middleware:xY,provider:ED,resetProviders:LY,register:AD,resolve:$Y,service:SY,serviceFactory:EY,value:PY};Ui.pop=MY;Ui.clear=RY;Ui.list=aP;Ui.config={strict:!1};const kD=Ui;var IY=Object.defineProperty,DY=(e,t,n)=>t in e?IY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FY=(e,t,n)=>(DY(e,typeof t!="symbol"?t+"":t,n),n);const BY=(e,t)=>`${e}/rest/v${t}`,UY=e=>e.dir?`${e.field}-${e.dir}`:void 0,zY=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:UY(e)}),VY=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},WY=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};class HY{constructor(t,n){FY(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:zY(t)}).then(({shortUrls:n})=>n)}async createShortUrl(t){const n=Object.entries(t).reduce((r,[i,o])=>(o&&(r[i]=o),r),{});return this.performRequest({url:"/short-urls",method:"POST",body:n})}async getShortUrl(t,n){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n}})}async deleteShortUrl(t,n){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}})}async updateShortUrl(t,n,r){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r})}async getShortUrlRedirectRules(t,n){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n}})}async setShortUrlRedirectRules(t,n,r){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:r})}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrlVisits(t,n){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:n})}async getTagVisits(t,n){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:n})}async getDomainVisits(t,n){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:n})}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:n})=>n)}async deleteShortUrlVisits(t,n){const r=n?{domain:n}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:r})}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,n){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n}))}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:n="GET",query:r={},body:i,domain:o}){const a=WY(r),s=a?`?${a}`:"",l=o?VY(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${BY(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const ND=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),jd=e=>!!(e!=null&&e.id),sP=e=>!!(e!=null&&e.version),GY=e=>!!(e!=null&&e.serverNotFound),qY=e=>jd(e)?e.id:"",KY=({name:e,url:t,apiKey:n})=>({name:e,url:t,apiKey:n}),yk={},YY=e=>typeof e=="function",ZY=e=>{const{selectedServer:t}=e();if(!ND(t))throw new Error("There's no selected server or it is not found");return t},XY=e=>t=>{const{url:n,apiKey:r}=YY(t)?ZY(t):t,i=`${r}_${n}`,o=yk[i]??new HY(e,{apiKey:r,baseUrl:n});return yk[i]=o,o},QY=e=>{e.serviceFactory("buildShlinkApiClient",XY,"HttpClient")};var MD={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},JY={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},eZ=JY,tZ={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},lP=tZ,nZ={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM200 352h16c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-8.8 7.2-16 16-16s16 7.2 16 16v31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6V368c0-8.8 7.2-16 16-16z"]},rZ={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},RD=rZ,LD={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"]},iZ={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},$D={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},oZ={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"]},aZ=oZ,sZ={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},uP=sZ,lZ={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},uZ={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},cZ={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"]},bk={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},fZ={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31V408z"]},dZ=fZ,hZ={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},ww=hZ,pZ={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},mZ={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},vZ={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},gZ=vZ,cP={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},q0={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V400c0 44.2 35.8 80 80 80H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H80c-8.8 0-16-7.2-16-16V64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},ID={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5V80C0 53.5 21.5 32 48 32H197.5c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},_k={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},yZ={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},bZ={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"]},_Z={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},xZ=_Z,wZ={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},OZ={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},fP=OZ,SZ={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},EZ=SZ,PZ={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"]},CZ={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"]},TZ={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"]},jZ=TZ,AZ={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},kZ=AZ,NZ={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},MZ=NZ,RZ={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},DD=RZ,LZ={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"]},$Z={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"]},IZ={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"]},DZ={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"]},FZ=DZ,BZ={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"]},UZ={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.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Cp={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},zZ={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"]},Ow=zZ,VZ={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"]},WZ={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},HZ=WZ,xk={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},FD={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},GZ=FD,qZ={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},KZ={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"]},YZ={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM116.6 187.9L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9zM220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3L220.9 270z"]},ZZ={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},vh={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"]},XZ={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.3V384c0 35.3 28.7 64 64 64h64c17.7 0 32 14.3 32 32s-14.3 32-32 32H416c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64H109.3l41.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 256H224c23.3 0 45.2 6.2 64 17.1V109.3l-41.4 41.4z"]},QZ={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},JZ=QZ;function wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(n),!0).forEach(function(r){vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rg(e){"@babel/helpers - typeof";return Rg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rg(e)}function eX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ok(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tX(e,t,n){return t&&Ok(e.prototype,t),n&&Ok(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dP(e,t){return rX(e)||oX(e,t)||BD(e,t)||sX()}function Tp(e){return nX(e)||iX(e)||BD(e)||aX()}function nX(e){if(Array.isArray(e))return Sw(e)}function rX(e){if(Array.isArray(e))return e}function iX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function BD(e,t){if(e){if(typeof e=="string")return Sw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sw(e,t)}}function Sw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aX(){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 sX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Sk=function(){},hP={},UD={},zD=null,VD={mark:Sk,measure:Sk};try{typeof window<"u"&&(hP=window),typeof document<"u"&&(UD=document),typeof MutationObserver<"u"&&(zD=MutationObserver),typeof performance<"u"&&(VD=performance)}catch{}var lX=hP.navigator||{},Ek=lX.userAgent,Pk=Ek===void 0?"":Ek,ts=hP,Mt=UD,Ck=zD,Hm=VD;ts.document;var la=!!Mt.documentElement&&!!Mt.head&&typeof Mt.addEventListener=="function"&&typeof Mt.createElement=="function",WD=~Pk.indexOf("MSIE")||~Pk.indexOf("Trident/"),Gm,qm,Km,Ym,Zm,Zo="___FONT_AWESOME___",Ew=16,HD="fa",GD="svg-inline--fa",xl="data-fa-i2svg",Pw="data-fa-pseudo-element",uX="data-fa-pseudo-element-pending",pP="data-prefix",mP="data-icon",Tk="fontawesome-i2svg",cX="async",fX=["HTML","HEAD","STYLE","SCRIPT"],qD=function(){try{return!0}catch{return!1}}(),At="classic",Kt="sharp",vP=[At,Kt];function jp(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[At]}})}var gh=jp((Gm={},vn(Gm,At,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),vn(Gm,Kt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Gm)),yh=jp((qm={},vn(qm,At,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),vn(qm,Kt,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),qm)),bh=jp((Km={},vn(Km,At,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),vn(Km,Kt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Km)),dX=jp((Ym={},vn(Ym,At,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),vn(Ym,Kt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Ym)),hX=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,KD="fa-layers-text",pX=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,mX=jp((Zm={},vn(Zm,At,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),vn(Zm,Kt,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Zm)),YD=[1,2,3,4,5,6,7,8,9,10],vX=YD.concat([11,12,13,14,15,16,17,18,19,20]),gX=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Js={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},_h=new Set;Object.keys(yh[At]).map(_h.add.bind(_h));Object.keys(yh[Kt]).map(_h.add.bind(_h));var yX=[].concat(vP,Tp(_h),["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",Js.GROUP,Js.SWAP_OPACITY,Js.PRIMARY,Js.SECONDARY]).concat(YD.map(function(e){return"".concat(e,"x")})).concat(vX.map(function(e){return"w-".concat(e)})),Ad=ts.FontAwesomeConfig||{};function bX(e){var t=Mt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function _X(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Mt&&typeof Mt.querySelector=="function"){var xX=[["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"]];xX.forEach(function(e){var t=dP(e,2),n=t[0],r=t[1],i=_X(bX(n));i!=null&&(Ad[r]=i)})}var ZD={styleDefault:"solid",familyDefault:"classic",cssPrefix:HD,replacementClass:GD,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ad.familyPrefix&&(Ad.cssPrefix=Ad.familyPrefix);var oc=Le(Le({},ZD),Ad);oc.autoReplaceSvg||(oc.observeMutations=!1);var Fe={};Object.keys(ZD).forEach(function(e){Object.defineProperty(Fe,e,{enumerable:!0,set:function(n){oc[e]=n,kd.forEach(function(r){return r(Fe)})},get:function(){return oc[e]}})});Object.defineProperty(Fe,"familyPrefix",{enumerable:!0,set:function(t){oc.cssPrefix=t,kd.forEach(function(n){return n(Fe)})},get:function(){return oc.cssPrefix}});ts.FontAwesomeConfig=Fe;var kd=[];function wX(e){return kd.push(e),function(){kd.splice(kd.indexOf(e),1)}}var ga=Ew,lo={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function OX(e){if(!(!e||!la)){var t=Mt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Mt.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Mt.head.insertBefore(t,r),e}}var SX="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function xh(){for(var e=12,t="";e-- >0;)t+=SX[Math.random()*62|0];return t}function qc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function gP(e){return e.classList?qc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function XD(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function EX(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(XD(e[n]),'" ')},"").trim()}function K0(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function yP(e){return e.size!==lo.size||e.x!==lo.x||e.y!==lo.y||e.rotate!==lo.rotate||e.flipX||e.flipY}function PX(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function CX(e){var t=e.transform,n=e.width,r=n===void 0?Ew:n,i=e.height,o=i===void 0?Ew:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&WD?l+="translate(".concat(t.x/ga-r/2,"em, ").concat(t.y/ga-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ga,"em), calc(-50% + ").concat(t.y/ga,"em)) "):l+="translate(".concat(t.x/ga,"em, ").concat(t.y/ga,"em) "),l+="scale(".concat(t.size/ga*(t.flipX?-1:1),", ").concat(t.size/ga*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var TX=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
||
}
|
||
|
||
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
||
overflow: visible;
|
||
box-sizing: content-box;
|
||
}
|
||
|
||
.svg-inline--fa {
|
||
display: var(--fa-display, inline-block);
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
}
|
||
.svg-inline--fa.fa-2xs {
|
||
vertical-align: 0.1em;
|
||
}
|
||
.svg-inline--fa.fa-xs {
|
||
vertical-align: 0em;
|
||
}
|
||
.svg-inline--fa.fa-sm {
|
||
vertical-align: -0.0714285705em;
|
||
}
|
||
.svg-inline--fa.fa-lg {
|
||
vertical-align: -0.2em;
|
||
}
|
||
.svg-inline--fa.fa-xl {
|
||
vertical-align: -0.25em;
|
||
}
|
||
.svg-inline--fa.fa-2xl {
|
||
vertical-align: -0.3125em;
|
||
}
|
||
.svg-inline--fa.fa-pull-left {
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-pull-right {
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-li {
|
||
width: var(--fa-li-width, 2em);
|
||
top: 0.25em;
|
||
}
|
||
.svg-inline--fa.fa-fw {
|
||
width: var(--fa-fw-width, 1.25em);
|
||
}
|
||
|
||
.fa-layers svg.svg-inline--fa {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.fa-layers-counter, .fa-layers-text {
|
||
display: inline-block;
|
||
position: absolute;
|
||
text-align: center;
|
||
}
|
||
|
||
.fa-layers {
|
||
display: inline-block;
|
||
height: 1em;
|
||
position: relative;
|
||
text-align: center;
|
||
vertical-align: -0.125em;
|
||
width: 1em;
|
||
}
|
||
.fa-layers svg.svg-inline--fa {
|
||
-webkit-transform-origin: center center;
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
-webkit-transform: translate(-50%, -50%);
|
||
transform: translate(-50%, -50%);
|
||
-webkit-transform-origin: center center;
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-counter {
|
||
background-color: var(--fa-counter-background-color, #ff253a);
|
||
border-radius: var(--fa-counter-border-radius, 1em);
|
||
box-sizing: border-box;
|
||
color: var(--fa-inverse, #fff);
|
||
line-height: var(--fa-counter-line-height, 1);
|
||
max-width: var(--fa-counter-max-width, 5em);
|
||
min-width: var(--fa-counter-min-width, 1.5em);
|
||
overflow: hidden;
|
||
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
||
right: var(--fa-right, 0);
|
||
text-overflow: ellipsis;
|
||
top: var(--fa-top, 0);
|
||
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
-webkit-transform-origin: top right;
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: bottom right;
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: bottom left;
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: top right;
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: top left;
|
||
transform-origin: top left;
|
||
}
|
||
|
||
.fa-1x {
|
||
font-size: 1em;
|
||
}
|
||
|
||
.fa-2x {
|
||
font-size: 2em;
|
||
}
|
||
|
||
.fa-3x {
|
||
font-size: 3em;
|
||
}
|
||
|
||
.fa-4x {
|
||
font-size: 4em;
|
||
}
|
||
|
||
.fa-5x {
|
||
font-size: 5em;
|
||
}
|
||
|
||
.fa-6x {
|
||
font-size: 6em;
|
||
}
|
||
|
||
.fa-7x {
|
||
font-size: 7em;
|
||
}
|
||
|
||
.fa-8x {
|
||
font-size: 8em;
|
||
}
|
||
|
||
.fa-9x {
|
||
font-size: 9em;
|
||
}
|
||
|
||
.fa-10x {
|
||
font-size: 10em;
|
||
}
|
||
|
||
.fa-2xs {
|
||
font-size: 0.625em;
|
||
line-height: 0.1em;
|
||
vertical-align: 0.225em;
|
||
}
|
||
|
||
.fa-xs {
|
||
font-size: 0.75em;
|
||
line-height: 0.0833333337em;
|
||
vertical-align: 0.125em;
|
||
}
|
||
|
||
.fa-sm {
|
||
font-size: 0.875em;
|
||
line-height: 0.0714285718em;
|
||
vertical-align: 0.0535714295em;
|
||
}
|
||
|
||
.fa-lg {
|
||
font-size: 1.25em;
|
||
line-height: 0.05em;
|
||
vertical-align: -0.075em;
|
||
}
|
||
|
||
.fa-xl {
|
||
font-size: 1.5em;
|
||
line-height: 0.0416666682em;
|
||
vertical-align: -0.125em;
|
||
}
|
||
|
||
.fa-2xl {
|
||
font-size: 2em;
|
||
line-height: 0.03125em;
|
||
vertical-align: -0.1875em;
|
||
}
|
||
|
||
.fa-fw {
|
||
text-align: center;
|
||
width: 1.25em;
|
||
}
|
||
|
||
.fa-ul {
|
||
list-style-type: none;
|
||
margin-left: var(--fa-li-margin, 2.5em);
|
||
padding-left: 0;
|
||
}
|
||
.fa-ul > li {
|
||
position: relative;
|
||
}
|
||
|
||
.fa-li {
|
||
left: calc(var(--fa-li-width, 2em) * -1);
|
||
position: absolute;
|
||
text-align: center;
|
||
width: var(--fa-li-width, 2em);
|
||
line-height: inherit;
|
||
}
|
||
|
||
.fa-border {
|
||
border-color: var(--fa-border-color, #eee);
|
||
border-radius: var(--fa-border-radius, 0.1em);
|
||
border-style: var(--fa-border-style, solid);
|
||
border-width: var(--fa-border-width, 0.08em);
|
||
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
||
}
|
||
|
||
.fa-pull-left {
|
||
float: left;
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-pull-right {
|
||
float: right;
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-beat {
|
||
-webkit-animation-name: fa-beat;
|
||
animation-name: fa-beat;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
-webkit-animation-name: fa-bounce;
|
||
animation-name: fa-bounce;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
-webkit-animation-name: fa-fade;
|
||
animation-name: fa-fade;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
-webkit-animation-name: fa-beat-fade;
|
||
animation-name: fa-beat-fade;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-flip {
|
||
-webkit-animation-name: fa-flip;
|
||
animation-name: fa-flip;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
-webkit-animation-name: fa-shake;
|
||
animation-name: fa-shake;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin {
|
||
-webkit-animation-name: fa-spin;
|
||
animation-name: fa-spin;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
-webkit-animation-name: fa-spin;
|
||
animation-name: fa-spin;
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.fa-beat,
|
||
.fa-bounce,
|
||
.fa-fade,
|
||
.fa-beat-fade,
|
||
.fa-flip,
|
||
.fa-pulse,
|
||
.fa-shake,
|
||
.fa-spin,
|
||
.fa-spin-pulse {
|
||
-webkit-animation-delay: -1ms;
|
||
animation-delay: -1ms;
|
||
-webkit-animation-duration: 1ms;
|
||
animation-duration: 1ms;
|
||
-webkit-animation-iteration-count: 1;
|
||
animation-iteration-count: 1;
|
||
-webkit-transition-delay: 0s;
|
||
transition-delay: 0s;
|
||
-webkit-transition-duration: 0s;
|
||
transition-duration: 0s;
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-beat {
|
||
0%, 90% {
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0%, 90% {
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-bounce {
|
||
0% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
}
|
||
50% {
|
||
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
}
|
||
50% {
|
||
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-flip {
|
||
50% {
|
||
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
50% {
|
||
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-shake {
|
||
0% {
|
||
-webkit-transform: rotate(-15deg);
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
-webkit-transform: rotate(15deg);
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
-webkit-transform: rotate(-18deg);
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
-webkit-transform: rotate(18deg);
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
-webkit-transform: rotate(-22deg);
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
-webkit-transform: rotate(22deg);
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
-webkit-transform: rotate(-12deg);
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
-webkit-transform: rotate(12deg);
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
-webkit-transform: rotate(-15deg);
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
-webkit-transform: rotate(15deg);
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
-webkit-transform: rotate(-18deg);
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
-webkit-transform: rotate(18deg);
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
-webkit-transform: rotate(-22deg);
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
-webkit-transform: rotate(22deg);
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
-webkit-transform: rotate(-12deg);
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
-webkit-transform: rotate(12deg);
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-spin {
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
-webkit-transform: rotate(90deg);
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
-webkit-transform: rotate(180deg);
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
-webkit-transform: rotate(270deg);
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
-webkit-transform: scale(-1, 1);
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
-webkit-transform: scale(1, -1);
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
-webkit-transform: scale(-1, -1);
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
-webkit-transform: rotate(var(--fa-rotate-angle, 0));
|
||
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;
|
||
}
|
||
|
||
.fad.fa-inverse,
|
||
.fa-duotone.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}`;function QD(){var e=HD,t=GD,n=Fe.cssPrefix,r=Fe.replacementClass,i=TX;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var jk=!1;function u_(){Fe.autoAddCss&&!jk&&(OX(QD()),jk=!0)}var jX={mixout:function(){return{dom:{css:QD,insertCss:u_}}},hooks:function(){return{beforeDOMElementCreation:function(){u_()},beforeI2svg:function(){u_()}}}},Xo=ts||{};Xo[Zo]||(Xo[Zo]={});Xo[Zo].styles||(Xo[Zo].styles={});Xo[Zo].hooks||(Xo[Zo].hooks={});Xo[Zo].shims||(Xo[Zo].shims=[]);var Ri=Xo[Zo],JD=[],AX=function e(){Mt.removeEventListener("DOMContentLoaded",e),Lg=1,JD.map(function(t){return t()})},Lg=!1;la&&(Lg=(Mt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Mt.readyState),Lg||Mt.addEventListener("DOMContentLoaded",AX));function kX(e){la&&(Lg?setTimeout(e,0):JD.push(e))}function Ap(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?XD(e):"<".concat(t," ").concat(EX(r),">").concat(o.map(Ap).join(""),"</").concat(t,">")}function Ak(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var NX=function(t,n){return function(r,i,o,a){return t.call(n,r,i,o,a)}},c_=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=i!==void 0?NX(n,i):n,l,u,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<a;l++)u=o[l],f=s(f,t[u],u,t);return f};function MX(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Cw(e){var t=MX(e);return t.length===1?t[0].toString(16):null}function RX(e,t){var n=e.length,r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function kk(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function Tw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=kk(t);typeof Ri.hooks.addPack=="function"&&!i?Ri.hooks.addPack(e,kk(t)):Ri.styles[e]=Le(Le({},Ri.styles[e]||{}),o),e==="fas"&&Tw("fa",t)}var Xm,Qm,Jm,Au=Ri.styles,LX=Ri.shims,$X=(Xm={},vn(Xm,At,Object.values(bh[At])),vn(Xm,Kt,Object.values(bh[Kt])),Xm),bP=null,e5={},t5={},n5={},r5={},i5={},IX=(Qm={},vn(Qm,At,Object.keys(gh[At])),vn(Qm,Kt,Object.keys(gh[Kt])),Qm);function DX(e){return~yX.indexOf(e)}function FX(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!DX(i)?i:null}var o5=function(){var t=function(o){return c_(Au,function(a,s,l){return a[l]=c_(s,o,{}),a},{})};e5=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var s=o[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){i[l.toString(16)]=a})}return i}),t5=t(function(i,o,a){if(i[a]=a,o[2]){var s=o[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){i[l]=a})}return i}),i5=t(function(i,o,a){var s=o[2];return i[a]=a,s.forEach(function(l){i[l]=a}),i});var n="far"in Au||Fe.autoFetchSvg,r=c_(LX,function(i,o){var a=o[0],s=o[1],l=o[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(i.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:s,iconName:l}),i},{names:{},unicodes:{}});n5=r.names,r5=r.unicodes,bP=Y0(Fe.styleDefault,{family:Fe.familyDefault})};wX(function(e){bP=Y0(e.styleDefault,{family:Fe.familyDefault})});o5();function _P(e,t){return(e5[e]||{})[t]}function BX(e,t){return(t5[e]||{})[t]}function el(e,t){return(i5[e]||{})[t]}function a5(e){return n5[e]||{prefix:null,iconName:null}}function UX(e){var t=r5[e],n=_P("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ns(){return bP}var xP=function(){return{prefix:null,iconName:null,rest:[]}};function Y0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?At:n,i=gh[r][e],o=yh[r][e]||yh[r][i],a=e in Ri.styles?e:null;return o||a||null}var Nk=(Jm={},vn(Jm,At,Object.keys(bh[At])),vn(Jm,Kt,Object.keys(bh[Kt])),Jm);function Z0(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},vn(t,At,"".concat(Fe.cssPrefix,"-").concat(At)),vn(t,Kt,"".concat(Fe.cssPrefix,"-").concat(Kt)),t),a=null,s=At;(e.includes(o[At])||e.some(function(u){return Nk[At].includes(u)}))&&(s=At),(e.includes(o[Kt])||e.some(function(u){return Nk[Kt].includes(u)}))&&(s=Kt);var l=e.reduce(function(u,f){var d=FX(Fe.cssPrefix,f);if(Au[f]?(f=$X[s].includes(f)?dX[s][f]:f,a=f,u.prefix=f):IX[s].indexOf(f)>-1?(a=f,u.prefix=Y0(f,{family:s})):d?u.iconName=d:f!==Fe.replacementClass&&f!==o[At]&&f!==o[Kt]&&u.rest.push(f),!i&&u.prefix&&u.iconName){var h=a==="fa"?a5(u.iconName):{},v=el(u.prefix,u.iconName);h.prefix&&(a=null),u.iconName=h.iconName||v||u.iconName,u.prefix=h.prefix||u.prefix,u.prefix==="far"&&!Au.far&&Au.fas&&!Fe.autoFetchSvg&&(u.prefix="fas")}return u},xP());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===Kt&&(Au.fass||Fe.autoFetchSvg)&&(l.prefix="fass",l.iconName=el(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=ns()||"fas"),l}var zX=function(){function e(){eX(this,e),this.definitions={}}return tX(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=Le(Le({},n.definitions[s]||{}),a[s]),Tw(s,a[s]);var l=bh[At][s];l&&Tw(l,a[s]),o5()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var a=i[o],s=a.prefix,l=a.iconName,u=a.icon,f=u[2];n[s]||(n[s]={}),f.length>0&&f.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),Mk=[],ku={},Hu={},VX=Object.keys(Hu);function WX(e,t){var n=t.mixoutsTo;return Mk=e,ku={},Object.keys(Hu).forEach(function(r){VX.indexOf(r)===-1&&delete Hu[r]}),Mk.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Rg(i[a])==="object"&&Object.keys(i[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){ku[a]||(ku[a]=[]),ku[a].push(o[a])})}r.provides&&r.provides(Hu)}),n}function jw(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=ku[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function wl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ku[e]||[];i.forEach(function(o){o.apply(null,n)})}function Qo(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Hu[e]?Hu[e].apply(null,t):void 0}function Aw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ns();if(t)return t=el(n,t)||t,Ak(s5.definitions,n,t)||Ak(Ri.styles,n,t)}var s5=new zX,HX=function(){Fe.autoReplaceSvg=!1,Fe.observeMutations=!1,wl("noAuto")},GX={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return la?(wl("beforeI2svg",t),Qo("pseudoElements2svg",t),Qo("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Fe.autoReplaceSvg===!1&&(Fe.autoReplaceSvg=!0),Fe.observeMutations=!0,kX(function(){KX({autoReplaceSvgRoot:n}),wl("watch",t)})}},qX={icon:function(t){if(t===null)return null;if(Rg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:el(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Y0(t[0]);return{prefix:r,iconName:el(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Fe.cssPrefix,"-"))>-1||t.match(hX))){var i=Z0(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||ns(),iconName:el(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=ns();return{prefix:o,iconName:el(o,t)||t}}}},Gr={noAuto:HX,config:Fe,dom:GX,parse:qX,library:s5,findIconDefinition:Aw,toHtml:Ap},KX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Mt:n;(Object.keys(Ri.styles).length>0||Fe.autoFetchSvg)&&la&&Fe.autoReplaceSvg&&Gr.dom.i2svg({node:r})};function X0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ap(r)})}}),Object.defineProperty(e,"node",{get:function(){if(la){var r=Mt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function YX(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(yP(a)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};i.style=K0(Le(Le({},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 ZX(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(Fe.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Le(Le({},i),{},{id:a}),children:r}]}]}function wP(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,u=e.maskId,f=e.titleId,d=e.extra,h=e.watchable,v=h===void 0?!1:h,g=r.found?r:n,y=g.width,x=g.height,_=i==="fak",b=[Fe.replacementClass,o?"".concat(Fe.cssPrefix,"-").concat(o):""].filter(function(D){return d.classes.indexOf(D)===-1}).filter(function(D){return D!==""||!!D}).concat(d.classes).join(" "),w={children:[],attributes:Le(Le({},d.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(x)})},S=_&&!~d.classes.indexOf("fa-fw")?{width:"".concat(y/x*16*.0625,"em")}:{};v&&(w.attributes[xl]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(f||xh())},children:[l]}),delete w.attributes.title);var E=Le(Le({},w),{},{prefix:i,iconName:o,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:Le(Le({},S),d.styles)}),P=r.found&&n.found?Qo("generateAbstractMask",E)||{children:[],attributes:{}}:Qo("generateAbstractIcon",E)||{children:[],attributes:{}},T=P.children,A=P.attributes;return E.children=T,E.attributes=A,s?ZX(E):YX(E)}function Rk(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=s===void 0?!1:s,u=Le(Le(Le({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[xl]="");var f=Le({},a.styles);yP(i)&&(f.transform=CX({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var d=K0(f);d.length>0&&(u.style=d);var h=[];return h.push({tag:"span",attributes:u,children:[t]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}function XX(e){var t=e.content,n=e.title,r=e.extra,i=Le(Le(Le({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=K0(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var f_=Ri.styles;function kw(e){var t=e[0],n=e[1],r=e.slice(4),i=dP(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(Js.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(Js.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(Js.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var QX={found:!1,width:512,height:512};function JX(e,t){!qD&&!Fe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Nw(e,t){var n=t;return t==="fa"&&Fe.styleDefault!==null&&(t=ns()),new Promise(function(r,i){if(Qo("missingIconAbstract"),n==="fa"){var o=a5(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&f_[t]&&f_[t][e]){var a=f_[t][e];return r(kw(a))}JX(e,t),r(Le(Le({},QX),{},{icon:Fe.showMissingIcons&&e?Qo("missingIconAbstract")||{}:{}}))})}var Lk=function(){},Mw=Fe.measurePerformance&&Hm&&Hm.mark&&Hm.measure?Hm:{mark:Lk,measure:Lk},fd='FA "6.5.2"',eQ=function(t){return Mw.mark("".concat(fd," ").concat(t," begins")),function(){return l5(t)}},l5=function(t){Mw.mark("".concat(fd," ").concat(t," ends")),Mw.measure("".concat(fd," ").concat(t),"".concat(fd," ").concat(t," begins"),"".concat(fd," ").concat(t," ends"))},OP={begin:eQ,end:l5},Wv=function(){};function $k(e){var t=e.getAttribute?e.getAttribute(xl):null;return typeof t=="string"}function tQ(e){var t=e.getAttribute?e.getAttribute(pP):null,n=e.getAttribute?e.getAttribute(mP):null;return t&&n}function nQ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Fe.replacementClass)}function rQ(){if(Fe.autoReplaceSvg===!0)return Hv.replace;var e=Hv[Fe.autoReplaceSvg];return e||Hv.replace}function iQ(e){return Mt.createElementNS("http://www.w3.org/2000/svg",e)}function oQ(e){return Mt.createElement(e)}function u5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?iQ:oQ:n;if(typeof e=="string")return Mt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(u5(a,{ceFn:r}))}),i}function aQ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Hv={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(u5(i),n)}),n.getAttribute(xl)===null&&Fe.keepOriginalSource){var r=Mt.createComment(aQ(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~gP(n).indexOf(Fe.replacementClass))return Hv.replace(t);var i=new RegExp("".concat(Fe.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(s,l){return l===Fe.replacementClass||l.match(i)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(s){return Ap(s)}).join(`
|
||
`);n.setAttribute(xl,""),n.innerHTML=a}};function Ik(e){e()}function c5(e,t){var n=typeof t=="function"?t:Wv;if(e.length===0)n();else{var r=Ik;Fe.mutateApproach===cX&&(r=ts.requestAnimationFrame||Ik),r(function(){var i=rQ(),o=OP.begin("mutate");e.map(i),o(),n()})}}var SP=!1;function f5(){SP=!0}function Rw(){SP=!1}var $g=null;function Dk(e){if(Ck&&Fe.observeMutations){var t=e.treeCallback,n=t===void 0?Wv:t,r=e.nodeCallback,i=r===void 0?Wv:r,o=e.pseudoElementsCallback,a=o===void 0?Wv:o,s=e.observeMutationsRoot,l=s===void 0?Mt:s;$g=new Ck(function(u){if(!SP){var f=ns();qc(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!$k(d.addedNodes[0])&&(Fe.searchPseudoElements&&a(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&Fe.searchPseudoElements&&a(d.target.parentNode),d.type==="attributes"&&$k(d.target)&&~gX.indexOf(d.attributeName))if(d.attributeName==="class"&&tQ(d.target)){var h=Z0(gP(d.target)),v=h.prefix,g=h.iconName;d.target.setAttribute(pP,v||f),g&&d.target.setAttribute(mP,g)}else nQ(d.target)&&i(d.target)})}}),la&&$g.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function sQ(){$g&&$g.disconnect()}function lQ(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function uQ(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Z0(gP(e));return i.prefix||(i.prefix=ns()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=BX(i.prefix,e.innerText)||_P(i.prefix,Cw(e.innerText))),!i.iconName&&Fe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function cQ(e){var t=qc(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Fe.autoA11y&&(n?t["aria-labelledby"]="".concat(Fe.replacementClass,"-title-").concat(r||xh()):(t["aria-hidden"]="true",t.focusable="false")),t}function fQ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:lo,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Fk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=uQ(e),r=n.iconName,i=n.prefix,o=n.rest,a=cQ(e),s=jw("parseNodeAttributes",{},e),l=t.styleParser?lQ(e):[];return Le({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:lo,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var dQ=Ri.styles;function d5(e){var t=Fe.autoReplaceSvg==="nest"?Fk(e,{styleParser:!1}):Fk(e);return~t.extra.classes.indexOf(KD)?Qo("generateLayersText",e,t):Qo("generateSvgReplacementMutation",e,t)}var rs=new Set;vP.map(function(e){rs.add("fa-".concat(e))});Object.keys(gh[At]).map(rs.add.bind(rs));Object.keys(gh[Kt]).map(rs.add.bind(rs));rs=Tp(rs);function Bk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!la)return Promise.resolve();var n=Mt.documentElement.classList,r=function(d){return n.add("".concat(Tk,"-").concat(d))},i=function(d){return n.remove("".concat(Tk,"-").concat(d))},o=Fe.autoFetchSvg?rs:vP.map(function(f){return"fa-".concat(f)}).concat(Object.keys(dQ));o.includes("fa")||o.push("fa");var a=[".".concat(KD,":not([").concat(xl,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(xl,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=qc(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=OP.begin("onTree"),u=s.reduce(function(f,d){try{var h=d5(d);h&&f.push(h)}catch(v){qD||v.name==="MissingIcon"&&console.error(v)}return f},[]);return new Promise(function(f,d){Promise.all(u).then(function(h){c5(h,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(h){l(),d(h)})})}function hQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;d5(e).then(function(n){n&&c5([n],t)})}function pQ(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Aw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Aw(i||{})),e(r,Le(Le({},n),{},{mask:i}))}}var mQ=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?lo:r,o=n.symbol,a=o===void 0?!1:o,s=n.mask,l=s===void 0?null:s,u=n.maskId,f=u===void 0?null:u,d=n.title,h=d===void 0?null:d,v=n.titleId,g=v===void 0?null:v,y=n.classes,x=y===void 0?[]:y,_=n.attributes,b=_===void 0?{}:_,w=n.styles,S=w===void 0?{}:w;if(t){var E=t.prefix,P=t.iconName,T=t.icon;return X0(Le({type:"icon"},t),function(){return wl("beforeDOMElementCreation",{iconDefinition:t,params:n}),Fe.autoA11y&&(h?b["aria-labelledby"]="".concat(Fe.replacementClass,"-title-").concat(g||xh()):(b["aria-hidden"]="true",b.focusable="false")),wP({icons:{main:kw(T),mask:l?kw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:P,transform:Le(Le({},lo),i),symbol:a,title:h,maskId:f,titleId:g,extra:{attributes:b,styles:S,classes:x}})})}},vQ={mixout:function(){return{icon:pQ(mQ)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Bk,n.nodeCallback=hQ,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Mt:r,o=n.callback,a=o===void 0?function(){}:o;return Bk(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,a=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,f=r.mask,d=r.maskId,h=r.extra;return new Promise(function(v,g){Promise.all([Nw(i,s),f.iconName?Nw(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var x=dP(y,2),_=x[0],b=x[1];v([n,wP({icons:{main:_,mask:b},prefix:s,iconName:i,transform:l,symbol:u,maskId:d,title:o,titleId:a,extra:h,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=K0(s);l.length>0&&(i.style=l);var u;return yP(a)&&(u=Qo("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},gQ={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return X0({type:"layer"},function(){wl("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Fe.cssPrefix,"-layers")].concat(Tp(o)).join(" ")},children:a}]})}}}},yQ={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,a=r.classes,s=a===void 0?[]:a,l=r.attributes,u=l===void 0?{}:l,f=r.styles,d=f===void 0?{}:f;return X0({type:"counter",content:n},function(){return wl("beforeDOMElementCreation",{content:n,params:r}),XX({content:n.toString(),title:o,extra:{attributes:u,styles:d,classes:["".concat(Fe.cssPrefix,"-layers-counter")].concat(Tp(s))}})})}}}},bQ={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?lo:i,a=r.title,s=a===void 0?null:a,l=r.classes,u=l===void 0?[]:l,f=r.attributes,d=f===void 0?{}:f,h=r.styles,v=h===void 0?{}:h;return X0({type:"text",content:n},function(){return wl("beforeDOMElementCreation",{content:n,params:r}),Rk({content:n,transform:Le(Le({},lo),o),title:s,extra:{attributes:d,styles:v,classes:["".concat(Fe.cssPrefix,"-layers-text")].concat(Tp(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(WD){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/u,l=f.height/u}return Fe.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([n,Rk({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},_Q=new RegExp('"',"ug"),Uk=[1105920,1112319];function xQ(e){var t=e.replace(_Q,""),n=RX(t,0),r=n>=Uk[0]&&n<=Uk[1],i=t.length===2?t[0]===t[1]:!1;return{value:Cw(i?t[0]:t),isSecondary:r||i}}function zk(e,t){var n="".concat(uX).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=qc(e.children),a=o.filter(function(T){return T.getAttribute(Pw)===t})[0],s=ts.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(pX),u=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&f!=="none"&&f!==""){var d=s.getPropertyValue("content"),h=~["Sharp"].indexOf(l[2])?Kt:At,v=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?yh[h][l[2].toLowerCase()]:mX[h][u],g=xQ(d),y=g.value,x=g.isSecondary,_=l[0].startsWith("FontAwesome"),b=_P(v,y),w=b;if(_){var S=UX(y);S.iconName&&S.prefix&&(b=S.iconName,v=S.prefix)}if(b&&!x&&(!a||a.getAttribute(pP)!==v||a.getAttribute(mP)!==w)){e.setAttribute(n,w),a&&e.removeChild(a);var E=fQ(),P=E.extra;P.attributes[Pw]=t,Nw(b,v).then(function(T){var A=wP(Le(Le({},E),{},{icons:{main:T,mask:xP()},prefix:v,iconName:w,extra:P,watchable:!0})),D=Mt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(D,e.firstChild):e.appendChild(D),D.outerHTML=A.map(function(k){return Ap(k)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function wQ(e){return Promise.all([zk(e,"::before"),zk(e,"::after")])}function OQ(e){return e.parentNode!==document.head&&!~fX.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Pw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Vk(e){if(la)return new Promise(function(t,n){var r=qc(e.querySelectorAll("*")).filter(OQ).map(wQ),i=OP.begin("searchPseudoElements");f5(),Promise.all(r).then(function(){i(),Rw(),t()}).catch(function(){i(),Rw(),n()})})}var SQ={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Vk,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Mt:r;Fe.searchPseudoElements&&Vk(i)}}},Wk=!1,EQ={mixout:function(){return{dom:{unwatch:function(){f5(),Wk=!0}}}},hooks:function(){return{bootstrap:function(){Dk(jw("mutationObserverCallbacks",{}))},noAuto:function(){sQ()},watch:function(n){var r=n.observeMutationsRoot;Wk?Rw():Dk(jw("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Hk=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],s=o.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},PQ={mixout:function(){return{parse:{transform:function(n){return Hk(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=Hk(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(f)},h={transform:"translate(".concat(a/2*-1," -256)")},v={outer:s,inner:d,path:h};return{tag:"g",attributes:Le({},v.outer),children:[{tag:"g",attributes:Le({},v.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Le(Le({},r.icon.attributes),v.path)}]}]}}}},d_={x:0,y:0,width:"100%",height:"100%"};function Gk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function CQ(e){return e.tag==="g"?e.children:[e]}var TQ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Z0(i.split(" ").map(function(a){return a.trim()})):xP();return o.prefix||(o.prefix=ns()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,s=n.maskId,l=n.transform,u=o.width,f=o.icon,d=a.width,h=a.icon,v=PX({transform:l,containerWidth:d,iconWidth:u}),g={tag:"rect",attributes:Le(Le({},d_),{},{fill:"white"})},y=f.children?{children:f.children.map(Gk)}:{},x={tag:"g",attributes:Le({},v.inner),children:[Gk(Le({tag:f.tag,attributes:Le(Le({},f.attributes),v.path)},y))]},_={tag:"g",attributes:Le({},v.outer),children:[x]},b="mask-".concat(s||xh()),w="clip-".concat(s||xh()),S={tag:"mask",attributes:Le(Le({},d_),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,_]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:CQ(h)},S]};return r.push(E,{tag:"rect",attributes:Le({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(b,")")},d_)}),{children:r,attributes:i}}}},jQ={provides:function(t){var n=!1;ts.matchMedia&&(n=ts.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Le(Le({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=Le(Le({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Le(Le({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:Le(Le({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Le(Le({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:Le(Le({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Le(Le({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Le(Le({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Le(Le({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},AQ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},kQ=[jX,vQ,gQ,yQ,bQ,SQ,EQ,PQ,TQ,jQ,AQ];WX(kQ,{mixoutsTo:Gr});Gr.noAuto;Gr.config;Gr.library;Gr.dom;var Lw=Gr.parse;Gr.findIconDefinition;Gr.toHtml;var NQ=Gr.icon;Gr.layer;Gr.text;Gr.counter;var h5={exports:{}},MQ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",RQ=MQ,LQ=RQ;function p5(){}function m5(){}m5.resetWarningCache=p5;var $Q=function(){function e(r,i,o,a,s,l){if(l!==LQ){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:m5,resetWarningCache:p5};return n.PropTypes=n,n};h5.exports=$Q();var IQ=h5.exports;const $=st(IQ);function qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qk(Object(n),!0).forEach(function(r){Nu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ig(e){"@babel/helpers - typeof";return Ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ig(e)}function Nu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function FQ(e,t){if(e==null)return{};var n=DQ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $w(e){return BQ(e)||UQ(e)||zQ(e)||VQ()}function BQ(e){if(Array.isArray(e))return Iw(e)}function UQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zQ(e,t){if(e){if(typeof e=="string")return Iw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iw(e,t)}}function Iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VQ(){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 WQ(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,f=e.spinReverse,d=e.pulse,h=e.fixedWidth,v=e.inverse,g=e.border,y=e.listItem,x=e.flip,_=e.size,b=e.rotation,w=e.pull,S=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":h,"fa-inverse":v,"fa-border":g,"fa-li":y,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Nu(t,"fa-".concat(_),typeof _<"u"&&_!==null),Nu(t,"fa-rotate-".concat(b),typeof b<"u"&&b!==null&&b!==0),Nu(t,"fa-pull-".concat(w),typeof w<"u"&&w!==null),Nu(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(S).map(function(E){return S[E]?E:null}).filter(function(E){return E})}function HQ(e){return e=e-0,e===e}function v5(e){return HQ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var GQ=["style"];function qQ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function KQ(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=v5(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[qQ(i)]=o:t[i]=o,t},{})}function g5(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return g5(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=KQ(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[v5(u)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=FQ(n,GQ);return i.attrs.style=oo(oo({},i.attrs.style),a),e.apply(void 0,[t.tag,oo(oo({},i.attrs),s)].concat($w(r)))}var y5=!1;try{y5=!0}catch{}function YQ(){if(!y5&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Kk(e){if(e&&Ig(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Lw.icon)return Lw.icon(e);if(e===null)return null;if(e&&Ig(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 h_(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Nu({},e,t):{}}var Yk={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},je=V.forwardRef(function(e,t){var n=oo(oo({},Yk),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,u=n.maskId,f=Kk(r),d=h_("classes",[].concat($w(WQ(n)),$w((a||"").split(" ")))),h=h_("transform",typeof n.transform=="string"?Lw.transform(n.transform):n.transform),v=h_("mask",Kk(i)),g=NQ(f,oo(oo(oo(oo({},d),h),v),{},{symbol:o,title:s,titleId:l,maskId:u}));if(!g)return YQ("Could not find icon",f),null;var y=g.abstract,x={ref:t};return Object.keys(n).forEach(function(_){Yk.hasOwnProperty(_)||(x[_]=n[_])}),ZQ(y[0],x)});je.displayName="FontAwesomeIcon";je.propTypes={beat:$.bool,border:$.bool,beatFade:$.bool,bounce:$.bool,className:$.string,fade:$.bool,flash:$.bool,mask:$.oneOfType([$.object,$.array,$.string]),maskId:$.string,fixedWidth:$.bool,inverse:$.bool,flip:$.oneOf([!0,!1,"horizontal","vertical","both"]),icon:$.oneOfType([$.object,$.array,$.string]),listItem:$.bool,pull:$.oneOf(["right","left"]),pulse:$.bool,rotation:$.oneOf([0,90,180,270]),shake:$.bool,size:$.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:$.bool,spinPulse:$.bool,spinReverse:$.bool,symbol:$.oneOfType([$.bool,$.string]),title:$.string,titleId:$.string,transform:$.oneOfType([$.string,$.object]),swapOpacity:$.bool};var ZQ=g5.bind(null,V.createElement);function b5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=b5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=b5(e))&&(r&&(r+=" "),r+=t);return r}var _5={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(_5);var XQ=_5.exports;const Ge=st(XQ);function ac(e){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ac(e)}function QQ(){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 x5(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function JQ(){return document.body.clientWidth<window.innerWidth}function eJ(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function tJ(){var e=QQ(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;JQ()&&x5(n+e)}var nJ;function Ue(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nJ;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ps(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function w5(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var Zk={};function Dw(e){Zk[e]||(typeof console<"u"&&console.error(e),Zk[e]=!0)}function O5(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&Dw('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
|
||
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return e.apply(void 0,[r,i,o].concat(s))}}var rJ=(typeof window>"u"?"undefined":ac(window))==="object"&&window.Element||function(){};function EP(e,t,n){if(!(e[t]instanceof rJ))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var sc=$.oneOfType([$.string,$.func,EP,$.shape({current:$.any})]),at=$.oneOfType([$.func,$.string,$.shape({$$typeof:$.symbol,render:$.func}),$.arrayOf($.oneOfType([$.func,$.string,$.shape({$$typeof:$.symbol,render:$.func})]))]),Dg={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Fg=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],ev={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},mt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},iJ=["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"],PP=!!(typeof window<"u"&&window.document&&window.document.createElement);function oJ(e){return e&&ac(e)==="object"?"current"in e:!1}function S5(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Fw(e){var t=ac(e);return e!=null&&(t==="object"||t==="function")}function Xk(e){var t=ac(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&S5(e)==="[object Symbol]")return n;if(Fw(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Fw(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function aJ(e){if(!Fw(e))return!1;var t=S5(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function sJ(e){if(oJ(e))return e.current;if(aJ(e))return e();if(typeof e=="string"&&PP){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 Qk(e){return e===null?!1:Array.isArray(e)||PP&&typeof e.length=="number"}function wh(e,t){var n=sJ(e);return t?Qk(n)?n:n===null?[]:[n]:Qk(n)?n[0]:n}var lJ=["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"])'],uJ=["className","cssModule","noGutters","tag","widths"];function Bw(){return Bw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bw.apply(this,arguments)}function cJ(e,t){if(e==null)return{};var n=fJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dJ=["xs","sm","md","lg","xl","xxl"],Jl=$.oneOfType([$.number,$.string]),hJ={tag:at,noGutters:O5($.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:$.string,cssModule:$.object,xs:Jl,sm:Jl,md:Jl,lg:Jl,xl:Jl,xxl:Jl,widths:$.array};function nr(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?dJ:a,l=cJ(e,uJ),u=[];s.forEach(function(d,h){var v=e[d];if(delete l[d],!!v){var g=!h;u.push(g?"row-cols-".concat(v):"row-cols-".concat(d,"-").concat(v))}});var f=Ue(Ge(t,r?"gx-0":null,"row",u),n);return V.createElement(o,Bw({},l,{className:f}))}nr.propTypes=hJ;var pJ=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uw.apply(this,arguments)}function p_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mJ(e,t){if(e==null)return{};var n=vJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var gJ={children:$.node,className:$.string,color:$.string,container:$.oneOfType([$.bool,$.string]),cssModule:$.object,dark:$.bool,expand:$.oneOfType([$.bool,$.string]),fixed:$.string,light:$.bool,role:$.string,sticky:$.string,tag:at},yJ=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function E5(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,l=e.fixed,u=e.sticky,f=e.color,d=e.container,h=d===void 0?"fluid":d,v=e.tag,g=v===void 0?"nav":v,y=e.children,x=mJ(e,pJ),_=Ue(Ge(i,"navbar",yJ(r),(t={"navbar-light":a,"navbar-dark":s},p_(t,"bg-".concat(f),f),p_(t,"fixed-".concat(l),l),p_(t,"sticky-".concat(u),u),t)),o),b=h&&h===!0?"container":"container-".concat(h);return V.createElement(g,Uw({},x,{className:_}),h?V.createElement("div",{className:b},y):y)}E5.propTypes=gJ;var bJ=["className","cssModule","tag"];function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}function _J(e,t){if(e==null)return{};var n=xJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var wJ={className:$.string,cssModule:$.object,tag:at};function P5(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=_J(e,bJ),a=Ue(Ge(t,"navbar-brand"),n);return V.createElement(i,zw({},o,{className:a}))}P5.propTypes=wJ;var OJ=["className","cssModule","children","tag"];function Vw(){return Vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vw.apply(this,arguments)}function Jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jk(Object(n),!0).forEach(function(r){EJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PJ(e,t){if(e==null)return{};var n=CJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var TJ={className:$.string,cssModule:$.object,tag:at,type:$.string,children:$.node};function C5(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=PJ(e,OJ),s=Ue(Ge(t,"navbar-toggler"),n);return V.createElement(o,Vw({"aria-label":"Toggle navigation"},SJ({type:"button"},a),{className:s}),r||V.createElement("span",{className:Ue("navbar-toggler-icon",n)}))}C5.propTypes=TJ;var jJ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ww.apply(this,arguments)}function AJ(e,t){if(e==null)return{};var n=kJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var NJ={card:$.bool,className:$.string,cssModule:$.object,fill:$.bool,horizontal:$.oneOf(["center","end"]),justified:$.bool,navbar:$.bool,pills:$.bool,tabs:$.bool,tag:at,vertical:$.oneOfType([$.bool,$.string])},MJ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function CP(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,l=e.justified,u=e.fill,f=e.navbar,d=e.card,h=e.tag,v=h===void 0?"ul":h,g=AJ(e,jJ),y=Ue(Ge(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,MJ(a),{"nav-tabs":r,"card-header-tabs":d&&r,"nav-pills":i,"card-header-pills":d&&i,"nav-justified":l,"nav-fill":u}),n);return V.createElement(v,Ww({},g,{className:y}))}CP.propTypes=NJ;var RJ=["className","cssModule","active","tag"];function Hw(){return Hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hw.apply(this,arguments)}function LJ(e,t){if(e==null)return{};var n=$J(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $J(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var IJ={active:$.bool,className:$.string,cssModule:$.object,tag:at};function TP(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=LJ(e,RJ),s=Ue(Ge(t,"nav-item",r?"active":!1),n);return V.createElement(o,Hw({},a,{className:s}))}TP.propTypes=IJ;function Gw(e){"@babel/helpers - typeof";return Gw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gw(e)}var DJ=["className","cssModule","active","tag","innerRef"];function qw(){return qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qw.apply(this,arguments)}function FJ(e,t){if(e==null)return{};var n=BJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function UJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zJ(e,t,n){return t&&e3(e.prototype,t),n&&e3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VJ(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&&Kw(e,t)}function Kw(e,t){return Kw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kw(e,t)}function WJ(e){var t=GJ();return function(){var r=Bg(e),i;if(t){var o=Bg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return HJ(this,i)}}function HJ(e,t){if(t&&(Gw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T5(e)}function T5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GJ(){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(n){return n.__proto__||Object.getPrototypeOf(n)},Bg(e)}var qJ={active:$.bool,className:$.string,cssModule:$.object,disabled:$.bool,href:$.any,innerRef:$.oneOfType([$.object,$.func,$.string]),onClick:$.func,tag:at},j5=function(e){VJ(n,e);var t=WJ(n);function n(r){var i;return UJ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(T5(i)),i}return zJ(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.active,l=i.tag,u=l===void 0?"a":l,f=i.innerRef,d=FJ(i,DJ),h=Ue(Ge(o,"nav-link",{disabled:d.disabled,active:s}),a);return V.createElement(u,qw({},d,{ref:f,onClick:this.onClick,className:h}))}}]),n}(V.Component);j5.propTypes=qJ;const A5=j5;var KJ=["className","cssModule","variant","innerRef"];function Yw(){return Yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yw.apply(this,arguments)}function t3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t3(Object(n),!0).forEach(function(r){ZJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XJ(e,t){if(e==null)return{};var n=QJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var JJ={active:$.bool,"aria-label":$.string,onClick:$.func,variant:$.oneOf(["white"]),className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func])};function k5(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=XJ(e,KJ),o=Ue(Ge(t,"btn-close",n&&"btn-close-".concat(n)));return V.createElement("button",Yw({ref:r,type:"button",className:o},YJ({"aria-label":"close"},i)))}k5.propTypes=JJ;var eee=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zw.apply(this,arguments)}function tee(e,t){if(e==null)return{};var n=nee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ree={active:$.bool,"aria-label":$.string,block:$.bool,children:$.node,className:$.string,cssModule:$.object,close:$.bool,color:$.string,disabled:$.bool,innerRef:$.oneOfType([$.object,$.func,$.string]),onClick:$.func,outline:$.bool,size:$.string,tag:at};function Ye(e){var t=R.useCallback(function(b){if(e.disabled){b.preventDefault();return}if(e.onClick)return e.onClick(b)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,u=l===void 0?"secondary":l,f=e.outline,d=e.size,h=e.tag,v=h===void 0?"button":h,g=e.innerRef,y=tee(e,eee);if(a)return V.createElement(k5,y);var x="btn".concat(f?"-outline":"","-").concat(u),_=Ue(Ge(o,"btn",x,d?"btn-".concat(d):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return y.href&&v==="button"&&(v="a"),V.createElement(v,Zw({type:v==="button"&&y.onClick?"button":void 0},y,{className:_,ref:g,onClick:t,"aria-label":r}))}Ye.propTypes=ree;var N5=R.createContext(),M5=R.createContext();function n3(e){var t=e.children,n=R.useState(null),r=n[0],i=n[1],o=R.useRef(!1);R.useEffect(function(){return function(){o.current=!0}},[]);var a=R.useCallback(function(s){o.current||i(s)},[]);return R.createElement(N5.Provider,{value:r},R.createElement(M5.Provider,{value:a},t))}var R5=function(t){return Array.isArray(t)?t[0]:t},L5=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},Xw=function(t,n){if(typeof t=="function")return L5(t,n);t!=null&&(t.current=n)},r3=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},i3=typeof window<"u"&&window.document&&window.document.createElement?R.useLayoutEffect:R.useEffect,xr="top",vi="bottom",gi="right",wr="left",jP="auto",kp=[xr,vi,gi,wr],lc="start",Oh="end",iee="clippingParents",$5="viewport",Wf="popper",oee="reference",o3=kp.reduce(function(e,t){return e.concat([t+"-"+lc,t+"-"+Oh])},[]),I5=[].concat(kp,[jP]).reduce(function(e,t){return e.concat([t,t+"-"+lc,t+"-"+Oh])},[]),aee="beforeRead",see="read",lee="afterRead",uee="beforeMain",cee="main",fee="afterMain",dee="beforeWrite",hee="write",pee="afterWrite",mee=[aee,see,lee,uee,cee,fee,dee,hee,pee];function _o(e){return e?(e.nodeName||"").toLowerCase():null}function Ur(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ol(e){var t=Ur(e).Element;return e instanceof t||e instanceof Element}function di(e){var t=Ur(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function AP(e){if(typeof ShadowRoot>"u")return!1;var t=Ur(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vee(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!di(o)||!_o(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function gee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!di(i)||!_o(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const yee={name:"applyStyles",enabled:!0,phase:"write",fn:vee,effect:gee,requires:["computeStyles"]};function mo(e){return e.split("-")[0]}var ll=Math.max,Ug=Math.min,uc=Math.round;function Qw(){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 D5(){return!/^((?!chrome|android).)*safari/i.test(Qw())}function cc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&di(e)&&(i=e.offsetWidth>0&&uc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uc(r.height)/e.offsetHeight||1);var a=Ol(e)?Ur(e):window,s=a.visualViewport,l=!D5()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,h=r.height/o;return{width:d,height:h,top:f,right:u+d,bottom:f+h,left:u,x:u,y:f}}function kP(e){var t=cc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&AP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jo(e){return Ur(e).getComputedStyle(e)}function bee(e){return["table","td","th"].indexOf(_o(e))>=0}function ms(e){return((Ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function Q0(e){return _o(e)==="html"?e:e.assignedSlot||e.parentNode||(AP(e)?e.host:null)||ms(e)}function a3(e){return!di(e)||Jo(e).position==="fixed"?null:e.offsetParent}function _ee(e){var t=/firefox/i.test(Qw()),n=/Trident/i.test(Qw());if(n&&di(e)){var r=Jo(e);if(r.position==="fixed")return null}var i=Q0(e);for(AP(i)&&(i=i.host);di(i)&&["html","body"].indexOf(_o(i))<0;){var o=Jo(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 Np(e){for(var t=Ur(e),n=a3(e);n&&bee(n)&&Jo(n).position==="static";)n=a3(n);return n&&(_o(n)==="html"||_o(n)==="body"&&Jo(n).position==="static")?t:n||_ee(e)||t}function NP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nd(e,t,n){return ll(e,Ug(t,n))}function xee(e,t,n){var r=Nd(e,t,n);return r>n?n:r}function B5(){return{top:0,right:0,bottom:0,left:0}}function U5(e){return Object.assign({},B5(),e)}function z5(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,U5(typeof t!="number"?t:z5(t,kp))};function Oee(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mo(n.placement),l=NP(s),u=[wr,gi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=wee(i.padding,n),h=kP(o),v=l==="y"?xr:wr,g=l==="y"?vi:gi,y=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],x=a[l]-n.rects.reference[l],_=Np(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,w=y/2-x/2,S=d[v],E=b-h[f]-d[g],P=b/2-h[f]/2+w,T=Nd(S,P,E),A=l;n.modifiersData[r]=(t={},t[A]=T,t.centerOffset=T-P,t)}}function See(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||F5(t.elements.popper,i)&&(t.elements.arrow=i))}const Eee={name:"arrow",enabled:!0,phase:"main",fn:Oee,effect:See,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fc(e){return e.split("-")[1]}var Pee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cee(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:uc(n*i)/i||0,y:uc(r*i)/i||0}}function s3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,h=a.x,v=h===void 0?0:h,g=a.y,y=g===void 0?0:g,x=typeof f=="function"?f({x:v,y}):{x:v,y};v=x.x,y=x.y;var _=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=wr,S=xr,E=window;if(u){var P=Np(n),T="clientHeight",A="clientWidth";if(P===Ur(n)&&(P=ms(n),Jo(P).position!=="static"&&s==="absolute"&&(T="scrollHeight",A="scrollWidth")),P=P,i===xr||(i===wr||i===gi)&&o===Oh){S=vi;var D=d&&P===E&&E.visualViewport?E.visualViewport.height:P[T];y-=D-r.height,y*=l?1:-1}if(i===wr||(i===xr||i===vi)&&o===Oh){w=gi;var k=d&&P===E&&E.visualViewport?E.visualViewport.width:P[A];v-=k-r.width,v*=l?1:-1}}var I=Object.assign({position:s},u&&Pee),F=f===!0?Cee({x:v,y},Ur(n)):{x:v,y};if(v=F.x,y=F.y,l){var q;return Object.assign({},I,(q={},q[S]=b?"0":"",q[w]=_?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",q))}return Object.assign({},I,(t={},t[S]=b?y+"px":"",t[w]=_?v+"px":"",t.transform="",t))}function Tee(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:mo(t.placement),variation:fc(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,s3(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,s3(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Tee,data:{}};var tv={passive:!0};function Aee(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Ur(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,tv)}),s&&l.addEventListener("resize",n.update,tv),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,tv)}),s&&l.removeEventListener("resize",n.update,tv)}}const kee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Aee,data:{}};var Nee={left:"right",right:"left",bottom:"top",top:"bottom"};function Gv(e){return e.replace(/left|right|bottom|top/g,function(t){return Nee[t]})}var Mee={start:"end",end:"start"};function l3(e){return e.replace(/start|end/g,function(t){return Mee[t]})}function MP(e){var t=Ur(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function RP(e){return cc(ms(e)).left+MP(e).scrollLeft}function Ree(e,t){var n=Ur(e),r=ms(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=D5();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+RP(e),y:l}}function Lee(e){var t,n=ms(e),r=MP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ll(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ll(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+RP(e),l=-r.scrollTop;return Jo(i||n).direction==="rtl"&&(s+=ll(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function LP(e){var t=Jo(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function V5(e){return["html","body","#document"].indexOf(_o(e))>=0?e.ownerDocument.body:di(e)&&LP(e)?e:V5(Q0(e))}function Md(e,t){var n;t===void 0&&(t=[]);var r=V5(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ur(r),a=i?[o].concat(o.visualViewport||[],LP(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Md(Q0(a)))}function Jw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $ee(e,t){var n=cc(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function u3(e,t,n){return t===$5?Jw(Ree(e,n)):Ol(t)?$ee(t,n):Jw(Lee(ms(e)))}function Iee(e){var t=Md(Q0(e)),n=["absolute","fixed"].indexOf(Jo(e).position)>=0,r=n&&di(e)?Np(e):e;return Ol(r)?t.filter(function(i){return Ol(i)&&F5(i,r)&&_o(i)!=="body"}):[]}function Dee(e,t,n,r){var i=t==="clippingParents"?Iee(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=u3(e,u,r);return l.top=ll(f.top,l.top),l.right=Ug(f.right,l.right),l.bottom=Ug(f.bottom,l.bottom),l.left=ll(f.left,l.left),l},u3(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function W5(e){var t=e.reference,n=e.element,r=e.placement,i=r?mo(r):null,o=r?fc(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case xr:l={x:a,y:t.y-n.height};break;case vi:l={x:a,y:t.y+t.height};break;case gi:l={x:t.x+t.width,y:s};break;case wr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?NP(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case lc:l[u]=l[u]-(t[f]/2-n[f]/2);break;case Oh:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function Sh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?iee:s,u=n.rootBoundary,f=u===void 0?$5:u,d=n.elementContext,h=d===void 0?Wf:d,v=n.altBoundary,g=v===void 0?!1:v,y=n.padding,x=y===void 0?0:y,_=U5(typeof x!="number"?x:z5(x,kp)),b=h===Wf?oee:Wf,w=e.rects.popper,S=e.elements[g?b:h],E=Dee(Ol(S)?S:S.contextElement||ms(e.elements.popper),l,f,a),P=cc(e.elements.reference),T=W5({reference:P,element:w,strategy:"absolute",placement:i}),A=Jw(Object.assign({},w,T)),D=h===Wf?A:P,k={top:E.top-D.top+_.top,bottom:D.bottom-E.bottom+_.bottom,left:E.left-D.left+_.left,right:D.right-E.right+_.right},I=e.modifiersData.offset;if(h===Wf&&I){var F=I[i];Object.keys(k).forEach(function(q){var W=[gi,vi].indexOf(q)>=0?1:-1,X=[xr,vi].indexOf(q)>=0?"y":"x";k[q]+=F[X]*W})}return k}function Fee(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?I5:l,f=fc(r),d=f?s?o3:o3.filter(function(g){return fc(g)===f}):kp,h=d.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=d);var v=h.reduce(function(g,y){return g[y]=Sh(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[mo(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function Bee(e){if(mo(e)===jP)return[];var t=Gv(e);return[l3(e),t,l3(t)]}function Uee(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,h=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,y=n.allowedAutoPlacements,x=t.options.placement,_=mo(x),b=_===x,w=l||(b||!g?[Gv(x)]:Bee(x)),S=[x].concat(w).reduce(function(te,ie){return te.concat(mo(ie)===jP?Fee(t,{placement:ie,boundary:f,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:y}):ie)},[]),E=t.rects.reference,P=t.rects.popper,T=new Map,A=!0,D=S[0],k=0;k<S.length;k++){var I=S[k],F=mo(I),q=fc(I)===lc,W=[xr,vi].indexOf(F)>=0,X=W?"width":"height",Q=Sh(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:h,padding:u}),ne=W?q?gi:wr:q?vi:xr;E[X]>P[X]&&(ne=Gv(ne));var Z=Gv(ne),z=[];if(o&&z.push(Q[F]<=0),s&&z.push(Q[ne]<=0,Q[Z]<=0),z.every(function(te){return te})){D=I,A=!1;break}T.set(I,z)}if(A)for(var B=g?3:1,H=function(ie){var ae=S.find(function(fe){var j=T.get(fe);if(j)return j.slice(0,ie).every(function(N){return N})});if(ae)return D=ae,"break"},ee=B;ee>0;ee--){var K=H(ee);if(K==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const zee={name:"flip",enabled:!0,phase:"main",fn:Uee,requiresIfExists:["offset"],data:{_skip:!1}};function c3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function f3(e){return[xr,gi,vi,wr].some(function(t){return e[t]>=0})}function Vee(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Sh(t,{elementContext:"reference"}),s=Sh(t,{altBoundary:!0}),l=c3(a,r),u=c3(s,i,o),f=f3(l),d=f3(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const Wee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vee};function Hee(e,t,n){var r=mo(e),i=[wr,xr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[wr,gi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Gee(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=I5.reduce(function(f,d){return f[d]=Hee(d,t.rects,o),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const qee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Gee};function Kee(e){var t=e.state,n=e.name;t.modifiersData[n]=W5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Yee={name:"popperOffsets",enabled:!0,phase:"read",fn:Kee,data:{}};function Zee(e){return e==="x"?"y":"x"}function Xee(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.padding,h=n.tether,v=h===void 0?!0:h,g=n.tetherOffset,y=g===void 0?0:g,x=Sh(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),_=mo(t.placement),b=fc(t.placement),w=!b,S=NP(_),E=Zee(S),P=t.modifiersData.popperOffsets,T=t.rects.reference,A=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,k=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(P){if(o){var q,W=S==="y"?xr:wr,X=S==="y"?vi:gi,Q=S==="y"?"height":"width",ne=P[S],Z=ne+x[W],z=ne-x[X],B=v?-A[Q]/2:0,H=b===lc?T[Q]:A[Q],ee=b===lc?-A[Q]:-T[Q],K=t.elements.arrow,te=v&&K?kP(K):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:B5(),ae=ie[W],fe=ie[X],j=Nd(0,T[Q],te[Q]),N=w?T[Q]/2-B-j-ae-k.mainAxis:H-j-ae-k.mainAxis,U=w?-T[Q]/2+B+j+fe+k.mainAxis:ee+j+fe+k.mainAxis,J=t.elements.arrow&&Np(t.elements.arrow),Y=J?S==="y"?J.clientTop||0:J.clientLeft||0:0,oe=(q=I==null?void 0:I[S])!=null?q:0,he=ne+N-oe-Y,Se=ne+U-oe,se=Nd(v?Ug(Z,he):Z,ne,v?ll(z,Se):z);P[S]=se,F[S]=se-ne}if(s){var pe,me=S==="x"?xr:wr,xe=S==="x"?vi:gi,Te=P[E],Ce=E==="y"?"height":"width",Ae=Te+x[me],le=Te-x[xe],ce=[xr,wr].indexOf(_)!==-1,ye=(pe=I==null?void 0:I[E])!=null?pe:0,ge=ce?Ae:Te-T[Ce]-A[Ce]-ye+k.altAxis,we=ce?Te+T[Ce]+A[Ce]-ye-k.altAxis:le,ke=v&&ce?xee(ge,Te,we):Nd(v?ge:Ae,Te,v?we:le);P[E]=ke,F[E]=ke-Te}t.modifiersData[r]=F}}const Qee={name:"preventOverflow",enabled:!0,phase:"main",fn:Xee,requiresIfExists:["offset"]};function Jee(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ete(e){return e===Ur(e)||!di(e)?MP(e):Jee(e)}function tte(e){var t=e.getBoundingClientRect(),n=uc(t.width)/e.offsetWidth||1,r=uc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nte(e,t,n){n===void 0&&(n=!1);var r=di(t),i=di(t)&&tte(t),o=ms(t),a=cc(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((_o(t)!=="body"||LP(o))&&(s=ete(t)),di(t)?(l=cc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=RP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function rte(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function ite(e){var t=rte(e);return mee.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function ote(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ate(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var d3={placement:"bottom",modifiers:[],strategy:"absolute"};function h3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ste(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?d3:i;return function(s,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},d3,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],h=!1,v={state:f,setOptions:function(_){var b=typeof _=="function"?_(f.options):_;y(),f.options=Object.assign({},o,f.options,b),f.scrollParents={reference:Ol(s)?Md(s):s.contextElement?Md(s.contextElement):[],popper:Md(l)};var w=ite(ate([].concat(r,f.options.modifiers)));return f.orderedModifiers=w.filter(function(S){return S.enabled}),g(),v.update()},forceUpdate:function(){if(!h){var _=f.elements,b=_.reference,w=_.popper;if(h3(b,w)){f.rects={reference:nte(b,Np(w),f.options.strategy==="fixed"),popper:kP(w)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(k){return f.modifiersData[k.name]=Object.assign({},k.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var E=f.orderedModifiers[S],P=E.fn,T=E.options,A=T===void 0?{}:T,D=E.name;typeof P=="function"&&(f=P({state:f,options:A,name:D,instance:v})||f)}}}},update:ote(function(){return new Promise(function(x){v.forceUpdate(),x(f)})}),destroy:function(){y(),h=!0}};if(!h3(s,l))return v;v.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function g(){f.orderedModifiers.forEach(function(x){var _=x.name,b=x.options,w=b===void 0?{}:b,S=x.effect;if(typeof S=="function"){var E=S({state:f,name:_,instance:v,options:w}),P=function(){};d.push(E||P)}})}function y(){d.forEach(function(x){return x()}),d=[]}return v}}var lte=[kee,Yee,jee,yee,qee,zee,Qee,Eee,Wee],ute=ste({defaultModifiers:lte}),cte=typeof Element<"u",fte=typeof Map=="function",dte=typeof Set=="function",hte=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function qv(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!qv(e[r],t[r]))return!1;return!0}var o;if(fte&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!qv(r.value[1],t.get(r.value[0])))return!1;return!0}if(dte&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(hte&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(cte&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!qv(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var pte=function(t,n){try{return qv(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const mte=st(pte);var vte=[],gte=function(t,n,r){r===void 0&&(r={});var i=R.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||vte},a=R.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],u=R.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var g=v.state,y=Object.keys(g.elements);U0.flushSync(function(){l({styles:r3(y.map(function(x){return[x,g.styles[x]||{}]})),attributes:r3(y.map(function(x){return[x,g.attributes[x]]}))})})},requires:["computeStyles"]}},[]),f=R.useMemo(function(){var h={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return mte(i.current,h)?i.current||h:(i.current=h,h)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),d=R.useRef();return i3(function(){d.current&&d.current.setOptions(f)},[f]),i3(function(){if(!(t==null||n==null)){var h=r.createPopper||ute,v=h(t,n,f);return d.current=v,function(){v.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},yte=function(){},bte=function(){return Promise.resolve(null)},_te=[];function H5(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?_te:o,s=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,d=R.useContext(N5),h=R.useState(null),v=h[0],g=h[1],y=R.useState(null),x=y[0],_=y[1];R.useEffect(function(){Xw(u,v)},[u,v]);var b=R.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,a,x]),w=gte(s||d,v,b),S=w.state,E=w.styles,P=w.forceUpdate,T=w.update,A=R.useMemo(function(){return{ref:g,style:E.popper,placement:S?S.placement:n,hasPopperEscaped:S&&S.modifiersData.hide?S.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:S&&S.modifiersData.hide?S.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:E.arrow,ref:_},forceUpdate:P||yte,update:T||bte}},[g,_,n,S,E,T,P]);return R5(f)(A)}var xte=function(){},wte=xte;const Ote=st(wte);function Ste(e){var t=e.children,n=e.innerRef,r=R.useContext(M5),i=R.useCallback(function(o){Xw(n,o),L5(r,o)},[n,r]);return R.useEffect(function(){return function(){return Xw(n,null)}},[]),R.useEffect(function(){Ote(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),R5(t)({ref:i})}var Eh=V.createContext({}),G5=V.createContext({});function e2(e){"@babel/helpers - typeof";return e2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e2(e)}var Ete=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function t2(){return t2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t2.apply(this,arguments)}function ya(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pte(e,t){if(e==null)return{};var n=Cte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jte(e,t,n){return t&&p3(e.prototype,t),n&&p3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ate(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n2(e,t)}function n2(e,t){return n2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},n2(e,t)}function kte(e){var t=Mte();return function(){var r=zg(e),i;if(t){var o=zg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Nte(this,i)}}function Nte(e,t){if(t&&(e2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _a(e)}function _a(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mte(){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(n){return n.__proto__||Object.getPrototypeOf(n)},zg(e)}var Rte={a11y:$.bool,disabled:$.bool,direction:$.oneOf(["up","down","start","end","left","right"]),group:$.bool,isOpen:$.bool,nav:$.bool,active:$.bool,size:$.string,tag:at,toggle:$.func,children:$.node,className:$.string,cssModule:$.object,dropup:$.bool,inNavbar:$.bool,setActiveFromChild:$.bool,menuRole:$.oneOf(["listbox","menu"])},Lte={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},$te=[mt.space,mt.enter,mt.up,mt.down,mt.end,mt.home],J0=function(e){Ate(n,e);var t=kte(n);function n(r){var i;return Tte(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(_a(i)),i.handleDocumentClick=i.handleDocumentClick.bind(_a(i)),i.handleKeyDown=i.handleKeyDown.bind(_a(i)),i.removeEvents=i.removeEvents.bind(_a(i)),i.toggle=i.toggle.bind(_a(i)),i.handleMenuRef=i.handleMenuRef.bind(_a(i)),i.handleToggleRef=i.handleToggleRef.bind(_a(i)),i.containerRef=V.createRef(),i.menuRef=V.createRef(),i.toggleRef=V.createRef(),i}return jte(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==mt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var l=s.contains(i.target),u=a&&a.contains(i.target)&&a!==i.target,f=!1;o&&(f=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((l&&!f||u)&&(i.type!=="keyup"||i.which===mt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,l=mt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&(($te.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([mt.space,mt.enter,mt.up,mt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var b;return(b=o.getMenuItems()[0])===null||b===void 0?void 0:b.focus()});else if(this.props.isOpen&&l){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===mt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([mt.tab,mt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([mt.space,mt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([mt.down,mt.up].indexOf(i.which)>-1||[mt.n,mt.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),d=f.indexOf(i.target);mt.up===i.which||mt.p===i.which&&i.ctrlKey?d=d!==0?d-1:f.length-1:(mt.down===i.which||mt.n===i.which&&i.ctrlKey)&&(d=d===f.length-1?0:d+1),f[d].focus()}else if(mt.end===i.which){var h=this.getMenuItems();h[h.length-1].focus()}else if(mt.home===i.which){var v=this.getMenuItems();v[0].focus()}else if(i.which>=48&&i.which<=90)for(var g=this.getMenuItems(),y=String.fromCharCode(i.which).toLowerCase(),x=0;x<g.length;x+=1){var _=g[x].textContent&&g[x].textContent[0].toLowerCase();if(_===y){g[x].focus();break}}}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}},{key:"getItemType",value:function(){return this.props.menuRole==="listbox"?"option":"menuitem"}},{key:"getMenuItems",value:function(){var i=this.getMenu()||this.getContainer();return[].slice.call(i.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.addEventListener(o,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.removeEventListener(o,i.handleDocumentClick,!0)})}},{key:"toggle",value:function(i){return this.props.disabled?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i,o=this,a=ps(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,l=a.cssModule,u=a.direction,f=a.isOpen,d=a.group,h=a.size,v=a.nav,g=a.setActiveFromChild,y=a.active,x=a.tag;a.menuRole;var _=Pte(a,Ete),b=x||(v?"li":"div"),w=!1;g&&V.Children.map(this.props.children[1].props.children,function(E){E&&E.props.active&&(w=!0)});var S=Ue(Ge(s,v&&y?"active":!1,g&&w?"active":!1,(i={"btn-group":d},ya(i,"btn-group-".concat(h),!!h),ya(i,"dropdown",!d),ya(i,"dropup",u==="up"),ya(i,"dropstart",u==="start"||u==="left"),ya(i,"dropend",u==="end"||u==="right"),ya(i,"show",f),ya(i,"nav-item",v),i)),l);return this.context.insideInputGroup?V.createElement(Eh.Provider,{value:this.getContextValue()},V.createElement(n3,null,V.Children.map(this.props.children,function(E){return V.cloneElement(E,{onKeyDown:o.handleKeyDown})}))):V.createElement(Eh.Provider,{value:this.getContextValue()},V.createElement(n3,null,V.createElement(b,t2({},_,ya({},typeof b=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:S}))))}}]),n}(V.Component);J0.propTypes=Rte;J0.defaultProps=Lte;J0.contextType=G5;const Mp=J0;function r2(e){"@babel/helpers - typeof";return r2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r2(e)}var Ite=["className","cssModule","divider","tag","header","active","text"];function i2(){return i2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i2.apply(this,arguments)}function Dte(e,t){if(e==null)return{};var n=Fte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Bte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ute(e,t,n){return t&&m3(e.prototype,t),n&&m3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zte(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&&o2(e,t)}function o2(e,t){return o2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o2(e,t)}function Vte(e){var t=Hte();return function(){var r=Vg(e),i;if(t){var o=Vg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Wte(this,i)}}function Wte(e,t){if(t&&(r2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a2(e)}function a2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hte(){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(n){return n.__proto__||Object.getPrototypeOf(n)},Vg(e)}var Gte={children:$.node,active:$.bool,disabled:$.bool,divider:$.bool,tag:at,header:$.bool,onClick:$.func,className:$.string,cssModule:$.object,toggle:$.bool,text:$.bool},$P=function(e){zte(n,e);var t=Vte(n);function n(r){var i;return Bte(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(a2(i)),i.getTabIndex=i.getTabIndex.bind(a2(i)),i}return Ute(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,l=a.header,u=a.divider,f=a.text;if(s||l||u||f){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,l=i.text;return o||a||s||l?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=ps(this.props,["toggle"]),s=a.className,l=a.cssModule,u=a.divider,f=a.tag,d=f===void 0?"button":f,h=a.header,v=a.active,g=a.text,y=Dte(a,Ite),x=Ue(Ge(s,{disabled:y.disabled,"dropdown-item":!u&&!h&&!g,active:v,"dropdown-header":h,"dropdown-divider":u,"dropdown-item-text":g}),l);return d==="button"&&(h?d="h6":u?d="div":y.href?d="a":g&&(d="span")),V.createElement(d,i2({type:d==="button"&&(y.onClick||this.props.toggle)?"button":void 0},y,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(V.Component);$P.propTypes=Gte;$P.contextType=Eh;const Ne=$P;function s2(e){"@babel/helpers - typeof";return s2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s2(e)}var qte=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wg.apply(this,arguments)}function v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function m_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(n),!0).forEach(function(r){Kte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yte(e){return Jte(e)||Qte(e)||Xte(e)||Zte()}function Zte(){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 Xte(e,t){if(e){if(typeof e=="string")return l2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l2(e,t)}}function Qte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jte(e){if(Array.isArray(e))return l2(e)}function l2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ene(e,t){if(e==null)return{};var n=tne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function nne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rne(e,t,n){return t&&g3(e.prototype,t),n&&g3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ine(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u2(e,t)}function u2(e,t){return u2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u2(e,t)}function one(e){var t=lne();return function(){var r=Hg(e),i;if(t){var o=Hg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ane(this,i)}}function ane(e,t){if(t&&(s2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sne(e)}function sne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lne(){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(n){return n.__proto__||Object.getPrototypeOf(n)},Hg(e)}var une={tag:at,children:$.node.isRequired,dark:$.bool,end:$.bool,flip:$.bool,modifiers:$.array,className:$.string,cssModule:$.object,style:$.object,persist:$.bool,strategy:$.string,container:sc,updateOnSelect:$.bool,right:O5($.bool,'Please use "end" instead.')},cne={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},IP=function(e){ine(n,e);var t=one(n);function n(){return nne(this,n),t.apply(this,arguments)}return rne(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,l=o.dark,u=o.end,f=o.right,d=o.tag,h=d===void 0?"div":d,v=o.flip,g=v===void 0?!0:v,y=o.modifiers,x=y===void 0?[]:y,_=o.persist,b=o.strategy,w=o.container,S=o.updateOnSelect,E=ene(o,qte),P=Ue(Ge(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":u||f,show:this.context.isOpen}),s),T=h;if(_||this.context.isOpen&&!this.context.inNavbar){var A=cne[this.context.direction]||"bottom",D=u||f?"end":"start",k="".concat(A,"-").concat(D),I=[].concat(Yte(x),[{name:"flip",enabled:!!g}]),F={};_&&(F.display="block",F.visibility=this.context.isOpen?"visible":"hidden");var q=V.createElement(H5,{placement:k,modifiers:I,strategy:b},function(X){var Q=X.ref,ne=X.style,Z=X.placement,z=X.update,B=m_(m_(m_({},i.props.style),F),ne),H=function(K){Q(K);var te=i.context.onMenuRef;te&&te(K)};return V.createElement(T,Wg({tabIndex:"-1",role:i.getRole(),ref:H},E,{style:B,"aria-hidden":!i.context.isOpen,className:P,"data-popper-placement":Z,onClick:function(){return S&&z()}}))});return w?Qs.createPortal(q,wh(w)):q}var W=this.context.onMenuRef;return V.createElement(T,Wg({tabIndex:"-1",role:this.getRole()},E,{ref:W,"aria-hidden":!this.context.isOpen,className:P,"data-popper-placement":E.placement,"data-bs-popper":"static"}))}}]),n}(V.Component);IP.propTypes=une;IP.contextType=Eh;const Kc=IP;function c2(e){"@babel/helpers - typeof";return c2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c2(e)}var fne=["className","color","cssModule","caret","split","nav","tag","innerRef"];function f2(){return f2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f2.apply(this,arguments)}function dne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hne(e,t){if(e==null)return{};var n=pne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vne(e,t,n){return t&&y3(e.prototype,t),n&&y3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gne(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&&d2(e,t)}function d2(e,t){return d2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},d2(e,t)}function yne(e){var t=_ne();return function(){var r=Gg(e),i;if(t){var o=Gg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bne(this,i)}}function bne(e,t){if(t&&(c2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q5(e)}function q5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _ne(){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(n){return n.__proto__||Object.getPrototypeOf(n)},Gg(e)}var xne={caret:$.bool,color:$.string,children:$.node,className:$.string,cssModule:$.object,disabled:$.bool,onClick:$.func,"aria-haspopup":$.bool,split:$.bool,tag:at,nav:$.bool,innerRef:$.oneOfType([$.object,$.string,$.func])},wne={color:"secondary","aria-haspopup":!0},eb=function(e){gne(n,e);var t=yne(n);function n(r){var i;return mne(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(q5(i)),i}return vne(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.color,l=o.cssModule,u=o.caret,f=o.split,d=o.nav,h=o.tag,v=o.innerRef,g=hne(o,fne),y=g["aria-label"]||"Toggle Dropdown",x=Ue(Ge(a,{"dropdown-toggle":u||f,"dropdown-toggle-split":f,"nav-link":d}),l),_=typeof g.children<"u"?g.children:V.createElement("span",{className:"visually-hidden"},y),b;d&&!h?(b="a",g.href="#"):h?b=h:(b=Ye,g.color=s,g.cssModule=l);var w=function(E){var P=E.ref,T=function(D){P(D);var k=i.context.onToggleRef;k&&k(D)};return V.createElement(b,f2({},g,dne({},typeof b=="string"?"ref":"innerRef",T),{className:x,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:_}))};return this.context.inNavbar?V.createElement(V.Fragment,null,w({ref:this.context.onToggleRef})):V.createElement(Ste,{innerRef:v},w)}}]),n}(V.Component);eb.propTypes=xne;eb.defaultProps=wne;eb.contextType=Eh;const Yc=eb;function One(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function h2(e,t){return h2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},h2(e,t)}function Sne(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h2(e,t)}const b3={disabled:!1},K5=V.createContext(null);var Ene=function(t){return t.scrollTop},dd="unmounted",Is="exited",Ds="entering",hu="entered",p2="exiting",Pr=function(e){Sne(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Is,o.appearStatus=Ds):l=hu:r.unmountOnExit||r.mountOnEnter?l=dd:l=Is,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===dd?{status:Is}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Ds&&a!==hu&&(o=Ds):(a===Ds||a===hu)&&(o=p2)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Ds){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Qs.findDOMNode(this);a&&Ene(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Is&&this.setState({status:dd})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Qs.findDOMNode(this),s],u=l[0],f=l[1],d=this.getTimeouts(),h=s?d.appear:d.enter;if(!i&&!a||b3.disabled){this.safeSetState({status:hu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Ds},function(){o.props.onEntering(u,f),o.onTransitionEnd(h,function(){o.safeSetState({status:hu},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Qs.findDOMNode(this);if(!o||b3.disabled){this.safeSetState({status:Is},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:p2},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Is},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Qs.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===dd)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=One(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(K5.Provider,{value:null},typeof a=="function"?a(i,s):V.cloneElement(V.Children.only(a),s))},t}(V.Component);Pr.contextType=K5;Pr.propTypes={};function eu(){}Pr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:eu,onEntering:eu,onEntered:eu,onExit:eu,onExiting:eu,onExited:eu};Pr.UNMOUNTED=dd;Pr.EXITED=Is;Pr.ENTERING=Ds;Pr.ENTERED=hu;Pr.EXITING=p2;var Pne=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qg.apply(this,arguments)}function Cne(e,t){if(e==null)return{};var n=Tne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_3(Object(n),!0).forEach(function(r){jne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ane=Ph(Ph({},Pr.propTypes),{},{children:$.oneOfType([$.arrayOf($.node),$.node]),tag:at,baseClass:$.string,baseClassActive:$.string,className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func])}),Y5=Ph(Ph({},Pr.defaultProps),{},{timeout:Dg.Fade,appear:!0,enter:!0,exit:!0,in:!0});function rr(e){var t=R.useRef(null),n=e.tag,r=n===void 0?"div":n,i=e.baseClass,o=i===void 0?"fade":i,a=e.baseClassActive,s=a===void 0?"show":a,l=e.className,u=e.cssModule,f=e.children,d=e.innerRef,h=d===void 0?t:d,v=Cne(e,Pne),g=w5(Ph({defaultProps:Y5},v),Fg),y=ps(v,Fg);return V.createElement(Pr,qg({nodeRef:h},g),function(x){var _=x==="entered",b=Ue(Ge(l,o,_&&s),u);return V.createElement(r,qg({className:b},y,{ref:h}),f)})}rr.propTypes=Ane;rr.defaultProps=Y5;function m2(e){"@babel/helpers - typeof";return m2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m2(e)}var kne=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],tu;function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kg.apply(this,arguments)}function Nne(e,t){if(e==null)return{};var n=Mne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Rne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lne(e,t,n){return t&&x3(e.prototype,t),n&&x3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ne(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&&v2(e,t)}function v2(e,t){return v2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},v2(e,t)}function Ine(e){var t=Fne();return function(){var r=Yg(e),i;if(t){var o=Yg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Dne(this,i)}}function Dne(e,t){if(t&&(m2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z5(e)}function Z5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fne(){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 Yg(e){return Yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yg(e)}function w3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(n),!0).forEach(function(r){Mu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bne=dc(dc({},Pr.propTypes),{},{horizontal:$.bool,isOpen:$.bool,children:$.oneOfType([$.arrayOf($.node),$.node]),tag:at,className:$.node,navbar:$.bool,cssModule:$.object,innerRef:$.shape({current:$.object})}),Une=dc(dc({},Pr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Dg.Collapse}),zne=(tu={},Mu(tu,ev.ENTERING,"collapsing"),Mu(tu,ev.ENTERED,"collapse show"),Mu(tu,ev.EXITING,"collapsing"),Mu(tu,ev.EXITED,"collapse"),tu);function Vne(e){return zne[e]||"collapse"}var DP=function(e){$ne(n,e);var t=Ine(n);function n(r){var i;return Rne(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||V.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(o){i[o]=i[o].bind(Z5(i))}),i}return Lne(n,[{key:"onEntering",value:function(i,o){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,o)}},{key:"onEntered",value:function(i,o){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,o)}},{key:"onExit",value:function(){var i=this.getNode();this.setState({dimension:this.getDimension(i)}),this.props.onExit(i)}},{key:"onExiting",value:function(){var i=this.getNode();this.getDimension(i),this.setState({dimension:0}),this.props.onExiting(i)}},{key:"onExited",value:function(){var i=this.getNode();this.setState({dimension:null}),this.props.onExited(i)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(i){return this.props.horizontal?i.scrollWidth:i.scrollHeight}},{key:"render",value:function(){var i=this,o=this.props,a=o.tag,s=o.horizontal,l=o.isOpen,u=o.className,f=o.navbar,d=o.cssModule,h=o.children;o.innerRef;var v=Nne(o,kne),g=this.state.dimension,y=w5(v,Fg),x=ps(v,Fg);return V.createElement(Pr,Kg({},y,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(_){var b=Vne(_),w=Ue(Ge(u,s&&"collapse-horizontal",b,f&&"navbar-collapse"),d),S=g===null?null:Mu({},s?"width":"height",g);return V.createElement(a,Kg({},x,{style:dc(dc({},x.style),S),className:w,ref:i.nodeRef}),h)})}}]),n}(R.Component);DP.propTypes=Bne;DP.defaultProps=Une;const Wne=DP;var Hne=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function g2(){return g2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g2.apply(this,arguments)}function Gne(e,t){if(e==null)return{};var n=qne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Kne={body:$.bool,className:$.string,color:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func]),inverse:$.bool,outline:$.bool,tag:at};function Er(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,l=s===void 0?"div":s,u=e.innerRef,f=Gne(e,Hne),d=Ue(Ge(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return V.createElement(l,g2({},f,{className:d,ref:u}))}Er.propTypes=Kne;var Yne=["className","cssModule","innerRef","tag"];function y2(){return y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y2.apply(this,arguments)}function Zne(e,t){if(e==null)return{};var n=Xne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qne={className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func]),tag:at};function hc(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Zne(e,Yne),s=Ue(Ge(t,"card-body"),n);return V.createElement(o,y2({},a,{className:s,ref:r}))}hc.propTypes=Qne;var Jne=["className","cssModule","tag"];function b2(){return b2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b2.apply(this,arguments)}function ere(e,t){if(e==null)return{};var n=tre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nre={className:$.string,cssModule:$.object,tag:at};function X5(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=ere(e,Jne),a=Ue(Ge(t,"card-footer"),n);return V.createElement(i,b2({},o,{className:a}))}X5.propTypes=nre;var rre=["className","cssModule","tag"];function _2(){return _2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_2.apply(this,arguments)}function ire(e,t){if(e==null)return{};var n=ore(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ore(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var are={className:$.string,cssModule:$.object,tag:at};function pc(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=ire(e,rre),a=Ue(Ge(t,"card-header"),n);return V.createElement(i,_2({},o,{className:a}))}pc.propTypes=are;var sre=["className","cssModule","tag"];function x2(){return x2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x2.apply(this,arguments)}function lre(e,t){if(e==null)return{};var n=ure(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ure(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cre={className:$.string,cssModule:$.object,tag:at};function Q5(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=lre(e,sre),a=Ue(Ge(t,"card-text"),n);return V.createElement(i,x2({},o,{className:a}))}Q5.propTypes=cre;var fre=["className","cssModule","tag"];function w2(){return w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w2.apply(this,arguments)}function dre(e,t){if(e==null)return{};var n=hre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var pre={className:$.string,cssModule:$.object,tag:at};function J5(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=dre(e,fre),a=Ue(Ge(t,"card-title"),n);return V.createElement(i,w2({},o,{className:a}))}J5.propTypes=pre;function O2(e){"@babel/helpers - typeof";return O2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O2(e)}var mre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S2.apply(this,arguments)}function O3(e){return bre(e)||yre(e)||gre(e)||vre()}function vre(){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 gre(e,t){if(e){if(typeof e=="string")return E2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E2(e,t)}}function yre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bre(e){if(Array.isArray(e))return E2(e)}function E2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _re(e,t){if(e==null)return{};var n=xre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function wre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ore(e,t,n){return t&&S3(e.prototype,t),n&&S3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sre(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&&P2(e,t)}function P2(e,t){return P2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},P2(e,t)}function Ere(e){var t=Cre();return function(){var r=Zg(e),i;if(t){var o=Zg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Pre(this,i)}}function Pre(e,t){if(t&&(O2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hd(e)}function hd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cre(){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(n){return n.__proto__||Object.getPrototypeOf(n)},Zg(e)}function E3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E3(Object(n),!0).forEach(function(r){Tre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jre(){}var Are={children:$.oneOfType([$.node,$.func]).isRequired,popperClassName:$.string,placement:$.string,placementPrefix:$.string,arrowClassName:$.string,hideArrow:$.bool,tag:at,isOpen:$.bool,cssModule:$.object,offset:$.arrayOf($.number),fallbackPlacements:$.array,flip:$.bool,container:sc,target:sc.isRequired,modifiers:$.array,strategy:$.string,boundariesElement:$.oneOfType([$.string,EP]),onClosed:$.func,fade:$.bool,transition:$.shape(rr.propTypes)},kre={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:jre,fade:!0,transition:Kv({},rr.defaultProps)},FP=function(e){Sre(n,e);var t=Ere(n);function n(r){var i;return wre(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(hd(i)),i.getTargetNode=i.getTargetNode.bind(hd(i)),i.getRef=i.getRef.bind(hd(i)),i.onClosed=i.onClosed.bind(hd(i)),i.state={isOpen:r.isOpen},i}return Ore(n,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return wh(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?wh(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,l=i.flip;i.target;var u=i.offset,f=i.fallbackPlacements,d=i.placementPrefix,h=i.arrowClassName,v=i.hideArrow,g=i.popperClassName,y=i.tag;i.container;var x=i.modifiers,_=i.strategy,b=i.boundariesElement;i.onClosed;var w=i.fade,S=i.transition,E=i.placement,P=_re(i,mre),T=Ue(Ge("arrow",h),o),A=Ue(Ge(g,d?"".concat(d,"-auto"):""),this.props.cssModule),D=x.map(function(q){return q.name}),k=[{name:"offset",options:{offset:u}},{name:"flip",enabled:l,options:{fallbackPlacements:f}},{name:"preventOverflow",options:{boundary:b}}].filter(function(q){return!D.includes(q.name)}),I=[].concat(O3(k),O3(x)),F=Kv(Kv(Kv({},rr.defaultProps),S),{},{baseClass:w?S.baseClass:"",timeout:w?S.timeout:0});return V.createElement(rr,S2({},F,P,{in:s,onExited:this.onClosed,tag:y}),V.createElement(H5,{referenceElement:this.targetNode,modifiers:I,placement:E,strategy:_},function(q){var W=q.ref,X=q.style,Q=q.placement,ne=q.isReferenceHidden,Z=q.arrowProps,z=q.update;return V.createElement("div",{ref:W,style:X,className:A,"data-popper-placement":Q,"data-popper-reference-hidden":ne?"true":void 0},typeof a=="function"?a({update:z}):a,!v&&V.createElement("span",{ref:Z.ref,className:T,style:Z.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Qs.createPortal(V.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(V.Component);FP.propTypes=Are;FP.defaultProps=kre;const Nre=FP;function C2(){return C2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C2.apply(this,arguments)}function Ch(e){"@babel/helpers - typeof";return Ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ch(e)}function Mre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rre(e,t,n){return t&&P3(e.prototype,t),n&&P3(e,n),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&&T2(e,t)}function T2(e,t){return T2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},T2(e,t)}function $re(e){var t=Dre();return function(){var r=Xg(e),i;if(t){var o=Xg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ire(this,i)}}function Ire(e,t){if(t&&(Ch(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ar(e)}function Ar(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dre(){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(n){return n.__proto__||Object.getPrototypeOf(n)},Xg(e)}var BP={children:$.oneOfType([$.node,$.func]),placement:$.oneOf(iJ),target:sc.isRequired,container:sc,isOpen:$.bool,disabled:$.bool,hideArrow:$.bool,boundariesElement:$.oneOfType([$.string,EP]),className:$.string,innerClassName:$.string,arrowClassName:$.string,popperClassName:$.string,cssModule:$.object,toggle:$.func,autohide:$.bool,placementPrefix:$.string,delay:$.oneOfType([$.shape({show:$.number,hide:$.number}),$.number]),modifiers:$.array,strategy:$.string,offset:$.arrayOf($.number),innerRef:$.oneOfType([$.func,$.string,$.object]),trigger:$.string,fade:$.bool,flip:$.bool},e8={show:0,hide:50},Fre={isOpen:!1,hideArrow:!1,autohide:!1,delay:e8,toggle:function(){},trigger:"click",fade:!0};function t8(e,t){return t&&(e===t||t.contains(e))}function C3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return t8(e,n)})[0]}var UP=function(e){Lre(n,e);var t=$re(n);function n(r){var i;return Mre(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(Ar(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Ar(i)),i.removeTargetEvents=i.removeTargetEvents.bind(Ar(i)),i.toggle=i.toggle.bind(Ar(i)),i.showWithDelay=i.showWithDelay.bind(Ar(i)),i.hideWithDelay=i.hideWithDelay.bind(Ar(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(Ar(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(Ar(i)),i.show=i.show.bind(Ar(i)),i.hide=i.hide.bind(Ar(i)),i.onEscKeyDown=i.onEscKeyDown.bind(Ar(i)),i.getRef=i.getRef.bind(Ar(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return Rre(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||C3(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!t8(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&C3(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):Ch(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return Ch(o)==="object"?isNaN(o[i])?e8[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=wh(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,l=a.cssModule,u=a.innerClassName,f=a.isOpen,d=a.hideArrow,h=a.boundariesElement,v=a.placement,g=a.placementPrefix,y=a.arrowClassName,x=a.popperClassName,_=a.container,b=a.modifiers,w=a.strategy,S=a.offset,E=a.fade,P=a.flip,T=a.children,A=ps(this.props,Object.keys(BP)),D=Ue(x,l),k=Ue(u,l);return V.createElement(Nre,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:h,placement:v,placementPrefix:g,arrowClassName:y,popperClassName:D,container:_,modifiers:b,strategy:w,offset:S,cssModule:l,fade:E,flip:P},function(I){var F=I.update;return V.createElement("div",C2({},A,{ref:i.getRef,className:k,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof T=="function"?T({update:F}):T)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(V.Component);UP.propTypes=BP;UP.defaultProps=Fre;const Bre=UP;var Ure=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qg.apply(this,arguments)}function T3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function v_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T3(Object(n),!0).forEach(function(r){zre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vre(e,t){if(e==null)return{};var n=Wre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Hre={animated:$.bool,bar:$.bool,barAriaLabelledBy:$.string,barAriaValueText:$.string,barClassName:$.string,barStyle:$.object,children:$.node,className:$.string,cssModule:$.object,color:$.string,max:$.oneOfType([$.string,$.number]),min:$.oneOfType([$.string,$.number]),multi:$.bool,striped:$.bool,style:$.object,tag:at,value:$.oneOfType([$.string,$.number])};function n8(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,l=s===void 0?0:s,u=e.max,f=u===void 0?100:u,d=e.animated,h=e.striped,v=e.color,g=e.bar,y=e.multi,x=e.tag,_=x===void 0?"div":x,b=e.style,w=b===void 0?{}:b,S=e.barStyle,E=S===void 0?{}:S,P=e.barAriaValueText,T=e.barAriaLabelledBy,A=Vre(e,Ure),D=Xk(a)/Xk(f)*100,k=Ue(Ge(n,"progress"),i),I=Ue(Ge("progress-bar",g&&n||r,d?"progress-bar-animated":null,v?"bg-".concat(v):null,h||d?"progress-bar-striped":null),i),F={className:I,style:v_(v_(v_({},g?w:{}),E),{},{width:"".concat(D,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":l,"aria-valuemax":f,"aria-valuetext":P,"aria-labelledby":T,children:t};return g?V.createElement(_,Qg({},A,F)):V.createElement(_,Qg({},A,{style:w,className:k}),y?t:V.createElement("div",F))}n8.propTypes=Hre;function j2(e){"@babel/helpers - typeof";return j2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j2(e)}function Gre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qre(e,t,n){return t&&j3(e.prototype,t),n&&j3(e,n),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&&A2(e,t)}function A2(e,t){return A2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},A2(e,t)}function Yre(e){var t=Qre();return function(){var r=Jg(e),i;if(t){var o=Jg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Zre(this,i)}}function Zre(e,t){if(t&&(j2(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 Jg(e){return Jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jg(e)}var Jre={children:$.node.isRequired,node:$.any},r8=function(e){Kre(n,e);var t=Yre(n);function n(){return Gre(this,n),t.apply(this,arguments)}return qre(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return PP?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Qs.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(V.Component);r8.propTypes=Jre;const eie=r8;function k2(e){"@babel/helpers - typeof";return k2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k2(e)}function A3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A3(Object(n),!0).forEach(function(r){pu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rd.apply(this,arguments)}function pu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nie(e,t,n){return t&&k3(e.prototype,t),n&&k3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rie(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&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},N2(e,t)}function iie(e){var t=aie();return function(){var r=ey(e),i;if(t){var o=ey(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oie(this,i)}}function oie(e,t){if(t&&(k2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ti(e)}function ti(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function ty(){}var N3=$.shape(rr.propTypes),i8={autoFocus:$.bool,backdrop:$.oneOfType([$.bool,$.oneOf(["static"])]),backdropClassName:$.string,backdropTransition:N3,centered:$.bool,children:$.node,contentClassName:$.string,className:$.string,container:sc,cssModule:$.object,external:$.node,fade:$.bool,fullscreen:$.oneOfType([$.bool,$.oneOf(["sm","md","lg","xl"])]),innerRef:$.oneOfType([$.object,$.string,$.func]),isOpen:$.bool,keyboard:$.bool,labelledBy:$.string,modalClassName:$.string,modalTransition:N3,onClosed:$.func,onEnter:$.func,onExit:$.func,onOpened:$.func,returnFocusAfterClose:$.bool,role:$.string,scrollable:$.bool,size:$.string,toggle:$.func,trapFocus:$.bool,unmountOnClose:$.bool,wrapClassName:$.string,zIndex:$.oneOfType([$.number,$.string])},sie=Object.keys(i8),lie={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:ty,onClosed:ty,modalTransition:{timeout:Dg.Modal},backdropTransition:{mountOnEnter:!0,timeout:Dg.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Rp=function(e){rie(n,e);var t=iie(n);function n(r){var i;return tie(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(ti(i)),i.handleBackdropClick=i.handleBackdropClick.bind(ti(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(ti(i)),i.handleEscape=i.handleEscape.bind(ti(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(ti(i)),i.handleTab=i.handleTab.bind(ti(i)),i.onOpened=i.onOpened.bind(ti(i)),i.onClosed=i.onClosed.bind(ti(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(ti(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(ti(i)),i.trapFocus=i.trapFocus.bind(ti(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return nie(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var o=this.getFocusableChildren(),a=o.length;if(a!==0){for(var s=this.getFocusedChild(),l=0,u=0;u<a;u+=1)if(o[u]===s){l=u;break}i.shiftKey&&l===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&l===a-1&&(i.preventDefault(),o[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===mt.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||ty)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||ty)(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(lJ.join(", "))}},{key:"getFocusedChild",value:function(){var i,o=this.getFocusableChildren();try{i=document.activeElement}catch{i=o[0]}return i}},{key:"trapFocus",value:function(i){if(this.props.trapFocus&&this._element&&!(this._dialog&&this._dialog.parentNode===i.target)&&!(this.modalIndex<n.openCount-1)){for(var o=this.getFocusableChildren(),a=0;a<o.length;a+=1)if(o[a]===i.target)return;o.length>0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=wh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=eJ(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),tJ(),n.openCount===0&&(document.body.className=Ge(document.body.className,Ue("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=Ue("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),x5(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=ps(this.props,sie),s="modal-dialog";return V.createElement("div",Rd({},a,{className:Ue(Ge(s,this.props.className,(i={},pu(i,"modal-".concat(this.props.size),this.props.size),pu(i,"".concat(s,"-centered"),this.props.centered),pu(i,"".concat(s,"-scrollable"),this.props.scrollable),pu(i,"modal-fullscreen",this.props.fullscreen===!0),pu(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}}),V.createElement("div",{className:Ue(Ge("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,l=a.modalClassName,u=a.backdropClassName,f=a.cssModule,d=a.isOpen,h=a.backdrop,v=a.role,g=a.labelledBy,y=a.external,x=a.innerRef,_={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":g,"aria-modal":!0,role:v,tabIndex:"-1"},b=this.props.fade,w=nu(nu(nu({},rr.defaultProps),this.props.modalTransition),{},{baseClass:b?this.props.modalTransition.baseClass:"",timeout:b?this.props.modalTransition.timeout:0}),S=nu(nu(nu({},rr.defaultProps),this.props.backdropTransition),{},{baseClass:b?this.props.backdropTransition.baseClass:"",timeout:b?this.props.backdropTransition.timeout:0}),E=h&&(b?V.createElement(rr,Rd({},S,{in:d&&!!h,cssModule:f,className:Ue(Ge("modal-backdrop",u),f)})):V.createElement("div",{className:Ue(Ge("modal-backdrop","show",u),f)}));return V.createElement(eie,{node:this._element},V.createElement("div",{className:Ue(s)},V.createElement(rr,Rd({},_,w,{in:d,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:Ue(Ge("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:x}),y,this.renderModalDialog()),E))}return null}}]),n}(V.Component);Rp.propTypes=i8;Rp.defaultProps=lie;Rp.openCount=0;Rp.originalBodyOverflow=null;const Eo=Rp;var uie=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function M2(){return M2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M2.apply(this,arguments)}function cie(e,t){if(e==null)return{};var n=fie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var die={children:$.node,className:$.string,close:$.object,closeAriaLabel:$.string,cssModule:$.object,tag:at,toggle:$.func,wrapTag:at};function Po(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,l=e.wrapTag,u=l===void 0?"div":l,f=e.closeAriaLabel,d=f===void 0?"Close":f,h=e.close,v=cie(e,uie),g=Ue(Ge(n,"modal-header"),r);return!h&&o&&(t=V.createElement("button",{type:"button",onClick:o,className:Ue("btn-close",r),"aria-label":d})),V.createElement(u,M2({},v,{className:g}),V.createElement(s,{className:Ue("modal-title",r)},i),h||t)}Po.propTypes=die;var hie=["className","cssModule","tag"];function R2(){return R2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R2.apply(this,arguments)}function pie(e,t){if(e==null)return{};var n=mie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vie={className:$.string,cssModule:$.object,tag:at};function Vi(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=pie(e,hie),a=Ue(Ge(t,"modal-body"),n);return V.createElement(i,R2({},o,{className:a}))}Vi.propTypes=vie;var gie=["className","cssModule","tag"];function L2(){return L2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L2.apply(this,arguments)}function yie(e,t){if(e==null)return{};var n=bie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _ie={className:$.string,cssModule:$.object,tag:at};function vs(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=yie(e,gie),a=Ue(Ge(t,"modal-footer"),n);return V.createElement(i,L2({},o,{className:a}))}vs.propTypes=_ie;function $2(){return $2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$2.apply(this,arguments)}var xie={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Lp(e){var t=Ge("tooltip-arrow",e.arrowClassName),n=Ge("tooltip","show",e.popperClassName),r=Ge("tooltip-inner",e.innerClassName);return V.createElement(Bre,$2({},e,{arrowClassName:t,popperClassName:n,innerClassName:r}))}Lp.propTypes=BP;Lp.defaultProps=xie;var wie=["className","cssModule","tag","flush","horizontal","numbered"];function I2(){return I2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I2.apply(this,arguments)}function Oie(e,t){if(e==null)return{};var n=Sie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Eie={className:$.string,cssModule:$.object,flush:$.bool,horizontal:$.oneOfType([$.bool,$.string]),numbered:$.bool,tag:at},Pie=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function o8(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,l=e.numbered,u=l===void 0?!1:l,f=Oie(e,wie),d=Ue(Ge(t,"list-group",o?"list-group-flush":Pie(s),{"list-group-numbered":u}),n);return V.createElement(i,I2({},f,{className:d}))}o8.propTypes=Eie;var Cie=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function D2(){return D2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D2.apply(this,arguments)}function Tie(e,t){if(e==null)return{};var n=jie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Aie={children:$.node,row:$.bool,check:$.bool,switch:$.bool,inline:$.bool,floating:$.bool,noMargin:$.bool,disabled:$.bool,tag:at,className:$.string,cssModule:$.object};function uo(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,l=e.noMargin,u=e.tag,f=u===void 0?"div":u,d=e.switch,h=Tie(e,Cie),v=o||d,g=Ue(Ge(t,r?"row":!1,v?"form-check":!1,d?"form-switch":!1,v||l?!1:"mb-3",v&&a?"form-check-inline":!1,v&&i?"disabled":!1,s&&"form-floating"),n);return f==="fieldset"&&(h.disabled=i),V.createElement(f,D2({},h,{className:g}))}uo.propTypes=Aie;function F2(e){"@babel/helpers - typeof";return F2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F2(e)}var kie=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function B2(){return B2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B2.apply(this,arguments)}function Nie(e,t){if(e==null)return{};var n=Mie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Rie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lie(e,t,n){return t&&M3(e.prototype,t),n&&M3(e,n),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&&U2(e,t)}function U2(e,t){return U2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},U2(e,t)}function Iie(e){var t=Fie();return function(){var r=ny(e),i;if(t){var o=ny(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Die(this,i)}}function Die(e,t){if(t&&(F2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z2(e)}function z2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fie(){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(n){return n.__proto__||Object.getPrototypeOf(n)},ny(e)}var Bie={children:$.node,type:$.string,size:$.oneOfType([$.number,$.string]),bsSize:$.string,valid:$.bool,invalid:$.bool,tag:at,innerRef:$.oneOfType([$.object,$.func,$.string]),plaintext:$.bool,addon:$.bool,className:$.string,cssModule:$.object},a8=function(e){$ie(n,e);var t=Iie(n);function n(r){var i;return Rie(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(z2(i)),i.focus=i.focus.bind(z2(i)),i}return Lie(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.type,l=s===void 0?"text":s,u=i.bsSize,f=i.valid,d=i.invalid,h=i.tag,v=i.addon,g=i.plaintext,y=i.innerRef,x=Nie(i,kie),_=["switch","radio","checkbox"].indexOf(l)>-1,b=/\D/g,w=l==="textarea",S=l==="select",E=l==="range",P=h||(S||w?l:"input"),T="form-control";g?(T="".concat(T,"-plaintext"),P=h||"input"):E?T="form-range":S?T="form-select":_&&(v?T=null:T="form-check-input"),x.size&&b.test(x.size)&&(Dw(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=x.size,delete x.size);var A=Ue(Ge(o,d&&"is-invalid",f&&"is-valid",u?S?"form-select-".concat(u):"form-control-".concat(u):!1,T),a);return(P==="input"||h&&typeof h=="function")&&(x.type=l==="switch"?"checkbox":l),x.children&&!(g||l==="select"||typeof P!="string"||P==="select")&&(Dw('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),V.createElement(P,B2({},x,{ref:y,className:A,"aria-invalid":d}))}}]),n}(V.Component);a8.propTypes=Bie;const Gn=a8;var Uie=["className","cssModule","tag","type","size"];function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry.apply(this,arguments)}function zie(e,t){if(e==null)return{};var n=Vie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Wie={className:$.string,cssModule:$.object,size:$.string,tag:at,type:$.string};function tb(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=zie(e,Uie),s=Ue(Ge(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?V.createElement(Mp,ry({},a,{className:s})):V.createElement(G5.Provider,{value:{insideInputGroup:!0}},V.createElement(i,ry({},a,{className:s})))}tb.propTypes=Wie;var Hie=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function V2(){return V2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V2.apply(this,arguments)}function Gie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qie(e,t){if(e==null)return{};var n=Kie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Yie={children:$.node,className:$.string,listClassName:$.string,cssModule:$.object,size:$.string,tag:at,listTag:at,"aria-label":$.string};function zP(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,l=s===void 0?"ul":s,u=e["aria-label"],f=u===void 0?"pagination":u,d=qie(e,Hie),h=Ue(Ge(t),r),v=Ue(Ge(n,"pagination",Gie({},"pagination-".concat(i),!!i)),r);return V.createElement(a,{className:h,"aria-label":f},V.createElement(l,V2({},d,{className:v})))}zP.propTypes=Yie;var Zie=["active","className","cssModule","disabled","tag"];function W2(){return W2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W2.apply(this,arguments)}function Xie(e,t){if(e==null)return{};var n=Qie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Jie={active:$.bool,children:$.node,className:$.string,cssModule:$.object,disabled:$.bool,tag:at};function ul(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Xie(e,Zie),l=Ue(Ge(n,"page-item",{active:t,disabled:i}),r);return V.createElement(a,W2({},s,{className:l}))}ul.propTypes=Jie;var eoe=["className","cssModule","next","previous","first","last","tag"];function H2(){return H2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H2.apply(this,arguments)}function toe(e,t){if(e==null)return{};var n=noe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function noe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var roe={"aria-label":$.string,children:$.node,className:$.string,cssModule:$.object,next:$.bool,previous:$.bool,first:$.bool,last:$.bool,tag:at};function cl(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,l=s===void 0?"a":s,u=toe(e,eoe),f=Ue(Ge(t,"page-link"),n),d;i?d="Previous":r?d="Next":o?d="First":a&&(d="Last");var h=e["aria-label"]||d,v;i?v="‹":r?v="›":o?v="«":a&&(v="»");var g=e.children;return g&&Array.isArray(g)&&g.length===0&&(g=null),!u.href&&l==="a"&&(l="button"),(i||r||o||a)&&(g=[V.createElement("span",{"aria-hidden":"true",key:"caret"},g||v),V.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),V.createElement(l,H2({},u,{className:f,"aria-label":h}),g)}cl.propTypes=roe;var ioe=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function G2(){return G2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G2.apply(this,arguments)}function R3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R3(Object(n),!0).forEach(function(r){ooe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ooe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aoe(e,t){if(e==null)return{};var n=soe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function soe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var loe={children:$.node,className:$.string,closeClassName:$.string,closeAriaLabel:$.string,color:$.string,cssModule:$.object,fade:$.bool,innerRef:$.oneOfType([$.object,$.string,$.func]),isOpen:$.bool,tag:at,toggle:$.func,transition:$.shape(rr.propTypes)};function s8(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,l=e.color,u=l===void 0?"success":l,f=e.isOpen,d=f===void 0?!0:f,h=e.toggle,v=e.children,g=e.transition,y=g===void 0?Hf(Hf({},rr.defaultProps),{},{unmountOnExit:!0}):g,x=e.fade,_=x===void 0?!0:x,b=e.innerRef,w=aoe(e,ioe),S=Ue(Ge(t,"alert","alert-".concat(u),{"alert-dismissible":h}),o),E=Ue(Ge("btn-close",n),o),P=Hf(Hf(Hf({},rr.defaultProps),y),{},{baseClass:_?y.baseClass:"",timeout:_?y.timeout:0});return V.createElement(rr,G2({},w,P,{tag:s,className:S,in:d,role:"alert",innerRef:b}),h?V.createElement("button",{type:"button",className:E,"aria-label":i,onClick:h}):null,v)}s8.propTypes=loe;var uoe=["className","cssModule","tag","active","disabled","action","color"];function q2(){return q2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q2.apply(this,arguments)}function coe(e,t){if(e==null)return{};var n=foe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function foe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var doe={action:$.bool,active:$.bool,className:$.string,cssModule:$.object,color:$.string,disabled:$.bool,tag:at},hoe=function(t){t.preventDefault()};function l8(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,l=e.color,u=coe(e,uoe),f=Ue(Ge(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,l?"list-group-item-".concat(l):!1,"list-group-item"),n);return a&&(u.onClick=hoe),V.createElement(i,q2({},u,{className:f}))}l8.propTypes=doe;function K2(e){"@babel/helpers - typeof";return K2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K2(e)}function L3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function poe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L3(Object(n),!0).forEach(function(r){moe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function moe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y2(){return Y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y2.apply(this,arguments)}function voe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function goe(e,t,n){return t&&$3(e.prototype,t),n&&$3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z2(e,t)}function Z2(e,t){return Z2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Z2(e,t)}function boe(e){var t=xoe();return function(){var r=iy(e),i;if(t){var o=iy(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _oe(this,i)}}function _oe(e,t){if(t&&(K2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u8(e)}function u8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function iy(e){return iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},iy(e)}var woe=["defaultOpen"],$p=function(e){yoe(n,e);var t=boe(n);function n(r){var i;return voe(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(u8(i)),i}return goe(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return V.createElement(Mp,Y2({isOpen:this.state.isOpen,toggle:this.toggle},ps(this.props,woe)))}}]),n}(R.Component);$p.propTypes=poe({defaultOpen:$.bool,onToggle:$.func},Mp.propTypes);function X2(e){"@babel/helpers - typeof";return X2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X2(e)}function I3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ooe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I3(Object(n),!0).forEach(function(r){Soe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Soe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q2(){return Q2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q2.apply(this,arguments)}function Eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Poe(e,t,n){return t&&D3(e.prototype,t),n&&D3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Coe(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&&J2(e,t)}function J2(e,t){return J2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},J2(e,t)}function Toe(e){var t=Aoe();return function(){var r=oy(e),i;if(t){var o=oy(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return joe(this,i)}}function joe(e,t){if(t&&(X2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c8(e)}function c8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aoe(){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 oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oy(e)}var koe=["defaultOpen"],Cr=function(e){Coe(n,e);var t=Toe(n);function n(r){var i;return Eoe(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(c8(i)),i}return Poe(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return V.createElement(Lp,Q2({isOpen:this.state.isOpen,toggle:this.toggle},ps(this.props,koe)))}}]),n}(R.Component);Cr.propTypes=Ooe({defaultOpen:$.bool},Lp.propTypes);let nv;const Noe=new Uint8Array(16);function Moe(){if(!nv&&(nv=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nv(Noe)}const $n=[];for(let e=0;e<256;++e)$n.push((e+256).toString(16).slice(1));function Roe(e,t=0){return $n[e[t+0]]+$n[e[t+1]]+$n[e[t+2]]+$n[e[t+3]]+"-"+$n[e[t+4]]+$n[e[t+5]]+"-"+$n[e[t+6]]+$n[e[t+7]]+"-"+$n[e[t+8]]+$n[e[t+9]]+"-"+$n[e[t+10]]+$n[e[t+11]]+$n[e[t+12]]+$n[e[t+13]]+$n[e[t+14]]+$n[e[t+15]]}const Loe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),F3={randomUUID:Loe};function VP(e,t,n){if(F3.randomUUID&&!t&&!e)return F3.randomUUID();e=e||{};const r=e.random||(e.rng||Moe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Roe(r)}var $oe=Error,Ioe=EvalError,Doe=RangeError,Foe=ReferenceError,f8=SyntaxError,Ip=TypeError,Boe=URIError,Uoe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0},B3=typeof Symbol<"u"&&Symbol,zoe=Uoe,Voe=function(){return typeof B3!="function"||typeof Symbol!="function"||typeof B3("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:zoe()},g_={__proto__:null,foo:{}},Woe=Object,Hoe=function(){return{__proto__:g_}.foo===g_.foo&&!(g_ instanceof Woe)},Goe="Function.prototype.bind called on incompatible ",qoe=Object.prototype.toString,Koe=Math.max,Yoe="[object Function]",U3=function(t,n){for(var r=[],i=0;i<t.length;i+=1)r[i]=t[i];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},Zoe=function(t,n){for(var r=[],i=n||0,o=0;i<t.length;i+=1,o+=1)r[o]=t[i];return r},Xoe=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},Qoe=function(t){var n=this;if(typeof n!="function"||qoe.apply(n)!==Yoe)throw new TypeError(Goe+n);for(var r=Zoe(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,U3(r,arguments));return Object(f)===f?f:this}return n.apply(t,U3(r,arguments))},a=Koe(0,n.length-r.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(i=Function("binder","return function ("+Xoe(s,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var u=function(){};u.prototype=n.prototype,i.prototype=new u,u.prototype=null}return i},Joe=Qoe,WP=Function.prototype.bind||Joe,eae=Function.prototype.call,tae=Object.prototype.hasOwnProperty,nae=WP,rae=nae.call(eae,tae),ot,iae=$oe,oae=Ioe,aae=Doe,sae=Foe,mc=f8,Gu=Ip,lae=Boe,d8=Function,y_=function(e){try{return d8('"use strict"; return ('+e+").constructor;")()}catch{}},fl=Object.getOwnPropertyDescriptor;if(fl)try{fl({},"")}catch{fl=null}var b_=function(){throw new Gu},uae=fl?function(){try{return arguments.callee,b_}catch{try{return fl(arguments,"callee").get}catch{return b_}}}():b_,ru=Voe(),cae=Hoe(),On=Object.getPrototypeOf||(cae?function(e){return e.__proto__}:null),mu={},fae=typeof Uint8Array>"u"||!On?ot:On(Uint8Array),dl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":ru&&On?On([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":mu,"%AsyncGenerator%":mu,"%AsyncGeneratorFunction%":mu,"%AsyncIteratorPrototype%":mu,"%Atomics%":typeof Atomics>"u"?ot:Atomics,"%BigInt%":typeof BigInt>"u"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":iae,"%eval%":eval,"%EvalError%":oae,"%Float32Array%":typeof Float32Array>"u"?ot:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ot:FinalizationRegistry,"%Function%":d8,"%GeneratorFunction%":mu,"%Int8Array%":typeof Int8Array>"u"?ot:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ot:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ru&&On?On(On([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map>"u"?ot:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ru||!On?ot:On(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ot:Promise,"%Proxy%":typeof Proxy>"u"?ot:Proxy,"%RangeError%":aae,"%ReferenceError%":sae,"%Reflect%":typeof Reflect>"u"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ot:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ru||!On?ot:On(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ru&&On?On(""[Symbol.iterator]()):ot,"%Symbol%":ru?Symbol:ot,"%SyntaxError%":mc,"%ThrowTypeError%":uae,"%TypedArray%":fae,"%TypeError%":Gu,"%Uint8Array%":typeof Uint8Array>"u"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ot:Uint32Array,"%URIError%":lae,"%WeakMap%":typeof WeakMap>"u"?ot:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ot:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ot:WeakSet};if(On)try{null.error}catch(e){var dae=On(On(e));dl["%Error.prototype%"]=dae}var hae=function e(t){var n;if(t==="%AsyncFunction%")n=y_("async function () {}");else if(t==="%GeneratorFunction%")n=y_("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=y_("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&On&&(n=On(i.prototype))}return dl[t]=n,n},z3={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Dp=WP,ay=rae,pae=Dp.call(Function.call,Array.prototype.concat),mae=Dp.call(Function.apply,Array.prototype.splice),V3=Dp.call(Function.call,String.prototype.replace),sy=Dp.call(Function.call,String.prototype.slice),vae=Dp.call(Function.call,RegExp.prototype.exec),gae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yae=/\\(\\)?/g,bae=function(t){var n=sy(t,0,1),r=sy(t,-1);if(n==="%"&&r!=="%")throw new mc("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new mc("invalid intrinsic syntax, expected opening `%`");var i=[];return V3(t,gae,function(o,a,s,l){i[i.length]=s?V3(l,yae,"$1"):a||o}),i},_ae=function(t,n){var r=t,i;if(ay(z3,r)&&(i=z3[r],r="%"+i[0]+"%"),ay(dl,r)){var o=dl[r];if(o===mu&&(o=hae(r)),typeof o>"u"&&!n)throw new Gu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new mc("intrinsic "+t+" does not exist!")},Zc=function(t,n){if(typeof t!="string"||t.length===0)throw new Gu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Gu('"allowMissing" argument must be a boolean');if(vae(/^%?[^%]*%?$/,t)===null)throw new mc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=bae(t),i=r.length>0?r[0]:"",o=_ae("%"+i+"%",n),a=o.name,s=o.value,l=!1,u=o.alias;u&&(i=u[0],mae(r,pae([0,1],u)));for(var f=1,d=!0;f<r.length;f+=1){var h=r[f],v=sy(h,0,1),g=sy(h,-1);if((v==='"'||v==="'"||v==="`"||g==='"'||g==="'"||g==="`")&&v!==g)throw new mc("property names with quotes must have matching quotes");if((h==="constructor"||!d)&&(l=!0),i+="."+h,a="%"+i+"%",ay(dl,a))s=dl[a];else if(s!=null){if(!(h in s)){if(!n)throw new Gu("base intrinsic for "+t+" exists, but the property is not available.");return}if(fl&&f+1>=r.length){var y=fl(s,h);d=!!y,d&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[h]}else d=ay(s,h),s=s[h];d&&!l&&(dl[a]=s)}}return s},h8={exports:{}},__,W3;function HP(){if(W3)return __;W3=1;var e=Zc,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return __=t,__}var xae=Zc,Yv=xae("%Object.getOwnPropertyDescriptor%",!0);if(Yv)try{Yv([],"length")}catch{Yv=null}var p8=Yv,H3=HP(),wae=f8,iu=Ip,G3=p8,Oae=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new iu("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new iu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iu("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!G3&&G3(t,n);if(H3)H3(t,n,{configurable:a===null&&l?l.configurable:!a,enumerable:i===null&&l?l.enumerable:!i,value:r,writable:o===null&&l?l.writable:!o});else if(s||!i&&!o&&!a)t[n]=r;else throw new wae("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},eO=HP(),m8=function(){return!!eO};m8.hasArrayLengthDefineBug=function(){if(!eO)return null;try{return eO([],"length",{value:1}).length!==1}catch{return!0}};var Sae=m8,Eae=Zc,q3=Oae,Pae=Sae(),K3=p8,Y3=Ip,Cae=Eae("%Math.floor%"),Tae=function(t,n){if(typeof t!="function")throw new Y3("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Cae(n)!==n)throw new Y3("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&K3){var a=K3(t,"length");a&&!a.configurable&&(i=!1),a&&!a.writable&&(o=!1)}return(i||o||!r)&&(Pae?q3(t,"length",n,!0,!0):q3(t,"length",n)),t};(function(e){var t=WP,n=Zc,r=Tae,i=Ip,o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,o),l=HP(),u=n("%Math.max%");e.exports=function(h){if(typeof h!="function")throw new i("a function is required");var v=s(t,a,arguments);return r(v,1+u(0,h.length-(arguments.length-1)),!0)};var f=function(){return s(t,o,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f})(h8);var jae=h8.exports,v8=Zc,g8=jae,Aae=g8(v8("String.prototype.indexOf")),kae=function(t,n){var r=v8(t,!!n);return typeof r=="function"&&Aae(t,".prototype.")>-1?g8(r):r};const Nae={},Mae=Object.freeze(Object.defineProperty({__proto__:null,default:Nae},Symbol.toStringTag,{value:"Module"})),Rae=FW(Mae);var GP=typeof Map=="function"&&Map.prototype,x_=Object.getOwnPropertyDescriptor&&GP?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ly=GP&&x_&&typeof x_.get=="function"?x_.get:null,Z3=GP&&Map.prototype.forEach,qP=typeof Set=="function"&&Set.prototype,w_=Object.getOwnPropertyDescriptor&&qP?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,uy=qP&&w_&&typeof w_.get=="function"?w_.get:null,X3=qP&&Set.prototype.forEach,Lae=typeof WeakMap=="function"&&WeakMap.prototype,Ld=Lae?WeakMap.prototype.has:null,$ae=typeof WeakSet=="function"&&WeakSet.prototype,$d=$ae?WeakSet.prototype.has:null,Iae=typeof WeakRef=="function"&&WeakRef.prototype,Q3=Iae?WeakRef.prototype.deref:null,Dae=Boolean.prototype.valueOf,Fae=Object.prototype.toString,Bae=Function.prototype.toString,Uae=String.prototype.match,KP=String.prototype.slice,La=String.prototype.replace,zae=String.prototype.toUpperCase,J3=String.prototype.toLowerCase,y8=RegExp.prototype.test,eN=Array.prototype.concat,ao=Array.prototype.join,Vae=Array.prototype.slice,tN=Math.floor,tO=typeof BigInt=="function"?BigInt.prototype.valueOf:null,O_=Object.getOwnPropertySymbols,nO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,vc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Yn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===vc||!0)?Symbol.toStringTag:null,b8=Object.prototype.propertyIsEnumerable,nN=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function rN(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||y8.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-tN(-e):tN(e);if(r!==e){var i=String(r),o=KP.call(t,i.length+1);return La.call(i,n,"$&_")+"."+La.call(La.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return La.call(t,n,"$&_")}var rO=Rae,iN=rO.custom,oN=x8(iN)?iN:null,Wae=function e(t,n,r,i){var o=n||{};if(Ca(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ca(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Ca(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ca(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ca(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return O8(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?rN(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?rN(t,u):u}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return iO(t)?"[Array]":"[Object]";var d=lse(o,r);if(typeof i>"u")i=[];else if(w8(i,t)>=0)return"[Circular]";function h(q,W,X){if(W&&(i=Vae.call(i),i.push(W)),X){var Q={depth:o.depth};return Ca(o,"quoteStyle")&&(Q.quoteStyle=o.quoteStyle),e(q,Q,r+1,i)}return e(q,o,r+1,i)}if(typeof t=="function"&&!aN(t)){var v=Jae(t),g=rv(t,h);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+ao.call(g,", ")+" }":"")}if(x8(t)){var y=vc?La.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):nO.call(t);return typeof t=="object"&&!vc?Gf(y):y}if(ose(t)){for(var x="<"+J3.call(String(t.nodeName)),_=t.attributes||[],b=0;b<_.length;b++)x+=" "+_[b].name+"="+_8(Hae(_[b].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+J3.call(String(t.nodeName))+">",x}if(iO(t)){if(t.length===0)return"[]";var w=rv(t,h);return d&&!sse(w)?"["+oO(w,d)+"]":"[ "+ao.call(w,", ")+" ]"}if(qae(t)){var S=rv(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!b8.call(t,"cause")?"{ ["+String(t)+"] "+ao.call(eN.call("[cause]: "+h(t.cause),S),", ")+" }":S.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ao.call(S,", ")+" }"}if(typeof t=="object"&&a){if(oN&&typeof t[oN]=="function"&&rO)return rO(t,{depth:f-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ese(t)){var E=[];return Z3&&Z3.call(t,function(q,W){E.push(h(W,t,!0)+" => "+h(q,t))}),sN("Map",ly.call(t),E,d)}if(rse(t)){var P=[];return X3&&X3.call(t,function(q){P.push(h(q,t))}),sN("Set",uy.call(t),P,d)}if(tse(t))return S_("WeakMap");if(ise(t))return S_("WeakSet");if(nse(t))return S_("WeakRef");if(Yae(t))return Gf(h(Number(t)));if(Xae(t))return Gf(h(tO.call(t)));if(Zae(t))return Gf(Dae.call(t));if(Kae(t))return Gf(h(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Ks)return"{ [object globalThis] }";if(!Gae(t)&&!aN(t)){var T=rv(t,h),A=nN?nN(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",k=!A&&Yn&&Object(t)===t&&Yn in t?KP.call(gs(t),8,-1):D?"Object":"",I=A||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",F=I+(k||D?"["+ao.call(eN.call([],k||[],D||[]),": ")+"] ":"");return T.length===0?F+"{}":d?F+"{"+oO(T,d)+"}":F+"{ "+ao.call(T,", ")+" }"}return String(t)};function _8(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Hae(e){return La.call(String(e),/"/g,""")}function iO(e){return gs(e)==="[object Array]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function Gae(e){return gs(e)==="[object Date]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function aN(e){return gs(e)==="[object RegExp]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function qae(e){return gs(e)==="[object Error]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function Kae(e){return gs(e)==="[object String]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function Yae(e){return gs(e)==="[object Number]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function Zae(e){return gs(e)==="[object Boolean]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function x8(e){if(vc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!nO)return!1;try{return nO.call(e),!0}catch{}return!1}function Xae(e){if(!e||typeof e!="object"||!tO)return!1;try{return tO.call(e),!0}catch{}return!1}var Qae=Object.prototype.hasOwnProperty||function(e){return e in this};function Ca(e,t){return Qae.call(e,t)}function gs(e){return Fae.call(e)}function Jae(e){if(e.name)return e.name;var t=Uae.call(Bae.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function w8(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ese(e){if(!ly||!e||typeof e!="object")return!1;try{ly.call(e);try{uy.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function tse(e){if(!Ld||!e||typeof e!="object")return!1;try{Ld.call(e,Ld);try{$d.call(e,$d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function nse(e){if(!Q3||!e||typeof e!="object")return!1;try{return Q3.call(e),!0}catch{}return!1}function rse(e){if(!uy||!e||typeof e!="object")return!1;try{uy.call(e);try{ly.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ise(e){if(!$d||!e||typeof e!="object")return!1;try{$d.call(e,$d);try{Ld.call(e,Ld)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ose(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function O8(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return O8(KP.call(e,0,t.maxStringLength),t)+r}var i=La.call(La.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ase);return _8(i,"single",t)}function ase(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+zae.call(t.toString(16))}function Gf(e){return"Object("+e+")"}function S_(e){return e+" { ? }"}function sN(e,t,n,r){var i=r?oO(n,r):ao.call(n,", ");return e+" ("+t+") {"+i+"}"}function sse(e){for(var t=0;t<e.length;t++)if(w8(e[t],`
|
||
`)>=0)return!1;return!0}function lse(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=ao.call(Array(e.indent+1)," ");else return null;return{base:n,prev:ao.call(Array(t+1),n)}}function oO(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+ao.call(e,","+n)+`
|
||
`+t.prev}function rv(e,t){var n=iO(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Ca(e,i)?t(e[i],e):""}var o=typeof O_=="function"?O_(e):[],a;if(vc){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)Ca(e,l)&&(n&&String(Number(l))===l&&l<e.length||vc&&a["$"+l]instanceof Symbol||(y8.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof O_=="function")for(var u=0;u<o.length;u++)b8.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var S8=Zc,Xc=kae,use=Wae,cse=Ip,iv=S8("%WeakMap%",!0),ov=S8("%Map%",!0),fse=Xc("WeakMap.prototype.get",!0),dse=Xc("WeakMap.prototype.set",!0),hse=Xc("WeakMap.prototype.has",!0),pse=Xc("Map.prototype.get",!0),mse=Xc("Map.prototype.set",!0),vse=Xc("Map.prototype.has",!0),YP=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},gse=function(e,t){var n=YP(e,t);return n&&n.value},yse=function(e,t,n){var r=YP(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},bse=function(e,t){return!!YP(e,t)},_se=function(){var t,n,r,i={assert:function(o){if(!i.has(o))throw new cse("Side channel does not contain "+use(o))},get:function(o){if(iv&&o&&(typeof o=="object"||typeof o=="function")){if(t)return fse(t,o)}else if(ov){if(n)return pse(n,o)}else if(r)return gse(r,o)},has:function(o){if(iv&&o&&(typeof o=="object"||typeof o=="function")){if(t)return hse(t,o)}else if(ov){if(n)return vse(n,o)}else if(r)return bse(r,o);return!1},set:function(o,a){iv&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new iv),dse(t,o,a)):ov?(n||(n=new ov),mse(n,o,a)):(r||(r={key:{},next:null}),yse(r,o,a))}};return i},xse=String.prototype.replace,wse=/%20/g,E_={RFC1738:"RFC1738",RFC3986:"RFC3986"},ZP={default:E_.RFC3986,formatters:{RFC1738:function(e){return xse.call(e,wse,"+")},RFC3986:function(e){return String(e)}},RFC1738:E_.RFC1738,RFC3986:E_.RFC3986},Ose=ZP,P_=Object.prototype.hasOwnProperty,Hs=Array.isArray,to=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Sse=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Hs(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},E8=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},Ese=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Hs(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!P_.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return Hs(t)&&!Hs(n)&&(i=E8(t,r)),Hs(t)&&Hs(n)?(n.forEach(function(o,a){if(P_.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,r):t.push(o)}else t[a]=o}),t):Object.keys(n).reduce(function(o,a){var s=n[a];return P_.call(o,a)?o[a]=e(o[a],s,r):o[a]=s,o},i)},Pse=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},Cse=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},C_=1024,Tse=function(t,n,r,i,o){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;l+=C_){for(var u=a.length>=C_?a.slice(l,l+C_):a,f=[],d=0;d<u.length;++d){var h=u.charCodeAt(d);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===Ose.RFC1738&&(h===40||h===41)){f[f.length]=u.charAt(d);continue}if(h<128){f[f.length]=to[h];continue}if(h<2048){f[f.length]=to[192|h>>6]+to[128|h&63];continue}if(h<55296||h>=57344){f[f.length]=to[224|h>>12]+to[128|h>>6&63]+to[128|h&63];continue}d+=1,h=65536+((h&1023)<<10|u.charCodeAt(d)&1023),f[f.length]=to[240|h>>18]+to[128|h>>12&63]+to[128|h>>6&63]+to[128|h&63]}s+=f.join("")}return s},jse=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var o=n[i],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],f=a[u];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:a,prop:u}),r.push(f))}return Sse(n),t},Ase=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},kse=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Nse=function(t,n){return[].concat(t,n)},Mse=function(t,n){if(Hs(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},P8={arrayToObject:E8,assign:Pse,combine:Nse,compact:jse,decode:Cse,encode:Tse,isBuffer:kse,isRegExp:Ase,maybeMap:Mse,merge:Ese},C8=_se,Zv=P8,Id=ZP,Rse=Object.prototype.hasOwnProperty,T8={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},io=Array.isArray,Lse=Array.prototype.push,j8=function(e,t){Lse.apply(e,io(t)?t:[t])},$se=Date.prototype.toISOString,lN=Id.default,fn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Zv.encode,encodeValuesOnly:!1,format:lN,formatter:Id.formatters[lN],indices:!1,serializeDate:function(t){return $se.call(t)},skipNulls:!1,strictNullHandling:!1},Ise=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},T_={},Dse=function e(t,n,r,i,o,a,s,l,u,f,d,h,v,g,y,x,_,b){for(var w=t,S=b,E=0,P=!1;(S=S.get(T_))!==void 0&&!P;){var T=S.get(t);if(E+=1,typeof T<"u"){if(T===E)throw new RangeError("Cyclic object value");P=!0}typeof S.get(T_)>"u"&&(E=0)}if(typeof f=="function"?w=f(n,w):w instanceof Date?w=v(w):r==="comma"&&io(w)&&(w=Zv.maybeMap(w,function(B){return B instanceof Date?v(B):B})),w===null){if(a)return u&&!x?u(n,fn.encoder,_,"key",g):n;w=""}if(Ise(w)||Zv.isBuffer(w)){if(u){var A=x?n:u(n,fn.encoder,_,"key",g);return[y(A)+"="+y(u(w,fn.encoder,_,"value",g))]}return[y(n)+"="+y(String(w))]}var D=[];if(typeof w>"u")return D;var k;if(r==="comma"&&io(w))x&&u&&(w=Zv.maybeMap(w,u)),k=[{value:w.length>0?w.join(",")||null:void 0}];else if(io(f))k=f;else{var I=Object.keys(w);k=d?I.sort(d):I}var F=l?n.replace(/\./g,"%2E"):n,q=i&&io(w)&&w.length===1?F+"[]":F;if(o&&io(w)&&w.length===0)return q+"[]";for(var W=0;W<k.length;++W){var X=k[W],Q=typeof X=="object"&&typeof X.value<"u"?X.value:w[X];if(!(s&&Q===null)){var ne=h&&l?X.replace(/\./g,"%2E"):X,Z=io(w)?typeof r=="function"?r(q,ne):q:q+(h?"."+ne:"["+ne+"]");b.set(t,E);var z=C8();z.set(T_,b),j8(D,e(Q,Z,r,i,o,a,s,l,r==="comma"&&x&&io(w)?null:u,f,d,h,v,g,y,x,_,z))}}return D},Fse=function(t){if(!t)return fn;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||fn.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Id.default;if(typeof t.format<"u"){if(!Rse.call(Id.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=Id.formatters[r],o=fn.filter;(typeof t.filter=="function"||io(t.filter))&&(o=t.filter);var a;if(t.arrayFormat in T8?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=fn.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:fn.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:fn.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:fn.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:fn.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?fn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:fn.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:fn.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:fn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:fn.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:fn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:fn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:fn.strictNullHandling}},Bse=function(e,t){var n=e,r=Fse(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):io(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s=T8[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var u=C8(),f=0;f<i.length;++f){var d=i[f];r.skipNulls&&n[d]===null||j8(a,Dse(n[d],d,s,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var h=a.join(r.delimiter),v=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),h.length>0?v+h:""},gc=P8,aO=Object.prototype.hasOwnProperty,Use=Array.isArray,en={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:gc.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},zse=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},A8=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Vse="utf8=%26%2310003%3B",Wse="utf8=%E2%9C%93",Hse=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,a=i.split(n.delimiter,o),s=-1,l,u=n.charset;if(n.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===Wse?u="utf-8":a[l]===Vse&&(u="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var f=a[l],d=f.indexOf("]="),h=d===-1?f.indexOf("="):d+1,v,g;h===-1?(v=n.decoder(f,en.decoder,u,"key"),g=n.strictNullHandling?null:""):(v=n.decoder(f.slice(0,h),en.decoder,u,"key"),g=gc.maybeMap(A8(f.slice(h+1),n),function(x){return n.decoder(x,en.decoder,u,"value")})),g&&n.interpretNumericEntities&&u==="iso-8859-1"&&(g=zse(g)),f.indexOf("[]=")>-1&&(g=Use(g)?[g]:g);var y=aO.call(r,v);y&&n.duplicates==="combine"?r[v]=gc.combine(r[v],g):(!y||n.duplicates==="last")&&(r[v]=g)}return r},Gse=function(e,t,n,r){for(var i=r?t:A8(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&i===""?[]:[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,u=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,f=parseInt(u,10);!n.parseArrays&&u===""?a={0:i}:!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(a=[],a[f]=i):u!=="__proto__"&&(a[u]=i)}i=a}return i},qse=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&a.exec(o),u=l?o.slice(0,l.index):o,f=[];if(u){if(!r.plainObjects&&aO.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var d=0;r.depth>0&&(l=s.exec(o))!==null&&d<r.depth;){if(d+=1,!r.plainObjects&&aO.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+o.slice(l.index)+"]"),Gse(f,n,r,i)}},Kse=function(t){if(!t)return en;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?en.charset:t.charset,r=typeof t.duplicates>"u"?en.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:en.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:en.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:en.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:en.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:en.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:en.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:en.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:en.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:en.decoder,delimiter:typeof t.delimiter=="string"||gc.isRegExp(t.delimiter)?t.delimiter:en.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:en.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:en.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:en.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:en.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:en.strictNullHandling}},Yse=function(e,t){var n=Kse(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Hse(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=qse(s,r[s],n,typeof e=="string");i=gc.merge(i,l,n)}return n.allowSparse===!0?i:gc.compact(i)},Zse=Bse,Xse=Yse,Qse=ZP,Jse={formats:Qse,parse:Xse,stringify:Zse};const k8=st(Jse),ele=e=>({error:"border-danger",default:""})[e],tle=e=>({error:"text-danger",default:"text-muted"})[e],ea=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Pe({"col-md-12":i,"col-md-10 offset-md-1":!i});return m.jsx(nr,{className:Pe("g-0",e),children:m.jsx("div",{className:o,children:m.jsx(Er,{className:ele(r),body:!0,children:m.jsxs("h3",{className:Pe("text-center mb-0",tle(r)),children:[n&&m.jsx(je,{icon:LD,spin:!0}),n&&m.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},Ot=({title:e,children:t,bodyClassName:n,...r})=>m.jsxs(Er,{...r,children:[e&&m.jsx(pc,{role:"heading","aria-level":4,children:e}),m.jsx(hc,{className:n,children:t})]}),lr=({children:e,type:t,className:n,small:r=!1})=>m.jsx(nr,{className:n,children:m.jsx("div",{className:Pe({"col-md-10 offset-md-1":!r,"col-12":r}),children:m.jsx(Ot,{role:"document",className:Pe("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Pe({"p-2":r}),children:e})})}),XP=e=>k8.parse(e,{ignoreQueryPrefix:!0}),nb=e=>k8.stringify(e,{arrayFormat:"brackets"}),Zt=(e=!1)=>{const[t,n]=R.useState(e),r=R.useCallback(()=>n(a=>!a),[]),i=R.useCallback(()=>n(!0),[]),o=R.useCallback(()=>n(!1),[]);return[t,r,i,o]},N8=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=R.useState(e),a=R.useRef(e),s=R.useRef(),l=R.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,l]},QP=()=>{const{current:e}=R.useRef(`dom-${VP()}`);return e},ua=()=>R.useRef(null),Fp=()=>{const{search:e}=hr();return R.useMemo(()=>XP(e),[e])},M8=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=QP(),s=f=>t==null?void 0:t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},u=o?{display:"inline-block"}:{};return m.jsxs("span",{className:Pe("form-check",l,n),style:u,children:[m.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),m.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},R8=e=>m.jsx(M8,{type:"checkbox",...e}),Sl=e=>m.jsx(M8,{type:"switch",...e}),Qc=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>m.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[m.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),Xv=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=QP();return m.jsx(Qc,{label:m.jsxs(m.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:l,children:m.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:u=>n(u.target.value)})})},nle=500;let Qv;const uN=()=>{Qv&&clearTimeout(Qv),Qv=null},Bp=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=R.useState(i),l=(u,f=nle)=>{s(u),uN(),Qv=o(()=>{e(u),uN()},f)};return m.jsxs("div",{className:Pe("search-field",t),children:[m.jsx("input",{type:"text",className:Pe("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:u=>l(u.target.value)}),m.jsx(je,{icon:FZ,className:"search-field__icon"}),m.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},ca=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:l,size:u,...f})=>{const[d,h]=Zt(),v=Pe("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),g={minWidth:s&&`${s}px`};return m.jsxs(Mp,{isOpen:d,toggle:h,disabled:t,className:i,children:[m.jsx(Yc,{size:u,caret:!o,className:v,color:"primary",...f,children:e}),m.jsx(Kc,{className:"w-100",end:a,style:g,children:r})]})},rb=({children:e,minWidth:t,label:n="Options"})=>m.jsx(ca,{text:m.jsx(je,{className:"px-1",icon:jZ}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Dd=({children:e,...t})=>m.jsx(TP,{children:m.jsx(A5,{className:"nav-pills__nav-link",tag:_D,...t,children:e})}),L8=({children:e,fill:t=!1,className:n=""})=>m.jsx(Er,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:m.jsx(CP,{pills:!0,fill:t,children:R.Children.map(e,r=>{if(!R.isValidElement(r)||r.type!==Dd)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),ib=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",$8=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),rle=e=>e.dir?`${e.field}-${e.dir}`:void 0,ile=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Up({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=ib(s,t.field,t.dir);n(l?s:void 0,l)};return m.jsxs($p,{children:[m.jsxs(Yc,{caret:!0,color:r?"primary":"link",className:Pe({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&m.jsx(m.Fragment,{children:"Order by"}),r&&!t.field&&m.jsx("i",{children:"Order by..."}),r&&t.field&&m.jsxs(m.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",m.jsx("small",{children:t.dir??"DESC"})]})]}),m.jsxs(Kc,{end:i,className:Pe("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>m.jsxs(Ne,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&m.jsx(je,{icon:t.dir==="ASC"?MZ:gZ,className:"ordering-dropdown__sort-icon"})]},s)),m.jsx(Ne,{divider:!0}),m.jsx(Ne,{disabled:!t.field,onClick:()=>n(),children:m.jsx("i",{children:"Clear selection"})})]})]})}const Th="#4696e5",ole="rgba(70, 150, 229, 0.4)",sO="#f77f28",ale="rgba(247, 127, 40, 0.4)",sle="white",lle="#161b22",ule=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},JP=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},eC=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",cle=R.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=Zt(),a=R.useCallback(()=>{o(),n()},[n,o]);return m.jsxs(s8,{className:"app-update-banner",isOpen:e,toggle:t,tag:Ot,color:"secondary",innerRef:r,children:[m.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),m.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",m.jsxs(Ye,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&m.jsxs(m.Fragment,{children:["Restart now ",m.jsx(je,{icon:HZ,className:"ms-1"})]}),i&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})}),I8=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(Ot,{className:"p-4",children:[m.jsx("h2",{children:"Oops! We could not find requested route."}),m.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),m.jsx("br",{}),m.jsx(Pt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Wi(e){return R.useRef(e).current}function Hi(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const fle=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},D8=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var x;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:l,EditServer:u,Settings:f,ManageServers:d,ShlinkVersionsContainer:h}=Wi(D8),v=hr(),g=R.useRef(t),y=v.pathname==="/";return R.useEffect(()=>{Object.keys(g.current).length===0&&e()},[e]),R.useEffect(()=>{var _;ule(((_=n.ui)==null?void 0:_.theme)??eC())},[(x=n.ui)==null?void 0:x.theme]),m.jsxs("div",{className:"container-fluid app-container",children:[m.jsx(o,{}),m.jsxs("div",{className:"app",children:[m.jsx("div",{className:Pe("shlink-wrapper",{"d-flex d-md-block align-items-center":y}),children:m.jsxs(H0,{children:[m.jsx(lt,{index:!0,element:m.jsx(a,{})}),m.jsx(lt,{path:"/settings/*",element:m.jsx(f,{})}),m.jsx(lt,{path:"/manage-servers",element:m.jsx(d,{})}),m.jsx(lt,{path:"/server/create",element:m.jsx(l,{})}),m.jsx(lt,{path:"/server/:serverId/edit",element:m.jsx(u,{})}),m.jsx(lt,{path:"/server/:serverId/*",element:m.jsx(s,{})}),m.jsx(lt,{path:"*",element:m.jsx(I8,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(h,{})})]}),m.jsx(cle,{isOpen:r,toggle:i,forceUpdate:fle})]})},dle=Hi(D8,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function In(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 hle=typeof Symbol=="function"&&Symbol.observable||"@@observable",cN=hle,j_=()=>Math.random().toString(36).substring(7).split("").join("."),ple={INIT:`@@redux/INIT${j_()}`,REPLACE:`@@redux/REPLACE${j_()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${j_()}`},cy=ple;function tC(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 F8(e,t,n){if(typeof e!="function")throw new Error(In(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(In(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(In(1));return n(F8)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((x,_)=>{a.set(_,x)}))}function f(){if(l)throw new Error(In(3));return i}function d(x){if(typeof x!="function")throw new Error(In(4));if(l)throw new Error(In(5));let _=!0;u();const b=s++;return a.set(b,x),function(){if(_){if(l)throw new Error(In(6));_=!1,u(),a.delete(b),o=null}}}function h(x){if(!tC(x))throw new Error(In(7));if(typeof x.type>"u")throw new Error(In(8));if(typeof x.type!="string")throw new Error(In(17));if(l)throw new Error(In(9));try{l=!0,i=r(i,x)}finally{l=!1}return(o=a).forEach(b=>{b()}),x}function v(x){if(typeof x!="function")throw new Error(In(10));r=x,h({type:cy.REPLACE})}function g(){const x=d;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(In(11));function b(){const S=_;S.next&&S.next(f())}return b(),{unsubscribe:x(b)}},[cN](){return this}}}return h({type:cy.INIT}),{dispatch:h,subscribe:d,getState:f,replaceReducer:v,[cN]:g}}function mle(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:cy.INIT})>"u")throw new Error(In(12));if(typeof n(void 0,{type:cy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(In(13))})}function nC(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let i;try{mle(n)}catch(o){i=o}return function(a={},s){if(i)throw i;let l=!1;const u={};for(let f=0;f<r.length;f++){const d=r[f],h=n[d],v=a[d],g=h(v,s);if(typeof g>"u")throw s&&s.type,new Error(In(14));u[d]=g,l=l||g!==v}return l=l||r.length!==Object.keys(a).length,l?u:a}}function fy(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function vle(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(In(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=fy(...s)(i.dispatch),{...i,dispatch:o}}}function gle(e){return tC(e)&&"type"in e&&typeof e.type=="string"}var B8=Symbol.for("immer-nothing"),fN=Symbol.for("immer-draftable"),zr=Symbol.for("immer-state");function Ni(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var yc=Object.getPrototypeOf;function is(e){return!!e&&!!e[zr]}function ta(e){var t;return e?U8(e)||Array.isArray(e)||!!e[fN]||!!((t=e.constructor)!=null&&t[fN])||ab(e)||sb(e):!1}var yle=Object.prototype.constructor.toString();function U8(e){if(!e||typeof e!="object")return!1;const t=yc(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===yle}function jh(e,t){ob(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function ob(e){const t=e[zr];return t?t.type_:Array.isArray(e)?1:ab(e)?2:sb(e)?3:0}function lO(e,t){return ob(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function z8(e,t,n){const r=ob(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function ble(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ab(e){return e instanceof Map}function sb(e){return e instanceof Set}function Fs(e){return e.copy_||e.base_}function uO(e,t){if(ab(e))return new Map(e);if(sb(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&U8(e))return yc(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[zr];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(yc(e),n)}function rC(e,t=!1){return lb(e)||is(e)||!ta(e)||(ob(e)>1&&(e.set=e.add=e.clear=e.delete=_le),Object.freeze(e),t&&jh(e,(n,r)=>rC(r,!0))),e}function _le(){Ni(2)}function lb(e){return Object.isFrozen(e)}var xle={};function El(e){const t=xle[e];return t||Ni(0,e),t}var Ah;function V8(){return Ah}function wle(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function dN(e,t){t&&(El("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cO(e){fO(e),e.drafts_.forEach(Ole),e.drafts_=null}function fO(e){e===Ah&&(Ah=e.parent_)}function hN(e){return Ah=wle(Ah,e)}function Ole(e){const t=e[zr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function pN(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[zr].modified_&&(cO(t),Ni(4)),ta(e)&&(e=dy(t,e),t.parent_||hy(t,e)),t.patches_&&El("Patches").generateReplacementPatches_(n[zr].base_,e,t.patches_,t.inversePatches_)):e=dy(t,n,[]),cO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==B8?e:void 0}function dy(e,t,n){if(lb(t))return t;const r=t[zr];if(!r)return jh(t,(i,o)=>mN(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return hy(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),jh(o,(s,l)=>mN(e,r,i,s,l,n,a)),hy(e,i,!1),n&&e.patches_&&El("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function mN(e,t,n,r,i,o,a){if(is(i)){const s=o&&t&&t.type_!==3&&!lO(t.assigned_,r)?o.concat(r):void 0,l=dy(e,i,s);if(z8(n,r,l),is(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(ta(i)&&!lb(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;dy(e,i),(!t||!t.scope_.parent_)&&hy(e,i)}}function hy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&rC(t,n)}function Sle(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:V8(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=iC;n&&(i=[r],o=kh);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var iC={get(e,t){if(t===zr)return e;const n=Fs(e);if(!lO(n,t))return Ele(e,n,t);const r=n[t];return e.finalized_||!ta(r)?r:r===A_(e.base_,t)?(k_(e),e.copy_[t]=hO(r,e)):r},has(e,t){return t in Fs(e)},ownKeys(e){return Reflect.ownKeys(Fs(e))},set(e,t,n){const r=W8(Fs(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=A_(Fs(e),t),o=i==null?void 0:i[zr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(ble(n,i)&&(n!==void 0||lO(e.base_,t)))return!0;k_(e),dO(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return A_(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,k_(e),dO(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Fs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ni(11)},getPrototypeOf(e){return yc(e.base_)},setPrototypeOf(){Ni(12)}},kh={};jh(iC,(e,t)=>{kh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});kh.deleteProperty=function(e,t){return kh.set.call(this,e,t,void 0)};kh.set=function(e,t,n){return iC.set.call(this,e[0],t,n,e[0])};function A_(e,t){const n=e[zr];return(n?Fs(n):e)[t]}function Ele(e,t,n){var i;const r=W8(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function W8(e,t){if(!(t in e))return;let n=yc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=yc(n)}}function dO(e){e.modified_||(e.modified_=!0,e.parent_&&dO(e.parent_))}function k_(e){e.copy_||(e.copy_=uO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ple=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...u){return a.produce(l,f=>n.call(this,f,...u))}}typeof n!="function"&&Ni(6),r!==void 0&&typeof r!="function"&&Ni(7);let i;if(ta(t)){const o=hN(this),a=hO(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?cO(o):fO(o)}return dN(o,r),pN(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===B8&&(i=void 0),this.autoFreeze_&&rC(i,!0),r){const o=[],a=[];El("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Ni(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ta(e)||Ni(8),is(e)&&(e=H8(e));const t=hN(this),n=hO(e,void 0);return n[zr].isManual_=!0,fO(t),n}finishDraft(e,t){const n=e&&e[zr];(!n||!n.isManual_)&&Ni(9);const{scope_:r}=n;return dN(r,t),pN(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=El("Patches").applyPatches_;return is(e)?r(e,t):this.produce(e,i=>r(i,t))}};function hO(e,t){const n=ab(e)?El("MapSet").proxyMap_(e,t):sb(e)?El("MapSet").proxySet_(e,t):Sle(e,t);return(t?t.scope_:V8()).drafts_.push(n),n}function H8(e){return is(e)||Ni(10,e),G8(e)}function G8(e){if(!ta(e)||lb(e))return e;const t=e[zr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=uO(e,t.scope_.immer_.useStrictShallowCopy_)}else n=uO(e,!0);return jh(n,(r,i)=>{z8(n,r,G8(i))}),t&&(t.finalized_=!1),n}var Vr=new Ple,q8=Vr.produce;Vr.produceWithPatches.bind(Vr);Vr.setAutoFreeze.bind(Vr);Vr.setUseStrictShallowCopy.bind(Vr);Vr.applyPatches.bind(Vr);Vr.createDraft.bind(Vr);Vr.finishDraft.bind(Vr);function Cle(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Tle(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function jle(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var vN=e=>Array.isArray(e)?e:[e];function Ale(e){const t=Array.isArray(e[0])?e[0]:e;return jle(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function kle(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Nle=class{constructor(e){this.value=e}deref(){return this.value}},Mle=typeof WeakRef<"u"?WeakRef:Nle,Rle=0,gN=1;function av(){return{s:Rle,v:void 0,o:null,p:null}}function oC(e,t={}){let n=av();const{resultEqualityCheck:r}=t;let i,o=0;function a(){var d;let s=n;const{length:l}=arguments;for(let h=0,v=l;h<v;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=s.o;y===null&&(s.o=y=new WeakMap);const x=y.get(g);x===void 0?(s=av(),y.set(g,s)):s=x}else{let y=s.p;y===null&&(s.p=y=new Map);const x=y.get(g);x===void 0?(s=av(),y.set(g,s)):s=x}}const u=s;let f;if(s.s===gN?f=s.v:(f=e.apply(null,arguments),o++),u.s=gN,r){const h=((d=i==null?void 0:i.deref)==null?void 0:d.call(i))??i;h!=null&&r(h,f)&&(f=h,o!==0&&o--),i=typeof f=="object"&&f!==null||typeof f=="function"?new Mle(f):f}return u.v=f,f}return a.clearCache=()=>{n=av(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function K8(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),Cle(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const f={...n,...l},{memoize:d,memoizeOptions:h=[],argsMemoize:v=oC,argsMemoizeOptions:g=[],devModeChecks:y={}}=f,x=vN(h),_=vN(g),b=Ale(i),w=d(function(){return o++,u.apply(null,arguments)},...x),S=v(function(){a++;const P=kle(b,arguments);return s=w.apply(null,P),s},..._);return Object.assign(S,{resultFunc:u,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var Lle=K8(oC),$le=Object.assign((e,t=Lle)=>{Tle(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>$le});function Y8(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Ile=Y8(),Dle=Y8,Fle=(...e)=>{const t=K8(...e),n=Object.assign((...r)=>{const i=t(...r),o=(a,...s)=>i(is(a)?H8(a):a,...s);return Object.assign(o,i),o},{withTypes:()=>n});return n};Fle(oC);var Ble=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fy:fy.apply(null,arguments)},Ule=e=>e&&typeof e.match=="function";function mn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Or(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>gle(r)&&r.type===e,n}var Z8=class pd extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,pd.prototype)}static get[Symbol.species](){return pd}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new pd(...t[0].concat(this)):new pd(...t.concat(this))}};function yN(e){return ta(e)?q8(e,()=>{}):e}function bN(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Or(10));const r=n.insert(t,e);return e.set(t,r),r}function zle(e){return typeof e=="boolean"}var Vle=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new Z8;return n&&(zle(n)?a.push(Ile):a.push(Dle(n.extraArgument))),a},Wle="RTK_autoBatch",X8=e=>t=>{setTimeout(t,e)},Hle=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:X8(10),Gle=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Hle:e.type==="callback"?e.queueNotification:X8(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const d=()=>i&&f(),h=r.subscribe(d);return s.add(f),()=>{h(),s.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[Wle]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(f)}finally{i=!0}}})},qle=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Z8(e);return r&&i.push(Gle(typeof r=="object"?r:void 0)),i},Kle=!0;function Q8(e){const t=Vle(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(tC(n))s=nC(n);else throw new Error(Or(1));let l;typeof r=="function"?l=r(t):l=t();let u=fy;i&&(u=Ble({trace:!Kle,...typeof i=="object"&&i}));const f=vle(...l),d=qle(f);let h=typeof a=="function"?a(d):d();const v=u(...h);return F8(s,o,v)}function J8(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(Or(28));if(s in t)throw new Error(Or(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Yle(e){return typeof e=="function"}function Zle(e,t){let[n,r,i]=J8(t),o;if(Yle(e))o=()=>yN(e());else{const s=yN(e);o=()=>s}function a(s=o(),l){let u=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return u.filter(f=>!!f).length===0&&(u=[i]),u.reduce((f,d)=>{if(d)if(is(f)){const v=d(f,l);return v===void 0?f:v}else{if(ta(f))return q8(f,h=>d(h,l));{const h=d(f,l);if(h===void 0){if(f===null)return f;throw new Error(Or(9))}return h}}return f},s)}return a.getInitialState=o,a}var Xle="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",eF=(e=21)=>{let t="",n=e;for(;n--;)t+=Xle[Math.random()*64|0];return t},Qle=(e,t)=>Ule(e)?e.match(t):e(t);function Jle(...e){return t=>e.some(n=>Qle(n,t))}var eue=["name","message","stack","code"],N_=class{constructor(e,t){Xl(this,"_type");this.payload=e,this.meta=t}},_N=class{constructor(e,t){Xl(this,"_type");this.payload=e,this.meta=t}},tue=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of eue)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},tF=(()=>{function e(t,n,r){const i=mn(t+"/fulfilled",(l,u,f,d)=>({payload:l,meta:{...d||{},arg:f,requestId:u,requestStatus:"fulfilled"}})),o=mn(t+"/pending",(l,u,f)=>({payload:void 0,meta:{...f||{},arg:u,requestId:l,requestStatus:"pending"}})),a=mn(t+"/rejected",(l,u,f,d,h)=>({payload:d,error:(r&&r.serializeError||tue)(l||"Rejected"),meta:{...h||{},arg:f,requestId:u,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,f,d)=>{const h=r!=null&&r.idGenerator?r.idGenerator(l):eF(),v=new AbortController;let g,y;function x(b){y=b,v.abort()}const _=async function(){var S,E;let b;try{let P=(S=r==null?void 0:r.condition)==null?void 0:S.call(r,l,{getState:f,extra:d});if(rue(P)&&(P=await P),P===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((A,D)=>{g=()=>{D({name:"AbortError",message:y||"Aborted"})},v.signal.addEventListener("abort",g)});u(o(h,l,(E=r==null?void 0:r.getPendingMeta)==null?void 0:E.call(r,{requestId:h,arg:l},{getState:f,extra:d}))),b=await Promise.race([T,Promise.resolve(n(l,{dispatch:u,getState:f,extra:d,requestId:h,signal:v.signal,abort:x,rejectWithValue:(A,D)=>new N_(A,D),fulfillWithValue:(A,D)=>new _N(A,D)})).then(A=>{if(A instanceof N_)throw A;return A instanceof _N?i(A.payload,h,l,A.meta):i(A,h,l)})])}catch(P){b=P instanceof N_?a(null,h,l,P.payload,P.meta):a(P,h,l)}finally{g&&v.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&a.match(b)&&b.meta.condition||u(b),b}();return Object.assign(_,{abort:x,requestId:h,arg:l,unwrap(){return _.then(nue)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:Jle(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function nue(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function rue(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var iue=Symbol.for("rtk-slice-createasyncthunk");function oue(e,t){return`${e}/${t}`}function aue({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[iue];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Or(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(lue()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(w,S){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(Or(12));if(E in u.sliceCaseReducersByType)throw new Error(Or(13));return u.sliceCaseReducersByType[E]=S,f},addMatcher(w,S){return u.sliceMatchers.push({matcher:w,reducer:S}),f},exposeAction(w,S){return u.actionCreators[w]=S,f},exposeCaseReducer(w,S){return u.sliceCaseReducersByName[w]=S,f}};l.forEach(w=>{const S=s[w],E={reducerName:w,type:oue(o,w),createNotation:typeof i.reducers=="function"};cue(S)?due(E,S,f,t):uue(E,S,f)});function d(){const[w={},S=[],E=void 0]=typeof i.extraReducers=="function"?J8(i.extraReducers):[i.extraReducers],P={...w,...u.sliceCaseReducersByType};return Zle(i.initialState,T=>{for(let A in P)T.addCase(A,P[A]);for(let A of u.sliceMatchers)T.addMatcher(A.matcher,A.reducer);for(let A of S)T.addMatcher(A.matcher,A.reducer);E&&T.addDefaultCase(E)})}const h=w=>w,v=new Map;let g;function y(w,S){return g||(g=d()),g(w,S)}function x(){return g||(g=d()),g.getInitialState()}function _(w,S=!1){function E(T){let A=T[w];return typeof A>"u"&&S&&(A=x()),A}function P(T=h){const A=bN(v,S,{insert:()=>new WeakMap});return bN(A,T,{insert:()=>{const D={};for(const[k,I]of Object.entries(i.selectors??{}))D[k]=sue(I,T,x,S);return D}})}return{reducerPath:w,getSelectors:P,get selectors(){return P(E)},selectSlice:E}}const b={name:o,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,..._(a),injectInto(w,{reducerPath:S,...E}={}){const P=S??a;return w.inject({reducerPath:P,reducer:y},E),{...b,..._(P,!0)}}};return b}}function sue(e,t,n,r){function i(o,...a){let s=t(o);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}var nn=aue();function lue(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function uue({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!fue(r))throw new Error(Or(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?mn(e,a):mn(e))}function cue(e){return e._reducerDefinitionType==="asyncThunk"}function fue(e){return e._reducerDefinitionType==="reducerWithPrepare"}function due({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Or(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:f}=n,d=i(e,o,f);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||sv,pending:s||sv,rejected:l||sv,settled:u||sv})}function sv(){}var hue=(e,t)=>{if(typeof e!="function")throw new Error(Or(32))},aC="listenerMiddleware",pue=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=mn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Or(21));return hue(o),{predicate:i,type:t,effect:o}},mue=Object.assign(e=>{const{type:t,predicate:n,effect:r}=pue(e);return{id:eF(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Or(22))}}},{withTypes:()=>mue}),vue=Object.assign(mn(`${aC}/add`),{withTypes:()=>vue});mn(`${aC}/removeAll`);var gue=Object.assign(mn(`${aC}/remove`),{withTypes:()=>gue});function Or(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:yue,reducer:bue}=nn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:_ue,resetAppUpdate:xue}=yue,wue=bue,Oue=(e,t)=>{e.factory("App",dle),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>_ue),e.serviceFactory("resetAppUpdate",()=>xue)},xN={"Content-Type":"application/json"},wN=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...xN}}:{headers:xN}:e;let Sue=class{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,wN(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,wN(n)).then(async r=>{if(!r.ok)throw await r.json()})}};var sC=(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))(sC||{});const nF=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),Eue=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),M_=e=>Object.prototype.toString.call(e)==="[object Object]",rF=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const o=t(...r);return n[i]=o,o}},ub=(e,t)=>{const n={...e};return!M_(e)||!M_(t)||Object.keys(t).forEach(r=>{M_(t[r])?n[r]=r in e&&e[r]!==void 0?ub(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},lC=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Pue=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),qu=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},ON=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]]));function Ke(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function zi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function uC(e,t){const n=Ke(e);return isNaN(t)?zi(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Cue(e,t){const n=Ke(e);if(isNaN(t))return zi(e,NaN);if(!t)return n;const r=n.getDate(),i=zi(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const o=i.getDate();return r>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function Tue(e,t){const{years:n=0,months:r=0,weeks:i=0,days:o=0,hours:a=0,minutes:s=0,seconds:l=0}=t,u=Ke(e),f=r||n?Cue(u,r+n*12):u,d=o||i?uC(f,o+i*7):f,h=s+a*60,g=(l+h*60)*1e3;return zi(e,d.getTime()+g)}const iF=6048e5,jue=864e5,oF=6e4,cC=36e5,lv=43200,SN=1440;let Aue={};function Jc(){return Aue}function Nh(e,t){var s,l,u,f;const n=Jc(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,i=Ke(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Mh(e){return Nh(e,{weekStartsOn:1})}function aF(e){const t=Ke(e),n=t.getFullYear(),r=zi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Mh(r),o=zi(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Mh(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Pl(e){const t=Ke(e);return t.setHours(0,0,0,0),t}function py(e){const t=Ke(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function sF(e,t){const n=Pl(e),r=Pl(t),i=+n-py(n),o=+r-py(r);return Math.round((i-o)/jue)}function kue(e){const t=aF(e),n=zi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Mh(n)}function lF(e){let t;return e.forEach(function(n){const r=Ke(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function Nue(e){let t;return e.forEach(n=>{const r=Ke(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function Jv(e,t){const n=Ke(e),r=Ke(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Mue(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Rue(e){if(!Mue(e)&&typeof e!="number")return!1;const t=Ke(e);return!isNaN(Number(t))}function Lue(e,t){const n=Ke(e),r=Ke(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function zp(e,t){const n=Ke(e),r=Ke(t),i=EN(n,r),o=Math.abs(sF(n,r));n.setDate(n.getDate()-i*o);const a=+(EN(n,r)===-i),s=i*(o-a);return s===0?0:s}function EN(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function fC(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function uF(e,t){return+Ke(e)-+Ke(t)}function $ue(e,t,n){const r=uF(e,t)/cC;return fC(n==null?void 0:n.roundingMethod)(r)}function bc(e){const t=Ke(e);return t.setHours(23,59,59,999),t}function Iue(e){const t=Ke(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Due(e){const t=Ke(e);return+bc(t)==+Iue(t)}function my(e,t){const n=Ke(e),r=Ke(t),i=Jv(n,r),o=Math.abs(Lue(n,r));let a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);let s=Jv(n,r)===-i;Due(Ke(e))&&o===1&&Jv(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function Fue(e,t,n){const r=uF(e,t)/1e3;return fC(n==null?void 0:n.roundingMethod)(r)}function Bue(e,t,n){const r=zp(e,t)/7;return fC(n==null?void 0:n.roundingMethod)(r)}function Uue(e){const t=Ke(e),n=zi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function zue(e,t){var s,l,u,f;const n=Jc(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,i=Ke(e),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}function Vue(e){return zue(e,{weekStartsOn:1})}const Wue={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"}},Hue=(e,t,n)=>{let r;const i=Wue[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function R_(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Gue={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},que={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kue={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yue={date:R_({formats:Gue,defaultWidth:"full"}),time:R_({formats:que,defaultWidth:"full"}),dateTime:R_({formats:Kue,defaultWidth:"full"})},Zue={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xue=(e,t,n,r)=>Zue[e];function qf(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Que={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jue={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ece={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"]},tce={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"]},nce={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"}},rce={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"}},ice=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},oce={ordinalNumber:ice,era:qf({values:Que,defaultWidth:"wide"}),quarter:qf({values:Jue,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qf({values:ece,defaultWidth:"wide"}),day:qf({values:tce,defaultWidth:"wide"}),dayPeriod:qf({values:nce,defaultWidth:"wide",formattingValues:rce,defaultFormattingWidth:"wide"})};function Kf(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?sce(s,d=>d.test(a)):ace(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function ace(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function sce(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function lce(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const uce=/^(\d+)(th|st|nd|rd)?/i,cce=/\d+/i,fce={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},dce={any:[/^b/i,/^(a|c)/i]},hce={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pce={any:[/1/i,/2/i,/3/i,/4/i]},mce={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},vce={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]},gce={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},yce={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]},bce={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},_ce={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}},xce={ordinalNumber:lce({matchPattern:uce,parsePattern:cce,valueCallback:e=>parseInt(e,10)}),era:Kf({matchPatterns:fce,defaultMatchWidth:"wide",parsePatterns:dce,defaultParseWidth:"any"}),quarter:Kf({matchPatterns:hce,defaultMatchWidth:"wide",parsePatterns:pce,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Kf({matchPatterns:mce,defaultMatchWidth:"wide",parsePatterns:vce,defaultParseWidth:"any"}),day:Kf({matchPatterns:gce,defaultMatchWidth:"wide",parsePatterns:yce,defaultParseWidth:"any"}),dayPeriod:Kf({matchPatterns:bce,defaultMatchWidth:"any",parsePatterns:_ce,defaultParseWidth:"any"})},cF={code:"en-US",formatDistance:Hue,formatLong:Yue,formatRelative:Xue,localize:oce,match:xce,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wce(e){const t=Ke(e);return sF(t,Uue(t))+1}function Oce(e){const t=Ke(e),n=+Mh(t)-+kue(t);return Math.round(n/iF)+1}function fF(e,t){var f,d,h,v;const n=Ke(e),r=n.getFullYear(),i=Jc(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(h=i.locale)==null?void 0:h.options)==null?void 0:v.firstWeekContainsDate)??1,a=zi(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Nh(a,t),l=zi(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=Nh(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Sce(e,t){var s,l,u,f;const n=Jc(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,i=fF(e,t),o=zi(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Nh(o,t)}function Ece(e,t){const n=Ke(e),r=+Nh(n,t)-+Sce(n,t);return Math.round(r/iF)+1}function rt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ba={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return rt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):rt(n+1,2)},d(e,t){return rt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return rt(e.getHours()%12||12,t.length)},H(e,t){return rt(e.getHours(),t.length)},m(e,t){return rt(e.getMinutes(),t.length)},s(e,t){return rt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return rt(i,t.length)}},ou={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},PN={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return ba.y(e,t)},Y:function(e,t,n,r){const i=fF(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return rt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):rt(o,t.length)},R:function(e,t){const n=aF(e);return rt(n,t.length)},u:function(e,t){const n=e.getFullYear();return rt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ba.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Ece(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):rt(i,t.length)},I:function(e,t,n){const r=Oce(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):rt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ba.d(e,t)},D:function(e,t,n){const r=wce(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):rt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return rt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return rt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return rt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ou.noon:r===0?i=ou.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ou.evening:r>=12?i=ou.afternoon:r>=4?i=ou.morning:i=ou.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ba.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ba.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ba.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ba.s(e,t)},S:function(e,t){return ba.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return TN(r);case"XXXX":case"XX":return Bs(r);case"XXXXX":case"XXX":default:return Bs(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return TN(r);case"xxxx":case"xx":return Bs(r);case"xxxxx":case"xxx":default:return Bs(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+CN(r,":");case"OOOO":default:return"GMT"+Bs(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+CN(r,":");case"zzzz":default:return"GMT"+Bs(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return rt(r,t.length)},T:function(e,t,n){const r=e.getTime();return rt(r,t.length)}};function CN(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+rt(o,2)}function TN(e,t){return e%60===0?(e>0?"-":"+")+rt(Math.abs(e)/60,2):Bs(e,t)}function Bs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=rt(Math.trunc(r/60),2),o=rt(r%60,2);return n+i+t+o}const jN=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},dF=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Pce=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return jN(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",jN(r,t)).replace("{{time}}",dF(i,t))},Cce={p:dF,P:Pce},Tce=/^D+$/,jce=/^Y+$/,Ace=["D","DD","YY","YYYY"];function kce(e){return Tce.test(e)}function Nce(e){return jce.test(e)}function Mce(e,t,n){const r=Rce(e,t,n);if(console.warn(r),Ace.includes(e))throw new RangeError(r)}function Rce(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Lce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$ce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ice=/^'([^]*?)'?$/,Dce=/''/g,Fce=/[a-zA-Z]/;function vy(e,t,n){var f,d,h,v,g,y,x,_;const r=Jc(),i=(n==null?void 0:n.locale)??r.locale??cF,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((v=(h=r.locale)==null?void 0:h.options)==null?void 0:v.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((y=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((_=(x=r.locale)==null?void 0:x.options)==null?void 0:_.weekStartsOn)??0,s=Ke(e);if(!Rue(s))throw new RangeError("Invalid time value");let l=t.match($ce).map(b=>{const w=b[0];if(w==="p"||w==="P"){const S=Cce[w];return S(b,i.formatLong)}return b}).join("").match(Lce).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const w=b[0];if(w==="'")return{isToken:!1,value:Bce(b)};if(PN[w])return{isToken:!0,value:b};if(w.match(Fce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:b}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(b=>{if(!b.isToken)return b.value;const w=b.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Nce(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&kce(w))&&Mce(w,t,String(e));const S=PN[w[0]];return S(s,w,i.localize,u)}).join("")}function Bce(e){const t=e.match(Ice);return t?t[1].replace(Dce,"'"):e}function Uce(e,t,n){const r=Jc(),i=(n==null?void 0:n.locale)??r.locale??cF,o=2520,a=Jv(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a});let l,u;a>0?(l=Ke(t),u=Ke(e)):(l=Ke(e),u=Ke(t));const f=Fue(u,l),d=(py(u)-py(l))/1e3,h=Math.round((f-d)/60);let v;if(h<2)return n!=null&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,s):f<10?i.formatDistance("lessThanXSeconds",10,s):f<20?i.formatDistance("lessThanXSeconds",20,s):f<40?i.formatDistance("halfAMinute",0,s):f<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):h===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",h,s);if(h<45)return i.formatDistance("xMinutes",h,s);if(h<90)return i.formatDistance("aboutXHours",1,s);if(h<SN){const g=Math.round(h/60);return i.formatDistance("aboutXHours",g,s)}else{if(h<o)return i.formatDistance("xDays",1,s);if(h<lv){const g=Math.round(h/SN);return i.formatDistance("xDays",g,s)}else if(h<lv*2)return v=Math.round(h/lv),i.formatDistance("aboutXMonths",v,s)}if(v=my(u,l),v<12){const g=Math.round(h/lv);return i.formatDistance("xMonths",g,s)}else{const g=v%12,y=Math.trunc(v/12);return g<3?i.formatDistance("aboutXYears",y,s):g<9?i.formatDistance("overXYears",y,s):i.formatDistance("almostXYears",y+1,s)}}function zce(e,t){const n=Ke(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended",i=(t==null?void 0:t.representation)??"complete";let o="",a="";const s=r==="extended"?"-":"",l=r==="extended"?":":"";if(i!=="time"){const u=rt(n.getDate(),2),f=rt(n.getMonth()+1,2);o=`${rt(n.getFullYear(),4)}${s}${f}${s}${u}`}if(i!=="date"){const u=n.getTimezoneOffset();if(u!==0){const y=Math.abs(u),x=rt(Math.trunc(y/60),2),_=rt(y%60,2);a=`${u<0?"+":"-"}${x}:${_}`}else a="Z";const f=rt(n.getHours(),2),d=rt(n.getMinutes(),2),h=rt(n.getSeconds(),2),v=o===""?"":"T",g=[f,d,h].join(l);o=`${o}${v}${g}${a}`}return o}function Vce(e){return Math.trunc(+Ke(e)/1e3)}function Wce(e,t){const n=Ke(e),r=Ke(t);return n.getTime()>r.getTime()}function gy(e,t){const n=Ke(e),r=Ke(t);return+n<+r}function pO(e,t){const n=Ke(e),r=Ke(t);return+n==+r}function Hce(e,t){const n=+Ke(e),[r,i]=[+Ke(t.start),+Ke(t.end)].sort((o,a)=>o-a);return n>=r&&n<=i}function yy(e,t){return uC(e,-t)}function os(e,t){const n=(t==null?void 0:t.additionalDigits)??2,r=Yce(e);let i;if(r.date){const l=Zce(r.date,n);i=Xce(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=Qce(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=Jce(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(o+a+s)}const uv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Gce=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qce=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Kce=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Yce(e){const t={},n=e.split(uv.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],uv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(uv.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=uv.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Zce(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Xce(e,t){if(t===null)return new Date(NaN);const n=e.match(Gce);if(!n)return new Date(NaN);const r=!!n[4],i=Yf(n[1]),o=Yf(n[2])-1,a=Yf(n[3]),s=Yf(n[4]),l=Yf(n[5])-1;if(r)return ife(t,s,l)?efe(t,s,l):new Date(NaN);{const u=new Date(0);return!nfe(t,o,a)||!rfe(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function Yf(e){return e?parseInt(e):1}function Qce(e){const t=e.match(qce);if(!t)return NaN;const n=L_(t[1]),r=L_(t[2]),i=L_(t[3]);return ofe(n,r,i)?n*cC+r*oF+i*1e3:NaN}function L_(e){return e&&parseFloat(e.replace(",","."))||0}function Jce(e){if(e==="Z")return 0;const t=e.match(Kce);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return afe(r,i)?n*(r*cC+i*oF):NaN}function efe(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const tfe=[31,null,31,30,31,30,31,31,30,31,30,31];function hF(e){return e%400===0||e%4===0&&e%100!==0}function nfe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(tfe[t]||(hF(e)?29:28))}function rfe(e,t){return t>=1&&t<=(hF(e)?366:365)}function ife(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function ofe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function afe(e,t){return t>=0&&t<=59}const Sr=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),sfe="Left",lfe="Right",ufe="Up",cfe="Down",Ru={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},mO={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},AN="mousemove",kN="mouseup",ffe="touchend",dfe="touchmove",hfe="touchstart";function pfe(e,t,n,r){return e>t?n>0?lfe:sfe:r>0?cfe:ufe}function NN(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function mfe(e,t){const n=f=>{const d="touches"in f;d&&f.touches.length>1||e((h,v)=>{v.trackMouse&&!d&&(document.addEventListener(AN,r),document.addEventListener(kN,a));const{clientX:g,clientY:y}=d?f.touches[0]:f,x=NN([g,y],v.rotationAngle);return v.onTouchStartOrOnMouseDown&&v.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},h),mO),{initial:x.slice(),xy:x,start:f.timeStamp||0})})},r=f=>{e((d,h)=>{const v="touches"in f;if(v&&f.touches.length>1)return d;if(f.timeStamp-d.start>h.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:y}=v?f.touches[0]:f,[x,_]=NN([g,y],h.rotationAngle),b=x-d.xy[0],w=_-d.xy[1],S=Math.abs(b),E=Math.abs(w),P=(f.timeStamp||0)-d.start,T=Math.sqrt(S*S+E*E)/(P||1),A=[b/(P||1),w/(P||1)],D=pfe(S,E,b,w),k=typeof h.delta=="number"?h.delta:h.delta[D.toLowerCase()]||Ru.delta;if(S<k&&E<k&&!d.swiping)return d;const I={absX:S,absY:E,deltaX:b,deltaY:w,dir:D,event:f,first:d.first,initial:d.initial,velocity:T,vxvy:A};I.first&&h.onSwipeStart&&h.onSwipeStart(I),h.onSwiping&&h.onSwiping(I);let F=!1;return(h.onSwiping||h.onSwiped||h[`onSwiped${D}`])&&(F=!0),F&&h.preventScrollOnSwipe&&h.trackTouch&&f.cancelable&&f.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:I,swiping:!0})})},i=f=>{e((d,h)=>{let v;if(d.swiping&&d.eventData){if(f.timeStamp-d.start<h.swipeDuration){v=Object.assign(Object.assign({},d.eventData),{event:f}),h.onSwiped&&h.onSwiped(v);const g=h[`onSwiped${v.dir}`];g&&g(v)}}else h.onTap&&h.onTap({event:f});return h.onTouchEndOrOnMouseUp&&h.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},d),mO),{eventData:v})})},o=()=>{document.removeEventListener(AN,r),document.removeEventListener(kN,a)},a=f=>{o(),i(f)},s=(f,d)=>{let h=()=>{};if(f&&f.addEventListener){const v=Object.assign(Object.assign({},Ru.touchEventOptions),d.touchEventOptions),g=[[hfe,n,v],[dfe,r,Object.assign(Object.assign({},v),d.preventScrollOnSwipe?{passive:!1}:{})],[ffe,i,v]];g.forEach(([y,x,_])=>f.addEventListener(y,x,_)),h=()=>g.forEach(([y,x])=>f.removeEventListener(y,x))}return h},u={ref:f=>{f!==null&&e((d,h)=>{if(d.el===f)return d;const v={};return d.el&&d.el!==f&&d.cleanUpTouch&&(d.cleanUpTouch(),v.cleanUpTouch=void 0),h.trackTouch&&f&&(v.cleanUpTouch=s(f,h)),Object.assign(Object.assign(Object.assign({},d),{el:f}),v)})}};return t.trackMouse&&(u.onMouseDown=n),[u,s]}function vfe(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function gfe(e){const{trackMouse:t}=e,n=R.useRef(Object.assign({},mO)),r=R.useRef(Object.assign({},Ru)),i=R.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Ru),e);let o;for(o in Ru)r.current[o]===void 0&&(r.current[o]=Ru[o]);const[a,s]=R.useMemo(()=>mfe(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=vfe(n.current,r.current,i.current,s),a}var vO={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,u=n.document,f=n.Promise,d=n.fetch,h=n.Response,v=n.TextDecoder,g=n.TextEncoder,y=n.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(se){u.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(se){function pe(){}return pe.prototype=se,new pe}),Date.now||(Date.now=function(){return new Date().getTime()}),y==null){var x=d;d=function(se,pe){var me=pe.signal;return x(se,{headers:pe.headers,credentials:pe.credentials,cache:pe.cache}).then(function(xe){var Te=xe.body.getReader();return me._reader=Te,me._aborted&&me._reader.cancel(),{status:xe.status,statusText:xe.statusText,headers:xe.headers,body:{getReader:function(){return Te}}}})},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(se){function pe(ye,ge,we){if(we===1)return ye>=128>>ge&&ye<<ge<=2047;if(we===2)return ye>=2048>>ge&&ye<<ge<=55295||ye>=57344>>ge&&ye<<ge<=65535;if(we===3)return ye>=65536>>ge&&ye<<ge<=1114111;throw new Error}function me(ye,ge){if(ye===6*1)return ge>>6>15?3:ge>31?2:1;if(ye===6*2)return ge>15?3:2;if(ye===6*3)return 3;throw new Error}for(var xe=65533,Te="",Ce=this.bitsNeeded,Ae=this.codePoint,le=0;le<se.length;le+=1){var ce=se[le];Ce!==0&&(ce<128||ce>191||!pe(Ae<<6|ce&63,Ce-6,me(Ce,Ae)))&&(Ce=0,Ae=xe,Te+=String.fromCharCode(Ae)),Ce===0?(ce>=0&&ce<=127?(Ce=0,Ae=ce):ce>=192&&ce<=223?(Ce=6*1,Ae=ce&31):ce>=224&&ce<=239?(Ce=6*2,Ae=ce&15):ce>=240&&ce<=247?(Ce=6*3,Ae=ce&7):(Ce=0,Ae=xe),Ce!==0&&!pe(Ae,Ce,me(Ce,Ae))&&(Ce=0,Ae=xe)):(Ce-=6,Ae=Ae<<6|ce&63),Ce===0&&(Ae<=65535?Te+=String.fromCharCode(Ae):(Te+=String.fromCharCode(55296+(Ae-65535-1>>10)),Te+=String.fromCharCode(56320+(Ae-65535-1&1023))))}return this.bitsNeeded=Ce,this.codePoint=Ae,Te};var b=function(){try{return new v().decode(new g().encode("test"),{stream:!0})==="test"}catch(se){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+se)}return!1};(v==null||g==null||!b())&&(v=_);var w=function(){};function S(se){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=se,this._sendTimeout=0,this._abort=w}S.prototype.open=function(se,pe){this._abort(!0);var me=this,xe=this._xhr,Te=1,Ce=0;this._abort=function(we){me._sendTimeout!==0&&(i(me._sendTimeout),me._sendTimeout=0),(Te===1||Te===2||Te===3)&&(Te=4,xe.onload=w,xe.onerror=w,xe.onabort=w,xe.onprogress=w,xe.onreadystatechange=w,xe.abort(),Ce!==0&&(i(Ce),Ce=0),we||(me.readyState=4,me.onabort(null),me.onreadystatechange())),Te=0};var Ae=function(){if(Te===1){var we=0,ke="",Me=void 0;if("contentType"in xe)we=200,ke="OK",Me=xe.contentType;else try{we=xe.status,ke=xe.statusText,Me=xe.getResponseHeader("Content-Type")}catch{we=0,ke="",Me=void 0}we!==0&&(Te=2,me.readyState=2,me.status=we,me.statusText=ke,me._contentType=Me,me.onreadystatechange())}},le=function(){if(Ae(),Te===2||Te===3){Te=3;var we="";try{we=xe.responseText}catch{}me.readyState=3,me.responseText=we,me.onprogress()}},ce=function(we,ke){if((ke==null||ke.preventDefault==null)&&(ke={preventDefault:w}),le(),Te===1||Te===2||Te===3){if(Te=4,Ce!==0&&(i(Ce),Ce=0),me.readyState=4,we==="load")me.onload(ke);else if(we==="error")me.onerror(ke);else if(we==="abort")me.onabort(ke);else throw new TypeError;me.onreadystatechange()}},ye=function(we){xe!=null&&(xe.readyState===4?(!("onload"in xe)||!("onerror"in xe)||!("onabort"in xe))&&ce(xe.responseText===""?"error":"load",we):xe.readyState===3?"onprogress"in xe||le():xe.readyState===2&&Ae())},ge=function(){Ce=r(function(){ge()},500),xe.readyState===3&&le()};"onload"in xe&&(xe.onload=function(we){ce("load",we)}),"onerror"in xe&&(xe.onerror=function(we){ce("error",we)}),"onabort"in xe&&(xe.onabort=function(we){ce("abort",we)}),"onprogress"in xe&&(xe.onprogress=le),"onreadystatechange"in xe&&(xe.onreadystatechange=function(we){ye(we)}),("contentType"in xe||!("ontimeout"in o.prototype))&&(pe+=(pe.indexOf("?")===-1?"?":"&")+"padding=true"),xe.open(se,pe,!0),"readyState"in xe&&(Ce=r(function(){ge()},0))},S.prototype.abort=function(){this._abort(!1)},S.prototype.getResponseHeader=function(se){return this._contentType},S.prototype.setRequestHeader=function(se,pe){var me=this._xhr;"setRequestHeader"in me&&me.setRequestHeader(se,pe)},S.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},S.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 se=this;se._sendTimeout=r(function(){se._sendTimeout=0,se.send()},4);return}var pe=this._xhr;"withCredentials"in pe&&(pe.withCredentials=this.withCredentials);try{pe.send(void 0)}catch(me){throw me}};function E(se){return se.replace(/[A-Z]/g,function(pe){return String.fromCharCode(pe.charCodeAt(0)+32)})}function P(se){for(var pe=Object.create(null),me=se.split(`\r
|
||
`),xe=0;xe<me.length;xe+=1){var Te=me[xe],Ce=Te.split(": "),Ae=Ce.shift(),le=Ce.join(": ");pe[E(Ae)]=le}this._map=pe}P.prototype.get=function(se){return this._map[E(se)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function T(){}T.prototype.open=function(se,pe,me,xe,Te,Ce,Ae){se.open("GET",Te);var le=0;se.onprogress=function(){var ye=se.responseText,ge=ye.slice(le);le+=ge.length,me(ge)},se.onerror=function(ye){ye.preventDefault(),xe(new Error("NetworkError"))},se.onload=function(){xe(null)},se.onabort=function(){xe(null)},se.onreadystatechange=function(){if(se.readyState===o.HEADERS_RECEIVED){var ye=se.status,ge=se.statusText,we=se.getResponseHeader("Content-Type"),ke=se.getAllResponseHeaders();pe(ye,ge,we,new P(ke))}},se.withCredentials=Ce;for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&se.setRequestHeader(ce,Ae[ce]);return se.send(),se};function A(se){this._headers=se}A.prototype.get=function(se){return this._headers.get(se)};function D(){}D.prototype.open=function(se,pe,me,xe,Te,Ce,Ae){var le=null,ce=new y,ye=ce.signal,ge=new v;return d(Te,{headers:Ae,credentials:Ce?"include":"same-origin",signal:ye,cache:"no-store"}).then(function(we){return le=we.body.getReader(),pe(we.status,we.statusText,we.headers.get("Content-Type"),new A(we.headers)),new f(function(ke,Me){var et=function(){le.read().then(function(nt){if(nt.done)ke(void 0);else{var Ze=ge.decode(nt.value,{stream:!0});me(Ze),et()}}).catch(function(nt){Me(nt)})};et()})}).catch(function(we){if(we.name!=="AbortError")return we}).then(function(we){xe(we)}),{abort:function(){le!=null&&le.cancel(),ce.abort()}}};function k(){this._listeners=Object.create(null)}function I(se){r(function(){throw se},0)}k.prototype.dispatchEvent=function(se){se.target=this;var pe=this._listeners[se.type];if(pe!=null)for(var me=pe.length,xe=0;xe<me;xe+=1){var Te=pe[xe];try{typeof Te.handleEvent=="function"?Te.handleEvent(se):Te.call(this,se)}catch(Ce){I(Ce)}}},k.prototype.addEventListener=function(se,pe){se=String(se);var me=this._listeners,xe=me[se];xe==null&&(xe=[],me[se]=xe);for(var Te=!1,Ce=0;Ce<xe.length;Ce+=1)xe[Ce]===pe&&(Te=!0);Te||xe.push(pe)},k.prototype.removeEventListener=function(se,pe){se=String(se);var me=this._listeners,xe=me[se];if(xe!=null){for(var Te=[],Ce=0;Ce<xe.length;Ce+=1)xe[Ce]!==pe&&Te.push(xe[Ce]);Te.length===0?delete me[se]:me[se]=Te}};function F(se){this.type=se,this.target=void 0}function q(se,pe){F.call(this,se),this.data=pe.data,this.lastEventId=pe.lastEventId}q.prototype=Object.create(F.prototype);function W(se,pe){F.call(this,se),this.status=pe.status,this.statusText=pe.statusText,this.headers=pe.headers}W.prototype=Object.create(F.prototype);function X(se,pe){F.call(this,se),this.error=pe.error}X.prototype=Object.create(F.prototype);var Q=-1,ne=0,Z=1,z=2,B=-1,H=0,ee=1,K=2,te=3,ie=/^text\/event\-stream(;.*)?$/i,ae=1e3,fe=18e6,j=function(se,pe){var me=se==null?pe:parseInt(se,10);return me!==me&&(me=pe),N(me)},N=function(se){return Math.min(Math.max(se,ae),fe)},U=function(se,pe,me){try{typeof pe=="function"&&pe.call(se,me)}catch(xe){I(xe)}};function J(se,pe){k.call(this),pe=pe||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,he(this,se,pe)}function Y(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var oe=d!=null&&h!=null&&"body"in h.prototype;function he(se,pe,me){pe=String(pe);var xe=!!me.withCredentials,Te=me.lastEventIdQueryParameterName||"lastEventId",Ce=N(1e3),Ae=j(me.heartbeatTimeout,45e3),le="",ce=Ce,ye=!1,ge=0,we=me.headers||{},ke=me.Transport,Me=oe&&ke==null?void 0:new S(ke!=null?new ke:Y()),et=ke!=null&&typeof ke!="string"?new ke:Me==null?new D:new T,nt=void 0,Ze=0,Gt=Q,Ft="",bn="",Zn="",Yi="",kn=H,wf=0,Zi=0,sm=function(rn,Xt,Xn,Nn){if(Gt===ne)if(rn===200&&Xn!=null&&ie.test(Xn)){Gt=Z,ye=Date.now(),ce=Ce,se.readyState=Z;var Mn=new W("open",{status:rn,statusText:Xt,headers:Nn});se.dispatchEvent(Mn),U(se,se.onopen,Mn)}else{var un="";rn!==200?(Xt&&(Xt=Xt.replace(/\s+/g," ")),un="EventSource's response has a status "+rn+" "+Xt+" that is not 200. Aborting the connection."):un="EventSource's response has a Content-Type specifying an unsupported type: "+(Xn==null?"-":Xn.replace(/\s+/g," "))+". Aborting the connection.",Of();var Mn=new W("error",{status:rn,statusText:Xt,headers:Nn});se.dispatchEvent(Mn),U(se,se.onerror,Mn),console.error(un)}},lm=function(rn){if(Gt===Z){for(var Xt=-1,Xn=0;Xn<rn.length;Xn+=1){var Nn=rn.charCodeAt(Xn);(Nn===10||Nn===13)&&(Xt=Xn)}var Mn=(Xt!==-1?Yi:"")+rn.slice(0,Xt+1);Yi=(Xt===-1?Yi:"")+rn.slice(Xt+1),rn!==""&&(ye=Date.now(),ge+=rn.length);for(var un=0;un<Mn.length;un+=1){var Nn=Mn.charCodeAt(un);if(kn===B&&Nn===10)kn=H;else if(kn===B&&(kn=H),Nn===13||Nn===10){if(kn!==H){kn===ee&&(Zi=un+1);var xi=Mn.slice(wf,Zi-1),wi=Mn.slice(Zi+(Zi<un&&Mn.charCodeAt(Zi)===32?1:0),un);xi==="data"?(Ft+=`
|
||
`,Ft+=wi):xi==="id"?bn=wi:xi==="event"?Zn=wi:xi==="retry"?(Ce=j(wi,Ce),ce=Ce):xi==="heartbeatTimeout"&&(Ae=j(wi,Ae),Ze!==0&&(i(Ze),Ze=r(function(){Ss()},Ae)))}if(kn===H){if(Ft!==""){le=bn,Zn===""&&(Zn="message");var Rn=new q(Zn,{data:Ft.slice(1),lastEventId:bn});if(se.dispatchEvent(Rn),Zn==="open"?U(se,se.onopen,Rn):Zn==="message"?U(se,se.onmessage,Rn):Zn==="error"&&U(se,se.onerror,Rn),Gt===z)return}Ft="",Zn=""}kn=Nn===13?B:H}else kn===H&&(wf=un,kn=ee),kn===ee?Nn===58&&(Zi=un+1,kn=K):kn===K&&(kn=te)}}},um=function(rn){if(Gt===Z||Gt===ne){Gt=Q,Ze!==0&&(i(Ze),Ze=0),Ze=r(function(){Ss()},ce),ce=N(Math.min(Ce*16,ce*2)),se.readyState=ne;var Xt=new X("error",{error:rn});se.dispatchEvent(Xt),U(se,se.onerror,Xt),rn!=null&&console.error(rn)}},Of=function(){Gt=z,nt!=null&&(nt.abort(),nt=void 0),Ze!==0&&(i(Ze),Ze=0),se.readyState=z},Ss=function(){if(Ze=0,Gt!==Q){if(!ye&&nt!=null)um(new Error("No activity within "+Ae+" milliseconds. "+(Gt===ne?"No response received.":ge+" chars received.")+" Reconnecting.")),nt!=null&&(nt.abort(),nt=void 0);else{var rn=Math.max((ye||Date.now())+Ae-Date.now(),1);ye=!1,Ze=r(function(){Ss()},rn)}return}ye=!1,ge=0,Ze=r(function(){Ss()},Ae),Gt=ne,Ft="",Zn="",bn=le,Yi="",wf=0,Zi=0,kn=H;var Xt=pe;if(pe.slice(0,5)!=="data:"&&pe.slice(0,5)!=="blob:"&&le!==""){var Xn=pe.indexOf("?");Xt=Xn===-1?pe:pe.slice(0,Xn+1)+pe.slice(Xn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(wi,Rn){return Rn===Te?"":wi}),Xt+=(pe.indexOf("?")===-1?"?":"&")+Te+"="+encodeURIComponent(le)}var Nn=se.withCredentials,Mn={};Mn.Accept="text/event-stream";var un=se.headers;if(un!=null)for(var xi in un)Object.prototype.hasOwnProperty.call(un,xi)&&(Mn[xi]=un[xi]);try{nt=et.open(Me,sm,lm,um,Xt,Nn,Mn)}catch(wi){throw Of(),wi}};se.url=pe,se.readyState=ne,se.withCredentials=xe,se.headers=we,se._close=Of,Ss()}J.prototype=Object.create(k.prototype),J.prototype.CONNECTING=ne,J.prototype.OPEN=Z,J.prototype.CLOSED=z,J.prototype.close=function(){this._close()},J.CONNECTING=ne,J.OPEN=Z,J.CLOSED=z,J.prototype.withCredentials=void 0;var Se=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Se=J),function(se){{var pe=se(t);pe!==void 0&&(e.exports=pe)}}(function(se){se.EventSourcePolyfill=J,se.NativeEventSource=l,se.EventSource=Se})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Ks:globalThis)})(vO,vO.exports);var yfe=vO.exports;const hl=({children:e})=>m.jsx("small",{className:"form-text text-muted d-block",children:e}),bfe=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:n,interval:r}=Tr("realTimeUpdates",{enabled:!0}),i=R.useId();return m.jsxs(Ot,{title:"Real-time updates",className:"h-100",children:[m.jsx(uo,{children:m.jsxs(Sl,{checked:n,onChange:e,children:["Enable or disable real-time updates.",m.jsxs(hl,{children:["Real-time updates are currently being ",m.jsx("b",{children:n?"processed":"ignored"}),"."]})]})}),m.jsxs(Qc,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Pe("form-label",{"text-muted":!n}),id:i,children:[m.jsx(Gn,{type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),n&&m.jsx(hl,{children:r?m.jsxs("span",{children:["Updates will be reflected in the UI every ",m.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},$_=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",_fe=e=>e==="includes"?m.jsxs(m.Fragment,{children:["The list of suggested tags will contain those ",m.jsx("b",{children:"including"})," provided input."]}):m.jsxs(m.Fragment,{children:["The list of suggested tags will contain those ",m.jsx("b",{children:"starting with"})," provided input."]}),xfe=({updateShortUrlCreationSettings:e})=>{const t=Tr("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return m.jsxs(Ot,{title:"Short URLs form",className:"h-100",children:[m.jsx(uo,{children:m.jsxs(Sl,{checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),children:["Request validation on long URLs when creating new short URLs."," ",m.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]}),m.jsxs(hl,{children:["The initial state of the ",m.jsx("b",{children:"Validate URL"})," checkbox will be ",m.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]})}),m.jsx(uo,{children:m.jsxs(Sl,{checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),children:["Make all new short URLs forward their query params to the long URL.",m.jsxs(hl,{children:["The initial state of the ",m.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",m.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),m.jsxs(Qc,{noMargin:!0,label:"Tag suggestions search mode:",children:[m.jsxs(ca,{text:$_(t.tagFilteringMode),children:[m.jsx(Ne,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:$_("startsWith")}),m.jsx(Ne,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:$_("includes")})]}),m.jsx(hl,{children:_fe(t.tagFilteringMode)})]})]})},wfe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Ofe=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const n=Tr("shortUrlsList");return m.jsx(Ot,{title:"Short URLs list",className:"h-100",children:m.jsx(Qc,{noMargin:!0,label:"Default ordering for short URLs list:",children:m.jsx(Up,{items:wfe,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(r,i)=>e({defaultOrdering:{field:r,dir:i}})})})})},Sfe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Efe=({updateTagsSettings:e})=>{const t=Tr("tags",{});return m.jsx(Ot,{title:"Tags",className:"h-100",children:m.jsx(Qc,{noMargin:!0,label:"Default ordering for tags list:",children:m.jsx(Up,{items:Sfe,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})})},Pfe=({updateUiSettings:e,_matchMedia:t})=>{const n=Tr("ui"),r=R.useMemo(()=>(n==null?void 0:n.theme)??eC(t),[n==null?void 0:n.theme,t]);return m.jsxs(Ot,{title:"User interface",className:"h-100",children:[m.jsx(je,{icon:r==="dark"?KZ:LZ,className:"float-end mt-1"}),m.jsx(Sl,{checked:r==="dark",onChange:i=>{e({...n,theme:i?"dark":"light"})},children:"Use dark theme."})]})},pF={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Cfe=(e,t)=>!e||e==="all"?t:pF[e],Tfe=({onChange:e,active:t,allText:n})=>m.jsxs(ca,{text:Cfe(t,n),children:[m.jsx(Ne,{active:t==="all",onClick:()=>e("all"),children:n}),m.jsx(Ne,{divider:!0}),Object.entries(pF).map(([r,i])=>m.jsx(Ne,{active:t===r,onClick:()=>e(r),children:i},r))]}),MN=e=>(e==null?void 0:e.defaultInterval)??"last30Days",jfe=({updateVisitsSettings:e})=>{const t=Tr("visits"),n=R.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??MN(t),...i}),[e,t]);return m.jsxs(Ot,{title:"Visits",className:"h-100",children:[m.jsx(uo,{children:m.jsxs(Sl,{checked:!!(t!=null&&t.excludeBots),onChange:r=>n({excludeBots:r}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",m.jsxs(hl,{children:["The visits coming from potential bots will be ",m.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),m.jsx(uo,{children:m.jsxs(Sl,{checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),children:["Compare visits with previous period.",m.jsxs(hl,{children:["When loading visits, previous period ",m.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),m.jsx(Qc,{noMargin:!0,label:"Default interval to load on visits sections:",children:m.jsx(Tfe,{allText:"All visits",active:MN(t),onChange:r=>n({defaultInterval:r})})})]})},I_=({items:e})=>m.jsx(m.Fragment,{children:e.map((t,n)=>m.jsx("div",{className:"mb-3",children:t},n))}),Afe=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=R.useCallback(s=>t(ub(e,s)),[e,t]),i=R.useCallback(s=>r({realTimeUpdates:{enabled:s}}),[r]),o=R.useCallback(s=>r({realTimeUpdates:{interval:s}}),[r]),a=R.useCallback((s,l)=>r({[s]:l}),[r]);return m.jsxs(gF,{value:e,children:[m.jsxs(L8,{className:"mb-3",children:[m.jsx(Dd,{to:"general",children:"General"}),m.jsx(Dd,{to:"short-urls",children:"Short URLs"}),m.jsx(Dd,{to:"other-items",children:"Other items"})]}),m.jsxs(H0,{children:[m.jsx(lt,{path:"general",element:m.jsx(I_,{items:[m.jsx(Pfe,{updateUiSettings:s=>a("ui",s)}),m.jsx(bfe,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),m.jsx(lt,{path:"short-urls",element:m.jsx(I_,{items:[m.jsx(xfe,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),m.jsx(Ofe,{defaultOrdering:n,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),m.jsx(lt,{path:"other-items",element:m.jsx(I_,{items:[m.jsx(Efe,{updateTagsSettings:s=>a("tags",s)}),m.jsx(jfe,{updateVisitsSettings:s=>a("visits",s)})]})}),m.jsx(lt,{path:"*",element:m.jsx(nP,{replace:!0,to:"general"})})]})]})},mF={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},vF=R.createContext(mF),{Provider:gF}=vF,dC=()=>R.useContext(vF)??mF;function Tr(e,t){return dC()[e]??t}var kfe={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},Nfe=kfe,Mfe={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"]},yF={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]};const Rfe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,RN=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Rfe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},LN=e=>e==="*"||e==="x"||e==="X",$N=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Lfe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],$fe=(e,t)=>{if(LN(e)||LN(t))return 0;const[n,r]=Lfe($N(e),$N(t));return n>r?1:n<r?-1:0},IN=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=$fe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},Ife=(e,t)=>{const n=RN(e),r=RN(t),i=n.pop(),o=r.pop(),a=IN(n,r);return a!==0?a:i&&o?IN(i.split("."),o.split(".")):i||o?i?-1:1:0},gO=(e,t,n)=>{Dfe(n);const r=Ife(e,t);return bF[n].includes(r)},bF={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},DN=Object.keys(bF),Dfe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(DN.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${DN.join("|")}`)};var Ffe={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Bfe={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]};const Us={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},hC=Symbol("Create new tag"),_F=Symbol("No options"),vu=()=>{},Tn=V.createContext(void 0);function FN(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Ufe(e){return e.selectionStart===0&&e.selectionEnd===0}function zfe(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function cb(e){return`${e}-label`}function Vfe(e){return`${e}-combobox`}function Wfe(e){return`${e}-input`}function xF(e){return`${e}-listbox`}function wF(e,t){return`${e}-option-${Xfe(t)}`}function Hfe(e,t){if((e==null?void 0:e.value)===hC&&e.disabled===!1)return{value:t,label:t}}function Gfe(e){const t=Hfe(e.activeOption,e.value)||e.activeOption||tde(e.value,e.options);return t&&!t.disabled?t:void 0}function qfe(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const Kfe=/%value%/;function by(e,t){return e.replace(Kfe,t)}function Yfe(e,t){const n=SF(t),r=e.match(n);if(r){const i=r[0],o=r.index+i.length;return[e.slice(0,r.index),e.slice(r.index,o),e.slice(o)]}}const Zfe=/\s+/g;function yO(e){return`${String(e.value)}-${e.label}`}function Xfe(e){return yO(e).replace(Zfe,"_")}function bO(e,t){return t.findIndex(({value:n})=>n===e.value)}const Qfe=/[-\\^$*+?.()|[\]{}]/g;function OF(e){return e.replace(Qfe,"\\$&")}function SF(e){return new RegExp(OF(e),"i")}function Jfe(e){return new RegExp(`^${OF(e)}$`,"i")}function ede(e,t){if(e){const n=SF(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function tde(e,t){const n=Jfe(e);return t.find(r=>n.test(r.label))||null}const nde={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function rde({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:l,managerRef:u}=R.useContext(Tn),f=R.useMemo(()=>{const g=k=>{const I=k.currentTarget.value;u.current.updateInputValue(I),document.activeElement===a.current&&u.current.listBoxExpand(I)},y=()=>{u.current.listBoxExpand()},x=k=>{var I;((I=o.current)==null?void 0:I.contains(k.relatedTarget))===!1&&u.current.listBoxCollapse()},_=()=>{u.current.listBoxExpand()},b=k=>{const{activeIndex:I,isExpanded:F}=u.current.state;F?(k.preventDefault(),u.current.updateActiveIndex(I+1)):(zfe(k.currentTarget)||k.altKey)&&(k.preventDefault(),u.current.listBoxExpand())},w=k=>{const{activeIndex:I,isExpanded:F}=u.current.state;F?(k.preventDefault(),u.current.updateActiveIndex(I-1)):Ufe(k.currentTarget)&&(k.preventDefault(),u.current.listBoxExpand())},S=k=>{const{isExpanded:I,options:F}=u.current.state;I&&(k.preventDefault(),u.current.updateActiveIndex(F.length-1))},E=k=>{u.current.state.isExpanded&&(k.preventDefault(),u.current.updateActiveIndex(0))},P=()=>{u.current.state.isExpanded?u.current.listBoxCollapse():u.current.updateInputValue("")},T=()=>{if(e){const{value:k,selected:I}=u.current.state,F=I[I.length-1];k===""&&F&&u.current.selectTag(F)}},A=k=>{u.current.state.isExpanded&&(k.preventDefault(),u.current.selectTag())};return{onBlur:x,onChange:g,onClick:_,onFocus:y,onKeyDown:k=>{if(k.key===Us.UpArrow)return w(k);if(k.key===Us.DownArrow)return b(k);if(k.key===Us.PageUp)return E(k);if(k.key===Us.PageDown)return S(k);if(k.key===Us.Escape)return P();if(k.key===Us.Backspace)return T();if(r.includes(k.key))return A(k)}}},[e,o,r,a,u]),{activeOption:d,isExpanded:h,value:v}=u.current.state;return{...nde,"aria-autocomplete":"list","aria-activedescendant":d?wF(i,d):void 0,"aria-controls":xF(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":l&&n||void 0,"aria-invalid":l,"aria-labelledby":cb(i),"aria-expanded":h,id:Wfe(i),onBlur:s?vu:f.onBlur,onChange:s?vu:f.onChange,onClick:s?vu:f.onClick,onFocus:s?vu:f.onFocus,onKeyDown:s?vu:f.onKeyDown,ref:a,role:"combobox",type:"text",value:v}}const ide={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},ode=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function ade({allowResize:e=!0,text:t}){const n=R.useRef(null),{inputRef:r}=R.useContext(Tn),[i,o]=R.useState(null);return R.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);ode.forEach(s=>{const l=a.getPropertyValue(s);n.current.style.setProperty(s,l)})}},[e,r,n]),R.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=n.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:ide}}}function sde(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=R.useContext(Tn),i=r.current.state.activeIndex===-1,o=R.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return R.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":cb(e),id:xF(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function lde({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:a,onCollapse:s,onExpand:l,onInput:u,onShouldCollapse:f,onShouldExpand:d,onValidate:h,selected:v,suggestions:g,suggestionsTransform:y}){const x=R.useRef(),[_,b]=R.useState(null),[w,S]=R.useState(!1),[E,P]=R.useState(""),T=R.useMemo(()=>{const W=y(E,g);return E&&(t&&W.push({disabled:h?!h(E):!1,label:r,value:hC}),W.length===0&&W.push({disabled:!0,label:i,value:_F})),W},[t,r,i,h,g,y,E]),A=_?bO(_,T):-1,D=e?Math.max(A,0):A,k=T[D],I={activeIndex:D,activeOption:k,isExpanded:w,options:T,selected:v,value:E},F={tagsAdded:x.current?FN(v,x.current.state.selected):[],tagsDeleted:x.current?FN(x.current.state.selected,v):[]},q={listBoxCollapse(W){w&&(!f||f(W??I.value))&&(S(!1),b(null),s==null||s())},listBoxExpand(W){w||(!d||d(W??I.value))&&(S(!0),b(T[D]),l==null||l())},updateActiveIndex(W){const X=qfe(W,T.length,e?0:-1);b(T[X])},updateInputValue(W){E!==W&&(P(W),u==null||u(W))},selectTag(W){if(W??(W=Gfe(I)),W){const X=bO(W,I.selected);X>-1?a(X):o(W),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return x.current={...q,flags:F,state:I},x}function ude(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=R.useContext(Tn),o=R.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,l=a.disabled??!1,u=bO(a,i.current.state.selected)>-1,f=R.useCallback(()=>{var h;i.current.selectTag(),(h=n.current)==null||h.focus()},[n,i]),d=R.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return dde(o,r,s),{option:{...a,active:s,disabled:l,index:e,selected:u},optionProps:{"aria-disabled":l,"aria-posinset":e+1,"aria-selected":l?void 0:u,"aria-setsize":i.current.state.options.length,id:wF(t,a),onClick:f,onMouseDown:d,ref:o,role:"option",tabIndex:-1}}}function cde({inputRef:e,managerRef:t}){return R.useRef({input:{blur(){var r;(r=e.current)==null||r.blur()},focus(){var r;(r=e.current)==null||r.focus()},get value(){return t.current.state.value},set value(r){typeof r!="string"&&(r=String(r)),t.current.updateInputValue(r)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(r){t.current.selectTag(r)}}).current}function fde({onBlur:e,onFocus:t}){const[n,r]=R.useState(!1),{id:i,inputRef:o,rootRef:a}=R.useContext(Tn),s=R.useMemo(()=>({"aria-describedby":cb(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var l;(l=a.current)!=null&&l.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var l;document.activeElement===a.current&&((l=o.current)==null||l.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function dde(e,t,n){R.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,l=(i=e.current)==null?void 0:i.offsetTop,u=(o=t.current)==null?void 0:o.offsetHeight,f=(a=t.current)==null?void 0:a.scrollTop;l<f&&t.current.scrollTo(0,l),l+s>f+u&&t.current.scrollTo(0,l+s-u)}},[n,t,e])}function hde(e,t){const{isDisabled:n,managerRef:r}=R.useContext(Tn),i=r.current.state.selected[e],o=R.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:by(t,i.label),onClick:n?vu:o}}}function pde(){var e;const{rootRef:t,managerRef:n}=R.useContext(Tn),r=R.useRef(),i=n.current.flags.tagsDeleted[0],o=(e=r.current)==null?void 0:e.contains(document.activeElement);return R.useLayoutEffect(()=>{var a,s;if(i){const l=(a=r.current)==null?void 0:a.contains(document.activeElement);o&&!l&&((s=t.current)==null||s.focus({preventScroll:!0}))}},[o,r,t,i]),{listRef:r}}const mde={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function vde({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=R.useContext(Tn),r=R.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(by(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(by(t,i.label))}),V.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:mde},r.current.join(`
|
||
`))}function gde({children:e}){const{classNames:t,comboBoxRef:n,id:r}=R.useContext(Tn);return V.createElement("div",{className:t.comboBox,id:Vfe(r),ref:n},e)}const yde=({classNames:e,text:t})=>V.createElement("mark",{className:e.highlight},t);function bde({option:e,query:t,render:n=yde}){const{classNames:r}=R.useContext(Tn);if(e.value===hC||e.value===_F)return V.createElement(V.Fragment,null,by(e.label,t));if(t){const i=Yfe(e.label,t);if(i){const o=n({text:i[1],classNames:r});return V.createElement(V.Fragment,null,i[0],o,i[2])}}return V.createElement(V.Fragment,null,e.label)}const _de=V.memo(bde),xde=({classNames:e,inputWidth:t,...n})=>V.createElement("input",{className:e.input,style:{width:t},...n});function wde({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=xde}){const{classNames:s}=R.useContext(Tn),{value:l,...u}=rde({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=l.length<o.length?o:l,{width:d,sizerProps:h}=ade({allowResize:t,text:f});return V.createElement(V.Fragment,null,a({classNames:s,inputWidth:d,placeholder:o,value:l,...u}),t?V.createElement("div",{...h},f):null)}const Ode=({children:e,classNames:t,id:n})=>V.createElement("div",{className:t.label,id:n},e);function Sde({children:e,render:t=Ode}){const{classNames:n,id:r}=R.useContext(Tn);return t({children:e,classNames:n,id:cb(r)})}const Ede=({children:e,classNames:t,...n})=>V.createElement("div",{className:t.listBox,...n},e);function Pde({children:e,render:t=Ede}){const{classNames:n,managerRef:r}=R.useContext(Tn),i=sde();return!r.current.state.isExpanded||V.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Cde=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),V.createElement("div",{className:i.join(" "),...r},e)};function Tde({children:e,index:t,render:n=Cde}){const{classNames:r}=R.useContext(Tn),{option:i,optionProps:o}=ude(t);return n({classNames:r,children:e,option:i,...o})}const jde=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const a=[t.root];return n&&a.push(t.rootIsActive),r&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),V.createElement("div",{className:a.join(" "),...o},e)};function Ade({children:e,onBlur:t,onFocus:n,render:r=jde}){const{classNames:i,isDisabled:o,isInvalid:a}=R.useContext(Tn),{isActive:s,rootProps:l}=fde({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const kde=({classNames:e,tag:t,...n})=>V.createElement("button",{type:"button",className:e.tag,...n},V.createElement("span",{className:e.tagName},t.label));function Nde({render:e=kde,index:t,title:n}){const{classNames:r}=R.useContext(Tn),{tag:i,tagProps:o}=hde(t,n);return e({classNames:r,tag:i,...o})}function Mde({children:e,label:t}){const{classNames:n}=R.useContext(Tn),{listRef:r}=pde();return V.createElement("ul",{className:n.tagList,"aria-label":t,ref:r,role:"list"},e.map(i=>V.createElement("li",{className:n.tagListItem,key:i.key,role:"listitem"},i)))}const Rde={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"},Lde=[Us.Enter];function $de({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:l=Rde,collapseOnSelect:u=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=Lde,id:h="react-tags",isDisabled:v=!1,isInvalid:g=!1,labelText:y="Select tags",newOptionText:x="Add %value%",noOptionsText:_="No options found for %value%",onAdd:b,onBlur:w,onCollapse:S,onDelete:E,onExpand:P,onFocus:T,onInput:A,onShouldCollapse:D,onShouldExpand:k,onValidate:I,placeholderText:F="Add a tag",renderHighlight:q,renderInput:W,renderLabel:X,renderListBox:Q,renderOption:ne,renderRoot:Z,renderTag:z,selected:B=[],suggestions:H=[],suggestionsTransform:ee=ede,tagListLabelText:K="Selected tags"},te){const ie=R.useRef(null),ae=R.useRef(null),fe=R.useRef(null),j=R.useRef(null),N=lde({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionText:x,noOptionsText:_,onAdd:b,onDelete:E,onCollapse:S,onExpand:P,onInput:A,onShouldCollapse:D,onShouldExpand:k,onValidate:I,selected:B,suggestions:H,suggestionsTransform:ee}),U=cde({inputRef:ae,managerRef:N});return te&&(typeof te=="function"?te(U):te.current=U),V.createElement(Tn.Provider,{value:{classNames:l,comboBoxRef:ie,id:h,inputRef:ae,isDisabled:v,isInvalid:g,listBoxRef:fe,managerRef:N,rootRef:j}},V.createElement(Ade,{onBlur:w,onFocus:T,render:Z},V.createElement(Sde,{render:X},y),V.createElement(Mde,{label:K},N.current.state.selected.map((J,Y)=>V.createElement(Nde,{key:yO(J),index:Y,render:z,title:f}))),V.createElement(gde,null,V.createElement(wde,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:F,render:W}),V.createElement(Pde,{render:Q},N.current.state.options.map((J,Y)=>V.createElement(Tde,{key:yO(J),index:Y,render:ne},V.createElement(_de,{option:J,query:N.current.state.value,render:q}))))),V.createElement(vde,{ariaAddedText:i,ariaDeletedText:s})))}const Ide=V.forwardRef($de);function D_(e){return e==null?"":`${e}`}function Dde(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function pC(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function Fde(e={stringFormatter:pC()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Bde(e={stringFormatter:pC()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const Ude=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function zde(e){var t,n,r;const i=[];let o;for(;o=Ude.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function BN(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:zde(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function EF(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function _O(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var UN;(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"})(UN||(UN={}));class Vde{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||pC(),i=Bde({stringFormatter:r}),o={header:r,undefined:D_,boolean:D_,number:Dde(),bigint:D_,string:r,symbol:Fde({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
|
||
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>BN(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>BN(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return _O(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(EF,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return _O(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class PF extends Vde{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(EF,[])}processData(t){return _O(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var xn;(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"})(xn||(xn={}));xn.QUOTATION_MARK+"",xn.QUOTATION_MARK,xn.REVERSE_SOLIDUS+"",xn.REVERSE_SOLIDUS,xn.SOLIDUS+"",xn.SOLIDUS,xn.LATIN_SMALL_LETTER_B+"",xn.BACKSPACE,xn.LATIN_SMALL_LETTER_F+"",xn.FORM_FEED,xn.LATIN_SMALL_LETTER_N+"",xn.NEWLINE,xn.LATIN_SMALL_LETTER_R+"",xn.CARRIAGE_RETURN,xn.LATIN_SMALL_LETTER_T+"",xn.TAB;var zN;(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"})(zN||(zN={}));var VN;(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"})(VN||(VN={}));var WN;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(WN||(WN={}));var HN;(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"})(HN||(HN={}));var Wde=Array.isArray,jr=Wde,Hde=typeof Ks=="object"&&Ks&&Ks.Object===Object&&Ks,CF=Hde,Gde=CF,qde=typeof self=="object"&&self&&self.Object===Object&&self,Kde=Gde||qde||Function("return this")(),Co=Kde,Yde=Co,Zde=Yde.Symbol,Vp=Zde,GN=Vp,TF=Object.prototype,Xde=TF.hasOwnProperty,Qde=TF.toString,Zf=GN?GN.toStringTag:void 0;function Jde(e){var t=Xde.call(e,Zf),n=e[Zf];try{e[Zf]=void 0;var r=!0}catch{}var i=Qde.call(e);return r&&(t?e[Zf]=n:delete e[Zf]),i}var ehe=Jde,the=Object.prototype,nhe=the.toString;function rhe(e){return nhe.call(e)}var ihe=rhe,qN=Vp,ohe=ehe,ahe=ihe,she="[object Null]",lhe="[object Undefined]",KN=qN?qN.toStringTag:void 0;function uhe(e){return e==null?e===void 0?lhe:she:KN&&KN in Object(e)?ohe(e):ahe(e)}var fa=uhe;function che(e){return e!=null&&typeof e=="object"}var da=che,fhe=fa,dhe=da,hhe="[object Symbol]";function phe(e){return typeof e=="symbol"||dhe(e)&&fhe(e)==hhe}var ef=phe,mhe=jr,vhe=ef,ghe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yhe=/^\w*$/;function bhe(e,t){if(mhe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vhe(e)?!0:yhe.test(e)||!ghe.test(e)||t!=null&&e in Object(t)}var mC=bhe;function _he(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ys=_he;const tf=st(ys);var xhe=fa,whe=ys,Ohe="[object AsyncFunction]",She="[object Function]",Ehe="[object GeneratorFunction]",Phe="[object Proxy]";function Che(e){if(!whe(e))return!1;var t=xhe(e);return t==She||t==Ehe||t==Ohe||t==Phe}var vC=Che;const We=st(vC);var The=Co,jhe=The["__core-js_shared__"],Ahe=jhe,F_=Ahe,YN=function(){var e=/[^.]+$/.exec(F_&&F_.keys&&F_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function khe(e){return!!YN&&YN in e}var Nhe=khe,Mhe=Function.prototype,Rhe=Mhe.toString;function Lhe(e){if(e!=null){try{return Rhe.call(e)}catch{}try{return e+""}catch{}}return""}var jF=Lhe,$he=vC,Ihe=Nhe,Dhe=ys,Fhe=jF,Bhe=/[\\^$.*+?()[\]{}|]/g,Uhe=/^\[object .+?Constructor\]$/,zhe=Function.prototype,Vhe=Object.prototype,Whe=zhe.toString,Hhe=Vhe.hasOwnProperty,Ghe=RegExp("^"+Whe.call(Hhe).replace(Bhe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qhe(e){if(!Dhe(e)||Ihe(e))return!1;var t=$he(e)?Ghe:Uhe;return t.test(Fhe(e))}var Khe=qhe;function Yhe(e,t){return e==null?void 0:e[t]}var Zhe=Yhe,Xhe=Khe,Qhe=Zhe;function Jhe(e,t){var n=Qhe(e,t);return Xhe(n)?n:void 0}var $l=Jhe,epe=$l,tpe=epe(Object,"create"),fb=tpe,ZN=fb;function npe(){this.__data__=ZN?ZN(null):{},this.size=0}var rpe=npe;function ipe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ope=ipe,ape=fb,spe="__lodash_hash_undefined__",lpe=Object.prototype,upe=lpe.hasOwnProperty;function cpe(e){var t=this.__data__;if(ape){var n=t[e];return n===spe?void 0:n}return upe.call(t,e)?t[e]:void 0}var fpe=cpe,dpe=fb,hpe=Object.prototype,ppe=hpe.hasOwnProperty;function mpe(e){var t=this.__data__;return dpe?t[e]!==void 0:ppe.call(t,e)}var vpe=mpe,gpe=fb,ype="__lodash_hash_undefined__";function bpe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gpe&&t===void 0?ype:t,this}var _pe=bpe,xpe=rpe,wpe=ope,Ope=fpe,Spe=vpe,Epe=_pe;function nf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nf.prototype.clear=xpe;nf.prototype.delete=wpe;nf.prototype.get=Ope;nf.prototype.has=Spe;nf.prototype.set=Epe;var Ppe=nf;function Cpe(){this.__data__=[],this.size=0}var Tpe=Cpe;function jpe(e,t){return e===t||e!==e&&t!==t}var gC=jpe,Ape=gC;function kpe(e,t){for(var n=e.length;n--;)if(Ape(e[n][0],t))return n;return-1}var db=kpe,Npe=db,Mpe=Array.prototype,Rpe=Mpe.splice;function Lpe(e){var t=this.__data__,n=Npe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Rpe.call(t,n,1),--this.size,!0}var $pe=Lpe,Ipe=db;function Dpe(e){var t=this.__data__,n=Ipe(t,e);return n<0?void 0:t[n][1]}var Fpe=Dpe,Bpe=db;function Upe(e){return Bpe(this.__data__,e)>-1}var zpe=Upe,Vpe=db;function Wpe(e,t){var n=this.__data__,r=Vpe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Hpe=Wpe,Gpe=Tpe,qpe=$pe,Kpe=Fpe,Ype=zpe,Zpe=Hpe;function rf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rf.prototype.clear=Gpe;rf.prototype.delete=qpe;rf.prototype.get=Kpe;rf.prototype.has=Ype;rf.prototype.set=Zpe;var hb=rf,Xpe=$l,Qpe=Co,Jpe=Xpe(Qpe,"Map"),yC=Jpe,XN=Ppe,eme=hb,tme=yC;function nme(){this.size=0,this.__data__={hash:new XN,map:new(tme||eme),string:new XN}}var rme=nme;function ime(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ome=ime,ame=ome;function sme(e,t){var n=e.__data__;return ame(t)?n[typeof t=="string"?"string":"hash"]:n.map}var pb=sme,lme=pb;function ume(e){var t=lme(this,e).delete(e);return this.size-=t?1:0,t}var cme=ume,fme=pb;function dme(e){return fme(this,e).get(e)}var hme=dme,pme=pb;function mme(e){return pme(this,e).has(e)}var vme=mme,gme=pb;function yme(e,t){var n=gme(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var bme=yme,_me=rme,xme=cme,wme=hme,Ome=vme,Sme=bme;function of(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}of.prototype.clear=_me;of.prototype.delete=xme;of.prototype.get=wme;of.prototype.has=Ome;of.prototype.set=Sme;var bC=of,AF=bC,Eme="Expected a function";function _C(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Eme);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(_C.Cache||AF),n}_C.Cache=AF;var kF=_C;const Pme=st(kF);var Cme=kF,Tme=500;function jme(e){var t=Cme(e,function(r){return n.size===Tme&&n.clear(),r}),n=t.cache;return t}var Ame=jme,kme=Ame,Nme=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mme=/\\(\\)?/g,Rme=kme(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Nme,function(n,r,i,o){t.push(i?o.replace(Mme,"$1"):r||n)}),t}),Lme=Rme;function $me(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var xC=$me,QN=Vp,Ime=xC,Dme=jr,Fme=ef,Bme=1/0,JN=QN?QN.prototype:void 0,eM=JN?JN.toString:void 0;function NF(e){if(typeof e=="string")return e;if(Dme(e))return Ime(e,NF)+"";if(Fme(e))return eM?eM.call(e):"";var t=e+"";return t=="0"&&1/e==-Bme?"-0":t}var Ume=NF,zme=Ume;function Vme(e){return e==null?"":zme(e)}var MF=Vme,Wme=jr,Hme=mC,Gme=Lme,qme=MF;function Kme(e,t){return Wme(e)?e:Hme(e,t)?[e]:Gme(qme(e))}var RF=Kme,Yme=ef,Zme=1/0;function Xme(e){if(typeof e=="string"||Yme(e))return e;var t=e+"";return t=="0"&&1/e==-Zme?"-0":t}var mb=Xme,Qme=RF,Jme=mb;function eve(e,t){t=Qme(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Jme(t[n++])];return n&&n==r?e:void 0}var wC=eve,tve=wC;function nve(e,t,n){var r=e==null?void 0:tve(e,t);return r===void 0?n:r}var LF=nve;const Fr=st(LF);function rve(e){return e==null}var ive=rve;const ze=st(ive);var ove=fa,ave=jr,sve=da,lve="[object String]";function uve(e){return typeof e=="string"||!ave(e)&&sve(e)&&ove(e)==lve}var cve=uve;const Wp=st(cve);var $F={exports:{}},gt={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var jn=typeof Symbol=="function"&&Symbol.for,OC=jn?Symbol.for("react.element"):60103,SC=jn?Symbol.for("react.portal"):60106,vb=jn?Symbol.for("react.fragment"):60107,gb=jn?Symbol.for("react.strict_mode"):60108,yb=jn?Symbol.for("react.profiler"):60114,bb=jn?Symbol.for("react.provider"):60109,_b=jn?Symbol.for("react.context"):60110,EC=jn?Symbol.for("react.async_mode"):60111,xb=jn?Symbol.for("react.concurrent_mode"):60111,wb=jn?Symbol.for("react.forward_ref"):60112,Ob=jn?Symbol.for("react.suspense"):60113,fve=jn?Symbol.for("react.suspense_list"):60120,Sb=jn?Symbol.for("react.memo"):60115,Eb=jn?Symbol.for("react.lazy"):60116,dve=jn?Symbol.for("react.block"):60121,hve=jn?Symbol.for("react.fundamental"):60117,pve=jn?Symbol.for("react.responder"):60118,mve=jn?Symbol.for("react.scope"):60119;function qr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case OC:switch(e=e.type,e){case EC:case xb:case vb:case yb:case gb:case Ob:return e;default:switch(e=e&&e.$$typeof,e){case _b:case wb:case Eb:case Sb:case bb:return e;default:return t}}case SC:return t}}}function IF(e){return qr(e)===xb}gt.AsyncMode=EC;gt.ConcurrentMode=xb;gt.ContextConsumer=_b;gt.ContextProvider=bb;gt.Element=OC;gt.ForwardRef=wb;gt.Fragment=vb;gt.Lazy=Eb;gt.Memo=Sb;gt.Portal=SC;gt.Profiler=yb;gt.StrictMode=gb;gt.Suspense=Ob;gt.isAsyncMode=function(e){return IF(e)||qr(e)===EC};gt.isConcurrentMode=IF;gt.isContextConsumer=function(e){return qr(e)===_b};gt.isContextProvider=function(e){return qr(e)===bb};gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===OC};gt.isForwardRef=function(e){return qr(e)===wb};gt.isFragment=function(e){return qr(e)===vb};gt.isLazy=function(e){return qr(e)===Eb};gt.isMemo=function(e){return qr(e)===Sb};gt.isPortal=function(e){return qr(e)===SC};gt.isProfiler=function(e){return qr(e)===yb};gt.isStrictMode=function(e){return qr(e)===gb};gt.isSuspense=function(e){return qr(e)===Ob};gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vb||e===xb||e===yb||e===gb||e===Ob||e===fve||typeof e=="object"&&e!==null&&(e.$$typeof===Eb||e.$$typeof===Sb||e.$$typeof===bb||e.$$typeof===_b||e.$$typeof===wb||e.$$typeof===hve||e.$$typeof===pve||e.$$typeof===mve||e.$$typeof===dve)};gt.typeOf=qr;$F.exports=gt;var xO=$F.exports,vve=fa,gve=da,yve="[object Number]";function bve(e){return typeof e=="number"||gve(e)&&vve(e)==yve}var DF=bve;const _ve=st(DF);var xve=DF;function wve(e){return xve(e)&&e!=+e}var Ove=wve;const af=st(Ove);var ir=function(t){return t===0?0:t>0?1:-1},tl=function(t){return Wp(t)&&t.indexOf("%")===t.length-1},Ee=function(t){return _ve(t)&&!af(t)},pn=function(t){return Ee(t)||Wp(t)},Sve=0,bs=function(t){var n=++Sve;return"".concat(t||"").concat(n)},or=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ee(t)&&!Wp(t))return r;var o;if(tl(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return af(o)&&(o=r),i&&o>n&&(o=n),o},ka=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Eve=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},zt=function(t,n){return Ee(t)&&Ee(n)?function(r){return t+r*(n-t)}:function(){return n}};function _y(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Fr(r,t))===n})}var Pve=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,o=0,a=0,s=1/0,l=-1/0,u=0,f=0,d=0;d<n;d++)u=t[d].cx||0,f=t[d].cy||0,r+=u,i+=f,o+=u*f,a+=u*u,s=Math.min(s,u),l=Math.max(l,u);var h=n*a!==r*r?(n*o-r*i)/(n*a-r*r):0;return{xmin:s,xmax:l,a:h,b:(i-h*r)/n}};function Ku(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function wO(e){"@babel/helpers - typeof";return wO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wO(e)}var Cve=["viewBox","children"],Tve=["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"],tM=["points","pathLength"],B_={svg:Cve,polygon:tM,polyline:tM},PC=["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"],xy=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(R.isValidElement(t)&&(r=t.props),!tf(r))return null;var i={};return Object.keys(r).forEach(function(o){PC.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},jve=function(t,n,r){return function(i){return t(n,r,i),null}},as=function(t,n,r){if(!tf(t)||wO(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];PC.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=jve(a,n,r))}),i},Ave=["children"],kve=["children"];function nM(e,t){if(e==null)return{};var n=Nve(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function OO(e){"@babel/helpers - typeof";return OO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OO(e)}var rM={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Vo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},iM=null,U_=null,CC=function e(t){if(t===iM&&Array.isArray(U_))return U_;var n=[];return R.Children.forEach(t,function(r){ze(r)||(xO.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),U_=n,iM=t,n};function ur(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Vo(i)}):r=[Vo(t)],CC(e).forEach(function(i){var o=Fr(i,"type.displayName")||Fr(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Rr(e,t){var n=ur(e,t);return n&&n[0]}var oM=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Ee(r)||r<=0||!Ee(i)||i<=0)},Mve=["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"],Rve=function(t){return t&&t.type&&Wp(t.type)&&Mve.indexOf(t.type)>=0},FF=function(t){return t&&OO(t)==="object"&&"cx"in t&&"cy"in t&&"r"in t},Lve=function(t,n,r,i){var o,a=(o=B_==null?void 0:B_[i])!==null&&o!==void 0?o:[];return!We(t)&&(i&&a.includes(n)||Tve.includes(n))||r&&PC.includes(n)},De=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(R.isValidElement(t)&&(i=t.props),!tf(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;Lve((s=i)===null||s===void 0?void 0:s[a],a,n,r)&&(o[a]=i[a])}),o},SO=function e(t,n){if(t===n)return!0;var r=R.Children.count(t);if(r!==R.Children.count(n))return!1;if(r===0)return!0;if(r===1)return aM(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!aM(o,a))return!1}return!0},aM=function(t,n){if(ze(t)&&ze(n))return!0;if(!ze(t)&&!ze(n)){var r=t.props||{},i=r.children,o=nM(r,Ave),a=n.props||{},s=a.children,l=nM(a,kve);return i&&s?Ku(o,l)&&SO(i,s):!i&&!s?Ku(o,l):!1}return!1},sM=function(t,n){var r=[],i={};return CC(t).forEach(function(o,a){if(Rve(o))r.push(o);else if(o){var s=Vo(o.type),l=n[s]||{},u=l.handler,f=l.once;if(u&&(!f||!i[s])){var d=u(o,s,a);r.push(d),i[s]=!0}}}),r},$ve=function(t){var n=t&&t.type;return n&&rM[n]?rM[n]:null},Ive=function(t,n){return CC(n).indexOf(t)},Dve=["children","width","height","viewBox","className","style","title","desc"];function EO(){return EO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EO.apply(this,arguments)}function Fve(e,t){if(e==null)return{};var n=Bve(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function PO(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=Fve(e,Dve),f=i||{width:n,height:r,x:0,y:0},d=Pe("recharts-surface",o);return V.createElement("svg",EO({},De(u,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),V.createElement("title",null,s),V.createElement("desc",null,l),t)}var Uve=["children","className"];function CO(){return CO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CO.apply(this,arguments)}function zve(e,t){if(e==null)return{};var n=Vve(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qe=V.forwardRef(function(e,t){var n=e.children,r=e.className,i=zve(e,Uve),o=Pe("recharts-layer",r);return V.createElement("g",CO({className:o},De(i,!0),{ref:t}),n)}),Di=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};function Wve(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var Hve=Wve,Gve=Hve;function qve(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Gve(e,t,n)}var Kve=qve,Yve="\\ud800-\\udfff",Zve="\\u0300-\\u036f",Xve="\\ufe20-\\ufe2f",Qve="\\u20d0-\\u20ff",Jve=Zve+Xve+Qve,ege="\\ufe0e\\ufe0f",tge="\\u200d",nge=RegExp("["+tge+Yve+Jve+ege+"]");function rge(e){return nge.test(e)}var BF=rge;function ige(e){return e.split("")}var oge=ige,UF="\\ud800-\\udfff",age="\\u0300-\\u036f",sge="\\ufe20-\\ufe2f",lge="\\u20d0-\\u20ff",uge=age+sge+lge,cge="\\ufe0e\\ufe0f",fge="["+UF+"]",TO="["+uge+"]",jO="\\ud83c[\\udffb-\\udfff]",dge="(?:"+TO+"|"+jO+")",zF="[^"+UF+"]",VF="(?:\\ud83c[\\udde6-\\uddff]){2}",WF="[\\ud800-\\udbff][\\udc00-\\udfff]",hge="\\u200d",HF=dge+"?",GF="["+cge+"]?",pge="(?:"+hge+"(?:"+[zF,VF,WF].join("|")+")"+GF+HF+")*",mge=GF+HF+pge,vge="(?:"+[zF+TO+"?",TO,VF,WF,fge].join("|")+")",gge=RegExp(jO+"(?="+jO+")|"+vge+mge,"g");function yge(e){return e.match(gge)||[]}var bge=yge,_ge=oge,xge=BF,wge=bge;function Oge(e){return xge(e)?wge(e):_ge(e)}var Sge=Oge,Ege=Kve,Pge=BF,Cge=Sge,Tge=MF;function jge(e){return function(t){t=Tge(t);var n=Pge(t)?Cge(t):void 0,r=n?n[0]:t.charAt(0),i=n?Ege(n,1).join(""):t.slice(1);return r[e]()+i}}var Age=jge,kge=Age,Nge=kge("toUpperCase"),Mge=Nge;const Pb=st(Mge);function wt(e){return function(){return e}}const qF=Math.cos,wy=Math.sin,Gi=Math.sqrt,Oy=Math.PI,Cb=2*Oy,AO=Math.PI,kO=2*AO,zs=1e-6,Rge=kO-zs;function KF(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Lge(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return KF;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class $ge{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?KF:Lge(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,u=i-n,f=a-t,d=s-n,h=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>zs)if(!(Math.abs(d*l-u*f)>zs)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-a,g=i-s,y=l*l+u*u,x=v*v+g*g,_=Math.sqrt(y),b=Math.sqrt(h),w=o*Math.tan((AO-Math.acos((y+h-x)/(2*_*b)))/2),S=w/b,E=w/_;Math.abs(S-1)>zs&&this._append`L${t+S*f},${n+S*d}`,this._append`A${o},${o},0,0,${+(d*v>f*g)},${this._x1=t+E*l},${this._y1=n+E*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,d=1^a,h=a?i-o:o-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>zs||Math.abs(this._y1-f)>zs)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%kO+kO),h>Rge?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>zs&&this._append`A${r},${r},0,${+(h>=AO)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function TC(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new $ge(t)}function jC(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YF(e){this._context=e}YF.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 Tb(e){return new YF(e)}function ZF(e){return e[0]}function XF(e){return e[1]}function QF(e,t){var n=wt(!0),r=null,i=Tb,o=null,a=TC(s);e=typeof e=="function"?e:e===void 0?ZF:wt(e),t=typeof t=="function"?t:t===void 0?XF:wt(t);function s(l){var u,f=(l=jC(l)).length,d,h=!1,v;for(r==null&&(o=i(v=a())),u=0;u<=f;++u)!(u<f&&n(d=l[u],u,l))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(d,u,l),+t(d,u,l));if(v)return o=null,v+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:wt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:wt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:wt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function cv(e,t,n){var r=null,i=wt(!0),o=null,a=Tb,s=null,l=TC(u);e=typeof e=="function"?e:e===void 0?ZF:wt(+e),t=typeof t=="function"?t:wt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?XF:wt(+n);function u(d){var h,v,g,y=(d=jC(d)).length,x,_=!1,b,w=new Array(y),S=new Array(y);for(o==null&&(s=a(b=l())),h=0;h<=y;++h){if(!(h<y&&i(x=d[h],h,d))===_)if(_=!_)v=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=h-1;g>=v;--g)s.point(w[g],S[g]);s.lineEnd(),s.areaEnd()}_&&(w[h]=+e(x,h,d),S[h]=+t(x,h,d),s.point(r?+r(x,h,d):w[h],n?+n(x,h,d):S[h]))}if(b)return s=null,b+""||null}function f(){return QF().defined(i).curve(a).context(o)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:wt(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:wt(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:wt(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:wt(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:wt(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:wt(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:wt(!!d),u):i},u.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),u):a},u.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),u):o},u}class JF{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Ige(e){return new JF(e,!0)}function Dge(e){return new JF(e,!1)}const AC={draw(e,t){const n=Gi(t/Oy);e.moveTo(n,0),e.arc(0,0,n,0,Cb)}},Fge={draw(e,t){const n=Gi(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},e7=Gi(1/3),Bge=e7*2,Uge={draw(e,t){const n=Gi(t/Bge),r=n*e7;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},zge={draw(e,t){const n=Gi(t),r=-n/2;e.rect(r,r,n,n)}},Vge=.8908130915292852,t7=wy(Oy/10)/wy(7*Oy/10),Wge=wy(Cb/10)*t7,Hge=-qF(Cb/10)*t7,Gge={draw(e,t){const n=Gi(t*Vge),r=Wge*n,i=Hge*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Cb*o/5,s=qF(a),l=wy(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},z_=Gi(3),qge={draw(e,t){const n=-Gi(t/(z_*3));e.moveTo(0,n*2),e.lineTo(-z_*n,-n),e.lineTo(z_*n,-n),e.closePath()}},Qr=-.5,Jr=Gi(3)/2,NO=1/Gi(12),Kge=(NO/2+1)*3,Yge={draw(e,t){const n=Gi(t/Kge),r=n/2,i=n*NO,o=r,a=n*NO+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Qr*r-Jr*i,Jr*r+Qr*i),e.lineTo(Qr*o-Jr*a,Jr*o+Qr*a),e.lineTo(Qr*s-Jr*l,Jr*s+Qr*l),e.lineTo(Qr*r+Jr*i,Qr*i-Jr*r),e.lineTo(Qr*o+Jr*a,Qr*a-Jr*o),e.lineTo(Qr*s+Jr*l,Qr*l-Jr*s),e.closePath()}};function Zge(e,t){let n=null,r=TC(i);e=typeof e=="function"?e:wt(e||AC),t=typeof t=="function"?t:wt(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:wt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:wt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Sy(){}function Ey(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function n7(e){this._context=e}n7.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:Ey(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:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Xge(e){return new n7(e)}function r7(e){this._context=e}r7.prototype={areaStart:Sy,areaEnd:Sy,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:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qge(e){return new r7(e)}function i7(e){this._context=e}i7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jge(e){return new i7(e)}function o7(e){this._context=e}o7.prototype={areaStart:Sy,areaEnd:Sy,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 eye(e){return new o7(e)}function lM(e){return e<0?-1:1}function uM(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(lM(o)+lM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function cM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function V_(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Py(e){this._context=e}Py.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:V_(this,this._t0,cM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,V_(this,cM(this,n=uM(this,e,t)),n);break;default:V_(this,this._t0,n=uM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function a7(e){this._context=new s7(e)}(a7.prototype=Object.create(Py.prototype)).point=function(e,t){Py.prototype.point.call(this,t,e)};function s7(e){this._context=e}s7.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function tye(e){return new Py(e)}function nye(e){return new a7(e)}function l7(e){this._context=e}l7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=fM(e),i=fM(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function fM(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function rye(e){return new l7(e)}function jb(e,t){this._context=e,this._t=t}jb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function iye(e){return new jb(e,.5)}function oye(e){return new jb(e,0)}function aye(e){return new jb(e,1)}function _c(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function MO(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function sye(e,t){return e[t]}function lye(e){const t=[];return t.key=e,t}function uye(){var e=wt([]),t=MO,n=_c,r=sye;function i(o){var a=Array.from(e.apply(this,arguments),lye),s,l=a.length,u=-1,f;for(const d of o)for(s=0,++u;s<l;++s)(a[s][u]=[0,+r(d,a[s].key,u,o)]).data=d;for(s=0,f=jC(t(a));s<l;++s)a[f[s]].index=s;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:wt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:wt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?MO:typeof o=="function"?o:wt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??_c,i):n},i}function cye(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}_c(e,t)}}function fye(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}_c(e,t)}}function dye(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,u=0;s<a;++s){for(var f=e[t[s]],d=f[r][1]||0,h=f[r-1][1]||0,v=(d-h)/2,g=0;g<s;++g){var y=e[t[g]],x=y[r][1]||0,_=y[r-1][1]||0;v+=x-_}l+=d,u+=v*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=u/l)}i[r-1][1]+=i[r-1][0]=n,_c(e,t)}}function Rh(e){"@babel/helpers - typeof";return Rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rh(e)}var hye=["type","size","sizeType"];function RO(){return RO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RO.apply(this,arguments)}function dM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dM(Object(n),!0).forEach(function(r){pye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pye(e,t,n){return t=mye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mye(e){var t=vye(e,"string");return Rh(t)=="symbol"?t:String(t)}function vye(e,t){if(Rh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gye(e,t){if(e==null)return{};var n=yye(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var u7={symbolCircle:AC,symbolCross:Fge,symbolDiamond:Uge,symbolSquare:zge,symbolStar:Gge,symbolTriangle:qge,symbolWye:Yge},bye=Math.PI/180,_ye=function(t){var n="symbol".concat(Pb(t));return u7[n]||AC},xye=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*bye;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}},wye=function(t,n){u7["symbol".concat(Pb(t))]=n},Ab=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,l=gye(t,hye),u=hM(hM({},l),{},{type:r,size:o,sizeType:s}),f=function(){var x=_ye(r),_=Zge().type(x).size(xye(o,s,r));return _()},d=u.className,h=u.cx,v=u.cy,g=De(u,!0);return h===+h&&v===+v&&o===+o?V.createElement("path",RO({},g,{className:Pe("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(v,")"),d:f()})):null};Ab.registerSymbol=wye;function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}function LO(){return LO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LO.apply(this,arguments)}function pM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pM(Object(n),!0).forEach(function(r){Lh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f7(r.key),r)}}function Eye(e,t,n){return t&&mM(e.prototype,t),n&&mM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pye(e,t,n){return t=Cy(t),Cye(e,c7()?Reflect.construct(t,n||[],Cy(e).constructor):t.apply(e,n))}function Cye(e,t){if(t&&(xc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tye(e)}function Tye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c7=function(){return!!e})()}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cy(e)}function jye(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&&$O(e,t)}function $O(e,t){return $O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$O(e,t)}function Lh(e,t,n){return t=f7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f7(e){var t=Aye(e,"string");return xc(t)=="symbol"?t:String(t)}function Aye(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ei=32,kC=function(e){jye(t,e);function t(){return Sye(this,t),Pye(this,t,arguments)}return Eye(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=ei/2,a=ei/6,s=ei/3,l=r.inactive?i:r.color;if(r.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:ei,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,`
|
||
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
|
||
H`).concat(ei,"M").concat(2*s,",").concat(o,`
|
||
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return V.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ei/8,"h").concat(ei,"v").concat(ei*3/4,"h").concat(-ei,"z"),className:"recharts-legend-icon"});if(V.isValidElement(r.legendIcon)){var u=Oye({},r);return delete u.legendIcon,V.cloneElement(r.legendIcon,u)}return V.createElement(Ab,{fill:l,cx:o,cy:o,size:ei,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:ei,height:ei},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,g){var y=v.formatter||l,x=Pe(Lh(Lh({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",v.inactive));if(v.type==="none")return null;var _=We(v.value)?null:v.value;Di(!We(v.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 b=v.inactive?u:v.color;return V.createElement("li",LO({className:x,style:d,key:"legend-item-".concat(g)},as(r.props,v,g)),V.createElement(PO,{width:a,height:a,viewBox:f,style:h},r.renderIcon(v)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(_,v,g):_))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return V.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}]),t}(R.PureComponent);Lh(kC,"displayName","Legend");Lh(kC,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var kye=hb;function Nye(){this.__data__=new kye,this.size=0}var Mye=Nye;function Rye(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Lye=Rye;function $ye(e){return this.__data__.get(e)}var Iye=$ye;function Dye(e){return this.__data__.has(e)}var Fye=Dye,Bye=hb,Uye=yC,zye=bC,Vye=200;function Wye(e,t){var n=this.__data__;if(n instanceof Bye){var r=n.__data__;if(!Uye||r.length<Vye-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zye(r)}return n.set(e,t),this.size=n.size,this}var Hye=Wye,Gye=hb,qye=Mye,Kye=Lye,Yye=Iye,Zye=Fye,Xye=Hye;function sf(e){var t=this.__data__=new Gye(e);this.size=t.size}sf.prototype.clear=qye;sf.prototype.delete=Kye;sf.prototype.get=Yye;sf.prototype.has=Zye;sf.prototype.set=Xye;var d7=sf,Qye="__lodash_hash_undefined__";function Jye(e){return this.__data__.set(e,Qye),this}var e0e=Jye;function t0e(e){return this.__data__.has(e)}var n0e=t0e,r0e=bC,i0e=e0e,o0e=n0e;function Ty(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new r0e;++t<n;)this.add(e[t])}Ty.prototype.add=Ty.prototype.push=i0e;Ty.prototype.has=o0e;var h7=Ty;function a0e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var p7=a0e;function s0e(e,t){return e.has(t)}var m7=s0e,l0e=h7,u0e=p7,c0e=m7,f0e=1,d0e=2;function h0e(e,t,n,r,i,o){var a=n&f0e,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,v=n&d0e?new l0e:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],y=t[d];if(r)var x=a?r(y,g,d,t,e,o):r(g,y,d,e,t,o);if(x!==void 0){if(x)continue;h=!1;break}if(v){if(!u0e(t,function(_,b){if(!c0e(v,b)&&(g===_||i(g,_,n,r,o)))return v.push(b)})){h=!1;break}}else if(!(g===y||i(g,y,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var v7=h0e,p0e=Co,m0e=p0e.Uint8Array,v0e=m0e;function g0e(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var y0e=g0e;function b0e(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var NC=b0e,vM=Vp,gM=v0e,_0e=gC,x0e=v7,w0e=y0e,O0e=NC,S0e=1,E0e=2,P0e="[object Boolean]",C0e="[object Date]",T0e="[object Error]",j0e="[object Map]",A0e="[object Number]",k0e="[object RegExp]",N0e="[object Set]",M0e="[object String]",R0e="[object Symbol]",L0e="[object ArrayBuffer]",$0e="[object DataView]",yM=vM?vM.prototype:void 0,W_=yM?yM.valueOf:void 0;function I0e(e,t,n,r,i,o,a){switch(n){case $0e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L0e:return!(e.byteLength!=t.byteLength||!o(new gM(e),new gM(t)));case P0e:case C0e:case A0e:return _0e(+e,+t);case T0e:return e.name==t.name&&e.message==t.message;case k0e:case M0e:return e==t+"";case j0e:var s=w0e;case N0e:var l=r&S0e;if(s||(s=O0e),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=E0e,a.set(e,t);var f=x0e(s(e),s(t),r,i,o,a);return a.delete(e),f;case R0e:if(W_)return W_.call(e)==W_.call(t)}return!1}var D0e=I0e;function F0e(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var g7=F0e,B0e=g7,U0e=jr;function z0e(e,t,n){var r=t(e);return U0e(e)?r:B0e(r,n(e))}var V0e=z0e;function W0e(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var H0e=W0e;function G0e(){return[]}var q0e=G0e,K0e=H0e,Y0e=q0e,Z0e=Object.prototype,X0e=Z0e.propertyIsEnumerable,bM=Object.getOwnPropertySymbols,Q0e=bM?function(e){return e==null?[]:(e=Object(e),K0e(bM(e),function(t){return X0e.call(e,t)}))}:Y0e,J0e=Q0e;function ebe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var tbe=ebe,nbe=fa,rbe=da,ibe="[object Arguments]";function obe(e){return rbe(e)&&nbe(e)==ibe}var abe=obe,_M=abe,sbe=da,y7=Object.prototype,lbe=y7.hasOwnProperty,ube=y7.propertyIsEnumerable,cbe=_M(function(){return arguments}())?_M:function(e){return sbe(e)&&lbe.call(e,"callee")&&!ube.call(e,"callee")},MC=cbe,jy={exports:{}};function fbe(){return!1}var dbe=fbe;jy.exports;(function(e,t){var n=Co,r=dbe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(jy,jy.exports);var b7=jy.exports,hbe=9007199254740991,pbe=/^(?:0|[1-9]\d*)$/;function mbe(e,t){var n=typeof e;return t=t??hbe,!!t&&(n=="number"||n!="symbol"&&pbe.test(e))&&e>-1&&e%1==0&&e<t}var RC=mbe,vbe=9007199254740991;function gbe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vbe}var LC=gbe,ybe=fa,bbe=LC,_be=da,xbe="[object Arguments]",wbe="[object Array]",Obe="[object Boolean]",Sbe="[object Date]",Ebe="[object Error]",Pbe="[object Function]",Cbe="[object Map]",Tbe="[object Number]",jbe="[object Object]",Abe="[object RegExp]",kbe="[object Set]",Nbe="[object String]",Mbe="[object WeakMap]",Rbe="[object ArrayBuffer]",Lbe="[object DataView]",$be="[object Float32Array]",Ibe="[object Float64Array]",Dbe="[object Int8Array]",Fbe="[object Int16Array]",Bbe="[object Int32Array]",Ube="[object Uint8Array]",zbe="[object Uint8ClampedArray]",Vbe="[object Uint16Array]",Wbe="[object Uint32Array]",Tt={};Tt[$be]=Tt[Ibe]=Tt[Dbe]=Tt[Fbe]=Tt[Bbe]=Tt[Ube]=Tt[zbe]=Tt[Vbe]=Tt[Wbe]=!0;Tt[xbe]=Tt[wbe]=Tt[Rbe]=Tt[Obe]=Tt[Lbe]=Tt[Sbe]=Tt[Ebe]=Tt[Pbe]=Tt[Cbe]=Tt[Tbe]=Tt[jbe]=Tt[Abe]=Tt[kbe]=Tt[Nbe]=Tt[Mbe]=!1;function Hbe(e){return _be(e)&&bbe(e.length)&&!!Tt[ybe(e)]}var Gbe=Hbe;function qbe(e){return function(t){return e(t)}}var _7=qbe,Ay={exports:{}};Ay.exports;(function(e,t){var n=CF,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Ay,Ay.exports);var Kbe=Ay.exports,Ybe=Gbe,Zbe=_7,xM=Kbe,wM=xM&&xM.isTypedArray,Xbe=wM?Zbe(wM):Ybe,x7=Xbe,Qbe=tbe,Jbe=MC,e1e=jr,t1e=b7,n1e=RC,r1e=x7,i1e=Object.prototype,o1e=i1e.hasOwnProperty;function a1e(e,t){var n=e1e(e),r=!n&&Jbe(e),i=!n&&!r&&t1e(e),o=!n&&!r&&!i&&r1e(e),a=n||r||i||o,s=a?Qbe(e.length,String):[],l=s.length;for(var u in e)(t||o1e.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||n1e(u,l)))&&s.push(u);return s}var s1e=a1e,l1e=Object.prototype;function u1e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||l1e;return e===n}var c1e=u1e;function f1e(e,t){return function(n){return e(t(n))}}var w7=f1e,d1e=w7,h1e=d1e(Object.keys,Object),p1e=h1e,m1e=c1e,v1e=p1e,g1e=Object.prototype,y1e=g1e.hasOwnProperty;function b1e(e){if(!m1e(e))return v1e(e);var t=[];for(var n in Object(e))y1e.call(e,n)&&n!="constructor"&&t.push(n);return t}var _1e=b1e,x1e=vC,w1e=LC;function O1e(e){return e!=null&&w1e(e.length)&&!x1e(e)}var Hp=O1e,S1e=s1e,E1e=_1e,P1e=Hp;function C1e(e){return P1e(e)?S1e(e):E1e(e)}var kb=C1e,T1e=V0e,j1e=J0e,A1e=kb;function k1e(e){return T1e(e,A1e,j1e)}var N1e=k1e,OM=N1e,M1e=1,R1e=Object.prototype,L1e=R1e.hasOwnProperty;function $1e(e,t,n,r,i,o){var a=n&M1e,s=OM(e),l=s.length,u=OM(t),f=u.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var h=s[d];if(!(a?h in t:L1e.call(t,h)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var x=a;++d<l;){h=s[d];var _=e[h],b=t[h];if(r)var w=a?r(b,_,h,t,e,o):r(_,b,h,e,t,o);if(!(w===void 0?_===b||i(_,b,n,r,o):w)){y=!1;break}x||(x=h=="constructor")}if(y&&!x){var S=e.constructor,E=t.constructor;S!=E&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof E=="function"&&E instanceof E)&&(y=!1)}return o.delete(e),o.delete(t),y}var I1e=$1e,D1e=$l,F1e=Co,B1e=D1e(F1e,"DataView"),U1e=B1e,z1e=$l,V1e=Co,W1e=z1e(V1e,"Promise"),H1e=W1e,G1e=$l,q1e=Co,K1e=G1e(q1e,"Set"),O7=K1e,Y1e=$l,Z1e=Co,X1e=Y1e(Z1e,"WeakMap"),Q1e=X1e,IO=U1e,DO=yC,FO=H1e,BO=O7,UO=Q1e,S7=fa,lf=jF,SM="[object Map]",J1e="[object Object]",EM="[object Promise]",PM="[object Set]",CM="[object WeakMap]",TM="[object DataView]",e_e=lf(IO),t_e=lf(DO),n_e=lf(FO),r_e=lf(BO),i_e=lf(UO),Vs=S7;(IO&&Vs(new IO(new ArrayBuffer(1)))!=TM||DO&&Vs(new DO)!=SM||FO&&Vs(FO.resolve())!=EM||BO&&Vs(new BO)!=PM||UO&&Vs(new UO)!=CM)&&(Vs=function(e){var t=S7(e),n=t==J1e?e.constructor:void 0,r=n?lf(n):"";if(r)switch(r){case e_e:return TM;case t_e:return SM;case n_e:return EM;case r_e:return PM;case i_e:return CM}return t});var o_e=Vs,H_=d7,a_e=v7,s_e=D0e,l_e=I1e,jM=o_e,AM=jr,kM=b7,u_e=x7,c_e=1,NM="[object Arguments]",MM="[object Array]",fv="[object Object]",f_e=Object.prototype,RM=f_e.hasOwnProperty;function d_e(e,t,n,r,i,o){var a=AM(e),s=AM(t),l=a?MM:jM(e),u=s?MM:jM(t);l=l==NM?fv:l,u=u==NM?fv:u;var f=l==fv,d=u==fv,h=l==u;if(h&&kM(e)){if(!kM(t))return!1;a=!0,f=!1}if(h&&!f)return o||(o=new H_),a||u_e(e)?a_e(e,t,n,r,i,o):s_e(e,t,l,n,r,i,o);if(!(n&c_e)){var v=f&&RM.call(e,"__wrapped__"),g=d&&RM.call(t,"__wrapped__");if(v||g){var y=v?e.value():e,x=g?t.value():t;return o||(o=new H_),i(y,x,n,r,o)}}return h?(o||(o=new H_),l_e(e,t,n,r,i,o)):!1}var h_e=d_e,p_e=h_e,LM=da;function E7(e,t,n,r,i){return e===t?!0:e==null||t==null||!LM(e)&&!LM(t)?e!==e&&t!==t:p_e(e,t,n,r,E7,i)}var $C=E7,m_e=d7,v_e=$C,g_e=1,y_e=2;function b_e(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],u=e[l],f=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var d=new m_e;if(r)var h=r(u,f,l,e,t,d);if(!(h===void 0?v_e(f,u,g_e|y_e,r,d):h))return!1}}return!0}var __e=b_e,x_e=ys;function w_e(e){return e===e&&!x_e(e)}var P7=w_e,O_e=P7,S_e=kb;function E_e(e){for(var t=S_e(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,O_e(i)]}return t}var P_e=E_e;function C_e(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var C7=C_e,T_e=__e,j_e=P_e,A_e=C7;function k_e(e){var t=j_e(e);return t.length==1&&t[0][2]?A_e(t[0][0],t[0][1]):function(n){return n===e||T_e(n,e,t)}}var N_e=k_e;function M_e(e,t){return e!=null&&t in Object(e)}var R_e=M_e,L_e=RF,$_e=MC,I_e=jr,D_e=RC,F_e=LC,B_e=mb;function U_e(e,t,n){t=L_e(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=B_e(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&F_e(i)&&D_e(a,i)&&(I_e(e)||$_e(e)))}var z_e=U_e,V_e=R_e,W_e=z_e;function H_e(e,t){return e!=null&&W_e(e,t,V_e)}var G_e=H_e,q_e=$C,K_e=LF,Y_e=G_e,Z_e=mC,X_e=P7,Q_e=C7,J_e=mb,exe=1,txe=2;function nxe(e,t){return Z_e(e)&&X_e(t)?Q_e(J_e(e),t):function(n){var r=K_e(n,e);return r===void 0&&r===t?Y_e(n,e):q_e(t,r,exe|txe)}}var rxe=nxe;function ixe(e){return e}var uf=ixe;function oxe(e){return function(t){return t==null?void 0:t[e]}}var axe=oxe,sxe=wC;function lxe(e){return function(t){return sxe(t,e)}}var uxe=lxe,cxe=axe,fxe=uxe,dxe=mC,hxe=mb;function pxe(e){return dxe(e)?cxe(hxe(e)):fxe(e)}var mxe=pxe,vxe=N_e,gxe=rxe,yxe=uf,bxe=jr,_xe=mxe;function xxe(e){return typeof e=="function"?e:e==null?yxe:typeof e=="object"?bxe(e)?gxe(e[0],e[1]):vxe(e):_xe(e)}var To=xxe;function wxe(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var T7=wxe;function Oxe(e){return e!==e}var Sxe=Oxe;function Exe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Pxe=Exe,Cxe=T7,Txe=Sxe,jxe=Pxe;function Axe(e,t,n){return t===t?jxe(e,t,n):Cxe(e,Txe,n)}var kxe=Axe,Nxe=kxe;function Mxe(e,t){var n=e==null?0:e.length;return!!n&&Nxe(e,t,0)>-1}var Rxe=Mxe;function Lxe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var $xe=Lxe;function Ixe(){}var Dxe=Ixe,G_=O7,Fxe=Dxe,Bxe=NC,Uxe=1/0,zxe=G_&&1/Bxe(new G_([,-0]))[1]==Uxe?function(e){return new G_(e)}:Fxe,Vxe=zxe,Wxe=h7,Hxe=Rxe,Gxe=$xe,qxe=m7,Kxe=Vxe,Yxe=NC,Zxe=200;function Xxe(e,t,n){var r=-1,i=Hxe,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Gxe;else if(o>=Zxe){var u=t?null:Kxe(e);if(u)return Yxe(u);a=!1,i=qxe,l=new Wxe}else l=t?[]:s;e:for(;++r<o;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(f)}else i(l,d,n)||(l!==s&&l.push(d),s.push(f))}return s}var Qxe=Xxe,Jxe=To,ewe=Qxe;function twe(e,t){return e&&e.length?ewe(e,Jxe(t)):[]}var nwe=twe;const $M=st(nwe);function j7(e,t,n){return t===!0?$M(e,n):We(t)?$M(e,t):e}function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}var rwe=["ref"];function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function As(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){Nb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N7(r.key),r)}}function owe(e,t,n){return t&&DM(e.prototype,t),n&&DM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function awe(e,t,n){return t=ky(t),swe(e,A7()?Reflect.construct(t,n||[],ky(e).constructor):t.apply(e,n))}function swe(e,t){if(t&&(wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k7(e)}function A7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A7=function(){return!!e})()}function ky(e){return ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ky(e)}function k7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lwe(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&&zO(e,t)}function zO(e,t){return zO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zO(e,t)}function Nb(e,t,n){return t=N7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N7(e){var t=uwe(e,"string");return wc(t)=="symbol"?t:String(t)}function uwe(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cwe(e,t){if(e==null)return{};var n=fwe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fwe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function dwe(e){return e.value}function hwe(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(typeof e=="function")return V.createElement(e,t);t.ref;var n=cwe(t,rwe);return V.createElement(kC,n)}var FM=1,$h=function(e){lwe(t,e);function t(){var n;iwe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=awe(this,t,[].concat(i)),Nb(k7(n),"lastBoundingBox",{width:-1,height:-1}),n}return owe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>FM||Math.abs(i.height-this.lastBoundingBox.height)>FM)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?As({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,d,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var v=this.getBBoxSnapshot();d={left:((u||0)-v.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();h={top:((f||0)-g.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return As(As({},d),h)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,d=As(As({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return V.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){r.wrapperNode=v}},hwe(o,As(As({},this.props),{},{payload:j7(f,u,dwe)})))}}],[{key:"getWithHeight",value:function(r,i){var o=r.props.layout;return o==="vertical"&&Ee(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}]),t}(R.PureComponent);Nb($h,"displayName","Legend");Nb($h,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var BM=Vp,pwe=MC,mwe=jr,UM=BM?BM.isConcatSpreadable:void 0;function vwe(e){return mwe(e)||pwe(e)||!!(UM&&e&&e[UM])}var gwe=vwe,ywe=g7,bwe=gwe;function M7(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bwe),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?M7(s,t-1,n,r,i):ywe(i,s):r||(i[i.length]=s)}return i}var R7=M7;function _we(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var xwe=_we,wwe=xwe,Owe=wwe(),Swe=Owe,Ewe=Swe,Pwe=kb;function Cwe(e,t){return e&&Ewe(e,t,Pwe)}var L7=Cwe,Twe=Hp;function jwe(e,t){return function(n,r){if(n==null)return n;if(!Twe(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Awe=jwe,kwe=L7,Nwe=Awe,Mwe=Nwe(kwe),IC=Mwe,Rwe=IC,Lwe=Hp;function $we(e,t){var n=-1,r=Lwe(e)?Array(e.length):[];return Rwe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var $7=$we;function Iwe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Dwe=Iwe,zM=ef;function Fwe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=zM(e),a=t!==void 0,s=t===null,l=t===t,u=zM(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var Bwe=Fwe,Uwe=Bwe;function zwe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Uwe(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var Vwe=zwe,q_=xC,Wwe=wC,Hwe=To,Gwe=$7,qwe=Dwe,Kwe=_7,Ywe=Vwe,Zwe=uf,Xwe=jr;function Qwe(e,t,n){t.length?t=q_(t,function(o){return Xwe(o)?function(a){return Wwe(a,o.length===1?o[0]:o)}:o}):t=[Zwe];var r=-1;t=q_(t,Kwe(Hwe));var i=Gwe(e,function(o,a,s){var l=q_(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return qwe(i,function(o,a){return Ywe(o,a,n)})}var Jwe=Qwe;function e2e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var t2e=e2e,n2e=t2e,VM=Math.max;function r2e(e,t,n){return t=VM(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=VM(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),n2e(e,this,s)}}var i2e=r2e;function o2e(e){return function(){return e}}var a2e=o2e,s2e=$l,l2e=function(){try{var e=s2e(Object,"defineProperty");return e({},"",{}),e}catch{}}(),I7=l2e,u2e=a2e,WM=I7,c2e=uf,f2e=WM?function(e,t){return WM(e,"toString",{configurable:!0,enumerable:!1,value:u2e(t),writable:!0})}:c2e,d2e=f2e,h2e=800,p2e=16,m2e=Date.now;function v2e(e){var t=0,n=0;return function(){var r=m2e(),i=p2e-(r-n);if(n=r,i>0){if(++t>=h2e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var g2e=v2e,y2e=d2e,b2e=g2e,_2e=b2e(y2e),x2e=_2e,w2e=uf,O2e=i2e,S2e=x2e;function E2e(e,t){return S2e(O2e(e,t,w2e),e+"")}var P2e=E2e,C2e=gC,T2e=Hp,j2e=RC,A2e=ys;function k2e(e,t,n){if(!A2e(n))return!1;var r=typeof t;return(r=="number"?T2e(n)&&j2e(t,n.length):r=="string"&&t in n)?C2e(n[t],e):!1}var Mb=k2e,N2e=R7,M2e=Jwe,R2e=P2e,HM=Mb,L2e=R2e(function(e,t){if(e==null)return[];var n=t.length;return n>1&&HM(e,t[0],t[1])?t=[]:n>2&&HM(t[0],t[1],t[2])&&(t=[t[0]]),M2e(e,N2e(t,1),[])}),$2e=L2e;const DC=st($2e);function Ih(e){"@babel/helpers - typeof";return Ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ih(e)}function VO(){return VO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VO.apply(this,arguments)}function I2e(e,t){return U2e(e)||B2e(e,t)||F2e(e,t)||D2e()}function D2e(){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 F2e(e,t){if(e){if(typeof e=="string")return GM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GM(e,t)}}function GM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function U2e(e){if(Array.isArray(e))return e}function qM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function K_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qM(Object(n),!0).forEach(function(r){z2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z2e(e,t,n){return t=V2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V2e(e){var t=W2e(e,"string");return Ih(t)=="symbol"?t:String(t)}function W2e(e,t){if(Ih(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ih(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H2e(e){return Array.isArray(e)&&pn(e[0])&&pn(e[1])?e.join(" ~ "):e}var G2e=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,d=t.formatter,h=t.itemSorter,v=t.wrapperClassName,g=t.labelClassName,y=t.label,x=t.labelFormatter,_=t.accessibilityLayer,b=_===void 0?!1:_,w=function(){if(f&&f.length){var F={padding:0,margin:0},q=(h?DC(f,h):f).map(function(W,X){if(W.type==="none")return null;var Q=K_({display:"block",paddingTop:4,paddingBottom:4,color:W.color||"#000"},s),ne=W.formatter||d||H2e,Z=W.value,z=W.name,B=Z,H=z;if(ne&&B!=null&&H!=null){var ee=ne(Z,z,W,X,f);if(Array.isArray(ee)){var K=I2e(ee,2);B=K[0],H=K[1]}else B=ee}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(X),style:Q},pn(H)?V.createElement("span",{className:"recharts-tooltip-item-name"},H):null,pn(H)?V.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,V.createElement("span",{className:"recharts-tooltip-item-value"},B),V.createElement("span",{className:"recharts-tooltip-item-unit"},W.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:F},q)}return null},S=K_({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),E=K_({margin:0},u),P=!ze(y),T=P?y:"",A=Pe("recharts-default-tooltip",v),D=Pe("recharts-tooltip-label",g);P&&x&&f!==void 0&&f!==null&&(T=x(y,f));var k=b?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",VO({className:A,style:S},k),V.createElement("p",{className:D,style:E},V.isValidElement(T)?T:"".concat(T)),w())};function Dh(e){"@babel/helpers - typeof";return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dh(e)}function dv(e,t,n){return t=q2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q2e(e){var t=K2e(e,"string");return Dh(t)=="symbol"?t:String(t)}function K2e(e,t){if(Dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xf="recharts-tooltip-wrapper",Y2e={visibility:"hidden"};function Z2e(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Pe(Xf,dv(dv(dv(dv({},"".concat(Xf,"-right"),Ee(n)&&t&&Ee(t.x)&&n>=t.x),"".concat(Xf,"-left"),Ee(n)&&t&&Ee(t.x)&&n<t.x),"".concat(Xf,"-bottom"),Ee(r)&&t&&Ee(t.y)&&r>=t.y),"".concat(Xf,"-top"),Ee(r)&&t&&Ee(t.y)&&r<t.y))}function KM(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(o&&Ee(o[r]))return o[r];var f=n[r]-s-i,d=n[r]+i;if(t[r])return a[r]?f:d;if(a[r]){var h=f,v=l[r];return h<v?Math.max(d,l[r]):Math.max(f,l[r])}var g=d+s,y=l[r]+u;return g>y?Math.max(f,l[r]):Math.max(d,l[r])}function X2e(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Q2e(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,d;return a.height>0&&a.width>0&&n?(f=KM({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=KM({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=X2e({translateX:f,translateY:d,useTranslate3d:s})):u=Y2e,{cssProperties:u,cssClasses:Z2e({translateX:f,translateY:d,coordinate:n})}}function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}function YM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YM(Object(n),!0).forEach(function(r){GO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F7(r.key),r)}}function eOe(e,t,n){return t&&XM(e.prototype,t),n&&XM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tOe(e,t,n){return t=Ny(t),nOe(e,D7()?Reflect.construct(t,n||[],Ny(e).constructor):t.apply(e,n))}function nOe(e,t){if(t&&(Oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WO(e)}function D7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D7=function(){return!!e})()}function Ny(e){return Ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ny(e)}function WO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rOe(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&&HO(e,t)}function HO(e,t){return HO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},HO(e,t)}function GO(e,t,n){return t=F7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F7(e){var t=iOe(e,"string");return Oc(t)=="symbol"?t:String(t)}function iOe(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QM=1,oOe=function(e){rOe(t,e);function t(){var n;J2e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=tOe(this,t,[].concat(i)),GO(WO(n),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),GO(WO(n),"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return eOe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>QM||Math.abs(r.height-this.state.lastBoundingBox.height)>QM)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,d=i.hasPayload,h=i.isAnimationActive,v=i.offset,g=i.position,y=i.reverseDirection,x=i.useTranslate3d,_=i.viewBox,b=i.wrapperStyle,w=Q2e({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:v,position:g,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:_}),S=w.cssClasses,E=w.cssProperties,P=ZM(ZM({transition:h&&o?"transform ".concat(s,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},b);return V.createElement("div",{tabIndex:-1,className:S,style:P,ref:function(A){r.wrapperNode=A}},u)}}]),t}(R.PureComponent),aOe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},hi={isSsr:aOe(),get:function(t){return hi[t]},set:function(t,n){if(typeof t=="string")hi[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){hi[i]=t[i]})}}};function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function JM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JM(Object(n),!0).forEach(function(r){FC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U7(r.key),r)}}function lOe(e,t,n){return t&&tR(e.prototype,t),n&&tR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uOe(e,t,n){return t=My(t),cOe(e,B7()?Reflect.construct(t,n||[],My(e).constructor):t.apply(e,n))}function cOe(e,t){if(t&&(Sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fOe(e)}function fOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B7=function(){return!!e})()}function My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},My(e)}function dOe(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&&qO(e,t)}function qO(e,t){return qO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qO(e,t)}function FC(e,t,n){return t=U7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U7(e){var t=hOe(e,"string");return Sc(t)=="symbol"?t:String(t)}function hOe(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pOe(e){return e.dataKey}function mOe(e,t){return V.isValidElement(e)?V.cloneElement(e,t):typeof e=="function"?V.createElement(e,t):V.createElement(G2e,t)}var ri=function(e){dOe(t,e);function t(){return sOe(this,t),uOe(this,t,arguments)}return lOe(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,d=i.filterNull,h=i.isAnimationActive,v=i.offset,g=i.payload,y=i.payloadUniqBy,x=i.position,_=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,S=i.wrapperStyle,E=g??[];d&&E.length&&(E=j7(g.filter(function(T){return T.value!=null&&(T.hide!==!0||r.props.includeHidden)}),y,pOe));var P=E.length>0;return V.createElement(oOe,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:h,active:o,coordinate:f,hasPayload:P,offset:v,position:x,reverseDirection:_,useTranslate3d:b,viewBox:w,wrapperStyle:S},mOe(u,eR(eR({},this.props),{},{payload:E})))}}]),t}(R.PureComponent);FC(ri,"displayName","Tooltip");FC(ri,"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 vOe=Co,gOe=function(){return vOe.Date.now()},yOe=gOe,bOe=/\s/;function _Oe(e){for(var t=e.length;t--&&bOe.test(e.charAt(t)););return t}var xOe=_Oe,wOe=xOe,OOe=/^\s+/;function SOe(e){return e&&e.slice(0,wOe(e)+1).replace(OOe,"")}var EOe=SOe,POe=EOe,nR=ys,COe=ef,rR=NaN,TOe=/^[-+]0x[0-9a-f]+$/i,jOe=/^0b[01]+$/i,AOe=/^0o[0-7]+$/i,kOe=parseInt;function NOe(e){if(typeof e=="number")return e;if(COe(e))return rR;if(nR(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nR(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=POe(e);var n=jOe.test(e);return n||AOe.test(e)?kOe(e.slice(2),n?2:8):TOe.test(e)?rR:+e}var z7=NOe,MOe=ys,Y_=yOe,iR=z7,ROe="Expected a function",LOe=Math.max,$Oe=Math.min;function IOe(e,t,n){var r,i,o,a,s,l,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(ROe);t=iR(t)||0,MOe(n)&&(f=!!n.leading,d="maxWait"in n,o=d?LOe(iR(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function v(P){var T=r,A=i;return r=i=void 0,u=P,a=e.apply(A,T),a}function g(P){return u=P,s=setTimeout(_,t),f?v(P):a}function y(P){var T=P-l,A=P-u,D=t-T;return d?$Oe(D,o-A):D}function x(P){var T=P-l,A=P-u;return l===void 0||T>=t||T<0||d&&A>=o}function _(){var P=Y_();if(x(P))return b(P);s=setTimeout(_,y(P))}function b(P){return s=void 0,h&&r?v(P):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function S(){return s===void 0?a:b(Y_())}function E(){var P=Y_(),T=x(P);if(r=arguments,i=this,l=P,T){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(_,t),v(l)}return s===void 0&&(s=setTimeout(_,t)),a}return E.cancel=w,E.flush=S,E}var DOe=IOe,FOe=DOe,BOe=ys,UOe="Expected a function";function zOe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(UOe);return BOe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),FOe(e,t,{leading:r,maxWait:t,trailing:i})}var VOe=zOe;const V7=st(VOe);function Fh(e){"@babel/helpers - typeof";return Fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fh(e)}function oR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oR(Object(n),!0).forEach(function(r){WOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WOe(e,t,n){return t=HOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HOe(e){var t=GOe(e,"string");return Fh(t)=="symbol"?t:String(t)}function GOe(e,t){if(Fh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qOe(e,t){return XOe(e)||ZOe(e,t)||YOe(e,t)||KOe()}function KOe(){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 YOe(e,t){if(e){if(typeof e=="string")return aR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aR(e,t)}}function aR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function XOe(e){if(Array.isArray(e))return e}var BC=R.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,h=e.maxHeight,v=e.children,g=e.debounce,y=g===void 0?0:g,x=e.id,_=e.className,b=e.onResize,w=e.style,S=w===void 0?{}:w,E=R.useRef(null),P=R.useRef();P.current=b,R.useImperativeHandle(t,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var T=R.useState({containerWidth:i.width,containerHeight:i.height}),A=qOe(T,2),D=A[0],k=A[1],I=R.useCallback(function(q,W){k(function(X){var Q=Math.round(q),ne=Math.round(W);return X.containerWidth===Q&&X.containerHeight===ne?X:{containerWidth:Q,containerHeight:ne}})},[]);R.useEffect(function(){var q=function(z){var B,H=z[0].contentRect,ee=H.width,K=H.height;I(ee,K),(B=P.current)===null||B===void 0||B.call(P,ee,K)};y>0&&(q=V7(q,y,{trailing:!0,leading:!1}));var W=new ResizeObserver(q),X=E.current.getBoundingClientRect(),Q=X.width,ne=X.height;return I(Q,ne),W.observe(E.current),function(){W.disconnect()}},[I,y]);var F=R.useMemo(function(){var q=D.containerWidth,W=D.containerHeight;if(q<0||W<0)return null;Di(tl(a)||tl(l),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,a,l),Di(!n||n>0,"The aspect(%s) must be greater than zero.",n);var X=tl(a)?q:a,Q=tl(l)?W:l;n&&n>0&&(X?Q=X/n:Q&&(X=Q*n),h&&Q>h&&(Q=h)),Di(X>0||Q>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,X,Q,a,l,f,d,n);var ne=!Array.isArray(v)&&xO.isElement(v)&&Vo(v.type).endsWith("Chart");return V.Children.map(v,function(Z){return xO.isElement(Z)?R.cloneElement(Z,hv({width:X,height:Q},ne?{style:hv({height:"100%",width:"100%",maxHeight:Q,maxWidth:X},Z.props.style)}:{})):Z})},[n,v,l,h,d,f,D,a]);return V.createElement("div",{id:x?"".concat(x):void 0,className:Pe("recharts-responsive-container",_),style:hv(hv({},S),{},{width:a,height:l,minWidth:f,minHeight:d,maxHeight:h}),ref:E},F)}),Ya=function(t){return null};Ya.displayName="Cell";function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(e)}function sR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function KO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(n),!0).forEach(function(r){QOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QOe(e,t,n){return t=JOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JOe(e){var t=eSe(e,"string");return Bh(t)=="symbol"?t:String(t)}function eSe(e,t){if(Bh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var au={widthCache:{},cacheCount:0},tSe=2e3,nSe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},lR="recharts_measurement_span";function rSe(e){var t=KO({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Fd=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||hi.isSsr)return{width:0,height:0};var r=rSe(n),i=JSON.stringify({text:t,copyStyle:r});if(au.widthCache[i])return au.widthCache[i];try{var o=document.getElementById(lR);o||(o=document.createElement("span"),o.setAttribute("id",lR),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=KO(KO({},nSe),r);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return au.widthCache[i]=l,++au.cacheCount>tSe&&(au.cacheCount=0,au.widthCache={}),l}catch{return{width:0,height:0}}},iSe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Uh(e){"@babel/helpers - typeof";return Uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uh(e)}function Ry(e,t){return lSe(e)||sSe(e,t)||aSe(e,t)||oSe()}function oSe(){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 aSe(e,t){if(e){if(typeof e=="string")return uR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uR(e,t)}}function uR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function lSe(e){if(Array.isArray(e))return e}function uSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fSe(r.key),r)}}function cSe(e,t,n){return t&&cR(e.prototype,t),n&&cR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fSe(e){var t=dSe(e,"string");return Uh(t)=="symbol"?t:String(t)}function dSe(e,t){if(Uh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hSe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,pSe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,W7={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},mSe=Object.keys(W7),Lu="NaN";function vSe(e,t){return e*W7[t]}var pv=function(){function e(t,n){uSe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!hSe.test(n)&&(this.num=NaN,this.unit=""),mSe.includes(n)&&(this.num=vSe(t,n),this.unit="px")}return cSe(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=pSe.exec(n))!==null&&r!==void 0?r:[],o=Ry(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}]),e}();function H7(e){if(e.includes(Lu))return Lu;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=fR.exec(t))!==null&&n!==void 0?n:[],i=Ry(r,4),o=i[1],a=i[2],s=i[3],l=pv.parse(o??""),u=pv.parse(s??""),f=a==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Lu;t=t.replace(fR,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=dR.exec(t))!==null&&d!==void 0?d:[],v=Ry(h,4),g=v[1],y=v[2],x=v[3],_=pv.parse(g??""),b=pv.parse(x??""),w=y==="+"?_.add(b):_.subtract(b);if(w.isNaN())return Lu;t=t.replace(dR,w.toString())}return t}var hR=/\(([^()]*)\)/;function gSe(e){for(var t=e;t.includes("(");){var n=hR.exec(t),r=Ry(n,2),i=r[1];t=t.replace(hR,H7(i))}return t}function ySe(e){var t=e.replace(/\s+/g,"");return t=gSe(t),t=H7(t),t}function bSe(e){try{return ySe(e)}catch{return Lu}}function Z_(e){var t=bSe(e.slice(5,-1));return t===Lu?"":t}var _Se=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],xSe=["dx","dy","angle","className","breakAll"];function YO(){return YO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YO.apply(this,arguments)}function pR(e,t){if(e==null)return{};var n=wSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wSe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mR(e,t){return PSe(e)||ESe(e,t)||SSe(e,t)||OSe()}function OSe(){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 SSe(e,t){if(e){if(typeof e=="string")return vR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vR(e,t)}}function vR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ESe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function PSe(e){if(Array.isArray(e))return e}var G7=/[ \f\n\r\t\v\u2028\u2029]+/,q7=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];ze(n)||(r?o=n.toString().split(""):o=n.toString().split(G7));var a=o.map(function(l){return{word:l,width:Fd(l,i).width}}),s=r?0:Fd(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},CSe=function(t,n,r,i,o){var a=t.maxLines,s=t.children,l=t.style,u=t.breakAll,f=Ee(a),d=s,h=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return X.reduce(function(Q,ne){var Z=ne.word,z=ne.width,B=Q[Q.length-1];if(B&&(i==null||o||B.width+z+r<Number(i)))B.words.push(Z),B.width+=z+r;else{var H={words:[Z],width:z};Q.push(H)}return Q},[])},v=h(n),g=function(X){return X.reduce(function(Q,ne){return Q.width>ne.width?Q:ne})};if(!f)return v;for(var y="…",x=function(X){var Q=d.slice(0,X),ne=q7({breakAll:u,style:l,children:Q+y}).wordsWithComputedWidth,Z=h(ne),z=Z.length>a||g(Z).width>Number(i);return[z,Z]},_=0,b=d.length-1,w=0,S;_<=b&&w<=d.length-1;){var E=Math.floor((_+b)/2),P=E-1,T=x(P),A=mR(T,2),D=A[0],k=A[1],I=x(E),F=mR(I,1),q=F[0];if(!D&&!q&&(_=E+1),D&&q&&(b=E-1),!D&&q){S=k;break}w++}return S||v},gR=function(t){var n=ze(t)?[]:t.toString().split(G7);return[{words:n}]},TSe=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!hi.isSsr){var l,u,f=q7({breakAll:a,children:i,style:o});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;l=d,u=h}else return gR(i);return CSe({breakAll:a,children:i,maxLines:s,style:o},l,u,n,r)}return gR(i)},yR="#808080",Cl=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,v=h===void 0?"start":h,g=t.verticalAnchor,y=g===void 0?"end":g,x=t.fill,_=x===void 0?yR:x,b=pR(t,_Se),w=R.useMemo(function(){return TSe({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:d,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,d,b.style,b.width]),S=b.dx,E=b.dy,P=b.angle,T=b.className,A=b.breakAll,D=pR(b,xSe);if(!pn(r)||!pn(o))return null;var k=r+(Ee(S)?S:0),I=o+(Ee(E)?E:0),F;switch(y){case"start":F=Z_("calc(".concat(u,")"));break;case"middle":F=Z_("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:F=Z_("calc(".concat(w.length-1," * -").concat(s,")"));break}var q=[];if(d){var W=w[0].width,X=b.width;q.push("scale(".concat((Ee(X)?X/W:1)/W,")"))}return P&&q.push("rotate(".concat(P,", ").concat(k,", ").concat(I,")")),q.length&&(D.transform=q.join(" ")),V.createElement("text",YO({},De(D,!0),{x:k,y:I,className:Pe("recharts-text",T),textAnchor:v,fill:_.includes("url")?yR:_}),w.map(function(Q,ne){var Z=Q.words.join(A?"":" ");return V.createElement("tspan",{x:k,dy:ne===0?F:s,key:Z},Z)}))};function Za(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jSe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function UC(e){let t,n,r;e.length!==2?(t=Za,n=(s,l)=>Za(e(s),l),r=(s,l)=>e(s)-l):(t=e===Za||e===jSe?e:ASe,n=e,r=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const d=u+f>>>1;n(s[d],l)<0?u=d+1:f=d}while(u<f)}return u}function o(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const d=u+f>>>1;n(s[d],l)<=0?u=d+1:f=d}while(u<f)}return u}function a(s,l,u=0,f=s.length){const d=i(s,l,u,f-1);return d>u&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function ASe(){return 0}function K7(e){return e===null?NaN:+e}function*kSe(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const NSe=UC(Za),Gp=NSe.right;UC(K7).center;class bR extends Map{constructor(t,n=LSe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(_R(this,t))}has(t){return super.has(_R(this,t))}set(t,n){return super.set(MSe(this,t),n)}delete(t){return super.delete(RSe(this,t))}}function _R({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function MSe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function RSe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function LSe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function $Se(e=Za){if(e===Za)return Y7;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Y7(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const ISe=Math.sqrt(50),DSe=Math.sqrt(10),FSe=Math.sqrt(2);function Ly(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=ISe?10:o>=DSe?5:o>=FSe?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?Ly(e,t,n*2):[s,l,u]}function ZO(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Ly(t,e,n):Ly(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)l[u]=(o-u)/-a;else for(let u=0;u<s;++u)l[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)l[u]=(i+u)/-a;else for(let u=0;u<s;++u)l[u]=(i+u)*a;return l}function XO(e,t,n){return t=+t,e=+e,n=+n,Ly(e,t,n)[2]}function QO(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?XO(t,e,n):XO(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function xR(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function wR(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Z7(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Y7:$Se(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),v=Math.max(n,Math.floor(t-u*d/l+h)),g=Math.min(r,Math.floor(t+(l-u)*d/l+h));Z7(e,t,v,g,i)}const o=e[t];let a=n,s=r;for(Qf(e,n,t),i(e[r],o)>0&&Qf(e,n,r);a<s;){for(Qf(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?Qf(e,n,s):(++s,Qf(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Qf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function BSe(e,t,n){if(e=Float64Array.from(kSe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return wR(e);if(t>=1)return xR(e);var r,i=(r-1)*t,o=Math.floor(i),a=xR(Z7(e,o).subarray(0,o+1)),s=wR(e.subarray(o+1));return a+(s-a)*(i-o)}}function USe(e,t,n=K7){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function zSe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function _i(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ha(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 JO=Symbol("implicit");function zC(){var e=new bR,t=[],n=[],r=JO;function i(o){let a=e.get(o);if(a===void 0){if(r!==JO)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new bR;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return zC(t,n).unknown(r)},_i.apply(i,arguments),i}function zh(){var e=zC().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,u=0,f=.5;delete e.unknown;function d(){var h=t().length,v=i<r,g=v?i:r,y=v?r:i;o=(y-g)/Math.max(1,h-l+u*2),s&&(o=Math.floor(o)),g+=(y-g-o*(h-l))*f,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var x=zSe(h).map(function(_){return g+o*_});return n(v?x.reverse():x)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(h){return arguments.length?(s=!!h,d()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,d()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return zh(t(),[r,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},_i.apply(d(),arguments)}function X7(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return X7(t())},e}function Bd(){return X7(zh.apply(null,arguments).paddingInner(1))}function VC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Q7(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qp(){}var Vh=.7,$y=1/Vh,Yu="\\s*([+-]?\\d+)\\s*",Wh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",VSe=/^#([0-9a-f]{3,8})$/,WSe=new RegExp(`^rgb\\(${Yu},${Yu},${Yu}\\)$`),HSe=new RegExp(`^rgb\\(${vo},${vo},${vo}\\)$`),GSe=new RegExp(`^rgba\\(${Yu},${Yu},${Yu},${Wh}\\)$`),qSe=new RegExp(`^rgba\\(${vo},${vo},${vo},${Wh}\\)$`),KSe=new RegExp(`^hsl\\(${Wh},${vo},${vo}\\)$`),YSe=new RegExp(`^hsla\\(${Wh},${vo},${vo},${Wh}\\)$`),OR={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};VC(qp,Hh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:SR,formatHex:SR,formatHex8:ZSe,formatHsl:XSe,formatRgb:ER,toString:ER});function SR(){return this.rgb().formatHex()}function ZSe(){return this.rgb().formatHex8()}function XSe(){return J7(this).formatHsl()}function ER(){return this.rgb().formatRgb()}function Hh(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=VSe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?PR(t):n===3?new gr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?mv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?mv(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=WSe.exec(e))?new gr(t[1],t[2],t[3],1):(t=HSe.exec(e))?new gr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=GSe.exec(e))?mv(t[1],t[2],t[3],t[4]):(t=qSe.exec(e))?mv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=KSe.exec(e))?jR(t[1],t[2]/100,t[3]/100,1):(t=YSe.exec(e))?jR(t[1],t[2]/100,t[3]/100,t[4]):OR.hasOwnProperty(e)?PR(OR[e]):e==="transparent"?new gr(NaN,NaN,NaN,0):null}function PR(e){return new gr(e>>16&255,e>>8&255,e&255,1)}function mv(e,t,n,r){return r<=0&&(e=t=n=NaN),new gr(e,t,n,r)}function QSe(e){return e instanceof qp||(e=Hh(e)),e?(e=e.rgb(),new gr(e.r,e.g,e.b,e.opacity)):new gr}function eS(e,t,n,r){return arguments.length===1?QSe(e):new gr(e,t,n,r??1)}function gr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}VC(gr,eS,Q7(qp,{brighter(e){return e=e==null?$y:Math.pow($y,e),new gr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vh:Math.pow(Vh,e),new gr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gr(pl(this.r),pl(this.g),pl(this.b),Iy(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:CR,formatHex:CR,formatHex8:JSe,formatRgb:TR,toString:TR}));function CR(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}`}function JSe(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}${nl((isNaN(this.opacity)?1:this.opacity)*255)}`}function TR(){const e=Iy(this.opacity);return`${e===1?"rgb(":"rgba("}${pl(this.r)}, ${pl(this.g)}, ${pl(this.b)}${e===1?")":`, ${e})`}`}function Iy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nl(e){return e=pl(e),(e<16?"0":"")+e.toString(16)}function jR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mi(e,t,n,r)}function J7(e){if(e instanceof Mi)return new Mi(e.h,e.s,e.l,e.opacity);if(e instanceof qp||(e=Hh(e)),!e)return new Mi;if(e instanceof Mi)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Mi(a,s,l,e.opacity)}function eEe(e,t,n,r){return arguments.length===1?J7(e):new Mi(e,t,n,r??1)}function Mi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}VC(Mi,eEe,Q7(qp,{brighter(e){return e=e==null?$y:Math.pow($y,e),new Mi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vh:Math.pow(Vh,e),new Mi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new gr(X_(e>=240?e-240:e+120,i,r),X_(e,i,r),X_(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mi(AR(this.h),vv(this.s),vv(this.l),Iy(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=Iy(this.opacity);return`${e===1?"hsl(":"hsla("}${AR(this.h)}, ${vv(this.s)*100}%, ${vv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AR(e){return e=(e||0)%360,e<0?e+360:e}function vv(e){return Math.max(0,Math.min(1,e||0))}function X_(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const WC=e=>()=>e;function tEe(e,t){return function(n){return e+n*t}}function nEe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function rEe(e){return(e=+e)==1?eB:function(t,n){return n-t?nEe(t,n,e):WC(isNaN(t)?n:t)}}function eB(e,t){var n=t-e;return n?tEe(e,n):WC(isNaN(e)?t:e)}const kR=function e(t){var n=rEe(t);function r(i,o){var a=n((i=eS(i)).r,(o=eS(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=eB(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function iEe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function oEe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function aEe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=cf(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function sEe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Dy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function lEe(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=cf(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var tS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Q_=new RegExp(tS.source,"g");function uEe(e){return function(){return e}}function cEe(e){return function(t){return e(t)+""}}function fEe(e,t){var n=tS.lastIndex=Q_.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=tS.exec(e))&&(i=Q_.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Dy(r,i)})),n=Q_.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?cEe(l[0].x):uEe(t):(t=l.length,function(u){for(var f=0,d;f<t;++f)s[(d=l[f]).i]=d.x(u);return s.join("")})}function cf(e,t){var n=typeof t,r;return t==null||n==="boolean"?WC(t):(n==="number"?Dy:n==="string"?(r=Hh(t))?(t=r,kR):fEe:t instanceof Hh?kR:t instanceof Date?sEe:oEe(t)?iEe:Array.isArray(t)?aEe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?lEe:Dy)(e,t)}function HC(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function dEe(e,t){t===void 0&&(t=e,e=cf);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function hEe(e){return function(){return e}}function Fy(e){return+e}var NR=[0,1];function ar(e){return e}function nS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:hEe(isNaN(t)?NaN:.5)}function pEe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function mEe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=nS(i,r),o=n(a,o)):(r=nS(r,i),o=n(o,a)),function(s){return o(r(s))}}function vEe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=nS(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Gp(e,s,1,r)-1;return o[l](i[l](s))}}function Kp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Rb(){var e=NR,t=NR,n=cf,r,i,o,a=ar,s,l,u;function f(){var h=Math.min(e.length,t.length);return a!==ar&&(a=pEe(e[0],e[h-1])),s=h>2?vEe:mEe,l=u=null,d}function d(h){return h==null||isNaN(h=+h)?o:(l||(l=s(e.map(r),t,n)))(r(a(h)))}return d.invert=function(h){return a(i((u||(u=s(t,e.map(r),Dy)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Fy),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=HC,f()},d.clamp=function(h){return arguments.length?(a=h?!0:ar,f()):a!==ar},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,v){return r=h,i=v,f()}}function GC(){return Rb()(ar,ar)}function gEe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function By(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ec(e){return e=By(Math.abs(e)),e?e[1]:NaN}function yEe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function bEe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var _Ee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gh(e){if(!(t=_Ee.exec(e)))throw new Error("invalid format: "+e);var t;return new qC({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]})}Gh.prototype=qC.prototype;function qC(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+""}qC.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 xEe(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var tB;function wEe(e,t){var n=By(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(tB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+By(e,Math.max(0,t+o-1))[0]}function MR(e,t){var n=By(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const RR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:gEe,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)=>MR(e*100,t),r:MR,s:wEe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function LR(e){return e}var $R=Array.prototype.map,IR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function OEe(e){var t=e.grouping===void 0||e.thousands===void 0?LR:yEe($R.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?LR:bEe($R.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Gh(d);var h=d.fill,v=d.align,g=d.sign,y=d.symbol,x=d.zero,_=d.width,b=d.comma,w=d.precision,S=d.trim,E=d.type;E==="n"?(b=!0,E="g"):RR[E]||(w===void 0&&(w=12),S=!0,E="g"),(x||h==="0"&&v==="=")&&(x=!0,h="0",v="=");var P=y==="$"?n:y==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",T=y==="$"?r:/[%p]/.test(E)?a:"",A=RR[E],D=/[defgprs%]/.test(E);w=w===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function k(I){var F=P,q=T,W,X,Q;if(E==="c")q=A(I)+q,I="";else{I=+I;var ne=I<0||1/I<0;if(I=isNaN(I)?l:A(Math.abs(I),w),S&&(I=xEe(I)),ne&&+I==0&&g!=="+"&&(ne=!1),F=(ne?g==="("?g:s:g==="-"||g==="("?"":g)+F,q=(E==="s"?IR[8+tB/3]:"")+q+(ne&&g==="("?")":""),D){for(W=-1,X=I.length;++W<X;)if(Q=I.charCodeAt(W),48>Q||Q>57){q=(Q===46?i+I.slice(W+1):I.slice(W))+q,I=I.slice(0,W);break}}}b&&!x&&(I=t(I,1/0));var Z=F.length+I.length+q.length,z=Z<_?new Array(_-Z+1).join(h):"";switch(b&&x&&(I=t(z+I,z.length?_-q.length:1/0),z=""),v){case"<":I=F+I+q+z;break;case"=":I=F+z+I+q;break;case"^":I=z.slice(0,Z=z.length>>1)+F+I+q+z.slice(Z);break;default:I=z+F+I+q;break}return o(I)}return k.toString=function(){return d+""},k}function f(d,h){var v=u((d=Gh(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Ec(h)/3)))*3,y=Math.pow(10,-g),x=IR[8+g/3];return function(_){return v(y*_)+x}}return{format:u,formatPrefix:f}}var gv,KC,nB;SEe({thousands:",",grouping:[3],currency:["$",""]});function SEe(e){return gv=OEe(e),KC=gv.format,nB=gv.formatPrefix,gv}function EEe(e){return Math.max(0,-Ec(Math.abs(e)))}function PEe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ec(t)/3)))*3-Ec(Math.abs(e)))}function CEe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ec(t)-Ec(e))+1}function rB(e,t,n,r){var i=QO(e,t,n),o;switch(r=Gh(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=PEe(i,a))&&(r.precision=o),nB(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=CEe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=EEe(i))&&(r.precision=o-(r.type==="%")*2);break}}return KC(r)}function _s(e){var t=e.domain;return e.ticks=function(n){var r=t();return ZO(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return rB(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,u,f=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);f-- >0;){if(u=XO(a,s,n),u===l)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Uy(){var e=GC();return e.copy=function(){return Kp(e,Uy())},_i.apply(e,arguments),_s(e)}function iB(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Fy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return iB(e).unknown(t)},e=arguments.length?Array.from(e,Fy):[0,1],_s(n)}function oB(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function DR(e){return Math.log(e)}function FR(e){return Math.exp(e)}function TEe(e){return-Math.log(-e)}function jEe(e){return-Math.exp(-e)}function AEe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function kEe(e){return e===10?AEe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function NEe(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 BR(e){return(t,n)=>-e(-t,n)}function YC(e){const t=e(DR,FR),n=t.domain;let r=10,i,o;function a(){return i=NEe(r),o=kEe(r),n()[0]<0?(i=BR(i),o=BR(o),e(TEe,jEe)):e(DR,FR),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const d=f<u;d&&([u,f]=[f,u]);let h=i(u),v=i(f),g,y;const x=s==null?10:+s;let _=[];if(!(r%1)&&v-h<x){if(h=Math.floor(h),v=Math.ceil(v),u>0){for(;h<=v;++h)for(g=1;g<r;++g)if(y=h<0?g/o(-h):g*o(h),!(y<u)){if(y>f)break;_.push(y)}}else for(;h<=v;++h)for(g=r-1;g>=1;--g)if(y=h>0?g/o(-h):g*o(h),!(y<u)){if(y>f)break;_.push(y)}_.length*2<x&&(_=ZO(u,f,x))}else _=ZO(h,v,Math.min(v-h,x)).map(o);return d?_.reverse():_},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Gh(l)).precision==null&&(l.trim=!0),l=KC(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/o(Math.round(i(f)));return d*r<r-.5&&(d*=r),d<=u?l(f):""}},t.nice=()=>n(oB(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function aB(){const e=YC(Rb()).domain([1,10]);return e.copy=()=>Kp(e,aB()).base(e.base()),_i.apply(e,arguments),e}function UR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ZC(e){var t=1,n=e(UR(t),zR(t));return n.constant=function(r){return arguments.length?e(UR(t=+r),zR(t)):t},_s(n)}function sB(){var e=ZC(Rb());return e.copy=function(){return Kp(e,sB()).constant(e.constant())},_i.apply(e,arguments)}function VR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function MEe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function REe(e){return e<0?-e*e:e*e}function XC(e){var t=e(ar,ar),n=1;function r(){return n===1?e(ar,ar):n===.5?e(MEe,REe):e(VR(n),VR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},_s(t)}function QC(){var e=XC(Rb());return e.copy=function(){return Kp(e,QC()).exponent(e.exponent())},_i.apply(e,arguments),e}function LEe(){return QC.apply(null,arguments).exponent(.5)}function WR(e){return Math.sign(e)*e*e}function $Ee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function lB(){var e=GC(),t=[0,1],n=!1,r;function i(o){var a=$Ee(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(WR(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,Fy)).map(WR)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return lB(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_i.apply(i,arguments),_s(i)}function uB(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=USe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Gp(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Za),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return uB().domain(e).range(t).unknown(r)},_i.apply(o,arguments)}function cB(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Gp(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return cB().domain([e,t]).range(i).unknown(o)},_i.apply(_s(a),arguments)}function fB(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Gp(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return fB().domain(e).range(t).unknown(n)},_i.apply(i,arguments)}const J_=new Date,ex=new Date;function yn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return l},i.filter=o=>yn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(J_.setTime(+o),ex.setTime(+a),e(J_),e(ex),Math.floor(n(J_,ex))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const zy=yn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):zy);zy.range;const Fo=1e3,ci=Fo*60,Bo=ci*60,na=Bo*24,JC=na*7,HR=na*30,tx=na*365,rl=yn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Fo)},(e,t)=>(t-e)/Fo,e=>e.getUTCSeconds());rl.range;const eT=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fo)},(e,t)=>{e.setTime(+e+t*ci)},(e,t)=>(t-e)/ci,e=>e.getMinutes());eT.range;const tT=yn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ci)},(e,t)=>(t-e)/ci,e=>e.getUTCMinutes());tT.range;const nT=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fo-e.getMinutes()*ci)},(e,t)=>{e.setTime(+e+t*Bo)},(e,t)=>(t-e)/Bo,e=>e.getHours());nT.range;const rT=yn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Bo)},(e,t)=>(t-e)/Bo,e=>e.getUTCHours());rT.range;const Yp=yn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ci)/na,e=>e.getDate()-1);Yp.range;const Lb=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/na,e=>e.getUTCDate()-1);Lb.range;const dB=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/na,e=>Math.floor(e/na));dB.range;function Il(e){return yn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ci)/JC)}const $b=Il(0),Vy=Il(1),IEe=Il(2),DEe=Il(3),Pc=Il(4),FEe=Il(5),BEe=Il(6);$b.range;Vy.range;IEe.range;DEe.range;Pc.range;FEe.range;BEe.range;function Dl(e){return yn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/JC)}const Ib=Dl(0),Wy=Dl(1),UEe=Dl(2),zEe=Dl(3),Cc=Dl(4),VEe=Dl(5),WEe=Dl(6);Ib.range;Wy.range;UEe.range;zEe.range;Cc.range;VEe.range;WEe.range;const iT=yn(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());iT.range;const oT=yn(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());oT.range;const ra=yn(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());ra.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ra.range;const ia=yn(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());ia.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ia.range;function hB(e,t,n,r,i,o){const a=[[rl,1,Fo],[rl,5,5*Fo],[rl,15,15*Fo],[rl,30,30*Fo],[o,1,ci],[o,5,5*ci],[o,15,15*ci],[o,30,30*ci],[i,1,Bo],[i,3,3*Bo],[i,6,6*Bo],[i,12,12*Bo],[r,1,na],[r,2,2*na],[n,1,JC],[t,1,HR],[t,3,3*HR],[e,1,tx]];function s(u,f,d){const h=f<u;h&&([u,f]=[f,u]);const v=d&&typeof d.range=="function"?d:l(u,f,d),g=v?v.range(u,+f+1):[];return h?g.reverse():g}function l(u,f,d){const h=Math.abs(f-u)/d,v=UC(([,,x])=>x).right(a,h);if(v===a.length)return e.every(QO(u/tx,f/tx,d));if(v===0)return zy.every(Math.max(QO(u,f,d),1));const[g,y]=a[h/a[v-1][2]<a[v][2]/h?v-1:v];return g.every(y)}return[s,l]}const[HEe,GEe]=hB(ia,oT,Ib,dB,rT,tT),[qEe,KEe]=hB(ra,iT,$b,Yp,nT,eT);function nx(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 rx(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 Jf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function YEe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=ed(i),f=td(i),d=ed(o),h=td(o),v=ed(a),g=td(a),y=ed(s),x=td(s),_=ed(l),b=td(l),w={a:ne,A:Z,b:z,B,c:null,d:XR,e:XR,f:yPe,g:TPe,G:APe,H:mPe,I:vPe,j:gPe,L:pB,m:bPe,M:_Pe,p:H,q:ee,Q:eL,s:tL,S:xPe,u:wPe,U:OPe,V:SPe,w:EPe,W:PPe,x:null,X:null,y:CPe,Y:jPe,Z:kPe,"%":JR},S={a:K,A:te,b:ie,B:ae,c:null,d:QR,e:QR,f:LPe,g:HPe,G:qPe,H:NPe,I:MPe,j:RPe,L:vB,m:$Pe,M:IPe,p:fe,q:j,Q:eL,s:tL,S:DPe,u:FPe,U:BPe,V:UPe,w:zPe,W:VPe,x:null,X:null,y:WPe,Y:GPe,Z:KPe,"%":JR},E={a:k,A:I,b:F,B:q,c:W,d:YR,e:YR,f:fPe,g:KR,G:qR,H:ZR,I:ZR,j:sPe,L:cPe,m:aPe,M:lPe,p:D,q:oPe,Q:hPe,s:pPe,S:uPe,u:ePe,U:tPe,V:nPe,w:JEe,W:rPe,x:X,X:Q,y:KR,Y:qR,Z:iPe,"%":dPe};w.x=P(n,w),w.X=P(r,w),w.c=P(t,w),S.x=P(n,S),S.X=P(r,S),S.c=P(t,S);function P(N,U){return function(J){var Y=[],oe=-1,he=0,Se=N.length,se,pe,me;for(J instanceof Date||(J=new Date(+J));++oe<Se;)N.charCodeAt(oe)===37&&(Y.push(N.slice(he,oe)),(pe=GR[se=N.charAt(++oe)])!=null?se=N.charAt(++oe):pe=se==="e"?" ":"0",(me=U[se])&&(se=me(J,pe)),Y.push(se),he=oe+1);return Y.push(N.slice(he,oe)),Y.join("")}}function T(N,U){return function(J){var Y=Jf(1900,void 0,1),oe=A(Y,N,J+="",0),he,Se;if(oe!=J.length)return null;if("Q"in Y)return new Date(Y.Q);if("s"in Y)return new Date(Y.s*1e3+("L"in Y?Y.L:0));if(U&&!("Z"in Y)&&(Y.Z=0),"p"in Y&&(Y.H=Y.H%12+Y.p*12),Y.m===void 0&&(Y.m="q"in Y?Y.q:0),"V"in Y){if(Y.V<1||Y.V>53)return null;"w"in Y||(Y.w=1),"Z"in Y?(he=rx(Jf(Y.y,0,1)),Se=he.getUTCDay(),he=Se>4||Se===0?Wy.ceil(he):Wy(he),he=Lb.offset(he,(Y.V-1)*7),Y.y=he.getUTCFullYear(),Y.m=he.getUTCMonth(),Y.d=he.getUTCDate()+(Y.w+6)%7):(he=nx(Jf(Y.y,0,1)),Se=he.getDay(),he=Se>4||Se===0?Vy.ceil(he):Vy(he),he=Yp.offset(he,(Y.V-1)*7),Y.y=he.getFullYear(),Y.m=he.getMonth(),Y.d=he.getDate()+(Y.w+6)%7)}else("W"in Y||"U"in Y)&&("w"in Y||(Y.w="u"in Y?Y.u%7:"W"in Y?1:0),Se="Z"in Y?rx(Jf(Y.y,0,1)).getUTCDay():nx(Jf(Y.y,0,1)).getDay(),Y.m=0,Y.d="W"in Y?(Y.w+6)%7+Y.W*7-(Se+5)%7:Y.w+Y.U*7-(Se+6)%7);return"Z"in Y?(Y.H+=Y.Z/100|0,Y.M+=Y.Z%100,rx(Y)):nx(Y)}}function A(N,U,J,Y){for(var oe=0,he=U.length,Se=J.length,se,pe;oe<he;){if(Y>=Se)return-1;if(se=U.charCodeAt(oe++),se===37){if(se=U.charAt(oe++),pe=E[se in GR?U.charAt(oe++):se],!pe||(Y=pe(N,J,Y))<0)return-1}else if(se!=J.charCodeAt(Y++))return-1}return Y}function D(N,U,J){var Y=u.exec(U.slice(J));return Y?(N.p=f.get(Y[0].toLowerCase()),J+Y[0].length):-1}function k(N,U,J){var Y=v.exec(U.slice(J));return Y?(N.w=g.get(Y[0].toLowerCase()),J+Y[0].length):-1}function I(N,U,J){var Y=d.exec(U.slice(J));return Y?(N.w=h.get(Y[0].toLowerCase()),J+Y[0].length):-1}function F(N,U,J){var Y=_.exec(U.slice(J));return Y?(N.m=b.get(Y[0].toLowerCase()),J+Y[0].length):-1}function q(N,U,J){var Y=y.exec(U.slice(J));return Y?(N.m=x.get(Y[0].toLowerCase()),J+Y[0].length):-1}function W(N,U,J){return A(N,t,U,J)}function X(N,U,J){return A(N,n,U,J)}function Q(N,U,J){return A(N,r,U,J)}function ne(N){return a[N.getDay()]}function Z(N){return o[N.getDay()]}function z(N){return l[N.getMonth()]}function B(N){return s[N.getMonth()]}function H(N){return i[+(N.getHours()>=12)]}function ee(N){return 1+~~(N.getMonth()/3)}function K(N){return a[N.getUTCDay()]}function te(N){return o[N.getUTCDay()]}function ie(N){return l[N.getUTCMonth()]}function ae(N){return s[N.getUTCMonth()]}function fe(N){return i[+(N.getUTCHours()>=12)]}function j(N){return 1+~~(N.getUTCMonth()/3)}return{format:function(N){var U=P(N+="",w);return U.toString=function(){return N},U},parse:function(N){var U=T(N+="",!1);return U.toString=function(){return N},U},utcFormat:function(N){var U=P(N+="",S);return U.toString=function(){return N},U},utcParse:function(N){var U=T(N+="",!0);return U.toString=function(){return N},U}}}var GR={"-":"",_:" ",0:"0"},An=/^\s*\d+/,ZEe=/^%/,XEe=/[\\^$*+?|[\]().{}]/g;function ht(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function QEe(e){return e.replace(XEe,"\\$&")}function ed(e){return new RegExp("^(?:"+e.map(QEe).join("|")+")","i")}function td(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function JEe(e,t,n){var r=An.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ePe(e,t,n){var r=An.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function tPe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function nPe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rPe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qR(e,t,n){var r=An.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function KR(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function iPe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function oPe(e,t,n){var r=An.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function aPe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function YR(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sPe(e,t,n){var r=An.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ZR(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lPe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function uPe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cPe(e,t,n){var r=An.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fPe(e,t,n){var r=An.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dPe(e,t,n){var r=ZEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hPe(e,t,n){var r=An.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pPe(e,t,n){var r=An.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function XR(e,t){return ht(e.getDate(),t,2)}function mPe(e,t){return ht(e.getHours(),t,2)}function vPe(e,t){return ht(e.getHours()%12||12,t,2)}function gPe(e,t){return ht(1+Yp.count(ra(e),e),t,3)}function pB(e,t){return ht(e.getMilliseconds(),t,3)}function yPe(e,t){return pB(e,t)+"000"}function bPe(e,t){return ht(e.getMonth()+1,t,2)}function _Pe(e,t){return ht(e.getMinutes(),t,2)}function xPe(e,t){return ht(e.getSeconds(),t,2)}function wPe(e){var t=e.getDay();return t===0?7:t}function OPe(e,t){return ht($b.count(ra(e)-1,e),t,2)}function mB(e){var t=e.getDay();return t>=4||t===0?Pc(e):Pc.ceil(e)}function SPe(e,t){return e=mB(e),ht(Pc.count(ra(e),e)+(ra(e).getDay()===4),t,2)}function EPe(e){return e.getDay()}function PPe(e,t){return ht(Vy.count(ra(e)-1,e),t,2)}function CPe(e,t){return ht(e.getFullYear()%100,t,2)}function TPe(e,t){return e=mB(e),ht(e.getFullYear()%100,t,2)}function jPe(e,t){return ht(e.getFullYear()%1e4,t,4)}function APe(e,t){var n=e.getDay();return e=n>=4||n===0?Pc(e):Pc.ceil(e),ht(e.getFullYear()%1e4,t,4)}function kPe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ht(t/60|0,"0",2)+ht(t%60,"0",2)}function QR(e,t){return ht(e.getUTCDate(),t,2)}function NPe(e,t){return ht(e.getUTCHours(),t,2)}function MPe(e,t){return ht(e.getUTCHours()%12||12,t,2)}function RPe(e,t){return ht(1+Lb.count(ia(e),e),t,3)}function vB(e,t){return ht(e.getUTCMilliseconds(),t,3)}function LPe(e,t){return vB(e,t)+"000"}function $Pe(e,t){return ht(e.getUTCMonth()+1,t,2)}function IPe(e,t){return ht(e.getUTCMinutes(),t,2)}function DPe(e,t){return ht(e.getUTCSeconds(),t,2)}function FPe(e){var t=e.getUTCDay();return t===0?7:t}function BPe(e,t){return ht(Ib.count(ia(e)-1,e),t,2)}function gB(e){var t=e.getUTCDay();return t>=4||t===0?Cc(e):Cc.ceil(e)}function UPe(e,t){return e=gB(e),ht(Cc.count(ia(e),e)+(ia(e).getUTCDay()===4),t,2)}function zPe(e){return e.getUTCDay()}function VPe(e,t){return ht(Wy.count(ia(e)-1,e),t,2)}function WPe(e,t){return ht(e.getUTCFullYear()%100,t,2)}function HPe(e,t){return e=gB(e),ht(e.getUTCFullYear()%100,t,2)}function GPe(e,t){return ht(e.getUTCFullYear()%1e4,t,4)}function qPe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Cc(e):Cc.ceil(e),ht(e.getUTCFullYear()%1e4,t,4)}function KPe(){return"+0000"}function JR(){return"%"}function eL(e){return+e}function tL(e){return Math.floor(+e/1e3)}var su,yB,bB;YPe({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 YPe(e){return su=YEe(e),yB=su.format,su.parse,bB=su.utcFormat,su.utcParse,su}function ZPe(e){return new Date(e)}function XPe(e){return e instanceof Date?+e:+new Date(+e)}function aT(e,t,n,r,i,o,a,s,l,u){var f=GC(),d=f.invert,h=f.domain,v=u(".%L"),g=u(":%S"),y=u("%I:%M"),x=u("%I %p"),_=u("%a %d"),b=u("%b %d"),w=u("%B"),S=u("%Y");function E(P){return(l(P)<P?v:s(P)<P?g:a(P)<P?y:o(P)<P?x:r(P)<P?i(P)<P?_:b:n(P)<P?w:S)(P)}return f.invert=function(P){return new Date(d(P))},f.domain=function(P){return arguments.length?h(Array.from(P,XPe)):h().map(ZPe)},f.ticks=function(P){var T=h();return e(T[0],T[T.length-1],P??10)},f.tickFormat=function(P,T){return T==null?E:u(T)},f.nice=function(P){var T=h();return(!P||typeof P.range!="function")&&(P=t(T[0],T[T.length-1],P??10)),P?h(oB(T,P)):f},f.copy=function(){return Kp(f,aT(e,t,n,r,i,o,a,s,l,u))},f}function QPe(){return _i.apply(aT(qEe,KEe,ra,iT,$b,Yp,nT,eT,rl,yB).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function JPe(){return _i.apply(aT(HEe,GEe,ia,oT,Ib,Lb,rT,tT,rl,bB).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Db(){var e=0,t=1,n,r,i,o,a=ar,s=!1,l;function u(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(s=!!d,u):s},u.interpolator=function(d){return arguments.length?(a=d,u):a};function f(d){return function(h){var v,g;return arguments.length?([v,g]=h,a=d(v,g),u):[a(0),a(1)]}}return u.range=f(cf),u.rangeRound=f(HC),u.unknown=function(d){return arguments.length?(l=d,u):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),u}}function xs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function _B(){var e=_s(Db()(ar));return e.copy=function(){return xs(e,_B())},ha.apply(e,arguments)}function xB(){var e=YC(Db()).domain([1,10]);return e.copy=function(){return xs(e,xB()).base(e.base())},ha.apply(e,arguments)}function wB(){var e=ZC(Db());return e.copy=function(){return xs(e,wB()).constant(e.constant())},ha.apply(e,arguments)}function sT(){var e=XC(Db());return e.copy=function(){return xs(e,sT()).exponent(e.exponent())},ha.apply(e,arguments)}function eCe(){return sT.apply(null,arguments).exponent(.5)}function OB(){var e=[],t=ar;function n(r){if(r!=null&&!isNaN(r=+r))return t((Gp(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Za),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>BSe(e,o/r))},n.copy=function(){return OB(t).domain(e)},ha.apply(n,arguments)}function Fb(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,u=ar,f,d=!1,h;function v(y){return isNaN(y=+y)?h:(y=.5+((y=+f(y))-o)*(r*y<r*o?s:l),u(d?Math.max(0,Math.min(1,y)):y))}v.domain=function(y){return arguments.length?([e,t,n]=y,i=f(e=+e),o=f(t=+t),a=f(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(y){return arguments.length?(d=!!y,v):d},v.interpolator=function(y){return arguments.length?(u=y,v):u};function g(y){return function(x){var _,b,w;return arguments.length?([_,b,w]=x,u=dEe(y,[_,b,w]),v):[u(0),u(.5),u(1)]}}return v.range=g(cf),v.rangeRound=g(HC),v.unknown=function(y){return arguments.length?(h=y,v):h},function(y){return f=y,i=y(e),o=y(t),a=y(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,v}}function SB(){var e=_s(Fb()(ar));return e.copy=function(){return xs(e,SB())},ha.apply(e,arguments)}function EB(){var e=YC(Fb()).domain([.1,1,10]);return e.copy=function(){return xs(e,EB()).base(e.base())},ha.apply(e,arguments)}function PB(){var e=ZC(Fb());return e.copy=function(){return xs(e,PB()).constant(e.constant())},ha.apply(e,arguments)}function lT(){var e=XC(Fb());return e.copy=function(){return xs(e,lT()).exponent(e.exponent())},ha.apply(e,arguments)}function tCe(){return lT.apply(null,arguments).exponent(.5)}const nL=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:zh,scaleDiverging:SB,scaleDivergingLog:EB,scaleDivergingPow:lT,scaleDivergingSqrt:tCe,scaleDivergingSymlog:PB,scaleIdentity:iB,scaleImplicit:JO,scaleLinear:Uy,scaleLog:aB,scaleOrdinal:zC,scalePoint:Bd,scalePow:QC,scaleQuantile:uB,scaleQuantize:cB,scaleRadial:lB,scaleSequential:_B,scaleSequentialLog:xB,scaleSequentialPow:sT,scaleSequentialQuantile:OB,scaleSequentialSqrt:eCe,scaleSequentialSymlog:wB,scaleSqrt:LEe,scaleSymlog:sB,scaleThreshold:fB,scaleTime:QPe,scaleUtc:JPe,tickFormat:rB},Symbol.toStringTag,{value:"Module"}));var nCe=ef;function rCe(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(a!=null&&(s===void 0?a===a&&!nCe(a):n(a,s)))var s=a,l=o}return l}var Bb=rCe;function iCe(e,t){return e>t}var CB=iCe,oCe=Bb,aCe=CB,sCe=uf;function lCe(e){return e&&e.length?oCe(e,sCe,aCe):void 0}var uCe=lCe;const $a=st(uCe);function cCe(e,t){return e<t}var TB=cCe,fCe=Bb,dCe=TB,hCe=uf;function pCe(e){return e&&e.length?fCe(e,hCe,dCe):void 0}var mCe=pCe;const Ub=st(mCe);var vCe=xC,gCe=To,yCe=$7,bCe=jr;function _Ce(e,t){var n=bCe(e)?vCe:yCe;return n(e,gCe(t))}var xCe=_Ce,wCe=R7,OCe=xCe;function SCe(e,t){return wCe(OCe(e,t),1)}var ECe=SCe;const PCe=st(ECe);var CCe=$C;function TCe(e,t){return CCe(e,t)}var jCe=TCe;const ss=st(jCe);var ff=1e9,ACe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},cT,$t=!0,yi="[DecimalError] ",ml=yi+"Invalid argument: ",uT=yi+"Exponent out of range: ",df=Math.floor,Ws=Math.pow,kCe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Lr,Sn=1e7,jt=7,jB=9007199254740991,Hy=df(jB/jt),Ie={};Ie.absoluteValue=Ie.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ie.comparedTo=Ie.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Ie.decimalPlaces=Ie.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*jt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ie.dividedBy=Ie.div=function(e){return Wo(this,new this.constructor(e))};Ie.dividedToIntegerBy=Ie.idiv=function(e){var t=this,n=t.constructor;return _t(Wo(t,new n(e),0,1),n.precision)};Ie.equals=Ie.eq=function(e){return!this.cmp(e)};Ie.exponent=function(){return ln(this)};Ie.greaterThan=Ie.gt=function(e){return this.cmp(e)>0};Ie.greaterThanOrEqualTo=Ie.gte=function(e){return this.cmp(e)>=0};Ie.isInteger=Ie.isint=function(){return this.e>this.d.length-2};Ie.isNegative=Ie.isneg=function(){return this.s<0};Ie.isPositive=Ie.ispos=function(){return this.s>0};Ie.isZero=function(){return this.s===0};Ie.lessThan=Ie.lt=function(e){return this.cmp(e)<0};Ie.lessThanOrEqualTo=Ie.lte=function(e){return this.cmp(e)<1};Ie.logarithm=Ie.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Lr))throw Error(yi+"NaN");if(n.s<1)throw Error(yi+(n.s?"NaN":"-Infinity"));return n.eq(Lr)?new r(0):($t=!1,t=Wo(qh(n,o),qh(e,o),o),$t=!0,_t(t,i))};Ie.minus=Ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?NB(t,e):AB(t,(e.s=-e.s,e))};Ie.modulo=Ie.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(yi+"NaN");return n.s?($t=!1,t=Wo(n,e,0,1).times(e),$t=!0,n.minus(t)):_t(new r(n),i)};Ie.naturalExponential=Ie.exp=function(){return kB(this)};Ie.naturalLogarithm=Ie.ln=function(){return qh(this)};Ie.negated=Ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ie.plus=Ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?AB(t,e):NB(t,(e.s=-e.s,e))};Ie.precision=Ie.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ml+e);if(t=ln(i)+1,r=i.d.length-1,n=r*jt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Ie.squareRoot=Ie.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(yi+"NaN")}for(e=ln(s),$t=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=co(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=df((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(Wo(s,o,a+2)).times(.5),co(o.d).slice(0,a)===(t=co(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(_t(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return $t=!0,_t(r,n)};Ie.times=Ie.mul=function(e){var t,n,r,i,o,a,s,l,u,f=this,d=f.constructor,h=f.d,v=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=h.length,u=v.length,l<u&&(o=h,h=v,v=o,a=l,l=u,u=a),o=[],a=l+u,r=a;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+v[r]*h[i-r-1]+t,o[i--]=s%Sn|0,t=s/Sn|0;o[i]=(o[i]+t)%Sn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,$t?_t(e,d.precision):e};Ie.toDecimalPlaces=Ie.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(xo(e,0,ff),t===void 0?t=r.rounding:xo(t,0,8),_t(n,e+ln(n)+1,t))};Ie.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Tl(r,!0):(xo(e,0,ff),t===void 0?t=i.rounding:xo(t,0,8),r=_t(new i(r),e+1,t),n=Tl(r,!0,e+1)),n};Ie.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Tl(i):(xo(e,0,ff),t===void 0?t=o.rounding:xo(t,0,8),r=_t(new o(i),e+ln(i)+1,t),n=Tl(r.abs(),!1,e+ln(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Ie.toInteger=Ie.toint=function(){var e=this,t=e.constructor;return _t(new t(e),ln(e)+1,t.rounding)};Ie.toNumber=function(){return+this};Ie.toPower=Ie.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(Lr);if(s=new l(s),!s.s){if(e.s<1)throw Error(yi+"Infinity");return s}if(s.eq(Lr))return s;if(r=l.precision,e.eq(Lr))return _t(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=jB){for(i=new l(Lr),t=Math.ceil(r/jt+4),$t=!1;n%2&&(i=i.times(s),iL(i.d,t)),n=df(n/2),n!==0;)s=s.times(s),iL(s.d,t);return $t=!0,e.s<0?new l(Lr).div(i):_t(i,r)}}else if(o<0)throw Error(yi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,$t=!1,i=e.times(qh(s,r+u)),$t=!0,i=kB(i),i.s=o,i};Ie.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=ln(i),r=Tl(i,n<=o.toExpNeg||n>=o.toExpPos)):(xo(e,1,ff),t===void 0?t=o.rounding:xo(t,0,8),i=_t(new o(i),e,t),n=ln(i),r=Tl(i,e<=n||n<=o.toExpNeg,e)),r};Ie.toSignificantDigits=Ie.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(xo(e,1,ff),t===void 0?t=r.rounding:xo(t,0,8)),_t(new r(n),e,t)};Ie.toString=Ie.valueOf=Ie.val=Ie.toJSON=Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ln(e),n=e.constructor;return Tl(e,t<=n.toExpNeg||t>=n.toExpPos)};function AB(e,t){var n,r,i,o,a,s,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),$t?_t(t,d):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=u.length):(r=u,i=a,s=l.length),a=Math.ceil(d/jt),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/Sn|0,l[o]%=Sn;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,$t?_t(t,d):t}function xo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ml+e)}function co(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=jt-r.length,n&&(o+=Ta(n)),o+=r;a=e[t],r=a+"",n=jt-r.length,n&&(o+=Ta(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Wo=function(){function e(r,i){var o,a=0,s=r.length;for(r=r.slice();s--;)o=r[s]*i+a,r[s]=o%Sn|0,a=o/Sn|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*Sn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,l,u,f,d,h,v,g,y,x,_,b,w,S,E,P,T,A,D=r.constructor,k=r.s==i.s?1:-1,I=r.d,F=i.d;if(!r.s)return new D(r);if(!i.s)throw Error(yi+"Division by zero");for(l=r.e-i.e,T=F.length,E=I.length,v=new D(k),g=v.d=[],u=0;F[u]==(I[u]||0);)++u;if(F[u]>(I[u]||0)&&--l,o==null?b=o=D.precision:a?b=o+(ln(r)-ln(i))+1:b=o,b<0)return new D(0);if(b=b/jt+2|0,u=0,T==1)for(f=0,F=F[0],b++;(u<E||f)&&b--;u++)w=f*Sn+(I[u]||0),g[u]=w/F|0,f=w%F|0;else{for(f=Sn/(F[0]+1)|0,f>1&&(F=e(F,f),I=e(I,f),T=F.length,E=I.length),S=T,y=I.slice(0,T),x=y.length;x<T;)y[x++]=0;A=F.slice(),A.unshift(0),P=F[0],F[1]>=Sn/2&&++P;do f=0,s=t(F,y,T,x),s<0?(_=y[0],T!=x&&(_=_*Sn+(y[1]||0)),f=_/P|0,f>1?(f>=Sn&&(f=Sn-1),d=e(F,f),h=d.length,x=y.length,s=t(d,y,h,x),s==1&&(f--,n(d,T<h?A:F,h))):(f==0&&(s=f=1),d=F.slice()),h=d.length,h<x&&d.unshift(0),n(y,d,x),s==-1&&(x=y.length,s=t(F,y,T,x),s<1&&(f++,n(y,T<x?A:F,x))),x=y.length):s===0&&(f++,y=[0]),g[u++]=f,s&&y[0]?y[x++]=I[S]||0:(y=[I[S]],x=1);while((S++<E||y[0]!==void 0)&&b--)}return g[0]||g.shift(),v.e=l,_t(v,a?o+ln(v)+1:o)}}();function kB(e,t){var n,r,i,o,a,s,l=0,u=0,f=e.constructor,d=f.precision;if(ln(e)>16)throw Error(uT+ln(e));if(!e.s)return new f(Lr);for(t==null?($t=!1,s=d):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Ws(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new f(Lr),f.precision=s;;){if(i=_t(i.times(e),s),n=n.times(++l),a=o.plus(Wo(i,n,s)),co(a.d).slice(0,s)===co(o.d).slice(0,s)){for(;u--;)o=_t(o.times(o),s);return f.precision=d,t==null?($t=!0,_t(o,d)):o}o=a}}function ln(e){for(var t=e.e*jt,n=e.d[0];n>=10;n/=10)t++;return t}function ix(e,t,n){if(t>e.LN10.sd())throw $t=!0,n&&(e.precision=n),Error(yi+"LN10 precision limit exceeded");return _t(new e(e.LN10),t)}function Ta(e){for(var t="";e--;)t+="0";return t}function qh(e,t){var n,r,i,o,a,s,l,u,f,d=1,h=10,v=e,g=v.d,y=v.constructor,x=y.precision;if(v.s<1)throw Error(yi+(v.s?"NaN":"-Infinity"));if(v.eq(Lr))return new y(0);if(t==null?($t=!1,u=x):u=t,v.eq(10))return t==null&&($t=!0),ix(y,u);if(u+=h,y.precision=u,n=co(g),r=n.charAt(0),o=ln(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=co(v.d),r=n.charAt(0),d++;o=ln(v),r>1?(v=new y("0."+n),o++):v=new y(r+"."+n.slice(1))}else return l=ix(y,u+2,x).times(o+""),v=qh(new y(r+"."+n.slice(1)),u-h).plus(l),y.precision=x,t==null?($t=!0,_t(v,x)):v;for(s=a=v=Wo(v.minus(Lr),v.plus(Lr),u),f=_t(v.times(v),u),i=3;;){if(a=_t(a.times(f),u),l=s.plus(Wo(a,new y(i),u)),co(l.d).slice(0,u)===co(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(ix(y,u+2,x).times(o+""))),s=Wo(s,new y(d),u),y.precision=x,t==null?($t=!0,_t(s,x)):s;s=l,i+=2}}function rL(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=df(n/jt),e.d=[],r=(n+1)%jt,n<0&&(r+=jt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=jt;r<i;)e.d.push(+t.slice(r,r+=jt));t=t.slice(r),r=jt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),$t&&(e.e>Hy||e.e<-Hy))throw Error(uT+n)}else e.s=0,e.e=0,e.d=[0];return e}function _t(e,t,n){var r,i,o,a,s,l,u,f,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=jt,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/jt),o=d.length,f>=o)return e;for(u=o=d[f],a=1;o>=10;o/=10)a++;r%=jt,i=r-jt+a}if(n!==void 0&&(o=Ws(10,a-i-1),s=u/o%10|0,l=t<0||d[f+1]!==void 0||u%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Ws(10,a-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=ln(e),d.length=1,t=t-o-1,d[0]=Ws(10,(jt-t%jt)%jt),e.e=df(-t/jt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,o=1,f--):(d.length=f+1,o=Ws(10,jt-r),d[f]=i>0?(u/Ws(10,a-i)%Ws(10,i)|0)*o:0),l)for(;;)if(f==0){(d[0]+=o)==Sn&&(d[0]=1,++e.e);break}else{if(d[f]+=o,d[f]!=Sn)break;d[f--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if($t&&(e.e>Hy||e.e<-Hy))throw Error(uT+ln(e));return e}function NB(e,t){var n,r,i,o,a,s,l,u,f,d,h=e.constructor,v=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),$t?_t(t,v):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(f=a<0,f?(n=l,a=-a,s=d.length):(n=d,r=u,s=l.length),i=Math.max(Math.ceil(v/jt),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){f=l[i]<d[i];break}a=0}for(f&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(o=i;o&&l[--o]===0;)l[o]=Sn-1;--l[o],l[i]+=Sn}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,$t?_t(t,v):t):new h(0)}function Tl(e,t,n){var r,i=ln(e),o=co(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Ta(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ta(-i-1)+o,n&&(r=n-a)>0&&(o+=Ta(r))):i>=a?(o+=Ta(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Ta(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Ta(r))),e.s<0?"-"+o:o}function iL(e,t){if(e.length>t)return e.length=t,!0}function MB(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ml+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 rL(a,o.toString())}else if(typeof o!="string")throw Error(ml+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,kCe.test(o))rL(a,o);else throw Error(ml+o)}if(i.prototype=Ie,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=MB,i.config=i.set=NCe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function NCe(e){if(!e||typeof e!="object")throw Error(yi+"Object expected");var t,n,r,i=["precision",1,ff,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(df(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ml+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ml+n+": "+r);return this}var cT=MB(ACe);Lr=new cT(1);const yt=cT;function MCe(e){return ICe(e)||$Ce(e)||LCe(e)||RCe()}function RCe(){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 LCe(e,t){if(e){if(typeof e=="string")return rS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rS(e,t)}}function $Ce(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ICe(e){if(Array.isArray(e))return rS(e)}function rS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var DCe=function(t){return t},RB={"@@functional/placeholder":!0},LB=function(t){return t===RB},oL=function(t){return function n(){return arguments.length===0||arguments.length===1&&LB(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},FCe=function e(t,n){return t===1?n:oL(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==RB}).length;return a>=t?n.apply(void 0,i):e(t-a,oL(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(d){return LB(d)?l.shift():d});return n.apply(void 0,MCe(f).concat(l))}))})},zb=function(t){return FCe(t.length,t)},iS=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},BCe=zb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),UCe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return DCe;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,l){return l(s)},o.apply(void 0,arguments))}},oS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},$B=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n&&o.every(function(s,l){return s===n[l]})||(n=o,r=t.apply(void 0,o)),r}};function zCe(e){var t;return e===0?t=1:t=Math.floor(new yt(e).abs().log(10).toNumber())+1,t}function VCe(e,t,n){for(var r=new yt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var WCe=zb(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),HCe=zb(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),GCe=zb(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Vb={rangeStep:VCe,getDigitCount:zCe,interpolateNumber:WCe,uninterpolateNumber:HCe,uninterpolateTruncation:GCe};function aS(e){return YCe(e)||KCe(e)||IB(e)||qCe()}function qCe(){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 KCe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function YCe(e){if(Array.isArray(e))return sS(e)}function Kh(e,t){return QCe(e)||XCe(e,t)||IB(e,t)||ZCe()}function ZCe(){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 IB(e,t){if(e){if(typeof e=="string")return sS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sS(e,t)}}function sS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XCe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function QCe(e){if(Array.isArray(e))return e}function DB(e){var t=Kh(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function FB(e,t,n){if(e.lte(0))return new yt(0);var r=Vb.getDigitCount(e.toNumber()),i=new yt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new yt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?l:new yt(Math.ceil(l))}function JCe(e,t,n){var r=1,i=new yt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new yt(10).pow(Vb.getDigitCount(e)-1),i=new yt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new yt(Math.floor(e)))}else e===0?i=new yt(Math.floor((t-1)/2)):n||(i=new yt(Math.floor(e)));var a=Math.floor((t-1)/2),s=UCe(BCe(function(l){return i.add(new yt(l-a).mul(r)).toNumber()}),iS);return s(0,t)}function BB(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new yt(0),tickMin:new yt(0),tickMax:new yt(0)};var o=FB(new yt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new yt(0):(a=new yt(e).add(t).div(2),a=a.sub(new yt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new yt(t).sub(a).div(o).toNumber()),u=s+l+1;return u>n?BB(e,t,n,r,i+1):(u<n&&(l=t>0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:o,tickMin:a.sub(new yt(s).mul(o)),tickMax:a.add(new yt(l).mul(o))})}function eTe(e){var t=Kh(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=DB([n,r]),l=Kh(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(aS(iS(0,i-1).map(function(){return 1/0}))):[].concat(aS(iS(0,i-1).map(function(){return-1/0})),[f]);return n>r?oS(d):d}if(u===f)return JCe(u,i,o);var h=BB(u,f,a,o),v=h.step,g=h.tickMin,y=h.tickMax,x=Vb.rangeStep(g,y.add(new yt(.1).mul(v)),v);return n>r?oS(x):x}function tTe(e,t){var n=Kh(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=DB([r,i]),s=Kh(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),d=FB(new yt(u).sub(l).div(f-1),o,0),h=[].concat(aS(Vb.rangeStep(new yt(l),new yt(u).sub(new yt(.99).mul(d)),d)),[u]);return r>i?oS(h):h}var nTe=$B(eTe),rTe=$B(tTe),iTe="Invariant failed";function jl(e,t){if(!e)throw new Error(iTe)}var oTe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gy.apply(this,arguments)}function aTe(e,t){return cTe(e)||uTe(e,t)||lTe(e,t)||sTe()}function sTe(){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 lTe(e,t){if(e){if(typeof e=="string")return aL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aL(e,t)}}function aL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function cTe(e){if(Array.isArray(e))return e}function fTe(e,t){if(e==null)return{};var n=dTe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function hf(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=fTe(e,oTe),f=De(u,!1);e.direction==="x"&&s.type!=="number"&&jl(!1);var d=o.map(function(h){var v=a(h,i),g=v.x,y=v.y,x=v.value,_=v.errorVal;if(!_)return null;var b=[],w,S;if(Array.isArray(_)){var E=aTe(_,2);w=E[0],S=E[1]}else w=S=_;if(n==="vertical"){var P=s.scale,T=y+t,A=T+r,D=T-r,k=P(x-w),I=P(x+S);b.push({x1:I,y1:A,x2:I,y2:D}),b.push({x1:k,y1:T,x2:I,y2:T}),b.push({x1:k,y1:A,x2:k,y2:D})}else if(n==="horizontal"){var F=l.scale,q=g+t,W=q-r,X=q+r,Q=F(x-w),ne=F(x+S);b.push({x1:W,y1:ne,x2:X,y2:ne}),b.push({x1:q,y1:Q,x2:q,y2:ne}),b.push({x1:W,y1:Q,x2:X,y2:Q})}return V.createElement(Qe,Gy({className:"recharts-errorBar",key:"bar-".concat(b.map(function(Z){return"".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))},f),b.map(function(Z){return V.createElement("line",Gy({},Z,{key:"line-".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))}))});return V.createElement(Qe,{className:"recharts-errorBars"},d)}hf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};hf.displayName="ErrorBar";function Yh(e){"@babel/helpers - typeof";return Yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yh(e)}function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ox(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sL(Object(n),!0).forEach(function(r){hTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hTe(e,t,n){return t=pTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pTe(e){var t=mTe(e,"string");return Yh(t)=="symbol"?t:String(t)}function mTe(e,t){if(Yh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UB=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Rr(n,$h);if(!a)return null;var s;return a.props&&a.props.payload?s=a.props&&a.props.payload:o==="children"?s=(r||[]).reduce(function(l,u){var f=u.item,d=u.props,h=d.sectors||d.data||[];return l.concat(h.map(function(v){return{type:a.props.iconType||f.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(r||[]).map(function(l){var u=l.item,f=u.props,d=f.dataKey,h=f.name,v=f.legendType,g=f.hide;return{inactive:g,dataKey:d,type:a.props.iconType||v||"square",color:fT(u),value:h||d,payload:u.props}}),ox(ox(ox({},a.props),$h.getWithHeight(a,i)),{},{payload:s,item:a})};function Zh(e){"@babel/helpers - typeof";return Zh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zh(e)}function lL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lL(Object(n),!0).forEach(function(r){Zu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zu(e,t,n){return t=vTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vTe(e){var t=gTe(e,"string");return Zh(t)=="symbol"?t:String(t)}function gTe(e,t){if(Zh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uL(e){return xTe(e)||_Te(e)||bTe(e)||yTe()}function yTe(){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 bTe(e,t){if(e){if(typeof e=="string")return lS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lS(e,t)}}function _Te(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xTe(e){if(Array.isArray(e))return lS(e)}function lS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kt(e,t,n){return ze(e)||ze(t)?n:pn(t)?Fr(e,t,n):We(t)?t(e):n}function Ud(e,t,n,r){var i=PCe(e,function(s){return kt(s,t)});if(n==="number"){var o=i.filter(function(s){return Ee(s)||parseFloat(s)});return o.length?[Ub(o),$a(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!ze(s)}):i;return a.map(function(s){return pn(s)||s instanceof Date?s:""})}var wTe=function(t){var n,r=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=(n=r==null?void 0:r.length)!==null&&n!==void 0?n: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 l=o.range,u=0;u<s;u++){var f=u>0?i[u-1].coordinate:i[s-1].coordinate,d=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,v=void 0;if(ir(d-f)!==ir(h-d)){var g=[];if(ir(h-d)===ir(l[1]-l[0])){v=h;var y=d+l[1]-l[0];g[0]=Math.min(y,(y+f)/2),g[1]=Math.max(y,(y+f)/2)}else{v=f;var x=h+l[1]-l[0];g[0]=Math.min(d,(x+d)/2),g[1]=Math.max(d,(x+d)/2)}var _=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(t>_[0]&&t<=_[1]||t>=g[0]&&t<=g[1]){a=i[u].index;break}}else{var b=Math.min(f,h),w=Math.max(f,h);if(t>(b+d)/2&&t<=(w+d)/2){a=i[u].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S>0&&S<s-1&&t>(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===s-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){a=r[S].index;break}return a},fT=function(t){var n=t,r=n.type.displayName,i=t.props,o=i.stroke,a=i.fill,s;switch(r){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:a;break;default:s=a;break}return s},OTe=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),l=0,u=s.length;l<u;l++)for(var f=o[s[l]].stackGroups,d=Object.keys(f),h=0,v=d.length;h<v;h++){var g=f[d[h]],y=g.items,x=g.cateAxisId,_=y.filter(function(E){return Vo(E.type).indexOf("Bar")>=0});if(_&&_.length){var b=_[0].props.barSize,w=_[0].props[x];a[w]||(a[w]=[]);var S=ze(b)?n:b;a[w].push({item:_[0],stackList:_.slice(1),barSize:ze(S)?void 0:or(S,r,0)})}}return a},STe=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,l=a.length;if(l<1)return null;var u=or(n,i,0,!0),f,d=[];if(a[0].barSize===+a[0].barSize){var h=!1,v=i/l,g=a.reduce(function(S,E){return S+E.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&v>0&&(h=!0,v*=.9,g=l*v);var y=(i-g)/2>>0,x={offset:y-u,size:0};f=a.reduce(function(S,E){var P={item:E.item,position:{offset:x.offset+x.size+u,size:h?v:E.barSize}},T=[].concat(uL(S),[P]);return x=T[T.length-1].position,E.stackList&&E.stackList.length&&E.stackList.forEach(function(A){T.push({item:A,position:x})}),T},d)}else{var _=or(r,i,0,!0);i-2*_-(l-1)*u<=0&&(u=0);var b=(i-2*_-(l-1)*u)/l;b>1&&(b>>=0);var w=s===+s?Math.min(b,s):b;f=a.reduce(function(S,E,P){var T=[].concat(uL(S),[{item:E.item,position:{offset:_+(b+u)*P+(b-w)/2,size:w}}]);return E.stackList&&E.stackList.length&&E.stackList.forEach(function(A){T.push({item:A,position:T[T.length-1].position})}),T},d)}return f},ETe=function(t,n,r,i){var o=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),u=UB({children:o,legendWidth:l});if(u){var f=i||{},d=f.width,h=f.height,v=u.align,g=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&g==="middle")&&v!=="center"&&Ee(t[v]))return ai(ai({},t),{},Zu({},v,t[v]+(d||0)));if((y==="horizontal"||y==="vertical"&&v==="center")&&g!=="middle"&&Ee(t[g]))return ai(ai({},t),{},Zu({},g,t[g]+(h||0)))}return t},PTe=function(t,n,r){return ze(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},zB=function(t,n,r,i,o){var a=n.props.children,s=ur(a,hf).filter(function(u){return PTe(i,o,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=kt(f,r);if(ze(d))return u;var h=Array.isArray(d)?[Ub(d),$a(d)]:[d,d],v=l.reduce(function(g,y){var x=kt(f,y,0),_=h[0]-Math.abs(Array.isArray(x)?x[0]:x),b=h[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(_,g[0]),Math.max(b,g[1])]},[1/0,-1/0]);return[Math.min(v[0],u[0]),Math.max(v[1],u[1])]},[1/0,-1/0])}return null},CTe=function(t,n,r,i,o){var a=n.map(function(s){return zB(t,s,r,o,i)}).filter(function(s){return!ze(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},VB=function(t,n,r,i,o){var a=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&zB(t,l,u,i)||Ud(t,u,r,o)});if(r==="number")return a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,u){for(var f=0,d=u.length;f<d;f++)s[u[f]]||(s[u[f]]=!0,l.push(u[f]));return l},[])},WB=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},HB=function(t,n,r,i){if(i)return t.map(function(l){return l.coordinate});var o,a,s=t.map(function(l){return l.coordinate===n&&(o=!0),l.coordinate===r&&(a=!0),l.coordinate});return o||s.push(n),a||s.push(r),s},Uo=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?ir(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=o?o.indexOf(d):d;return{coordinate:i(h)+u,value:d,offset:u}});return f.filter(function(d){return!af(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:i(d)+u,value:d,index:h,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+u,value:d,offset:u}}):i.domain().map(function(d,h){return{coordinate:i(d)+u,value:o?o[d]:d,index:h,offset:u}})},ax=new WeakMap,yv=function(t,n){if(typeof n!="function")return t;ax.has(t)||ax.set(t,new WeakMap);var r=ax.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},GB=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:zh(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Uy(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Bd(),realScaleType:"point"}:o==="category"?{scale:zh(),realScaleType:"band"}:{scale:Uy(),realScaleType:"linear"};if(Wp(i)){var l="scale".concat(Pb(i));return{scale:(nL[l]||Bd)(),realScaleType:nL[l]?l:"point"}}return We(i)?{scale:i}:{scale:Bd(),realScaleType:"point"}},cL=1e-4,qB=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-cL,a=Math.max(i[0],i[1])+cL,s=t(n[0]),l=t(n[r-1]);(s<o||s>a||l<o||l>a)&&t.domain([n[0],n[r-1]])}},TTe=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},jTe=function(t,n){if(!n||n.length!==2||!Ee(n[0])||!Ee(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!Ee(t[0])||t[0]<r)&&(o[0]=r),(!Ee(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},ATe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0,s=0;s<n;++s){var l=af(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},kTe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0;a<n;++a){var s=af(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=o,t[a][r][1]=o+s,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},NTe={sign:ATe,expand:cye,none:_c,silhouette:fye,wiggle:dye,positive:kTe},MTe=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),o=NTe[r],a=uye().keys(i).value(function(s,l){return+kt(s,l,0)}).order(MO).offset(o);return a(t)},RTe=function(t,n,r,i,o,a){if(!t)return null;var s=a?n.reverse():n,l={},u=s.reduce(function(d,h){var v=h.props,g=v.stackId,y=v.hide;if(y)return d;var x=h.props[r],_=d[x]||{hasStack:!1,stackGroups:{}};if(pn(g)){var b=_.stackGroups[g]||{numericAxisId:r,cateAxisId:i,items:[]};b.items.push(h),_.hasStack=!0,_.stackGroups[g]=b}else _.stackGroups[bs("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[h]};return ai(ai({},d),{},Zu({},x,_))},l),f={};return Object.keys(u).reduce(function(d,h){var v=u[h];if(v.hasStack){var g={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(y,x){var _=v.stackGroups[x];return ai(ai({},y),{},Zu({},x,{numericAxisId:r,cateAxisId:i,items:_.items,stackedData:MTe(t,_.items,o)}))},g)}return ai(ai({},d),{},Zu({},h,v))},f)},KB=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=nTe(u,o,s);return t.domain([Ub(f),$a(f)]),{niceTicks:f}}if(o&&i==="number"){var d=t.domain(),h=rTe(d,o,s);return{niceTicks:h}}return null};function Tc(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ze(i[t.dataKey])){var s=_y(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=kt(i,ze(a)?t.dataKey:a);return ze(l)?null:t.scale(l)}var fL=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var l=kt(a,n.dataKey,n.domain[s]);return ze(l)?null:n.scale(l)-o/2+i},LTe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},$Te=function(t,n){var r=t.props.stackId;if(pn(r)){var i=n[r];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null},ITe=function(t){return t.reduce(function(n,r){return[Ub(r.concat([n[0]]).filter(Ee)),$a(r.concat([n[1]]).filter(Ee))]},[1/0,-1/0])},YB=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,l=s.reduce(function(u,f){var d=ITe(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},dL=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hL=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uS=function(t,n,r){if(We(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Ee(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(dL.test(t[0])){var o=+dL.exec(t[0])[1];i[0]=n[0]-o}else We(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Ee(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(hL.test(t[1])){var a=+hL.exec(t[1])[1];i[1]=n[1]+a}else We(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},qy=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=DC(n,function(d){return d.coordinate}),a=1/0,s=1,l=o.length;s<l;s++){var u=o[s],f=o[s-1];a=Math.min((u.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},pL=function(t,n,r){return!t||!t.length||ss(t,Fr(r,"type.defaultProps.domain"))?n:t},ZB=function(t,n){var r=t.props,i=r.dataKey,o=r.name,a=r.unit,s=r.formatter,l=r.tooltipType,u=r.chartType,f=r.hide;return ai(ai({},De(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:fT(t),value:kt(n,i),type:l,payload:n,chartType:u,hide:f})};function Xh(e){"@babel/helpers - typeof";return Xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xh(e)}function mL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mL(Object(n),!0).forEach(function(r){XB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XB(e,t,n){return t=DTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DTe(e){var t=FTe(e,"string");return Xh(t)=="symbol"?t:String(t)}function FTe(e,t){if(Xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BTe(e,t){return WTe(e)||VTe(e,t)||zTe(e,t)||UTe()}function UTe(){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 zTe(e,t){if(e){if(typeof e=="string")return vL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vL(e,t)}}function vL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function WTe(e){if(Array.isArray(e))return e}var Ky=Math.PI/180,HTe=function(t){return t*180/Math.PI},Et=function(t,n,r,i){return{x:t+Math.cos(-Ky*i)*r,y:n+Math.sin(-Ky*i)*r}},QB=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},GTe=function(t,n,r,i,o){var a=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=or(t.cx,a,a/2),d=or(t.cy,s,s/2),h=QB(a,s,r),v=or(t.innerRadius,h,0),g=or(t.outerRadius,h,h*.8),y=Object.keys(n);return y.reduce(function(x,_){var b=n[_],w=b.domain,S=b.reversed,E;if(ze(b.range))i==="angleAxis"?E=[l,u]:i==="radiusAxis"&&(E=[v,g]),S&&(E=[E[1],E[0]]);else{E=b.range;var P=E,T=BTe(P,2);l=T[0],u=T[1]}var A=GB(b,o),D=A.realScaleType,k=A.scale;k.domain(w).range(E),qB(k);var I=KB(k,Lo(Lo({},b),{},{realScaleType:D})),F=Lo(Lo(Lo({},b),I),{},{range:E,radius:g,realScaleType:D,scale:k,cx:f,cy:d,innerRadius:v,outerRadius:g,startAngle:l,endAngle:u});return Lo(Lo({},x),{},XB({},_,F))},{})},qTe=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},KTe=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,s=qTe({x:r,y:i},{x:o,y:a});if(s<=0)return{radius:s};var l=(r-o)/s,u=Math.acos(l);return i>a&&(u=2*Math.PI-u),{radius:s,angle:HTe(u),angleInRadian:u}},YTe=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},ZTe=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},gL=function(t,n){var r=t.x,i=t.y,o=KTe({x:r,y:i},n),a=o.radius,s=o.angle,l=n.innerRadius,u=n.outerRadius;if(a<l||a>u)return!1;if(a===0)return!0;var f=YTe(n),d=f.startAngle,h=f.endAngle,v=s,g;if(d<=h){for(;v>h;)v-=360;for(;v<d;)v+=360;g=v>=d&&v<=h}else{for(;v>d;)v-=360;for(;v<h;)v+=360;g=v>=h&&v<=d}return g?Lo(Lo({},n),{},{radius:a,angle:ZTe(v,n)}):null},JB=function(t){return!R.isValidElement(t)&&!We(t)&&typeof t!="boolean"?t.className:""};function Qh(e){"@babel/helpers - typeof";return Qh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qh(e)}var XTe=["offset"];function QTe(e){return nje(e)||tje(e)||eje(e)||JTe()}function JTe(){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 eje(e,t){if(e){if(typeof e=="string")return cS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cS(e,t)}}function tje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nje(e){if(Array.isArray(e))return cS(e)}function cS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rje(e,t){if(e==null)return{};var n=ije(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ije(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yL(Object(n),!0).forEach(function(r){oje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oje(e,t,n){return t=aje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aje(e){var t=sje(e,"string");return Qh(t)=="symbol"?t:String(t)}function sje(e,t){if(Qh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(this,arguments)}var lje=function(t){var n=t.value,r=t.formatter,i=ze(t.children)?n:t.children;return We(r)?r(i):i},uje=function(t,n){var r=ir(n-t),i=Math.min(Math.abs(n-t),360);return r*i},cje=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,l=o,u=l.cx,f=l.cy,d=l.innerRadius,h=l.outerRadius,v=l.startAngle,g=l.endAngle,y=l.clockWise,x=(d+h)/2,_=uje(v,g),b=_>=0?1:-1,w,S;i==="insideStart"?(w=v+b*a,S=y):i==="insideEnd"?(w=g-b*a,S=!y):i==="end"&&(w=g+b*a,S=y),S=_<=0?S:!S;var E=Et(u,f,x,w),P=Et(u,f,x,w+(S?1:-1)*359),T="M".concat(E.x,",").concat(E.y,`
|
||
A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`,
|
||
`).concat(P.x,",").concat(P.y),A=ze(t.id)?bs("recharts-radial-line-"):t.id;return V.createElement("text",Jh({},r,{dominantBaseline:"central",className:Pe("recharts-radial-bar-label",s)}),V.createElement("defs",null,V.createElement("path",{id:A,d:T})),V.createElement("textPath",{xlinkHref:"#".concat(A)},n))},fje=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,s=o.cy,l=o.innerRadius,u=o.outerRadius,f=o.startAngle,d=o.endAngle,h=(f+d)/2;if(i==="outside"){var v=Et(a,s,u+r,h),g=v.x,y=v.y;return{x:g,y,textAnchor:g>=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 x=(l+u)/2,_=Et(a,s,x,h),b=_.x,w=_.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},dje=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,s=a.x,l=a.y,u=a.width,f=a.height,d=f>=0?1:-1,h=d*i,v=d>0?"end":"start",g=d>0?"start":"end",y=u>=0?1:-1,x=y*i,_=y>0?"end":"start",b=y>0?"start":"end";if(o==="top"){var w={x:s+u/2,y:l-d*i,textAnchor:"middle",verticalAnchor:v};return cn(cn({},w),r?{height:Math.max(l-r.y,0),width:u}:{})}if(o==="bottom"){var S={x:s+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:g};return cn(cn({},S),r?{height:Math.max(r.y+r.height-(l+f),0),width:u}:{})}if(o==="left"){var E={x:s-x,y:l+f/2,textAnchor:_,verticalAnchor:"middle"};return cn(cn({},E),r?{width:Math.max(E.x-r.x,0),height:f}:{})}if(o==="right"){var P={x:s+u+x,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return cn(cn({},P),r?{width:Math.max(r.x+r.width-P.x,0),height:f}:{})}var T=r?{width:u,height:f}:{};return o==="insideLeft"?cn({x:s+x,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},T):o==="insideRight"?cn({x:s+u-x,y:l+f/2,textAnchor:_,verticalAnchor:"middle"},T):o==="insideTop"?cn({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:g},T):o==="insideBottom"?cn({x:s+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:v},T):o==="insideTopLeft"?cn({x:s+x,y:l+h,textAnchor:b,verticalAnchor:g},T):o==="insideTopRight"?cn({x:s+u-x,y:l+h,textAnchor:_,verticalAnchor:g},T):o==="insideBottomLeft"?cn({x:s+x,y:l+f-h,textAnchor:b,verticalAnchor:v},T):o==="insideBottomRight"?cn({x:s+u-x,y:l+f-h,textAnchor:_,verticalAnchor:v},T):tf(o)&&(Ee(o.x)||tl(o.x))&&(Ee(o.y)||tl(o.y))?cn({x:s+or(o.x,u),y:l+or(o.y,f),textAnchor:"end",verticalAnchor:"end"},T):cn({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},T)},hje=function(t){return"cx"in t&&Ee(t.cx)};function Pn(e){var t=e.offset,n=t===void 0?5:t,r=rje(e,XTe),i=cn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,f=i.className,d=f===void 0?"":f,h=i.textBreakAll;if(!o||ze(s)&&ze(l)&&!R.isValidElement(u)&&!We(u))return null;if(R.isValidElement(u))return R.cloneElement(u,i);var v;if(We(u)){if(v=R.createElement(u,i),R.isValidElement(v))return v}else v=lje(i);var g=hje(o),y=De(i,!0);if(g&&(a==="insideStart"||a==="insideEnd"||a==="end"))return cje(i,v,y);var x=g?fje(i):dje(i);return V.createElement(Cl,Jh({className:Pe("recharts-label",d)},y,x,{breakAll:h}),v)}Pn.displayName="Label";var eU=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,v=t.top,g=t.left,y=t.width,x=t.height,_=t.clockWise,b=t.labelViewBox;if(b)return b;if(Ee(y)&&Ee(x)){if(Ee(d)&&Ee(h))return{x:d,y:h,width:y,height:x};if(Ee(v)&&Ee(g))return{x:v,y:g,width:y,height:x}}return Ee(d)&&Ee(h)?{x:d,y:h,width:0,height:0}:Ee(n)&&Ee(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:_}:t.viewBox?t.viewBox:{}},pje=function(t,n){return t?t===!0?V.createElement(Pn,{key:"label-implicit",viewBox:n}):pn(t)?V.createElement(Pn,{key:"label-implicit",viewBox:n,value:t}):R.isValidElement(t)?t.type===Pn?R.cloneElement(t,{key:"label-implicit",viewBox:n}):V.createElement(Pn,{key:"label-implicit",content:t,viewBox:n}):We(t)?V.createElement(Pn,{key:"label-implicit",content:t,viewBox:n}):tf(t)?V.createElement(Pn,Jh({viewBox:n},t,{key:"label-implicit"})):null:null},mje=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=eU(t),a=ur(i,Pn).map(function(l,u){return R.cloneElement(l,{viewBox:n||o,key:"label-".concat(u)})});if(!r)return a;var s=pje(t.label,n||o);return[s].concat(QTe(a))};Pn.parseViewBox=eU;Pn.renderCallByParent=mje;function vje(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var gje=vje;const yje=st(gje);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 bje=["valueAccessor"],_je=["data","dataKey","clockWise","id","textBreakAll"];function xje(e){return Eje(e)||Sje(e)||Oje(e)||wje()}function wje(){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 Oje(e,t){if(e){if(typeof e=="string")return fS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fS(e,t)}}function Sje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eje(e){if(Array.isArray(e))return fS(e)}function fS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yy.apply(this,arguments)}function bL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bL(Object(n),!0).forEach(function(r){Pje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pje(e,t,n){return t=Cje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cje(e){var t=Tje(e,"string");return ep(t)=="symbol"?t:String(t)}function Tje(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xL(e,t){if(e==null)return{};var n=jje(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jje(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Aje=function(t){return Array.isArray(t.value)?yje(t.value):t.value};function Fi(e){var t=e.valueAccessor,n=t===void 0?Aje:t,r=xL(e,bje),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=xL(r,_je);return!i||!i.length?null:V.createElement(Qe,{className:"recharts-label-list"},i.map(function(f,d){var h=ze(o)?n(f,d):kt(f&&f.payload,o),v=ze(s)?{}:{id:"".concat(s,"-").concat(d)};return V.createElement(Pn,Yy({},De(f,!0),u,v,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:Pn.parseViewBox(ze(a)?f:_L(_L({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}Fi.displayName="LabelList";function kje(e,t){return e?e===!0?V.createElement(Fi,{key:"labelList-implicit",data:t}):V.isValidElement(e)||We(e)?V.createElement(Fi,{key:"labelList-implicit",data:t,content:e}):tf(e)?V.createElement(Fi,Yy({data:t},e,{key:"labelList-implicit"})):null:null}function Nje(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=ur(r,Fi).map(function(a,s){return R.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=kje(e.label,t);return[o].concat(xje(i))}Fi.renderCallByParent=Nje;function tp(e){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(e)}function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dS.apply(this,arguments)}function wL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wL(Object(n),!0).forEach(function(r){Mje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mje(e,t,n){return t=Rje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rje(e){var t=Lje(e,"string");return tp(t)=="symbol"?t:String(t)}function Lje(e,t){if(tp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $je=function(t,n){var r=ir(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},bv=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,f=l*(s?1:-1)+i,d=Math.asin(l/f)/Ky,h=u?o:o+a*d,v=Et(n,r,f,h),g=Et(n,r,i,h),y=u?o-a*d:o,x=Et(n,r,f*Math.cos(d*Ky),y);return{center:v,circleTangency:g,lineTangency:x,theta:d}},tU=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,l=$je(a,s),u=a+l,f=Et(n,r,o,a),d=Et(n,r,o,u),h="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(o,",").concat(o,`,0,
|
||
`).concat(+(Math.abs(l)>180),",").concat(+(a>u),`,
|
||
`).concat(d.x,",").concat(d.y,`
|
||
`);if(i>0){var v=Et(n,r,i,a),g=Et(n,r,i,u);h+="L ".concat(g.x,",").concat(g.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(l)>180),",").concat(+(a<=u),`,
|
||
`).concat(v.x,",").concat(v.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},Ije=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=ir(f-u),h=bv({cx:n,cy:r,radius:o,angle:u,sign:d,cornerRadius:a,cornerIsExternal:l}),v=h.circleTangency,g=h.lineTangency,y=h.theta,x=bv({cx:n,cy:r,radius:o,angle:f,sign:-d,cornerRadius:a,cornerIsExternal:l}),_=x.circleTangency,b=x.lineTangency,w=x.theta,S=l?Math.abs(u-f):Math.abs(u-f)-y-w;if(S<0)return s?"M ".concat(g.x,",").concat(g.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
|
||
`):tU({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f});var E="M ".concat(g.x,",").concat(g.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,`
|
||
A`).concat(o,",").concat(o,",0,").concat(+(S>180),",").concat(+(d<0),",").concat(_.x,",").concat(_.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(b.x,",").concat(b.y,`
|
||
`);if(i>0){var P=bv({cx:n,cy:r,radius:i,angle:u,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),T=P.circleTangency,A=P.lineTangency,D=P.theta,k=bv({cx:n,cy:r,radius:i,angle:f,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),I=k.circleTangency,F=k.lineTangency,q=k.theta,W=l?Math.abs(u-f):Math.abs(u-f)-D-q;if(W<0&&a===0)return"".concat(E,"L").concat(n,",").concat(r,"Z");E+="L".concat(F.x,",").concat(F.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(I.x,",").concat(I.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(W>180),",").concat(+(d>0),",").concat(T.x,",").concat(T.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(A.x,",").concat(A.y,"Z")}else E+="L".concat(n,",").concat(r,"Z");return E},Dje={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},nU=function(t){var n=OL(OL({},Dje),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(a<o||f===d)return null;var v=Pe("recharts-sector",h),g=a-o,y=or(s,g,0,!0),x;return y>0&&Math.abs(f-d)<360?x=Ije({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(y,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:d}):x=tU({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:d}),V.createElement("path",dS({},De(n,!0),{className:v,d:x,role:"img"}))};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 hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hS.apply(this,arguments)}function SL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function EL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SL(Object(n),!0).forEach(function(r){Fje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fje(e,t,n){return t=Bje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bje(e){var t=Uje(e,"string");return np(t)=="symbol"?t:String(t)}function Uje(e,t){if(np(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PL={curveBasisClosed:Qge,curveBasisOpen:Jge,curveBasis:Xge,curveBumpX:Ige,curveBumpY:Dge,curveLinearClosed:eye,curveLinear:Tb,curveMonotoneX:tye,curveMonotoneY:nye,curveNatural:rye,curveStep:iye,curveStepAfter:aye,curveStepBefore:oye},_v=function(t){return t.x===+t.x&&t.y===+t.y},nd=function(t){return t.x},rd=function(t){return t.y},zje=function(t,n){if(We(t))return t;var r="curve".concat(Pb(t));return(r==="curveMonotone"||r==="curveBump")&&n?PL["".concat(r).concat(n==="vertical"?"Y":"X")]:PL[r]||Tb},Vje=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,f=zje(r,s),d=u?o.filter(function(y){return _v(y)}):o,h;if(Array.isArray(a)){var v=u?a.filter(function(y){return _v(y)}):a,g=d.map(function(y,x){return EL(EL({},y),{},{base:v[x]})});return s==="vertical"?h=cv().y(rd).x1(nd).x0(function(y){return y.base.x}):h=cv().x(nd).y1(rd).y0(function(y){return y.base.y}),h.defined(_v).curve(f),h(g)}return s==="vertical"&&Ee(a)?h=cv().y(rd).x1(nd).x0(a):Ee(a)?h=cv().x(nd).y1(rd).y0(a):h=QF().x(nd).y(rd),h.defined(_v).curve(f),h(d)},Xa=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?Vje(t):i;return V.createElement("path",hS({},De(t,!1),xy(t),{className:Pe("recharts-curve",n),d:a,ref:o}))},Wje=Object.getOwnPropertyNames,Hje=Object.getOwnPropertySymbols,Gje=Object.prototype.hasOwnProperty;function CL(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function xv(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var o=i.cache,a=o.get(n),s=o.get(r);if(a&&s)return a===r&&s===n;o.set(n,r),o.set(r,n);var l=e(n,r,i);return o.delete(n),o.delete(r),l}}function TL(e){return Wje(e).concat(Hje(e))}var rU=Object.hasOwn||function(e,t){return Gje.call(e,t)};function pf(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var iU="_owner",jL=Object.getOwnPropertyDescriptor,AL=Object.keys;function qje(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Kje(e,t){return pf(e.getTime(),t.getTime())}function kL(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var d=a.value,h=d[0],v=d[1],g=s.value,y=g[0],x=g[1];!u&&!r[f]&&(u=n.equals(h,y,o,f,e,t,n)&&n.equals(v,x,h,y,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;o++}return!0}function Yje(e,t,n){var r=AL(e),i=r.length;if(AL(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===iU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!rU(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function id(e,t,n){var r=TL(e),i=r.length;if(TL(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===iU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!rU(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=jL(e,o),s=jL(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function Zje(e,t){return pf(e.valueOf(),t.valueOf())}function Xje(e,t){return e.source===t.source&&e.flags===t.flags}function NL(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),l=!1,u=0;(a=s.next())&&!a.done;)!l&&!r[u]&&(l=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function Qje(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var Jje="[object Arguments]",eAe="[object Boolean]",tAe="[object Date]",nAe="[object Map]",rAe="[object Number]",iAe="[object Object]",oAe="[object RegExp]",aAe="[object Set]",sAe="[object String]",lAe=Array.isArray,ML=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,RL=Object.assign,uAe=Object.prototype.toString.call.bind(Object.prototype.toString);function cAe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(f,d,h){if(f===d)return!0;if(f==null||d==null||typeof f!="object"||typeof d!="object")return f!==f&&d!==d;var v=f.constructor;if(v!==d.constructor)return!1;if(v===Object)return i(f,d,h);if(lAe(f))return t(f,d,h);if(ML!=null&&ML(f))return l(f,d,h);if(v===Date)return n(f,d,h);if(v===RegExp)return a(f,d,h);if(v===Map)return r(f,d,h);if(v===Set)return s(f,d,h);var g=uAe(f);return g===tAe?n(f,d,h):g===oAe?a(f,d,h):g===nAe?r(f,d,h):g===aAe?s(f,d,h):g===iAe?typeof f.then!="function"&&typeof d.then!="function"&&i(f,d,h):g===Jje?i(f,d,h):g===eAe||g===rAe||g===sAe?o(f,d,h):!1}}function fAe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?id:qje,areDatesEqual:Kje,areMapsEqual:r?CL(kL,id):kL,areObjectsEqual:r?id:Yje,arePrimitiveWrappersEqual:Zje,areRegExpsEqual:Xje,areSetsEqual:r?CL(NL,id):NL,areTypedArraysEqual:r?id:Qje};if(n&&(i=RL({},i,n(i))),t){var o=xv(i.areArraysEqual),a=xv(i.areMapsEqual),s=xv(i.areObjectsEqual),l=xv(i.areSetsEqual);i=RL({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function dAe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function hAe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(l,u){var f=r(),d=f.cache,h=d===void 0?t?new WeakMap:void 0:d,v=f.meta;return n(l,u,{cache:h,equals:i,meta:v,strict:o})};if(t)return function(l,u){return n(l,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(l,u){return n(l,u,a)}}var pAe=ws();ws({strict:!0});ws({circular:!0});ws({circular:!0,strict:!0});ws({createInternalComparator:function(){return pf}});ws({strict:!0,createInternalComparator:function(){return pf}});ws({circular:!0,createInternalComparator:function(){return pf}});ws({circular:!0,createInternalComparator:function(){return pf},strict:!0});function ws(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=fAe(e),l=cAe(s),u=r?r(l):dAe(l);return hAe({circular:n,comparator:l,createState:i,equals:u,strict:a})}function mAe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function LL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):mAe(i)};requestAnimationFrame(r)}function pS(e){"@babel/helpers - typeof";return pS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pS(e)}function vAe(e){return _Ae(e)||bAe(e)||yAe(e)||gAe()}function gAe(){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 yAe(e,t){if(e){if(typeof e=="string")return $L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $L(e,t)}}function $L(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _Ae(e){if(Array.isArray(e))return e}function xAe(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,s=vAe(a),l=s[0],u=s.slice(1);if(typeof l=="number"){LL(i.bind(null,u),l);return}i(l),LL(i.bind(null,u));return}pS(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(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 IL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IL(Object(n),!0).forEach(function(r){oU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oU(e,t,n){return t=wAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wAe(e){var t=OAe(e,"string");return rp(t)==="symbol"?t:String(t)}function OAe(e,t){if(rp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SAe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},EAe=function(t){return t},PAe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},zd=function(t,n){return Object.keys(n).reduce(function(r,i){return DL(DL({},r),{},oU({},i,t(i,n[i])))},{})},FL=function(t,n,r){return t.map(function(i){return"".concat(PAe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function CAe(e,t){return AAe(e)||jAe(e,t)||aU(e,t)||TAe()}function TAe(){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 jAe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function AAe(e){if(Array.isArray(e))return e}function kAe(e){return RAe(e)||MAe(e)||aU(e)||NAe()}function NAe(){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 aU(e,t){if(e){if(typeof e=="string")return mS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mS(e,t)}}function MAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RAe(e){if(Array.isArray(e))return mS(e)}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zy=1e-4,sU=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},lU=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},BL=function(t,n){return function(r){var i=sU(t,n);return lU(i,r)}},LAe=function(t,n){return function(r){var i=sU(t,n),o=[].concat(kAe(i.map(function(a,s){return a*s}).slice(1)),[0]);return lU(o,r)}},UL=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],s=n[3];if(n.length===1)switch(n[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 l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),f=CAe(u,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var d=BL(i,a),h=BL(o,s),v=LAe(i,a),g=function(_){return _>1?1:_<0?0:_},y=function(_){for(var b=_>1?1:_,w=b,S=0;S<8;++S){var E=d(w)-b,P=v(w);if(Math.abs(E-b)<Zy||P<Zy)return h(w);w=g(w-E/P)}return h(w)};return y.isStepper=!1,y},$Ae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,l=function(f,d,h){var v=-(f-d)*r,g=h*o,y=h+(v-g)*s/1e3,x=h*s/1e3+f;return Math.abs(x-d)<Zy&&Math.abs(y)<Zy?[d,0]:[x,y]};return l.isStepper=!0,l.dt=s,l},IAe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return UL(i);case"spring":return $Ae();default:if(i.split("(")[0]==="cubic-bezier")return UL(i)}return typeof i=="function"?i:null};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 zL(e){return BAe(e)||FAe(e)||uU(e)||DAe()}function DAe(){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 FAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BAe(e){if(Array.isArray(e))return gS(e)}function VL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VL(Object(n),!0).forEach(function(r){vS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vS(e,t,n){return t=UAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UAe(e){var t=zAe(e,"string");return ip(t)==="symbol"?t:String(t)}function zAe(e,t){if(ip(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ip(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VAe(e,t){return GAe(e)||HAe(e,t)||uU(e,t)||WAe()}function WAe(){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 uU(e,t){if(e){if(typeof e=="string")return gS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gS(e,t)}}function gS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HAe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function GAe(e){if(Array.isArray(e))return e}var Xy=function(t,n,r){return t+(n-t)*r},yS=function(t){var n=t.from,r=t.to;return n!==r},qAe=function e(t,n,r){var i=zd(function(o,a){if(yS(a)){var s=t(a.from,a.to,a.velocity),l=VAe(s,2),u=l[0],f=l[1];return Dn(Dn({},a),{},{from:u,velocity:f})}return a},n);return r<1?zd(function(o,a){return yS(a)?Dn(Dn({},a),{},{velocity:Xy(a.velocity,i[o].velocity,r),from:Xy(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const KAe=function(e,t,n,r,i){var o=SAe(e,t),a=o.reduce(function(x,_){return Dn(Dn({},x),{},vS({},_,[e[_],t[_]]))},{}),s=o.reduce(function(x,_){return Dn(Dn({},x),{},vS({},_,{from:e[_],velocity:0,to:t[_]}))},{}),l=-1,u,f,d=function(){return null},h=function(){return zd(function(_,b){return b.from},s)},v=function(){return!Object.values(s).filter(yS).length},g=function(_){u||(u=_);var b=_-u,w=b/n.dt;s=qAe(n,s,w),i(Dn(Dn(Dn({},e),t),h())),u=_,v()||(l=requestAnimationFrame(d))},y=function(_){f||(f=_);var b=(_-f)/r,w=zd(function(E,P){return Xy.apply(void 0,zL(P).concat([n(b)]))},a);if(i(Dn(Dn(Dn({},e),t),w)),b<1)l=requestAnimationFrame(d);else{var S=zd(function(E,P){return Xy.apply(void 0,zL(P).concat([n(1)]))},a);i(Dn(Dn(Dn({},e),t),S))}};return d=n.isStepper?g:y,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}var YAe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ZAe(e,t){if(e==null)return{};var n=XAe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XAe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function sx(e){return tke(e)||eke(e)||JAe(e)||QAe()}function QAe(){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 JAe(e,t){if(e){if(typeof e=="string")return bS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bS(e,t)}}function eke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tke(e){if(Array.isArray(e))return bS(e)}function bS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WL(Object(n),!0).forEach(function(r){md(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function md(e,t,n){return t=cU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cU(r.key),r)}}function rke(e,t,n){return t&&HL(e.prototype,t),n&&HL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cU(e){var t=ike(e,"string");return jc(t)==="symbol"?t:String(t)}function ike(e,t){if(jc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oke(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&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_S(e,t)}function ake(e){var t=ske();return function(){var r=Qy(e),i;if(t){var o=Qy(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return xS(this,i)}}function xS(e,t){if(t&&(jc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wS(e)}function wS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ske(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qy(e){return Qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qy(e)}var bi=function(e){oke(n,e);var t=ake(n);function n(r,i){var o;nke(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,f=a.to,d=a.steps,h=a.children,v=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(wS(o)),o.changeStyle=o.changeStyle.bind(wS(o)),!s||v<=0)return o.state={style:{}},typeof h=="function"&&(o.state={style:f}),xS(o);if(d&&d.length)o.state={style:d[0].style};else if(u){if(typeof h=="function")return o.state={style:u},xS(o);o.state={style:l?md({},l,u):u}}else o.state={style:{}};return o}return rke(n,[{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,l=o.attributeName,u=o.shouldReAnimate,f=o.to,d=o.from,h=this.state.style;if(s){if(!a){var v={style:l?md({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(v);return}if(!(pAe(i.to,f)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=g||u?d:i.to;if(this.state&&h){var x={style:l?md({},l,y):y};(l&&h[l]!==y||!l&&h!==y)&&this.setState(x)}this.runAnimation(Pi(Pi({},this.props),{},{from:y,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,l=i.duration,u=i.easing,f=i.begin,d=i.onAnimationEnd,h=i.onAnimationStart,v=KAe(a,s,IAe(u),l,this.changeStyle),g=function(){o.stopJSAnimation=v()};this.manager.start([h,f,g,l,d])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,u=a[0],f=u.style,d=u.duration,h=d===void 0?0:d,v=function(y,x,_){if(_===0)return y;var b=x.duration,w=x.easing,S=w===void 0?"ease":w,E=x.style,P=x.properties,T=x.onAnimationEnd,A=_>0?a[_-1]:x,D=P||Object.keys(E);if(typeof S=="function"||S==="spring")return[].concat(sx(y),[o.runJSAnimation.bind(o,{from:A.style,to:E,duration:b,easing:S}),b]);var k=FL(D,b,S),I=Pi(Pi(Pi({},A.style),E),{},{transition:k});return[].concat(sx(y),[I,b,T]).filter(EAe)};return this.manager.start([l].concat(sx(a.reduce(v,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=xAe());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,d=i.onAnimationEnd,h=i.steps,v=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof v=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var y=s?md({},s,l):l,x=FL(Object.keys(y),a,u);g.start([f,o,Pi(Pi({},y),{},{transition:x}),a,d])}},{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 l=ZAe(i,YAe),u=R.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||u===0||a<=0)return o;var d=function(v){var g=v.props,y=g.style,x=y===void 0?{}:y,_=g.className,b=R.cloneElement(v,Pi(Pi({},l),{},{style:Pi(Pi({},x),f),className:_}));return b};return u===1?d(R.Children.only(o)):V.createElement("div",null,R.Children.map(o,function(h){return d(h)}))}}]),n}(R.PureComponent);bi.displayName="Animate";bi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};bi.propTypes={from:$.oneOfType([$.object,$.string]),to:$.oneOfType([$.object,$.string]),attributeName:$.string,duration:$.number,begin:$.number,easing:$.oneOfType([$.string,$.func]),steps:$.arrayOf($.shape({duration:$.number.isRequired,style:$.object.isRequired,easing:$.oneOfType([$.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$.func]),properties:$.arrayOf("string"),onAnimationEnd:$.func})),children:$.oneOfType([$.node,$.func]),isActive:$.bool,canBegin:$.bool,onAnimationEnd:$.func,shouldReAnimate:$.bool,onAnimationStart:$.func,onAnimationReStart:$.func};$.object,$.object,$.object,$.element;$.object,$.object,$.object,$.oneOfType([$.array,$.element]),$.any;function op(e){"@babel/helpers - typeof";return op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},op(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jy.apply(this,arguments)}function lke(e,t){return dke(e)||fke(e,t)||cke(e,t)||uke()}function uke(){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 cke(e,t){if(e){if(typeof e=="string")return GL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GL(e,t)}}function GL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fke(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function dke(e){if(Array.isArray(e))return e}function qL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function KL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qL(Object(n),!0).forEach(function(r){hke(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hke(e,t,n){return t=pke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pke(e){var t=mke(e,"string");return op(t)=="symbol"?t:String(t)}function mke(e,t){if(op(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(op(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YL=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),s=i>=0?1:-1,l=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,f;if(a>0&&o instanceof Array){for(var d=[0,0,0,0],h=0,v=4;h<v;h++)d[h]=o[h]>a?a:o[h];f="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+l*d[0],",").concat(n)),f+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`,
|
||
`).concat(t+r,",").concat(n+s*d[1])),f+="L ".concat(t+r,",").concat(n+i-s*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`,
|
||
`).concat(t+r-l*d[2],",").concat(n+i)),f+="L ".concat(t+l*d[3],",").concat(n+i),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`,
|
||
`).concat(t,",").concat(n+i-s*d[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var g=Math.min(a,o);f="M ".concat(t,",").concat(n+s*g,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+l*g,",").concat(n,`
|
||
L `).concat(t+r-l*g,",").concat(n,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*g,`
|
||
L `).concat(t+r,",").concat(n+i-s*g,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+r-l*g,",").concat(n+i,`
|
||
L `).concat(t+l*g,",").concat(n+i,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*g," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},vke=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(o,o+s),f=Math.max(o,o+s),d=Math.min(a,a+l),h=Math.max(a,a+l);return r>=u&&r<=f&&i>=d&&i<=h}return!1},gke={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dT=function(t){var n=KL(KL({},gke),t),r=R.useRef(),i=R.useState(-1),o=lke(i,2),a=o[0],s=o[1];R.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&s(S)}catch{}},[]);var l=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,v=n.className,g=n.animationEasing,y=n.animationDuration,x=n.animationBegin,_=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var w=Pe("recharts-rectangle",v);return b?V.createElement(bi,{canBegin:a>0,from:{width:f,height:d,x:l,y:u},to:{width:f,height:d,x:l,y:u},duration:y,animationEasing:g,isActive:b},function(S){var E=S.width,P=S.height,T=S.x,A=S.y;return V.createElement(bi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:y,isActive:_,easing:g},V.createElement("path",Jy({},De(n,!0),{className:w,d:YL(T,A,E,P,h),ref:r})))}):V.createElement("path",Jy({},De(n,!0),{className:w,d:YL(l,u,f,d,h)}))},yke=["points","className","baseLinePoints","connectNulls"];function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$u.apply(this,arguments)}function bke(e,t){if(e==null)return{};var n=_ke(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ke(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ZL(e){return Ske(e)||Oke(e)||wke(e)||xke()}function xke(){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 wke(e,t){if(e){if(typeof e=="string")return OS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OS(e,t)}}function Oke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ske(e){if(Array.isArray(e))return OS(e)}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var XL=function(t){return t&&t.x===+t.x&&t.y===+t.y},Eke=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){XL(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),XL(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Vd=function(t,n){var r=Eke(t);n&&(r=[r.reduce(function(o,a){return[].concat(ZL(o),ZL(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},Pke=function(t,n,r){var i=Vd(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Vd(n.reverse(),r).slice(1))},Cke=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=bke(t,yke);if(!n||!n.length)return null;var s=Pe("recharts-polygon",r);if(i&&i.length){var l=a.stroke&&a.stroke!=="none",u=Pke(n,i,o);return V.createElement("g",{className:s},V.createElement("path",$u({},De(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),l?V.createElement("path",$u({},De(a,!0),{fill:"none",d:Vd(n,o)})):null,l?V.createElement("path",$u({},De(a,!0),{fill:"none",d:Vd(i,o)})):null)}var f=Vd(n,o);return V.createElement("path",$u({},De(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SS.apply(this,arguments)}var Zp=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=Pe("recharts-dot",o);return n===+n&&r===+r&&i===+i?V.createElement("circle",SS({},De(t,!1),xy(t),{className:a,cx:n,cy:r,r:i})):null};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)}var Tke=["x","y","top","left","width","height","className"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES.apply(this,arguments)}function QL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QL(Object(n),!0).forEach(function(r){Ake(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ake(e,t,n){return t=kke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kke(e){var t=Nke(e,"string");return ap(t)=="symbol"?t:String(t)}function Nke(e,t){if(ap(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ap(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mke(e,t){if(e==null)return{};var n=Rke(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rke(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Lke=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},$ke=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,l=t.left,u=l===void 0?0:l,f=t.width,d=f===void 0?0:f,h=t.height,v=h===void 0?0:h,g=t.className,y=Mke(t,Tke),x=jke({x:r,y:o,top:s,left:u,width:d,height:v},y);return!Ee(r)||!Ee(o)||!Ee(d)||!Ee(v)||!Ee(s)||!Ee(u)?null:V.createElement("path",ES({},De(x,!0),{className:Pe("recharts-cross",g),d:Lke(r,o,d,v,s,u)}))},Ike=Bb,Dke=CB,Fke=To;function Bke(e,t){return e&&e.length?Ike(e,Fke(t),Dke):void 0}var Uke=Bke;const zke=st(Uke);var Vke=Bb,Wke=To,Hke=TB;function Gke(e,t){return e&&e.length?Vke(e,Wke(t),Hke):void 0}var qke=Gke;const Kke=st(qke);var Yke=["cx","cy","angle","ticks","axisLine"],Zke=["ticks","tick","angle","tickFormatter","stroke"];function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wd.apply(this,arguments)}function JL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JL(Object(n),!0).forEach(function(r){Wb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e4(e,t){if(e==null)return{};var n=Xke(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xke(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Qke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dU(r.key),r)}}function Jke(e,t,n){return t&&t4(e.prototype,t),n&&t4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function e3e(e,t,n){return t=e0(t),t3e(e,fU()?Reflect.construct(t,n||[],e0(e).constructor):t.apply(e,n))}function t3e(e,t){if(t&&(Ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n3e(e)}function n3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fU=function(){return!!e})()}function e0(e){return e0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},e0(e)}function r3e(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&&PS(e,t)}function PS(e,t){return PS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},PS(e,t)}function Wb(e,t,n){return t=dU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dU(e){var t=i3e(e,"string");return Ac(t)=="symbol"?t:String(t)}function i3e(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hb=function(e){r3e(t,e);function t(){return Qke(this,t),e3e(this,t,arguments)}return Jke(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,l=o.cy;return Et(s,l,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,l=zke(s,function(f){return f.coordinate||0}),u=Kke(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,l=r.axisLine,u=e4(r,Yke),f=s.reduce(function(g,y){return[Math.min(g[0],y.coordinate),Math.max(g[1],y.coordinate)]},[1/0,-1/0]),d=Et(i,o,f[0],a),h=Et(i,o,f[1],a),v=ks(ks(ks({},De(u,!1)),{},{fill:"none"},De(l,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return V.createElement("line",Wd({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=e4(i,Zke),d=this.getTickTextAnchor(),h=De(f,!1),v=De(a,!1),g=o.map(function(y,x){var _=r.getTickValueCoord(y),b=ks(ks(ks(ks({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(_.x,", ").concat(_.y,")")},h),{},{stroke:"none",fill:u},v),{},{index:x},_),{},{payload:y});return V.createElement(Qe,Wd({className:Pe("recharts-polar-radius-axis-tick",JB(a)),key:"tick-".concat(y.coordinate)},as(r.props,y,x)),t.renderTickItem(a,b,l?l(y.value,x):y.value))});return V.createElement(Qe,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:V.createElement(Qe,{className:Pe("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),Pn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):We(r)?a=r(i):a=V.createElement(Cl,Wd({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}]),t}(R.PureComponent);Wb(Hb,"displayName","PolarRadiusAxis");Wb(Hb,"axisType","radiusAxis");Wb(Hb,"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 kc(e){"@babel/helpers - typeof";return kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kc(e)}function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gs.apply(this,arguments)}function n4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n4(Object(n),!0).forEach(function(r){Gb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pU(r.key),r)}}function a3e(e,t,n){return t&&r4(e.prototype,t),n&&r4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s3e(e,t,n){return t=t0(t),l3e(e,hU()?Reflect.construct(t,n||[],t0(e).constructor):t.apply(e,n))}function l3e(e,t){if(t&&(kc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u3e(e)}function u3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hU=function(){return!!e})()}function t0(e){return t0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},t0(e)}function c3e(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&&CS(e,t)}function CS(e,t){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},CS(e,t)}function Gb(e,t,n){return t=pU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pU(e){var t=f3e(e,"string");return kc(t)=="symbol"?t:String(t)}function f3e(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d3e=Math.PI/180,i4=1e-5,qb=function(e){c3e(t,e);function t(){return o3e(this,t),s3e(this,t,arguments)}return a3e(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,d=Et(o,a,s,r.coordinate),h=Et(o,a,s+(l==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*d3e),a;return o>i4?a=i==="outer"?"start":"end":o<-i4?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,u=Ns(Ns({},De(this.props,!1)),{},{fill:"none"},De(s,!1));if(l==="circle")return V.createElement(Zp,Gs({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var f=this.props.ticks,d=f.map(function(h){return Et(i,o,a,h.coordinate)});return V.createElement(Cke,Gs({className:"recharts-polar-angle-axis-line"},u,{points:d}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=De(this.props,!1),d=De(a,!1),h=Ns(Ns({},f),{},{fill:"none"},De(s,!1)),v=o.map(function(g,y){var x=r.getTickLineCoord(g),_=r.getTickTextAnchor(g),b=Ns(Ns(Ns({textAnchor:_},f),{},{stroke:"none",fill:u},d),{},{index:y,payload:g,x:x.x2,y:x.y2});return V.createElement(Qe,Gs({className:Pe("recharts-polar-angle-axis-tick",JB(a)),key:"tick-".concat(g.coordinate)},as(r.props,g,y)),s&&V.createElement("line",Gs({className:"recharts-polar-angle-axis-tick-line"},h,x)),a&&t.renderTickItem(a,b,l?l(g.value,y):g.value))});return V.createElement(Qe,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:V.createElement(Qe,{className:Pe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):We(r)?a=r(i):a=V.createElement(Cl,Gs({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}]),t}(R.PureComponent);Gb(qb,"displayName","PolarAngleAxis");Gb(qb,"axisType","angleAxis");Gb(qb,"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 h3e=w7,p3e=h3e(Object.getPrototypeOf,Object),m3e=p3e,v3e=fa,g3e=m3e,y3e=da,b3e="[object Object]",_3e=Function.prototype,x3e=Object.prototype,mU=_3e.toString,w3e=x3e.hasOwnProperty,O3e=mU.call(Object);function S3e(e){if(!y3e(e)||v3e(e)!=b3e)return!1;var t=g3e(e);if(t===null)return!0;var n=w3e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mU.call(n)==O3e}var E3e=S3e;const P3e=st(E3e);var C3e=fa,T3e=da,j3e="[object Boolean]";function A3e(e){return e===!0||e===!1||T3e(e)&&C3e(e)==j3e}var k3e=A3e;const N3e=st(k3e);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 n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}function M3e(e,t){return I3e(e)||$3e(e,t)||L3e(e,t)||R3e()}function R3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L3e(e,t){if(e){if(typeof e=="string")return o4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o4(e,t)}}function o4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $3e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function I3e(e){if(Array.isArray(e))return e}function a4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a4(Object(n),!0).forEach(function(r){D3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D3e(e,t,n){return t=F3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F3e(e){var t=B3e(e,"string");return sp(t)=="symbol"?t:String(t)}function B3e(e,t){if(sp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l4=function(t,n,r,i,o){var a=r-i,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-a/2,",").concat(n+o),s+="L ".concat(t+r-a/2-i,",").concat(n+o),s+="L ".concat(t,",").concat(n," Z"),s},U3e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},z3e=function(t){var n=s4(s4({},U3e),t),r=R.useRef(),i=R.useState(-1),o=M3e(i,2),a=o[0],s=o[1];R.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&s(w)}catch{}},[]);var l=n.x,u=n.y,f=n.upperWidth,d=n.lowerWidth,h=n.height,v=n.className,g=n.animationEasing,y=n.animationDuration,x=n.animationBegin,_=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||d!==+d||h!==+h||f===0&&d===0||h===0)return null;var b=Pe("recharts-trapezoid",v);return _?V.createElement(bi,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:d,height:h,x:l,y:u},duration:y,animationEasing:g,isActive:_},function(w){var S=w.upperWidth,E=w.lowerWidth,P=w.height,T=w.x,A=w.y;return V.createElement(bi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:y,easing:g},V.createElement("path",n0({},De(n,!0),{className:b,d:l4(T,A,S,E,P),ref:r})))}):V.createElement("g",null,V.createElement("path",n0({},De(n,!0),{className:b,d:l4(l,u,f,d,h)})))},V3e=["option","shapeType","propTransformer","activeClassName","isActive"];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)}function W3e(e,t){if(e==null)return{};var n=H3e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function H3e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function u4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u4(Object(n),!0).forEach(function(r){G3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G3e(e,t,n){return t=q3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q3e(e){var t=K3e(e,"string");return lp(t)=="symbol"?t:String(t)}function K3e(e,t){if(lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y3e(e,t){return r0(r0({},t),e)}function Z3e(e,t){return e==="symbols"}function c4(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return V.createElement(dT,n);case"trapezoid":return V.createElement(z3e,n);case"sector":return V.createElement(nU,n);case"symbols":if(Z3e(t))return V.createElement(Ab,n);break;default:return null}}function X3e(e){return R.isValidElement(e)?e.props:e}function i0(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?Y3e:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=W3e(e,V3e),u;if(R.isValidElement(t))u=R.cloneElement(t,r0(r0({},l),X3e(t)));else if(We(t))u=t(l);else if(P3e(t)&&!N3e(t)){var f=i(t,l);u=V.createElement(c4,{shapeType:n,elementProps:f})}else{var d=l;u=V.createElement(c4,{shapeType:n,elementProps:d})}return s?V.createElement(Qe,{className:a},u):u}function Kb(e,t){return t!=null&&"trapezoids"in e.props}function Yb(e,t){return t!=null&&"sectors"in e.props}function up(e,t){return t!=null&&"points"in e.props}function Q3e(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function J3e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function eNe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function tNe(e,t){var n;return Kb(e,t)?n=Q3e:Yb(e,t)?n=J3e:up(e,t)&&(n=eNe),n}function nNe(e,t){var n;return Kb(e,t)?n="trapezoids":Yb(e,t)?n="sectors":up(e,t)&&(n="points"),n}function rNe(e,t){if(Kb(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Yb(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return up(e,t)?t.payload:{}}function iNe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=nNe(n,t),o=rNe(n,t),a=r.filter(function(l,u){var f=ss(o,l),d=n.props[i].filter(function(g){var y=tNe(n,t);return y(g,t)}),h=n.props[i].indexOf(d[d.length-1]),v=u===h;return f&&v}),s=r.indexOf(a[a.length-1]);return s}var eg;function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iu.apply(this,arguments)}function f4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f4(Object(n),!0).forEach(function(r){li(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gU(r.key),r)}}function aNe(e,t,n){return t&&d4(e.prototype,t),n&&d4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sNe(e,t,n){return t=o0(t),lNe(e,vU()?Reflect.construct(t,n||[],o0(e).constructor):t.apply(e,n))}function lNe(e,t){if(t&&(Nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gu(e)}function vU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vU=function(){return!!e})()}function o0(e){return o0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},o0(e)}function gu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uNe(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&&TS(e,t)}function TS(e,t){return TS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TS(e,t)}function li(e,t,n){return t=gU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gU(e){var t=cNe(e,"string");return Nc(t)=="symbol"?t:String(t)}function cNe(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wo=function(e){uNe(t,e);function t(n){var r;return oNe(this,t),r=sNe(this,t,[n]),li(gu(r),"pieRef",null),li(gu(r),"sectorRefs",[]),li(gu(r),"id",bs("recharts-pie-")),li(gu(r),"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),We(i)&&i()}),li(gu(r),"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),We(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return aNe(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,l=o.dataKey,u=o.valueKey,f=De(this.props,!1),d=De(a,!1),h=De(s,!1),v=a&&a.offsetRadius||20,g=r.map(function(y,x){var _=(y.startAngle+y.endAngle)/2,b=Et(y.cx,y.cy,y.outerRadius+v,_),w=Rt(Rt(Rt(Rt({},f),y),{},{stroke:"none"},d),{},{index:x,textAnchor:t.getTextAnchor(b.x,y.cx)},b),S=Rt(Rt(Rt(Rt({},f),y),{},{fill:"none",stroke:y.fill},h),{},{index:x,points:[Et(y.cx,y.cy,y.outerRadius,_),b],key:"line"}),E=l;return ze(l)&&ze(u)?E="value":ze(l)&&(E=u),V.createElement(Qe,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(x)},s&&t.renderLabelLineItem(s,S),t.renderLabelItem(a,w,kt(y,E)))});return V.createElement(Qe,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,l=o.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var d=i.isActiveIndex(f),h=l&&i.hasActiveIndex()?l:null,v=d?a:h,g=Rt(Rt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return V.createElement(Qe,Iu({ref:function(x){x&&!i.sectorRefs.includes(x)&&i.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},as(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),V.createElement(i0,Iu({option:v,isActive:d,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,d=this.state,h=d.prevSectors,v=d.prevIsAnimationActive;return V.createElement(bi,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var y=g.t,x=[],_=o&&o[0],b=_.startAngle;return o.forEach(function(w,S){var E=h&&h[S],P=S>0?Fr(w,"paddingAngle",0):0;if(E){var T=zt(E.endAngle-E.startAngle,w.endAngle-w.startAngle),A=Rt(Rt({},w),{},{startAngle:b+P,endAngle:b+T(y)+P});x.push(A),b=A.endAngle}else{var D=w.endAngle,k=w.startAngle,I=zt(0,D-k),F=I(y),q=Rt(Rt({},w),{},{startAngle:b+P,endAngle:b+F+P});x.push(q),b=q.endAngle}}),V.createElement(Qe,null,r.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!ss(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,d=i.innerRadius,h=i.outerRadius,v=i.isAnimationActive,g=this.state.isAnimationFinished;if(o||!a||!a.length||!Ee(u)||!Ee(f)||!Ee(d)||!Ee(h))return null;var y=Pe("recharts-pie",s);return V.createElement(Qe,{tabIndex:this.props.rootTabIndex,className:y,ref:function(_){r.pieRef=_}},this.renderSectors(),l&&this.renderLabels(a),Pn.renderCallByParent(this.props,null,!1),(!v||g)&&Fi.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i){if(V.isValidElement(r))return V.cloneElement(r,i);if(We(r))return r(i);var o=Pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return V.createElement(Xa,Iu({},i,{type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,o){if(V.isValidElement(r))return V.cloneElement(r,i);var a=o;if(We(r)&&(a=r(i),V.isValidElement(a)))return a;var s=Pe("recharts-pie-label-text",typeof r!="boolean"&&!We(r)?r.className:"");return V.createElement(Cl,Iu({},i,{alignmentBaseline:"middle",className:s}),a)}}]),t}(R.PureComponent);eg=wo;li(wo,"displayName","Pie");li(wo,"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});li(wo,"parseDeltaAngle",function(e,t){var n=ir(t-e),r=Math.min(Math.abs(t-e),360);return n*r});li(wo,"getRealPieData",function(e){var t=e.props,n=t.data,r=t.children,i=De(e.props,!1),o=ur(r,Ya);return n&&n.length?n.map(function(a,s){return Rt(Rt(Rt({payload:a},i),a),o&&o[s]&&o[s].props)}):o&&o.length?o.map(function(a){return Rt(Rt({},i),a.props)}):[]});li(wo,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=QB(i,o),s=r+or(e.props.cx,i,i/2),l=n+or(e.props.cy,o,o/2),u=or(e.props.innerRadius,a,0),f=or(e.props.outerRadius,a,a*.8),d=e.props.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:d}});li(wo,"getComposedData",function(e){var t=e.item,n=e.offset,r=eg.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,s=i.endAngle,l=i.paddingAngle,u=i.dataKey,f=i.nameKey,d=i.valueKey,h=i.tooltipType,v=Math.abs(t.props.minAngle),g=eg.parseCoordinateOfPie(t,n),y=eg.parseDeltaAngle(a,s),x=Math.abs(y),_=u;ze(u)&&ze(d)?(Di(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),_="value"):ze(u)&&(Di(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),_=d);var b=r.filter(function(A){return kt(A,_,0)!==0}).length,w=(x>=360?b:b-1)*l,S=x-b*v-w,E=r.reduce(function(A,D){var k=kt(D,_,0);return A+(Ee(k)?k:0)},0),P;if(E>0){var T;P=r.map(function(A,D){var k=kt(A,_,0),I=kt(A,f,D),F=(Ee(k)?k:0)/E,q;D?q=T.endAngle+ir(y)*l*(k!==0?1:0):q=a;var W=q+ir(y)*((k!==0?v:0)+F*S),X=(q+W)/2,Q=(g.innerRadius+g.outerRadius)/2,ne=[{name:I,value:k,payload:A,dataKey:_,type:h}],Z=Et(g.cx,g.cy,Q,X);return T=Rt(Rt(Rt({percent:F,cornerRadius:o,name:I,tooltipPayload:ne,midAngle:X,middleRadius:Q,tooltipPosition:Z},A),g),{},{value:kt(A,_),startAngle:q,endAngle:W,payload:A,paddingAngle:ir(y)*l}),T})}return Rt(Rt({},g),{},{sectors:P,data:r})});var fNe=Math.ceil,dNe=Math.max;function hNe(e,t,n,r){for(var i=-1,o=dNe(fNe((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var pNe=hNe,mNe=z7,h4=1/0,vNe=17976931348623157e292;function gNe(e){if(!e)return e===0?e:0;if(e=mNe(e),e===h4||e===-h4){var t=e<0?-1:1;return t*vNe}return e===e?e:0}var yU=gNe,yNe=pNe,bNe=Mb,lx=yU;function _Ne(e){return function(t,n,r){return r&&typeof r!="number"&&bNe(t,n,r)&&(n=r=void 0),t=lx(t),n===void 0?(n=t,t=0):n=lx(n),r=r===void 0?t<n?1:-1:lx(r),yNe(t,n,r,e)}}var xNe=_Ne,wNe=xNe,ONe=wNe(),SNe=ONe;const a0=st(SNe);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 p4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function m4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p4(Object(n),!0).forEach(function(r){bU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bU(e,t,n){return t=ENe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ENe(e){var t=PNe(e,"string");return cp(t)=="symbol"?t:String(t)}function PNe(e,t){if(cp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CNe=["Webkit","Moz","O","ms"],TNe=function(t,n){if(!t)return null;var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=CNe.reduce(function(o,a){return m4(m4({},o),{},bU({},a+r,n))},{});return i[t]=n,i};function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s0.apply(this,arguments)}function v4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ux(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v4(Object(n),!0).forEach(function(r){Nr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xU(r.key),r)}}function ANe(e,t,n){return t&&g4(e.prototype,t),n&&g4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kNe(e,t,n){return t=l0(t),NNe(e,_U()?Reflect.construct(t,n||[],l0(e).constructor):t.apply(e,n))}function NNe(e,t){if(t&&(Mc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return no(e)}function _U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_U=function(){return!!e})()}function l0(e){return l0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},l0(e)}function no(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MNe(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&&jS(e,t)}function jS(e,t){return jS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jS(e,t)}function Nr(e,t,n){return t=xU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xU(e){var t=RNe(e,"string");return Mc(t)=="symbol"?t:String(t)}function RNe(e,t){if(Mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LNe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=Bd().domain(a0(0,l)).range([o,o+a-s]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:f}},y4=function(t){return t.changedTouches&&!!t.changedTouches.length},Rc=function(e){MNe(t,e);function t(n){var r;return jNe(this,t),r=kNe(this,t,[n]),Nr(no(r),"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Nr(no(r),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Nr(no(r),"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),r.detachDragEndListener()}),Nr(no(r),"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Nr(no(r),"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Nr(no(r),"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Nr(no(r),"handleSlideDragStart",function(i){var o=y4(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(no(r),"startX"),endX:r.handleTravellerDragStart.bind(no(r),"endX")},r.state={},r}return ANe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,d=Math.min(i,o),h=Math.max(i,o),v=t.getIndexInRange(a,d),g=t.getIndexInRange(a,h);return{startIndex:v-v%l,endIndex:g===f?f:g-g%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=kt(o[r],s,r);return We(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,d=l.travellerWidth,h=l.startIndex,v=l.endIndex,g=l.onChange,y=r.pageX-o;y>0?y=Math.min(y,u+f-d-s,u+f-d-a):y<0&&(y=Math.max(y,u-a,u-s));var x=this.getIndex({startX:a+y,endX:s+y});(x.startIndex!==h||x.endIndex!==v)&&g&&g(x),this.setState({startX:a+y,endX:s+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=y4(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[a],f=this.props,d=f.x,h=f.width,v=f.travellerWidth,g=f.onChange,y=f.gap,x=f.data,_={startX:this.state.startX,endX:this.state.endX},b=r.pageX-o;b>0?b=Math.min(b,d+h-v-u):b<0&&(b=Math.max(b,d-u)),_[a]=u+b;var w=this.getIndex(_),S=w.startIndex,E=w.endIndex,P=function(){var A=x.length-1;return a==="startX"&&(s>l?S%y===0:E%y===0)||s<l&&E===A||a==="endX"&&(s>l?E%y===0:S%y===0)||s>l&&E===A};this.setState(Nr(Nr({},a,u+b),"brushMoveStartX",r.pageX),function(){g&&P()&&g(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,f=this.state[i],d=s.indexOf(f);if(d!==-1){var h=d+r;if(!(h===-1||h>=s.length)){var v=s[h];i==="startX"&&v>=u||i==="endX"&&v<=l||this.setState(Nr({},i,v),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.fill,u=r.stroke;return V.createElement("rect",{stroke:u,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.data,u=r.children,f=r.padding,d=R.Children.only(u);return d?V.cloneElement(d,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,s=this,l=this.props,u=l.y,f=l.travellerWidth,d=l.height,h=l.traveller,v=l.ariaLabel,g=l.data,y=l.startIndex,x=l.endIndex,_=Math.max(r,this.props.x),b=ux(ux({},De(this.props,!1)),{},{x:_,y:u,width:f,height:d}),w=v||"Min value: ".concat((o=g[y])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=g[x])===null||a===void 0?void 0:a.name);return V.createElement(Qe,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(E){["ArrowLeft","ArrowRight"].includes(E.key)&&(E.preventDefault(),E.stopPropagation(),s.handleTravellerMoveKeyboard(E.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,b))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,f=Math.min(r,i)+u,d=Math.max(Math.abs(i-r)-u,0);return V.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,h=f.endX,v=5,g={pointerEvents:"none",fill:u};return V.createElement(Qe,{className:"recharts-brush-texts"},V.createElement(Cl,s0({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-v,y:a+s/2},g),this.getTextOfTick(i)),V.createElement(Cl,s0({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+l+v,y:a+s/2},g),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,l=r.y,u=r.width,f=r.height,d=r.alwaysShowText,h=this.state,v=h.startX,g=h.endX,y=h.isTextActive,x=h.isSlideMoving,_=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!Ee(s)||!Ee(l)||!Ee(u)||!Ee(f)||u<=0||f<=0)return null;var w=Pe("recharts-brush",o),S=V.Children.count(a)===1,E=TNe("userSelect","none");return V.createElement(Qe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(v,g),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(g,"endX"),(y||x||_||b||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,l=r.stroke,u=Math.floor(o+s/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),V.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return V.isValidElement(r)?o=V.cloneElement(r,i):We(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,s=r.x,l=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return ux({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?LNe({data:o,width:a,x:s,travellerWidth:l,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var h=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>i?s=l:a=l}return i>=r[s]?s:a}}]),t}(R.PureComponent);Nr(Rc,"displayName","Brush");Nr(Rc,"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 $Ne=IC;function INe(e,t){var n;return $Ne(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var DNe=INe,FNe=p7,BNe=To,UNe=DNe,zNe=jr,VNe=Mb;function WNe(e,t,n){var r=zNe(e)?FNe:UNe;return n&&VNe(e,t,n)&&(t=void 0),r(e,BNe(t))}var HNe=WNe;const GNe=st(HNe);var go=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},b4=I7;function qNe(e,t,n){t=="__proto__"&&b4?b4(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var KNe=qNe,YNe=KNe,ZNe=L7,XNe=To;function QNe(e,t){var n={};return t=XNe(t),ZNe(e,function(r,i,o){YNe(n,i,t(r,i,o))}),n}var JNe=QNe;const eMe=st(JNe);function tMe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var nMe=tMe,rMe=IC;function iMe(e,t){var n=!0;return rMe(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var oMe=iMe,aMe=nMe,sMe=oMe,lMe=To,uMe=jr,cMe=Mb;function fMe(e,t,n){var r=uMe(e)?aMe:sMe;return n&&cMe(e,t,n)&&(t=void 0),r(e,lMe(t))}var dMe=fMe;const wU=st(dMe);var hMe=["x","y"];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 AS(){return AS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AS.apply(this,arguments)}function _4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_4(Object(n),!0).forEach(function(r){pMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pMe(e,t,n){return t=mMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mMe(e){var t=vMe(e,"string");return fp(t)=="symbol"?t:String(t)}function vMe(e,t){if(fp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gMe(e,t){if(e==null)return{};var n=yMe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yMe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function bMe(e,t){var n=e.x,r=e.y,i=gMe(e,hMe),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),d="".concat(t.width||i.width),h=parseInt(d,10);return od(od(od(od(od({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function x4(e){return V.createElement(i0,AS({shapeType:"rectangle",propTransformer:bMe,activeClassName:"recharts-active-bar"},e))}var _Me=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=typeof r=="number";return o?t(r,i):(o||jl(!1),n)}},xMe=["value","background"],OU;function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}function wMe(e,t){if(e==null)return{};var n=OMe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OMe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u0.apply(this,arguments)}function w4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w4(Object(n),!0).forEach(function(r){Ia(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EU(r.key),r)}}function EMe(e,t,n){return t&&O4(e.prototype,t),n&&O4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function PMe(e,t,n){return t=c0(t),CMe(e,SU()?Reflect.construct(t,n||[],c0(e).constructor):t.apply(e,n))}function CMe(e,t){if(t&&(Lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vd(e)}function SU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SU=function(){return!!e})()}function c0(e){return c0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},c0(e)}function vd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TMe(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(r,i){return r.__proto__=i,r},kS(e,t)}function Ia(e,t,n){return t=EU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EU(e){var t=jMe(e,"string");return Lc(t)=="symbol"?t:String(t)}function jMe(e,t){if(Lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ho=function(e){TMe(t,e);function t(){var n;SMe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=PMe(this,t,[].concat(i)),Ia(vd(n),"state",{isAnimationFinished:!1}),Ia(vd(n),"id",bs("recharts-bar-")),Ia(vd(n),"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),Ia(vd(n),"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return EMe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.dataKey,l=o.activeIndex,u=o.activeBar,f=De(this.props,!1);return r&&r.map(function(d,h){var v=h===l,g=v?u:a,y=wn(wn(wn({},f),d),{},{isActive:v,option:g,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return V.createElement(Qe,u0({className:"recharts-bar-rectangle"},as(i.props,d,h),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value)}),V.createElement(x4,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,f=i.animationEasing,d=i.animationId,h=this.state.prevData;return V.createElement(bi,{begin:l,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var g=v.t,y=o.map(function(x,_){var b=h&&h[_];if(b){var w=zt(b.x,x.x),S=zt(b.y,x.y),E=zt(b.width,x.width),P=zt(b.height,x.height);return wn(wn({},x),{},{x:w(g),y:S(g),width:E(g),height:P(g)})}if(a==="horizontal"){var T=zt(0,x.height),A=T(g);return wn(wn({},x),{},{y:x.y+x.height-A,height:A})}var D=zt(0,x.width),k=D(g);return wn(wn({},x),{},{width:k})});return V.createElement(Qe,null,r.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!ss(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,l=De(this.props.background,!1);return o.map(function(u,f){u.value;var d=u.background,h=wMe(u,xMe);if(!d)return null;var v=wn(wn(wn(wn(wn({},h),{},{fill:"#eee"},d),l),as(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,key:"background-bar-".concat(f),className:"recharts-bar-background-rectangle"});return V.createElement(x4,u0({option:r.props.background,isActive:f===s},v))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,d=ur(f,hf);if(!d)return null;var h=u==="vertical"?a[0].height/2:a[0].width/2,v=function(x,_){var b=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:b,errorVal:kt(x,_)}},g={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Qe,g,d.map(function(y){return V.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,offset:h,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,s=r.xAxis,l=r.yAxis,u=r.left,f=r.top,d=r.width,h=r.height,v=r.isAnimationActive,g=r.background,y=r.id;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,_=Pe("recharts-bar",a),b=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,S=b||w,E=ze(y)?this.id:y;return V.createElement(Qe,{className:_},b||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(E)},V.createElement("rect",{x:b?u:u-d/2,y:w?f:f-h/2,width:b?d:d*2,height:w?h:h*2}))):null,V.createElement(Qe,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(E,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,E),(!v||x)&&Fi.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}]),t}(R.PureComponent);OU=Ho;Ia(Ho,"displayName","Bar");Ia(Ho,"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"});Ia(Ho,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,v=TTe(r,n);if(!v)return null;var g=t.layout,y=n.props,x=y.dataKey,_=y.children,b=y.minPointSize,w=g==="horizontal"?a:o,S=u?w.scale.domain():null,E=LTe({numericAxis:w}),P=ur(_,Ya),T=d.map(function(A,D){var k,I,F,q,W,X;u?k=jTe(u[f+D],S):(k=kt(A,x),Array.isArray(k)||(k=[E,k]));var Q=_Me(b,OU.defaultProps.minPointSize)(k[1],D);if(g==="horizontal"){var ne,Z=[a.scale(k[0]),a.scale(k[1])],z=Z[0],B=Z[1];I=fL({axis:o,ticks:s,bandSize:i,offset:v.offset,entry:A,index:D}),F=(ne=B??z)!==null&&ne!==void 0?ne:void 0,q=v.size;var H=z-B;if(W=Number.isNaN(H)?0:H,X={x:I,y:a.y,width:q,height:a.height},Math.abs(Q)>0&&Math.abs(W)<Math.abs(Q)){var ee=ir(W||Q)*(Math.abs(Q)-Math.abs(W));F-=ee,W+=ee}}else{var K=[o.scale(k[0]),o.scale(k[1])],te=K[0],ie=K[1];if(I=te,F=fL({axis:a,ticks:l,bandSize:i,offset:v.offset,entry:A,index:D}),q=ie-te,W=v.size,X={x:o.x,y:F,width:o.width,height:W},Math.abs(Q)>0&&Math.abs(q)<Math.abs(Q)){var ae=ir(q||Q)*(Math.abs(Q)-Math.abs(q));q+=ae}}return wn(wn(wn({},A),{},{x:I,y:F,width:q,height:W,value:u?k:k[1],payload:A,background:X},P&&P[D]&&P[D].props),{},{tooltipPayload:[ZB(n,A)],tooltipPosition:{x:I+q/2,y:F+W/2}})});return wn({data:T,layout:g},h)});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 AMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PU(r.key),r)}}function kMe(e,t,n){return t&&S4(e.prototype,t),n&&S4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E4(Object(n),!0).forEach(function(r){Zb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zb(e,t,n){return t=PU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PU(e){var t=NMe(e,"string");return dp(t)=="symbol"?t:String(t)}function NMe(e,t){if(dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CU=function(t,n,r,i,o){var a=t.width,s=t.height,l=t.layout,u=t.children,f=Object.keys(n),d={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},h=!!Rr(u,Ho);return f.reduce(function(v,g){var y=n[g],x=y.orientation,_=y.domain,b=y.padding,w=b===void 0?{}:b,S=y.mirror,E=y.reversed,P="".concat(x).concat(S?"Mirror":""),T,A,D,k,I;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var F=_[1]-_[0],q=1/0,W=y.categoricalDomain.sort();if(W.forEach(function(te,ie){ie>0&&(q=Math.min((te||0)-(W[ie-1]||0),q))}),Number.isFinite(q)){var X=q/F,Q=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(T=X*Q/2),y.padding==="no-gap"){var ne=or(t.barCategoryGap,X*Q),Z=X*Q/2;T=Z-ne-(Z-ne)/Q*ne}}}i==="xAxis"?A=[r.left+(w.left||0)+(T||0),r.left+r.width-(w.right||0)-(T||0)]:i==="yAxis"?A=l==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(T||0),r.top+r.height-(w.bottom||0)-(T||0)]:A=y.range,E&&(A=[A[1],A[0]]);var z=GB(y,o,h),B=z.scale,H=z.realScaleType;B.domain(_).range(A),qB(B);var ee=KB(B,ji(ji({},y),{},{realScaleType:H}));i==="xAxis"?(I=x==="top"&&!S||x==="bottom"&&S,D=r.left,k=d[P]-I*y.height):i==="yAxis"&&(I=x==="left"&&!S||x==="right"&&S,D=d[P]-I*y.width,k=r.top);var K=ji(ji(ji({},y),ee),{},{realScaleType:H,x:D,y:k,scale:B,width:i==="xAxis"?r.width:y.width,height:i==="yAxis"?r.height:y.height});return K.bandSize=qy(K,ee),!y.hide&&i==="xAxis"?d[P]+=(I?-1:1)*K.height:y.hide||(d[P]+=(I?-1:1)*K.width),ji(ji({},v),{},Zb({},g,K))},{})},TU=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},MMe=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return TU({x:n,y:r},{x:i,y:o})},jU=function(){function e(t){AMe(this,e),this.scale=t}return kMe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}]),e}();Zb(jU,"EPS",1e-4);var hT=function(t){var n=Object.keys(t).reduce(function(r,i){return ji(ji({},r),{},Zb({},i,jU.create(t[i])))},{});return ji(ji({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return eMe(i,function(l,u){return n[u].apply(l,{bandAware:a,position:s})})},isInRange:function(i){return wU(i,function(o,a){return n[a].isInRange(o)})}})};function RMe(e){return(e%180+180)%180}var LMe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=RMe(i),a=o*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},$Me=To,IMe=Hp,DMe=kb;function FMe(e){return function(t,n,r){var i=Object(t);if(!IMe(t)){var o=$Me(n);t=DMe(t),n=function(s){return o(i[s],s,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}var BMe=FMe,UMe=yU;function zMe(e){var t=UMe(e),n=t%1;return t===t?n?t-n:t:0}var VMe=zMe,WMe=T7,HMe=To,GMe=VMe,qMe=Math.max;function KMe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:GMe(n);return i<0&&(i=qMe(r+i,0)),WMe(e,HMe(t),i)}var YMe=KMe,ZMe=BMe,XMe=YMe,QMe=ZMe(XMe),JMe=QMe;const eRe=st(JMe);var tRe=Pme(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("")}),pT=R.createContext(void 0),mT=R.createContext(void 0),AU=R.createContext(void 0),kU=R.createContext({}),NU=R.createContext(void 0),MU=R.createContext(0),RU=R.createContext(0),P4=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,s=t.children,l=t.width,u=t.height,f=tRe(o);return V.createElement(pT.Provider,{value:r},V.createElement(mT.Provider,{value:i},V.createElement(kU.Provider,{value:o},V.createElement(AU.Provider,{value:f},V.createElement(NU.Provider,{value:a},V.createElement(MU.Provider,{value:u},V.createElement(RU.Provider,{value:l},s)))))))},nRe=function(){return R.useContext(NU)},LU=function(t){var n=R.useContext(pT);n==null&&jl(!1);var r=n[t];return r==null&&jl(!1),r},rRe=function(){var t=R.useContext(pT);return ka(t)},iRe=function(){var t=R.useContext(mT),n=eRe(t,function(r){return wU(r.domain,Number.isFinite)});return n||ka(t)},$U=function(t){var n=R.useContext(mT);n==null&&jl(!1);var r=n[t];return r==null&&jl(!1),r},oRe=function(){var t=R.useContext(AU);return t},aRe=function(){return R.useContext(kU)},vT=function(){return R.useContext(RU)},gT=function(){return R.useContext(MU)};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 C4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C4(Object(n),!0).forEach(function(r){sRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sRe(e,t,n){return t=lRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lRe(e){var t=uRe(e,"string");return hp(t)=="symbol"?t:String(t)}function uRe(e,t){if(hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cRe(e,t){return pRe(e)||hRe(e,t)||dRe(e,t)||fRe()}function fRe(){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 dRe(e,t){if(e){if(typeof e=="string")return j4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j4(e,t)}}function j4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hRe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function pRe(e){if(Array.isArray(e))return e}function NS(){return NS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NS.apply(this,arguments)}var mRe=function(t,n){var r;return V.isValidElement(t)?r=V.cloneElement(t,n):We(t)?r=t(n):r=V.createElement("line",NS({},n,{className:"recharts-reference-line-line"})),r},vRe=function(t,n,r,i,o,a,s,l,u){var f=o.x,d=o.y,h=o.width,v=o.height;if(r){var g=u.y,y=t.y.apply(g,{position:a});if(go(u,"discard")&&!t.y.isInRange(y))return null;var x=[{x:f+h,y},{x:f,y}];return l==="left"?x.reverse():x}if(n){var _=u.x,b=t.x.apply(_,{position:a});if(go(u,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:d+v},{x:b,y:d}];return s==="top"?w.reverse():w}if(i){var S=u.segment,E=S.map(function(P){return t.apply(P,{position:a})});return go(u,"discard")&&GNe(E,function(P){return!t.isInRange(P)})?null:E}return null};function yT(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,l=e.alwaysShow,u=nRe(),f=LU(i),d=$U(o),h=oRe();if(!u||!h)return null;Di(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=hT({x:f.scale,y:d.scale}),g=pn(t),y=pn(n),x=r&&r.length===2,_=vRe(v,g,y,x,h,e.position,f.orientation,d.orientation,e);if(!_)return null;var b=cRe(_,2),w=b[0],S=w.x,E=w.y,P=b[1],T=P.x,A=P.y,D=go(e,"hidden")?"url(#".concat(u,")"):void 0,k=T4(T4({clipPath:D},De(e,!0)),{},{x1:S,y1:E,x2:T,y2:A});return V.createElement(Qe,{className:Pe("recharts-reference-line",s)},mRe(a,k),Pn.renderCallByParent(e,MMe({x1:S,y1:E,x2:T,y2:A})))}yT.displayName="ReferenceLine";yT.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};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 MS(){return MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MS.apply(this,arguments)}function A4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function k4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A4(Object(n),!0).forEach(function(r){gRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gRe(e,t,n){return t=yRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yRe(e){var t=bRe(e,"string");return pp(t)=="symbol"?t:String(t)}function bRe(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Re=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=hT({x:i.scale,y:o.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return go(t,"discard")&&!a.isInRange(s)?null:s};function Xp(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,o=e.clipPathId,a=pn(t),s=pn(n);if(Di(i===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!s)return null;var l=_Re(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,h=e.className,v=go(e,"hidden")?"url(#".concat(o,")"):void 0,g=k4(k4({clipPath:v},De(e,!0)),{},{cx:u,cy:f});return V.createElement(Qe,{className:Pe("recharts-reference-dot",h)},Xp.renderDot(d,g),Pn.renderCallByParent(e,{x:u-r,y:f-r,width:2*r,height:2*r}))}Xp.displayName="ReferenceDot";Xp.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};Xp.renderDot=function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):We(e)?n=e(t):n=V.createElement(Zp,MS({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};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 RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RS.apply(this,arguments)}function N4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function M4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N4(Object(n),!0).forEach(function(r){xRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xRe(e,t,n){return t=wRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wRe(e){var t=ORe(e,"string");return mp(t)=="symbol"?t:String(t)}function ORe(e,t){if(mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SRe=function(t,n,r,i,o){var a=o.x1,s=o.x2,l=o.y1,u=o.y2,f=o.xAxis,d=o.yAxis;if(!f||!d)return null;var h=hT({x:f.scale,y:d.scale}),v={x:t?h.x.apply(a,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(l,{position:"start"}):h.y.rangeMin},g={x:n?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(u,{position:"end"}):h.y.rangeMax};return go(o,"discard")&&(!h.isInRange(v)||!h.isInRange(g))?null:TU(v,g)};function Qp(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,o=e.className,a=e.alwaysShow,s=e.clipPathId;Di(a===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=pn(t),u=pn(n),f=pn(r),d=pn(i),h=e.shape;if(!l&&!u&&!f&&!d&&!h)return null;var v=SRe(l,u,f,d,e);if(!v&&!h)return null;var g=go(e,"hidden")?"url(#".concat(s,")"):void 0;return V.createElement(Qe,{className:Pe("recharts-reference-area",o)},Qp.renderRect(h,M4(M4({clipPath:g},De(e,!0)),v)),Pn.renderCallByParent(e,v))}Qp.displayName="ReferenceArea";Qp.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};Qp.renderRect=function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):We(e)?n=e(t):n=V.createElement(dT,RS({},t,{className:"recharts-reference-area-rect"})),n};function IU(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)if(n===void 0||n(e[i])===!0)r.push(e[i]);else return;return r}function ERe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return LMe(r,n)}function PRe(e,t,n){var r=n==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}function f0(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function CRe(e,t){return IU(e,t+1)}function TRe(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,l=0,u=1,f=a,d=function(){var g=r==null?void 0:r[l];if(g===void 0)return{v:IU(r,u)};var y=l,x,_=function(){return x===void 0&&(x=n(g,y)),x},b=g.coordinate,w=l===0||f0(e,b,_,f,s);w||(l=0,f=a,u+=1),w&&(f=b+e*(_()/2+i),l+=u)},h;u<=o.length;)if(h=d(),h)return h.v;return[]}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 R4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R4(Object(n),!0).forEach(function(r){jRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jRe(e,t,n){return t=ARe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ARe(e){var t=kRe(e,"string");return vp(t)=="symbol"?t:String(t)}function kRe(e,t){if(vp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NRe(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=t.start,l=t.end,u=function(h){var v=o[h],g,y=function(){return g===void 0&&(g=n(v,h)),g};if(h===a-1){var x=e*(v.coordinate+e*y()/2-l);o[h]=v=Wn(Wn({},v),{},{tickCoord:x>0?v.coordinate-x*e:v.coordinate})}else o[h]=v=Wn(Wn({},v),{},{tickCoord:v.coordinate});var _=f0(e,v.tickCoord,y,s,l);_&&(l=v.tickCoord-e*(y()/2+i),o[h]=Wn(Wn({},v),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return o}function MRe(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,l=t.start,u=t.end;if(o){var f=r[s-1],d=n(f,s-1),h=e*(f.coordinate+e*d/2-u);a[s-1]=f=Wn(Wn({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var v=f0(e,f.tickCoord,function(){return d},l,u);v&&(u=f.tickCoord-e*(d/2+i),a[s-1]=Wn(Wn({},f),{},{isShow:!0}))}for(var g=o?s-1:s,y=function(b){var w=a[b],S,E=function(){return S===void 0&&(S=n(w,b)),S};if(b===0){var P=e*(w.coordinate-e*E()/2-l);a[b]=w=Wn(Wn({},w),{},{tickCoord:P<0?w.coordinate-P*e:w.coordinate})}else a[b]=w=Wn(Wn({},w),{},{tickCoord:w.coordinate});var T=f0(e,w.tickCoord,E,l,u);T&&(l=w.tickCoord+e*(E()/2+i),a[b]=Wn(Wn({},w),{},{isShow:!0}))},x=0;x<g;x++)y(x);return a}function bT(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(Ee(l)||hi.isSsr)return CRe(i,typeof l=="number"&&Ee(l)?l:0);var h=[],v=s==="top"||s==="bottom"?"width":"height",g=f&&v==="width"?Fd(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(w,S){var E=We(u)?u(w.value,S):w.value;return v==="width"?ERe(Fd(E,{fontSize:t,letterSpacing:n}),g,d):Fd(E,{fontSize:t,letterSpacing:n})[v]},x=i.length>=2?ir(i[1].coordinate-i[0].coordinate):1,_=PRe(o,x,v);return l==="equidistantPreserveStart"?TRe(x,_,y,i,a):(l==="preserveStart"||l==="preserveStartEnd"?h=MRe(x,_,y,i,a,l==="preserveStartEnd"):h=NRe(x,_,y,i,a),h.filter(function(b){return b.isShow}))}var RRe=["viewBox"],LRe=["viewBox"],$Re=["ticks"];function $c(e){"@babel/helpers - typeof";return $c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$c(e)}function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Du.apply(this,arguments)}function L4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L4(Object(n),!0).forEach(function(r){_T(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cx(e,t){if(e==null)return{};var n=IRe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IRe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function DRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FU(r.key),r)}}function FRe(e,t,n){return t&&$4(e.prototype,t),n&&$4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function BRe(e,t,n){return t=d0(t),URe(e,DU()?Reflect.construct(t,n||[],d0(e).constructor):t.apply(e,n))}function URe(e,t){if(t&&($c(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zRe(e)}function zRe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DU=function(){return!!e})()}function d0(e){return d0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},d0(e)}function VRe(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&&LS(e,t)}function LS(e,t){return LS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LS(e,t)}function _T(e,t,n){return t=FU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FU(e){var t=WRe(e,"string");return $c(t)=="symbol"?t:String(t)}function WRe(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mf=function(e){VRe(t,e);function t(n){var r;return DRe(this,t),r=BRe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return FRe(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=cx(r,RRe),s=this.props,l=s.viewBox,u=cx(s,LRe);return!Ku(o,l)||!Ku(a,u)||!Ku(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,a=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,d=i.mirror,h=i.tickMargin,v,g,y,x,_,b,w=d?-1:1,S=r.tickSize||f,E=Ee(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":v=g=r.coordinate,x=a+ +!d*l,y=x-w*S,b=y-w*h,_=E;break;case"left":y=x=r.coordinate,g=o+ +!d*s,v=g-w*S,_=v-w*h,b=E;break;case"right":y=x=r.coordinate,g=o+ +d*s,v=g+w*S,_=v+w*h,b=E;break;default:v=g=r.coordinate,x=a+ +d*l,y=x+w*S,b=y+w*h,_=E;break}return{line:{x1:v,y1:y,x2:g,y2:x},tick:{x:_,y:b}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.orientation,u=r.mirror,f=r.axisLine,d=Jn(Jn(Jn({},De(this.props,!1)),De(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);d=Jn(Jn({},d),{},{x1:i,y1:o+h*s,x2:i+a,y2:o+h*s})}else{var v=+(l==="left"&&!u||l==="right"&&u);d=Jn(Jn({},d),{},{x1:i+v*a,y1:o,x2:i+v*a,y2:o+s})}return V.createElement("line",Du({},d,{className:Pe("recharts-cartesian-axis-line",Fr(f,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,d=s.tickFormatter,h=s.unit,v=bT(Jn(Jn({},this.props),{},{ticks:r}),i,o),g=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),x=De(this.props,!1),_=De(f,!1),b=Jn(Jn({},x),{},{fill:"none"},De(l,!1)),w=v.map(function(S,E){var P=a.getTickLineCoord(S),T=P.line,A=P.tick,D=Jn(Jn(Jn(Jn({textAnchor:g,verticalAnchor:y},x),{},{stroke:"none",fill:u},_),A),{},{index:E,payload:S,visibleTicksCount:v.length,tickFormatter:d});return V.createElement(Qe,Du({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},as(a.props,S,E)),l&&V.createElement("line",Du({},b,T,{className:Pe("recharts-cartesian-axis-tick-line",Fr(l,"className"))})),f&&t.renderTickItem(f,D,"".concat(We(d)?d(S.value,E):S.value).concat(h||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var d=this.props,h=d.ticks,v=cx(d,$Re),g=h;return We(l)&&(g=h&&h.length>0?l(this.props):l(v)),a<=0||s<=0||!g||!g.length?null:V.createElement(Qe,{className:Pe("recharts-cartesian-axis",u),ref:function(x){r.layerReference=x}},o&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),Pn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):We(r)?a=r(i):a=V.createElement(Cl,Du({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}]),t}(R.Component);_T(mf,"displayName","CartesianAxis");_T(mf,"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 HRe=["x1","y1","x2","y2","key"],GRe=["offset"];function Al(e){"@babel/helpers - typeof";return Al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(e)}function I4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I4(Object(n),!0).forEach(function(r){qRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qRe(e,t,n){return t=KRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KRe(e){var t=YRe(e,"string");return Al(t)=="symbol"?t:String(t)}function YRe(e,t){if(Al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},il.apply(this,arguments)}function D4(e,t){if(e==null)return{};var n=ZRe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZRe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var XRe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height;return V.createElement("rect",{x:i,y:o,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function BU(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(We(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,l=D4(t,HRe),u=De(l,!1);u.offset;var f=D4(u,GRe);n=V.createElement("line",il({},f,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function QRe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=qn(qn({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(l),index:l});return BU(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function JRe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=qn(qn({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(l),index:l});return BU(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function eLe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,v){return h-v});i!==f[0]&&f.unshift(0);var d=f.map(function(h,v){var g=!f[v+1],y=g?i+a-h:f[v+1]-h;if(y<=0)return null;var x=v%t.length;return V.createElement("rect",{key:"react-".concat(v),y:h,x:r,height:y,width:o,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function tLe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map(function(h){return Math.round(h+o-o)}).sort(function(h,v){return h-v});o!==f[0]&&f.unshift(0);var d=f.map(function(h,v){var g=!f[v+1],y=g?o+s-h:f[v+1]-h;if(y<=0)return null;var x=v%r.length;return V.createElement("rect",{key:"react-".concat(v),x:h,y:a,width:y,height:l,stroke:"none",fill:r[x],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var nLe=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return HB(bT(qn(qn(qn({},mf.defaultProps),r),{},{ticks:Uo(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},rLe=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return HB(bT(qn(qn(qn({},mf.defaultProps),r),{},{ticks:Uo(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},lu={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function xT(e){var t,n,r,i,o,a,s=vT(),l=gT(),u=aRe(),f=qn(qn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:lu.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:lu.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:lu.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:lu.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:lu.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:lu.verticalFill,x:Ee(e.x)?e.x:u.left,y:Ee(e.y)?e.y:u.top,width:Ee(e.width)?e.width:u.width,height:Ee(e.height)?e.height:u.height}),d=f.x,h=f.y,v=f.width,g=f.height,y=f.syncWithTicks,x=f.horizontalValues,_=f.verticalValues,b=rRe(),w=iRe();if(!Ee(v)||v<=0||!Ee(g)||g<=0||!Ee(d)||d!==+d||!Ee(h)||h!==+h)return null;var S=f.verticalCoordinatesGenerator||nLe,E=f.horizontalCoordinatesGenerator||rLe,P=f.horizontalPoints,T=f.verticalPoints;if((!P||!P.length)&&We(E)){var A=x&&x.length,D=E({yAxis:w?qn(qn({},w),{},{ticks:A?x:w.ticks}):void 0,width:s,height:l,offset:u},A?!0:y);Di(Array.isArray(D),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Al(D),"]")),Array.isArray(D)&&(P=D)}if((!T||!T.length)&&We(S)){var k=_&&_.length,I=S({xAxis:b?qn(qn({},b),{},{ticks:k?_:b.ticks}):void 0,width:s,height:l,offset:u},k?!0:y);Di(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Al(I),"]")),Array.isArray(I)&&(T=I)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(XRe,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height}),V.createElement(QRe,il({},f,{offset:u,horizontalPoints:P,xAxis:b,yAxis:w})),V.createElement(JRe,il({},f,{offset:u,verticalPoints:T,xAxis:b,yAxis:w})),V.createElement(eLe,il({},f,{horizontalPoints:P})),V.createElement(tLe,il({},f,{verticalPoints:T})))}xT.displayName="CartesianGrid";var iLe=["type","layout","connectNulls","ref"];function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function oLe(e,t){if(e==null)return{};var n=aLe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hd.apply(this,arguments)}function F4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F4(Object(n),!0).forEach(function(r){Ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uu(e){return cLe(e)||uLe(e)||lLe(e)||sLe()}function sLe(){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 lLe(e,t){if(e){if(typeof e=="string")return $S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $S(e,t)}}function uLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cLe(e){if(Array.isArray(e))return $S(e)}function $S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zU(r.key),r)}}function dLe(e,t,n){return t&&B4(e.prototype,t),n&&B4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hLe(e,t,n){return t=h0(t),pLe(e,UU()?Reflect.construct(t,n||[],h0(e).constructor):t.apply(e,n))}function pLe(e,t){if(t&&(Ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xa(e)}function UU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UU=function(){return!!e})()}function h0(e){return h0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},h0(e)}function xa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mLe(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&&IS(e,t)}function IS(e,t){return IS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},IS(e,t)}function Ai(e,t,n){return t=zU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zU(e){var t=vLe(e,"string");return Ic(t)=="symbol"?t:String(t)}function vLe(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vf=function(e){mLe(t,e);function t(){var n;fLe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=hLe(this,t,[].concat(i)),Ai(xa(n),"state",{isAnimationFinished:!0,totalLength:0}),Ai(xa(n),"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Ai(xa(n),"getStrokeDasharray",function(a,s,l){var u=l.reduce(function(_,b){return _+b});if(!u)return n.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/u),d=a%u,h=s-a,v=[],g=0,y=0;g<l.length;y+=l[g],++g)if(y+l[g]>d){v=[].concat(uu(l.slice(0,g)),[d-y]);break}var x=v.length%2===0?[0,h]:[h];return[].concat(uu(t.repeat(l,f)),uu(v),x).map(function(_){return"".concat(_,"px")}).join(", ")}),Ai(xa(n),"id",bs("recharts-line-")),Ai(xa(n),"pathRef",function(a){n.mainCurve=a}),Ai(xa(n),"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ai(xa(n),"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return dLe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,d=ur(f,hf);if(!d)return null;var h=function(y,x){return{x:y.x,y:y.y,value:y.value,errorVal:kt(y.payload,x)}},v={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Qe,v,d.map(function(g){return V.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,f=s.dataKey,d=De(this.props,!1),h=De(l,!0),v=u.map(function(y,x){var _=kr(kr(kr({key:"dot-".concat(x),r:3},d),h),{},{value:y.value,dataKey:f,cx:y.x,cy:y.y,index:x,payload:y.payload});return t.renderDotItem(l,_)}),g={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return V.createElement(Qe,Hd({className:"recharts-line-dots",key:"dots"},g),v)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,l=s.type,u=s.layout,f=s.connectNulls;s.ref;var d=oLe(s,iLe),h=kr(kr(kr({},De(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:l,layout:u,connectNulls:f});return V.createElement(Xa,Hd({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,l=a.strokeDasharray,u=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,h=a.animationEasing,v=a.animationId,g=a.animateNewValues,y=a.width,x=a.height,_=this.state,b=_.prevPoints,w=_.totalLength;return V.createElement(bi,{begin:f,duration:d,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var E=S.t;if(b){var P=b.length/s.length,T=s.map(function(F,q){var W=Math.floor(q*P);if(b[W]){var X=b[W],Q=zt(X.x,F.x),ne=zt(X.y,F.y);return kr(kr({},F),{},{x:Q(E),y:ne(E)})}if(g){var Z=zt(y*2,F.x),z=zt(x/2,F.y);return kr(kr({},F),{},{x:Z(E),y:z(E)})}return kr(kr({},F),{},{x:F.x,y:F.y})});return o.renderCurveStatically(T,r,i)}var A=zt(0,w),D=A(E),k;if(l){var I="".concat(l).split(/[,\s]+/gim).map(function(F){return parseFloat(F)});k=o.getStrokeDasharray(D,w,I)}else k=o.generateSimpleStrokeDasharray(w,D);return o.renderCurveStatically(s,r,i,{strokeDasharray:k})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,l=this.state,u=l.prevPoints,f=l.totalLength;return s&&a&&a.length&&(!u&&f>0||!ss(u,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.xAxis,f=i.yAxis,d=i.top,h=i.left,v=i.width,g=i.height,y=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var _=this.state.isAnimationFinished,b=s.length===1,w=Pe("recharts-line",l),S=u&&u.allowDataOverflow,E=f&&f.allowDataOverflow,P=S||E,T=ze(x)?this.id:x,A=(r=De(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=A.r,k=D===void 0?3:D,I=A.strokeWidth,F=I===void 0?2:I,q=FF(a)?a:{},W=q.clipDot,X=W===void 0?!0:W,Q=k*2+F;return V.createElement(Qe,{className:w},S||E?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:S?h:h-v/2,y:E?d:d-g/2,width:S?v:v*2,height:E?g:g*2})),!X&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:h-Q/2,y:d-Q/2,width:v+Q,height:g+Q}))):null,!b&&this.renderCurve(P,T),this.renderErrorBar(P,T),(b||a)&&this.renderDots(P,X,T),(!y||_)&&Fi.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var o=r.length%2!==0?[].concat(uu(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(uu(a),uu(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(V.isValidElement(r))o=V.cloneElement(r,i);else if(We(r))o=r(i);else{var a=Pe("recharts-line-dot",typeof r!="boolean"?r.className:"");o=V.createElement(Zp,Hd({},i,{className:a}))}return o}}]),t}(R.PureComponent);Ai(vf,"displayName","Line");Ai(vf,"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});Ai(vf,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,f=t.layout,d=l.map(function(h,v){var g=kt(h,a);return f==="horizontal"?{x:Tc({axis:n,ticks:i,bandSize:s,entry:h,index:v}),y:ze(g)?null:r.scale(g),value:g,payload:h}:{x:ze(g)?null:n.scale(g),y:Tc({axis:r,ticks:o,bandSize:s,entry:h,index:v}),value:g,payload:h}});return kr({points:d,layout:f},u)});var gLe=["layout","type","stroke","connectNulls","isRange","ref"],VU;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 yLe(e,t){if(e==null)return{};var n=bLe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(this,arguments)}function U4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U4(Object(n),!0).forEach(function(r){fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HU(r.key),r)}}function xLe(e,t,n){return t&&z4(e.prototype,t),n&&z4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wLe(e,t,n){return t=p0(t),OLe(e,WU()?Reflect.construct(t,n||[],p0(e).constructor):t.apply(e,n))}function OLe(e,t){if(t&&(Dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gd(e)}function WU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WU=function(){return!!e})()}function p0(e){return p0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},p0(e)}function gd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SLe(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&&DS(e,t)}function DS(e,t){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},DS(e,t)}function fo(e,t,n){return t=HU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HU(e){var t=ELe(e,"string");return Dc(t)=="symbol"?t:String(t)}function ELe(e,t){if(Dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fl=function(e){SLe(t,e);function t(){var n;_Le(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=wLe(this,t,[].concat(i)),fo(gd(n),"state",{isAnimationFinished:!0}),fo(gd(n),"id",bs("recharts-area-")),fo(gd(n),"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),We(a)&&a()}),fo(gd(n),"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),We(a)&&a()}),n}return xLe(t,[{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var l=this.props,u=l.dot,f=l.points,d=l.dataKey,h=De(this.props,!1),v=De(u,!0),g=f.map(function(x,_){var b=wa(wa(wa({key:"dot-".concat(_),r:3},h),v),{},{index:_,cx:x.x,cy:x.y,dataKey:d,value:x.value,payload:x.payload,points:f});return t.renderDotItem(u,b)}),y={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return V.createElement(Qe,ol({className:"recharts-area-dots"},y),g)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,l=a[0].x,u=a[a.length-1].x,f=r*Math.abs(l-u),d=$a(a.map(function(h){return h.y||0}));return Ee(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max($a(o.map(function(h){return h.y||0})),d)),Ee(d)?V.createElement("rect",{x:l<u?l:l-f,y:0,width:f,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,l=a[0].y,u=a[a.length-1].y,f=r*Math.abs(l-u),d=$a(a.map(function(h){return h.x||0}));return Ee(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max($a(o.map(function(h){return h.x||0})),d)),Ee(d)?V.createElement("rect",{x:0,y:l<u?l:l-f,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,o,a){var s=this.props,l=s.layout,u=s.type,f=s.stroke,d=s.connectNulls,h=s.isRange;s.ref;var v=yLe(s,gLe);return V.createElement(Qe,{clipPath:o?"url(#clipPath-".concat(a,")"):null},V.createElement(Xa,ol({},De(v,!0),{points:r,connectNulls:d,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&V.createElement(Xa,ol({},De(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:r})),f!=="none"&&h&&V.createElement(Xa,ol({},De(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,l=a.baseLine,u=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,h=a.animationEasing,v=a.animationId,g=this.state,y=g.prevPoints,x=g.prevBaseLine;return V.createElement(bi,{begin:f,duration:d,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var b=_.t;if(y){var w=y.length/s.length,S=s.map(function(A,D){var k=Math.floor(D*w);if(y[k]){var I=y[k],F=zt(I.x,A.x),q=zt(I.y,A.y);return wa(wa({},A),{},{x:F(b),y:q(b)})}return A}),E;if(Ee(l)&&typeof l=="number"){var P=zt(x,l);E=P(b)}else if(ze(l)||af(l)){var T=zt(x,0);E=T(b)}else E=l.map(function(A,D){var k=Math.floor(D*w);if(x[k]){var I=x[k],F=zt(I.x,A.x),q=zt(I.y,A.y);return wa(wa({},A),{},{x:F(b),y:q(b)})}return A});return o.renderAreaStatically(S,E,r,i)}return V.createElement(Qe,null,V.createElement("defs",null,V.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(b))),V.createElement(Qe,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,l,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,a=o.points,s=o.baseLine,l=o.isAnimationActive,u=this.state,f=u.prevPoints,d=u.prevBaseLine,h=u.totalLength;return l&&a&&a.length&&(!f&&h>0||!ss(f,a)||!ss(d,s))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(a,s,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,d=i.xAxis,h=i.yAxis,v=i.width,g=i.height,y=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var _=this.state.isAnimationFinished,b=s.length===1,w=Pe("recharts-area",l),S=d&&d.allowDataOverflow,E=h&&h.allowDataOverflow,P=S||E,T=ze(x)?this.id:x,A=(r=De(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=A.r,k=D===void 0?3:D,I=A.strokeWidth,F=I===void 0?2:I,q=FF(a)?a:{},W=q.clipDot,X=W===void 0?!0:W,Q=k*2+F;return V.createElement(Qe,{className:w},S||E?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:S?f:f-v/2,y:E?u:u-g/2,width:S?v:v*2,height:E?g:g*2})),!X&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:f-Q/2,y:u-Q/2,width:v+Q,height:g+Q}))):null,b?null:this.renderArea(P,T),(a||b)&&this.renderDots(P,X,T),(!y||_)&&Fi.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}]),t}(R.PureComponent);VU=Fl;fo(Fl,"displayName","Area");fo(Fl,"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"});fo(Fl,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(Ee(s)&&typeof s=="number")return s;var l=i==="horizontal"?r:n,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return s==="dataMin"?d:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});fo(Fl,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,v=t.layout,g=u&&u.length,y=VU.getBaseValue(t,n,r,i),x=v==="horizontal",_=!1,b=d.map(function(S,E){var P;g?P=u[f+E]:(P=kt(S,l),Array.isArray(P)?_=!0:P=[y,P]);var T=P[1]==null||g&&kt(S,l)==null;return x?{x:Tc({axis:r,ticks:o,bandSize:s,entry:S,index:E}),y:T?null:i.scale(P[1]),value:P,payload:S}:{x:T?null:r.scale(P[1]),y:Tc({axis:i,ticks:a,bandSize:s,entry:S,index:E}),value:P,payload:S}}),w;return g||_?w=b.map(function(S){var E=Array.isArray(S.value)?S.value[0]:null;return x?{x:S.x,y:E!=null&&S.y!=null?i.scale(E):null}:{x:E!=null?r.scale(E):null,y:S.y}}):w=x?i.scale(y):r.scale(y),wa({points:b,baseLine:w,layout:v,isRange:_},h)});fo(Fl,"renderDotItem",function(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(We(e))n=e(t);else{var r=Pe("recharts-area-dot",typeof e!="boolean"?e.className:"");n=V.createElement(Zp,ol({},t,{className:r}))}return n});var Xb=function(){return null};Xb.displayName="ZAxis";Xb.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var PLe=["option","isActive"];function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gd.apply(this,arguments)}function CLe(e,t){if(e==null)return{};var n=TLe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jLe(e){var t=e.option,n=e.isActive,r=CLe(e,PLe);return typeof t=="string"?V.createElement(i0,Gd({option:V.createElement(Ab,Gd({type:t},r)),isActive:n,shapeType:"symbols"},r)):V.createElement(i0,Gd({option:t,isActive:n,shapeType:"symbols"},r))}function Fc(e){"@babel/helpers - typeof";return Fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fc(e)}function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qd.apply(this,arguments)}function V4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V4(Object(n),!0).forEach(function(r){Da(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ALe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qU(r.key),r)}}function kLe(e,t,n){return t&&W4(e.prototype,t),n&&W4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function NLe(e,t,n){return t=m0(t),MLe(e,GU()?Reflect.construct(t,n||[],m0(e).constructor):t.apply(e,n))}function MLe(e,t){if(t&&(Fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yd(e)}function GU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GU=function(){return!!e})()}function m0(e){return m0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},m0(e)}function yd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RLe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&FS(e,t)}function FS(e,t){return FS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},FS(e,t)}function Da(e,t,n){return t=qU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qU(e){var t=LLe(e,"string");return Fc(t)=="symbol"?t:String(t)}function LLe(e,t){if(Fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qb=function(e){RLe(t,e);function t(){var n;ALe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=NLe(this,t,[].concat(i)),Da(yd(n),"state",{isAnimationFinished:!1}),Da(yd(n),"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Da(yd(n),"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Da(yd(n),"id",bs("recharts-scatter-")),n}return kLe(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.activeShape,l=o.activeIndex,u=De(this.props,!1);return r.map(function(f,d){var h=l===d,v=h?s:a,g=ni(ni({key:"symbol-".concat(d)},u),f);return V.createElement(Qe,qd({className:"recharts-scatter-symbol"},as(i.props,f,d),{key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size,"-").concat(d),role:"img"}),V.createElement(jLe,qd({option:v,isActive:h},g)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,o=i.points,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,d=this.state.prevPoints;return V.createElement(bi,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var v=h.t,g=o.map(function(y,x){var _=d&&d[x];if(_){var b=zt(_.cx,y.cx),w=zt(_.cy,y.cy),S=zt(_.size,y.size);return ni(ni({},y),{},{cx:b(v),cy:w(v),size:S(v)})}var E=zt(0,y.size);return ni(ni({},y),{},{size:E(v)})});return V.createElement(Qe,null,r.renderSymbolsStatically(g))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,o=r.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!ss(a,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,a=i.xAxis,s=i.yAxis,l=i.children,u=ur(l,hf);return u?u.map(function(f,d){var h=f.props,v=h.direction,g=h.dataKey;return V.cloneElement(f,{key:"".concat(v,"-").concat(g,"-").concat(o[d]),data:o,xAxis:a,yAxis:s,layout:v==="x"?"vertical":"horizontal",dataPointFormatter:function(x,_){return{x:x.cx,y:x.cy,value:v==="x"?+x.node.x:+x.node.y,errorVal:kt(x,_)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,o=r.line,a=r.lineType,s=r.lineJointType,l=De(this.props,!1),u=De(o,!1),f,d;if(a==="joint")f=i.map(function(w){return{x:w.cx,y:w.cy}});else if(a==="fitting"){var h=Pve(i),v=h.xmin,g=h.xmax,y=h.a,x=h.b,_=function(S){return y*S+x};f=[{x:v,y:_(v)},{x:g,y:_(g)}]}var b=ni(ni(ni({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:f});return V.isValidElement(o)?d=V.cloneElement(o,b):We(o)?d=o(b):d=V.createElement(Xa,qd({},b,{type:s})),V.createElement(Qe,{className:"recharts-scatter-line",key:"recharts-scatter-line"},d)}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.points,a=r.line,s=r.className,l=r.xAxis,u=r.yAxis,f=r.left,d=r.top,h=r.width,v=r.height,g=r.id,y=r.isAnimationActive;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,_=Pe("recharts-scatter",s),b=l&&l.allowDataOverflow,w=u&&u.allowDataOverflow,S=b||w,E=ze(g)?this.id:g;return V.createElement(Qe,{className:_,clipPath:S?"url(#clipPath-".concat(E,")"):null},b||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(E)},V.createElement("rect",{x:b?f:f-h/2,y:w?d:d-v/2,width:b?h:h*2,height:w?v:v*2}))):null,a&&this.renderLine(),this.renderErrorBar(),V.createElement(Qe,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||x)&&Fi.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}}]),t}(R.PureComponent);Da(Qb,"displayName","Scatter");Da(Qb,"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"});Da(Qb,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,f=ur(i.props.children,Ya),d=ze(t.dataKey)?i.props.dataKey:t.dataKey,h=ze(n.dataKey)?i.props.dataKey:n.dataKey,v=r&&r.dataKey,g=r?r.range:Xb.defaultProps.range,y=g&&g[0],x=t.scale.bandwidth?t.scale.bandwidth():0,_=n.scale.bandwidth?n.scale.bandwidth():0,b=o.map(function(w,S){var E=kt(w,d),P=kt(w,h),T=!ze(v)&&kt(w,v)||"-",A=[{name:ze(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:E,payload:w,dataKey:d,type:u},{name:ze(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:P,payload:w,dataKey:h,type:u}];T!=="-"&&A.push({name:r.name||r.dataKey,unit:r.unit||"",value:T,payload:w,dataKey:v,type:u});var D=Tc({axis:t,ticks:a,bandSize:x,entry:w,index:S,dataKey:d}),k=Tc({axis:n,ticks:s,bandSize:_,entry:w,index:S,dataKey:h}),I=T!=="-"?r.scale(T):y,F=Math.sqrt(Math.max(I,0)/Math.PI);return ni(ni({},w),{},{cx:D,cy:k,x:D-F,y:k-F,xAxis:t,yAxis:n,zAxis:r,width:2*F,height:2*F,size:I,node:{x:E,y:P,z:T},tooltipPayload:A,tooltipPosition:{x:D,y:k},payload:w},f&&f[S]&&f[S].props)});return ni({points:b},l)});function BS(){return BS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BS.apply(this,arguments)}var gf=function(t){var n=t.xAxisId,r=vT(),i=gT(),o=LU(n);return o==null?null:V.createElement(mf,BS({},o,{className:Pe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(s){return Uo(s,!0)}}))};gf.displayName="XAxis";gf.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 US(){return US=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},US.apply(this,arguments)}var yf=function(t){var n=t.yAxisId,r=vT(),i=gT(),o=$U(n);return o==null?null:V.createElement(mf,US({},o,{className:Pe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(s){return Uo(s,!0)}}))};yf.displayName="YAxis";yf.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 H4(e){return FLe(e)||DLe(e)||ILe(e)||$Le()}function $Le(){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 ILe(e,t){if(e){if(typeof e=="string")return zS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zS(e,t)}}function DLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FLe(e){if(Array.isArray(e))return zS(e)}function zS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var VS=function(t,n,r,i,o){var a=ur(t,yT),s=ur(t,Xp),l=[].concat(H4(a),H4(s)),u=ur(t,Qp),f="".concat(i,"Id"),d=i[0],h=n;if(l.length&&(h=l.reduce(function(y,x){if(x.props[f]===r&&go(x.props,"extendDomain")&&Ee(x.props[d])){var _=x.props[d];return[Math.min(y[0],_),Math.max(y[1],_)]}return y},h)),u.length){var v="".concat(d,"1"),g="".concat(d,"2");h=u.reduce(function(y,x){if(x.props[f]===r&&go(x.props,"extendDomain")&&Ee(x.props[v])&&Ee(x.props[g])){var _=x.props[v],b=x.props[g];return[Math.min(y[0],_,b),Math.max(y[1],_,b)]}return y},h)}return o&&o.length&&(h=o.reduce(function(y,x){return Ee(x)?[Math.min(y[0],x),Math.max(y[1],x)]:y},h)),h},KU={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function o(l,u,f,d,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new i(f,d||l,h),g=n?n+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)t.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,v=d.length,g=new Array(v);h<v;h++)g[h]=d[h].fn;return g},s.prototype.listenerCount=function(u){var f=n?n+u:u,d=this._events[f];return d?d.fn?1:d.length:0},s.prototype.emit=function(u,f,d,h,v,g){var y=n?n+u:u;if(!this._events[y])return!1;var x=this._events[y],_=arguments.length,b,w;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),_){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,f),!0;case 3:return x.fn.call(x.context,f,d),!0;case 4:return x.fn.call(x.context,f,d,h),!0;case 5:return x.fn.call(x.context,f,d,h,v),!0;case 6:return x.fn.call(x.context,f,d,h,v,g),!0}for(w=1,b=new Array(_-1);w<_;w++)b[w-1]=arguments[w];x.fn.apply(x.context,b)}else{var S=x.length,E;for(w=0;w<S;w++)switch(x[w].once&&this.removeListener(u,x[w].fn,void 0,!0),_){case 1:x[w].fn.call(x[w].context);break;case 2:x[w].fn.call(x[w].context,f);break;case 3:x[w].fn.call(x[w].context,f,d);break;case 4:x[w].fn.call(x[w].context,f,d,h);break;default:if(!b)for(E=1,b=new Array(_-1);E<_;E++)b[E-1]=arguments[E];x[w].fn.apply(x[w].context,b)}}return!0},s.prototype.on=function(u,f,d){return o(this,u,f,d,!1)},s.prototype.once=function(u,f,d){return o(this,u,f,d,!0)},s.prototype.removeListener=function(u,f,d,h){var v=n?n+u:u;if(!this._events[v])return this;if(!f)return a(this,v),this;var g=this._events[v];if(g.fn)g.fn===f&&(!h||g.once)&&(!d||g.context===d)&&a(this,v);else{for(var y=0,x=[],_=g.length;y<_;y++)(g[y].fn!==f||h&&!g[y].once||d&&g[y].context!==d)&&x.push(g[y]);x.length?this._events[v]=x.length===1?x[0]:x:a(this,v)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&a(this,f)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(KU);var BLe=KU.exports;const ULe=st(BLe);var fx=new ULe,dx="recharts.syncMouseEvents";function gp(e){"@babel/helpers - typeof";return gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gp(e)}function zLe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YU(r.key),r)}}function VLe(e,t,n){return t&&G4(e.prototype,t),n&&G4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hx(e,t,n){return t=YU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YU(e){var t=WLe(e,"string");return gp(t)=="symbol"?t:String(t)}function WLe(e,t){if(gp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HLe=function(){function e(){zLe(this,e),hx(this,"activeIndex",0),hx(this,"coordinateList",[]),hx(this,"layout","horizontal")}return VLe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,a=n.container,s=a===void 0?null:a,l=n.layout,u=l===void 0?null:l,f=n.offset,d=f===void 0?null:f,h=n.mouseHandlerCallback,v=h===void 0?null:h;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=v??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=o+l+u,h=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:d,pageY:h})}}}]),e}();function GLe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&Ee(r)&&Ee(i))return!0}return!1}function qLe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function ZU(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=Et(t,n,r,i),s=Et(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function KLe(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,h=Et(s,l,u,d),v=Et(s,l,f,d);r=h.x,i=h.y,o=v.x,a=v.y}else return ZU(t);return[{x:r,y:i},{x:o,y:a}]}function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yp(e)}function q4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q4(Object(n),!0).forEach(function(r){YLe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YLe(e,t,n){return t=ZLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZLe(e){var t=XLe(e,"string");return yp(t)=="symbol"?t:String(t)}function XLe(e,t){if(yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QLe(e){var t=e.element,n=e.tooltipEventType,r=e.isActive,i=e.activeCoordinate,o=e.activePayload,a=e.offset,s=e.activeTooltipIndex,l=e.tooltipAxisBandSize,u=e.layout,f=e.chartName;if(!t||!t.props.cursor||!r||!i||f!=="ScatterChart"&&n!=="axis")return null;var d,h=Xa;if(f==="ScatterChart")d=i,h=$ke;else if(f==="BarChart")d=qLe(u,i,a,l),h=dT;else if(u==="radial"){var v=ZU(i),g=v.cx,y=v.cy,x=v.radius,_=v.startAngle,b=v.endAngle;d={cx:g,cy:y,startAngle:_,endAngle:b,innerRadius:x,outerRadius:x},h=nU}else d={points:KLe(u,i,a)},h=Xa;var w=wv(wv(wv(wv({stroke:"#ccc",pointerEvents:"none"},a),d),De(t.props.cursor,!1)),{},{payload:o,payloadIndex:s,className:Pe("recharts-tooltip-cursor",t.props.cursor.className)});return R.isValidElement(t.props.cursor)?R.cloneElement(t.props.cursor,w):R.createElement(h,w)}var JLe=["item"],e4e=["children","className","width","height","style","compact","title","desc"];function Bc(e){"@babel/helpers - typeof";return Bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bc(e)}function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kd.apply(this,arguments)}function K4(e,t){return r4e(e)||n4e(e,t)||QU(e,t)||t4e()}function t4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n4e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function r4e(e){if(Array.isArray(e))return e}function Y4(e,t){if(e==null)return{};var n=i4e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i4e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function o4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JU(r.key),r)}}function a4e(e,t,n){return t&&Z4(e.prototype,t),n&&Z4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s4e(e,t,n){return t=v0(t),l4e(e,XU()?Reflect.construct(t,n||[],v0(e).constructor):t.apply(e,n))}function l4e(e,t){if(t&&(Bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ct(e)}function XU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XU=function(){return!!e})()}function v0(e){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v0(e)}function ct(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u4e(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(r,i){return r.__proto__=i,r},WS(e,t)}function Uc(e){return d4e(e)||f4e(e)||QU(e)||c4e()}function c4e(){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 QU(e,t){if(e){if(typeof e=="string")return HS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HS(e,t)}}function f4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d4e(e){if(Array.isArray(e))return HS(e)}function HS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X4(Object(n),!0).forEach(function(r){He(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function He(e,t,n){return t=JU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JU(e){var t=h4e(e,"string");return Bc(t)=="symbol"?t:String(t)}function h4e(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p4e={xAxis:["bottom","top"],yAxis:["left","right"]},m4e={width:"100%",height:"100%"},e9={x:0,y:0};function Ov(e){return e}var v4e=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},g4e=function(t,n,r,i){var o=n.find(function(f){return f&&f.index===r});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 ve(ve(ve({},i),Et(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var l=o.coordinate,u=i.angle;return ve(ve(ve({},i),Et(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return e9},Jb=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Uc(s),Uc(u)):s},[]);return a.length>0?a:t&&t.length&&Ee(i)&&Ee(o)?t.slice(i,o+1):[]};function t9(e){return e==="number"?[0,"auto"]:void 0}var GS=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Jb(n,t);return r<0||!o||!o.length||r>=s.length?null:o.reduce(function(l,u){var f,d=(f=u.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(a.dataKey&&!a.allowDuplicatedCategory){var v=d===void 0?s:d;h=_y(v,a.dataKey,i)}else h=d&&d[r]||s[r];return h?[].concat(Uc(l),[ZB(u,h)]):l},[])},Q4=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=v4e(o,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=wTe(a,s,u,l);if(f>=0&&u){var d=u[f]&&u[f].value,h=GS(t,n,f,d),v=g4e(r,s,f,o);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:v}}return null},y4e=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,v=WB(f,o);return r.reduce(function(g,y){var x,_=y.props,b=_.type,w=_.dataKey,S=_.allowDataOverflow,E=_.allowDuplicatedCategory,P=_.scale,T=_.ticks,A=_.includeHidden,D=y.props[a];if(g[D])return g;var k=Jb(t.data,{graphicalItems:i.filter(function(ee){return ee.props[a]===D}),dataStartIndex:l,dataEndIndex:u}),I=k.length,F,q,W;GLe(y.props.domain,S,b)&&(F=uS(y.props.domain,null,S),v&&(b==="number"||P!=="auto")&&(W=Ud(k,w,"category")));var X=t9(b);if(!F||F.length===0){var Q,ne=(Q=y.props.domain)!==null&&Q!==void 0?Q:X;if(w){if(F=Ud(k,w,b),b==="category"&&v){var Z=Eve(F);E&&Z?(q=F,F=a0(0,I)):E||(F=pL(ne,F,y).reduce(function(ee,K){return ee.indexOf(K)>=0?ee:[].concat(Uc(ee),[K])},[]))}else if(b==="category")E?F=F.filter(function(ee){return ee!==""&&!ze(ee)}):F=pL(ne,F,y).reduce(function(ee,K){return ee.indexOf(K)>=0||K===""||ze(K)?ee:[].concat(Uc(ee),[K])},[]);else if(b==="number"){var z=CTe(k,i.filter(function(ee){return ee.props[a]===D&&(A||!ee.props.hide)}),w,o,f);z&&(F=z)}v&&(b==="number"||P!=="auto")&&(W=Ud(k,w,"category"))}else v?F=a0(0,I):s&&s[D]&&s[D].hasStack&&b==="number"?F=h==="expand"?[0,1]:YB(s[D].stackGroups,l,u):F=VB(k,i.filter(function(ee){return ee.props[a]===D&&(A||!ee.props.hide)}),b,f,!0);if(b==="number")F=VS(d,F,D,o,T),ne&&(F=uS(ne,F,S));else if(b==="category"&&ne){var B=ne,H=F.every(function(ee){return B.indexOf(ee)>=0});H&&(F=B)}}return ve(ve({},g),{},He({},D,ve(ve({},y.props),{},{axisType:o,domain:F,categoricalDomain:W,duplicateDomain:q,originalDomain:(x=y.props.domain)!==null&&x!==void 0?x:X,isCategorical:v,layout:f})))},{})},b4e=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=Jb(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),v=h.length,g=WB(f,o),y=-1;return r.reduce(function(x,_){var b=_.props[a],w=t9("number");if(!x[b]){y++;var S;return g?S=a0(0,v):s&&s[b]&&s[b].hasStack?(S=YB(s[b].stackGroups,l,u),S=VS(d,S,b,o)):(S=uS(w,VB(h,r.filter(function(E){return E.props[a]===b&&!E.props.hide}),"number",f),i.defaultProps.allowDataOverflow),S=VS(d,S,b,o)),ve(ve({},x),{},He({},b,ve(ve({axisType:o},i.defaultProps),{},{hide:!0,orientation:Fr(p4e,"".concat(o,".").concat(y%2),null),domain:S,originalDomain:w,isCategorical:g,layout:f})))}return x},{})},_4e=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(i,"Id"),h=ur(f,o),v={};return h&&h.length?v=y4e(t,{axes:h,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):a&&a.length&&(v=b4e(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),v},x4e=function(t){var n=ka(t),r=Uo(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:DC(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:qy(n,r)}},J4=function(t){var n=t.children,r=t.defaultShowTooltip,i=Rr(n,Rc),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:!!r}},w4e=function(t){return!t||!t.length?!1:t.some(function(n){var r=Vo(n&&n.type);return r&&r.indexOf("Bar")>=0})},e$=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"}},O4e=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,f=r.height,d=r.children,h=r.margin||{},v=Rr(d,Rc),g=Rr(d,$h),y=Object.keys(l).reduce(function(E,P){var T=l[P],A=T.orientation;return!T.mirror&&!T.hide?ve(ve({},E),{},He({},A,E[A]+T.width)):E},{left:h.left||0,right:h.right||0}),x=Object.keys(a).reduce(function(E,P){var T=a[P],A=T.orientation;return!T.mirror&&!T.hide?ve(ve({},E),{},He({},A,Fr(E,"".concat(A))+T.height)):E},{top:h.top||0,bottom:h.bottom||0}),_=ve(ve({},x),y),b=_.bottom;v&&(_.bottom+=v.props.height||Rc.defaultProps.height),g&&n&&(_=ETe(_,i,r,n));var w=u-_.left-_.right,S=f-_.top-_.bottom;return ve(ve({brushBottom:b},_),{},{width:Math.max(w,0),height:Math.max(S,0)})},S4e=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},wT=function(t){var n,r=t.chartName,i=t.GraphicalChild,o=t.defaultTooltipEventType,a=o===void 0?"axis":o,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,v=function(x,_){var b=_.graphicalItems,w=_.stackGroups,S=_.offset,E=_.updateId,P=_.dataStartIndex,T=_.dataEndIndex,A=x.barSize,D=x.layout,k=x.barGap,I=x.barCategoryGap,F=x.maxBarSize,q=e$(D),W=q.numericAxisName,X=q.cateAxisName,Q=w4e(b),ne=[];return b.forEach(function(Z,z){var B=Jb(x.data,{graphicalItems:[Z],dataStartIndex:P,dataEndIndex:T}),H=Z.props,ee=H.dataKey,K=H.maxBarSize,te=Z.props["".concat(W,"Id")],ie=Z.props["".concat(X,"Id")],ae={},fe=u.reduce(function(Te,Ce){var Ae=_["".concat(Ce.axisType,"Map")],le=Z.props["".concat(Ce.axisType,"Id")];Ae&&Ae[le]||Ce.axisType==="zAxis"||jl(!1);var ce=Ae[le];return ve(ve({},Te),{},He(He({},Ce.axisType,ce),"".concat(Ce.axisType,"Ticks"),Uo(ce)))},ae),j=fe[X],N=fe["".concat(X,"Ticks")],U=w&&w[te]&&w[te].hasStack&&$Te(Z,w[te].stackGroups),J=Vo(Z.type).indexOf("Bar")>=0,Y=qy(j,N),oe=[],he=Q&&OTe({barSize:A,stackGroups:w,totalSize:S4e(fe,X)});if(J){var Se,se,pe=ze(K)?F:K,me=(Se=(se=qy(j,N,!0))!==null&&se!==void 0?se:pe)!==null&&Se!==void 0?Se:0;oe=STe({barGap:k,barCategoryGap:I,bandSize:me!==Y?me:Y,sizeList:he[ie],maxBarSize:pe}),me!==Y&&(oe=oe.map(function(Te){return ve(ve({},Te),{},{position:ve(ve({},Te.position),{},{offset:Te.position.offset-me/2})})}))}var xe=Z&&Z.type&&Z.type.getComposedData;xe&&ne.push({props:ve(ve({},xe(ve(ve({},fe),{},{displayedData:B,props:x,dataKey:ee,item:Z,bandSize:Y,barPosition:oe,offset:S,stackedData:U,layout:D,dataStartIndex:P,dataEndIndex:T}))),{},He(He(He({key:Z.key||"item-".concat(z)},W,fe[W]),X,fe[X]),"animationId",E)),childIndex:Ive(Z,x.children),item:Z})}),ne},g=function(x,_){var b=x.props,w=x.dataStartIndex,S=x.dataEndIndex,E=x.updateId;if(!oM({props:b}))return null;var P=b.children,T=b.layout,A=b.stackOffset,D=b.data,k=b.reverseStackOrder,I=e$(T),F=I.numericAxisName,q=I.cateAxisName,W=ur(P,i),X=RTe(D,W,"".concat(F,"Id"),"".concat(q,"Id"),A,k),Q=u.reduce(function(H,ee){var K="".concat(ee.axisType,"Map");return ve(ve({},H),{},He({},K,_4e(b,ve(ve({},ee),{},{graphicalItems:W,stackGroups:ee.axisType===F&&X,dataStartIndex:w,dataEndIndex:S}))))},{}),ne=O4e(ve(ve({},Q),{},{props:b,graphicalItems:W}),_==null?void 0:_.legendBBox);Object.keys(Q).forEach(function(H){Q[H]=d(b,Q[H],ne,H.replace("Map",""),r)});var Z=Q["".concat(q,"Map")],z=x4e(Z),B=v(b,ve(ve({},Q),{},{dataStartIndex:w,dataEndIndex:S,updateId:E,graphicalItems:W,stackGroups:X,offset:ne}));return ve(ve({formattedGraphicalItems:B,graphicalItems:W,offset:ne,stackGroups:X},z),Q)};return n=function(y){u4e(x,y);function x(_){var b,w,S;return o4e(this,x),S=s4e(this,x,[_]),He(ct(S),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),He(ct(S),"accessibilityManager",new HLe),He(ct(S),"handleLegendBBoxUpdate",function(E){if(E){var P=S.state,T=P.dataStartIndex,A=P.dataEndIndex,D=P.updateId;S.setState(ve({legendBBox:E},g({props:S.props,dataStartIndex:T,dataEndIndex:A,updateId:D},ve(ve({},S.state),{},{legendBBox:E}))))}}),He(ct(S),"handleReceiveSyncEvent",function(E,P,T){if(S.props.syncId===E){if(T===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(P)}}),He(ct(S),"handleBrushChange",function(E){var P=E.startIndex,T=E.endIndex;if(P!==S.state.dataStartIndex||T!==S.state.dataEndIndex){var A=S.state.updateId;S.setState(function(){return ve({dataStartIndex:P,dataEndIndex:T},g({props:S.props,dataStartIndex:P,dataEndIndex:T,updateId:A},S.state))}),S.triggerSyncEvent({dataStartIndex:P,dataEndIndex:T})}}),He(ct(S),"handleMouseEnter",function(E){var P=S.getMouseInfo(E);if(P){var T=ve(ve({},P),{},{isTooltipActive:!0});S.setState(T),S.triggerSyncEvent(T);var A=S.props.onMouseEnter;We(A)&&A(T,E)}}),He(ct(S),"triggeredAfterMouseMove",function(E){var P=S.getMouseInfo(E),T=P?ve(ve({},P),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(T),S.triggerSyncEvent(T);var A=S.props.onMouseMove;We(A)&&A(T,E)}),He(ct(S),"handleItemMouseEnter",function(E){S.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),He(ct(S),"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),He(ct(S),"handleMouseMove",function(E){E.persist(),S.throttleTriggeredAfterMouseMove(E)}),He(ct(S),"handleMouseLeave",function(E){S.throttleTriggeredAfterMouseMove.cancel();var P={isTooltipActive:!1};S.setState(P),S.triggerSyncEvent(P);var T=S.props.onMouseLeave;We(T)&&T(P,E)}),He(ct(S),"handleOuterEvent",function(E){var P=$ve(E),T=Fr(S.props,"".concat(P));if(P&&We(T)){var A,D;/.*touch.*/i.test(P)?D=S.getMouseInfo(E.changedTouches[0]):D=S.getMouseInfo(E),T((A=D)!==null&&A!==void 0?A:{},E)}}),He(ct(S),"handleClick",function(E){var P=S.getMouseInfo(E);if(P){var T=ve(ve({},P),{},{isTooltipActive:!0});S.setState(T),S.triggerSyncEvent(T);var A=S.props.onClick;We(A)&&A(T,E)}}),He(ct(S),"handleMouseDown",function(E){var P=S.props.onMouseDown;if(We(P)){var T=S.getMouseInfo(E);P(T,E)}}),He(ct(S),"handleMouseUp",function(E){var P=S.props.onMouseUp;if(We(P)){var T=S.getMouseInfo(E);P(T,E)}}),He(ct(S),"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),He(ct(S),"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&S.handleMouseDown(E.changedTouches[0])}),He(ct(S),"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&S.handleMouseUp(E.changedTouches[0])}),He(ct(S),"triggerSyncEvent",function(E){S.props.syncId!==void 0&&fx.emit(dx,S.props.syncId,E,S.eventEmitterSymbol)}),He(ct(S),"applySyncEvent",function(E){var P=S.props,T=P.layout,A=P.syncMethod,D=S.state.updateId,k=E.dataStartIndex,I=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)S.setState(ve({dataStartIndex:k,dataEndIndex:I},g({props:S.props,dataStartIndex:k,dataEndIndex:I,updateId:D},S.state)));else if(E.activeTooltipIndex!==void 0){var F=E.chartX,q=E.chartY,W=E.activeTooltipIndex,X=S.state,Q=X.offset,ne=X.tooltipTicks;if(!Q)return;if(typeof A=="function")W=A(ne,E);else if(A==="value"){W=-1;for(var Z=0;Z<ne.length;Z++)if(ne[Z].value===E.activeLabel){W=Z;break}}var z=ve(ve({},Q),{},{x:Q.left,y:Q.top}),B=Math.min(F,z.x+z.width),H=Math.min(q,z.y+z.height),ee=ne[W]&&ne[W].value,K=GS(S.state,S.props.data,W),te=ne[W]?{x:T==="horizontal"?ne[W].coordinate:B,y:T==="horizontal"?H:ne[W].coordinate}:e9;S.setState(ve(ve({},E),{},{activeLabel:ee,activeCoordinate:te,activePayload:K,activeTooltipIndex:W}))}else S.setState(E)}),He(ct(S),"renderCursor",function(E){var P,T=S.state,A=T.isTooltipActive,D=T.activeCoordinate,k=T.activePayload,I=T.offset,F=T.activeTooltipIndex,q=T.tooltipAxisBandSize,W=S.getTooltipEventType(),X=(P=E.props.active)!==null&&P!==void 0?P:A,Q=S.props.layout,ne=E.key||"_recharts-cursor";return V.createElement(QLe,{key:ne,activeCoordinate:D,activePayload:k,activeTooltipIndex:F,chartName:r,element:E,isActive:X,layout:Q,offset:I,tooltipAxisBandSize:q,tooltipEventType:W})}),He(ct(S),"renderPolarAxis",function(E,P,T){var A=Fr(E,"type.axisType"),D=Fr(S.state,"".concat(A,"Map")),k=D&&D[E.props["".concat(A,"Id")]];return R.cloneElement(E,ve(ve({},k),{},{className:Pe(A,k.className),key:E.key||"".concat(P,"-").concat(T),ticks:Uo(k,!0)}))}),He(ct(S),"renderPolarGrid",function(E){var P=E.props,T=P.radialLines,A=P.polarAngles,D=P.polarRadius,k=S.state,I=k.radiusAxisMap,F=k.angleAxisMap,q=ka(I),W=ka(F),X=W.cx,Q=W.cy,ne=W.innerRadius,Z=W.outerRadius;return R.cloneElement(E,{polarAngles:Array.isArray(A)?A:Uo(W,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(D)?D:Uo(q,!0).map(function(z){return z.coordinate}),cx:X,cy:Q,innerRadius:ne,outerRadius:Z,key:E.key||"polar-grid",radialLines:T})}),He(ct(S),"renderLegend",function(){var E=S.state.formattedGraphicalItems,P=S.props,T=P.children,A=P.width,D=P.height,k=S.props.margin||{},I=A-(k.left||0)-(k.right||0),F=UB({children:T,formattedGraphicalItems:E,legendWidth:I,legendContent:f});if(!F)return null;var q=F.item,W=Y4(F,JLe);return R.cloneElement(q,ve(ve({},W),{},{chartWidth:A,chartHeight:D,margin:k,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),He(ct(S),"renderTooltip",function(){var E,P=S.props,T=P.children,A=P.accessibilityLayer,D=Rr(T,ri);if(!D)return null;var k=S.state,I=k.isTooltipActive,F=k.activeCoordinate,q=k.activePayload,W=k.activeLabel,X=k.offset,Q=(E=D.props.active)!==null&&E!==void 0?E:I;return R.cloneElement(D,{viewBox:ve(ve({},X),{},{x:X.left,y:X.top}),active:Q,label:W,payload:Q?q:[],coordinate:F,accessibilityLayer:A})}),He(ct(S),"renderBrush",function(E){var P=S.props,T=P.margin,A=P.data,D=S.state,k=D.offset,I=D.dataStartIndex,F=D.dataEndIndex,q=D.updateId;return R.cloneElement(E,{key:E.key||"_recharts-brush",onChange:yv(S.handleBrushChange,E.props.onChange),data:A,x:Ee(E.props.x)?E.props.x:k.left,y:Ee(E.props.y)?E.props.y:k.top+k.height+k.brushBottom-(T.bottom||0),width:Ee(E.props.width)?E.props.width:k.width,startIndex:I,endIndex:F,updateId:"brush-".concat(q)})}),He(ct(S),"renderReferenceElement",function(E,P,T){if(!E)return null;var A=ct(S),D=A.clipPathId,k=S.state,I=k.xAxisMap,F=k.yAxisMap,q=k.offset,W=E.props,X=W.xAxisId,Q=W.yAxisId;return R.cloneElement(E,{key:E.key||"".concat(P,"-").concat(T),xAxis:I[X],yAxis:F[Q],viewBox:{x:q.left,y:q.top,width:q.width,height:q.height},clipPathId:D})}),He(ct(S),"renderActivePoints",function(E){var P=E.item,T=E.activePoint,A=E.basePoint,D=E.childIndex,k=E.isRange,I=[],F=P.props.key,q=P.item.props,W=q.activeDot,X=q.dataKey,Q=ve(ve({index:D,dataKey:X,cx:T.x,cy:T.y,r:4,fill:fT(P.item),strokeWidth:2,stroke:"#fff",payload:T.payload,value:T.value,key:"".concat(F,"-activePoint-").concat(D)},De(W,!1)),xy(W));return I.push(x.renderActiveDot(W,Q)),A?I.push(x.renderActiveDot(W,ve(ve({},Q),{},{cx:A.x,cy:A.y,key:"".concat(F,"-basePoint-").concat(D)}))):k&&I.push(null),I}),He(ct(S),"renderGraphicChild",function(E,P,T){var A=S.filterFormatItem(E,P,T);if(!A)return null;var D=S.getTooltipEventType(),k=S.state,I=k.isTooltipActive,F=k.tooltipAxis,q=k.activeTooltipIndex,W=k.activeLabel,X=S.props.children,Q=Rr(X,ri),ne=A.props,Z=ne.points,z=ne.isRange,B=ne.baseLine,H=A.item.props,ee=H.activeDot,K=H.hide,te=H.activeBar,ie=H.activeShape,ae=!!(!K&&I&&Q&&(ee||te||ie)),fe={};D!=="axis"&&Q&&Q.props.trigger==="click"?fe={onClick:yv(S.handleItemMouseEnter,E.props.onClick)}:D!=="axis"&&(fe={onMouseLeave:yv(S.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:yv(S.handleItemMouseEnter,E.props.onMouseEnter)});var j=R.cloneElement(E,ve(ve({},A.props),fe));function N(Ce){return typeof F.dataKey=="function"?F.dataKey(Ce.payload):null}if(ae)if(q>=0){var U,J;if(F.dataKey&&!F.allowDuplicatedCategory){var Y=typeof F.dataKey=="function"?N:"payload.".concat(F.dataKey.toString());U=_y(Z,Y,W),J=z&&B&&_y(B,Y,W)}else U=Z==null?void 0:Z[q],J=z&&B&&B[q];if(ie||te){var oe=E.props.activeIndex!==void 0?E.props.activeIndex:q;return[R.cloneElement(E,ve(ve(ve({},A.props),fe),{},{activeIndex:oe})),null,null]}if(!ze(U))return[j].concat(Uc(S.renderActivePoints({item:A,activePoint:U,basePoint:J,childIndex:q,isRange:z})))}else{var he,Se=(he=S.getItemByXY(S.state.activeCoordinate))!==null&&he!==void 0?he:{graphicalItem:j},se=Se.graphicalItem,pe=se.item,me=pe===void 0?E:pe,xe=se.childIndex,Te=ve(ve(ve({},A.props),fe),{},{activeIndex:xe});return[R.cloneElement(me,Te),null,null]}return z?[j,null,null]:[j,null]}),He(ct(S),"renderCustomized",function(E,P,T){return R.cloneElement(E,ve(ve({key:"recharts-customized-".concat(T)},S.props),S.state))}),He(ct(S),"renderMap",{CartesianGrid:{handler:Ov,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Ov},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Ov},YAxis:{handler:Ov},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((b=_.id)!==null&&b!==void 0?b:bs("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=V7(S.triggeredAfterMouseMove,(w=_.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return a4e(x,[{key:"componentDidMount",value:function(){var b,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,w=b.children,S=b.data,E=b.height,P=b.layout,T=Rr(w,ri);if(T){var A=T.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length)){var D=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,k=GS(this.state,S,A,D),I=this.state.tooltipTicks[A].coordinate,F=(this.state.offset.top+E)/2,q=P==="horizontal",W=q?{x:I,y:F}:{y:I,x:F},X=this.state.formattedGraphicalItems.find(function(ne){var Z=ne.item;return Z.type.name==="Scatter"});X&&(W=ve(ve({},W),X.props.points[A].tooltipPosition),k=X.props.points[A].tooltipPayload);var Q={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:D,activePayload:k,activeCoordinate:W};this.setState(Q),this.renderCursor(T),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var S,E;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(b){SO([Rr(b.children,ri)],[Rr(this.props.children,ri)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Rr(this.props.children,ri);if(b&&typeof b.props.shared=="boolean"){var w=b.props.shared?"axis":"item";return l.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var w=this.container,S=w.getBoundingClientRect(),E=iSe(S),P={chartX:Math.round(b.pageX-E.left),chartY:Math.round(b.pageY-E.top)},T=S.width/w.offsetWidth||1,A=this.inRange(P.chartX,P.chartY,T);if(!A)return null;var D=this.state,k=D.xAxisMap,I=D.yAxisMap,F=this.getTooltipEventType();if(F!=="axis"&&k&&I){var q=ka(k).scale,W=ka(I).scale,X=q&&q.invert?q.invert(P.chartX):null,Q=W&&W.invert?W.invert(P.chartY):null;return ve(ve({},P),{},{xValue:X,yValue:Q})}var ne=Q4(this.state,this.props.data,this.props.layout,A);return ne?ve(ve({},P),ne):null}},{key:"inRange",value:function(b,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,P=b/S,T=w/S;if(E==="horizontal"||E==="vertical"){var A=this.state.offset,D=P>=A.left&&P<=A.left+A.width&&T>=A.top&&T<=A.top+A.height;return D?{x:P,y:T}:null}var k=this.state,I=k.angleAxisMap,F=k.radiusAxisMap;if(I&&F){var q=ka(I);return gL({x:P,y:T},q)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,w=this.getTooltipEventType(),S=Rr(b,ri),E={};S&&w==="axis"&&(S.props.trigger==="click"?E={onClick:this.handleClick}:E={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var P=xy(this.props,this.handleOuterEvent);return ve(ve({},P),E)}},{key:"addListener",value:function(){fx.on(dx,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){fx.removeListener(dx,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,w,S){for(var E=this.state.formattedGraphicalItems,P=0,T=E.length;P<T;P++){var A=E[P];if(A.item===b||A.props.key===b.key||w===Vo(A.item.type)&&S===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,w=this.state.offset,S=w.left,E=w.top,P=w.height,T=w.width;return V.createElement("defs",null,V.createElement("clipPath",{id:b},V.createElement("rect",{x:S,y:E,height:P,width:T})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(w,S){var E=K4(S,2),P=E[0],T=E[1];return ve(ve({},w),{},He({},P,T.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(w,S){var E=K4(S,2),P=E[0],T=E[1];return ve(ve({},w),{},He({},P,T.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(b){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(b){var w=this.state,S=w.formattedGraphicalItems,E=w.activeItem;if(S&&S.length)for(var P=0,T=S.length;P<T;P++){var A=S[P],D=A.props,k=A.item,I=Vo(k.type);if(I==="Bar"){var F=(D.data||[]).find(function(Q){return vke(b,Q)});if(F)return{graphicalItem:A,payload:F}}else if(I==="RadialBar"){var q=(D.data||[]).find(function(Q){return gL(b,Q)});if(q)return{graphicalItem:A,payload:q}}else if(Kb(A,E)||Yb(A,E)||up(A,E)){var W=iNe({graphicalItem:A,activeTooltipItem:E,itemData:k.props.data}),X=k.props.activeIndex===void 0?W:k.props.activeIndex;return{graphicalItem:ve(ve({},A),{},{childIndex:X}),payload:up(A,E)?k.props.data[W]:A.props.data[W]}}}return null}},{key:"render",value:function(){var b=this;if(!oM(this))return null;var w=this.props,S=w.children,E=w.className,P=w.width,T=w.height,A=w.style,D=w.compact,k=w.title,I=w.desc,F=Y4(w,e4e),q=De(F,!1);if(D)return V.createElement(P4,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(PO,Kd({},q,{width:P,height:T,title:k,desc:I}),this.renderClipPath(),sM(S,this.renderMap)));if(this.props.accessibilityLayer){var W,X;q.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,q.role=(X=this.props.role)!==null&&X!==void 0?X:"application",q.onKeyDown=function(ne){b.accessibilityManager.keyboardEvent(ne)},q.onFocus=function(){b.accessibilityManager.focus()}}var Q=this.parseEventsOfWrapper();return V.createElement(P4,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",Kd({className:Pe("recharts-wrapper",E),style:ve({position:"relative",cursor:"default",width:P,height:T},A)},Q,{ref:function(Z){b.container=Z}}),V.createElement(PO,Kd({},q,{width:P,height:T,title:k,desc:I,style:m4e}),this.renderClipPath(),sM(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}]),x}(R.Component),He(n,"displayName",r),He(n,"defaultProps",ve({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),He(n,"getDerivedStateFromProps",function(y,x){var _=y.dataKey,b=y.data,w=y.children,S=y.width,E=y.height,P=y.layout,T=y.stackOffset,A=y.margin,D=x.dataStartIndex,k=x.dataEndIndex;if(x.updateId===void 0){var I=J4(y);return ve(ve(ve({},I),{},{updateId:0},g(ve(ve({props:y},I),{},{updateId:0}),x)),{},{prevDataKey:_,prevData:b,prevWidth:S,prevHeight:E,prevLayout:P,prevStackOffset:T,prevMargin:A,prevChildren:w})}if(_!==x.prevDataKey||b!==x.prevData||S!==x.prevWidth||E!==x.prevHeight||P!==x.prevLayout||T!==x.prevStackOffset||!Ku(A,x.prevMargin)){var F=J4(y),q={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},W=ve(ve({},Q4(x,b,P)),{},{updateId:x.updateId+1}),X=ve(ve(ve({},F),q),W);return ve(ve(ve({},X),g(ve({props:y},X),x)),{},{prevDataKey:_,prevData:b,prevWidth:S,prevHeight:E,prevLayout:P,prevStackOffset:T,prevMargin:A,prevChildren:w})}if(!SO(w,x.prevChildren)){var Q,ne,Z,z,B=Rr(w,Rc),H=B&&(Q=(ne=B.props)===null||ne===void 0?void 0:ne.startIndex)!==null&&Q!==void 0?Q:D,ee=B&&(Z=(z=B.props)===null||z===void 0?void 0:z.endIndex)!==null&&Z!==void 0?Z:k,K=H!==D||ee!==k,te=!ze(b),ie=te&&!K?x.updateId:x.updateId+1;return ve(ve({updateId:ie},g(ve(ve({props:y},x),{},{updateId:ie,dataStartIndex:H,dataEndIndex:ee}),x)),{},{prevChildren:w,dataStartIndex:H,dataEndIndex:ee})}return null}),He(n,"renderActiveDot",function(y,x){var _;return R.isValidElement(y)?_=R.cloneElement(y,x):We(y)?_=y(x):_=V.createElement(Zp,x),V.createElement(Qe,{className:"recharts-active-dot",key:x.key},_)}),n},E4e=wT({chartName:"LineChart",GraphicalChild:vf,axisComponents:[{axisType:"xAxis",AxisComp:gf},{axisType:"yAxis",AxisComp:yf}],formatAxisMap:CU}),P4e=wT({chartName:"PieChart",GraphicalChild:wo,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:qb},{axisType:"radiusAxis",AxisComp:Hb}],formatAxisMap:GTe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),C4e=wT({chartName:"ComposedChart",GraphicalChild:[vf,Fl,Ho,Qb],axisComponents:[{axisType:"xAxis",AxisComp:gf},{axisType:"yAxis",AxisComp:yf},{axisType:"zAxis",AxisComp:Xb}],formatAxisMap:CU});function n9(e,t){const n=R.useRef(t);R.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const T4e=1;function j4e(e){return Object.freeze({__version:T4e,map:e})}function A4e(e,t){return Object.freeze({...e,...t})}const r9=R.createContext(null),i9=r9.Provider;function o9(){const e=R.useContext(r9);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function k4e(e){function t(n,r){const{instance:i,context:o}=e(n).current;return R.useImperativeHandle(r,()=>i),n.children==null?null:V.createElement(i9,{value:o},n.children)}return R.forwardRef(t)}function N4e(e){function t(n,r){const[i,o]=R.useState(!1),{instance:a}=e(n,o).current;R.useImperativeHandle(r,()=>a),R.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?U0.createPortal(n.children,s):null}return R.forwardRef(t)}function M4e(e){function t(n,r){const{instance:i}=e(n).current;return R.useImperativeHandle(r,()=>i),null}return R.forwardRef(t)}function a9(e,t){const n=R.useRef();R.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function OT(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function R4e(e,t){return function(r,i){const o=o9(),a=e(OT(r,o),o);return n9(o.map,r.attribution),a9(a.current,r.eventHandlers),t(a.current,o,r,i),a}}var qS={exports:{}};/* @preserve
|
||
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
*/(function(e,t){(function(n,r){r(t)})(Ks,function(n){var r="1.9.4";function i(c){var p,O,C,M;for(O=1,C=arguments.length;O<C;O++){M=arguments[O];for(p in M)c[p]=M[p]}return c}var o=Object.create||function(){function c(){}return function(p){return c.prototype=p,new c}}();function a(c,p){var O=Array.prototype.slice;if(c.bind)return c.bind.apply(c,O.call(arguments,1));var C=O.call(arguments,2);return function(){return c.apply(p,C.length?C.concat(O.call(arguments)):arguments)}}var s=0;function l(c){return"_leaflet_id"in c||(c._leaflet_id=++s),c._leaflet_id}function u(c,p,O){var C,M,G,re;return re=function(){C=!1,M&&(G.apply(O,M),M=!1)},G=function(){C?M=arguments:(c.apply(O,arguments),setTimeout(re,p),C=!0)},G}function f(c,p,O){var C=p[1],M=p[0],G=C-M;return c===C&&O?c:((c-M)%G+G)%G+M}function d(){return!1}function h(c,p){if(p===!1)return c;var O=Math.pow(10,p===void 0?6:p);return Math.round(c*O)/O}function v(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function g(c){return v(c).split(/\s+/)}function y(c,p){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?o(c.options):{});for(var O in p)c.options[O]=p[O];return c.options}function x(c,p,O){var C=[];for(var M in c)C.push(encodeURIComponent(O?M.toUpperCase():M)+"="+encodeURIComponent(c[M]));return(!p||p.indexOf("?")===-1?"?":"&")+C.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function b(c,p){return c.replace(_,function(O,C){var M=p[C];if(M===void 0)throw new Error("No value provided for variable "+O);return typeof M=="function"&&(M=M(p)),M})}var w=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function S(c,p){for(var O=0;O<c.length;O++)if(c[O]===p)return O;return-1}var E="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function P(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var T=0;function A(c){var p=+new Date,O=Math.max(0,16-(p-T));return T=p+O,window.setTimeout(c,O)}var D=window.requestAnimationFrame||P("RequestAnimationFrame")||A,k=window.cancelAnimationFrame||P("CancelAnimationFrame")||P("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function I(c,p,O){if(O&&D===A)c.call(p);else return D.call(window,a(c,p))}function F(c){c&&k.call(window,c)}var q={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:l,throttle:u,wrapNum:f,falseFn:d,formatNum:h,trim:v,splitWords:g,setOptions:y,getParamString:x,template:b,isArray:w,indexOf:S,emptyImageUrl:E,requestFn:D,cancelFn:k,requestAnimFrame:I,cancelAnimFrame:F};function W(){}W.extend=function(c){var p=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},O=p.__super__=this.prototype,C=o(O);C.constructor=p,p.prototype=C;for(var M in this)Object.prototype.hasOwnProperty.call(this,M)&&M!=="prototype"&&M!=="__super__"&&(p[M]=this[M]);return c.statics&&i(p,c.statics),c.includes&&(X(c.includes),i.apply(null,[C].concat(c.includes))),i(C,c),delete C.statics,delete C.includes,C.options&&(C.options=O.options?o(O.options):{},i(C.options,c.options)),C._initHooks=[],C.callInitHooks=function(){if(!this._initHooksCalled){O.callInitHooks&&O.callInitHooks.call(this),this._initHooksCalled=!0;for(var G=0,re=C._initHooks.length;G<re;G++)C._initHooks[G].call(this)}},p},W.include=function(c){var p=this.prototype.options;return i(this.prototype,c),c.options&&(this.prototype.options=p,this.mergeOptions(c.options)),this},W.mergeOptions=function(c){return i(this.prototype.options,c),this},W.addInitHook=function(c){var p=Array.prototype.slice.call(arguments,1),O=typeof c=="function"?c:function(){this[c].apply(this,p)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(O),this};function X(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=w(c)?c:[c];for(var p=0;p<c.length;p++)c[p]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Q={on:function(c,p,O){if(typeof c=="object")for(var C in c)this._on(C,c[C],p);else{c=g(c);for(var M=0,G=c.length;M<G;M++)this._on(c[M],p,O)}return this},off:function(c,p,O){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var C in c)this._off(C,c[C],p);else{c=g(c);for(var M=arguments.length===1,G=0,re=c.length;G<re;G++)M?this._off(c[G]):this._off(c[G],p,O)}return this},_on:function(c,p,O,C){if(typeof p!="function"){console.warn("wrong listener type: "+typeof p);return}if(this._listens(c,p,O)===!1){O===this&&(O=void 0);var M={fn:p,ctx:O};C&&(M.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(M)}},_off:function(c,p,O){var C,M,G;if(this._events&&(C=this._events[c],!!C)){if(arguments.length===1){if(this._firingCount)for(M=0,G=C.length;M<G;M++)C[M].fn=d;delete this._events[c];return}if(typeof p!="function"){console.warn("wrong listener type: "+typeof p);return}var re=this._listens(c,p,O);if(re!==!1){var ue=C[re];this._firingCount&&(ue.fn=d,this._events[c]=C=C.slice()),C.splice(re,1)}}},fire:function(c,p,O){if(!this.listens(c,O))return this;var C=i({},p,{type:c,target:this,sourceTarget:p&&p.sourceTarget||this});if(this._events){var M=this._events[c];if(M){this._firingCount=this._firingCount+1||1;for(var G=0,re=M.length;G<re;G++){var ue=M[G],de=ue.fn;ue.once&&this.off(c,de,ue.ctx),de.call(ue.ctx||this,C)}this._firingCount--}}return O&&this._propagateEvent(C),this},listens:function(c,p,O,C){typeof c!="string"&&console.warn('"string" type argument expected');var M=p;typeof p!="function"&&(C=!!p,M=void 0,O=void 0);var G=this._events&&this._events[c];if(G&&G.length&&this._listens(c,M,O)!==!1)return!0;if(C){for(var re in this._eventParents)if(this._eventParents[re].listens(c,p,O,C))return!0}return!1},_listens:function(c,p,O){if(!this._events)return!1;var C=this._events[c]||[];if(!p)return!!C.length;O===this&&(O=void 0);for(var M=0,G=C.length;M<G;M++)if(C[M].fn===p&&C[M].ctx===O)return M;return!1},once:function(c,p,O){if(typeof c=="object")for(var C in c)this._on(C,c[C],p,!0);else{c=g(c);for(var M=0,G=c.length;M<G;M++)this._on(c[M],p,O,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[l(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[l(c)],this},_propagateEvent:function(c){for(var p in this._eventParents)this._eventParents[p].fire(c.type,i({layer:c.target,propagatedFrom:c.target},c),!0)}};Q.addEventListener=Q.on,Q.removeEventListener=Q.clearAllEventListeners=Q.off,Q.addOneTimeEventListener=Q.once,Q.fireEvent=Q.fire,Q.hasEventListeners=Q.listens;var ne=W.extend(Q);function Z(c,p,O){this.x=O?Math.round(c):c,this.y=O?Math.round(p):p}var z=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(c){return this.clone()._add(B(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(B(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new Z(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new Z(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(c){c=B(c);var p=c.x-this.x,O=c.y-this.y;return Math.sqrt(p*p+O*O)},equals:function(c){return c=B(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=B(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}};function B(c,p,O){return c instanceof Z?c:w(c)?new Z(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new Z(c.x,c.y):new Z(c,p,O)}function H(c,p){if(c)for(var O=p?[c,p]:c,C=0,M=O.length;C<M;C++)this.extend(O[C])}H.prototype={extend:function(c){var p,O;if(!c)return this;if(c instanceof Z||typeof c[0]=="number"||"x"in c)p=O=B(c);else if(c=ee(c),p=c.min,O=c.max,!p||!O)return this;return!this.min&&!this.max?(this.min=p.clone(),this.max=O.clone()):(this.min.x=Math.min(p.x,this.min.x),this.max.x=Math.max(O.x,this.max.x),this.min.y=Math.min(p.y,this.min.y),this.max.y=Math.max(O.y,this.max.y)),this},getCenter:function(c){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(c){var p,O;return typeof c[0]=="number"||c instanceof Z?c=B(c):c=ee(c),c instanceof H?(p=c.min,O=c.max):p=O=c,p.x>=this.min.x&&O.x<=this.max.x&&p.y>=this.min.y&&O.y<=this.max.y},intersects:function(c){c=ee(c);var p=this.min,O=this.max,C=c.min,M=c.max,G=M.x>=p.x&&C.x<=O.x,re=M.y>=p.y&&C.y<=O.y;return G&&re},overlaps:function(c){c=ee(c);var p=this.min,O=this.max,C=c.min,M=c.max,G=M.x>p.x&&C.x<O.x,re=M.y>p.y&&C.y<O.y;return G&&re},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var p=this.min,O=this.max,C=Math.abs(p.x-O.x)*c,M=Math.abs(p.y-O.y)*c;return ee(B(p.x-C,p.y-M),B(O.x+C,O.y+M))},equals:function(c){return c?(c=ee(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function ee(c,p){return!c||c instanceof H?c:new H(c,p)}function K(c,p){if(c)for(var O=p?[c,p]:c,C=0,M=O.length;C<M;C++)this.extend(O[C])}K.prototype={extend:function(c){var p=this._southWest,O=this._northEast,C,M;if(c instanceof ie)C=c,M=c;else if(c instanceof K){if(C=c._southWest,M=c._northEast,!C||!M)return this}else return c?this.extend(ae(c)||te(c)):this;return!p&&!O?(this._southWest=new ie(C.lat,C.lng),this._northEast=new ie(M.lat,M.lng)):(p.lat=Math.min(C.lat,p.lat),p.lng=Math.min(C.lng,p.lng),O.lat=Math.max(M.lat,O.lat),O.lng=Math.max(M.lng,O.lng)),this},pad:function(c){var p=this._southWest,O=this._northEast,C=Math.abs(p.lat-O.lat)*c,M=Math.abs(p.lng-O.lng)*c;return new K(new ie(p.lat-C,p.lng-M),new ie(O.lat+C,O.lng+M))},getCenter:function(){return new ie((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ie(this.getNorth(),this.getWest())},getSouthEast:function(){return new ie(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(c){typeof c[0]=="number"||c instanceof ie||"lat"in c?c=ae(c):c=te(c);var p=this._southWest,O=this._northEast,C,M;return c instanceof K?(C=c.getSouthWest(),M=c.getNorthEast()):C=M=c,C.lat>=p.lat&&M.lat<=O.lat&&C.lng>=p.lng&&M.lng<=O.lng},intersects:function(c){c=te(c);var p=this._southWest,O=this._northEast,C=c.getSouthWest(),M=c.getNorthEast(),G=M.lat>=p.lat&&C.lat<=O.lat,re=M.lng>=p.lng&&C.lng<=O.lng;return G&&re},overlaps:function(c){c=te(c);var p=this._southWest,O=this._northEast,C=c.getSouthWest(),M=c.getNorthEast(),G=M.lat>p.lat&&C.lat<O.lat,re=M.lng>p.lng&&C.lng<O.lng;return G&&re},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,p){return c?(c=te(c),this._southWest.equals(c.getSouthWest(),p)&&this._northEast.equals(c.getNorthEast(),p)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function te(c,p){return c instanceof K?c:new K(c,p)}function ie(c,p,O){if(isNaN(c)||isNaN(p))throw new Error("Invalid LatLng object: ("+c+", "+p+")");this.lat=+c,this.lng=+p,O!==void 0&&(this.alt=+O)}ie.prototype={equals:function(c,p){if(!c)return!1;c=ae(c);var O=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return O<=(p===void 0?1e-9:p)},toString:function(c){return"LatLng("+h(this.lat,c)+", "+h(this.lng,c)+")"},distanceTo:function(c){return j.distance(this,ae(c))},wrap:function(){return j.wrapLatLng(this)},toBounds:function(c){var p=180*c/40075017,O=p/Math.cos(Math.PI/180*this.lat);return te([this.lat-p,this.lng-O],[this.lat+p,this.lng+O])},clone:function(){return new ie(this.lat,this.lng,this.alt)}};function ae(c,p,O){return c instanceof ie?c:w(c)&&typeof c[0]!="object"?c.length===3?new ie(c[0],c[1],c[2]):c.length===2?new ie(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new ie(c.lat,"lng"in c?c.lng:c.lon,c.alt):p===void 0?null:new ie(c,p,O)}var fe={latLngToPoint:function(c,p){var O=this.projection.project(c),C=this.scale(p);return this.transformation._transform(O,C)},pointToLatLng:function(c,p){var O=this.scale(p),C=this.transformation.untransform(c,O);return this.projection.unproject(C)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var p=this.projection.bounds,O=this.scale(c),C=this.transformation.transform(p.min,O),M=this.transformation.transform(p.max,O);return new H(C,M)},infinite:!1,wrapLatLng:function(c){var p=this.wrapLng?f(c.lng,this.wrapLng,!0):c.lng,O=this.wrapLat?f(c.lat,this.wrapLat,!0):c.lat,C=c.alt;return new ie(O,p,C)},wrapLatLngBounds:function(c){var p=c.getCenter(),O=this.wrapLatLng(p),C=p.lat-O.lat,M=p.lng-O.lng;if(C===0&&M===0)return c;var G=c.getSouthWest(),re=c.getNorthEast(),ue=new ie(G.lat-C,G.lng-M),de=new ie(re.lat-C,re.lng-M);return new K(ue,de)}},j=i({},fe,{wrapLng:[-180,180],R:6371e3,distance:function(c,p){var O=Math.PI/180,C=c.lat*O,M=p.lat*O,G=Math.sin((p.lat-c.lat)*O/2),re=Math.sin((p.lng-c.lng)*O/2),ue=G*G+Math.cos(C)*Math.cos(M)*re*re,de=2*Math.atan2(Math.sqrt(ue),Math.sqrt(1-ue));return this.R*de}}),N=6378137,U={R:N,MAX_LATITUDE:85.0511287798,project:function(c){var p=Math.PI/180,O=this.MAX_LATITUDE,C=Math.max(Math.min(O,c.lat),-O),M=Math.sin(C*p);return new Z(this.R*c.lng*p,this.R*Math.log((1+M)/(1-M))/2)},unproject:function(c){var p=180/Math.PI;return new ie((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*p,c.x*p/this.R)},bounds:function(){var c=N*Math.PI;return new H([-c,-c],[c,c])}()};function J(c,p,O,C){if(w(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=p,this._c=O,this._d=C}J.prototype={transform:function(c,p){return this._transform(c.clone(),p)},_transform:function(c,p){return p=p||1,c.x=p*(this._a*c.x+this._b),c.y=p*(this._c*c.y+this._d),c},untransform:function(c,p){return p=p||1,new Z((c.x/p-this._b)/this._a,(c.y/p-this._d)/this._c)}};function Y(c,p,O,C){return new J(c,p,O,C)}var oe=i({},j,{code:"EPSG:3857",projection:U,transformation:function(){var c=.5/(Math.PI*U.R);return Y(c,.5,-c,.5)}()}),he=i({},oe,{code:"EPSG:900913"});function Se(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function se(c,p){var O="",C,M,G,re,ue,de;for(C=0,G=c.length;C<G;C++){for(ue=c[C],M=0,re=ue.length;M<re;M++)de=ue[M],O+=(M?"L":"M")+de.x+" "+de.y;O+=p?Be.svg?"z":"x":""}return O||"M0 0"}var pe=document.documentElement.style,me="ActiveXObject"in window,xe=me&&!document.addEventListener,Te="msLaunchUri"in navigator&&!("documentMode"in document),Ce=Rn("webkit"),Ae=Rn("android"),le=Rn("android 2")||Rn("android 3"),ce=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ye=Ae&&Rn("Google")&&ce<537&&!("AudioNode"in window),ge=!!window.opera,we=!Te&&Rn("chrome"),ke=Rn("gecko")&&!Ce&&!ge&&!me,Me=!we&&Rn("safari"),et=Rn("phantom"),nt="OTransition"in pe,Ze=navigator.platform.indexOf("Win")===0,Gt=me&&"transition"in pe,Ft="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!le,bn="MozPerspective"in pe,Zn=!window.L_DISABLE_3D&&(Gt||Ft||bn)&&!nt&&!et,Yi=typeof orientation<"u"||Rn("mobile"),kn=Yi&&Ce,wf=Yi&&Ft,Zi=!window.PointerEvent&&window.MSPointerEvent,sm=!!(window.PointerEvent||Zi),lm="ontouchstart"in window||!!window.TouchEvent,um=!window.L_NO_TOUCH&&(lm||sm),Of=Yi&&ge,Ss=Yi&&ke,rn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Xt=function(){var c=!1;try{var p=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",d,p),window.removeEventListener("testPassiveEventSupport",d,p)}catch{}return c}(),Xn=function(){return!!document.createElement("canvas").getContext}(),Nn=!!(document.createElementNS&&Se("svg").createSVGRect),Mn=!!Nn&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),un=!Nn&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var p=c.firstChild;return p.style.behavior="url(#default#VML)",p&&typeof p.adj=="object"}catch{return!1}}(),xi=navigator.platform.indexOf("Mac")===0,wi=navigator.platform.indexOf("Linux")===0;function Rn(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var Be={ie:me,ielt9:xe,edge:Te,webkit:Ce,android:Ae,android23:le,androidStock:ye,opera:ge,chrome:we,gecko:ke,safari:Me,phantom:et,opera12:nt,win:Ze,ie3d:Gt,webkit3d:Ft,gecko3d:bn,any3d:Zn,mobile:Yi,mobileWebkit:kn,mobileWebkit3d:wf,msPointer:Zi,pointer:sm,touch:um,touchNative:lm,mobileOpera:Of,mobileGecko:Ss,retina:rn,passiveEvents:Xt,canvas:Xn,svg:Nn,vml:un,inlineSvg:Mn,mac:xi,linux:wi},XT=Be.msPointer?"MSPointerDown":"pointerdown",QT=Be.msPointer?"MSPointerMove":"pointermove",JT=Be.msPointer?"MSPointerUp":"pointerup",ej=Be.msPointer?"MSPointerCancel":"pointercancel",u1={touchstart:XT,touchmove:QT,touchend:JT,touchcancel:ej},tj={touchstart:$V,touchmove:cm,touchend:cm,touchcancel:cm},zl={},nj=!1;function kV(c,p,O){return p==="touchstart"&&LV(),tj[p]?(O=tj[p].bind(this,O),c.addEventListener(u1[p],O,!1),O):(console.warn("wrong event specified:",p),d)}function NV(c,p,O){if(!u1[p]){console.warn("wrong event specified:",p);return}c.removeEventListener(u1[p],O,!1)}function MV(c){zl[c.pointerId]=c}function RV(c){zl[c.pointerId]&&(zl[c.pointerId]=c)}function rj(c){delete zl[c.pointerId]}function LV(){nj||(document.addEventListener(XT,MV,!0),document.addEventListener(QT,RV,!0),document.addEventListener(JT,rj,!0),document.addEventListener(ej,rj,!0),nj=!0)}function cm(c,p){if(p.pointerType!==(p.MSPOINTER_TYPE_MOUSE||"mouse")){p.touches=[];for(var O in zl)p.touches.push(zl[O]);p.changedTouches=[p],c(p)}}function $V(c,p){p.MSPOINTER_TYPE_TOUCH&&p.pointerType===p.MSPOINTER_TYPE_TOUCH&&Ln(p),cm(c,p)}function IV(c){var p={},O,C;for(C in c)O=c[C],p[C]=O&&O.bind?O.bind(c):O;return c=p,p.type="dblclick",p.detail=2,p.isTrusted=!1,p._simulated=!0,p}var DV=200;function FV(c,p){c.addEventListener("dblclick",p);var O=0,C;function M(G){if(G.detail!==1){C=G.detail;return}if(!(G.pointerType==="mouse"||G.sourceCapabilities&&!G.sourceCapabilities.firesTouchEvents)){var re=lj(G);if(!(re.some(function(de){return de instanceof HTMLLabelElement&&de.attributes.for})&&!re.some(function(de){return de instanceof HTMLInputElement||de instanceof HTMLSelectElement}))){var ue=Date.now();ue-O<=DV?(C++,C===2&&p(IV(G))):C=1,O=ue}}}return c.addEventListener("click",M),{dblclick:p,simDblclick:M}}function BV(c,p){c.removeEventListener("dblclick",p.dblclick),c.removeEventListener("click",p.simDblclick)}var c1=hm(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Sf=hm(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ij=Sf==="webkitTransition"||Sf==="OTransition"?Sf+"End":"transitionend";function oj(c){return typeof c=="string"?document.getElementById(c):c}function Ef(c,p){var O=c.style[p]||c.currentStyle&&c.currentStyle[p];if((!O||O==="auto")&&document.defaultView){var C=document.defaultView.getComputedStyle(c,null);O=C?C[p]:null}return O==="auto"?null:O}function dt(c,p,O){var C=document.createElement(c);return C.className=p||"",O&&O.appendChild(C),C}function Bt(c){var p=c.parentNode;p&&p.removeChild(c)}function fm(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function Vl(c){var p=c.parentNode;p&&p.lastChild!==c&&p.appendChild(c)}function Wl(c){var p=c.parentNode;p&&p.firstChild!==c&&p.insertBefore(c,p.firstChild)}function f1(c,p){if(c.classList!==void 0)return c.classList.contains(p);var O=dm(c);return O.length>0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(O)}function Je(c,p){if(c.classList!==void 0)for(var O=g(p),C=0,M=O.length;C<M;C++)c.classList.add(O[C]);else if(!f1(c,p)){var G=dm(c);d1(c,(G?G+" ":"")+p)}}function Qt(c,p){c.classList!==void 0?c.classList.remove(p):d1(c,v((" "+dm(c)+" ").replace(" "+p+" "," ")))}function d1(c,p){c.className.baseVal===void 0?c.className=p:c.className.baseVal=p}function dm(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function Yr(c,p){"opacity"in c.style?c.style.opacity=p:"filter"in c.style&&UV(c,p)}function UV(c,p){var O=!1,C="DXImageTransform.Microsoft.Alpha";try{O=c.filters.item(C)}catch{if(p===1)return}p=Math.round(p*100),O?(O.Enabled=p!==100,O.Opacity=p):c.style.filter+=" progid:"+C+"(opacity="+p+")"}function hm(c){for(var p=document.documentElement.style,O=0;O<c.length;O++)if(c[O]in p)return c[O];return!1}function Es(c,p,O){var C=p||new Z(0,0);c.style[c1]=(Be.ie3d?"translate("+C.x+"px,"+C.y+"px)":"translate3d("+C.x+"px,"+C.y+"px,0)")+(O?" scale("+O+")":"")}function on(c,p){c._leaflet_pos=p,Be.any3d?Es(c,p):(c.style.left=p.x+"px",c.style.top=p.y+"px")}function Ps(c){return c._leaflet_pos||new Z(0,0)}var Pf,Cf,h1;if("onselectstart"in document)Pf=function(){Xe(window,"selectstart",Ln)},Cf=function(){xt(window,"selectstart",Ln)};else{var Tf=hm(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Pf=function(){if(Tf){var c=document.documentElement.style;h1=c[Tf],c[Tf]="none"}},Cf=function(){Tf&&(document.documentElement.style[Tf]=h1,h1=void 0)}}function p1(){Xe(window,"dragstart",Ln)}function m1(){xt(window,"dragstart",Ln)}var pm,v1;function g1(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(mm(),pm=c,v1=c.style.outlineStyle,c.style.outlineStyle="none",Xe(window,"keydown",mm))}function mm(){pm&&(pm.style.outlineStyle=v1,pm=void 0,v1=void 0,xt(window,"keydown",mm))}function aj(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function y1(c){var p=c.getBoundingClientRect();return{x:p.width/c.offsetWidth||1,y:p.height/c.offsetHeight||1,boundingClientRect:p}}var zV={__proto__:null,TRANSFORM:c1,TRANSITION:Sf,TRANSITION_END:ij,get:oj,getStyle:Ef,create:dt,remove:Bt,empty:fm,toFront:Vl,toBack:Wl,hasClass:f1,addClass:Je,removeClass:Qt,setClass:d1,getClass:dm,setOpacity:Yr,testProp:hm,setTransform:Es,setPosition:on,getPosition:Ps,get disableTextSelection(){return Pf},get enableTextSelection(){return Cf},disableImageDrag:p1,enableImageDrag:m1,preventOutline:g1,restoreOutline:mm,getSizedParentNode:aj,getScale:y1};function Xe(c,p,O,C){if(p&&typeof p=="object")for(var M in p)_1(c,M,p[M],O);else{p=g(p);for(var G=0,re=p.length;G<re;G++)_1(c,p[G],O,C)}return this}var Xi="_leaflet_events";function xt(c,p,O,C){if(arguments.length===1)sj(c),delete c[Xi];else if(p&&typeof p=="object")for(var M in p)x1(c,M,p[M],O);else if(p=g(p),arguments.length===2)sj(c,function(ue){return S(p,ue)!==-1});else for(var G=0,re=p.length;G<re;G++)x1(c,p[G],O,C);return this}function sj(c,p){for(var O in c[Xi]){var C=O.split(/\d/)[0];(!p||p(C))&&x1(c,C,null,null,O)}}var b1={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function _1(c,p,O,C){var M=p+l(O)+(C?"_"+l(C):"");if(c[Xi]&&c[Xi][M])return this;var G=function(ue){return O.call(C||c,ue||window.event)},re=G;!Be.touchNative&&Be.pointer&&p.indexOf("touch")===0?G=kV(c,p,G):Be.touch&&p==="dblclick"?G=FV(c,G):"addEventListener"in c?p==="touchstart"||p==="touchmove"||p==="wheel"||p==="mousewheel"?c.addEventListener(b1[p]||p,G,Be.passiveEvents?{passive:!1}:!1):p==="mouseenter"||p==="mouseleave"?(G=function(ue){ue=ue||window.event,O1(c,ue)&&re(ue)},c.addEventListener(b1[p],G,!1)):c.addEventListener(p,re,!1):c.attachEvent("on"+p,G),c[Xi]=c[Xi]||{},c[Xi][M]=G}function x1(c,p,O,C,M){M=M||p+l(O)+(C?"_"+l(C):"");var G=c[Xi]&&c[Xi][M];if(!G)return this;!Be.touchNative&&Be.pointer&&p.indexOf("touch")===0?NV(c,p,G):Be.touch&&p==="dblclick"?BV(c,G):"removeEventListener"in c?c.removeEventListener(b1[p]||p,G,!1):c.detachEvent("on"+p,G),c[Xi][M]=null}function Cs(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function w1(c){return _1(c,"wheel",Cs),this}function jf(c){return Xe(c,"mousedown touchstart dblclick contextmenu",Cs),c._leaflet_disable_click=!0,this}function Ln(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function Ts(c){return Ln(c),Cs(c),this}function lj(c){if(c.composedPath)return c.composedPath();for(var p=[],O=c.target;O;)p.push(O),O=O.parentNode;return p}function uj(c,p){if(!p)return new Z(c.clientX,c.clientY);var O=y1(p),C=O.boundingClientRect;return new Z((c.clientX-C.left)/O.x-p.clientLeft,(c.clientY-C.top)/O.y-p.clientTop)}var VV=Be.linux&&Be.chrome?window.devicePixelRatio:Be.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function cj(c){return Be.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/VV:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function O1(c,p){var O=p.relatedTarget;if(!O)return!0;try{for(;O&&O!==c;)O=O.parentNode}catch{return!1}return O!==c}var WV={__proto__:null,on:Xe,off:xt,stopPropagation:Cs,disableScrollPropagation:w1,disableClickPropagation:jf,preventDefault:Ln,stop:Ts,getPropagationPath:lj,getMousePosition:uj,getWheelDelta:cj,isExternalTarget:O1,addListener:Xe,removeListener:xt},fj=ne.extend({run:function(c,p,O,C){this.stop(),this._el=c,this._inProgress=!0,this._duration=O||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=Ps(c),this._offset=p.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=I(this._animate,this),this._step()},_step:function(c){var p=+new Date-this._startTime,O=this._duration*1e3;p<O?this._runFrame(this._easeOut(p/O),c):(this._runFrame(1),this._complete())},_runFrame:function(c,p){var O=this._startPos.add(this._offset.multiplyBy(c));p&&O._round(),on(this._el,O),this.fire("step")},_complete:function(){F(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),ut=ne.extend({options:{crs:oe,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(c,p){p=y(this,p),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),p.maxBounds&&this.setMaxBounds(p.maxBounds),p.zoom!==void 0&&(this._zoom=this._limitZoom(p.zoom)),p.center&&p.zoom!==void 0&&this.setView(ae(p.center),p.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Sf&&Be.any3d&&!Be.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Xe(this._proxy,ij,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(c,p,O){if(p=p===void 0?this._zoom:this._limitZoom(p),c=this._limitCenter(ae(c),p,this.options.maxBounds),O=O||{},this._stop(),this._loaded&&!O.reset&&O!==!0){O.animate!==void 0&&(O.zoom=i({animate:O.animate},O.zoom),O.pan=i({animate:O.animate,duration:O.duration},O.pan));var C=this._zoom!==p?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,p,O.zoom):this._tryAnimatedPan(c,O.pan);if(C)return clearTimeout(this._sizeTimer),this}return this._resetView(c,p,O.pan&&O.pan.noMoveStart),this},setZoom:function(c,p){return this._loaded?this.setView(this.getCenter(),c,{zoom:p}):(this._zoom=c,this)},zoomIn:function(c,p){return c=c||(Be.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,p)},zoomOut:function(c,p){return c=c||(Be.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,p)},setZoomAround:function(c,p,O){var C=this.getZoomScale(p),M=this.getSize().divideBy(2),G=c instanceof Z?c:this.latLngToContainerPoint(c),re=G.subtract(M).multiplyBy(1-1/C),ue=this.containerPointToLatLng(M.add(re));return this.setView(ue,p,{zoom:O})},_getBoundsCenterZoom:function(c,p){p=p||{},c=c.getBounds?c.getBounds():te(c);var O=B(p.paddingTopLeft||p.padding||[0,0]),C=B(p.paddingBottomRight||p.padding||[0,0]),M=this.getBoundsZoom(c,!1,O.add(C));if(M=typeof p.maxZoom=="number"?Math.min(p.maxZoom,M):M,M===1/0)return{center:c.getCenter(),zoom:M};var G=C.subtract(O).divideBy(2),re=this.project(c.getSouthWest(),M),ue=this.project(c.getNorthEast(),M),de=this.unproject(re.add(ue).divideBy(2).add(G),M);return{center:de,zoom:M}},fitBounds:function(c,p){if(c=te(c),!c.isValid())throw new Error("Bounds are not valid.");var O=this._getBoundsCenterZoom(c,p);return this.setView(O.center,O.zoom,p)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,p){return this.setView(c,this._zoom,{pan:p})},panBy:function(c,p){if(c=B(c).round(),p=p||{},!c.x&&!c.y)return this.fire("moveend");if(p.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new fj,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),p.noMoveStart||this.fire("movestart"),p.animate!==!1){Je(this._mapPane,"leaflet-pan-anim");var O=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,O,p.duration||.25,p.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,p,O){if(O=O||{},O.animate===!1||!Be.any3d)return this.setView(c,p,O);this._stop();var C=this.project(this.getCenter()),M=this.project(c),G=this.getSize(),re=this._zoom;c=ae(c),p=p===void 0?re:p;var ue=Math.max(G.x,G.y),de=ue*this.getZoomScale(re,p),_e=M.distanceTo(C)||1,Re=1.42,Ve=Re*Re;function tt(an){var Cm=an?-1:1,NW=an?de:ue,MW=de*de-ue*ue+Cm*Ve*Ve*_e*_e,RW=2*NW*Ve*_e,R1=MW/RW,Hj=Math.sqrt(R1*R1+1)-R1,LW=Hj<1e-9?-18:Math.log(Hj);return LW}function Qn(an){return(Math.exp(an)-Math.exp(-an))/2}function _n(an){return(Math.exp(an)+Math.exp(-an))/2}function Xr(an){return Qn(an)/_n(an)}var pr=tt(0);function Zl(an){return ue*(_n(pr)/_n(pr+Re*an))}function TW(an){return ue*(_n(pr)*Xr(pr+Re*an)-Qn(pr))/Ve}function jW(an){return 1-Math.pow(1-an,1.5)}var AW=Date.now(),Vj=(tt(1)-pr)/Re,kW=O.duration?1e3*O.duration:1e3*Vj*.8;function Wj(){var an=(Date.now()-AW)/kW,Cm=jW(an)*Vj;an<=1?(this._flyToFrame=I(Wj,this),this._move(this.unproject(C.add(M.subtract(C).multiplyBy(TW(Cm)/_e)),re),this.getScaleZoom(ue/Zl(Cm),re),{flyTo:!0})):this._move(c,p)._moveEnd(!0)}return this._moveStart(!0,O.noMoveStart),Wj.call(this),this},flyToBounds:function(c,p){var O=this._getBoundsCenterZoom(c,p);return this.flyTo(O.center,O.zoom,p)},setMaxBounds:function(c){return c=te(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var p=this.options.minZoom;return this.options.minZoom=c,this._loaded&&p!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var p=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&p!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,p){this._enforcingBounds=!0;var O=this.getCenter(),C=this._limitCenter(O,this._zoom,te(c));return O.equals(C)||this.panTo(C,p),this._enforcingBounds=!1,this},panInside:function(c,p){p=p||{};var O=B(p.paddingTopLeft||p.padding||[0,0]),C=B(p.paddingBottomRight||p.padding||[0,0]),M=this.project(this.getCenter()),G=this.project(c),re=this.getPixelBounds(),ue=ee([re.min.add(O),re.max.subtract(C)]),de=ue.getSize();if(!ue.contains(G)){this._enforcingBounds=!0;var _e=G.subtract(ue.getCenter()),Re=ue.extend(G).getSize().subtract(de);M.x+=_e.x<0?-Re.x:Re.x,M.y+=_e.y<0?-Re.y:Re.y,this.panTo(this.unproject(M),p),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=i({animate:!1,pan:!0},c===!0?{animate:!0}:c);var p=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var O=this.getSize(),C=p.divideBy(2).round(),M=O.divideBy(2).round(),G=C.subtract(M);return!G.x&&!G.y?this:(c.animate&&c.pan?this.panBy(G):(c.pan&&this._rawPanBy(G),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:p,newSize:O}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=i({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var p=a(this._handleGeolocationResponse,this),O=a(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(p,O,c):navigator.geolocation.getCurrentPosition(p,O,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var p=c.code,O=c.message||(p===1?"permission denied":p===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:p,message:"Geolocation error: "+O+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var p=c.coords.latitude,O=c.coords.longitude,C=new ie(p,O),M=C.toBounds(c.coords.accuracy*2),G=this._locateOptions;if(G.setView){var re=this.getBoundsZoom(M);this.setView(C,G.maxZoom?Math.min(re,G.maxZoom):re)}var ue={latlng:C,bounds:M,timestamp:c.timestamp};for(var de in c.coords)typeof c.coords[de]=="number"&&(ue[de]=c.coords[de]);this.fire("locationfound",ue)}},addHandler:function(c,p){if(!p)return this;var O=this[c]=new p(this);return this._handlers.push(O),this.options[c]&&O.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(),Bt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(F(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)Bt(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,p){var O="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),C=dt("div",O,p||this._mapPane);return c&&(this._panes[c]=C),C},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),p=this.unproject(c.getBottomLeft()),O=this.unproject(c.getTopRight());return new K(p,O)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,p,O){c=te(c),O=B(O||[0,0]);var C=this.getZoom()||0,M=this.getMinZoom(),G=this.getMaxZoom(),re=c.getNorthWest(),ue=c.getSouthEast(),de=this.getSize().subtract(O),_e=ee(this.project(ue,C),this.project(re,C)).getSize(),Re=Be.any3d?this.options.zoomSnap:1,Ve=de.x/_e.x,tt=de.y/_e.y,Qn=p?Math.max(Ve,tt):Math.min(Ve,tt);return C=this.getScaleZoom(Qn,C),Re&&(C=Math.round(C/(Re/100))*(Re/100),C=p?Math.ceil(C/Re)*Re:Math.floor(C/Re)*Re),Math.max(M,Math.min(G,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,p){var O=this._getTopLeftPoint(c,p);return new H(O,O.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,p){var O=this.options.crs;return p=p===void 0?this._zoom:p,O.scale(c)/O.scale(p)},getScaleZoom:function(c,p){var O=this.options.crs;p=p===void 0?this._zoom:p;var C=O.zoom(c*O.scale(p));return isNaN(C)?1/0:C},project:function(c,p){return p=p===void 0?this._zoom:p,this.options.crs.latLngToPoint(ae(c),p)},unproject:function(c,p){return p=p===void 0?this._zoom:p,this.options.crs.pointToLatLng(B(c),p)},layerPointToLatLng:function(c){var p=B(c).add(this.getPixelOrigin());return this.unproject(p)},latLngToLayerPoint:function(c){var p=this.project(ae(c))._round();return p._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(ae(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(te(c))},distance:function(c,p){return this.options.crs.distance(ae(c),ae(p))},containerPointToLayerPoint:function(c){return B(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return B(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var p=this.containerPointToLayerPoint(B(c));return this.layerPointToLatLng(p)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ae(c)))},mouseEventToContainerPoint:function(c){return uj(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var p=this._container=oj(c);if(p){if(p._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Xe(p,"scroll",this._onScroll,this),this._containerId=l(p)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&Be.any3d,Je(c,"leaflet-container"+(Be.touch?" leaflet-touch":"")+(Be.retina?" leaflet-retina":"")+(Be.ielt9?" leaflet-oldie":"")+(Be.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var p=Ef(c,"position");p!=="absolute"&&p!=="relative"&&p!=="fixed"&&p!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),on(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Je(c.markerPane,"leaflet-zoom-hide"),Je(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,p,O){on(this._mapPane,new Z(0,0));var C=!this._loaded;this._loaded=!0,p=this._limitZoom(p),this.fire("viewprereset");var M=this._zoom!==p;this._moveStart(M,O)._move(c,p)._moveEnd(M),this.fire("viewreset"),C&&this.fire("load")},_moveStart:function(c,p){return c&&this.fire("zoomstart"),p||this.fire("movestart"),this},_move:function(c,p,O,C){p===void 0&&(p=this._zoom);var M=this._zoom!==p;return this._zoom=p,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),C?O&&O.pinch&&this.fire("zoom",O):((M||O&&O.pinch)&&this.fire("zoom",O),this.fire("move",O)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return F(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){on(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[l(this._container)]=this;var p=c?xt:Xe;p(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&p(window,"resize",this._onResize,this),Be.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){F(this._resizeRequest),this._resizeRequest=I(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,p){for(var O=[],C,M=p==="mouseout"||p==="mouseover",G=c.target||c.srcElement,re=!1;G;){if(C=this._targets[l(G)],C&&(p==="click"||p==="preclick")&&this._draggableMoved(C)){re=!0;break}if(C&&C.listens(p,!0)&&(M&&!O1(G,c)||(O.push(C),M))||G===this._container)break;G=G.parentNode}return!O.length&&!re&&!M&&this.listens(p,!0)&&(O=[this]),O},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var p=c.target||c.srcElement;if(!(!this._loaded||p._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(p))){var O=c.type;O==="mousedown"&&g1(p),this._fireDOMEvent(c,O)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,p,O){if(c.type==="click"){var C=i({},c);C.type="preclick",this._fireDOMEvent(C,C.type,O)}var M=this._findEventTargets(c,p);if(O){for(var G=[],re=0;re<O.length;re++)O[re].listens(p,!0)&&G.push(O[re]);M=G.concat(M)}if(M.length){p==="contextmenu"&&Ln(c);var ue=M[0],de={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var _e=ue.getLatLng&&(!ue._radius||ue._radius<=10);de.containerPoint=_e?this.latLngToContainerPoint(ue.getLatLng()):this.mouseEventToContainerPoint(c),de.layerPoint=this.containerPointToLayerPoint(de.containerPoint),de.latlng=_e?ue.getLatLng():this.layerPointToLatLng(de.layerPoint)}for(re=0;re<M.length;re++)if(M[re].fire(p,de,!0),de.originalEvent._stopped||M[re].options.bubblingMouseEvents===!1&&S(this._mouseEvents,p)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,p=this._handlers.length;c<p;c++)this._handlers[c].disable()},whenReady:function(c,p){return this._loaded?c.call(p||this,{target:this}):this.on("load",c,p),this},_getMapPanePos:function(){return Ps(this._mapPane)||new Z(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,p){var O=c&&p!==void 0?this._getNewPixelOrigin(c,p):this.getPixelOrigin();return O.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,p){var O=this.getSize()._divideBy(2);return this.project(c,p)._subtract(O)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,p,O){var C=this._getNewPixelOrigin(O,p);return this.project(c,p)._subtract(C)},_latLngBoundsToNewLayerBounds:function(c,p,O){var C=this._getNewPixelOrigin(O,p);return ee([this.project(c.getSouthWest(),p)._subtract(C),this.project(c.getNorthWest(),p)._subtract(C),this.project(c.getSouthEast(),p)._subtract(C),this.project(c.getNorthEast(),p)._subtract(C)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,p,O){if(!O)return c;var C=this.project(c,p),M=this.getSize().divideBy(2),G=new H(C.subtract(M),C.add(M)),re=this._getBoundsOffset(G,O,p);return Math.abs(re.x)<=1&&Math.abs(re.y)<=1?c:this.unproject(C.add(re),p)},_limitOffset:function(c,p){if(!p)return c;var O=this.getPixelBounds(),C=new H(O.min.add(c),O.max.add(c));return c.add(this._getBoundsOffset(C,p))},_getBoundsOffset:function(c,p,O){var C=ee(this.project(p.getNorthEast(),O),this.project(p.getSouthWest(),O)),M=C.min.subtract(c.min),G=C.max.subtract(c.max),re=this._rebound(M.x,-G.x),ue=this._rebound(M.y,-G.y);return new Z(re,ue)},_rebound:function(c,p){return c+p>0?Math.round(c-p)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(p))},_limitZoom:function(c){var p=this.getMinZoom(),O=this.getMaxZoom(),C=Be.any3d?this.options.zoomSnap:1;return C&&(c=Math.round(c/C)*C),Math.max(p,Math.min(O,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,p){var O=this._getCenterOffset(c)._trunc();return(p&&p.animate)!==!0&&!this.getSize().contains(O)?!1:(this.panBy(O,p),!0)},_createAnimProxy:function(){var c=this._proxy=dt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(p){var O=c1,C=this._proxy.style[O];Es(this._proxy,this.project(p.center,p.zoom),this.getZoomScale(p.zoom,1)),C===this._proxy.style[O]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Bt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),p=this.getZoom();Es(this._proxy,this.project(c,p),this.getZoomScale(p,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,p,O){if(this._animatingZoom)return!0;if(O=O||{},!this._zoomAnimated||O.animate===!1||this._nothingToAnimate()||Math.abs(p-this._zoom)>this.options.zoomAnimationThreshold)return!1;var C=this.getZoomScale(p),M=this._getCenterOffset(c)._divideBy(1-1/C);return O.animate!==!0&&!this.getSize().contains(M)?!1:(I(function(){this._moveStart(!0,O.noMoveStart||!1)._animateZoom(c,p,!0)},this),!0)},_animateZoom:function(c,p,O,C){this._mapPane&&(O&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=p,Je(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:p,noUpdate:C}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Qt(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 HV(c,p){return new ut(c,p)}var Oi=W.extend({options:{position:"topright"},initialize:function(c){y(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var p=this._map;return p&&p.removeControl(this),this.options.position=c,p&&p.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var p=this._container=this.onAdd(c),O=this.getPosition(),C=c._controlCorners[O];return Je(p,"leaflet-control"),O.indexOf("bottom")!==-1?C.insertBefore(p,C.firstChild):C.appendChild(p),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Bt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),Af=function(c){return new Oi(c)};ut.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},p="leaflet-",O=this._controlContainer=dt("div",p+"control-container",this._container);function C(M,G){var re=p+M+" "+p+G;c[M+G]=dt("div",re,O)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)Bt(this._controlCorners[c]);Bt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var dj=Oi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,p,O,C){return O<C?-1:C<O?1:0}},initialize:function(c,p,O){y(this,O),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var C in c)this._addLayer(c[C],C);for(C in p)this._addLayer(p[C],C,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var p=0;p<this._layers.length;p++)this._layers[p].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return Oi.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,p){return this._addLayer(c,p),this._map?this._update():this},addOverlay:function(c,p){return this._addLayer(c,p,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var p=this._getLayer(l(c));return p&&this._layers.splice(this._layers.indexOf(p),1),this._map?this._update():this},expand:function(){Je(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(Je(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):Qt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Qt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",p=this._container=dt("div",c),O=this.options.collapsed;p.setAttribute("aria-haspopup",!0),jf(p),w1(p);var C=this._section=dt("section",c+"-list");O&&(this._map.on("click",this.collapse,this),Xe(p,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var M=this._layersLink=dt("a",c+"-toggle",p);M.href="#",M.title="Layers",M.setAttribute("role","button"),Xe(M,{keydown:function(G){G.keyCode===13&&this._expandSafely()},click:function(G){Ln(G),this._expandSafely()}},this),O||this.expand(),this._baseLayersList=dt("div",c+"-base",C),this._separator=dt("div",c+"-separator",C),this._overlaysList=dt("div",c+"-overlays",C),p.appendChild(C)},_getLayer:function(c){for(var p=0;p<this._layers.length;p++)if(this._layers[p]&&l(this._layers[p].layer)===c)return this._layers[p]},_addLayer:function(c,p,O){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:p,overlay:O}),this.options.sortLayers&&this._layers.sort(a(function(C,M){return this.options.sortFunction(C.layer,M.layer,C.name,M.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;fm(this._baseLayersList),fm(this._overlaysList),this._layerControlInputs=[];var c,p,O,C,M=0;for(O=0;O<this._layers.length;O++)C=this._layers[O],this._addItem(C),p=p||C.overlay,c=c||!C.overlay,M+=C.overlay?0:1;return this.options.hideSingleBase&&(c=c&&M>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=p&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var p=this._getLayer(l(c.target)),O=p.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;O&&this._map.fire(O,p)},_createRadioElement:function(c,p){var O='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(p?' checked="checked"':"")+"/>",C=document.createElement("div");return C.innerHTML=O,C.firstChild},_addItem:function(c){var p=document.createElement("label"),O=this._map.hasLayer(c.layer),C;c.overlay?(C=document.createElement("input"),C.type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=O):C=this._createRadioElement("leaflet-base-layers_"+l(this),O),this._layerControlInputs.push(C),C.layerId=l(c.layer),Xe(C,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+c.name;var G=document.createElement("span");p.appendChild(G),G.appendChild(C),G.appendChild(M);var re=c.overlay?this._overlaysList:this._baseLayersList;return re.appendChild(p),this._checkDisabledLayers(),p},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,p,O,C=[],M=[];this._handlingClick=!0;for(var G=c.length-1;G>=0;G--)p=c[G],O=this._getLayer(p.layerId).layer,p.checked?C.push(O):p.checked||M.push(O);for(G=0;G<M.length;G++)this._map.hasLayer(M[G])&&this._map.removeLayer(M[G]);for(G=0;G<C.length;G++)this._map.hasLayer(C[G])||this._map.addLayer(C[G]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,p,O,C=this._map.getZoom(),M=c.length-1;M>=0;M--)p=c[M],O=this._getLayer(p.layerId).layer,p.disabled=O.options.minZoom!==void 0&&C<O.options.minZoom||O.options.maxZoom!==void 0&&C>O.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,Xe(c,"click",Ln),this.expand();var p=this;setTimeout(function(){xt(c,"click",Ln),p._preventClick=!1})}}),GV=function(c,p,O){return new dj(c,p,O)},S1=Oi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(c){var p="leaflet-control-zoom",O=dt("div",p+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,p+"-in",O,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.zoomOutTitle,p+"-out",O,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),O},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,p,O,C,M){var G=dt("a",O,C);return G.innerHTML=c,G.href="#",G.title=p,G.setAttribute("role","button"),G.setAttribute("aria-label",p),jf(G),Xe(G,"click",Ts),Xe(G,"click",M,this),Xe(G,"click",this._refocusOnMap,this),G},_updateDisabled:function(){var c=this._map,p="leaflet-disabled";Qt(this._zoomInButton,p),Qt(this._zoomOutButton,p),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(Je(this._zoomOutButton,p),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(Je(this._zoomInButton,p),this._zoomInButton.setAttribute("aria-disabled","true"))}});ut.mergeOptions({zoomControl:!0}),ut.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new S1,this.addControl(this.zoomControl))});var qV=function(c){return new S1(c)},hj=Oi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var p="leaflet-control-scale",O=dt("div",p),C=this.options;return this._addScales(C,p+"-line",O),c.on(C.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),O},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,p,O){c.metric&&(this._mScale=dt("div",p,O)),c.imperial&&(this._iScale=dt("div",p,O))},_update:function(){var c=this._map,p=c.getSize().y/2,O=c.distance(c.containerPointToLatLng([0,p]),c.containerPointToLatLng([this.options.maxWidth,p]));this._updateScales(O)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var p=this._getRoundNum(c),O=p<1e3?p+" m":p/1e3+" km";this._updateScale(this._mScale,O,p/c)},_updateImperial:function(c){var p=c*3.2808399,O,C,M;p>5280?(O=p/5280,C=this._getRoundNum(O),this._updateScale(this._iScale,C+" mi",C/O)):(M=this._getRoundNum(p),this._updateScale(this._iScale,M+" ft",M/p))},_updateScale:function(c,p,O){c.style.width=Math.round(this.options.maxWidth*O)+"px",c.innerHTML=p},_getRoundNum:function(c){var p=Math.pow(10,(Math.floor(c)+"").length-1),O=c/p;return O=O>=10?10:O>=5?5:O>=3?3:O>=2?2:1,p*O}}),KV=function(c){return new hj(c)},YV='<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>',E1=Oi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Be.inlineSvg?YV+" ":"")+"Leaflet</a>"},initialize:function(c){y(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=dt("div","leaflet-control-attribution"),jf(this._container);for(var p in c._layers)c._layers[p].getAttribution&&this.addAttribution(c._layers[p].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var p in this._attributions)this._attributions[p]&&c.push(p);var O=[];this.options.prefix&&O.push(this.options.prefix),c.length&&O.push(c.join(", ")),this._container.innerHTML=O.join(' <span aria-hidden="true">|</span> ')}}});ut.mergeOptions({attributionControl:!0}),ut.addInitHook(function(){this.options.attributionControl&&new E1().addTo(this)});var ZV=function(c){return new E1(c)};Oi.Layers=dj,Oi.Zoom=S1,Oi.Scale=hj,Oi.Attribution=E1,Af.layers=GV,Af.zoom=qV,Af.scale=KV,Af.attribution=ZV;var Qi=W.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qi.addTo=function(c,p){return c.addHandler(p,this),this};var XV={Events:Q},pj=Be.touch?"touchstart mousedown":"mousedown",pa=ne.extend({options:{clickTolerance:3},initialize:function(c,p,O,C){y(this,C),this._element=c,this._dragStartTarget=p||c,this._preventOutline=O},enable:function(){this._enabled||(Xe(this._dragStartTarget,pj,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(pa._dragging===this&&this.finishDrag(!0),xt(this._dragStartTarget,pj,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!f1(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){pa._dragging===this&&this.finishDrag();return}if(!(pa._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(pa._dragging=this,this._preventOutline&&g1(this._element),p1(),Pf(),!this._moving)){this.fire("down");var p=c.touches?c.touches[0]:c,O=aj(this._element);this._startPoint=new Z(p.clientX,p.clientY),this._startPos=Ps(this._element),this._parentScale=y1(O);var C=c.type==="mousedown";Xe(document,C?"mousemove":"touchmove",this._onMove,this),Xe(document,C?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var p=c.touches&&c.touches.length===1?c.touches[0]:c,O=new Z(p.clientX,p.clientY)._subtract(this._startPoint);!O.x&&!O.y||Math.abs(O.x)+Math.abs(O.y)<this.options.clickTolerance||(O.x/=this._parentScale.x,O.y/=this._parentScale.y,Ln(c),this._moved||(this.fire("dragstart"),this._moved=!0,Je(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Je(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(O),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),on(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){Qt(document.body,"leaflet-dragging"),this._lastTarget&&(Qt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),xt(document,"mousemove touchmove",this._onMove,this),xt(document,"mouseup touchend touchcancel",this._onUp,this),m1(),Cf();var p=this._moved&&this._moving;this._moving=!1,pa._dragging=!1,p&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function mj(c,p,O){var C,M=[1,4,2,8],G,re,ue,de,_e,Re,Ve,tt;for(G=0,Re=c.length;G<Re;G++)c[G]._code=js(c[G],p);for(ue=0;ue<4;ue++){for(Ve=M[ue],C=[],G=0,Re=c.length,re=Re-1;G<Re;re=G++)de=c[G],_e=c[re],de._code&Ve?_e._code&Ve||(tt=vm(_e,de,Ve,p,O),tt._code=js(tt,p),C.push(tt)):(_e._code&Ve&&(tt=vm(_e,de,Ve,p,O),tt._code=js(tt,p),C.push(tt)),C.push(de));c=C}return c}function vj(c,p){var O,C,M,G,re,ue,de,_e,Re;if(!c||c.length===0)throw new Error("latlngs not passed");Zr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Ve=ae([0,0]),tt=te(c),Qn=tt.getNorthWest().distanceTo(tt.getSouthWest())*tt.getNorthEast().distanceTo(tt.getNorthWest());Qn<1700&&(Ve=P1(c));var _n=c.length,Xr=[];for(O=0;O<_n;O++){var pr=ae(c[O]);Xr.push(p.project(ae([pr.lat-Ve.lat,pr.lng-Ve.lng])))}for(ue=de=_e=0,O=0,C=_n-1;O<_n;C=O++)M=Xr[O],G=Xr[C],re=M.y*G.x-G.y*M.x,de+=(M.x+G.x)*re,_e+=(M.y+G.y)*re,ue+=re*3;ue===0?Re=Xr[0]:Re=[de/ue,_e/ue];var Zl=p.unproject(B(Re));return ae([Zl.lat+Ve.lat,Zl.lng+Ve.lng])}function P1(c){for(var p=0,O=0,C=0,M=0;M<c.length;M++){var G=ae(c[M]);p+=G.lat,O+=G.lng,C++}return ae([p/C,O/C])}var QV={__proto__:null,clipPolygon:mj,polygonCenter:vj,centroid:P1};function gj(c,p){if(!p||!c.length)return c.slice();var O=p*p;return c=tW(c,O),c=eW(c,O),c}function yj(c,p,O){return Math.sqrt(kf(c,p,O,!0))}function JV(c,p,O){return kf(c,p,O)}function eW(c,p){var O=c.length,C=typeof Uint8Array<"u"?Uint8Array:Array,M=new C(O);M[0]=M[O-1]=1,C1(c,M,p,0,O-1);var G,re=[];for(G=0;G<O;G++)M[G]&&re.push(c[G]);return re}function C1(c,p,O,C,M){var G=0,re,ue,de;for(ue=C+1;ue<=M-1;ue++)de=kf(c[ue],c[C],c[M],!0),de>G&&(re=ue,G=de);G>O&&(p[re]=1,C1(c,p,O,C,re),C1(c,p,O,re,M))}function tW(c,p){for(var O=[c[0]],C=1,M=0,G=c.length;C<G;C++)nW(c[C],c[M])>p&&(O.push(c[C]),M=C);return M<G-1&&O.push(c[G-1]),O}var bj;function _j(c,p,O,C,M){var G=C?bj:js(c,O),re=js(p,O),ue,de,_e;for(bj=re;;){if(!(G|re))return[c,p];if(G&re)return!1;ue=G||re,de=vm(c,p,ue,O,M),_e=js(de,O),ue===G?(c=de,G=_e):(p=de,re=_e)}}function vm(c,p,O,C,M){var G=p.x-c.x,re=p.y-c.y,ue=C.min,de=C.max,_e,Re;return O&8?(_e=c.x+G*(de.y-c.y)/re,Re=de.y):O&4?(_e=c.x+G*(ue.y-c.y)/re,Re=ue.y):O&2?(_e=de.x,Re=c.y+re*(de.x-c.x)/G):O&1&&(_e=ue.x,Re=c.y+re*(ue.x-c.x)/G),new Z(_e,Re,M)}function js(c,p){var O=0;return c.x<p.min.x?O|=1:c.x>p.max.x&&(O|=2),c.y<p.min.y?O|=4:c.y>p.max.y&&(O|=8),O}function nW(c,p){var O=p.x-c.x,C=p.y-c.y;return O*O+C*C}function kf(c,p,O,C){var M=p.x,G=p.y,re=O.x-M,ue=O.y-G,de=re*re+ue*ue,_e;return de>0&&(_e=((c.x-M)*re+(c.y-G)*ue)/de,_e>1?(M=O.x,G=O.y):_e>0&&(M+=re*_e,G+=ue*_e)),re=c.x-M,ue=c.y-G,C?re*re+ue*ue:new Z(M,G)}function Zr(c){return!w(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function xj(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Zr(c)}function wj(c,p){var O,C,M,G,re,ue,de,_e;if(!c||c.length===0)throw new Error("latlngs not passed");Zr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Re=ae([0,0]),Ve=te(c),tt=Ve.getNorthWest().distanceTo(Ve.getSouthWest())*Ve.getNorthEast().distanceTo(Ve.getNorthWest());tt<1700&&(Re=P1(c));var Qn=c.length,_n=[];for(O=0;O<Qn;O++){var Xr=ae(c[O]);_n.push(p.project(ae([Xr.lat-Re.lat,Xr.lng-Re.lng])))}for(O=0,C=0;O<Qn-1;O++)C+=_n[O].distanceTo(_n[O+1])/2;if(C===0)_e=_n[0];else for(O=0,G=0;O<Qn-1;O++)if(re=_n[O],ue=_n[O+1],M=re.distanceTo(ue),G+=M,G>C){de=(G-C)/M,_e=[ue.x-de*(ue.x-re.x),ue.y-de*(ue.y-re.y)];break}var pr=p.unproject(B(_e));return ae([pr.lat+Re.lat,pr.lng+Re.lng])}var rW={__proto__:null,simplify:gj,pointToSegmentDistance:yj,closestPointOnSegment:JV,clipSegment:_j,_getEdgeIntersection:vm,_getBitCode:js,_sqClosestPointOnSegment:kf,isFlat:Zr,_flat:xj,polylineCenter:wj},T1={project:function(c){return new Z(c.lng,c.lat)},unproject:function(c){return new ie(c.y,c.x)},bounds:new H([-180,-90],[180,90])},j1={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var p=Math.PI/180,O=this.R,C=c.lat*p,M=this.R_MINOR/O,G=Math.sqrt(1-M*M),re=G*Math.sin(C),ue=Math.tan(Math.PI/4-C/2)/Math.pow((1-re)/(1+re),G/2);return C=-O*Math.log(Math.max(ue,1e-10)),new Z(c.lng*p*O,C)},unproject:function(c){for(var p=180/Math.PI,O=this.R,C=this.R_MINOR/O,M=Math.sqrt(1-C*C),G=Math.exp(-c.y/O),re=Math.PI/2-2*Math.atan(G),ue=0,de=.1,_e;ue<15&&Math.abs(de)>1e-7;ue++)_e=M*Math.sin(re),_e=Math.pow((1-_e)/(1+_e),M/2),de=Math.PI/2-2*Math.atan(G*_e)-re,re+=de;return new ie(re*p,c.x*p/O)}},iW={__proto__:null,LonLat:T1,Mercator:j1,SphericalMercator:U},oW=i({},j,{code:"EPSG:3395",projection:j1,transformation:function(){var c=.5/(Math.PI*j1.R);return Y(c,.5,-c,.5)}()}),Oj=i({},j,{code:"EPSG:4326",projection:T1,transformation:Y(1/180,1,-1/180,.5)}),aW=i({},fe,{projection:T1,transformation:Y(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,p){var O=p.lng-c.lng,C=p.lat-c.lat;return Math.sqrt(O*O+C*C)},infinite:!0});fe.Earth=j,fe.EPSG3395=oW,fe.EPSG3857=oe,fe.EPSG900913=he,fe.EPSG4326=Oj,fe.Simple=aW;var Si=ne.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[l(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[l(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var p=c.target;if(p.hasLayer(this)){if(this._map=p,this._zoomAnimated=p._zoomAnimated,this.getEvents){var O=this.getEvents();p.on(O,this),this.once("remove",function(){p.off(O,this)},this)}this.onAdd(p),this.fire("add"),p.fire("layeradd",{layer:this})}}});ut.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var p=l(c);return this._layers[p]?this:(this._layers[p]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var p=l(c);return this._layers[p]?(this._loaded&&c.onRemove(this),delete this._layers[p],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return l(c)in this._layers},eachLayer:function(c,p){for(var O in this._layers)c.call(p,this._layers[O]);return this},_addLayers:function(c){c=c?w(c)?c:[c]:[];for(var p=0,O=c.length;p<O;p++)this.addLayer(c[p])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[l(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var p=l(c);this._zoomBoundLayers[p]&&(delete this._zoomBoundLayers[p],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,p=-1/0,O=this._getZoomSpan();for(var C in this._zoomBoundLayers){var M=this._zoomBoundLayers[C].options;c=M.minZoom===void 0?c:Math.min(c,M.minZoom),p=M.maxZoom===void 0?p:Math.max(p,M.maxZoom)}this._layersMaxZoom=p===-1/0?void 0:p,this._layersMinZoom=c===1/0?void 0:c,O!==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 Hl=Si.extend({initialize:function(c,p){y(this,p),this._layers={};var O,C;if(c)for(O=0,C=c.length;O<C;O++)this.addLayer(c[O])},addLayer:function(c){var p=this.getLayerId(c);return this._layers[p]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var p=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[p]&&this._map.removeLayer(this._layers[p]),delete this._layers[p],this},hasLayer:function(c){var p=typeof c=="number"?c:this.getLayerId(c);return p in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var p=Array.prototype.slice.call(arguments,1),O,C;for(O in this._layers)C=this._layers[O],C[c]&&C[c].apply(C,p);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,p){for(var O in this._layers)c.call(p,this._layers[O]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return l(c)}}),sW=function(c,p){return new Hl(c,p)},jo=Hl.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),Hl.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),Hl.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new K;for(var p in this._layers){var O=this._layers[p];c.extend(O.getBounds?O.getBounds():O.getLatLng())}return c}}),lW=function(c,p){return new jo(c,p)},Gl=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){y(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,p){var O=this._getIconUrl(c);if(!O){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var C=this._createImg(O,p&&p.tagName==="IMG"?p:null);return this._setIconStyles(C,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(C.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),C},_setIconStyles:function(c,p){var O=this.options,C=O[p+"Size"];typeof C=="number"&&(C=[C,C]);var M=B(C),G=B(p==="shadow"&&O.shadowAnchor||O.iconAnchor||M&&M.divideBy(2,!0));c.className="leaflet-marker-"+p+" "+(O.className||""),G&&(c.style.marginLeft=-G.x+"px",c.style.marginTop=-G.y+"px"),M&&(c.style.width=M.x+"px",c.style.height=M.y+"px")},_createImg:function(c,p){return p=p||document.createElement("img"),p.src=c,p},_getIconUrl:function(c){return Be.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function uW(c){return new Gl(c)}var Nf=Gl.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(c){return typeof Nf.imagePath!="string"&&(Nf.imagePath=this._detectIconPath()),(this.options.imagePath||Nf.imagePath)+Gl.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var p=function(O,C,M){var G=C.exec(O);return G&&G[M]};return c=p(c,/^url\((['"])?(.+)\1\)$/,2),c&&p(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=dt("div","leaflet-default-icon-path",document.body),p=Ef(c,"background-image")||Ef(c,"backgroundImage");if(document.body.removeChild(c),p=this._stripUrl(p),p)return p;var O=document.querySelector('link[href$="leaflet.css"]');return O?O.href.substring(0,O.href.length-11-1):""}}),Sj=Qi.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new pa(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Je(c,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Qt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var p=this._marker,O=p._map,C=this._marker.options.autoPanSpeed,M=this._marker.options.autoPanPadding,G=Ps(p._icon),re=O.getPixelBounds(),ue=O.getPixelOrigin(),de=ee(re.min._subtract(ue).add(M),re.max._subtract(ue).subtract(M));if(!de.contains(G)){var _e=B((Math.max(de.max.x,G.x)-de.max.x)/(re.max.x-de.max.x)-(Math.min(de.min.x,G.x)-de.min.x)/(re.min.x-de.min.x),(Math.max(de.max.y,G.y)-de.max.y)/(re.max.y-de.max.y)-(Math.min(de.min.y,G.y)-de.min.y)/(re.min.y-de.min.y)).multiplyBy(C);O.panBy(_e,{animate:!1}),this._draggable._newPos._add(_e),this._draggable._startPos._add(_e),on(p._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=I(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(F(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,c)))},_onDrag:function(c){var p=this._marker,O=p._shadow,C=Ps(p._icon),M=p._map.layerPointToLatLng(C);O&&on(O,C),p._latlng=M,c.latlng=M,c.oldLatLng=this._oldLatLng,p.fire("move",c).fire("drag",c)},_onDragEnd:function(c){F(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),gm=Si.extend({options:{icon:new Nf,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(c,p){y(this,p),this._latlng=ae(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(c){var p=this._latlng;return this._latlng=ae(c),this.update(),this.fire("move",{oldLatLng:p,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,p="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),O=c.icon.createIcon(this._icon),C=!1;O!==this._icon&&(this._icon&&this._removeIcon(),C=!0,c.title&&(O.title=c.title),O.tagName==="IMG"&&(O.alt=c.alt||"")),Je(O,p),c.keyboard&&(O.tabIndex="0",O.setAttribute("role","button")),this._icon=O,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Xe(O,"focus",this._panOnFocus,this);var M=c.icon.createShadow(this._shadow),G=!1;M!==this._shadow&&(this._removeShadow(),G=!0),M&&(Je(M,p),M.alt=""),this._shadow=M,c.opacity<1&&this._updateOpacity(),C&&this.getPane().appendChild(this._icon),this._initInteraction(),M&&G&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&xt(this._icon,"focus",this._panOnFocus,this),Bt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Bt(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&on(this._icon,c),this._shadow&&on(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var p=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(p)},_initInteraction:function(){if(this.options.interactive&&(Je(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Sj)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Sj(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&Yr(this._icon,c),this._shadow&&Yr(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var p=this.options.icon.options,O=p.iconSize?B(p.iconSize):B(0,0),C=p.iconAnchor?B(p.iconAnchor):B(0,0);c.panInside(this._latlng,{paddingTopLeft:C,paddingBottomRight:O.subtract(C)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function cW(c,p){return new gm(c,p)}var ma=Si.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(c){this._renderer=c.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(c){return y(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ym=ma.extend({options:{fill:!0,radius:10},initialize:function(c,p){y(this,p),this._latlng=ae(c),this._radius=this.options.radius},setLatLng:function(c){var p=this._latlng;return this._latlng=ae(c),this.redraw(),this.fire("move",{oldLatLng:p,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var p=c&&c.radius||this._radius;return ma.prototype.setStyle.call(this,c),this.setRadius(p),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,p=this._radiusY||c,O=this._clickTolerance(),C=[c+O,p+O];this._pxBounds=new H(this._point.subtract(C),this._point.add(C))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function fW(c,p){return new ym(c,p)}var A1=ym.extend({initialize:function(c,p,O){if(typeof p=="number"&&(p=i({},O,{radius:p})),y(this,p),this._latlng=ae(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new K(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:ma.prototype.setStyle,_project:function(){var c=this._latlng.lng,p=this._latlng.lat,O=this._map,C=O.options.crs;if(C.distance===j.distance){var M=Math.PI/180,G=this._mRadius/j.R/M,re=O.project([p+G,c]),ue=O.project([p-G,c]),de=re.add(ue).divideBy(2),_e=O.unproject(de).lat,Re=Math.acos((Math.cos(G*M)-Math.sin(p*M)*Math.sin(_e*M))/(Math.cos(p*M)*Math.cos(_e*M)))/M;(isNaN(Re)||Re===0)&&(Re=G/Math.cos(Math.PI/180*p)),this._point=de.subtract(O.getPixelOrigin()),this._radius=isNaN(Re)?0:de.x-O.project([_e,c-Re]).x,this._radiusY=de.y-re.y}else{var Ve=C.unproject(C.project(this._latlng).subtract([this._mRadius,0]));this._point=O.latLngToLayerPoint(this._latlng),this._radius=this._point.x-O.latLngToLayerPoint(Ve).x}this._updateBounds()}});function dW(c,p,O){return new A1(c,p,O)}var Ao=ma.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,p){y(this,p),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var p=1/0,O=null,C=kf,M,G,re=0,ue=this._parts.length;re<ue;re++)for(var de=this._parts[re],_e=1,Re=de.length;_e<Re;_e++){M=de[_e-1],G=de[_e];var Ve=C(c,M,G,!0);Ve<p&&(p=Ve,O=C(c,M,G))}return O&&(O.distance=Math.sqrt(p)),O},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wj(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,p){return p=p||this._defaultShape(),c=ae(c),p.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new K,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return Zr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var p=[],O=Zr(c),C=0,M=c.length;C<M;C++)O?(p[C]=ae(c[C]),this._bounds.extend(p[C])):p[C]=this._convertLatLngs(c[C]);return p},_project:function(){var c=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),p=new Z(c,c);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(p),this._rawPxBounds.max.add(p)]))},_projectLatlngs:function(c,p,O){var C=c[0]instanceof ie,M=c.length,G,re;if(C){for(re=[],G=0;G<M;G++)re[G]=this._map.latLngToLayerPoint(c[G]),O.extend(re[G]);p.push(re)}else for(G=0;G<M;G++)this._projectLatlngs(c[G],p,O)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var p=this._parts,O,C,M,G,re,ue,de;for(O=0,M=0,G=this._rings.length;O<G;O++)for(de=this._rings[O],C=0,re=de.length;C<re-1;C++)ue=_j(de[C],de[C+1],c,C,!0),ue&&(p[M]=p[M]||[],p[M].push(ue[0]),(ue[1]!==de[C+1]||C===re-2)&&(p[M].push(ue[1]),M++))}},_simplifyPoints:function(){for(var c=this._parts,p=this.options.smoothFactor,O=0,C=c.length;O<C;O++)c[O]=gj(c[O],p)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,p){var O,C,M,G,re,ue,de=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(O=0,G=this._parts.length;O<G;O++)for(ue=this._parts[O],C=0,re=ue.length,M=re-1;C<re;M=C++)if(!(!p&&C===0)&&yj(c,ue[M],ue[C])<=de)return!0;return!1}});function hW(c,p){return new Ao(c,p)}Ao._flat=xj;var ql=Ao.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 vj(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var p=Ao.prototype._convertLatLngs.call(this,c),O=p.length;return O>=2&&p[0]instanceof ie&&p[0].equals(p[O-1])&&p.pop(),p},_setLatLngs:function(c){Ao.prototype._setLatLngs.call(this,c),Zr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Zr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,p=this.options.weight,O=new Z(p,p);if(c=new H(c.min.subtract(O),c.max.add(O)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var C=0,M=this._rings.length,G;C<M;C++)G=mj(this._rings[C],c,!0),G.length&&this._parts.push(G)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var p=!1,O,C,M,G,re,ue,de,_e;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(G=0,de=this._parts.length;G<de;G++)for(O=this._parts[G],re=0,_e=O.length,ue=_e-1;re<_e;ue=re++)C=O[re],M=O[ue],C.y>c.y!=M.y>c.y&&c.x<(M.x-C.x)*(c.y-C.y)/(M.y-C.y)+C.x&&(p=!p);return p||Ao.prototype._containsPoint.call(this,c,!0)}});function pW(c,p){return new ql(c,p)}var ko=jo.extend({initialize:function(c,p){y(this,p),this._layers={},c&&this.addData(c)},addData:function(c){var p=w(c)?c:c.features,O,C,M;if(p){for(O=0,C=p.length;O<C;O++)M=p[O],(M.geometries||M.geometry||M.features||M.coordinates)&&this.addData(M);return this}var G=this.options;if(G.filter&&!G.filter(c))return this;var re=bm(c,G);return re?(re.feature=wm(c),re.defaultOptions=re.options,this.resetStyle(re),G.onEachFeature&&G.onEachFeature(c,re),this.addLayer(re)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=i({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(p){this._setLayerStyle(p,c)},this)},_setLayerStyle:function(c,p){c.setStyle&&(typeof p=="function"&&(p=p(c.feature)),c.setStyle(p))}});function bm(c,p){var O=c.type==="Feature"?c.geometry:c,C=O?O.coordinates:null,M=[],G=p&&p.pointToLayer,re=p&&p.coordsToLatLng||k1,ue,de,_e,Re;if(!C&&!O)return null;switch(O.type){case"Point":return ue=re(C),Ej(G,c,ue,p);case"MultiPoint":for(_e=0,Re=C.length;_e<Re;_e++)ue=re(C[_e]),M.push(Ej(G,c,ue,p));return new jo(M);case"LineString":case"MultiLineString":return de=_m(C,O.type==="LineString"?0:1,re),new Ao(de,p);case"Polygon":case"MultiPolygon":return de=_m(C,O.type==="Polygon"?1:2,re),new ql(de,p);case"GeometryCollection":for(_e=0,Re=O.geometries.length;_e<Re;_e++){var Ve=bm({geometry:O.geometries[_e],type:"Feature",properties:c.properties},p);Ve&&M.push(Ve)}return new jo(M);case"FeatureCollection":for(_e=0,Re=O.features.length;_e<Re;_e++){var tt=bm(O.features[_e],p);tt&&M.push(tt)}return new jo(M);default:throw new Error("Invalid GeoJSON object.")}}function Ej(c,p,O,C){return c?c(p,O):new gm(O,C&&C.markersInheritOptions&&C)}function k1(c){return new ie(c[1],c[0],c[2])}function _m(c,p,O){for(var C=[],M=0,G=c.length,re;M<G;M++)re=p?_m(c[M],p-1,O):(O||k1)(c[M]),C.push(re);return C}function N1(c,p){return c=ae(c),c.alt!==void 0?[h(c.lng,p),h(c.lat,p),h(c.alt,p)]:[h(c.lng,p),h(c.lat,p)]}function xm(c,p,O,C){for(var M=[],G=0,re=c.length;G<re;G++)M.push(p?xm(c[G],Zr(c[G])?0:p-1,O,C):N1(c[G],C));return!p&&O&&M.length>0&&M.push(M[0].slice()),M}function Kl(c,p){return c.feature?i({},c.feature,{geometry:p}):wm(p)}function wm(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var M1={toGeoJSON:function(c){return Kl(this,{type:"Point",coordinates:N1(this.getLatLng(),c)})}};gm.include(M1),A1.include(M1),ym.include(M1),Ao.include({toGeoJSON:function(c){var p=!Zr(this._latlngs),O=xm(this._latlngs,p?1:0,!1,c);return Kl(this,{type:(p?"Multi":"")+"LineString",coordinates:O})}}),ql.include({toGeoJSON:function(c){var p=!Zr(this._latlngs),O=p&&!Zr(this._latlngs[0]),C=xm(this._latlngs,O?2:p?1:0,!0,c);return p||(C=[C]),Kl(this,{type:(O?"Multi":"")+"Polygon",coordinates:C})}}),Hl.include({toMultiPoint:function(c){var p=[];return this.eachLayer(function(O){p.push(O.toGeoJSON(c).geometry.coordinates)}),Kl(this,{type:"MultiPoint",coordinates:p})},toGeoJSON:function(c){var p=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(p==="MultiPoint")return this.toMultiPoint(c);var O=p==="GeometryCollection",C=[];return this.eachLayer(function(M){if(M.toGeoJSON){var G=M.toGeoJSON(c);if(O)C.push(G.geometry);else{var re=wm(G);re.type==="FeatureCollection"?C.push.apply(C,re.features):C.push(re)}}}),O?Kl(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function Pj(c,p){return new ko(c,p)}var mW=Pj,Om=Si.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,p,O){this._url=c,this._bounds=te(p),y(this,O)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Je(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Bt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&Vl(this._image),this},bringToBack:function(){return this._map&&Wl(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=te(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",p=this._image=c?this._url:dt("img");if(Je(p,"leaflet-image-layer"),this._zoomAnimated&&Je(p,"leaflet-zoom-animated"),this.options.className&&Je(p,this.options.className),p.onselectstart=d,p.onmousemove=d,p.onload=a(this.fire,this,"load"),p.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=p.src;return}p.src=this._url,p.alt=this.options.alt},_animateZoom:function(c){var p=this._map.getZoomScale(c.zoom),O=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;Es(this._image,O,p)},_reset:function(){var c=this._image,p=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),O=p.getSize();on(c,p.min),c.style.width=O.x+"px",c.style.height=O.y+"px"},_updateOpacity:function(){Yr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),vW=function(c,p,O){return new Om(c,p,O)},Cj=Om.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",p=this._image=c?this._url:dt("video");if(Je(p,"leaflet-image-layer"),this._zoomAnimated&&Je(p,"leaflet-zoom-animated"),this.options.className&&Je(p,this.options.className),p.onselectstart=d,p.onmousemove=d,p.onloadeddata=a(this.fire,this,"load"),c){for(var O=p.getElementsByTagName("source"),C=[],M=0;M<O.length;M++)C.push(O[M].src);this._url=O.length>0?C:[p.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(p.style,"objectFit")&&(p.style.objectFit="fill"),p.autoplay=!!this.options.autoplay,p.loop=!!this.options.loop,p.muted=!!this.options.muted,p.playsInline=!!this.options.playsInline;for(var G=0;G<this._url.length;G++){var re=dt("source");re.src=this._url[G],p.appendChild(re)}}});function gW(c,p,O){return new Cj(c,p,O)}var Tj=Om.extend({_initImage:function(){var c=this._image=this._url;Je(c,"leaflet-image-layer"),this._zoomAnimated&&Je(c,"leaflet-zoom-animated"),this.options.className&&Je(c,this.options.className),c.onselectstart=d,c.onmousemove=d}});function yW(c,p,O){return new Tj(c,p,O)}var Ji=Si.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,p){c&&(c instanceof ie||w(c))?(this._latlng=ae(c),y(this,p)):(y(this,c),this._source=p),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&Yr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&Yr(this._container,1),this.bringToFront(),this.options.interactive&&(Je(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(Yr(this._container,0),this._removeTimeout=setTimeout(a(Bt,void 0,this._container),200)):Bt(this._container),this.options.interactive&&(Qt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=ae(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Vl(this._container),this},bringToBack:function(){return this._map&&Wl(this._container),this},_prepareOpen:function(c){var p=this._source;if(!p._map)return!1;if(p instanceof jo){p=null;var O=this._source._layers;for(var C in O)if(O[C]._map){p=O[C];break}if(!p)return!1;this._source=p}if(!c)if(p.getCenter)c=p.getCenter();else if(p.getLatLng)c=p.getLatLng();else if(p.getBounds)c=p.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,p=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof p=="string")c.innerHTML=p;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(p)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),p=B(this.options.offset),O=this._getAnchor();this._zoomAnimated?on(this._container,c.add(O)):p=p.add(c).add(O);var C=this._containerBottom=-p.y,M=this._containerLeft=-Math.round(this._containerWidth/2)+p.x;this._container.style.bottom=C+"px",this._container.style.left=M+"px"}},_getAnchor:function(){return[0,0]}});ut.include({_initOverlay:function(c,p,O,C){var M=p;return M instanceof c||(M=new c(C).setContent(p)),O&&M.setLatLng(O),M}}),Si.include({_initOverlay:function(c,p,O,C){var M=O;return M instanceof c?(y(M,C),M._source=this):(M=p&&!C?p:new c(C,this),M.setContent(O)),M}});var Sm=Ji.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,Ji.prototype.openOn.call(this,c)},onAdd:function(c){Ji.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ma||this._source.on("preclick",Cs))},onRemove:function(c){Ji.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ma||this._source.off("preclick",Cs))},getEvents:function(){var c=Ji.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",p=this._container=dt("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),O=this._wrapper=dt("div",c+"-content-wrapper",p);if(this._contentNode=dt("div",c+"-content",O),jf(p),w1(this._contentNode),Xe(p,"contextmenu",Cs),this._tipContainer=dt("div",c+"-tip-container",p),this._tip=dt("div",c+"-tip",this._tipContainer),this.options.closeButton){var C=this._closeButton=dt("a",c+"-close-button",p);C.setAttribute("role","button"),C.setAttribute("aria-label","Close popup"),C.href="#close",C.innerHTML='<span aria-hidden="true">×</span>',Xe(C,"click",function(M){Ln(M),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,p=c.style;p.width="",p.whiteSpace="nowrap";var O=c.offsetWidth;O=Math.min(O,this.options.maxWidth),O=Math.max(O,this.options.minWidth),p.width=O+1+"px",p.whiteSpace="",p.height="";var C=c.offsetHeight,M=this.options.maxHeight,G="leaflet-popup-scrolled";M&&C>M?(p.height=M+"px",Je(c,G)):Qt(c,G),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var p=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),O=this._getAnchor();on(this._container,p.add(O))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,p=parseInt(Ef(this._container,"marginBottom"),10)||0,O=this._container.offsetHeight+p,C=this._containerWidth,M=new Z(this._containerLeft,-O-this._containerBottom);M._add(Ps(this._container));var G=c.layerPointToContainerPoint(M),re=B(this.options.autoPanPadding),ue=B(this.options.autoPanPaddingTopLeft||re),de=B(this.options.autoPanPaddingBottomRight||re),_e=c.getSize(),Re=0,Ve=0;G.x+C+de.x>_e.x&&(Re=G.x+C-_e.x+de.x),G.x-Re-ue.x<0&&(Re=G.x-ue.x),G.y+O+de.y>_e.y&&(Ve=G.y+O-_e.y+de.y),G.y-Ve-ue.y<0&&(Ve=G.y-ue.y),(Re||Ve)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Re,Ve]))}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),bW=function(c,p){return new Sm(c,p)};ut.mergeOptions({closePopupOnClick:!0}),ut.include({openPopup:function(c,p,O){return this._initOverlay(Sm,c,p,O).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),Si.include({bindPopup:function(c,p){return this._popup=this._initOverlay(Sm,this._popup,c,p),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof jo||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){Ts(c);var p=c.layer||c.target;if(this._popup._source===p&&!(p instanceof ma)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=p,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var Em=Ji.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){Ji.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){Ji.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=Ji.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",p=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=dt("div",p),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var p,O,C=this._map,M=this._container,G=C.latLngToContainerPoint(C.getCenter()),re=C.layerPointToContainerPoint(c),ue=this.options.direction,de=M.offsetWidth,_e=M.offsetHeight,Re=B(this.options.offset),Ve=this._getAnchor();ue==="top"?(p=de/2,O=_e):ue==="bottom"?(p=de/2,O=0):ue==="center"?(p=de/2,O=_e/2):ue==="right"?(p=0,O=_e/2):ue==="left"?(p=de,O=_e/2):re.x<G.x?(ue="right",p=0,O=_e/2):(ue="left",p=de+(Re.x+Ve.x)*2,O=_e/2),c=c.subtract(B(p,O,!0)).add(Re).add(Ve),Qt(M,"leaflet-tooltip-right"),Qt(M,"leaflet-tooltip-left"),Qt(M,"leaflet-tooltip-top"),Qt(M,"leaflet-tooltip-bottom"),Je(M,"leaflet-tooltip-"+ue),on(M,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&Yr(this._container,c)},_animateZoom:function(c){var p=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(p)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),_W=function(c,p){return new Em(c,p)};ut.include({openTooltip:function(c,p,O){return this._initOverlay(Em,c,p,O).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),Si.include({bindTooltip:function(c,p){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Em,this._tooltip,c,p),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(c){if(!(!c&&this._tooltipHandlersAdded)){var p=c?"off":"on",O={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?O.add=this._openTooltip:(O.mouseover=this._openTooltip,O.mouseout=this.closeTooltip,O.click=this._openTooltip,this._map?this._addFocusListeners():O.add=this._addFocusListeners),this._tooltip.options.sticky&&(O.mousemove=this._moveTooltip),this[p](O),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof jo||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var p=typeof c.getElement=="function"&&c.getElement();p&&(Xe(p,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),Xe(p,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var p=typeof c.getElement=="function"&&c.getElement();p&&p.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var p=this;this._map.once("moveend",function(){p._openOnceFlag=!1,p._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var p=c.latlng,O,C;this._tooltip.options.sticky&&c.originalEvent&&(O=this._map.mouseEventToContainerPoint(c.originalEvent),C=this._map.containerPointToLayerPoint(O),p=this._map.layerPointToLatLng(C)),this._tooltip.setLatLng(p)}});var jj=Gl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var p=c&&c.tagName==="DIV"?c:document.createElement("div"),O=this.options;if(O.html instanceof Element?(fm(p),p.appendChild(O.html)):p.innerHTML=O.html!==!1?O.html:"",O.bgPos){var C=B(O.bgPos);p.style.backgroundPosition=-C.x+"px "+-C.y+"px"}return this._setIconStyles(p,"icon"),p},createShadow:function(){return null}});function xW(c){return new jj(c)}Gl.Default=Nf;var Mf=Si.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Be.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(c){y(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),Bt(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Vl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Wl(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof Z?c:new Z(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var p=this.getPane().children,O=-c(-1/0,1/0),C=0,M=p.length,G;C<M;C++)G=p[C].style.zIndex,p[C]!==this._container&&G&&(O=c(O,+G));isFinite(O)&&(this.options.zIndex=O+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Be.ielt9){Yr(this._container,this.options.opacity);var c=+new Date,p=!1,O=!1;for(var C in this._tiles){var M=this._tiles[C];if(!(!M.current||!M.loaded)){var G=Math.min(1,(c-M.loaded)/200);Yr(M.el,G),G<1?p=!0:(M.active?O=!0:this._onOpaqueTile(M),M.active=!0)}}O&&!this._noPrune&&this._pruneTiles(),p&&(F(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=dt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,p=this.options.maxZoom;if(c!==void 0){for(var O in this._levels)O=Number(O),this._levels[O].el.children.length||O===c?(this._levels[O].el.style.zIndex=p-Math.abs(c-O),this._onUpdateLevel(O)):(Bt(this._levels[O].el),this._removeTilesAtZoom(O),this._onRemoveLevel(O),delete this._levels[O]);var C=this._levels[c],M=this._map;return C||(C=this._levels[c]={},C.el=dt("div","leaflet-tile-container leaflet-zoom-animated",this._container),C.el.style.zIndex=p,C.origin=M.project(M.unproject(M.getPixelOrigin()),c).round(),C.zoom=c,this._setZoomTransform(C,M.getCenter(),M.getZoom()),d(C.el.offsetWidth),this._onCreateLevel(C)),this._level=C,C}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var c,p,O=this._map.getZoom();if(O>this.options.maxZoom||O<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)p=this._tiles[c],p.retain=p.current;for(c in this._tiles)if(p=this._tiles[c],p.current&&!p.active){var C=p.coords;this._retainParent(C.x,C.y,C.z,C.z-5)||this._retainChildren(C.x,C.y,C.z,C.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var p in this._tiles)this._tiles[p].coords.z===c&&this._removeTile(p)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)Bt(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,p,O,C){var M=Math.floor(c/2),G=Math.floor(p/2),re=O-1,ue=new Z(+M,+G);ue.z=+re;var de=this._tileCoordsToKey(ue),_e=this._tiles[de];return _e&&_e.active?(_e.retain=!0,!0):(_e&&_e.loaded&&(_e.retain=!0),re>C?this._retainParent(M,G,re,C):!1)},_retainChildren:function(c,p,O,C){for(var M=2*c;M<2*c+2;M++)for(var G=2*p;G<2*p+2;G++){var re=new Z(M,G);re.z=O+1;var ue=this._tileCoordsToKey(re),de=this._tiles[ue];if(de&&de.active){de.retain=!0;continue}else de&&de.loaded&&(de.retain=!0);O+1<C&&this._retainChildren(M,G,O+1,C)}},_resetView:function(c){var p=c&&(c.pinch||c.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),p,p)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var p=this.options;return p.minNativeZoom!==void 0&&c<p.minNativeZoom?p.minNativeZoom:p.maxNativeZoom!==void 0&&p.maxNativeZoom<c?p.maxNativeZoom:c},_setView:function(c,p,O,C){var M=Math.round(p);this.options.maxZoom!==void 0&&M>this.options.maxZoom||this.options.minZoom!==void 0&&M<this.options.minZoom?M=void 0:M=this._clampZoom(M);var G=this.options.updateWhenZooming&&M!==this._tileZoom;(!C||G)&&(this._tileZoom=M,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),M!==void 0&&this._update(c),O||this._pruneTiles(),this._noPrune=!!O),this._setZoomTransforms(c,p)},_setZoomTransforms:function(c,p){for(var O in this._levels)this._setZoomTransform(this._levels[O],c,p)},_setZoomTransform:function(c,p,O){var C=this._map.getZoomScale(O,c.zoom),M=c.origin.multiplyBy(C).subtract(this._map._getNewPixelOrigin(p,O)).round();Be.any3d?Es(c.el,M,C):on(c.el,M)},_resetGrid:function(){var c=this._map,p=c.options.crs,O=this._tileSize=this.getTileSize(),C=this._tileZoom,M=this._map.getPixelWorldBounds(this._tileZoom);M&&(this._globalTileRange=this._pxBoundsToTileRange(M)),this._wrapX=p.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,p.wrapLng[0]],C).x/O.x),Math.ceil(c.project([0,p.wrapLng[1]],C).x/O.y)],this._wrapY=p.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([p.wrapLat[0],0],C).y/O.x),Math.ceil(c.project([p.wrapLat[1],0],C).y/O.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var p=this._map,O=p._animatingZoom?Math.max(p._animateToZoom,p.getZoom()):p.getZoom(),C=p.getZoomScale(O,this._tileZoom),M=p.project(c,this._tileZoom).floor(),G=p.getSize().divideBy(C*2);return new H(M.subtract(G),M.add(G))},_update:function(c){var p=this._map;if(p){var O=this._clampZoom(p.getZoom());if(c===void 0&&(c=p.getCenter()),this._tileZoom!==void 0){var C=this._getTiledPixelBounds(c),M=this._pxBoundsToTileRange(C),G=M.getCenter(),re=[],ue=this.options.keepBuffer,de=new H(M.getBottomLeft().subtract([ue,-ue]),M.getTopRight().add([ue,-ue]));if(!(isFinite(M.min.x)&&isFinite(M.min.y)&&isFinite(M.max.x)&&isFinite(M.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var _e in this._tiles){var Re=this._tiles[_e].coords;(Re.z!==this._tileZoom||!de.contains(new Z(Re.x,Re.y)))&&(this._tiles[_e].current=!1)}if(Math.abs(O-this._tileZoom)>1){this._setView(c,O);return}for(var Ve=M.min.y;Ve<=M.max.y;Ve++)for(var tt=M.min.x;tt<=M.max.x;tt++){var Qn=new Z(tt,Ve);if(Qn.z=this._tileZoom,!!this._isValidTile(Qn)){var _n=this._tiles[this._tileCoordsToKey(Qn)];_n?_n.current=!0:re.push(Qn)}}if(re.sort(function(pr,Zl){return pr.distanceTo(G)-Zl.distanceTo(G)}),re.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Xr=document.createDocumentFragment();for(tt=0;tt<re.length;tt++)this._addTile(re[tt],Xr);this._level.el.appendChild(Xr)}}}},_isValidTile:function(c){var p=this._map.options.crs;if(!p.infinite){var O=this._globalTileRange;if(!p.wrapLng&&(c.x<O.min.x||c.x>O.max.x)||!p.wrapLat&&(c.y<O.min.y||c.y>O.max.y))return!1}if(!this.options.bounds)return!0;var C=this._tileCoordsToBounds(c);return te(this.options.bounds).overlaps(C)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var p=this._map,O=this.getTileSize(),C=c.scaleBy(O),M=C.add(O),G=p.unproject(C,c.z),re=p.unproject(M,c.z);return[G,re]},_tileCoordsToBounds:function(c){var p=this._tileCoordsToNwSe(c),O=new K(p[0],p[1]);return this.options.noWrap||(O=this._map.wrapLatLngBounds(O)),O},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var p=c.split(":"),O=new Z(+p[0],+p[1]);return O.z=+p[2],O},_removeTile:function(c){var p=this._tiles[c];p&&(Bt(p.el),delete this._tiles[c],this.fire("tileunload",{tile:p.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){Je(c,"leaflet-tile");var p=this.getTileSize();c.style.width=p.x+"px",c.style.height=p.y+"px",c.onselectstart=d,c.onmousemove=d,Be.ielt9&&this.options.opacity<1&&Yr(c,this.options.opacity)},_addTile:function(c,p){var O=this._getTilePos(c),C=this._tileCoordsToKey(c),M=this.createTile(this._wrapCoords(c),a(this._tileReady,this,c));this._initTile(M),this.createTile.length<2&&I(a(this._tileReady,this,c,null,M)),on(M,O),this._tiles[C]={el:M,coords:c,current:!0},p.appendChild(M),this.fire("tileloadstart",{tile:M,coords:c})},_tileReady:function(c,p,O){p&&this.fire("tileerror",{error:p,tile:O,coords:c});var C=this._tileCoordsToKey(c);O=this._tiles[C],O&&(O.loaded=+new Date,this._map._fadeAnimated?(Yr(O.el,0),F(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(O.active=!0,this._pruneTiles()),p||(Je(O.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:O.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Be.ielt9||!this._map._fadeAnimated?I(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var p=new Z(this._wrapX?f(c.x,this._wrapX):c.x,this._wrapY?f(c.y,this._wrapY):c.y);return p.z=c.z,p},_pxBoundsToTileRange:function(c){var p=this.getTileSize();return new H(c.min.unscaleBy(p).floor(),c.max.unscaleBy(p).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function wW(c){return new Mf(c)}var Yl=Mf.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,p){this._url=c,p=y(this,p),p.detectRetina&&Be.retina&&p.maxZoom>0?(p.tileSize=Math.floor(p.tileSize/2),p.zoomReverse?(p.zoomOffset--,p.minZoom=Math.min(p.maxZoom,p.minZoom+1)):(p.zoomOffset++,p.maxZoom=Math.max(p.minZoom,p.maxZoom-1)),p.minZoom=Math.max(0,p.minZoom)):p.zoomReverse?p.minZoom=Math.min(p.maxZoom,p.minZoom):p.maxZoom=Math.max(p.minZoom,p.maxZoom),typeof p.subdomains=="string"&&(p.subdomains=p.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,p){return this._url===c&&p===void 0&&(p=!0),this._url=c,p||this.redraw(),this},createTile:function(c,p){var O=document.createElement("img");return Xe(O,"load",a(this._tileOnLoad,this,p,O)),Xe(O,"error",a(this._tileOnError,this,p,O)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(O.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(O.referrerPolicy=this.options.referrerPolicy),O.alt="",O.src=this.getTileUrl(c),O},getTileUrl:function(c){var p={r:Be.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var O=this._globalTileRange.max.y-c.y;this.options.tms&&(p.y=O),p["-y"]=O}return b(this._url,i(p,this.options))},_tileOnLoad:function(c,p){Be.ielt9?setTimeout(a(c,this,null,p),0):c(null,p)},_tileOnError:function(c,p,O){var C=this.options.errorTileUrl;C&&p.getAttribute("src")!==C&&(p.src=C),c(O,p)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,p=this.options.maxZoom,O=this.options.zoomReverse,C=this.options.zoomOffset;return O&&(c=p-c),c+C},_getSubdomain:function(c){var p=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[p]},_abortLoading:function(){var c,p;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(p=this._tiles[c].el,p.onload=d,p.onerror=d,!p.complete)){p.src=E;var O=this._tiles[c].coords;Bt(p),delete this._tiles[c],this.fire("tileabort",{tile:p,coords:O})}},_removeTile:function(c){var p=this._tiles[c];if(p)return p.el.setAttribute("src",E),Mf.prototype._removeTile.call(this,c)},_tileReady:function(c,p,O){if(!(!this._map||O&&O.getAttribute("src")===E))return Mf.prototype._tileReady.call(this,c,p,O)}});function Aj(c,p){return new Yl(c,p)}var kj=Yl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,p){this._url=c;var O=i({},this.defaultWmsParams);for(var C in p)C in this.options||(O[C]=p[C]);p=y(this,p);var M=p.detectRetina&&Be.retina?2:1,G=this.getTileSize();O.width=G.x*M,O.height=G.y*M,this.wmsParams=O},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var p=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[p]=this._crs.code,Yl.prototype.onAdd.call(this,c)},getTileUrl:function(c){var p=this._tileCoordsToNwSe(c),O=this._crs,C=ee(O.project(p[0]),O.project(p[1])),M=C.min,G=C.max,re=(this._wmsVersion>=1.3&&this._crs===Oj?[M.y,M.x,G.y,G.x]:[M.x,M.y,G.x,G.y]).join(","),ue=Yl.prototype.getTileUrl.call(this,c);return ue+x(this.wmsParams,ue,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+re},setParams:function(c,p){return i(this.wmsParams,c),p||this.redraw(),this}});function OW(c,p){return new kj(c,p)}Yl.WMS=kj,Aj.wms=OW;var No=Si.extend({options:{padding:.1},initialize:function(c){y(this,c),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Je(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,p){var O=this._map.getZoomScale(p,this._zoom),C=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,p),G=C.multiplyBy(-O).add(M).subtract(this._map._getNewPixelOrigin(c,p));Be.any3d?Es(this._container,G,O):on(this._container,G)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,p=this._map.getSize(),O=this._map.containerPointToLayerPoint(p.multiplyBy(-c)).round();this._bounds=new H(O,O.add(p.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Nj=No.extend({options:{tolerance:0},getEvents:function(){var c=No.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){No.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");Xe(c,"mousemove",this._onMouseMove,this),Xe(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Xe(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){F(this._redrawRequest),delete this._ctx,Bt(this._container),xt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var p in this._layers)c=this._layers[p],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){No.prototype._update.call(this);var c=this._bounds,p=this._container,O=c.getSize(),C=Be.retina?2:1;on(p,c.min),p.width=C*O.x,p.height=C*O.y,p.style.width=O.x+"px",p.style.height=O.y+"px",Be.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){No.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[l(c)]=c;var p=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=p),this._drawLast=p,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var p=c._order,O=p.next,C=p.prev;O?O.prev=C:this._drawLast=C,C?C.next=O:this._drawFirst=O,delete c._order,delete this._layers[l(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var p=c.options.dashArray.split(/[, ]+/),O=[],C,M;for(M=0;M<p.length;M++){if(C=Number(p[M]),isNaN(C))return;O.push(C)}c.options._dashArray=O}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||I(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var p=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(c._pxBounds.min.subtract([p,p])),this._redrawBounds.extend(c._pxBounds.max.add([p,p]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var c=this._redrawBounds;if(c){var p=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,p.x,p.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var c,p=this._redrawBounds;if(this._ctx.save(),p){var O=p.getSize();this._ctx.beginPath(),this._ctx.rect(p.min.x,p.min.y,O.x,O.y),this._ctx.clip()}this._drawing=!0;for(var C=this._drawFirst;C;C=C.next)c=C.layer,(!p||c._pxBounds&&c._pxBounds.intersects(p))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,p){if(this._drawing){var O,C,M,G,re=c._parts,ue=re.length,de=this._ctx;if(ue){for(de.beginPath(),O=0;O<ue;O++){for(C=0,M=re[O].length;C<M;C++)G=re[O][C],de[C?"lineTo":"moveTo"](G.x,G.y);p&&de.closePath()}this._fillStroke(de,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var p=c._point,O=this._ctx,C=Math.max(Math.round(c._radius),1),M=(Math.max(Math.round(c._radiusY),1)||C)/C;M!==1&&(O.save(),O.scale(1,M)),O.beginPath(),O.arc(p.x,p.y/M,C,0,Math.PI*2,!1),M!==1&&O.restore(),this._fillStroke(O,c)}},_fillStroke:function(c,p){var O=p.options;O.fill&&(c.globalAlpha=O.fillOpacity,c.fillStyle=O.fillColor||O.color,c.fill(O.fillRule||"evenodd")),O.stroke&&O.weight!==0&&(c.setLineDash&&c.setLineDash(p.options&&p.options._dashArray||[]),c.globalAlpha=O.opacity,c.lineWidth=O.weight,c.strokeStyle=O.color,c.lineCap=O.lineCap,c.lineJoin=O.lineJoin,c.stroke())},_onClick:function(c){for(var p=this._map.mouseEventToLayerPoint(c),O,C,M=this._drawFirst;M;M=M.next)O=M.layer,O.options.interactive&&O._containsPoint(p)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(O))&&(C=O);this._fireEvent(C?[C]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var p=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,p)}},_handleMouseOut:function(c){var p=this._hoveredLayer;p&&(Qt(this._container,"leaflet-interactive"),this._fireEvent([p],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,p){if(!this._mouseHoverThrottled){for(var O,C,M=this._drawFirst;M;M=M.next)O=M.layer,O.options.interactive&&O._containsPoint(p)&&(C=O);C!==this._hoveredLayer&&(this._handleMouseOut(c),C&&(Je(this._container,"leaflet-interactive"),this._fireEvent([C],c,"mouseover"),this._hoveredLayer=C)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,p,O){this._map._fireDOMEvent(p,O||p.type,c)},_bringToFront:function(c){var p=c._order;if(p){var O=p.next,C=p.prev;if(O)O.prev=C;else return;C?C.next=O:O&&(this._drawFirst=O),p.prev=this._drawLast,this._drawLast.next=p,p.next=null,this._drawLast=p,this._requestRedraw(c)}},_bringToBack:function(c){var p=c._order;if(p){var O=p.next,C=p.prev;if(C)C.next=O;else return;O?O.prev=C:C&&(this._drawLast=C),p.prev=null,p.next=this._drawFirst,this._drawFirst.prev=p,this._drawFirst=p,this._requestRedraw(c)}}});function Mj(c){return Be.canvas?new Nj(c):null}var Rf=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),SW={_initContainer:function(){this._container=dt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(No.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var p=c._container=Rf("shape");Je(p,"leaflet-vml-shape "+(this.options.className||"")),p.coordsize="1 1",c._path=Rf("path"),p.appendChild(c._path),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){var p=c._container;this._container.appendChild(p),c.options.interactive&&c.addInteractiveTarget(p)},_removePath:function(c){var p=c._container;Bt(p),c.removeInteractiveTarget(p),delete this._layers[l(c)]},_updateStyle:function(c){var p=c._stroke,O=c._fill,C=c.options,M=c._container;M.stroked=!!C.stroke,M.filled=!!C.fill,C.stroke?(p||(p=c._stroke=Rf("stroke")),M.appendChild(p),p.weight=C.weight+"px",p.color=C.color,p.opacity=C.opacity,C.dashArray?p.dashStyle=w(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):p.dashStyle="",p.endcap=C.lineCap.replace("butt","flat"),p.joinstyle=C.lineJoin):p&&(M.removeChild(p),c._stroke=null),C.fill?(O||(O=c._fill=Rf("fill")),M.appendChild(O),O.color=C.fillColor||C.color,O.opacity=C.fillOpacity):O&&(M.removeChild(O),c._fill=null)},_updateCircle:function(c){var p=c._point.round(),O=Math.round(c._radius),C=Math.round(c._radiusY||O);this._setPath(c,c._empty()?"M0 0":"AL "+p.x+","+p.y+" "+O+","+C+" 0,"+65535*360)},_setPath:function(c,p){c._path.v=p},_bringToFront:function(c){Vl(c._container)},_bringToBack:function(c){Wl(c._container)}},Pm=Be.vml?Rf:Se,Lf=No.extend({_initContainer:function(){this._container=Pm("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Pm("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Bt(this._container),xt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){No.prototype._update.call(this);var c=this._bounds,p=c.getSize(),O=this._container;(!this._svgSize||!this._svgSize.equals(p))&&(this._svgSize=p,O.setAttribute("width",p.x),O.setAttribute("height",p.y)),on(O,c.min),O.setAttribute("viewBox",[c.min.x,c.min.y,p.x,p.y].join(" ")),this.fire("update")}},_initPath:function(c){var p=c._path=Pm("path");c.options.className&&Je(p,c.options.className),c.options.interactive&&Je(p,"leaflet-interactive"),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){Bt(c._path),c.removeInteractiveTarget(c._path),delete this._layers[l(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var p=c._path,O=c.options;p&&(O.stroke?(p.setAttribute("stroke",O.color),p.setAttribute("stroke-opacity",O.opacity),p.setAttribute("stroke-width",O.weight),p.setAttribute("stroke-linecap",O.lineCap),p.setAttribute("stroke-linejoin",O.lineJoin),O.dashArray?p.setAttribute("stroke-dasharray",O.dashArray):p.removeAttribute("stroke-dasharray"),O.dashOffset?p.setAttribute("stroke-dashoffset",O.dashOffset):p.removeAttribute("stroke-dashoffset")):p.setAttribute("stroke","none"),O.fill?(p.setAttribute("fill",O.fillColor||O.color),p.setAttribute("fill-opacity",O.fillOpacity),p.setAttribute("fill-rule",O.fillRule||"evenodd")):p.setAttribute("fill","none"))},_updatePoly:function(c,p){this._setPath(c,se(c._parts,p))},_updateCircle:function(c){var p=c._point,O=Math.max(Math.round(c._radius),1),C=Math.max(Math.round(c._radiusY),1)||O,M="a"+O+","+C+" 0 1,0 ",G=c._empty()?"M0 0":"M"+(p.x-O)+","+p.y+M+O*2+",0 "+M+-O*2+",0 ";this._setPath(c,G)},_setPath:function(c,p){c._path.setAttribute("d",p)},_bringToFront:function(c){Vl(c._path)},_bringToBack:function(c){Wl(c._path)}});Be.vml&&Lf.include(SW);function Rj(c){return Be.svg||Be.vml?new Lf(c):null}ut.include({getRenderer:function(c){var p=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return p||(p=this._renderer=this._createRenderer()),this.hasLayer(p)||this.addLayer(p),p},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var p=this._paneRenderers[c];return p===void 0&&(p=this._createRenderer({pane:c}),this._paneRenderers[c]=p),p},_createRenderer:function(c){return this.options.preferCanvas&&Mj(c)||Rj(c)}});var Lj=ql.extend({initialize:function(c,p){ql.prototype.initialize.call(this,this._boundsToLatLngs(c),p)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=te(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function EW(c,p){return new Lj(c,p)}Lf.create=Pm,Lf.pointsToPath=se,ko.geometryToLayer=bm,ko.coordsToLatLng=k1,ko.coordsToLatLngs=_m,ko.latLngToCoords=N1,ko.latLngsToCoords=xm,ko.getFeature=Kl,ko.asFeature=wm,ut.mergeOptions({boxZoom:!0});var $j=Qi.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){Xe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){xt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Bt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Pf(),p1(),this._startPoint=this._map.mouseEventToContainerPoint(c),Xe(document,{contextmenu:Ts,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=dt("div","leaflet-zoom-box",this._container),Je(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var p=new H(this._point,this._startPoint),O=p.getSize();on(this._box,p.min),this._box.style.width=O.x+"px",this._box.style.height=O.y+"px"},_finish:function(){this._moved&&(Bt(this._box),Qt(this._container,"leaflet-crosshair")),Cf(),m1(),xt(document,{contextmenu:Ts,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var p=new K(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(p).fire("boxzoomend",{boxZoomBounds:p})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ut.addInitHook("addHandler","boxZoom",$j),ut.mergeOptions({doubleClickZoom:!0});var Ij=Qi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var p=this._map,O=p.getZoom(),C=p.options.zoomDelta,M=c.originalEvent.shiftKey?O-C:O+C;p.options.doubleClickZoom==="center"?p.setZoom(M):p.setZoomAround(c.containerPoint,M)}});ut.addInitHook("addHandler","doubleClickZoom",Ij),ut.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Dj=Qi.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new pa(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}Je(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Qt(this._map._container,"leaflet-grab"),Qt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var p=te(this._map.options.maxBounds);this._offsetLimit=ee(this._map.latLngToContainerPoint(p.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(p.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var p=this._lastTime=+new Date,O=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(O),this._times.push(p),this._prunePositions(p)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),p=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=p.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,p){return c-(c-p)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),p=this._offsetLimit;c.x<p.min.x&&(c.x=this._viscousLimit(c.x,p.min.x)),c.y<p.min.y&&(c.y=this._viscousLimit(c.y,p.min.y)),c.x>p.max.x&&(c.x=this._viscousLimit(c.x,p.max.x)),c.y>p.max.y&&(c.y=this._viscousLimit(c.y,p.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,p=Math.round(c/2),O=this._initialWorldOffset,C=this._draggable._newPos.x,M=(C-p+O)%c+p-O,G=(C+p+O)%c-p-O,re=Math.abs(M+O)<Math.abs(G+O)?M:G;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=re},_onDragEnd:function(c){var p=this._map,O=p.options,C=!O.inertia||c.noInertia||this._times.length<2;if(p.fire("dragend",c),C)p.fire("moveend");else{this._prunePositions(+new Date);var M=this._lastPos.subtract(this._positions[0]),G=(this._lastTime-this._times[0])/1e3,re=O.easeLinearity,ue=M.multiplyBy(re/G),de=ue.distanceTo([0,0]),_e=Math.min(O.inertiaMaxSpeed,de),Re=ue.multiplyBy(_e/de),Ve=_e/(O.inertiaDeceleration*re),tt=Re.multiplyBy(-Ve/2).round();!tt.x&&!tt.y?p.fire("moveend"):(tt=p._limitOffset(tt,p.options.maxBounds),I(function(){p.panBy(tt,{duration:Ve,easeLinearity:re,noMoveStart:!0,animate:!0})}))}}});ut.addInitHook("addHandler","dragging",Dj),ut.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Fj=Qi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),Xe(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),xt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var c=document.body,p=document.documentElement,O=c.scrollTop||p.scrollTop,C=c.scrollLeft||p.scrollLeft;this._map._container.focus(),window.scrollTo(C,O)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var p=this._panKeys={},O=this.keyCodes,C,M;for(C=0,M=O.left.length;C<M;C++)p[O.left[C]]=[-1*c,0];for(C=0,M=O.right.length;C<M;C++)p[O.right[C]]=[c,0];for(C=0,M=O.down.length;C<M;C++)p[O.down[C]]=[0,c];for(C=0,M=O.up.length;C<M;C++)p[O.up[C]]=[0,-1*c]},_setZoomDelta:function(c){var p=this._zoomKeys={},O=this.keyCodes,C,M;for(C=0,M=O.zoomIn.length;C<M;C++)p[O.zoomIn[C]]=c;for(C=0,M=O.zoomOut.length;C<M;C++)p[O.zoomOut[C]]=-c},_addHooks:function(){Xe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){xt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var p=c.keyCode,O=this._map,C;if(p in this._panKeys){if(!O._panAnim||!O._panAnim._inProgress)if(C=this._panKeys[p],c.shiftKey&&(C=B(C).multiplyBy(3)),O.options.maxBounds&&(C=O._limitOffset(B(C),O.options.maxBounds)),O.options.worldCopyJump){var M=O.wrapLatLng(O.unproject(O.project(O.getCenter()).add(C)));O.panTo(M)}else O.panBy(C)}else if(p in this._zoomKeys)O.setZoom(O.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[p]);else if(p===27&&O._popup&&O._popup.options.closeOnEscapeKey)O.closePopup();else return;Ts(c)}}});ut.addInitHook("addHandler","keyboard",Fj),ut.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Bj=Qi.extend({addHooks:function(){Xe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){xt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var p=cj(c),O=this._map.options.wheelDebounceTime;this._delta+=p,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var C=Math.max(O-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),C),Ts(c)},_performZoom:function(){var c=this._map,p=c.getZoom(),O=this._map.options.zoomSnap||0;c._stop();var C=this._delta/(this._map.options.wheelPxPerZoomLevel*4),M=4*Math.log(2/(1+Math.exp(-Math.abs(C))))/Math.LN2,G=O?Math.ceil(M/O)*O:M,re=c._limitZoom(p+(this._delta>0?G:-G))-p;this._delta=0,this._startTime=null,re&&(c.options.scrollWheelZoom==="center"?c.setZoom(p+re):c.setZoomAround(this._lastMousePos,p+re))}});ut.addInitHook("addHandler","scrollWheelZoom",Bj);var PW=600;ut.mergeOptions({tapHold:Be.touchNative&&Be.safari&&Be.mobile,tapTolerance:15});var Uj=Qi.extend({addHooks:function(){Xe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){xt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var p=c.touches[0];this._startPos=this._newPos=new Z(p.clientX,p.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Xe(document,"touchend",Ln),Xe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",p))},this),PW),Xe(document,"touchend touchcancel contextmenu",this._cancel,this),Xe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){xt(document,"touchend",Ln),xt(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),xt(document,"touchend touchcancel contextmenu",this._cancel,this),xt(document,"touchmove",this._onMove,this)},_onMove:function(c){var p=c.touches[0];this._newPos=new Z(p.clientX,p.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,p){var O=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:p.screenX,screenY:p.screenY,clientX:p.clientX,clientY:p.clientY});O._simulated=!0,p.target.dispatchEvent(O)}});ut.addInitHook("addHandler","tapHold",Uj),ut.mergeOptions({touchZoom:Be.touch,bounceAtZoomLimits:!0});var zj=Qi.extend({addHooks:function(){Je(this._map._container,"leaflet-touch-zoom"),Xe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qt(this._map._container,"leaflet-touch-zoom"),xt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var p=this._map;if(!(!c.touches||c.touches.length!==2||p._animatingZoom||this._zooming)){var O=p.mouseEventToContainerPoint(c.touches[0]),C=p.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=p.getSize()._divideBy(2),this._startLatLng=p.containerPointToLatLng(this._centerPoint),p.options.touchZoom!=="center"&&(this._pinchStartLatLng=p.containerPointToLatLng(O.add(C)._divideBy(2))),this._startDist=O.distanceTo(C),this._startZoom=p.getZoom(),this._moved=!1,this._zooming=!0,p._stop(),Xe(document,"touchmove",this._onTouchMove,this),Xe(document,"touchend touchcancel",this._onTouchEnd,this),Ln(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var p=this._map,O=p.mouseEventToContainerPoint(c.touches[0]),C=p.mouseEventToContainerPoint(c.touches[1]),M=O.distanceTo(C)/this._startDist;if(this._zoom=p.getScaleZoom(M,this._startZoom),!p.options.bounceAtZoomLimits&&(this._zoom<p.getMinZoom()&&M<1||this._zoom>p.getMaxZoom()&&M>1)&&(this._zoom=p._limitZoom(this._zoom)),p.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var G=O._add(C)._divideBy(2)._subtract(this._centerPoint);if(M===1&&G.x===0&&G.y===0)return;this._center=p.unproject(p.project(this._pinchStartLatLng,this._zoom).subtract(G),this._zoom)}this._moved||(p._moveStart(!0,!1),this._moved=!0),F(this._animRequest);var re=a(p._move,p,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=I(re,this,!0),Ln(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,F(this._animRequest),xt(document,"touchmove",this._onTouchMove,this),xt(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))}});ut.addInitHook("addHandler","touchZoom",zj),ut.BoxZoom=$j,ut.DoubleClickZoom=Ij,ut.Drag=Dj,ut.Keyboard=Fj,ut.ScrollWheelZoom=Bj,ut.TapHold=Uj,ut.TouchZoom=zj,n.Bounds=H,n.Browser=Be,n.CRS=fe,n.Canvas=Nj,n.Circle=A1,n.CircleMarker=ym,n.Class=W,n.Control=Oi,n.DivIcon=jj,n.DivOverlay=Ji,n.DomEvent=WV,n.DomUtil=zV,n.Draggable=pa,n.Evented=ne,n.FeatureGroup=jo,n.GeoJSON=ko,n.GridLayer=Mf,n.Handler=Qi,n.Icon=Gl,n.ImageOverlay=Om,n.LatLng=ie,n.LatLngBounds=K,n.Layer=Si,n.LayerGroup=Hl,n.LineUtil=rW,n.Map=ut,n.Marker=gm,n.Mixin=XV,n.Path=ma,n.Point=Z,n.PolyUtil=QV,n.Polygon=ql,n.Polyline=Ao,n.Popup=Sm,n.PosAnimation=fj,n.Projection=iW,n.Rectangle=Lj,n.Renderer=No,n.SVG=Lf,n.SVGOverlay=Tj,n.TileLayer=Yl,n.Tooltip=Em,n.Transformation=J,n.Util=q,n.VideoOverlay=Cj,n.bind=a,n.bounds=ee,n.canvas=Mj,n.circle=dW,n.circleMarker=fW,n.control=Af,n.divIcon=xW,n.extend=i,n.featureGroup=lW,n.geoJSON=Pj,n.geoJson=mW,n.gridLayer=wW,n.icon=uW,n.imageOverlay=vW,n.latLng=ae,n.latLngBounds=te,n.layerGroup=sW,n.map=HV,n.marker=cW,n.point=B,n.polygon=pW,n.polyline=hW,n.popup=bW,n.rectangle=EW,n.setOptions=y,n.stamp=l,n.svg=Rj,n.svgOverlay=yW,n.tileLayer=Aj,n.tooltip=_W,n.transformation=Y,n.version=r,n.videoOverlay=gW;var CW=window.L;n.noConflict=function(){return window.L=CW,this},window.L=n})})(qS,qS.exports);var Jp=qS.exports;const t$=st(Jp);function ST(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function ET(e,t){return t==null?function(r,i){const o=R.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=R.useRef();o.current||(o.current=e(r,i));const a=R.useRef(r),{instance:s}=o.current;return R.useEffect(function(){a.current!==r&&(t(s,r,a.current),a.current=r)},[s,r,i]),o}}function L4e(e,t){R.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 s9(e){return function(n){const r=o9(),i=e(OT(n,r),r);return n9(r.map,n.attribution),a9(i.current,n.eventHandlers),L4e(i.current,r),i}}function $4e(e,t){const n=ET(e,t),r=s9(n);return k4e(r)}function I4e(e,t){const n=ET(e),r=R4e(n,t);return N4e(r)}function D4e(e,t){const n=ET(e,t),r=s9(n);return M4e(r)}function F4e(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function KS(){return KS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KS.apply(this,arguments)}function B4e({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:u,...f},d){const[h]=R.useState({className:i,id:o,style:s}),[v,g]=R.useState(null);R.useImperativeHandle(d,()=>(v==null?void 0:v.map)??null,[v]);const y=R.useCallback(_=>{if(_!==null&&v===null){const b=new Jp.Map(_,f);n!=null&&u!=null?b.setView(n,u):e!=null&&b.fitBounds(e,t),l!=null&&b.whenReady(l),g(j4e(b))}},[]);R.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const x=v?V.createElement(i9,{value:v},r):a??null;return V.createElement("div",KS({},h,{ref:y}),x)}const U4e=R.forwardRef(B4e),z4e=$4e(function({position:t,...n},r){const i=new Jp.Marker(t,n);return ST(i,A4e(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),V4e=I4e(function(t,n){const r=new Jp.Popup(t,n.overlayContainer);return ST(r,n)},function(t,n,{position:r},i){R.useEffect(function(){const{instance:a}=t;function s(u){u.popup===a&&(a.update(),i(!0))}function l(u){u.popup===a&&i(!1)}return n.map.on({popupopen:s,popupclose:l}),n.overlayContainer==null?(r!=null&&a.setLatLng(r),a.openOn(n.map)):n.overlayContainer.bindPopup(a),function(){var f;n.map.off({popupopen:s,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(a)}},[t,n,i,r])}),W4e=D4e(function({url:t,...n},r){const i=new Jp.TileLayer(t,OT(n,r));return ST(i,r)},function(t,n,r){F4e(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),H4e={"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"},l9={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"},Jt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},er={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Oa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class be{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=be.getVersionPrecision(t),o=be.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=be.map([t,n],u=>{const f=a-be.getVersionPrecision(u),d=u+new Array(f+1).join(".0");return be.map(d.split("."),h=>new Array(20-h.length).join("0")+h).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(l=>{r[l]=a[l]})}return t}static getBrowserAlias(t){return H4e[t]}static getBrowserTypeByAlias(t){return l9[t]||""}}const bt=/version\/(\d+(\.?_?\d+)+)/i,G4e=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=be.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=be.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=be.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=be.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=be.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=be.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=be.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=be.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=be.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=be.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=be.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=be.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=be.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=be.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=be.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=be.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=be.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=be.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=be.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=be.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=be.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=be.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=be.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=be.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=be.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:be.getFirstMatch(i,e),version:be.getSecondMatch(i,e)}}}],q4e=[{test:[/Roku\/DVP/],describe(e){const t=be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:er.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:er.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=be.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=be.getWindowsVersionName(t);return{name:er.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:er.iOS},n=be.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=be.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=be.getMacOSVersionName(t),r={name:er.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=be.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:er.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=be.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=be.getAndroidVersionName(t),r={name:er.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=be.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:er.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=be.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||be.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||be.getFirstMatch(/\bbb(\d+)/i,e);return{name:er.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:er.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:er.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:er.Linux}}},{test:[/CrOS/],describe(){return{name:er.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:er.PlayStation4,version:t}}}],K4e=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=be.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Jt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Jt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Jt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Jt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Jt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Jt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Jt.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=be.getFirstMatch(/(ipod|iphone)/i,e);return{type:Jt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Jt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Jt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Jt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Jt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Jt.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Jt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Jt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Jt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Jt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Jt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Jt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Jt.tv}}}],Y4e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Oa.Blink};const n=be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Oa.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Oa.Trident},n=be.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Oa.Presto},n=be.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Oa.Gecko},n=be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Oa.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Oa.WebKit},n=be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class n${constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=be.find(G4e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=be.find(q4e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=be.find(K4e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=be.find(Y4e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return be.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,o+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=be.find(s,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const u=be.find(s,f=>this.isPlatform(f));if(u){const f=this.satisfies(n[u]);if(f!==void 0)return f}}if(o>0){const s=Object.keys(i),l=be.find(s,u=>this.isBrowser(u,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=be.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(be.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class Z4e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new n$(t,n)}static parse(t){return new n$(t).getResult()}static get BROWSER_MAP(){return l9}static get ENGINE_MAP(){return Oa}static get OS_MAP(){return er}static get PLATFORMS_MAP(){return Jt}}var X4e=Object.defineProperty,Q4e=(e,t,n)=>t in e?X4e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qa=(e,t,n)=>(Q4e(e,typeof t!="symbol"?t+"":t,n),n);const J4e=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,a]=Zt(),{domains:s}=n,l=!t,u=R.useCallback(()=>{r(""),a()},[r,a]),f=R.useCallback(()=>{r(""),o()},[r,o]);return R.useEffect(()=>{e()},[e]),i?m.jsxs(tb,{children:[m.jsx(Gn,{value:t??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),m.jsx(Ye,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:u,children:m.jsx(je,{icon:EZ})}),m.jsx(Cr,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):m.jsxs(ca,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:d,isDefault:h})=>m.jsxs(Ne,{active:(t===d||h)&&l,onClick:()=>r(d),children:[d,h&&m.jsx("span",{className:"float-end text-muted",children:"default"})]},d)),m.jsx(Ne,{divider:!0}),m.jsx(Ne,{onClick:f,children:m.jsx("i",{children:"New domain"})})]})},e$e=e=>(e==null?void 0:e.type)===sC.INVALID_ARGUMENT,t$e=e=>(e==null?void 0:e.type)===sC.INVALID_SHORT_URL_DELETION,n$e=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Kr=e=>n$e(e)?e:void 0,Oo=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,e$e(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),kl=({style:e,className:t,...n})=>m.jsx("button",{type:"button",className:Pe("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),u9=R.createContext(""),r$e=u9.Provider,Os=()=>R.useContext(u9),c9=R.createContext(void 0),{Provider:PT}=c9,e1=()=>R.useContext(c9),i$e=5,CT=()=>{const[e,t]=R.useState([]),n=R.useMemo(()=>e.length>=i$e,[e.length]),r=R.useCallback(s=>!n&&t(l=>[...l,s]),[n]),i=R.useCallback(s=>!n&&e.every(l=>l.name!==s),[e,n]),o=R.useCallback(s=>t(l=>l.filter(u=>u!==s)),[]),a=R.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},TT=({className:e,type:t})=>{const n=Os(),r=e1(),i=R.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(l=>l.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return m.jsx("div",{className:Pe("top-sticky",e),children:m.jsxs(Ot,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[m.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((l,u)=>{var f;return m.jsxs("li",{className:Pe("badge pe-1",{"bg-secondary":!((f=l.style)!=null&&f.backgroundColor)}),style:l.style,children:[l.name,m.jsx(kl,{"aria-label":`Remove ${l.name}`,className:"fw-bold fs-6",onClick:()=>s(l),children:"×"})]},`${l.name}_${u}`)})}),m.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[m.jsxs(Ye,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:Pt,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[m.jsx(je,{icon:q0,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),m.jsx(Ye,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},Yd=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,o$e=(e,t)=>!e.domain&&t===n1?!0:e.domain===t,a$e=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},f9=e=>e.replaceAll("/","__"),jT=e=>e.replaceAll("__","/"),AT=({domain:e,shortCode:t})=>`${e??n1}__${f9(t)}`,d9=e=>{const[t,n]=e.split(/__(.+)/);if(!n)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===n1?null:t,shortCode:jT(n)}},s$e="yyyy-MM-dd",h9="yyyy-MM-dd HH:mm",ls=()=>new Date,kT=e=>typeof e!="string",NT=(e,t)=>!e||!kT(e)?e:t?vy(e,t):zce(e),us=e=>NT(e,void 0),Fa=e=>NT(e,s$e),bp=e=>NT(e,h9),Ir=e=>kT(e)?e:os(e),em=(e,t,n)=>{const r=Ir(e),i=t&&Ir(t),o=n&&Ir(n);if(i&&o)try{return Hce(r,{start:i,end:o})}catch{return!1}return i?pO(r,i)||Wce(r,i):o?pO(r,o)||gy(r,o):!0},Ms=(e,t)=>pO(e,t)||gy(e,t),t1="all",p9={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[t1]:void 0},m9=Object.keys(p9),l$e=e=>!e||!e.startDate&&!e.endDate,g0=e=>typeof e=="string"&&m9.includes(e),u$e=m9.filter(e=>e!==t1),r$=e=>e?Ir(e):null,v9=(e,t)=>({startDate:r$(e),endDate:r$(t)}),c$e=e=>{if(!(!e||l$e(e)))return e.startDate&&!e.endDate?`Since ${Fa(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Fa(e.endDate)}`:`${Fa(e.startDate)} - ${Fa(e.endDate)}`},g9=e=>{if(!(!e||e===t1))return g0(e)?p9[e]:c$e(e)},si=e=>Pl(yy(ls(),e)),cu=e=>({startDate:e,endDate:bc(ls())}),y9=e=>{var t;return((t=[[()=>e==="today",()=>cu(Pl(ls()))],[()=>e==="yesterday",()=>({startDate:si(1),endDate:bc(yy(ls(),1))})],[()=>e==="last7Days",()=>cu(si(7))],[()=>e==="last30Days",()=>cu(si(30))],[()=>e==="last90Days",()=>cu(si(90))],[()=>e==="last180Days",()=>cu(si(180))],[()=>e==="last365Days",()=>cu(si(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},f$e=e=>{var t;const n=Ir(e);return((t=[[()=>Ms(Pl(ls()),n),"today"],[()=>Ms(si(1),n),"yesterday"],[()=>Ms(si(7),n),"last7Days"],[()=>Ms(si(30),n),"last30Days"],[()=>Ms(si(90),n),"last90Days"],[()=>Ms(si(180),n),"last180Days"],[()=>Ms(si(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??t1},b9=e=>g0(e)?y9(e):e,_9=e=>!!(e&&e.startDate),d$e=({startDate:e,endDate:t})=>{const n=zp(bc(t??new Date),Pl(e))+1,r=yy(Pl(e),n),i=yy(bc(e),1);return{startDate:r,endDate:i}},h$e=e=>{if(_9(e))return zp(e.endDate??new Date,e.startDate)},MT=e=>e.type!==void 0,p$e=e=>e.type!==void 0,m$e=e=>{const t=Eue(e,n=>MT(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},x9=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Yd(o,t,n)&&em(a.date,i,r)),w9=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&o$e(i,t)&&em(o.date,r,n)),O9=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&em(o.date,r,n)),Sv=(e,t)=>nF(e,n=>n[t]),v$e=e=>{const t=((e==null?void 0:e.startDate)&&us(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&us(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},YS=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=v$e(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},g$e=e=>_9(e.dateRange),y$e=({dateRange:e,...t})=>({...t,dateRange:d$e(e)}),gn=(e,t)=>tF(e,t,{serializeError:n=>n}),i$=5e3,b$e=2,_$e=4,x$e=({currentPage:e,pagesCount:t})=>e>=t,w$e=(e,t)=>t*100/e,S9=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async l=>e({...a,page:l,itemsPerPage:i$}).then(({data:u})=>u))).then(l=>l.flat()),o=async(a,s,l=0)=>{if(t())return[];const u=await i(a,s[l]);return n(w$e(s.length,l+1)),l<s.length-1?u.concat(await o(a,s,l+1)):u};return async a=>{const{pagination:s,data:l}=await e({...a,page:1,itemsPerPage:i$});if(x$e(s))return l;const u=lC(b$e,s.pagesCount+1),f=qu(u,r);return s.pagesCount-1>r&&n(0),l.concat(await o(a,f))}},tm=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),nm=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=mn(`${e}/progressChanged`),i=mn(`${e}/fallbackToInterval`),o=gn(e,async(a,{getState:s,dispatch:l})=>{var u;const{params:f,options:d}=a,{visitsLoader:h,lastVisitLoader:v}=t(a),g=h$e(f.dateRange),y=YS(f),x=d.loadPrevInterval&&g$e(f)?YS(y$e(f)):void 0,_=_$e/(x?2:1),b=x?{main:0,prev:0}:{main:0},w=(A,D)=>{b[A]=D;const k=Object.values(b),I=k.reduce((F,q)=>F+q,0);l(r(I/k.length))},S=S9({visitsLoader:h,shouldCancel:()=>n(s),progressChanged:A=>w("main",A),batchSize:_}),[E,P,T]=await Promise.all([S(y),v((u=f.filter)==null?void 0:u.excludeBots),x?S(x).then(A=>A.map(D=>{if(g===void 0)return D;const{date:k,...I}=D,F=uC(Ir(k),g);return{...I,date:us(F)}})):Promise.resolve(void 0)]);return!E.length&&P&&l(i(f$e(P.date))),{...a,visits:E,prevVisits:T}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},bf=mn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),rm=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:l,fallbackToInterval:u}=t,{reducer:f,actions:d}=nn({name:e,initialState:n,reducers:{cancelGetVisits:v=>({...v,cancelLoad:!0})},extraReducers:v=>{v.addCase(o,()=>({...n,loading:!0})),v.addCase(a,(g,{error:y})=>({...n,errorData:Kr(y)??null})),v.addCase(s,(g,{payload:y})=>({...g,...y,loading:!1,progress:null,errorData:null})),v.addCase(l,(g,{payload:y})=>({...g,progress:y})),v.addCase(u,(g,{payload:y})=>({...g,fallbackInterval:y})),v.addCase(bf,(g,{payload:y})=>{const{visits:x}=g,_=r(g,y.createdVisits).map(({visit:b})=>b);return _.length?{...g,visits:[..._,...x]}:g}),i==null||i(v)}}),{cancelGetVisits:h}=d;return{reducer:f,cancelGetVisits:h}},E9="shlink/domainVisits",n1="DEFAULT",O$e={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},S$e=e=>nm({typePrefix:`${E9}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=tm(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),E$e=e=>rm({name:E9,initialState:O$e,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>w9(r,t,n==null?void 0:n.dateRange)}),tg=({className:e="",placement:t,children:n})=>{const r=ua();return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:e,ref:r,children:m.jsx(je,{icon:fP})}),m.jsx(Cr,{target:r,placement:t,children:n})]})},P9=e=>t=>{t.preventDefault(),e()},RT=(e,t,n=1)=>lC(n,e+1).map(t),P$e=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,qs=e=>e!=null&&!P$e(e),px=e=>e||null,ZS=e=>e?"true":"false",mx=e=>e===void 0?void 0:ZS(e),vx=({isLast:e,...t})=>m.jsx(Xv,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),C$e=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,l]=R.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,f]=R.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[d,h]=R.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),v=P9(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:px(s),regular404Redirect:px(u),invalidShortUrlRedirect:px(d)}}).then(t));return m.jsx(Eo,{isOpen:e,toggle:t,centered:!0,children:m.jsxs("form",{name:"domainRedirectsModal",onSubmit:v,children:[m.jsxs(Po,{toggle:t,children:["Edit redirects for ",m.jsx("b",{children:n.domain})]}),m.jsxs(Vi,{children:[m.jsxs(vx,{value:s,onChange:l,children:[m.jsxs(tg,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",m.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),m.jsxs(vx,{value:u,onChange:f,children:[m.jsxs(tg,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",m.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),m.jsxs(vx,{value:d,isLast:!0,onChange:h,children:[m.jsx(tg,{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"]})]}),m.jsxs(vs,{children:[m.jsx(Ye,{color:"link",type:"button",onClick:t,children:"Cancel"}),m.jsx(Ye,{color:"primary",children:"Save"})]})]})})},T$e=({domain:e,editDomainRedirects:t})=>{const[n,r]=Zt(),i=Os(),o=e1();return m.jsxs(rb,{children:[m.jsxs(Ne,{tag:Pt,to:`${i}/domain/${e.domain}${e.isDefault?`_${n1}`:""}/visits`,children:[m.jsx(je,{icon:cP,fixedWidth:!0})," Visit stats"]}),m.jsxs(Ne,{disabled:!o||!o.canAddItemWithName(e.domain),onClick:()=>o==null?void 0:o.addItemToCompare({name:e.domain,query:e.domain}),children:[m.jsx(je,{icon:q0,fixedWidth:!0})," Compare visits"]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{onClick:r,children:[m.jsx(je,{fixedWidth:!0,icon:uP})," Edit redirects"]}),m.jsx(C$e,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},j$e=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return gfe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},A$e=(e,t)=>{const[n,r]=R.useState(t),i=R.useCallback(o=>{const{location:a,history:s}=window,l=XP(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${nb(l)}`),r(o)},[e]);return[n,i]},LT=e=>{const t=Fp();return R.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},k$e=()=>{const e=So();return R.useCallback(()=>e(-1),[e])},$T=(e,t)=>{const n=R.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=R.useState(n());return R.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},N$e=({status:e,matchMedia:t=window.matchMedia})=>{const n=ua(),r=$T(991,t);return e==="validating"?m.jsx(je,{fixedWidth:!0,icon:LD,spin:!0}):m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:n,children:e==="valid"?m.jsx(je,{fixedWidth:!0,icon:vh,className:"text-muted"}):m.jsx(je,{fixedWidth:!0,icon:Ow,className:"text-danger"})}),m.jsx(Cr,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":m.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",m.jsx("br",{}),"Check the ",m.jsx(Sr,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},gx=({fallback:e})=>m.jsxs("span",{className:"text-muted",children:[!e&&m.jsx("small",{children:"No redirect"}),e&&m.jsxs(m.Fragment,{children:[e," ",m.jsx("small",{children:"(as fallback)"})]})]}),M$e=()=>m.jsxs(m.Fragment,{children:[m.jsx(je,{fixedWidth:!0,icon:aZ,className:"text-primary",id:"defaultDomainIcon"}),m.jsx(Cr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),R$e=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return R.useEffect(()=>{n(e.domain)},[n,e.domain]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&m.jsx(M$e,{})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??m.jsx(gx,{fallback:r==null?void 0:r.baseUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??m.jsx(gx,{fallback:r==null?void 0:r.regular404Redirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??m.jsx(gx,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:m.jsx(N$e,{status:s})}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(T$e,{domain:e,editDomainRedirects:t})})]})},o$=[{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}],L$e=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var o;const{filteredDomains:a,defaultRedirects:s,loading:l,error:u,errorData:f}=t,d=s??((o=a.find(({isDefault:v})=>v))==null?void 0:o.redirects),h=CT();return R.useEffect(()=>{e()},[e]),l?m.jsx(ea,{loading:!0}):m.jsxs(PT,{value:h,children:[m.jsx(Bp,{className:"mb-3",onChange:n}),m.jsx(TT,{type:"domains",className:"mb-3"}),u?m.jsx(lr,{type:"error",children:m.jsx(Oo,{errorData:f,fallbackMessage:"Error loading domains :("})}):m.jsx(Ot,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsx("tr",{children:o$.map((v,g)=>m.jsx("th",{children:m.jsx("span",{className:v.isHidden?"sr-only":void 0,children:v.value})},g))})}),m.jsxs("tbody",{children:[a.length<1&&m.jsx("tr",{children:m.jsx("td",{colSpan:o$.length,className:"text-center",children:"No results found"})}),a.map(v=>m.jsx(R$e,{domain:v,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:d},v.domain))]})]})})]})},$$e="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",I$e=e=>gn($$e,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Ev="shlink/domainsList",Pv={domains:[],filteredDomains:[],loading:!1,error:!1},a$=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},s$=(e,t)=>n=>n.domain!==e?n:{...n,status:t},D$e=(e,t)=>{const n=gn(`${Ev}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=gn(`${Ev}/checkDomainHealth`,async a=>{try{const{status:s}=await e().health(a);return{domain:a,status:s==="pass"?"valid":"invalid"}}catch{return{domain:a,status:"invalid"}}}),i=mn(`${Ev}/filterDomains`),{reducer:o}=nn({name:Ev,initialState:Pv,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...Pv,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...Pv,error:!0,errorData:Kr(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...Pv,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...u},{payload:f})=>({...u,domains:s.map(s$(f.domain,f.status)),filteredDomains:l.map(s$(f.domain,f.status))})),a.addCase(i,(s,{payload:l})=>({...s,filteredDomains:s.domains.filter(({domain:u})=>u.toLowerCase().match(l.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:l})=>({...s,domains:s.domains.map(a$(l)),filteredDomains:s.filteredDomains.map(a$(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},F$e=(e,t)=>{e.serviceFactory("DomainSelector",()=>J4e),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>L$e),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",D$e,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",I$e,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},l$="shlink/mercure",B$e={loading:!0,error:!1},U$e=e=>{const t=gn(`${l$}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=nn({name:l$,initialState:B$e,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},z$e=e=>{e.serviceFactory("mercureInfoReducerCreator",U$e,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function It(e){return R.useRef(e).current}function Dt(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const V$e=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const l=({data:d})=>n(JSON.parse(d)),u=({status:d})=>d===401&&r(),f=t.map(d=>{const h=new URL(i);h.searchParams.append("topic",d);const v=new yfe.EventSourcePolyfill(h,{headers:{Authorization:`Bearer ${o}`}});return v.onmessage=l,v.onerror=u,v});return()=>f.forEach(d=>d.close())};function qi(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=Gc();return R.useEffect(()=>{const{interval:l}=a,u=v=>l?n.add(v):i([v]),f=t(s),d=V$e(a,f,u,o);if(!l)return d;const h=setInterval(()=>{i([...n]),n.clear()},l*1e3*60);return()=>{clearInterval(h),d==null||d()}},[i,o,a,s]),m.jsx(e,{...r})}}class cr{}Qa(cr,"visits","https://shlink.io/new-visit"),Qa(cr,"orphanVisits","https://shlink.io/new-orphan-visit"),Qa(cr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const IT="shlink/shortUrlDeletion",u$={shortCode:"",loading:!1,deleted:!1,error:!1},W$e=e=>gn(`${IT}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),C9=mn(`${IT}/shortUrlDeleted`),H$e=e=>{const{actions:t,reducer:n}=nn({name:IT,initialState:u$,reducers:{resetDeleteShortUrl:()=>u$},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Kr(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},T9="shlink/shortUrlsList",j9=5,G$e={loading:!0,error:!1},q$e=e=>gn(`${T9}/listShortUrls`,t=>e().listShortUrls(t??{})),K$e=(e,t,n)=>nn({name:T9,initialState:G$e,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,j9-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:l}=o;return Yd(a,s,l)?o:a}))}),r.addCase(C9,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Yd(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(bf,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:l})=>l&&Yd(a,l.shortCode,l.domain)))==null?void 0:s.shortUrl)??a}))})}}),c$=10,{ceil:Y$e}=Math,Z$e=new Intl.NumberFormat("en-US"),Yt=e=>Z$e.format(Number(e)),X$e=e=>Y$e(e/c$)*c$,XS=({children:e,title:t,link:n,tooltip:r})=>{const i=ua();return m.jsxs(m.Fragment,{children:[m.jsxs(Er,{innerRef:i,className:"highlight-card",body:!0,tag:Pt,to:n,children:[m.jsx(je,{size:"3x",className:"highlight-card__link-icon",icon:Nfe}),m.jsx(J5,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),m.jsx(Q5,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&m.jsx(Cr,{target:i,placement:"bottom",children:r})]})},f$=({loading:e,excludeBots:t,visitsSummary:n,...r})=>m.jsx(XS,{tooltip:n.bots!==void 0?m.jsxs(m.Fragment,{children:[t?"Plus":"Including"," ",m.jsx("strong",{children:Yt(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Yt(t&&n.nonBots?n.nonBots:n.total)}),A9=qi(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=It(A9),{loading:s,shortUrls:l}=e,{loading:u}=n,{loading:f,nonOrphanVisits:d,orphanVisits:h}=i,v=Os(),g=So(),y=Tr("visits");return R.useEffect(()=>{t({itemsPerPage:j9,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),m.jsxs(m.Fragment,{children:[m.jsxs(nr,{children:[m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(f$,{title:"Visits",link:`${v}/non-orphan-visits`,excludeBots:(y==null?void 0:y.excludeBots)??!1,loading:f,visitsSummary:d})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(f$,{title:"Orphan visits",link:`${v}/orphan-visits`,excludeBots:(y==null?void 0:y.excludeBots)??!1,loading:f,visitsSummary:h})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(XS,{title:"Short URLs",link:`${v}/list-short-urls/1`,children:s?"Loading...":Yt((l==null?void 0:l.pagination.totalItems)??0)})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(XS,{title:"Tags",link:`${v}/manage-tags`,children:u?"Loading...":Yt(n.tags.length)})})]}),m.jsxs(Er,{className:"mb-3",children:[m.jsxs(pc,{children:[m.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),m.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),m.jsx(Pt,{className:"float-end",to:`${v}/create-short-url`,children:"Advanced options »"})]}),m.jsx(hc,{children:m.jsx(a,{basicMode:!0})})]}),m.jsxs(Er,{children:[m.jsxs(pc,{children:[m.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),m.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),m.jsx(Pt,{className:"float-end",to:`${v}/list-short-urls/1`,children:"See all »"})]}),m.jsx(hc,{children:m.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:x=>g(`${v}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[cr.visits,cr.orphanVisits]),Q$e=Dt(A9,["ShortUrlsTable","CreateShortUrl"]);function J$e(e,t){e.factory("Overview",Q$e),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const k9="shlink/setShortUrlRedirectRules",d$={saving:!1,saved:!1,error:!1},eIe=e=>gn(`${k9}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules(r,i,n)}),tIe=e=>{const{reducer:t,actions:n}=nn({name:k9,initialState:d$,reducers:{resetSetRules:()=>d$},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:Kr(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},N9="shlink/getShortUrlRedirectRules",nIe={loading:!0,error:!1},rIe=e=>gn(`${N9}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules(t,n)),iIe=e=>nn({name:N9,initialState:nIe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({loading:!1,error:!1,...r}))}});function oIe(e,t){var n=!1;return function(...r){n||(e.call(null,...r),n=!0,setTimeout(function(){n=!1},t))}}function M9(e){return e.split(" ").filter(t=>t)}var R9=typeof window<"u";function Nl(e,t,n=!1){if(!t)return;const r=M9(t);if(r.length&&!r.includes("longTouch"))for(const i of e){if(!im(i)||!yo.has(i)){i.classList.add(...r);continue}const o=[],a=yo.get(i);if(a){for(const s of r)i.classList.contains(s)?i.classList.contains(s)&&n===!1&&o.push(s):i.classList.add(s);a.privateClasses=o,yo.set(i,a)}}}function y0(e,t){if(!t)return;const n=M9(t);if(n.length)for(const r of e){if(!im(r)){r.classList.remove(...n);continue}const i=yo.get(r);if(i)for(const o of n)i.privateClasses.includes(o)||r.classList.remove(o)}}function L9(e){let t=e.parentNode;for(;t!==null&&t.nodeType===1&&t instanceof HTMLElement;){const n=window.getComputedStyle(t).getPropertyValue("overflow");if(n==="scroll"||n==="auto")return t;t=t.parentNode}return document.documentElement}function aIe(e){if(!(e.e instanceof TouchEvent))return;const t=e.e.touches[0].clientX,n=e.e.touches[0].clientY;let r=document.elementFromPoint(t,n);if(!im(r))return;let i,o=!0;for(;r&&o;){if(yo.has(r)||Li.has(r)){o=!1,i=Li.has(r);break}r=r.parentNode}if(i){const a=Li.get(r);return a?{parent:{el:r,data:a}}:void 0}else{const a=yo.get(r);if(!a)return;const s=Li.get(r.parentNode);return s?{node:{el:r,data:a},parent:{el:r.parentNode,data:s}}:void 0}}function im(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function $9(e,t){const n=new AbortController;for(const r in t){const i=t[r];e.addEventListener(r,i,{signal:n.signal,passive:!1})}return n}function I9(e,t,n=!1){const r=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(r))n===!1&&o&&i.includes(o)||t.style.setProperty(o,r.getPropertyValue(o),r.getPropertyPriority(o));for(const o of Array.from(e.children)){if(!im(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];I9(o,a,n)}}function Bl(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}Array();var h$={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},yo=new WeakMap,Li=new WeakMap,qe=void 0;function sIe(){qe=void 0}function D9(e){return qe={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},qe}function lIe(e,t){return qe={...e,...t},qe}function F9(e){const{x:t,y:n}=Bl(e.e);return{coordinates:{x:t,y:n},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:L9(e.targetData.node.el)}}function uIe(e,t){const n=B9(e),r=[...QS(t.targetData.parent.el,t.targetData.parent.data).filter(i=>!n.includes(i))];r.splice(t.targetData.node.data.index,0,...n),e.lastTargetValue=t.targetData.node.data.value,JS(t.targetData.parent.el,t.targetData.parent.data,[...r])}function QS(e,t){return[...t.getValues(e)]}function JS(e,t,n){t.setValues(n,e)}function B9(e){return[...e.draggedNodes.map(t=>t.data.value)]}function cIe({parent:e,getValues:t,setValues:n,config:r={}}){var i,o;if(!R9)return;document.addEventListener("dragover",s=>{if(s.preventDefault(),qe){qe.remapJustFinished=!1,qe.lastTargetValue=void 0;const{x:l,y:u}=Bl(s);qe.coordinates.y=u,qe.coordinates.x=l,r1()}}),U9(e);const a={getValues:t,setValues:n,config:{handleDragstart:pIe,handleDragoverNode:BIe,handleDragoverParent:UIe,handleEnd:SIe,handleTouchstart:PIe,handleTouchmove:AIe,handleTouchOverNode:bIe,handleTouchOverParent:zIe,performSort:uIe,performTransfer:GIe,root:document,setupNode:_Ie,setupNodeRemap:W9,reapplyDragClasses:xIe,tearDownNode:OIe,tearDownNodeRemap:wIe,remapFinished:hIe,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{}};fIe(e,a),(i=r.plugins)==null||i.forEach(s=>{var l,u;(u=(l=s(e))==null?void 0:l.tearDown)==null||u.call(l)}),(o=r.plugins)==null||o.forEach(s=>{var l,u;(u=(l=s(e))==null?void 0:l.setup)==null||u.call(l)}),z9(e,!0)}function U9(e){const t=Li.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function fIe(e,t){new MutationObserver(dIe).observe(e,{childList:!0}),Li.set(e,t),t.abortControllers.mainParent=$9(e,{dragover:qIe(oIe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function dIe(e){const t=e[0].target;t instanceof HTMLElement&&z9(t)}function z9(e,t){const n=Li.get(e);if(!n)return;const r=[],i=n.config;for(let s=0;s<e.children.length;s++){const l=e.children[s];if(!im(l))continue;const u=yo.get(l);(t||!u)&&i.tearDownNode({node:l,parent:e,nodeData:u,parentData:n}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(l))&&r.push(l)}if(r.length!==n.getValues(e).length&&!i.disabled){console.warn("The number of enabled nodes does not match the number of values.");return}const o=n.getValues(e),a=[];for(let s=0;s<r.length;s++){const l=r[s],u=yo.get(l),f=Object.assign(u??{privateClasses:[],abortControllers:{}},{value:o[s],index:s});if(qe&&f.value===qe.draggedNode.data.value&&(qe.draggedNode.data=f,qe.draggedNode.el=l),qe&&qe.draggedNodes.map(h=>h.data.value).includes(f.value)){const h=qe.draggedNodes.find(v=>v.data.value===f.value);h&&(h.el=l)}a.push({el:l,data:f});const d={node:l,parent:e,parentData:n,nodeData:f};(t||!u)&&i.setupNode(d),W9(d)}Li.set(e,{...n,enabledNodes:a}),i.remapFinished(n)}function hIe(){qe&&(qe.preventEnter=!1,qe.swappedNodeValue=void 0,qe.remapJustFinished=!0)}function pIe(e){e.e instanceof DragEvent&&yIe({e:e.e,targetData:e.targetData})}function mIe(e,t,n){Nl([e],t),setTimeout(()=>{y0([e],t),Nl([e],n)})}function vIe(e){const t=D9(F9(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 V9(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 n=e.targetData.node.el.querySelectorAll(t.dragHandle);if(!n)return!1;const r=Bl(e.e),i=t.root.elementFromPoint(r.x,r.y);if(!i)return!1;for(const o of Array.from(n))if(i===o||o.contains(i))return!0;return!1}function gIe(e){if(!V9(e))return;const t=CIe(e);TIe(e,t),jIe(e,t)}function yIe(e){if(!V9(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,n=vIe(e),r=e.targetData.node.el.style.zIndex;n.originalZIndex=r,e.targetData.node.el.style.zIndex="9999",mIe(n.draggedNode.el,t.draggingClass,t.dropZoneClass)}function bIe(e){qe&&(e.detail.targetData.parent.el===qe.lastParent.el?q9(e.detail,qe):i1(e.detail,qe))}function _Ie(e){var t;const n=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=$9(e.node,{dragstart:fu(n.handleDragstart),dragover:fu(n.handleDragoverNode),dragend:fu(n.handleEnd),touchstart:fu(n.handleTouchstart),touchmove:fu(n.handleTouchmove),touchend:fu(n.handleEnd),touchOverNode:n.handleTouchOverNode}),n.reapplyDragClasses(e.node,e.parentData),(t=e.parentData.config.plugins)==null||t.forEach(r=>{var i,o;(o=(i=r(e.parent))==null?void 0:i.setupNode)==null||o.call(i,e)})}function W9(e){var t;yo.set(e.node,e.nodeData),(t=e.parentData.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent))==null?void 0:r.setupNodeRemap)==null||i.call(r,e)})}function xIe(e,t){if(!qe)return;const n="touchedNode"in qe?t.config.touchDropZoneClass:t.config.dropZoneClass;qe.draggedNode.el===e&&Nl([e],n,!0)}function wIe(e){var t;(t=e.parentData.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent))==null?void 0:r.tearDownNodeRemap)==null||i.call(r,e)})}function OIe(e){var t,n,r,i,o;(t=e.parentData.config.plugins)==null||t.forEach(a=>{var s,l;(l=(s=a(e.parent))==null?void 0:s.tearDownNode)==null||l.call(s,e)}),e.node.draggable=!1,(r=(n=e.nodeData)==null?void 0:n.abortControllers)!=null&&r.mainNode&&((o=(i=e.nodeData)==null?void 0:i.abortControllers)==null||o.mainNode.abort())}function SIe(e){qe&&(EIe(e,qe),sIe())}function EIe(e,t){var n,r,i,o;document.removeEventListener("contextmenu",H9),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(n=Li.get(t.initialParent.el))==null?void 0:n.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),Nl(t.draggedNodes.map(l=>l.el),s,!0),y0(t.draggedNodes.map(l=>l.el),s),a!=null&&a.longTouchClass&&y0(t.draggedNodes.map(l=>l.el),(i=(r=t.initialParent.data)==null?void 0:r.config)==null?void 0:i.longTouchClass),"touchedNode"in t&&((o=t.touchedNode)==null||o.remove())}function PIe(e){e.e instanceof TouchEvent&&gIe({e:e.e,targetData:e.targetData})}function CIe(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),n=e.targetData.node.el.getBoundingClientRect();return lIe(D9(F9(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:L9(e.targetData.node.el),touchStartLeft:e.e.touches[0].clientX-n.left,touchStartTop:e.e.touches[0].clientY-n.top,touchedNode:t,touchMoving:!1})}function H9(e){e.preventDefault()}function TIe(e,t){t.touchedNodeDisplay=t.touchedNode.style.display;const n=e.targetData.node.el.getBoundingClientRect();t.touchedNode.style.cssText=`
|
||
width: ${n.width}px;
|
||
position: fixed;
|
||
pointer-events: none;
|
||
top: -9999px;
|
||
z-index: 999999;
|
||
display: none;
|
||
`,document.body.append(t.touchedNode),I9(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",H9)}function jIe(e,t){const n=e.targetData.parent.data.config;n.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,n.longTouchClass&&e.e.cancelable&&Nl(t.draggedNodes.map(r=>r.el),n.longTouchClass),e.e.preventDefault())},n.longTouchTimeout||200))}function AIe(e){!qe||!("touchedNode"in qe)||FIe(e,qe)}function kIe(e,t){t.longTouchClass&&y0(e.draggedNodes.map(n=>n.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&Nl([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&Nl(e.draggedNodes.map(n=>n.el),t.touchDropZoneClass)}function NIe(e){if(!e||!e.scrollParent)return;const{x:t,y:n,width:r,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:n,width:r,height:i}}function MIe(e){const t=NIe(qe);if(t)switch(e){case"down":return IIe(t.state,t);case"up":return $Ie(t.state,t);case"right":return RIe(t.state,t);case"left":return LIe(t.state,t)}}function RIe(e,t){const n=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&n<0)&&n<(1-t.xThresh)*t.scrollParent.clientWidth&&!(t.scrollParent.scrollLeft+t.scrollParent.clientWidth>=t.scrollParent.scrollWidth))return e}function LIe(e,t){const n=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&n>t.scrollParent.clientWidth)&&n>t.xThresh*t.scrollParent.clientWidth&&t.scrollParent.scrollLeft!==0)return e}function $Ie(e,t){const n=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&n>t.scrollParent.clientHeight)&&n>t.yThresh*t.scrollParent.clientHeight&&t.scrollParent.scrollTop!==0)return e}function IIe(e,t){const n=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&n<0)&&n<(1-t.yThresh)*t.scrollParent.clientHeight&&!(t.scrollParent.scrollTop+t.scrollParent.clientHeight>=t.scrollParent.scrollHeight))return e}function DIe(e,t){t.touchMoving=!0,t.touchedNode.style.display=t.touchedNodeDisplay||"";const{x:n,y:r}=Bl(e.e);t.coordinates.y=r,t.coordinates.x=n;const i=t.touchStartLeft??0,o=t.touchStartTop??0;t.touchedNode.style.left=`${n-i}px`,t.touchedNode.style.top=`${r-o}px`,kIe(t,e.targetData.parent.data.config)}function FIe(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),DIe(e,t),r1();const n=aIe(e);if(!n)return;const r={e:e.e,targetData:n};"node"in n?n.node.el.dispatchEvent(new CustomEvent("touchOverNode",{detail:r})):n.parent.el.dispatchEvent(new CustomEvent("touchOverParent",{detail:r}))}function r1(){for(const e of Object.keys(h$)){const[t,n]=h$[e];G9(e,t,n)}}function G9(e,t,n){const r=MIe(e);r&&(r.scrollParent.scrollBy(t,n),setTimeout(()=>{G9(e,t,n)},"touchedNode"in r?10:100))}function BIe(e){if(!qe)return;const{x:t,y:n}=Bl(e.e);qe.coordinates.y=n,qe.coordinates.x=t,r1(),WIe(e,qe)}function UIe(e){if(!qe)return;const{x:t,y:n}=Bl(e.e);qe.coordinates.y=n,qe.coordinates.x=t,r1(),i1(e,qe)}function zIe(e){qe&&i1(e.detail,qe)}function VIe(e,t){if(e.targetData.parent.el===t.lastParent.el)return!1;const n=e.targetData.parent.data.config;if(n.dropZone===!1)return!1;const r=t.initialParent.data.config;return n.accepts?n.accepts(e.targetData.parent,t.initialParent,t.lastParent,t):!(!n.group||n.group!==r.group)}function WIe(e,t){var n;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((n=t.lastParent)==null?void 0:n.el)?q9(e,t):i1(e,t)}function HIe(e,t,n,r){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(h=>h.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,l=o.x-a.x;let u;const f=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(h=>f[0]<=h.data.index&&h.data.index<=f[1]&&h.el!==t.draggedNode.el),Math.abs(s)>Math.abs(l)?u=s>0?"above":"below":u=l>0?"left":"right";const d=t.lastParent.data.config.threshold;switch(u){case"left":if(n>o.x+o.width*d.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<o.x+o.width*(1-d.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>o.y+o.height*d.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<o.y+o.height*(1-d.vertical))return t.incomingDirection="below",!0;break}return!1}function q9(e,t){const{x:n,y:r}=Bl(e.e);HIe(e,t,n,r)&&(t.swappedNodeValue=e.targetData.node.data.value,t.preventEnter=!0,e.targetData.parent.data.config.performSort(t,e))}function fu(e){function t(n){var r;const i=yo.get(n),o=n.parentNode||((r=qe==null?void 0:qe.lastParent)==null?void 0:r.el);if(!i)return;const a=Li.get(o);if(a)return{node:{el:n,data:i},parent:{el:o,data:a}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r})}}function GIe(e,t){const n=B9(e),r=QS(e.lastParent.el,e.lastParent.data).filter(s=>!n.includes(s)),i=QS(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,...n)):(a=o?e.initialIndex:t.targetData.parent.data.enabledNodes.length,i.splice(a,0,...n)),JS(e.lastParent.el,e.lastParent.data,r),JS(t.targetData.parent.el,t.targetData.parent.data,i)}function i1(e,t){VIe(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function qIe(e){function t(n){const r=Li.get(n);if(r)return{parent:{el:n,data:r}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r})}}function KIe(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 YIe(e,t){const n=KIe(e);n&&t(n)}var b0=new WeakMap;function ZIe(e){const t=b0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function XIe(e,t){const n=b0.get(t);n&&n[1](e),b0.set(t,[e,n[1]])}function QIe(e,t){return n=>{b0.set(n,t),cIe({parent:n,getValues:ZIe,setValues:XIe,config:e})}}function p$(e){R9&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;YIe(n,QIe(i,r))}))}function JIe(e,t={}){const n=R.useRef(null),[r,i]=R.useState(e);function o(a={}){p$({parent:n,state:[r,i],...a})}return R.useEffect(()=>{p$({parent:n,state:[r,i],...t})},[r]),R.useEffect(()=>()=>{n.current&&U9(n.current)},[]),[n,r,i,o]}const o1=()=>{const e=So(),t=Os(),n=Fp(),r=R.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:u,...f}=n,d=o?ile(o):void 0,h=(a==null?void 0:a.split(","))??[];return{...f,orderBy:d,tags:h,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:u!==void 0?u==="true":void 0}},[n]),i=R.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:u,excludeMaxVisitsReached:f,excludePastValidUntil:d,...h}=a,v={...h,orderBy:s&&rle(s),tags:l.length>0?l.join(","):void 0,excludeBots:mx(u),excludeMaxVisitsReached:mx(f),excludePastValidUntil:mx(d)},g=nb(v),y=g?`?${g}`:"";e(`${t}/list-short-urls/1${y}`)},[r,e,t]);return[r,i]},DT=()=>{const{domain:e}=Fp(),{shortCode:t=""}=Gc();return R.useMemo(()=>({shortCode:jT(t),domain:e}),[e,t])},a1=()=>{const e=k$e();return m.jsx(Ye,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:m.jsx(je,{icon:bZ})})},e6e={android:"Android",ios:"iOS",desktop:"Desktop"},t6e=({deviceType:e,onDeviceTypeChange:t})=>{const n=R.useId();return m.jsxs("div",{children:[m.jsx("label",{htmlFor:n,children:"Device type:"}),m.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&m.jsx("option",{value:"",children:"- Select type -"}),Object.entries(e6e).map(([r,i])=>m.jsx("option",{value:r,children:i},r))]})]})},n6e=({language:e,onLanguageChange:t})=>{const n=R.useId();return m.jsxs("div",{children:[m.jsx("label",{htmlFor:n,children:"Language:"}),m.jsx(Gn,{id:n,value:e??"",onChange:r=>t(r.target.value),placeholder:"en-US / en",required:!0})]})},r6e=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=R.useId(),o=R.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:i,children:"Param name:"}),m.jsx(Gn,{id:i,value:e??"",onChange:a=>n(a.target.value),placeholder:"hello",required:!0})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:o,children:"Param value:"}),m.jsx(Gn,{id:o,value:t??"",onChange:a=>r(a.target.value),placeholder:"world",required:!0})]})]})},i6e={device:"Device type",language:"Language","query-param":"Query param"},o6e=({condition:e,onConditionChange:t,onDelete:n})=>{const r=R.useId(),i=R.useCallback(s=>t({type:s,matchValue:"",matchKey:null}),[t]),o=R.useCallback(s=>t({...e,matchValue:s}),[e,t]),a=R.useCallback(s=>t({...e,matchKey:s}),[e,t]);return m.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2",children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:r,children:"Type:"}),m.jsxs("div",{className:"d-flex gap-2",children:[m.jsx("select",{id:r,className:"form-select flex-grow-1",value:e.type,onChange:s=>i(s.target.value),children:Object.entries(i6e).map(([s,l])=>m.jsx("option",{value:s,children:l},s))}),m.jsx(Ye,{outline:!0,color:"danger",type:"button","aria-label":"Delete condition",onClick:n,children:m.jsx(je,{icon:MD})})]})]}),e.type==="device"&&m.jsx(t6e,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&m.jsx(n6e,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&m.jsx(r6e,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o})]})},K9=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,o]=R.useState(r??{longUrl:"",conditions:[]}),a=R.useCallback(v=>{v.preventDefault(),v.stopPropagation(),i&&n(i),t()},[n,i,t]),s=R.useCallback(()=>o(({longUrl:v,conditions:g})=>({longUrl:v,conditions:[...g,{type:"device",matchValue:"",matchKey:null}]})),[]),l=R.useCallback((v,g)=>o(({longUrl:y,conditions:x})=>{const _=[...x];return _[v]=g,{longUrl:y,conditions:_}}),[]),u=R.useCallback(v=>o(({longUrl:g,conditions:y})=>{const x=[...y];return x.splice(v,1),{longUrl:g,conditions:x}}),[]),f=ua(),d=R.useCallback(()=>{var v;return(v=f==null?void 0:f.current)==null?void 0:v.focus()},[f]),h=R.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return m.jsx(Eo,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:d,onClosed:h,children:m.jsxs("form",{onSubmit:a,children:[m.jsx(Po,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),m.jsxs(Vi,{children:[m.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),m.jsx(Gn,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:v=>o(g=>({...g,longUrl:v.target.value})),required:!0,innerRef:f}),m.jsx("hr",{}),m.jsxs("div",{className:"d-flex justify-content-between",children:[m.jsx("b",{children:"Conditions:"}),m.jsx(Ye,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:s,children:m.jsx(je,{icon:Cp})})]}),i.conditions.length===0&&m.jsx("div",{className:"text-center",children:m.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&m.jsx(nr,{children:i.conditions.map((v,g)=>m.jsx("div",{className:"col-lg-6 col-xl-4 mt-3",children:m.jsx(o6e,{condition:v,onConditionChange:y=>l(g,y),onDelete:()=>u(g)})},`${g}_${v.type}`))})]}),m.jsxs(vs,{className:"sticky-bottom redirect-rule-modal__footer",children:[m.jsx(Ye,{type:"button",color:"link",onClick:t,children:"Cancel"}),m.jsx(Ye,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},a6e=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,l]=Zt();return m.jsxs(Ot,{children:[m.jsxs("div",{className:"d-flex align-content-center gap-3",children:[m.jsx("div",{className:"d-flex flex-column my-auto drag-n-drop-handler d-none d-md-block",style:{cursor:"grab"},children:m.jsx(je,{icon:PZ})}),m.jsxs("div",{className:"d-flex flex-column my-auto",children:[m.jsx(Ye,{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:m.jsx(je,{icon:UZ})}),m.jsx(Ye,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:o,className:"rounded-0 rounded-bottom",children:m.jsx(je,{icon:$Z})})]}),m.jsxs("div",{className:"flex-grow-1",children:[m.jsxs("div",{className:"mb-2",children:[m.jsx("b",{children:"Long URL:"})," ",m.jsx(Sr,{href:n.longUrl,"data-testid":"rule-long-url"})]}),m.jsxs("div",{className:"d-flex flex-column flex-lg-row gap-2",children:[m.jsx("b",{children:"Conditions:"}),n.conditions.map((u,f)=>m.jsxs("div",{className:"badge bg-secondary",children:[u.type==="device"&&m.jsxs(m.Fragment,{children:["Device is ",u.matchValue]}),u.type==="language"&&m.jsxs(m.Fragment,{children:[u.matchValue," language is accepted"]}),u.type==="query-param"&&m.jsxs(m.Fragment,{children:["Query string contains ",u.matchKey,"=",u.matchValue]})]},`${u.type}_${f}`))]})]}),m.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[m.jsx(Ye,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:l,children:m.jsx(je,{icon:RD})}),m.jsx(Ye,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:m.jsx(je,{icon:MD})})]})]}),m.jsx(K9,{onSave:a,isOpen:s,toggle:l,initialData:n})]})},s6e=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=DT(),{shortUrls:l}=r,u=s&&(l==null?void 0:l.get(s)),[f,d,h]=JIe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:v,saved:g,errorData:y}=o,[x,_]=Zt(),b=R.useCallback(D=>h((k=[])=>[...k,D]),[h]),w=R.useCallback(D=>h((k=[])=>{const I=[...k];return I.splice(D,1),I}),[h]),S=R.useCallback((D,k)=>h((I=[])=>{const F=[...I];return F[D]=k,F}),[h]),E=R.useCallback((D,k)=>h((I=[])=>{if(!I[k])return I;const F=[...I],q=F[k];return F[k]=F[D],F[D]=q,F}),[h]),P=R.useCallback(D=>E(D,D-1),[E]),T=R.useCallback(D=>E(D,D+1),[E]),A=R.useCallback(D=>{D.preventDefault(),d&&i({shortUrl:s,data:{redirectRules:d}})},[s,d,i]);return R.useEffect(()=>(t(s),n([s]),a),[t,n,s,a]),R.useEffect(()=>{e.redirectRules&&h(e.redirectRules)},[h,e.redirectRules]),m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx("header",{children:m.jsxs(Er,{body:!0,children:[m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(a1,{}),m.jsxs("div",{className:"text-center flex-grow-1",children:[r.loading&&m.jsx(m.Fragment,{children:"Loading..."}),!r.loading&&m.jsxs("small",{children:["Redirect rules for ",m.jsx(Sr,{href:(u==null?void 0:u.shortUrl)??""})]})]})]}),m.jsx("hr",{}),m.jsxs("div",{children:[m.jsx("p",{className:"mb-2",children:"Configure dynamic conditions that will be checked at runtime."}),"If no conditions match, visitors will be redirected to: ",m.jsx(Sr,{href:e.defaultLongUrl??""})]})]})}),m.jsx("div",{children:m.jsxs(Ye,{outline:!0,color:"primary",onClick:_,children:[m.jsx(je,{icon:Cp,className:"me-1"})," Add rule"]})}),m.jsxs("form",{onSubmit:A,children:[e.loading&&m.jsx(ea,{loading:!0}),d.length===0&&!e.loading&&m.jsx(Ot,{className:"text-center",children:m.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),m.jsx("div",{className:"d-flex flex-column gap-2",ref:f,children:d.map((D,k)=>m.jsx(a6e,{redirectRule:D,priority:k+1,isLast:k===d.length-1,onDelete:()=>w(k),onMoveUp:()=>P(k),onMoveDown:()=>T(k),onUpdate:I=>S(k,I)},`${D.longUrl}_${k}`))}),m.jsx("div",{className:"text-center mt-3",children:m.jsx(Ye,{outline:!0,color:"primary",className:"btn-sm-block",disabled:v,"data-testid":"save-button",children:v?"Saving...":"Save rules"})})]}),y&&m.jsx(lr,{type:"error",children:m.jsx(Oo,{errorData:y,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),g&&m.jsx(lr,{type:"success",children:"Redirect rules properly saved."}),m.jsx(K9,{isOpen:x,toggle:_,onSave:b})]})},l6e=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>s6e),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",rIe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",eIe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",iIe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",tIe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},u6e=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}),Y9=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=It(Y9),a=Tr("shortUrlCreation"),s=R.useMemo(()=>u6e(a),[a]);return m.jsxs(m.Fragment,{children:[m.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async l=>(n(),e(l))}),m.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},c6e=Dt(Y9,["ShortUrlForm","CreateShortUrlResult"]),Z9=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=It(Z9),o=DT(),{loading:a,error:s,errorData:l,shortUrls:u}=e,f=o&&(u==null?void 0:u.get(o)),{saving:d,saved:h,error:v,errorData:g}=n,y=Tr("shortUrlCreation"),x=R.useMemo(()=>a$e(f,y),[f,y]);return R.useEffect(()=>{o&&t([o])},[t,o]),a?m.jsx(ea,{loading:!0}):s?m.jsx(lr,{type:"error",children:m.jsx(Oo,{errorData:l,fallbackMessage:"An error occurred while loading short URL detail :("})}):m.jsxs(m.Fragment,{children:[m.jsx("header",{className:"mb-3",children:m.jsx(Er,{body:!0,children:m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(a1,{}),m.jsx("div",{className:"text-center flex-grow-1",children:m.jsxs("small",{children:["Edit ",m.jsx(Sr,{href:(f==null?void 0:f.shortUrl)??""})]})})]})})}),m.jsx(i,{initialState:x,saving:d,onSave:async _=>{f&&r({...f,data:_})}}),h&&v&&m.jsx(lr,{type:"error",className:"mt-3",children:m.jsx(Oo,{errorData:g,fallbackMessage:"An error occurred while updating short URL :("})}),h&&!v&&m.jsx(lr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},f6e=Dt(Z9,["ShortUrlForm"]),X9=({text:e,onCopy:t},n=navigator)=>{var r;return(r=n.clipboard)==null?void 0:r.writeText(e).then(()=>t==null?void 0:t(e,!0)).catch(()=>t==null?void 0:t(e,!1))},Q9=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=It(Q9),[i,o]=r(),{error:a,saved:s}=e;if(R.useEffect(()=>{t()},[t]),a)return m.jsxs(lr,{type:"error",className:"mt-3",children:[n&&m.jsx(je,{"data-testid":"error-close-button",icon:Ow,className:"float-end pointer",onClick:t}),m.jsx(Oo,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=e.result;return m.jsxs(lr,{type:"success",className:"mt-3",children:[n&&m.jsx(je,{"data-testid":"success-close-button",icon:Ow,className:"float-end pointer",onClick:t}),m.jsxs("span",{children:[m.jsx("b",{children:"Great!"})," The short URL is ",m.jsx("b",{children:l})]}),m.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>X9({text:l,onCopy:o}),children:[m.jsx(je,{icon:yF})," Copy ",m.jsxs("span",{className:"sr-only",children:[l," to clipboard"]})]}),m.jsx(Lp,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},d6e=Dt(Q9,["useTimeoutToggle"]),yx="delete",h6e=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=R.useState("");R.useEffect(()=>i,[i]);const{loading:u,error:f,deleted:d,errorData:h}=r,v=R.useCallback(()=>{i(),t()},[i,t]),g=R.useCallback(y=>(y.preventDefault(),o(e).then(t)),[o,e,t]);return m.jsx(Eo,{isOpen:n,toggle:v,centered:!0,onClosed:()=>d&&a(e),children:m.jsxs("form",{onSubmit:g,children:[m.jsx(Po,{toggle:v,children:m.jsx("span",{className:"text-danger",children:"Delete short URL"})}),m.jsxs(Vi,{children:[m.jsxs("p",{children:[m.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),m.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),m.jsxs("p",{children:["Write ",m.jsx("b",{children:yx})," to confirm deletion."]}),m.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${yx}`,value:s,onChange:y=>l(y.target.value)}),f&&m.jsx(lr,{type:t$e(h)?"warning":"error",small:!0,className:"mt-2",children:m.jsx(Oo,{errorData:h,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),m.jsxs(vs,{children:[m.jsx("button",{type:"button",className:"btn btn-link",onClick:v,children:"Cancel"}),m.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==yx||u,children:u?"Deleting...":"Delete"})]})]})})},J9=({amount:e=0,loading:t=!1,...n})=>m.jsxs(Ye,{...n,outline:!0,color:"primary",disabled:t,children:[m.jsx(je,{icon:nZ})," ",t?"Exporting...":m.jsxs(m.Fragment,{children:["Export (",Yt(e),")"]})]}),m$=20,ez=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=It(ez),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=o1(),[u,,f,d]=Zt(),h=R.useCallback(async()=>{const v=e/m$,g=async(x=1)=>{const{data:_}=await t().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:m$});return x>=v?_:_.concat(await g(x+1))};f();const y=await g();n.exportShortUrls(y.map(x=>{var _;const{hostname:b,pathname:w}=new URL(x.shortUrl),S=w.substring(1);return{createdAt:x.dateCreated,domain:b,shortCode:S,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((_=x==null?void 0:x.visitsSummary)==null?void 0:_.total)??x.visitsCount??0}})),d()},[e,t,a,s,n,i,o,f,d,r,l]);return m.jsx(J9,{loading:u,className:"btn-md-block",amount:e,onClick:h})},p6e=Dt(ez,["apiClientFactory","ReportExporter"]),tz=({text:e,onCopy:t,copyToClipboard:n=X9})=>m.jsx(kl,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>n({text:e,onCopy:t}),children:m.jsx(je,{icon:yF,className:"fs-5"})}),m6e=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=nb({...n,margin:t>0?t:void 0});return`${r}${i?`?${i}`:""}`},v6e=({errorCorrection:e,setErrorCorrection:t})=>m.jsxs(ca,{text:`Error correction (${e})`,children:[m.jsxs(Ne,{active:e==="L",onClick:()=>t("L"),children:[m.jsx("b",{children:"L"}),"ow"]}),m.jsxs(Ne,{active:e==="M",onClick:()=>t("M"),children:[m.jsx("b",{children:"M"}),"edium"]}),m.jsxs(Ne,{active:e==="Q",onClick:()=>t("Q"),children:[m.jsx("b",{children:"Q"}),"uartile"]}),m.jsxs(Ne,{active:e==="H",onClick:()=>t("H"),children:[m.jsx("b",{children:"H"}),"igh"]})]}),g6e=({format:e,setFormat:t})=>m.jsxs(ca,{text:`Format (${e})`,children:[m.jsx(Ne,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),m.jsx(Ne,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),nz=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=It(nz),[o,a]=R.useState(300),[s,l]=R.useState(0),[u,f]=R.useState("png"),[d,h]=R.useState("L"),v=R.useMemo(()=>m6e(e,{size:o,format:u,margin:s,errorCorrection:d}),[e,o,u,s,d]),g=R.useMemo(()=>o+s,[o,s]),y=R.useMemo(()=>{if(!(g<500))return g<800?"lg":"xl"},[g]);return m.jsxs(Eo,{isOpen:r,toggle:n,centered:!0,size:y,children:[m.jsxs(Po,{toggle:n,children:["QR code for ",m.jsx(Sr,{href:e,children:e})]}),m.jsxs(Vi,{children:[m.jsxs(nr,{children:[m.jsxs(uo,{className:"d-grid col-md-6",children:[m.jsxs("label",{htmlFor:"sizeControl",children:["Size: ",o,"px"]}),m.jsx("input",{id:"sizeControl",type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:x=>a(Number(x.target.value))})]}),m.jsxs(uo,{className:"d-grid col-md-6",children:[m.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),m.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:s,step:1,min:0,max:100,onChange:x=>l(Number(x.target.value))})]}),m.jsx(uo,{className:"d-grid col-md-6",children:m.jsx(g6e,{format:u,setFormat:f})}),m.jsx(uo,{className:"col-md-6",children:m.jsx(v6e,{errorCorrection:d,setErrorCorrection:h})})]}),m.jsxs("div",{className:"text-center",children:[m.jsxs("div",{className:"mb-3",children:[m.jsx(Sr,{href:v}),m.jsx(tz,{text:v})]}),m.jsx("img",{src:v,className:"qr-code-modal__img",alt:"QR code"}),m.jsx("div",{className:"mt-3",children:m.jsxs(Ye,{block:!0,color:"primary",onClick:()=>{i.saveImage(v,`${t}-qr-code.${u}`).catch(()=>{})},children:["Download ",m.jsx(je,{icon:DD,className:"ms-1"})]})})]})]})]})},y6e=Dt(nz,["ImageDownloader"]),_0=({date:e,format:t=h9,relative:n=!1})=>{const r=kT(e)?e:os(e);return m.jsx("time",{dateTime:`${Vce(r)}000`,children:n?`${Uce(ls(),r)} ago`:vy(r,t)})},b6e=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n??0;return i&&s>=i?{icon:YZ,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",m.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&gy(Ir(a),ls())?{icon:_k,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be visited since ",m.jsx("b",{className:"indivisible",children:bp(Ir(a))}),"."]})}:o&&gy(ls(),Ir(o))?{icon:_k,className:"text-warning",description:m.jsxs(m.Fragment,{children:["This short URL will start working on ",m.jsx("b",{className:"indivisible",children:bp(Ir(o))}),"."]})}:{icon:vh,className:"text-primary",description:"This short URL can be visited normally."}},_6e=({shortUrl:e})=>{const t=ua(),{icon:n,className:r,description:i}=b6e(e);return m.jsxs(m.Fragment,{children:[m.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:m.jsx(je,{icon:n,className:r})}),m.jsx(Cr,{target:t,placement:"bottom",children:i})]})},x6e=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${f9(t)}/${r}${i}`},ng=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=Os();return!n||!e?m.jsx("span",{...i,children:r}):m.jsx(Pt,{to:x6e(o,e,t),...i,children:r})},rz=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=ua(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},l=!!o||!!a||!!s,u=m.jsx(ng,{shortUrl:t,suffix:"visits",asLink:r,children:m.jsx("strong",{className:Pe("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:Yt(e)})});return l?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"indivisible",children:[u,m.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&m.jsxs(m.Fragment,{children:[" / ",Yt(o)]}),m.jsx("sup",{className:"ms-1",children:m.jsx(je,{icon:fP})})]})]}),m.jsx(Cr,{target:i,placement:"bottom",children:m.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",m.jsx("b",{children:Yt(o)})," visit",o===1?"":"s","."]}),a&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",m.jsx("b",{className:"indivisible",children:bp(Ir(a))}),"."]}),s&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",m.jsx("b",{className:"indivisible",children:bp(Ir(s))}),"."]})]})})]}):u},w6e=e=>!!e.onClose,O6e=e=>!!e.onClick,s1=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=O6e(e),a=o?kl:"span",s=R.useMemo(()=>i.stylesForKey(t),[t,i]);return m.jsxs(a,{className:Pe("badge tag fw-bold",r,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[n??t,w6e(e)&&m.jsx(kl,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},S6e=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?m.jsx("i",{className:"indivisible",children:m.jsx("small",{children:"No tags"})}):m.jsx(m.Fragment,{children:e.map(r=>m.jsx(s1,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),iz=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:l}=It(iz),[u,f]=l(),[d,h]=l(!1,500),v=R.useRef(!0),[{excludeBots:g}]=o1(),y=Tr("visits"),x=g??(y==null?void 0:y.excludeBots);return R.useEffect(()=>{!v.current&&h(),v.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,h]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:m.jsx(_0,{date:e.dateCreated})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:m.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[m.jsx("span",{className:"short-urls-row__short-url-wrapper",children:m.jsx(Sr,{href:e.shortUrl})}),m.jsx(tz,{text:e.shortUrl,onCopy:f}),m.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:m.jsx(Sr,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&m.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:m.jsx(Sr,{href:e.longUrl})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:m.jsx(S6e,{tags:e.tags,colorGenerator:s,onTagClick:t})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:m.jsx(rz,{visitsCount:(x?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount??0,shortUrl:e,active:d,asLink:!0})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:m.jsx(_6e,{shortUrl:e})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:m.jsx(a,{shortUrl:e})})]})},E6e=Dt(iz,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),P6e=(e,{maxVersion:t,minVersion:n})=>{const r=!n||gO(e,n,">=");return(!t||gO(e,t,"<="))&&r},oz={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"},urlValidation:{maxVersion:"3.*.*"}};Object.freeze(oz);const Rs=(e,t)=>t==="latest"||P6e(t,oz[e]),az=e=>({excludeBotsOnShortUrls:Rs("excludeBotsOnShortUrls",e),filterDisabledUrls:Rs("filterDisabledUrls",e),deviceLongUrls:Rs("deviceLongUrls",e),shortUrlVisitsDeletion:Rs("shortUrlVisitsDeletion",e),orphanVisitsDeletion:Rs("orphanVisitsDeletion",e),shortUrlRedirectRules:Rs("shortUrlRedirectRules",e),urlValidation:Rs("urlValidation",e)}),sz=R.createContext(az("0.0.0")),C6e=sz.Provider,T6e=e=>R.useMemo(()=>az(e),[e]),cs=e=>R.useContext(sz)[e],lz=({shortUrl:e})=>{const{DeleteShortUrlModal:t,QrCodeModal:n}=It(lz),[r,,i,o]=Zt(),[a,,s,l]=Zt(),u=e1(),f=cs("shortUrlRedirectRules");return m.jsxs(rb,{minWidth:f?220:190,children:[m.jsxs(Ne,{tag:ng,shortUrl:e,suffix:"visits",asLink:!0,children:[m.jsx(je,{icon:cP,fixedWidth:!0})," Visit stats"]}),u&&m.jsxs(m.Fragment,{children:[m.jsxs(Ne,{disabled:!u.canAddItemWithName(e.shortUrl),onClick:()=>u.addItemToCompare({name:e.shortUrl,query:AT(e)}),children:[m.jsx(je,{icon:q0,fixedWidth:!0})," Compare visits"]}),m.jsx(Ne,{divider:!0,tag:"hr"})]}),m.jsxs(Ne,{tag:ng,shortUrl:e,suffix:"edit",asLink:!0,children:[m.jsx(je,{icon:uP,fixedWidth:!0})," Edit short URL"]}),f&&m.jsxs(Ne,{tag:ng,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[m.jsx(je,{icon:XZ,fixedWidth:!0})," Manage redirect rules"]}),m.jsxs(Ne,{onClick:i,children:[m.jsx(je,{icon:qZ,fixedWidth:!0})," QR code"]}),m.jsx(n,{shortUrl:e,isOpen:r,toggle:o}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{className:"dropdown-item--danger",onClick:s,children:[m.jsx(je,{icon:lP,fixedWidth:!0})," Delete short URL"]}),m.jsx(t,{shortUrl:e,isOpen:a,toggle:l})]})},j6e=Dt(lz,["DeleteShortUrlModal","QrCodeModal"]),uz="shlink/shortUrlCreation",v$={saving:!1,saved:!1,error:!1},A6e=e=>gn(`${uz}/createShortUrl`,t=>e().createShortUrl(t)),k6e=e=>{const{reducer:t,actions:n}=nn({name:uz,initialState:v$,reducers:{resetCreateShortUrl:()=>v$},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:Kr(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},cz="shlink/shortUrlEdition",N6e={saving:!1,saved:!1,error:!1},M6e=e=>gn(`${cz}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),R6e=e=>nn({name:cz,initialState:N6e,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:Kr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),g$="shlink/shortUrlsDetails",y$={loading:!1,error:!1},L6e=e=>{const t=gn(`${g$}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var l;const{shortCode:u,domain:f}=s,d=(l=o==null?void 0:o.shortUrls)==null?void 0:l.data.find(h=>Yd(h,u,f));return[s,d??await e().getShortUrl(u,f)]}));return new Map(a)}),{reducer:n}=nn({name:g$,initialState:y$,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Kr(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...y$,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},bx=({icon:e,className:t,...n})=>{const r=ua();return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(Gn,{className:Pe("icon-input-container__input",t),innerRef:r,...n}),m.jsx(je,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},$6e=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const a=R.useCallback(({target:l})=>{if(!l.value){r==null||r(null);return}r==null||r(Ir(l.value))},[r]),s=R.useMemo(()=>i?bp:Fa,[i]);return m.jsx(Gn,{...o,type:i?"datetime-local":"date",value:s(n)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},x0=({label:e,id:t,...n})=>{const r=R.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),m.jsx($6e,{id:t??r,...n})]})},_x=({children:e,infoTooltip:t,checked:n,onChange:r})=>m.jsxs("p",{children:[m.jsx(R8,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&m.jsx(tg,{placement:"right",children:t})]}),I6e=({isOpen:e,toggle:t})=>m.jsxs(Eo,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[m.jsx(Po,{toggle:t,children:"Info"}),m.jsxs(Vi,{children:[m.jsxs("p",{children:["When the ",m.jsx("b",{children:m.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),m.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),m.jsxs("ul",{children:[m.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."}),m.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.",m.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),m.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"})]})]})]}),D6e=()=>{const[e,t]=Zt();return m.jsxs(m.Fragment,{children:[m.jsx(kl,{className:"p-0",title:"What does this mean?",onClick:t,children:m.jsx(je,{icon:fP})}),m.jsx(I6e,{isOpen:e,toggle:t})]})},Cv=e=>typeof e=="string"?os(e):e,F6e=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,B6e=e=>"error"in e,fz=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i})=>{var o,a,s;const{TagsSelector:l,DomainSelector:u}=It(fz),[f,d]=R.useState(r),h=F6e(f),v=cs("deviceLongUrls"),g=cs("urlValidation"),y=g||h,x=R.useCallback(()=>d(r),[r]),_=R.useCallback((P,T)=>qs(P)?P:qs(T)?null:void 0,[]),b=R.useCallback((P,T)=>d(({deviceLongUrls:A={},...D})=>{var k;return{...D,deviceLongUrls:{...A,[P]:_(T,(k=r.deviceLongUrls)==null?void 0:k[P])}}}),[r.deviceLongUrls,_]),w=R.useCallback(P=>d(T=>({...T,tags:P})),[]),S=R.useCallback(async P=>(P.preventDefault(),n(f).then(T=>h&&!B6e(T)&&x()).catch(()=>{})),[h,n,x,f]),E=R.useMemo(()=>m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx(Gn,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:f.longUrl,onChange:P=>d(T=>({...T,longUrl:P.target.value}))}),m.jsxs("div",{className:Pe("d-flex flex-column flex-lg-row gap-3",{"mb-3":e}),children:[e&&h&&m.jsx("div",{className:"w-100 w-lg-50",children:m.jsx(Gn,{bsSize:"lg",placeholder:"Custom slug",value:f.customSlug??"",onChange:P=>d(T=>({...T,customSlug:P.target.value}))})}),m.jsx("div",{className:Pe("w-100",{"w-lg-50":e}),children:m.jsx(l,{tags:i.tags,selectedTags:f.tags??[],onChange:w})})]})]}),[l,e,w,h,f,i.tags]);return m.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:S,children:[e&&E,!e&&m.jsxs(m.Fragment,{children:[m.jsxs(nr,{children:[m.jsx("div",{className:Pe("mb-3",{"col-sm-6":v,"col-12":!v}),children:m.jsx(Ot,{title:"Main options",children:E})}),v&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(Ot,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(bx,{type:"url",icon:Bfe,placeholder:"Android-specific redirection",value:((o=f.deviceLongUrls)==null?void 0:o.android)??"",onChange:({target:P})=>b("android",P.value)}),m.jsx(bx,{type:"url",icon:Ffe,placeholder:"iOS-specific redirection",value:((a=f.deviceLongUrls)==null?void 0:a.ios)??"",onChange:({target:P})=>b("ios",P.value)}),m.jsx(bx,{type:"url",icon:ZZ,placeholder:"Desktop-specific redirection",value:((s=f.deviceLongUrls)==null?void 0:s.desktop)??"",onChange:({target:P})=>b("desktop",P.value)})]})})]}),m.jsxs(nr,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(Ot,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(Gn,{placeholder:"Title",value:f.title??"",onChange:({target:P})=>d(T=>({...T,title:_(P.value,r.title)}))}),h&&m.jsxs(m.Fragment,{children:[m.jsxs(nr,{children:[m.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:m.jsx(Gn,{placeholder:"Custom slug",value:f.customSlug??"",onChange:P=>d(T=>({...T,customSlug:P.target.value})),disabled:qs(f.shortCodeLength)})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(Gn,{type:"number",placeholder:"Short code length",value:f.shortCodeLength??"",onChange:P=>d(T=>({...T,shortCodeLength:P.target.value})),min:4,disabled:qs(f.customSlug)})})]}),m.jsx(u,{value:f.domain,onChange:P=>d(T=>({...T,domain:P}))})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(Ot,{title:"Limit access to the short URL",children:[m.jsxs("div",{className:"row mb-3",children:[m.jsx("div",{className:"col-lg-6",children:m.jsx(x0,{label:"Enabled since",withTime:!0,maxDate:f.validUntil?Cv(f.validUntil):void 0,value:f.validSince?Cv(f.validSince):null,onChange:P=>d(T=>({...T,validSince:us(P)}))})}),m.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:m.jsx(x0,{label:"Enabled until",withTime:!0,minDate:f.validSince?Cv(f.validSince):void 0,value:f.validUntil?Cv(f.validUntil):null,onChange:P=>d(T=>({...T,validUntil:us(P)}))})})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),m.jsx(Gn,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:f.maxVisits??"",onChange:P=>d(T=>({...T,maxVisits:qs(P.target.value)?Number(P.target.value):null}))})]})]})})]}),m.jsxs(nr,{children:[y&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(Ot,{title:"Extra checks",children:[g&&m.jsx(_x,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:f.validateUrl,onChange:P=>d(T=>({...T,validateUrl:P})),children:"Validate URL"}),h&&m.jsxs("p",{children:[m.jsx(R8,{inline:!0,className:"me-2",checked:f.findIfExists,onChange:P=>d(T=>({...T,findIfExists:P})),children:"Use existing URL if found"}),m.jsx(D6e,{})]})]})}),m.jsx("div",{className:Pe("mb-3",{"col-sm-6":y}),children:m.jsxs(Ot,{title:"Configure behavior",children:[m.jsx(_x,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:f.crawlable,onChange:P=>d(T=>({...T,crawlable:P})),children:"Make it crawlable"}),m.jsx(_x,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:f.forwardQuery,onChange:P=>d(T=>({...T,forwardQuery:P})),children:"Forward query params on redirect"})]})})]})]}),m.jsx("div",{className:"text-center",children:m.jsx(Ye,{outline:!0,color:"primary",disabled:t||!f.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},U6e=Dt(fz,["TagsSelector","DomainSelector"]),z6e=({active:e,allText:t,onChange:n})=>m.jsxs(m.Fragment,{children:[m.jsx(Ne,{active:e==="all",onClick:()=>n("all"),children:t}),m.jsx(Ne,{divider:!0,tag:"hr"}),u$e.map(r=>m.jsx(Ne,{active:e===r,onClick:()=>n(r),children:g9(r)},r))]}),V6e=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-md-6",children:m.jsx(x0,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),m.jsx("div",{className:"col-md-6 mt-3 mt-md-0",children:m.jsx(x0,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&bc(o))})})]}),FT=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=R.useMemo(()=>g9(t)??n,[t,n]),[o,a]=R.useMemo(()=>g0(t)?[void 0,t]:[t,void 0],[t]),s=R.useCallback(l=>{g0(l)?e(y9(l),l):e(l)},[e]);return m.jsxs(ca,{disabled:r,text:i,children:[m.jsx(z6e,{allText:n,active:a,onChange:s}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx("div",{className:"px-3 py-1",children:m.jsx(V6e,{...o,onStartDateChange:l=>s({...o,startDate:l}),onEndDateChange:l=>s({...o,endDate:l})})})]})},W6e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},H6e=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return m.jsxs(ca,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[m.jsx(Ne,{header:!0,"aria-hidden":!0,children:"Visits:"}),m.jsx(Ne,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),m.jsx(Ne,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),m.jsx(Ne,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0}),children:m.jsx("i",{children:"Reset to defaults"})})]})},dz=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i})=>{const{ExportShortUrlsBtn:o,TagsSelector:a}=It(dz),[{search:s,tags:l,startDate:u,endDate:f,excludeBots:d,excludeMaxVisitsReached:h,excludePastValidUntil:v,tagsMode:g="any"},y]=o1(),x=cs("filterDisabledUrls"),_=Tr("visits"),[b,w]=R.useState(),S=R.useCallback(({startDate:A,endDate:D},k)=>{y({startDate:us(A)??void 0,endDate:us(D)??void 0}),w(k)},[y]),E=R.useCallback(A=>y({search:A||void 0}),[y]),P=R.useCallback(A=>y({tags:A}),[y]),T=R.useCallback(()=>y({tagsMode:g==="any"?"all":"any"}),[g,y]);return m.jsxs("div",{className:Pe("short-urls-filtering-bar-container",e),children:[m.jsx(Bp,{initialValue:s,onChange:E}),m.jsxs(tb,{className:"mt-3",children:[m.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:l,onChange:P}),l.length>1&&m.jsxs(m.Fragment,{children:[m.jsx(Ye,{outline:!0,color:"secondary",onClick:T,id:"tagsModeBtn","aria-label":"Change tags mode",children:m.jsx(je,{className:"short-urls-filtering-bar__tags-icon",icon:g==="all"?ID:wZ})}),m.jsx(Cr,{target:"tagsModeBtn",placement:"left",children:g==="all"?"With all the tags.":"With any of the tags."})]})]}),m.jsxs(nr,{className:"flex-lg-row-reverse",children:[m.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-grow-1",children:m.jsx(FT,{defaultText:"All short URLs",dateRangeOrInterval:b??v9(u,f),onDatesChange:S})}),m.jsx(H6e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:d??(_==null?void 0:_.excludeBots),excludeMaxVisitsReached:h,excludePastValidUntil:v},onChange:y,supportsDisabledFiltering:x})]})}),m.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:m.jsx(o,{amount:t})}),m.jsx("div",{className:"col-6 d-lg-none mt-3",children:m.jsx(Up,{prefixed:!1,items:W6e,order:n,onChange:r})})]})]})},G6e=Dt(dz,["ExportShortUrlsBtn","TagsSelector"]);function Zd({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:m.jsx(je,{icon:e.dir==="ASC"?pZ:CZ,className:n})}const du=2,eE="...",hz=(e,t)=>{const n=lC(Math.max(du,e-du),Math.min(t-1,e+du)+1);return e-du>du&&n.unshift(eE),e+du<t-1&&n.push(eE),n.unshift(1),n.push(t),n},_p=e=>e===eE,pz=e=>_p(e)?e:Yt(e),mz=(e,t)=>_p(e)?`${e}_${t}`:`${e}`,q6e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=Os(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return m.jsx("div",{className:"pb-3"});const a=()=>hz(n,r).map((s,l)=>m.jsx(ul,{disabled:_p(s),active:n===s,children:m.jsx(cl,{tag:Pt,to:o(s),children:pz(s)})},mz(s,l)));return m.jsxs(zP,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[m.jsx(ul,{disabled:n===1,children:m.jsx(cl,{previous:!0,tag:Pt,to:o(n-1)})}),a(),m.jsx(ul,{disabled:n>=r,children:m.jsx(cl,{next:!0,tag:Pt,to:o(n+1)})})]})},K6e={field:"dateCreated",dir:"DESC"},vz=qi(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=It(vz),{page:s}=Gc(),l=hr(),[{tags:u,search:f,startDate:d,endDate:h,orderBy:v,tagsMode:g,excludeBots:y,excludePastValidUntil:x,excludeMaxVisitsReached:_},b]=o1(),w=dC(),[S,E]=R.useState(v??((n=w.shortUrlsList)==null?void 0:n.defaultOrdering)??K6e),{pagination:P}=(t==null?void 0:t.shortUrls)??{},T=R.useMemo(()=>{var X;return y??((X=w.visits)==null?void 0:X.excludeBots)},[y,(r=w.visits)==null?void 0:r.excludeBots]),A=cs("excludeBotsOnShortUrls"),D=R.useCallback((X,Q)=>{b({orderBy:{field:X,dir:Q}}),E({field:X,dir:Q})},[b]),k=X=>()=>D(X,ib(X,S.field,S.dir)),I=X=>m.jsx(Zd,{currentOrder:S,field:X}),F=R.useCallback(X=>b({tags:[...new Set([...u,X])]}),[u,b]),q=R.useCallback(({field:X,dir:Q})=>A&&T&&X==="visits"?{field:"nonBotVisits",dir:Q}:{field:X,dir:Q},[T,A]),W=CT();return R.useEffect(()=>{e({page:s,searchTerm:f,tags:u,startDate:d,endDate:h,orderBy:q(S),tagsMode:g,excludePastValidUntil:x,excludeMaxVisitsReached:_})},[e,q,s,f,u,d,h,S,g,x,_]),m.jsxs(PT,{value:W,children:[m.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:S,handleOrderBy:D,className:"mb-3"}),m.jsx(TT,{type:"short-urls",className:"mb-3"}),m.jsxs(Er,{body:!0,className:Pe({"pb-0":!t.loading}),children:[m.jsx(o,{shortUrlsList:t,orderByColumn:k,renderOrderIcon:I,onTagClick:F}),!t.loading&&m.jsx(q6e,{paginator:P,currentQueryString:l.search})]})]})},()=>[cr.visits]),Y6e=Dt(vz,["ShortUrlsTable","ShortUrlsFilteringBar"]),gz=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=It(gz),{error:a,loading:s,shortUrls:l}=n,u=Pe({"short-urls-table__header-cell--with-action":!!e}),f=Pe("short-urls-table__header-cell",u),d=Pe("table table-hover responsive-table short-urls-table",i),h=()=>a?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&(!l||l.data.length===0)?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(v=>m.jsx(o,{shortUrl:v,onTagClick:r},v.shortUrl));return m.jsxs("table",{className:d,children:[m.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:m.jsxs("tr",{children:[m.jsxs("th",{className:f,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),m.jsxs("th",{className:f,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),m.jsxs("th",{className:"short-urls-table__header-cell",children:[m.jsxs(kl,{className:Pe("p-0",u),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",m.jsxs(kl,{className:Pe("p-0",u),onClick:e==null?void 0:e("longUrl"),children:[m.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),m.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),m.jsx("th",{className:f,onClick:e==null?void 0:e("visits"),children:m.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),m.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),m.jsx("tbody",{children:h()})]})},Z6e=Dt(gz,["ShortUrlsRow"]),X6e=(e,t)=>{e.factory("ShortUrlsList",Y6e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",Z6e),e.factory("ShortUrlsRow",E6e),e.factory("ShortUrlsRowMenu",j6e),e.factory("CreateShortUrlResult",d6e),e.factory("ShortUrlForm",U6e),e.decorator("ShortUrlForm",t(["tagsList"])),e.factory("CreateShortUrl",c6e),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",f6e),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>h6e),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.factory("QrCodeModal",y6e),e.factory("ExportShortUrlsBtn",p6e),e.factory("ShortUrlsFilteringBar",G6e),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",K$e,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",k6e,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",R6e,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",H$e,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",L6e,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",q$e,"apiClientFactory"),e.serviceFactory("createShortUrl",A6e,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",W$e,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>C9),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",M6e,"apiClientFactory")},Q6e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:u}=i;return m.jsxs(Eo,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[m.jsx(Po,{toggle:t,className:"text-danger",children:"Delete tag"}),m.jsxs(Vi,{children:["Are you sure you want to delete tag ",m.jsx("b",{children:e}),"?",s&&m.jsx(lr,{type:"error",small:!0,className:"mt-2",children:m.jsx(Oo,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),m.jsxs(vs,{children:[m.jsx(Ye,{color:"link",onClick:t,children:"Cancel"}),m.jsx(Ye,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},yz=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=It(yz),[s,l]=R.useState(e),[u,f]=R.useState(a.getColorForKey(e)),{editing:d,error:h,edited:v,errorData:g}=o,y=P9(async()=>{await t({oldName:e,newName:s,color:u}),n()}),x=R.useCallback(()=>v&&r({oldName:e,newName:s,color:u}),[u,v,s,e,r]);return m.jsx(Eo,{isOpen:i,toggle:n,centered:!0,onClosed:x,children:m.jsxs("form",{name:"editTag",onSubmit:y,children:[m.jsx(Po,{toggle:n,children:"Edit tag"}),m.jsxs(Vi,{children:[m.jsxs(tb,{children:[m.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:u,borderColor:u},children:[m.jsx(je,{icon:mZ,className:"position-absolute top-50 start-50 translate-middle text-white"}),m.jsx(Gn,{className:"form-control-color opacity-0",type:"color",value:u,onChange:_=>f(_.target.value)})]}),m.jsx(Gn,{value:s,placeholder:"Tag",required:!0,onChange:({target:_})=>l(_.value)})]}),h&&m.jsx(lr,{type:"error",small:!0,className:"mt-2",children:m.jsx(Oo,{errorData:g,fallbackMessage:"Something went wrong while editing the tag :("})})]}),m.jsxs(vs,{children:[m.jsx(Ye,{type:"button",color:"link",onClick:n,children:"Cancel"}),m.jsx(Ye,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},J6e=Dt(yz,["ColorGenerator"]),eDe=/\s+/g,bz=e=>e.trim().toLowerCase().replace(eDe,"-"),_z=({color:e})=>m.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),xz=({tag:e,colorGenerator:t})=>m.jsx(_z,{color:t.getColorForKey(e)});let b$=1;const wz="Tag not found",Oz="Add tag",tDe=e=>e!==wz,nDe=e=>e===Oz,_$=e=>(b$+=1,{label:e,value:`${e}${b$}`}),rDe=e=>({tag:t,onClick:n})=>m.jsx(s1,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),iDe=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=tDe(n.label),s=nDe(n.label);return m.jsx("div",{className:Pe(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?m.jsxs(m.Fragment,{children:[!s&&m.jsx(xz,{tag:`${n.label}`,colorGenerator:e}),s?m.jsxs("i",{children:['Add "',bz(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):m.jsx("i",{children:n.label})})},Sz=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=It(Sz),a=Tr("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=ua();return m.jsx(Ide,{ref:l,selected:e.map(_$),suggestions:r.filter(u=>!e.includes(u)).map(_$),renderTag:rDe(o),renderOption:iDe(o,l),activateFirstOption:!0,allowNew:!i,newOptionText:Oz,noOptionsText:wz,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(u,f)=>{const d=u.toLowerCase().trim();return d.length<1?[]:[...f.filter(({label:h})=>s==="includes"?h.includes(d):h.startsWith(d))].slice(0,5)},onDelete:u=>{const f=[...e];f.splice(u,1),t(f)},onAdd:({label:u})=>t([...new Set([...e,...u.split(",").map(bz)])])})},oDe=Dt(Sz,["ColorGenerator"]),tE="shlink/tagDelete",aDe={deleting:!1,deleted:!1,error:!1},Ez=mn(`${tE}/tagDeleted`),sDe=e=>{const t=gn(`${tE}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=nn({name:tE,initialState:aDe,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Kr(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},BT="shlink/tagEdit",lDe={editing:!1,edited:!1,error:!1},Pz=mn(`${BT}/tagEdited`),uDe=(e,t)=>gn(`${BT}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),cDe=e=>nn({name:BT,initialState:lDe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:Kr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:o}=r;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),UT="shlink/tagsList",xx={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},x$=(e,t)=>n=>n===e?t:n,w$=(e,t)=>e.filter(n=>n!==t),fDe=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:(s.visitsCount??0)+o+a}}},{...t}),dDe=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),hDe=e=>gn(`${UT}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...o})=>(r[i]=o,r),{});return{tags:Object.keys(n),stats:n}}),Cz=mn(`${UT}/filterTags`),pDe=(e,t)=>nn({name:UT,initialState:xx,reducers:{},extraReducers:n=>{n.addCase(Cz,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...xx,error:!0,errorData:Kr(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...xx,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(Ez,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:w$(r,a),filteredTags:w$(i,a)})),n.addCase(Pz,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(x$(s.oldName,s.newName)).sort(),filteredTags:i.map(x$(s.oldName,s.newName)).sort()})),n.addCase(bf,(r,{payload:i})=>({...r,stats:fDe(dDe(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),mDe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Tz=qi(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=It(Tz),o=dC(),[a,s]=R.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),l=R.useMemo(()=>{const f=t.filteredTags.map(d=>{var h,v,g;const y=t.stats[d],x=((h=o.visits)!=null&&h.excludeBots?(v=y==null?void 0:y.visitsSummary)==null?void 0:v.nonBots:(g=y==null?void 0:y.visitsSummary)==null?void 0:g.total)??(y==null?void 0:y.visitsCount)??0;return{tag:d,visits:x,shortUrls:(y==null?void 0:y.shortUrlsCount)??0}});return $8(f,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),u=CT();return t.loading?m.jsx(ea,{loading:!0}):t.error?m.jsx(lr,{type:"error",children:m.jsx(Oo,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):m.jsxs(PT,{value:u,children:[m.jsx(Bp,{className:"mb-3",onChange:e}),m.jsx(nr,{className:"mb-3",children:m.jsx("div",{className:"col-lg-6 offset-lg-6",children:m.jsx(Up,{items:mDe,order:a,onChange:(f,d)=>s({field:f,dir:d})})})}),m.jsx(TT,{type:"tags",className:"mb-3"}),m.jsx(i,{sortedTags:l,currentOrder:a,orderByColumn:f=>()=>{const d=ib(f,a.field,a.dir);s({field:d?f:void 0,dir:d})}})]})},()=>[cr.visits]),vDe=Dt(Tz,["TagsTable"]),zT=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!_p(o)&&n(o);return m.jsxs(zP,{listClassName:Pe("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[m.jsx(ul,{disabled:t<=1,children:m.jsx(cl,{previous:!0,tag:"span",onClick:i(t-1)})}),hz(t,e).map((o,a)=>m.jsx(ul,{disabled:_p(o),active:t===o,children:m.jsx(cl,{role:"link",tag:"span",onClick:i(o),children:pz(o)})},mz(o,a))),m.jsx(ul,{disabled:t>=e,children:m.jsx(cl,{next:!0,tag:"span",onClick:i(t+1)})})]})},gDe=20,jz=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=It(jz),i=R.useRef(!0),{page:o=1}=Fp(),[a,s]=A$e("page",Number(o)),l=qu(e,gDe),u=l.length>1,f=l[a-1]??[];return R.useEffect(()=>{!i.current&&s(1),i.current=!1},[s,e]),R.useEffect(()=>{scrollTo(0,0)},[a]),m.jsxs(Ot,{bodyClassName:u?"pb-1":"",children:[m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsxs("thead",{className:"responsive-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",m.jsx(Zd,{currentOrder:n,field:"tag"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",m.jsx(Zd,{currentOrder:n,field:"shortUrls"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",m.jsx(Zd,{currentOrder:n,field:"visits"})]}),m.jsx("th",{className:"tags-table__header-cell",children:m.jsx("span",{className:"sr-only",children:"Options"})})]}),m.jsx("tr",{children:m.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),m.jsxs("tbody",{children:[f.length===0&&m.jsx("tr",{children:m.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),f.map(d=>m.jsx(r,{tag:d},d.tag))]})]}),u&&m.jsx("div",{className:"sticky-card-paginator",children:m.jsx(zT,{pagesCount:l.length,currentPage:a,setCurrentPage:s})})]},a)},yDe=Dt(jz,["TagsTableRow"]),Az=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=It(Az),[i,o]=Zt(),[a,s]=Zt(),l=Os(),u=e1();return m.jsxs("tr",{className:"responsive-table__row",children:[m.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[m.jsx(xz,{tag:e.tag,colorGenerator:r})," ",e.tag]}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:m.jsx(Pt,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Yt(e.shortUrls)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:m.jsx(Pt,{to:`${l}/tag/${e.tag}/visits`,children:Yt(e.visits)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end",children:m.jsxs(rb,{children:[m.jsxs(Ne,{onClick:s,children:[m.jsx(je,{icon:RD,fixedWidth:!0,className:"me-1"})," Edit"]}),m.jsxs(Ne,{disabled:!u||!u.canAddItemWithName(e.tag),onClick:()=>u==null?void 0:u.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[m.jsx(je,{icon:q0,fixedWidth:!0})," Compare visits"]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{className:"dropdown-item--danger",onClick:o,children:[m.jsx(je,{icon:yZ,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),m.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),m.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},bDe=Dt(Az,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),_De=(e,t)=>{e.factory("TagsSelector",oDe),e.serviceFactory("DeleteTagConfirmModal",()=>Q6e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",J6e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",bDe),e.factory("TagsTable",yDe),e.factory("TagsList",vDe),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",cDe,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",sDe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",pDe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",hDe,"apiClientFactory"),e.serviceFactory("filterTags",()=>Cz),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>Ez),e.serviceFactory("editTag",uDe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>Pz)},xDe=new PF,wDe=e=>xDe.parse(e),ODe=6,O$="0123456789ABCDEF",SDe=128,{floor:EDe,random:PDe,sqrt:CDe,round:TDe}=Math,jDe=()=>`#${RT(ODe,()=>O$[EDe(PDe()*O$.length)]).join("")}`,S$=e=>e.toLowerCase().trim(),ADe=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),kDe=(e=0,t=0,n=0)=>TDe(CDe(.299*e**2+.587*t**2+.114*n**2));class NDe{constructor(t){Qa(this,"colors"),Qa(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=S$(t);return this.colors[n]||this.setColorForKey(n,jDe())}setColorForKey(t,n){var r;const i=S$(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);if(this.lights[n]===void 0){const r=ADe(n);this.lights[n]=kDe(...r)>=SDe}return this.lights[n]}}const kz=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},MDe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);kz(e,i,n)};class RDe{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);kz(this.window,i,n)}}class LDe{constructor(t,n){Qa(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Qa(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Qa(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);MDe(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function $De(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",RDe,"fetch","window"),e.service("ColorGenerator",NDe,"TagColorsStorage"),e.constant("jsonToCsv",wDe),e.service("ReportExporter",LDe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>N8)}const om=({visits:e,shortUrl:t,children:n,title:r})=>m.jsx("header",{children:m.jsxs(Er,{body:!0,children:[m.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[m.jsx(a1,{}),m.jsx("span",{className:"text-center d-none d-sm-block",children:m.jsx("small",{children:r})}),m.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",m.jsx(rz,{visitsCount:e.length,shortUrl:t})]})]}),m.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:m.jsx("small",{children:r})}),n&&m.jsx("div",{className:"mt-md-2",children:n})]})}),Nz=({title:e,footer:t,children:n})=>m.jsxs(Er,{role:"document",children:[m.jsx(pc,{className:"chart-card__header",children:e}),m.jsx(hc,{children:n}),t&&m.jsx(X5,{className:"chart-card__footer--sticky",children:t})]}),Mz={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},IDe={marginBottom:"5px",fontWeight:"bold"},Rz={contentStyle:Mz,labelStyle:IDe,itemStyle:{padding:0}},E$=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],Lz=e=>E$[e%E$.length],w0="#46e587",DDe="rgba(70, 229, 135, 0.4)",FDe=({chartData:e,showNumbers:t})=>m.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>m.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[m.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),m.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&m.jsxs("b",{children:[" (",Yt(i),")"]})]})]},n))}),P$=e=>R.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:Lz(r)})),[e]),BDe=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=P$(e),o=P$(t),a=o.length>0,s=JP()?lle:sle;return m.jsxs("div",{className:"row align-items-center",children:[m.jsx("div",{className:"col-sm-12 col-md-7",children:m.jsx("div",{style:r??{width:"100%",height:300},children:m.jsx(r?R.Fragment:BC,{children:m.jsxs(P4e,{...r,children:[m.jsx(ri,{formatter:Yt,contentStyle:Mz,itemStyle:{color:"white"}}),m.jsx(wo,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((l,u)=>m.jsx(Ya,{fill:l.color,stroke:s},`${l.name}-${u}`))}),a&&m.jsx(wo,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:w0})]})})})}),m.jsx("div",{className:"col-sm-12 col-md-5",children:m.jsx(FDe,{chartData:i,showNumbers:n})})]})},C$=({title:e,...t})=>{const[n,r]=Zt(!1);return m.jsx(Nz,{title:m.jsxs(m.Fragment,{children:[e,m.jsx("div",{className:"float-end",children:m.jsx(Sl,{checked:n,onChange:r,children:"Show numbers"})})]}),children:m.jsx(BDe,{...t,showNumbersInLegend:n})})},UDe=({visitsGroups:e})=>{const t=R.useMemo(()=>Object.entries(e),[e]);return t.length===0?null:m.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",children:t.map(([n,r],i)=>m.jsxs("li",{className:"d-inline",children:[m.jsx(_z,{color:$z(r)}),m.jsxs("strong",{children:[n," (",Yt(r.length),")"]})]},`${n}${i}`))})},zDe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},VDe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},WDe={hourly:$ue,daily:zp,weekly:Bue,monthly:my},VT={hourly:e=>vy(e,"yyyy-MM-dd HH:00"),daily:e=>Fa(e),weekly(e){const t=Fa(Mh(e)),n=Fa(Vue(e));return`${t} - ${n}`},monthly:e=>vy(e,"yyyy-MM")},HDe=e=>{var t;const n=Object.values(e).filter(a=>a.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(a=>os(a[a.length-1].date)),o=lF(i);return((t=[[()=>zp(r,o)<=2,"hourly"],[()=>my(r,o)<=1,"daily"],[()=>my(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},GDe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=nF(t[r],i=>VT[e](os(i.date))),n),{}),qDe=(e,t)=>t.reduce((n,r)=>{const i=VT[e](os(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),KDe=(e,t)=>{const n=Object.values(t).filter(d=>d.length>0).map(d=>[...d].reverse());if(n.length===0)return[];const r=WDe[e],i=VT[e],o=VDe[e],a=n.map(d=>os(d[0].date)),s=n.map(d=>os(d[d.length-1].date)),l=lF(s),u=Nue(a),f=r(l,u)+1;return[i(u),...RT(f,d=>i(Tue(u,o(d))))]},$z=e=>{if(e.color)return e.color;const t={main:Th,highlighted:sO,previous:w0};return e.type?t[e.type]:Th},T$=(e,t)=>R.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),YDe=(e,t,n)=>{const r=T$(e,"main"),i=T$(e,"highlighted"),o=R.useMemo(()=>n?qDe(t,r):{},[n,t,r]),a=R.useCallback((s,{payload:l})=>{const u=o[l.date]??[];n==null||n(u===i?[]:u)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},Iz=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r})=>{const[i,o]=R.useState(HDe(e)),a=$T(767,r??window.matchMedia),s=R.useMemo(()=>{const d=GDe(i,e),h=Object.keys(d);return KDe(i,e).map(v=>({date:v,...h.reduce((g,y)=>(g[y]=d[y][v]??0,g),{})}))},[i,e]),l=YDe(e,i,t),u=n?R.Fragment:BC,f=R.useMemo(()=>n?{}:{width:"100%",height:a?300:400},[n,a]);return m.jsxs(Er,{children:[m.jsxs(pc,{role:"heading","aria-level":4,children:["Visits over time",m.jsx("div",{className:"float-end",children:m.jsxs($p,{children:[m.jsx(Yc,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),m.jsx(Kc,{end:!0,children:Object.entries(zDe).map(([d,h])=>m.jsx(Ne,{active:i===d,onClick:()=>o(d),children:h},d))})]})})]}),m.jsxs(hc,{children:[m.jsx(u,{...f,children:m.jsxs(E4e,{data:s,...n,children:[m.jsx(gf,{dataKey:"date"}),m.jsx(yf,{tickFormatter:Yt}),m.jsx(ri,{formatter:Yt,...Rz}),m.jsx(xT,{strokeOpacity:JP()?.1:.9}),Object.entries(e).map(([d,h])=>h.length>0&&m.jsx(vf,{dataKey:d,type:"monotone",stroke:$z(h),strokeWidth:2,activeDot:h.type==="previous"?void 0:l,strokeDasharray:h.type==="previous"?"8 3":void 0},d))]})}),m.jsx(UDe,{visitsGroups:e})]})]})},ZDe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>m.jsxs($p,{children:[m.jsx(Yc,{caret:!0,color:"link",className:e,children:"Paginate"}),m.jsxs(Kc,{end:!0,children:[t.map(i=>m.jsxs(Ne,{active:i===n,onClick:()=>r(i),children:[m.jsx("b",{children:i})," items per page"]},i)),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{disabled:n===1/0,onClick:()=>r(1/0),children:m.jsx("i",{children:"Clear pagination"})})]})]}),j$=e=>e.startsWith("hidden_"),XDe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=R.useMemo(()=>Object.entries(e).map(([d,h])=>{const v=(n==null?void 0:n[d])??0,g=(t==null?void 0:t[d])??0,y=j$(d);return{name:d,amount:Math.max(h,g),nonHighlightedAmount:y?null:h-v,highlightedAmount:y?null:v,prevAmount:y?null:g}}),[e,t,n]),l=R.useMemo(()=>{const d=s.reduce((h,{name:v})=>h>v.length?h:v.length,0);return Math.min(150,d*7)},[s]),u=a?R.Fragment:BC,f=R.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return m.jsx(u,{...f,children:m.jsxs(C4e,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[m.jsx(gf,{type:"number",dataKey:"amount",tickFormatter:Yt,domain:i?[0,i]:void 0}),m.jsx(yf,{type:"category",dataKey:"name",width:l,interval:0,style:{fontSize:".8rem"},tickFormatter:d=>j$(d)?"":d}),m.jsx(xT,{strokeOpacity:JP()?.05:.9}),m.jsx(ri,{filterNull:!0,...Rz,formatter:(d,h)=>[Yt(d),h==="highlightedAmount"?r:h==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),m.jsx(Ho,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:Th,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Ya,{fill:ole,stroke:Th,strokeWidth:2},d.name))}),n&&m.jsx(Ho,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:sO,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Ya,{fill:ale,stroke:sO,strokeWidth:2},d.name))}),t&&m.jsx(Ho,{dataKey:"prevAmount",fill:w0,children:s.map(d=>m.jsx(Ya,{fill:DDe,stroke:w0,strokeWidth:2},d.name))})]})})},QDe=e=>typeof e=="string"?e.toLowerCase():e,JDe=([e])=>e,e5e=([,e])=>e,Tv=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[l,u]=R.useState({}),[f,d]=R.useState(1),[h,v]=R.useState(50),g=R.useCallback((A,D)=>{const k=Object.entries(A),I=l.field?Pue(k,([F,q])=>QDe(l.field===Object.keys(D)[0]?F:q)):k;return!l.dir||l.dir==="ASC"?I:[...I].reverse()},[l.dir,l.field]),y=R.useCallback(A=>{const D=A[f-1];if(f<A.length)return D;const k=A[0].length;return[...D,...RT(k-D.length,I=>[`hidden_${I}`,0])]},[f]),x=R.useCallback(A=>m.jsx(zT,{currentPage:f,pagesCount:A,setCurrentPage:d}),[f]),_=R.useCallback((A,D,k,I)=>{const F=g(A,D),q=F.map(JDe),W=k&&Object.entries({...ON(q,q.map(()=>0)),...k}),X=I&&Object.entries({...ON(q,q.map(()=>0)),...I});if(F.length<=h)return{currentPageStats:Object.fromEntries(F),currentPageHighlightedStats:W&&Object.fromEntries(W),currentPagePrevStats:X&&Object.fromEntries(X)};const Q=qu(F,h),ne=W&&qu(W,h),Z=X&&qu(X,h);return{currentPageStats:Object.fromEntries(y(Q)),currentPageHighlightedStats:ne&&Object.fromEntries(y(ne)),currentPagePrevStats:Z&&Object.fromEntries(y(Z)),pagination:x(Q.length),max:X$e(Math.max(...F.map(e5e)))}},[y,g,h,x]),{currentPageStats:b,currentPagePrevStats:w,currentPageHighlightedStats:S,pagination:E,max:P}=R.useMemo(()=>_(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[_,n,t,i,e]),T=R.useMemo(()=>Object.keys(b),[b]);return m.jsx(Nz,{title:m.jsxs(m.Fragment,{children:[r,m.jsx("div",{className:"float-end",children:m.jsx(Up,{isButton:!1,right:!0,items:i,order:l,onChange:(A,D)=>{u({field:A,dir:D}),d(1)}})}),a&&Object.keys(e).length>50&&m.jsx("div",{className:"float-end",children:m.jsx(ZDe,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:A=>{v(A),d(1)}})}),o&&m.jsx("div",{className:"float-end",children:o(E?T:void 0)})]}),footer:E,children:m.jsx(XDe,{stats:b,prevStats:w,highlightedStats:S,max:P,...s})})},A$=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&us(t[e])||""},Dz=()=>{const e=So(),t=Fp(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,l=R.useMemo(()=>({dateRange:n!=null||r!=null?v9(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:a!==void 0?a==="true":void 0}),[r,o,a,i,n]),u=R.useCallback(f=>{const{dateRange:d,visitsFilter:h={},loadPrevInterval:v}=ub(l,f),{excludeBots:g,orphanVisitsType:y}=h,x={...s,startDate:A$("startDate",d),endDate:A$("endDate",d),excludeBots:g===void 0?void 0:ZS(g),orphanVisitsType:y,loadPrevInterval:v===void 0?void 0:ZS(v)},_=nb(x),b=_?`?${_}`:"";e(b,{replace:!0,relative:"route"})},[l,e,s]);return[l,u]},t5e=()=>m.jsx(W4e,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),n5e=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:n})=>n)};const[{latLong:t}]=e;return{zoom:10,center:t}},Fz=({toggle:e,isOpen:t,title:n,locations:r=[]})=>m.jsx(Eo,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:m.jsxs(Vi,{className:"map-modal__modal-body",children:[m.jsxs("h3",{className:"map-modal__modal-title",children:[n,m.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),m.jsxs(U4e,{...n5e(r),children:[m.jsx(t5e,{}),r.map(({cityName:i,latLong:o,count:a},s)=>m.jsx(z4e,{position:o,children:m.jsxs(V4e,{children:[m.jsx("b",{children:a})," visit",a>1?"s":""," from ",m.jsx("b",{children:i})]})},s))]})]})}),r5e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=Zt(),[a,s]=Zt(),[l,u]=R.useState([]),f=QP(),d=R.useCallback(h=>{u(h?n.filter(h):n),i()},[n,i]);return m.jsxs(m.Fragment,{children:[!t&&m.jsx(Ye,{color:"link",className:"open-map-modal-btn__btn",id:f,onClick:()=>d(),"aria-label":"Show in map",children:m.jsx(je,{icon:ww})}),t&&m.jsxs(Mp,{isOpen:a,toggle:s,children:[m.jsx(Yc,{color:"link",className:"open-map-modal-btn__btn",id:f,children:m.jsx(je,{icon:ww})}),m.jsxs(Kc,{end:!0,children:[m.jsx(Ne,{onClick:()=>d(),children:"Show all locations"}),m.jsx(Ne,{onClick:()=>d(({cityName:h})=>t.includes(h)),children:"Show locations in current page"})]})]}),m.jsx(Cr,{placement:"left",target:f,children:"Show in map"}),m.jsx(Fz,{toggle:o,isOpen:r,title:e,locations:l})]})},Bz=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:l=!1}=t,u=h=>({active:a===h,onClick:()=>e({...t,orphanVisitsType:h===a?void 0:h})}),f=R.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),d=R.useCallback(()=>e({...t,loadPrevInterval:!l}),[l,e,t]);return m.jsxs(ca,{disabled:o,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&m.jsxs(m.Fragment,{children:[m.jsx(Ne,{active:l,onClick:d,children:"Compare with previous period"}),m.jsx(Ne,{divider:!0,tag:"hr"})]}),m.jsx(Ne,{header:!0,"aria-hidden":!0,children:"Bots:"}),m.jsx(Ne,{active:s,onClick:f,children:"Exclude potential bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),m.jsx(Ne,{...u("base_url"),children:"Base URL"}),m.jsx(Ne,{...u("invalid_short_url"),children:"Invalid short URL"}),m.jsx(Ne,{...u("regular_404"),children:"Regular 404"})]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{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:m.jsx("i",{children:"Reset to defaults"})})]})},Uz=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return m.jsxs(m.Fragment,{children:[t&&r===null&&m.jsx(ea,{loading:!0}),t&&r!==null&&m.jsxs(ea,{loading:!0,children:["This is going to take a while... :S",m.jsx(n8,{value:r,striped:r>=100,className:"mt-3"})]}),n&&m.jsx(lr,{type:"error",children:m.jsx(Oo,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},rg=({children:e,showFallback:t})=>m.jsxs(m.Fragment,{children:[t&&m.jsx(ea,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&m.jsx(m.Fragment,{children:e})]}),i5e=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=Zt();return m.jsx(Ot,{title:m.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:m.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[m.jsxs("dl",{className:"m-0 me-3",children:[m.jsx("dt",{children:"Delete visits."}),m.jsxs("dd",{className:"m-0",children:["This will delete ",m.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&m.jsx(Ye,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&m.jsxs(Ye,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!n&&m.jsx(m.Fragment,{children:"Click again to confirm"}),n&&m.jsx(m.Fragment,{children:"Deleting..."})]})]})})},jv="Others",o5e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],a5e=e=>{if(!qs(e))return{browser:jv,os:jv};const{browser:{name:t},os:{name:n}}=Z4e.parse(e);return{os:n??jv,browser:t&&o5e.includes(t)?t:jv}},s5e=e=>{var t;return qs(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},zz=(e,t)=>e[t]!==void 0,k$=e=>typeof e=="number"?e:e?parseFloat(e):0,l5e=(e,{os:t})=>{e[t]=(e[t]||0)+1},u5e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},c5e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},Vz=e=>(t,n)=>{const r=zz(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},f5e=Vz("country"),d5e=Vz("city"),h5e=(e,t)=>{if(!zz(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[k$(r),k$(i)]};o.count+=1,e[n]=o},p5e=(e,t)=>{if(!p$e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},nE=e=>e.reduce((t,n)=>(l5e(t.os,n),u5e(t.browsers,n),c5e(t.referrers,n),f5e(t.countries,n),d5e(t.cities,n),h5e(t.citiesForMap,n),p5e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),O0=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t;return{date:r,potentialBot:a,...a5e(n),referer:s5e(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:MT(t)?t.type:void 0}}),m5e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:O0,processStatsFromVisits:nE},Symbol.toStringTag,{value:"Module"})),bd=20,v5e=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),g5e=(e,t)=>t.filter(n=>v5e(n,e)),y5e=(e,t)=>$8(t,e),b5e=(e,t,n)=>{const r=t?g5e(t,e):[...e],i=y5e(n,r),o=i.length;return{visitsGroups:qu(i,bd),total:o}},Mo="visits-table__header-cell visits-table__sticky",_5e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia})=>{var i;const o=$T(767,r),[a,s]=R.useState(void 0),l=R.useRef(a),[u,f]=R.useState({}),d=R.useMemo(()=>b5e(e,a,u),[e,a,u]),[h,v]=R.useState(1),g=h*bd,y=g-bd,x=R.useMemo(()=>{var S,E;return!!((E=(S=d.visitsGroups[h-1])==null?void 0:S[0])!=null&&E.visitedUrl)},[h,d.visitsGroups]),_=8+Number(x),b=S=>()=>f({field:S,dir:ib(S,u.field,u.dir)}),w=S=>m.jsx(Zd,{currentOrder:u,field:S,className:"visits-table__header-icon"});return R.useEffect(()=>{l.current!==a&&(v(1),n([])),l.current=a},[a,n]),m.jsx("div",{className:"table-responsive-md",children:m.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[m.jsxs("thead",{className:"visits-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:`${Mo} text-center`,onClick:()=>n(t.length<d.total?d.visitsGroups.flat():[]),children:[m.jsx("span",{className:"sr-only",children:"Is selected"}),m.jsx(je,{icon:vh,className:Pe({"text-primary":t.length>0})})]}),m.jsxs("th",{className:`${Mo} text-center`,onClick:b("potentialBot"),children:[m.jsx("span",{className:"sr-only",children:"Is bot"}),m.jsx(je,{icon:xk}),w("potentialBot")]}),m.jsxs("th",{className:Mo,onClick:b("date"),children:["Date",w("date")]}),m.jsxs("th",{className:Mo,onClick:b("country"),children:["Country",w("country")]}),m.jsxs("th",{className:Mo,onClick:b("city"),children:["City",w("city")]}),m.jsxs("th",{className:Mo,onClick:b("browser"),children:["Browser",w("browser")]}),m.jsxs("th",{className:Mo,onClick:b("os"),children:["OS",w("os")]}),m.jsxs("th",{className:Mo,onClick:b("referer"),children:["Referrer",w("referer")]}),x&&m.jsxs("th",{className:Mo,onClick:b("visitedUrl"),children:["Visited URL",w("visitedUrl")]})]}),m.jsx("tr",{children:m.jsx("td",{colSpan:_,className:"p-0",children:m.jsx(Bp,{noBorder:!0,large:!1,onChange:s})})})]}),m.jsxs("tbody",{children:[d.total===0&&m.jsx("tr",{children:m.jsx("td",{colSpan:_,className:"text-center",children:"There are no visits matching current filter"})}),(i=d.visitsGroups[h-1])==null?void 0:i.map((S,E)=>{const P=t.includes(S);return m.jsxs("tr",{style:{cursor:"pointer"},className:Pe({"table-active":P}),onClick:()=>n(P?t.filter(T=>T!==S):[...t,S]),children:[m.jsx("td",{className:"text-center",children:P&&m.jsx(je,{icon:vh,className:"text-primary"})}),m.jsx("td",{className:"text-center",children:S.potentialBot&&m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:xk,id:`botIcon${E}`}),m.jsx(Cr,{placement:"right",target:`botIcon${E}`,children:"Potentially a visit from a bot or crawler"})]})}),m.jsx("td",{children:m.jsx(_0,{date:S.date})}),m.jsx("td",{children:S.country}),m.jsx("td",{children:S.city}),m.jsx("td",{children:S.browser}),m.jsx("td",{children:S.os}),m.jsx("td",{children:S.referer}),S.visitedUrl&&m.jsx("td",{children:S.visitedUrl})]},E)})]}),d.total>bd&&m.jsx("tfoot",{children:m.jsx("tr",{children:m.jsx("td",{colSpan:_,className:"visits-table__footer-cell visits-table__sticky",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-md-6",children:m.jsx(zT,{pagesCount:Math.ceil(d.total/bd),currentPage:h,setCurrentPage:v,centered:o})}),m.jsx("div",{className:Pe("col-md-6",{"d-flex align-items-center flex-row-reverse":!o,"text-center mt-3":o}),children:m.jsxs("div",{children:["Visits ",m.jsx("b",{children:Yt(y+1)})," to"," ",m.jsx("b",{children:Yt(Math.min(g,d.total))})," of"," ",m.jsx("b",{children:Yt(d.total)})]})})]})})})})]})})},Sa={byTime:{title:"By time",subPath:"by-time",icon:eZ},byContext:{title:"By context",subPath:"by-context",icon:cP},byLocation:{title:"By location",subPath:"by-location",icon:ww},list:{title:"List",subPath:"list",icon:$D},options:{title:"Options",subPath:"options",icon:FD,shouldRender:({deletion:e})=>!!e}};Object.freeze(Sa);const wx=({display:e})=>e&&m.jsx("div",{className:"mt-3 mx-auto w-75",children:m.jsx(Ot,{children:m.jsxs("div",{className:"d-flex gap-2",children:[m.jsx(je,{icon:JZ,className:"mt-1"}),m.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let Av;const am=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:l,prevVisits:u,loading:f,errorData:d,fallbackInterval:h}=n,[{dateRange:v,visitsFilter:g,loadPrevInterval:y},x]=Dz(),_=Tr("visits"),[b,w]=R.useState(),S=R.useCallback(({startDate:j,endDate:N},U)=>{x({dateRange:{startDate:j??void 0,endDate:N??void 0}}),w(U)},[x]),E=R.useRef(v??h??(_==null?void 0:_.defaultInterval)??"last30Days"),[P,T]=R.useState([]),[A,D]=R.useState(),k=R.useRef(!0),{search:I}=hr(),F=R.useCallback(j=>j?`${j}${I}`:I,[I]),q=R.useMemo(()=>O0(l),[l]),W=R.useMemo(()=>u&&O0(u),[u]),{os:X,browsers:Q,referrers:ne,countries:Z,cities:z,citiesForMap:B,visitedUrls:H}=R.useMemo(()=>nE(q),[q]),ee=R.useMemo(()=>nE(W??[]),[W]),K=R.useMemo(()=>Object.fromEntries([["Visits",Object.assign(q,{type:"main"})],W&&["Previous period",Object.assign(W,{type:"previous"})],P.length>0&&[A??"Selected",Object.assign(P,{type:"highlighted"})]].filter(Boolean)),[A,P,W,q]),te=R.useMemo(()=>({...g,excludeBots:g.excludeBots??(_==null?void 0:_.excludeBots),loadPrevInterval:y??(_==null?void 0:_.loadPrevInterval)}),[y,g,_==null?void 0:_.excludeBots,_==null?void 0:_.loadPrevInterval]),ie=R.useMemo(()=>Object.values(B),[B]),ae=R.useCallback(j=>{Av=void 0,T(j)},[]),fe=R.useCallback((j,N)=>{const U=`${j}_${N}`;Av===U?(T([]),D(void 0),Av=void 0):(T(q.filter(J=>J[j]===N)),D(N),Av=U)},[q]);return R.useEffect(()=>i,[i]),R.useEffect(()=>{const j=v??b9(E.current),{loadPrevInterval:N,...U}=te,J={doIntervalFallback:k.current,loadPrevInterval:N};r({dateRange:j,filter:U},J),ae([]),k.current=!1},[v,g,r,te,ae]),R.useEffect(()=>{h&&E.current===((_==null?void 0:_.defaultInterval)??"last30Days")&&(E.current=h)},[h,_==null?void 0:_.defaultInterval]),m.jsxs(m.Fragment,{children:[t,m.jsx("section",{className:"mt-3",children:m.jsxs("div",{className:"row flex-md-row-reverse",children:[m.jsx("div",{className:"col-lg-7 col-xl-6",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-grow-1",children:m.jsx(FT,{disabled:f,dateRangeOrInterval:b??v??E.current,defaultText:"All visits",onDatesChange:S})}),m.jsx(Bz,{disabled:f,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:te,onChange:({loadPrevInterval:j,...N})=>x({visitsFilter:N,loadPrevInterval:j})})]})}),l.length>0&&m.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:m.jsxs("div",{className:"d-flex",children:[m.jsx(J9,{className:"btn-md-block",amount:q.length,onClick:()=>a(q)}),m.jsxs(Ye,{outline:!0,disabled:P.length===0,className:"btn-md-block ms-2",onClick:()=>ae([]),children:["Clear selection ",P.length>0&&m.jsxs(m.Fragment,{children:["(",Yt(P.length),")"]})]})]})})]})}),m.jsxs("section",{className:"mt-3",children:[m.jsx(Uz,{info:n}),!f&&!d&&m.jsxs(m.Fragment,{children:[m.jsx(L8,{fill:!0,children:Object.values(Sa).map(({title:j,icon:N,subPath:U,shouldRender:J},Y)=>!J||J(e)?m.jsxs(Dd,{to:F(U),replace:!0,children:[m.jsx(je,{icon:N}),m.jsx("span",{className:"ms-2 d-none d-lg-inline",children:j})]},Y):void 0).filter(Boolean)}),m.jsx(nr,{children:m.jsxs(H0,{children:[m.jsx(lt,{path:Sa.byTime.subPath,element:m.jsxs(rg,{showFallback:l.length===0,children:[m.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:m.jsx(Iz,{visitsGroups:K,setSelectedVisits:ae})}),m.jsx(wx,{display:!!te.loadPrevInterval&&!u})]})}),m.jsx(lt,{path:Sa.byContext.subPath,element:m.jsxs(rg,{showFallback:l.length===0,children:[m.jsx("div",{className:Pe("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(C$,{title:"Operating systems",stats:X,prevStats:ee.os})}),m.jsx("div",{className:Pe("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(C$,{title:"Browsers",stats:Q,prevStats:ee.browsers})}),m.jsx("div",{className:Pe("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:m.jsx(Tv,{title:"Referrers",withPagination:!1,stats:ne,prevStats:ee.referrers,highlightedStats:Sv(P,"referer"),highlightedLabel:A,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:j=>fe("referer",j)})}),s&&m.jsx("div",{className:"mt-3 col-lg-6",children:m.jsx(Tv,{title:"Visited URLs",stats:H,prevStats:ee.visitedUrls,highlightedStats:Sv(P,"visitedUrl"),highlightedLabel:A,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:j=>fe("visitedUrl",j)})}),m.jsx("div",{className:"col-12",children:m.jsx(wx,{display:!!te.loadPrevInterval&&!u})})]})}),m.jsx(lt,{path:Sa.byLocation.subPath,element:m.jsxs(rg,{showFallback:l.length===0,children:[m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Tv,{title:"Countries",stats:Z,prevStats:ee.countries,highlightedStats:Sv(P,"country"),highlightedLabel:A,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:j=>fe("country",j)})}),m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Tv,{title:"Cities",stats:z,prevStats:ee.cities,highlightedStats:Sv(P,"city"),highlightedLabel:A,extraHeaderContent:j=>ie.length>0&&m.jsx(r5e,{modalTitle:"Cities",locations:ie,activeCities:j}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:j=>fe("city",j)})}),m.jsx("div",{className:"col-12",children:m.jsx(wx,{display:!!te.loadPrevInterval&&!u})})]})}),m.jsx(lt,{path:Sa.list.subPath,element:m.jsx("div",{className:"col-12",children:m.jsx(_5e,{visits:q,selectedVisits:P,setSelectedVisits:ae})})}),o&&m.jsx(lt,{path:Sa.options.subPath,element:m.jsx("div",{className:"col-12 mt-3",children:m.jsx(i5e,{...o})})}),m.jsx(lt,{path:"*",element:m.jsx(nP,{replace:!0,to:F(Sa.byTime.subPath)})})]})})]})]})]})},Wz=qi(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=It(Wz),{domain:i=""}=Gc(),[o,a=o]=i.split("_"),s=R.useCallback((u,f)=>e({domain:a,options:f,params:u}),[a,e]),l=R.useCallback(u=>r.exportVisits(`domain_${o}_visits.csv`,u),[o,r]);return m.jsx(am,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:l,children:m.jsx(om,{visits:t.visits,title:`"${o}" visits`})})},()=>[cr.visits]),x5e=Dt(Wz,["ReportExporter"]),Hz=qi(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=It(Hz),i=R.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=R.useCallback((a,s)=>e({options:s,params:a}),[e]);return m.jsx(am,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:m.jsx(om,{title:"Non-orphan visits",visits:t.visits})})},()=>[cr.visits]),w5e=Dt(Hz,["ReportExporter"]),Gz=qi(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=cs("orphanVisitsDeletion"),{ReportExporter:a}=It(Gz),s=R.useCallback(f=>a.exportVisits("orphan_visits.csv",f),[a]),l=R.useCallback((f,d)=>{var h;return e({options:d,params:f,orphanVisitsType:(h=f.filter)==null?void 0:h.orphanVisitsType})},[e]),u=R.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return m.jsx(am,{getVisits:l,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:m.jsx(om,{title:"Orphan visits",visits:t.visits})})},()=>[cr.orphanVisits]),O5e=Dt(Gz,["ReportExporter"]),qz="shlink/orphanVisits",S5e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},E5e=e=>nm({typePrefix:`${qz}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=tm(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),P5e=e=>rm({name:qz,initialState:S5e,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>em(o.date,r,i))}}),Kz="shlink/orphanVisits",C5e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},T5e=(e,t)=>!t||t===e.type,j5e=({data:e,...t},n)=>{const r=e.filter(i=>MT(i)&&T5e(i,n));return{...t,data:r}},A5e=e=>nm({typePrefix:`${Kz}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits({...s,type:t}).then(l=>j5e(l,t)),a=tm(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),k5e=(e,t)=>rm({name:Kz,initialState:C5e,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:o}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:a,shortUrl:s})=>!s&&em(a.date,i,o))}}),Yz="shlink/orphanVisitsDeletion",N$={deletedVisits:0,deleting:!1,error:!1},N5e=e=>gn(`${Yz}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),M5e=e=>nn({name:Yz,initialState:N$,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Kr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...N$,deletedVisits:i}})}}),Zz="shlink/shortUrlVisits",R5e={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},L5e=e=>nm({typePrefix:`${Zz}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=l=>i.getShortUrlVisits(t,{...l,domain:n}),s=tm(o,l=>i.getShortUrlVisits(t,{...l,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),$5e=(e,t)=>rm({name:Zz,initialState:R5e,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},o)=>x9(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),Xz="shlink/shortUrlVisitsDeletion",M$={shortCode:"",deletedVisits:0,deleting:!1,error:!1},I5e=e=>gn(`${Xz}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),D5e=e=>nn({name:Xz,initialState:M$,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Kr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...M$,shortCode:i,domain:o,deletedVisits:a}})}}),Qz="shlink/tagVisits",F5e={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},B5e=e=>nm({typePrefix:`${Qz}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=tm(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),U5e=e=>rm({name:Qz,initialState:F5e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>O9(r,t,n==null?void 0:n.dateRange)}),Jz="shlink/visitsOverview",kv={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},R$=e=>e.filter(({visit:t})=>t.potentialBot).length,z5e=e=>gn(`${Jz}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),V5e=e=>nn({name:Jz,initialState:kv,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...kv,loading:!0})),t.addCase(e.rejected,()=>({...kv,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...kv,...r})),t.addCase(bf,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=m$e(o.createdVisits),l=a.length,u=R$(a),f=l-u,d=s.length,h=R$(s),v=d-h;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+u,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+d,bots:r.bots&&r.bots+h,nonBots:r.nonBots&&r.nonBots+v}}})}}),W5e=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",o=(e==null?void 0:e.longUrl)??"",a=e==null?void 0:e.title;return m.jsxs(om,{title:m.jsxs(m.Fragment,{children:["Visits for ",m.jsx(Sr,{href:i})]}),visits:r,shortUrl:e,children:[m.jsx("hr",{}),m.jsxs("div",{children:["Created: ",e?m.jsxs("span",{children:[m.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:m.jsx(_0,{date:e.dateCreated,relative:!0})}),m.jsx(Cr,{placement:"bottom",target:"created",children:m.jsx(_0,{date:e.dateCreated})})]}):m.jsx("small",{children:"Loading..."})]}),m.jsxs("div",{className:"long-url-container",children:[`${a?"Title":"Long URL"}: `,t&&m.jsx("small",{children:"Loading..."}),!t&&m.jsx(Sr,{href:o,children:a??o})]})]})},eV=qi(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=cs("shortUrlVisitsDeletion"),{ReportExporter:l}=It(eV),u=DT(),f=R.useMemo(()=>{var g;return(g=n.shortUrls)==null?void 0:g.get(u)},[u,n.shortUrls]),d=R.useCallback((g,y)=>r({...u,options:y,params:g}),[r,u]),h=R.useCallback(g=>l.exportVisits(`short-url_${f==null?void 0:f.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,g),[l,f==null?void 0:f.shortUrl]),v=R.useMemo(()=>s?{deleteVisits:()=>o(u),visitsDeletion:t}:void 0,[o,u,t,s]);return R.useEffect(()=>{i([u])},[u,i]),m.jsx(am,{getVisits:d,cancelGetVisits:a,visitsInfo:e,exportCsv:h,deletion:v,children:m.jsx(W5e,{shortUrl:f,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[cr.shortUrlVisits(jT(e.shortCode))]:[]),H5e=Dt(eV,["ReportExporter"]),G5e=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return m.jsx(om,{title:m.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[m.jsx("span",{className:"me-2",children:"Visits for"}),m.jsx(s1,{text:r,colorGenerator:t})]}),visits:n})},tV=qi(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=It(tV),{tag:o=""}=Gc(),a=R.useCallback((l,u)=>e({tag:o,params:l,options:u}),[e,o]),s=R.useCallback(l=>i.exportVisits(`tag_${o}_visits.csv`,l),[i,o]);return m.jsx(am,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:m.jsx(G5e,{tagVisits:t,colorGenerator:r})})},()=>[cr.visits]),q5e=Dt(tV,["ColorGenerator","ReportExporter"]),WT=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=Tr("visits"),l=R.useMemo(()=>Object.keys(a).reduce((b,w,S)=>(b[w]=Object.assign(O0(a[w]),{color:(t==null?void 0:t[w])??Lz(S)}),b),{}),[t,a]),u=R.useMemo(()=>Object.values(a).every(b=>b.length===0),[a]),[{dateRange:f,visitsFilter:d},h]=Dz(),[v,g]=R.useState(),y=R.useCallback(({startDate:b,endDate:w},S)=>{h({dateRange:{startDate:b??void 0,endDate:w??void 0}}),g(S)},[h]),x=R.useRef(f??(s==null?void 0:s.defaultInterval)??"last30Days"),_=R.useMemo(()=>({...d,excludeBots:d.excludeBots??(s==null?void 0:s.excludeBots)}),[d,s==null?void 0:s.excludeBots]);return R.useEffect(()=>{const b=f??b9(x.current);return n({params:{dateRange:b,filter:_}}),i},[i,f,n,_]),m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mb-3",children:m.jsxs(Ot,{bodyClassName:"d-flex",children:[m.jsx(a1,{}),m.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),m.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-grow-1",children:m.jsx(FT,{disabled:o,defaultText:"All visits",dateRangeOrInterval:v??x.current,onDatesChange:y})}),m.jsx(Bz,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:_,onChange:({orphanVisitsType:b,excludeBots:w})=>h({visitsFilter:{orphanVisitsType:b,excludeBots:w}})})]})}),m.jsx(Uz,{info:r}),!o&&m.jsx(rg,{showFallback:u,children:m.jsx(Iz,{visitsGroups:l})})]})},K5e=qi(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=LT("domains"),i=R.useCallback(o=>e({...o,domains:r}),[r,e]);return m.jsx(WT,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[cr.visits]),Y5e=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(l=>[l,0])),a=(l,u)=>{o[l]=u;const f=Object.values(o),d=f.reduce((h,v)=>h+v,0);n(d/f.length)},s=Object.entries(e).map(([l,u])=>[l,S9({visitsLoader:u,batchSize:i,shouldCancel:t,progressChanged:f=>a(l,f)})]);return async l=>{const u=await Promise.all(s.map(async([f,d])=>{const h=await d(l);return[f,h]}));return Object.fromEntries(u)}},HT=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=mn(`${e}/progressChanged`),i=gn(e,async(o,{getState:a,dispatch:s})=>{const l=t(o),u=await Y5e({visitsLoaders:l,shouldCancel:()=>n(a),progressChanged:f=>s(r(f))})(YS(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:r})},GT=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:l,actions:u}=nn({name:e,initialState:n,reducers:{cancelGetVisits:d=>({...d,cancelLoad:!0})},extraReducers:d=>{d.addCase(i,()=>({...n,loading:!0})),d.addCase(o,(h,{error:v})=>({...n,errorData:Kr(v)??null})),d.addCase(a,(h,{payload:v})=>({...h,...v,loading:!1,progress:null,errorData:null})),d.addCase(s,(h,{payload:v})=>({...h,progress:v})),d.addCase(bf,(h,{payload:v})=>{const{visitsGroups:g,...y}=h,x=Object.keys(g).map(b=>{const w=r({...y,groupKey:b},v.createdVisits).map(({visit:S})=>S);return[b,[...w,...g[b]]]}),_=Object.fromEntries(x);return{...y,visitsGroups:_}})}}),{cancelGetVisits:f}=u;return{reducer:l,cancelGetVisits:f}},nV="shlink/domainVisitsComparison",Z5e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},X5e=e=>HT({typePrefix:`${nV}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getDomainVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),Q5e=e=>GT({name:nV,initialState:Z5e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>w9(r,t,n==null?void 0:n.dateRange)}),rV="shlink/shortUrlVisitsComparison",J5e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},e8e=e=>HT({typePrefix:`${rV}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[AT(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),t8e=e=>GT({name:rV,initialState:J5e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>x9(r,d9(t),n==null?void 0:n.dateRange)}),iV="shlink/tagVisitsComparison",n8e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},r8e=e=>HT({typePrefix:`${iV}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getTagVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),i8e=e=>GT({name:iV,initialState:n8e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>O9(r,t,n==null?void 0:n.dateRange)}),o8e=qi(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=LT("short-urls"),a=R.useMemo(()=>o.map(d9),[o]),s=R.useCallback(f=>e({...f,shortUrls:a}),[e,a]),l=R.useMemo(()=>{var f;return[...((f=r.shortUrls)==null?void 0:f.values())??[]]},[r.shortUrls]),u=R.useMemo(()=>{const{visitsGroups:f,loading:d,...h}=t,v=l.reduce((g,y)=>(g[y.shortUrl]=f[AT(y)]??[],g),{});return{...h,visitsGroups:v,loading:d||r.loading}},[t,r.loading,l]);return R.useEffect(()=>{a.length>0&&i(a)},[i,a]),m.jsx(WT,{title:m.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${l.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:n})},()=>[cr.visits]),oV=qi(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=It(oV),i=LT("tags"),o=R.useCallback(l=>e({...l,tags:i}),[e,i]),{visitsGroups:a}=t,s=R.useMemo(()=>Object.keys(a).reduce((l,u)=>(l[u]=r.getColorForKey(u),l),{}),[r,a]);return m.jsx(WT,{title:m.jsxs(m.Fragment,{children:["Comparing ",i.map(l=>m.jsx(s1,{colorGenerator:r,text:l},l))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[cr.visits]),a8e=Dt(oV,["ColorGenerator"]),s8e=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>Fz),e.factory("ShortUrlVisits",H5e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",q5e),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",a8e),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>K5e),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>o8e),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",x5e),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",O5e),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",w5e),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>m5e),e.serviceFactory("getShortUrlVisits",L5e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",e8e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",I5e,"apiClientFactory"),e.serviceFactory("getTagVisits",B5e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",r8e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",S$e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",X5e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",A5e,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",N5e,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",E5e,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>bf),e.serviceFactory("loadVisitsOverview",z5e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",V5e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",E$e,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",P5e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",k5e,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",M5e,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",$5e,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",D5e,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",U5e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",i8e,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",Q5e,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",t8e,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},ad=({children:e,to:t,className:n,...r})=>m.jsx(_D,{className:({isActive:i})=>Pe("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),l8e=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=hr(),r=Pe("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return m.jsx("aside",{className:r,children:m.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[m.jsxs(ad,{to:i("/overview"),children:[m.jsx(je,{fixedWidth:!0,icon:kZ}),m.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),m.jsxs(ad,{to:i("/list-short-urls/1"),className:Pe({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[m.jsx(je,{fixedWidth:!0,icon:$D}),m.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),m.jsxs(ad,{to:i("/create-short-url"),children:[m.jsx(je,{fixedWidth:!0,icon:IZ,flip:"horizontal"}),m.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),m.jsxs(ad,{to:i("/manage-tags"),children:[m.jsx(je,{fixedWidth:!0,icon:ID}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),m.jsxs(ad,{to:i("/manage-domains"),children:[m.jsx(je,{fixedWidth:!0,icon:uZ}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},aV=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:l,Overview:u,EditShortUrl:f,ManageDomains:d,TagVisitsComparison:h,DomainVisitsComparison:v,ShortUrlVisitsComparison:g,ShortUrlRedirectRules:y}=It(aV),x=hr(),_=Os(),[b,w,S,E]=Zt();R.useEffect(()=>E(),[x,E]);const P=Pe("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":b}),T=j$e(S,E),A=cs("shortUrlRedirectRules");return m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:iZ,className:P,onClick:w}),m.jsx("div",{...T,className:"shlink-layout__swipeable",children:m.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[m.jsx(l8e,{routePrefix:_,showOnMobile:b}),m.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>E(),children:m.jsx("div",{className:"container-xl",children:m.jsxs(H0,{children:[m.jsx(lt,{index:!0,element:m.jsx(nP,{replace:!0,to:"overview"})}),m.jsx(lt,{path:"/overview",element:m.jsx(u,{})}),m.jsx(lt,{path:"/list-short-urls/:page",element:m.jsx(n,{})}),m.jsx(lt,{path:"/create-short-url",element:m.jsx(r,{})}),m.jsx(lt,{path:"/short-code/:shortCode/visits/*",element:m.jsx(i,{})}),m.jsx(lt,{path:"/short-code/:shortCode/edit",element:m.jsx(f,{})}),A&&m.jsx(lt,{path:"/short-code/:shortCode/redirect-rules",element:m.jsx(y,{})}),m.jsx(lt,{path:"/short-urls/compare-visits",element:m.jsx(g,{})}),m.jsx(lt,{path:"/tag/:tag/visits/*",element:m.jsx(o,{})}),m.jsx(lt,{path:"/tags/compare-visits",element:m.jsx(h,{})}),m.jsx(lt,{path:"/domain/:domain/visits/*",element:m.jsx(a,{})}),m.jsx(lt,{path:"/orphan-visits/*",element:m.jsx(s,{})}),m.jsx(lt,{path:"/non-orphan-visits/*",element:m.jsx(l,{})}),m.jsx(lt,{path:"/manage-tags",element:m.jsx(t,{})}),m.jsx(lt,{path:"/manage-domains",element:m.jsx(d,{})}),m.jsx(lt,{path:"/domains/compare-visits",element:m.jsx(v,{})}),e&&m.jsx(lt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},u8e=Dt(aV,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),c8e=!0,f8e=e=>Q8({devTools:!c8e,reducer:nC({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})}),d8e=e=>{e.factory("Main",u8e),e.factory("store",f8e)},Ki=new kD,{container:h8e}=Ki,p8e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),m8e=(e,t)=>(...n)=>e[t](...n),v8e=(e,t)=>({...e,[t]:m8e(h8e,t)}),_f=(e,t=[])=>sD(e?p8e(e):null,t.reduce(v8e,{}));d8e(Ki);X6e(Ki,_f);_De(Ki,_f);s8e(Ki,_f);z$e(Ki);F$e(Ki,_f);J$e(Ki,_f);$De(Ki);l6e(Ki,_f);let L$;const g8e=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=T6e(t),l=R.useRef(),[u,f]=R.useState(),d=Ll(),h=R.useMemo(()=>d?R.Fragment:bD,[d]);return R.useEffect(()=>{L$=n,e.value("apiClientFactory",()=>L$),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:g,store:y,loadMercureInfo:x,listTags:_}=v;l.current=m.jsx(g,{createNotFound:o}),f(y),y.dispatch(x(r)),y.dispatch(_())},[n,o,r,a]),u?m.jsx(lD,{store:u,children:m.jsx(gF,{value:r??{},children:m.jsx(C6e,{value:s,children:m.jsx(r$e,{value:i,children:m.jsx(h,{children:l.current})})})})}):m.jsx(m.Fragment,{})},y8e="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=",b8e="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==",_8e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",x8e=()=>{delete t$.Icon.Default.prototype._getIconUrl,t$.Icon.Default.mergeOptions({iconRetinaUrl:b8e,iconUrl:y8e,shadowUrl:_8e})};x8e();const w8e=g8e(Ki);function S0(e){return t=>{const{resetSelectedServer:n}=t;return R.useEffect(()=>{n()},[n]),m.jsx(e,{...t})}}let O8e=class extends R.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return m.jsx("div",{className:"home",children:m.jsxs(Ot,{className:"p-4",children:[m.jsx("h1",{children:"Oops! This is awkward :S"}),m.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),m.jsx("br",{}),m.jsx(Ye,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const S8e=({id:e,name:t})=>m.jsxs(l8,{tag:Pt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,m.jsx(je,{icon:VZ,className:"servers-list__server-item-icon"})]}),sV=({servers:e,children:t,embedded:n=!1})=>m.jsxs(m.Fragment,{children:[t&&m.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&m.jsx(o8,{"data-testid":"list",tag:"div",className:Pe("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>m.jsx(S8e,{id:r,name:i},r))})]}),lV=({color:e=Th,className:t})=>m.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:m.jsxs("g",{fill:e,children:[m.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"}),m.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"}),m.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"}),m.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"})]})}),E8e=({servers:e})=>{const t=So(),n=Object.values(e),r=n.length>0;return R.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),m.jsx("div",{className:"home",children:m.jsx(Er,{className:"home__main-card",children:m.jsxs(nr,{className:"g-0",children:[m.jsx("div",{className:"col-md-5 d-none d-md-block",children:m.jsx("div",{className:"home__logo-wrapper",children:m.jsx("div",{className:"home__logo",children:m.jsx(lV,{})})})}),m.jsxs("div",{className:"col-md-7 home__servers-container",children:[m.jsx("div",{className:"home__title-wrapper",children:m.jsx("h1",{className:"home__title",children:"Welcome!"})}),m.jsx(sV,{embedded:!0,servers:n,children:!r&&m.jsxs("div",{className:"p-4 text-center",children:[m.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),m.jsx("p",{children:m.jsxs(Pt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[m.jsx(je,{icon:Cp})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]})}),m.jsx("p",{className:"mb-0 mt-5",children:m.jsx(Sr,{href:"https://shlink.io/documentation",children:m.jsxs("small",{children:[m.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",m.jsx(je,{icon:xZ})]})})})]})})]})]})})})},uV=()=>{const{ServersDropdown:e}=Wi(uV),[t,n,,r]=Zt(),i=hr(),{pathname:o}=i;R.useEffect(r,[i,r]);const a="/settings",s=Pe("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return m.jsxs(E5,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[m.jsxs(P5,{tag:Pt,to:"/",children:[m.jsx(lV,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),m.jsx(C5,{onClick:n,children:m.jsx(je,{icon:BZ,className:s})}),m.jsx(Wne,{navbar:!0,isOpen:t,children:m.jsxs(CP,{navbar:!0,className:"ms-auto",children:[m.jsx(TP,{children:m.jsxs(A5,{tag:Pt,to:a,active:o.startsWith(a),children:[m.jsx(je,{icon:GZ})," Settings"]})}),m.jsx(e,{})]})})]})},P8e=Hi(uV,["ServersDropdown"]),C8e=({children:e})=>{const t=hr();return R.useEffect(()=>{scrollTo(0,0)},[t]),m.jsx(m.Fragment,{children:e})},cV=rF(e=>e,e=>{try{return gO(e,e,"=")}catch{return!1}}),fV=e=>cV(e)?`v${e}`:e,dV=(e,t="latest")=>cV(e)?e:t,T8e="%_VERSION_%",j8e=e=>fV(dV(e)),$$=({project:e,version:t})=>m.jsx(Sr,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:m.jsx("b",{children:t})}),A8e=({selectedServer:e,clientVersion:t=T8e})=>{const n=j8e(t);return m.jsxs("small",{className:"text-muted",children:[sP(e)&&m.jsxs(m.Fragment,{children:["Server: ",m.jsx($$,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",m.jsx($$,{project:"shlink-web-client",version:n})]})},k8e=({selectedServer:e})=>m.jsx("div",{className:Pe("text-center",{"shlink-versions-container--with-sidebar":sP(e)}),children:m.jsx(A8e,{selectedServer:e})}),xf=({children:e})=>m.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function hV(e){const t=n=>{const{ServerError:r}=Wi(t),i=Gc(),{selectServer:o,selectedServer:a}=n;return R.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?GY(a)?m.jsx(r,{}):m.jsx(e,{...n}):m.jsx(xf,{children:m.jsx(ea,{loading:!0})})};return t}const pV=hV(R.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Wi(pV);if(!sP(e))return m.jsx(o,{});const a=`/server/${e.id}`;return m.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:a,tagColorsStorage:r,createNotFound:s=>m.jsx(I8,{to:`${a}${s}`,children:"List short URLs"})})})),N8e=Hi(pV,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),M8e=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Sue,"fetch"),e.serviceFactory("ScrollToTop",()=>C8e),e.factory("MainHeader",P8e),e.serviceFactory("Home",()=>E8e),e.decorator("Home",S0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>w8e),e.factory("ShlinkWebComponentContainer",N8e),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>k8e),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>O8e)},mV=()=>{const e=So();return R.useCallback(()=>e(-1),[e])},R8e=()=>{const{search:e}=hr();return R.useMemo(()=>XP(e),[e])},vV=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return m.jsxs(Eo,{centered:!0,isOpen:e,children:[m.jsxs(Po,{children:["Duplicated server",i&&"s"]}),m.jsxs(Vi,{children:[m.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),m.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?m.jsxs("li",{children:[m.jsx("b",{children:o})," - ",m.jsx("b",{children:a})]},s):m.jsxs(R.Fragment,{children:[m.jsxs("li",{children:["URL: ",m.jsx("b",{children:o})]}),m.jsxs("li",{children:["API key: ",m.jsx("b",{children:a})]})]},s))}),m.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),m.jsxs(vs,{children:[m.jsx(Ye,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),m.jsx(Ye,{color:"primary",onClick:r,children:"Save anyway"})]})]})},L8e=e=>t=>{t.preventDefault(),e()},gV=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=R.useState(""),[a,s]=R.useState(""),[l,u]=R.useState(""),f=L8e(()=>e({name:i,url:a,apiKey:l}));return R.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&u(t.apiKey)},[t]),m.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[m.jsxs(Ot,{className:"mb-3",title:r,children:[m.jsx(Xv,{value:i,onChange:o,children:"Name"}),m.jsx(Xv,{type:"url",value:a,onChange:s,children:"URL"}),m.jsx(Xv,{value:l,onChange:u,children:"API key"})]}),m.jsx("div",{className:"text-end",children:n})]})},I$=4e3,D$=({type:e})=>m.jsx("div",{className:"mt-3",children:m.jsxs(lr,{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."]})}),yV=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Wi(yV),i=So(),o=mV(),a=!!Object.keys(e).length,[s,l]=r(!1,I$),[u,f]=r(!1,I$),[d,h]=Zt(),[v,g]=R.useState(),y=R.useCallback(x=>{const _=VP();t([{...x,id:_}]),i(`/server/${_}`)},[t,i]);return R.useEffect(()=>{if(!v)return;Object.values(e).some(({url:_,apiKey:b})=>(v==null?void 0:v.url)===_&&(v==null?void 0:v.apiKey)===b)?h():y(v)},[y,v,e,h]),m.jsxs(xf,{children:[m.jsxs(gV,{title:m.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:g,children:[!a&&m.jsx(n,{tooltipPlacement:"top",onImport:l,onImportError:f}),a&&m.jsx(Ye,{outline:!0,onClick:o,children:"Cancel"}),m.jsx(Ye,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&m.jsx(D$,{type:"success"}),u&&m.jsx(D$,{type:"error"}),m.jsx(vV,{isOpen:d,duplicatedServers:v?[v]:[],onDiscard:o,onSave:()=>v&&y(v)})]})},$8e=Hi(yV,["ImportServersBtn","useTimeoutToggle"]),bV=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Wi(bV),[o,,a,s]=Zt();return m.jsxs(m.Fragment,{children:[m.jsxs("button",{type:"button",className:Pe(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&m.jsx(je,{fixedWidth:!0,icon:lP}),m.jsx("span",{className:r,children:n??"Remove this server"})]}),m.jsx(i,{server:e,isOpen:o,toggle:s})]})},I8e=Hi(bV,["DeleteServerModal"]),D8e=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=So(),a=R.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return m.jsxs(Eo,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[m.jsx(Po,{toggle:t,className:"text-danger",children:"Remove server"}),m.jsxs(Vi,{children:[m.jsxs("p",{children:["Are you sure you want to remove ",m.jsx("b",{children:e?e.name:""}),"?"]}),m.jsx("p",{children:m.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."})})]}),m.jsxs(vs,{children:[m.jsx(Ye,{color:"link",onClick:t,children:"Cancel"}),m.jsx(Ye,{color:"danger",onClick:s,children:"Delete"})]})]})},F8e=hV(({editServer:e,selectedServer:t,selectServer:n})=>{const r=mV(),{reconnect:i}=R8e();if(!jd(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return m.jsx(xf,{children:m.jsxs(gV,{title:m.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[m.jsx(Ye,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),m.jsx(Ye,{outline:!0,color:"primary",children:"Save"})]})})}),B8e=Hi(F8e,["ServerError"]),F$=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),_V=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Wi(_V),l=ua(),[u,f]=R.useState([]),[d,,h,v]=Zt(),g=R.useRef([]),y=R.useCallback(w=>{e(w),r()},[e,r]),x=R.useCallback(async({target:w})=>{var S;return s.importServersFromFile((S=w.files)==null?void 0:S[0]).then(E=>{g.current=E;const P=Object.values(t),T=E.filter(D=>F$(P,D)),A=!!T.length;A?f(T):y(E),A&&h()}).then(()=>{w.value=null}).catch(i)},[y,i,t,s,h]),_=R.useCallback(()=>{y(g.current),v()},[y,v,g]),b=R.useCallback(()=>{y(g.current.filter(w=>!F$(u,w))),v()},[y,u,v]);return m.jsxs(m.Fragment,{children:[m.jsxs(Ye,{outline:!0,id:"importBtn",className:a,onClick:()=>{var w;return(w=l.current)==null?void 0:w.click()},children:[m.jsx(je,{icon:dZ,fixedWidth:!0})," ",n??"Import from file"]}),m.jsxs(Cr,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",m.jsx("b",{children:"name"}),", ",m.jsx("b",{children:"apiKey"})," and ",m.jsx("b",{children:"url"})," columns."]}),m.jsx("input",{type:"file",accept:".csv",className:"d-none",ref:l,onChange:x,"aria-hidden":!0}),m.jsx(vV,{isOpen:d,duplicatedServers:u,onDiscard:b,onSave:_})]})},U8e=Hi(_V,["ServersImporter"]),xV=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Wi(xV);return m.jsx(xf,{children:m.jsxs("div",{className:"server-error__container flex-column",children:[m.jsxs(ea,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!jd(t)&&"Could not find this Shlink server.",jd(t)&&m.jsxs(m.Fragment,{children:[m.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."]})]}),m.jsx(sV,{servers:Object.values(e),children:m.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",m.jsx(Pt,{to:"/server/create",children:"add a new one"}),"."]})}),jd(t)&&m.jsx("div",{className:"container mt-3 mt-md-5",children:m.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",m.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",m.jsx(Pt,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},z8e=Hi(xV,["DeleteServerButton"]),V8e=4e3,wV=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Wi(wV),o=Object.values(e),[a,s]=R.useState(o),l=h=>s(o.filter(({name:v,url:g})=>`${v} ${g}`.toLowerCase().match(h.toLowerCase()))),u=a.some(({autoConnect:h})=>!!h),[f,d]=r(!1,V8e);return R.useEffect(()=>{s(Object.values(e))},[e]),m.jsxs(xf,{children:[m.jsx(Bp,{className:"mb-3",onChange:l}),m.jsxs(nr,{className:"mb-3",children:[m.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[m.jsx(n,{className:"flex-fill",onImportError:d,children:"Import servers"}),o.length>0&&m.jsxs(Ye,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[m.jsx(je,{icon:DD,fixedWidth:!0})," Export servers"]})]}),m.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:m.jsxs(Ye,{outline:!0,color:"primary",className:"flex-fill",tag:Pt,to:"/server/create",children:[m.jsx(je,{icon:Cp,fixedWidth:!0})," Add a server"]})})]}),m.jsx(Ot,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsxs("tr",{children:[u&&m.jsx("th",{style:{width:"50px"},children:m.jsx("span",{className:"sr-only",children:"Auto-connect"})}),m.jsx("th",{children:"Name"}),m.jsx("th",{children:"Base URL"}),m.jsx("th",{children:m.jsx("span",{className:"sr-only",children:"Options"})})]})}),m.jsxs("tbody",{children:[!a.length&&m.jsx("tr",{className:"text-center",children:m.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(h=>m.jsx(i,{server:h,hasAutoConnect:u},h.id))]})]})}),f&&m.jsx("div",{className:"mt-3",children:m.jsx(lr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},W8e=Hi(wV,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),OV=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Wi(OV);return m.jsxs("tr",{className:"responsive-table__row",children:[t&&m.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:vh,className:"text-primary",id:"autoConnectIcon"}),m.jsx(Cr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:m.jsx(Pt,{to:`/server/${e.id}`,children:e.name})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(n,{server:e})})]})},H8e=Hi(OV,["ManageServersRowDropdown"]),SV=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Wi(SV),[r,,i,o]=Zt(),a=`/server/${e.id}`,{autoConnect:s}=e,l=s?cZ:Mfe;return m.jsxs(rb,{minWidth:s?210:170,children:[m.jsxs(Ne,{tag:Pt,to:a,children:[m.jsx(je,{icon:lZ,fixedWidth:!0})," Connect"]}),m.jsxs(Ne,{tag:Pt,to:`${a}/edit`,children:[m.jsx(je,{icon:uP,fixedWidth:!0})," Edit server"]}),m.jsxs(Ne,{onClick:()=>t(e,!s),children:[m.jsx(je,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{className:"dropdown-item--danger",onClick:i,children:[m.jsx(je,{icon:lP,fixedWidth:!0})," Remove server"]}),m.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},G8e=Hi(SV,["DeleteServerModal"]),EV=(e,t)=>tF(e,t,{serializeError:n=>n}),q8e={},K8e=e=>"id"in e?e:{...e,id:VP()},Y8e=e=>e.reduce((t,n)=>({...t,[n.id]:n}),{}),{actions:Z8e,reducer:X8e}=nn({name:"shlink/servers",initialState:q8e,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?{...e,[n]:{...e[n],...r}}:e}},deleteServer:(e,{payload:t})=>(delete e[t.id],e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:Y8e(e.map(K8e))}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:Q8e,deleteServer:J8e,setAutoConnect:eFe,createServers:PV}=Z8e,tFe=X8e,nFe=e=>Array.isArray(e)?e.filter(ND):[],rFe=e=>EV("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${Ng.homepage}/servers.json`),i=nFe(r);n(PV(i))}),qT="shlink/selectedServer",iFe="1.0.0",oFe="999.999.999",aFe="latest",sFe=e=>dV(e===aFe?oFe:e,iFe),lFe=rF(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:sFe(n),printableVersion:fV(n)}))),B$=null,KT=mn(`${qT}/resetSelectedServer`),uFe=e=>EV(`${qT}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(KT());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:l}=await lFe(o,()=>a.health());return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),cFe=e=>nn({name:qT,initialState:B$,reducers:{},extraReducers:t=>{t.addCase(KT,()=>B$),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),fFe=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?m.jsxs(Ne,{tag:Pt,to:"/server/create",children:[m.jsx(je,{icon:Cp})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]}):m.jsxs(m.Fragment,{children:[n.map(({name:i,id:o})=>m.jsx(Ne,{tag:Pt,to:`/server/${o}`,active:qY(t)===o,children:i},o)),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{tag:Pt,to:"/manage-servers",children:[m.jsx(je,{icon:bk})," ",m.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return m.jsxs($p,{nav:!0,inNavbar:!0,children:[m.jsxs(Yc,{nav:!0,caret:!0,children:[m.jsx(je,{icon:bk})," ",m.jsx("span",{className:"ms-1",children:"Servers"})]}),m.jsx(Kc,{end:!0,style:{right:0},children:r()})]})},dFe=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},hFe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);dFe(e,i,n)},pFe="shlink-servers.csv";class mFe{constructor(t,n,r){Xl(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(KY);try{const n=this.jsonToCsv(t);hFe(this.window,n,pFe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const vFe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",gFe=e=>Array.isArray(e)&&e.every(vFe);class yFe{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.csvToJson(n);if(!gFe(r))throw new Error("Provided file does not have the right format.");return r}}const bFe=(e,t)=>{e.factory("ManageServers",W8e),e.decorator("ManageServers",S0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",H8e),e.factory("ManageServersRowDropdown",G8e),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",$8e),e.decorator("CreateServer",S0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",B8e),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>fFe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>D8e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",I8e),e.factory("ImportServersBtn",U8e),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",z8e),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",yFe,"csvToJson"),e.service("ServersExporter",mFe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",uFe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>PV),e.serviceFactory("deleteServer",()=>J8e),e.serviceFactory("editServer",()=>Q8e),e.serviceFactory("setAutoConnect",()=>eFe),e.serviceFactory("fetchServers",rFe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>KT),e.serviceFactory("selectedServerReducerCreator",cFe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},CV={field:"dateCreated",dir:"DESC"},_Fe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:eC()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:CV}},{reducer:xFe,actions:wFe}=nn({name:"shlink/settings",initialState:_Fe,reducers:{setSettings:(e,{payload:t})=>ub(e,t)}}),{setSettings:OFe}=wFe,SFe=xFe,EFe=({settings:e,setSettings:t})=>m.jsx(xf,{children:m.jsx(Afe,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:CV})}),PFe=(e,t)=>{e.serviceFactory("Settings",()=>EFe),e.decorator("Settings",S0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>OFe)};var CFe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(g){var y=[];for(var x in g)y.push(x);return y};e.exports=d;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(d,a);for(var l=i(s.prototype),u=0;u<l.length;u++){var f=l[u];d.prototype[f]||(d.prototype[f]=s.prototype[f])}function d(g){if(!(this instanceof d))return new d(g);a.call(this,g),s.call(this,g),g&&g.readable===!1&&(this.readable=!1),g&&g.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,g&&g.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(v,this)}function v(g){g.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),d.prototype._destroy=function(g,y){this.push(null),this.end(),r.nextTick(y,g)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var i=n(38),o=n(39),a=n(40);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(j,N){if(s()<N)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(j=new Uint8Array(N)).__proto__=u.prototype:(j===null&&(j=new u(N)),j.length=N),j}function u(j,N,U){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(j,N,U);if(typeof j=="number"){if(typeof N=="string")throw new Error("If encoding is specified then the first argument must be a string");return h(this,j)}return f(this,j,N,U)}function f(j,N,U,J){if(typeof N=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&N instanceof ArrayBuffer?function(Y,oe,he,Se){if(oe.byteLength,he<0||oe.byteLength<he)throw new RangeError("'offset' is out of bounds");if(oe.byteLength<he+(Se||0))throw new RangeError("'length' is out of bounds");return oe=he===void 0&&Se===void 0?new Uint8Array(oe):Se===void 0?new Uint8Array(oe,he):new Uint8Array(oe,he,Se),u.TYPED_ARRAY_SUPPORT?(Y=oe).__proto__=u.prototype:Y=v(Y,oe),Y}(j,N,U,J):typeof N=="string"?function(Y,oe,he){if(typeof he=="string"&&he!==""||(he="utf8"),!u.isEncoding(he))throw new TypeError('"encoding" must be a valid string encoding');var Se=0|y(oe,he),se=(Y=l(Y,Se)).write(oe,he);return se!==Se&&(Y=Y.slice(0,se)),Y}(j,N,U):function(Y,oe){if(u.isBuffer(oe)){var he=0|g(oe.length);return(Y=l(Y,he)).length===0||oe.copy(Y,0,0,he),Y}if(oe){if(typeof ArrayBuffer<"u"&&oe.buffer instanceof ArrayBuffer||"length"in oe)return typeof oe.length!="number"||function(Se){return Se!=Se}(oe.length)?l(Y,0):v(Y,oe);if(oe.type==="Buffer"&&a(oe.data))return v(Y,oe.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(j,N)}function d(j){if(typeof j!="number")throw new TypeError('"size" argument must be a number');if(j<0)throw new RangeError('"size" argument must not be negative')}function h(j,N){if(d(N),j=l(j,N<0?0:0|g(N)),!u.TYPED_ARRAY_SUPPORT)for(var U=0;U<N;++U)j[U]=0;return j}function v(j,N){var U=N.length<0?0:0|g(N.length);j=l(j,U);for(var J=0;J<U;J+=1)j[J]=255&N[J];return j}function g(j){if(j>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|j}function y(j,N){if(u.isBuffer(j))return j.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(j)||j instanceof ArrayBuffer))return j.byteLength;typeof j!="string"&&(j=""+j);var U=j.length;if(U===0)return 0;for(var J=!1;;)switch(N){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":case void 0:return ie(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return ae(j).length;default:if(J)return ie(j).length;N=(""+N).toLowerCase(),J=!0}}function x(j,N,U){var J=j[N];j[N]=j[U],j[U]=J}function _(j,N,U,J,Y){if(j.length===0)return-1;if(typeof U=="string"?(J=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,isNaN(U)&&(U=Y?0:j.length-1),U<0&&(U=j.length+U),U>=j.length){if(Y)return-1;U=j.length-1}else if(U<0){if(!Y)return-1;U=0}if(typeof N=="string"&&(N=u.from(N,J)),u.isBuffer(N))return N.length===0?-1:b(j,N,U,J,Y);if(typeof N=="number")return N&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(j,N,U):Uint8Array.prototype.lastIndexOf.call(j,N,U):b(j,[N],U,J,Y);throw new TypeError("val must be string, number or Buffer")}function b(j,N,U,J,Y){var oe,he=1,Se=j.length,se=N.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(j.length<2||N.length<2)return-1;he=2,Se/=2,se/=2,U/=2}function pe(Ce,Ae){return he===1?Ce[Ae]:Ce.readUInt16BE(Ae*he)}if(Y){var me=-1;for(oe=U;oe<Se;oe++)if(pe(j,oe)===pe(N,me===-1?0:oe-me)){if(me===-1&&(me=oe),oe-me+1===se)return me*he}else me!==-1&&(oe-=oe-me),me=-1}else for(U+se>Se&&(U=Se-se),oe=U;oe>=0;oe--){for(var xe=!0,Te=0;Te<se;Te++)if(pe(j,oe+Te)!==pe(N,Te)){xe=!1;break}if(xe)return oe}return-1}function w(j,N,U,J){U=Number(U)||0;var Y=j.length-U;J?(J=Number(J))>Y&&(J=Y):J=Y;var oe=N.length;if(oe%2!=0)throw new TypeError("Invalid hex string");J>oe/2&&(J=oe/2);for(var he=0;he<J;++he){var Se=parseInt(N.substr(2*he,2),16);if(isNaN(Se))return he;j[U+he]=Se}return he}function S(j,N,U,J){return fe(ie(N,j.length-U),j,U,J)}function E(j,N,U,J){return fe(function(Y){for(var oe=[],he=0;he<Y.length;++he)oe.push(255&Y.charCodeAt(he));return oe}(N),j,U,J)}function P(j,N,U,J){return E(j,N,U,J)}function T(j,N,U,J){return fe(ae(N),j,U,J)}function A(j,N,U,J){return fe(function(Y,oe){for(var he,Se,se,pe=[],me=0;me<Y.length&&!((oe-=2)<0);++me)Se=(he=Y.charCodeAt(me))>>8,se=he%256,pe.push(se),pe.push(Se);return pe}(N,j.length-U),j,U,J)}function D(j,N,U){return N===0&&U===j.length?i.fromByteArray(j):i.fromByteArray(j.slice(N,U))}function k(j,N,U){U=Math.min(j.length,U);for(var J=[],Y=N;Y<U;){var oe,he,Se,se,pe=j[Y],me=null,xe=pe>239?4:pe>223?3:pe>191?2:1;if(Y+xe<=U)switch(xe){case 1:pe<128&&(me=pe);break;case 2:(192&(oe=j[Y+1]))==128&&(se=(31&pe)<<6|63&oe)>127&&(me=se);break;case 3:oe=j[Y+1],he=j[Y+2],(192&oe)==128&&(192&he)==128&&(se=(15&pe)<<12|(63&oe)<<6|63&he)>2047&&(se<55296||se>57343)&&(me=se);break;case 4:oe=j[Y+1],he=j[Y+2],Se=j[Y+3],(192&oe)==128&&(192&he)==128&&(192&Se)==128&&(se=(15&pe)<<18|(63&oe)<<12|(63&he)<<6|63&Se)>65535&&se<1114112&&(me=se)}me===null?(me=65533,xe=1):me>65535&&(me-=65536,J.push(me>>>10&1023|55296),me=56320|1023&me),J.push(me),Y+=xe}return function(Te){var Ce=Te.length;if(Ce<=I)return String.fromCharCode.apply(String,Te);for(var Ae="",le=0;le<Ce;)Ae+=String.fromCharCode.apply(String,Te.slice(le,le+=I));return Ae}(J)}t.Buffer=u,t.SlowBuffer=function(j){return+j!=j&&(j=0),u.alloc(+j)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var j=new Uint8Array(1);return j.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},j.foo()===42&&typeof j.subarray=="function"&&j.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(j){return j.__proto__=u.prototype,j},u.from=function(j,N,U){return f(null,j,N,U)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(j,N,U){return function(J,Y,oe,he){return d(Y),Y<=0?l(J,Y):oe!==void 0?typeof he=="string"?l(J,Y).fill(oe,he):l(J,Y).fill(oe):l(J,Y)}(null,j,N,U)},u.allocUnsafe=function(j){return h(null,j)},u.allocUnsafeSlow=function(j){return h(null,j)},u.isBuffer=function(j){return!(j==null||!j._isBuffer)},u.compare=function(j,N){if(!u.isBuffer(j)||!u.isBuffer(N))throw new TypeError("Arguments must be Buffers");if(j===N)return 0;for(var U=j.length,J=N.length,Y=0,oe=Math.min(U,J);Y<oe;++Y)if(j[Y]!==N[Y]){U=j[Y],J=N[Y];break}return U<J?-1:J<U?1:0},u.isEncoding=function(j){switch(String(j).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(j,N){if(!a(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return u.alloc(0);var U;if(N===void 0)for(N=0,U=0;U<j.length;++U)N+=j[U].length;var J=u.allocUnsafe(N),Y=0;for(U=0;U<j.length;++U){var oe=j[U];if(!u.isBuffer(oe))throw new TypeError('"list" argument must be an Array of Buffers');oe.copy(J,Y),Y+=oe.length}return J},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var j=this.length;if(j%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var N=0;N<j;N+=2)x(this,N,N+1);return this},u.prototype.swap32=function(){var j=this.length;if(j%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var N=0;N<j;N+=4)x(this,N,N+3),x(this,N+1,N+2);return this},u.prototype.swap64=function(){var j=this.length;if(j%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var N=0;N<j;N+=8)x(this,N,N+7),x(this,N+1,N+6),x(this,N+2,N+5),x(this,N+3,N+4);return this},u.prototype.toString=function(){var j=0|this.length;return j===0?"":arguments.length===0?k(this,0,j):(function(N,U,J){var Y=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0)<=(U>>>=0))return"";for(N||(N="utf8");;)switch(N){case"hex":return W(this,U,J);case"utf8":case"utf-8":return k(this,U,J);case"ascii":return F(this,U,J);case"latin1":case"binary":return q(this,U,J);case"base64":return D(this,U,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,U,J);default:if(Y)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),Y=!0}}).apply(this,arguments)},u.prototype.equals=function(j){if(!u.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j||u.compare(this,j)===0},u.prototype.inspect=function(){var j="",N=t.INSPECT_MAX_BYTES;return this.length>0&&(j=this.toString("hex",0,N).match(/.{2}/g).join(" "),this.length>N&&(j+=" ... ")),"<Buffer "+j+">"},u.prototype.compare=function(j,N,U,J,Y){if(!u.isBuffer(j))throw new TypeError("Argument must be a Buffer");if(N===void 0&&(N=0),U===void 0&&(U=j?j.length:0),J===void 0&&(J=0),Y===void 0&&(Y=this.length),N<0||U>j.length||J<0||Y>this.length)throw new RangeError("out of range index");if(J>=Y&&N>=U)return 0;if(J>=Y)return-1;if(N>=U)return 1;if(N>>>=0,U>>>=0,J>>>=0,Y>>>=0,this===j)return 0;for(var oe=Y-J,he=U-N,Se=Math.min(oe,he),se=this.slice(J,Y),pe=j.slice(N,U),me=0;me<Se;++me)if(se[me]!==pe[me]){oe=se[me],he=pe[me];break}return oe<he?-1:he<oe?1:0},u.prototype.includes=function(j,N,U){return this.indexOf(j,N,U)!==-1},u.prototype.indexOf=function(j,N,U){return _(this,j,N,U,!0)},u.prototype.lastIndexOf=function(j,N,U){return _(this,j,N,U,!1)},u.prototype.write=function(j,N,U,J){if(N===void 0)J="utf8",U=this.length,N=0;else if(U===void 0&&typeof N=="string")J=N,U=this.length,N=0;else{if(!isFinite(N))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");N|=0,isFinite(U)?(U|=0,J===void 0&&(J="utf8")):(J=U,U=void 0)}var Y=this.length-N;if((U===void 0||U>Y)&&(U=Y),j.length>0&&(U<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var oe=!1;;)switch(J){case"hex":return w(this,j,N,U);case"utf8":case"utf-8":return S(this,j,N,U);case"ascii":return E(this,j,N,U);case"latin1":case"binary":return P(this,j,N,U);case"base64":return T(this,j,N,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,j,N,U);default:if(oe)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),oe=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function F(j,N,U){var J="";U=Math.min(j.length,U);for(var Y=N;Y<U;++Y)J+=String.fromCharCode(127&j[Y]);return J}function q(j,N,U){var J="";U=Math.min(j.length,U);for(var Y=N;Y<U;++Y)J+=String.fromCharCode(j[Y]);return J}function W(j,N,U){var J=j.length;(!N||N<0)&&(N=0),(!U||U<0||U>J)&&(U=J);for(var Y="",oe=N;oe<U;++oe)Y+=te(j[oe]);return Y}function X(j,N,U){for(var J=j.slice(N,U),Y="",oe=0;oe<J.length;oe+=2)Y+=String.fromCharCode(J[oe]+256*J[oe+1]);return Y}function Q(j,N,U){if(j%1!=0||j<0)throw new RangeError("offset is not uint");if(j+N>U)throw new RangeError("Trying to access beyond buffer length")}function ne(j,N,U,J,Y,oe){if(!u.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>Y||N<oe)throw new RangeError('"value" argument is out of bounds');if(U+J>j.length)throw new RangeError("Index out of range")}function Z(j,N,U,J){N<0&&(N=65535+N+1);for(var Y=0,oe=Math.min(j.length-U,2);Y<oe;++Y)j[U+Y]=(N&255<<8*(J?Y:1-Y))>>>8*(J?Y:1-Y)}function z(j,N,U,J){N<0&&(N=4294967295+N+1);for(var Y=0,oe=Math.min(j.length-U,4);Y<oe;++Y)j[U+Y]=N>>>8*(J?Y:3-Y)&255}function B(j,N,U,J,Y,oe){if(U+J>j.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function H(j,N,U,J,Y){return Y||B(j,0,U,4),o.write(j,N,U,J,23,4),U+4}function ee(j,N,U,J,Y){return Y||B(j,0,U,8),o.write(j,N,U,J,52,8),U+8}u.prototype.slice=function(j,N){var U,J=this.length;if(j=~~j,N=N===void 0?J:~~N,j<0?(j+=J)<0&&(j=0):j>J&&(j=J),N<0?(N+=J)<0&&(N=0):N>J&&(N=J),N<j&&(N=j),u.TYPED_ARRAY_SUPPORT)(U=this.subarray(j,N)).__proto__=u.prototype;else{var Y=N-j;U=new u(Y,void 0);for(var oe=0;oe<Y;++oe)U[oe]=this[oe+j]}return U},u.prototype.readUIntLE=function(j,N,U){j|=0,N|=0,U||Q(j,N,this.length);for(var J=this[j],Y=1,oe=0;++oe<N&&(Y*=256);)J+=this[j+oe]*Y;return J},u.prototype.readUIntBE=function(j,N,U){j|=0,N|=0,U||Q(j,N,this.length);for(var J=this[j+--N],Y=1;N>0&&(Y*=256);)J+=this[j+--N]*Y;return J},u.prototype.readUInt8=function(j,N){return N||Q(j,1,this.length),this[j]},u.prototype.readUInt16LE=function(j,N){return N||Q(j,2,this.length),this[j]|this[j+1]<<8},u.prototype.readUInt16BE=function(j,N){return N||Q(j,2,this.length),this[j]<<8|this[j+1]},u.prototype.readUInt32LE=function(j,N){return N||Q(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+16777216*this[j+3]},u.prototype.readUInt32BE=function(j,N){return N||Q(j,4,this.length),16777216*this[j]+(this[j+1]<<16|this[j+2]<<8|this[j+3])},u.prototype.readIntLE=function(j,N,U){j|=0,N|=0,U||Q(j,N,this.length);for(var J=this[j],Y=1,oe=0;++oe<N&&(Y*=256);)J+=this[j+oe]*Y;return J>=(Y*=128)&&(J-=Math.pow(2,8*N)),J},u.prototype.readIntBE=function(j,N,U){j|=0,N|=0,U||Q(j,N,this.length);for(var J=N,Y=1,oe=this[j+--J];J>0&&(Y*=256);)oe+=this[j+--J]*Y;return oe>=(Y*=128)&&(oe-=Math.pow(2,8*N)),oe},u.prototype.readInt8=function(j,N){return N||Q(j,1,this.length),128&this[j]?-1*(255-this[j]+1):this[j]},u.prototype.readInt16LE=function(j,N){N||Q(j,2,this.length);var U=this[j]|this[j+1]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt16BE=function(j,N){N||Q(j,2,this.length);var U=this[j+1]|this[j]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt32LE=function(j,N){return N||Q(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},u.prototype.readInt32BE=function(j,N){return N||Q(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},u.prototype.readFloatLE=function(j,N){return N||Q(j,4,this.length),o.read(this,j,!0,23,4)},u.prototype.readFloatBE=function(j,N){return N||Q(j,4,this.length),o.read(this,j,!1,23,4)},u.prototype.readDoubleLE=function(j,N){return N||Q(j,8,this.length),o.read(this,j,!0,52,8)},u.prototype.readDoubleBE=function(j,N){return N||Q(j,8,this.length),o.read(this,j,!1,52,8)},u.prototype.writeUIntLE=function(j,N,U,J){j=+j,N|=0,U|=0,J||ne(this,j,N,U,Math.pow(2,8*U)-1,0);var Y=1,oe=0;for(this[N]=255&j;++oe<U&&(Y*=256);)this[N+oe]=j/Y&255;return N+U},u.prototype.writeUIntBE=function(j,N,U,J){j=+j,N|=0,U|=0,J||ne(this,j,N,U,Math.pow(2,8*U)-1,0);var Y=U-1,oe=1;for(this[N+Y]=255&j;--Y>=0&&(oe*=256);)this[N+Y]=j/oe&255;return N+U},u.prototype.writeUInt8=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,1,255,0),u.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),this[N]=255&j,N+1},u.prototype.writeUInt16LE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[N]=255&j,this[N+1]=j>>>8):Z(this,j,N,!0),N+2},u.prototype.writeUInt16BE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[N]=j>>>8,this[N+1]=255&j):Z(this,j,N,!1),N+2},u.prototype.writeUInt32LE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[N+3]=j>>>24,this[N+2]=j>>>16,this[N+1]=j>>>8,this[N]=255&j):z(this,j,N,!0),N+4},u.prototype.writeUInt32BE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[N]=j>>>24,this[N+1]=j>>>16,this[N+2]=j>>>8,this[N+3]=255&j):z(this,j,N,!1),N+4},u.prototype.writeIntLE=function(j,N,U,J){if(j=+j,N|=0,!J){var Y=Math.pow(2,8*U-1);ne(this,j,N,U,Y-1,-Y)}var oe=0,he=1,Se=0;for(this[N]=255&j;++oe<U&&(he*=256);)j<0&&Se===0&&this[N+oe-1]!==0&&(Se=1),this[N+oe]=(j/he>>0)-Se&255;return N+U},u.prototype.writeIntBE=function(j,N,U,J){if(j=+j,N|=0,!J){var Y=Math.pow(2,8*U-1);ne(this,j,N,U,Y-1,-Y)}var oe=U-1,he=1,Se=0;for(this[N+oe]=255&j;--oe>=0&&(he*=256);)j<0&&Se===0&&this[N+oe+1]!==0&&(Se=1),this[N+oe]=(j/he>>0)-Se&255;return N+U},u.prototype.writeInt8=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,1,127,-128),u.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),j<0&&(j=255+j+1),this[N]=255&j,N+1},u.prototype.writeInt16LE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[N]=255&j,this[N+1]=j>>>8):Z(this,j,N,!0),N+2},u.prototype.writeInt16BE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[N]=j>>>8,this[N+1]=255&j):Z(this,j,N,!1),N+2},u.prototype.writeInt32LE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[N]=255&j,this[N+1]=j>>>8,this[N+2]=j>>>16,this[N+3]=j>>>24):z(this,j,N,!0),N+4},u.prototype.writeInt32BE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),u.TYPED_ARRAY_SUPPORT?(this[N]=j>>>24,this[N+1]=j>>>16,this[N+2]=j>>>8,this[N+3]=255&j):z(this,j,N,!1),N+4},u.prototype.writeFloatLE=function(j,N,U){return H(this,j,N,!0,U)},u.prototype.writeFloatBE=function(j,N,U){return H(this,j,N,!1,U)},u.prototype.writeDoubleLE=function(j,N,U){return ee(this,j,N,!0,U)},u.prototype.writeDoubleBE=function(j,N,U){return ee(this,j,N,!1,U)},u.prototype.copy=function(j,N,U,J){if(U||(U=0),J||J===0||(J=this.length),N>=j.length&&(N=j.length),N||(N=0),J>0&&J<U&&(J=U),J===U||j.length===0||this.length===0)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("sourceStart out of bounds");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),j.length-N<J-U&&(J=j.length-N+U);var Y,oe=J-U;if(this===j&&U<N&&N<J)for(Y=oe-1;Y>=0;--Y)j[Y+N]=this[Y+U];else if(oe<1e3||!u.TYPED_ARRAY_SUPPORT)for(Y=0;Y<oe;++Y)j[Y+N]=this[Y+U];else Uint8Array.prototype.set.call(j,this.subarray(U,U+oe),N);return oe},u.prototype.fill=function(j,N,U,J){if(typeof j=="string"){if(typeof N=="string"?(J=N,N=0,U=this.length):typeof U=="string"&&(J=U,U=this.length),j.length===1){var Y=j.charCodeAt(0);Y<256&&(j=Y)}if(J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!u.isEncoding(J))throw new TypeError("Unknown encoding: "+J)}else typeof j=="number"&&(j&=255);if(N<0||this.length<N||this.length<U)throw new RangeError("Out of range index");if(U<=N)return this;var oe;if(N>>>=0,U=U===void 0?this.length:U>>>0,j||(j=0),typeof j=="number")for(oe=N;oe<U;++oe)this[oe]=j;else{var he=u.isBuffer(j)?j:ie(new u(j,J).toString()),Se=he.length;for(oe=0;oe<U-N;++oe)this[oe+N]=he[oe%Se]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function te(j){return j<16?"0"+j.toString(16):j.toString(16)}function ie(j,N){var U;N=N||1/0;for(var J=j.length,Y=null,oe=[],he=0;he<J;++he){if((U=j.charCodeAt(he))>55295&&U<57344){if(!Y){if(U>56319){(N-=3)>-1&&oe.push(239,191,189);continue}if(he+1===J){(N-=3)>-1&&oe.push(239,191,189);continue}Y=U;continue}if(U<56320){(N-=3)>-1&&oe.push(239,191,189),Y=U;continue}U=65536+(Y-55296<<10|U-56320)}else Y&&(N-=3)>-1&&oe.push(239,191,189);if(Y=null,U<128){if((N-=1)<0)break;oe.push(U)}else if(U<2048){if((N-=2)<0)break;oe.push(U>>6|192,63&U|128)}else if(U<65536){if((N-=3)<0)break;oe.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((N-=4)<0)break;oe.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return oe}function ae(j){return i.toByteArray(function(N){if((N=function(U){return U.trim?U.trim():U.replace(/^\s+|\s+$/g,"")}(N).replace(K,"")).length<2)return"";for(;N.length%4!=0;)N+="=";return N}(j))}function fe(j,N,U,J){for(var Y=0;Y<J&&!(Y+U>=N.length||Y>=j.length);++Y)N[Y+U]=j[Y];return Y}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var l,u=[],f=!1,d=-1;function h(){f&&l&&(f=!1,l.length?u=l.concat(u):d=-1,u.length&&v())}function v(){if(!f){var x=s(h);f=!0;for(var _=u.length;_;){for(l=u,u=[];++d<_;)l&&l[d].run();d=-1,_=u.length}l=null,f=!1,function(b){if(r===clearTimeout)return clearTimeout(b);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}(x)}}function g(x,_){this.fun=x,this.array=_}function y(){}i.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)_[b-1]=arguments[b];u.push(new g(x,_)),u.length!==1||f||s(v)},g.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=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(x){return[]},i.binding=function(x){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(x){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,u,f=arguments.length;switch(f){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,a)});case 4:return r.nextTick(function(){i.call(null,o,a,s)});default:for(l=new Array(f-1),u=0;u<l.length;)l[u++]=arguments[u];return r.nextTick(function(){i.apply(null,l)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(s,l){for(var u in s)l[u]=s[u]}function a(s,l,u){return i(s,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,l,u){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,l,u)},a.alloc=function(s,l,u){if(typeof s!="number")throw new TypeError("Argument must be a number");var f=i(s);return l!==void 0?typeof u=="string"?f.fill(l,u):f.fill(l):f.fill(0),f},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var a=i.length;a--;)if(r(i[a][0],o))return a;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,l,u,f,d,h;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 v=new Error('Uncaught, unspecified "error" event. ('+s+")");throw v.context=s,v}if(o(l=this._events[a]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),u=(h=l.slice()).length,d=0;d<u;d++)h[d].apply(this,f);return!0},n.prototype.addListener=function(a,s){var l;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,r(s.listener)?s.listener:s),this._events[a]?i(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,i(this._events[a])&&!this._events[a].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[a].length>l&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var l=!1;function u(){this.removeListener(a,u),l||(l=!0,s.apply(this,arguments))}return u.listener=s,this.on(a,u),this},n.prototype.removeListener=function(a,s){var l,u,f,d;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(l=this._events[a]).length,u=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(d=f;d-- >0;)if(l[d]===s||l[d].listener&&l[d].listener===s){u=d;break}if(u<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(u,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var a=n(6);function s(k){var I=this;this.next=null,this.entry=null,this.finish=function(){(function(F,q,W){var X=F.entry;for(F.entry=null;X;){var Q=X.callback;q.pendingcb--,Q(void 0),X=X.next}q.corkedRequestsFree?q.corkedRequestsFree.next=F:q.corkedRequestsFree=F})(I,k)}}e.exports=w;var l,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;w.WritableState=b;var f=n(5);f.inherits=n(2);var d,h={deprecate:n(44)},v=n(24),g=n(7).Buffer,y=o.Uint8Array||function(){},x=n(25);function _(){}function b(k,I){l=l||n(1),k=k||{};var F=I instanceof l;this.objectMode=!!k.objectMode,F&&(this.objectMode=this.objectMode||!!k.writableObjectMode);var q=k.highWaterMark,W=k.writableHighWaterMark,X=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:F&&(W||W===0)?W:X,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=k.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=k.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ne){(function(Z,z){var B=Z._writableState,H=B.sync,ee=B.writecb;if(function(te){te.writing=!1,te.writecb=null,te.length-=te.writelen,te.writelen=0}(B),z)(function(te,ie,ae,fe,j){--ie.pendingcb,ae?(a.nextTick(j,fe),a.nextTick(D,te,ie),te._writableState.errorEmitted=!0,te.emit("error",fe)):(j(fe),te._writableState.errorEmitted=!0,te.emit("error",fe),D(te,ie))})(Z,B,H,z,ee);else{var K=T(B);K||B.corked||B.bufferProcessing||!B.bufferedRequest||P(Z,B),H?u(E,Z,B,K,ee):E(Z,B,K,ee)}})(I,ne)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function w(k){if(l=l||n(1),!(d.call(w,this)||this instanceof l))return new w(k);this._writableState=new b(k,this),this.writable=!0,k&&(typeof k.write=="function"&&(this._write=k.write),typeof k.writev=="function"&&(this._writev=k.writev),typeof k.destroy=="function"&&(this._destroy=k.destroy),typeof k.final=="function"&&(this._final=k.final)),v.call(this)}function S(k,I,F,q,W,X,Q){I.writelen=q,I.writecb=Q,I.writing=!0,I.sync=!0,F?k._writev(W,I.onwrite):k._write(W,X,I.onwrite),I.sync=!1}function E(k,I,F,q){F||function(W,X){X.length===0&&X.needDrain&&(X.needDrain=!1,W.emit("drain"))}(k,I),I.pendingcb--,q(),D(k,I)}function P(k,I){I.bufferProcessing=!0;var F=I.bufferedRequest;if(k._writev&&F&&F.next){var q=I.bufferedRequestCount,W=new Array(q),X=I.corkedRequestsFree;X.entry=F;for(var Q=0,ne=!0;F;)W[Q]=F,F.isBuf||(ne=!1),F=F.next,Q+=1;W.allBuffers=ne,S(k,I,!0,I.length,W,"",X.finish),I.pendingcb++,I.lastBufferedRequest=null,X.next?(I.corkedRequestsFree=X.next,X.next=null):I.corkedRequestsFree=new s(I),I.bufferedRequestCount=0}else{for(;F;){var Z=F.chunk,z=F.encoding,B=F.callback;if(S(k,I,!1,I.objectMode?1:Z.length,Z,z,B),F=F.next,I.bufferedRequestCount--,I.writing)break}F===null&&(I.lastBufferedRequest=null)}I.bufferedRequest=F,I.bufferProcessing=!1}function T(k){return k.ending&&k.length===0&&k.bufferedRequest===null&&!k.finished&&!k.writing}function A(k,I){k._final(function(F){I.pendingcb--,F&&k.emit("error",F),I.prefinished=!0,k.emit("prefinish"),D(k,I)})}function D(k,I){var F=T(I);return F&&(function(q,W){W.prefinished||W.finalCalled||(typeof q._final=="function"?(W.pendingcb++,W.finalCalled=!0,a.nextTick(A,q,W)):(W.prefinished=!0,q.emit("prefinish")))}(k,I),I.pendingcb===0&&(I.finished=!0,k.emit("finish"))),F}f.inherits(w,v),b.prototype.getBuffer=function(){for(var k=this.bufferedRequest,I=[];k;)I.push(k),k=k.next;return I},function(){try{Object.defineProperty(b.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(k){return!!d.call(this,k)||this===w&&k&&k._writableState instanceof b}})):d=function(k){return k instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(k,I,F){var q=this._writableState,W=!1,X=!q.objectMode&&function(Q){return g.isBuffer(Q)||Q instanceof y}(k);return X&&!g.isBuffer(k)&&(k=function(Q){return g.from(Q)}(k)),typeof I=="function"&&(F=I,I=null),X?I="buffer":I||(I=q.defaultEncoding),typeof F!="function"&&(F=_),q.ended?function(Q,ne){var Z=new Error("write after end");Q.emit("error",Z),a.nextTick(ne,Z)}(this,F):(X||function(Q,ne,Z,z){var B=!0,H=!1;return Z===null?H=new TypeError("May not write null values to stream"):typeof Z=="string"||Z===void 0||ne.objectMode||(H=new TypeError("Invalid non-string/buffer chunk")),H&&(Q.emit("error",H),a.nextTick(z,H),B=!1),B}(this,q,k,F))&&(q.pendingcb++,W=function(Q,ne,Z,z,B,H){if(!Z){var ee=function(ae,fe,j){return ae.objectMode||ae.decodeStrings===!1||typeof fe!="string"||(fe=g.from(fe,j)),fe}(ne,z,B);z!==ee&&(Z=!0,B="buffer",z=ee)}var K=ne.objectMode?1:z.length;ne.length+=K;var te=ne.length<ne.highWaterMark;if(te||(ne.needDrain=!0),ne.writing||ne.corked){var ie=ne.lastBufferedRequest;ne.lastBufferedRequest={chunk:z,encoding:B,isBuf:Z,callback:H,next:null},ie?ie.next=ne.lastBufferedRequest:ne.bufferedRequest=ne.lastBufferedRequest,ne.bufferedRequestCount+=1}else S(Q,ne,!1,K,z,B,H);return te}(this,q,X,k,I,F)),W},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var k=this._writableState;k.corked&&(k.corked--,k.writing||k.corked||k.finished||k.bufferProcessing||!k.bufferedRequest||P(this,k))},w.prototype.setDefaultEncoding=function(k){if(typeof k=="string"&&(k=k.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((k+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+k);return this._writableState.defaultEncoding=k,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(k,I,F){F(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(k,I,F){var q=this._writableState;typeof k=="function"?(F=k,k=null,I=null):typeof I=="function"&&(F=I,I=null),k!=null&&this.write(k,I),q.corked&&(q.corked=1,this.uncork()),q.ending||q.finished||function(W,X,Q){X.ending=!0,D(W,X),Q&&(X.finished?a.nextTick(Q):W.once("finish",Q)),X.ended=!0,W.writable=!1}(this,q,F)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(k){this._writableState&&(this._writableState.destroyed=k)}}),w.prototype.destroy=x.destroy,w.prototype._undestroy=x.undestroy,w.prototype._destroy=function(k,I){this.end(),I(k)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,l,u){function f(v,g){if(!l[v]){if(!s[v]){var y=typeof _dereq_=="function"&&_dereq_;if(!g&&y)return y(v,!0);if(d)return d(v,!0);var x=new Error("Cannot find module '"+v+"'");throw x.code="MODULE_NOT_FOUND",x}var _=l[v]={exports:{}};s[v][0].call(_.exports,function(b){return f(s[v][1][b]||b)},_,_.exports,a,s,l,u)}return l[v].exports}for(var d=typeof _dereq_=="function"&&_dereq_,h=0;h<u.length;h++)f(u[h]);return f}({1:[function(a,s,l){s.exports=function(u){var f=u._SomePromiseArray;function d(h){var v=new f(h),g=v.promise();return v.setHowMany(1),v.setUnwrap(),v.init(),g}u.any=function(h){return d(h)},u.prototype.any=function(){return d(this)}}},{}],2:[function(a,s,l){var u;try{throw new Error}catch(_){u=_}var f=a("./schedule"),d=a("./queue"),h=a("./util");function v(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new d(16),this._normalQueue=new d(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var _=this;this.drainQueues=function(){_._drainQueues()},this._schedule=f}function g(_,b,w){this._lateQueue.push(_,b,w),this._queueTick()}function y(_,b,w){this._normalQueue.push(_,b,w),this._queueTick()}function x(_){this._normalQueue._pushOne(_),this._queueTick()}v.prototype.setScheduler=function(_){var b=this._schedule;return this._schedule=_,this._customScheduler=!0,b},v.prototype.hasCustomScheduler=function(){return this._customScheduler},v.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},v.prototype.disableTrampolineIfNecessary=function(){h.hasDevTools&&(this._trampolineEnabled=!1)},v.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},v.prototype.fatalError=function(_,b){b?(r.stderr.write("Fatal "+(_ instanceof Error?_.stack:_)+`
|
||
`),r.exit(2)):this.throwLater(_)},v.prototype.throwLater=function(_,b){if(arguments.length===1&&(b=_,_=function(){throw b}),typeof setTimeout<"u")setTimeout(function(){_(b)},0);else try{this._schedule(function(){_(b)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},h.hasDevTools?(v.prototype.invokeLater=function(_,b,w){this._trampolineEnabled?g.call(this,_,b,w):this._schedule(function(){setTimeout(function(){_.call(b,w)},100)})},v.prototype.invoke=function(_,b,w){this._trampolineEnabled?y.call(this,_,b,w):this._schedule(function(){_.call(b,w)})},v.prototype.settlePromises=function(_){this._trampolineEnabled?x.call(this,_):this._schedule(function(){_._settlePromises()})}):(v.prototype.invokeLater=g,v.prototype.invoke=y,v.prototype.settlePromises=x),v.prototype._drainQueue=function(_){for(;_.length()>0;){var b=_.shift();if(typeof b=="function"){var w=_.shift(),S=_.shift();b.call(w,S)}else b._settlePromises()}},v.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},v.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},v.prototype._reset=function(){this._isTickUsed=!1},s.exports=v,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(u,f,d,h){var v=!1,g=function(b,w){this._reject(w)},y=function(b,w){w.promiseRejectionQueued=!0,w.bindingPromise._then(g,g,null,this,b)},x=function(b,w){!(50397184&this._bitField)&&this._resolveCallback(w.target)},_=function(b,w){w.promiseRejectionQueued||this._reject(b)};u.prototype.bind=function(b){v||(v=!0,u.prototype._propagateFrom=h.propagateFromFunction(),u.prototype._boundValue=h.boundValueFunction());var w=d(b),S=new u(f);S._propagateFrom(this,1);var E=this._target();if(S._setBoundTo(w),w instanceof u){var P={promiseRejectionQueued:!1,promise:S,target:E,bindingPromise:w};E._then(f,y,void 0,S,P),w._then(x,_,void 0,S,P),S._setOnCancel(w)}else S._resolveCallback(E);return S},u.prototype._setBoundTo=function(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(b,w){return u.resolve(w).bind(b)}}},{}],4:[function(a,s,l){var u;typeof Promise<"u"&&(u=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=u)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,l){var u=Object.create;if(u){var f=u(null),d=u(null);f[" size"]=d[" size"]=0}s.exports=function(h){var v=a("./util"),g=v.canEvaluate;function y(b){return function(w,S){var E;if(w!=null&&(E=w[S]),typeof E!="function"){var P="Object "+v.classString(w)+" has no method '"+v.toString(S)+"'";throw new h.TypeError(P)}return E}(b,this.pop()).apply(b,this)}function x(b){return b[this]}function _(b){var w=+this;return w<0&&(w=Math.max(0,w+b.length)),b[w]}v.isIdentifier,h.prototype.call=function(b){var w=[].slice.call(arguments,1);return w.push(b),this._then(y,void 0,void 0,w,void 0)},h.prototype.get=function(b){var w;if(typeof b=="number")w=_;else if(g){var S=(void 0)(b);w=S!==null?S:x}else w=x;return this._then(w,void 0,void 0,b,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(u,f,d,h){var v=a("./util"),g=v.tryCatch,y=v.errorObj,x=u._async;u.prototype.break=u.prototype.cancel=function(){if(!h.cancellation())return this._warn("cancellation is disabled");for(var _=this,b=_;_._isCancellable();){if(!_._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var w=_._cancellationParent;if(w==null||!w._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),b=_,_=w}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(_){return _===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},u.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},u.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),x.invoke(this._cancelPromises,this,void 0))},u.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},u.prototype._unsetOnCancel=function(){this._onCancelField=void 0},u.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},u.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},u.prototype._doInvokeOnCancel=function(_,b){if(v.isArray(_))for(var w=0;w<_.length;++w)this._doInvokeOnCancel(_[w],b);else if(_!==void 0)if(typeof _=="function"){if(!b){var S=g(_).call(this._boundValue());S===y&&(this._attachExtraTrace(S.e),x.throwLater(S.e))}}else _._resultCancelled(this)},u.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,_)},u.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},u.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,l){s.exports=function(u){var f=a("./util"),d=a("./es5").keys,h=f.tryCatch,v=f.errorObj;return function(g,y,x){return function(_){var b=x._boundValue();e:for(var w=0;w<g.length;++w){var S=g[w];if(S===Error||S!=null&&S.prototype instanceof Error){if(_ instanceof S)return h(y).call(b,_)}else if(typeof S=="function"){var E=h(S).call(b,_);if(E===v)return E;if(E)return h(y).call(b,_)}else if(f.isObject(_)){for(var P=d(S),T=0;T<P.length;++T){var A=P[T];if(S[A]!=_[A])continue e}return h(y).call(b,_)}}return u}}}},{"./es5":13,"./util":36}],8:[function(a,s,l){s.exports=function(u){var f=!1,d=[];function h(){this._trace=new h.CapturedTrace(v())}function v(){var g=d.length-1;if(g>=0)return d[g]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},h.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,d.push(this._trace))},h.prototype._popContext=function(){if(this._trace!==void 0){var g=d.pop(),y=g._promiseCreated;return g._promiseCreated=null,y}return null},h.CapturedTrace=null,h.create=function(){if(f)return new h},h.deactivateLongStackTraces=function(){},h.activateLongStackTraces=function(){var g=u.prototype._pushContext,y=u.prototype._popContext,x=u._peekContext,_=u.prototype._peekContext,b=u.prototype._promiseCreated;h.deactivateLongStackTraces=function(){u.prototype._pushContext=g,u.prototype._popContext=y,u._peekContext=x,u.prototype._peekContext=_,u.prototype._promiseCreated=b,f=!1},f=!0,u.prototype._pushContext=h.prototype._pushContext,u.prototype._popContext=h.prototype._popContext,u._peekContext=u.prototype._peekContext=v,u.prototype._promiseCreated=function(){var w=this._peekContext();w&&w._promiseCreated==null&&(w._promiseCreated=this)}},h}},{}],9:[function(a,s,l){s.exports=function(u,f){var d,h,v,g=u._getDomain,y=u._async,x=a("./errors").Warning,_=a("./util"),b=_.canAttachTrace,w=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,S=/\((?:timers\.js):\d+:\d+\)/,E=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,P=null,T=null,A=!1,D=_.env("BLUEBIRD_DEBUG")!=0,k=!(_.env("BLUEBIRD_WARNINGS")==0||!D&&!_.env("BLUEBIRD_WARNINGS")),I=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!D&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),F=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(k||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));u.prototype.suppressUnhandledRejections=function(){var le=this._target();le._bitField=-1048577&le._bitField|524288},u.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var le=this;setTimeout(function(){le._notifyUnhandledRejection()},1)}},u.prototype._notifyUnhandledRejectionIsHandled=function(){he("rejectionHandled",d,void 0,this)},u.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},u.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},u.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var le=this._settledValue();this._setUnhandledRejectionIsNotified(),he("unhandledRejection",h,le,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(le,ce,ye){return U(le,ce,ye||this)},u.onPossiblyUnhandledRejection=function(le){var ce=g();h=typeof le=="function"?ce===null?le:_.domainBind(ce,le):void 0},u.onUnhandledRejectionHandled=function(le){var ce=g();d=typeof le=="function"?ce===null?le:_.domainBind(ce,le):void 0};var q=function(){};u.longStackTraces=function(){if(y.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!Ae.longStackTraces&&se()){var le=u.prototype._captureStackTrace,ce=u.prototype._attachExtraTrace;Ae.longStackTraces=!0,q=function(){if(y.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);u.prototype._captureStackTrace=le,u.prototype._attachExtraTrace=ce,f.deactivateLongStackTraces(),y.enableTrampoline(),Ae.longStackTraces=!1},u.prototype._captureStackTrace=j,u.prototype._attachExtraTrace=N,f.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return Ae.longStackTraces&&se()};var W=function(){try{if(typeof CustomEvent=="function"){var le=new CustomEvent("CustomEvent");return _.global.dispatchEvent(le),function(ce,ye){var ge=new CustomEvent(ce.toLowerCase(),{detail:ye,cancelable:!0});return!_.global.dispatchEvent(ge)}}return typeof Event=="function"?(le=new Event("CustomEvent"),_.global.dispatchEvent(le),function(ce,ye){var ge=new Event(ce.toLowerCase(),{cancelable:!0});return ge.detail=ye,!_.global.dispatchEvent(ge)}):((le=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(le),function(ce,ye){var ge=document.createEvent("CustomEvent");return ge.initCustomEvent(ce.toLowerCase(),!1,!0,ye),!_.global.dispatchEvent(ge)})}catch{}return function(){return!1}}(),X=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(le){var ce="on"+le.toLowerCase(),ye=_.global[ce];return!!ye&&(ye.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Q(le,ce){return{promise:ce}}var ne={promiseCreated:Q,promiseFulfilled:Q,promiseRejected:Q,promiseResolved:Q,promiseCancelled:Q,promiseChained:function(le,ce,ye){return{promise:ce,child:ye}},warning:function(le,ce){return{warning:ce}},unhandledRejection:function(le,ce,ye){return{reason:ce,promise:ye}},rejectionHandled:Q},Z=function(le){var ce=!1;try{ce=X.apply(null,arguments)}catch(ge){y.throwLater(ge),ce=!0}var ye=!1;try{ye=W(le,ne[le].apply(null,arguments))}catch(ge){y.throwLater(ge),ye=!0}return ye||ce};function z(){return!1}function B(le,ce,ye){var ge=this;try{le(ce,ye,function(we){if(typeof we!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(we));ge._attachCancellationCallback(we)})}catch(we){return we}}function H(le){if(!this._isCancellable())return this;var ce=this._onCancel();ce!==void 0?_.isArray(ce)?ce.push(le):this._setOnCancel([ce,le]):this._setOnCancel(le)}function ee(){return this._onCancelField}function K(le){this._onCancelField=le}function te(){this._cancellationParent=void 0,this._onCancelField=void 0}function ie(le,ce){if(1&ce){this._cancellationParent=le;var ye=le._branchesRemainingToCancel;ye===void 0&&(ye=0),le._branchesRemainingToCancel=ye+1}2&ce&&le._isBound()&&this._setBoundTo(le._boundTo)}u.config=function(le){if("longStackTraces"in(le=Object(le))&&(le.longStackTraces?u.longStackTraces():!le.longStackTraces&&u.hasLongStackTraces()&&q()),"warnings"in le){var ce=le.warnings;Ae.warnings=!!ce,F=Ae.warnings,_.isObject(ce)&&"wForgottenReturn"in ce&&(F=!!ce.wForgottenReturn)}if("cancellation"in le&&le.cancellation&&!Ae.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=te,u.prototype._propagateFrom=ie,u.prototype._onCancel=ee,u.prototype._setOnCancel=K,u.prototype._attachCancellationCallback=H,u.prototype._execute=B,ae=ie,Ae.cancellation=!0}return"monitoring"in le&&(le.monitoring&&!Ae.monitoring?(Ae.monitoring=!0,u.prototype._fireEvent=Z):!le.monitoring&&Ae.monitoring&&(Ae.monitoring=!1,u.prototype._fireEvent=z)),u},u.prototype._fireEvent=z,u.prototype._execute=function(le,ce,ye){try{le(ce,ye)}catch(ge){return ge}},u.prototype._onCancel=function(){},u.prototype._setOnCancel=function(le){},u.prototype._attachCancellationCallback=function(le){},u.prototype._captureStackTrace=function(){},u.prototype._attachExtraTrace=function(){},u.prototype._clearCancellationData=function(){},u.prototype._propagateFrom=function(le,ce){};var ae=function(le,ce){2&ce&&le._isBound()&&this._setBoundTo(le._boundTo)};function fe(){var le=this._boundTo;return le!==void 0&&le instanceof u?le.isFulfilled()?le.value():void 0:le}function j(){this._trace=new Te(this._peekContext())}function N(le,ce){if(b(le)){var ye=this._trace;if(ye!==void 0&&ce&&(ye=ye._parent),ye!==void 0)ye.attachExtraTrace(le);else if(!le.__stackCleaned__){var ge=Y(le);_.notEnumerableProp(le,"stack",ge.message+`
|
||
`+ge.stack.join(`
|
||
`)),_.notEnumerableProp(le,"__stackCleaned__",!0)}}}function U(le,ce,ye){if(Ae.warnings){var ge,we=new x(le);if(ce)ye._attachExtraTrace(we);else if(Ae.longStackTraces&&(ge=u._peekContext()))ge.attachExtraTrace(we);else{var ke=Y(we);we.stack=ke.message+`
|
||
`+ke.stack.join(`
|
||
`)}Z("warning",we)||oe(we,"",!0)}}function J(le){for(var ce=[],ye=0;ye<le.length;++ye){var ge=le[ye],we=ge===" (No stack trace)"||P.test(ge),ke=we&&pe(ge);we&&!ke&&(A&&ge.charAt(0)!==" "&&(ge=" "+ge),ce.push(ge))}return ce}function Y(le){var ce=le.stack,ye=le.toString();return ce=typeof ce=="string"&&ce.length>0?function(ge){for(var we=ge.stack.replace(/\s+$/g,"").split(`
|
||
`),ke=0;ke<we.length;++ke){var Me=we[ke];if(Me===" (No stack trace)"||P.test(Me))break}return ke>0&&ge.name!="SyntaxError"&&(we=we.slice(ke)),we}(le):[" (No stack trace)"],{message:ye,stack:le.name=="SyntaxError"?ce:J(ce)}}function oe(le,ce,ye){if(typeof console<"u"){var ge;if(_.isObject(le)){var we=le.stack;ge=ce+T(we,le)}else ge=ce+String(le);typeof v=="function"?v(ge,ye):typeof console.log!="function"&&typeof console.log!="object"||console.log(ge)}}function he(le,ce,ye,ge){var we=!1;try{typeof ce=="function"&&(we=!0,le==="rejectionHandled"?ce(ge):ce(ye,ge))}catch(ke){y.throwLater(ke)}le==="unhandledRejection"?Z(le,ye,ge)||we||oe(ye,"Unhandled rejection "):Z(le,ge)}function Se(le){var ce;if(typeof le=="function")ce="[function "+(le.name||"anonymous")+"]";else{if(ce=le&&typeof le.toString=="function"?le.toString():_.toString(le),/\[object [a-zA-Z0-9$_]+\]/.test(ce))try{ce=JSON.stringify(le)}catch{}ce.length===0&&(ce="(empty array)")}return"(<"+function(ye){return ye.length<41?ye:ye.substr(0,38)+"..."}(ce)+">, no stack trace)"}function se(){return typeof Ce=="function"}var pe=function(){return!1},me=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function xe(le){var ce=le.match(me);if(ce)return{fileName:ce[1],line:parseInt(ce[2],10)}}function Te(le){this._parent=le,this._promisesCreated=0;var ce=this._length=1+(le===void 0?0:le._length);Ce(this,Te),ce>32&&this.uncycle()}_.inherits(Te,Error),f.CapturedTrace=Te,Te.prototype.uncycle=function(){var le=this._length;if(!(le<2)){for(var ce=[],ye={},ge=0,we=this;we!==void 0;++ge)ce.push(we),we=we._parent;for(ge=(le=this._length=ge)-1;ge>=0;--ge){var ke=ce[ge].stack;ye[ke]===void 0&&(ye[ke]=ge)}for(ge=0;ge<le;++ge){var Me=ye[ce[ge].stack];if(Me!==void 0&&Me!==ge){Me>0&&(ce[Me-1]._parent=void 0,ce[Me-1]._length=1),ce[ge]._parent=void 0,ce[ge]._length=1;var et=ge>0?ce[ge-1]:this;Me<le-1?(et._parent=ce[Me+1],et._parent.uncycle(),et._length=et._parent._length+1):(et._parent=void 0,et._length=1);for(var nt=et._length+1,Ze=ge-2;Ze>=0;--Ze)ce[Ze]._length=nt,nt++;return}}}},Te.prototype.attachExtraTrace=function(le){if(!le.__stackCleaned__){this.uncycle();for(var ce=Y(le),ye=ce.message,ge=[ce.stack],we=this;we!==void 0;)ge.push(J(we.stack.split(`
|
||
`))),we=we._parent;(function(ke){for(var Me=ke[0],et=1;et<ke.length;++et){for(var nt=ke[et],Ze=Me.length-1,Gt=Me[Ze],Ft=-1,bn=nt.length-1;bn>=0;--bn)if(nt[bn]===Gt){Ft=bn;break}for(bn=Ft;bn>=0;--bn){var Zn=nt[bn];if(Me[Ze]!==Zn)break;Me.pop(),Ze--}Me=nt}})(ge),function(ke){for(var Me=0;Me<ke.length;++Me)(ke[Me].length===0||Me+1<ke.length&&ke[Me][0]===ke[Me+1][0])&&(ke.splice(Me,1),Me--)}(ge),_.notEnumerableProp(le,"stack",function(ke,Me){for(var et=0;et<Me.length-1;++et)Me[et].push("From previous event:"),Me[et]=Me[et].join(`
|
||
`);return et<Me.length&&(Me[et]=Me[et].join(`
|
||
`)),ke+`
|
||
`+Me.join(`
|
||
`)}(ye,ge)),_.notEnumerableProp(le,"__stackCleaned__",!0)}};var Ce=function(){var le=/^\s*at\s*/,ce=function(ke,Me){return typeof ke=="string"?ke:Me.name!==void 0&&Me.message!==void 0?Me.toString():Se(Me)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,P=le,T=ce;var ye=Error.captureStackTrace;return pe=function(ke){return w.test(ke)},function(ke,Me){Error.stackTraceLimit+=6,ye(ke,Me),Error.stackTraceLimit-=6}}var ge,we=new Error;if(typeof we.stack=="string"&&we.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return P=/@/,T=ce,A=!0,function(ke){ke.stack=new Error().stack};try{throw new Error}catch(ke){ge="stack"in ke}return"stack"in we||!ge||typeof Error.stackTraceLimit!="number"?(T=function(ke,Me){return typeof ke=="string"?ke:typeof Me!="object"&&typeof Me!="function"||Me.name===void 0||Me.message===void 0?Se(Me):Me.toString()},null):(P=le,T=ce,function(ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Me){ke.stack=Me.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(v=function(le){console.warn(le)},_.isNode&&r.stderr.isTTY?v=function(le,ce){var ye=ce?"\x1B[33m":"\x1B[31m";console.warn(ye+le+`\x1B[0m
|
||
`)}:_.isNode||typeof new Error().stack!="string"||(v=function(le,ce){console.warn("%c"+le,ce?"color: darkorange":"color: red")}));var Ae={warnings:k,longStackTraces:!1,cancellation:!1,monitoring:!1};return I&&u.longStackTraces(),{longStackTraces:function(){return Ae.longStackTraces},warnings:function(){return Ae.warnings},cancellation:function(){return Ae.cancellation},monitoring:function(){return Ae.monitoring},propagateFromFunction:function(){return ae},boundValueFunction:function(){return fe},checkForgottenReturns:function(le,ce,ye,ge,we){if(le===void 0&&ce!==null&&F){if(we!==void 0&&we._returnedNonUndefined()||!(65535&ge._bitField))return;ye&&(ye+=" ");var ke="",Me="";if(ce._trace){for(var et=ce._trace.stack.split(`
|
||
`),nt=J(et),Ze=nt.length-1;Ze>=0;--Ze){var Gt=nt[Ze];if(!S.test(Gt)){var Ft=Gt.match(E);Ft&&(ke="at "+Ft[1]+":"+Ft[2]+":"+Ft[3]+" ");break}}if(nt.length>0){var bn=nt[0];for(Ze=0;Ze<et.length;++Ze)if(et[Ze]===bn){Ze>0&&(Me=`
|
||
`+et[Ze-1]);break}}}var Zn="a promise was created in a "+ye+"handler "+ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Me;ge._warn(Zn,!0,ce)}},setBounds:function(le,ce){if(se()){for(var ye,ge,we=le.stack.split(`
|
||
`),ke=ce.stack.split(`
|
||
`),Me=-1,et=-1,nt=0;nt<we.length;++nt)if(Ze=xe(we[nt])){ye=Ze.fileName,Me=Ze.line;break}for(nt=0;nt<ke.length;++nt){var Ze;if(Ze=xe(ke[nt])){ge=Ze.fileName,et=Ze.line;break}}Me<0||et<0||!ye||!ge||ye!==ge||Me>=et||(pe=function(Gt){if(w.test(Gt))return!0;var Ft=xe(Gt);return!!(Ft&&Ft.fileName===ye&&Me<=Ft.line&&Ft.line<=et)})}},warn:U,deprecated:function(le,ce){var ye=le+" is deprecated and will be removed in a future version.";return ce&&(ye+=" Use "+ce+" instead."),U(ye)},CapturedTrace:Te,fireDomEvent:W,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(u){function f(){return this.value}function d(){throw this.reason}u.prototype.return=u.prototype.thenReturn=function(h){return h instanceof u&&h.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:h},void 0)},u.prototype.throw=u.prototype.thenThrow=function(h){return this._then(d,void 0,void 0,{reason:h},void 0)},u.prototype.catchThrow=function(h){if(arguments.length<=1)return this._then(void 0,d,void 0,{reason:h},void 0);var v=arguments[1];return this.caught(h,function(){throw v})},u.prototype.catchReturn=function(h){if(arguments.length<=1)return h instanceof u&&h.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:h},void 0);var v=arguments[1];return v instanceof u&&v.suppressUnhandledRejections(),this.caught(h,function(){return v})}}},{}],11:[function(a,s,l){s.exports=function(u,f){var d=u.reduce,h=u.all;function v(){return h(this)}u.prototype.each=function(g){return d(this,g,f,0)._then(v,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(g){return d(this,g,f,f)},u.each=function(g,y){return d(g,y,f,0)._then(v,void 0,void 0,g,void 0)},u.mapSeries=function(g,y){return d(g,y,f,f)}}},{}],12:[function(a,s,l){var u,f,d=a("./es5"),h=d.freeze,v=a("./util"),g=v.inherits,y=v.notEnumerableProp;function x(k,I){function F(q){if(!(this instanceof F))return new F(q);y(this,"message",typeof q=="string"?q:I),y(this,"name",k),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return g(F,Error),F}var _=x("Warning","warning"),b=x("CancellationError","cancellation error"),w=x("TimeoutError","timeout error"),S=x("AggregateError","aggregate error");try{u=TypeError,f=RangeError}catch{u=x("TypeError","type error"),f=x("RangeError","range error")}for(var E="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),P=0;P<E.length;++P)typeof Array.prototype[E[P]]=="function"&&(S.prototype[E[P]]=Array.prototype[E[P]]);d.defineProperty(S.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),S.prototype.isOperational=!0;var T=0;function A(k){if(!(this instanceof A))return new A(k);y(this,"name","OperationalError"),y(this,"message",k),this.cause=k,this.isOperational=!0,k instanceof Error?(y(this,"message",k.message),y(this,"stack",k.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}S.prototype.toString=function(){var k=Array(4*T+1).join(" "),I=`
|
||
`+k+`AggregateError of:
|
||
`;T++,k=Array(4*T+1).join(" ");for(var F=0;F<this.length;++F){for(var q=this[F]===this?"[Circular AggregateError]":this[F]+"",W=q.split(`
|
||
`),X=0;X<W.length;++X)W[X]=k+W[X];I+=(q=W.join(`
|
||
`))+`
|
||
`}return T--,I},g(A,Error);var D=Error.__BluebirdErrorTypes__;D||(D=h({CancellationError:b,TimeoutError:w,OperationalError:A,RejectionError:A,AggregateError:S}),d.defineProperty(Error,"__BluebirdErrorTypes__",{value:D,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:u,RangeError:f,CancellationError:D.CancellationError,OperationalError:D.OperationalError,TimeoutError:D.TimeoutError,AggregateError:D.AggregateError,Warning:_}},{"./es5":13,"./util":36}],13:[function(a,s,l){var u=function(){return this===void 0}();if(u)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:u,propertyIsWritable:function(g,y){var x=Object.getOwnPropertyDescriptor(g,y);return!(x&&!x.writable&&!x.set)}};else{var f={}.hasOwnProperty,d={}.toString,h={}.constructor.prototype,v=function(g){var y=[];for(var x in g)f.call(g,x)&&y.push(x);return y};s.exports={isArray:function(g){try{return d.call(g)==="[object Array]"}catch{return!1}},keys:v,names:v,defineProperty:function(g,y,x){return g[y]=x.value,g},getDescriptor:function(g,y){return{value:g[y]}},freeze:function(g){return g},getPrototypeOf:function(g){try{return Object(g).constructor.prototype}catch{return h}},isES5:u,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,l){s.exports=function(u,f){var d=u.map;u.prototype.filter=function(h,v){return d(this,h,v,f)},u.filter=function(h,v,g){return d(h,v,g,f)}}},{}],15:[function(a,s,l){s.exports=function(u,f,d){var h=a("./util"),v=u.CancellationError,g=h.errorObj,y=a("./catch_filter")(d);function x(P,T,A){this.promise=P,this.type=T,this.handler=A,this.called=!1,this.cancelPromise=null}function _(P){this.finallyHandler=P}function b(P,T){return P.cancelPromise!=null&&(arguments.length>1?P.cancelPromise._reject(T):P.cancelPromise._cancel(),P.cancelPromise=null,!0)}function w(){return E.call(this,this.promise._target()._settledValue())}function S(P){if(!b(this,P))return g.e=P,g}function E(P){var T=this.promise,A=this.handler;if(!this.called){this.called=!0;var D=this.isFinallyHandler()?A.call(T._boundValue()):A.call(T._boundValue(),P);if(D===d)return D;if(D!==void 0){T._setReturnedNonUndefined();var k=f(D,T);if(k instanceof u){if(this.cancelPromise!=null){if(k._isCancelled()){var I=new v("late cancellation observer");return T._attachExtraTrace(I),g.e=I,g}k.isPending()&&k._attachCancellationCallback(new _(this))}return k._then(w,S,void 0,this,void 0)}}}return T.isRejected()?(b(this),g.e=P,g):(b(this),P)}return x.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){b(this.finallyHandler)},u.prototype._passThrough=function(P,T,A,D){return typeof P!="function"?this.then():this._then(A,D,void 0,new x(this,T,P),void 0)},u.prototype.lastly=u.prototype.finally=function(P){return this._passThrough(P,0,E,E)},u.prototype.tap=function(P){return this._passThrough(P,1,E)},u.prototype.tapCatch=function(P){var T=arguments.length;if(T===1)return this._passThrough(P,1,void 0,E);var A,D=new Array(T-1),k=0;for(A=0;A<T-1;++A){var I=arguments[A];if(!h.isObject(I))return u.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+h.classString(I)));D[k++]=I}D.length=k;var F=arguments[A];return this._passThrough(y(D,F,this),1,void 0,E)},x}},{"./catch_filter":7,"./util":36}],16:[function(a,s,l){s.exports=function(u,f,d,h,v,g){var y=a("./errors").TypeError,x=a("./util"),_=x.errorObj,b=x.tryCatch,w=[];function S(E,P,T,A){if(g.cancellation()){var D=new u(d),k=this._finallyPromise=new u(d);this._promise=D.lastly(function(){return k}),D._captureStackTrace(),D._setOnCancel(this)}else(this._promise=new u(d))._captureStackTrace();this._stack=A,this._generatorFunction=E,this._receiver=P,this._generator=void 0,this._yieldHandlers=typeof T=="function"?[T].concat(w):w,this._yieldedPromise=null,this._cancellationPhase=!1}x.inherits(S,v),S.prototype._isResolved=function(){return this._promise===null},S.prototype._cleanup=function(){this._promise=this._generator=null,g.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},S.prototype._promiseCancelled=function(){if(!this._isResolved()){var E;if(this._generator.return!==void 0)this._promise._pushContext(),E=b(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var P=new u.CancellationError("generator .return() sentinel");u.coroutine.returnSentinel=P,this._promise._attachExtraTrace(P),this._promise._pushContext(),E=b(this._generator.throw).call(this._generator,P),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(E)}},S.prototype._promiseFulfilled=function(E){this._yieldedPromise=null,this._promise._pushContext();var P=b(this._generator.next).call(this._generator,E);this._promise._popContext(),this._continue(P)},S.prototype._promiseRejected=function(E){this._yieldedPromise=null,this._promise._attachExtraTrace(E),this._promise._pushContext();var P=b(this._generator.throw).call(this._generator,E);this._promise._popContext(),this._continue(P)},S.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof u){var E=this._yieldedPromise;this._yieldedPromise=null,E.cancel()}},S.prototype.promise=function(){return this._promise},S.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},S.prototype._continue=function(E){var P=this._promise;if(E===_)return this._cleanup(),this._cancellationPhase?P.cancel():P._rejectCallback(E.e,!1);var T=E.value;if(E.done===!0)return this._cleanup(),this._cancellationPhase?P.cancel():P._resolveCallback(T);var A=h(T,this._promise);if(A instanceof u||(A=function(k,I,F){for(var q=0;q<I.length;++q){F._pushContext();var W=b(I[q])(k);if(F._popContext(),W===_){F._pushContext();var X=u.reject(_.e);return F._popContext(),X}var Q=h(W,F);if(Q instanceof u)return Q}return null}(A,this._yieldHandlers,this._promise))!==null){var D=(A=A._target())._bitField;50397184&D?33554432&D?u._async.invoke(this._promiseFulfilled,this,A._value()):16777216&D?u._async.invoke(this._promiseRejected,this,A._reason()):this._promiseCancelled():(this._yieldedPromise=A,A._proxy(this,null))}else this._promiseRejected(new y(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(T))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},u.coroutine=function(E,P){if(typeof E!="function")throw new y(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var T=Object(P).yieldHandler,A=S,D=new Error().stack;return function(){var k=E.apply(this,arguments),I=new A(void 0,void 0,T,D),F=I.promise();return I._generator=k,I._promiseFulfilled(void 0),F}},u.coroutine.addYieldHandler=function(E){if(typeof E!="function")throw new y("expecting a function but got "+x.classString(E));w.push(E)},u.spawn=function(E){if(g.deprecated("Promise.spawn()","Promise.coroutine()"),typeof E!="function")return f(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var P=new S(E,this),T=P.promise();return P._run(u.spawn),T}}},{"./errors":12,"./util":36}],17:[function(a,s,l){s.exports=function(u,f,d,h,v,g){var y=a("./util");y.canEvaluate,y.tryCatch,y.errorObj,u.join=function(){var x,_=arguments.length-1;_>0&&typeof arguments[_]=="function"&&(x=arguments[_]);var b=[].slice.call(arguments);x&&b.pop();var w=new f(b).promise();return x!==void 0?w.spread(x):w}}},{"./util":36}],18:[function(a,s,l){s.exports=function(u,f,d,h,v,g){var y=u._getDomain,x=a("./util"),_=x.tryCatch,b=x.errorObj,w=u._async;function S(P,T,A,D){this.constructor$(P),this._promise._captureStackTrace();var k=y();this._callback=k===null?T:x.domainBind(k,T),this._preservedValues=D===v?new Array(this.length()):null,this._limit=A,this._inFlight=0,this._queue=[],w.invoke(this._asyncInit,this,void 0)}function E(P,T,A,D){if(typeof T!="function")return d("expecting a function but got "+x.classString(T));var k=0;if(A!==void 0){if(typeof A!="object"||A===null)return u.reject(new TypeError("options argument must be an object but it is "+x.classString(A)));if(typeof A.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(A.concurrency)));k=A.concurrency}return new S(P,T,k=typeof k=="number"&&isFinite(k)&&k>=1?k:0,D).promise()}x.inherits(S,f),S.prototype._asyncInit=function(){this._init$(void 0,-2)},S.prototype._init=function(){},S.prototype._promiseFulfilled=function(P,T){var A=this._values,D=this.length(),k=this._preservedValues,I=this._limit;if(T<0){if(A[T=-1*T-1]=P,I>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(I>=1&&this._inFlight>=I)return A[T]=P,this._queue.push(T),!1;k!==null&&(k[T]=P);var F=this._promise,q=this._callback,W=F._boundValue();F._pushContext();var X=_(q).call(W,P,T,D),Q=F._popContext();if(g.checkForgottenReturns(X,Q,k!==null?"Promise.filter":"Promise.map",F),X===b)return this._reject(X.e),!0;var ne=h(X,this._promise);if(ne instanceof u){var Z=(ne=ne._target())._bitField;if(!(50397184&Z))return I>=1&&this._inFlight++,A[T]=ne,ne._proxy(this,-1*(T+1)),!1;if(!(33554432&Z))return 16777216&Z?(this._reject(ne._reason()),!0):(this._cancel(),!0);X=ne._value()}A[T]=X}return++this._totalResolved>=D&&(k!==null?this._filter(A,k):this._resolve(A),!0)},S.prototype._drainQueue=function(){for(var P=this._queue,T=this._limit,A=this._values;P.length>0&&this._inFlight<T;){if(this._isResolved())return;var D=P.pop();this._promiseFulfilled(A[D],D)}},S.prototype._filter=function(P,T){for(var A=T.length,D=new Array(A),k=0,I=0;I<A;++I)P[I]&&(D[k++]=T[I]);D.length=k,this._resolve(D)},S.prototype.preservedValues=function(){return this._preservedValues},u.prototype.map=function(P,T){return E(this,P,T,null)},u.map=function(P,T,A,D){return E(P,T,A,D)}}},{"./util":36}],19:[function(a,s,l){s.exports=function(u,f,d,h,v){var g=a("./util"),y=g.tryCatch;u.method=function(x){if(typeof x!="function")throw new u.TypeError("expecting a function but got "+g.classString(x));return function(){var _=new u(f);_._captureStackTrace(),_._pushContext();var b=y(x).apply(this,arguments),w=_._popContext();return v.checkForgottenReturns(b,w,"Promise.method",_),_._resolveFromSyncValue(b),_}},u.attempt=u.try=function(x){if(typeof x!="function")return h("expecting a function but got "+g.classString(x));var _,b=new u(f);if(b._captureStackTrace(),b._pushContext(),arguments.length>1){v.deprecated("calling Promise.try with more than 1 argument");var w=arguments[1],S=arguments[2];_=g.isArray(w)?y(x).apply(S,w):y(x).call(S,w)}else _=y(x)();var E=b._popContext();return v.checkForgottenReturns(_,E,"Promise.try",b),b._resolveFromSyncValue(_),b},u.prototype._resolveFromSyncValue=function(x){x===g.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(a,s,l){var u=a("./util"),f=u.maybeWrapAsError,d=a("./errors").OperationalError,h=a("./es5"),v=/^(?:name|message|stack|cause)$/;function g(y){var x;if(function(S){return S instanceof Error&&h.getPrototypeOf(S)===Error.prototype}(y)){(x=new d(y)).name=y.name,x.message=y.message,x.stack=y.stack;for(var _=h.keys(y),b=0;b<_.length;++b){var w=_[b];v.test(w)||(x[w]=y[w])}return x}return u.markAsOriginatingFromRejection(y),y}s.exports=function(y,x){return function(_,b){if(y!==null){if(_){var w=g(f(_));y._attachExtraTrace(w),y._reject(w)}else if(x){var S=[].slice.call(arguments,1);y._fulfill(S)}else y._fulfill(b);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(u){var f=a("./util"),d=u._async,h=f.tryCatch,v=f.errorObj;function g(_,b){if(!f.isArray(_))return y.call(this,_,b);var w=h(b).apply(this._boundValue(),[null].concat(_));w===v&&d.throwLater(w.e)}function y(_,b){var w=this._boundValue(),S=_===void 0?h(b).call(w,null):h(b).call(w,null,_);S===v&&d.throwLater(S.e)}function x(_,b){if(!_){var w=new Error(_+"");w.cause=_,_=w}var S=h(b).call(this._boundValue(),_);S===v&&d.throwLater(S.e)}u.prototype.asCallback=u.prototype.nodeify=function(_,b){if(typeof _=="function"){var w=y;b!==void 0&&Object(b).spread&&(w=g),this._then(w,x,void 0,this,_)}return this}}},{"./util":36}],22:[function(a,s,l){s.exports=function(){var u=function(){return new S(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},f=function(){return new z.PromiseInspection(this._target())},d=function(K){return z.reject(new S(K))};function h(){}var v,g={},y=a("./util");v=y.isNode?function(){var K=r.domain;return K===void 0&&(K=null),K}:function(){return null},y.notEnumerableProp(z,"_getDomain",v);var x=a("./es5"),_=a("./async"),b=new _;x.defineProperty(z,"_async",{value:b});var w=a("./errors"),S=z.TypeError=w.TypeError;z.RangeError=w.RangeError;var E=z.CancellationError=w.CancellationError;z.TimeoutError=w.TimeoutError,z.OperationalError=w.OperationalError,z.RejectionError=w.OperationalError,z.AggregateError=w.AggregateError;var P=function(){},T={},A={},D=a("./thenables")(z,P),k=a("./promise_array")(z,P,D,d,h),I=a("./context")(z),F=I.create,q=a("./debuggability")(z,I),W=(q.CapturedTrace,a("./finally")(z,D,A)),X=a("./catch_filter")(A),Q=a("./nodeback"),ne=y.errorObj,Z=y.tryCatch;function z(K){K!==P&&function(te,ie){if(te==null||te.constructor!==z)throw new S(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof ie!="function")throw new S("expecting a function but got "+y.classString(ie))}(this,K),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(K),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function B(K){this.promise._resolveCallback(K)}function H(K){this.promise._rejectCallback(K,!1)}function ee(K){var te=new z(P);te._fulfillmentHandler0=K,te._rejectionHandler0=K,te._promise0=K,te._receiver0=K}return z.prototype.toString=function(){return"[object Promise]"},z.prototype.caught=z.prototype.catch=function(K){var te=arguments.length;if(te>1){var ie,ae=new Array(te-1),fe=0;for(ie=0;ie<te-1;++ie){var j=arguments[ie];if(!y.isObject(j))return d("Catch statement predicate: expecting an object but got "+y.classString(j));ae[fe++]=j}return ae.length=fe,K=arguments[ie],this.then(void 0,X(ae,K,this))}return this.then(void 0,K)},z.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},z.prototype.then=function(K,te){if(q.warnings()&&arguments.length>0&&typeof K!="function"&&typeof te!="function"){var ie=".then() only accepts functions but was passed: "+y.classString(K);arguments.length>1&&(ie+=", "+y.classString(te)),this._warn(ie)}return this._then(K,te,void 0,void 0,void 0)},z.prototype.done=function(K,te){this._then(K,te,void 0,void 0,void 0)._setIsFinal()},z.prototype.spread=function(K){return typeof K!="function"?d("expecting a function but got "+y.classString(K)):this.all()._then(K,void 0,void 0,T,void 0)},z.prototype.toJSON=function(){var K={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(K.fulfillmentValue=this.value(),K.isFulfilled=!0):this.isRejected()&&(K.rejectionReason=this.reason(),K.isRejected=!0),K},z.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new k(this).promise()},z.prototype.error=function(K){return this.caught(y.originatesFromRejection,K)},z.getNewLibraryCopy=s.exports,z.is=function(K){return K instanceof z},z.fromNode=z.fromCallback=function(K){var te=new z(P);te._captureStackTrace();var ie=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=Z(K)(Q(te,ie));return ae===ne&&te._rejectCallback(ae.e,!0),te._isFateSealed()||te._setAsyncGuaranteed(),te},z.all=function(K){return new k(K).promise()},z.cast=function(K){var te=D(K);return te instanceof z||((te=new z(P))._captureStackTrace(),te._setFulfilled(),te._rejectionHandler0=K),te},z.resolve=z.fulfilled=z.cast,z.reject=z.rejected=function(K){var te=new z(P);return te._captureStackTrace(),te._rejectCallback(K,!0),te},z.setScheduler=function(K){if(typeof K!="function")throw new S("expecting a function but got "+y.classString(K));return b.setScheduler(K)},z.prototype._then=function(K,te,ie,ae,fe){var j=fe!==void 0,N=j?fe:new z(P),U=this._target(),J=U._bitField;j||(N._propagateFrom(this,3),N._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&J?this._boundValue():U===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,N));var Y=v();if(50397184&J){var oe,he,Se=U._settlePromiseCtx;33554432&J?(he=U._rejectionHandler0,oe=K):16777216&J?(he=U._fulfillmentHandler0,oe=te,U._unsetRejectionIsUnhandled()):(Se=U._settlePromiseLateCancellationObserver,he=new E("late cancellation observer"),U._attachExtraTrace(he),oe=te),b.invoke(Se,U,{handler:Y===null?oe:typeof oe=="function"&&y.domainBind(Y,oe),promise:N,receiver:ae,value:he})}else U._addCallbacks(K,te,N,ae,Y);return N},z.prototype._length=function(){return 65535&this._bitField},z.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},z.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},z.prototype._setLength=function(K){this._bitField=-65536&this._bitField|65535&K},z.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},z.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},z.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},z.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},z.prototype._isFinal=function(){return(4194304&this._bitField)>0},z.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},z.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},z.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},z.prototype._setAsyncGuaranteed=function(){b.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},z.prototype._receiverAt=function(K){var te=K===0?this._receiver0:this[4*K-4+3];if(te!==g)return te===void 0&&this._isBound()?this._boundValue():te},z.prototype._promiseAt=function(K){return this[4*K-4+2]},z.prototype._fulfillmentHandlerAt=function(K){return this[4*K-4+0]},z.prototype._rejectionHandlerAt=function(K){return this[4*K-4+1]},z.prototype._boundValue=function(){},z.prototype._migrateCallback0=function(K){K._bitField;var te=K._fulfillmentHandler0,ie=K._rejectionHandler0,ae=K._promise0,fe=K._receiverAt(0);fe===void 0&&(fe=g),this._addCallbacks(te,ie,ae,fe,null)},z.prototype._migrateCallbackAt=function(K,te){var ie=K._fulfillmentHandlerAt(te),ae=K._rejectionHandlerAt(te),fe=K._promiseAt(te),j=K._receiverAt(te);j===void 0&&(j=g),this._addCallbacks(ie,ae,fe,j,null)},z.prototype._addCallbacks=function(K,te,ie,ae,fe){var j=this._length();if(j>=65531&&(j=0,this._setLength(0)),j===0)this._promise0=ie,this._receiver0=ae,typeof K=="function"&&(this._fulfillmentHandler0=fe===null?K:y.domainBind(fe,K)),typeof te=="function"&&(this._rejectionHandler0=fe===null?te:y.domainBind(fe,te));else{var N=4*j-4;this[N+2]=ie,this[N+3]=ae,typeof K=="function"&&(this[N+0]=fe===null?K:y.domainBind(fe,K)),typeof te=="function"&&(this[N+1]=fe===null?te:y.domainBind(fe,te))}return this._setLength(j+1),j},z.prototype._proxy=function(K,te){this._addCallbacks(void 0,void 0,te,K,null)},z.prototype._resolveCallback=function(K,te){if(!(117506048&this._bitField)){if(K===this)return this._rejectCallback(u(),!1);var ie=D(K,this);if(!(ie instanceof z))return this._fulfill(K);te&&this._propagateFrom(ie,2);var ae=ie._target();if(ae!==this){var fe=ae._bitField;if(50397184&fe)if(33554432&fe)this._fulfill(ae._value());else if(16777216&fe)this._reject(ae._reason());else{var U=new E("late cancellation observer");ae._attachExtraTrace(U),this._reject(U)}else{var j=this._length();j>0&&ae._migrateCallback0(this);for(var N=1;N<j;++N)ae._migrateCallbackAt(this,N);this._setFollowing(),this._setLength(0),this._setFollowee(ae)}}else this._reject(u())}},z.prototype._rejectCallback=function(K,te,ie){var ae=y.ensureErrorObject(K),fe=ae===K;if(!fe&&!ie&&q.warnings()){var j="a promise was rejected with a non-error: "+y.classString(K);this._warn(j,!0)}this._attachExtraTrace(ae,!!te&&fe),this._reject(K)},z.prototype._resolveFromExecutor=function(K){if(K!==P){var te=this;this._captureStackTrace(),this._pushContext();var ie=!0,ae=this._execute(K,function(fe){te._resolveCallback(fe)},function(fe){te._rejectCallback(fe,ie)});ie=!1,this._popContext(),ae!==void 0&&te._rejectCallback(ae,!0)}},z.prototype._settlePromiseFromHandler=function(K,te,ie,ae){var fe=ae._bitField;if(!(65536&fe)){var j;ae._pushContext(),te===T?ie&&typeof ie.length=="number"?j=Z(K).apply(this._boundValue(),ie):(j=ne).e=new S("cannot .spread() a non-array: "+y.classString(ie)):j=Z(K).call(te,ie);var N=ae._popContext();!(65536&(fe=ae._bitField))&&(j===A?ae._reject(ie):j===ne?ae._rejectCallback(j.e,!1):(q.checkForgottenReturns(j,N,"",ae,this),ae._resolveCallback(j)))}},z.prototype._target=function(){for(var K=this;K._isFollowing();)K=K._followee();return K},z.prototype._followee=function(){return this._rejectionHandler0},z.prototype._setFollowee=function(K){this._rejectionHandler0=K},z.prototype._settlePromise=function(K,te,ie,ae){var fe=K instanceof z,j=this._bitField,N=(134217728&j)!=0;65536&j?(fe&&K._invokeInternalOnCancel(),ie instanceof W&&ie.isFinallyHandler()?(ie.cancelPromise=K,Z(te).call(ie,ae)===ne&&K._reject(ne.e)):te===f?K._fulfill(f.call(ie)):ie instanceof h?ie._promiseCancelled(K):fe||K instanceof k?K._cancel():ie.cancel()):typeof te=="function"?fe?(N&&K._setAsyncGuaranteed(),this._settlePromiseFromHandler(te,ie,ae,K)):te.call(ie,ae,K):ie instanceof h?ie._isResolved()||(33554432&j?ie._promiseFulfilled(ae,K):ie._promiseRejected(ae,K)):fe&&(N&&K._setAsyncGuaranteed(),33554432&j?K._fulfill(ae):K._reject(ae))},z.prototype._settlePromiseLateCancellationObserver=function(K){var te=K.handler,ie=K.promise,ae=K.receiver,fe=K.value;typeof te=="function"?ie instanceof z?this._settlePromiseFromHandler(te,ae,fe,ie):te.call(ae,fe,ie):ie instanceof z&&ie._reject(fe)},z.prototype._settlePromiseCtx=function(K){this._settlePromise(K.promise,K.handler,K.receiver,K.value)},z.prototype._settlePromise0=function(K,te,ie){var ae=this._promise0,fe=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ae,K,fe,te)},z.prototype._clearCallbackDataAtIndex=function(K){var te=4*K-4;this[te+2]=this[te+3]=this[te+0]=this[te+1]=void 0},z.prototype._fulfill=function(K){var te=this._bitField;if(!((117506048&te)>>>16)){if(K===this){var ie=u();return this._attachExtraTrace(ie),this._reject(ie)}this._setFulfilled(),this._rejectionHandler0=K,(65535&te)>0&&(134217728&te?this._settlePromises():b.settlePromises(this))}},z.prototype._reject=function(K){var te=this._bitField;if(!((117506048&te)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=K,this._isFinal())return b.fatalError(K,y.isNode);(65535&te)>0?b.settlePromises(this):this._ensurePossibleRejectionHandled()}},z.prototype._fulfillPromises=function(K,te){for(var ie=1;ie<K;ie++){var ae=this._fulfillmentHandlerAt(ie),fe=this._promiseAt(ie),j=this._receiverAt(ie);this._clearCallbackDataAtIndex(ie),this._settlePromise(fe,ae,j,te)}},z.prototype._rejectPromises=function(K,te){for(var ie=1;ie<K;ie++){var ae=this._rejectionHandlerAt(ie),fe=this._promiseAt(ie),j=this._receiverAt(ie);this._clearCallbackDataAtIndex(ie),this._settlePromise(fe,ae,j,te)}},z.prototype._settlePromises=function(){var K=this._bitField,te=65535&K;if(te>0){if(16842752&K){var ie=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ie,K),this._rejectPromises(te,ie)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,K),this._fulfillPromises(te,ae)}this._setLength(0)}this._clearCancellationData()},z.prototype._settledValue=function(){var K=this._bitField;return 33554432&K?this._rejectionHandler0:16777216&K?this._fulfillmentHandler0:void 0},z.defer=z.pending=function(){return q.deprecated("Promise.defer","new Promise"),{promise:new z(P),resolve:B,reject:H}},y.notEnumerableProp(z,"_makeSelfResolutionError",u),a("./method")(z,P,D,d,q),a("./bind")(z,P,D,q),a("./cancel")(z,k,d,q),a("./direct_resolve")(z),a("./synchronous_inspection")(z),a("./join")(z,k,D,P,b,v),z.Promise=z,z.version="3.5.1",a("./map.js")(z,k,d,D,P,q),a("./call_get.js")(z),a("./using.js")(z,d,D,F,P,q),a("./timers.js")(z,P,q),a("./generators.js")(z,d,P,D,h,q),a("./nodeify.js")(z),a("./promisify.js")(z,P),a("./props.js")(z,k,D,d),a("./race.js")(z,P,D,d),a("./reduce.js")(z,k,d,D,P,q),a("./settle.js")(z,k,q),a("./some.js")(z,k,d),a("./filter.js")(z,P),a("./each.js")(z,P),a("./any.js")(z),y.toFastProperties(z),y.toFastProperties(z.prototype),ee({a:1}),ee({b:2}),ee({c:3}),ee(1),ee(function(){}),ee(void 0),ee(!1),ee(new z(P)),q.setBounds(_.firstLineError,y.lastLineError),z}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,l){s.exports=function(u,f,d,h,v){var g=a("./util");function y(x){var _=this._promise=new u(f);x instanceof u&&_._propagateFrom(x,3),_._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return g.isArray,g.inherits(y,v),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function x(_,b){var w=d(this._values,this._promise);if(w instanceof u){var S=(w=w._target())._bitField;if(this._values=w,(50397184&S)==0)return this._promise._setAsyncGuaranteed(),w._then(x,this._reject,void 0,this,b);if(!(33554432&S))return 16777216&S?this._reject(w._reason()):this._cancel();w=w._value()}if((w=g.asArray(w))!==null)w.length!==0?this._iterate(w):b===-5?this._resolveEmptyArray():this._resolve(function(P){switch(b){case-2:return[];case-3:return{};case-6:return new Map}}());else{var E=h("expecting an array or an iterable object but got "+g.classString(w)).reason();this._promise._rejectCallback(E,!1)}},y.prototype._iterate=function(x){var _=this.getActualLength(x.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var b=this._promise,w=!1,S=null,E=0;E<_;++E){var P=d(x[E],b);S=P instanceof u?(P=P._target())._bitField:null,w?S!==null&&P.suppressUnhandledRejections():S!==null?50397184&S?w=33554432&S?this._promiseFulfilled(P._value(),E):16777216&S?this._promiseRejected(P._reason(),E):this._promiseCancelled(E):(P._proxy(this,E),this._values[E]=P):w=this._promiseFulfilled(P,E)}w||b._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},y.prototype._promiseFulfilled=function(x,_){return this._values[_]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof u)x.cancel();else for(var _=0;_<x.length;++_)x[_]instanceof u&&x[_].cancel()}},y.prototype.shouldCopyValues=function(){return!0},y.prototype.getActualLength=function(x){return x},y}},{"./util":36}],24:[function(a,s,l){s.exports=function(u,f){var d={},h=a("./util"),v=a("./nodeback"),g=h.withAppended,y=h.maybeWrapAsError,x=h.canEvaluate,_=a("./errors").TypeError,b={__isPromisified__:!0},w=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),S=function(F){return h.isIdentifier(F)&&F.charAt(0)!=="_"&&F!=="constructor"};function E(F){return!w.test(F)}function P(F){try{return F.__isPromisified__===!0}catch{return!1}}function T(F,q,W){var X=h.getDataPropertyOrDefault(F,q+W,b);return!!X&&P(X)}function A(F,q,W,X){for(var Q=h.inheritedDataKeys(F),ne=[],Z=0;Z<Q.length;++Z){var z=Q[Z],B=F[z],H=X===S||S(z);typeof B!="function"||P(B)||T(F,z,q)||!X(z,B,F,H)||ne.push(z,B)}return function(ee,K,te){for(var ie=0;ie<ee.length;ie+=2){var ae=ee[ie];if(te.test(ae)){for(var fe=ae.replace(te,""),j=0;j<ee.length;j+=2)if(ee[j]===fe)throw new _(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",K))}}}(ne,q,W),ne}var D=function(F){return F.replace(/([$])/,"\\$")},k=x?void 0:function(F,q,W,X,Q,ne){var Z=function(){return this}(),z=F;function B(){var H=q;q===d&&(H=this);var ee=new u(f);ee._captureStackTrace();var K=typeof z=="string"&&this!==Z?this[z]:F,te=v(ee,ne);try{K.apply(H,g(arguments,te))}catch(ie){ee._rejectCallback(y(ie),!0,!0)}return ee._isFateSealed()||ee._setAsyncGuaranteed(),ee}return typeof z=="string"&&(F=X),h.notEnumerableProp(B,"__isPromisified__",!0),B};function I(F,q,W,X,Q){for(var ne=new RegExp(D(q)+"$"),Z=A(F,q,ne,W),z=0,B=Z.length;z<B;z+=2){var H=Z[z],ee=Z[z+1],K=H+q;if(X===k)F[K]=k(H,d,H,ee,q,Q);else{var te=X(ee,function(){return k(H,d,H,ee,q,Q)});h.notEnumerableProp(te,"__isPromisified__",!0),F[K]=te}}return h.toFastProperties(F),F}u.promisify=function(F,q){if(typeof F!="function")throw new _("expecting a function but got "+h.classString(F));if(P(F))return F;var W=(q=Object(q)).context===void 0?d:q.context,X=!!q.multiArgs,Q=function(ne,Z,z){return k(ne,Z,void 0,ne,null,X)}(F,W);return h.copyDescriptors(F,Q,E),Q},u.promisifyAll=function(F,q){if(typeof F!="function"&&typeof F!="object")throw new _(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var W=!!(q=Object(q)).multiArgs,X=q.suffix;typeof X!="string"&&(X="Async");var Q=q.filter;typeof Q!="function"&&(Q=S);var ne=q.promisifier;if(typeof ne!="function"&&(ne=k),!h.isIdentifier(X))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var Z=h.inheritedDataKeys(F),z=0;z<Z.length;++z){var B=F[Z[z]];Z[z]!=="constructor"&&h.isClass(B)&&(I(B.prototype,X,Q,ne,W),I(B,X,Q,ne,W))}return I(F,X,Q,ne,W)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,l){s.exports=function(u,f,d,h){var v,g=a("./util"),y=g.isObject,x=a("./es5");typeof Map=="function"&&(v=Map);var _=function(){var S=0,E=0;function P(T,A){this[S]=T,this[S+E]=A,S++}return function(T){E=T.size,S=0;var A=new Array(2*T.size);return T.forEach(P,A),A}}();function b(S){var E,P=!1;if(v!==void 0&&S instanceof v)E=_(S),P=!0;else{var T=x.keys(S),A=T.length;E=new Array(2*A);for(var D=0;D<A;++D){var k=T[D];E[D]=S[k],E[D+A]=k}}this.constructor$(E),this._isMap=P,this._init$(void 0,P?-6:-3)}function w(S){var E,P=d(S);return y(P)?(E=P instanceof u?P._then(u.props,void 0,void 0,void 0,void 0):new b(P).promise(),P instanceof u&&E._propagateFrom(P,2),E):h(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}g.inherits(b,f),b.prototype._init=function(){},b.prototype._promiseFulfilled=function(S,E){if(this._values[E]=S,++this._totalResolved>=this._length){var P;if(this._isMap)P=function(k){for(var I=new v,F=k.length/2|0,q=0;q<F;++q){var W=k[F+q],X=k[q];I.set(W,X)}return I}(this._values);else{P={};for(var T=this.length(),A=0,D=this.length();A<D;++A)P[this._values[A+T]]=this._values[A]}return this._resolve(P),!0}return!1},b.prototype.shouldCopyValues=function(){return!1},b.prototype.getActualLength=function(S){return S>>1},u.prototype.props=function(){return w(this)},u.props=function(S){return w(S)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function u(f){this._capacity=f,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(f){return this._capacity<f},u.prototype._pushOne=function(f){var d=this.length();this._checkCapacity(d+1),this[this._front+d&this._capacity-1]=f,this._length=d+1},u.prototype.push=function(f,d,h){var v=this.length()+3;if(this._willBeOverCapacity(v))return this._pushOne(f),this._pushOne(d),void this._pushOne(h);var g=this._front+v-3;this._checkCapacity(v);var y=this._capacity-1;this[g+0&y]=f,this[g+1&y]=d,this[g+2&y]=h,this._length=v},u.prototype.shift=function(){var f=this._front,d=this[f];return this[f]=void 0,this._front=f+1&this._capacity-1,this._length--,d},u.prototype.length=function(){return this._length},u.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},u.prototype._resizeTo=function(f){var d=this._capacity;this._capacity=f,function(h,v,g,y,x){for(var _=0;_<x;++_)g[_+y]=h[_+0],h[_+0]=void 0}(this,0,this,d,this._front+this._length&d-1)},s.exports=u},{}],27:[function(a,s,l){s.exports=function(u,f,d,h){var v=a("./util"),g=function(x){return x.then(function(_){return y(_,x)})};function y(x,_){var b=d(x);if(b instanceof u)return g(b);if((x=v.asArray(x))===null)return h("expecting an array or an iterable object but got "+v.classString(x));var w=new u(f);_!==void 0&&w._propagateFrom(_,3);for(var S=w._fulfill,E=w._reject,P=0,T=x.length;P<T;++P){var A=x[P];(A!==void 0||P in x)&&u.cast(A)._then(S,E,void 0,w,null)}return w}u.race=function(x){return y(x,void 0)},u.prototype.race=function(){return y(this,void 0)}}},{"./util":36}],28:[function(a,s,l){s.exports=function(u,f,d,h,v,g){var y=u._getDomain,x=a("./util"),_=x.tryCatch;function b(T,A,D,k){this.constructor$(T);var I=y();this._fn=I===null?A:x.domainBind(I,A),D!==void 0&&(D=u.resolve(D))._attachCancellationCallback(this),this._initialValue=D,this._currentCancellable=null,this._eachValues=k===v?Array(this._length):k===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function w(T,A){this.isFulfilled()?A._resolve(T):A._reject(T)}function S(T,A,D,k){return typeof A!="function"?d("expecting a function but got "+x.classString(A)):new b(T,A,D,k).promise()}function E(T){this.accum=T,this.array._gotAccum(T);var A=h(this.value,this.array._promise);return A instanceof u?(this.array._currentCancellable=A,A._then(P,void 0,void 0,this,void 0)):P.call(this,A)}function P(T){var A,D=this.array,k=D._promise,I=_(D._fn);k._pushContext(),(A=D._eachValues!==void 0?I.call(k._boundValue(),T,this.index,this.length):I.call(k._boundValue(),this.accum,T,this.index,this.length))instanceof u&&(D._currentCancellable=A);var F=k._popContext();return g.checkForgottenReturns(A,F,D._eachValues!==void 0?"Promise.each":"Promise.reduce",k),A}x.inherits(b,f),b.prototype._gotAccum=function(T){this._eachValues!==void 0&&this._eachValues!==null&&T!==v&&this._eachValues.push(T)},b.prototype._eachComplete=function(T){return this._eachValues!==null&&this._eachValues.push(T),this._eachValues},b.prototype._init=function(){},b.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},b.prototype.shouldCopyValues=function(){return!1},b.prototype._resolve=function(T){this._promise._resolveCallback(T),this._values=null},b.prototype._resultCancelled=function(T){if(T===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof u&&this._currentCancellable.cancel(),this._initialValue instanceof u&&this._initialValue.cancel())},b.prototype._iterate=function(T){var A,D;this._values=T;var k=T.length;if(this._initialValue!==void 0?(A=this._initialValue,D=0):(A=u.resolve(T[0]),D=1),this._currentCancellable=A,!A.isRejected())for(;D<k;++D){var I={accum:null,value:T[D],index:D,length:k,array:this};A=A._then(E,void 0,void 0,I,void 0)}this._eachValues!==void 0&&(A=A._then(this._eachComplete,void 0,void 0,this,void 0)),A._then(w,w,void 0,A,this)},u.prototype.reduce=function(T,A){return S(this,T,A,null)},u.reduce=function(T,A,D,k){return S(T,A,D,k)}}},{"./util":36}],29:[function(a,s,l){var u,f=a("./util"),d=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var h=i.setImmediate,v=r.nextTick;u=f.isRecentNode?function(y){h.call(i,y)}:function(y){v.call(r,y)}}else if(typeof d=="function"&&typeof d.resolve=="function"){var g=d.resolve();u=function(y){g.then(y)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(y){o(y)}:typeof setTimeout<"u"?function(y){setTimeout(y,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var y=document.createElement("div"),x={attributes:!0},_=!1,b=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),_=!1}).observe(b,x),function(w){var S=new MutationObserver(function(){S.disconnect(),w()});S.observe(y,x),_||(_=!0,b.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,l){s.exports=function(u,f,d){var h=u.PromiseInspection;function v(g){this.constructor$(g)}a("./util").inherits(v,f),v.prototype._promiseResolved=function(g,y){return this._values[g]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},v.prototype._promiseFulfilled=function(g,y){var x=new h;return x._bitField=33554432,x._settledValueField=g,this._promiseResolved(y,x)},v.prototype._promiseRejected=function(g,y){var x=new h;return x._bitField=16777216,x._settledValueField=g,this._promiseResolved(y,x)},u.settle=function(g){return d.deprecated(".settle()",".reflect()"),new v(g).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(u,f,d){var h=a("./util"),v=a("./errors").RangeError,g=a("./errors").AggregateError,y=h.isArray,x={};function _(w){this.constructor$(w),this._howMany=0,this._unwrap=!1,this._initialized=!1}function b(w,S){if((0|S)!==S||S<0)return d(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var E=new _(w),P=E.promise();return E.setHowMany(S),E.init(),P}h.inherits(_,f),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var w=y(this._values);!this._isResolved()&&w&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},_.prototype.init=function(){this._initialized=!0,this._init()},_.prototype.setUnwrap=function(){this._unwrap=!0},_.prototype.howMany=function(){return this._howMany},_.prototype.setHowMany=function(w){this._howMany=w},_.prototype._promiseFulfilled=function(w){return this._addFulfilled(w),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},_.prototype._promiseRejected=function(w){return this._addRejected(w),this._checkOutcome()},_.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var w=new g,S=this.length();S<this._values.length;++S)this._values[S]!==x&&w.push(this._values[S]);return w.length>0?this._reject(w):this._cancel(),!0}return!1},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(w){this._values.push(w)},_.prototype._addFulfilled=function(w){this._values[this._totalResolved++]=w},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(w){var S="Input array must contain at least "+this._howMany+" items but contains only "+w+" items";return new v(S)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(w,S){return b(w,S)},u.prototype.some=function(w){return b(this,w)},u._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(u){function f(_){_!==void 0?(_=_._target(),this._bitField=_._bitField,this._settledValueField=_._isFateSealed()?_._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var d=f.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},h=f.prototype.error=f.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);return this._settledValue()},v=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},g=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},y=f.prototype.isPending=function(){return(50397184&this._bitField)==0},x=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},u.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},u.prototype._isCancelled=function(){return this._target().__isCancelled()},u.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},u.prototype.isPending=function(){return y.call(this._target())},u.prototype.isRejected=function(){return g.call(this._target())},u.prototype.isFulfilled=function(){return v.call(this._target())},u.prototype.isResolved=function(){return x.call(this._target())},u.prototype.value=function(){return d.call(this._target())},u.prototype.reason=function(){var _=this._target();return _._unsetRejectionIsUnhandled(),h.call(_)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=f}},{}],33:[function(a,s,l){s.exports=function(u,f){var d=a("./util"),h=d.errorObj,v=d.isObject,g={}.hasOwnProperty;return function(y,x){if(v(y)){if(y instanceof u)return y;var _=function(w){try{return function(S){return S.then}(w)}catch(S){return h.e=S,h}}(y);if(_===h){x&&x._pushContext();var b=u.reject(_.e);return x&&x._popContext(),b}if(typeof _=="function")return function(w){try{return g.call(w,"_promise0")}catch{return!1}}(y)?(b=new u(f),y._then(b._fulfill,b._reject,void 0,b,null),b):function(w,S,E){var P=new u(f),T=P;E&&E._pushContext(),P._captureStackTrace(),E&&E._popContext();var A=!0,D=d.tryCatch(S).call(w,function(k){P&&(P._resolveCallback(k),P=null)},function(k){P&&(P._rejectCallback(k,A,!0),P=null)});return A=!1,P&&D===h&&(P._rejectCallback(D.e,!0,!0),P=null),T}(y,_,x)}return y}}},{"./util":36}],34:[function(a,s,l){s.exports=function(u,f,d){var h=a("./util"),v=u.TimeoutError;function g(w){this.handle=w}g.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(w){return x(+this).thenReturn(w)},x=u.delay=function(w,S){var E,P;return S!==void 0?(E=u.resolve(S)._then(y,null,null,w,void 0),d.cancellation()&&S instanceof u&&E._setOnCancel(S)):(E=new u(f),P=setTimeout(function(){E._fulfill()},+w),d.cancellation()&&E._setOnCancel(new g(P)),E._captureStackTrace()),E._setAsyncGuaranteed(),E};function _(w){return clearTimeout(this.handle),w}function b(w){throw clearTimeout(this.handle),w}u.prototype.delay=function(w){return x(w,this)},u.prototype.timeout=function(w,S){var E,P;w=+w;var T=new g(setTimeout(function(){E.isPending()&&function(A,D,k){var I;I=typeof D!="string"?D instanceof Error?D:new v("operation timed out"):new v(D),h.markAsOriginatingFromRejection(I),A._attachExtraTrace(I),A._reject(I),k!=null&&k.cancel()}(E,S,P)},w));return d.cancellation()?(P=this.then(),(E=P._then(_,b,void 0,T,void 0))._setOnCancel(T)):E=this._then(_,b,void 0,T,void 0),E}}},{"./util":36}],35:[function(a,s,l){s.exports=function(u,f,d,h,v,g){var y=a("./util"),x=a("./errors").TypeError,_=a("./util").inherits,b=y.errorObj,w=y.tryCatch,S={};function E(I){setTimeout(function(){throw I},0)}function P(I,F){var q=0,W=I.length,X=new u(v);return function Q(){if(q>=W)return X._fulfill();var ne=function(Z){var z=d(Z);return z!==Z&&typeof Z._isDisposable=="function"&&typeof Z._getDisposer=="function"&&Z._isDisposable()&&z._setDisposable(Z._getDisposer()),z}(I[q++]);if(ne instanceof u&&ne._isDisposable()){try{ne=d(ne._getDisposer().tryDispose(F),I.promise)}catch(Z){return E(Z)}if(ne instanceof u)return ne._then(Q,E,null,null,null)}Q()}(),X}function T(I,F,q){this._data=I,this._promise=F,this._context=q}function A(I,F,q){this.constructor$(I,F,q)}function D(I){return T.isDisposer(I)?(this.resources[this.index]._setDisposable(I),I.promise()):I}function k(I){this.length=I,this.promise=null,this[I-1]=null}T.prototype.data=function(){return this._data},T.prototype.promise=function(){return this._promise},T.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():S},T.prototype.tryDispose=function(I){var F=this.resource(),q=this._context;q!==void 0&&q._pushContext();var W=F!==S?this.doDispose(F,I):null;return q!==void 0&&q._popContext(),this._promise._unsetDisposable(),this._data=null,W},T.isDisposer=function(I){return I!=null&&typeof I.resource=="function"&&typeof I.tryDispose=="function"},_(A,T),A.prototype.doDispose=function(I,F){return this.data().call(I,I,F)},k.prototype._resultCancelled=function(){for(var I=this.length,F=0;F<I;++F){var q=this[F];q instanceof u&&q.cancel()}},u.using=function(){var I=arguments.length;if(I<2)return f("you must pass at least 2 arguments to Promise.using");var F,q=arguments[I-1];if(typeof q!="function")return f("expecting a function but got "+y.classString(q));var W=!0;I===2&&Array.isArray(arguments[0])?(I=(F=arguments[0]).length,W=!1):(F=arguments,I--);for(var X=new k(I),Q=0;Q<I;++Q){var ne=F[Q];if(T.isDisposer(ne)){var Z=ne;(ne=ne.promise())._setDisposable(Z)}else{var z=d(ne);z instanceof u&&(ne=z._then(D,null,null,{resources:X,index:Q},void 0))}X[Q]=ne}var B=new Array(X.length);for(Q=0;Q<B.length;++Q)B[Q]=u.resolve(X[Q]).reflect();var H=u.all(B).then(function(K){for(var te=0;te<K.length;++te){var ie=K[te];if(ie.isRejected())return b.e=ie.error(),b;if(!ie.isFulfilled())return void H.cancel();K[te]=ie.value()}ee._pushContext(),q=w(q);var ae=W?q.apply(void 0,K):q(K),fe=ee._popContext();return g.checkForgottenReturns(ae,fe,"Promise.using",ee),ae}),ee=H.lastly(function(){var K=new u.PromiseInspection(H);return P(X,K)});return X.promise=ee,ee._setOnCancel(X),ee},u.prototype._setDisposable=function(I){this._bitField=131072|this._bitField,this._disposer=I},u.prototype._isDisposable=function(){return(131072&this._bitField)>0},u.prototype._getDisposer=function(){return this._disposer},u.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},u.prototype.disposer=function(I){if(typeof I=="function")return new A(I,this,h());throw new x}}},{"./errors":12,"./util":36}],36:[function(a,s,l){var u,f=a("./es5"),d=typeof navigator>"u",h={e:{}},v=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function g(){try{var W=u;return u=null,W.apply(this,arguments)}catch(X){return h.e=X,h}}function y(W){return W==null||W===!0||W===!1||typeof W=="string"||typeof W=="number"}function x(W,X,Q){if(y(W))return W;var ne={value:Q,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(W,X,ne),W}var _=function(){var W=[Array.prototype,Object.prototype,Function.prototype],X=function(Z){for(var z=0;z<W.length;++z)if(W[z]===Z)return!0;return!1};if(f.isES5){var Q=Object.getOwnPropertyNames;return function(Z){for(var z=[],B=Object.create(null);Z!=null&&!X(Z);){var H;try{H=Q(Z)}catch{return z}for(var ee=0;ee<H.length;++ee){var K=H[ee];if(!B[K]){B[K]=!0;var te=Object.getOwnPropertyDescriptor(Z,K);te!=null&&te.get==null&&te.set==null&&z.push(K)}}Z=f.getPrototypeOf(Z)}return z}}var ne={}.hasOwnProperty;return function(Z){if(X(Z))return[];var z=[];e:for(var B in Z)if(ne.call(Z,B))z.push(B);else{for(var H=0;H<W.length;++H)if(ne.call(W[H],B))continue e;z.push(B)}return z}}(),b=/this\s*\.\s*\S+\s*=/,w=/^[a-z$_][a-z$_0-9]*$/i;function S(W){try{return W+""}catch{return"[no string representation]"}}function E(W){return W instanceof Error||W!==null&&typeof W=="object"&&typeof W.message=="string"&&typeof W.name=="string"}function P(W){return E(W)&&f.propertyIsWritable(W,"stack")}var T="stack"in new Error?function(W){return P(W)?W:new Error(S(W))}:function(W){if(P(W))return W;try{throw new Error(S(W))}catch(X){return X}};function A(W){return{}.toString.call(W)}var D=function(W){return f.isArray(W)?W:null};if(typeof Symbol<"u"&&Symbol.iterator){var k=typeof Array.from=="function"?function(W){return Array.from(W)}:function(W){for(var X,Q=[],ne=W[Symbol.iterator]();!(X=ne.next()).done;)Q.push(X.value);return Q};D=function(W){return f.isArray(W)?W:W!=null&&typeof W[Symbol.iterator]=="function"?k(W):null}}var I=r!==void 0&&A(r).toLowerCase()==="[object process]",F=r!==void 0&&r.env!==void 0,q={isClass:function(W){try{if(typeof W=="function"){var X=f.names(W.prototype),Q=f.isES5&&X.length>1,ne=X.length>0&&!(X.length===1&&X[0]==="constructor"),Z=b.test(W+"")&&f.names(W).length>0;if(Q||ne||Z)return!0}return!1}catch{return!1}},isIdentifier:function(W){return w.test(W)},inheritedDataKeys:_,getDataPropertyOrDefault:function(W,X,Q){if(!f.isES5)return{}.hasOwnProperty.call(W,X)?W[X]:void 0;var ne=Object.getOwnPropertyDescriptor(W,X);return ne!=null?ne.get==null&&ne.set==null?ne.value:Q:void 0},thrower:function(W){throw W},isArray:f.isArray,asArray:D,notEnumerableProp:x,isPrimitive:y,isObject:function(W){return typeof W=="function"||typeof W=="object"&&W!==null},isError:E,canEvaluate:d,errorObj:h,tryCatch:function(W){return u=W,g},inherits:function(W,X){var Q={}.hasOwnProperty;function ne(){for(var Z in this.constructor=W,this.constructor$=X,X.prototype)Q.call(X.prototype,Z)&&Z.charAt(Z.length-1)!=="$"&&(this[Z+"$"]=X.prototype[Z])}return ne.prototype=X.prototype,W.prototype=new ne,W.prototype},withAppended:function(W,X){var Q,ne=W.length,Z=new Array(ne+1);for(Q=0;Q<ne;++Q)Z[Q]=W[Q];return Z[Q]=X,Z},maybeWrapAsError:function(W){return y(W)?new Error(S(W)):W},toFastProperties:function(W){return W},filledRange:function(W,X,Q){for(var ne=new Array(W),Z=0;Z<W;++Z)ne[Z]=X+Z+Q;return ne},toString:S,canAttachTrace:P,ensureErrorObject:T,originatesFromRejection:function(W){return W!=null&&(W instanceof Error.__BluebirdErrorTypes__.OperationalError||W.isOperational===!0)},markAsOriginatingFromRejection:function(W){try{x(W,"isOperational",!0)}catch{}},classString:A,copyDescriptors:function(W,X,Q){for(var ne=f.names(W),Z=0;Z<ne.length;++Z){var z=ne[Z];if(Q(z))try{f.defineProperty(X,z,f.getDescriptor(W,z))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:I,hasEnvVariables:F,env:function(W){return F?r.env[W]:void 0},global:v,getNativePromise:function(){if(typeof Promise=="function")try{var W=new Promise(function(){});if({}.toString.call(W)==="[object Promise]")return Promise}catch{}},domainBind:function(W,X){return W.bind(X)}};q.isRecentNode=q.isNode&&function(){var W=r.versions.node.split(".").map(Number);return W[0]===0&&W[1]>10||W[0]>0}(),q.isNode&&q.toFastProperties(r);try{throw new Error}catch(W){q.lastLineError=W}s.exports=q},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,a=r.length;o<a;o++)if(r[o]==="\r"){if(r[o+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,a){var s=i(o,a);return r(s)?s:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(e,t,n){(function(r,i){var o=n(6);e.exports=S;var a,s=n(37);S.ReadableState=w,n(12).EventEmitter;var l=function(B,H){return B.listeners(H).length},u=n(24),f=n(7).Buffer,d=r.Uint8Array||function(){},h=n(5);h.inherits=n(2);var v=n(41),g=void 0;g=v&&v.debuglog?v.debuglog("stream"):function(){};var y,x=n(42),_=n(25);h.inherits(S,u);var b=["error","close","destroy","pause","resume"];function w(B,H){a=a||n(1),B=B||{};var ee=H instanceof a;this.objectMode=!!B.objectMode,ee&&(this.objectMode=this.objectMode||!!B.readableObjectMode);var K=B.highWaterMark,te=B.readableHighWaterMark,ie=this.objectMode?16:16384;this.highWaterMark=K||K===0?K:ee&&(te||te===0)?te:ie,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new x,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(y||(y=n(26).StringDecoder),this.decoder=new y(B.encoding),this.encoding=B.encoding)}function S(B){if(a=a||n(1),!(this instanceof S))return new S(B);this._readableState=new w(B,this),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),u.call(this)}function E(B,H,ee,K,te){var ie,ae=B._readableState;return H===null?(ae.reading=!1,function(fe,j){if(!j.ended){if(j.decoder){var N=j.decoder.end();N&&N.length&&(j.buffer.push(N),j.length+=j.objectMode?1:N.length)}j.ended=!0,D(fe)}}(B,ae)):(te||(ie=function(fe,j){var N;return function(U){return f.isBuffer(U)||U instanceof d}(j)||typeof j=="string"||j===void 0||fe.objectMode||(N=new TypeError("Invalid non-string/buffer chunk")),N}(ae,H)),ie?B.emit("error",ie):ae.objectMode||H&&H.length>0?(typeof H=="string"||ae.objectMode||Object.getPrototypeOf(H)===f.prototype||(H=function(fe){return f.from(fe)}(H)),K?ae.endEmitted?B.emit("error",new Error("stream.unshift() after end event")):P(B,ae,H,!0):ae.ended?B.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!ee?(H=ae.decoder.write(H),ae.objectMode||H.length!==0?P(B,ae,H,!1):I(B,ae)):P(B,ae,H,!1))):K||(ae.reading=!1)),function(fe){return!fe.ended&&(fe.needReadable||fe.length<fe.highWaterMark||fe.length===0)}(ae)}function P(B,H,ee,K){H.flowing&&H.length===0&&!H.sync?(B.emit("data",ee),B.read(0)):(H.length+=H.objectMode?1:ee.length,K?H.buffer.unshift(ee):H.buffer.push(ee),H.needReadable&&D(B)),I(B,H)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(B){this._readableState&&(this._readableState.destroyed=B)}}),S.prototype.destroy=_.destroy,S.prototype._undestroy=_.undestroy,S.prototype._destroy=function(B,H){this.push(null),H(B)},S.prototype.push=function(B,H){var ee,K=this._readableState;return K.objectMode?ee=!0:typeof B=="string"&&((H=H||K.defaultEncoding)!==K.encoding&&(B=f.from(B,H),H=""),ee=!0),E(this,B,H,!1,ee)},S.prototype.unshift=function(B){return E(this,B,null,!0,!1)},S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(B){return y||(y=n(26).StringDecoder),this._readableState.decoder=new y(B),this._readableState.encoding=B,this};var T=8388608;function A(B,H){return B<=0||H.length===0&&H.ended?0:H.objectMode?1:B!=B?H.flowing&&H.length?H.buffer.head.data.length:H.length:(B>H.highWaterMark&&(H.highWaterMark=function(ee){return ee>=T?ee=T:(ee--,ee|=ee>>>1,ee|=ee>>>2,ee|=ee>>>4,ee|=ee>>>8,ee|=ee>>>16,ee++),ee}(B)),B<=H.length?B:H.ended?H.length:(H.needReadable=!0,0))}function D(B){var H=B._readableState;H.needReadable=!1,H.emittedReadable||(g("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?o.nextTick(k,B):k(B))}function k(B){g("emit readable"),B.emit("readable"),X(B)}function I(B,H){H.readingMore||(H.readingMore=!0,o.nextTick(F,B,H))}function F(B,H){for(var ee=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark&&(g("maybeReadMore read 0"),B.read(0),ee!==H.length);)ee=H.length;H.readingMore=!1}function q(B){g("readable nexttick read 0"),B.read(0)}function W(B,H){H.reading||(g("resume read 0"),B.read(0)),H.resumeScheduled=!1,H.awaitDrain=0,B.emit("resume"),X(B),H.flowing&&!H.reading&&B.read(0)}function X(B){var H=B._readableState;for(g("flow",H.flowing);H.flowing&&B.read()!==null;);}function Q(B,H){return H.length===0?null:(H.objectMode?ee=H.buffer.shift():!B||B>=H.length?(ee=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.head.data:H.buffer.concat(H.length),H.buffer.clear()):ee=function(K,te,ie){var ae;return K<te.head.data.length?(ae=te.head.data.slice(0,K),te.head.data=te.head.data.slice(K)):ae=K===te.head.data.length?te.shift():ie?function(fe,j){var N=j.head,U=1,J=N.data;for(fe-=J.length;N=N.next;){var Y=N.data,oe=fe>Y.length?Y.length:fe;if(oe===Y.length?J+=Y:J+=Y.slice(0,fe),(fe-=oe)==0){oe===Y.length?(++U,N.next?j.head=N.next:j.head=j.tail=null):(j.head=N,N.data=Y.slice(oe));break}++U}return j.length-=U,J}(K,te):function(fe,j){var N=f.allocUnsafe(fe),U=j.head,J=1;for(U.data.copy(N),fe-=U.data.length;U=U.next;){var Y=U.data,oe=fe>Y.length?Y.length:fe;if(Y.copy(N,N.length-fe,0,oe),(fe-=oe)==0){oe===Y.length?(++J,U.next?j.head=U.next:j.head=j.tail=null):(j.head=U,U.data=Y.slice(oe));break}++J}return j.length-=J,N}(K,te),ae}(B,H.buffer,H.decoder),ee);var ee}function ne(B){var H=B._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,o.nextTick(Z,H,B))}function Z(B,H){B.endEmitted||B.length!==0||(B.endEmitted=!0,H.readable=!1,H.emit("end"))}function z(B,H){for(var ee=0,K=B.length;ee<K;ee++)if(B[ee]===H)return ee;return-1}S.prototype.read=function(B){g("read",B),B=parseInt(B,10);var H=this._readableState,ee=B;if(B!==0&&(H.emittedReadable=!1),B===0&&H.needReadable&&(H.length>=H.highWaterMark||H.ended))return g("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?ne(this):D(this),null;if((B=A(B,H))===0&&H.ended)return H.length===0&&ne(this),null;var K,te=H.needReadable;return g("need readable",te),(H.length===0||H.length-B<H.highWaterMark)&&g("length less than watermark",te=!0),H.ended||H.reading?g("reading or ended",te=!1):te&&(g("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(B=A(ee,H))),(K=B>0?Q(B,H):null)===null?(H.needReadable=!0,B=0):H.length-=B,H.length===0&&(H.ended||(H.needReadable=!0),ee!==B&&H.ended&&ne(this)),K!==null&&this.emit("data",K),K},S.prototype._read=function(B){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(B,H){var ee=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=B;break;case 1:K.pipes=[K.pipes,B];break;default:K.pipes.push(B)}K.pipesCount+=1,g("pipe count=%d opts=%j",K.pipesCount,H);var te=H&&H.end===!1||B===i.stdout||B===i.stderr?oe:ie;function ie(){g("onend"),B.end()}K.endEmitted?o.nextTick(te):ee.once("end",te),B.on("unpipe",function he(Se,se){g("onunpipe"),Se===ee&&se&&se.hasUnpiped===!1&&(se.hasUnpiped=!0,g("cleanup"),B.removeListener("close",J),B.removeListener("finish",Y),B.removeListener("drain",ae),B.removeListener("error",U),B.removeListener("unpipe",he),ee.removeListener("end",ie),ee.removeListener("end",oe),ee.removeListener("data",N),fe=!0,!K.awaitDrain||B._writableState&&!B._writableState.needDrain||ae())});var ae=function(he){return function(){var Se=he._readableState;g("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&l(he,"data")&&(Se.flowing=!0,X(he))}}(ee);B.on("drain",ae);var fe=!1,j=!1;function N(he){g("ondata"),j=!1,B.write(he)!==!1||j||((K.pipesCount===1&&K.pipes===B||K.pipesCount>1&&z(K.pipes,B)!==-1)&&!fe&&(g("false write response, pause",ee._readableState.awaitDrain),ee._readableState.awaitDrain++,j=!0),ee.pause())}function U(he){g("onerror",he),oe(),B.removeListener("error",U),l(B,"error")===0&&B.emit("error",he)}function J(){B.removeListener("finish",Y),oe()}function Y(){g("onfinish"),B.removeListener("close",J),oe()}function oe(){g("unpipe"),ee.unpipe(B)}return ee.on("data",N),function(he,Se,se){if(typeof he.prependListener=="function")return he.prependListener(Se,se);he._events&&he._events[Se]?s(he._events[Se])?he._events[Se].unshift(se):he._events[Se]=[se,he._events[Se]]:he.on(Se,se)}(B,"error",U),B.once("close",J),B.once("finish",Y),B.emit("pipe",ee),K.flowing||(g("pipe resume"),ee.resume()),B},S.prototype.unpipe=function(B){var H=this._readableState,ee={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return B&&B!==H.pipes?this:(B||(B=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,B&&B.emit("unpipe",this,ee),this);if(!B){var K=H.pipes,te=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var ie=0;ie<te;ie++)K[ie].emit("unpipe",this,ee);return this}var ae=z(H.pipes,B);return ae===-1?this:(H.pipes.splice(ae,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),B.emit("unpipe",this,ee),this)},S.prototype.on=function(B,H){var ee=u.prototype.on.call(this,B,H);if(B==="data")this._readableState.flowing!==!1&&this.resume();else if(B==="readable"){var K=this._readableState;K.endEmitted||K.readableListening||(K.readableListening=K.needReadable=!0,K.emittedReadable=!1,K.reading?K.length&&D(this):o.nextTick(q,this))}return ee},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var B=this._readableState;return B.flowing||(g("resume"),B.flowing=!0,function(H,ee){ee.resumeScheduled||(ee.resumeScheduled=!0,o.nextTick(W,H,ee))}(this,B)),this},S.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},S.prototype.wrap=function(B){var H=this,ee=this._readableState,K=!1;for(var te in B.on("end",function(){if(g("wrapped end"),ee.decoder&&!ee.ended){var ae=ee.decoder.end();ae&&ae.length&&H.push(ae)}H.push(null)}),B.on("data",function(ae){g("wrapped data"),ee.decoder&&(ae=ee.decoder.write(ae)),(!ee.objectMode||ae!=null)&&(ee.objectMode||ae&&ae.length)&&(H.push(ae)||(K=!0,B.pause()))}),B)this[te]===void 0&&typeof B[te]=="function"&&(this[te]=function(ae){return function(){return B[ae].apply(B,arguments)}}(te));for(var ie=0;ie<b.length;ie++)B.on(b[ie],this.emit.bind(this,b[ie]));return this._read=function(ae){g("wrapped _read",ae),K&&(K=!1,B.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=Q}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(o,a){o.emit("error",a)}e.exports={destroy:function(o,a){var s=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(a?a(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!a&&f?(r.nextTick(i,s,f),s._writableState&&(s._writableState.errorEmitted=!0)):a&&a(f)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){var r=n(7).Buffer,i=r.isEncoding||function(g){switch((g=""+g)&&g.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(g){var y;switch(this.encoding=function(x){var _=function(b){if(!b)return"utf8";for(var w;;)switch(b){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return b;default:if(w)return;b=(""+b).toLowerCase(),w=!0}}(x);if(typeof _!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return _||x}(g),this.encoding){case"utf16le":this.text=l,this.end=u,y=4;break;case"utf8":this.fillLast=s,y=4;break;case"base64":this.text=f,this.end=d,y=3;break;default:return this.write=h,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}function a(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function s(g){var y=this.lastTotal-this.lastNeed,x=function(_,b,w){if((192&b[0])!=128)return _.lastNeed=0,"<22>";if(_.lastNeed>1&&b.length>1){if((192&b[1])!=128)return _.lastNeed=1,"<22>";if(_.lastNeed>2&&b.length>2&&(192&b[2])!=128)return _.lastNeed=2,"<22>"}}(this,g);return x!==void 0?x:this.lastNeed<=g.length?(g.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,y,0,g.length),void(this.lastNeed-=g.length))}function l(g,y){if((g.length-y)%2==0){var x=g.toString("utf16le",y);if(x){var _=x.charCodeAt(x.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",y,g.length-1)}function u(g){var y=g&&g.length?this.write(g):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,x)}return y}function f(g,y){var x=(g.length-y)%3;return x===0?g.toString("base64",y):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",y,g.length-x))}function d(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function h(g){return g.toString(this.encoding)}function v(g){return g&&g.length?this.write(g):""}t.StringDecoder=o,o.prototype.write=function(g){if(g.length===0)return"";var y,x;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<g.length?y?y+this.text(g,x):this.text(g,x):y||""},o.prototype.end=function(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+"<22>":y},o.prototype.text=function(g,y){var x=function(b,w,S){var E=w.length-1;if(E<S)return 0;var P=a(w[E]);return P>=0?(P>0&&(b.lastNeed=P-1),P):--E<S||P===-2?0:(P=a(w[E]))>=0?(P>0&&(b.lastNeed=P-2),P):--E<S||P===-2?0:(P=a(w[E]))>=0?(P>0&&(P===2?P=0:b.lastNeed=P-3),P):0}(this,g,y);if(!this.lastNeed)return g.toString("utf8",y);this.lastTotal=x;var _=g.length-(x-this.lastNeed);return g.copy(this.lastChar,0,_),g.toString("utf8",y,_)},o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:(function(u,f){var d=this._transformState;d.transforming=!1;var h=d.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,f!=null&&this.push(f),h(u);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",a)}function a(){var l=this;typeof this._flush=="function"?this._flush(function(u,f){s(l,u,f)}):s(this,null,null)}function s(l,u,f){if(u)return l.emit("error",u);if(f!=null&&l.push(f),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(l,u){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,u)},o.prototype._transform=function(l,u,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(l,u,f){var d=this._transformState;if(d.writecb=f,d.writechunk=l,d.writeencoding=u,!d.transforming){var h=this._readableState;(d.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},o.prototype._read=function(l){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},o.prototype._destroy=function(l,u){var f=this;r.prototype._destroy.call(this,l,function(d){u(d),f.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),a=r.allocUnsafe?r.allocUnsafe(o):new r(o);return a.write(i),a},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var a=[],s=0;s<i.length;s++)o.indexOf(s)>-1&&a.push(i[s]);return a},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,l,u){var f=o.call(this,"Error: "+s+". JSON Line number: "+l+(u?" near: "+u:""))||this;return f.err=s,f.line=l,f.extra=u,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var x in y)y.hasOwnProperty(x)&&(g[x]=y[x])};return function(g,y){function x(){this.constructor=g}v(g,y),g.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),o=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),l=n(51),u=o(n(15)),f=n(52),d=n(105),h=function(v){function g(y,x){x===void 0&&(x={});var _=v.call(this,x)||this;return _.options=x,_.params=s.mergeParams(y),_.runtime=l.initParseRuntime(_),_.result=new d.Result(_),_.processor=new f.ProcessorLocal(_),_.once("error",function(b){r(function(){_.result.processError(b),_.emit("done",b)})}),_.once("done",function(){_.processor.destroy()}),_}return i(g,v),g.prototype.preRawData=function(y){return this.runtime.preRawDataHook=y,this},g.prototype.preFileLine=function(y){return this.runtime.preFileLineHook=y,this},g.prototype.subscribe=function(y,x,_){return this.parseRuntime.subscribe={onNext:y,onError:x,onCompleted:_},this},g.prototype.fromFile=function(y,x){var _=this,b=n(!function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}());return b.exists(y,function(w){w?b.createReadStream(y,x).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},g.prototype.fromStream=function(y){return y.pipe(this),this},g.prototype.fromString=function(y){y.toString();var x=new a.Readable,_=0;return x._read=function(b){if(_>=y.length)this.push(null);else{var w=y.substr(_,b);this.push(w),_+=b}},this.fromStream(x)},g.prototype.then=function(y,x){var _=this;return new u.default(function(b,w){_.parseRuntime.then={onfulfilled:function(S){b(y?y(S):S)},onrejected:function(S){x?b(x(S)):w(S)}}})},Object.defineProperty(g.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),g.prototype._transform=function(y,x,_){var b=this;this.processor.process(y).then(function(w){if(w.length>0)return b.runtime.started=!0,b.result.processResult(w)}).then(function(){b.emit("drained"),_()},function(w){b.runtime.hasError=!0,b.runtime.error=w,b.emit("error",w),_()})},g.prototype._flush=function(y){var x=this;this.processor.flush().then(function(_){if(_.length>0)return x.result.processResult(_)}).then(function(){x.processEnd(y)},function(_){x.emit("error",_),y()})},g.prototype.processEnd=function(y){this.result.endProcess(),this.emit("done"),y()},Object.defineProperty(g.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),g}(a.Transform);t.Converter=h}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,u={},f=!1,d=o.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(o);h=h&&h.setTimeout?h:o,{}.toString.call(o.process)==="[object process]"?s=function(y){i.nextTick(function(){g(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,x=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=x,y}}()?function(){var y="setImmediate$"+Math.random()+"$",x=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(y)===0&&g(+_.data.slice(y.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),s=function(_){o.postMessage(y+_,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(x){g(x.data)},s=function(x){y.port2.postMessage(x)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var y=d.documentElement;s=function(x){var _=d.createElement("script");_.onreadystatechange=function(){g(x),_.onreadystatechange=null,y.removeChild(_),_=null},y.appendChild(_)}}():s=function(y){setTimeout(g,0,y)},h.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var x=new Array(arguments.length-1),_=0;_<x.length;_++)x[_]=arguments[_+1];var b={callback:y,args:x};return u[l]=b,s(l),l++},h.clearImmediate=v}function v(y){delete u[y]}function g(y){if(f)setTimeout(g,0,y);else{var x=u[y];if(x){f=!0;try{(function(_){var b=_.callback,w=_.args;switch(w.length){case 0:b();break;case 1:b(w[0]);break;case 2:b(w[0],w[1]);break;case 3:b(w[0],w[1],w[2]);break;default:b.apply(a,w)}})(x)}finally{v(y),f=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function l(y){o.writable&&o.write(y)===!1&&s.pause&&s.pause()}function u(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",u),o._isStdio||a&&a.end===!1||(s.on("end",d),s.on("close",h));var f=!1;function d(){f||(f=!0,o.end())}function h(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function v(y){if(g(),r.listenerCount(this,"error")===0)throw y}function g(){s.removeListener("data",l),o.removeListener("drain",u),s.removeListener("end",d),s.removeListener("close",h),s.removeListener("error",v),o.removeListener("error",v),s.removeListener("end",g),s.removeListener("close",g),o.removeListener("close",g)}return s.on("error",v),o.on("error",v),s.on("end",g),s.on("close",g),o.on("close",g),o.emit("pipe",s),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(h){var v=u(h),g=v[0],y=v[1];return 3*(g+y)/4-y},t.toByteArray=function(h){for(var v,g=u(h),y=g[0],x=g[1],_=new o(3*(y+x)/4-x),b=0,w=x>0?y-4:y,S=0;S<w;S+=4)v=i[h.charCodeAt(S)]<<18|i[h.charCodeAt(S+1)]<<12|i[h.charCodeAt(S+2)]<<6|i[h.charCodeAt(S+3)],_[b++]=v>>16&255,_[b++]=v>>8&255,_[b++]=255&v;return x===2&&(v=i[h.charCodeAt(S)]<<2|i[h.charCodeAt(S+1)]>>4,_[b++]=255&v),x===1&&(v=i[h.charCodeAt(S)]<<10|i[h.charCodeAt(S+1)]<<4|i[h.charCodeAt(S+2)]>>2,_[b++]=v>>8&255,_[b++]=255&v),_},t.fromByteArray=function(h){for(var v,g=h.length,y=g%3,x=[],_=0,b=g-y;_<b;_+=16383)x.push(d(h,_,_+16383>b?b:_+16383));return y===1?(v=h[g-1],x.push(r[v>>2]+r[v<<4&63]+"==")):y===2&&(v=(h[g-2]<<8)+h[g-1],x.push(r[v>>10]+r[v>>4&63]+r[v<<2&63]+"=")),x.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(h){var v=h.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=h.indexOf("=");return g===-1&&(g=v),[g,g===v?0:4-g%4]}function f(h){return r[h>>18&63]+r[h>>12&63]+r[h>>6&63]+r[63&h]}function d(h,v,g){for(var y,x=[],_=v;_<g;_+=3)y=(h[_]<<16&16711680)+(h[_+1]<<8&65280)+(255&h[_+2]),x.push(f(y));return x.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,o,a){var s,l,u=8*a-o-1,f=(1<<u)-1,d=f>>1,h=-7,v=i?a-1:0,g=i?-1:1,y=n[r+v];for(v+=g,s=y&(1<<-h)-1,y>>=-h,h+=u;h>0;s=256*s+n[r+v],v+=g,h-=8);for(l=s&(1<<-h)-1,s>>=-h,h+=o;h>0;l=256*l+n[r+v],v+=g,h-=8);if(s===0)s=1-d;else{if(s===f)return l?NaN:1/0*(y?-1:1);l+=Math.pow(2,o),s-=d}return(y?-1:1)*l*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var l,u,f,d=8*s-a-1,h=(1<<d)-1,v=h>>1,g=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:s-1,x=o?1:-1,_=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,l=h):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+v>=1?g/f:g*Math.pow(2,1-v))*f>=2&&(l++,f/=2),l+v>=h?(u=0,l=h):l+v>=1?(u=(r*f-1)*Math.pow(2,a),l+=v):(u=r*Math.pow(2,v-1)*Math.pow(2,a),l=0));a>=8;n[i+y]=255&u,y+=x,u/=256,a-=8);for(l=l<<a|u,d+=a;d>0;n[i+y]=255&l,y+=x,l/=256,d-=8);n[i+y-x]|=128*_}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(a,s,l){a.copy(s,l)}e.exports=function(){function a(){(function(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var l=this.head,u=""+l.data;l=l.next;)u+=s+l.data;return u},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),u=this.head,f=0;u;)o(u.data,l,f),f+=u.data.length,u=u.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,l){l(null,a)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var w in b)b.hasOwnProperty(w)&&(_[w]=b[w])};return function(_,b){function w(){this.constructor=_}x(_,b),_.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),l=n(54),u=o(n(16)),f=n(57),d=n(28),h=n(58),v=o(n(59)),g=o(n(29)),y=function(x){function _(){var b=x!==null&&x.apply(this,arguments)||this;return b.rowSplit=new h.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(_,x),_.prototype.flush=function(){var b=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var w=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(w,!0).then(function(S){return b.runtime.csvLineBuffer&&b.runtime.csvLineBuffer.length>0?s.default.reject(g.default.unclosed_quote(b.runtime.parsedLineNumber,b.runtime.csvLineBuffer.toString())):s.default.resolve(S)})}return s.default.resolve([])},_.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(_.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(_.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),_.prototype.process=function(b,w){var S,E=this;return w===void 0&&(w=!1),S=w?b.toString():l.prepareData(b,this.converter.parseRuntime),s.default.resolve().then(function(){return E.runtime.preRawDataHook?E.runtime.preRawDataHook(S):S}).then(function(P){return P&&P.length>0?E.processCSV(P,w):s.default.resolve([])})},_.prototype.processCSV=function(b,w){var S=this,E=this.params,P=this.runtime;P.eol||u.default(b,P),this.needEmitEol&&!this.eolEmitted&&P.eol&&(this.converter.emit("eol",P.eol),this.eolEmitted=!0),E.ignoreEmpty&&!P.started&&(b=d.trimLeft(b));var T=f.stringToLines(b,P);return w?(T.lines.push(T.partial),T.partial=""):this.prependLeftBuf(d.bufFromString(T.partial)),T.lines.length>0?(P.preFileLineHook?this.runPreLineHook(T.lines):s.default.resolve(T.lines)).then(function(A){return P.started||S.runtime.headers?S.processCSVBody(A):S.processDataWithHead(A)}):s.default.resolve([])},_.prototype.processDataWithHead=function(b){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var w="",S=[];b.length;){var E=w+b.shift(),P=this.rowSplit.parse(E);if(P.closed){S=P.cells,w="";break}w=E+u.default(E,this.runtime)}if(this.prependLeftBuf(d.bufFromString(w)),S.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=S}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(b)},_.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var b=this.runtime.headers,w=0;w<b.length;w++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(b[w])){if(!this.params.includeColumns||!this.params.includeColumns.test(b[w]))continue;this.runtime.selectedColumns.push(w)}else this.runtime.selectedColumns.push(w);else this.params.includeColumns?this.params.includeColumns.test(b[w])&&this.runtime.selectedColumns.push(w):this.runtime.selectedColumns.push(w);this.runtime.headers=d.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},_.prototype.processCSVBody=function(b){if(this.params.output==="line")return b;var w=this.rowSplit.parseMultiLines(b);return this.prependLeftBuf(d.bufFromString(w.partial)),this.params.output==="csv"?w.rowsCells:v.default(w.rowsCells,this.converter)},_.prototype.prependLeftBuf=function(b){b&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([b,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=b)},_.prototype.runPreLineHook=function(b){var w=this;return new s.default(function(S,E){(function P(T,A,D,k){if(D>=T.length)k();else if(A.preFileLineHook){var I=T[D],F=A.preFileLineHook(I,A.parsedLineNumber+D);if(D++,F&&F.then)F.then(function(q){T[D-1]=q,P(T,A,D,k)});else{for(T[D-1]=F;D<T.length;)T[D]=A.preFileLineHook(T[D],A.parsedLineNumber+D),D++;k()}}else k()})(b,w.runtime,0,function(P){P?E(P):S(b)})})},_}(a.Processor);t.ProcessorLocal=y}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(a,s){var l=function(f,d){return d.csvLineBuffer&&d.csvLineBuffer.length>0?r.concat([d.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var u=function(f,d){var h=f.length-1;if(128&f[h]){for(;(192&f[h])==128;)h--;h--}return h!=f.length-1?(d.csvLineBuffer=f.slice(h+1),f.slice(0,h+1)):f}(l,s).toString("utf8");return s.started===!1?o.default(u):u}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,a){var s=i.default(o,a),l=o.split(s);return{lines:l,partial:l.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function l(u){this.conv=u,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=u.parseParam.quote,this.trim=u.parseParam.trim,this.escape=u.parseParam.escape}return Object.defineProperty(l.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(u){if(u.length===0||this.conv.parseParam.ignoreEmpty&&u.trim().length===0)return{cells:[],closed:!0};var f=this.quote,d=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(u)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var h=this.conv.parseRuntime.delimiter,v=u.split(h);if(f==="off"){if(d)for(var g=0;g<v.length;g++)v[g]=v[g].trim();return{cells:v,closed:!0}}return this.toCSVRow(v,d,f,h)},l.prototype.toCSVRow=function(u,f,d,h){for(var v=[],g=!1,y="",x=0,_=u.length;x<_;x++){var b=u[x];!g&&f&&(b=o.trimLeft(b));var w=b.length;if(g)this.isQuoteClose(b)?(g=!1,y+=h+(b=b.substr(0,w-1)),y=this.escapeQuote(y),f&&(y=o.trimRight(y)),v.push(y),y=""):y+=h+b;else{if(w===2&&b===this.quote+this.quote){v.push("");continue}if(this.isQuoteOpen(b)){if(b=b.substr(1),this.isQuoteClose(b)){b=b.substring(0,b.lastIndexOf(d)),b=this.escapeQuote(b),v.push(b);continue}if(b.indexOf(d)!==-1){for(var S=0,E="",P=0,T=b;P<T.length;P++){var A=T[P];A===d&&E!==this.escape?(S++,E=""):E=A}if(S%2==1){f&&(b=o.trimRight(b)),v.push(d+b);continue}g=!0,y+=b;continue}g=!0,y+=b;continue}f&&(b=o.trimRight(b)),v.push(b)}}return{cells:v,closed:!g}},l.prototype.getDelimiter=function(u){var f;if(this.conv.parseParam.delimiter==="auto")f=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var d=0,h=",";return f.forEach(function(v){var g=u.split(v).length;g>d&&(h=v,d=g)}),h},l.prototype.isQuoteOpen=function(u){var f=this.quote,d=this.escape;return u[0]===f&&(u[1]!==f||u[1]===d&&(u[2]===f||u.length===2))},l.prototype.isQuoteClose=function(u){var f=this.quote,d=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var h=0,v=u.length-1;u[v]===f||u[v]===d;)v--,h++;return h%2!=0},l.prototype.escapeQuote=function(u){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var d=this.cachedRegExp[f];return u.replace(d,this.quote)},l.prototype.parseMultiLines=function(u){for(var f=[],d="";u.length;){var h=d+u.shift(),v=this.parse(h);v.cells.length===0&&this.conv.parseParam.ignoreEmpty||(v.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(v.cells,this.conv.parseRuntime.selectedColumns)):f.push(v.cells),d=""):d=h+(i.default(h,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:f,partial:d}},l}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(_,b,w){if(b.parseParam.checkColumn&&b.parseRuntime.headers&&_.length!==b.parseRuntime.headers.length)throw i.default.column_mismatched(b.parseRuntime.parsedLineNumber+w);return function(S,E,P){for(var T=!1,A={},D=0,k=S.length;D<k;D++){var I=S[D];if(!P.parseParam.ignoreEmpty||I!==""){T=!0;var F=E[D];F&&F!==""||(F=E[D]="field"+(D+1));var q=u(F,D,P);if(q){var W=q(I,F,A,S,D);W!==void 0&&f(A,F,W,P,D)}else P.parseParam.checkType&&(I=v(I,F,D,P)(I)),I!==void 0&&f(A,F,I,P,D)}}return T?A:null}(_,b.parseRuntime.headers||[],b)||null}t.default=function(_,b){for(var w=[],S=0,E=_.length;S<E;S++){var P=s(_[S],b,S);P&&w.push(P)}return w};var l={string:y,number:g,omit:function(){}};function u(_,b,w){if(w.parseRuntime.columnConv[b]!==void 0)return w.parseRuntime.columnConv[b];var S=w.parseParam.colParser[_];if(S===void 0)return w.parseRuntime.columnConv[b]=null;if(typeof S=="object"&&(S=S.cellParser||"string"),typeof S=="string"){S=S.trim().toLowerCase();var E=l[S];return w.parseRuntime.columnConv[b]=E||null}return w.parseRuntime.columnConv[b]=typeof S=="function"?S:null}function f(_,b,w,S,E){if(!S.parseRuntime.columnValueSetter[E])if(S.parseParam.flatKeys)S.parseRuntime.columnValueSetter[E]=d;else if(b.indexOf(".")>-1){for(var P=b.split("."),T=!0;P.length>0;)if(P.shift().length===0){T=!1;break}!T||S.parseParam.colParser[b]&&S.parseParam.colParser[b].flat?S.parseRuntime.columnValueSetter[E]=d:S.parseRuntime.columnValueSetter[E]=h}else S.parseRuntime.columnValueSetter[E]=d;S.parseParam.nullObject===!0&&w==="null"&&(w=null),S.parseRuntime.columnValueSetter[E](_,b,w)}function d(_,b,w){_[b]=w}function h(_,b,w){o.default(_,b,w)}function v(_,b,w,S){return S.parseRuntime.headerType[w]?S.parseRuntime.headerType[w]:b.indexOf("number#!")>-1?S.parseRuntime.headerType[w]=g:b.indexOf("string#!")>-1?S.parseRuntime.headerType[w]=y:S.parseParam.checkType?S.parseRuntime.headerType[w]=x:S.parseRuntime.headerType[w]=y}function g(_){var b=parseFloat(_);return isNaN(b)?_:b}function y(_){return _.toString()}function x(_){var b=_.trim();return b===""?y(_):a.test(b)?g(_):b.length===5&&b.toLowerCase()==="false"||b.length===4&&b.toLowerCase()==="true"?function(w){var S=w.trim();return S.length!==5||S.toLowerCase()!=="false"}(_):b[0]==="{"&&b[b.length-1]==="}"||b[0]==="["&&b[b.length-1]==="]"?function(w){try{return JSON.parse(w)}catch{return w}}(_):y(_)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(l,u,f,d){if(!a(l))return l;for(var h=-1,v=(u=i(u,l)).length,g=v-1,y=l;y!=null&&++h<v;){var x=s(u[h]),_=f;if(h!=g){var b=y[x];(_=d?d(b,x,y):void 0)===void 0&&(_=a(b)?b:o(u[h+1])?[]:{})}r(y,x,_),y=y[x]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,l){var u=a[s];o.call(a,s)&&i(u,l)&&(l!==void 0||s in a)||r(a,s,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,f=l.toString,d=u.hasOwnProperty,h=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(v){return!(!o(v)||i(v))&&(r(v)?h:s).test(a(v))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var a=r(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var u=o.call(l,s),f=l[s];try{l[s]=void 0;var d=!0}catch{}var h=a.call(l);return d&&(u?l[s]=f:delete l[s]),h}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),a=n(100);e.exports=function(s,l){return r(s)?s:i(s,l)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,l){if(r(s))return!1;var u=typeof s;return!(u!="number"&&u!="symbol"&&u!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||l!=null&&s in Object(l)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(r,function(l,u,f,d){s.push(f?d.replace(i,"$1"):u||l)}),s});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var l=function(){var u=arguments,f=s?s.apply(this,u):u[0],d=l.cache;if(d.has(f))return d.get(f);var h=a.apply(this,u);return l.cache=d.set(f,h)||d,h};return l.cache=new(o.Cache||r),l}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var h=u[f];this.set(h[0],h[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var h=u[f];this.set(h[0],h[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;if(r){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return r?a[o]!==void 0:i.call(a,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var h=u[f];this.set(h[0],h[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(o){var a=this.__data__,s=r(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function u(f){if(typeof f=="string")return f;if(o(f))return i(f,u)+"";if(a(f))return l?l.call(f):"";var d=f+"";return d=="0"&&1/f==-1/0?"-0":d}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i<o;)a[i]=r(n[i],i,n);return a}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function l(u){this.converter=u,this.finalResult=[]}return Object.defineProperty(l.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needPushDownstream",{get:function(){return this._needPushDownstream===void 0&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(u){var f=this,d=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&d===0&&s(this.converter,"["+o.EOL),new i.default(function(h,v){f.needEmitLine?function g(y,x,_,b,w){if(_>=y.length)w();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var S=x.parseRuntime.subscribe.onNext,E=y[_],P=S(E,x.parseRuntime.parsedLineNumber+_);if(_++,P&&P.then)P.then(function(){(function(A,D,k,I,F,q,W){F&&s(k,W),g(A,k,I,F,q)})(y,0,x,_,b,w,E)},w);else{for(b&&s(x,E);_<y.length;){var T=y[_];S(T,x.parseRuntime.parsedLineNumber+_),_++,b&&s(x,T)}w()}}else{if(b)for(;_<y.length;)T=y[_++],s(x,T);w()}}(u,f.converter,0,f.needPushDownstream,function(g){g?v(g):(f.appendFinalResult(u),h())}):(f.appendFinalResult(u),h())})},l.prototype.appendFinalResult=function(u){this.needEmitAll&&(this.finalResult=this.finalResult.concat(u)),this.converter.parseRuntime.parsedLineNumber+=u.length},l.prototype.processError=function(u){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(u),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(u)},l.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&s(this.converter,"]"+o.EOL)},l}();function s(l,u){if(typeof u!="object"||l.options.objectMode)l.push(u);else{var f=JSON.stringify(u);l.push(f+(l.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
|
||
`,t.homedir=function(){return"/"}}]);const TFe=st(CFe),jFe=e=>new Promise(t=>{TFe().fromString(e).then(t)}),AFe=new PF,kFe=e=>AFe.parse(e),NFe="shlink",U$=e=>`${NFe}.${e}`;class MFe{constructor(t){Xl(this,"get",t=>{const n=this.localStorage.getItem(U$(t));return n?JSON.parse(n):void 0});Xl(this,"set",(t,n)=>this.localStorage.setItem(U$(t),JSON.stringify(n)));this.localStorage=t}}class RFe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const LFe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",MFe,"localStorage"),e.service("TagColorsStorage",RFe,"Storage"),e.constant("csvToJson",jFe),e.constant("jsonToCsv",kFe),e.serviceFactory("useTimeoutToggle",()=>N8)},Ul=new kD,{container:YT}=Ul,$Fe=(e,t)=>(...n)=>e[t](...n),IFe=(e,t)=>({...e,[t]:$Fe(YT,t)}),DFe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),l1=(e,t=[])=>sD(e?DFe(e):null,t.reduce(IFe,{}));Oue(Ul,l1);M8e(Ul,l1);QY(Ul);bFe(Ul,l1);LFe(Ul);PFe(Ul,l1);var ZT={},rE={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return r.apply(void 0,u)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return l(u[0]===!0,!1,u)}t.merge=r;function i(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return l(u[0]===!0,!0,u)}t.recursive=i;function o(u){if(Array.isArray(u)){for(var f=[],d=0;d<u.length;++d)f.push(o(u[d]));return f}else if(a(u)){var f={};for(var d in u)f[d]=o(u[d]);return f}else return u}t.clone=o;function a(u){return u&&typeof u=="object"&&!Array.isArray(u)}t.isPlainObject=a;function s(u,f){if(!a(u))return f;for(var d in f)d==="__proto__"||d==="constructor"||d==="prototype"||(u[d]=a(u[d])&&a(f[d])?s(u[d],f[d]):f[d]);return u}function l(u,f,d){var h;(u||!a(h=d.shift()))&&(h={});for(var v=0;v<d.length;++v){var g=d[v];if(a(g)){for(var y in g)if(!(y==="__proto__"||y==="constructor"||y==="prototype")){var x=u?o(g[y]):g[y];h[y]=f?s(h[y],x):x}}}return h}})(rE,rE.exports);var FFe=rE.exports;(function(e){var t=n(FFe);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=q,e.combineLoads=F,e.load=I,e.save=k;function n(z){return z&&z.__esModule?z:{default:z}}function r(z,B){return l(z)||s(z,B)||o(z,B)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(z,B){if(z){if(typeof z=="string")return a(z,B);var H=Object.prototype.toString.call(z).slice(8,-1);return H==="Object"&&z.constructor&&(H=z.constructor.name),H==="Map"||H==="Set"?Array.from(z):H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?a(z,B):void 0}}function a(z,B){(B==null||B>z.length)&&(B=z.length);for(var H=0,ee=Array(B);H<B;H++)ee[H]=z[H];return ee}function s(z,B){var H=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(H!=null){var ee,K,te=[],ie=!0,ae=!1;try{for(H=H.call(z);!(ie=(ee=H.next()).done)&&(te.push(ee.value),!(B&&te.length===B));ie=!0);}catch(fe){ae=!0,K=fe}finally{try{ie||H.return==null||H.return()}finally{if(ae)throw K}}return te}}function l(z){if(Array.isArray(z))return z}function u(z){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},u(z)}function f(z,B,H){return B in z?Object.defineProperty(z,B,{value:H,enumerable:!0,configurable:!0,writable:!0}):z[B]=H,z}var d="[Redux-LocalStorage-Simple]",h="redux_localstorage_simple",v="_",g=[],y=[],x=0,_=!1,b=!1,w=new Map;function S(z){console.warn(d,z)}function E(){}var P=function(z){return z?E:S};function T(z,B){return B===void 0?null:z.length===1?B[z[0]]:T(z.slice(1),B[z[0]])}function A(z){function B(ee,K){return ee.length===0?K:B(ee.slice(1),f({},ee[0],K))}var H=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return B(z.split(".").reverse(),H)}function D(z){this.warnFn=z||S}Object.defineProperty(D.prototype,"length",{get:function(){try{return localStorage.length}catch(z){this.warnFn(z)}return 0},configurable:!0,enumerable:!0}),D.prototype.key=function(z){try{return localStorage.key(z)}catch(B){this.warnFn(B)}return null},D.prototype.setItem=function(z,B){try{localStorage.setItem(z,JSON.stringify(B))}catch(H){this.warnFn(H)}},D.prototype.getItem=function(z){try{return JSON.parse(localStorage.getItem(z))}catch(B){this.warnFn(B)}return null},D.prototype.removeItem=function(z){try{localStorage.removeItem(z)}catch(B){this.warnFn(B)}};function k(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=z.states,H=B===void 0?g:B,ee=z.ignoreStates,K=ee===void 0?y:ee,te=z.namespace,ie=te===void 0?h:te,ae=z.namespaceSeparator,fe=ae===void 0?v:ae,j=z.debounce,N=j===void 0?x:j,U=z.disableWarnings,J=U===void 0?b:U;return function(Y){return function(oe){return function(he){function Se(Ce,Ae){return 1<Ce.split(".").length?T(Ce.split("."),Ae):T([Ce],Ae)}function se(){H.length===0?Te.setItem(ie,pe):H.forEach(function(Ce){var Ae=ie+fe+Ce,le=Se(Ce,pe);le?Te.setItem(Ae,le):Te.removeItem(Ae)})}var pe,me=P(J),xe=oe(he);W(H)||(console.error(d,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),H=g),W(K)||(console.error(d,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),K=y),0<K.length&&(K=K.filter(function(Ce){return X(Ce)?Ce:void console.error(d,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),X(ie)||(console.error(d,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ie=h),X(fe)||(console.error(d,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),fe=v),Q(N)||(console.error(d,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),N=x),pe=0<K.length?Z(K,Y.getState()):Y.getState();var Te=new D(me);return N?(w.get(H+ie)&&clearTimeout(w.get(H+ie)),w.set(H+ie,setTimeout(function(){se()},N))):se(),xe}}}}function I(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=z.states,H=B===void 0?g:B,ee=z.immutablejs,K=ee===void 0?_:ee,te=z.namespace,ie=te===void 0?h:te,ae=z.namespaceSeparator,fe=ae===void 0?v:ae,j=z.preloadedState,N=j===void 0?{}:j,U=z.disableWarnings,J=U===void 0?b:U,Y=P(J);W(H)||(console.error(d,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),H=g),X(ie)||(console.error(d,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ie=h),X(fe)||(console.error(d,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),fe=v),K===!0&&Y("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 oe=new D(Y),he=N;if(H.length===0){var Se=oe.getItem(ie);Se&&(he=Se)}else H.forEach(function(se){var pe=ie+fe+se,me=oe.getItem(pe);me?he=t.default.recursive(he,A(se,me)):Y("Invalid load '"+pe+"' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.")});return he}function F(){for(var z={},B=arguments.length,H=Array(B),ee=0;ee<B;ee++)H[ee]=arguments[ee];return H.forEach(function(K){for(var te in ne(K)||(console.error(d,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),K={}),K)z[te]=K[te]}),z}function q(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=z.namespace,H=B===void 0?h:B,ee=z.disableWarnings,K=ee===void 0?b:ee,te=P(K);X(H)||(console.error(d,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),H=h);for(var ie,ae=new D(te),fe=ae.length,j=0;j<fe;j++)ie=ae.key(j),ie&&ie.slice(0,H.length)===H&&ae.removeItem(ie)}function W(z){return Object.prototype.toString.call(z)==="[object Array]"}function X(z){return typeof z=="string"}function Q(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function ne(z){return z!==null&&u(z)==="object"}function Z(z,B){var H=Object.entries(B).reduce(function(ee,K){var te=r(K,2),ie=te[0];return te[1],z.indexOf(ie)===-1&&(ee[ie]=B[ie]),ee},{});return H}})(ZT);const BFe=e=>nC({appUpdated:wue,servers:tFe,selectedServer:e.selectedServerReducer,settings:SFe}),UFe=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},zFe=!0,TV={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},VFe=UFe(ZT.load(TV)),WFe=e=>Q8({devTools:!zFe,reducer:BFe(e),preloadedState:VFe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(ZT.save(TV))}),HFe=!!(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 GFe(e){if("serviceWorker"in navigator){if(new URL(Ng.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Ng.homepage}/service-worker.js`;HFe?(qFe(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):jV(n,e)})}}function jV(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function qFe(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):jV(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const AV=WFe(YT),{App:KFe,ScrollToTop:YFe,ErrorHandler:ZFe,appUpdateAvailable:XFe}=YT;eD(document.getElementById("root")).render(m.jsx(lD,{store:AV,children:m.jsx(bD,{basename:Ng.homepage,children:m.jsx(ZFe,{children:m.jsx(YFe,{children:m.jsx(KFe,{})})})})}));GFe({onUpdate(){AV.dispatch(XFe())}});
|