shlink-web-client/dependabot/npm_and_yarn/vitest-704a82ba63/assets/index-IjRNzAAo.js

822 lines
1.4 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var lz=Object.defineProperty;var cz=(e,t,n)=>t in e?lz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ul=(e,t,n)=>cz(e,typeof t!="symbol"?t+"":t,n);function uz(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 oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R4={exports:{}},Ay={},$4={exports:{}},rt={};/**
* @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 Kh=Symbol.for("react.element"),fz=Symbol.for("react.portal"),dz=Symbol.for("react.fragment"),hz=Symbol.for("react.strict_mode"),pz=Symbol.for("react.profiler"),mz=Symbol.for("react.provider"),vz=Symbol.for("react.context"),gz=Symbol.for("react.forward_ref"),yz=Symbol.for("react.suspense"),bz=Symbol.for("react.memo"),_z=Symbol.for("react.lazy"),OT=Symbol.iterator;function xz(e){return e===null||typeof e!="object"?null:(e=OT&&e[OT]||e["@@iterator"],typeof e=="function"?e:null)}var I4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D4=Object.assign,F4={};function Ou(e,t,n){this.props=e,this.context=t,this.refs=F4,this.updater=n||I4}Ou.prototype.isReactComponent={};Ou.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")};Ou.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function B4(){}B4.prototype=Ou.prototype;function KO(e,t,n){this.props=e,this.context=t,this.refs=F4,this.updater=n||I4}var YO=KO.prototype=new B4;YO.constructor=KO;D4(YO,Ou.prototype);YO.isPureReactComponent=!0;var ST=Array.isArray,U4=Object.prototype.hasOwnProperty,ZO={current:null},z4={key:!0,ref:!0,__self:!0,__source:!0};function V4(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)U4.call(t,r)&&!z4.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Kh,type:e,key:o,ref:a,props:i,_owner:ZO.current}}function wz(e,t){return{$$typeof:Kh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function XO(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kh}function Oz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ET=/\/+/g;function Bb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Oz(""+e.key):t.toString(36)}function Vm(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 Kh:case fz:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Bb(a,0):r,ST(i)?(n="",e!=null&&(n=e.replace(ET,"$&/")+"/"),Vm(i,t,n,"",function(l){return l})):i!=null&&(XO(i)&&(i=wz(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(ET,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",ST(e))for(var s=0;s<e.length;s++){o=e[s];var c=r+Bb(o,s);a+=Vm(o,t,n,c,i)}else if(c=xz(e),typeof c=="function")for(e=c.call(e),s=0;!(o=e.next()).done;)o=o.value,c=r+Bb(o,s++),a+=Vm(o,t,n,c,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 Xp(e,t,n){if(e==null)return e;var r=[],i=0;return Vm(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Sz(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 rr={current:null},Wm={transition:null},Ez={ReactCurrentDispatcher:rr,ReactCurrentBatchConfig:Wm,ReactCurrentOwner:ZO};function W4(){throw Error("act(...) is not supported in production builds of React.")}rt.Children={map:Xp,forEach:function(e,t,n){Xp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xp(e,function(){t++}),t},toArray:function(e){return Xp(e,function(t){return t})||[]},only:function(e){if(!XO(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};rt.Component=Ou;rt.Fragment=dz;rt.Profiler=pz;rt.PureComponent=KO;rt.StrictMode=hz;rt.Suspense=yz;rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ez;rt.act=W4;rt.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=D4({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=ZO.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)U4.call(t,c)&&!z4.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];r.children=s}return{$$typeof:Kh,type:e.type,key:i,ref:o,props:r,_owner:a}};rt.createContext=function(e){return e={$$typeof:vz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:mz,_context:e},e.Consumer=e};rt.createElement=V4;rt.createFactory=function(e){var t=V4.bind(null,e);return t.type=e,t};rt.createRef=function(){return{current:null}};rt.forwardRef=function(e){return{$$typeof:gz,render:e}};rt.isValidElement=XO;rt.lazy=function(e){return{$$typeof:_z,_payload:{_status:-1,_result:e},_init:Sz}};rt.memo=function(e,t){return{$$typeof:bz,type:e,compare:t===void 0?null:t}};rt.startTransition=function(e){var t=Wm.transition;Wm.transition={};try{e()}finally{Wm.transition=t}};rt.unstable_act=W4;rt.useCallback=function(e,t){return rr.current.useCallback(e,t)};rt.useContext=function(e){return rr.current.useContext(e)};rt.useDebugValue=function(){};rt.useDeferredValue=function(e){return rr.current.useDeferredValue(e)};rt.useEffect=function(e,t){return rr.current.useEffect(e,t)};rt.useId=function(){return rr.current.useId()};rt.useImperativeHandle=function(e,t,n){return rr.current.useImperativeHandle(e,t,n)};rt.useInsertionEffect=function(e,t){return rr.current.useInsertionEffect(e,t)};rt.useLayoutEffect=function(e,t){return rr.current.useLayoutEffect(e,t)};rt.useMemo=function(e,t){return rr.current.useMemo(e,t)};rt.useReducer=function(e,t,n){return rr.current.useReducer(e,t,n)};rt.useRef=function(e){return rr.current.useRef(e)};rt.useState=function(e){return rr.current.useState(e)};rt.useSyncExternalStore=function(e,t,n){return rr.current.useSyncExternalStore(e,t,n)};rt.useTransition=function(){return rr.current.useTransition()};rt.version="18.3.1";$4.exports=rt;var M=$4.exports;const V=at(M),y_=uz({__proto__:null,default:V},[M]);/**
* @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 Cz=M,Pz=Symbol.for("react.element"),Tz=Symbol.for("react.fragment"),jz=Object.prototype.hasOwnProperty,Az=Cz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kz={key:!0,ref:!0,__self:!0,__source:!0};function H4(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)jz.call(t,r)&&!kz.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:Pz,type:e,key:o,ref:a,props:i,_owner:Az.current}}Ay.Fragment=Tz;Ay.jsx=H4;Ay.jsxs=H4;R4.exports=Ay;var m=R4.exports,G4={exports:{}},Ir={},q4={exports:{}},K4={};/**
* @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 c=[],l=[],f=1,d=null,p=3,v=!1,y=!1,g=!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(l);z!==null;){if(z.callback===null)r(l);else if(z.startTime<=Z)r(l),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(l)}}function S(Z){if(g=!1,w(Z),!y)if(n(c)!==null)y=!0,Q(E);else{var z=n(l);z!==null&&ne(S,z.startTime-Z)}}function E(Z,z){y=!1,g&&(g=!1,_(A),A=-1),v=!0;var B=p;try{for(w(z),d=n(c);d!==null&&(!(d.expirationTime>z)||Z&&!I());){var H=d.callback;if(typeof H=="function"){d.callback=null,p=d.priorityLevel;var ee=H(d.expirationTime<=z);z=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(c)&&r(c),w(z)}else r(c);d=n(c)}if(d!==null)var K=!0;else{var te=n(l);te!==null&&ne(S,te.startTime-z),K=!1}return K}finally{d=null,p=B,v=!1}}var C=!1,T=null,A=-1,F=5,k=-1;function I(){return!(e.unstable_now()-k<F)}function D(){if(T!==null){var Z=e.unstable_now();k=Z;var z=!0;try{z=T(!0,Z)}finally{z?q():(C=!1,T=null)}}else C=!1}var q;if(typeof b=="function")q=function(){b(D)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,X=W.port2;W.port1.onmessage=D,q=function(){X.postMessage(null)}}else q=function(){x(D,0)};function Q(Z){T=Z,C||(C=!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(){y||v||(y=!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"):F=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(Z){switch(p){case 1:case 2:case 3:var z=3;break;default:z=p}var B=p;p=z;try{return Z()}finally{p=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=p;p=Z;try{return z()}finally{p=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(l,Z),n(c)===null&&Z===n(l)&&(g?(_(A),A=-1):g=!0,ne(S,B-H))):(Z.sortIndex=ee,t(c,Z),y||v||(y=!0,Q(E))),Z},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(Z){var z=p;return function(){var B=p;p=z;try{return Z.apply(this,arguments)}finally{p=B}}}})(K4);q4.exports=K4;var Nz=q4.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 Mz=M,Mr=Nz;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 Y4=new Set,Pd={};function Ol(e,t){Ic(e,t),Ic(e+"Capture",t)}function Ic(e,t){for(Pd[e]=t,e=0;e<t.length;e++)Y4.add(t[e])}var Do=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),b_=Object.prototype.hasOwnProperty,Lz=/^[: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]*$/,CT={},PT={};function Rz(e){return b_.call(PT,e)?!0:b_.call(CT,e)?!1:Lz.test(e)?PT[e]=!0:(CT[e]=!0,!1)}function $z(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 Iz(e,t,n,r){if(t===null||typeof t>"u"||$z(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 ir(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 Ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ln[e]=new ir(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ln[t]=new ir(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ln[e]=new ir(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ln[e]=new ir(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){Ln[e]=new ir(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ln[e]=new ir(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ln[e]=new ir(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ln[e]=new ir(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ln[e]=new ir(e,5,!1,e.toLowerCase(),null,!1,!1)});var QO=/[\-:]([a-z])/g;function JO(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(QO,JO);Ln[t]=new ir(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(QO,JO);Ln[t]=new ir(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(QO,JO);Ln[t]=new ir(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ln[e]=new ir(e,1,!1,e.toLowerCase(),null,!1,!1)});Ln.xlinkHref=new ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ln[e]=new ir(e,1,!1,e.toLowerCase(),null,!0,!0)});function eS(e,t,n,r){var i=Ln.hasOwnProperty(t)?Ln[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Iz(t,n,i,r)&&(n=null),r||i===null?Rz(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 Qo=Mz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qp=Symbol.for("react.element"),ac=Symbol.for("react.portal"),sc=Symbol.for("react.fragment"),tS=Symbol.for("react.strict_mode"),__=Symbol.for("react.profiler"),Z4=Symbol.for("react.provider"),X4=Symbol.for("react.context"),nS=Symbol.for("react.forward_ref"),x_=Symbol.for("react.suspense"),w_=Symbol.for("react.suspense_list"),rS=Symbol.for("react.memo"),ba=Symbol.for("react.lazy"),Q4=Symbol.for("react.offscreen"),TT=Symbol.iterator;function mf(e){return e===null||typeof e!="object"?null:(e=TT&&e[TT]||e["@@iterator"],typeof e=="function"?e:null)}var Wt=Object.assign,Ub;function Ff(e){if(Ub===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ub=t&&t[1]||""}return`
`+Ub+e}var zb=!1;function Vb(e,t){if(!e||zb)return"";zb=!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(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.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 c=`
`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=s);break}}}finally{zb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ff(e):""}function Dz(e){switch(e.tag){case 5:return Ff(e.type);case 16:return Ff("Lazy");case 13:return Ff("Suspense");case 19:return Ff("SuspenseList");case 0:case 2:case 15:return e=Vb(e.type,!1),e;case 11:return e=Vb(e.type.render,!1),e;case 1:return e=Vb(e.type,!0),e;default:return""}}function O_(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sc:return"Fragment";case ac:return"Portal";case __:return"Profiler";case tS:return"StrictMode";case x_:return"Suspense";case w_:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X4:return(e.displayName||"Context")+".Consumer";case Z4:return(e._context.displayName||"Context")+".Provider";case nS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rS:return t=e.displayName||null,t!==null?t:O_(e.type)||"Memo";case ba:t=e._payload,e=e._init;try{return O_(e(t))}catch{}}return null}function Fz(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 O_(t);case 8:return t===tS?"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 qa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function J4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bz(e){var t=J4(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 Jp(e){e._valueTracker||(e._valueTracker=Bz(e))}function eR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=J4(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hv(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 S_(e,t){var n=t.checked;return Wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qa(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 tR(e,t){t=t.checked,t!=null&&eS(e,"checked",t,!1)}function E_(e,t){tR(e,t);var n=qa(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")?C_(e,t.type,n):t.hasOwnProperty("defaultValue")&&C_(e,t.type,qa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function AT(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 C_(e,t,n){(t!=="number"||hv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bf=Array.isArray;function Cc(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=""+qa(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 P_(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Oe(91));return Wt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kT(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(Bf(n)){if(1<n.length)throw Error(Oe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:qa(n)}}function nR(e,t){var n=qa(t.value),r=qa(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 NT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rR(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 T_(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var em,iR=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(em=em||document.createElement("div"),em.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=em.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Td(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jf={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},Uz=["Webkit","ms","Moz","O"];Object.keys(Jf).forEach(function(e){Uz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jf[t]=Jf[e]})});function oR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jf.hasOwnProperty(e)&&Jf[e]?(""+t).trim():t+"px"}function aR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=oR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var zz=Wt({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 j_(e,t){if(t){if(zz[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 A_(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 k_=null;function iS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var N_=null,Pc=null,Tc=null;function MT(e){if(e=Xh(e)){if(typeof N_!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=Ry(t),N_(e.stateNode,e.type,t))}}function sR(e){Pc?Tc?Tc.push(e):Tc=[e]:Pc=e}function lR(){if(Pc){var e=Pc,t=Tc;if(Tc=Pc=null,MT(e),t)for(e=0;e<t.length;e++)MT(t[e])}}function cR(e,t){return e(t)}function uR(){}var Wb=!1;function fR(e,t,n){if(Wb)return e(t,n);Wb=!0;try{return cR(e,t,n)}finally{Wb=!1,(Pc!==null||Tc!==null)&&(uR(),lR())}}function jd(e,t){var n=e.stateNode;if(n===null)return null;var r=Ry(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 M_=!1;if(Do)try{var vf={};Object.defineProperty(vf,"passive",{get:function(){M_=!0}}),window.addEventListener("test",vf,vf),window.removeEventListener("test",vf,vf)}catch{M_=!1}function Vz(e,t,n,r,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(f){this.onError(f)}}var ed=!1,pv=null,mv=!1,L_=null,Wz={onError:function(e){ed=!0,pv=e}};function Hz(e,t,n,r,i,o,a,s,c){ed=!1,pv=null,Vz.apply(Wz,arguments)}function Gz(e,t,n,r,i,o,a,s,c){if(Hz.apply(this,arguments),ed){if(ed){var l=pv;ed=!1,pv=null}else throw Error(Oe(198));mv||(mv=!0,L_=l)}}function Sl(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 dR(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 LT(e){if(Sl(e)!==e)throw Error(Oe(188))}function qz(e){var t=e.alternate;if(!t){if(t=Sl(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 LT(i),e;if(o===r)return LT(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 hR(e){return e=qz(e),e!==null?pR(e):null}function pR(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pR(e);if(t!==null)return t;e=e.sibling}return null}var mR=Mr.unstable_scheduleCallback,RT=Mr.unstable_cancelCallback,Kz=Mr.unstable_shouldYield,Yz=Mr.unstable_requestPaint,Xt=Mr.unstable_now,Zz=Mr.unstable_getCurrentPriorityLevel,oS=Mr.unstable_ImmediatePriority,vR=Mr.unstable_UserBlockingPriority,vv=Mr.unstable_NormalPriority,Xz=Mr.unstable_LowPriority,gR=Mr.unstable_IdlePriority,ky=null,io=null;function Qz(e){if(io&&typeof io.onCommitFiberRoot=="function")try{io.onCommitFiberRoot(ky,e,void 0,(e.current.flags&128)===128)}catch{}}var Ai=Math.clz32?Math.clz32:tV,Jz=Math.log,eV=Math.LN2;function tV(e){return e>>>=0,e===0?32:31-(Jz(e)/eV|0)|0}var tm=64,nm=4194304;function Uf(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 gv(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=Uf(s):(o&=a,o!==0&&(r=Uf(o)))}else a=n&~i,a!==0?r=Uf(a):o!==0&&(r=Uf(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-Ai(t),i=1<<n,r|=e[n],t&=~i;return r}function nV(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 rV(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ai(o),s=1<<a,c=i[a];c===-1?(!(s&n)||s&r)&&(i[a]=nV(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}}function R_(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yR(){var e=tm;return tm<<=1,!(tm&4194240)&&(tm=64),e}function Hb(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Yh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ai(t),e[t]=n}function iV(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-Ai(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function aS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ai(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pt=0;function bR(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var _R,sS,xR,wR,OR,$_=!1,rm=[],Ma=null,La=null,Ra=null,Ad=new Map,kd=new Map,wa=[],oV="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 $T(e,t){switch(e){case"focusin":case"focusout":Ma=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Ra=null;break;case"pointerover":case"pointerout":Ad.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kd.delete(t.pointerId)}}function gf(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=Xh(t),t!==null&&sS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function aV(e,t,n,r,i){switch(t){case"focusin":return Ma=gf(Ma,e,t,n,r,i),!0;case"dragenter":return La=gf(La,e,t,n,r,i),!0;case"mouseover":return Ra=gf(Ra,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ad.set(o,gf(Ad.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,kd.set(o,gf(kd.get(o)||null,e,t,n,r,i)),!0}return!1}function SR(e){var t=Bs(e.target);if(t!==null){var n=Sl(t);if(n!==null){if(t=n.tag,t===13){if(t=dR(n),t!==null){e.blockedOn=t,OR(e.priority,function(){xR(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 Hm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=I_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);k_=r,n.target.dispatchEvent(r),k_=null}else return t=Xh(n),t!==null&&sS(t),e.blockedOn=n,!1;t.shift()}return!0}function IT(e,t,n){Hm(e)&&n.delete(t)}function sV(){$_=!1,Ma!==null&&Hm(Ma)&&(Ma=null),La!==null&&Hm(La)&&(La=null),Ra!==null&&Hm(Ra)&&(Ra=null),Ad.forEach(IT),kd.forEach(IT)}function yf(e,t){e.blockedOn===t&&(e.blockedOn=null,$_||($_=!0,Mr.unstable_scheduleCallback(Mr.unstable_NormalPriority,sV)))}function Nd(e){function t(i){return yf(i,e)}if(0<rm.length){yf(rm[0],e);for(var n=1;n<rm.length;n++){var r=rm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ma!==null&&yf(Ma,e),La!==null&&yf(La,e),Ra!==null&&yf(Ra,e),Ad.forEach(t),kd.forEach(t),n=0;n<wa.length;n++)r=wa[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<wa.length&&(n=wa[0],n.blockedOn===null);)SR(n),n.blockedOn===null&&wa.shift()}var jc=Qo.ReactCurrentBatchConfig,yv=!0;function lV(e,t,n,r){var i=pt,o=jc.transition;jc.transition=null;try{pt=1,lS(e,t,n,r)}finally{pt=i,jc.transition=o}}function cV(e,t,n,r){var i=pt,o=jc.transition;jc.transition=null;try{pt=4,lS(e,t,n,r)}finally{pt=i,jc.transition=o}}function lS(e,t,n,r){if(yv){var i=I_(e,t,n,r);if(i===null)t1(e,t,r,bv,n),$T(e,r);else if(aV(i,e,t,n,r))r.stopPropagation();else if($T(e,r),t&4&&-1<oV.indexOf(e)){for(;i!==null;){var o=Xh(i);if(o!==null&&_R(o),o=I_(e,t,n,r),o===null&&t1(e,t,r,bv,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else t1(e,t,r,null,n)}}var bv=null;function I_(e,t,n,r){if(bv=null,e=iS(r),e=Bs(e),e!==null)if(t=Sl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dR(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 bv=e,null}function ER(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(Zz()){case oS:return 1;case vR:return 4;case vv:case Xz:return 16;case gR:return 536870912;default:return 16}default:return 16}}var Ea=null,cS=null,Gm=null;function CR(){if(Gm)return Gm;var e,t=cS,n=t.length,r,i="value"in Ea?Ea.value:Ea.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 Gm=i.slice(e,1<r?1-r:void 0)}function qm(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 im(){return!0}function DT(){return!1}function Dr(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)?im:DT,this.isPropagationStopped=DT,this}return Wt(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=im)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=im)},persist:function(){},isPersistent:im}),t}var Su={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uS=Dr(Su),Zh=Wt({},Su,{view:0,detail:0}),uV=Dr(Zh),Gb,qb,bf,Ny=Wt({},Zh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fS,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"?(Gb=e.screenX-bf.screenX,qb=e.screenY-bf.screenY):qb=Gb=0,bf=e),Gb)},movementY:function(e){return"movementY"in e?e.movementY:qb}}),FT=Dr(Ny),fV=Wt({},Ny,{dataTransfer:0}),dV=Dr(fV),hV=Wt({},Zh,{relatedTarget:0}),Kb=Dr(hV),pV=Wt({},Su,{animationName:0,elapsedTime:0,pseudoElement:0}),mV=Dr(pV),vV=Wt({},Su,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gV=Dr(vV),yV=Wt({},Su,{data:0}),BT=Dr(yV),bV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_V={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"},xV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xV[e])?!!t[e]:!1}function fS(){return wV}var OV=Wt({},Zh,{key:function(e){if(e.key){var t=bV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_V[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fS,charCode:function(e){return e.type==="keypress"?qm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),SV=Dr(OV),EV=Wt({},Ny,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),UT=Dr(EV),CV=Wt({},Zh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fS}),PV=Dr(CV),TV=Wt({},Su,{propertyName:0,elapsedTime:0,pseudoElement:0}),jV=Dr(TV),AV=Wt({},Ny,{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}),kV=Dr(AV),NV=[9,13,27,32],dS=Do&&"CompositionEvent"in window,td=null;Do&&"documentMode"in document&&(td=document.documentMode);var MV=Do&&"TextEvent"in window&&!td,PR=Do&&(!dS||td&&8<td&&11>=td),zT=" ",VT=!1;function TR(e,t){switch(e){case"keyup":return NV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lc=!1;function LV(e,t){switch(e){case"compositionend":return jR(t);case"keypress":return t.which!==32?null:(VT=!0,zT);case"textInput":return e=t.data,e===zT&&VT?null:e;default:return null}}function RV(e,t){if(lc)return e==="compositionend"||!dS&&TR(e,t)?(e=CR(),Gm=cS=Ea=null,lc=!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 PR&&t.locale!=="ko"?null:t.data;default:return null}}var $V={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 WT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$V[e.type]:t==="textarea"}function AR(e,t,n,r){sR(r),t=_v(t,"onChange"),0<t.length&&(n=new uS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nd=null,Md=null;function IV(e){UR(e,0)}function My(e){var t=fc(e);if(eR(t))return e}function DV(e,t){if(e==="change")return t}var kR=!1;if(Do){var Yb;if(Do){var Zb="oninput"in document;if(!Zb){var HT=document.createElement("div");HT.setAttribute("oninput","return;"),Zb=typeof HT.oninput=="function"}Yb=Zb}else Yb=!1;kR=Yb&&(!document.documentMode||9<document.documentMode)}function GT(){nd&&(nd.detachEvent("onpropertychange",NR),Md=nd=null)}function NR(e){if(e.propertyName==="value"&&My(Md)){var t=[];AR(t,Md,e,iS(e)),fR(IV,t)}}function FV(e,t,n){e==="focusin"?(GT(),nd=t,Md=n,nd.attachEvent("onpropertychange",NR)):e==="focusout"&&GT()}function BV(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return My(Md)}function UV(e,t){if(e==="click")return My(t)}function zV(e,t){if(e==="input"||e==="change")return My(t)}function VV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Li=typeof Object.is=="function"?Object.is:VV;function Ld(e,t){if(Li(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(!b_.call(t,i)||!Li(e[i],t[i]))return!1}return!0}function qT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function KT(e,t){var n=qT(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=qT(n)}}function MR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?MR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function LR(){for(var e=window,t=hv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hv(e.document)}return t}function hS(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 WV(e){var t=LR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&MR(n.ownerDocument.documentElement,n)){if(r!==null&&hS(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=KT(n,o);var a=KT(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 HV=Do&&"documentMode"in document&&11>=document.documentMode,cc=null,D_=null,rd=null,F_=!1;function YT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;F_||cc==null||cc!==hv(r)||(r=cc,"selectionStart"in r&&hS(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}),rd&&Ld(rd,r)||(rd=r,r=_v(D_,"onSelect"),0<r.length&&(t=new uS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=cc)))}function om(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var uc={animationend:om("Animation","AnimationEnd"),animationiteration:om("Animation","AnimationIteration"),animationstart:om("Animation","AnimationStart"),transitionend:om("Transition","TransitionEnd")},Xb={},RR={};Do&&(RR=document.createElement("div").style,"AnimationEvent"in window||(delete uc.animationend.animation,delete uc.animationiteration.animation,delete uc.animationstart.animation),"TransitionEvent"in window||delete uc.transitionend.transition);function Ly(e){if(Xb[e])return Xb[e];if(!uc[e])return e;var t=uc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in RR)return Xb[e]=t[n];return e}var $R=Ly("animationend"),IR=Ly("animationiteration"),DR=Ly("animationstart"),FR=Ly("transitionend"),BR=new Map,ZT="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 rs(e,t){BR.set(e,t),Ol(t,[e])}for(var Qb=0;Qb<ZT.length;Qb++){var Jb=ZT[Qb],GV=Jb.toLowerCase(),qV=Jb[0].toUpperCase()+Jb.slice(1);rs(GV,"on"+qV)}rs($R,"onAnimationEnd");rs(IR,"onAnimationIteration");rs(DR,"onAnimationStart");rs("dblclick","onDoubleClick");rs("focusin","onFocus");rs("focusout","onBlur");rs(FR,"onTransitionEnd");Ic("onMouseEnter",["mouseout","mouseover"]);Ic("onMouseLeave",["mouseout","mouseover"]);Ic("onPointerEnter",["pointerout","pointerover"]);Ic("onPointerLeave",["pointerout","pointerover"]);Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zf="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(" "),KV=new Set("cancel close invalid load scroll toggle".split(" ").concat(zf));function XT(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Gz(r,t,void 0,e),e.currentTarget=null}function UR(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],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break e;XT(i,s,l),o=c}else for(a=0;a<r.length;a++){if(s=r[a],c=s.instance,l=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break e;XT(i,s,l),o=c}}}if(mv)throw e=L_,mv=!1,L_=null,e}function St(e,t){var n=t[W_];n===void 0&&(n=t[W_]=new Set);var r=e+"__bubble";n.has(r)||(zR(t,e,2,!1),n.add(r))}function e1(e,t,n){var r=0;t&&(r|=4),zR(n,e,r,t)}var am="_reactListening"+Math.random().toString(36).slice(2);function Rd(e){if(!e[am]){e[am]=!0,Y4.forEach(function(n){n!=="selectionchange"&&(KV.has(n)||e1(n,!1,e),e1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[am]||(t[am]=!0,e1("selectionchange",!1,t))}}function zR(e,t,n,r){switch(ER(t)){case 1:var i=lV;break;case 4:i=cV;break;default:i=lS}n=i.bind(null,t,n,e),i=void 0,!M_||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 t1(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 c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Bs(s),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}s=s.parentNode}}r=r.return}fR(function(){var l=o,f=iS(n),d=[];e:{var p=BR.get(e);if(p!==void 0){var v=uS,y=e;switch(e){case"keypress":if(qm(n)===0)break e;case"keydown":case"keyup":v=SV;break;case"focusin":y="focus",v=Kb;break;case"focusout":y="blur",v=Kb;break;case"beforeblur":case"afterblur":v=Kb;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=FT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=dV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=PV;break;case $R:case IR:case DR:v=mV;break;case FR:v=jV;break;case"scroll":v=uV;break;case"wheel":v=kV;break;case"copy":case"cut":case"paste":v=gV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=UT}var g=(t&4)!==0,x=!g&&e==="scroll",_=g?p!==null?p+"Capture":null:p;g=[];for(var b=l,w;b!==null;){w=b;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,_!==null&&(S=jd(b,_),S!=null&&g.push($d(b,S,w)))),x)break;b=b.return}0<g.length&&(p=new v(p,y,null,n,f),d.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==k_&&(y=n.relatedTarget||n.fromElement)&&(Bs(y)||y[Fo]))break e;if((v||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=l,y=y?Bs(y):null,y!==null&&(x=Sl(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=l),v!==y)){if(g=FT,S="onMouseLeave",_="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=UT,S="onPointerLeave",_="onPointerEnter",b="pointer"),x=v==null?p:fc(v),w=y==null?p:fc(y),p=new g(S,b+"leave",v,n,f),p.target=x,p.relatedTarget=w,S=null,Bs(f)===l&&(g=new g(_,b+"enter",y,n,f),g.target=w,g.relatedTarget=x,S=g),x=S,v&&y)t:{for(g=v,_=y,b=0,w=g;w;w=zl(w))b++;for(w=0,S=_;S;S=zl(S))w++;for(;0<b-w;)g=zl(g),b--;for(;0<w-b;)_=zl(_),w--;for(;b--;){if(g===_||_!==null&&g===_.alternate)break t;g=zl(g),_=zl(_)}g=null}else g=null;v!==null&&QT(d,p,v,g,!1),y!==null&&x!==null&&QT(d,x,y,g,!0)}}e:{if(p=l?fc(l):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var E=DV;else if(WT(p))if(kR)E=zV;else{E=BV;var C=FV}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=UV);if(E&&(E=E(e,l))){AR(d,E,n,f);break e}C&&C(e,p,l),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&C_(p,"number",p.value)}switch(C=l?fc(l):window,e){case"focusin":(WT(C)||C.contentEditable==="true")&&(cc=C,D_=l,rd=null);break;case"focusout":rd=D_=cc=null;break;case"mousedown":F_=!0;break;case"contextmenu":case"mouseup":case"dragend":F_=!1,YT(d,n,f);break;case"selectionchange":if(HV)break;case"keydown":case"keyup":YT(d,n,f)}var T;if(dS)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 lc?TR(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(PR&&n.locale!=="ko"&&(lc||A!=="onCompositionStart"?A==="onCompositionEnd"&&lc&&(T=CR()):(Ea=f,cS="value"in Ea?Ea.value:Ea.textContent,lc=!0)),C=_v(l,A),0<C.length&&(A=new BT(A,e,null,n,f),d.push({event:A,listeners:C}),T?A.data=T:(T=jR(n),T!==null&&(A.data=T)))),(T=MV?LV(e,n):RV(e,n))&&(l=_v(l,"onBeforeInput"),0<l.length&&(f=new BT("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:l}),f.data=T))}UR(d,t)})}function $d(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _v(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($d(e,o,i)),o=jd(e,t),o!=null&&r.push($d(e,o,i))),e=e.return}return r}function zl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function QT(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=jd(n,o),c!=null&&a.unshift($d(n,c,s))):i||(c=jd(n,o),c!=null&&a.push($d(n,c,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var YV=/\r\n?/g,ZV=/\u0000|\uFFFD/g;function JT(e){return(typeof e=="string"?e:""+e).replace(YV,`
`).replace(ZV,"")}function sm(e,t,n){if(t=JT(t),JT(e)!==t&&n)throw Error(Oe(425))}function xv(){}var B_=null,U_=null;function z_(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 V_=typeof setTimeout=="function"?setTimeout:void 0,XV=typeof clearTimeout=="function"?clearTimeout:void 0,ej=typeof Promise=="function"?Promise:void 0,QV=typeof queueMicrotask=="function"?queueMicrotask:typeof ej<"u"?function(e){return ej.resolve(null).then(e).catch(JV)}:V_;function JV(e){setTimeout(function(){throw e})}function n1(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),Nd(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Nd(t)}function $a(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 tj(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 Eu=Math.random().toString(36).slice(2),Ji="__reactFiber$"+Eu,Id="__reactProps$"+Eu,Fo="__reactContainer$"+Eu,W_="__reactEvents$"+Eu,eW="__reactListeners$"+Eu,tW="__reactHandles$"+Eu;function Bs(e){var t=e[Ji];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fo]||n[Ji]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tj(e);e!==null;){if(n=e[Ji])return n;e=tj(e)}return t}e=n,n=e.parentNode}return null}function Xh(e){return e=e[Ji]||e[Fo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Oe(33))}function Ry(e){return e[Id]||null}var H_=[],dc=-1;function is(e){return{current:e}}function Tt(e){0>dc||(e.current=H_[dc],H_[dc]=null,dc--)}function wt(e,t){dc++,H_[dc]=e.current,e.current=t}var Ka={},Un=is(Ka),fr=is(!1),il=Ka;function Dc(e,t){var n=e.type.contextTypes;if(!n)return Ka;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 dr(e){return e=e.childContextTypes,e!=null}function wv(){Tt(fr),Tt(Un)}function nj(e,t,n){if(Un.current!==Ka)throw Error(Oe(168));wt(Un,t),wt(fr,n)}function VR(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,Fz(e)||"Unknown",i));return Wt({},n,r)}function Ov(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ka,il=Un.current,wt(Un,e),wt(fr,fr.current),!0}function rj(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=VR(e,t,il),r.__reactInternalMemoizedMergedChildContext=e,Tt(fr),Tt(Un),wt(Un,e)):Tt(fr),wt(fr,n)}var To=null,$y=!1,r1=!1;function WR(e){To===null?To=[e]:To.push(e)}function nW(e){$y=!0,WR(e)}function os(){if(!r1&&To!==null){r1=!0;var e=0,t=pt;try{var n=To;for(pt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}To=null,$y=!1}catch(i){throw To!==null&&(To=To.slice(e+1)),mR(oS,os),i}finally{pt=t,r1=!1}}return null}var hc=[],pc=0,Sv=null,Ev=0,Jr=[],ei=0,ol=null,jo=1,Ao="";function Ps(e,t){hc[pc++]=Ev,hc[pc++]=Sv,Sv=e,Ev=t}function HR(e,t,n){Jr[ei++]=jo,Jr[ei++]=Ao,Jr[ei++]=ol,ol=e;var r=jo;e=Ao;var i=32-Ai(r)-1;r&=~(1<<i),n+=1;var o=32-Ai(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,jo=1<<32-Ai(t)+i|n<<i|r,Ao=o+e}else jo=1<<o|n<<i|r,Ao=e}function pS(e){e.return!==null&&(Ps(e,1),HR(e,1,0))}function mS(e){for(;e===Sv;)Sv=hc[--pc],hc[pc]=null,Ev=hc[--pc],hc[pc]=null;for(;e===ol;)ol=Jr[--ei],Jr[ei]=null,Ao=Jr[--ei],Jr[ei]=null,jo=Jr[--ei],Jr[ei]=null}var jr=null,Pr=null,Nt=!1,Ci=null;function GR(e,t){var n=ii(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 ij(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,jr=e,Pr=$a(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,jr=e,Pr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ol!==null?{id:jo,overflow:Ao}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ii(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,jr=e,Pr=null,!0):!1;default:return!1}}function G_(e){return(e.mode&1)!==0&&(e.flags&128)===0}function q_(e){if(Nt){var t=Pr;if(t){var n=t;if(!ij(e,t)){if(G_(e))throw Error(Oe(418));t=$a(n.nextSibling);var r=jr;t&&ij(e,t)?GR(r,n):(e.flags=e.flags&-4097|2,Nt=!1,jr=e)}}else{if(G_(e))throw Error(Oe(418));e.flags=e.flags&-4097|2,Nt=!1,jr=e}}}function oj(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;jr=e}function lm(e){if(e!==jr)return!1;if(!Nt)return oj(e),Nt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!z_(e.type,e.memoizedProps)),t&&(t=Pr)){if(G_(e))throw qR(),Error(Oe(418));for(;t;)GR(e,t),t=$a(t.nextSibling)}if(oj(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){Pr=$a(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Pr=null}}else Pr=jr?$a(e.stateNode.nextSibling):null;return!0}function qR(){for(var e=Pr;e;)e=$a(e.nextSibling)}function Fc(){Pr=jr=null,Nt=!1}function vS(e){Ci===null?Ci=[e]:Ci.push(e)}var rW=Qo.ReactCurrentBatchConfig;function _f(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 cm(e,t){throw e=Object.prototype.toString.call(t),Error(Oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function aj(e){var t=e._init;return t(e._payload)}function KR(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 _=Ba(_,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=u1(w,_.mode,S),b.return=_,b):(b=i(b,w),b.return=_,b)}function c(_,b,w,S){var E=w.type;return E===sc?f(_,b,w.props.children,S,w.key):b!==null&&(b.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ba&&aj(E)===b.type)?(S=i(b,w.props),S.ref=_f(_,b,w),S.return=_,S):(S=ev(w.type,w.key,w.props,null,_.mode,S),S.ref=_f(_,b,w),S.return=_,S)}function l(_,b,w,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=f1(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=Zs(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=u1(""+b,_.mode,w),b.return=_,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Qp:return w=ev(b.type,b.key,b.props,null,_.mode,w),w.ref=_f(_,null,b),w.return=_,w;case ac:return b=f1(b,_.mode,w),b.return=_,b;case ba:var S=b._init;return d(_,S(b._payload),w)}if(Bf(b)||mf(b))return b=Zs(b,_.mode,w,null),b.return=_,b;cm(_,b)}return null}function p(_,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 Qp:return w.key===E?c(_,b,w,S):null;case ac:return w.key===E?l(_,b,w,S):null;case ba:return E=w._init,p(_,b,E(w._payload),S)}if(Bf(w)||mf(w))return E!==null?null:f(_,b,w,S,null);cm(_,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 Qp:return _=_.get(S.key===null?w:S.key)||null,c(b,_,S,E);case ac:return _=_.get(S.key===null?w:S.key)||null,l(b,_,S,E);case ba:var C=S._init;return v(_,b,w,C(S._payload),E)}if(Bf(S)||mf(S))return _=_.get(w)||null,f(b,_,S,E,null);cm(b,S)}return null}function y(_,b,w,S){for(var E=null,C=null,T=b,A=b=0,F=null;T!==null&&A<w.length;A++){T.index>A?(F=T,T=null):F=T.sibling;var k=p(_,T,w[A],S);if(k===null){T===null&&(T=F);break}e&&T&&k.alternate===null&&t(_,T),b=o(k,b,A),C===null?E=k:C.sibling=k,C=k,T=F}if(A===w.length)return n(_,T),Nt&&Ps(_,A),E;if(T===null){for(;A<w.length;A++)T=d(_,w[A],S),T!==null&&(b=o(T,b,A),C===null?E=T:C.sibling=T,C=T);return Nt&&Ps(_,A),E}for(T=r(_,T);A<w.length;A++)F=v(T,_,A,w[A],S),F!==null&&(e&&F.alternate!==null&&T.delete(F.key===null?A:F.key),b=o(F,b,A),C===null?E=F:C.sibling=F,C=F);return e&&T.forEach(function(I){return t(_,I)}),Nt&&Ps(_,A),E}function g(_,b,w,S){var E=mf(w);if(typeof E!="function")throw Error(Oe(150));if(w=E.call(w),w==null)throw Error(Oe(151));for(var C=E=null,T=b,A=b=0,F=null,k=w.next();T!==null&&!k.done;A++,k=w.next()){T.index>A?(F=T,T=null):F=T.sibling;var I=p(_,T,k.value,S);if(I===null){T===null&&(T=F);break}e&&T&&I.alternate===null&&t(_,T),b=o(I,b,A),C===null?E=I:C.sibling=I,C=I,T=F}if(k.done)return n(_,T),Nt&&Ps(_,A),E;if(T===null){for(;!k.done;A++,k=w.next())k=d(_,k.value,S),k!==null&&(b=o(k,b,A),C===null?E=k:C.sibling=k,C=k);return Nt&&Ps(_,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),C===null?E=k:C.sibling=k,C=k);return e&&T.forEach(function(D){return t(_,D)}),Nt&&Ps(_,A),E}function x(_,b,w,S){if(typeof w=="object"&&w!==null&&w.type===sc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Qp:e:{for(var E=w.key,C=b;C!==null;){if(C.key===E){if(E=w.type,E===sc){if(C.tag===7){n(_,C.sibling),b=i(C,w.props.children),b.return=_,_=b;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ba&&aj(E)===C.type){n(_,C.sibling),b=i(C,w.props),b.ref=_f(_,C,w),b.return=_,_=b;break e}n(_,C);break}else t(_,C);C=C.sibling}w.type===sc?(b=Zs(w.props.children,_.mode,S,w.key),b.return=_,_=b):(S=ev(w.type,w.key,w.props,null,_.mode,S),S.ref=_f(_,b,w),S.return=_,_=S)}return a(_);case ac:e:{for(C=w.key;b!==null;){if(b.key===C)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=f1(w,_.mode,S),b.return=_,_=b}return a(_);case ba:return C=w._init,x(_,b,C(w._payload),S)}if(Bf(w))return y(_,b,w,S);if(mf(w))return g(_,b,w,S);cm(_,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=u1(w,_.mode,S),b.return=_,_=b),a(_)):n(_,b)}return x}var Bc=KR(!0),YR=KR(!1),Cv=is(null),Pv=null,mc=null,gS=null;function yS(){gS=mc=Pv=null}function bS(e){var t=Cv.current;Tt(Cv),e._currentValue=t}function K_(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 Ac(e,t){Pv=e,gS=mc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lr=!0),e.firstContext=null)}function ci(e){var t=e._currentValue;if(gS!==e)if(e={context:e,memoizedValue:t,next:null},mc===null){if(Pv===null)throw Error(Oe(308));mc=e,Pv.dependencies={lanes:0,firstContext:e}}else mc=mc.next=e;return t}var Us=null;function _S(e){Us===null?Us=[e]:Us.push(e)}function ZR(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,_S(t)):(n.next=i.next,i.next=n),t.interleaved=n,Bo(e,r)}function Bo(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 _a=!1;function xS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function XR(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 Lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ct&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Bo(e,n)}return i=r.interleaved,i===null?(t.next=t,_S(r)):(t.next=i.next,i.next=t),r.interleaved=t,Bo(e,n)}function Km(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,aS(e,n)}}function sj(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 Tv(e,t,n,r){var i=e.updateQueue;_a=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,a===null?o=l:a.next=l,a=c;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=l:s.next=l,f.lastBaseUpdate=c))}if(o!==null){var d=i.baseState;a=0,f=l=c=null,s=o;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,g=s;switch(p=t,v=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){d=y.call(v,d,p);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,p=typeof y=="function"?y.call(v,d,p):y,p==null)break e;d=Wt({},d,p);break e;case 2:_a=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(l=f=v,c=d):f=f.next=v,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,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);sl|=a,e.lanes=a,e.memoizedState=d}}function lj(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 Qh={},oo=is(Qh),Dd=is(Qh),Fd=is(Qh);function zs(e){if(e===Qh)throw Error(Oe(174));return e}function wS(e,t){switch(wt(Fd,t),wt(Dd,e),wt(oo,Qh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:T_(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=T_(t,e)}Tt(oo),wt(oo,t)}function Uc(){Tt(oo),Tt(Dd),Tt(Fd)}function QR(e){zs(Fd.current);var t=zs(oo.current),n=T_(t,e.type);t!==n&&(wt(Dd,e),wt(oo,n))}function OS(e){Dd.current===e&&(Tt(oo),Tt(Dd))}var Bt=is(0);function jv(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 i1=[];function SS(){for(var e=0;e<i1.length;e++)i1[e]._workInProgressVersionPrimary=null;i1.length=0}var Ym=Qo.ReactCurrentDispatcher,o1=Qo.ReactCurrentBatchConfig,al=0,zt=null,sn=null,gn=null,Av=!1,id=!1,Bd=0,iW=0;function $n(){throw Error(Oe(321))}function ES(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Li(e[n],t[n]))return!1;return!0}function CS(e,t,n,r,i,o){if(al=o,zt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ym.current=e===null||e.memoizedState===null?lW:cW,e=n(r,i),id){o=0;do{if(id=!1,Bd=0,25<=o)throw Error(Oe(301));o+=1,gn=sn=null,t.updateQueue=null,Ym.current=uW,e=n(r,i)}while(id)}if(Ym.current=kv,t=sn!==null&&sn.next!==null,al=0,gn=sn=zt=null,Av=!1,t)throw Error(Oe(300));return e}function PS(){var e=Bd!==0;return Bd=0,e}function Xi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gn===null?zt.memoizedState=gn=e:gn=gn.next=e,gn}function ui(){if(sn===null){var e=zt.alternate;e=e!==null?e.memoizedState:null}else e=sn.next;var t=gn===null?zt.memoizedState:gn.next;if(t!==null)gn=t,sn=e;else{if(e===null)throw Error(Oe(310));sn=e,e={memoizedState:sn.memoizedState,baseState:sn.baseState,baseQueue:sn.baseQueue,queue:sn.queue,next:null},gn===null?zt.memoizedState=gn=e:gn=gn.next=e}return gn}function Ud(e,t){return typeof t=="function"?t(e):t}function a1(e){var t=ui(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=sn,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,c=null,l=o;do{var f=l.lane;if((al&f)===f)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=d,a=r):c=c.next=d,zt.lanes|=f,sl|=f}l=l.next}while(l!==null&&l!==o);c===null?a=r:c.next=s,Li(r,t.memoizedState)||(lr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,zt.lanes|=o,sl|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function s1(e){var t=ui(),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);Li(o,t.memoizedState)||(lr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function JR(){}function e$(e,t){var n=zt,r=ui(),i=t(),o=!Li(r.memoizedState,i);if(o&&(r.memoizedState=i,lr=!0),r=r.queue,TS(r$.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||gn!==null&&gn.memoizedState.tag&1){if(n.flags|=2048,zd(9,n$.bind(null,n,r,i,t),void 0,null),bn===null)throw Error(Oe(349));al&30||t$(n,t,i)}return i}function t$(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=zt.updateQueue,t===null?(t={lastEffect:null,stores:null},zt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function n$(e,t,n,r){t.value=n,t.getSnapshot=r,i$(t)&&o$(e)}function r$(e,t,n){return n(function(){i$(t)&&o$(e)})}function i$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Li(e,n)}catch{return!0}}function o$(e){var t=Bo(e,1);t!==null&&ki(t,e,1,-1)}function cj(e){var t=Xi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ud,lastRenderedState:e},t.queue=e,e=e.dispatch=sW.bind(null,zt,e),[t.memoizedState,e]}function zd(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=zt.updateQueue,t===null?(t={lastEffect:null,stores:null},zt.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 a$(){return ui().memoizedState}function Zm(e,t,n,r){var i=Xi();zt.flags|=e,i.memoizedState=zd(1|t,n,void 0,r===void 0?null:r)}function Iy(e,t,n,r){var i=ui();r=r===void 0?null:r;var o=void 0;if(sn!==null){var a=sn.memoizedState;if(o=a.destroy,r!==null&&ES(r,a.deps)){i.memoizedState=zd(t,n,o,r);return}}zt.flags|=e,i.memoizedState=zd(1|t,n,o,r)}function uj(e,t){return Zm(8390656,8,e,t)}function TS(e,t){return Iy(2048,8,e,t)}function s$(e,t){return Iy(4,2,e,t)}function l$(e,t){return Iy(4,4,e,t)}function c$(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 u$(e,t,n){return n=n!=null?n.concat([e]):null,Iy(4,4,c$.bind(null,t,e),n)}function jS(){}function f$(e,t){var n=ui();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ES(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function d$(e,t){var n=ui();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ES(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function h$(e,t,n){return al&21?(Li(n,t)||(n=yR(),zt.lanes|=n,sl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lr=!0),e.memoizedState=n)}function oW(e,t){var n=pt;pt=n!==0&&4>n?n:4,e(!0);var r=o1.transition;o1.transition={};try{e(!1),t()}finally{pt=n,o1.transition=r}}function p$(){return ui().memoizedState}function aW(e,t,n){var r=Fa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},m$(e))v$(t,n);else if(n=ZR(e,t,n,r),n!==null){var i=Qn();ki(n,e,r,i),g$(n,t,r)}}function sW(e,t,n){var r=Fa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(m$(e))v$(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,Li(s,a)){var c=t.interleaved;c===null?(i.next=i,_S(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=ZR(e,t,i,r),n!==null&&(i=Qn(),ki(n,e,r,i),g$(n,t,r))}}function m$(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function v$(e,t){id=Av=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function g$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,aS(e,n)}}var kv={readContext:ci,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},lW={readContext:ci,useCallback:function(e,t){return Xi().memoizedState=[e,t===void 0?null:t],e},useContext:ci,useEffect:uj,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zm(4194308,4,c$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zm(4,2,e,t)},useMemo:function(e,t){var n=Xi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xi();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=aW.bind(null,zt,e),[r.memoizedState,e]},useRef:function(e){var t=Xi();return e={current:e},t.memoizedState=e},useState:cj,useDebugValue:jS,useDeferredValue:function(e){return Xi().memoizedState=e},useTransition:function(){var e=cj(!1),t=e[0];return e=oW.bind(null,e[1]),Xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zt,i=Xi();if(Nt){if(n===void 0)throw Error(Oe(407));n=n()}else{if(n=t(),bn===null)throw Error(Oe(349));al&30||t$(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,uj(r$.bind(null,r,o,e),[e]),r.flags|=2048,zd(9,n$.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Xi(),t=bn.identifierPrefix;if(Nt){var n=Ao,r=jo;n=(r&~(1<<32-Ai(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bd++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=iW++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cW={readContext:ci,useCallback:f$,useContext:ci,useEffect:TS,useImperativeHandle:u$,useInsertionEffect:s$,useLayoutEffect:l$,useMemo:d$,useReducer:a1,useRef:a$,useState:function(){return a1(Ud)},useDebugValue:jS,useDeferredValue:function(e){var t=ui();return h$(t,sn.memoizedState,e)},useTransition:function(){var e=a1(Ud)[0],t=ui().memoizedState;return[e,t]},useMutableSource:JR,useSyncExternalStore:e$,useId:p$,unstable_isNewReconciler:!1},uW={readContext:ci,useCallback:f$,useContext:ci,useEffect:TS,useImperativeHandle:u$,useInsertionEffect:s$,useLayoutEffect:l$,useMemo:d$,useReducer:s1,useRef:a$,useState:function(){return s1(Ud)},useDebugValue:jS,useDeferredValue:function(e){var t=ui();return sn===null?t.memoizedState=e:h$(t,sn.memoizedState,e)},useTransition:function(){var e=s1(Ud)[0],t=ui().memoizedState;return[e,t]},useMutableSource:JR,useSyncExternalStore:e$,useId:p$,unstable_isNewReconciler:!1};function wi(e,t){if(e&&e.defaultProps){t=Wt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Y_(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Wt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Dy={isMounted:function(e){return(e=e._reactInternals)?Sl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Qn(),i=Fa(e),o=Lo(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ia(e,o,i),t!==null&&(ki(t,e,i,r),Km(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Qn(),i=Fa(e),o=Lo(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ia(e,o,i),t!==null&&(ki(t,e,i,r),Km(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qn(),r=Fa(e),i=Lo(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ia(e,i,r),t!==null&&(ki(t,e,r,n),Km(t,e,r))}};function fj(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?!Ld(n,r)||!Ld(i,o):!0}function y$(e,t,n){var r=!1,i=Ka,o=t.contextType;return typeof o=="object"&&o!==null?o=ci(o):(i=dr(t)?il:Un.current,r=t.contextTypes,o=(r=r!=null)?Dc(e,i):Ka),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function dj(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&&Dy.enqueueReplaceState(t,t.state,null)}function Z_(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},xS(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ci(o):(o=dr(t)?il:Un.current,i.context=Dc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Y_(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&&Dy.enqueueReplaceState(i,i.state,null),Tv(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function zc(e,t){try{var n="",r=t;do n+=Dz(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 l1(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function X_(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fW=typeof WeakMap=="function"?WeakMap:Map;function b$(e,t,n){n=Lo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mv||(Mv=!0,sx=r),X_(e,t)},n}function _$(e,t,n){n=Lo(-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(){X_(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){X_(e,t),typeof r!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function hj(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fW;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=EW.bind(null,e,t,n),t.then(e,e))}function pj(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 mj(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=Lo(-1,1),t.tag=2,Ia(n,t,1))),n.lanes|=1),e)}var dW=Qo.ReactCurrentOwner,lr=!1;function qn(e,t,n,r){t.child=e===null?YR(t,null,n,r):Bc(t,e.child,n,r)}function vj(e,t,n,r,i){n=n.render;var o=t.ref;return Ac(t,i),r=CS(e,t,n,r,o,i),n=PS(),e!==null&&!lr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Uo(e,t,i)):(Nt&&n&&pS(t),t.flags|=1,qn(e,t,r,i),t.child)}function gj(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!IS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,x$(e,t,o,r,i)):(e=ev(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:Ld,n(a,r)&&e.ref===t.ref)return Uo(e,t,i)}return t.flags|=1,e=Ba(o,r),e.ref=t.ref,e.return=t,t.child=e}function x$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ld(o,r)&&e.ref===t.ref)if(lr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(lr=!0);else return t.lanes=e.lanes,Uo(e,t,i)}return Q_(e,t,n,r,i)}function w$(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},wt(gc,Sr),Sr|=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,wt(gc,Sr),Sr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,wt(gc,Sr),Sr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,wt(gc,Sr),Sr|=r;return qn(e,t,i,n),t.child}function O$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Q_(e,t,n,r,i){var o=dr(n)?il:Un.current;return o=Dc(t,o),Ac(t,i),n=CS(e,t,n,r,o,i),r=PS(),e!==null&&!lr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Uo(e,t,i)):(Nt&&r&&pS(t),t.flags|=1,qn(e,t,n,i),t.child)}function yj(e,t,n,r,i){if(dr(n)){var o=!0;Ov(t)}else o=!1;if(Ac(t,i),t.stateNode===null)Xm(e,t),y$(t,n,r),Z_(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=ci(l):(l=dr(n)?il:Un.current,l=Dc(t,l));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||c!==l)&&dj(t,a,r,l),_a=!1;var p=t.memoizedState;a.state=p,Tv(t,r,a,i),c=t.memoizedState,s!==r||p!==c||fr.current||_a?(typeof f=="function"&&(Y_(t,n,f,r),c=t.memoizedState),(s=_a||fj(t,n,s,r,p,c,l))?(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=c),a.props=r,a.state=c,a.context=l,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,XR(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:wi(t.type,s),a.props=l,d=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=ci(c):(c=dr(n)?il:Un.current,c=Dc(t,c));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==c)&&dj(t,a,r,c),_a=!1,p=t.memoizedState,a.state=p,Tv(t,r,a,i);var y=t.memoizedState;s!==d||p!==y||fr.current||_a?(typeof v=="function"&&(Y_(t,n,v,r),y=t.memoizedState),(l=_a||fj(t,n,l,r,p,y,c)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=c,r=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return J_(e,t,n,r,o,i)}function J_(e,t,n,r,i,o){O$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&rj(t,n,!1),Uo(e,t,o);r=t.stateNode,dW.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Bc(t,e.child,null,o),t.child=Bc(t,null,s,o)):qn(e,t,s,o),t.memoizedState=r.state,i&&rj(t,n,!0),t.child}function S$(e){var t=e.stateNode;t.pendingContext?nj(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nj(e,t.context,!1),wS(e,t.containerInfo)}function bj(e,t,n,r,i){return Fc(),vS(i),t.flags|=256,qn(e,t,n,r),t.child}var ex={dehydrated:null,treeContext:null,retryLane:0};function tx(e){return{baseLanes:e,cachePool:null,transitions:null}}function E$(e,t,n){var r=t.pendingProps,i=Bt.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),wt(Bt,i&1),e===null)return q_(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=Uy(a,r,0,null),e=Zs(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=tx(n),t.memoizedState=ex,e):AS(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return hW(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ba(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Ba(s,o):(o=Zs(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?tx(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=ex,r}return o=e.child,e=o.sibling,r=Ba(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 AS(e,t){return t=Uy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function um(e,t,n,r){return r!==null&&vS(r),Bc(t,e.child,null,n),e=AS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hW(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=l1(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=Uy({mode:"visible",children:r.children},i,0,null),o=Zs(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Bc(t,e.child,null,a),t.child.memoizedState=tx(a),t.memoizedState=ex,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=l1(o,r,void 0),um(e,t,a,r)}if(s=(a&e.childLanes)!==0,lr||s){if(r=bn,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,Bo(e,i),ki(r,e,i,-1))}return $S(),r=l1(Error(Oe(421))),um(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=CW.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Pr=$a(i.nextSibling),jr=t,Nt=!0,Ci=null,e!==null&&(Jr[ei++]=jo,Jr[ei++]=Ao,Jr[ei++]=ol,jo=e.id,Ao=e.overflow,ol=t),t=AS(t,r.children),t.flags|=4096,t)}function _j(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),K_(e.return,t,n)}function c1(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 C$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(qn(e,t,r.children,n),r=Bt.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&&_j(e,n,t);else if(e.tag===19)_j(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(wt(Bt,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&&jv(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),c1(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&&jv(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}c1(t,!0,n,null,o);break;case"together":c1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Uo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sl|=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=Ba(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ba(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pW(e,t,n){switch(t.tag){case 3:S$(t),Fc();break;case 5:QR(t);break;case 1:dr(t.type)&&Ov(t);break;case 4:wS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;wt(Cv,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(wt(Bt,Bt.current&1),t.flags|=128,null):n&t.child.childLanes?E$(e,t,n):(wt(Bt,Bt.current&1),e=Uo(e,t,n),e!==null?e.sibling:null);wt(Bt,Bt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return C$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),wt(Bt,Bt.current),r)break;return null;case 22:case 23:return t.lanes=0,w$(e,t,n)}return Uo(e,t,n)}var P$,nx,T$,j$;P$=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}};nx=function(){};T$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zs(oo.current);var o=null;switch(n){case"input":i=S_(e,i),r=S_(e,r),o=[];break;case"select":i=Wt({},i,{value:void 0}),r=Wt({},r,{value:void 0}),o=[];break;case"textarea":i=P_(e,i),r=P_(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xv)}j_(n,r);var a;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Pd.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var c=r[l];if(s=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(l,n)),n=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(o=o||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Pd.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&St("scroll",e),o||s===c||(o=[])):(o=o||[]).push(l,c))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};j$=function(e,t,n,r){n!==r&&(t.flags|=4)};function xf(e,t){if(!Nt)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 In(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 mW(e,t,n){var r=t.pendingProps;switch(mS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return In(t),null;case 1:return dr(t.type)&&wv(),In(t),null;case 3:return r=t.stateNode,Uc(),Tt(fr),Tt(Un),SS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(lm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ci!==null&&(ux(Ci),Ci=null))),nx(e,t),In(t),null;case 5:OS(t);var i=zs(Fd.current);if(n=t.type,e!==null&&t.stateNode!=null)T$(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 In(t),null}if(e=zs(oo.current),lm(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ji]=t,r[Id]=o,e=(t.mode&1)!==0,n){case"dialog":St("cancel",r),St("close",r);break;case"iframe":case"object":case"embed":St("load",r);break;case"video":case"audio":for(i=0;i<zf.length;i++)St(zf[i],r);break;case"source":St("error",r);break;case"img":case"image":case"link":St("error",r),St("load",r);break;case"details":St("toggle",r);break;case"input":jT(r,o),St("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},St("invalid",r);break;case"textarea":kT(r,o),St("invalid",r)}j_(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&&sm(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&sm(r.textContent,s,e),i=["children",""+s]):Pd.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&St("scroll",r)}switch(n){case"input":Jp(r),AT(r,o,!0);break;case"textarea":Jp(r),NT(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=xv)}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=rR(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[Ji]=t,e[Id]=r,P$(e,t,!1,!1),t.stateNode=e;e:{switch(a=A_(n,r),n){case"dialog":St("cancel",e),St("close",e),i=r;break;case"iframe":case"object":case"embed":St("load",e),i=r;break;case"video":case"audio":for(i=0;i<zf.length;i++)St(zf[i],e);i=r;break;case"source":St("error",e),i=r;break;case"img":case"image":case"link":St("error",e),St("load",e),i=r;break;case"details":St("toggle",e),i=r;break;case"input":jT(e,r),i=S_(e,r),St("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Wt({},r,{value:void 0}),St("invalid",e);break;case"textarea":kT(e,r),i=P_(e,r),St("invalid",e);break;default:i=r}j_(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var c=s[o];o==="style"?aR(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&iR(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Td(e,c):typeof c=="number"&&Td(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Pd.hasOwnProperty(o)?c!=null&&o==="onScroll"&&St("scroll",e):c!=null&&eS(e,o,c,a))}switch(n){case"input":Jp(e),AT(e,r,!1);break;case"textarea":Jp(e),NT(e);break;case"option":r.value!=null&&e.setAttribute("value",""+qa(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Cc(e,!!r.multiple,o,!1):r.defaultValue!=null&&Cc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xv)}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 In(t),null;case 6:if(e&&t.stateNode!=null)j$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Oe(166));if(n=zs(Fd.current),zs(oo.current),lm(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ji]=t,(o=r.nodeValue!==n)&&(e=jr,e!==null))switch(e.tag){case 3:sm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&sm(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ji]=t,t.stateNode=r}return In(t),null;case 13:if(Tt(Bt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Nt&&Pr!==null&&t.mode&1&&!(t.flags&128))qR(),Fc(),t.flags|=98560,o=!1;else if(o=lm(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[Ji]=t}else Fc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;In(t),o=!1}else Ci!==null&&(ux(Ci),Ci=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||Bt.current&1?ln===0&&(ln=3):$S())),t.updateQueue!==null&&(t.flags|=4),In(t),null);case 4:return Uc(),nx(e,t),e===null&&Rd(t.stateNode.containerInfo),In(t),null;case 10:return bS(t.type._context),In(t),null;case 17:return dr(t.type)&&wv(),In(t),null;case 19:if(Tt(Bt),o=t.memoizedState,o===null)return In(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)xf(o,!1);else{if(ln!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=jv(e),a!==null){for(t.flags|=128,xf(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 wt(Bt,Bt.current&1|2),t.child}e=e.sibling}o.tail!==null&&Xt()>Vc&&(t.flags|=128,r=!0,xf(o,!1),t.lanes=4194304)}else{if(!r)if(e=jv(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Nt)return In(t),null}else 2*Xt()-o.renderingStartTime>Vc&&n!==1073741824&&(t.flags|=128,r=!0,xf(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=Xt(),t.sibling=null,n=Bt.current,wt(Bt,r?n&1|2:n&1),t):(In(t),null);case 22:case 23:return RS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Sr&1073741824&&(In(t),t.subtreeFlags&6&&(t.flags|=8192)):In(t),null;case 24:return null;case 25:return null}throw Error(Oe(156,t.tag))}function vW(e,t){switch(mS(t),t.tag){case 1:return dr(t.type)&&wv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uc(),Tt(fr),Tt(Un),SS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return OS(t),null;case 13:if(Tt(Bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Oe(340));Fc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tt(Bt),null;case 4:return Uc(),null;case 10:return bS(t.type._context),null;case 22:case 23:return RS(),null;case 24:return null;default:return null}}var fm=!1,Fn=!1,gW=typeof WeakSet=="function"?WeakSet:Set,Re=null;function vc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function rx(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var xj=!1;function yW(e,t){if(B_=yv,e=LR(),hS(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,c=-1,l=0,f=0,d=e,p=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(c=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++l===i&&(s=a),p===o&&++f===r&&(c=a),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(U_={focusedElem:e,selectionRange:n},yv=!1,Re=t;Re!==null;)if(t=Re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Re=e;else for(;Re!==null;){t=Re;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,x=y.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?g:wi(t.type,g),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){Gt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Re=e;break}Re=t.return}return y=xj,xj=!1,y}function od(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&&rx(t,n,o)}i=i.next}while(i!==r)}}function Fy(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 ix(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 A$(e){var t=e.alternate;t!==null&&(e.alternate=null,A$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ji],delete t[Id],delete t[W_],delete t[eW],delete t[tW])),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 k$(e){return e.tag===5||e.tag===3||e.tag===4}function wj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||k$(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 ox(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=xv));else if(r!==4&&(e=e.child,e!==null))for(ox(e,t,n),e=e.sibling;e!==null;)ox(e,t,n),e=e.sibling}function ax(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(ax(e,t,n),e=e.sibling;e!==null;)ax(e,t,n),e=e.sibling}var kn=null,Oi=!1;function ca(e,t,n){for(n=n.child;n!==null;)N$(e,t,n),n=n.sibling}function N$(e,t,n){if(io&&typeof io.onCommitFiberUnmount=="function")try{io.onCommitFiberUnmount(ky,n)}catch{}switch(n.tag){case 5:Fn||vc(n,t);case 6:var r=kn,i=Oi;kn=null,ca(e,t,n),kn=r,Oi=i,kn!==null&&(Oi?(e=kn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):kn.removeChild(n.stateNode));break;case 18:kn!==null&&(Oi?(e=kn,n=n.stateNode,e.nodeType===8?n1(e.parentNode,n):e.nodeType===1&&n1(e,n),Nd(e)):n1(kn,n.stateNode));break;case 4:r=kn,i=Oi,kn=n.stateNode.containerInfo,Oi=!0,ca(e,t,n),kn=r,Oi=i;break;case 0:case 11:case 14:case 15:if(!Fn&&(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)&&rx(n,t,a),i=i.next}while(i!==r)}ca(e,t,n);break;case 1:if(!Fn&&(vc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Gt(n,t,s)}ca(e,t,n);break;case 21:ca(e,t,n);break;case 22:n.mode&1?(Fn=(r=Fn)||n.memoizedState!==null,ca(e,t,n),Fn=r):ca(e,t,n);break;default:ca(e,t,n)}}function Oj(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gW),t.forEach(function(r){var i=PW.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _i(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:kn=s.stateNode,Oi=!1;break e;case 3:kn=s.stateNode.containerInfo,Oi=!0;break e;case 4:kn=s.stateNode.containerInfo,Oi=!0;break e}s=s.return}if(kn===null)throw Error(Oe(160));N$(o,a,i),kn=null,Oi=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(l){Gt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)M$(t,e),t=t.sibling}function M$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_i(t,e),Ki(e),r&4){try{od(3,e,e.return),Fy(3,e)}catch(g){Gt(e,e.return,g)}try{od(5,e,e.return)}catch(g){Gt(e,e.return,g)}}break;case 1:_i(t,e),Ki(e),r&512&&n!==null&&vc(n,n.return);break;case 5:if(_i(t,e),Ki(e),r&512&&n!==null&&vc(n,n.return),e.flags&32){var i=e.stateNode;try{Td(i,"")}catch(g){Gt(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&tR(i,o),A_(s,a);var l=A_(s,o);for(a=0;a<c.length;a+=2){var f=c[a],d=c[a+1];f==="style"?aR(i,d):f==="dangerouslySetInnerHTML"?iR(i,d):f==="children"?Td(i,d):eS(i,f,d,l)}switch(s){case"input":E_(i,o);break;case"textarea":nR(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Cc(i,!!o.multiple,v,!1):p!==!!o.multiple&&(o.defaultValue!=null?Cc(i,!!o.multiple,o.defaultValue,!0):Cc(i,!!o.multiple,o.multiple?[]:"",!1))}i[Id]=o}catch(g){Gt(e,e.return,g)}}break;case 6:if(_i(t,e),Ki(e),r&4){if(e.stateNode===null)throw Error(Oe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){Gt(e,e.return,g)}}break;case 3:if(_i(t,e),Ki(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Nd(t.containerInfo)}catch(g){Gt(e,e.return,g)}break;case 4:_i(t,e),Ki(e);break;case 13:_i(t,e),Ki(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(MS=Xt())),r&4&&Oj(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Fn=(l=Fn)||f,_i(t,e),Fn=l):_i(t,e),Ki(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!f&&e.mode&1)for(Re=e,f=e.child;f!==null;){for(d=Re=f;Re!==null;){switch(p=Re,v=p.child,p.tag){case 0:case 11:case 14:case 15:od(4,p,p.return);break;case 1:vc(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){Gt(r,n,g)}}break;case 5:vc(p,p.return);break;case 22:if(p.memoizedState!==null){Ej(d);continue}}v!==null?(v.return=p,Re=v):Ej(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=oR("display",a))}catch(g){Gt(e,e.return,g)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(g){Gt(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:_i(t,e),Ki(e),r&4&&Oj(e);break;case 21:break;default:_i(t,e),Ki(e)}}function Ki(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(k$(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&&(Td(i,""),r.flags&=-33);var o=wj(e);ax(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=wj(e);ox(e,s,a);break;default:throw Error(Oe(161))}}catch(c){Gt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bW(e,t,n){Re=e,L$(e)}function L$(e,t,n){for(var r=(e.mode&1)!==0;Re!==null;){var i=Re,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||fm;if(!a){var s=i.alternate,c=s!==null&&s.memoizedState!==null||Fn;s=fm;var l=Fn;if(fm=a,(Fn=c)&&!l)for(Re=i;Re!==null;)a=Re,c=a.child,a.tag===22&&a.memoizedState!==null?Cj(i):c!==null?(c.return=a,Re=c):Cj(i);for(;o!==null;)Re=o,L$(o),o=o.sibling;Re=i,fm=s,Fn=l}Sj(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Re=o):Sj(e)}}function Sj(e){for(;Re!==null;){var t=Re;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fn||Fy(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Fn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:wi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&lj(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}lj(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var f=l.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&Nd(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Oe(163))}Fn||t.flags&512&&ix(t)}catch(p){Gt(t,t.return,p)}}if(t===e){Re=null;break}if(n=t.sibling,n!==null){n.return=t.return,Re=n;break}Re=t.return}}function Ej(e){for(;Re!==null;){var t=Re;if(t===e){Re=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Re=n;break}Re=t.return}}function Cj(e){for(;Re!==null;){var t=Re;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Fy(4,t)}catch(c){Gt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){Gt(t,i,c)}}var o=t.return;try{ix(t)}catch(c){Gt(t,o,c)}break;case 5:var a=t.return;try{ix(t)}catch(c){Gt(t,a,c)}}}catch(c){Gt(t,t.return,c)}if(t===e){Re=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Re=s;break}Re=t.return}}var _W=Math.ceil,Nv=Qo.ReactCurrentDispatcher,kS=Qo.ReactCurrentOwner,ai=Qo.ReactCurrentBatchConfig,ct=0,bn=null,nn=null,Mn=0,Sr=0,gc=is(0),ln=0,Vd=null,sl=0,By=0,NS=0,ad=null,sr=null,MS=0,Vc=1/0,Co=null,Mv=!1,sx=null,Da=null,dm=!1,Ca=null,Lv=0,sd=0,lx=null,Qm=-1,Jm=0;function Qn(){return ct&6?Xt():Qm!==-1?Qm:Qm=Xt()}function Fa(e){return e.mode&1?ct&2&&Mn!==0?Mn&-Mn:rW.transition!==null?(Jm===0&&(Jm=yR()),Jm):(e=pt,e!==0||(e=window.event,e=e===void 0?16:ER(e.type)),e):1}function ki(e,t,n,r){if(50<sd)throw sd=0,lx=null,Error(Oe(185));Yh(e,n,r),(!(ct&2)||e!==bn)&&(e===bn&&(!(ct&2)&&(By|=n),ln===4&&Oa(e,Mn)),hr(e,r),n===1&&ct===0&&!(t.mode&1)&&(Vc=Xt()+500,$y&&os()))}function hr(e,t){var n=e.callbackNode;rV(e,t);var r=gv(e,e===bn?Mn:0);if(r===0)n!==null&&RT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&RT(n),t===1)e.tag===0?nW(Pj.bind(null,e)):WR(Pj.bind(null,e)),QV(function(){!(ct&6)&&os()}),n=null;else{switch(bR(r)){case 1:n=oS;break;case 4:n=vR;break;case 16:n=vv;break;case 536870912:n=gR;break;default:n=vv}n=z$(n,R$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function R$(e,t){if(Qm=-1,Jm=0,ct&6)throw Error(Oe(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var r=gv(e,e===bn?Mn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Rv(e,r);else{t=r;var i=ct;ct|=2;var o=I$();(bn!==e||Mn!==t)&&(Co=null,Vc=Xt()+500,Ys(e,t));do try{OW();break}catch(s){$$(e,s)}while(!0);yS(),Nv.current=o,ct=i,nn!==null?t=0:(bn=null,Mn=0,t=ln)}if(t!==0){if(t===2&&(i=R_(e),i!==0&&(r=i,t=cx(e,i))),t===1)throw n=Vd,Ys(e,0),Oa(e,r),hr(e,Xt()),n;if(t===6)Oa(e,r);else{if(i=e.current.alternate,!(r&30)&&!xW(i)&&(t=Rv(e,r),t===2&&(o=R_(e),o!==0&&(r=o,t=cx(e,o))),t===1))throw n=Vd,Ys(e,0),Oa(e,r),hr(e,Xt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Oe(345));case 2:Ts(e,sr,Co);break;case 3:if(Oa(e,r),(r&130023424)===r&&(t=MS+500-Xt(),10<t)){if(gv(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Qn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=V_(Ts.bind(null,e,sr,Co),t);break}Ts(e,sr,Co);break;case 4:if(Oa(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ai(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_W(r/1960))-r,10<r){e.timeoutHandle=V_(Ts.bind(null,e,sr,Co),r);break}Ts(e,sr,Co);break;case 5:Ts(e,sr,Co);break;default:throw Error(Oe(329))}}}return hr(e,Xt()),e.callbackNode===n?R$.bind(null,e):null}function cx(e,t){var n=ad;return e.current.memoizedState.isDehydrated&&(Ys(e,t).flags|=256),e=Rv(e,t),e!==2&&(t=sr,sr=n,t!==null&&ux(t)),e}function ux(e){sr===null?sr=e:sr.push.apply(sr,e)}function xW(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(!Li(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 Oa(e,t){for(t&=~NS,t&=~By,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ai(t),r=1<<n;e[n]=-1,t&=~r}}function Pj(e){if(ct&6)throw Error(Oe(327));kc();var t=gv(e,0);if(!(t&1))return hr(e,Xt()),null;var n=Rv(e,t);if(e.tag!==0&&n===2){var r=R_(e);r!==0&&(t=r,n=cx(e,r))}if(n===1)throw n=Vd,Ys(e,0),Oa(e,t),hr(e,Xt()),n;if(n===6)throw Error(Oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ts(e,sr,Co),hr(e,Xt()),null}function LS(e,t){var n=ct;ct|=1;try{return e(t)}finally{ct=n,ct===0&&(Vc=Xt()+500,$y&&os())}}function ll(e){Ca!==null&&Ca.tag===0&&!(ct&6)&&kc();var t=ct;ct|=1;var n=ai.transition,r=pt;try{if(ai.transition=null,pt=1,e)return e()}finally{pt=r,ai.transition=n,ct=t,!(ct&6)&&os()}}function RS(){Sr=gc.current,Tt(gc)}function Ys(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,XV(n)),nn!==null)for(n=nn.return;n!==null;){var r=n;switch(mS(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&wv();break;case 3:Uc(),Tt(fr),Tt(Un),SS();break;case 5:OS(r);break;case 4:Uc();break;case 13:Tt(Bt);break;case 19:Tt(Bt);break;case 10:bS(r.type._context);break;case 22:case 23:RS()}n=n.return}if(bn=e,nn=e=Ba(e.current,null),Mn=Sr=t,ln=0,Vd=null,NS=By=sl=0,sr=ad=null,Us!==null){for(t=0;t<Us.length;t++)if(n=Us[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}Us=null}return e}function $$(e,t){do{var n=nn;try{if(yS(),Ym.current=kv,Av){for(var r=zt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Av=!1}if(al=0,gn=sn=zt=null,id=!1,Bd=0,kS.current=null,n===null||n.return===null){ln=1,Vd=t,nn=null;break}e:{var o=e,a=n.return,s=n,c=t;if(t=Mn,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=pj(a);if(v!==null){v.flags&=-257,mj(v,a,s,o,t),v.mode&1&&hj(o,l,t),t=v,c=l;var y=t.updateQueue;if(y===null){var g=new Set;g.add(c),t.updateQueue=g}else y.add(c);break e}else{if(!(t&1)){hj(o,l,t),$S();break e}c=Error(Oe(426))}}else if(Nt&&s.mode&1){var x=pj(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),mj(x,a,s,o,t),vS(zc(c,s));break e}}o=c=zc(c,s),ln!==4&&(ln=2),ad===null?ad=[o]:ad.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=b$(o,c,t);sj(o,_);break e;case 1:s=c;var b=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Da===null||!Da.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=_$(o,s,t);sj(o,S);break e}}o=o.return}while(o!==null)}F$(n)}catch(E){t=E,nn===n&&n!==null&&(nn=n=n.return);continue}break}while(!0)}function I$(){var e=Nv.current;return Nv.current=kv,e===null?kv:e}function $S(){(ln===0||ln===3||ln===2)&&(ln=4),bn===null||!(sl&268435455)&&!(By&268435455)||Oa(bn,Mn)}function Rv(e,t){var n=ct;ct|=2;var r=I$();(bn!==e||Mn!==t)&&(Co=null,Ys(e,t));do try{wW();break}catch(i){$$(e,i)}while(!0);if(yS(),ct=n,Nv.current=r,nn!==null)throw Error(Oe(261));return bn=null,Mn=0,ln}function wW(){for(;nn!==null;)D$(nn)}function OW(){for(;nn!==null&&!Kz();)D$(nn)}function D$(e){var t=U$(e.alternate,e,Sr);e.memoizedProps=e.pendingProps,t===null?F$(e):nn=t,kS.current=null}function F$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vW(n,t),n!==null){n.flags&=32767,nn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ln=6,nn=null;return}}else if(n=mW(n,t,Sr),n!==null){nn=n;return}if(t=t.sibling,t!==null){nn=t;return}nn=t=e}while(t!==null);ln===0&&(ln=5)}function Ts(e,t,n){var r=pt,i=ai.transition;try{ai.transition=null,pt=1,SW(e,t,n,r)}finally{ai.transition=i,pt=r}return null}function SW(e,t,n,r){do kc();while(Ca!==null);if(ct&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(iV(e,o),e===bn&&(nn=bn=null,Mn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||dm||(dm=!0,z$(vv,function(){return kc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ai.transition,ai.transition=null;var a=pt;pt=1;var s=ct;ct|=4,kS.current=null,yW(e,n),M$(n,e),WV(U_),yv=!!B_,U_=B_=null,e.current=n,bW(n),Yz(),ct=s,pt=a,ai.transition=o}else e.current=n;if(dm&&(dm=!1,Ca=e,Lv=i),o=e.pendingLanes,o===0&&(Da=null),Qz(n.stateNode),hr(e,Xt()),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(Mv)throw Mv=!1,e=sx,sx=null,e;return Lv&1&&e.tag!==0&&kc(),o=e.pendingLanes,o&1?e===lx?sd++:(sd=0,lx=e):sd=0,os(),null}function kc(){if(Ca!==null){var e=bR(Lv),t=ai.transition,n=pt;try{if(ai.transition=null,pt=16>e?16:e,Ca===null)var r=!1;else{if(e=Ca,Ca=null,Lv=0,ct&6)throw Error(Oe(331));var i=ct;for(ct|=4,Re=e.current;Re!==null;){var o=Re,a=o.child;if(Re.flags&16){var s=o.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(Re=l;Re!==null;){var f=Re;switch(f.tag){case 0:case 11:case 15:od(8,f,o)}var d=f.child;if(d!==null)d.return=f,Re=d;else for(;Re!==null;){f=Re;var p=f.sibling,v=f.return;if(A$(f),f===l){Re=null;break}if(p!==null){p.return=v,Re=p;break}Re=v}}}var y=o.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}Re=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Re=a;else e:for(;Re!==null;){if(o=Re,o.flags&2048)switch(o.tag){case 0:case 11:case 15:od(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,Re=_;break e}Re=o.return}}var b=e.current;for(Re=b;Re!==null;){a=Re;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,Re=w;else e:for(a=b;Re!==null;){if(s=Re,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Fy(9,s)}}catch(E){Gt(s,s.return,E)}if(s===a){Re=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Re=S;break e}Re=s.return}}if(ct=i,os(),io&&typeof io.onPostCommitFiberRoot=="function")try{io.onPostCommitFiberRoot(ky,e)}catch{}r=!0}return r}finally{pt=n,ai.transition=t}}return!1}function Tj(e,t,n){t=zc(n,t),t=b$(e,t,1),e=Ia(e,t,1),t=Qn(),e!==null&&(Yh(e,1,t),hr(e,t))}function Gt(e,t,n){if(e.tag===3)Tj(e,e,n);else for(;t!==null;){if(t.tag===3){Tj(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Da===null||!Da.has(r))){e=zc(n,e),e=_$(t,e,1),t=Ia(t,e,1),e=Qn(),t!==null&&(Yh(t,1,e),hr(t,e));break}}t=t.return}}function EW(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Qn(),e.pingedLanes|=e.suspendedLanes&n,bn===e&&(Mn&n)===n&&(ln===4||ln===3&&(Mn&130023424)===Mn&&500>Xt()-MS?Ys(e,0):NS|=n),hr(e,t)}function B$(e,t){t===0&&(e.mode&1?(t=nm,nm<<=1,!(nm&130023424)&&(nm=4194304)):t=1);var n=Qn();e=Bo(e,t),e!==null&&(Yh(e,t,n),hr(e,n))}function CW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),B$(e,n)}function PW(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),B$(e,n)}var U$;U$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fr.current)lr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lr=!1,pW(e,t,n);lr=!!(e.flags&131072)}else lr=!1,Nt&&t.flags&1048576&&HR(t,Ev,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xm(e,t),e=t.pendingProps;var i=Dc(t,Un.current);Ac(t,n),i=CS(null,t,r,e,i,n);var o=PS();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,dr(r)?(o=!0,Ov(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,xS(t),i.updater=Dy,t.stateNode=i,i._reactInternals=t,Z_(t,r,e,n),t=J_(null,t,r,!0,o,n)):(t.tag=0,Nt&&o&&pS(t),qn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xm(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=jW(r),e=wi(r,e),i){case 0:t=Q_(null,t,r,e,n);break e;case 1:t=yj(null,t,r,e,n);break e;case 11:t=vj(null,t,r,e,n);break e;case 14:t=gj(null,t,r,wi(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:wi(r,i),Q_(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),yj(e,t,r,i,n);case 3:e:{if(S$(t),e===null)throw Error(Oe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,XR(e,t),Tv(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=zc(Error(Oe(423)),t),t=bj(e,t,r,n,i);break e}else if(r!==i){i=zc(Error(Oe(424)),t),t=bj(e,t,r,n,i);break e}else for(Pr=$a(t.stateNode.containerInfo.firstChild),jr=t,Nt=!0,Ci=null,n=YR(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fc(),r===i){t=Uo(e,t,n);break e}qn(e,t,r,n)}t=t.child}return t;case 5:return QR(t),e===null&&q_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,z_(r,i)?a=null:o!==null&&z_(r,o)&&(t.flags|=32),O$(e,t),qn(e,t,a,n),t.child;case 6:return e===null&&q_(t),null;case 13:return E$(e,t,n);case 4:return wS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bc(t,null,r,n):qn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),vj(e,t,r,i,n);case 7:return qn(e,t,t.pendingProps,n),t.child;case 8:return qn(e,t,t.pendingProps.children,n),t.child;case 12:return qn(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,wt(Cv,r._currentValue),r._currentValue=a,o!==null)if(Li(o.value,a)){if(o.children===i.children&&!fr.current){t=Uo(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 c=s.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Lo(-1,n&-n),c.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),K_(o.return,n,t),s.lanes|=n;break}c=c.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),K_(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}qn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ac(t,n),i=ci(i),r=r(i),t.flags|=1,qn(e,t,r,n),t.child;case 14:return r=t.type,i=wi(r,t.pendingProps),i=wi(r.type,i),gj(e,t,r,i,n);case 15:return x$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),Xm(e,t),t.tag=1,dr(r)?(e=!0,Ov(t)):e=!1,Ac(t,n),y$(t,r,i),Z_(t,r,i,n),J_(null,t,r,!0,e,n);case 19:return C$(e,t,n);case 22:return w$(e,t,n)}throw Error(Oe(156,t.tag))};function z$(e,t){return mR(e,t)}function TW(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 ii(e,t,n,r){return new TW(e,t,n,r)}function IS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jW(e){if(typeof e=="function")return IS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nS)return 11;if(e===rS)return 14}return 2}function Ba(e,t){var n=e.alternate;return n===null?(n=ii(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 ev(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")IS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case sc:return Zs(n.children,i,o,t);case tS:a=8,i|=8;break;case __:return e=ii(12,n,t,i|2),e.elementType=__,e.lanes=o,e;case x_:return e=ii(13,n,t,i),e.elementType=x_,e.lanes=o,e;case w_:return e=ii(19,n,t,i),e.elementType=w_,e.lanes=o,e;case Q4:return Uy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z4:a=10;break e;case X4:a=9;break e;case nS:a=11;break e;case rS:a=14;break e;case ba:a=16,r=null;break e}throw Error(Oe(130,e==null?e:typeof e,""))}return t=ii(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zs(e,t,n,r){return e=ii(7,e,r,t),e.lanes=n,e}function Uy(e,t,n,r){return e=ii(22,e,r,t),e.elementType=Q4,e.lanes=n,e.stateNode={isHidden:!1},e}function u1(e,t,n){return e=ii(6,e,null,t),e.lanes=n,e}function f1(e,t,n){return t=ii(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AW(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=Hb(0),this.expirationTimes=Hb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hb(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function DS(e,t,n,r,i,o,a,s,c){return e=new AW(e,t,n,s,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ii(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xS(o),e}function kW(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ac,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function V$(e){if(!e)return Ka;e=e._reactInternals;e:{if(Sl(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(dr(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(dr(n))return VR(e,n,t)}return t}function W$(e,t,n,r,i,o,a,s,c){return e=DS(n,r,!0,e,i,o,a,s,c),e.context=V$(null),n=e.current,r=Qn(),i=Fa(n),o=Lo(r,i),o.callback=t??null,Ia(n,o,i),e.current.lanes=i,Yh(e,i,r),hr(e,r),e}function zy(e,t,n,r){var i=t.current,o=Qn(),a=Fa(i);return n=V$(n),t.context===null?t.context=n:t.pendingContext=n,t=Lo(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ia(i,t,a),e!==null&&(ki(e,i,a,o),Km(e,i,a)),a}function $v(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 jj(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function FS(e,t){jj(e,t),(e=e.alternate)&&jj(e,t)}function NW(){return null}var H$=typeof reportError=="function"?reportError:function(e){console.error(e)};function BS(e){this._internalRoot=e}Vy.prototype.render=BS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Oe(409));zy(e,t,null,null)};Vy.prototype.unmount=BS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ll(function(){zy(null,e,null,null)}),t[Fo]=null}};function Vy(e){this._internalRoot=e}Vy.prototype.unstable_scheduleHydration=function(e){if(e){var t=wR();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wa.length&&t!==0&&t<wa[n].priority;n++);wa.splice(n,0,e),n===0&&SR(e)}};function US(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Wy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Aj(){}function MW(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=$v(a);o.call(l)}}var a=W$(t,r,e,0,null,!1,!1,"",Aj);return e._reactRootContainer=a,e[Fo]=a.current,Rd(e.nodeType===8?e.parentNode:e),ll(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=$v(c);s.call(l)}}var c=DS(e,0,!1,null,null,!1,!1,"",Aj);return e._reactRootContainer=c,e[Fo]=c.current,Rd(e.nodeType===8?e.parentNode:e),ll(function(){zy(t,c,n,r)}),c}function Hy(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var c=$v(a);s.call(c)}}zy(t,a,e,i)}else a=MW(n,t,e,i,r);return $v(a)}_R=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Uf(t.pendingLanes);n!==0&&(aS(t,n|1),hr(t,Xt()),!(ct&6)&&(Vc=Xt()+500,os()))}break;case 13:ll(function(){var r=Bo(e,1);if(r!==null){var i=Qn();ki(r,e,1,i)}}),FS(e,1)}};sS=function(e){if(e.tag===13){var t=Bo(e,134217728);if(t!==null){var n=Qn();ki(t,e,134217728,n)}FS(e,134217728)}};xR=function(e){if(e.tag===13){var t=Fa(e),n=Bo(e,t);if(n!==null){var r=Qn();ki(n,e,t,r)}FS(e,t)}};wR=function(){return pt};OR=function(e,t){var n=pt;try{return pt=e,t()}finally{pt=n}};N_=function(e,t,n){switch(t){case"input":if(E_(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=Ry(r);if(!i)throw Error(Oe(90));eR(r),E_(r,i)}}}break;case"textarea":nR(e,n);break;case"select":t=n.value,t!=null&&Cc(e,!!n.multiple,t,!1)}};cR=LS;uR=ll;var LW={usingClientEntryPoint:!1,Events:[Xh,fc,Ry,sR,lR,LS]},wf={findFiberByHostInstance:Bs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},RW={bundleType:wf.bundleType,version:wf.version,rendererPackageName:wf.rendererPackageName,rendererConfig:wf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hR(e),e===null?null:e.stateNode},findFiberByHostInstance:wf.findFiberByHostInstance||NW,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 hm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hm.isDisabled&&hm.supportsFiber)try{ky=hm.inject(RW),io=hm}catch{}}Ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LW;Ir.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!US(t))throw Error(Oe(200));return kW(e,t,null,n)};Ir.createRoot=function(e,t){if(!US(e))throw Error(Oe(299));var n=!1,r="",i=H$;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=DS(e,1,!1,null,null,n,!1,r,i),e[Fo]=t.current,Rd(e.nodeType===8?e.parentNode:e),new BS(t)};Ir.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=hR(t),e=e===null?null:e.stateNode,e};Ir.flushSync=function(e){return ll(e)};Ir.hydrate=function(e,t,n){if(!Wy(t))throw Error(Oe(200));return Hy(null,e,t,!0,n)};Ir.hydrateRoot=function(e,t,n){if(!US(e))throw Error(Oe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=H$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=W$(t,null,e,1,n??null,i,!1,o,a),e[Fo]=t.current,Rd(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 Vy(t)};Ir.render=function(e,t,n){if(!Wy(t))throw Error(Oe(200));return Hy(null,e,t,!1,n)};Ir.unmountComponentAtNode=function(e){if(!Wy(e))throw Error(Oe(40));return e._reactRootContainer?(ll(function(){Hy(null,null,e,!1,function(){e._reactRootContainer=null,e[Fo]=null})}),!0):!1};Ir.unstable_batchedUpdates=LS;Ir.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Wy(n))throw Error(Oe(200));if(e==null||e._reactInternals===void 0)throw Error(Oe(38));return Hy(e,t,n,!1,r)};Ir.version="18.3.1-next-f1338f8080-20240426";function G$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(G$)}catch(e){console.error(e)}}G$(),G4.exports=Ir;var Gy=G4.exports;const Vs=at(Gy);var q$,kj=Gy;q$=kj.createRoot,kj.hydrateRoot;var $W={};/**
* @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 Jh=M;function IW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DW=typeof Object.is=="function"?Object.is:IW,FW=Jh.useSyncExternalStore,BW=Jh.useRef,UW=Jh.useEffect,zW=Jh.useMemo,VW=Jh.useDebugValue;$W.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=BW(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=zW(function(){function c(v){if(!l){if(l=!0,f=v,v=r(v),i!==void 0&&a.hasValue){var y=a.value;if(i(y,v))return d=y}return d=v}if(y=d,DW(f,v))return y;var g=r(v);return i!==void 0&&i(y,g)?y:(f=v,d=g)}var l=!1,f,d,p=n===void 0?null:n;return[function(){return c(t())},p===null?void 0:function(){return c(p())}]},[t,n,r,i]);var s=FW(e,o[0],o[1]);return UW(function(){a.hasValue=!0,a.value=s},[s]),VW(s),s};var dt="default"in y_?V:y_,Nj=Symbol.for("react-redux-context"),Mj=typeof globalThis<"u"?globalThis:{};function WW(){if(!dt.createContext)return{};const e=Mj[Nj]??(Mj[Nj]=new Map);let t=e.get(dt.createContext);return t||(t=dt.createContext(null),e.set(dt.createContext,t)),t}var K$=WW(),HW=()=>{throw new Error("uSES not initialized!")},GW=Symbol.for("react.element"),qW=Symbol.for("react.portal"),KW=Symbol.for("react.fragment"),YW=Symbol.for("react.strict_mode"),ZW=Symbol.for("react.profiler"),XW=Symbol.for("react.provider"),QW=Symbol.for("react.context"),JW=Symbol.for("react.server_context"),Y$=Symbol.for("react.forward_ref"),eH=Symbol.for("react.suspense"),tH=Symbol.for("react.suspense_list"),zS=Symbol.for("react.memo"),nH=Symbol.for("react.lazy"),rH=Y$,iH=zS;function oH(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case GW:{const n=e.type;switch(n){case KW:case ZW:case YW:case eH:case tH:return n;default:{const r=n&&n.$$typeof;switch(r){case JW:case QW:case Y$:case nH:case zS:case XW:return r;default:return t}}}}case qW:return t}}}function aH(e){return oH(e)===zS}function sH(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,c,l,f,d,p;function v(b,w){return c=b,l=w,f=e(c,l),d=t(r,l),p=n(f,d,l),s=!0,p}function y(){return f=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),p=n(f,d,l),p}function g(){return e.dependsOnOwnProps&&(f=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),p=n(f,d,l),p}function x(){const b=e(c,l),w=!a(b,f);return f=b,w&&(p=n(f,d,l)),p}function _(b,w){const S=!o(w,l),E=!i(b,c,w,l);return c=b,l=w,S&&E?y():S?g():E?x():p}return function(w,S){return s?_(w,S):v(w,S)}}function lH(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return sH(o,a,s,e,i)}function cH(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 fx(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Lj(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Z$(e,t){return function(r,{displayName:i}){const o=function(s,c){return o.dependsOnOwnProps?o.mapToProps(s,c):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,c){o.mapToProps=e,o.dependsOnOwnProps=Lj(e);let l=o(s,c);return typeof l=="function"&&(o.mapToProps=l,o.dependsOnOwnProps=Lj(l),l=o(s,c)),l},o}}function VS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function uH(e){return e&&typeof e=="object"?fx(t=>cH(e,t)):e?typeof e=="function"?Z$(e):VS(e,"mapDispatchToProps"):fx(t=>({dispatch:t}))}function fH(e){return e?typeof e=="function"?Z$(e):VS(e,"mapStateToProps"):fx(()=>({}))}function dH(e,t,n){return{...n,...e,...t}}function hH(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(c,l,f){const d=e(c,l,f);return o?i(d,a)||(a=d):(o=!0,a=d),a}}}function pH(e){return e?typeof e=="function"?hH(e):VS(e,"mergeProps"):()=>dH}function mH(e){e()}function vH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){mH(()=>{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 Rj={notify(){},get:()=>[]};function X$(e,t){let n,r=Rj,i=0,o=!1;function a(g){f();const x=r.subscribe(g);let _=!1;return()=>{_||(_=!0,x(),d())}}function s(){r.notify()}function c(){y.onStateChange&&y.onStateChange()}function l(){return o}function f(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=vH())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Rj)}function p(){o||(o=!0,f())}function v(){o&&(o=!1,d())}const y={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>r};return y}var gH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yH=typeof navigator<"u"&&navigator.product==="ReactNative",Iv=gH||yH?dt.useLayoutEffect:dt.useEffect;function $j(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function d1(e,t){if($j(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])||!$j(e[n[i]],t[n[i]]))return!1;return!0}var bH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Q$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wH={[rH]:xH,[iH]:Q$};function Ij(e){return aH(e)?Q$:wH[e.$$typeof]||bH}var OH=Object.defineProperty,SH=Object.getOwnPropertyNames,Dj=Object.getOwnPropertySymbols,EH=Object.getOwnPropertyDescriptor,CH=Object.getPrototypeOf,Fj=Object.prototype;function dx(e,t){if(typeof t!="string"){if(Fj){const o=CH(t);o&&o!==Fj&&dx(e,o)}let n=SH(t);Dj&&(n=n.concat(Dj(t)));const r=Ij(e),i=Ij(t);for(let o=0;o<n.length;++o){const a=n[o];if(!_H[a]&&!(i&&i[a])&&!(r&&r[a])){const s=EH(t,a);try{OH(e,a,s)}catch{}}}}return e}var J$=HW,PH=e=>{J$=e},TH=[null,null];function jH(e,t,n){Iv(()=>e(...t),n)}function AH(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function kH(e,t,n,r,i,o,a,s,c,l,f){if(!e)return()=>{};let d=!1,p=null;const v=()=>{if(d||!s.current)return;const g=t.getState();let x,_;try{x=r(g,i.current)}catch(b){_=b,p=b}_||(p=null),x===o.current?a.current||l():(o.current=x,c.current=x,a.current=!0,f())};return n.onStateChange=v,n.trySubscribe(),v(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function NH(e,t){return e===t}function MH(e,t,n,{pure:r,areStatesEqual:i=NH,areOwnPropsEqual:o=d1,areStatePropsEqual:a=d1,areMergedPropsEqual:s=d1,forwardRef:c=!1,context:l=K$}={}){const f=l,d=fH(e),p=uH(t),v=pH(n),y=!!e;return x=>{const _=x.displayName||x.name||"Component",b=`Connect(${_})`,w={shouldHandleStateChanges:y,displayName:b,wrappedComponentName:_,WrappedComponent:x,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:v,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function S(T){const[A,F,k]=dt.useMemo(()=>{const{reactReduxForwardedRef:Y,...oe}=T;return[T.context,Y,oe]},[T]),I=dt.useMemo(()=>{let Y=f;return A!=null&&A.Consumer,Y},[A,f]),D=dt.useContext(I),q=!!T.store&&!!T.store.getState&&!!T.store.dispatch,W=!!D&&!!D.store,X=q?T.store:D.store,Q=W?D.getServerState:X.getState,ne=dt.useMemo(()=>lH(X.dispatch,w),[X]),[Z,z]=dt.useMemo(()=>{if(!y)return TH;const Y=X$(X,q?void 0:D.subscription),oe=Y.notifyNestedSubs.bind(Y);return[Y,oe]},[X,q,D]),B=dt.useMemo(()=>q?D:{...D,subscription:Z},[q,D,Z]),H=dt.useRef(void 0),ee=dt.useRef(k),K=dt.useRef(void 0),te=dt.useRef(!1),ie=dt.useRef(!1),ae=dt.useRef(void 0);Iv(()=>(ie.current=!0,()=>{ie.current=!1}),[]);const fe=dt.useMemo(()=>()=>K.current&&k===ee.current?K.current:ne(X.getState(),k),[X,k]),j=dt.useMemo(()=>oe=>Z?kH(y,X,Z,ne,ee,H,te,ie,K,z,oe):()=>{},[Z]);jH(AH,[ee,H,te,k,K,z]);let N;try{N=J$(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}Iv(()=>{ae.current=void 0,K.current=void 0,H.current=N});const U=dt.useMemo(()=>dt.createElement(x,{...N,ref:F}),[F,x,N]);return dt.useMemo(()=>y?dt.createElement(I.Provider,{value:B},U):U,[I,U,B])}const C=dt.memo(S);if(C.WrappedComponent=x,C.displayName=S.displayName=b,c){const A=dt.forwardRef(function(k,I){return dt.createElement(C,{...k,reactReduxForwardedRef:I})});return A.displayName=b,A.WrappedComponent=x,dx(A,x)}return dx(C,x)}}var e6=MH;function LH({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=dt.useMemo(()=>{const l=X$(e);return{store:e,subscription:l,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=dt.useMemo(()=>e.getState(),[e]);Iv(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const c=t||K$;return dt.createElement(c.Provider,{value:a},n)}var t6=LH;PH(M.useSyncExternalStore);/**
* @remix-run/router v1.20.0
*
* 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 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)}var Pa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Pa||(Pa={}));const Bj="popstate";function RH(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return hx("",{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:Dv(i)}return IH(t,n,null,e)}function Vt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function n6(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $H(){return Math.random().toString(36).substr(2,8)}function Uj(e,t){return{usr:e.state,key:e.key,idx:t}}function hx(e,t,n,r){return n===void 0&&(n=null),Wd({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cu(t):t,{state:n,key:t&&t.key||r||$H()})}function Dv(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 Cu(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 IH(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Pa.Pop,c=null,l=f();l==null&&(l=0,a.replaceState(Wd({},a.state,{idx:l}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Pa.Pop;let x=f(),_=x==null?null:x-l;l=x,c&&c({action:s,location:g.location,delta:_})}function p(x,_){s=Pa.Push;let b=hx(g.location,x,_);l=f()+1;let w=Uj(b,l),S=g.createHref(b);try{a.pushState(w,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(S)}o&&c&&c({action:s,location:g.location,delta:1})}function v(x,_){s=Pa.Replace;let b=hx(g.location,x,_);l=f();let w=Uj(b,l),S=g.createHref(b);a.replaceState(w,"",S),o&&c&&c({action:s,location:g.location,delta:0})}function y(x){let _=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof x=="string"?x:Dv(x);return b=b.replace(/ $/,"%20"),Vt(_,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,_)}let g={get action(){return s},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(Bj,d),c=x,()=>{i.removeEventListener(Bj,d),c=null}},createHref(x){return t(i,x)},createURL:y,encodeLocation(x){let _=y(x);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:v,go(x){return a.go(x)}};return g}var zj;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zj||(zj={}));function DH(e,t,n){return n===void 0&&(n="/"),FH(e,t,n,!1)}function FH(e,t,n,r){let i=typeof t=="string"?Cu(t):t,o=Wc(i.pathname||"/",n);if(o==null)return null;let a=r6(e);BH(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let l=XH(o);s=YH(a[c],l,r)}return s}function r6(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(Vt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let l=Ua([r,c.relativePath]),f=n.concat(c);o.children&&o.children.length>0&&(Vt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),r6(o.children,t,f,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:qH(l,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 c of i6(o.path))i(o,a,c)}),t}function i6(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=i6(r.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function BH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:KH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const UH=/^:[\w-]+$/,zH=3,VH=2,WH=1,HH=10,GH=-2,Vj=e=>e==="*";function qH(e,t){let n=e.split("/"),r=n.length;return n.some(Vj)&&(r+=GH),t&&(r+=VH),n.filter(i=>!Vj(i)).reduce((i,o)=>i+(UH.test(o)?zH:o===""?WH:HH),r)}function KH(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 YH(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let c=r[s],l=s===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",d=Fv({path:c.relativePath,caseSensitive:c.caseSensitive,end:l},f),p=c.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=Fv({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:Ua([o,d.pathname]),pathnameBase:tG(Ua([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=Ua([o,d.pathnameBase]))}return a}function Fv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ZH(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((l,f,d)=>{let{paramName:p,isOptional:v}=f;if(p==="*"){let g=s[d]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const y=s[d];return v&&!y?l[p]=void 0:l[p]=(y||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:a,pattern:e}}function ZH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),n6(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,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function XH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return n6(!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 Wc(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 QH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Cu(e):e;return{pathname:n?n.startsWith("/")?n:JH(n,t):t,search:nG(r),hash:rG(i)}}function JH(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 h1(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 eG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function WS(e,t){let n=eG(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function HS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Cu(e):(i=Wd({},e),Vt(!i.pathname||!i.pathname.includes("?"),h1("?","pathname","search",i)),Vt(!i.pathname||!i.pathname.includes("#"),h1("#","pathname","hash",i)),Vt(!i.search||!i.search.includes("#"),h1("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let c=QH(i,s),l=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||f)&&(c.pathname+="/"),c}const Ua=e=>e.join("/").replace(/\/\/+/g,"/"),tG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o6=["post","put","patch","delete"];new Set(o6);const oG=["get",...o6];new Set(oG);/**
* React Router v6.27.0
*
* 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 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)}const qy=M.createContext(null),a6=M.createContext(null),Jo=M.createContext(null),Ky=M.createContext(null),ea=M.createContext({outlet:null,matches:[],isDataRoute:!1}),s6=M.createContext(null);function aG(e,t){let{relative:n}=t===void 0?{}:t;El()||Vt(!1);let{basename:r,navigator:i}=M.useContext(Jo),{hash:o,pathname:a,search:s}=Yy(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Ua([r,a])),i.createHref({pathname:c,search:s,hash:o})}function El(){return M.useContext(Ky)!=null}function gr(){return El()||Vt(!1),M.useContext(Ky).location}function l6(e){M.useContext(Jo).static||M.useLayoutEffect(e)}function yo(){let{isDataRoute:e}=M.useContext(ea);return e?bG():sG()}function sG(){El()||Vt(!1);let e=M.useContext(qy),{basename:t,future:n,navigator:r}=M.useContext(Jo),{matches:i}=M.useContext(ea),{pathname:o}=gr(),a=JSON.stringify(WS(i,n.v7_relativeSplatPath)),s=M.useRef(!1);return l6(()=>{s.current=!0}),M.useCallback(function(l,f){if(f===void 0&&(f={}),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=HS(l,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ua([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,o,e])}function Pu(){let{matches:e}=M.useContext(ea),t=e[e.length-1];return t?t.params:{}}function Yy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=M.useContext(Jo),{matches:i}=M.useContext(ea),{pathname:o}=gr(),a=JSON.stringify(WS(i,r.v7_relativeSplatPath));return M.useMemo(()=>HS(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function lG(e,t){return cG(e,t)}function cG(e,t,n,r){El()||Vt(!1);let{navigator:i}=M.useContext(Jo),{matches:o}=M.useContext(ea),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let l=gr(),f;if(t){var d;let x=typeof t=="string"?Cu(t):t;c==="/"||(d=x.pathname)!=null&&d.startsWith(c)||Vt(!1),f=x}else f=l;let p=f.pathname||"/",v=p;if(c!=="/"){let x=c.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=DH(e,{pathname:v}),g=pG(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Ua([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:Ua([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&g?M.createElement(Ky.Provider,{value:{location:Hd({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Pa.Pop}},g):g}function uG(){let e=yG(),t=iG(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 M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:i},n):null,null)}const fG=M.createElement(uG,null);class dG extends M.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?M.createElement(ea.Provider,{value:this.props.routeContext},M.createElement(s6.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hG(e){let{routeContext:t,match:n,children:r}=e,i=M.useContext(qy);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(ea.Provider,{value:t},r)}function pG(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(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)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||Vt(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,l=-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)&&(l=f),d.route.id){let{loaderData:p,errors:v}=n,y=d.route.loader&&p[d.route.id]===void 0&&(!v||v[d.route.id]===void 0);if(d.route.lazy||y){c=!0,l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let v,y=!1,g=null,x=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||fG,c&&(l<0&&p===0?(y=!0,x=null):l===p&&(y=!0,x=d.route.hydrateFallbackElement||null)));let _=t.concat(a.slice(0,p+1)),b=()=>{let w;return v?w=g:y?w=x:d.route.Component?w=M.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,M.createElement(hG,{match:d,routeContext:{outlet:f,matches:_,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?M.createElement(dG,{location:n.location,revalidation:n.revalidation,component:g,error:v,children:b(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):b()},null)}var c6=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(c6||{}),Bv=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}(Bv||{});function mG(e){let t=M.useContext(qy);return t||Vt(!1),t}function vG(e){let t=M.useContext(a6);return t||Vt(!1),t}function gG(e){let t=M.useContext(ea);return t||Vt(!1),t}function u6(e){let t=gG(),n=t.matches[t.matches.length-1];return n.route.id||Vt(!1),n.route.id}function yG(){var e;let t=M.useContext(s6),n=vG(Bv.UseRouteError),r=u6(Bv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function bG(){let{router:e}=mG(c6.UseNavigateStable),t=u6(Bv.UseNavigateStable),n=M.useRef(!1);return l6(()=>{n.current=!0}),M.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Hd({fromRouteId:t},o)))},[e,t])}function GS(e){let{to:t,replace:n,state:r,relative:i}=e;El()||Vt(!1);let{future:o,static:a}=M.useContext(Jo),{matches:s}=M.useContext(ea),{pathname:c}=gr(),l=yo(),f=HS(t,WS(s,o.v7_relativeSplatPath),c,i==="path"),d=JSON.stringify(f);return M.useEffect(()=>l(JSON.parse(d),{replace:n,state:r,relative:i}),[l,d,i,n,r]),null}function ot(e){Vt(!1)}function _G(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Pa.Pop,navigator:o,static:a=!1,future:s}=e;El()&&Vt(!1);let c=t.replace(/^\/*/,"/"),l=M.useMemo(()=>({basename:c,navigator:o,static:a,future:Hd({v7_relativeSplatPath:!1},s)}),[c,s,o,a]);typeof r=="string"&&(r=Cu(r));let{pathname:f="/",search:d="",hash:p="",state:v=null,key:y="default"}=r,g=M.useMemo(()=>{let x=Wc(f,c);return x==null?null:{location:{pathname:x,search:d,hash:p,state:v,key:y},navigationType:i}},[c,f,d,p,v,y,i]);return g==null?null:M.createElement(Jo.Provider,{value:l},M.createElement(Ky.Provider,{children:n,value:g}))}function Zy(e){let{children:t,location:n}=e;return lG(px(t),n)}new Promise(()=>{});function px(e,t){t===void 0&&(t=[]);let n=[];return M.Children.forEach(e,(r,i)=>{if(!M.isValidElement(r))return;let o=[...t,i];if(r.type===M.Fragment){n.push.apply(n,px(r.props.children,o));return}r.type!==ot&&Vt(!1),!r.props.index||!r.props.children||Vt(!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=px(r.props.children,o)),n.push(a)}),n}/**
* React Router DOM v6.27.0
*
* 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 Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}function f6(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 xG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wG(e,t){return e.button===0&&(!t||t==="_self")&&!xG(e)}const OG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],SG=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],EG="6";try{window.__reactRouterVersion=EG}catch{}const CG=M.createContext({isTransitioning:!1}),PG="startTransition",Wj=y_[PG];function d6(e){let{basename:t,children:n,future:r,window:i}=e,o=M.useRef();o.current==null&&(o.current=RH({window:i,v5Compat:!0}));let a=o.current,[s,c]=M.useState({action:a.action,location:a.location}),{v7_startTransition:l}=r||{},f=M.useCallback(d=>{l&&Wj?Wj(()=>c(d)):c(d)},[c,l]);return M.useLayoutEffect(()=>a.listen(f),[a,f]),M.createElement(_G,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const TG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,At=M.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:c,to:l,preventScrollReset:f,viewTransition:d}=t,p=f6(t,OG),{basename:v}=M.useContext(Jo),y,g=!1;if(typeof l=="string"&&jG.test(l)&&(y=l,TG))try{let w=new URL(window.location.href),S=l.startsWith("//")?new URL(w.protocol+l):new URL(l),E=Wc(S.pathname,v);S.origin===w.origin&&E!=null?l=E+S.search+S.hash:g=!0}catch{}let x=aG(l,{relative:i}),_=kG(l,{replace:a,state:s,target:c,preventScrollReset:f,relative:i,viewTransition:d});function b(w){r&&r(w),w.defaultPrevented||_(w)}return M.createElement("a",Uv({},p,{href:y||x,onClick:g||o?r:b,ref:n,target:c}))}),h6=M.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:c,viewTransition:l,children:f}=t,d=f6(t,SG),p=Yy(c,{relative:d.relative}),v=gr(),y=M.useContext(a6),{navigator:g,basename:x}=M.useContext(Jo),_=y!=null&&NG(p)&&l===!0,b=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,w=v.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&x&&(S=Wc(S,x)||S);const E=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let C=w===b||!a&&w.startsWith(b)&&w.charAt(E)==="/",T=S!=null&&(S===b||!a&&S.startsWith(b)&&S.charAt(b.length)==="/"),A={isActive:C,isPending:T,isTransitioning:_},F=C?r:void 0,k;typeof o=="function"?k=o(A):k=[o,C?"active":null,T?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let I=typeof s=="function"?s(A):s;return M.createElement(At,Uv({},d,{"aria-current":F,className:k,ref:n,style:I,to:c,viewTransition:l}),typeof f=="function"?f(A):f)});var mx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mx||(mx={}));var Hj;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hj||(Hj={}));function AG(e){let t=M.useContext(qy);return t||Vt(!1),t}function kG(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,c=yo(),l=gr(),f=Yy(e,{relative:a});return M.useCallback(d=>{if(wG(d,n)){d.preventDefault();let p=r!==void 0?r:Dv(l)===Dv(f);c(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[l,c,f,r,i,n,e,o,a,s])}function NG(e,t){t===void 0&&(t={});let n=M.useContext(CG);n==null&&Vt(!1);let{basename:r}=AG(mx.useViewTransitionState),i=Yy(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Wc(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Wc(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Fv(i.pathname,a)!=null||Fv(i.pathname,o)!=null}const MG="shlink-web-client",LG="A React-based progressive web application for shlink",RG="/shlink-web-client/dependabot/npm_and_yarn/vitest-704a82ba63",$G="https://github.com/shlinkio/shlink-web-client",IG="MIT",DG="module",FG={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint src test config/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"},BG={"@fortawesome/fontawesome-free":"^6.6.0","@fortawesome/fontawesome-svg-core":"^6.6.0","@fortawesome/free-brands-svg-icons":"^6.6.0","@fortawesome/free-regular-svg-icons":"^6.6.0","@fortawesome/free-solid-svg-icons":"^6.6.0","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.2.8","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.5.2","@shlinkio/shlink-js-sdk":"^1.2.0","@shlinkio/shlink-web-component":"^0.8.1",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.1","compare-versions":"^6.1.1",csvtojson:"^2.0.10","date-fns":"^4.1.0",react:"^18.3.1","react-dom":"^18.3.1","react-external-link":"^2.3.1","react-redux":"^9.1.2","react-router-dom":"^6.27.0",reactstrap:"^9.2.3","redux-localstorage-simple":"^2.5.1",uuid:"^10.0.0","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"},UG={"@shlinkio/eslint-config-js-coding-standard":"~3.2.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^2.9.0","@testing-library/jest-dom":"^6.5.0","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.3.11","@types/react-dom":"^18.3.1","@types/uuid":"^10.0.0","@vitejs/plugin-react":"^4.3.2","@vitest/coverage-v8":"^2.1.3","adm-zip":"^0.5.16","axe-core":"^4.10.0",chalk:"^5.3.0",eslint:"^9.12.0","eslint-plugin-jsx-a11y":"^6.10.0","eslint-plugin-react":"^7.37.1","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-simple-import-sort":"^12.1.1",history:"^5.3.0",jsdom:"^25.0.1",sass:"^1.79.5",stylelint:"^15.11.0",typescript:"^5.6.3","typescript-eslint":"^8.8.1",vite:"^5.4.8","vite-plugin-pwa":"^0.20.5",vitest:"^2.0.2"},zG=[">0.2%","not dead","not ie <= 11","not op_mini all"],zv={name:MG,description:LG,private:!1,homepage:RG,repository:$G,license:IG,type:DG,scripts:FG,dependencies:BG,devDependencies:UG,browserslist:zG};var Ri,fo=".",p6="function",m6="string",v6="__global__",qS="Provider",VG=0,KS=Array.prototype.slice,WG=function(t,n){var r=t[n];if(r===void 0&&Ri.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Xy=function(t){var n;return this.nested[t]||(n=Ri.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},g6=function(t){return t.split(fo).reduce(WG,this)},HG=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,c=function(f){if(f)throw f;t[s]&&t[s++](r,c)};return c(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},GG=function(t,n){var r,i;return typeof t===p6&&(n=t,t=v6),r=t.split(fo),i=r.shift(),r.length?Xy.call(this,i).middleware(r.join(fo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},qG=function(t,n){return n(t)},Gj=function(t,n){return(t[n]||[]).concat(t.__global__||[])},KG=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+qS,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var l=new n;return delete o[r],o[r]=l,l}},i[t]={configurable:!0,enumerable:!0,get:function(){var l=o[r],f;return l&&(f=Gj(a,t).reduce(qG,l.$get(o)),delete o[r],delete o[t]),f===void 0?f:HG(Gj(s,t),t,f,o)}},Object.defineProperties(o,i),this},y6=function(t,n){var r,i;return r=t.split(fo),this.providerMap[t]&&r.length===1&&!this.container[t+qS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Xy.call(this,i).provider(r.join(fo),n),this):KG.call(this,i,n))},YS=function(t,n){return y6.call(this,t,function(){this.$get=n})},b6=function(t,n,r){var i=arguments.length>3?KS.call(arguments,3):[],o=this;return YS.call(this,t,function(){var s=n,c=i.map(g6,o.container);return r?new(n.bind.apply(n,[null].concat(c))):s.apply(null,c)})},YG=function(t,n){return b6.apply(this,[t,n,!0].concat(KS.call(arguments,2)))},ZG=function(t,n){return b6.apply(this,[t,n,!1].concat(KS.call(arguments,2)))},_6=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},x6=function(t,n){var r=t[n];return r||(r={},_6.call(t,n,r)),r},XG=function(t,n){var r;return r=t.split(fo),t=r.pop(),_6.call(r.reduce(x6,this.container),t,n),this},QG=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},JG=function(t,n){var r=t.split(fo);return t=r.pop(),QG.call(r.reduce(x6,this.container),t,n),this},w6=function(t,n){var r,i;return typeof t===p6&&(n=t,t=v6),r=t.split(fo),i=r.shift(),r.length?Xy.call(this,i).decorator(r.join(fo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},eq=function(t){return this.deferred.push(t),this},tq=function(t){return(t||[]).map(g6,this.container)},nq=function(t,n){return YS.call(this,t,function(i){return{instance:n.bind(n,i)}})},rq=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},ZS=function(t){return Object.keys(t||this.container||{}).filter(rq)},Vv={},iq=function(t){var n;return typeof t===m6?(n=Vv[t],n||(Vv[t]=n=new Ri,n.constant("BOTTLE_NAME",t)),n):new Ri},oq=function(t){typeof t===m6?delete Vv[t]:Vv={}},O6=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},qj=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+qS]},aq=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(fo);a.length>1&&a.forEach(qj,Xy.call(this,a[0])),qj.call(this,o),this.provider(o,n[o])}},this)},sq=function(t){return this.deferred.forEach(function(r){r(t)}),this};Ri=function e(t){if(!(this instanceof e))return e.pop(t);this.id=VG++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:w6.bind(this),$register:O6.bind(this),$list:ZS.bind(this)}};Ri.prototype={constant:JG,decorator:w6,defer:eq,digest:tq,factory:YS,instanceFactory:nq,list:ZS,middleware:GG,provider:y6,resetProviders:aq,register:O6,resolve:sq,service:YG,serviceFactory:ZG,value:XG};Ri.pop=iq;Ri.clear=oq;Ri.list=ZS;Ri.config={strict:!1};const S6=Ri;var lq=Object.defineProperty,cq=(e,t,n)=>t in e?lq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uq=(e,t,n)=>cq(e,t+"",n);const fq=(e,t)=>`${e}/rest/v${t}`,dq=e=>e.dir?`${e.field}-${e.dir}`:void 0,hq=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:dq(e)}),pq=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},mq=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};class vq{constructor(t,n){uq(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:hq(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=mq(r),s=a?`?${a}`:"",c=o?pq(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${fq(c,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const E6=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),ld=e=>!!(e!=null&&e.id),XS=e=>!!(e!=null&&e.version),gq=e=>!!(e!=null&&e.serverNotFound),yq=e=>ld(e)?e.id:"",bq=({name:e,url:t,apiKey:n})=>({name:e,url:t,apiKey:n}),Kj={},_q=e=>typeof e=="function",xq=e=>{const{selectedServer:t}=e();if(!E6(t))throw new Error("There's no selected server or it is not found");return t},wq=e=>t=>{const{url:n,apiKey:r}=_q(t)?xq(t):t,i=`${r}_${n}`,o=Kj[i]??new vq(e,{apiKey:r,baseUrl:n});return Kj[i]=o,o},Oq=e=>{e.serviceFactory("buildShlinkApiClient",wq,"HttpClient")},Sq={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},Eq={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},Cq={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},Pq=Cq,Tq={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},QS=Tq,jq={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},Aq={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},C6=Aq,P6={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},kq={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},T6={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},Nq={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"]},Mq=Nq,Lq={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},JS=Lq,Rq={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},$q={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},Iq={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"]},Yj={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Dq={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},Fq=Dq,Bq={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},vx=Bq,Uq={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},zq={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Vq={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"]},Wq=Vq,eE={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},Qy={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},j6={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Zj={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},Hq={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},Gq={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"]},qq={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},Kq=qq,Yq={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Zq={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},tE=Zq,A6={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},Xq=A6,Qq={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"]},Jq={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"]},eK={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"]},tK=eK,nK={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},rK=nK,iK={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},oK=iK,aK={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},k6=aK,sK={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"]},lK={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"]},cK={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"]},uK={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"]},fK=uK,dK={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"]},hK={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},ep={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},N6={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"]},gx=N6,pK={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"]},mK={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"]},vK=mK,Xj={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},M6={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},gK=M6,yK={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},bK={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"]},_K={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},xK={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},wK={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},Gd={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"]},OK={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M246.6 150.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L352 109.3 352 384c0 35.3 28.7 64 64 64l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64l-114.7 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L109.3 256 224 256c23.3 0 45.2 6.2 64 17.1l0-163.9-41.4 41.4z"]},SK={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},EK=SK,Qj=()=>{};let nE={},L6={},R6=null,$6={mark:Qj,measure:Qj};try{typeof window<"u"&&(nE=window),typeof document<"u"&&(L6=document),typeof MutationObserver<"u"&&(R6=MutationObserver),typeof performance<"u"&&($6=performance)}catch{}const{userAgent:Jj=""}=nE.navigator||{},Ya=nE,jt=L6,eA=R6,pm=$6;Ya.document;const ta=!!jt.documentElement&&!!jt.head&&typeof jt.addEventListener=="function"&&typeof jt.createElement=="function",I6=~Jj.indexOf("MSIE")||~Jj.indexOf("Trident/");var Lt="classic",D6="duotone",Ar="sharp",kr="sharp-duotone",CK=[Lt,D6,Ar,kr],PK={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},tA={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},TK=["kit"],jK=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,AK=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,kK={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},NK={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},MK={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},LK={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},RK={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},$K={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},F6={classic:{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"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},IK=["solid","regular","light","thin","duotone","brands"],B6=[1,2,3,4,5,6,7,8,9,10],DK=B6.concat([11,12,13,14,15,16,17,18,19,20]),Vf={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},FK=[...Object.keys(LK),...IK,"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",Vf.GROUP,Vf.SWAP_OPACITY,Vf.PRIMARY,Vf.SECONDARY].concat(B6.map(e=>"".concat(e,"x"))).concat(DK.map(e=>"w-".concat(e))),BK={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},UK={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},zK={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},nA={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const zo="___FONT_AWESOME___",yx=16,U6="fa",z6="svg-inline--fa",cl="data-fa-i2svg",bx="data-fa-pseudo-element",VK="data-fa-pseudo-element-pending",rE="data-prefix",iE="data-icon",rA="fontawesome-i2svg",WK="async",HK=["HTML","HEAD","STYLE","SCRIPT"],V6=(()=>{try{return!0}catch{return!1}})(),W6=[Lt,Ar,kr];function tp(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[Lt]}})}const H6={...F6};H6[Lt]={...F6[Lt],...tA.kit,...tA["kit-duotone"]};const Xs=tp(H6),_x={...$K};_x[Lt]={..._x[Lt],...nA.kit,...nA["kit-duotone"]};const qd=tp(_x),xx={...RK};xx[Lt]={...xx[Lt],...zK.kit};const Qs=tp(xx),wx={...MK};wx[Lt]={...wx[Lt],...UK.kit};const GK=tp(wx),qK=jK,G6="fa-layers-text",KK=AK,YK={...PK};tp(YK);const ZK=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],p1=Vf,Hc=new Set;Object.keys(qd[Lt]).map(Hc.add.bind(Hc));Object.keys(qd[Ar]).map(Hc.add.bind(Hc));Object.keys(qd[kr]).map(Hc.add.bind(Hc));const XK=[...TK,...FK],cd=Ya.FontAwesomeConfig||{};function QK(e){var t=jt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function JK(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}jt&&typeof jt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=JK(QK(n));i!=null&&(cd[r]=i)});const q6={styleDefault:"solid",familyDefault:"classic",cssPrefix:U6,replacementClass:z6,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};cd.familyPrefix&&(cd.cssPrefix=cd.familyPrefix);const Gc={...q6,...cd};Gc.autoReplaceSvg||(Gc.observeMutations=!1);const Ie={};Object.keys(q6).forEach(e=>{Object.defineProperty(Ie,e,{enumerable:!0,set:function(t){Gc[e]=t,ud.forEach(n=>n(Ie))},get:function(){return Gc[e]}})});Object.defineProperty(Ie,"familyPrefix",{enumerable:!0,set:function(e){Gc.cssPrefix=e,ud.forEach(t=>t(Ie))},get:function(){return Gc.cssPrefix}});Ya.FontAwesomeConfig=Ie;const ud=[];function eY(e){return ud.push(e),()=>{ud.splice(ud.indexOf(e),1)}}const ua=yx,eo={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tY(e){if(!e||!ta)return;const t=jt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=jt.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return jt.head.insertBefore(t,r),e}const nY="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Kd(){let e=12,t="";for(;e-- >0;)t+=nY[Math.random()*62|0];return t}function Tu(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function oE(e){return e.classList?Tu(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function K6(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function rY(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(K6(e[n]),'" '),"").trim()}function Jy(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function aE(e){return e.size!==eo.size||e.x!==eo.x||e.y!==eo.y||e.rotate!==eo.rotate||e.flipX||e.flipY}function iY(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const 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)"),c={transform:"".concat(o," ").concat(a," ").concat(s)},l={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:l}}function oY(e){let{transform:t,width:n=yx,height:r=yx,startCentered:i=!1}=e,o="";return i&&I6?o+="translate(".concat(t.x/ua-n/2,"em, ").concat(t.y/ua-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/ua,"em), calc(-50% + ").concat(t.y/ua,"em)) "):o+="translate(".concat(t.x/ua,"em, ").concat(t.y/ua,"em) "),o+="scale(".concat(t.size/ua*(t.flipX?-1:1),", ").concat(t.size/ua*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var aY=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
transform: scale(var(--fa-counter-scale, 0.25));
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
animation-name: fa-beat;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
animation-name: fa-bounce;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
animation-name: fa-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
animation-name: fa-beat-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
animation-name: fa-flip;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
animation-name: fa-shake;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
animation-name: fa-spin;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 2s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
animation-name: fa-spin;
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, steps(8));
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
animation-delay: -1ms;
animation-duration: 1ms;
animation-iteration-count: 1;
transition-delay: 0s;
transition-duration: 0s;
}
}
@keyframes fa-beat {
0%, 90% {
transform: scale(1);
}
45% {
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-bounce {
0% {
transform: scale(1, 1) translateY(0);
}
10% {
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
transform: scale(1, 1) translateY(0);
}
100% {
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-flip {
50% {
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-shake {
0% {
transform: rotate(-15deg);
}
4% {
transform: rotate(15deg);
}
8%, 24% {
transform: rotate(-18deg);
}
12%, 28% {
transform: rotate(18deg);
}
16% {
transform: rotate(-22deg);
}
20% {
transform: rotate(22deg);
}
32% {
transform: rotate(-12deg);
}
36% {
transform: rotate(12deg);
}
40%, 100% {
transform: rotate(0deg);
}
}
@keyframes fa-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.fa-rotate-90 {
transform: rotate(90deg);
}
.fa-rotate-180 {
transform: rotate(180deg);
}
.fa-rotate-270 {
transform: rotate(270deg);
}
.fa-flip-horizontal {
transform: scale(-1, 1);
}
.fa-flip-vertical {
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
transform: scale(-1, -1);
}
.fa-rotate-by {
transform: rotate(var(--fa-rotate-angle, 0));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.fad.fa-inverse,
.fa-duotone.fa-inverse {
color: var(--fa-inverse, #fff);
}`;function Y6(){const e=U6,t=z6,n=Ie.cssPrefix,r=Ie.replacementClass;let i=aY;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let iA=!1;function m1(){Ie.autoAddCss&&!iA&&(tY(Y6()),iA=!0)}var sY={mixout(){return{dom:{css:Y6,insertCss:m1}}},hooks(){return{beforeDOMElementCreation(){m1()},beforeI2svg(){m1()}}}};const Vo=Ya||{};Vo[zo]||(Vo[zo]={});Vo[zo].styles||(Vo[zo].styles={});Vo[zo].hooks||(Vo[zo].hooks={});Vo[zo].shims||(Vo[zo].shims=[]);var to=Vo[zo];const Z6=[],X6=function(){jt.removeEventListener("DOMContentLoaded",X6),Wv=1,Z6.map(e=>e())};let Wv=!1;ta&&(Wv=(jt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(jt.readyState),Wv||jt.addEventListener("DOMContentLoaded",X6));function lY(e){ta&&(Wv?setTimeout(e,0):Z6.push(e))}function np(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?K6(e):"<".concat(t," ").concat(rY(n),">").concat(r.map(np).join(""),"</").concat(t,">")}function oA(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var v1=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=n,c,l,f;for(r===void 0?(c=1,f=t[o[0]]):(c=0,f=r);c<a;c++)l=o[c],f=s(f,t[l],l,t);return f};function cY(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const 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 Ox(e){const t=cY(e);return t.length===1?t[0].toString(16):null}function uY(e,t){const n=e.length;let 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 aA(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Sx(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=aA(t);typeof to.hooks.addPack=="function"&&!r?to.hooks.addPack(e,aA(t)):to.styles[e]={...to.styles[e]||{},...i},e==="fas"&&Sx("fa",t)}const{styles:Is,shims:fY}=to,dY={[Lt]:Object.values(Qs[Lt]),[Ar]:Object.values(Qs[Ar]),[kr]:Object.values(Qs[kr])};let sE=null,Q6={},J6={},eI={},tI={},nI={};const hY={[Lt]:Object.keys(Xs[Lt]),[Ar]:Object.keys(Xs[Ar]),[kr]:Object.keys(Xs[kr])};function pY(e){return~XK.indexOf(e)}function mY(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!pY(i)?i:null}const rI=()=>{const e=r=>v1(Is,(i,o,a)=>(i[a]=v1(o,r,{}),i),{});Q6=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=o}),r)),J6=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=o}),r)),nI=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(s=>{r[s]=o}),r});const t="far"in Is||Ie.autoFetchSvg,n=v1(fY,(r,i)=>{const o=i[0];let a=i[1];const s=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:s}),r},{names:{},unicodes:{}});eI=n.names,tI=n.unicodes,sE=e0(Ie.styleDefault,{family:Ie.familyDefault})};eY(e=>{sE=e0(e.styleDefault,{family:Ie.familyDefault})});rI();function lE(e,t){return(Q6[e]||{})[t]}function vY(e,t){return(J6[e]||{})[t]}function Ta(e,t){return(nI[e]||{})[t]}function iI(e){return eI[e]||{prefix:null,iconName:null}}function gY(e){const t=tI[e],n=lE("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Za(){return sE}const cE=()=>({prefix:null,iconName:null,rest:[]});function e0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=Lt}=t,r=Xs[n][e],i=qd[n][e]||qd[n][r],o=e in to.styles?e:null;return i||o||null}const yY={[Lt]:Object.keys(Qs[Lt]),[Ar]:Object.keys(Qs[Ar]),[kr]:Object.keys(Qs[kr])};function t0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[Lt]:"".concat(Ie.cssPrefix,"-").concat(Lt),[Ar]:"".concat(Ie.cssPrefix,"-").concat(Ar),[kr]:"".concat(Ie.cssPrefix,"-").concat(kr)};let i=null,o=Lt;const a=CK.filter(c=>c!==D6);a.forEach(c=>{(e.includes(r[c])||e.some(l=>yY[c].includes(l)))&&(o=c)});const s=e.reduce((c,l)=>{const f=mY(Ie.cssPrefix,l);if(Is[l]?(l=dY[o].includes(l)?GK[o][l]:l,i=l,c.prefix=l):hY[o].indexOf(l)>-1?(i=l,c.prefix=e0(l,{family:o})):f?c.iconName=f:l!==Ie.replacementClass&&!a.some(d=>l===r[d])&&c.rest.push(l),!n&&c.prefix&&c.iconName){const d=i==="fa"?iI(c.iconName):{},p=Ta(c.prefix,c.iconName);d.prefix&&(i=null),c.iconName=d.iconName||p||c.iconName,c.prefix=d.prefix||c.prefix,c.prefix==="far"&&!Is.far&&Is.fas&&!Ie.autoFetchSvg&&(c.prefix="fas")}return c},cE());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&o===Ar&&(Is.fass||Ie.autoFetchSvg)&&(s.prefix="fass",s.iconName=Ta(s.prefix,s.iconName)||s.iconName),!s.prefix&&o===kr&&(Is.fasds||Ie.autoFetchSvg)&&(s.prefix="fasds",s.iconName=Ta(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||i==="fa")&&(s.prefix=Za()||"fas"),s}class bY{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]={...this.definitions[o]||{},...i[o]},Sx(o,i[o]);const a=Qs[Lt][o];a&&Sx(a,i[o]),rI()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:s}=r[i],c=s[2];t[o]||(t[o]={}),c.length>0&&c.forEach(l=>{typeof l=="string"&&(t[o][l]=s)}),t[o][a]=s}),t}}let sA=[],yc={};const Nc={},_Y=Object.keys(Nc);function xY(e,t){let{mixoutsTo:n}=t;return sA=e,yc={},Object.keys(Nc).forEach(r=>{_Y.indexOf(r)===-1&&delete Nc[r]}),sA.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{yc[a]||(yc[a]=[]),yc[a].push(o[a])})}r.provides&&r.provides(Nc)}),n}function Ex(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];return(yc[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function ul(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(yc[e]||[]).forEach(o=>{o.apply(null,n)})}function Xa(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Nc[e]?Nc[e].apply(null,t):void 0}function Cx(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Za();if(t)return t=Ta(n,t)||t,oA(oI.definitions,n,t)||oA(to.styles,n,t)}const oI=new bY,wY=()=>{Ie.autoReplaceSvg=!1,Ie.observeMutations=!1,ul("noAuto")},OY={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ta?(ul("beforeI2svg",e),Xa("pseudoElements2svg",e),Xa("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;Ie.autoReplaceSvg===!1&&(Ie.autoReplaceSvg=!0),Ie.observeMutations=!0,lY(()=>{EY({autoReplaceSvgRoot:t}),ul("watch",e)})}},SY={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ta(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=e0(e[0]);return{prefix:n,iconName:Ta(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(Ie.cssPrefix,"-"))>-1||e.match(qK))){const t=t0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Za(),iconName:Ta(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Za();return{prefix:t,iconName:Ta(t,e)||e}}}},Fr={noAuto:wY,config:Ie,dom:OY,parse:SY,library:oI,findIconDefinition:Cx,toHtml:np},EY=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=jt}=e;(Object.keys(to.styles).length>0||Ie.autoFetchSvg)&&ta&&Ie.autoReplaceSvg&&Fr.dom.i2svg({node:t})};function n0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>np(n))}}),Object.defineProperty(e,"node",{get:function(){if(!ta)return;const n=jt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function CY(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(aE(a)&&n.found&&!r.found){const{width:s,height:c}=n,l={x:s/c/2,y:.5};i.style=Jy({...o,"transform-origin":"".concat(l.x+a.x/16,"em ").concat(l.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}function PY(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(Ie.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:a},children:r}]}]}function uE(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:c,titleId:l,extra:f,watchable:d=!1}=e,{width:p,height:v}=n.found?n:t,y=r==="fak",g=[Ie.replacementClass,i?"".concat(Ie.cssPrefix,"-").concat(i):""].filter(E=>f.classes.indexOf(E)===-1).filter(E=>E!==""||!!E).concat(f.classes).join(" ");let x={children:[],attributes:{...f.attributes,"data-prefix":r,"data-icon":i,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(v)}};const _=y&&!~f.classes.indexOf("fa-fw")?{width:"".concat(p/v*16*.0625,"em")}:{};d&&(x.attributes[cl]=""),s&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(l||Kd())},children:[s]}),delete x.attributes.title);const b={...x,prefix:r,iconName:i,main:t,mask:n,maskId:c,transform:o,symbol:a,styles:{..._,...f.styles}},{children:w,attributes:S}=n.found&&t.found?Xa("generateAbstractMask",b)||{children:[],attributes:{}}:Xa("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=w,b.attributes=S,a?PY(b):CY(b)}function lA(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,c={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(c[cl]="");const l={...a.styles};aE(i)&&(l.transform=oY({transform:i,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);const f=Jy(l);f.length>0&&(c.style=f);const d=[];return d.push({tag:"span",attributes:c,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}function TY(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=Jy(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:g1}=to;function Px(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(p1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(p1.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(p1.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const jY={found:!1,width:512,height:512};function AY(e,t){!V6&&!Ie.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Tx(e,t){let n=t;return t==="fa"&&Ie.styleDefault!==null&&(t=Za()),new Promise((r,i)=>{if(n==="fa"){const o=iI(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&g1[t]&&g1[t][e]){const o=g1[t][e];return r(Px(o))}AY(e,t),r({...jY,icon:Ie.showMissingIcons&&e?Xa("missingIconAbstract")||{}:{}})})}const cA=()=>{},jx=Ie.measurePerformance&&pm&&pm.mark&&pm.measure?pm:{mark:cA,measure:cA},Wf='FA "6.6.0"',kY=e=>(jx.mark("".concat(Wf," ").concat(e," begins")),()=>aI(e)),aI=e=>{jx.mark("".concat(Wf," ").concat(e," ends")),jx.measure("".concat(Wf," ").concat(e),"".concat(Wf," ").concat(e," begins"),"".concat(Wf," ").concat(e," ends"))};var fE={begin:kY,end:aI};const tv=()=>{};function uA(e){return typeof(e.getAttribute?e.getAttribute(cl):null)=="string"}function NY(e){const t=e.getAttribute?e.getAttribute(rE):null,n=e.getAttribute?e.getAttribute(iE):null;return t&&n}function MY(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ie.replacementClass)}function LY(){return Ie.autoReplaceSvg===!0?nv.replace:nv[Ie.autoReplaceSvg]||nv.replace}function RY(e){return jt.createElementNS("http://www.w3.org/2000/svg",e)}function $Y(e){return jt.createElement(e)}function sI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?RY:$Y}=t;if(typeof e=="string")return jt.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(sI(o,{ceFn:n}))}),r}function IY(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const nv={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(sI(n),t)}),t.getAttribute(cl)===null&&Ie.keepOriginalSource){let n=jt.createComment(IY(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~oE(t).indexOf(Ie.replacementClass))return nv.replace(e);const r=new RegExp("".concat(Ie.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,s)=>(s===Ie.replacementClass||s.match(r)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>np(o)).join(`
`);t.setAttribute(cl,""),t.innerHTML=i}};function fA(e){e()}function lI(e,t){const n=typeof t=="function"?t:tv;if(e.length===0)n();else{let r=fA;Ie.mutateApproach===WK&&(r=Ya.requestAnimationFrame||fA),r(()=>{const i=LY(),o=fE.begin("mutate");e.map(i),o(),n()})}}let dE=!1;function cI(){dE=!0}function Ax(){dE=!1}let Hv=null;function dA(e){if(!eA||!Ie.observeMutations)return;const{treeCallback:t=tv,nodeCallback:n=tv,pseudoElementsCallback:r=tv,observeMutationsRoot:i=jt}=e;Hv=new eA(o=>{if(dE)return;const a=Za();Tu(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!uA(s.addedNodes[0])&&(Ie.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&Ie.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&uA(s.target)&&~ZK.indexOf(s.attributeName))if(s.attributeName==="class"&&NY(s.target)){const{prefix:c,iconName:l}=t0(oE(s.target));s.target.setAttribute(rE,c||a),l&&s.target.setAttribute(iE,l)}else MY(s.target)&&n(s.target)})}),ta&&Hv.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function DY(){Hv&&Hv.disconnect()}function FY(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function BY(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=t0(oE(e));return i.prefix||(i.prefix=Za()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=vY(i.prefix,e.innerText)||lE(i.prefix,Ox(e.innerText))),!i.iconName&&Ie.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function UY(e){const t=Tu(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ie.autoA11y&&(n?t["aria-labelledby"]="".concat(Ie.replacementClass,"-title-").concat(r||Kd()):(t["aria-hidden"]="true",t.focusable="false")),t}function zY(){return{iconName:null,title:null,titleId:null,prefix:null,transform:eo,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function hA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=BY(e),o=UY(e),a=Ex("parseNodeAttributes",{},e);let s=t.styleParser?FY(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:eo,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:VY}=to;function uI(e){const t=Ie.autoReplaceSvg==="nest"?hA(e,{styleParser:!1}):hA(e);return~t.extra.classes.indexOf(G6)?Xa("generateLayersText",e,t):Xa("generateSvgReplacementMutation",e,t)}let ho=new Set;W6.map(e=>{ho.add("fa-".concat(e))});Object.keys(Xs[Lt]).map(ho.add.bind(ho));Object.keys(Xs[Ar]).map(ho.add.bind(ho));Object.keys(Xs[kr]).map(ho.add.bind(ho));ho=[...ho];function pA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ta)return Promise.resolve();const n=jt.documentElement.classList,r=f=>n.add("".concat(rA,"-").concat(f)),i=f=>n.remove("".concat(rA,"-").concat(f)),o=Ie.autoFetchSvg?ho:W6.map(f=>"fa-".concat(f)).concat(Object.keys(VY));o.includes("fa")||o.push("fa");const a=[".".concat(G6,":not([").concat(cl,"])")].concat(o.map(f=>".".concat(f,":not([").concat(cl,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=Tu(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();const c=fE.begin("onTree"),l=s.reduce((f,d)=>{try{const p=uI(d);p&&f.push(p)}catch(p){V6||p.name==="MissingIcon"&&console.error(p)}return f},[]);return new Promise((f,d)=>{Promise.all(l).then(p=>{lI(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),f()})}).catch(p=>{c(),d(p)})})}function WY(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;uI(e).then(n=>{n&&lI([n],t)})}function HY(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Cx(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Cx(i||{})),e(r,{...n,mask:i})}}const GY=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=eo,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:c=[],attributes:l={},styles:f={}}=t;if(!e)return;const{prefix:d,iconName:p,icon:v}=e;return n0({type:"icon",...e},()=>(ul("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ie.autoA11y&&(a?l["aria-labelledby"]="".concat(Ie.replacementClass,"-title-").concat(s||Kd()):(l["aria-hidden"]="true",l.focusable="false")),uE({icons:{main:Px(v),mask:i?Px(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:p,transform:{...eo,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:l,styles:f,classes:c}})))};var qY={mixout(){return{icon:HY(GY)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=pA,e.nodeCallback=WY,e}}},provides(e){e.i2svg=function(t){const{node:n=jt,callback:r=()=>{}}=t;return pA(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:s,symbol:c,mask:l,maskId:f,extra:d}=n;return new Promise((p,v)=>{Promise.all([Tx(r,a),l.iconName?Tx(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(y=>{let[g,x]=y;p([t,uE({icons:{main:g,mask:x},prefix:a,iconName:r,transform:s,symbol:c,maskId:f,title:i,titleId:o,extra:d,watchable:!0})])}).catch(v)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const s=Jy(a);s.length>0&&(r.style=s);let c;return aE(o)&&(c=Xa("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(c||i.icon),{children:n,attributes:r}}}},KY={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return n0({type:"layer"},()=>{ul("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(Ie.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},YY={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return n0({type:"counter",content:e},()=>(ul("beforeDOMElementCreation",{content:e,params:t}),TY({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(Ie.cssPrefix,"-layers-counter"),...r]}})))}}}},ZY={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=eo,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return n0({type:"text",content:e},()=>(ul("beforeDOMElementCreation",{content:e,params:t}),lA({content:e,transform:{...eo,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(Ie.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,s=null;if(I6){const c=parseInt(getComputedStyle(t).fontSize,10),l=t.getBoundingClientRect();a=l.width/c,s=l.height/c}return Ie.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,lA({content:t.innerHTML,width:a,height:s,transform:i,title:r,extra:o,watchable:!0})])}}};const XY=new RegExp('"',"ug"),mA=[1105920,1112319],vA={FontAwesome:{normal:"fas",400:"fas"},...NK,...kK,...BK},kx=Object.keys(vA).reduce((e,t)=>(e[t.toLowerCase()]=vA[t],e),{}),QY=Object.keys(kx).reduce((e,t)=>{const n=kx[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function JY(e){const t=e.replace(XY,""),n=uY(t,0),r=n>=mA[0]&&n<=mA[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ox(i?t[0]:t),isSecondary:r||i}}function eZ(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(kx[n]||{})[i]||QY[n]}function gA(e,t){const n="".concat(VK).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Tu(e.children).filter(p=>p.getAttribute(bx)===t)[0],s=Ya.getComputedStyle(e,t),c=s.getPropertyValue("font-family"),l=c.match(KK),f=s.getPropertyValue("font-weight"),d=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&d!=="none"&&d!==""){const p=s.getPropertyValue("content");let v=eZ(c,f);const{value:y,isSecondary:g}=JY(p),x=l[0].startsWith("FontAwesome");let _=lE(v,y),b=_;if(x){const w=gY(y);w.iconName&&w.prefix&&(_=w.iconName,v=w.prefix)}if(_&&!g&&(!a||a.getAttribute(rE)!==v||a.getAttribute(iE)!==b)){e.setAttribute(n,b),a&&e.removeChild(a);const w=zY(),{extra:S}=w;S.attributes[bx]=t,Tx(_,v).then(E=>{const C=uE({...w,icons:{main:E,mask:cE()},prefix:v,iconName:b,extra:S,watchable:!0}),T=jt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(T,e.firstChild):e.appendChild(T),T.outerHTML=C.map(A=>np(A)).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function tZ(e){return Promise.all([gA(e,"::before"),gA(e,"::after")])}function nZ(e){return e.parentNode!==document.head&&!~HK.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(bx)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function yA(e){if(ta)return new Promise((t,n)=>{const r=Tu(e.querySelectorAll("*")).filter(nZ).map(tZ),i=fE.begin("searchPseudoElements");cI(),Promise.all(r).then(()=>{i(),Ax(),t()}).catch(()=>{i(),Ax(),n()})})}var rZ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=yA,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=jt}=t;Ie.searchPseudoElements&&yA(n)}}};let bA=!1;var iZ={mixout(){return{dom:{unwatch(){cI(),bA=!0}}}},hooks(){return{bootstrap(){dA(Ex("mutationObserverCallbacks",{}))},noAuto(){DY()},watch(e){const{observeMutationsRoot:t}=e;bA?Ax():dA(Ex("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const _A=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var oZ={mixout(){return{parse:{transform:e=>_A(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=_A(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(s," ").concat(c," ").concat(l)},d={transform:"translate(".concat(o/2*-1," -256)")},p={outer:a,inner:f,path:d};return{tag:"g",attributes:{...p.outer},children:[{tag:"g",attributes:{...p.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...p.path}}]}]}}}};const y1={x:0,y:0,width:"100%",height:"100%"};function xA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aZ(e){return e.tag==="g"?e.children:[e]}var sZ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?t0(n.split(" ").map(i=>i.trim())):cE();return r.prefix||(r.prefix=Za()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:s}=t;const{width:c,icon:l}=i,{width:f,icon:d}=o,p=iY({transform:s,containerWidth:f,iconWidth:c}),v={tag:"rect",attributes:{...y1,fill:"white"}},y=l.children?{children:l.children.map(xA)}:{},g={tag:"g",attributes:{...p.inner},children:[xA({tag:l.tag,attributes:{...l.attributes,...p.path},...y})]},x={tag:"g",attributes:{...p.outer},children:[g]},_="mask-".concat(a||Kd()),b="clip-".concat(a||Kd()),w={tag:"mask",attributes:{...y1,id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[v,x]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:aZ(d)},w]};return n.push(S,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(_,")"),...y1}}),{children:n,attributes:r}}}},lZ={provides(e){let t=!1;Ya.matchMedia&&(t=Ya.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const o={...i,attributeName:"opacity"},a={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||a.children.push({tag:"animate",attributes:{...i,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...o,values:"1;0;1;1;0;1;"}}),n.push(a),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...o,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...r,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:{...o,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},cZ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},uZ=[sY,qY,KY,YY,ZY,rZ,iZ,oZ,sZ,lZ,cZ];xY(uZ,{mixoutsTo:Fr});Fr.noAuto;Fr.config;Fr.library;Fr.dom;const Nx=Fr.parse;Fr.findIconDefinition;Fr.toHtml;const fZ=Fr.icon;Fr.layer;Fr.text;Fr.counter;var fI={exports:{}},dZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hZ=dZ,pZ=hZ;function dI(){}function hI(){}hI.resetWarningCache=dI;var mZ=function(){function e(r,i,o,a,s,c){if(c!==pZ){var l=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 l.name="Invariant Violation",l}}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:hI,resetWarningCache:dI};return n.PropTypes=n,n};fI.exports=mZ();var vZ=fI.exports;const $=at(vZ);function wA(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 Qi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wA(Object(n),!0).forEach(function(r){bc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gv(e){"@babel/helpers - typeof";return Gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gv(e)}function bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gZ(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 yZ(e,t){if(e==null)return{};var n=gZ(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 Mx(e){return bZ(e)||_Z(e)||xZ(e)||wZ()}function bZ(e){if(Array.isArray(e))return Lx(e)}function _Z(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xZ(e,t){if(e){if(typeof e=="string")return Lx(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 Lx(e,t)}}function Lx(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 wZ(){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 OZ(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,c=e.spin,l=e.spinPulse,f=e.spinReverse,d=e.pulse,p=e.fixedWidth,v=e.inverse,y=e.border,g=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":c,"fa-spin-reverse":f,"fa-spin-pulse":l,"fa-pulse":d,"fa-fw":p,"fa-inverse":v,"fa-border":y,"fa-li":g,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},bc(t,"fa-".concat(_),typeof _<"u"&&_!==null),bc(t,"fa-rotate-".concat(b),typeof b<"u"&&b!==null&&b!==0),bc(t,"fa-pull-".concat(w),typeof w<"u"&&w!==null),bc(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 SZ(e){return e=e-0,e===e}function pI(e){return SZ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var EZ=["style"];function CZ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function PZ(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=pI(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[CZ(i)]=o:t[i]=o,t},{})}function mI(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(c){return mI(e,c)}),i=Object.keys(t.attributes||{}).reduce(function(c,l){var f=t.attributes[l];switch(l){case"class":c.attrs.className=f,delete t.attributes.class;break;case"style":c.attrs.style=PZ(f);break;default:l.indexOf("aria-")===0||l.indexOf("data-")===0?c.attrs[l.toLowerCase()]=f:c.attrs[pI(l)]=f}return c},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=yZ(n,EZ);return i.attrs.style=Qi(Qi({},i.attrs.style),a),e.apply(void 0,[t.tag,Qi(Qi({},i.attrs),s)].concat(Mx(r)))}var vI=!1;try{vI=!0}catch{}function TZ(){if(!vI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function OA(e){if(e&&Gv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Nx.icon)return Nx.icon(e);if(e===null)return null;if(e&&Gv(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 b1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?bc({},e,t):{}}var SA={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=Qi(Qi({},SA),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,c=n.titleId,l=n.maskId,f=OA(r),d=b1("classes",[].concat(Mx(OZ(n)),Mx((a||"").split(" ")))),p=b1("transform",typeof n.transform=="string"?Nx.transform(n.transform):n.transform),v=b1("mask",OA(i)),y=fZ(f,Qi(Qi(Qi(Qi({},d),p),v),{},{symbol:o,title:s,titleId:c,maskId:l}));if(!y)return TZ("Could not find icon",f),null;var g=y.abstract,x={ref:t};return Object.keys(n).forEach(function(_){SA.hasOwnProperty(_)||(x[_]=n[_])}),jZ(g[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 jZ=mI.bind(null,V.createElement);function gI(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=gI(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ee(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=gI(e))&&(r&&(r+=" "),r+=t);return r}var yI={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 c in o)t.call(o,c)&&o[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(yI);var AZ=yI.exports;const He=at(AZ);function EA(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 kZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(n),!0).forEach(function(r){NZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function MZ(){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 bI(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function LZ(){return document.body.clientWidth<window.innerWidth}function RZ(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function $Z(){var e=MZ(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;LZ()&&bI(n+e)}var IZ;function Be(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:IZ;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function as(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function _I(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 CA={};function Rx(e){CA[e]||(typeof console<"u"&&console.error(e),CA[e]=!0)}function xI(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&Rx('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];return e.apply(void 0,[r,i,o].concat(s))}}var DZ=(typeof window>"u"?"undefined":fl(window))==="object"&&window.Element||function(){};function hE(e,t,n){if(!(e[t]instanceof DZ))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var qc=$.oneOfType([$.string,$.func,hE,$.shape({current:$.any})]),it=$.oneOfType([$.func,$.string,$.shape({$$typeof:$.symbol,render:$.func}),$.arrayOf($.oneOfType([$.func,$.string,$.shape({$$typeof:$.symbol,render:$.func})]))]),qv={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Kv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],mm={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},ht={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},FZ=["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"],pE=!!(typeof window<"u"&&window.document&&window.document.createElement);function BZ(e){return e&&fl(e)==="object"?"current"in e:!1}function wI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function $x(e){var t=fl(e);return e!=null&&(t==="object"||t==="function")}function PA(e){var t=fl(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&wI(e)==="[object Symbol]")return n;if($x(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=$x(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 UZ(e){if(!$x(e))return!1;var t=wI(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function zZ(e){if(BZ(e))return e.current;if(UZ(e))return e();if(typeof e=="string"&&pE){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 TA(e){return e===null?!1:Array.isArray(e)||pE&&typeof e.length=="number"}function Yd(e,t){var n=zZ(e);return t?TA(n)?n:n===null?[]:[n]:TA(n)?n[0]:n}var VZ=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function mE(e,t){if(!e||!t)return t;var n=kZ({},t);return Object.keys(e).forEach(function(r){n[r]===void 0&&(n[r]=e[r]),Object.keys(e[r]||{}).length>0&&fl(e[r])==="object"&&mE(e[r],n)}),n}var WZ=["className","cssModule","noGutters","tag","widths"];function Ix(){return Ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ix.apply(this,arguments)}function HZ(e,t){if(e==null)return{};var n=GZ(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 GZ(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 qZ=["xs","sm","md","lg","xl","xxl"],Vl=$.oneOfType([$.number,$.string]),KZ={tag:it,noGutters:xI($.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:$.string,cssModule:$.object,xs:Vl,sm:Vl,md:Vl,lg:Vl,xl:Vl,xxl:Vl,widths:$.array};function Kn(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?qZ:a,c=HZ(e,WZ),l=[];s.forEach(function(d,p){var v=e[d];if(delete c[d],!!v){var y=!p;l.push(y?"row-cols-".concat(v):"row-cols-".concat(d,"-").concat(v))}});var f=Be(He(t,r?"gx-0":null,"row",l),n);return V.createElement(o,Ix({},c,{className:f}))}Kn.propTypes=KZ;var YZ=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function Dx(){return Dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dx.apply(this,arguments)}function _1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZZ(e,t){if(e==null)return{};var n=XZ(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 XZ(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 QZ={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:it},JZ=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function OI(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,c=e.fixed,l=e.sticky,f=e.color,d=e.container,p=d===void 0?"fluid":d,v=e.tag,y=v===void 0?"nav":v,g=e.children,x=ZZ(e,YZ),_=Be(He(i,"navbar",JZ(r),(t={"navbar-light":a,"navbar-dark":s},_1(t,"bg-".concat(f),f),_1(t,"fixed-".concat(c),c),_1(t,"sticky-".concat(l),l),t)),o),b=p&&p===!0?"container":"container-".concat(p);return V.createElement(y,Dx({},x,{className:_}),p?V.createElement("div",{className:b},g):g)}OI.propTypes=QZ;var eX=["className","cssModule","tag"];function Fx(){return Fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fx.apply(this,arguments)}function tX(e,t){if(e==null)return{};var n=nX(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 nX(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 rX={className:$.string,cssModule:$.object,tag:it};function SI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=tX(e,eX),a=Be(He(t,"navbar-brand"),n);return V.createElement(i,Fx({},o,{className:a}))}SI.propTypes=rX;var iX=["className","cssModule","children","tag"];function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bx.apply(this,arguments)}function jA(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?jA(Object(n),!0).forEach(function(r){aX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sX(e,t){if(e==null)return{};var n=lX(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 lX(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 cX={className:$.string,cssModule:$.object,tag:it,type:$.string,children:$.node};function EI(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=sX(e,iX),s=Be(He(t,"navbar-toggler"),n);return V.createElement(o,Bx({"aria-label":"Toggle navigation"},oX({type:"button"},a),{className:s}),r||V.createElement("span",{className:Be("navbar-toggler-icon",n)}))}EI.propTypes=cX;var uX=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function Ux(){return Ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ux.apply(this,arguments)}function fX(e,t){if(e==null)return{};var n=dX(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 dX(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 hX={card:$.bool,className:$.string,cssModule:$.object,fill:$.bool,horizontal:$.oneOf(["center","end"]),justified:$.bool,navbar:$.bool,pills:$.bool,tabs:$.bool,tag:it,vertical:$.oneOfType([$.bool,$.string])},pX=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function vE(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,c=e.justified,l=e.fill,f=e.navbar,d=e.card,p=e.tag,v=p===void 0?"ul":p,y=fX(e,uX),g=Be(He(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,pX(a),{"nav-tabs":r,"card-header-tabs":d&&r,"nav-pills":i,"card-header-pills":d&&i,"nav-justified":c,"nav-fill":l}),n);return V.createElement(v,Ux({},y,{className:g}))}vE.propTypes=hX;var mX=["className","cssModule","active","tag"];function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zx.apply(this,arguments)}function vX(e,t){if(e==null)return{};var n=gX(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 gX(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 yX={active:$.bool,className:$.string,cssModule:$.object,tag:it};function gE(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=vX(e,mX),s=Be(He(t,"nav-item",r?"active":!1),n);return V.createElement(o,zx({},a,{className:s}))}gE.propTypes=yX;function Vx(e){"@babel/helpers - typeof";return Vx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vx(e)}var bX=["className","cssModule","active","tag","innerRef"];function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wx.apply(this,arguments)}function _X(e,t){if(e==null)return{};var n=xX(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 xX(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 wX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OX(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 SX(e,t,n){return t&&OX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EX(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&&Hx(e,t)}function Hx(e,t){return Hx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Hx(e,t)}function CX(e){var t=TX();return function(){var r=Yv(e),i;if(t){var o=Yv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return PX(this,i)}}function PX(e,t){if(t&&(Vx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CI(e)}function CI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TX(){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 Yv(e){return Yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yv(e)}var jX={active:$.bool,className:$.string,cssModule:$.object,disabled:$.bool,href:$.any,innerRef:$.oneOfType([$.object,$.func,$.string]),onClick:$.func,tag:it},yE=function(e){EX(n,e);var t=CX(n);function n(r){var i;return wX(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(CI(i)),i}return SX(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,c=i.tag,l=c===void 0?"a":c,f=i.innerRef,d=_X(i,bX),p=Be(He(o,"nav-link",{disabled:d.disabled,active:s}),a);return V.createElement(l,Wx({},d,{ref:f,onClick:this.onClick,className:p}))}}]),n}(V.Component);yE.propTypes=jX;var AX=["className","cssModule","variant","innerRef"];function Gx(){return Gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gx.apply(this,arguments)}function AA(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 kX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AA(Object(n),!0).forEach(function(r){NX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MX(e,t){if(e==null)return{};var n=LX(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 LX(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 RX={active:$.bool,"aria-label":$.string,onClick:$.func,variant:$.oneOf(["white"]),className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func])};function PI(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=MX(e,AX),o=Be(He(t,"btn-close",n&&"btn-close-".concat(n)));return V.createElement("button",Gx({ref:r,type:"button",className:o},kX({"aria-label":"close"},i)))}PI.propTypes=RX;var $X=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function qx(){return qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qx.apply(this,arguments)}function IX(e,t){if(e==null)return{};var n=DX(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 DX(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 FX={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:it};function qe(e){var t=M.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,c=e.color,l=c===void 0?"secondary":c,f=e.outline,d=e.size,p=e.tag,v=p===void 0?"button":p,y=e.innerRef,g=IX(e,$X);if(a)return V.createElement(PI,g);var x="btn".concat(f?"-outline":"","-").concat(l),_=Be(He(o,"btn",x,d?"btn-".concat(d):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return g.href&&v==="button"&&(v="a"),V.createElement(v,qx({type:v==="button"&&g.onClick?"button":void 0},g,{className:_,ref:y,onClick:t,"aria-label":r}))}qe.propTypes=FX;var TI=M.createContext(),jI=M.createContext();function kA(e){var t=e.children,n=M.useState(null),r=n[0],i=n[1],o=M.useRef(!1);M.useEffect(function(){return function(){o.current=!0}},[]);var a=M.useCallback(function(s){o.current||i(s)},[]);return M.createElement(TI.Provider,{value:r},M.createElement(jI.Provider,{value:a},t))}var AI=function(t){return Array.isArray(t)?t[0]:t},kI=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)}},Kx=function(t,n){if(typeof t=="function")return kI(t,n);t!=null&&(t.current=n)},NA=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},MA=typeof window<"u"&&window.document&&window.document.createElement?M.useLayoutEffect:M.useEffect,pr="top",fi="bottom",di="right",mr="left",bE="auto",rp=[pr,fi,di,mr],Kc="start",Zd="end",BX="clippingParents",NI="viewport",Of="popper",UX="reference",LA=rp.reduce(function(e,t){return e.concat([t+"-"+Kc,t+"-"+Zd])},[]),MI=[].concat(rp,[bE]).reduce(function(e,t){return e.concat([t,t+"-"+Kc,t+"-"+Zd])},[]),zX="beforeRead",VX="read",WX="afterRead",HX="beforeMain",GX="main",qX="afterMain",KX="beforeWrite",YX="write",ZX="afterWrite",XX=[zX,VX,WX,HX,GX,qX,KX,YX,ZX];function po(e){return e?(e.nodeName||"").toLowerCase():null}function Lr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dl(e){var t=Lr(e).Element;return e instanceof t||e instanceof Element}function si(e){var t=Lr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _E(e){if(typeof ShadowRoot>"u")return!1;var t=Lr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function QX(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];!si(o)||!po(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 JX(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(c,l){return c[l]="",c},{});!si(i)||!po(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const eQ={name:"applyStyles",enabled:!0,phase:"write",fn:QX,effect:JX,requires:["computeStyles"]};function ao(e){return e.split("-")[0]}var Js=Math.max,Zv=Math.min,Yc=Math.round;function Yx(){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 LI(){return!/^((?!chrome|android).)*safari/i.test(Yx())}function Zc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&si(e)&&(i=e.offsetWidth>0&&Yc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Yc(r.height)/e.offsetHeight||1);var a=dl(e)?Lr(e):window,s=a.visualViewport,c=!LI()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,f=(r.top+(c&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:l+d,bottom:f+p,left:l,x:l,y:f}}function xE(e){var t=Zc(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 RI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_E(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wo(e){return Lr(e).getComputedStyle(e)}function tQ(e){return["table","td","th"].indexOf(po(e))>=0}function ss(e){return((dl(e)?e.ownerDocument:e.document)||window.document).documentElement}function r0(e){return po(e)==="html"?e:e.assignedSlot||e.parentNode||(_E(e)?e.host:null)||ss(e)}function RA(e){return!si(e)||Wo(e).position==="fixed"?null:e.offsetParent}function nQ(e){var t=/firefox/i.test(Yx()),n=/Trident/i.test(Yx());if(n&&si(e)){var r=Wo(e);if(r.position==="fixed")return null}var i=r0(e);for(_E(i)&&(i=i.host);si(i)&&["html","body"].indexOf(po(i))<0;){var o=Wo(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 ip(e){for(var t=Lr(e),n=RA(e);n&&tQ(n)&&Wo(n).position==="static";)n=RA(n);return n&&(po(n)==="html"||po(n)==="body"&&Wo(n).position==="static")?t:n||nQ(e)||t}function wE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fd(e,t,n){return Js(e,Zv(t,n))}function rQ(e,t,n){var r=fd(e,t,n);return r>n?n:r}function $I(){return{top:0,right:0,bottom:0,left:0}}function II(e){return Object.assign({},$I(),e)}function DI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var iQ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,II(typeof t!="number"?t:DI(t,rp))};function oQ(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ao(n.placement),c=wE(s),l=[mr,di].indexOf(s)>=0,f=l?"height":"width";if(!(!o||!a)){var d=iQ(i.padding,n),p=xE(o),v=c==="y"?pr:mr,y=c==="y"?fi:di,g=n.rects.reference[f]+n.rects.reference[c]-a[c]-n.rects.popper[f],x=a[c]-n.rects.reference[c],_=ip(o),b=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,w=g/2-x/2,S=d[v],E=b-p[f]-d[y],C=b/2-p[f]/2+w,T=fd(S,C,E),A=c;n.modifiersData[r]=(t={},t[A]=T,t.centerOffset=T-C,t)}}function aQ(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)||RI(t.elements.popper,i)&&(t.elements.arrow=i))}const sQ={name:"arrow",enabled:!0,phase:"main",fn:oQ,effect:aQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xc(e){return e.split("-")[1]}var lQ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cQ(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Yc(n*i)/i||0,y:Yc(r*i)/i||0}}function $A(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,v=p===void 0?0:p,y=a.y,g=y===void 0?0:y,x=typeof f=="function"?f({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var _=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=mr,S=pr,E=window;if(l){var C=ip(n),T="clientHeight",A="clientWidth";if(C===Lr(n)&&(C=ss(n),Wo(C).position!=="static"&&s==="absolute"&&(T="scrollHeight",A="scrollWidth")),C=C,i===pr||(i===mr||i===di)&&o===Zd){S=fi;var F=d&&C===E&&E.visualViewport?E.visualViewport.height:C[T];g-=F-r.height,g*=c?1:-1}if(i===mr||(i===pr||i===fi)&&o===Zd){w=di;var k=d&&C===E&&E.visualViewport?E.visualViewport.width:C[A];v-=k-r.width,v*=c?1:-1}}var I=Object.assign({position:s},l&&lQ),D=f===!0?cQ({x:v,y:g},Lr(n)):{x:v,y:g};if(v=D.x,g=D.y,c){var q;return Object.assign({},I,(q={},q[S]=b?"0":"",q[w]=_?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",q))}return Object.assign({},I,(t={},t[S]=b?g+"px":"",t[w]=_?v+"px":"",t.transform="",t))}function uQ(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,c=s===void 0?!0:s,l={placement:ao(t.placement),variation:Xc(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,$A(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$A(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uQ,data:{}};var vm={passive:!0};function dQ(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,c=Lr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(f){f.addEventListener("scroll",n.update,vm)}),s&&c.addEventListener("resize",n.update,vm),function(){o&&l.forEach(function(f){f.removeEventListener("scroll",n.update,vm)}),s&&c.removeEventListener("resize",n.update,vm)}}const hQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dQ,data:{}};var pQ={left:"right",right:"left",bottom:"top",top:"bottom"};function rv(e){return e.replace(/left|right|bottom|top/g,function(t){return pQ[t]})}var mQ={start:"end",end:"start"};function IA(e){return e.replace(/start|end/g,function(t){return mQ[t]})}function OE(e){var t=Lr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function SE(e){return Zc(ss(e)).left+OE(e).scrollLeft}function vQ(e,t){var n=Lr(e),r=ss(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=LI();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+SE(e),y:c}}function gQ(e){var t,n=ss(e),r=OE(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Js(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Js(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+SE(e),c=-r.scrollTop;return Wo(i||n).direction==="rtl"&&(s+=Js(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function EE(e){var t=Wo(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function FI(e){return["html","body","#document"].indexOf(po(e))>=0?e.ownerDocument.body:si(e)&&EE(e)?e:FI(r0(e))}function dd(e,t){var n;t===void 0&&(t=[]);var r=FI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Lr(r),a=i?[o].concat(o.visualViewport||[],EE(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(dd(r0(a)))}function Zx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yQ(e,t){var n=Zc(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 DA(e,t,n){return t===NI?Zx(vQ(e,n)):dl(t)?yQ(t,n):Zx(gQ(ss(e)))}function bQ(e){var t=dd(r0(e)),n=["absolute","fixed"].indexOf(Wo(e).position)>=0,r=n&&si(e)?ip(e):e;return dl(r)?t.filter(function(i){return dl(i)&&RI(i,r)&&po(i)!=="body"}):[]}function _Q(e,t,n,r){var i=t==="clippingParents"?bQ(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(c,l){var f=DA(e,l,r);return c.top=Js(f.top,c.top),c.right=Zv(f.right,c.right),c.bottom=Zv(f.bottom,c.bottom),c.left=Js(f.left,c.left),c},DA(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 BI(e){var t=e.reference,n=e.element,r=e.placement,i=r?ao(r):null,o=r?Xc(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case pr:c={x:a,y:t.y-n.height};break;case fi:c={x:a,y:t.y+t.height};break;case di:c={x:t.x+t.width,y:s};break;case mr:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?wE(i):null;if(l!=null){var f=l==="y"?"height":"width";switch(o){case Kc:c[l]=c[l]-(t[f]/2-n[f]/2);break;case Zd:c[l]=c[l]+(t[f]/2-n[f]/2);break}}return c}function Xd(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,c=s===void 0?BX:s,l=n.rootBoundary,f=l===void 0?NI:l,d=n.elementContext,p=d===void 0?Of:d,v=n.altBoundary,y=v===void 0?!1:v,g=n.padding,x=g===void 0?0:g,_=II(typeof x!="number"?x:DI(x,rp)),b=p===Of?UX:Of,w=e.rects.popper,S=e.elements[y?b:p],E=_Q(dl(S)?S:S.contextElement||ss(e.elements.popper),c,f,a),C=Zc(e.elements.reference),T=BI({reference:C,element:w,strategy:"absolute",placement:i}),A=Zx(Object.assign({},w,T)),F=p===Of?A:C,k={top:E.top-F.top+_.top,bottom:F.bottom-E.bottom+_.bottom,left:E.left-F.left+_.left,right:F.right-E.right+_.right},I=e.modifiersData.offset;if(p===Of&&I){var D=I[i];Object.keys(k).forEach(function(q){var W=[di,fi].indexOf(q)>=0?1:-1,X=[pr,fi].indexOf(q)>=0?"y":"x";k[q]+=D[X]*W})}return k}function xQ(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?MI:c,f=Xc(r),d=f?s?LA:LA.filter(function(y){return Xc(y)===f}):rp,p=d.filter(function(y){return l.indexOf(y)>=0});p.length===0&&(p=d);var v=p.reduce(function(y,g){return y[g]=Xd(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[ao(g)],y},{});return Object.keys(v).sort(function(y,g){return v[y]-v[g]})}function wQ(e){if(ao(e)===bE)return[];var t=rv(e);return[IA(e),t,IA(t)]}function OQ(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,c=n.fallbackPlacements,l=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,g=n.allowedAutoPlacements,x=t.options.placement,_=ao(x),b=_===x,w=c||(b||!y?[rv(x)]:wQ(x)),S=[x].concat(w).reduce(function(te,ie){return te.concat(ao(ie)===bE?xQ(t,{placement:ie,boundary:f,rootBoundary:d,padding:l,flipVariations:y,allowedAutoPlacements:g}):ie)},[]),E=t.rects.reference,C=t.rects.popper,T=new Map,A=!0,F=S[0],k=0;k<S.length;k++){var I=S[k],D=ao(I),q=Xc(I)===Kc,W=[pr,fi].indexOf(D)>=0,X=W?"width":"height",Q=Xd(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:p,padding:l}),ne=W?q?di:mr:q?fi:pr;E[X]>C[X]&&(ne=rv(ne));var Z=rv(ne),z=[];if(o&&z.push(Q[D]<=0),s&&z.push(Q[ne]<=0,Q[Z]<=0),z.every(function(te){return te})){F=I,A=!1;break}T.set(I,z)}if(A)for(var B=y?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 F=ae,"break"},ee=B;ee>0;ee--){var K=H(ee);if(K==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const SQ={name:"flip",enabled:!0,phase:"main",fn:OQ,requiresIfExists:["offset"],data:{_skip:!1}};function FA(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 BA(e){return[pr,di,fi,mr].some(function(t){return e[t]>=0})}function EQ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Xd(t,{elementContext:"reference"}),s=Xd(t,{altBoundary:!0}),c=FA(a,r),l=FA(s,i,o),f=BA(c),d=BA(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const CQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:EQ};function PQ(e,t,n){var r=ao(e),i=[mr,pr].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,[mr,di].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function TQ(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=MI.reduce(function(f,d){return f[d]=PQ(d,t.rects,o),f},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const jQ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:TQ};function AQ(e){var t=e.state,n=e.name;t.modifiersData[n]=BI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kQ={name:"popperOffsets",enabled:!0,phase:"read",fn:AQ,data:{}};function NQ(e){return e==="x"?"y":"x"}function MQ(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,c=n.boundary,l=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,v=p===void 0?!0:p,y=n.tetherOffset,g=y===void 0?0:y,x=Xd(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:f}),_=ao(t.placement),b=Xc(t.placement),w=!b,S=wE(_),E=NQ(S),C=t.modifiersData.popperOffsets,T=t.rects.reference,A=t.rects.popper,F=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,k=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(o){var q,W=S==="y"?pr:mr,X=S==="y"?fi:di,Q=S==="y"?"height":"width",ne=C[S],Z=ne+x[W],z=ne-x[X],B=v?-A[Q]/2:0,H=b===Kc?T[Q]:A[Q],ee=b===Kc?-A[Q]:-T[Q],K=t.elements.arrow,te=v&&K?xE(K):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$I(),ae=ie[W],fe=ie[X],j=fd(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&&ip(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=fd(v?Zv(Z,he):Z,ne,v?Js(z,Se):z);C[S]=se,D[S]=se-ne}if(s){var pe,me=S==="x"?pr:mr,xe=S==="x"?fi:di,Te=C[E],Pe=E==="y"?"height":"width",Ae=Te+x[me],le=Te-x[xe],ue=[pr,mr].indexOf(_)!==-1,ye=(pe=I==null?void 0:I[E])!=null?pe:0,ge=ue?Ae:Te-T[Pe]-A[Pe]-ye+k.altAxis,we=ue?Te+T[Pe]+A[Pe]-ye-k.altAxis:le,ke=v&&ue?rQ(ge,Te,we):fd(v?ge:Ae,Te,v?we:le);C[E]=ke,D[E]=ke-Te}t.modifiersData[r]=D}}const LQ={name:"preventOverflow",enabled:!0,phase:"main",fn:MQ,requiresIfExists:["offset"]};function RQ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $Q(e){return e===Lr(e)||!si(e)?OE(e):RQ(e)}function IQ(e){var t=e.getBoundingClientRect(),n=Yc(t.width)/e.offsetWidth||1,r=Yc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function DQ(e,t,n){n===void 0&&(n=!1);var r=si(t),i=si(t)&&IQ(t),o=ss(t),a=Zc(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((po(t)!=="body"||EE(o))&&(s=$Q(t)),si(t)?(c=Zc(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=SE(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function FQ(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 c=t.get(s);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function BQ(e){var t=FQ(e);return XX.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function UQ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zQ(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 UA={placement:"bottom",modifiers:[],strategy:"absolute"};function zA(){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 VQ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?UA:i;return function(s,c,l){l===void 0&&(l=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},UA,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],p=!1,v={state:f,setOptions:function(_){var b=typeof _=="function"?_(f.options):_;g(),f.options=Object.assign({},o,f.options,b),f.scrollParents={reference:dl(s)?dd(s):s.contextElement?dd(s.contextElement):[],popper:dd(c)};var w=BQ(zQ([].concat(r,f.options.modifiers)));return f.orderedModifiers=w.filter(function(S){return S.enabled}),y(),v.update()},forceUpdate:function(){if(!p){var _=f.elements,b=_.reference,w=_.popper;if(zA(b,w)){f.rects={reference:DQ(b,ip(w),f.options.strategy==="fixed"),popper:xE(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],C=E.fn,T=E.options,A=T===void 0?{}:T,F=E.name;typeof C=="function"&&(f=C({state:f,options:A,name:F,instance:v})||f)}}}},update:UQ(function(){return new Promise(function(x){v.forceUpdate(),x(f)})}),destroy:function(){g(),p=!0}};if(!zA(s,c))return v;v.setOptions(l).then(function(x){!p&&l.onFirstUpdate&&l.onFirstUpdate(x)});function y(){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}),C=function(){};d.push(E||C)}})}function g(){d.forEach(function(x){return x()}),d=[]}return v}}var WQ=[hQ,kQ,fQ,eQ,jQ,SQ,LQ,sQ,CQ],HQ=VQ({defaultModifiers:WQ}),GQ=typeof Element<"u",qQ=typeof Map=="function",KQ=typeof Set=="function",YQ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function iv(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(!iv(e[r],t[r]))return!1;return!0}var o;if(qQ&&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(!iv(r.value[1],t.get(r.value[0])))return!1;return!0}if(KQ&&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(YQ&&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(GQ&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!iv(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var ZQ=function(t,n){try{return iv(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 XQ=at(ZQ);var QQ=[],JQ=function(t,n,r){r===void 0&&(r={});var i=M.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||QQ},a=M.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],l=M.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var y=v.state,g=Object.keys(y.elements);Gy.flushSync(function(){c({styles:NA(g.map(function(x){return[x,y.styles[x]||{}]})),attributes:NA(g.map(function(x){return[x,y.attributes[x]]}))})})},requires:["computeStyles"]}},[]),f=M.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return XQ(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),d=M.useRef();return MA(function(){d.current&&d.current.setOptions(f)},[f]),MA(function(){if(!(t==null||n==null)){var p=r.createPopper||HQ,v=p(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}},eJ=function(){},tJ=function(){return Promise.resolve(null)},nJ=[];function UI(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?nJ:o,s=e.referenceElement,c=e.onFirstUpdate,l=e.innerRef,f=e.children,d=M.useContext(TI),p=M.useState(null),v=p[0],y=p[1],g=M.useState(null),x=g[0],_=g[1];M.useEffect(function(){Kx(l,v)},[l,v]);var b=M.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:c,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,c,a,x]),w=JQ(s||d,v,b),S=w.state,E=w.styles,C=w.forceUpdate,T=w.update,A=M.useMemo(function(){return{ref:y,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:C||eJ,update:T||tJ}},[y,_,n,S,E,T,C]);return AI(f)(A)}var rJ=function(){},iJ=rJ;const oJ=at(iJ);function aJ(e){var t=e.children,n=e.innerRef,r=M.useContext(jI),i=M.useCallback(function(o){Kx(n,o),kI(r,o)},[n,r]);return M.useEffect(function(){return function(){return Kx(n,null)}},[]),M.useEffect(function(){oJ(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),AI(t)({ref:i})}var Qd=V.createContext({}),zI=V.createContext({});function Xx(e){"@babel/helpers - typeof";return Xx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xx(e)}var sJ=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qx.apply(this,arguments)}function fa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lJ(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}function uJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fJ(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 dJ(e,t,n){return t&&fJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hJ(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&&Jx(e,t)}function Jx(e,t){return Jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jx(e,t)}function pJ(e){var t=vJ();return function(){var r=Xv(e),i;if(t){var o=Xv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return mJ(this,i)}}function mJ(e,t){if(t&&(Xx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pa(e)}function pa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vJ(){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 Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xv(e)}var gJ={a11y:$.bool,disabled:$.bool,direction:$.oneOf(["up","down","start","end","left","right"]),group:$.bool,isOpen:$.bool,nav:$.bool,active:$.bool,size:$.string,tag:it,toggle:$.func,children:$.node,className:$.string,cssModule:$.object,dropup:$.bool,inNavbar:$.bool,setActiveFromChild:$.bool,menuRole:$.oneOf(["listbox","menu"])},yJ={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},bJ=[ht.space,ht.enter,ht.up,ht.down,ht.end,ht.home],ls=function(e){hJ(n,e);var t=pJ(n);function n(r){var i;return uJ(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(pa(i)),i.handleDocumentClick=i.handleDocumentClick.bind(pa(i)),i.handleKeyDown=i.handleKeyDown.bind(pa(i)),i.removeEvents=i.removeEvents.bind(pa(i)),i.toggle=i.toggle.bind(pa(i)),i.handleMenuRef=i.handleMenuRef.bind(pa(i)),i.handleToggleRef=i.handleToggleRef.bind(pa(i)),i.containerRef=V.createRef(),i.menuRef=V.createRef(),i.toggleRef=V.createRef(),i}return dJ(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!==ht.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var c=s.contains(i.target),l=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"),!((c&&!f||l)&&(i.type!=="keyup"||i.which===ht.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,c=ht.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||c&&!this.props.a11y||c&&!(a||s))&&((bJ.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([ht.space,ht.enter,ht.up,ht.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&&c){var l;i.preventDefault(),(l=this.getMenuItems()[0])===null||l===void 0||l.focus()}else this.props.isOpen&&i.which===ht.esc&&this.toggle(i);if(this.props.isOpen&&a){if([ht.tab,ht.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([ht.space,ht.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([ht.down,ht.up].indexOf(i.which)>-1||[ht.n,ht.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),d=f.indexOf(i.target);ht.up===i.which||ht.p===i.which&&i.ctrlKey?d=d!==0?d-1:f.length-1:(ht.down===i.which||ht.n===i.which&&i.ctrlKey)&&(d=d===f.length-1?0:d+1),f[d].focus()}else if(ht.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(ht.home===i.which){var v=this.getMenuItems();v[0].focus()}else if(i.which>=48&&i.which<=90)for(var y=this.getMenuItems(),g=String.fromCharCode(i.which).toLowerCase(),x=0;x<y.length;x+=1){var _=y[x].textContent&&y[x].textContent[0].toLowerCase();if(_===g){y[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=as(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,c=a.cssModule,l=a.direction,f=a.isOpen,d=a.group,p=a.size,v=a.nav,y=a.setActiveFromChild,g=a.active,x=a.tag;a.menuRole;var _=lJ(a,sJ),b=x||(v?"li":"div"),w=!1;y&&V.Children.map(this.props.children[1].props.children,function(E){E&&E.props.active&&(w=!0)});var S=Be(He(s,v&&g?"active":!1,y&&w?"active":!1,(i={"btn-group":d},fa(i,"btn-group-".concat(p),!!p),fa(i,"dropdown",!d),fa(i,"dropup",l==="up"),fa(i,"dropstart",l==="start"||l==="left"),fa(i,"dropend",l==="end"||l==="right"),fa(i,"show",f),fa(i,"nav-item",v),i)),c);return this.context.insideInputGroup?V.createElement(Qd.Provider,{value:this.getContextValue()},V.createElement(kA,null,V.Children.map(this.props.children,function(E){return V.cloneElement(E,{onKeyDown:o.handleKeyDown})}))):V.createElement(Qd.Provider,{value:this.getContextValue()},V.createElement(kA,null,V.createElement(b,Qx({},_,fa({},typeof b=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:S}))))}}]),n}(V.Component);ls.propTypes=gJ;ls.defaultProps=yJ;ls.contextType=zI;function ew(e){"@babel/helpers - typeof";return ew=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ew(e)}var _J=["className","cssModule","divider","tag","header","active","text"];function tw(){return tw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tw.apply(this,arguments)}function xJ(e,t){if(e==null)return{};var n=wJ(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 wJ(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 OJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SJ(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 EJ(e,t,n){return t&&SJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CJ(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&&nw(e,t)}function nw(e,t){return nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nw(e,t)}function PJ(e){var t=jJ();return function(){var r=Qv(e),i;if(t){var o=Qv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return TJ(this,i)}}function TJ(e,t){if(t&&(ew(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rw(e)}function rw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jJ(){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 Qv(e){return Qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qv(e)}var AJ={children:$.node,active:$.bool,disabled:$.bool,divider:$.bool,tag:it,header:$.bool,onClick:$.func,className:$.string,cssModule:$.object,toggle:$.bool,text:$.bool},Ne=function(e){CJ(n,e);var t=PJ(n);function n(r){var i;return OJ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(rw(i)),i.getTabIndex=i.getTabIndex.bind(rw(i)),i}return EJ(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,c=a.header,l=a.divider,f=a.text;if(s||c||l||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,c=i.text;return o||a||s||c?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=as(this.props,["toggle"]),s=a.className,c=a.cssModule,l=a.divider,f=a.tag,d=f===void 0?"button":f,p=a.header,v=a.active,y=a.text,g=xJ(a,_J),x=Be(He(s,{disabled:g.disabled,"dropdown-item":!l&&!p&&!y,active:v,"dropdown-header":p,"dropdown-divider":l,"dropdown-item-text":y}),c);return d==="button"&&(p?d="h6":l?d="div":g.href?d="a":y&&(d="span")),V.createElement(d,tw({type:d==="button"&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(V.Component);Ne.propTypes=AJ;Ne.contextType=Qd;function iw(e){"@babel/helpers - typeof";return iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iw(e)}var kJ=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(this,arguments)}function VA(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 x1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(n),!0).forEach(function(r){NJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NJ(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){return IJ(e)||$J(e)||RJ(e)||LJ()}function LJ(){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 RJ(e,t){if(e){if(typeof e=="string")return ow(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 ow(e,t)}}function $J(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IJ(e){if(Array.isArray(e))return ow(e)}function ow(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 DJ(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}function BJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UJ(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&&UJ(e.prototype,t),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&&aw(e,t)}function aw(e,t){return aw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aw(e,t)}function WJ(e){var t=qJ();return function(){var r=eg(e),i;if(t){var o=eg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return HJ(this,i)}}function HJ(e,t){if(t&&(iw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GJ(e)}function GJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qJ(){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 eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eg(e)}var KJ={tag:it,children:$.node.isRequired,dark:$.bool,end:$.bool,flip:$.bool,modifiers:$.array,className:$.string,cssModule:$.object,style:$.object,persist:$.bool,strategy:$.string,container:qc,updateOnSelect:$.bool,right:xI($.bool,'Please use "end" instead.')},YJ={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},cs=function(e){VJ(n,e);var t=WJ(n);function n(){return BJ(this,n),t.apply(this,arguments)}return zJ(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,c=o.dark,l=o.end,f=o.right,d=o.tag,p=d===void 0?"div":d,v=o.flip,y=v===void 0?!0:v,g=o.modifiers,x=g===void 0?[]:g,_=o.persist,b=o.strategy,w=o.container,S=o.updateOnSelect,E=DJ(o,kJ),C=Be(He(a,"dropdown-menu",{"dropdown-menu-dark":c,"dropdown-menu-end":l||f,show:this.context.isOpen}),s),T=p;if(_||this.context.isOpen&&!this.context.inNavbar){var A=YJ[this.context.direction]||"bottom",F=l||f?"end":"start",k="".concat(A,"-").concat(F),I=[].concat(MJ(x),[{name:"flip",enabled:!!y}]),D={};_&&(D.display="block",D.visibility=this.context.isOpen?"visible":"hidden");var q=V.createElement(UI,{placement:k,modifiers:I,strategy:b},function(X){var Q=X.ref,ne=X.style,Z=X.placement,z=X.update,B=x1(x1(x1({},i.props.style),D),ne),H=function(K){Q(K);var te=i.context.onMenuRef;te&&te(K)};return V.createElement(T,Jv({tabIndex:"-1",role:i.getRole(),ref:H},E,{style:B,"aria-hidden":!i.context.isOpen,className:C,"data-popper-placement":Z,onClick:function(){return S&&z()}}))});return w?Vs.createPortal(q,Yd(w)):q}var W=this.context.onMenuRef;return V.createElement(T,Jv({tabIndex:"-1",role:this.getRole()},E,{ref:W,"aria-hidden":!this.context.isOpen,className:C,"data-popper-placement":E.placement,"data-bs-popper":"static"}))}}]),n}(V.Component);cs.propTypes=KJ;cs.contextType=Qd;function sw(e){"@babel/helpers - typeof";return sw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sw(e)}var ZJ=["className","color","cssModule","caret","split","nav","tag","innerRef"];function lw(){return lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lw.apply(this,arguments)}function XJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QJ(e,t){if(e==null)return{};var n=JJ(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 JJ(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 eee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tee(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 nee(e,t,n){return t&&tee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ree(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&&cw(e,t)}function cw(e,t){return cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cw(e,t)}function iee(e){var t=aee();return function(){var r=tg(e),i;if(t){var o=tg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oee(this,i)}}function oee(e,t){if(t&&(sw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VI(e)}function VI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aee(){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 tg(e){return tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tg(e)}var see={caret:$.bool,color:$.string,children:$.node,className:$.string,cssModule:$.object,disabled:$.bool,onClick:$.func,"aria-haspopup":$.bool,split:$.bool,tag:it,nav:$.bool,innerRef:$.oneOfType([$.object,$.string,$.func])},lee={color:"secondary","aria-haspopup":!0},na=function(e){ree(n,e);var t=iee(n);function n(r){var i;return eee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(VI(i)),i}return nee(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,c=o.cssModule,l=o.caret,f=o.split,d=o.nav,p=o.tag,v=o.innerRef,y=QJ(o,ZJ),g=y["aria-label"]||"Toggle Dropdown",x=Be(He(a,{"dropdown-toggle":l||f,"dropdown-toggle-split":f,"nav-link":d}),c),_=typeof y.children<"u"?y.children:V.createElement("span",{className:"visually-hidden"},g),b;d&&!p?(b="a",y.href="#"):p?b=p:(b=qe,y.color=s,y.cssModule=c);var w=function(E){var C=E.ref,T=function(F){C(F);var k=i.context.onToggleRef;k&&k(F)};return V.createElement(b,lw({},y,XJ({},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(aJ,{innerRef:v},w)}}]),n}(V.Component);na.propTypes=see;na.defaultProps=lee;na.contextType=Qd;function cee(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 uw(e,t){return uw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},uw(e,t)}function uee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,uw(e,t)}const WA={disabled:!1},WI=V.createContext(null);var fee=function(t){return t.scrollTop},Hf="unmounted",js="exited",As="entering",tc="entered",fw="exiting",yr=function(e){uee(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,c;return o.appearStatus=null,r.in?s?(c=js,o.appearStatus=As):c=tc:r.unmountOnExit||r.mountOnEnter?c=Hf:c=js,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Hf?{status:js}: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!==As&&a!==tc&&(o=As):(a===As||a===tc)&&(o=fw)}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===As){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Vs.findDOMNode(this);a&&fee(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===js&&this.setState({status:Hf})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[Vs.findDOMNode(this),s],l=c[0],f=c[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||WA.disabled){this.safeSetState({status:tc},function(){o.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:As},function(){o.props.onEntering(l,f),o.onTransitionEnd(p,function(){o.safeSetState({status:tc},function(){o.props.onEntered(l,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Vs.findDOMNode(this);if(!o||WA.disabled){this.safeSetState({status:js},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:fw},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:js},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:Vs.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],f=c[1];this.props.addEndListener(l,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Hf)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=cee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(WI.Provider,{value:null},typeof a=="function"?a(i,s):V.cloneElement(V.Children.only(a),s))},t}(V.Component);yr.contextType=WI;yr.propTypes={};function Wl(){}yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wl,onEntering:Wl,onEntered:Wl,onExit:Wl,onExiting:Wl,onExited:Wl};yr.UNMOUNTED=Hf;yr.EXITED=js;yr.ENTERING=As;yr.ENTERED=tc;yr.EXITING=fw;var dee=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ng.apply(this,arguments)}function hee(e,t){if(e==null)return{};var n=pee(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 pee(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 HA(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 Jd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(n),!0).forEach(function(r){mee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vee=Jd(Jd({},yr.propTypes),{},{children:$.oneOfType([$.arrayOf($.node),$.node]),tag:it,baseClass:$.string,baseClassActive:$.string,className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func])}),GA=Jd(Jd({},yr.defaultProps),{},{timeout:qv.Fade,appear:!0,enter:!0,exit:!0,in:!0});function cr(e){var t=M.useRef(null),n=mE(GA,e),r=n.tag,i=r===void 0?"div":r,o=n.baseClass,a=o===void 0?"fade":o,s=n.baseClassActive,c=s===void 0?"show":s,l=n.className,f=n.cssModule,d=n.children,p=n.innerRef,v=p===void 0?t:p,y=hee(n,dee),g=_I(Jd({defaultProps:GA},y),Kv),x=as(y,Kv);return V.createElement(yr,ng({nodeRef:v},g),function(_){var b=_==="entered",w=Be(He(l,a,b&&c),f);return V.createElement(i,ng({className:w},x,{ref:v}),d)})}cr.propTypes=vee;function dw(e){"@babel/helpers - typeof";return dw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dw(e)}var gee=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Hl;function rg(){return rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rg.apply(this,arguments)}function yee(e,t){if(e==null)return{};var n=bee(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 bee(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 _ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xee(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 wee(e,t,n){return t&&xee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oee(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&&hw(e,t)}function hw(e,t){return hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hw(e,t)}function See(e){var t=Cee();return function(){var r=ig(e),i;if(t){var o=ig(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Eee(this,i)}}function Eee(e,t){if(t&&(dw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HI(e)}function HI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ig(e){return ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ig(e)}function qA(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 Qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qA(Object(n),!0).forEach(function(r){_c(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pee=Qc(Qc({},yr.propTypes),{},{horizontal:$.bool,isOpen:$.bool,children:$.oneOfType([$.arrayOf($.node),$.node]),tag:it,className:$.node,navbar:$.bool,cssModule:$.object,innerRef:$.shape({current:$.object})}),Tee=Qc(Qc({},yr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:qv.Collapse}),jee=(Hl={},_c(Hl,mm.ENTERING,"collapsing"),_c(Hl,mm.ENTERED,"collapse show"),_c(Hl,mm.EXITING,"collapsing"),_c(Hl,mm.EXITED,"collapse"),Hl);function Aee(e){return jee[e]||"collapse"}var CE=function(e){Oee(n,e);var t=See(n);function n(r){var i;return _ee(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(HI(i))}),i}return wee(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,c=o.isOpen,l=o.className,f=o.navbar,d=o.cssModule,p=o.children;o.innerRef;var v=yee(o,gee),y=this.state.dimension,g=_I(v,Kv),x=as(v,Kv);return V.createElement(yr,rg({},g,{in:c,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(_){var b=Aee(_),w=Be(He(l,s&&"collapse-horizontal",b,f&&"navbar-collapse"),d),S=y===null?null:_c({},s?"width":"height",y);return V.createElement(a,rg({},x,{style:Qc(Qc({},x.style),S),className:w,ref:i.nodeRef}),p)})}}]),n}(M.Component);CE.propTypes=Pee;CE.defaultProps=Tee;var kee=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function pw(){return pw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pw.apply(this,arguments)}function Nee(e,t){if(e==null)return{};var n=Mee(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 Mee(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 Lee={body:$.bool,className:$.string,color:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func]),inverse:$.bool,outline:$.bool,tag:it};function Br(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,c=s===void 0?"div":s,l=e.innerRef,f=Nee(e,kee),d=Be(He(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return V.createElement(c,pw({},f,{className:d,ref:l}))}Br.propTypes=Lee;var Ree=["className","cssModule","innerRef","tag"];function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mw.apply(this,arguments)}function $ee(e,t){if(e==null)return{};var n=Iee(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 Iee(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 Dee={className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func]),tag:it};function op(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=$ee(e,Ree),s=Be(He(t,"card-body"),n);return V.createElement(o,mw({},a,{className:s,ref:r}))}op.propTypes=Dee;var Fee=["className","cssModule","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 Bee(e,t){if(e==null)return{};var n=Uee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zee={className:$.string,cssModule:$.object,tag:it};function GI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Bee(e,Fee),a=Be(He(t,"card-footer"),n);return V.createElement(i,vw({},o,{className:a}))}GI.propTypes=zee;var Vee=["className","cssModule","tag"];function gw(){return gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gw.apply(this,arguments)}function Wee(e,t){if(e==null)return{};var n=Hee(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 Hee(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 Gee={className:$.string,cssModule:$.object,tag:it};function ap(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Wee(e,Vee),a=Be(He(t,"card-header"),n);return V.createElement(i,gw({},o,{className:a}))}ap.propTypes=Gee;var qee=["className","cssModule","tag"];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 Kee(e,t){if(e==null)return{};var n=Yee(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 Yee(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 Zee={className:$.string,cssModule:$.object,tag:it};function qI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=Kee(e,qee),a=Be(He(t,"card-text"),n);return V.createElement(i,yw({},o,{className:a}))}qI.propTypes=Zee;var Xee=["className","cssModule","tag"];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 Qee(e,t){if(e==null)return{};var n=Jee(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 Jee(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 ete={className:$.string,cssModule:$.object,tag:it};function KI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Qee(e,Xee),a=Be(He(t,"card-title"),n);return V.createElement(i,bw({},o,{className:a}))}KI.propTypes=ete;function _w(e){"@babel/helpers - typeof";return _w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_w(e)}var tte=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function xw(){return xw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xw.apply(this,arguments)}function KA(e){return ote(e)||ite(e)||rte(e)||nte()}function nte(){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 rte(e,t){if(e){if(typeof e=="string")return ww(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 ww(e,t)}}function ite(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ote(e){if(Array.isArray(e))return ww(e)}function ww(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 ate(e,t){if(e==null)return{};var n=ste(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 ste(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 lte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YA(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 cte(e,t,n){return t&&YA(e.prototype,t),n&&YA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ute(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&&Ow(e,t)}function Ow(e,t){return Ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ow(e,t)}function fte(e){var t=hte();return function(){var r=og(e),i;if(t){var o=og(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return dte(this,i)}}function dte(e,t){if(t&&(_w(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gf(e)}function Gf(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 og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},og(e)}function ZA(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 ov(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZA(Object(n),!0).forEach(function(r){pte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mte(){}var vte={children:$.oneOfType([$.node,$.func]).isRequired,popperClassName:$.string,placement:$.string,placementPrefix:$.string,arrowClassName:$.string,hideArrow:$.bool,tag:it,isOpen:$.bool,cssModule:$.object,offset:$.arrayOf($.number),fallbackPlacements:$.array,flip:$.bool,container:qc,target:qc.isRequired,modifiers:$.array,strategy:$.string,boundariesElement:$.oneOfType([$.string,hE]),onClosed:$.func,fade:$.bool,transition:$.shape(cr.propTypes)},gte={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:mte,fade:!0,transition:ov({},cr.defaultProps)},PE=function(e){ute(n,e);var t=fte(n);function n(r){var i;return lte(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(Gf(i)),i.getTargetNode=i.getTargetNode.bind(Gf(i)),i.getRef=i.getRef.bind(Gf(i)),i.onClosed=i.onClosed.bind(Gf(i)),i.state={isOpen:r.isOpen},i}return cte(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 Yd(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Yd(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,c=i.flip;i.target;var l=i.offset,f=i.fallbackPlacements,d=i.placementPrefix,p=i.arrowClassName,v=i.hideArrow,y=i.popperClassName,g=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,C=ate(i,tte),T=Be(He("arrow",p),o),A=Be(He(y,d?"".concat(d,"-auto"):""),this.props.cssModule),F=x.map(function(q){return q.name}),k=[{name:"offset",options:{offset:l}},{name:"flip",enabled:c,options:{fallbackPlacements:f}},{name:"preventOverflow",options:{boundary:b}}].filter(function(q){return!F.includes(q.name)}),I=[].concat(KA(k),KA(x)),D=ov(ov(ov({},cr.defaultProps),S),{},{baseClass:w?S.baseClass:"",timeout:w?S.timeout:0});return V.createElement(cr,xw({},D,C,{in:s,onExited:this.onClosed,tag:g}),V.createElement(UI,{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():Vs.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);PE.propTypes=vte;PE.defaultProps=gte;function Sw(){return Sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sw.apply(this,arguments)}function eh(e){"@babel/helpers - typeof";return eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eh(e)}function yte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XA(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 bte(e,t,n){return t&&XA(e.prototype,t),n&&XA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _te(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ew(e,t)}function Ew(e,t){return Ew=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ew(e,t)}function xte(e){var t=Ote();return function(){var r=ag(e),i;if(t){var o=ag(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wte(this,i)}}function wte(e,t){if(t&&(eh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xr(e)}function xr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ote(){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 ag(e){return ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ag(e)}var TE={children:$.oneOfType([$.node,$.func]),placement:$.oneOf(FZ),target:qc.isRequired,container:qc,isOpen:$.bool,disabled:$.bool,hideArrow:$.bool,boundariesElement:$.oneOfType([$.string,hE]),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},YI={show:0,hide:50},Ste={isOpen:!1,hideArrow:!1,autohide:!1,delay:YI,toggle:function(){},trigger:"click",fade:!0};function ZI(e,t){return t&&(e===t||t.contains(e))}function QA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return ZI(e,n)})[0]}var jE=function(e){_te(n,e);var t=xte(n);function n(r){var i;return yte(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(xr(i)),i.handleDocumentClick=i.handleDocumentClick.bind(xr(i)),i.removeTargetEvents=i.removeTargetEvents.bind(xr(i)),i.toggle=i.toggle.bind(xr(i)),i.showWithDelay=i.showWithDelay.bind(xr(i)),i.hideWithDelay=i.hideWithDelay.bind(xr(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(xr(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(xr(i)),i.show=i.show.bind(xr(i)),i.hide=i.hide.bind(xr(i)),i.onEscKeyDown=i.onEscKeyDown.bind(xr(i)),i.getRef=i.getRef.bind(xr(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return bte(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||QA(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!ZI(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&QA(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):eh(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return eh(o)==="object"?isNaN(o[i])?YI[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=Yd(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,c=a.cssModule,l=a.innerClassName,f=a.isOpen,d=a.hideArrow,p=a.boundariesElement,v=a.placement,y=a.placementPrefix,g=a.arrowClassName,x=a.popperClassName,_=a.container,b=a.modifiers,w=a.strategy,S=a.offset,E=a.fade,C=a.flip,T=a.children,A=as(this.props,Object.keys(TE)),F=Be(x,c),k=Be(l,c);return V.createElement(PE,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:p,placement:v,placementPrefix:y,arrowClassName:g,popperClassName:F,container:_,modifiers:b,strategy:w,offset:S,cssModule:c,fade:E,flip:C},function(I){var D=I.update;return V.createElement("div",Sw({},A,{ref:i.getRef,className:k,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof T=="function"?T({update:D}):T)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(V.Component);jE.propTypes=TE;jE.defaultProps=Ste;var Ete=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function sg(){return sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sg.apply(this,arguments)}function JA(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 w1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JA(Object(n),!0).forEach(function(r){Cte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cte(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=Tte(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 Tte(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 jte={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:it,value:$.oneOfType([$.string,$.number])};function XI(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,c=s===void 0?0:s,l=e.max,f=l===void 0?100:l,d=e.animated,p=e.striped,v=e.color,y=e.bar,g=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,C=e.barAriaValueText,T=e.barAriaLabelledBy,A=Pte(e,Ete),F=PA(a)/PA(f)*100,k=Be(He(n,"progress"),i),I=Be(He("progress-bar",y&&n||r,d?"progress-bar-animated":null,v?"bg-".concat(v):null,p||d?"progress-bar-striped":null),i),D={className:I,style:w1(w1(w1({},y?w:{}),E),{},{width:"".concat(F,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":c,"aria-valuemax":f,"aria-valuetext":C,"aria-labelledby":T,children:t};return y?V.createElement(_,sg({},A,D)):V.createElement(_,sg({},A,{style:w,className:k}),g?t:V.createElement("div",D))}XI.propTypes=jte;function Cw(e){"@babel/helpers - typeof";return Cw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cw(e)}function Ate(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kte(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 Nte(e,t,n){return t&&kte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mte(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&&Pw(e,t)}function Pw(e,t){return Pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Pw(e,t)}function Lte(e){var t=Ite();return function(){var r=lg(e),i;if(t){var o=lg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Rte(this,i)}}function Rte(e,t){if(t&&(Cw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $te(e)}function $te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ite(){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 lg(e){return lg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lg(e)}var Dte={children:$.node.isRequired,node:$.any},QI=function(e){Mte(n,e);var t=Lte(n);function n(){return Ate(this,n),t.apply(this,arguments)}return Nte(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return pE?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Vs.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(V.Component);QI.propTypes=Dte;function Tw(e){"@babel/helpers - typeof";return Tw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tw(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 Gl(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){nc(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 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 nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bte(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&&Bte(e.prototype,t),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&&jw(e,t)}function jw(e,t){return jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jw(e,t)}function Vte(e){var t=Hte();return function(){var r=cg(e),i;if(t){var o=cg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Wte(this,i)}}function Wte(e,t){if(t&&(Tw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zr(e)}function Zr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function 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 cg(e){return cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cg(e)}function ug(){}var t3=$.shape(cr.propTypes),JI={autoFocus:$.bool,backdrop:$.oneOfType([$.bool,$.oneOf(["static"])]),backdropClassName:$.string,backdropTransition:t3,centered:$.bool,children:$.node,contentClassName:$.string,className:$.string,container:qc,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:t3,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])},Gte=Object.keys(JI),qte={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:ug,onClosed:ug,modalTransition:{timeout:qv.Modal},backdropTransition:{mountOnEnter:!0,timeout:qv.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},br=function(e){zte(n,e);var t=Vte(n);function n(r){var i;return Fte(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Zr(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Zr(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Zr(i)),i.handleEscape=i.handleEscape.bind(Zr(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Zr(i)),i.handleTab=i.handleTab.bind(Zr(i)),i.onOpened=i.onOpened.bind(Zr(i)),i.onClosed=i.onClosed.bind(Zr(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Zr(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Zr(i)),i.trapFocus=i.trapFocus.bind(Zr(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return Ute(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(),c=0,l=0;l<a;l+=1)if(o[l]===s){c=l;break}i.shiftKey&&c===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&c===a-1&&(i.preventDefault(),o[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===ht.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||ug)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||ug)(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(VZ.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=Yd(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=RZ(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),$Z(),n.openCount===0&&(document.body.className=He(document.body.className,Be("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=Be("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),bI(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=as(this.props,Gte),s="modal-dialog";return V.createElement("div",hd({},a,{className:Be(He(s,this.props.className,(i={},nc(i,"modal-".concat(this.props.size),this.props.size),nc(i,"".concat(s,"-centered"),this.props.centered),nc(i,"".concat(s,"-scrollable"),this.props.scrollable),nc(i,"modal-fullscreen",this.props.fullscreen===!0),nc(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(l){o._dialog=l}}),V.createElement("div",{className:Be(He("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,c=a.modalClassName,l=a.backdropClassName,f=a.cssModule,d=a.isOpen,p=a.backdrop,v=a.role,y=a.labelledBy,g=a.external,x=a.innerRef,_={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":y,"aria-modal":!0,role:v,tabIndex:"-1"},b=this.props.fade,w=Gl(Gl(Gl({},cr.defaultProps),this.props.modalTransition),{},{baseClass:b?this.props.modalTransition.baseClass:"",timeout:b?this.props.modalTransition.timeout:0}),S=Gl(Gl(Gl({},cr.defaultProps),this.props.backdropTransition),{},{baseClass:b?this.props.backdropTransition.baseClass:"",timeout:b?this.props.backdropTransition.timeout:0}),E=p&&(b?V.createElement(cr,hd({},S,{in:d&&!!p,cssModule:f,className:Be(He("modal-backdrop",l),f)})):V.createElement("div",{className:Be(He("modal-backdrop","show",l),f)}));return V.createElement(QI,{node:this._element},V.createElement("div",{className:Be(s)},V.createElement(cr,hd({},_,w,{in:d,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:Be(He("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:x}),g,this.renderModalDialog()),E))}return null}}]),n}(V.Component);br.propTypes=JI;br.defaultProps=qte;br.openCount=0;br.originalBodyOverflow=null;var Kte=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function Aw(){return Aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aw.apply(this,arguments)}function Yte(e,t){if(e==null)return{};var n=Zte(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 Zte(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 Xte={children:$.node,className:$.string,close:$.object,closeAriaLabel:$.string,cssModule:$.object,tag:it,toggle:$.func,wrapTag:it};function bo(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,c=e.wrapTag,l=c===void 0?"div":c,f=e.closeAriaLabel,d=f===void 0?"Close":f,p=e.close,v=Yte(e,Kte),y=Be(He(n,"modal-header"),r);return!p&&o&&(t=V.createElement("button",{type:"button",onClick:o,className:Be("btn-close",r),"aria-label":d})),V.createElement(l,Aw({},v,{className:y}),V.createElement(s,{className:Be("modal-title",r)},i),p||t)}bo.propTypes=Xte;var Qte=["className","cssModule","tag"];function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kw.apply(this,arguments)}function Jte(e,t){if(e==null)return{};var n=ene(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ene(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tne={className:$.string,cssModule:$.object,tag:it};function Ii(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Jte(e,Qte),a=Be(He(t,"modal-body"),n);return V.createElement(i,kw({},o,{className:a}))}Ii.propTypes=tne;var nne=["className","cssModule","tag"];function Nw(){return Nw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nw.apply(this,arguments)}function rne(e,t){if(e==null)return{};var n=ine(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ine(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var one={className:$.string,cssModule:$.object,tag:it};function us(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=rne(e,nne),a=Be(He(t,"modal-footer"),n);return V.createElement(i,Nw({},o,{className:a}))}us.propTypes=one;function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mw.apply(this,arguments)}var ane={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function i0(e){var t=He("tooltip-arrow",e.arrowClassName),n=He("tooltip","show",e.popperClassName),r=He("tooltip-inner",e.innerClassName),i=mE(ane,e);return V.createElement(jE,Mw({},i,{arrowClassName:t,popperClassName:n,innerClassName:r}))}i0.propTypes=TE;var sne=["className","cssModule","tag","flush","horizontal","numbered"];function Lw(){return Lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lw.apply(this,arguments)}function lne(e,t){if(e==null)return{};var n=cne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var une={className:$.string,cssModule:$.object,flush:$.bool,horizontal:$.oneOfType([$.bool,$.string]),numbered:$.bool,tag:it},fne=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function eD(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,c=e.numbered,l=c===void 0?!1:c,f=lne(e,sne),d=Be(He(t,"list-group",o?"list-group-flush":fne(s),{"list-group-numbered":l}),n);return V.createElement(i,Lw({},f,{className:d}))}eD.propTypes=une;var dne=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function Rw(){return Rw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rw.apply(this,arguments)}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}var mne={children:$.node,row:$.bool,check:$.bool,switch:$.bool,inline:$.bool,floating:$.bool,noMargin:$.bool,disabled:$.bool,tag:it,className:$.string,cssModule:$.object};function hl(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,c=e.noMargin,l=e.tag,f=l===void 0?"div":l,d=e.switch,p=hne(e,dne),v=o||d,y=Be(He(t,r?"row":!1,v?"form-check":!1,d?"form-switch":!1,v||c?!1:"mb-3",v&&a?"form-check-inline":!1,v&&i?"disabled":!1,s&&"form-floating"),n);return f==="fieldset"&&(p.disabled=i),V.createElement(f,Rw({},p,{className:y}))}hl.propTypes=mne;function $w(e){"@babel/helpers - typeof";return $w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$w(e)}var vne=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function Iw(){return Iw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iw.apply(this,arguments)}function gne(e,t){if(e==null)return{};var n=yne(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 yne(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 bne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ne(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 xne(e,t,n){return t&&_ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wne(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&&Dw(e,t)}function Dw(e,t){return Dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Dw(e,t)}function One(e){var t=Ene();return function(){var r=fg(e),i;if(t){var o=fg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Sne(this,i)}}function Sne(e,t){if(t&&($w(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fw(e)}function Fw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ene(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fg(e){return fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fg(e)}var Cne={children:$.node,type:$.string,size:$.oneOfType([$.number,$.string]),bsSize:$.string,valid:$.bool,invalid:$.bool,tag:it,innerRef:$.oneOfType([$.object,$.func,$.string]),plaintext:$.bool,addon:$.bool,className:$.string,cssModule:$.object},Nn=function(e){wne(n,e);var t=One(n);function n(r){var i;return bne(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(Fw(i)),i.focus=i.focus.bind(Fw(i)),i}return xne(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,c=s===void 0?"text":s,l=i.bsSize,f=i.valid,d=i.invalid,p=i.tag,v=i.addon,y=i.plaintext,g=i.innerRef,x=gne(i,vne),_=["switch","radio","checkbox"].indexOf(c)>-1,b=/\D/g,w=c==="textarea",S=c==="select",E=c==="range",C=p||(S||w?c:"input"),T="form-control";y?(T="".concat(T,"-plaintext"),C=p||"input"):E?T="form-range":S?T="form-select":_&&(v?T=null:T="form-check-input"),x.size&&b.test(x.size)&&(Rx(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),l=x.size,delete x.size);var A=Be(He(o,d&&"is-invalid",f&&"is-valid",l?S?"form-select-".concat(l):"form-control-".concat(l):!1,T),a);return(C==="input"||p&&typeof p=="function")&&(x.type=c==="switch"?"checkbox":c),x.children&&!(y||c==="select"||typeof C!="string"||C==="select")&&(Rx('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),V.createElement(C,Iw({},x,{ref:g,className:A,"aria-invalid":d}))}}]),n}(V.Component);Nn.propTypes=Cne;var Pne=["className","cssModule","tag","type","size"];function dg(){return dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dg.apply(this,arguments)}function Tne(e,t){if(e==null)return{};var n=jne(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 jne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ane={className:$.string,cssModule:$.object,size:$.string,tag:it,type:$.string};function o0(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=Tne(e,Pne),s=Be(He(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?V.createElement(ls,dg({},a,{className:s})):V.createElement(zI.Provider,{value:{insideInputGroup:!0}},V.createElement(i,dg({},a,{className:s})))}o0.propTypes=Ane;var kne=["className","listClassName","cssModule","size","tag","listTag","aria-label"];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 Nne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mne(e,t){if(e==null)return{};var n=Lne(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 Lne(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 Rne={children:$.node,className:$.string,listClassName:$.string,cssModule:$.object,size:$.string,tag:it,listTag:it,"aria-label":$.string};function AE(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,c=s===void 0?"ul":s,l=e["aria-label"],f=l===void 0?"pagination":l,d=Mne(e,kne),p=Be(He(t),r),v=Be(He(n,"pagination",Nne({},"pagination-".concat(i),!!i)),r);return V.createElement(a,{className:p,"aria-label":f},V.createElement(c,Bw({},d,{className:v})))}AE.propTypes=Rne;var $ne=["active","className","cssModule","disabled","tag"];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 Ine(e,t){if(e==null)return{};var n=Dne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fne={active:$.bool,children:$.node,className:$.string,cssModule:$.object,disabled:$.bool,tag:it};function el(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Ine(e,$ne),c=Be(He(n,"page-item",{active:t,disabled:i}),r);return V.createElement(a,Uw({},s,{className:c}))}el.propTypes=Fne;var Bne=["className","cssModule","next","previous","first","last","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 Une(e,t){if(e==null)return{};var n=zne(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 zne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Vne={"aria-label":$.string,children:$.node,className:$.string,cssModule:$.object,next:$.bool,previous:$.bool,first:$.bool,last:$.bool,tag:it};function tl(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,c=s===void 0?"a":s,l=Une(e,Bne),f=Be(He(t,"page-link"),n),d;i?d="Previous":r?d="Next":o?d="First":a&&(d="Last");var p=e["aria-label"]||d,v;i?v="":r?v="":o?v="«":a&&(v="»");var y=e.children;return y&&Array.isArray(y)&&y.length===0&&(y=null),!l.href&&c==="a"&&(c="button"),(i||r||o||a)&&(y=[V.createElement("span",{"aria-hidden":"true",key:"caret"},y||v),V.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),V.createElement(c,zw({},l,{className:f,"aria-label":p}),y)}tl.propTypes=Vne;var Wne=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];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 n3(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 Sf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n3(Object(n),!0).forEach(function(r){Hne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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={children:$.node,className:$.string,closeClassName:$.string,closeAriaLabel:$.string,color:$.string,cssModule:$.object,fade:$.bool,innerRef:$.oneOfType([$.object,$.string,$.func]),isOpen:$.bool,tag:it,toggle:$.func,transition:$.shape(cr.propTypes)};function tD(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,c=e.color,l=c===void 0?"success":c,f=e.isOpen,d=f===void 0?!0:f,p=e.toggle,v=e.children,y=e.transition,g=y===void 0?Sf(Sf({},cr.defaultProps),{},{unmountOnExit:!0}):y,x=e.fade,_=x===void 0?!0:x,b=e.innerRef,w=Gne(e,Wne),S=Be(He(t,"alert","alert-".concat(l),{"alert-dismissible":p}),o),E=Be(He("btn-close",n),o),C=Sf(Sf(Sf({},cr.defaultProps),g),{},{baseClass:_?g.baseClass:"",timeout:_?g.timeout:0});return V.createElement(cr,Vw({},w,C,{tag:s,className:S,in:d,role:"alert",innerRef:b}),p?V.createElement("button",{type:"button",className:E,"aria-label":i,onClick:p}):null,v)}tD.propTypes=Kne;var Yne=["className","cssModule","tag","active","disabled","action","color"];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 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={action:$.bool,active:$.bool,className:$.string,cssModule:$.object,color:$.string,disabled:$.bool,tag:it},Jne=function(t){t.preventDefault()};function nD(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,c=e.color,l=Zne(e,Yne),f=Be(He(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,c?"list-group-item-".concat(c):!1,"list-group-item"),n);return a&&(l.onClick=Jne),V.createElement(i,Ww({},l,{className:f}))}nD.propTypes=Qne;function Hw(e){"@babel/helpers - typeof";return Hw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hw(e)}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 ere(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){tre(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 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 Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gw.apply(this,arguments)}function nre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rre(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 ire(e,t,n){return t&&rre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ore(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&&qw(e,t)}function qw(e,t){return qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qw(e,t)}function are(e){var t=lre();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 sre(this,i)}}function sre(e,t){if(t&&(Hw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rD(e)}function rD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lre(){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 cre=["defaultOpen"],sp=function(e){ore(n,e);var t=are(n);function n(r){var i;return nre(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(rD(i)),i}return ire(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(ls,Gw({isOpen:this.state.isOpen,toggle:this.toggle},as(this.props,cre)))}}]),n}(M.Component);sp.propTypes=ere({defaultOpen:$.bool,onToggle:$.func},ls.propTypes);function Kw(e){"@babel/helpers - typeof";return Kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kw(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 ure(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){fre(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 fre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 dre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hre(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 pre(e,t,n){return t&&hre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mre(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&&Zw(e,t)}function Zw(e,t){return Zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zw(e,t)}function vre(e){var t=yre();return function(){var r=pg(e),i;if(t){var o=pg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return gre(this,i)}}function gre(e,t){if(t&&(Kw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iD(e)}function iD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yre(){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 pg(e){return pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pg(e)}var bre=["defaultOpen"],Ur=function(e){mre(n,e);var t=vre(n);function n(r){var i;return dre(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(iD(i)),i}return pre(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return V.createElement(i0,Yw({isOpen:this.state.isOpen,toggle:this.toggle},as(this.props,bre)))}}]),n}(M.Component);Ur.propTypes=ure({defaultOpen:$.bool},i0.propTypes);const _re=e=>({error:"border-danger",default:""})[e],xre=e=>({error:"text-danger",default:"text-muted"})[e],Ho=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Ee({"col-md-12":i,"col-md-10 offset-md-1":!i});return m.jsx(Kn,{className:Ee("g-0",e),children:m.jsx("div",{className:o,children:m.jsx(Br,{className:_re(r),body:!0,children:m.jsxs("h3",{className:Ee("text-center mb-0",xre(r)),children:[n&&m.jsx(je,{icon:P6,spin:!0}),n&&m.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},yt=({title:e,children:t,bodyClassName:n,...r})=>m.jsxs(Br,{...r,children:[e&&m.jsx(ap,{role:"heading","aria-level":4,children:e}),m.jsx(op,{className:n,children:t})]}),Jn=({children:e,type:t,className:n,small:r=!1})=>m.jsx(Kn,{className:n,children:m.jsx("div",{className:Ee({"col-md-10 offset-md-1":!r,"col-12":r}),children:m.jsx(yt,{role:"document",className:Ee("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Ee({"p-2":r}),children:e})})}),oD=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=M.useId(),s=f=>t==null?void 0:t(f.target.checked,f),c={"form-switch":i==="switch","form-checkbox":i==="checkbox"},l=o?{display:"inline-block"}:{};return m.jsxs("span",{className:Ee("form-check",c,n),style:l,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})]})},aD=e=>m.jsx(oD,{type:"checkbox",...e}),Go=e=>m.jsx(oD,{type:"switch",...e}),ju=({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]}),av=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const c=M.useId();return m.jsx(ju,{label:m.jsxs(m.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:c,children:m.jsx("input",{id:c,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:l=>n(l.target.value)})})},wre=500;let sv;const o3=()=>{sv!==null&&clearTimeout(sv),sv=null},lp=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=M.useState(i),c=(l,f=wre)=>{s(l),o3(),sv=o(()=>{e(l),o3()},f)};return m.jsxs("div",{className:Ee("search-field",t),children:[m.jsx("input",{type:"text",className:Ee("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:l=>c(l.target.value)}),m.jsx(je,{icon:fK,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:()=>c("",0)})]})},sD=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const o=i.slice(0,-2);n[o]??(n[o]=[]),n[o].push(r)}else n[i]=r}),n},a0=e=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)?r.forEach(i=>t.append(`${n}[]`,`${i}`)):t.append(n,`${r}`));return t.toString()},Rt=(e=!1)=>{const[t,n]=M.useState(e),r=M.useCallback(()=>n(a=>!a),[]),i=M.useCallback(()=>n(!0),[]),o=M.useCallback(()=>n(!1),[]);return[t,r,i,o]},lD=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=M.useState(e),a=M.useRef(e),s=M.useRef(),c=M.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,c]},$i=()=>M.useRef(null),Au=()=>{const{search:e}=gr();return M.useMemo(()=>sD(e),[e])},ra=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:c,size:l,...f})=>{const[d,p]=Rt(),v=Ee("dropdown-btn__toggle",n,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),y={minWidth:s&&`${s}px`};return m.jsxs(ls,{isOpen:d,toggle:p,disabled:t,className:i,children:[m.jsx(na,{size:l,caret:!o,className:v,color:"primary",...f,children:e}),m.jsx(cs,{className:"w-100",end:a,style:y,children:r})]})},s0=({children:e,minWidth:t,label:n="Options"})=>m.jsx(ra,{text:m.jsx(je,{className:"px-1",icon:tK}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),pd=({children:e,...t})=>m.jsx(gE,{children:m.jsx(yE,{className:"nav-pills__nav-link",tag:h6,...t,children:e})}),cD=({children:e,fill:t=!1,className:n=""})=>m.jsx(Br,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:m.jsx(vE,{pills:!0,fill:t,children:M.Children.map(e,r=>{if(!M.isValidElement(r)||r.type!==pd)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),l0=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",uD=(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}),Ore=e=>e.dir?`${e.field}-${e.dir}`:void 0,Sre=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function cp({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const c=l0(s,t.field,t.dir);n(c?s:void 0,c)};return m.jsxs(sp,{children:[m.jsxs(na,{caret:!0,color:r?"primary":"link",className:Ee({"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(cs,{end:i,className:Ee("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,c])=>m.jsxs(Ne,{active:t.field===s,onClick:a(s),children:[c,t.field===s&&m.jsx(je,{icon:t.dir==="ASC"?oK:Wq,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",Ere="rgba(70, 150, 229, 0.4)",Xw="#f77f28",Cre="rgba(247, 127, 40, 0.4)",Pre="white",Tre="#161b22",jre=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},up=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},kE=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",Are=M.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=Rt(),a=M.useCallback(()=>{o(),n()},[n,o]);return m.jsxs(tD,{className:"app-update-banner",isOpen:e,toggle:t,tag:yt,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(qe,{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:vK,className:"ms-1"})]}),i&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})}),fD=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(yt,{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(At,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Di(e){return M.useRef(e).current}function Fi(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const kre=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"})})},dD=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var x;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:c,EditServer:l,Settings:f,ManageServers:d,ShlinkVersionsContainer:p}=Di(dD),v=gr(),y=M.useRef(t),g=v.pathname==="/";return M.useEffect(()=>{Object.keys(y.current).length===0&&e()},[e]),M.useEffect(()=>{var _;jre(((_=n.ui)==null?void 0:_.theme)??kE())},[(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:Ee("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:m.jsxs(Zy,{children:[m.jsx(ot,{index:!0,element:m.jsx(a,{})}),m.jsx(ot,{path:"/settings/*",element:m.jsx(f,{})}),m.jsx(ot,{path:"/manage-servers",element:m.jsx(d,{})}),m.jsx(ot,{path:"/server/create",element:m.jsx(c,{})}),m.jsx(ot,{path:"/server/:serverId/edit",element:m.jsx(l,{})}),m.jsx(ot,{path:"/server/:serverId/*",element:m.jsx(s,{})}),m.jsx(ot,{path:"*",element:m.jsx(fD,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(p,{})})]}),m.jsx(Are,{isOpen:r,toggle:i,forceUpdate:kre})]})},Nre=Fi(dD,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function jn(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 Mre=typeof Symbol=="function"&&Symbol.observable||"@@observable",a3=Mre,O1=()=>Math.random().toString(36).substring(7).split("").join("."),Lre={INIT:`@@redux/INIT${O1()}`,REPLACE:`@@redux/REPLACE${O1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${O1()}`},mg=Lre;function NE(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 hD(e,t,n){if(typeof e!="function")throw new Error(jn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(jn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(jn(1));return n(hD)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,c=!1;function l(){a===o&&(a=new Map,o.forEach((x,_)=>{a.set(_,x)}))}function f(){if(c)throw new Error(jn(3));return i}function d(x){if(typeof x!="function")throw new Error(jn(4));if(c)throw new Error(jn(5));let _=!0;l();const b=s++;return a.set(b,x),function(){if(_){if(c)throw new Error(jn(6));_=!1,l(),a.delete(b),o=null}}}function p(x){if(!NE(x))throw new Error(jn(7));if(typeof x.type>"u")throw new Error(jn(8));if(typeof x.type!="string")throw new Error(jn(17));if(c)throw new Error(jn(9));try{c=!0,i=r(i,x)}finally{c=!1}return(o=a).forEach(b=>{b()}),x}function v(x){if(typeof x!="function")throw new Error(jn(10));r=x,p({type:mg.REPLACE})}function y(){const x=d;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(jn(11));function b(){const S=_;S.next&&S.next(f())}return b(),{unsubscribe:x(b)}},[a3](){return this}}}return p({type:mg.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:v,[a3]:y}}function Rre(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:mg.INIT})>"u")throw new Error(jn(12));if(typeof n(void 0,{type:mg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jn(13))})}function ME(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{Rre(n)}catch(o){i=o}return function(a={},s){if(i)throw i;let c=!1;const l={};for(let f=0;f<r.length;f++){const d=r[f],p=n[d],v=a[d],y=p(v,s);if(typeof y>"u")throw s&&s.type,new Error(jn(14));l[d]=y,c=c||y!==v}return c=c||r.length!==Object.keys(a).length,c?l:a}}function vg(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function $re(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(jn(15))};const a={getState:i.getState,dispatch:(c,...l)=>o(c,...l)},s=e.map(c=>c(a));return o=vg(...s)(i.dispatch),{...i,dispatch:o}}}function Ire(e){return NE(e)&&"type"in e&&typeof e.type=="string"}var pD=Symbol.for("immer-nothing"),s3=Symbol.for("immer-draftable"),Rr=Symbol.for("immer-state");function Pi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Jc=Object.getPrototypeOf;function pl(e){return!!e&&!!e[Rr]}function qo(e){var t;return e?mD(e)||Array.isArray(e)||!!e[s3]||!!((t=e.constructor)!=null&&t[s3])||u0(e)||f0(e):!1}var Dre=Object.prototype.constructor.toString();function mD(e){if(!e||typeof e!="object")return!1;const t=Jc(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)===Dre}function nh(e,t){c0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function c0(e){const t=e[Rr];return t?t.type_:Array.isArray(e)?1:u0(e)?2:f0(e)?3:0}function Qw(e,t){return c0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vD(e,t,n){const r=c0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Fre(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function u0(e){return e instanceof Map}function f0(e){return e instanceof Set}function ks(e){return e.copy_||e.base_}function Jw(e,t){if(u0(e))return new Map(e);if(f0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&mD(e))return Jc(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Rr];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(Jc(e),n)}function LE(e,t=!1){return d0(e)||pl(e)||!qo(e)||(c0(e)>1&&(e.set=e.add=e.clear=e.delete=Bre),Object.freeze(e),t&&nh(e,(n,r)=>LE(r,!0))),e}function Bre(){Pi(2)}function d0(e){return Object.isFrozen(e)}var Ure={};function ml(e){const t=Ure[e];return t||Pi(0,e),t}var rh;function gD(){return rh}function zre(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function l3(e,t){t&&(ml("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function e2(e){t2(e),e.drafts_.forEach(Vre),e.drafts_=null}function t2(e){e===rh&&(rh=e.parent_)}function c3(e){return rh=zre(rh,e)}function Vre(e){const t=e[Rr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function u3(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Rr].modified_&&(e2(t),Pi(4)),qo(e)&&(e=gg(t,e),t.parent_||yg(t,e)),t.patches_&&ml("Patches").generateReplacementPatches_(n[Rr].base_,e,t.patches_,t.inversePatches_)):e=gg(t,n,[]),e2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pD?e:void 0}function gg(e,t,n){if(d0(t))return t;const r=t[Rr];if(!r)return nh(t,(i,o)=>f3(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return yg(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),nh(o,(s,c)=>f3(e,r,i,s,c,n,a)),yg(e,i,!1),n&&e.patches_&&ml("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function f3(e,t,n,r,i,o,a){if(pl(i)){const s=o&&t&&t.type_!==3&&!Qw(t.assigned_,r)?o.concat(r):void 0,c=gg(e,i,s);if(vD(n,r,c),pl(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(qo(i)&&!d0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;gg(e,i),(!t||!t.scope_.parent_)&&yg(e,i)}}function yg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&LE(t,n)}function Wre(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:gD(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=RE;n&&(i=[r],o=ih);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var RE={get(e,t){if(t===Rr)return e;const n=ks(e);if(!Qw(n,t))return Hre(e,n,t);const r=n[t];return e.finalized_||!qo(r)?r:r===S1(e.base_,t)?(E1(e),e.copy_[t]=r2(r,e)):r},has(e,t){return t in ks(e)},ownKeys(e){return Reflect.ownKeys(ks(e))},set(e,t,n){const r=yD(ks(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=S1(ks(e),t),o=i==null?void 0:i[Rr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Fre(n,i)&&(n!==void 0||Qw(e.base_,t)))return!0;E1(e),n2(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 S1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,E1(e),n2(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ks(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Pi(11)},getPrototypeOf(e){return Jc(e.base_)},setPrototypeOf(){Pi(12)}},ih={};nh(RE,(e,t)=>{ih[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ih.deleteProperty=function(e,t){return ih.set.call(this,e,t,void 0)};ih.set=function(e,t,n){return RE.set.call(this,e[0],t,n,e[0])};function S1(e,t){const n=e[Rr];return(n?ks(n):e)[t]}function Hre(e,t,n){var i;const r=yD(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function yD(e,t){if(!(t in e))return;let n=Jc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Jc(n)}}function n2(e){e.modified_||(e.modified_=!0,e.parent_&&n2(e.parent_))}function E1(e){e.copy_||(e.copy_=Jw(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Gre=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(c=o,...l){return a.produce(c,f=>n.call(this,f,...l))}}typeof n!="function"&&Pi(6),r!==void 0&&typeof r!="function"&&Pi(7);let i;if(qo(t)){const o=c3(this),a=r2(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?e2(o):t2(o)}return l3(o,r),u3(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===pD&&(i=void 0),this.autoFreeze_&&LE(i,!0),r){const o=[],a=[];ml("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Pi(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...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){qo(e)||Pi(8),pl(e)&&(e=qre(e));const t=c3(this),n=r2(e,void 0);return n[Rr].isManual_=!0,t2(t),n}finishDraft(e,t){const n=e&&e[Rr];(!n||!n.isManual_)&&Pi(9);const{scope_:r}=n;return l3(r,t),u3(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=ml("Patches").applyPatches_;return pl(e)?r(e,t):this.produce(e,i=>r(i,t))}};function r2(e,t){const n=u0(e)?ml("MapSet").proxyMap_(e,t):f0(e)?ml("MapSet").proxySet_(e,t):Wre(e,t);return(t?t.scope_:gD()).drafts_.push(n),n}function qre(e){return pl(e)||Pi(10,e),bD(e)}function bD(e){if(!qo(e)||d0(e))return e;const t=e[Rr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Jw(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Jw(e,!0);return nh(n,(r,i)=>{vD(n,r,bD(i))}),t&&(t.finalized_=!1),n}var $r=new Gre,_D=$r.produce;$r.produceWithPatches.bind($r);$r.setAutoFreeze.bind($r);$r.setUseStrictShallowCopy.bind($r);$r.applyPatches.bind($r);$r.createDraft.bind($r);$r.finishDraft.bind($r);function xD(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Kre=xD(),Yre=xD,Zre=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vg:vg.apply(null,arguments)},Xre=e=>e&&typeof e.match=="function";function er(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(so(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=>Ire(r)&&r.type===e,n}var wD=class qf extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,qf.prototype)}static get[Symbol.species](){return qf}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new qf(...t[0].concat(this)):new qf(...t.concat(this))}};function d3(e){return qo(e)?_D(e,()=>{}):e}function h3(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(so(10));const r=n.insert(t,e);return e.set(t,r),r}function Qre(e){return typeof e=="boolean"}var Jre=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new wD;return n&&(Qre(n)?a.push(Kre):a.push(Yre(n.extraArgument))),a},eie="RTK_autoBatch",OD=e=>t=>{setTimeout(t,e)},tie=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:OD(10),nie=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?tie:e.type==="callback"?e.queueNotification:OD(e.timeout),l=()=>{a=!1,o&&(o=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const d=()=>i&&f(),p=r.subscribe(d);return s.add(f),()=>{p(),s.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[eie]),o=!i,o&&(a||(a=!0,c(l))),r.dispatch(f)}finally{i=!0}}})},rie=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new wD(e);return r&&i.push(nie(typeof r=="object"?r:void 0)),i};function SD(e){const t=Jre(),{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(NE(n))s=ME(n);else throw new Error(so(1));let c;typeof r=="function"?c=r(t):c=t();let l=vg;i&&(l=Zre({trace:!1,...typeof i=="object"&&i}));const f=$re(...c),d=rie(f);let p=typeof a=="function"?a(d):d();const v=l(...p);return hD(s,o,v)}function ED(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(so(28));if(s in t)throw new Error(so(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 iie(e){return typeof e=="function"}function oie(e,t){let[n,r,i]=ED(t),o;if(iie(e))o=()=>d3(e());else{const s=d3(e);o=()=>s}function a(s=o(),c){let l=[n[c.type],...r.filter(({matcher:f})=>f(c)).map(({reducer:f})=>f)];return l.filter(f=>!!f).length===0&&(l=[i]),l.reduce((f,d)=>{if(d)if(pl(f)){const v=d(f,c);return v===void 0?f:v}else{if(qo(f))return _D(f,p=>d(p,c));{const p=d(f,c);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},s)}return a.getInitialState=o,a}var aie=(e,t)=>Xre(e)?e.match(t):e(t);function sie(...e){return t=>e.some(n=>aie(n,t))}var lie="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cie=(e=21)=>{let t="",n=e;for(;n--;)t+=lie[Math.random()*64|0];return t},uie=["name","message","stack","code"],C1=class{constructor(e,t){Ul(this,"_type");this.payload=e,this.meta=t}},p3=class{constructor(e,t){Ul(this,"_type");this.payload=e,this.meta=t}},fie=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of uie)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},CD=(()=>{function e(t,n,r){const i=er(t+"/fulfilled",(c,l,f,d)=>({payload:c,meta:{...d||{},arg:f,requestId:l,requestStatus:"fulfilled"}})),o=er(t+"/pending",(c,l,f)=>({payload:void 0,meta:{...f||{},arg:l,requestId:c,requestStatus:"pending"}})),a=er(t+"/rejected",(c,l,f,d,p)=>({payload:d,error:(r&&r.serializeError||fie)(c||"Rejected"),meta:{...p||{},arg:f,requestId:l,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function s(c){return(l,f,d)=>{const p=r!=null&&r.idGenerator?r.idGenerator(c):cie(),v=new AbortController;let y,g;function x(b){g=b,v.abort()}const _=async function(){var S,E;let b;try{let C=(S=r==null?void 0:r.condition)==null?void 0:S.call(r,c,{getState:f,extra:d});if(hie(C)&&(C=await C),C===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((A,F)=>{y=()=>{F({name:"AbortError",message:g||"Aborted"})},v.signal.addEventListener("abort",y)});l(o(p,c,(E=r==null?void 0:r.getPendingMeta)==null?void 0:E.call(r,{requestId:p,arg:c},{getState:f,extra:d}))),b=await Promise.race([T,Promise.resolve(n(c,{dispatch:l,getState:f,extra:d,requestId:p,signal:v.signal,abort:x,rejectWithValue:(A,F)=>new C1(A,F),fulfillWithValue:(A,F)=>new p3(A,F)})).then(A=>{if(A instanceof C1)throw A;return A instanceof p3?i(A.payload,p,c,A.meta):i(A,p,c)})])}catch(C){b=C instanceof C1?a(null,p,c,C.payload,C.meta):a(C,p,c)}finally{y&&v.signal.removeEventListener("abort",y)}return r&&!r.dispatchConditionRejection&&a.match(b)&&b.meta.condition||l(b),b}();return Object.assign(_,{abort:x,requestId:p,arg:c,unwrap(){return _.then(die)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:sie(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function die(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function hie(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var pie=Symbol.for("rtk-slice-createasyncthunk");function mie(e,t){return`${e}/${t}`}function vie({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[pie];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(so(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(yie()):i.reducers)||{},c=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(w,S){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(so(12));if(E in l.sliceCaseReducersByType)throw new Error(so(13));return l.sliceCaseReducersByType[E]=S,f},addMatcher(w,S){return l.sliceMatchers.push({matcher:w,reducer:S}),f},exposeAction(w,S){return l.actionCreators[w]=S,f},exposeCaseReducer(w,S){return l.sliceCaseReducersByName[w]=S,f}};c.forEach(w=>{const S=s[w],E={reducerName:w,type:mie(o,w),createNotation:typeof i.reducers=="function"};_ie(S)?wie(E,S,f,t):bie(E,S,f)});function d(){const[w={},S=[],E=void 0]=typeof i.extraReducers=="function"?ED(i.extraReducers):[i.extraReducers],C={...w,...l.sliceCaseReducersByType};return oie(i.initialState,T=>{for(let A in C)T.addCase(A,C[A]);for(let A of l.sliceMatchers)T.addMatcher(A.matcher,A.reducer);for(let A of S)T.addMatcher(A.matcher,A.reducer);E&&T.addDefaultCase(E)})}const p=w=>w,v=new Map;let y;function g(w,S){return y||(y=d()),y(w,S)}function x(){return y||(y=d()),y.getInitialState()}function _(w,S=!1){function E(T){let A=T[w];return typeof A>"u"&&S&&(A=x()),A}function C(T=p){const A=h3(v,S,{insert:()=>new WeakMap});return h3(A,T,{insert:()=>{const F={};for(const[k,I]of Object.entries(i.selectors??{}))F[k]=gie(I,T,x,S);return F}})}return{reducerPath:w,getSelectors:C,get selectors(){return C(E)},selectSlice:E}}const b={name:o,reducer:g,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,..._(a),injectInto(w,{reducerPath:S,...E}={}){const C=S??a;return w.inject({reducerPath:C,reducer:g},E),{...b,..._(C,!0)}}};return b}}function gie(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 Qt=vie();function yie(){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 bie({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!xie(r))throw new Error(so(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?er(e,a):er(e))}function _ie(e){return e._reducerDefinitionType==="asyncThunk"}function xie(e){return e._reducerDefinitionType==="reducerWithPrepare"}function wie({type:e,reducerName:t},n,r,i){if(!i)throw new Error(so(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:c,settled:l,options:f}=n,d=i(e,o,f);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:a||gm,pending:s||gm,rejected:c||gm,settled:l||gm})}function gm(){}function so(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:Oie,reducer:Sie}=Qt({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Eie,resetAppUpdate:Cie}=Oie,Pie=Sie,Tie=(e,t)=>{e.factory("App",Nre),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Eie),e.serviceFactory("resetAppUpdate",()=>Cie)},m3={"Content-Type":"application/json"},v3=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...m3}}:{headers:m3}:e;let jie=class{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,v3(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,v3(n)).then(async r=>{if(!r.ok)throw await r.json()})}};var $E=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_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))($E||{});const PD=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),Aie=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),P1=e=>Object.prototype.toString.call(e)==="[object Object]",TD=(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}},h0=(e,t)=>{const n={...e};return!P1(e)||!P1(t)||Object.keys(t).forEach(r=>{P1(t[r])?n[r]=r in e&&e[r]!==void 0?h0(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},IE=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),kie=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Mc=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},g3=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),jD=6048e5,Nie=864e5,AD=6e4,DE=36e5,ym=43200,y3=1440,b3=Symbol.for("constructDateFrom");function Rn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&b3 in e?e[b3](t):e instanceof Date?new e.constructor(t):new Date(t)}function nt(e,t){return Rn(t||e,e)}function FE(e,t,n){const r=nt(e,n==null?void 0:n.in);return isNaN(t)?Rn(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Mie(e,t,n){const r=nt(e,n==null?void 0:n.in);if(isNaN(t))return Rn(e,NaN);if(!t)return r;const i=r.getDate(),o=Rn(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function Lie(e,t,n){const{years:r=0,months:i=0,weeks:o=0,days:a=0,hours:s=0,minutes:c=0,seconds:l=0}=t,f=nt(e,n==null?void 0:n.in),d=i||r?Mie(f,i+r*12):f,p=a||o?FE(d,a+o*7):d,v=c+s*60,g=(l+v*60)*1e3;return Rn(e,+p+g)}let Rie={};function fp(){return Rie}function oh(e,t){var s,c,l,f;const n=fp(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(l=n.locale)==null?void 0:l.options)==null?void 0:f.weekStartsOn)??0,i=nt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function ah(e,t){return oh(e,{...t,weekStartsOn:1})}function kD(e,t){const n=nt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Rn(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=ah(i),a=Rn(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=ah(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function bg(e){const t=nt(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 ku(e,...t){const n=Rn.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function vl(e,t){const n=nt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function ND(e,t,n){const[r,i]=ku(n==null?void 0:n.in,e,t),o=vl(r),a=vl(i),s=+o-bg(o),c=+a-bg(a);return Math.round((s-c)/Nie)}function $ie(e,t){const n=kD(e,t),r=Rn(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ah(r)}function BE(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Rn.bind(null,i));const o=nt(i,r);(!n||n<o||isNaN(+o))&&(n=o)}),Rn(r,n||NaN)}function MD(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Rn.bind(null,i));const o=nt(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),Rn(r,n||NaN)}function lv(e,t){const n=+nt(e)-+nt(t);return n<0?-1:n>0?1:n}function Iie(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Die(e){return!(!Iie(e)&&typeof e!="number"||isNaN(+nt(e)))}function Fie(e,t,n){const[r,i]=ku(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),a=r.getMonth()-i.getMonth();return o*12+a}function dp(e,t,n){const[r,i]=ku(n==null?void 0:n.in,e,t),o=_3(r,i),a=Math.abs(ND(r,i));r.setDate(r.getDate()-o*a);const s=+(_3(r,i)===-o),c=o*(a-s);return c===0?0:c}function _3(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 UE(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function Bie(e,t,n){const[r,i]=ku(n==null?void 0:n.in,e,t),o=(+r-+i)/DE;return UE(n==null?void 0:n.roundingMethod)(o)}function Uie(e,t){return+nt(e)-+nt(t)}function eu(e,t){const n=nt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function zie(e,t){const n=nt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Vie(e,t){const n=nt(e,t==null?void 0:t.in);return+eu(n,t)==+zie(n,t)}function _g(e,t,n){const[r,i,o]=ku(n==null?void 0:n.in,e,e,t),a=lv(i,o),s=Math.abs(Fie(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let c=lv(i,o)===-a;Vie(r)&&s===1&&lv(r,o)===1&&(c=!1);const l=a*(s-+c);return l===0?0:l}function Wie(e,t,n){const r=Uie(e,t)/1e3;return UE(n==null?void 0:n.roundingMethod)(r)}function Hie(e,t,n){const r=dp(e,t,n)/7;return UE(n==null?void 0:n.roundingMethod)(r)}function Gie(e,t){const n=nt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function qie(e,t){const n=t==null?void 0:t.weekStartsOn,r=nt(e,t==null?void 0:t.in),i=r.getDay(),o=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function Kie(e,t){return qie(e,{...t,weekStartsOn:1})}const Yie={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"}},Zie=(e,t,n)=>{let r;const i=Yie[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 T1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Xie={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qie={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jie={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eoe={date:T1({formats:Xie,defaultWidth:"full"}),time:T1({formats:Qie,defaultWidth:"full"}),dateTime:T1({formats:Jie,defaultWidth:"full"})},toe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},noe=(e,t,n,r)=>toe[e];function Ef(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 roe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ioe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ooe={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"]},aoe={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"]},soe={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"}},loe={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"}},coe=(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"},uoe={ordinalNumber:coe,era:Ef({values:roe,defaultWidth:"wide"}),quarter:Ef({values:ioe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ef({values:ooe,defaultWidth:"wide"}),day:Ef({values:aoe,defaultWidth:"wide"}),dayPeriod:Ef({values:soe,defaultWidth:"wide",formattingValues:loe,defaultFormattingWidth:"wide"})};function Cf(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],c=Array.isArray(s)?doe(s,d=>d.test(a)):foe(s,d=>d.test(a));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const f=t.slice(a.length);return{value:l,rest:f}}}function foe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function doe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hoe(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 poe=/^(\d+)(th|st|nd|rd)?/i,moe=/\d+/i,voe={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},goe={any:[/^b/i,/^(a|c)/i]},yoe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},boe={any:[/1/i,/2/i,/3/i,/4/i]},_oe={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},xoe={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]},woe={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},Ooe={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]},Soe={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},Eoe={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}},Coe={ordinalNumber:hoe({matchPattern:poe,parsePattern:moe,valueCallback:e=>parseInt(e,10)}),era:Cf({matchPatterns:voe,defaultMatchWidth:"wide",parsePatterns:goe,defaultParseWidth:"any"}),quarter:Cf({matchPatterns:yoe,defaultMatchWidth:"wide",parsePatterns:boe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Cf({matchPatterns:_oe,defaultMatchWidth:"wide",parsePatterns:xoe,defaultParseWidth:"any"}),day:Cf({matchPatterns:woe,defaultMatchWidth:"wide",parsePatterns:Ooe,defaultParseWidth:"any"}),dayPeriod:Cf({matchPatterns:Soe,defaultMatchWidth:"any",parsePatterns:Eoe,defaultParseWidth:"any"})},LD={code:"en-US",formatDistance:Zie,formatLong:eoe,formatRelative:noe,localize:uoe,match:Coe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Poe(e,t){const n=nt(e,t==null?void 0:t.in);return ND(n,Gie(n))+1}function Toe(e,t){const n=nt(e,t==null?void 0:t.in),r=+ah(n)-+$ie(n);return Math.round(r/jD)+1}function RD(e,t){var f,d,p,v;const n=nt(e,t==null?void 0:t.in),r=n.getFullYear(),i=fp(),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=(p=i.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,a=Rn((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=oh(a,t),c=Rn((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=oh(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function joe(e,t){var s,c,l,f;const n=fp(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(l=n.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??1,i=RD(e,t),o=Rn((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),oh(o,t)}function Aoe(e,t){const n=nt(e,t==null?void 0:t.in),r=+oh(n,t)-+joe(n,t);return Math.round(r/jD)+1}function tt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const da={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return tt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):tt(n+1,2)},d(e,t){return tt(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 tt(e.getHours()%12||12,t.length)},H(e,t){return tt(e.getHours(),t.length)},m(e,t){return tt(e.getMinutes(),t.length)},s(e,t){return tt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return tt(i,t.length)}},ql={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},x3={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 da.y(e,t)},Y:function(e,t,n,r){const i=RD(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return tt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):tt(o,t.length)},R:function(e,t){const n=kD(e);return tt(n,t.length)},u:function(e,t){const n=e.getFullYear();return tt(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 tt(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 tt(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 da.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 tt(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=Aoe(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):tt(i,t.length)},I:function(e,t,n){const r=Toe(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):tt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):da.d(e,t)},D:function(e,t,n){const r=Poe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):tt(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 tt(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 tt(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 tt(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=ql.noon:r===0?i=ql.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=ql.evening:r>=12?i=ql.afternoon:r>=4?i=ql.morning:i=ql.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 da.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):da.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):da.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):da.s(e,t)},S:function(e,t){return da.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return O3(r);case"XXXX":case"XX":return Ns(r);case"XXXXX":case"XXX":default:return Ns(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return O3(r);case"xxxx":case"xx":return Ns(r);case"xxxxx":case"xxx":default:return Ns(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w3(r,":");case"OOOO":default:return"GMT"+Ns(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w3(r,":");case"zzzz":default:return"GMT"+Ns(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return tt(r,t.length)},T:function(e,t,n){return tt(+e,t.length)}};function w3(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+tt(o,2)}function O3(e,t){return e%60===0?(e>0?"-":"+")+tt(Math.abs(e)/60,2):Ns(e,t)}function Ns(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=tt(Math.trunc(r/60),2),o=tt(r%60,2);return n+i+t+o}const S3=(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"})}},$D=(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"})}},koe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return S3(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}}",S3(r,t)).replace("{{time}}",$D(i,t))},Noe={p:$D,P:koe},Moe=/^D+$/,Loe=/^Y+$/,Roe=["D","DD","YY","YYYY"];function $oe(e){return Moe.test(e)}function Ioe(e){return Loe.test(e)}function Doe(e,t,n){const r=Foe(e,t,n);if(console.warn(r),Roe.includes(e))throw new RangeError(r)}function Foe(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 Boe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Uoe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zoe=/^'([^]*?)'?$/,Voe=/''/g,Woe=/[a-zA-Z]/;function xg(e,t,n){var f,d,p,v;const r=fp(),i=r.locale??LD,o=r.firstWeekContainsDate??((d=(f=r.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,s=nt(e,n==null?void 0:n.in);if(!Die(s))throw new RangeError("Invalid time value");let c=t.match(Uoe).map(y=>{const g=y[0];if(g==="p"||g==="P"){const x=Noe[g];return x(y,i.formatLong)}return y}).join("").match(Boe).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const g=y[0];if(g==="'")return{isToken:!1,value:Hoe(y)};if(x3[g])return{isToken:!0,value:y};if(g.match(Woe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:y}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(y=>{if(!y.isToken)return y.value;const g=y.value;(Ioe(g)||$oe(g))&&Doe(g,t,String(e));const x=x3[g[0]];return x(s,g,i.localize,l)}).join("")}function Hoe(e){const t=e.match(zoe);return t?t[1].replace(Voe,"'"):e}function Goe(e,t,n){const r=fp(),i=(n==null?void 0:n.locale)??r.locale??LD,o=2520,a=lv(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}),[c,l]=ku(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),f=Wie(l,c),d=(bg(l)-bg(c))/1e3,p=Math.round((f-d)/60);let v;if(p<2)return n!=null&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,s):f<10?i.formatDistance("lessThanXSeconds",10,s):f<20?i.formatDistance("lessThanXSeconds",20,s):f<40?i.formatDistance("halfAMinute",0,s):f<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):p===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",p,s);if(p<45)return i.formatDistance("xMinutes",p,s);if(p<90)return i.formatDistance("aboutXHours",1,s);if(p<y3){const y=Math.round(p/60);return i.formatDistance("aboutXHours",y,s)}else{if(p<o)return i.formatDistance("xDays",1,s);if(p<ym){const y=Math.round(p/y3);return i.formatDistance("xDays",y,s)}else if(p<ym*2)return v=Math.round(p/ym),i.formatDistance("aboutXMonths",v,s)}if(v=_g(l,c),v<12){const y=Math.round(p/ym);return i.formatDistance("xMonths",y,s)}else{const y=v%12,g=Math.trunc(v/12);return y<3?i.formatDistance("aboutXYears",g,s):y<9?i.formatDistance("overXYears",g,s):i.formatDistance("almostXYears",g+1,s)}}function qoe(e,t){const n=nt(e,t==null?void 0:t.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const o="-",a=":";{const s=tt(n.getDate(),2),c=tt(n.getMonth()+1,2);r=`${tt(n.getFullYear(),4)}${o}${c}${o}${s}`}{const s=n.getTimezoneOffset();if(s!==0){const v=Math.abs(s),y=tt(Math.trunc(v/60),2),g=tt(v%60,2);i=`${s<0?"+":"-"}${y}:${g}`}else i="Z";const c=tt(n.getHours(),2),l=tt(n.getMinutes(),2),f=tt(n.getSeconds(),2),d=r===""?"":"T",p=[c,l,f].join(a);r=`${r}${d}${p}${i}`}return r}function Koe(e){return Math.trunc(+nt(e)/1e3)}function Yoe(e,t){return+nt(e)>+nt(t)}function wg(e,t){return+nt(e)<+nt(t)}function i2(e,t){return+nt(e)==+nt(t)}function Zoe(e,t,n){const r=+nt(e,n==null?void 0:n.in),[i,o]=[+nt(t.start,n==null?void 0:n.in),+nt(t.end,n==null?void 0:n.in)].sort((a,s)=>a-s);return r>=i&&r<=o}function Og(e,t,n){return FE(e,-t,n)}function Qa(e,t){const n=()=>Rn(t==null?void 0:t.in,NaN),i=eae(e);let o;if(i.date){const l=tae(i.date,2);o=nae(l.restDateString,l.year)}if(!o||isNaN(+o))return n();const a=+o;let s=0,c;if(i.time&&(s=rae(i.time),isNaN(s)))return n();if(i.timezone){if(c=iae(i.timezone),isNaN(c))return n()}else{const l=new Date(a+s),f=nt(0,t==null?void 0:t.in);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return nt(a+s+c,t==null?void 0:t.in)}const bm={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Xoe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Qoe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Joe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function eae(e){const t={},n=e.split(bm.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],bm.timeZoneDelimiter.test(t.date)&&(t.date=e.split(bm.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=bm.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function tae(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 nae(e,t){if(t===null)return new Date(NaN);const n=e.match(Xoe);if(!n)return new Date(NaN);const r=!!n[4],i=Pf(n[1]),o=Pf(n[2])-1,a=Pf(n[3]),s=Pf(n[4]),c=Pf(n[5])-1;if(r)return cae(t,s,c)?oae(t,s,c):new Date(NaN);{const l=new Date(0);return!sae(t,o,a)||!lae(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}}function Pf(e){return e?parseInt(e):1}function rae(e){const t=e.match(Qoe);if(!t)return NaN;const n=j1(t[1]),r=j1(t[2]),i=j1(t[3]);return uae(n,r,i)?n*DE+r*AD+i*1e3:NaN}function j1(e){return e&&parseFloat(e.replace(",","."))||0}function iae(e){if(e==="Z")return 0;const t=e.match(Joe);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return fae(r,i)?n*(r*DE+i*AD):NaN}function oae(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 aae=[31,null,31,30,31,30,31,31,30,31,30,31];function ID(e){return e%400===0||e%4===0&&e%100!==0}function sae(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(aae[t]||(ID(e)?29:28))}function lae(e,t){return t>=1&&t<=(ID(e)?366:365)}function cae(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function uae(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function fae(e,t){return t>=0&&t<=59}const vr=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),dae="Left",hae="Right",pae="Up",mae="Down",xc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},o2={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},E3="mousemove",C3="mouseup",vae="touchend",gae="touchmove",yae="touchstart";function bae(e,t,n,r){return e>t?n>0?hae:dae:r>0?mae:pae}function P3(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 _ae(e,t){const n=f=>{const d="touches"in f;d&&f.touches.length>1||e((p,v)=>{v.trackMouse&&!d&&(document.addEventListener(E3,r),document.addEventListener(C3,a));const{clientX:y,clientY:g}=d?f.touches[0]:f,x=P3([y,g],v.rotationAngle);return v.onTouchStartOrOnMouseDown&&v.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),o2),{initial:x.slice(),xy:x,start:f.timeStamp||0})})},r=f=>{e((d,p)=>{const v="touches"in f;if(v&&f.touches.length>1)return d;if(f.timeStamp-d.start>p.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:y,clientY:g}=v?f.touches[0]:f,[x,_]=P3([y,g],p.rotationAngle),b=x-d.xy[0],w=_-d.xy[1],S=Math.abs(b),E=Math.abs(w),C=(f.timeStamp||0)-d.start,T=Math.sqrt(S*S+E*E)/(C||1),A=[b/(C||1),w/(C||1)],F=bae(S,E,b,w),k=typeof p.delta=="number"?p.delta:p.delta[F.toLowerCase()]||xc.delta;if(S<k&&E<k&&!d.swiping)return d;const I={absX:S,absY:E,deltaX:b,deltaY:w,dir:F,event:f,first:d.first,initial:d.initial,velocity:T,vxvy:A};I.first&&p.onSwipeStart&&p.onSwipeStart(I),p.onSwiping&&p.onSwiping(I);let D=!1;return(p.onSwiping||p.onSwiped||p[`onSwiped${F}`])&&(D=!0),D&&p.preventScrollOnSwipe&&p.trackTouch&&f.cancelable&&f.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:I,swiping:!0})})},i=f=>{e((d,p)=>{let v;if(d.swiping&&d.eventData){if(f.timeStamp-d.start<p.swipeDuration){v=Object.assign(Object.assign({},d.eventData),{event:f}),p.onSwiped&&p.onSwiped(v);const y=p[`onSwiped${v.dir}`];y&&y(v)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},d),o2),{eventData:v})})},o=()=>{document.removeEventListener(E3,r),document.removeEventListener(C3,a)},a=f=>{o(),i(f)},s=(f,d)=>{let p=()=>{};if(f&&f.addEventListener){const v=Object.assign(Object.assign({},xc.touchEventOptions),d.touchEventOptions),y=[[yae,n,v],[gae,r,Object.assign(Object.assign({},v),d.preventScrollOnSwipe?{passive:!1}:{})],[vae,i,v]];y.forEach(([g,x,_])=>f.addEventListener(g,x,_)),p=()=>y.forEach(([g,x])=>f.removeEventListener(g,x))}return p},l={ref:f=>{f!==null&&e((d,p)=>{if(d.el===f)return d;const v={};return d.el&&d.el!==f&&d.cleanUpTouch&&(d.cleanUpTouch(),v.cleanUpTouch=void 0),p.trackTouch&&f&&(v.cleanUpTouch=s(f,p)),Object.assign(Object.assign(Object.assign({},d),{el:f}),v)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function xae(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 wae(e){const{trackMouse:t}=e,n=M.useRef(Object.assign({},o2)),r=M.useRef(Object.assign({},xc)),i=M.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},xc),e);let o;for(o in xc)r.current[o]===void 0&&(r.current[o]=xc[o]);const[a,s]=M.useMemo(()=>_ae(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=xae(n.current,r.current,i.current,s),a}var a2={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,c=n.EventSource,l=n.document,f=n.Promise,d=n.fetch,p=n.Response,v=n.TextDecoder,y=n.TextEncoder,g=n.AbortController;if(typeof window<"u"&&typeof l<"u"&&!("readyState"in l)&&l.body==null&&(l.readyState="loading",window.addEventListener("load",function(se){l.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()}),g==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}}}})},g=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="",Pe=this.bitsNeeded,Ae=this.codePoint,le=0;le<se.length;le+=1){var ue=se[le];Pe!==0&&(ue<128||ue>191||!pe(Ae<<6|ue&63,Pe-6,me(Pe,Ae)))&&(Pe=0,Ae=xe,Te+=String.fromCharCode(Ae)),Pe===0?(ue>=0&&ue<=127?(Pe=0,Ae=ue):ue>=192&&ue<=223?(Pe=6*1,Ae=ue&31):ue>=224&&ue<=239?(Pe=6*2,Ae=ue&15):ue>=240&&ue<=247?(Pe=6*3,Ae=ue&7):(Pe=0,Ae=xe),Pe!==0&&!pe(Ae,Pe,me(Pe,Ae))&&(Pe=0,Ae=xe)):(Pe-=6,Ae=Ae<<6|ue&63),Pe===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=Pe,this.codePoint=Ae,Te};var b=function(){try{return new v().decode(new y().encode("test"),{stream:!0})==="test"}catch(se){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+se)}return!1};(v==null||y==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,Pe=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(),Pe!==0&&(i(Pe),Pe=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()}},ue=function(we,ke){if((ke==null||ke.preventDefault==null)&&(ke={preventDefault:w}),le(),Te===1||Te===2||Te===3){if(Te=4,Pe!==0&&(i(Pe),Pe=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))&&ue(xe.responseText===""?"error":"load",we):xe.readyState===3?"onprogress"in xe||le():xe.readyState===2&&Ae())},ge=function(){Pe=r(function(){ge()},500),xe.readyState===3&&le()};"onload"in xe&&(xe.onload=function(we){ue("load",we)}),"onerror"in xe&&(xe.onerror=function(we){ue("error",we)}),"onabort"in xe&&(xe.onabort=function(we){ue("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&&(Pe=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))&&l!=null&&l.readyState!=null&&l.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 C(se){for(var pe=Object.create(null),me=se.split(`\r
`),xe=0;xe<me.length;xe+=1){var Te=me[xe],Pe=Te.split(": "),Ae=Pe.shift(),le=Pe.join(": ");pe[E(Ae)]=le}this._map=pe}C.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,Pe,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 C(ke))}},se.withCredentials=Pe;for(var ue in Ae)Object.prototype.hasOwnProperty.call(Ae,ue)&&se.setRequestHeader(ue,Ae[ue]);return se.send(),se};function A(se){this._headers=se}A.prototype.get=function(se){return this._headers.get(se)};function F(){}F.prototype.open=function(se,pe,me,xe,Te,Pe,Ae){var le=null,ue=new g,ye=ue.signal,ge=new v;return d(Te,{headers:Ae,credentials:Pe?"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 Qe=function(){le.read().then(function(et){if(et.done)ke(void 0);else{var Ke=ge.decode(et.value,{stream:!0});me(Ke),Qe()}}).catch(function(et){Me(et)})};Qe()})}).catch(function(we){if(we.name!=="AbortError")return we}).then(function(we){xe(we)}),{abort:function(){le!=null&&le.cancel(),ue.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(Pe){I(Pe)}}},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,Pe=0;Pe<xe.length;Pe+=1)xe[Pe]===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=[],Pe=0;Pe<xe.length;Pe+=1)xe[Pe]!==pe&&Te.push(xe[Pe]);Te.length===0?delete me[se]:me[se]=Te}};function D(se){this.type=se,this.target=void 0}function q(se,pe){D.call(this,se),this.data=pe.data,this.lastEventId=pe.lastEventId}q.prototype=Object.create(D.prototype);function W(se,pe){D.call(this,se),this.status=pe.status,this.statusText=pe.statusText,this.headers=pe.headers}W.prototype=Object.create(D.prototype);function X(se,pe){D.call(this,se),this.error=pe.error}X.prototype=Object.create(D.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&&p!=null&&"body"in p.prototype;function he(se,pe,me){pe=String(pe);var xe=!!me.withCredentials,Te=me.lastEventIdQueryParameterName||"lastEventId",Pe=N(1e3),Ae=j(me.heartbeatTimeout,45e3),le="",ue=Pe,ye=!1,ge=0,we=me.headers||{},ke=me.Transport,Me=oe&&ke==null?void 0:new S(ke!=null?new ke:Y()),Qe=ke!=null&&typeof ke!="string"?new ke:Me==null?new F:new T,et=void 0,Ke=0,Ht=Q,Dt="",dn="",zn="",Vi="",On=H,ef=0,Wi=0,Ap=function(Jt,Kt,Vn,Sn){if(Ht===ne)if(Jt===200&&Vn!=null&&ie.test(Vn)){Ht=Z,ye=Date.now(),ue=Pe,se.readyState=Z;var En=new W("open",{status:Jt,statusText:Kt,headers:Sn});se.dispatchEvent(En),U(se,se.onopen,En)}else{var on="";Jt!==200?(Kt&&(Kt=Kt.replace(/\s+/g," ")),on="EventSource's response has a status "+Jt+" "+Kt+" that is not 200. Aborting the connection."):on="EventSource's response has a Content-Type specifying an unsupported type: "+(Vn==null?"-":Vn.replace(/\s+/g," "))+". Aborting the connection.",tf();var En=new W("error",{status:Jt,statusText:Kt,headers:Sn});se.dispatchEvent(En),U(se,se.onerror,En),console.error(on)}},kp=function(Jt){if(Ht===Z){for(var Kt=-1,Vn=0;Vn<Jt.length;Vn+=1){var Sn=Jt.charCodeAt(Vn);(Sn===10||Sn===13)&&(Kt=Vn)}var En=(Kt!==-1?Vi:"")+Jt.slice(0,Kt+1);Vi=(Kt===-1?Vi:"")+Jt.slice(Kt+1),Jt!==""&&(ye=Date.now(),ge+=Jt.length);for(var on=0;on<En.length;on+=1){var Sn=En.charCodeAt(on);if(On===B&&Sn===10)On=H;else if(On===B&&(On=H),Sn===13||Sn===10){if(On!==H){On===ee&&(Wi=on+1);var vi=En.slice(ef,Wi-1),gi=En.slice(Wi+(Wi<on&&En.charCodeAt(Wi)===32?1:0),on);vi==="data"?(Dt+=`
`,Dt+=gi):vi==="id"?dn=gi:vi==="event"?zn=gi:vi==="retry"?(Pe=j(gi,Pe),ue=Pe):vi==="heartbeatTimeout"&&(Ae=j(gi,Ae),Ke!==0&&(i(Ke),Ke=r(function(){gs()},Ae)))}if(On===H){if(Dt!==""){le=dn,zn===""&&(zn="message");var Cn=new q(zn,{data:Dt.slice(1),lastEventId:dn});if(se.dispatchEvent(Cn),zn==="open"?U(se,se.onopen,Cn):zn==="message"?U(se,se.onmessage,Cn):zn==="error"&&U(se,se.onerror,Cn),Ht===z)return}Dt="",zn=""}On=Sn===13?B:H}else On===H&&(ef=on,On=ee),On===ee?Sn===58&&(Wi=on+1,On=K):On===K&&(On=te)}}},Np=function(Jt){if(Ht===Z||Ht===ne){Ht=Q,Ke!==0&&(i(Ke),Ke=0),Ke=r(function(){gs()},ue),ue=N(Math.min(Pe*16,ue*2)),se.readyState=ne;var Kt=new X("error",{error:Jt});se.dispatchEvent(Kt),U(se,se.onerror,Kt),Jt!=null&&console.error(Jt)}},tf=function(){Ht=z,et!=null&&(et.abort(),et=void 0),Ke!==0&&(i(Ke),Ke=0),se.readyState=z},gs=function(){if(Ke=0,Ht!==Q){if(!ye&&et!=null)Np(new Error("No activity within "+Ae+" milliseconds. "+(Ht===ne?"No response received.":ge+" chars received.")+" Reconnecting.")),et!=null&&(et.abort(),et=void 0);else{var Jt=Math.max((ye||Date.now())+Ae-Date.now(),1);ye=!1,Ke=r(function(){gs()},Jt)}return}ye=!1,ge=0,Ke=r(function(){gs()},Ae),Ht=ne,Dt="",zn="",dn=le,Vi="",ef=0,Wi=0,On=H;var Kt=pe;if(pe.slice(0,5)!=="data:"&&pe.slice(0,5)!=="blob:"&&le!==""){var Vn=pe.indexOf("?");Kt=Vn===-1?pe:pe.slice(0,Vn+1)+pe.slice(Vn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(gi,Cn){return Cn===Te?"":gi}),Kt+=(pe.indexOf("?")===-1?"?":"&")+Te+"="+encodeURIComponent(le)}var Sn=se.withCredentials,En={};En.Accept="text/event-stream";var on=se.headers;if(on!=null)for(var vi in on)Object.prototype.hasOwnProperty.call(on,vi)&&(En[vi]=on[vi]);try{et=Qe.open(Me,Ap,kp,Np,Kt,Sn,En)}catch(gi){throw tf(),gi}};se.url=pe,se.readyState=ne,se.withCredentials=xe,se.headers=we,se._close=tf,gs()}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=c;o!=null&&(c==null||!("withCredentials"in c.prototype))&&(Se=J),function(se){{var pe=se(t);pe!==void 0&&(e.exports=pe)}}(function(se){se.EventSourcePolyfill=J,se.NativeEventSource=c,se.EventSource=Se})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:oc:globalThis)})(a2,a2.exports);var Oae=a2.exports;const za=({children:e})=>m.jsx("small",{className:"form-text text-muted d-block",children:e}),Sae=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:n,interval:r}=or("realTimeUpdates",{enabled:!0}),i=M.useId();return m.jsxs(yt,{title:"Real-time updates",className:"h-100",children:[m.jsx(hl,{children:m.jsxs(Go,{checked:n,onChange:e,children:["Enable or disable real-time updates.",m.jsxs(za,{children:["Real-time updates are currently being ",m.jsx("b",{children:n?"processed":"ignored"}),"."]})]})}),m.jsxs(ju,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Ee("form-label",{"text-muted":!n}),id:i,children:[m.jsx(Nn,{type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),n&&m.jsx(za,{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."})]})]})},A1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Eae=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."]}),Cae=({updateShortUrlCreationSettings:e})=>{const t=or("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return m.jsxs(yt,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[m.jsxs(Go,{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(za,{children:["The initial state of the ",m.jsx("b",{children:"Validate URL"})," checkbox will be ",m.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]}),m.jsxs(Go,{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(za,{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(ju,{noMargin:!0,label:"Tag suggestions search mode:",children:[m.jsxs(ra,{text:A1(t.tagFilteringMode),children:[m.jsx(Ne,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:A1("startsWith")}),m.jsx(Ne,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:A1("includes")})]}),m.jsx(za,{children:Eae(t.tagFilteringMode)})]})]})},Pae={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Tae=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const n=or("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return m.jsxs(yt,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[m.jsxs(Go,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",m.jsxs(za,{children:["When deleting a short URL, confirmation ",m.jsx("b",{children:r?"will":"won't"})," be required."]})]}),m.jsx(ju,{noMargin:!0,label:"Default ordering for short URLs list:",children:m.jsx(cp,{items:Pae,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(i,o)=>e({defaultOrdering:{field:i,dir:o}})})})]})},jae={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Aae=({updateTagsSettings:e})=>{const t=or("tags",{});return m.jsx(yt,{title:"Tags",className:"h-100",children:m.jsx(ju,{noMargin:!0,label:"Default ordering for tags list:",children:m.jsx(cp,{items:jae,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})})},kae=({updateUiSettings:e,_matchMedia:t})=>{const n=or("ui"),r=M.useMemo(()=>(n==null?void 0:n.theme)??kE(t),[n==null?void 0:n.theme,t]);return m.jsxs(yt,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[m.jsx(Go,{checked:r==="dark",onChange:i=>{e({...n,theme:i?"dark":"light"})},children:"Use dark theme."}),m.jsx(je,{icon:r==="dark"?bK:sK})]})},DD={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Nae=(e,t)=>!e||e==="all"?t:DD[e],Mae=({onChange:e,active:t,allText:n})=>m.jsxs(ra,{text:Nae(t,n),children:[m.jsx(Ne,{active:t==="all",onClick:()=>e("all"),children:n}),m.jsx(Ne,{divider:!0}),Object.entries(DD).map(([r,i])=>m.jsx(Ne,{active:t===r,onClick:()=>e(r),children:i},r))]}),T3=e=>(e==null?void 0:e.defaultInterval)??"last30Days",Lae=({updateVisitsSettings:e})=>{const t=or("visits"),n=M.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??T3(t),...i}),[e,t]);return m.jsxs(yt,{title:"Visits",className:"h-100",children:[m.jsx(hl,{children:m.jsxs(Go,{checked:!!(t!=null&&t.excludeBots),onChange:r=>n({excludeBots:r}),children:["Exclude bots wherever possible (this options effect might depend on Shlink servers version).",m.jsxs(za,{children:["The visits coming from potential bots will be ",m.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),m.jsx(hl,{children:m.jsxs(Go,{checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),children:["Compare visits with previous period.",m.jsxs(za,{children:["When loading visits, previous period ",m.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),m.jsx(ju,{noMargin:!0,label:"Default interval to load on visits sections:",children:m.jsx(Mae,{allText:"All visits",active:T3(t),onChange:r=>n({defaultInterval:r})})})]})},k1=({children:e})=>M.Children.map(e,(t,n)=>m.jsx("div",{className:"mb-3",children:t},n)),Rae=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=M.useCallback(s=>t(h0(e,s)),[e,t]),i=M.useCallback(s=>r({realTimeUpdates:{enabled:s}}),[r]),o=M.useCallback(s=>r({realTimeUpdates:{interval:s}}),[r]),a=M.useCallback((s,c)=>r({[s]:c}),[r]);return m.jsxs(UD,{value:e,children:[m.jsxs(cD,{className:"mb-3",children:[m.jsx(pd,{to:"general",children:"General"}),m.jsx(pd,{to:"short-urls",children:"Short URLs"}),m.jsx(pd,{to:"other-items",children:"Other items"})]}),m.jsxs(Zy,{children:[m.jsx(ot,{path:"general",element:m.jsxs(k1,{children:[m.jsx(kae,{updateUiSettings:s=>a("ui",s)}),m.jsx(Sae,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),m.jsx(ot,{path:"short-urls",element:m.jsxs(k1,{children:[m.jsx(Cae,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),m.jsx(Tae,{defaultOrdering:n,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),m.jsx(ot,{path:"other-items",element:m.jsxs(k1,{children:[m.jsx(Aae,{updateTagsSettings:s=>a("tags",s)}),m.jsx(Lae,{updateVisitsSettings:s=>a("visits",s)})]})}),m.jsx(ot,{path:"*",element:m.jsx(GS,{replace:!0,to:"general"})})]})]})},FD={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},BD=M.createContext(FD),{Provider:UD}=BD,zE=()=>M.useContext(BD)??FD;function or(e,t){return zE()[e]??t}const $ae={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},Iae=$ae,Dae={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"]},zD={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z"]},Fae=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,j3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Fae);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},A3=e=>e==="*"||e==="x"||e==="X",k3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Bae=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Uae=(e,t)=>{if(A3(e)||A3(t))return 0;const[n,r]=Bae(k3(e),k3(t));return n>r?1:n<r?-1:0},N3=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=Uae(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},zae=(e,t)=>{const n=j3(e),r=j3(t),i=n.pop(),o=r.pop(),a=N3(n,r);return a!==0?a:i&&o?N3(i.split("."),o.split(".")):i||o?i?-1:1:0},s2=(e,t,n)=>{Vae(n);const r=zae(e,t);return VD[n].includes(r)},VD={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},M3=Object.keys(VD),Vae=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(M3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${M3.join("|")}`)},Wae={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"]},Hae={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"]},Ms={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},VE=Symbol("Create new tag"),WD=Symbol("No options"),rc=()=>{},_n=V.createContext(void 0);function L3(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Gae(e){return e.selectionStart===0&&e.selectionEnd===0}function qae(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function p0(e){return`${e}-label`}function Kae(e){return`${e}-combobox`}function Yae(e){return`${e}-input`}function HD(e){return`${e}-listbox`}function GD(e,t){return`${e}-option-${nse(t)}`}function Zae(e,t){if((e==null?void 0:e.value)===VE&&e.disabled===!1)return{value:t,label:t}}function Xae(e){const t=Zae(e.activeOption,e.value)||e.activeOption||ase(e.value,e.options);return t&&!t.disabled?t:void 0}function Qae(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const Jae=/%value%/;function Sg(e,t){return e.replace(Jae,t)}function ese(e,t){const n=KD(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 tse=/\s+/g;function l2(e){return`${String(e.value)}-${e.label}`}function nse(e){return l2(e).replace(tse,"_")}function c2(e,t){return t.findIndex(({value:n})=>n===e.value)}const rse=/[-\\^$*+?.()|[\]{}]/g;function qD(e){return e.replace(rse,"\\$&")}function KD(e){return new RegExp(qD(e),"i")}function ise(e){return new RegExp(`^${qD(e)}$`,"i")}function ose(e,t){if(e){const n=KD(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function ase(e,t){const n=ise(e);return t.find(r=>n.test(r.label))||null}const sse={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function lse({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:c,managerRef:l}=M.useContext(_n),f=M.useMemo(()=>{const y=k=>{const I=k.currentTarget.value;l.current.updateInputValue(I),document.activeElement===a.current&&l.current.listBoxExpand(I)},g=()=>{l.current.listBoxExpand()},x=k=>{var I;((I=o.current)==null?void 0:I.contains(k.relatedTarget))===!1&&l.current.listBoxCollapse()},_=()=>{l.current.listBoxExpand()},b=k=>{const{activeIndex:I,isExpanded:D}=l.current.state;D?(k.preventDefault(),l.current.updateActiveIndex(I+1)):(qae(k.currentTarget)||k.altKey)&&(k.preventDefault(),l.current.listBoxExpand())},w=k=>{const{activeIndex:I,isExpanded:D}=l.current.state;D?(k.preventDefault(),l.current.updateActiveIndex(I-1)):Gae(k.currentTarget)&&(k.preventDefault(),l.current.listBoxExpand())},S=k=>{const{isExpanded:I,options:D}=l.current.state;I&&(k.preventDefault(),l.current.updateActiveIndex(D.length-1))},E=k=>{l.current.state.isExpanded&&(k.preventDefault(),l.current.updateActiveIndex(0))},C=()=>{l.current.state.isExpanded?l.current.listBoxCollapse():l.current.updateInputValue("")},T=()=>{if(e){const{value:k,selected:I}=l.current.state,D=I[I.length-1];k===""&&D&&l.current.selectTag(D)}},A=k=>{l.current.state.isExpanded&&(k.preventDefault(),l.current.selectTag())};return{onBlur:x,onChange:y,onClick:_,onFocus:g,onKeyDown:k=>{if(k.key===Ms.UpArrow)return w(k);if(k.key===Ms.DownArrow)return b(k);if(k.key===Ms.PageUp)return E(k);if(k.key===Ms.PageDown)return S(k);if(k.key===Ms.Escape)return C();if(k.key===Ms.Backspace)return T();if(r.includes(k.key))return A(k)}}},[e,o,r,a,l]),{activeOption:d,isExpanded:p,value:v}=l.current.state;return{...sse,"aria-autocomplete":"list","aria-activedescendant":d?GD(i,d):void 0,"aria-controls":HD(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":c&&n||void 0,"aria-invalid":c,"aria-labelledby":p0(i),"aria-expanded":p,id:Yae(i),onBlur:s?rc:f.onBlur,onChange:s?rc:f.onChange,onClick:s?rc:f.onClick,onFocus:s?rc:f.onFocus,onKeyDown:s?rc:f.onKeyDown,ref:a,role:"combobox",type:"text",value:v}}const cse={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},use=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function fse({allowResize:e=!0,text:t}){const n=M.useRef(null),{inputRef:r}=M.useContext(_n),[i,o]=M.useState(null);return M.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);use.forEach(s=>{const c=a.getPropertyValue(s);n.current.style.setProperty(s,c)})}},[e,r,n]),M.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:cse}}}function dse(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=M.useContext(_n),i=r.current.state.activeIndex===-1,o=M.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return M.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":p0(e),id:HD(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function hse({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:a,onCollapse:s,onExpand:c,onInput:l,onShouldCollapse:f,onShouldExpand:d,onValidate:p,selected:v,suggestions:y,suggestionsTransform:g}){const x=M.useRef(),[_,b]=M.useState(null),[w,S]=M.useState(!1),[E,C]=M.useState(""),T=M.useMemo(()=>{const W=g(E,y);return E&&(t&&W.push({disabled:p?!p(E):!1,label:r,value:VE}),W.length===0&&W.push({disabled:!0,label:i,value:WD})),W},[t,r,i,p,y,g,E]),A=_?c2(_,T):-1,F=e?Math.max(A,0):A,k=T[F],I={activeIndex:F,activeOption:k,isExpanded:w,options:T,selected:v,value:E},D={tagsAdded:x.current?L3(v,x.current.state.selected):[],tagsDeleted:x.current?L3(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[F]),c==null||c())},updateActiveIndex(W){const X=Qae(W,T.length,e?0:-1);b(T[X])},updateInputValue(W){E!==W&&(C(W),l==null||l(W))},selectTag(W){if(W??(W=Xae(I)),W){const X=c2(W,I.selected);X>-1?a(X):o(W),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return x.current={...q,flags:D,state:I},x}function pse(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=M.useContext(_n),o=M.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,c=a.disabled??!1,l=c2(a,i.current.state.selected)>-1,f=M.useCallback(()=>{var p;i.current.selectTag(),(p=n.current)==null||p.focus()},[n,i]),d=M.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return gse(o,r,s),{option:{...a,active:s,disabled:c,index:e,selected:l},optionProps:{"aria-disabled":c,"aria-posinset":e+1,"aria-selected":c?void 0:l,"aria-setsize":i.current.state.options.length,id:GD(t,a),onClick:f,onMouseDown:d,ref:o,role:"option",tabIndex:-1}}}function mse({inputRef:e,managerRef:t}){return M.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 vse({onBlur:e,onFocus:t}){const[n,r]=M.useState(!1),{id:i,inputRef:o,rootRef:a}=M.useContext(_n),s=M.useMemo(()=>({"aria-describedby":p0(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var c;(c=a.current)!=null&&c.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var c;document.activeElement===a.current&&((c=o.current)==null||c.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function gse(e,t,n){M.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,c=(i=e.current)==null?void 0:i.offsetTop,l=(o=t.current)==null?void 0:o.offsetHeight,f=(a=t.current)==null?void 0:a.scrollTop;c<f&&t.current.scrollTo(0,c),c+s>f+l&&t.current.scrollTo(0,c+s-l)}},[n,t,e])}function yse(e,t){const{isDisabled:n,managerRef:r}=M.useContext(_n),i=r.current.state.selected[e],o=M.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:Sg(t,i.label),onClick:n?rc:o}}}function bse({label:e}){var t;const{rootRef:n,managerRef:r}=M.useContext(_n),i=M.useRef(),o=r.current.flags.tagsDeleted[0],a=(t=i.current)==null?void 0:t.contains(document.activeElement);return M.useLayoutEffect(()=>{var s,c;if(o){const l=(s=i.current)==null?void 0:s.contains(document.activeElement);a&&!l&&((c=n.current)==null||c.focus({preventScroll:!0}))}},[a,i,n,o]),{ref:i,"aria-label":e}}const _se={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function xse({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=M.useContext(_n),r=M.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(Sg(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(Sg(t,i.label))}),V.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:_se},r.current.join(`
`))}function wse({children:e}){const{classNames:t,comboBoxRef:n,id:r}=M.useContext(_n);return V.createElement("div",{className:t.comboBox,id:Kae(r),ref:n},e)}const Ose=({classNames:e,text:t})=>V.createElement("mark",{className:e.highlight},t);function Sse({option:e,query:t,render:n=Ose}){const{classNames:r}=M.useContext(_n);if(e.value===VE||e.value===WD)return V.createElement(V.Fragment,null,Sg(e.label,t));if(t){const i=ese(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 Ese=V.memo(Sse),Cse=({classNames:e,inputWidth:t,...n})=>V.createElement("input",{className:e.input,style:{width:t},...n});function Pse({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=Cse}){const{classNames:s}=M.useContext(_n),{value:c,...l}=lse({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=c.length<o.length?o:c,{width:d,sizerProps:p}=fse({allowResize:t,text:f});return V.createElement(V.Fragment,null,a({classNames:s,inputWidth:d,placeholder:o,value:c,...l}),t?V.createElement("div",{...p},f):null)}const Tse=({children:e,classNames:t,id:n})=>V.createElement("div",{className:t.label,id:n},e);function jse({children:e,render:t=Tse}){const{classNames:n,id:r}=M.useContext(_n);return t({children:e,classNames:n,id:p0(r)})}const Ase=({children:e,classNames:t,...n})=>V.createElement("div",{className:t.listBox,...n},e);function kse({children:e,render:t=Ase}){const{classNames:n,managerRef:r}=M.useContext(_n),i=dse();return!r.current.state.isExpanded||V.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Nse=({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 Mse({children:e,index:t,render:n=Nse}){const{classNames:r}=M.useContext(_n),{option:i,optionProps:o}=pse(t);return n({classNames:r,children:e,option:i,...o})}const Lse=({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 Rse({children:e,onBlur:t,onFocus:n,render:r=Lse}){const{classNames:i,isDisabled:o,isInvalid:a}=M.useContext(_n),{isActive:s,rootProps:c}=vse({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...c})}const $se=({classNames:e,tag:t,...n})=>V.createElement("button",{type:"button",className:e.tag,...n},V.createElement("span",{className:e.tagName},t.label));function Ise({render:e=$se,index:t,title:n}){const{classNames:r}=M.useContext(_n),{tag:i,tagProps:o}=yse(t,n);return e({classNames:r,tag:i,...o})}const Dse=({children:e,classNames:t,...n})=>V.createElement("ul",{className:t.tagList,...n,role:"list"},V.Children.map(e,r=>{if(V.isValidElement(r))return V.createElement("li",{className:t.tagListItem,key:r.key,role:"listitem"},r)}));function Fse({children:e,label:t,render:n=Dse}){const{classNames:r}=M.useContext(_n),i=bse({label:t});return n({classNames:r,children:e,...i})}const Bse={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"},Use=[Ms.Enter];function zse({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:c=Bse,collapseOnSelect:l=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=Use,id:p="react-tags",isDisabled:v=!1,isInvalid:y=!1,labelText:g="Select tags",newOptionText:x="Add %value%",noOptionsText:_="No options found for %value%",onAdd:b,onBlur:w,onCollapse:S,onDelete:E,onExpand:C,onFocus:T,onInput:A,onShouldCollapse:F,onShouldExpand:k,onValidate:I,placeholderText:D="Add a tag",renderHighlight:q,renderInput:W,renderLabel:X,renderListBox:Q,renderOption:ne,renderRoot:Z,renderTag:z,renderTagList:B,selected:H=[],suggestions:ee=[],suggestionsTransform:K=ose,tagListLabelText:te="Selected tags"},ie){const ae=M.useRef(null),fe=M.useRef(null),j=M.useRef(null),N=M.useRef(null),U=hse({activateFirstOption:e,allowNew:n,collapseOnSelect:l,newOptionText:x,noOptionsText:_,onAdd:b,onDelete:E,onCollapse:S,onExpand:C,onInput:A,onShouldCollapse:F,onShouldExpand:k,onValidate:I,selected:H,suggestions:ee,suggestionsTransform:K}),J=mse({inputRef:fe,managerRef:U});return ie&&(typeof ie=="function"?ie(J):ie.current=J),V.createElement(_n.Provider,{value:{classNames:c,comboBoxRef:ae,id:p,inputRef:fe,isDisabled:v,isInvalid:y,listBoxRef:j,managerRef:U,rootRef:N}},V.createElement(Rse,{onBlur:w,onFocus:T,render:Z},V.createElement(jse,{render:X},g),V.createElement(Fse,{render:B,label:te},U.current.state.selected.map((Y,oe)=>V.createElement(Ise,{key:l2(Y),index:oe,render:z,title:f}))),V.createElement(wse,null,V.createElement(Pse,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:D,render:W}),V.createElement(kse,{render:Q},U.current.state.options.map((Y,oe)=>V.createElement(Mse,{key:l2(Y),index:oe,render:ne},V.createElement(Ese,{option:Y,query:U.current.state.value,render:q}))))),V.createElement(xse,{ariaAddedText:i,ariaDeletedText:s})))}const Vse=V.forwardRef(zse);function N1(e){return e==null?"":`${e}`}function Wse(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 WE(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 Hse(e={stringFormatter:WE()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Gse(e={stringFormatter:WE()}){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 qse=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Kse(e){var t,n,r;const i=[];let o;for(;o=qse.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 R3(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:Kse(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 YD(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function u2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var $3;(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"})($3||($3={}));class Yse{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||WE(),i=Gse({stringFormatter:r}),o={header:r,undefined:N1,boolean:N1,number:Wse(),bigint:N1,string:r,symbol:Hse({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=>R3(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=>R3(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(c){const l=s(c,a);return l===void 0?i:l}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return u2(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(YD,[]),[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 u2(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 ZD extends Yse{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(c=>{a.includes(c)||a.push(c)}),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(YD,[])}processData(t){return u2(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var pn;(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"})(pn||(pn={}));pn.QUOTATION_MARK+"",pn.QUOTATION_MARK,pn.REVERSE_SOLIDUS+"",pn.REVERSE_SOLIDUS,pn.SOLIDUS+"",pn.SOLIDUS,pn.LATIN_SMALL_LETTER_B+"",pn.BACKSPACE,pn.LATIN_SMALL_LETTER_F+"",pn.FORM_FEED,pn.LATIN_SMALL_LETTER_N+"",pn.NEWLINE,pn.LATIN_SMALL_LETTER_R+"",pn.CARRIAGE_RETURN,pn.LATIN_SMALL_LETTER_T+"",pn.TAB;var I3;(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"})(I3||(I3={}));var D3;(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"})(D3||(D3={}));var F3;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(F3||(F3={}));var B3;(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"})(B3||(B3={}));var Zse=Array.isArray,_r=Zse,Xse=typeof oc=="object"&&oc&&oc.Object===Object&&oc,XD=Xse,Qse=XD,Jse=typeof self=="object"&&self&&self.Object===Object&&self,ele=Qse||Jse||Function("return this")(),_o=ele,tle=_o,nle=tle.Symbol,hp=nle,U3=hp,QD=Object.prototype,rle=QD.hasOwnProperty,ile=QD.toString,Tf=U3?U3.toStringTag:void 0;function ole(e){var t=rle.call(e,Tf),n=e[Tf];try{e[Tf]=void 0;var r=!0}catch{}var i=ile.call(e);return r&&(t?e[Tf]=n:delete e[Tf]),i}var ale=ole,sle=Object.prototype,lle=sle.toString;function cle(e){return lle.call(e)}var ule=cle,z3=hp,fle=ale,dle=ule,hle="[object Null]",ple="[object Undefined]",V3=z3?z3.toStringTag:void 0;function mle(e){return e==null?e===void 0?ple:hle:V3&&V3 in Object(e)?fle(e):dle(e)}var ia=mle;function vle(e){return e!=null&&typeof e=="object"}var oa=vle,gle=ia,yle=oa,ble="[object Symbol]";function _le(e){return typeof e=="symbol"||yle(e)&&gle(e)==ble}var Nu=_le,xle=_r,wle=Nu,Ole=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sle=/^\w*$/;function Ele(e,t){if(xle(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wle(e)?!0:Sle.test(e)||!Ole.test(e)||t!=null&&e in Object(t)}var HE=Ele;function Cle(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fs=Cle;const Mu=at(fs);var Ple=ia,Tle=fs,jle="[object AsyncFunction]",Ale="[object Function]",kle="[object GeneratorFunction]",Nle="[object Proxy]";function Mle(e){if(!Tle(e))return!1;var t=Ple(e);return t==Ale||t==kle||t==jle||t==Nle}var GE=Mle;const Ve=at(GE);var Lle=_o,Rle=Lle["__core-js_shared__"],$le=Rle,M1=$le,W3=function(){var e=/[^.]+$/.exec(M1&&M1.keys&&M1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ile(e){return!!W3&&W3 in e}var Dle=Ile,Fle=Function.prototype,Ble=Fle.toString;function Ule(e){if(e!=null){try{return Ble.call(e)}catch{}try{return e+""}catch{}}return""}var JD=Ule,zle=GE,Vle=Dle,Wle=fs,Hle=JD,Gle=/[\\^$.*+?()[\]{}|]/g,qle=/^\[object .+?Constructor\]$/,Kle=Function.prototype,Yle=Object.prototype,Zle=Kle.toString,Xle=Yle.hasOwnProperty,Qle=RegExp("^"+Zle.call(Xle).replace(Gle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jle(e){if(!Wle(e)||Vle(e))return!1;var t=zle(e)?Qle:qle;return t.test(Hle(e))}var ece=Jle;function tce(e,t){return e==null?void 0:e[t]}var nce=tce,rce=ece,ice=nce;function oce(e,t){var n=ice(e,t);return rce(n)?n:void 0}var Cl=oce,ace=Cl,sce=ace(Object,"create"),m0=sce,H3=m0;function lce(){this.__data__=H3?H3(null):{},this.size=0}var cce=lce;function uce(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fce=uce,dce=m0,hce="__lodash_hash_undefined__",pce=Object.prototype,mce=pce.hasOwnProperty;function vce(e){var t=this.__data__;if(dce){var n=t[e];return n===hce?void 0:n}return mce.call(t,e)?t[e]:void 0}var gce=vce,yce=m0,bce=Object.prototype,_ce=bce.hasOwnProperty;function xce(e){var t=this.__data__;return yce?t[e]!==void 0:_ce.call(t,e)}var wce=xce,Oce=m0,Sce="__lodash_hash_undefined__";function Ece(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Oce&&t===void 0?Sce:t,this}var Cce=Ece,Pce=cce,Tce=fce,jce=gce,Ace=wce,kce=Cce;function Lu(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])}}Lu.prototype.clear=Pce;Lu.prototype.delete=Tce;Lu.prototype.get=jce;Lu.prototype.has=Ace;Lu.prototype.set=kce;var Nce=Lu;function Mce(){this.__data__=[],this.size=0}var Lce=Mce;function Rce(e,t){return e===t||e!==e&&t!==t}var qE=Rce,$ce=qE;function Ice(e,t){for(var n=e.length;n--;)if($ce(e[n][0],t))return n;return-1}var v0=Ice,Dce=v0,Fce=Array.prototype,Bce=Fce.splice;function Uce(e){var t=this.__data__,n=Dce(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Bce.call(t,n,1),--this.size,!0}var zce=Uce,Vce=v0;function Wce(e){var t=this.__data__,n=Vce(t,e);return n<0?void 0:t[n][1]}var Hce=Wce,Gce=v0;function qce(e){return Gce(this.__data__,e)>-1}var Kce=qce,Yce=v0;function Zce(e,t){var n=this.__data__,r=Yce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Xce=Zce,Qce=Lce,Jce=zce,eue=Hce,tue=Kce,nue=Xce;function Ru(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])}}Ru.prototype.clear=Qce;Ru.prototype.delete=Jce;Ru.prototype.get=eue;Ru.prototype.has=tue;Ru.prototype.set=nue;var g0=Ru,rue=Cl,iue=_o,oue=rue(iue,"Map"),KE=oue,G3=Nce,aue=g0,sue=KE;function lue(){this.size=0,this.__data__={hash:new G3,map:new(sue||aue),string:new G3}}var cue=lue;function uue(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fue=uue,due=fue;function hue(e,t){var n=e.__data__;return due(t)?n[typeof t=="string"?"string":"hash"]:n.map}var y0=hue,pue=y0;function mue(e){var t=pue(this,e).delete(e);return this.size-=t?1:0,t}var vue=mue,gue=y0;function yue(e){return gue(this,e).get(e)}var bue=yue,_ue=y0;function xue(e){return _ue(this,e).has(e)}var wue=xue,Oue=y0;function Sue(e,t){var n=Oue(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Eue=Sue,Cue=cue,Pue=vue,Tue=bue,jue=wue,Aue=Eue;function $u(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])}}$u.prototype.clear=Cue;$u.prototype.delete=Pue;$u.prototype.get=Tue;$u.prototype.has=jue;$u.prototype.set=Aue;var YE=$u,e5=YE,kue="Expected a function";function ZE(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kue);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(ZE.Cache||e5),n}ZE.Cache=e5;var t5=ZE;const Nue=at(t5);var Mue=t5,Lue=500;function Rue(e){var t=Mue(e,function(r){return n.size===Lue&&n.clear(),r}),n=t.cache;return t}var $ue=Rue,Iue=$ue,Due=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fue=/\\(\\)?/g,Bue=Iue(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Due,function(n,r,i,o){t.push(i?o.replace(Fue,"$1"):r||n)}),t}),Uue=Bue;function zue(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 XE=zue,q3=hp,Vue=XE,Wue=_r,Hue=Nu,Gue=1/0,K3=q3?q3.prototype:void 0,Y3=K3?K3.toString:void 0;function n5(e){if(typeof e=="string")return e;if(Wue(e))return Vue(e,n5)+"";if(Hue(e))return Y3?Y3.call(e):"";var t=e+"";return t=="0"&&1/e==-Gue?"-0":t}var que=n5,Kue=que;function Yue(e){return e==null?"":Kue(e)}var r5=Yue,Zue=_r,Xue=HE,Que=Uue,Jue=r5;function efe(e,t){return Zue(e)?e:Xue(e,t)?[e]:Que(Jue(e))}var i5=efe,tfe=Nu,nfe=1/0;function rfe(e){if(typeof e=="string"||tfe(e))return e;var t=e+"";return t=="0"&&1/e==-nfe?"-0":t}var b0=rfe,ife=i5,ofe=b0;function afe(e,t){t=ife(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ofe(t[n++])];return n&&n==r?e:void 0}var QE=afe,sfe=QE;function lfe(e,t,n){var r=e==null?void 0:sfe(e,t);return r===void 0?n:r}var o5=lfe;const Nr=at(o5);function cfe(e){return e==null}var ufe=cfe;const Ue=at(ufe);var ffe=ia,dfe=_r,hfe=oa,pfe="[object String]";function mfe(e){return typeof e=="string"||!dfe(e)&&hfe(e)&&ffe(e)==pfe}var vfe=mfe;const pp=at(vfe);var a5={exports:{}},mt={};/** @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 xn=typeof Symbol=="function"&&Symbol.for,JE=xn?Symbol.for("react.element"):60103,eC=xn?Symbol.for("react.portal"):60106,_0=xn?Symbol.for("react.fragment"):60107,x0=xn?Symbol.for("react.strict_mode"):60108,w0=xn?Symbol.for("react.profiler"):60114,O0=xn?Symbol.for("react.provider"):60109,S0=xn?Symbol.for("react.context"):60110,tC=xn?Symbol.for("react.async_mode"):60111,E0=xn?Symbol.for("react.concurrent_mode"):60111,C0=xn?Symbol.for("react.forward_ref"):60112,P0=xn?Symbol.for("react.suspense"):60113,gfe=xn?Symbol.for("react.suspense_list"):60120,T0=xn?Symbol.for("react.memo"):60115,j0=xn?Symbol.for("react.lazy"):60116,yfe=xn?Symbol.for("react.block"):60121,bfe=xn?Symbol.for("react.fundamental"):60117,_fe=xn?Symbol.for("react.responder"):60118,xfe=xn?Symbol.for("react.scope"):60119;function zr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JE:switch(e=e.type,e){case tC:case E0:case _0:case w0:case x0:case P0:return e;default:switch(e=e&&e.$$typeof,e){case S0:case C0:case j0:case T0:case O0:return e;default:return t}}case eC:return t}}}function s5(e){return zr(e)===E0}mt.AsyncMode=tC;mt.ConcurrentMode=E0;mt.ContextConsumer=S0;mt.ContextProvider=O0;mt.Element=JE;mt.ForwardRef=C0;mt.Fragment=_0;mt.Lazy=j0;mt.Memo=T0;mt.Portal=eC;mt.Profiler=w0;mt.StrictMode=x0;mt.Suspense=P0;mt.isAsyncMode=function(e){return s5(e)||zr(e)===tC};mt.isConcurrentMode=s5;mt.isContextConsumer=function(e){return zr(e)===S0};mt.isContextProvider=function(e){return zr(e)===O0};mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JE};mt.isForwardRef=function(e){return zr(e)===C0};mt.isFragment=function(e){return zr(e)===_0};mt.isLazy=function(e){return zr(e)===j0};mt.isMemo=function(e){return zr(e)===T0};mt.isPortal=function(e){return zr(e)===eC};mt.isProfiler=function(e){return zr(e)===w0};mt.isStrictMode=function(e){return zr(e)===x0};mt.isSuspense=function(e){return zr(e)===P0};mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_0||e===E0||e===w0||e===x0||e===P0||e===gfe||typeof e=="object"&&e!==null&&(e.$$typeof===j0||e.$$typeof===T0||e.$$typeof===O0||e.$$typeof===S0||e.$$typeof===C0||e.$$typeof===bfe||e.$$typeof===_fe||e.$$typeof===xfe||e.$$typeof===yfe)};mt.typeOf=zr;a5.exports=mt;var f2=a5.exports,wfe=ia,Ofe=oa,Sfe="[object Number]";function Efe(e){return typeof e=="number"||Ofe(e)&&wfe(e)==Sfe}var l5=Efe;const Cfe=at(l5);var Pfe=l5;function Tfe(e){return Pfe(e)&&e!=+e}var jfe=Tfe;const Iu=at(jfe);var Yn=function(t){return t===0?0:t>0?1:-1},Ws=function(t){return pp(t)&&t.indexOf("%")===t.length-1},Ce=function(t){return Cfe(t)&&!Iu(t)},cn=function(t){return Ce(t)||pp(t)},Afe=0,ds=function(t){var n=++Afe;return"".concat(t||"").concat(n)},Zn=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(!Ce(t)&&!pp(t))return r;var o;if(Ws(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Iu(o)&&(o=r),i&&o>n&&(o=n),o},Sa=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},kfe=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},Ut=function(t,n){return Ce(t)&&Ce(n)?function(r){return t+r*(n-t)}:function(){return n}};function Eg(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Nr(r,t))===n})}var Nfe=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,o=0,a=0,s=1/0,c=-1/0,l=0,f=0,d=0;d<n;d++)l=t[d].cx||0,f=t[d].cy||0,r+=l,i+=f,o+=l*f,a+=l*l,s=Math.min(s,l),c=Math.max(c,l);var p=n*a!==r*r?(n*o-r*i)/(n*a-r*r):0;return{xmin:s,xmax:c,a:p,b:(i-p*r)/n}};function Lc(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 d2(e){"@babel/helpers - typeof";return d2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d2(e)}var Mfe=["viewBox","children"],Lfe=["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"],Z3=["points","pathLength"],L1={svg:Mfe,polygon:Z3,polyline:Z3},nC=["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"],Cg=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(M.isValidElement(t)&&(r=t.props),!Mu(r))return null;var i={};return Object.keys(r).forEach(function(o){nC.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},Rfe=function(t,n,r){return function(i){return t(n,r,i),null}},Ja=function(t,n,r){if(!Mu(t)||d2(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];nC.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=Rfe(a,n,r))}),i},$fe=["children"],Ife=["children"];function X3(e,t){if(e==null)return{};var n=Dfe(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 Dfe(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 h2(e){"@babel/helpers - typeof";return h2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h2(e)}var Q3={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ro=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},J3=null,R1=null,rC=function e(t){if(t===J3&&Array.isArray(R1))return R1;var n=[];return M.Children.forEach(t,function(r){Ue(r)||(f2.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),R1=n,J3=t,n};function tr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ro(i)}):r=[Ro(t)],rC(e).forEach(function(i){var o=Nr(i,"type.displayName")||Nr(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Er(e,t){var n=tr(e,t);return n&&n[0]}var ek=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Ce(r)||r<=0||!Ce(i)||i<=0)},Ffe=["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"],Bfe=function(t){return t&&t.type&&pp(t.type)&&Ffe.indexOf(t.type)>=0},c5=function(t){return t&&h2(t)==="object"&&"cx"in t&&"cy"in t&&"r"in t},Ufe=function(t,n,r,i){var o,a=(o=L1==null?void 0:L1[i])!==null&&o!==void 0?o:[];return!Ve(t)&&(i&&a.includes(n)||Lfe.includes(n))||r&&nC.includes(n)},De=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(M.isValidElement(t)&&(i=t.props),!Mu(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;Ufe((s=i)===null||s===void 0?void 0:s[a],a,n,r)&&(o[a]=i[a])}),o},p2=function e(t,n){if(t===n)return!0;var r=M.Children.count(t);if(r!==M.Children.count(n))return!1;if(r===0)return!0;if(r===1)return tk(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(!tk(o,a))return!1}return!0},tk=function(t,n){if(Ue(t)&&Ue(n))return!0;if(!Ue(t)&&!Ue(n)){var r=t.props||{},i=r.children,o=X3(r,$fe),a=n.props||{},s=a.children,c=X3(a,Ife);return i&&s?Lc(o,c)&&p2(i,s):!i&&!s?Lc(o,c):!1}return!1},nk=function(t,n){var r=[],i={};return rC(t).forEach(function(o,a){if(Bfe(o))r.push(o);else if(o){var s=Ro(o.type),c=n[s]||{},l=c.handler,f=c.once;if(l&&(!f||!i[s])){var d=l(o,s,a);r.push(d),i[s]=!0}}}),r},zfe=function(t){var n=t&&t.type;return n&&Q3[n]?Q3[n]:null},Vfe=function(t,n){return rC(n).indexOf(t)},Wfe=["children","width","height","viewBox","className","style","title","desc"];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 Hfe(e,t){if(e==null)return{};var n=Gfe(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 Gfe(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 v2(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,c=e.desc,l=Hfe(e,Wfe),f=i||{width:n,height:r,x:0,y:0},d=Ee("recharts-surface",o);return V.createElement("svg",m2({},De(l,!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,c),t)}var qfe=["children","className"];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 Kfe(e,t){if(e==null)return{};var n=Yfe(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 Yfe(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 Ze=V.forwardRef(function(e,t){var n=e.children,r=e.className,i=Kfe(e,qfe),o=Ee("recharts-layer",r);return V.createElement("g",g2({className:o},De(i,!0),{ref:t}),n)}),Ni=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 Zfe(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 Xfe=Zfe,Qfe=Xfe;function Jfe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Qfe(e,t,n)}var ede=Jfe,tde="\\ud800-\\udfff",nde="\\u0300-\\u036f",rde="\\ufe20-\\ufe2f",ide="\\u20d0-\\u20ff",ode=nde+rde+ide,ade="\\ufe0e\\ufe0f",sde="\\u200d",lde=RegExp("["+sde+tde+ode+ade+"]");function cde(e){return lde.test(e)}var u5=cde;function ude(e){return e.split("")}var fde=ude,f5="\\ud800-\\udfff",dde="\\u0300-\\u036f",hde="\\ufe20-\\ufe2f",pde="\\u20d0-\\u20ff",mde=dde+hde+pde,vde="\\ufe0e\\ufe0f",gde="["+f5+"]",y2="["+mde+"]",b2="\\ud83c[\\udffb-\\udfff]",yde="(?:"+y2+"|"+b2+")",d5="[^"+f5+"]",h5="(?:\\ud83c[\\udde6-\\uddff]){2}",p5="[\\ud800-\\udbff][\\udc00-\\udfff]",bde="\\u200d",m5=yde+"?",v5="["+vde+"]?",_de="(?:"+bde+"(?:"+[d5,h5,p5].join("|")+")"+v5+m5+")*",xde=v5+m5+_de,wde="(?:"+[d5+y2+"?",y2,h5,p5,gde].join("|")+")",Ode=RegExp(b2+"(?="+b2+")|"+wde+xde,"g");function Sde(e){return e.match(Ode)||[]}var Ede=Sde,Cde=fde,Pde=u5,Tde=Ede;function jde(e){return Pde(e)?Tde(e):Cde(e)}var Ade=jde,kde=ede,Nde=u5,Mde=Ade,Lde=r5;function Rde(e){return function(t){t=Lde(t);var n=Nde(t)?Mde(t):void 0,r=n?n[0]:t.charAt(0),i=n?kde(n,1).join(""):t.slice(1);return r[e]()+i}}var $de=Rde,Ide=$de,Dde=Ide("toUpperCase"),Fde=Dde;const A0=at(Fde);function xt(e){return function(){return e}}const g5=Math.cos,Pg=Math.sin,Bi=Math.sqrt,Tg=Math.PI,k0=2*Tg,_2=Math.PI,x2=2*_2,Ls=1e-6,Bde=x2-Ls;function y5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Ude(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return y5;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 zde{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?y5:Ude(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,c=r-t,l=i-n,f=a-t,d=s-n,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>Ls)if(!(Math.abs(d*c-l*f)>Ls)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-a,y=i-s,g=c*c+l*l,x=v*v+y*y,_=Math.sqrt(g),b=Math.sqrt(p),w=o*Math.tan((_2-Math.acos((g+p-x)/(2*_*b)))/2),S=w/b,E=w/_;Math.abs(S-1)>Ls&&this._append`L${t+S*f},${n+S*d}`,this._append`A${o},${o},0,0,${+(d*v>f*y)},${this._x1=t+E*c},${this._y1=n+E*l}`}}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),c=r*Math.sin(i),l=t+s,f=n+c,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>Ls||Math.abs(this._y1-f)>Ls)&&this._append`L${l},${f}`,r&&(p<0&&(p=p%x2+x2),p>Bde?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=f}`:p>Ls&&this._append`A${r},${r},0,${+(p>=_2)},${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 iC(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 zde(t)}function oC(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function b5(e){this._context=e}b5.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 N0(e){return new b5(e)}function _5(e){return e[0]}function x5(e){return e[1]}function w5(e,t){var n=xt(!0),r=null,i=N0,o=null,a=iC(s);e=typeof e=="function"?e:e===void 0?_5:xt(e),t=typeof t=="function"?t:t===void 0?x5:xt(t);function s(c){var l,f=(c=oC(c)).length,d,p=!1,v;for(r==null&&(o=i(v=a())),l=0;l<=f;++l)!(l<f&&n(d=c[l],l,c))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,l,c),+t(d,l,c));if(v)return o=null,v+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:xt(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:xt(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:xt(!!c),s):n},s.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),s):i},s.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),s):r},s}function _m(e,t,n){var r=null,i=xt(!0),o=null,a=N0,s=null,c=iC(l);e=typeof e=="function"?e:e===void 0?_5:xt(+e),t=typeof t=="function"?t:xt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?x5:xt(+n);function l(d){var p,v,y,g=(d=oC(d)).length,x,_=!1,b,w=new Array(g),S=new Array(g);for(o==null&&(s=a(b=c())),p=0;p<=g;++p){if(!(p<g&&i(x=d[p],p,d))===_)if(_=!_)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=p-1;y>=v;--y)s.point(w[y],S[y]);s.lineEnd(),s.areaEnd()}_&&(w[p]=+e(x,p,d),S[p]=+t(x,p,d),s.point(r?+r(x,p,d):w[p],n?+n(x,p,d):S[p]))}if(b)return s=null,b+""||null}function f(){return w5().defined(i).curve(a).context(o)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:xt(+d),r=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:xt(+d),l):e},l.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:xt(+d),l):r},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:xt(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:xt(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:xt(+d),l):n},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(n)},l.lineX1=function(){return f().x(r).y(t)},l.defined=function(d){return arguments.length?(i=typeof d=="function"?d:xt(!!d),l):i},l.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),l):a},l.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),l):o},l}class O5{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 Vde(e){return new O5(e,!0)}function Wde(e){return new O5(e,!1)}const aC={draw(e,t){const n=Bi(t/Tg);e.moveTo(n,0),e.arc(0,0,n,0,k0)}},Hde={draw(e,t){const n=Bi(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()}},S5=Bi(1/3),Gde=S5*2,qde={draw(e,t){const n=Bi(t/Gde),r=n*S5;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Kde={draw(e,t){const n=Bi(t),r=-n/2;e.rect(r,r,n,n)}},Yde=.8908130915292852,E5=Pg(Tg/10)/Pg(7*Tg/10),Zde=Pg(k0/10)*E5,Xde=-g5(k0/10)*E5,Qde={draw(e,t){const n=Bi(t*Yde),r=Zde*n,i=Xde*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=k0*o/5,s=g5(a),c=Pg(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*i,c*r+s*i)}e.closePath()}},$1=Bi(3),Jde={draw(e,t){const n=-Bi(t/($1*3));e.moveTo(0,n*2),e.lineTo(-$1*n,-n),e.lineTo($1*n,-n),e.closePath()}},qr=-.5,Kr=Bi(3)/2,w2=1/Bi(12),ehe=(w2/2+1)*3,the={draw(e,t){const n=Bi(t/ehe),r=n/2,i=n*w2,o=r,a=n*w2+n,s=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(qr*r-Kr*i,Kr*r+qr*i),e.lineTo(qr*o-Kr*a,Kr*o+qr*a),e.lineTo(qr*s-Kr*c,Kr*s+qr*c),e.lineTo(qr*r+Kr*i,qr*i-Kr*r),e.lineTo(qr*o+Kr*a,qr*a-Kr*o),e.lineTo(qr*s+Kr*c,qr*c-Kr*s),e.closePath()}};function nhe(e,t){let n=null,r=iC(i);e=typeof e=="function"?e:xt(e||aC),t=typeof t=="function"?t:xt(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:xt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:xt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function jg(){}function Ag(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 C5(e){this._context=e}C5.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:Ag(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:Ag(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rhe(e){return new C5(e)}function P5(e){this._context=e}P5.prototype={areaStart:jg,areaEnd:jg,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:Ag(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ihe(e){return new P5(e)}function T5(e){this._context=e}T5.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:Ag(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ohe(e){return new T5(e)}function j5(e){this._context=e}j5.prototype={areaStart:jg,areaEnd:jg,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 ahe(e){return new j5(e)}function rk(e){return e<0?-1:1}function ik(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(rk(o)+rk(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ok(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function I1(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 kg(e){this._context=e}kg.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:I1(this,this._t0,ok(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,I1(this,ok(this,n=ik(this,e,t)),n);break;default:I1(this,this._t0,n=ik(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function A5(e){this._context=new k5(e)}(A5.prototype=Object.create(kg.prototype)).point=function(e,t){kg.prototype.point.call(this,t,e)};function k5(e){this._context=e}k5.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 she(e){return new kg(e)}function lhe(e){return new A5(e)}function N5(e){this._context=e}N5.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=ak(e),i=ak(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 ak(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 che(e){return new N5(e)}function M0(e,t){this._context=e,this._t=t}M0.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 uhe(e){return new M0(e,.5)}function fhe(e){return new M0(e,0)}function dhe(e){return new M0(e,1)}function tu(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 O2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function hhe(e,t){return e[t]}function phe(e){const t=[];return t.key=e,t}function mhe(){var e=xt([]),t=O2,n=tu,r=hhe;function i(o){var a=Array.from(e.apply(this,arguments),phe),s,c=a.length,l=-1,f;for(const d of o)for(s=0,++l;s<c;++s)(a[s][l]=[0,+r(d,a[s].key,l,o)]).data=d;for(s=0,f=oC(t(a));s<c;++s)a[f[s]].index=s;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:xt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:xt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?O2:typeof o=="function"?o:xt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??tu,i):n},i}function vhe(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}tu(e,t)}}function ghe(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}tu(e,t)}}function yhe(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,c=0,l=0;s<a;++s){for(var f=e[t[s]],d=f[r][1]||0,p=f[r-1][1]||0,v=(d-p)/2,y=0;y<s;++y){var g=e[t[y]],x=g[r][1]||0,_=g[r-1][1]||0;v+=x-_}c+=d,l+=v*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,tu(e,t)}}function sh(e){"@babel/helpers - typeof";return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sh(e)}var bhe=["type","size","sizeType"];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 sk(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 lk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sk(Object(n),!0).forEach(function(r){_he(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _he(e,t,n){return t=xhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xhe(e){var t=whe(e,"string");return sh(t)=="symbol"?t:String(t)}function whe(e,t){if(sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ohe(e,t){if(e==null)return{};var n=She(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 She(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 M5={symbolCircle:aC,symbolCross:Hde,symbolDiamond:qde,symbolSquare:Kde,symbolStar:Qde,symbolTriangle:Jde,symbolWye:the},Ehe=Math.PI/180,Che=function(t){var n="symbol".concat(A0(t));return M5[n]||aC},Phe=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*Ehe;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}},The=function(t,n){M5["symbol".concat(A0(t))]=n},L0=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,c=Ohe(t,bhe),l=lk(lk({},c),{},{type:r,size:o,sizeType:s}),f=function(){var x=Che(r),_=nhe().type(x).size(Phe(o,s,r));return _()},d=l.className,p=l.cx,v=l.cy,y=De(l,!0);return p===+p&&v===+v&&o===+o?V.createElement("path",S2({},y,{className:Ee("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(v,")"),d:f()})):null};L0.registerSymbol=The;function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function E2(){return E2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E2.apply(this,arguments)}function ck(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 jhe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ck(Object(n),!0).forEach(function(r){lh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ck(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ahe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function khe(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,R5(r.key),r)}}function Nhe(e,t,n){return t&&khe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mhe(e,t,n){return t=Ng(t),Lhe(e,L5()?Reflect.construct(t,n||[],Ng(e).constructor):t.apply(e,n))}function Lhe(e,t){if(t&&(nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rhe(e)}function Rhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L5=function(){return!!e})()}function Ng(e){return Ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ng(e)}function $he(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&&C2(e,t)}function C2(e,t){return C2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},C2(e,t)}function lh(e,t,n){return t=R5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R5(e){var t=Ihe(e,"string");return nu(t)=="symbol"?t:String(t)}function Ihe(e,t){if(nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yr=32,sC=function(e){$he(t,e);function t(){return Ahe(this,t),Mhe(this,t,arguments)}return Nhe(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Yr/2,a=Yr/6,s=Yr/3,c=r.inactive?i:r.color;if(r.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Yr,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(s,`
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
H`).concat(Yr,"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:c,d:"M0,".concat(Yr/8,"h").concat(Yr,"v").concat(Yr*3/4,"h").concat(-Yr,"z"),className:"recharts-legend-icon"});if(V.isValidElement(r.legendIcon)){var l=jhe({},r);return delete l.legendIcon,V.cloneElement(r.legendIcon,l)}return V.createElement(L0,{fill:c,cx:o,cy:o,size:Yr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,c=i.formatter,l=i.inactiveColor,f={x:0,y:0,width:Yr,height:Yr},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,y){var g=v.formatter||c,x=Ee(lh(lh({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",v.inactive));if(v.type==="none")return null;var _=Ve(v.value)?null:v.value;Ni(!Ve(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?l:v.color;return V.createElement("li",E2({className:x,style:d,key:"legend-item-".concat(y)},Ja(r.props,v,y)),V.createElement(v2,{width:a,height:a,viewBox:f,style:p},r.renderIcon(v)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},g?g(_,v,y):_))})}},{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}(M.PureComponent);lh(sC,"displayName","Legend");lh(sC,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Dhe=g0;function Fhe(){this.__data__=new Dhe,this.size=0}var Bhe=Fhe;function Uhe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var zhe=Uhe;function Vhe(e){return this.__data__.get(e)}var Whe=Vhe;function Hhe(e){return this.__data__.has(e)}var Ghe=Hhe,qhe=g0,Khe=KE,Yhe=YE,Zhe=200;function Xhe(e,t){var n=this.__data__;if(n instanceof qhe){var r=n.__data__;if(!Khe||r.length<Zhe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yhe(r)}return n.set(e,t),this.size=n.size,this}var Qhe=Xhe,Jhe=g0,epe=Bhe,tpe=zhe,npe=Whe,rpe=Ghe,ipe=Qhe;function Du(e){var t=this.__data__=new Jhe(e);this.size=t.size}Du.prototype.clear=epe;Du.prototype.delete=tpe;Du.prototype.get=npe;Du.prototype.has=rpe;Du.prototype.set=ipe;var $5=Du,ope="__lodash_hash_undefined__";function ape(e){return this.__data__.set(e,ope),this}var spe=ape;function lpe(e){return this.__data__.has(e)}var cpe=lpe,upe=YE,fpe=spe,dpe=cpe;function Mg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new upe;++t<n;)this.add(e[t])}Mg.prototype.add=Mg.prototype.push=fpe;Mg.prototype.has=dpe;var I5=Mg;function hpe(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 D5=hpe;function ppe(e,t){return e.has(t)}var F5=ppe,mpe=I5,vpe=D5,gpe=F5,ype=1,bpe=2;function _pe(e,t,n,r,i,o){var a=n&ype,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),f=o.get(t);if(l&&f)return l==t&&f==e;var d=-1,p=!0,v=n&bpe?new mpe:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var y=e[d],g=t[d];if(r)var x=a?r(g,y,d,t,e,o):r(y,g,d,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(v){if(!vpe(t,function(_,b){if(!gpe(v,b)&&(y===_||i(y,_,n,r,o)))return v.push(b)})){p=!1;break}}else if(!(y===g||i(y,g,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var B5=_pe,xpe=_o,wpe=xpe.Uint8Array,Ope=wpe;function Spe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Epe=Spe;function Cpe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var lC=Cpe,uk=hp,fk=Ope,Ppe=qE,Tpe=B5,jpe=Epe,Ape=lC,kpe=1,Npe=2,Mpe="[object Boolean]",Lpe="[object Date]",Rpe="[object Error]",$pe="[object Map]",Ipe="[object Number]",Dpe="[object RegExp]",Fpe="[object Set]",Bpe="[object String]",Upe="[object Symbol]",zpe="[object ArrayBuffer]",Vpe="[object DataView]",dk=uk?uk.prototype:void 0,D1=dk?dk.valueOf:void 0;function Wpe(e,t,n,r,i,o,a){switch(n){case Vpe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zpe:return!(e.byteLength!=t.byteLength||!o(new fk(e),new fk(t)));case Mpe:case Lpe:case Ipe:return Ppe(+e,+t);case Rpe:return e.name==t.name&&e.message==t.message;case Dpe:case Bpe:return e==t+"";case $pe:var s=jpe;case Fpe:var c=r&kpe;if(s||(s=Ape),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=Npe,a.set(e,t);var f=Tpe(s(e),s(t),r,i,o,a);return a.delete(e),f;case Upe:if(D1)return D1.call(e)==D1.call(t)}return!1}var Hpe=Wpe;function Gpe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var U5=Gpe,qpe=U5,Kpe=_r;function Ype(e,t,n){var r=t(e);return Kpe(e)?r:qpe(r,n(e))}var Zpe=Ype;function Xpe(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 Qpe=Xpe;function Jpe(){return[]}var eme=Jpe,tme=Qpe,nme=eme,rme=Object.prototype,ime=rme.propertyIsEnumerable,hk=Object.getOwnPropertySymbols,ome=hk?function(e){return e==null?[]:(e=Object(e),tme(hk(e),function(t){return ime.call(e,t)}))}:nme,ame=ome;function sme(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var lme=sme,cme=ia,ume=oa,fme="[object Arguments]";function dme(e){return ume(e)&&cme(e)==fme}var hme=dme,pk=hme,pme=oa,z5=Object.prototype,mme=z5.hasOwnProperty,vme=z5.propertyIsEnumerable,gme=pk(function(){return arguments}())?pk:function(e){return pme(e)&&mme.call(e,"callee")&&!vme.call(e,"callee")},cC=gme,Lg={exports:{}};function yme(){return!1}var bme=yme;Lg.exports;(function(e,t){var n=_o,r=bme,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(Lg,Lg.exports);var V5=Lg.exports,_me=9007199254740991,xme=/^(?:0|[1-9]\d*)$/;function wme(e,t){var n=typeof e;return t=t??_me,!!t&&(n=="number"||n!="symbol"&&xme.test(e))&&e>-1&&e%1==0&&e<t}var uC=wme,Ome=9007199254740991;function Sme(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ome}var fC=Sme,Eme=ia,Cme=fC,Pme=oa,Tme="[object Arguments]",jme="[object Array]",Ame="[object Boolean]",kme="[object Date]",Nme="[object Error]",Mme="[object Function]",Lme="[object Map]",Rme="[object Number]",$me="[object Object]",Ime="[object RegExp]",Dme="[object Set]",Fme="[object String]",Bme="[object WeakMap]",Ume="[object ArrayBuffer]",zme="[object DataView]",Vme="[object Float32Array]",Wme="[object Float64Array]",Hme="[object Int8Array]",Gme="[object Int16Array]",qme="[object Int32Array]",Kme="[object Uint8Array]",Yme="[object Uint8ClampedArray]",Zme="[object Uint16Array]",Xme="[object Uint32Array]",Et={};Et[Vme]=Et[Wme]=Et[Hme]=Et[Gme]=Et[qme]=Et[Kme]=Et[Yme]=Et[Zme]=Et[Xme]=!0;Et[Tme]=Et[jme]=Et[Ume]=Et[Ame]=Et[zme]=Et[kme]=Et[Nme]=Et[Mme]=Et[Lme]=Et[Rme]=Et[$me]=Et[Ime]=Et[Dme]=Et[Fme]=Et[Bme]=!1;function Qme(e){return Pme(e)&&Cme(e.length)&&!!Et[Eme(e)]}var Jme=Qme;function eve(e){return function(t){return e(t)}}var W5=eve,Rg={exports:{}};Rg.exports;(function(e,t){var n=XD,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 c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Rg,Rg.exports);var tve=Rg.exports,nve=Jme,rve=W5,mk=tve,vk=mk&&mk.isTypedArray,ive=vk?rve(vk):nve,H5=ive,ove=lme,ave=cC,sve=_r,lve=V5,cve=uC,uve=H5,fve=Object.prototype,dve=fve.hasOwnProperty;function hve(e,t){var n=sve(e),r=!n&&ave(e),i=!n&&!r&&lve(e),o=!n&&!r&&!i&&uve(e),a=n||r||i||o,s=a?ove(e.length,String):[],c=s.length;for(var l in e)(t||dve.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||cve(l,c)))&&s.push(l);return s}var pve=hve,mve=Object.prototype;function vve(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mve;return e===n}var gve=vve;function yve(e,t){return function(n){return e(t(n))}}var G5=yve,bve=G5,_ve=bve(Object.keys,Object),xve=_ve,wve=gve,Ove=xve,Sve=Object.prototype,Eve=Sve.hasOwnProperty;function Cve(e){if(!wve(e))return Ove(e);var t=[];for(var n in Object(e))Eve.call(e,n)&&n!="constructor"&&t.push(n);return t}var Pve=Cve,Tve=GE,jve=fC;function Ave(e){return e!=null&&jve(e.length)&&!Tve(e)}var mp=Ave,kve=pve,Nve=Pve,Mve=mp;function Lve(e){return Mve(e)?kve(e):Nve(e)}var R0=Lve,Rve=Zpe,$ve=ame,Ive=R0;function Dve(e){return Rve(e,Ive,$ve)}var Fve=Dve,gk=Fve,Bve=1,Uve=Object.prototype,zve=Uve.hasOwnProperty;function Vve(e,t,n,r,i,o){var a=n&Bve,s=gk(e),c=s.length,l=gk(t),f=l.length;if(c!=f&&!a)return!1;for(var d=c;d--;){var p=s[d];if(!(a?p in t:zve.call(t,p)))return!1}var v=o.get(e),y=o.get(t);if(v&&y)return v==t&&y==e;var g=!0;o.set(e,t),o.set(t,e);for(var x=a;++d<c;){p=s[d];var _=e[p],b=t[p];if(r)var w=a?r(b,_,p,t,e,o):r(_,b,p,e,t,o);if(!(w===void 0?_===b||i(_,b,n,r,o):w)){g=!1;break}x||(x=p=="constructor")}if(g&&!x){var 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)&&(g=!1)}return o.delete(e),o.delete(t),g}var Wve=Vve,Hve=Cl,Gve=_o,qve=Hve(Gve,"DataView"),Kve=qve,Yve=Cl,Zve=_o,Xve=Yve(Zve,"Promise"),Qve=Xve,Jve=Cl,ege=_o,tge=Jve(ege,"Set"),q5=tge,nge=Cl,rge=_o,ige=nge(rge,"WeakMap"),oge=ige,P2=Kve,T2=KE,j2=Qve,A2=q5,k2=oge,K5=ia,Fu=JD,yk="[object Map]",age="[object Object]",bk="[object Promise]",_k="[object Set]",xk="[object WeakMap]",wk="[object DataView]",sge=Fu(P2),lge=Fu(T2),cge=Fu(j2),uge=Fu(A2),fge=Fu(k2),Rs=K5;(P2&&Rs(new P2(new ArrayBuffer(1)))!=wk||T2&&Rs(new T2)!=yk||j2&&Rs(j2.resolve())!=bk||A2&&Rs(new A2)!=_k||k2&&Rs(new k2)!=xk)&&(Rs=function(e){var t=K5(e),n=t==age?e.constructor:void 0,r=n?Fu(n):"";if(r)switch(r){case sge:return wk;case lge:return yk;case cge:return bk;case uge:return _k;case fge:return xk}return t});var dge=Rs,F1=$5,hge=B5,pge=Hpe,mge=Wve,Ok=dge,Sk=_r,Ek=V5,vge=H5,gge=1,Ck="[object Arguments]",Pk="[object Array]",xm="[object Object]",yge=Object.prototype,Tk=yge.hasOwnProperty;function bge(e,t,n,r,i,o){var a=Sk(e),s=Sk(t),c=a?Pk:Ok(e),l=s?Pk:Ok(t);c=c==Ck?xm:c,l=l==Ck?xm:l;var f=c==xm,d=l==xm,p=c==l;if(p&&Ek(e)){if(!Ek(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new F1),a||vge(e)?hge(e,t,n,r,i,o):pge(e,t,c,n,r,i,o);if(!(n&gge)){var v=f&&Tk.call(e,"__wrapped__"),y=d&&Tk.call(t,"__wrapped__");if(v||y){var g=v?e.value():e,x=y?t.value():t;return o||(o=new F1),i(g,x,n,r,o)}}return p?(o||(o=new F1),mge(e,t,n,r,i,o)):!1}var _ge=bge,xge=_ge,jk=oa;function Y5(e,t,n,r,i){return e===t?!0:e==null||t==null||!jk(e)&&!jk(t)?e!==e&&t!==t:xge(e,t,n,r,Y5,i)}var dC=Y5,wge=$5,Oge=dC,Sge=1,Ege=2;function Cge(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 c=s[0],l=e[c],f=s[1];if(a&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new wge;if(r)var p=r(l,f,c,e,t,d);if(!(p===void 0?Oge(f,l,Sge|Ege,r,d):p))return!1}}return!0}var Pge=Cge,Tge=fs;function jge(e){return e===e&&!Tge(e)}var Z5=jge,Age=Z5,kge=R0;function Nge(e){for(var t=kge(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Age(i)]}return t}var Mge=Nge;function Lge(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var X5=Lge,Rge=Pge,$ge=Mge,Ige=X5;function Dge(e){var t=$ge(e);return t.length==1&&t[0][2]?Ige(t[0][0],t[0][1]):function(n){return n===e||Rge(n,e,t)}}var Fge=Dge;function Bge(e,t){return e!=null&&t in Object(e)}var Uge=Bge,zge=i5,Vge=cC,Wge=_r,Hge=uC,Gge=fC,qge=b0;function Kge(e,t,n){t=zge(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=qge(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&&Gge(i)&&Hge(a,i)&&(Wge(e)||Vge(e)))}var Yge=Kge,Zge=Uge,Xge=Yge;function Qge(e,t){return e!=null&&Xge(e,t,Zge)}var Jge=Qge,eye=dC,tye=o5,nye=Jge,rye=HE,iye=Z5,oye=X5,aye=b0,sye=1,lye=2;function cye(e,t){return rye(e)&&iye(t)?oye(aye(e),t):function(n){var r=tye(n,e);return r===void 0&&r===t?nye(n,e):eye(t,r,sye|lye)}}var uye=cye;function fye(e){return e}var Bu=fye;function dye(e){return function(t){return t==null?void 0:t[e]}}var hye=dye,pye=QE;function mye(e){return function(t){return pye(t,e)}}var vye=mye,gye=hye,yye=vye,bye=HE,_ye=b0;function xye(e){return bye(e)?gye(_ye(e)):yye(e)}var wye=xye,Oye=Fge,Sye=uye,Eye=Bu,Cye=_r,Pye=wye;function Tye(e){return typeof e=="function"?e:e==null?Eye:typeof e=="object"?Cye(e)?Sye(e[0],e[1]):Oye(e):Pye(e)}var xo=Tye;function jye(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 Q5=jye;function Aye(e){return e!==e}var kye=Aye;function Nye(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Mye=Nye,Lye=Q5,Rye=kye,$ye=Mye;function Iye(e,t,n){return t===t?$ye(e,t,n):Lye(e,Rye,n)}var Dye=Iye,Fye=Dye;function Bye(e,t){var n=e==null?0:e.length;return!!n&&Fye(e,t,0)>-1}var Uye=Bye;function zye(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 Vye=zye;function Wye(){}var Hye=Wye,B1=q5,Gye=Hye,qye=lC,Kye=1/0,Yye=B1&&1/qye(new B1([,-0]))[1]==Kye?function(e){return new B1(e)}:Gye,Zye=Yye,Xye=I5,Qye=Uye,Jye=Vye,e0e=F5,t0e=Zye,n0e=lC,r0e=200;function i0e(e,t,n){var r=-1,i=Qye,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=Jye;else if(o>=r0e){var l=t?null:t0e(e);if(l)return n0e(l);a=!1,i=e0e,c=new Xye}else c=t?[]:s;e:for(;++r<o;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,a&&d===d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),s.push(f)}else i(c,d,n)||(c!==s&&c.push(d),s.push(f))}return s}var o0e=i0e,a0e=xo,s0e=o0e;function l0e(e,t){return e&&e.length?s0e(e,a0e(t)):[]}var c0e=l0e;const Ak=at(c0e);function J5(e,t,n){return t===!0?Ak(e,n):Ve(t)?Ak(e,t):e}function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}var u0e=["ref"];function kk(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 Os(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kk(Object(n),!0).forEach(function(r){$0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nk(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,n8(r.key),r)}}function d0e(e,t,n){return t&&Nk(e.prototype,t),n&&Nk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h0e(e,t,n){return t=$g(t),p0e(e,e8()?Reflect.construct(t,n||[],$g(e).constructor):t.apply(e,n))}function p0e(e,t){if(t&&(ru(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t8(e)}function e8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e8=function(){return!!e})()}function $g(e){return $g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$g(e)}function t8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m0e(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 $0(e,t,n){return t=n8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n8(e){var t=v0e(e,"string");return ru(t)=="symbol"?t:String(t)}function v0e(e,t){if(ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g0e(e,t){if(e==null)return{};var n=y0e(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 y0e(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 b0e(e){return e.value}function _0e(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(typeof e=="function")return V.createElement(e,t);t.ref;var n=g0e(t,u0e);return V.createElement(sC,n)}var Mk=1,ch=function(e){m0e(t,e);function t(){var n;f0e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h0e(this,t,[].concat(i)),$0(t8(n),"lastBoundingBox",{width:-1,height:-1}),n}return d0e(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)>Mk||Math.abs(i.height-this.lastBoundingBox.height)>Mk)&&(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?Os({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,c=i.margin,l=i.chartWidth,f=i.chartHeight,d,p;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var v=this.getBBoxSnapshot();d={left:((l||0)-v.width)/2}}else d=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();p={top:((f||0)-y.height)/2}}else p=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Os(Os({},d),p)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,c=i.wrapperStyle,l=i.payloadUniqBy,f=i.payload,d=Os(Os({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return V.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){r.wrapperNode=v}},_0e(o,Os(Os({},this.props),{},{payload:J5(f,l,b0e)})))}}],[{key:"getWithHeight",value:function(r,i){var o=r.props.layout;return o==="vertical"&&Ce(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}]),t}(M.PureComponent);$0(ch,"displayName","Legend");$0(ch,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Lk=hp,x0e=cC,w0e=_r,Rk=Lk?Lk.isConcatSpreadable:void 0;function O0e(e){return w0e(e)||x0e(e)||!!(Rk&&e&&e[Rk])}var S0e=O0e,E0e=U5,C0e=S0e;function r8(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=C0e),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?r8(s,t-1,n,r,i):E0e(i,s):r||(i[i.length]=s)}return i}var i8=r8;function P0e(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(n(o[c],c,o)===!1)break}return t}}var T0e=P0e,j0e=T0e,A0e=j0e(),k0e=A0e,N0e=k0e,M0e=R0;function L0e(e,t){return e&&N0e(e,t,M0e)}var o8=L0e,R0e=mp;function $0e(e,t){return function(n,r){if(n==null)return n;if(!R0e(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 I0e=$0e,D0e=o8,F0e=I0e,B0e=F0e(D0e),hC=B0e,U0e=hC,z0e=mp;function V0e(e,t){var n=-1,r=z0e(e)?Array(e.length):[];return U0e(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var a8=V0e;function W0e(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var H0e=W0e,$k=Nu;function G0e(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=$k(e),a=t!==void 0,s=t===null,c=t===t,l=$k(t);if(!s&&!l&&!o&&e>t||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}var q0e=G0e,K0e=q0e;function Y0e(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var c=K0e(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return e.index-t.index}var Z0e=Y0e,U1=XE,X0e=QE,Q0e=xo,J0e=a8,ebe=H0e,tbe=W5,nbe=Z0e,rbe=Bu,ibe=_r;function obe(e,t,n){t.length?t=U1(t,function(o){return ibe(o)?function(a){return X0e(a,o.length===1?o[0]:o)}:o}):t=[rbe];var r=-1;t=U1(t,tbe(Q0e));var i=J0e(e,function(o,a,s){var c=U1(t,function(l){return l(o)});return{criteria:c,index:++r,value:o}});return ebe(i,function(o,a){return nbe(o,a,n)})}var abe=obe;function sbe(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 lbe=sbe,cbe=lbe,Ik=Math.max;function ube(e,t,n){return t=Ik(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Ik(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),cbe(e,this,s)}}var fbe=ube;function dbe(e){return function(){return e}}var hbe=dbe,pbe=Cl,mbe=function(){try{var e=pbe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),s8=mbe,vbe=hbe,Dk=s8,gbe=Bu,ybe=Dk?function(e,t){return Dk(e,"toString",{configurable:!0,enumerable:!1,value:vbe(t),writable:!0})}:gbe,bbe=ybe,_be=800,xbe=16,wbe=Date.now;function Obe(e){var t=0,n=0;return function(){var r=wbe(),i=xbe-(r-n);if(n=r,i>0){if(++t>=_be)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Sbe=Obe,Ebe=bbe,Cbe=Sbe,Pbe=Cbe(Ebe),Tbe=Pbe,jbe=Bu,Abe=fbe,kbe=Tbe;function Nbe(e,t){return kbe(Abe(e,t,jbe),e+"")}var Mbe=Nbe,Lbe=qE,Rbe=mp,$be=uC,Ibe=fs;function Dbe(e,t,n){if(!Ibe(n))return!1;var r=typeof t;return(r=="number"?Rbe(n)&&$be(t,n.length):r=="string"&&t in n)?Lbe(n[t],e):!1}var I0=Dbe,Fbe=i8,Bbe=abe,Ube=Mbe,Fk=I0,zbe=Ube(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Fk(e,t[0],t[1])?t=[]:n>2&&Fk(t[0],t[1],t[2])&&(t=[t[0]]),Bbe(e,Fbe(t,1),[])}),Vbe=zbe;const pC=at(Vbe);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 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 Wbe(e,t){return Kbe(e)||qbe(e,t)||Gbe(e,t)||Hbe()}function Hbe(){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 Gbe(e,t){if(e){if(typeof e=="string")return Bk(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 Bk(e,t)}}function Bk(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 qbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function Kbe(e){if(Array.isArray(e))return e}function Uk(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 z1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uk(Object(n),!0).forEach(function(r){Ybe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ybe(e,t,n){return t=Zbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zbe(e){var t=Xbe(e,"string");return uh(t)=="symbol"?t:String(t)}function Xbe(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)}function Qbe(e){return Array.isArray(e)&&cn(e[0])&&cn(e[1])?e.join(" ~ "):e}var Jbe=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,c=t.labelStyle,l=c===void 0?{}:c,f=t.payload,d=t.formatter,p=t.itemSorter,v=t.wrapperClassName,y=t.labelClassName,g=t.label,x=t.labelFormatter,_=t.accessibilityLayer,b=_===void 0?!1:_,w=function(){if(f&&f.length){var D={padding:0,margin:0},q=(p?pC(f,p):f).map(function(W,X){if(W.type==="none")return null;var Q=z1({display:"block",paddingTop:4,paddingBottom:4,color:W.color||"#000"},s),ne=W.formatter||d||Qbe,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=Wbe(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},cn(H)?V.createElement("span",{className:"recharts-tooltip-item-name"},H):null,cn(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:D},q)}return null},S=z1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),E=z1({margin:0},l),C=!Ue(g),T=C?g:"",A=Ee("recharts-default-tooltip",v),F=Ee("recharts-tooltip-label",y);C&&x&&f!==void 0&&f!==null&&(T=x(g,f));var k=b?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",M2({className:A,style:S},k),V.createElement("p",{className:F,style:E},V.isValidElement(T)?T:"".concat(T)),w())};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 wm(e,t,n){return t=e1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e1e(e){var t=t1e(e,"string");return fh(t)=="symbol"?t:String(t)}function t1e(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)}var jf="recharts-tooltip-wrapper",n1e={visibility:"hidden"};function r1e(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ee(jf,wm(wm(wm(wm({},"".concat(jf,"-right"),Ce(n)&&t&&Ce(t.x)&&n>=t.x),"".concat(jf,"-left"),Ce(n)&&t&&Ce(t.x)&&n<t.x),"".concat(jf,"-bottom"),Ce(r)&&t&&Ce(t.y)&&r>=t.y),"".concat(jf,"-top"),Ce(r)&&t&&Ce(t.y)&&r<t.y))}function zk(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(o&&Ce(o[r]))return o[r];var f=n[r]-s-i,d=n[r]+i;if(t[r])return a[r]?f:d;if(a[r]){var p=f,v=c[r];return p<v?Math.max(d,c[r]):Math.max(f,c[r])}var y=d+s,g=c[r]+l;return y>g?Math.max(f,c[r]):Math.max(d,c[r])}function i1e(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 o1e(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,f,d;return a.height>0&&a.width>0&&n?(f=zk({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),d=zk({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),l=i1e({translateX:f,translateY:d,useTranslate3d:s})):l=n1e,{cssProperties:l,cssClasses:r1e({translateX:f,translateY:d,coordinate:n})}}function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function Vk(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 Wk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vk(Object(n),!0).forEach(function(r){$2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s1e(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,c8(r.key),r)}}function l1e(e,t,n){return t&&s1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c1e(e,t,n){return t=Ig(t),u1e(e,l8()?Reflect.construct(t,n||[],Ig(e).constructor):t.apply(e,n))}function u1e(e,t){if(t&&(iu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L2(e)}function l8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l8=function(){return!!e})()}function Ig(e){return Ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ig(e)}function L2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f1e(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&&R2(e,t)}function R2(e,t){return R2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},R2(e,t)}function $2(e,t,n){return t=c8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c8(e){var t=d1e(e,"string");return iu(t)=="symbol"?t:String(t)}function d1e(e,t){if(iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hk=1,h1e=function(e){f1e(t,e);function t(){var n;a1e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=c1e(this,t,[].concat(i)),$2(L2(n),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),$2(L2(n),"handleKeyDown",function(a){if(a.key==="Escape"){var s,c,l,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(l=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&l!==void 0?l:0}})}}),n}return l1e(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Hk||Math.abs(r.height-this.state.lastBoundingBox.height)>Hk)&&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,c=i.animationEasing,l=i.children,f=i.coordinate,d=i.hasPayload,p=i.isAnimationActive,v=i.offset,y=i.position,g=i.reverseDirection,x=i.useTranslate3d,_=i.viewBox,b=i.wrapperStyle,w=o1e({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:v,position:y,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:_}),S=w.cssClasses,E=w.cssProperties,C=Wk(Wk({transition:p&&o?"transform ".concat(s,"ms ").concat(c):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:C,ref:function(A){r.wrapperNode=A}},l)}}]),t}(M.PureComponent),p1e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},li={isSsr:p1e(),get:function(t){return li[t]},set:function(t,n){if(typeof t=="string")li[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){li[i]=t[i]})}}};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function Gk(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 qk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gk(Object(n),!0).forEach(function(r){mC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v1e(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,f8(r.key),r)}}function g1e(e,t,n){return t&&v1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function y1e(e,t,n){return t=Dg(t),b1e(e,u8()?Reflect.construct(t,n||[],Dg(e).constructor):t.apply(e,n))}function b1e(e,t){if(t&&(ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _1e(e)}function _1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u8=function(){return!!e})()}function Dg(e){return Dg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dg(e)}function x1e(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&&I2(e,t)}function I2(e,t){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I2(e,t)}function mC(e,t,n){return t=f8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f8(e){var t=w1e(e,"string");return ou(t)=="symbol"?t:String(t)}function w1e(e,t){if(ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function O1e(e){return e.dataKey}function S1e(e,t){return V.isValidElement(e)?V.cloneElement(e,t):typeof e=="function"?V.createElement(e,t):V.createElement(Jbe,t)}var Qr=function(e){x1e(t,e);function t(){return m1e(this,t),y1e(this,t,arguments)}return g1e(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,l=i.content,f=i.coordinate,d=i.filterNull,p=i.isAnimationActive,v=i.offset,y=i.payload,g=i.payloadUniqBy,x=i.position,_=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,S=i.wrapperStyle,E=y??[];d&&E.length&&(E=J5(y.filter(function(T){return T.value!=null&&(T.hide!==!0||r.props.includeHidden)}),g,O1e));var C=E.length>0;return V.createElement(h1e,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:p,active:o,coordinate:f,hasPayload:C,offset:v,position:x,reverseDirection:_,useTranslate3d:b,viewBox:w,wrapperStyle:S},S1e(l,qk(qk({},this.props),{},{payload:E})))}}]),t}(M.PureComponent);mC(Qr,"displayName","Tooltip");mC(Qr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!li.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 E1e=_o,C1e=function(){return E1e.Date.now()},P1e=C1e,T1e=/\s/;function j1e(e){for(var t=e.length;t--&&T1e.test(e.charAt(t)););return t}var A1e=j1e,k1e=A1e,N1e=/^\s+/;function M1e(e){return e&&e.slice(0,k1e(e)+1).replace(N1e,"")}var L1e=M1e,R1e=L1e,Kk=fs,$1e=Nu,Yk=NaN,I1e=/^[-+]0x[0-9a-f]+$/i,D1e=/^0b[01]+$/i,F1e=/^0o[0-7]+$/i,B1e=parseInt;function U1e(e){if(typeof e=="number")return e;if($1e(e))return Yk;if(Kk(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kk(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=R1e(e);var n=D1e.test(e);return n||F1e.test(e)?B1e(e.slice(2),n?2:8):I1e.test(e)?Yk:+e}var d8=U1e,z1e=fs,V1=P1e,Zk=d8,V1e="Expected a function",W1e=Math.max,H1e=Math.min;function G1e(e,t,n){var r,i,o,a,s,c,l=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(V1e);t=Zk(t)||0,z1e(n)&&(f=!!n.leading,d="maxWait"in n,o=d?W1e(Zk(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function v(C){var T=r,A=i;return r=i=void 0,l=C,a=e.apply(A,T),a}function y(C){return l=C,s=setTimeout(_,t),f?v(C):a}function g(C){var T=C-c,A=C-l,F=t-T;return d?H1e(F,o-A):F}function x(C){var T=C-c,A=C-l;return c===void 0||T>=t||T<0||d&&A>=o}function _(){var C=V1();if(x(C))return b(C);s=setTimeout(_,g(C))}function b(C){return s=void 0,p&&r?v(C):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function S(){return s===void 0?a:b(V1())}function E(){var C=V1(),T=x(C);if(r=arguments,i=this,c=C,T){if(s===void 0)return y(c);if(d)return clearTimeout(s),s=setTimeout(_,t),v(c)}return s===void 0&&(s=setTimeout(_,t)),a}return E.cancel=w,E.flush=S,E}var q1e=G1e,K1e=q1e,Y1e=fs,Z1e="Expected a function";function X1e(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Z1e);return Y1e(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),K1e(e,t,{leading:r,maxWait:t,trailing:i})}var Q1e=X1e;const h8=at(Q1e);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 Xk(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 Om(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xk(Object(n),!0).forEach(function(r){J1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J1e(e,t,n){return t=e_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e_e(e){var t=t_e(e,"string");return dh(t)=="symbol"?t:String(t)}function t_e(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)}function n_e(e,t){return a_e(e)||o_e(e,t)||i_e(e,t)||r_e()}function r_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i_e(e,t){if(e){if(typeof e=="string")return Qk(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 Qk(e,t)}}function Qk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function a_e(e){if(Array.isArray(e))return e}var vC=M.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,c=s===void 0?"100%":s,l=e.minWidth,f=l===void 0?0:l,d=e.minHeight,p=e.maxHeight,v=e.children,y=e.debounce,g=y===void 0?0:y,x=e.id,_=e.className,b=e.onResize,w=e.style,S=w===void 0?{}:w,E=M.useRef(null),C=M.useRef();C.current=b,M.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=M.useState({containerWidth:i.width,containerHeight:i.height}),A=n_e(T,2),F=A[0],k=A[1],I=M.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}})},[]);M.useEffect(function(){var q=function(z){var B,H=z[0].contentRect,ee=H.width,K=H.height;I(ee,K),(B=C.current)===null||B===void 0||B.call(C,ee,K)};g>0&&(q=h8(q,g,{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,g]);var D=M.useMemo(function(){var q=F.containerWidth,W=F.containerHeight;if(q<0||W<0)return null;Ni(Ws(a)||Ws(c),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,a,c),Ni(!n||n>0,"The aspect(%s) must be greater than zero.",n);var X=Ws(a)?q:a,Q=Ws(c)?W:c;n&&n>0&&(X?Q=X/n:Q&&(X=Q*n),p&&Q>p&&(Q=p)),Ni(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,c,f,d,n);var ne=!Array.isArray(v)&&f2.isElement(v)&&Ro(v.type).endsWith("Chart");return V.Children.map(v,function(Z){return f2.isElement(Z)?M.cloneElement(Z,Om({width:X,height:Q},ne?{style:Om({height:"100%",width:"100%",maxHeight:Q,maxWidth:X},Z.props.style)}:{})):Z})},[n,v,c,p,d,f,F,a]);return V.createElement("div",{id:x?"".concat(x):void 0,className:Ee("recharts-responsive-container",_),style:Om(Om({},S),{},{width:a,height:c,minWidth:f,minHeight:d,maxHeight:p}),ref:E},D)}),Va=function(t){return null};Va.displayName="Cell";function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(e)}function 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 D2(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){s_e(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 s_e(e,t,n){return t=l_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l_e(e){var t=c_e(e,"string");return hh(t)=="symbol"?t:String(t)}function c_e(e,t){if(hh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kl={widthCache:{},cacheCount:0},u_e=2e3,f_e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},eN="recharts_measurement_span";function d_e(e){var t=D2({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var md=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||li.isSsr)return{width:0,height:0};var r=d_e(n),i=JSON.stringify({text:t,copyStyle:r});if(Kl.widthCache[i])return Kl.widthCache[i];try{var o=document.getElementById(eN);o||(o=document.createElement("span"),o.setAttribute("id",eN),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=D2(D2({},f_e),r);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Kl.widthCache[i]=c,++Kl.cacheCount>u_e&&(Kl.cacheCount=0,Kl.widthCache={}),c}catch{return{width:0,height:0}}},h_e=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ph(e){"@babel/helpers - typeof";return ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ph(e)}function Fg(e,t){return g_e(e)||v_e(e,t)||m_e(e,t)||p_e()}function p_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m_e(e,t){if(e){if(typeof e=="string")return tN(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 tN(e,t)}}function tN(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 v_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function g_e(e){if(Array.isArray(e))return e}function y_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(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,__e(r.key),r)}}function b_e(e,t,n){return t&&nN(e.prototype,t),n&&nN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function __e(e){var t=x_e(e,"string");return ph(t)=="symbol"?t:String(t)}function x_e(e,t){if(ph(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ph(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,iN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,w_e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,O_e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,p8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},S_e=Object.keys(p8),wc="NaN";function E_e(e,t){return e*p8[t]}var Sm=function(){function e(t,n){y_e(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!w_e.test(n)&&(this.num=NaN,this.unit=""),S_e.includes(n)&&(this.num=E_e(t,n),this.unit="px")}return b_e(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=O_e.exec(n))!==null&&r!==void 0?r:[],o=Fg(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}]),e}();function m8(e){if(e.includes(wc))return wc;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=rN.exec(t))!==null&&n!==void 0?n:[],i=Fg(r,4),o=i[1],a=i[2],s=i[3],c=Sm.parse(o??""),l=Sm.parse(s??""),f=a==="*"?c.multiply(l):c.divide(l);if(f.isNaN())return wc;t=t.replace(rN,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=iN.exec(t))!==null&&d!==void 0?d:[],v=Fg(p,4),y=v[1],g=v[2],x=v[3],_=Sm.parse(y??""),b=Sm.parse(x??""),w=g==="+"?_.add(b):_.subtract(b);if(w.isNaN())return wc;t=t.replace(iN,w.toString())}return t}var oN=/\(([^()]*)\)/;function C_e(e){for(var t=e;t.includes("(");){var n=oN.exec(t),r=Fg(n,2),i=r[1];t=t.replace(oN,m8(i))}return t}function P_e(e){var t=e.replace(/\s+/g,"");return t=C_e(t),t=m8(t),t}function T_e(e){try{return P_e(e)}catch{return wc}}function W1(e){var t=T_e(e.slice(5,-1));return t===wc?"":t}var j_e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],A_e=["dx","dy","angle","className","breakAll"];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 aN(e,t){if(e==null)return{};var n=k_e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function k_e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function sN(e,t){return R_e(e)||L_e(e,t)||M_e(e,t)||N_e()}function N_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M_e(e,t){if(e){if(typeof e=="string")return lN(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 lN(e,t)}}function lN(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 L_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function R_e(e){if(Array.isArray(e))return e}var v8=/[ \f\n\r\t\v\u2028\u2029]+/,g8=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];Ue(n)||(r?o=n.toString().split(""):o=n.toString().split(v8));var a=o.map(function(c){return{word:c,width:md(c,i).width}}),s=r?0:md(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},$_e=function(t,n,r,i,o){var a=t.maxLines,s=t.children,c=t.style,l=t.breakAll,f=Ce(a),d=s,p=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=p(n),y=function(X){return X.reduce(function(Q,ne){return Q.width>ne.width?Q:ne})};if(!f)return v;for(var g="…",x=function(X){var Q=d.slice(0,X),ne=g8({breakAll:l,style:c,children:Q+g}).wordsWithComputedWidth,Z=p(ne),z=Z.length>a||y(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),C=E-1,T=x(C),A=sN(T,2),F=A[0],k=A[1],I=x(E),D=sN(I,1),q=D[0];if(!F&&!q&&(_=E+1),F&&q&&(b=E-1),!F&&q){S=k;break}w++}return S||v},cN=function(t){var n=Ue(t)?[]:t.toString().split(v8);return[{words:n}]},I_e=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!li.isSsr){var c,l,f=g8({breakAll:a,children:i,style:o});if(f){var d=f.wordsWithComputedWidth,p=f.spaceWidth;c=d,l=p}else return cN(i);return $_e({breakAll:a,children:i,maxLines:s,style:o},c,l,n,r)}return cN(i)},uN="#808080",gl=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,c=t.capHeight,l=c===void 0?"0.71em":c,f=t.scaleToFit,d=f===void 0?!1:f,p=t.textAnchor,v=p===void 0?"start":p,y=t.verticalAnchor,g=y===void 0?"end":y,x=t.fill,_=x===void 0?uN:x,b=aN(t,j_e),w=M.useMemo(function(){return I_e({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,C=b.angle,T=b.className,A=b.breakAll,F=aN(b,A_e);if(!cn(r)||!cn(o))return null;var k=r+(Ce(S)?S:0),I=o+(Ce(E)?E:0),D;switch(g){case"start":D=W1("calc(".concat(l,")"));break;case"middle":D=W1("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:D=W1("calc(".concat(w.length-1," * -").concat(s,")"));break}var q=[];if(d){var W=w[0].width,X=b.width;q.push("scale(".concat((Ce(X)?X/W:1)/W,")"))}return C&&q.push("rotate(".concat(C,", ").concat(k,", ").concat(I,")")),q.length&&(F.transform=q.join(" ")),V.createElement("text",F2({},De(F,!0),{x:k,y:I,className:Ee("recharts-text",T),textAnchor:v,fill:_.includes("url")?uN:_}),w.map(function(Q,ne){var Z=Q.words.join(A?"":" ");return V.createElement("tspan",{x:k,dy:ne===0?D:s,key:Z},Z)}))};function Wa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function D_e(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gC(e){let t,n,r;e.length!==2?(t=Wa,n=(s,c)=>Wa(e(s),c),r=(s,c)=>e(s)-c):(t=e===Wa||e===D_e?e:F_e,n=e,r=e);function i(s,c,l=0,f=s.length){if(l<f){if(t(c,c)!==0)return f;do{const d=l+f>>>1;n(s[d],c)<0?l=d+1:f=d}while(l<f)}return l}function o(s,c,l=0,f=s.length){if(l<f){if(t(c,c)!==0)return f;do{const d=l+f>>>1;n(s[d],c)<=0?l=d+1:f=d}while(l<f)}return l}function a(s,c,l=0,f=s.length){const d=i(s,c,l,f-1);return d>l&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:a,right:o}}function F_e(){return 0}function y8(e){return e===null?NaN:+e}function*B_e(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const U_e=gC(Wa),vp=U_e.right;gC(y8).center;class fN extends Map{constructor(t,n=W_e){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(dN(this,t))}has(t){return super.has(dN(this,t))}set(t,n){return super.set(z_e(this,t),n)}delete(t){return super.delete(V_e(this,t))}}function dN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function z_e({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function V_e({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function W_e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function H_e(e=Wa){if(e===Wa)return b8;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 b8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const G_e=Math.sqrt(50),q_e=Math.sqrt(10),K_e=Math.sqrt(2);function Bg(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>=G_e?10:o>=q_e?5:o>=K_e?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Bg(e,t,n*2):[s,c,l]}function B2(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?Bg(t,e,n):Bg(e,t,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let l=0;l<s;++l)c[l]=(o-l)/-a;else for(let l=0;l<s;++l)c[l]=(o-l)*a;else if(a<0)for(let l=0;l<s;++l)c[l]=(i+l)/-a;else for(let l=0;l<s;++l)c[l]=(i+l)*a;return c}function U2(e,t,n){return t=+t,e=+e,n=+n,Bg(e,t,n)[2]}function z2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?U2(t,e,n):U2(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function hN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function pN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function _8(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?b8:H_e(i);r>n;){if(r-n>600){const c=r-n+1,l=t-n+1,f=Math.log(c),d=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*d*(c-d)/c)*(l-c/2<0?-1:1),v=Math.max(n,Math.floor(t-l*d/c+p)),y=Math.min(r,Math.floor(t+(c-l)*d/c+p));_8(e,t,v,y,i)}const o=e[t];let a=n,s=r;for(Af(e,n,t),i(e[r],o)>0&&Af(e,n,r);a<s;){for(Af(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?Af(e,n,s):(++s,Af(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Af(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Y_e(e,t,n){if(e=Float64Array.from(B_e(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return pN(e);if(t>=1)return hN(e);var r,i=(r-1)*t,o=Math.floor(i),a=hN(_8(e,o).subarray(0,o+1)),s=pN(e.subarray(o+1));return a+(s-a)*(i-o)}}function Z_e(e,t,n=y8){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 X_e(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 mi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function aa(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 V2=Symbol("implicit");function yC(){var e=new fN,t=[],n=[],r=V2;function i(o){let a=e.get(o);if(a===void 0){if(r!==V2)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 fN;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 yC(t,n).unknown(r)},mi.apply(i,arguments),i}function mh(){var e=yC().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,c=0,l=0,f=.5;delete e.unknown;function d(){var p=t().length,v=i<r,y=v?i:r,g=v?r:i;o=(g-y)/Math.max(1,p-c+l*2),s&&(o=Math.floor(o)),y+=(g-y-o*(p-c))*f,a=o*(1-c),s&&(y=Math.round(y),a=Math.round(a));var x=X_e(p).map(function(_){return y+o*_});return n(v?x.reverse():x)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(c=Math.min(1,l=+p),d()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),d()):c},e.paddingOuter=function(p){return arguments.length?(l=+p,d()):l},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return mh(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(f)},mi.apply(d(),arguments)}function x8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return x8(t())},e}function vd(){return x8(mh.apply(null,arguments).paddingInner(1))}function bC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function w8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function gp(){}var vh=.7,Ug=1/vh,Rc="\\s*([+-]?\\d+)\\s*",gh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q_e=/^#([0-9a-f]{3,8})$/,J_e=new RegExp(`^rgb\\(${Rc},${Rc},${Rc}\\)$`),exe=new RegExp(`^rgb\\(${lo},${lo},${lo}\\)$`),txe=new RegExp(`^rgba\\(${Rc},${Rc},${Rc},${gh}\\)$`),nxe=new RegExp(`^rgba\\(${lo},${lo},${lo},${gh}\\)$`),rxe=new RegExp(`^hsl\\(${gh},${lo},${lo}\\)$`),ixe=new RegExp(`^hsla\\(${gh},${lo},${lo},${gh}\\)$`),mN={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};bC(gp,yh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:vN,formatHex:vN,formatHex8:oxe,formatHsl:axe,formatRgb:gN,toString:gN});function vN(){return this.rgb().formatHex()}function oxe(){return this.rgb().formatHex8()}function axe(){return O8(this).formatHsl()}function gN(){return this.rgb().formatRgb()}function yh(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Q_e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?yN(t):n===3?new ur(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Em(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Em(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=J_e.exec(e))?new ur(t[1],t[2],t[3],1):(t=exe.exec(e))?new ur(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=txe.exec(e))?Em(t[1],t[2],t[3],t[4]):(t=nxe.exec(e))?Em(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rxe.exec(e))?xN(t[1],t[2]/100,t[3]/100,1):(t=ixe.exec(e))?xN(t[1],t[2]/100,t[3]/100,t[4]):mN.hasOwnProperty(e)?yN(mN[e]):e==="transparent"?new ur(NaN,NaN,NaN,0):null}function yN(e){return new ur(e>>16&255,e>>8&255,e&255,1)}function Em(e,t,n,r){return r<=0&&(e=t=n=NaN),new ur(e,t,n,r)}function sxe(e){return e instanceof gp||(e=yh(e)),e?(e=e.rgb(),new ur(e.r,e.g,e.b,e.opacity)):new ur}function W2(e,t,n,r){return arguments.length===1?sxe(e):new ur(e,t,n,r??1)}function ur(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bC(ur,W2,w8(gp,{brighter(e){return e=e==null?Ug:Math.pow(Ug,e),new ur(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vh:Math.pow(vh,e),new ur(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ur(nl(this.r),nl(this.g),nl(this.b),zg(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:bN,formatHex:bN,formatHex8:lxe,formatRgb:_N,toString:_N}));function bN(){return`#${Hs(this.r)}${Hs(this.g)}${Hs(this.b)}`}function lxe(){return`#${Hs(this.r)}${Hs(this.g)}${Hs(this.b)}${Hs((isNaN(this.opacity)?1:this.opacity)*255)}`}function _N(){const e=zg(this.opacity);return`${e===1?"rgb(":"rgba("}${nl(this.r)}, ${nl(this.g)}, ${nl(this.b)}${e===1?")":`, ${e})`}`}function zg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hs(e){return e=nl(e),(e<16?"0":"")+e.toString(16)}function xN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ti(e,t,n,r)}function O8(e){if(e instanceof Ti)return new Ti(e.h,e.s,e.l,e.opacity);if(e instanceof gp||(e=yh(e)),!e)return new Ti;if(e instanceof Ti)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,c=(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/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new Ti(a,s,c,e.opacity)}function cxe(e,t,n,r){return arguments.length===1?O8(e):new Ti(e,t,n,r??1)}function Ti(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bC(Ti,cxe,w8(gp,{brighter(e){return e=e==null?Ug:Math.pow(Ug,e),new Ti(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vh:Math.pow(vh,e),new Ti(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 ur(H1(e>=240?e-240:e+120,i,r),H1(e,i,r),H1(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ti(wN(this.h),Cm(this.s),Cm(this.l),zg(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=zg(this.opacity);return`${e===1?"hsl(":"hsla("}${wN(this.h)}, ${Cm(this.s)*100}%, ${Cm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function wN(e){return e=(e||0)%360,e<0?e+360:e}function Cm(e){return Math.max(0,Math.min(1,e||0))}function H1(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 _C=e=>()=>e;function uxe(e,t){return function(n){return e+n*t}}function fxe(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 dxe(e){return(e=+e)==1?S8:function(t,n){return n-t?fxe(t,n,e):_C(isNaN(t)?n:t)}}function S8(e,t){var n=t-e;return n?uxe(e,n):_C(isNaN(e)?t:e)}const ON=function e(t){var n=dxe(t);function r(i,o){var a=n((i=W2(i)).r,(o=W2(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),l=S8(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=c(f),i.opacity=l(f),i+""}}return r.gamma=e,r}(1);function hxe(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 pxe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mxe(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]=Uu(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 vxe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Vg(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function gxe(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]=Uu(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var H2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,G1=new RegExp(H2.source,"g");function yxe(e){return function(){return e}}function bxe(e){return function(t){return e(t)+""}}function _xe(e,t){var n=H2.lastIndex=G1.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(e=e+"",t=t+"";(r=H2.exec(e))&&(i=G1.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,c.push({i:a,x:Vg(r,i)})),n=G1.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?bxe(c[0].x):yxe(t):(t=c.length,function(l){for(var f=0,d;f<t;++f)s[(d=c[f]).i]=d.x(l);return s.join("")})}function Uu(e,t){var n=typeof t,r;return t==null||n==="boolean"?_C(t):(n==="number"?Vg:n==="string"?(r=yh(t))?(t=r,ON):_xe:t instanceof yh?ON:t instanceof Date?vxe:pxe(t)?hxe:Array.isArray(t)?mxe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?gxe:Vg)(e,t)}function xC(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function xxe(e,t){t===void 0&&(t=e,e=Uu);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 wxe(e){return function(){return e}}function Wg(e){return+e}var SN=[0,1];function Xn(e){return e}function G2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:wxe(isNaN(t)?NaN:.5)}function Oxe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Sxe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=G2(i,r),o=n(a,o)):(r=G2(r,i),o=n(o,a)),function(s){return o(r(s))}}function Exe(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]=G2(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var c=vp(e,s,1,r)-1;return o[c](i[c](s))}}function yp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function D0(){var e=SN,t=SN,n=Uu,r,i,o,a=Xn,s,c,l;function f(){var p=Math.min(e.length,t.length);return a!==Xn&&(a=Oxe(e[0],e[p-1])),s=p>2?Exe:Sxe,c=l=null,d}function d(p){return p==null||isNaN(p=+p)?o:(c||(c=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((l||(l=s(t,e.map(r),Vg)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Wg),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=xC,f()},d.clamp=function(p){return arguments.length?(a=p?!0:Xn,f()):a!==Xn},d.interpolate=function(p){return arguments.length?(n=p,f()):n},d.unknown=function(p){return arguments.length?(o=p,d):o},function(p,v){return r=p,i=v,f()}}function wC(){return D0()(Xn,Xn)}function Cxe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Hg(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 au(e){return e=Hg(Math.abs(e)),e?e[1]:NaN}function Pxe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Txe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var jxe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bh(e){if(!(t=jxe.exec(e)))throw new Error("invalid format: "+e);var t;return new OC({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]})}bh.prototype=OC.prototype;function OC(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+""}OC.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 Axe(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 E8;function kxe(e,t){var n=Hg(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(E8=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")+Hg(e,Math.max(0,t+o-1))[0]}function EN(e,t){var n=Hg(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 CN={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Cxe,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)=>EN(e*100,t),r:EN,s:kxe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function PN(e){return e}var TN=Array.prototype.map,jN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Nxe(e){var t=e.grouping===void 0||e.thousands===void 0?PN:Pxe(TN.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?PN:Txe(TN.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=bh(d);var p=d.fill,v=d.align,y=d.sign,g=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"):CN[E]||(w===void 0&&(w=12),S=!0,E="g"),(x||p==="0"&&v==="=")&&(x=!0,p="0",v="=");var C=g==="$"?n:g==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",T=g==="$"?r:/[%p]/.test(E)?a:"",A=CN[E],F=/[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 D=C,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)?c:A(Math.abs(I),w),S&&(I=Axe(I)),ne&&+I==0&&y!=="+"&&(ne=!1),D=(ne?y==="("?y:s:y==="-"||y==="("?"":y)+D,q=(E==="s"?jN[8+E8/3]:"")+q+(ne&&y==="("?")":""),F){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=D.length+I.length+q.length,z=Z<_?new Array(_-Z+1).join(p):"";switch(b&&x&&(I=t(z+I,z.length?_-q.length:1/0),z=""),v){case"<":I=D+I+q+z;break;case"=":I=D+z+I+q;break;case"^":I=z.slice(0,Z=z.length>>1)+D+I+q+z.slice(Z);break;default:I=z+D+I+q;break}return o(I)}return k.toString=function(){return d+""},k}function f(d,p){var v=l((d=bh(d),d.type="f",d)),y=Math.max(-8,Math.min(8,Math.floor(au(p)/3)))*3,g=Math.pow(10,-y),x=jN[8+y/3];return function(_){return v(g*_)+x}}return{format:l,formatPrefix:f}}var Pm,SC,C8;Mxe({thousands:",",grouping:[3],currency:["$",""]});function Mxe(e){return Pm=Nxe(e),SC=Pm.format,C8=Pm.formatPrefix,Pm}function Lxe(e){return Math.max(0,-au(Math.abs(e)))}function Rxe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(au(t)/3)))*3-au(Math.abs(e)))}function $xe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,au(t)-au(e))+1}function P8(e,t,n,r){var i=z2(e,t,n),o;switch(r=bh(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Rxe(i,a))&&(r.precision=o),C8(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=$xe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Lxe(i))&&(r.precision=o-(r.type==="%")*2);break}}return SC(r)}function hs(e){var t=e.domain;return e.ticks=function(n){var r=t();return B2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return P8(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],c,l,f=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);f-- >0;){if(l=U2(a,s,n),l===c)return r[i]=a,r[o]=s,t(r);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function Gg(){var e=wC();return e.copy=function(){return yp(e,Gg())},mi.apply(e,arguments),hs(e)}function T8(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,Wg),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return T8(e).unknown(t)},e=arguments.length?Array.from(e,Wg):[0,1],hs(n)}function j8(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 AN(e){return Math.log(e)}function kN(e){return Math.exp(e)}function Ixe(e){return-Math.log(-e)}function Dxe(e){return-Math.exp(-e)}function Fxe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Bxe(e){return e===10?Fxe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Uxe(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 NN(e){return(t,n)=>-e(-t,n)}function EC(e){const t=e(AN,kN),n=t.domain;let r=10,i,o;function a(){return i=Uxe(r),o=Bxe(r),n()[0]<0?(i=NN(i),o=NN(o),e(Ixe,Dxe)):e(AN,kN),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 c=n();let l=c[0],f=c[c.length-1];const d=f<l;d&&([l,f]=[f,l]);let p=i(l),v=i(f),y,g;const x=s==null?10:+s;let _=[];if(!(r%1)&&v-p<x){if(p=Math.floor(p),v=Math.ceil(v),l>0){for(;p<=v;++p)for(y=1;y<r;++y)if(g=p<0?y/o(-p):y*o(p),!(g<l)){if(g>f)break;_.push(g)}}else for(;p<=v;++p)for(y=r-1;y>=1;--y)if(g=p>0?y/o(-p):y*o(p),!(g<l)){if(g>f)break;_.push(g)}_.length*2<x&&(_=B2(l,f,x))}else _=B2(p,v,Math.min(v-p,x)).map(o);return d?_.reverse():_},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=bh(c)).precision==null&&(c.trim=!0),c=SC(c)),s===1/0)return c;const l=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<=l?c(f):""}},t.nice=()=>n(j8(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function A8(){const e=EC(D0()).domain([1,10]);return e.copy=()=>yp(e,A8()).base(e.base()),mi.apply(e,arguments),e}function MN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function LN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function CC(e){var t=1,n=e(MN(t),LN(t));return n.constant=function(r){return arguments.length?e(MN(t=+r),LN(t)):t},hs(n)}function k8(){var e=CC(D0());return e.copy=function(){return yp(e,k8()).constant(e.constant())},mi.apply(e,arguments)}function RN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zxe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Vxe(e){return e<0?-e*e:e*e}function PC(e){var t=e(Xn,Xn),n=1;function r(){return n===1?e(Xn,Xn):n===.5?e(zxe,Vxe):e(RN(n),RN(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},hs(t)}function TC(){var e=PC(D0());return e.copy=function(){return yp(e,TC()).exponent(e.exponent())},mi.apply(e,arguments),e}function Wxe(){return TC.apply(null,arguments).exponent(.5)}function $N(e){return Math.sign(e)*e*e}function Hxe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function N8(){var e=wC(),t=[0,1],n=!1,r;function i(o){var a=Hxe(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert($N(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,Wg)).map($N)),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 N8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},mi.apply(i,arguments),hs(i)}function M8(){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]=Z_e(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[vp(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(Wa),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 M8().domain(e).range(t).unknown(r)},mi.apply(o,arguments)}function L8(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[vp(r,c,0,n)]:o}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,s()):i.slice()},a.invertExtent=function(c){var l=i.indexOf(c);return l<0?[NaN,NaN]:l<1?[e,r[0]]:l>=n?[r[n-1],t]:[r[l-1],r[l]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return L8().domain([e,t]).range(i).unknown(o)},mi.apply(hs(a),arguments)}function R8(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[vp(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 R8().domain(e).range(t).unknown(n)},mi.apply(i,arguments)}const q1=new Date,K1=new Date;function fn(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 c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let l;do c.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return c},i.filter=o=>fn(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)=>(q1.setTime(+o),K1.setTime(+a),e(q1),e(K1),Math.floor(n(q1,K1))),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 qg=fn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);qg.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?fn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):qg);qg.range;const ko=1e3,oi=ko*60,No=oi*60,Ko=No*24,jC=Ko*7,IN=Ko*30,Y1=Ko*365,Gs=fn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ko)},(e,t)=>(t-e)/ko,e=>e.getUTCSeconds());Gs.range;const AC=fn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ko)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getMinutes());AC.range;const kC=fn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getUTCMinutes());kC.range;const NC=fn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ko-e.getMinutes()*oi)},(e,t)=>{e.setTime(+e+t*No)},(e,t)=>(t-e)/No,e=>e.getHours());NC.range;const MC=fn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*No)},(e,t)=>(t-e)/No,e=>e.getUTCHours());MC.range;const bp=fn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oi)/Ko,e=>e.getDate()-1);bp.range;const F0=fn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ko,e=>e.getUTCDate()-1);F0.range;const $8=fn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ko,e=>Math.floor(e/Ko));$8.range;function Pl(e){return fn(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())*oi)/jC)}const B0=Pl(0),Kg=Pl(1),Gxe=Pl(2),qxe=Pl(3),su=Pl(4),Kxe=Pl(5),Yxe=Pl(6);B0.range;Kg.range;Gxe.range;qxe.range;su.range;Kxe.range;Yxe.range;function Tl(e){return fn(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 U0=Tl(0),Yg=Tl(1),Zxe=Tl(2),Xxe=Tl(3),lu=Tl(4),Qxe=Tl(5),Jxe=Tl(6);U0.range;Yg.range;Zxe.range;Xxe.range;lu.range;Qxe.range;Jxe.range;const LC=fn(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());LC.range;const RC=fn(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());RC.range;const Yo=fn(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());Yo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:fn(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)});Yo.range;const Zo=fn(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());Zo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:fn(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)});Zo.range;function I8(e,t,n,r,i,o){const a=[[Gs,1,ko],[Gs,5,5*ko],[Gs,15,15*ko],[Gs,30,30*ko],[o,1,oi],[o,5,5*oi],[o,15,15*oi],[o,30,30*oi],[i,1,No],[i,3,3*No],[i,6,6*No],[i,12,12*No],[r,1,Ko],[r,2,2*Ko],[n,1,jC],[t,1,IN],[t,3,3*IN],[e,1,Y1]];function s(l,f,d){const p=f<l;p&&([l,f]=[f,l]);const v=d&&typeof d.range=="function"?d:c(l,f,d),y=v?v.range(l,+f+1):[];return p?y.reverse():y}function c(l,f,d){const p=Math.abs(f-l)/d,v=gC(([,,x])=>x).right(a,p);if(v===a.length)return e.every(z2(l/Y1,f/Y1,d));if(v===0)return qg.every(Math.max(z2(l,f,d),1));const[y,g]=a[p/a[v-1][2]<a[v][2]/p?v-1:v];return y.every(g)}return[s,c]}const[ewe,twe]=I8(Zo,RC,U0,$8,MC,kC),[nwe,rwe]=I8(Yo,LC,B0,bp,NC,AC);function Z1(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 X1(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 kf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function iwe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=Nf(i),f=Mf(i),d=Nf(o),p=Mf(o),v=Nf(a),y=Mf(a),g=Nf(s),x=Mf(s),_=Nf(c),b=Mf(c),w={a:ne,A:Z,b:z,B,c:null,d:VN,e:VN,f:Pwe,g:Iwe,G:Fwe,H:Swe,I:Ewe,j:Cwe,L:D8,m:Twe,M:jwe,p:H,q:ee,Q:GN,s:qN,S:Awe,u:kwe,U:Nwe,V:Mwe,w:Lwe,W:Rwe,x:null,X:null,y:$we,Y:Dwe,Z:Bwe,"%":HN},S={a:K,A:te,b:ie,B:ae,c:null,d:WN,e:WN,f:Wwe,g:e2e,G:n2e,H:Uwe,I:zwe,j:Vwe,L:B8,m:Hwe,M:Gwe,p:fe,q:j,Q:GN,s:qN,S:qwe,u:Kwe,U:Ywe,V:Zwe,w:Xwe,W:Qwe,x:null,X:null,y:Jwe,Y:t2e,Z:r2e,"%":HN},E={a:k,A:I,b:D,B:q,c:W,d:UN,e:UN,f:_we,g:BN,G:FN,H:zN,I:zN,j:vwe,L:bwe,m:mwe,M:gwe,p:F,q:pwe,Q:wwe,s:Owe,S:ywe,u:cwe,U:uwe,V:fwe,w:lwe,W:dwe,x:X,X:Q,y:BN,Y:FN,Z:hwe,"%":xwe};w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),S.x=C(n,S),S.X=C(r,S),S.c=C(t,S);function C(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=DN[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=kf(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=X1(kf(Y.y,0,1)),Se=he.getUTCDay(),he=Se>4||Se===0?Yg.ceil(he):Yg(he),he=F0.offset(he,(Y.V-1)*7),Y.y=he.getUTCFullYear(),Y.m=he.getUTCMonth(),Y.d=he.getUTCDate()+(Y.w+6)%7):(he=Z1(kf(Y.y,0,1)),Se=he.getDay(),he=Se>4||Se===0?Kg.ceil(he):Kg(he),he=bp.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?X1(kf(Y.y,0,1)).getUTCDay():Z1(kf(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,X1(Y)):Z1(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 DN?U.charAt(oe++):se],!pe||(Y=pe(N,J,Y))<0)return-1}else if(se!=J.charCodeAt(Y++))return-1}return Y}function F(N,U,J){var Y=l.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=y.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=p.get(Y[0].toLowerCase()),J+Y[0].length):-1}function D(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=g.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 c[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 c[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=C(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=C(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 DN={"-":"",_:" ",0:"0"},wn=/^\s*\d+/,owe=/^%/,awe=/[\\^$*+?|[\]().{}]/g;function ft(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 swe(e){return e.replace(awe,"\\$&")}function Nf(e){return new RegExp("^(?:"+e.map(swe).join("|")+")","i")}function Mf(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function lwe(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function cwe(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function uwe(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function fwe(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function dwe(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function FN(e,t,n){var r=wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function BN(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function hwe(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 pwe(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function mwe(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function UN(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function vwe(e,t,n){var r=wn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function zN(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function gwe(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ywe(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function bwe(e,t,n){var r=wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function _we(e,t,n){var r=wn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xwe(e,t,n){var r=owe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function wwe(e,t,n){var r=wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Owe(e,t,n){var r=wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function VN(e,t){return ft(e.getDate(),t,2)}function Swe(e,t){return ft(e.getHours(),t,2)}function Ewe(e,t){return ft(e.getHours()%12||12,t,2)}function Cwe(e,t){return ft(1+bp.count(Yo(e),e),t,3)}function D8(e,t){return ft(e.getMilliseconds(),t,3)}function Pwe(e,t){return D8(e,t)+"000"}function Twe(e,t){return ft(e.getMonth()+1,t,2)}function jwe(e,t){return ft(e.getMinutes(),t,2)}function Awe(e,t){return ft(e.getSeconds(),t,2)}function kwe(e){var t=e.getDay();return t===0?7:t}function Nwe(e,t){return ft(B0.count(Yo(e)-1,e),t,2)}function F8(e){var t=e.getDay();return t>=4||t===0?su(e):su.ceil(e)}function Mwe(e,t){return e=F8(e),ft(su.count(Yo(e),e)+(Yo(e).getDay()===4),t,2)}function Lwe(e){return e.getDay()}function Rwe(e,t){return ft(Kg.count(Yo(e)-1,e),t,2)}function $we(e,t){return ft(e.getFullYear()%100,t,2)}function Iwe(e,t){return e=F8(e),ft(e.getFullYear()%100,t,2)}function Dwe(e,t){return ft(e.getFullYear()%1e4,t,4)}function Fwe(e,t){var n=e.getDay();return e=n>=4||n===0?su(e):su.ceil(e),ft(e.getFullYear()%1e4,t,4)}function Bwe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ft(t/60|0,"0",2)+ft(t%60,"0",2)}function WN(e,t){return ft(e.getUTCDate(),t,2)}function Uwe(e,t){return ft(e.getUTCHours(),t,2)}function zwe(e,t){return ft(e.getUTCHours()%12||12,t,2)}function Vwe(e,t){return ft(1+F0.count(Zo(e),e),t,3)}function B8(e,t){return ft(e.getUTCMilliseconds(),t,3)}function Wwe(e,t){return B8(e,t)+"000"}function Hwe(e,t){return ft(e.getUTCMonth()+1,t,2)}function Gwe(e,t){return ft(e.getUTCMinutes(),t,2)}function qwe(e,t){return ft(e.getUTCSeconds(),t,2)}function Kwe(e){var t=e.getUTCDay();return t===0?7:t}function Ywe(e,t){return ft(U0.count(Zo(e)-1,e),t,2)}function U8(e){var t=e.getUTCDay();return t>=4||t===0?lu(e):lu.ceil(e)}function Zwe(e,t){return e=U8(e),ft(lu.count(Zo(e),e)+(Zo(e).getUTCDay()===4),t,2)}function Xwe(e){return e.getUTCDay()}function Qwe(e,t){return ft(Yg.count(Zo(e)-1,e),t,2)}function Jwe(e,t){return ft(e.getUTCFullYear()%100,t,2)}function e2e(e,t){return e=U8(e),ft(e.getUTCFullYear()%100,t,2)}function t2e(e,t){return ft(e.getUTCFullYear()%1e4,t,4)}function n2e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?lu(e):lu.ceil(e),ft(e.getUTCFullYear()%1e4,t,4)}function r2e(){return"+0000"}function HN(){return"%"}function GN(e){return+e}function qN(e){return Math.floor(+e/1e3)}var Yl,z8,V8;i2e({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 i2e(e){return Yl=iwe(e),z8=Yl.format,Yl.parse,V8=Yl.utcFormat,Yl.utcParse,Yl}function o2e(e){return new Date(e)}function a2e(e){return e instanceof Date?+e:+new Date(+e)}function $C(e,t,n,r,i,o,a,s,c,l){var f=wC(),d=f.invert,p=f.domain,v=l(".%L"),y=l(":%S"),g=l("%I:%M"),x=l("%I %p"),_=l("%a %d"),b=l("%b %d"),w=l("%B"),S=l("%Y");function E(C){return(c(C)<C?v:s(C)<C?y:a(C)<C?g:o(C)<C?x:r(C)<C?i(C)<C?_:b:n(C)<C?w:S)(C)}return f.invert=function(C){return new Date(d(C))},f.domain=function(C){return arguments.length?p(Array.from(C,a2e)):p().map(o2e)},f.ticks=function(C){var T=p();return e(T[0],T[T.length-1],C??10)},f.tickFormat=function(C,T){return T==null?E:l(T)},f.nice=function(C){var T=p();return(!C||typeof C.range!="function")&&(C=t(T[0],T[T.length-1],C??10)),C?p(j8(T,C)):f},f.copy=function(){return yp(f,$C(e,t,n,r,i,o,a,s,c,l))},f}function s2e(){return mi.apply($C(nwe,rwe,Yo,LC,B0,bp,NC,AC,Gs,z8).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function l2e(){return mi.apply($C(ewe,twe,Zo,RC,U0,F0,MC,kC,Gs,V8).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function z0(){var e=0,t=1,n,r,i,o,a=Xn,s=!1,c;function l(d){return d==null||isNaN(d=+d)?c:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}l.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(d){return arguments.length?(s=!!d,l):s},l.interpolator=function(d){return arguments.length?(a=d,l):a};function f(d){return function(p){var v,y;return arguments.length?([v,y]=p,a=d(v,y),l):[a(0),a(1)]}}return l.range=f(Uu),l.rangeRound=f(xC),l.unknown=function(d){return arguments.length?(c=d,l):c},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),l}}function ps(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function W8(){var e=hs(z0()(Xn));return e.copy=function(){return ps(e,W8())},aa.apply(e,arguments)}function H8(){var e=EC(z0()).domain([1,10]);return e.copy=function(){return ps(e,H8()).base(e.base())},aa.apply(e,arguments)}function G8(){var e=CC(z0());return e.copy=function(){return ps(e,G8()).constant(e.constant())},aa.apply(e,arguments)}function IC(){var e=PC(z0());return e.copy=function(){return ps(e,IC()).exponent(e.exponent())},aa.apply(e,arguments)}function c2e(){return IC.apply(null,arguments).exponent(.5)}function q8(){var e=[],t=Xn;function n(r){if(r!=null&&!isNaN(r=+r))return t((vp(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(Wa),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)=>Y_e(e,o/r))},n.copy=function(){return q8(t).domain(e)},aa.apply(n,arguments)}function V0(){var e=0,t=.5,n=1,r=1,i,o,a,s,c,l=Xn,f,d=!1,p;function v(g){return isNaN(g=+g)?p:(g=.5+((g=+f(g))-o)*(r*g<r*o?s:c),l(d?Math.max(0,Math.min(1,g)):g))}v.domain=function(g){return arguments.length?([e,t,n]=g,i=f(e=+e),o=f(t=+t),a=f(n=+n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(g){return arguments.length?(d=!!g,v):d},v.interpolator=function(g){return arguments.length?(l=g,v):l};function y(g){return function(x){var _,b,w;return arguments.length?([_,b,w]=x,l=xxe(g,[_,b,w]),v):[l(0),l(.5),l(1)]}}return v.range=y(Uu),v.rangeRound=y(xC),v.unknown=function(g){return arguments.length?(p=g,v):p},function(g){return f=g,i=g(e),o=g(t),a=g(n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,v}}function K8(){var e=hs(V0()(Xn));return e.copy=function(){return ps(e,K8())},aa.apply(e,arguments)}function Y8(){var e=EC(V0()).domain([.1,1,10]);return e.copy=function(){return ps(e,Y8()).base(e.base())},aa.apply(e,arguments)}function Z8(){var e=CC(V0());return e.copy=function(){return ps(e,Z8()).constant(e.constant())},aa.apply(e,arguments)}function DC(){var e=PC(V0());return e.copy=function(){return ps(e,DC()).exponent(e.exponent())},aa.apply(e,arguments)}function u2e(){return DC.apply(null,arguments).exponent(.5)}const KN=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:mh,scaleDiverging:K8,scaleDivergingLog:Y8,scaleDivergingPow:DC,scaleDivergingSqrt:u2e,scaleDivergingSymlog:Z8,scaleIdentity:T8,scaleImplicit:V2,scaleLinear:Gg,scaleLog:A8,scaleOrdinal:yC,scalePoint:vd,scalePow:TC,scaleQuantile:M8,scaleQuantize:L8,scaleRadial:N8,scaleSequential:W8,scaleSequentialLog:H8,scaleSequentialPow:IC,scaleSequentialQuantile:q8,scaleSequentialSqrt:c2e,scaleSequentialSymlog:G8,scaleSqrt:Wxe,scaleSymlog:k8,scaleThreshold:R8,scaleTime:s2e,scaleUtc:l2e,tickFormat:P8},Symbol.toStringTag,{value:"Module"}));var f2e=Nu;function d2e(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&&!f2e(a):n(a,s)))var s=a,c=o}return c}var W0=d2e;function h2e(e,t){return e>t}var X8=h2e,p2e=W0,m2e=X8,v2e=Bu;function g2e(e){return e&&e.length?p2e(e,v2e,m2e):void 0}var y2e=g2e;const ja=at(y2e);function b2e(e,t){return e<t}var Q8=b2e,_2e=W0,x2e=Q8,w2e=Bu;function O2e(e){return e&&e.length?_2e(e,w2e,x2e):void 0}var S2e=O2e;const H0=at(S2e);var E2e=XE,C2e=xo,P2e=a8,T2e=_r;function j2e(e,t){var n=T2e(e)?E2e:P2e;return n(e,C2e(t))}var A2e=j2e,k2e=i8,N2e=A2e;function M2e(e,t){return k2e(N2e(e,t),1)}var L2e=M2e;const R2e=at(L2e);var $2e=dC;function I2e(e,t){return $2e(e,t)}var D2e=I2e;const es=at(D2e);var zu=1e9,F2e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},BC,Mt=!0,hi="[DecimalError] ",rl=hi+"Invalid argument: ",FC=hi+"Exponent out of range: ",Vu=Math.floor,$s=Math.pow,B2e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Cr,vn=1e7,Ct=7,J8=9007199254740991,Zg=Vu(J8/Ct),$e={};$e.absoluteValue=$e.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};$e.comparedTo=$e.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};$e.decimalPlaces=$e.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ct;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};$e.dividedBy=$e.div=function(e){return $o(this,new this.constructor(e))};$e.dividedToIntegerBy=$e.idiv=function(e){var t=this,n=t.constructor;return bt($o(t,new n(e),0,1),n.precision)};$e.equals=$e.eq=function(e){return!this.cmp(e)};$e.exponent=function(){return rn(this)};$e.greaterThan=$e.gt=function(e){return this.cmp(e)>0};$e.greaterThanOrEqualTo=$e.gte=function(e){return this.cmp(e)>=0};$e.isInteger=$e.isint=function(){return this.e>this.d.length-2};$e.isNegative=$e.isneg=function(){return this.s<0};$e.isPositive=$e.ispos=function(){return this.s>0};$e.isZero=function(){return this.s===0};$e.lessThan=$e.lt=function(e){return this.cmp(e)<0};$e.lessThanOrEqualTo=$e.lte=function(e){return this.cmp(e)<1};$e.logarithm=$e.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(Cr))throw Error(hi+"NaN");if(n.s<1)throw Error(hi+(n.s?"NaN":"-Infinity"));return n.eq(Cr)?new r(0):(Mt=!1,t=$o(_h(n,o),_h(e,o),o),Mt=!0,bt(t,i))};$e.minus=$e.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nF(t,e):eF(t,(e.s=-e.s,e))};$e.modulo=$e.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(hi+"NaN");return n.s?(Mt=!1,t=$o(n,e,0,1).times(e),Mt=!0,n.minus(t)):bt(new r(n),i)};$e.naturalExponential=$e.exp=function(){return tF(this)};$e.naturalLogarithm=$e.ln=function(){return _h(this)};$e.negated=$e.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};$e.plus=$e.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?eF(t,e):nF(t,(e.s=-e.s,e))};$e.precision=$e.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(rl+e);if(t=rn(i)+1,r=i.d.length-1,n=r*Ct+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};$e.squareRoot=$e.sqrt=function(){var e,t,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(hi+"NaN")}for(e=rn(s),Mt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=no(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Vu((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 c(t)):r=new c(i.toString()),n=c.precision,i=a=n+3;;)if(o=r,r=o.plus($o(s,o,a+2)).times(.5),no(o.d).slice(0,a)===(t=no(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(bt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return Mt=!0,bt(r,n)};$e.times=$e.mul=function(e){var t,n,r,i,o,a,s,c,l,f=this,d=f.constructor,p=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,c=p.length,l=v.length,c<l&&(o=p,p=v,v=o,a=c,c=l,l=a),o=[],a=c+l,r=a;r--;)o.push(0);for(r=l;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+v[r]*p[i-r-1]+t,o[i--]=s%vn|0,t=s/vn|0;o[i]=(o[i]+t)%vn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Mt?bt(e,d.precision):e};$e.toDecimalPlaces=$e.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(mo(e,0,zu),t===void 0?t=r.rounding:mo(t,0,8),bt(n,e+rn(n)+1,t))};$e.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=yl(r,!0):(mo(e,0,zu),t===void 0?t=i.rounding:mo(t,0,8),r=bt(new i(r),e+1,t),n=yl(r,!0,e+1)),n};$e.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?yl(i):(mo(e,0,zu),t===void 0?t=o.rounding:mo(t,0,8),r=bt(new o(i),e+rn(i)+1,t),n=yl(r.abs(),!1,e+rn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};$e.toInteger=$e.toint=function(){var e=this,t=e.constructor;return bt(new t(e),rn(e)+1,t.rounding)};$e.toNumber=function(){return+this};$e.toPower=$e.pow=function(e){var t,n,r,i,o,a,s=this,c=s.constructor,l=12,f=+(e=new c(e));if(!e.s)return new c(Cr);if(s=new c(s),!s.s){if(e.s<1)throw Error(hi+"Infinity");return s}if(s.eq(Cr))return s;if(r=c.precision,e.eq(Cr))return bt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=J8){for(i=new c(Cr),t=Math.ceil(r/Ct+4),Mt=!1;n%2&&(i=i.times(s),ZN(i.d,t)),n=Vu(n/2),n!==0;)s=s.times(s),ZN(s.d,t);return Mt=!0,e.s<0?new c(Cr).div(i):bt(i,r)}}else if(o<0)throw Error(hi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Mt=!1,i=e.times(_h(s,r+l)),Mt=!0,i=tF(i),i.s=o,i};$e.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=rn(i),r=yl(i,n<=o.toExpNeg||n>=o.toExpPos)):(mo(e,1,zu),t===void 0?t=o.rounding:mo(t,0,8),i=bt(new o(i),e,t),n=rn(i),r=yl(i,e<=n||n<=o.toExpNeg,e)),r};$e.toSignificantDigits=$e.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(mo(e,1,zu),t===void 0?t=r.rounding:mo(t,0,8)),bt(new r(n),e,t)};$e.toString=$e.valueOf=$e.val=$e.toJSON=$e[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=rn(e),n=e.constructor;return yl(e,t<=n.toExpNeg||t>=n.toExpPos)};function eF(e,t){var n,r,i,o,a,s,c,l,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Mt?bt(t,d):t;if(c=e.d,l=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(r=c,o=-o,s=l.length):(r=l,i=a,s=c.length),a=Math.ceil(d/Ct),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=c.length,o=l.length,s-o<0&&(o=s,r=l,l=c,c=r),n=0;o;)n=(c[--o]=c[o]+l[o]+n)/vn|0,c[o]%=vn;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,Mt?bt(t,d):t}function mo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(rl+e)}function no(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=Ct-r.length,n&&(o+=xa(n)),o+=r;a=e[t],r=a+"",n=Ct-r.length,n&&(o+=xa(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var $o=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%vn|0,a=o/vn|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,c;if(o!=a)c=o>a?1:-1;else for(s=c=0;s<o;s++)if(r[s]!=i[s]){c=r[s]>i[s]?1:-1;break}return c}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*vn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,c,l,f,d,p,v,y,g,x,_,b,w,S,E,C,T,A,F=r.constructor,k=r.s==i.s?1:-1,I=r.d,D=i.d;if(!r.s)return new F(r);if(!i.s)throw Error(hi+"Division by zero");for(c=r.e-i.e,T=D.length,E=I.length,v=new F(k),y=v.d=[],l=0;D[l]==(I[l]||0);)++l;if(D[l]>(I[l]||0)&&--c,o==null?b=o=F.precision:a?b=o+(rn(r)-rn(i))+1:b=o,b<0)return new F(0);if(b=b/Ct+2|0,l=0,T==1)for(f=0,D=D[0],b++;(l<E||f)&&b--;l++)w=f*vn+(I[l]||0),y[l]=w/D|0,f=w%D|0;else{for(f=vn/(D[0]+1)|0,f>1&&(D=e(D,f),I=e(I,f),T=D.length,E=I.length),S=T,g=I.slice(0,T),x=g.length;x<T;)g[x++]=0;A=D.slice(),A.unshift(0),C=D[0],D[1]>=vn/2&&++C;do f=0,s=t(D,g,T,x),s<0?(_=g[0],T!=x&&(_=_*vn+(g[1]||0)),f=_/C|0,f>1?(f>=vn&&(f=vn-1),d=e(D,f),p=d.length,x=g.length,s=t(d,g,p,x),s==1&&(f--,n(d,T<p?A:D,p))):(f==0&&(s=f=1),d=D.slice()),p=d.length,p<x&&d.unshift(0),n(g,d,x),s==-1&&(x=g.length,s=t(D,g,T,x),s<1&&(f++,n(g,T<x?A:D,x))),x=g.length):s===0&&(f++,g=[0]),y[l++]=f,s&&g[0]?g[x++]=I[S]||0:(g=[I[S]],x=1);while((S++<E||g[0]!==void 0)&&b--)}return y[0]||y.shift(),v.e=c,bt(v,a?o+rn(v)+1:o)}}();function tF(e,t){var n,r,i,o,a,s,c=0,l=0,f=e.constructor,d=f.precision;if(rn(e)>16)throw Error(FC+rn(e));if(!e.s)return new f(Cr);for(t==null?(Mt=!1,s=d):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(r=Math.log($s(2,l))/Math.LN10*2+5|0,s+=r,n=i=o=new f(Cr),f.precision=s;;){if(i=bt(i.times(e),s),n=n.times(++c),a=o.plus($o(i,n,s)),no(a.d).slice(0,s)===no(o.d).slice(0,s)){for(;l--;)o=bt(o.times(o),s);return f.precision=d,t==null?(Mt=!0,bt(o,d)):o}o=a}}function rn(e){for(var t=e.e*Ct,n=e.d[0];n>=10;n/=10)t++;return t}function Q1(e,t,n){if(t>e.LN10.sd())throw Mt=!0,n&&(e.precision=n),Error(hi+"LN10 precision limit exceeded");return bt(new e(e.LN10),t)}function xa(e){for(var t="";e--;)t+="0";return t}function _h(e,t){var n,r,i,o,a,s,c,l,f,d=1,p=10,v=e,y=v.d,g=v.constructor,x=g.precision;if(v.s<1)throw Error(hi+(v.s?"NaN":"-Infinity"));if(v.eq(Cr))return new g(0);if(t==null?(Mt=!1,l=x):l=t,v.eq(10))return t==null&&(Mt=!0),Q1(g,l);if(l+=p,g.precision=l,n=no(y),r=n.charAt(0),o=rn(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=no(v.d),r=n.charAt(0),d++;o=rn(v),r>1?(v=new g("0."+n),o++):v=new g(r+"."+n.slice(1))}else return c=Q1(g,l+2,x).times(o+""),v=_h(new g(r+"."+n.slice(1)),l-p).plus(c),g.precision=x,t==null?(Mt=!0,bt(v,x)):v;for(s=a=v=$o(v.minus(Cr),v.plus(Cr),l),f=bt(v.times(v),l),i=3;;){if(a=bt(a.times(f),l),c=s.plus($o(a,new g(i),l)),no(c.d).slice(0,l)===no(s.d).slice(0,l))return s=s.times(2),o!==0&&(s=s.plus(Q1(g,l+2,x).times(o+""))),s=$o(s,new g(d),l),g.precision=x,t==null?(Mt=!0,bt(s,x)):s;s=c,i+=2}}function YN(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=Vu(n/Ct),e.d=[],r=(n+1)%Ct,n<0&&(r+=Ct),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Ct;r<i;)e.d.push(+t.slice(r,r+=Ct));t=t.slice(r),r=Ct-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Mt&&(e.e>Zg||e.e<-Zg))throw Error(FC+n)}else e.s=0,e.e=0,e.d=[0];return e}function bt(e,t,n){var r,i,o,a,s,c,l,f,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Ct,i=t,l=d[f=0];else{if(f=Math.ceil((r+1)/Ct),o=d.length,f>=o)return e;for(l=o=d[f],a=1;o>=10;o/=10)a++;r%=Ct,i=r-Ct+a}if(n!==void 0&&(o=$s(10,a-i-1),s=l/o%10|0,c=t<0||d[f+1]!==void 0||l%o,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?l/$s(10,a-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(o=rn(e),d.length=1,t=t-o-1,d[0]=$s(10,(Ct-t%Ct)%Ct),e.e=Vu(-t/Ct)||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=$s(10,Ct-r),d[f]=i>0?(l/$s(10,a-i)%$s(10,i)|0)*o:0),c)for(;;)if(f==0){(d[0]+=o)==vn&&(d[0]=1,++e.e);break}else{if(d[f]+=o,d[f]!=vn)break;d[f--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(Mt&&(e.e>Zg||e.e<-Zg))throw Error(FC+rn(e));return e}function nF(e,t){var n,r,i,o,a,s,c,l,f,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Mt?bt(t,v):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r,a){for(f=a<0,f?(n=c,a=-a,s=d.length):(n=d,r=l,s=c.length),i=Math.max(Math.ceil(v/Ct),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=d.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(c[i]!=d[i]){f=c[i]<d[i];break}a=0}for(f&&(n=c,c=d,d=n,t.s=-t.s),s=c.length,i=d.length-s;i>0;--i)c[s++]=0;for(i=d.length;i>a;){if(c[--i]<d[i]){for(o=i;o&&c[--o]===0;)c[o]=vn-1;--c[o],c[i]+=vn}c[i]-=d[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,Mt?bt(t,v):t):new p(0)}function yl(e,t,n){var r,i=rn(e),o=no(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+xa(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+xa(-i-1)+o,n&&(r=n-a)>0&&(o+=xa(r))):i>=a?(o+=xa(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+xa(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=xa(r))),e.s<0?"-"+o:o}function ZN(e,t){if(e.length>t)return e.length=t,!0}function rF(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(rl+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 YN(a,o.toString())}else if(typeof o!="string")throw Error(rl+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,B2e.test(o))YN(a,o);else throw Error(rl+o)}if(i.prototype=$e,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=rF,i.config=i.set=U2e,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 U2e(e){if(!e||typeof e!="object")throw Error(hi+"Object expected");var t,n,r,i=["precision",1,zu,"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(Vu(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(rl+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(rl+n+": "+r);return this}var BC=rF(F2e);Cr=new BC(1);const vt=BC;function z2e(e){return G2e(e)||H2e(e)||W2e(e)||V2e()}function V2e(){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 W2e(e,t){if(e){if(typeof e=="string")return q2(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 q2(e,t)}}function H2e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function G2e(e){if(Array.isArray(e))return q2(e)}function q2(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 q2e=function(t){return t},iF={"@@functional/placeholder":!0},oF=function(t){return t===iF},XN=function(t){return function n(){return arguments.length===0||arguments.length===1&&oF(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},K2e=function e(t,n){return t===1?n:XN(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!==iF}).length;return a>=t?n.apply(void 0,i):e(t-a,XN(function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var f=i.map(function(d){return oF(d)?c.shift():d});return n.apply(void 0,z2e(f).concat(c))}))})},G0=function(t){return K2e(t.length,t)},K2=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},Y2e=G0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Z2e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return q2e;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,c){return c(s)},o.apply(void 0,arguments))}},Y2=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},aF=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,c){return s===n[c]})||(n=o,r=t.apply(void 0,o)),r}};function X2e(e){var t;return e===0?t=1:t=Math.floor(new vt(e).abs().log(10).toNumber())+1,t}function Q2e(e,t,n){for(var r=new vt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var J2e=G0(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),eOe=G0(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),tOe=G0(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const q0={rangeStep:Q2e,getDigitCount:X2e,interpolateNumber:J2e,uninterpolateNumber:eOe,uninterpolateTruncation:tOe};function Z2(e){return iOe(e)||rOe(e)||sF(e)||nOe()}function nOe(){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 rOe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function iOe(e){if(Array.isArray(e))return X2(e)}function xh(e,t){return sOe(e)||aOe(e,t)||sF(e,t)||oOe()}function oOe(){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 sF(e,t){if(e){if(typeof e=="string")return X2(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 X2(e,t)}}function X2(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 aOe(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(c){i=!0,o=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function sOe(e){if(Array.isArray(e))return e}function lF(e){var t=xh(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function cF(e,t,n){if(e.lte(0))return new vt(0);var r=q0.getDigitCount(e.toNumber()),i=new vt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new vt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),c=s.mul(i);return t?c:new vt(Math.ceil(c))}function lOe(e,t,n){var r=1,i=new vt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new vt(10).pow(q0.getDigitCount(e)-1),i=new vt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new vt(Math.floor(e)))}else e===0?i=new vt(Math.floor((t-1)/2)):n||(i=new vt(Math.floor(e)));var a=Math.floor((t-1)/2),s=Z2e(Y2e(function(c){return i.add(new vt(c-a).mul(r)).toNumber()}),K2);return s(0,t)}function uF(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 vt(0),tickMin:new vt(0),tickMax:new vt(0)};var o=cF(new vt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new vt(0):(a=new vt(e).add(t).div(2),a=a.sub(new vt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new vt(t).sub(a).div(o).toNumber()),l=s+c+1;return l>n?uF(e,t,n,r,i+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:o,tickMin:a.sub(new vt(s).mul(o)),tickMax:a.add(new vt(c).mul(o))})}function cOe(e){var t=xh(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=lF([n,r]),c=xh(s,2),l=c[0],f=c[1];if(l===-1/0||f===1/0){var d=f===1/0?[l].concat(Z2(K2(0,i-1).map(function(){return 1/0}))):[].concat(Z2(K2(0,i-1).map(function(){return-1/0})),[f]);return n>r?Y2(d):d}if(l===f)return lOe(l,i,o);var p=uF(l,f,a,o),v=p.step,y=p.tickMin,g=p.tickMax,x=q0.rangeStep(y,g.add(new vt(.1).mul(v)),v);return n>r?Y2(x):x}function uOe(e,t){var n=xh(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=lF([r,i]),s=xh(a,2),c=s[0],l=s[1];if(c===-1/0||l===1/0)return[r,i];if(c===l)return[c];var f=Math.max(t,2),d=cF(new vt(l).sub(c).div(f-1),o,0),p=[].concat(Z2(q0.rangeStep(new vt(c),new vt(l).sub(new vt(.99).mul(d)),d)),[l]);return r>i?Y2(p):p}var fOe=aF(cOe),dOe=aF(uOe),hOe="Invariant failed";function bl(e,t){throw new Error(hOe)}var pOe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Xg(){return Xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xg.apply(this,arguments)}function mOe(e,t){return bOe(e)||yOe(e,t)||gOe(e,t)||vOe()}function vOe(){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 gOe(e,t){if(e){if(typeof e=="string")return QN(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 QN(e,t)}}function QN(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 yOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function bOe(e){if(Array.isArray(e))return e}function _Oe(e,t){if(e==null)return{};var n=xOe(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 xOe(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 Wu(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,c=e.yAxis,l=_Oe(e,pOe),f=De(l,!1);e.direction==="x"&&s.type!=="number"&&bl();var d=o.map(function(p){var v=a(p,i),y=v.x,g=v.y,x=v.value,_=v.errorVal;if(!_)return null;var b=[],w,S;if(Array.isArray(_)){var E=mOe(_,2);w=E[0],S=E[1]}else w=S=_;if(n==="vertical"){var C=s.scale,T=g+t,A=T+r,F=T-r,k=C(x-w),I=C(x+S);b.push({x1:I,y1:A,x2:I,y2:F}),b.push({x1:k,y1:T,x2:I,y2:T}),b.push({x1:k,y1:A,x2:k,y2:F})}else if(n==="horizontal"){var D=c.scale,q=y+t,W=q-r,X=q+r,Q=D(x-w),ne=D(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(Ze,Xg({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",Xg({},Z,{key:"line-".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))}))});return V.createElement(Ze,{className:"recharts-errorBars"},d)}Wu.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Wu.displayName="ErrorBar";function wh(e){"@babel/helpers - typeof";return wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wh(e)}function JN(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 J1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JN(Object(n),!0).forEach(function(r){wOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wOe(e,t,n){return t=OOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OOe(e){var t=SOe(e,"string");return wh(t)=="symbol"?t:String(t)}function SOe(e,t){if(wh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fF=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Er(n,ch);if(!a)return null;var s;return a.props&&a.props.payload?s=a.props&&a.props.payload:o==="children"?s=(r||[]).reduce(function(c,l){var f=l.item,d=l.props,p=d.sectors||d.data||[];return c.concat(p.map(function(v){return{type:a.props.iconType||f.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(r||[]).map(function(c){var l=c.item,f=l.props,d=f.dataKey,p=f.name,v=f.legendType,y=f.hide;return{inactive:y,dataKey:d,type:a.props.iconType||v||"square",color:UC(l),value:p||d,payload:l.props}}),J1(J1(J1({},a.props),ch.getWithHeight(a,i)),{},{payload:s,item:a})};function Oh(e){"@babel/helpers - typeof";return Oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oh(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eM(Object(n),!0).forEach(function(r){$c(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $c(e,t,n){return t=EOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EOe(e){var t=COe(e,"string");return Oh(t)=="symbol"?t:String(t)}function COe(e,t){if(Oh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Oh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tM(e){return AOe(e)||jOe(e)||TOe(e)||POe()}function POe(){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 TOe(e,t){if(e){if(typeof e=="string")return Q2(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 Q2(e,t)}}function jOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AOe(e){if(Array.isArray(e))return Q2(e)}function Q2(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 Pt(e,t,n){return Ue(e)||Ue(t)?n:cn(t)?Nr(e,t,n):Ve(t)?t(e):n}function gd(e,t,n,r){var i=R2e(e,function(s){return Pt(s,t)});if(n==="number"){var o=i.filter(function(s){return Ce(s)||parseFloat(s)});return o.length?[H0(o),ja(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!Ue(s)}):i;return a.map(function(s){return cn(s)||s instanceof Date?s:""})}var kOe=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 c=o.range,l=0;l<s;l++){var f=l>0?i[l-1].coordinate:i[s-1].coordinate,d=i[l].coordinate,p=l>=s-1?i[0].coordinate:i[l+1].coordinate,v=void 0;if(Yn(d-f)!==Yn(p-d)){var y=[];if(Yn(p-d)===Yn(c[1]-c[0])){v=p;var g=d+c[1]-c[0];y[0]=Math.min(g,(g+f)/2),y[1]=Math.max(g,(g+f)/2)}else{v=f;var x=p+c[1]-c[0];y[0]=Math.min(d,(x+d)/2),y[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>=y[0]&&t<=y[1]){a=i[l].index;break}}else{var b=Math.min(f,p),w=Math.max(f,p);if(t>(b+d)/2&&t<=(w+d)/2){a=i[l].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},UC=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},NOe=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),c=0,l=s.length;c<l;c++)for(var f=o[s[c]].stackGroups,d=Object.keys(f),p=0,v=d.length;p<v;p++){var y=f[d[p]],g=y.items,x=y.cateAxisId,_=g.filter(function(E){return Ro(E.type).indexOf("Bar")>=0});if(_&&_.length){var b=_[0].props.barSize,w=_[0].props[x];a[w]||(a[w]=[]);var S=Ue(b)?n:b;a[w].push({item:_[0],stackList:_.slice(1),barSize:Ue(S)?void 0:Zn(S,r,0)})}}return a},MOe=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,c=a.length;if(c<1)return null;var l=Zn(n,i,0,!0),f,d=[];if(a[0].barSize===+a[0].barSize){var p=!1,v=i/c,y=a.reduce(function(S,E){return S+E.barSize||0},0);y+=(c-1)*l,y>=i&&(y-=(c-1)*l,l=0),y>=i&&v>0&&(p=!0,v*=.9,y=c*v);var g=(i-y)/2>>0,x={offset:g-l,size:0};f=a.reduce(function(S,E){var C={item:E.item,position:{offset:x.offset+x.size+l,size:p?v:E.barSize}},T=[].concat(tM(S),[C]);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 _=Zn(r,i,0,!0);i-2*_-(c-1)*l<=0&&(l=0);var b=(i-2*_-(c-1)*l)/c;b>1&&(b>>=0);var w=s===+s?Math.min(b,s):b;f=a.reduce(function(S,E,C){var T=[].concat(tM(S),[{item:E.item,position:{offset:_+(b+l)*C+(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},LOe=function(t,n,r,i){var o=r.children,a=r.width,s=r.margin,c=a-(s.left||0)-(s.right||0),l=fF({children:o,legendWidth:c});if(l){var f=i||{},d=f.width,p=f.height,v=l.align,y=l.verticalAlign,g=l.layout;if((g==="vertical"||g==="horizontal"&&y==="middle")&&v!=="center"&&Ce(t[v]))return ti(ti({},t),{},$c({},v,t[v]+(d||0)));if((g==="horizontal"||g==="vertical"&&v==="center")&&y!=="middle"&&Ce(t[y]))return ti(ti({},t),{},$c({},y,t[y]+(p||0)))}return t},ROe=function(t,n,r){return Ue(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},dF=function(t,n,r,i,o){var a=n.props.children,s=tr(a,Wu).filter(function(l){return ROe(i,o,l.props.direction)});if(s&&s.length){var c=s.map(function(l){return l.props.dataKey});return t.reduce(function(l,f){var d=Pt(f,r);if(Ue(d))return l;var p=Array.isArray(d)?[H0(d),ja(d)]:[d,d],v=c.reduce(function(y,g){var x=Pt(f,g,0),_=p[0]-Math.abs(Array.isArray(x)?x[0]:x),b=p[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(_,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(v[0],l[0]),Math.max(v[1],l[1])]},[1/0,-1/0])}return null},$Oe=function(t,n,r,i,o){var a=n.map(function(s){return dF(t,s,r,o,i)}).filter(function(s){return!Ue(s)});return a&&a.length?a.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},hF=function(t,n,r,i,o){var a=n.map(function(c){var l=c.props.dataKey;return r==="number"&&l&&dF(t,c,l,i)||gd(t,l,r,o)});if(r==="number")return a.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);var s={};return a.reduce(function(c,l){for(var f=0,d=l.length;f<d;f++)s[l[f]]||(s[l[f]]=!0,c.push(l[f]));return c},[])},pF=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},mF=function(t,n,r,i){if(i)return t.map(function(c){return c.coordinate});var o,a,s=t.map(function(c){return c.coordinate===n&&(o=!0),c.coordinate===r&&(a=!0),c.coordinate});return o||s.push(n),a||s.push(r),s},Mo=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/c:0;if(l=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Yn(s[0]-s[1])*2*l:l,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var p=o?o.indexOf(d):d;return{coordinate:i(p)+l,value:d,offset:l}});return f.filter(function(d){return!Iu(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,p){return{coordinate:i(d)+l,value:d,index:p,offset:l}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+l,value:d,offset:l}}):i.domain().map(function(d,p){return{coordinate:i(d)+l,value:o?o[d]:d,index:p,offset:l}})},e_=new WeakMap,Tm=function(t,n){if(typeof n!="function")return t;e_.has(t)||e_.set(t,new WeakMap);var r=e_.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},vF=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:mh(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Gg(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:vd(),realScaleType:"point"}:o==="category"?{scale:mh(),realScaleType:"band"}:{scale:Gg(),realScaleType:"linear"};if(pp(i)){var c="scale".concat(A0(i));return{scale:(KN[c]||vd)(),realScaleType:KN[c]?c:"point"}}return Ve(i)?{scale:i}:{scale:vd(),realScaleType:"point"}},nM=1e-4,gF=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])-nM,a=Math.max(i[0],i[1])+nM,s=t(n[0]),c=t(n[r-1]);(s<o||s>a||c<o||c>a)&&t.domain([n[0],n[r-1]])}},IOe=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},DOe=function(t,n){if(!n||n.length!==2||!Ce(n[0])||!Ce(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(!Ce(t[0])||t[0]<r)&&(o[0]=r),(!Ce(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},FOe=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 c=Iu(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=o,t[s][r][1]=o+c,o=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+c,a=t[s][r][1])}},BOe=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=Iu(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)}},UOe={sign:FOe,expand:vhe,none:tu,silhouette:ghe,wiggle:yhe,positive:BOe},zOe=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),o=UOe[r],a=mhe().keys(i).value(function(s,c){return+Pt(s,c,0)}).order(O2).offset(o);return a(t)},VOe=function(t,n,r,i,o,a){if(!t)return null;var s=a?n.reverse():n,c={},l=s.reduce(function(d,p){var v=p.props,y=v.stackId,g=v.hide;if(g)return d;var x=p.props[r],_=d[x]||{hasStack:!1,stackGroups:{}};if(cn(y)){var b=_.stackGroups[y]||{numericAxisId:r,cateAxisId:i,items:[]};b.items.push(p),_.hasStack=!0,_.stackGroups[y]=b}else _.stackGroups[ds("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[p]};return ti(ti({},d),{},$c({},x,_))},c),f={};return Object.keys(l).reduce(function(d,p){var v=l[p];if(v.hasStack){var y={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(g,x){var _=v.stackGroups[x];return ti(ti({},g),{},$c({},x,{numericAxisId:r,cateAxisId:i,items:_.items,stackedData:zOe(t,_.items,o)}))},y)}return ti(ti({},d),{},$c({},p,v))},f)},yF=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,s=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var l=t.domain();if(!l.length)return null;var f=fOe(l,o,s);return t.domain([H0(f),ja(f)]),{niceTicks:f}}if(o&&i==="number"){var d=t.domain(),p=dOe(d,o,s);return{niceTicks:p}}return null};function cu(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&&!Ue(i[t.dataKey])){var s=Eg(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=Pt(i,Ue(a)?t.dataKey:a);return Ue(c)?null:t.scale(c)}var rM=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 c=Pt(a,n.dataKey,n.domain[s]);return Ue(c)?null:n.scale(c)-o/2+i},WOe=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]},HOe=function(t,n){var r=t.props.stackId;if(cn(r)){var i=n[r];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null},GOe=function(t){return t.reduce(function(n,r){return[H0(r.concat([n[0]]).filter(Ce)),ja(r.concat([n[1]]).filter(Ce))]},[1/0,-1/0])},bF=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,c=s.reduce(function(l,f){var d=GOe(f.slice(n,r+1));return[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},iM=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oM=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,J2=function(t,n,r){if(Ve(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Ce(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(iM.test(t[0])){var o=+iM.exec(t[0])[1];i[0]=n[0]-o}else Ve(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Ce(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(oM.test(t[1])){var a=+oM.exec(t[1])[1];i[1]=n[1]+a}else Ve(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Qg=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=pC(n,function(d){return d.coordinate}),a=1/0,s=1,c=o.length;s<c;s++){var l=o[s],f=o[s-1];a=Math.min((l.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},aM=function(t,n,r){return!t||!t.length||es(t,Nr(r,"type.defaultProps.domain"))?n:t},_F=function(t,n){var r=t.props,i=r.dataKey,o=r.name,a=r.unit,s=r.formatter,c=r.tooltipType,l=r.chartType,f=r.hide;return ti(ti({},De(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:UC(t),value:Pt(n,i),type:c,payload:n,chartType:l,hide:f})};function Sh(e){"@babel/helpers - typeof";return Sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sh(e)}function sM(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 Po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sM(Object(n),!0).forEach(function(r){xF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xF(e,t,n){return t=qOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qOe(e){var t=KOe(e,"string");return Sh(t)=="symbol"?t:String(t)}function KOe(e,t){if(Sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YOe(e,t){return JOe(e)||QOe(e,t)||XOe(e,t)||ZOe()}function ZOe(){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 XOe(e,t){if(e){if(typeof e=="string")return lM(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 lM(e,t)}}function lM(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 QOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function JOe(e){if(Array.isArray(e))return e}var Jg=Math.PI/180,eSe=function(t){return t*180/Math.PI},Ot=function(t,n,r,i){return{x:t+Math.cos(-Jg*i)*r,y:n+Math.sin(-Jg*i)*r}},wF=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},tSe=function(t,n,r,i,o){var a=t.width,s=t.height,c=t.startAngle,l=t.endAngle,f=Zn(t.cx,a,a/2),d=Zn(t.cy,s,s/2),p=wF(a,s,r),v=Zn(t.innerRadius,p,0),y=Zn(t.outerRadius,p,p*.8),g=Object.keys(n);return g.reduce(function(x,_){var b=n[_],w=b.domain,S=b.reversed,E;if(Ue(b.range))i==="angleAxis"?E=[c,l]:i==="radiusAxis"&&(E=[v,y]),S&&(E=[E[1],E[0]]);else{E=b.range;var C=E,T=YOe(C,2);c=T[0],l=T[1]}var A=vF(b,o),F=A.realScaleType,k=A.scale;k.domain(w).range(E),gF(k);var I=yF(k,Po(Po({},b),{},{realScaleType:F})),D=Po(Po(Po({},b),I),{},{range:E,radius:y,realScaleType:F,scale:k,cx:f,cy:d,innerRadius:v,outerRadius:y,startAngle:c,endAngle:l});return Po(Po({},x),{},xF({},_,D))},{})},nSe=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))},rSe=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,s=nSe({x:r,y:i},{x:o,y:a});if(s<=0)return{radius:s};var c=(r-o)/s,l=Math.acos(c);return i>a&&(l=2*Math.PI-l),{radius:s,angle:eSe(l),angleInRadian:l}},iSe=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}},oSe=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},cM=function(t,n){var r=t.x,i=t.y,o=rSe({x:r,y:i},n),a=o.radius,s=o.angle,c=n.innerRadius,l=n.outerRadius;if(a<c||a>l)return!1;if(a===0)return!0;var f=iSe(n),d=f.startAngle,p=f.endAngle,v=s,y;if(d<=p){for(;v>p;)v-=360;for(;v<d;)v+=360;y=v>=d&&v<=p}else{for(;v>d;)v-=360;for(;v<p;)v+=360;y=v>=p&&v<=d}return y?Po(Po({},n),{},{radius:a,angle:oSe(v,n)}):null},OF=function(t){return!M.isValidElement(t)&&!Ve(t)&&typeof t!="boolean"?t.className:""};function Eh(e){"@babel/helpers - typeof";return Eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eh(e)}var aSe=["offset"];function sSe(e){return fSe(e)||uSe(e)||cSe(e)||lSe()}function lSe(){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 cSe(e,t){if(e){if(typeof e=="string")return eO(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 eO(e,t)}}function uSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fSe(e){if(Array.isArray(e))return eO(e)}function eO(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 dSe(e,t){if(e==null)return{};var n=hSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hSe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function uM(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 an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uM(Object(n),!0).forEach(function(r){pSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pSe(e,t,n){return t=mSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mSe(e){var t=vSe(e,"string");return Eh(t)=="symbol"?t:String(t)}function vSe(e,t){if(Eh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Eh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ch.apply(this,arguments)}var gSe=function(t){var n=t.value,r=t.formatter,i=Ue(t.children)?n:t.children;return Ve(r)?r(i):i},ySe=function(t,n){var r=Yn(n-t),i=Math.min(Math.abs(n-t),360);return r*i},bSe=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,c=o,l=c.cx,f=c.cy,d=c.innerRadius,p=c.outerRadius,v=c.startAngle,y=c.endAngle,g=c.clockWise,x=(d+p)/2,_=ySe(v,y),b=_>=0?1:-1,w,S;i==="insideStart"?(w=v+b*a,S=g):i==="insideEnd"?(w=y-b*a,S=!g):i==="end"&&(w=y+b*a,S=g),S=_<=0?S:!S;var E=Ot(l,f,x,w),C=Ot(l,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(C.x,",").concat(C.y),A=Ue(t.id)?ds("recharts-radial-line-"):t.id;return V.createElement("text",Ch({},r,{dominantBaseline:"central",className:Ee("recharts-radial-bar-label",s)}),V.createElement("defs",null,V.createElement("path",{id:A,d:T})),V.createElement("textPath",{xlinkHref:"#".concat(A)},n))},_Se=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,s=o.cy,c=o.innerRadius,l=o.outerRadius,f=o.startAngle,d=o.endAngle,p=(f+d)/2;if(i==="outside"){var v=Ot(a,s,l+r,p),y=v.x,g=v.y;return{x:y,y:g,textAnchor:y>=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=(c+l)/2,_=Ot(a,s,x,p),b=_.x,w=_.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},xSe=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,s=a.x,c=a.y,l=a.width,f=a.height,d=f>=0?1:-1,p=d*i,v=d>0?"end":"start",y=d>0?"start":"end",g=l>=0?1:-1,x=g*i,_=g>0?"end":"start",b=g>0?"start":"end";if(o==="top"){var w={x:s+l/2,y:c-d*i,textAnchor:"middle",verticalAnchor:v};return an(an({},w),r?{height:Math.max(c-r.y,0),width:l}:{})}if(o==="bottom"){var S={x:s+l/2,y:c+f+p,textAnchor:"middle",verticalAnchor:y};return an(an({},S),r?{height:Math.max(r.y+r.height-(c+f),0),width:l}:{})}if(o==="left"){var E={x:s-x,y:c+f/2,textAnchor:_,verticalAnchor:"middle"};return an(an({},E),r?{width:Math.max(E.x-r.x,0),height:f}:{})}if(o==="right"){var C={x:s+l+x,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return an(an({},C),r?{width:Math.max(r.x+r.width-C.x,0),height:f}:{})}var T=r?{width:l,height:f}:{};return o==="insideLeft"?an({x:s+x,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},T):o==="insideRight"?an({x:s+l-x,y:c+f/2,textAnchor:_,verticalAnchor:"middle"},T):o==="insideTop"?an({x:s+l/2,y:c+p,textAnchor:"middle",verticalAnchor:y},T):o==="insideBottom"?an({x:s+l/2,y:c+f-p,textAnchor:"middle",verticalAnchor:v},T):o==="insideTopLeft"?an({x:s+x,y:c+p,textAnchor:b,verticalAnchor:y},T):o==="insideTopRight"?an({x:s+l-x,y:c+p,textAnchor:_,verticalAnchor:y},T):o==="insideBottomLeft"?an({x:s+x,y:c+f-p,textAnchor:b,verticalAnchor:v},T):o==="insideBottomRight"?an({x:s+l-x,y:c+f-p,textAnchor:_,verticalAnchor:v},T):Mu(o)&&(Ce(o.x)||Ws(o.x))&&(Ce(o.y)||Ws(o.y))?an({x:s+Zn(o.x,l),y:c+Zn(o.y,f),textAnchor:"end",verticalAnchor:"end"},T):an({x:s+l/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},T)},wSe=function(t){return"cx"in t&&Ce(t.cx)};function yn(e){var t=e.offset,n=t===void 0?5:t,r=dSe(e,aSe),i=an({offset:n},r),o=i.viewBox,a=i.position,s=i.value,c=i.children,l=i.content,f=i.className,d=f===void 0?"":f,p=i.textBreakAll;if(!o||Ue(s)&&Ue(c)&&!M.isValidElement(l)&&!Ve(l))return null;if(M.isValidElement(l))return M.cloneElement(l,i);var v;if(Ve(l)){if(v=M.createElement(l,i),M.isValidElement(v))return v}else v=gSe(i);var y=wSe(o),g=De(i,!0);if(y&&(a==="insideStart"||a==="insideEnd"||a==="end"))return bSe(i,v,g);var x=y?_Se(i):xSe(i);return V.createElement(gl,Ch({className:Ee("recharts-label",d)},g,x,{breakAll:p}),v)}yn.displayName="Label";var SF=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,c=t.radius,l=t.innerRadius,f=t.outerRadius,d=t.x,p=t.y,v=t.top,y=t.left,g=t.width,x=t.height,_=t.clockWise,b=t.labelViewBox;if(b)return b;if(Ce(g)&&Ce(x)){if(Ce(d)&&Ce(p))return{x:d,y:p,width:g,height:x};if(Ce(v)&&Ce(y))return{x:v,y,width:g,height:x}}return Ce(d)&&Ce(p)?{x:d,y:p,width:0,height:0}:Ce(n)&&Ce(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:l||0,outerRadius:f||c||s||0,clockWise:_}:t.viewBox?t.viewBox:{}},OSe=function(t,n){return t?t===!0?V.createElement(yn,{key:"label-implicit",viewBox:n}):cn(t)?V.createElement(yn,{key:"label-implicit",viewBox:n,value:t}):M.isValidElement(t)?t.type===yn?M.cloneElement(t,{key:"label-implicit",viewBox:n}):V.createElement(yn,{key:"label-implicit",content:t,viewBox:n}):Ve(t)?V.createElement(yn,{key:"label-implicit",content:t,viewBox:n}):Mu(t)?V.createElement(yn,Ch({viewBox:n},t,{key:"label-implicit"})):null:null},SSe=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=SF(t),a=tr(i,yn).map(function(c,l){return M.cloneElement(c,{viewBox:n||o,key:"label-".concat(l)})});if(!r)return a;var s=OSe(t.label,n||o);return[s].concat(sSe(a))};yn.parseViewBox=SF;yn.renderCallByParent=SSe;function ESe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var CSe=ESe;const PSe=at(CSe);function Ph(e){"@babel/helpers - typeof";return Ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ph(e)}var TSe=["valueAccessor"],jSe=["data","dataKey","clockWise","id","textBreakAll"];function ASe(e){return LSe(e)||MSe(e)||NSe(e)||kSe()}function kSe(){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 NSe(e,t){if(e){if(typeof e=="string")return tO(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 tO(e,t)}}function MSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LSe(e){if(Array.isArray(e))return tO(e)}function tO(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 ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ey.apply(this,arguments)}function fM(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 dM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(n),!0).forEach(function(r){RSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RSe(e,t,n){return t=$Se(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Se(e){var t=ISe(e,"string");return Ph(t)=="symbol"?t:String(t)}function ISe(e,t){if(Ph(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ph(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hM(e,t){if(e==null)return{};var n=DSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DSe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var FSe=function(t){return Array.isArray(t.value)?PSe(t.value):t.value};function Mi(e){var t=e.valueAccessor,n=t===void 0?FSe:t,r=hM(e,TSe),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,c=r.textBreakAll,l=hM(r,jSe);return!i||!i.length?null:V.createElement(Ze,{className:"recharts-label-list"},i.map(function(f,d){var p=Ue(o)?n(f,d):Pt(f&&f.payload,o),v=Ue(s)?{}:{id:"".concat(s,"-").concat(d)};return V.createElement(yn,ey({},De(f,!0),l,v,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:yn.parseViewBox(Ue(a)?f:dM(dM({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}Mi.displayName="LabelList";function BSe(e,t){return e?e===!0?V.createElement(Mi,{key:"labelList-implicit",data:t}):V.isValidElement(e)||Ve(e)?V.createElement(Mi,{key:"labelList-implicit",data:t,content:e}):Mu(e)?V.createElement(Mi,ey({data:t},e,{key:"labelList-implicit"})):null:null}function USe(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=tr(r,Mi).map(function(a,s){return M.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=BSe(e.label,t);return[o].concat(ASe(i))}Mi.renderCallByParent=USe;function Th(e){"@babel/helpers - typeof";return Th=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Th(e)}function nO(){return nO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nO.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 mM(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){zSe(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 zSe(e,t,n){return t=VSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VSe(e){var t=WSe(e,"string");return Th(t)=="symbol"?t:String(t)}function WSe(e,t){if(Th(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Th(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HSe=function(t,n){var r=Yn(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},jm=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,c=t.cornerRadius,l=t.cornerIsExternal,f=c*(s?1:-1)+i,d=Math.asin(c/f)/Jg,p=l?o:o+a*d,v=Ot(n,r,f,p),y=Ot(n,r,i,p),g=l?o-a*d:o,x=Ot(n,r,f*Math.cos(d*Jg),g);return{center:v,circleTangency:y,lineTangency:x,theta:d}},EF=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,c=HSe(a,s),l=a+c,f=Ot(n,r,o,a),d=Ot(n,r,o,l),p="M ".concat(f.x,",").concat(f.y,`
A `).concat(o,",").concat(o,`,0,
`).concat(+(Math.abs(c)>180),",").concat(+(a>l),`,
`).concat(d.x,",").concat(d.y,`
`);if(i>0){var v=Ot(n,r,i,a),y=Ot(n,r,i,l);p+="L ".concat(y.x,",").concat(y.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(c)>180),",").concat(+(a<=l),`,
`).concat(v.x,",").concat(v.y," Z")}else p+="L ".concat(n,",").concat(r," Z");return p},GSe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,f=t.endAngle,d=Yn(f-l),p=jm({cx:n,cy:r,radius:o,angle:l,sign:d,cornerRadius:a,cornerIsExternal:c}),v=p.circleTangency,y=p.lineTangency,g=p.theta,x=jm({cx:n,cy:r,radius:o,angle:f,sign:-d,cornerRadius:a,cornerIsExternal:c}),_=x.circleTangency,b=x.lineTangency,w=x.theta,S=c?Math.abs(l-f):Math.abs(l-f)-g-w;if(S<0)return s?"M ".concat(y.x,",").concat(y.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
`):EF({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:f});var E="M ".concat(y.x,",").concat(y.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 C=jm({cx:n,cy:r,radius:i,angle:l,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),T=C.circleTangency,A=C.lineTangency,F=C.theta,k=jm({cx:n,cy:r,radius:i,angle:f,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),I=k.circleTangency,D=k.lineTangency,q=k.theta,W=c?Math.abs(l-f):Math.abs(l-f)-F-q;if(W<0&&a===0)return"".concat(E,"L").concat(n,",").concat(r,"Z");E+="L".concat(D.x,",").concat(D.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},qSe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},CF=function(t){var n=mM(mM({},qSe),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,l=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,p=n.className;if(a<o||f===d)return null;var v=Ee("recharts-sector",p),y=a-o,g=Zn(s,y,0,!0),x;return g>0&&Math.abs(f-d)<360?x=GSe({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(g,y/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:f,endAngle:d}):x=EF({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:d}),V.createElement("path",nO({},De(n,!0),{className:v,d:x,role:"img"}))};function jh(e){"@babel/helpers - typeof";return jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jh(e)}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 vM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vM(Object(n),!0).forEach(function(r){KSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KSe(e,t,n){return t=YSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YSe(e){var t=ZSe(e,"string");return jh(t)=="symbol"?t:String(t)}function ZSe(e,t){if(jh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yM={curveBasisClosed:ihe,curveBasisOpen:ohe,curveBasis:rhe,curveBumpX:Vde,curveBumpY:Wde,curveLinearClosed:ahe,curveLinear:N0,curveMonotoneX:she,curveMonotoneY:lhe,curveNatural:che,curveStep:uhe,curveStepAfter:dhe,curveStepBefore:fhe},Am=function(t){return t.x===+t.x&&t.y===+t.y},Lf=function(t){return t.x},Rf=function(t){return t.y},XSe=function(t,n){if(Ve(t))return t;var r="curve".concat(A0(t));return(r==="curveMonotone"||r==="curveBump")&&n?yM["".concat(r).concat(n==="vertical"?"Y":"X")]:yM[r]||N0},QSe=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,c=t.connectNulls,l=c===void 0?!1:c,f=XSe(r,s),d=l?o.filter(function(g){return Am(g)}):o,p;if(Array.isArray(a)){var v=l?a.filter(function(g){return Am(g)}):a,y=d.map(function(g,x){return gM(gM({},g),{},{base:v[x]})});return s==="vertical"?p=_m().y(Rf).x1(Lf).x0(function(g){return g.base.x}):p=_m().x(Lf).y1(Rf).y0(function(g){return g.base.y}),p.defined(Am).curve(f),p(y)}return s==="vertical"&&Ce(a)?p=_m().y(Rf).x1(Lf).x0(a):Ce(a)?p=_m().x(Lf).y1(Rf).y0(a):p=w5().x(Lf).y(Rf),p.defined(Am).curve(f),p(d)},Ha=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?QSe(t):i;return V.createElement("path",rO({},De(t,!1),Cg(t),{className:Ee("recharts-curve",n),d:a,ref:o}))},JSe=Object.getOwnPropertyNames,eEe=Object.getOwnPropertySymbols,tEe=Object.prototype.hasOwnProperty;function bM(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function km(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 c=e(n,r,i);return o.delete(n),o.delete(r),c}}function _M(e){return JSe(e).concat(eEe(e))}var PF=Object.hasOwn||function(e,t){return tEe.call(e,t)};function Hu(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var TF="_owner",xM=Object.getOwnPropertyDescriptor,wM=Object.keys;function nEe(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 rEe(e,t){return Hu(e.getTime(),t.getTime())}function OM(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 c=t.entries(),l=!1,f=0;(s=c.next())&&!s.done;){var d=a.value,p=d[0],v=d[1],y=s.value,g=y[0],x=y[1];!l&&!r[f]&&(l=n.equals(p,g,o,f,e,t,n)&&n.equals(v,x,p,g,e,t,n))&&(r[f]=!0),f++}if(!l)return!1;o++}return!0}function iEe(e,t,n){var r=wM(e),i=r.length;if(wM(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===TF&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!PF(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function $f(e,t,n){var r=_M(e),i=r.length;if(_M(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===TF&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!PF(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=xM(e,o),s=xM(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function oEe(e,t){return Hu(e.valueOf(),t.valueOf())}function aEe(e,t){return e.source===t.source&&e.flags===t.flags}function SM(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(),c=!1,l=0;(a=s.next())&&!a.done;)!c&&!r[l]&&(c=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[l]=!0),l++;if(!c)return!1}return!0}function sEe(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 lEe="[object Arguments]",cEe="[object Boolean]",uEe="[object Date]",fEe="[object Map]",dEe="[object Number]",hEe="[object Object]",pEe="[object RegExp]",mEe="[object Set]",vEe="[object String]",gEe=Array.isArray,EM=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,CM=Object.assign,yEe=Object.prototype.toString.call.bind(Object.prototype.toString);function bEe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(f,d,p){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,p);if(gEe(f))return t(f,d,p);if(EM!=null&&EM(f))return c(f,d,p);if(v===Date)return n(f,d,p);if(v===RegExp)return a(f,d,p);if(v===Map)return r(f,d,p);if(v===Set)return s(f,d,p);var y=yEe(f);return y===uEe?n(f,d,p):y===pEe?a(f,d,p):y===fEe?r(f,d,p):y===mEe?s(f,d,p):y===hEe?typeof f.then!="function"&&typeof d.then!="function"&&i(f,d,p):y===lEe?i(f,d,p):y===cEe||y===dEe||y===vEe?o(f,d,p):!1}}function _Ee(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?$f:nEe,areDatesEqual:rEe,areMapsEqual:r?bM(OM,$f):OM,areObjectsEqual:r?$f:iEe,arePrimitiveWrappersEqual:oEe,areRegExpsEqual:aEe,areSetsEqual:r?bM(SM,$f):SM,areTypedArraysEqual:r?$f:sEe};if(n&&(i=CM({},i,n(i))),t){var o=km(i.areArraysEqual),a=km(i.areMapsEqual),s=km(i.areObjectsEqual),c=km(i.areSetsEqual);i=CM({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return i}function xEe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function wEe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(c,l){var f=r(),d=f.cache,p=d===void 0?t?new WeakMap:void 0:d,v=f.meta;return n(c,l,{cache:p,equals:i,meta:v,strict:o})};if(t)return function(c,l){return n(c,l,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(c,l){return n(c,l,a)}}var OEe=ms();ms({strict:!0});ms({circular:!0});ms({circular:!0,strict:!0});ms({createInternalComparator:function(){return Hu}});ms({strict:!0,createInternalComparator:function(){return Hu}});ms({circular:!0,createInternalComparator:function(){return Hu}});ms({circular:!0,createInternalComparator:function(){return Hu},strict:!0});function ms(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=_Ee(e),c=bEe(s),l=r?r(c):xEe(c);return wEe({circular:n,comparator:c,createState:i,equals:l,strict:a})}function SEe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function PM(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):SEe(i)};requestAnimationFrame(r)}function iO(e){"@babel/helpers - typeof";return iO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iO(e)}function EEe(e){return jEe(e)||TEe(e)||PEe(e)||CEe()}function CEe(){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 PEe(e,t){if(e){if(typeof e=="string")return TM(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 TM(e,t)}}function TM(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 TEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jEe(e){if(Array.isArray(e))return e}function AEe(){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=EEe(a),c=s[0],l=s.slice(1);if(typeof c=="number"){PM(i.bind(null,l),c);return}i(c),PM(i.bind(null,l));return}iO(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 Ah(e){"@babel/helpers - typeof";return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ah(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 AM(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){jF(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 jF(e,t,n){return t=kEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kEe(e){var t=NEe(e,"string");return Ah(t)==="symbol"?t:String(t)}function NEe(e,t){if(Ah(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ah(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MEe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},LEe=function(t){return t},REe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},yd=function(t,n){return Object.keys(n).reduce(function(r,i){return AM(AM({},r),{},jF({},i,t(i,n[i])))},{})},kM=function(t,n,r){return t.map(function(i){return"".concat(REe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function $Ee(e,t){return FEe(e)||DEe(e,t)||AF(e,t)||IEe()}function IEe(){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 DEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function FEe(e){if(Array.isArray(e))return e}function BEe(e){return VEe(e)||zEe(e)||AF(e)||UEe()}function UEe(){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 AF(e,t){if(e){if(typeof e=="string")return oO(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 oO(e,t)}}function zEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VEe(e){if(Array.isArray(e))return oO(e)}function oO(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 ty=1e-4,kF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},NF=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},NM=function(t,n){return function(r){var i=kF(t,n);return NF(i,r)}},WEe=function(t,n){return function(r){var i=kF(t,n),o=[].concat(BEe(i.map(function(a,s){return a*s}).slice(1)),[0]);return NF(o,r)}},MM=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 c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var l=c[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),f=$Ee(l,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var d=NM(i,a),p=NM(o,s),v=WEe(i,a),y=function(_){return _>1?1:_<0?0:_},g=function(_){for(var b=_>1?1:_,w=b,S=0;S<8;++S){var E=d(w)-b,C=v(w);if(Math.abs(E-b)<ty||C<ty)return p(w);w=y(w-E/C)}return p(w)};return g.isStepper=!1,g},HEe=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,c=function(f,d,p){var v=-(f-d)*r,y=p*o,g=p+(v-y)*s/1e3,x=p*s/1e3+f;return Math.abs(x-d)<ty&&Math.abs(g)<ty?[d,0]:[x,g]};return c.isStepper=!0,c.dt=s,c},GEe=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 MM(i);case"spring":return HEe();default:if(i.split("(")[0]==="cubic-bezier")return MM(i)}return typeof i=="function"?i:null};function kh(e){"@babel/helpers - typeof";return kh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kh(e)}function LM(e){return YEe(e)||KEe(e)||MF(e)||qEe()}function qEe(){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 KEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YEe(e){if(Array.isArray(e))return sO(e)}function RM(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 An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RM(Object(n),!0).forEach(function(r){aO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aO(e,t,n){return t=ZEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZEe(e){var t=XEe(e,"string");return kh(t)==="symbol"?t:String(t)}function XEe(e,t){if(kh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QEe(e,t){return tCe(e)||eCe(e,t)||MF(e,t)||JEe()}function JEe(){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 MF(e,t){if(e){if(typeof e=="string")return sO(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 sO(e,t)}}function sO(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 eCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function tCe(e){if(Array.isArray(e))return e}var ny=function(t,n,r){return t+(n-t)*r},lO=function(t){var n=t.from,r=t.to;return n!==r},nCe=function e(t,n,r){var i=yd(function(o,a){if(lO(a)){var s=t(a.from,a.to,a.velocity),c=QEe(s,2),l=c[0],f=c[1];return An(An({},a),{},{from:l,velocity:f})}return a},n);return r<1?yd(function(o,a){return lO(a)?An(An({},a),{},{velocity:ny(a.velocity,i[o].velocity,r),from:ny(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const rCe=function(e,t,n,r,i){var o=MEe(e,t),a=o.reduce(function(x,_){return An(An({},x),{},aO({},_,[e[_],t[_]]))},{}),s=o.reduce(function(x,_){return An(An({},x),{},aO({},_,{from:e[_],velocity:0,to:t[_]}))},{}),c=-1,l,f,d=function(){return null},p=function(){return yd(function(_,b){return b.from},s)},v=function(){return!Object.values(s).filter(lO).length},y=function(_){l||(l=_);var b=_-l,w=b/n.dt;s=nCe(n,s,w),i(An(An(An({},e),t),p())),l=_,v()||(c=requestAnimationFrame(d))},g=function(_){f||(f=_);var b=(_-f)/r,w=yd(function(E,C){return ny.apply(void 0,LM(C).concat([n(b)]))},a);if(i(An(An(An({},e),t),w)),b<1)c=requestAnimationFrame(d);else{var S=yd(function(E,C){return ny.apply(void 0,LM(C).concat([n(1)]))},a);i(An(An(An({},e),t),S))}};return d=n.isStepper?y:g,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}};function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}var iCe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function oCe(e,t){if(e==null)return{};var n=aCe(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 aCe(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 t_(e){return uCe(e)||cCe(e)||lCe(e)||sCe()}function sCe(){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 cO(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 cO(e,t)}}function cCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uCe(e){if(Array.isArray(e))return cO(e)}function cO(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 $M(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 xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){Kf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kf(e,t,n){return t=LF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dCe(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,LF(r.key),r)}}function hCe(e,t,n){return t&&dCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LF(e){var t=pCe(e,"string");return uu(t)==="symbol"?t:String(t)}function pCe(e,t){if(uu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mCe(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&&uO(e,t)}function uO(e,t){return uO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uO(e,t)}function vCe(e){var t=gCe();return function(){var r=ry(e),i;if(t){var o=ry(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return fO(this,i)}}function fO(e,t){if(t&&(uu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dO(e)}function dO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ry(e)}var pi=function(e){mCe(n,e);var t=vCe(n);function n(r,i){var o;fCe(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,c=a.attributeName,l=a.from,f=a.to,d=a.steps,p=a.children,v=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(dO(o)),o.changeStyle=o.changeStyle.bind(dO(o)),!s||v<=0)return o.state={style:{}},typeof p=="function"&&(o.state={style:f}),fO(o);if(d&&d.length)o.state={style:d[0].style};else if(l){if(typeof p=="function")return o.state={style:l},fO(o);o.state={style:c?Kf({},c,l):l}}else o.state={style:{}};return o}return hCe(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,c=o.attributeName,l=o.shouldReAnimate,f=o.to,d=o.from,p=this.state.style;if(s){if(!a){var v={style:c?Kf({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(v);return}if(!(OEe(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=y||l?d:i.to;if(this.state&&p){var x={style:c?Kf({},c,g):g};(c&&p[c]!==g||!c&&p!==g)&&this.setState(x)}this.runAnimation(xi(xi({},this.props),{},{from:g,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,c=i.duration,l=i.easing,f=i.begin,d=i.onAnimationEnd,p=i.onAnimationStart,v=rCe(a,s,GEe(l),c,this.changeStyle),y=function(){o.stopJSAnimation=v()};this.manager.start([p,f,y,c,d])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,c=i.onAnimationStart,l=a[0],f=l.style,d=l.duration,p=d===void 0?0:d,v=function(g,x,_){if(_===0)return g;var b=x.duration,w=x.easing,S=w===void 0?"ease":w,E=x.style,C=x.properties,T=x.onAnimationEnd,A=_>0?a[_-1]:x,F=C||Object.keys(E);if(typeof S=="function"||S==="spring")return[].concat(t_(g),[o.runJSAnimation.bind(o,{from:A.style,to:E,duration:b,easing:S}),b]);var k=kM(F,b,S),I=xi(xi(xi({},A.style),E),{},{transition:k});return[].concat(t_(g),[I,b,T]).filter(LEe)};return this.manager.start([c].concat(t_(a.reduce(v,[f,Math.max(p,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=AEe());var o=i.begin,a=i.duration,s=i.attributeName,c=i.to,l=i.easing,f=i.onAnimationStart,d=i.onAnimationEnd,p=i.steps,v=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof v=="function"||l==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var g=s?Kf({},s,c):c,x=kM(Object.keys(g),a,l);y.start([f,o,xi(xi({},g),{},{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 c=oCe(i,iCe),l=M.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||l===0||a<=0)return o;var d=function(v){var y=v.props,g=y.style,x=g===void 0?{}:g,_=y.className,b=M.cloneElement(v,xi(xi({},c),{},{style:xi(xi({},x),f),className:_}));return b};return l===1?d(M.Children.only(o)):V.createElement("div",null,M.Children.map(o,function(p){return d(p)}))}}]),n}(M.PureComponent);pi.displayName="Animate";pi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};pi.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 Nh(e){"@babel/helpers - typeof";return Nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nh(e)}function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iy.apply(this,arguments)}function yCe(e,t){return wCe(e)||xCe(e,t)||_Ce(e,t)||bCe()}function bCe(){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 _Ce(e,t){if(e){if(typeof e=="string")return IM(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 IM(e,t)}}function IM(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){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function wCe(e){if(Array.isArray(e))return e}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 FM(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){OCe(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 OCe(e,t,n){return t=SCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SCe(e){var t=ECe(e,"string");return Nh(t)=="symbol"?t:String(t)}function ECe(e,t){if(Nh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BM=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),s=i>=0?1:-1,c=r>=0?1:-1,l=i>=0&&r>=0||i<0&&r<0?1:0,f;if(a>0&&o instanceof Array){for(var d=[0,0,0,0],p=0,v=4;p<v;p++)d[p]=o[p]>a?a:o[p];f="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(l,",").concat(t+c*d[0],",").concat(n)),f+="L ".concat(t+r-c*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(l,`,
`).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(l,`,
`).concat(t+r-c*d[2],",").concat(n+i)),f+="L ".concat(t+c*d[3],",").concat(n+i),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(l,`,
`).concat(t,",").concat(n+i-s*d[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var y=Math.min(a,o);f="M ".concat(t,",").concat(n+s*y,`
A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+c*y,",").concat(n,`
L `).concat(t+r-c*y,",").concat(n,`
A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+r,",").concat(n+s*y,`
L `).concat(t+r,",").concat(n+i-s*y,`
A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+r-c*y,",").concat(n+i,`
L `).concat(t+c*y,",").concat(n+i,`
A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t,",").concat(n+i-s*y," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},CCe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,s=n.width,c=n.height;if(Math.abs(s)>0&&Math.abs(c)>0){var l=Math.min(o,o+s),f=Math.max(o,o+s),d=Math.min(a,a+c),p=Math.max(a,a+c);return r>=l&&r<=f&&i>=d&&i<=p}return!1},PCe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zC=function(t){var n=FM(FM({},PCe),t),r=M.useRef(),i=M.useState(-1),o=yCe(i,2),a=o[0],s=o[1];M.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&s(S)}catch{}},[]);var c=n.x,l=n.y,f=n.width,d=n.height,p=n.radius,v=n.className,y=n.animationEasing,g=n.animationDuration,x=n.animationBegin,_=n.isAnimationActive,b=n.isUpdateAnimationActive;if(c!==+c||l!==+l||f!==+f||d!==+d||f===0||d===0)return null;var w=Ee("recharts-rectangle",v);return b?V.createElement(pi,{canBegin:a>0,from:{width:f,height:d,x:c,y:l},to:{width:f,height:d,x:c,y:l},duration:g,animationEasing:y,isActive:b},function(S){var E=S.width,C=S.height,T=S.x,A=S.y;return V.createElement(pi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:g,isActive:_,easing:y},V.createElement("path",iy({},De(n,!0),{className:w,d:BM(T,A,E,C,p),ref:r})))}):V.createElement("path",iy({},De(n,!0),{className:w,d:BM(c,l,f,d,p)}))},TCe=["points","className","baseLinePoints","connectNulls"];function Oc(){return Oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oc.apply(this,arguments)}function jCe(e,t){if(e==null)return{};var n=ACe(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 ACe(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 UM(e){return LCe(e)||MCe(e)||NCe(e)||kCe()}function kCe(){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 NCe(e,t){if(e){if(typeof e=="string")return hO(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 hO(e,t)}}function MCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LCe(e){if(Array.isArray(e))return hO(e)}function hO(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 zM=function(t){return t&&t.x===+t.x&&t.y===+t.y},RCe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){zM(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),zM(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},bd=function(t,n){var r=RCe(t);n&&(r=[r.reduce(function(o,a){return[].concat(UM(o),UM(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,s,c){return"".concat(a).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},$Ce=function(t,n,r){var i=bd(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(bd(n.reverse(),r).slice(1))},ICe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=jCe(t,TCe);if(!n||!n.length)return null;var s=Ee("recharts-polygon",r);if(i&&i.length){var c=a.stroke&&a.stroke!=="none",l=$Ce(n,i,o);return V.createElement("g",{className:s},V.createElement("path",Oc({},De(a,!0),{fill:l.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:l})),c?V.createElement("path",Oc({},De(a,!0),{fill:"none",d:bd(n,o)})):null,c?V.createElement("path",Oc({},De(a,!0),{fill:"none",d:bd(i,o)})):null)}var f=bd(n,o);return V.createElement("path",Oc({},De(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};function pO(){return pO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pO.apply(this,arguments)}var _p=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=Ee("recharts-dot",o);return n===+n&&r===+r&&i===+i?V.createElement("circle",pO({},De(t,!1),Cg(t),{className:a,cx:n,cy:r,r:i})):null};function Mh(e){"@babel/helpers - typeof";return Mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mh(e)}var DCe=["x","y","top","left","width","height","className"];function mO(){return mO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mO.apply(this,arguments)}function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FCe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(r){BCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BCe(e,t,n){return t=UCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UCe(e){var t=zCe(e,"string");return Mh(t)=="symbol"?t:String(t)}function zCe(e,t){if(Mh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VCe(e,t){if(e==null)return{};var n=WCe(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 WCe(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 HCe=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},GCe=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,c=t.left,l=c===void 0?0:c,f=t.width,d=f===void 0?0:f,p=t.height,v=p===void 0?0:p,y=t.className,g=VCe(t,DCe),x=FCe({x:r,y:o,top:s,left:l,width:d,height:v},g);return!Ce(r)||!Ce(o)||!Ce(d)||!Ce(v)||!Ce(s)||!Ce(l)?null:V.createElement("path",mO({},De(x,!0),{className:Ee("recharts-cross",y),d:HCe(r,o,d,v,s,l)}))},qCe=W0,KCe=X8,YCe=xo;function ZCe(e,t){return e&&e.length?qCe(e,YCe(t),KCe):void 0}var XCe=ZCe;const QCe=at(XCe);var JCe=W0,ePe=xo,tPe=Q8;function nPe(e,t){return e&&e.length?JCe(e,ePe(t),tPe):void 0}var rPe=nPe;const iPe=at(rPe);var oPe=["cx","cy","angle","ticks","axisLine"],aPe=["ticks","tick","angle","tickFormatter","stroke"];function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_d.apply(this,arguments)}function WM(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 Ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WM(Object(n),!0).forEach(function(r){K0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HM(e,t){if(e==null)return{};var n=sPe(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 sPe(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 lPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$F(r.key),r)}}function cPe(e,t,n){return t&&GM(e.prototype,t),n&&GM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uPe(e,t,n){return t=oy(t),fPe(e,RF()?Reflect.construct(t,n||[],oy(e).constructor):t.apply(e,n))}function fPe(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dPe(e)}function dPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RF=function(){return!!e})()}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oy(e)}function hPe(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&&vO(e,t)}function vO(e,t){return vO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vO(e,t)}function K0(e,t,n){return t=$F(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $F(e){var t=pPe(e,"string");return fu(t)=="symbol"?t:String(t)}function pPe(e,t){if(fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Y0=function(e){hPe(t,e);function t(){return lPe(this,t),uPe(this,t,arguments)}return cPe(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,c=o.cy;return Ot(s,c,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,c=QCe(s,function(f){return f.coordinate||0}),l=iPe(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:l.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,c=r.axisLine,l=HM(r,oPe),f=s.reduce(function(y,g){return[Math.min(y[0],g.coordinate),Math.max(y[1],g.coordinate)]},[1/0,-1/0]),d=Ot(i,o,f[0],a),p=Ot(i,o,f[1],a),v=Ss(Ss(Ss({},De(l,!1)),{},{fill:"none"},De(c,!1)),{},{x1:d.x,y1:d.y,x2:p.x,y2:p.y});return V.createElement("line",_d({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,c=i.tickFormatter,l=i.stroke,f=HM(i,aPe),d=this.getTickTextAnchor(),p=De(f,!1),v=De(a,!1),y=o.map(function(g,x){var _=r.getTickValueCoord(g),b=Ss(Ss(Ss(Ss({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(_.x,", ").concat(_.y,")")},p),{},{stroke:"none",fill:l},v),{},{index:x},_),{},{payload:g});return V.createElement(Ze,_d({className:Ee("recharts-polar-radius-axis-tick",OF(a)),key:"tick-".concat(g.coordinate)},Ja(r.props,g,x)),t.renderTickItem(a,b,c?c(g.value,x):g.value))});return V.createElement(Ze,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:V.createElement(Ze,{className:Ee("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),yn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):Ve(r)?a=r(i):a=V.createElement(gl,_d({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}]),t}(M.PureComponent);K0(Y0,"displayName","PolarRadiusAxis");K0(Y0,"axisType","radiusAxis");K0(Y0,"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 du(e){"@babel/helpers - typeof";return du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(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 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 Es(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){Z0(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 mPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DF(r.key),r)}}function vPe(e,t,n){return t&&KM(e.prototype,t),n&&KM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gPe(e,t,n){return t=ay(t),yPe(e,IF()?Reflect.construct(t,n||[],ay(e).constructor):t.apply(e,n))}function yPe(e,t){if(t&&(du(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bPe(e)}function bPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IF=function(){return!!e})()}function ay(e){return ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ay(e)}function _Pe(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&&gO(e,t)}function gO(e,t){return gO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gO(e,t)}function Z0(e,t,n){return t=DF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DF(e){var t=xPe(e,"string");return du(t)=="symbol"?t:String(t)}function xPe(e,t){if(du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wPe=Math.PI/180,YM=1e-5,X0=function(e){_Pe(t,e);function t(){return mPe(this,t),gPe(this,t,arguments)}return vPe(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,s=i.radius,c=i.orientation,l=i.tickSize,f=l||8,d=Ot(o,a,s,r.coordinate),p=Ot(o,a,s+(c==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*wPe),a;return o>YM?a=i==="outer"?"start":"end":o<-YM?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,c=r.axisLineType,l=Es(Es({},De(this.props,!1)),{},{fill:"none"},De(s,!1));if(c==="circle")return V.createElement(_p,Ds({className:"recharts-polar-angle-axis-line"},l,{cx:i,cy:o,r:a}));var f=this.props.ticks,d=f.map(function(p){return Ot(i,o,a,p.coordinate)});return V.createElement(ICe,Ds({className:"recharts-polar-angle-axis-line"},l,{points:d}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,c=i.tickFormatter,l=i.stroke,f=De(this.props,!1),d=De(a,!1),p=Es(Es({},f),{},{fill:"none"},De(s,!1)),v=o.map(function(y,g){var x=r.getTickLineCoord(y),_=r.getTickTextAnchor(y),b=Es(Es(Es({textAnchor:_},f),{},{stroke:"none",fill:l},d),{},{index:g,payload:y,x:x.x2,y:x.y2});return V.createElement(Ze,Ds({className:Ee("recharts-polar-angle-axis-tick",OF(a)),key:"tick-".concat(y.coordinate)},Ja(r.props,y,g)),s&&V.createElement("line",Ds({className:"recharts-polar-angle-axis-tick-line"},p,x)),a&&t.renderTickItem(a,b,c?c(y.value,g):y.value))});return V.createElement(Ze,{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(Ze,{className:Ee("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):Ve(r)?a=r(i):a=V.createElement(gl,Ds({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}]),t}(M.PureComponent);Z0(X0,"displayName","PolarAngleAxis");Z0(X0,"axisType","angleAxis");Z0(X0,"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 OPe=G5,SPe=OPe(Object.getPrototypeOf,Object),EPe=SPe,CPe=ia,PPe=EPe,TPe=oa,jPe="[object Object]",APe=Function.prototype,kPe=Object.prototype,FF=APe.toString,NPe=kPe.hasOwnProperty,MPe=FF.call(Object);function LPe(e){if(!TPe(e)||CPe(e)!=jPe)return!1;var t=PPe(e);if(t===null)return!0;var n=NPe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&FF.call(n)==MPe}var RPe=LPe;const $Pe=at(RPe);var IPe=ia,DPe=oa,FPe="[object Boolean]";function BPe(e){return e===!0||e===!1||DPe(e)&&IPe(e)==FPe}var UPe=BPe;const zPe=at(UPe);function Lh(e){"@babel/helpers - typeof";return Lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lh(e)}function sy(){return sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sy.apply(this,arguments)}function VPe(e,t){return qPe(e)||GPe(e,t)||HPe(e,t)||WPe()}function WPe(){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 HPe(e,t){if(e){if(typeof e=="string")return ZM(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 ZM(e,t)}}function ZM(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 GPe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function qPe(e){if(Array.isArray(e))return e}function XM(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 QM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XM(Object(n),!0).forEach(function(r){KPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KPe(e,t,n){return t=YPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YPe(e){var t=ZPe(e,"string");return Lh(t)=="symbol"?t:String(t)}function ZPe(e,t){if(Lh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JM=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},XPe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QPe=function(t){var n=QM(QM({},XPe),t),r=M.useRef(),i=M.useState(-1),o=VPe(i,2),a=o[0],s=o[1];M.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&s(w)}catch{}},[]);var c=n.x,l=n.y,f=n.upperWidth,d=n.lowerWidth,p=n.height,v=n.className,y=n.animationEasing,g=n.animationDuration,x=n.animationBegin,_=n.isUpdateAnimationActive;if(c!==+c||l!==+l||f!==+f||d!==+d||p!==+p||f===0&&d===0||p===0)return null;var b=Ee("recharts-trapezoid",v);return _?V.createElement(pi,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:f,lowerWidth:d,height:p,x:c,y:l},duration:g,animationEasing:y,isActive:_},function(w){var S=w.upperWidth,E=w.lowerWidth,C=w.height,T=w.x,A=w.y;return V.createElement(pi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:g,easing:y},V.createElement("path",sy({},De(n,!0),{className:b,d:JM(T,A,S,E,C),ref:r})))}):V.createElement("g",null,V.createElement("path",sy({},De(n,!0),{className:b,d:JM(c,l,f,d,p)})))},JPe=["option","shapeType","propTransformer","activeClassName","isActive"];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)}function eTe(e,t){if(e==null)return{};var n=tTe(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 tTe(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 eL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ly(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(n),!0).forEach(function(r){nTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nTe(e,t,n){return t=rTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rTe(e){var t=iTe(e,"string");return Rh(t)=="symbol"?t:String(t)}function iTe(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 oTe(e,t){return ly(ly({},t),e)}function aTe(e,t){return e==="symbols"}function tL(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return V.createElement(zC,n);case"trapezoid":return V.createElement(QPe,n);case"sector":return V.createElement(CF,n);case"symbols":if(aTe(t))return V.createElement(L0,n);break;default:return null}}function sTe(e){return M.isValidElement(e)?e.props:e}function cy(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?oTe:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,c=eTe(e,JPe),l;if(M.isValidElement(t))l=M.cloneElement(t,ly(ly({},c),sTe(t)));else if(Ve(t))l=t(c);else if($Pe(t)&&!zPe(t)){var f=i(t,c);l=V.createElement(tL,{shapeType:n,elementProps:f})}else{var d=c;l=V.createElement(tL,{shapeType:n,elementProps:d})}return s?V.createElement(Ze,{className:a},l):l}function Q0(e,t){return t!=null&&"trapezoids"in e.props}function J0(e,t){return t!=null&&"sectors"in e.props}function $h(e,t){return t!=null&&"points"in e.props}function lTe(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 cTe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function uTe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function fTe(e,t){var n;return Q0(e,t)?n=lTe:J0(e,t)?n=cTe:$h(e,t)&&(n=uTe),n}function dTe(e,t){var n;return Q0(e,t)?n="trapezoids":J0(e,t)?n="sectors":$h(e,t)&&(n="points"),n}function hTe(e,t){if(Q0(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(J0(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 $h(e,t)?t.payload:{}}function pTe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=dTe(n,t),o=hTe(n,t),a=r.filter(function(c,l){var f=es(o,c),d=n.props[i].filter(function(y){var g=fTe(n,t);return g(y,t)}),p=n.props[i].indexOf(d[d.length-1]),v=l===p;return f&&v}),s=r.indexOf(a[a.length-1]);return s}var cv;function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}function Sc(){return Sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sc.apply(this,arguments)}function nL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nL(Object(n),!0).forEach(function(r){ri(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rL(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,UF(r.key),r)}}function vTe(e,t,n){return t&&rL(e.prototype,t),n&&rL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gTe(e,t,n){return t=uy(t),yTe(e,BF()?Reflect.construct(t,n||[],uy(e).constructor):t.apply(e,n))}function yTe(e,t){if(t&&(hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ic(e)}function BF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BF=function(){return!!e})()}function uy(e){return uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uy(e)}function ic(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bTe(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&&yO(e,t)}function yO(e,t){return yO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yO(e,t)}function ri(e,t,n){return t=UF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UF(e){var t=_Te(e,"string");return hu(t)=="symbol"?t:String(t)}function _Te(e,t){if(hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vo=function(e){bTe(t,e);function t(n){var r;return mTe(this,t),r=gTe(this,t,[n]),ri(ic(r),"pieRef",null),ri(ic(r),"sectorRefs",[]),ri(ic(r),"id",ds("recharts-pie-")),ri(ic(r),"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ve(i)&&i()}),ri(ic(r),"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ve(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return vTe(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,c=o.dataKey,l=o.valueKey,f=De(this.props,!1),d=De(a,!1),p=De(s,!1),v=a&&a.offsetRadius||20,y=r.map(function(g,x){var _=(g.startAngle+g.endAngle)/2,b=Ot(g.cx,g.cy,g.outerRadius+v,_),w=kt(kt(kt(kt({},f),g),{},{stroke:"none"},d),{},{index:x,textAnchor:t.getTextAnchor(b.x,g.cx)},b),S=kt(kt(kt(kt({},f),g),{},{fill:"none",stroke:g.fill},p),{},{index:x,points:[Ot(g.cx,g.cy,g.outerRadius,_),b],key:"line"}),E=c;return Ue(c)&&Ue(l)?E="value":Ue(c)&&(E=l),V.createElement(Ze,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(x)},s&&t.renderLabelLineItem(s,S),t.renderLabelItem(a,w,Pt(g,E)))});return V.createElement(Ze,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,c=o.inactiveShape;return r.map(function(l,f){if((l==null?void 0:l.startAngle)===0&&(l==null?void 0:l.endAngle)===0&&r.length!==1)return null;var d=i.isActiveIndex(f),p=c&&i.hasActiveIndex()?c:null,v=d?a:p,y=kt(kt({},l),{},{stroke:s?l.fill:l.stroke,tabIndex:-1});return V.createElement(Ze,Sc({ref:function(x){x&&!i.sectorRefs.includes(x)&&i.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},Ja(i.props,l,f),{key:"sector-".concat(l==null?void 0:l.startAngle,"-").concat(l==null?void 0:l.endAngle,"-").concat(l.midAngle,"-").concat(f)}),V.createElement(cy,Sc({option:v,isActive:d,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state,p=d.prevSectors,v=d.prevIsAnimationActive;return V.createElement(pi,{begin:s,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var g=y.t,x=[],_=o&&o[0],b=_.startAngle;return o.forEach(function(w,S){var E=p&&p[S],C=S>0?Nr(w,"paddingAngle",0):0;if(E){var T=Ut(E.endAngle-E.startAngle,w.endAngle-w.startAngle),A=kt(kt({},w),{},{startAngle:b+C,endAngle:b+T(g)+C});x.push(A),b=A.endAngle}else{var F=w.endAngle,k=w.startAngle,I=Ut(0,F-k),D=I(g),q=kt(kt({},w),{},{startAngle:b+C,endAngle:b+D+C});x.push(q),b=q.endAngle}}),V.createElement(Ze,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||!es(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,c=i.label,l=i.cx,f=i.cy,d=i.innerRadius,p=i.outerRadius,v=i.isAnimationActive,y=this.state.isAnimationFinished;if(o||!a||!a.length||!Ce(l)||!Ce(f)||!Ce(d)||!Ce(p))return null;var g=Ee("recharts-pie",s);return V.createElement(Ze,{tabIndex:this.props.rootTabIndex,className:g,ref:function(_){r.pieRef=_}},this.renderSectors(),c&&this.renderLabels(a),yn.renderCallByParent(this.props,null,!1),(!v||y)&&Mi.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(Ve(r))return r(i);var o=Ee("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return V.createElement(Ha,Sc({},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(Ve(r)&&(a=r(i),V.isValidElement(a)))return a;var s=Ee("recharts-pie-label-text",typeof r!="boolean"&&!Ve(r)?r.className:"");return V.createElement(gl,Sc({},i,{alignmentBaseline:"middle",className:s}),a)}}]),t}(M.PureComponent);cv=vo;ri(vo,"displayName","Pie");ri(vo,"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:!li.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ri(vo,"parseDeltaAngle",function(e,t){var n=Yn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});ri(vo,"getRealPieData",function(e){var t=e.props,n=t.data,r=t.children,i=De(e.props,!1),o=tr(r,Va);return n&&n.length?n.map(function(a,s){return kt(kt(kt({payload:a},i),a),o&&o[s]&&o[s].props)}):o&&o.length?o.map(function(a){return kt(kt({},i),a.props)}):[]});ri(vo,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=wF(i,o),s=r+Zn(e.props.cx,i,i/2),c=n+Zn(e.props.cy,o,o/2),l=Zn(e.props.innerRadius,a,0),f=Zn(e.props.outerRadius,a,a*.8),d=e.props.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:c,innerRadius:l,outerRadius:f,maxRadius:d}});ri(vo,"getComposedData",function(e){var t=e.item,n=e.offset,r=cv.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,s=i.endAngle,c=i.paddingAngle,l=i.dataKey,f=i.nameKey,d=i.valueKey,p=i.tooltipType,v=Math.abs(t.props.minAngle),y=cv.parseCoordinateOfPie(t,n),g=cv.parseDeltaAngle(a,s),x=Math.abs(g),_=l;Ue(l)&&Ue(d)?(Ni(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),_="value"):Ue(l)&&(Ni(!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 Pt(A,_,0)!==0}).length,w=(x>=360?b:b-1)*c,S=x-b*v-w,E=r.reduce(function(A,F){var k=Pt(F,_,0);return A+(Ce(k)?k:0)},0),C;if(E>0){var T;C=r.map(function(A,F){var k=Pt(A,_,0),I=Pt(A,f,F),D=(Ce(k)?k:0)/E,q;F?q=T.endAngle+Yn(g)*c*(k!==0?1:0):q=a;var W=q+Yn(g)*((k!==0?v:0)+D*S),X=(q+W)/2,Q=(y.innerRadius+y.outerRadius)/2,ne=[{name:I,value:k,payload:A,dataKey:_,type:p}],Z=Ot(y.cx,y.cy,Q,X);return T=kt(kt(kt({percent:D,cornerRadius:o,name:I,tooltipPayload:ne,midAngle:X,middleRadius:Q,tooltipPosition:Z},A),y),{},{value:Pt(A,_),startAngle:q,endAngle:W,payload:A,paddingAngle:Yn(g)*c}),T})}return kt(kt({},y),{},{sectors:C,data:r})});var xTe=Math.ceil,wTe=Math.max;function OTe(e,t,n,r){for(var i=-1,o=wTe(xTe((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var STe=OTe,ETe=d8,iL=1/0,CTe=17976931348623157e292;function PTe(e){if(!e)return e===0?e:0;if(e=ETe(e),e===iL||e===-iL){var t=e<0?-1:1;return t*CTe}return e===e?e:0}var zF=PTe,TTe=STe,jTe=I0,n_=zF;function ATe(e){return function(t,n,r){return r&&typeof r!="number"&&jTe(t,n,r)&&(n=r=void 0),t=n_(t),n===void 0?(n=t,t=0):n=n_(n),r=r===void 0?t<n?1:-1:n_(r),TTe(t,n,r,e)}}var kTe=ATe,NTe=kTe,MTe=NTe(),LTe=MTe;const fy=at(LTe);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 oL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function aL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oL(Object(n),!0).forEach(function(r){VF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VF(e,t,n){return t=RTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RTe(e){var t=$Te(e,"string");return Ih(t)=="symbol"?t:String(t)}function $Te(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)}var ITe=["Webkit","Moz","O","ms"],DTe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=ITe.reduce(function(o,a){return aL(aL({},o),{},VF({},a+r,n))},{});return i[t]=n,i};function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dy.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 r_(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){Or(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 FTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HF(r.key),r)}}function BTe(e,t,n){return t&&lL(e.prototype,t),n&&lL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UTe(e,t,n){return t=hy(t),zTe(e,WF()?Reflect.construct(t,n||[],hy(e).constructor):t.apply(e,n))}function zTe(e,t){if(t&&(pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zi(e)}function WF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WF=function(){return!!e})()}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hy(e)}function Zi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VTe(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&&bO(e,t)}function bO(e,t){return bO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bO(e,t)}function Or(e,t,n){return t=HF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HF(e){var t=WTe(e,"string");return pu(t)=="symbol"?t:String(t)}function WTe(e,t){if(pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HTe=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 c=n.length,l=vd().domain(fy(0,c)).range([o,o+a-s]),f=l.domain().map(function(d){return l(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(i),scale:l,scaleValues:f}},cL=function(t){return t.changedTouches&&!!t.changedTouches.length},mu=function(e){VTe(t,e);function t(n){var r;return FTe(this,t),r=UTe(this,t,[n]),Or(Zi(r),"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Or(Zi(r),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Or(Zi(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()}),Or(Zi(r),"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Or(Zi(r),"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Or(Zi(r),"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Or(Zi(r),"handleSlideDragStart",function(i){var o=cL(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(Zi(r),"startX"),endX:r.handleTravellerDragStart.bind(Zi(r),"endX")},r.state={},r}return BTe(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,c=s.gap,l=s.data,f=l.length-1,d=Math.min(i,o),p=Math.max(i,o),v=t.getIndexInRange(a,d),y=t.getIndexInRange(a,p);return{startIndex:v-v%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,c=Pt(o[r],s,r);return Ve(a)?a(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,c=this.props,l=c.x,f=c.width,d=c.travellerWidth,p=c.startIndex,v=c.endIndex,y=c.onChange,g=r.pageX-o;g>0?g=Math.min(g,l+f-d-s,l+f-d-a):g<0&&(g=Math.max(g,l-a,l-s));var x=this.getIndex({startX:a+g,endX:s+g});(x.startIndex!==p||x.endIndex!==v)&&y&&y(x),this.setState({startX:a+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=cL(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,c=i.startX,l=this.state[a],f=this.props,d=f.x,p=f.width,v=f.travellerWidth,y=f.onChange,g=f.gap,x=f.data,_={startX:this.state.startX,endX:this.state.endX},b=r.pageX-o;b>0?b=Math.min(b,d+p-v-l):b<0&&(b=Math.max(b,d-l)),_[a]=l+b;var w=this.getIndex(_),S=w.startIndex,E=w.endIndex,C=function(){var A=x.length-1;return a==="startX"&&(s>c?S%g===0:E%g===0)||s<c&&E===A||a==="endX"&&(s>c?E%g===0:S%g===0)||s>c&&E===A};this.setState(Or(Or({},a,l+b),"brushMoveStartX",r.pageX),function(){y&&C()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,c=a.startX,l=a.endX,f=this.state[i],d=s.indexOf(f);if(d!==-1){var p=d+r;if(!(p===-1||p>=s.length)){var v=s[p];i==="startX"&&v>=l||i==="endX"&&v<=c||this.setState(Or({},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,c=r.fill,l=r.stroke;return V.createElement("rect",{stroke:l,fill:c,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,c=r.data,l=r.children,f=r.padding,d=M.Children.only(l);return d?V.cloneElement(d,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,s=this,c=this.props,l=c.y,f=c.travellerWidth,d=c.height,p=c.traveller,v=c.ariaLabel,y=c.data,g=c.startIndex,x=c.endIndex,_=Math.max(r,this.props.x),b=r_(r_({},De(this.props,!1)),{},{x:_,y:l,width:f,height:d}),w=v||"Min value: ".concat((o=y[g])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=y[x])===null||a===void 0?void 0:a.name);return V.createElement(Ze,{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(p,b))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,c=o.stroke,l=o.travellerWidth,f=Math.min(r,i)+l,d=Math.max(Math.abs(i-r)-l,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:c,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,c=r.travellerWidth,l=r.stroke,f=this.state,d=f.startX,p=f.endX,v=5,y={pointerEvents:"none",fill:l};return V.createElement(Ze,{className:"recharts-brush-texts"},V.createElement(gl,dy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-v,y:a+s/2},y),this.getTextOfTick(i)),V.createElement(gl,dy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+c+v,y:a+s/2},y),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,c=r.y,l=r.width,f=r.height,d=r.alwaysShowText,p=this.state,v=p.startX,y=p.endX,g=p.isTextActive,x=p.isSlideMoving,_=p.isTravellerMoving,b=p.isTravellerFocused;if(!i||!i.length||!Ce(s)||!Ce(c)||!Ce(l)||!Ce(f)||l<=0||f<=0)return null;var w=Ee("recharts-brush",o),S=V.Children.count(a)===1,E=DTe("userSelect","none");return V.createElement(Ze,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(v,y),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(y,"endX"),(g||x||_||b||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,c=r.stroke,l=Math.floor(o+s/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:i,y:o,width:a,height:s,fill:c,stroke:"none"}),V.createElement("line",{x1:i+1,y1:l,x2:i+a-1,y2:l,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:i+1,y1:l+2,x2:i+a-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return V.isValidElement(r)?o=V.cloneElement(r,i):Ve(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,c=r.travellerWidth,l=r.updateId,f=r.startIndex,d=r.endIndex;if(o!==i.prevData||l!==i.prevUpdateId)return r_({prevData:o,prevTravellerWidth:c,prevUpdateId:l,prevX:s,prevWidth:a},o&&o.length?HTe({data:o,width:a,x:s,travellerWidth:c,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+a-c]);var p=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:l,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var c=Math.floor((a+s)/2);r[c]>i?s=c:a=c}return i>=r[s]?s:a}}]),t}(M.PureComponent);Or(mu,"displayName","Brush");Or(mu,"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 GTe=hC;function qTe(e,t){var n;return GTe(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var KTe=qTe,YTe=D5,ZTe=xo,XTe=KTe,QTe=_r,JTe=I0;function eje(e,t,n){var r=QTe(e)?YTe:XTe;return n&&JTe(e,t,n)&&(t=void 0),r(e,ZTe(t))}var tje=eje;const nje=at(tje);var co=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},uL=s8;function rje(e,t,n){t=="__proto__"&&uL?uL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ije=rje,oje=ije,aje=o8,sje=xo;function lje(e,t){var n={};return t=sje(t),aje(e,function(r,i,o){oje(n,i,t(r,i,o))}),n}var cje=lje;const uje=at(cje);function fje(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 dje=fje,hje=hC;function pje(e,t){var n=!0;return hje(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var mje=pje,vje=dje,gje=mje,yje=xo,bje=_r,_je=I0;function xje(e,t,n){var r=bje(e)?vje:gje;return n&&_je(e,t,n)&&(t=void 0),r(e,yje(t))}var wje=xje;const GF=at(wje);var Oje=["x","y"];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 _O(){return _O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_O.apply(this,arguments)}function fL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fL(Object(n),!0).forEach(function(r){Sje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sje(e,t,n){return t=Eje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eje(e){var t=Cje(e,"string");return Dh(t)=="symbol"?t:String(t)}function Cje(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)}function Pje(e,t){if(e==null)return{};var n=Tje(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 Tje(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 jje(e,t){var n=e.x,r=e.y,i=Pje(e,Oje),o="".concat(n),a=parseInt(o,10),s="".concat(r),c=parseInt(s,10),l="".concat(t.height||i.height),f=parseInt(l,10),d="".concat(t.width||i.width),p=parseInt(d,10);return If(If(If(If(If({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function dL(e){return V.createElement(cy,_O({shapeType:"rectangle",propTransformer:jje,activeClassName:"recharts-active-bar"},e))}var Aje=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||bl(),n)}},kje=["value","background"],qF;function vu(e){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(e)}function Nje(e,t){if(e==null)return{};var n=Mje(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 Mje(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 py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},py.apply(this,arguments)}function hL(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 mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hL(Object(n),!0).forEach(function(r){Aa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YF(r.key),r)}}function Rje(e,t,n){return t&&pL(e.prototype,t),n&&pL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $je(e,t,n){return t=my(t),Ije(e,KF()?Reflect.construct(t,n||[],my(e).constructor):t.apply(e,n))}function Ije(e,t){if(t&&(vu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yf(e)}function KF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KF=function(){return!!e})()}function my(e){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},my(e)}function Yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dje(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&&xO(e,t)}function xO(e,t){return xO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xO(e,t)}function Aa(e,t,n){return t=YF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YF(e){var t=Fje(e,"string");return vu(t)=="symbol"?t:String(t)}function Fje(e,t){if(vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Io=function(e){Dje(t,e);function t(){var n;Lje(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=$je(this,t,[].concat(i)),Aa(Yf(n),"state",{isAnimationFinished:!1}),Aa(Yf(n),"id",ds("recharts-bar-")),Aa(Yf(n),"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),Aa(Yf(n),"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return Rje(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.dataKey,c=o.activeIndex,l=o.activeBar,f=De(this.props,!1);return r&&r.map(function(d,p){var v=p===c,y=v?l:a,g=mn(mn(mn({},f),d),{},{isActive:v,option:y,index:p,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return V.createElement(Ze,py({className:"recharts-bar-rectangle"},Ja(i.props,d,p),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value)}),V.createElement(dL,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,c=i.animationBegin,l=i.animationDuration,f=i.animationEasing,d=i.animationId,p=this.state.prevData;return V.createElement(pi,{begin:c,duration:l,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var y=v.t,g=o.map(function(x,_){var b=p&&p[_];if(b){var w=Ut(b.x,x.x),S=Ut(b.y,x.y),E=Ut(b.width,x.width),C=Ut(b.height,x.height);return mn(mn({},x),{},{x:w(y),y:S(y),width:E(y),height:C(y)})}if(a==="horizontal"){var T=Ut(0,x.height),A=T(y);return mn(mn({},x),{},{y:x.y+x.height-A,height:A})}var F=Ut(0,x.width),k=F(y);return mn(mn({},x),{},{width:k})});return V.createElement(Ze,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!es(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,c=De(this.props.background,!1);return o.map(function(l,f){l.value;var d=l.background,p=Nje(l,kje);if(!d)return null;var v=mn(mn(mn(mn(mn({},p),{},{fill:"#eee"},d),c),Ja(r.props,l,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,key:"background-bar-".concat(f),className:"recharts-bar-background-rectangle"});return V.createElement(dL,py({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,c=o.yAxis,l=o.layout,f=o.children,d=tr(f,Wu);if(!d)return null;var p=l==="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:Pt(x,_)}},y={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Ze,y,d.map(function(g){return V.cloneElement(g,{key:"error-bar-".concat(i,"-").concat(g.props.dataKey),data:a,xAxis:s,yAxis:c,layout:l,offset:p,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,s=r.xAxis,c=r.yAxis,l=r.left,f=r.top,d=r.width,p=r.height,v=r.isAnimationActive,y=r.background,g=r.id;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,_=Ee("recharts-bar",a),b=s&&s.allowDataOverflow,w=c&&c.allowDataOverflow,S=b||w,E=Ue(g)?this.id:g;return V.createElement(Ze,{className:_},b||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(E)},V.createElement("rect",{x:b?l:l-d/2,y:w?f:f-p/2,width:b?d:d*2,height:w?p:p*2}))):null,V.createElement(Ze,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(E,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,E),(!v||x)&&Mi.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}(M.PureComponent);qF=Io;Aa(Io,"displayName","Bar");Aa(Io,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!li.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Aa(Io,"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,c=e.yAxisTicks,l=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=IOe(r,n);if(!v)return null;var y=t.layout,g=n.props,x=g.dataKey,_=g.children,b=g.minPointSize,w=y==="horizontal"?a:o,S=l?w.scale.domain():null,E=WOe({numericAxis:w}),C=tr(_,Va),T=d.map(function(A,F){var k,I,D,q,W,X;l?k=DOe(l[f+F],S):(k=Pt(A,x),Array.isArray(k)||(k=[E,k]));var Q=Aje(b,qF.defaultProps.minPointSize)(k[1],F);if(y==="horizontal"){var ne,Z=[a.scale(k[0]),a.scale(k[1])],z=Z[0],B=Z[1];I=rM({axis:o,ticks:s,bandSize:i,offset:v.offset,entry:A,index:F}),D=(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=Yn(W||Q)*(Math.abs(Q)-Math.abs(W));D-=ee,W+=ee}}else{var K=[o.scale(k[0]),o.scale(k[1])],te=K[0],ie=K[1];if(I=te,D=rM({axis:a,ticks:c,bandSize:i,offset:v.offset,entry:A,index:F}),q=ie-te,W=v.size,X={x:o.x,y:D,width:o.width,height:W},Math.abs(Q)>0&&Math.abs(q)<Math.abs(Q)){var ae=Yn(q||Q)*(Math.abs(Q)-Math.abs(q));q+=ae}}return mn(mn(mn({},A),{},{x:I,y:D,width:q,height:W,value:l?k:k[1],payload:A,background:X},C&&C[F]&&C[F].props),{},{tooltipPayload:[_F(n,A)],tooltipPosition:{x:I+q/2,y:D+W/2}})});return mn({data:T,layout:y},p)});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 Bje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZF(r.key),r)}}function Uje(e,t,n){return t&&mL(e.prototype,t),n&&mL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),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 Si(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){eb(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 eb(e,t,n){return t=ZF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZF(e){var t=zje(e,"string");return Fh(t)=="symbol"?t:String(t)}function zje(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)}var XF=function(t,n,r,i,o){var a=t.width,s=t.height,c=t.layout,l=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},p=!!Er(l,Io);return f.reduce(function(v,y){var g=n[y],x=g.orientation,_=g.domain,b=g.padding,w=b===void 0?{}:b,S=g.mirror,E=g.reversed,C="".concat(x).concat(S?"Mirror":""),T,A,F,k,I;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var D=_[1]-_[0],q=1/0,W=g.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/D,Q=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(T=X*Q/2),g.padding==="no-gap"){var ne=Zn(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=c==="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=g.range,E&&(A=[A[1],A[0]]);var z=vF(g,o,p),B=z.scale,H=z.realScaleType;B.domain(_).range(A),gF(B);var ee=yF(B,Si(Si({},g),{},{realScaleType:H}));i==="xAxis"?(I=x==="top"&&!S||x==="bottom"&&S,F=r.left,k=d[C]-I*g.height):i==="yAxis"&&(I=x==="left"&&!S||x==="right"&&S,F=d[C]-I*g.width,k=r.top);var K=Si(Si(Si({},g),ee),{},{realScaleType:H,x:F,y:k,scale:B,width:i==="xAxis"?r.width:g.width,height:i==="yAxis"?r.height:g.height});return K.bandSize=Qg(K,ee),!g.hide&&i==="xAxis"?d[C]+=(I?-1:1)*K.height:g.hide||(d[C]+=(I?-1:1)*K.width),Si(Si({},v),{},eb({},y,K))},{})},QF=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)}},Vje=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return QF({x:n,y:r},{x:i,y:o})},JF=function(){function e(t){Bje(this,e),this.scale=t}return Uje(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 c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}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}();eb(JF,"EPS",1e-4);var VC=function(t){var n=Object.keys(t).reduce(function(r,i){return Si(Si({},r),{},eb({},i,JF.create(t[i])))},{});return Si(Si({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return uje(i,function(c,l){return n[l].apply(c,{bandAware:a,position:s})})},isInRange:function(i){return GF(i,function(o,a){return n[a].isInRange(o)})}})};function Wje(e){return(e%180+180)%180}var Hje=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Wje(i),a=o*Math.PI/180,s=Math.atan(r/n),c=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(c)},Gje=xo,qje=mp,Kje=R0;function Yje(e){return function(t,n,r){var i=Object(t);if(!qje(t)){var o=Gje(n);t=Kje(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 Zje=Yje,Xje=zF;function Qje(e){var t=Xje(e),n=t%1;return t===t?n?t-n:t:0}var Jje=Qje,eAe=Q5,tAe=xo,nAe=Jje,rAe=Math.max;function iAe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:nAe(n);return i<0&&(i=rAe(r+i,0)),eAe(e,tAe(t),i)}var oAe=iAe,aAe=Zje,sAe=oAe,lAe=aAe(sAe),cAe=lAe;const uAe=at(cAe);var fAe=Nue(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("")}),WC=M.createContext(void 0),HC=M.createContext(void 0),e7=M.createContext(void 0),t7=M.createContext({}),n7=M.createContext(void 0),r7=M.createContext(0),i7=M.createContext(0),gL=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,s=t.children,c=t.width,l=t.height,f=fAe(o);return V.createElement(WC.Provider,{value:r},V.createElement(HC.Provider,{value:i},V.createElement(t7.Provider,{value:o},V.createElement(e7.Provider,{value:f},V.createElement(n7.Provider,{value:a},V.createElement(r7.Provider,{value:l},V.createElement(i7.Provider,{value:c},s)))))))},dAe=function(){return M.useContext(n7)},o7=function(t){var n=M.useContext(WC);n==null&&bl();var r=n[t];return r==null&&bl(),r},hAe=function(){var t=M.useContext(WC);return Sa(t)},pAe=function(){var t=M.useContext(HC),n=uAe(t,function(r){return GF(r.domain,Number.isFinite)});return n||Sa(t)},a7=function(t){var n=M.useContext(HC);n==null&&bl();var r=n[t];return r==null&&bl(),r},mAe=function(){var t=M.useContext(e7);return t},vAe=function(){return M.useContext(t7)},GC=function(){return M.useContext(i7)},qC=function(){return M.useContext(r7)};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 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 bL(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){gAe(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 gAe(e,t,n){return t=yAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yAe(e){var t=bAe(e,"string");return Bh(t)=="symbol"?t:String(t)}function bAe(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)}function _Ae(e,t){return SAe(e)||OAe(e,t)||wAe(e,t)||xAe()}function xAe(){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 wAe(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 OAe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function SAe(e){if(Array.isArray(e))return e}function wO(){return wO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wO.apply(this,arguments)}var EAe=function(t,n){var r;return V.isValidElement(t)?r=V.cloneElement(t,n):Ve(t)?r=t(n):r=V.createElement("line",wO({},n,{className:"recharts-reference-line-line"})),r},CAe=function(t,n,r,i,o,a,s,c,l){var f=o.x,d=o.y,p=o.width,v=o.height;if(r){var y=l.y,g=t.y.apply(y,{position:a});if(co(l,"discard")&&!t.y.isInRange(g))return null;var x=[{x:f+p,y:g},{x:f,y:g}];return c==="left"?x.reverse():x}if(n){var _=l.x,b=t.x.apply(_,{position:a});if(co(l,"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=l.segment,E=S.map(function(C){return t.apply(C,{position:a})});return co(l,"discard")&&nje(E,function(C){return!t.isInRange(C)})?null:E}return null};function KC(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,c=e.alwaysShow,l=dAe(),f=o7(i),d=a7(o),p=mAe();if(!l||!p)return null;Ni(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=VC({x:f.scale,y:d.scale}),y=cn(t),g=cn(n),x=r&&r.length===2,_=CAe(v,y,g,x,p,e.position,f.orientation,d.orientation,e);if(!_)return null;var b=_Ae(_,2),w=b[0],S=w.x,E=w.y,C=b[1],T=C.x,A=C.y,F=co(e,"hidden")?"url(#".concat(l,")"):void 0,k=bL(bL({clipPath:F},De(e,!0)),{},{x1:S,y1:E,x2:T,y2:A});return V.createElement(Ze,{className:Ee("recharts-reference-line",s)},EAe(a,k),yn.renderCallByParent(e,Vje({x1:S,y1:E,x2:T,y2:A})))}KC.displayName="ReferenceLine";KC.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};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 OO(){return OO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OO.apply(this,arguments)}function xL(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 wL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(n),!0).forEach(function(r){PAe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PAe(e,t,n){return t=TAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TAe(e){var t=jAe(e,"string");return Uh(t)=="symbol"?t:String(t)}function jAe(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 AAe=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=VC({x:i.scale,y:o.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return co(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=cn(t),s=cn(n);if(Ni(i===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!s)return null;var c=AAe(e);if(!c)return null;var l=c.x,f=c.y,d=e.shape,p=e.className,v=co(e,"hidden")?"url(#".concat(o,")"):void 0,y=wL(wL({clipPath:v},De(e,!0)),{},{cx:l,cy:f});return V.createElement(Ze,{className:Ee("recharts-reference-dot",p)},xp.renderDot(d,y),yn.renderCallByParent(e,{x:l-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):Ve(e)?n=e(t):n=V.createElement(_p,OO({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};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 SO(){return SO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SO.apply(this,arguments)}function OL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OL(Object(n),!0).forEach(function(r){kAe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kAe(e,t,n){return t=NAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NAe(e){var t=MAe(e,"string");return zh(t)=="symbol"?t:String(t)}function MAe(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)}var LAe=function(t,n,r,i,o){var a=o.x1,s=o.x2,c=o.y1,l=o.y2,f=o.xAxis,d=o.yAxis;if(!f||!d)return null;var p=VC({x:f.scale,y:d.scale}),v={x:t?p.x.apply(a,{position:"start"}):p.x.rangeMin,y:r?p.y.apply(c,{position:"start"}):p.y.rangeMin},y={x:n?p.x.apply(s,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(l,{position:"end"}):p.y.rangeMax};return co(o,"discard")&&(!p.isInRange(v)||!p.isInRange(y))?null:QF(v,y)};function Gu(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,o=e.className,a=e.alwaysShow,s=e.clipPathId;Ni(a===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=cn(t),l=cn(n),f=cn(r),d=cn(i),p=e.shape;if(!c&&!l&&!f&&!d&&!p)return null;var v=LAe(c,l,f,d,e);if(!v&&!p)return null;var y=co(e,"hidden")?"url(#".concat(s,")"):void 0;return V.createElement(Ze,{className:Ee("recharts-reference-area",o)},Gu.renderRect(p,SL(SL({clipPath:y},De(e,!0)),v)),yn.renderCallByParent(e,v))}Gu.displayName="ReferenceArea";Gu.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};Gu.renderRect=function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):Ve(e)?n=e(t):n=V.createElement(zC,SO({},t,{className:"recharts-reference-area-rect"})),n};function s7(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)r.push(e[i]);return r}function RAe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Hje(r,n)}function $Ae(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 vy(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 IAe(e,t){return s7(e,t+1)}function DAe(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,c=0,l=1,f=a,d=function(){var y=r==null?void 0:r[c];if(y===void 0)return{v:s7(r,l)};var g=c,x,_=function(){return x===void 0&&(x=n(y,g)),x},b=y.coordinate,w=c===0||vy(e,b,_,f,s);w||(c=0,f=a,l+=1),w&&(f=b+e*(_()/2+i),c+=l)},p;l<=o.length;)if(p=d(),p)return p.v;return[]}function Vh(e){"@babel/helpers - typeof";return Vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vh(e)}function EL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EL(Object(n),!0).forEach(function(r){FAe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FAe(e,t,n){return t=BAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BAe(e){var t=UAe(e,"string");return Vh(t)=="symbol"?t:String(t)}function UAe(e,t){if(Vh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zAe(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=t.start,c=t.end,l=function(p){var v=o[p],y,g=function(){return y===void 0&&(y=n(v,p)),y};if(p===a-1){var x=e*(v.coordinate+e*g()/2-c);o[p]=v=Dn(Dn({},v),{},{tickCoord:x>0?v.coordinate-x*e:v.coordinate})}else o[p]=v=Dn(Dn({},v),{},{tickCoord:v.coordinate});var _=vy(e,v.tickCoord,g,s,c);_&&(c=v.tickCoord-e*(g()/2+i),o[p]=Dn(Dn({},v),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return o}function VAe(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,c=t.start,l=t.end;if(o){var f=r[s-1],d=n(f,s-1),p=e*(f.coordinate+e*d/2-l);a[s-1]=f=Dn(Dn({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var v=vy(e,f.tickCoord,function(){return d},c,l);v&&(l=f.tickCoord-e*(d/2+i),a[s-1]=Dn(Dn({},f),{},{isShow:!0}))}for(var y=o?s-1:s,g=function(b){var w=a[b],S,E=function(){return S===void 0&&(S=n(w,b)),S};if(b===0){var C=e*(w.coordinate-e*E()/2-c);a[b]=w=Dn(Dn({},w),{},{tickCoord:C<0?w.coordinate-C*e:w.coordinate})}else a[b]=w=Dn(Dn({},w),{},{tickCoord:w.coordinate});var T=vy(e,w.tickCoord,E,c,l);T&&(c=w.tickCoord+e*(E()/2+i),a[b]=Dn(Dn({},w),{},{isShow:!0}))},x=0;x<y;x++)g(x);return a}function YC(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,f=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(Ce(c)||li.isSsr)return IAe(i,typeof c=="number"&&Ce(c)?c:0);var p=[],v=s==="top"||s==="bottom"?"width":"height",y=f&&v==="width"?md(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(w,S){var E=Ve(l)?l(w.value,S):w.value;return v==="width"?RAe(md(E,{fontSize:t,letterSpacing:n}),y,d):md(E,{fontSize:t,letterSpacing:n})[v]},x=i.length>=2?Yn(i[1].coordinate-i[0].coordinate):1,_=$Ae(o,x,v);return c==="equidistantPreserveStart"?DAe(x,_,g,i,a):(c==="preserveStart"||c==="preserveStartEnd"?p=VAe(x,_,g,i,a,c==="preserveStartEnd"):p=zAe(x,_,g,i,a),p.filter(function(b){return b.isShow}))}var WAe=["viewBox"],HAe=["viewBox"],GAe=["ticks"];function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}function Ec(){return Ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ec.apply(this,arguments)}function CL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CL(Object(n),!0).forEach(function(r){ZC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i_(e,t){if(e==null)return{};var n=qAe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qAe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function KAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c7(r.key),r)}}function YAe(e,t,n){return t&&PL(e.prototype,t),n&&PL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZAe(e,t,n){return t=gy(t),XAe(e,l7()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}function XAe(e,t){if(t&&(gu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QAe(e)}function QAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l7=function(){return!!e})()}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}function JAe(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&&EO(e,t)}function EO(e,t){return EO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},EO(e,t)}function ZC(e,t,n){return t=c7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c7(e){var t=e3e(e,"string");return gu(t)=="symbol"?t:String(t)}function e3e(e,t){if(gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qu=function(e){JAe(t,e);function t(n){var r;return KAe(this,t),r=ZAe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return YAe(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=i_(r,WAe),s=this.props,c=s.viewBox,l=i_(s,HAe);return!Lc(o,c)||!Lc(a,l)||!Lc(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,c=i.height,l=i.orientation,f=i.tickSize,d=i.mirror,p=i.tickMargin,v,y,g,x,_,b,w=d?-1:1,S=r.tickSize||f,E=Ce(r.tickCoord)?r.tickCoord:r.coordinate;switch(l){case"top":v=y=r.coordinate,x=a+ +!d*c,g=x-w*S,b=g-w*p,_=E;break;case"left":g=x=r.coordinate,y=o+ +!d*s,v=y-w*S,_=v-w*p,b=E;break;case"right":g=x=r.coordinate,y=o+ +d*s,v=y+w*S,_=v+w*p,b=E;break;default:v=y=r.coordinate,x=a+ +d*c,g=x+w*S,b=g+w*p,_=E;break}return{line:{x1:v,y1:g,x2:y,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,c=r.orientation,l=r.mirror,f=r.axisLine,d=Hn(Hn(Hn({},De(this.props,!1)),De(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!l||c==="bottom"&&l);d=Hn(Hn({},d),{},{x1:i,y1:o+p*s,x2:i+a,y2:o+p*s})}else{var v=+(c==="left"&&!l||c==="right"&&l);d=Hn(Hn({},d),{},{x1:i+v*a,y1:o,x2:i+v*a,y2:o+s})}return V.createElement("line",Ec({},d,{className:Ee("recharts-cartesian-axis-line",Nr(f,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,s=this.props,c=s.tickLine,l=s.stroke,f=s.tick,d=s.tickFormatter,p=s.unit,v=YC(Hn(Hn({},this.props),{},{ticks:r}),i,o),y=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),x=De(this.props,!1),_=De(f,!1),b=Hn(Hn({},x),{},{fill:"none"},De(c,!1)),w=v.map(function(S,E){var C=a.getTickLineCoord(S),T=C.line,A=C.tick,F=Hn(Hn(Hn(Hn({textAnchor:y,verticalAnchor:g},x),{},{stroke:"none",fill:l},_),A),{},{index:E,payload:S,visibleTicksCount:v.length,tickFormatter:d});return V.createElement(Ze,Ec({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Ja(a.props,S,E)),c&&V.createElement("line",Ec({},b,T,{className:Ee("recharts-cartesian-axis-tick-line",Nr(c,"className"))})),f&&t.renderTickItem(f,F,"".concat(Ve(d)?d(S.value,E):S.value).concat(p||"")))});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,c=i.ticksGenerator,l=i.className,f=i.hide;if(f)return null;var d=this.props,p=d.ticks,v=i_(d,GAe),y=p;return Ve(c)&&(y=p&&p.length>0?c(this.props):c(v)),a<=0||s<=0||!y||!y.length?null:V.createElement(Ze,{className:Ee("recharts-cartesian-axis",l),ref:function(x){r.layerReference=x}},o&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),yn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):Ve(r)?a=r(i):a=V.createElement(gl,Ec({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}]),t}(M.Component);ZC(qu,"displayName","CartesianAxis");ZC(qu,"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 t3e=["x1","y1","x2","y2","key"],n3e=["offset"];function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}function TL(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 Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TL(Object(n),!0).forEach(function(r){r3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r3e(e,t,n){return t=i3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i3e(e){var t=o3e(e,"string");return _l(t)=="symbol"?t:String(t)}function o3e(e,t){if(_l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qs.apply(this,arguments)}function jL(e,t){if(e==null)return{};var n=a3e(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 a3e(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 s3e=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 u7(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(Ve(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,c=jL(t,t3e),l=De(c,!1);l.offset;var f=jL(l,n3e);n=V.createElement("line",qs({},f,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function l3e(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,c){var l=Bn(Bn({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(c),index:c});return u7(i,l)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function c3e(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,c){var l=Bn(Bn({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(c),index:c});return u7(i,l)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function u3e(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,c=e.horizontal,l=c===void 0?!0:c;if(!l||!t||!t.length)return null;var f=s.map(function(p){return Math.round(p+i-i)}).sort(function(p,v){return p-v});i!==f[0]&&f.unshift(0);var d=f.map(function(p,v){var y=!f[v+1],g=y?i+a-p:f[v+1]-p;if(g<=0)return null;var x=v%t.length;return V.createElement("rect",{key:"react-".concat(v),y:p,x:r,height:g,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 f3e(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,c=e.height,l=e.verticalPoints;if(!n||!r||!r.length)return null;var f=l.map(function(p){return Math.round(p+o-o)}).sort(function(p,v){return p-v});o!==f[0]&&f.unshift(0);var d=f.map(function(p,v){var y=!f[v+1],g=y?o+s-p:f[v+1]-p;if(g<=0)return null;var x=v%r.length;return V.createElement("rect",{key:"react-".concat(v),x:p,y:a,width:g,height:c,stroke:"none",fill:r[x],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var d3e=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return mF(YC(Bn(Bn(Bn({},qu.defaultProps),r),{},{ticks:Mo(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},h3e=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return mF(YC(Bn(Bn(Bn({},qu.defaultProps),r),{},{ticks:Mo(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},Zl={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function XC(e){var t,n,r,i,o,a,s=GC(),c=qC(),l=vAe(),f=Bn(Bn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Zl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Zl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Zl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Zl.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Zl.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Zl.verticalFill,x:Ce(e.x)?e.x:l.left,y:Ce(e.y)?e.y:l.top,width:Ce(e.width)?e.width:l.width,height:Ce(e.height)?e.height:l.height}),d=f.x,p=f.y,v=f.width,y=f.height,g=f.syncWithTicks,x=f.horizontalValues,_=f.verticalValues,b=hAe(),w=pAe();if(!Ce(v)||v<=0||!Ce(y)||y<=0||!Ce(d)||d!==+d||!Ce(p)||p!==+p)return null;var S=f.verticalCoordinatesGenerator||d3e,E=f.horizontalCoordinatesGenerator||h3e,C=f.horizontalPoints,T=f.verticalPoints;if((!C||!C.length)&&Ve(E)){var A=x&&x.length,F=E({yAxis:w?Bn(Bn({},w),{},{ticks:A?x:w.ticks}):void 0,width:s,height:c,offset:l},A?!0:g);Ni(Array.isArray(F),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(_l(F),"]")),Array.isArray(F)&&(C=F)}if((!T||!T.length)&&Ve(S)){var k=_&&_.length,I=S({xAxis:b?Bn(Bn({},b),{},{ticks:k?_:b.ticks}):void 0,width:s,height:c,offset:l},k?!0:g);Ni(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(_l(I),"]")),Array.isArray(I)&&(T=I)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(s3e,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height}),V.createElement(l3e,qs({},f,{offset:l,horizontalPoints:C,xAxis:b,yAxis:w})),V.createElement(c3e,qs({},f,{offset:l,verticalPoints:T,xAxis:b,yAxis:w})),V.createElement(u3e,qs({},f,{horizontalPoints:C})),V.createElement(f3e,qs({},f,{verticalPoints:T})))}XC.displayName="CartesianGrid";var p3e=["type","layout","connectNulls","ref"];function yu(e){"@babel/helpers - typeof";return yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yu(e)}function m3e(e,t){if(e==null)return{};var n=v3e(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 v3e(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 xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xd.apply(this,arguments)}function AL(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 wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AL(Object(n),!0).forEach(function(r){Ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xl(e){return _3e(e)||b3e(e)||y3e(e)||g3e()}function g3e(){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 y3e(e,t){if(e){if(typeof e=="string")return CO(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 CO(e,t)}}function b3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _3e(e){if(Array.isArray(e))return CO(e)}function CO(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 x3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d7(r.key),r)}}function w3e(e,t,n){return t&&kL(e.prototype,t),n&&kL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O3e(e,t,n){return t=yy(t),S3e(e,f7()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function S3e(e,t){if(t&&(yu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ma(e)}function f7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f7=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function ma(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E3e(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&&PO(e,t)}function PO(e,t){return PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},PO(e,t)}function Ei(e,t,n){return t=d7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d7(e){var t=C3e(e,"string");return yu(t)=="symbol"?t:String(t)}function C3e(e,t){if(yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ku=function(e){E3e(t,e);function t(){var n;x3e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=O3e(this,t,[].concat(i)),Ei(ma(n),"state",{isAnimationFinished:!0,totalLength:0}),Ei(ma(n),"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Ei(ma(n),"getStrokeDasharray",function(a,s,c){var l=c.reduce(function(_,b){return _+b});if(!l)return n.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/l),d=a%l,p=s-a,v=[],y=0,g=0;y<c.length;g+=c[y],++y)if(g+c[y]>d){v=[].concat(Xl(c.slice(0,y)),[d-g]);break}var x=v.length%2===0?[0,p]:[p];return[].concat(Xl(t.repeat(c,f)),Xl(v),x).map(function(_){return"".concat(_,"px")}).join(", ")}),Ei(ma(n),"id",ds("recharts-line-")),Ei(ma(n),"pathRef",function(a){n.mainCurve=a}),Ei(ma(n),"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ei(ma(n),"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return w3e(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,c=o.yAxis,l=o.layout,f=o.children,d=tr(f,Wu);if(!d)return null;var p=function(g,x){return{x:g.x,y:g.y,value:g.value,errorVal:Pt(g.payload,x)}},v={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Ze,v,d.map(function(y){return V.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:a,xAxis:s,yAxis:c,layout:l,dataPointFormatter:p})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,l=s.points,f=s.dataKey,d=De(this.props,!1),p=De(c,!0),v=l.map(function(g,x){var _=wr(wr(wr({key:"dot-".concat(x),r:3},d),p),{},{value:g.value,dataKey:f,cx:g.x,cy:g.y,index:x,payload:g.payload});return t.renderDotItem(c,_)}),y={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return V.createElement(Ze,xd({className:"recharts-line-dots",key:"dots"},y),v)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,c=s.type,l=s.layout,f=s.connectNulls;s.ref;var d=m3e(s,p3e),p=wr(wr(wr({},De(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:c,layout:l,connectNulls:f});return V.createElement(Ha,xd({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,c=a.strokeDasharray,l=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,v=a.animationId,y=a.animateNewValues,g=a.width,x=a.height,_=this.state,b=_.prevPoints,w=_.totalLength;return V.createElement(pi,{begin:f,duration:d,isActive:l,easing:p,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 C=b.length/s.length,T=s.map(function(D,q){var W=Math.floor(q*C);if(b[W]){var X=b[W],Q=Ut(X.x,D.x),ne=Ut(X.y,D.y);return wr(wr({},D),{},{x:Q(E),y:ne(E)})}if(y){var Z=Ut(g*2,D.x),z=Ut(x/2,D.y);return wr(wr({},D),{},{x:Z(E),y:z(E)})}return wr(wr({},D),{},{x:D.x,y:D.y})});return o.renderCurveStatically(T,r,i)}var A=Ut(0,w),F=A(E),k;if(c){var I="".concat(c).split(/[,\s]+/gim).map(function(D){return parseFloat(D)});k=o.getStrokeDasharray(F,w,I)}else k=o.generateSimpleStrokeDasharray(w,F);return o.renderCurveStatically(s,r,i,{strokeDasharray:k})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,c=this.state,l=c.prevPoints,f=c.totalLength;return s&&a&&a.length&&(!l&&f>0||!es(l,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,c=i.className,l=i.xAxis,f=i.yAxis,d=i.top,p=i.left,v=i.width,y=i.height,g=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var _=this.state.isAnimationFinished,b=s.length===1,w=Ee("recharts-line",c),S=l&&l.allowDataOverflow,E=f&&f.allowDataOverflow,C=S||E,T=Ue(x)?this.id:x,A=(r=De(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},F=A.r,k=F===void 0?3:F,I=A.strokeWidth,D=I===void 0?2:I,q=c5(a)?a:{},W=q.clipDot,X=W===void 0?!0:W,Q=k*2+D;return V.createElement(Ze,{className:w},S||E?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:S?p:p-v/2,y:E?d:d-y/2,width:S?v:v*2,height:E?y:y*2})),!X&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:p-Q/2,y:d-Q/2,width:v+Q,height:y+Q}))):null,!b&&this.renderCurve(C,T),this.renderErrorBar(C,T),(b||a)&&this.renderDots(C,X,T),(!g||_)&&Mi.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(Xl(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(Xl(a),Xl(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(V.isValidElement(r))o=V.cloneElement(r,i);else if(Ve(r))o=r(i);else{var a=Ee("recharts-line-dot",typeof r!="boolean"?r.className:"");o=V.createElement(_p,xd({},i,{className:a}))}return o}}]),t}(M.PureComponent);Ei(Ku,"displayName","Line");Ei(Ku,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!li.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ei(Ku,"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,c=e.displayedData,l=e.offset,f=t.layout,d=c.map(function(p,v){var y=Pt(p,a);return f==="horizontal"?{x:cu({axis:n,ticks:i,bandSize:s,entry:p,index:v}),y:Ue(y)?null:r.scale(y),value:y,payload:p}:{x:Ue(y)?null:n.scale(y),y:cu({axis:r,ticks:o,bandSize:s,entry:p,index:v}),value:y,payload:p}});return wr({points:d,layout:f},l)});var P3e=["layout","type","stroke","connectNulls","isRange","ref"],h7;function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function T3e(e,t){if(e==null)return{};var n=j3e(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 j3e(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 Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ks.apply(this,arguments)}function NL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NL(Object(n),!0).forEach(function(r){ro(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ML(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m7(r.key),r)}}function k3e(e,t,n){return t&&ML(e.prototype,t),n&&ML(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N3e(e,t,n){return t=by(t),M3e(e,p7()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function M3e(e,t){if(t&&(bu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zf(e)}function p7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p7=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function Zf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L3e(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&&TO(e,t)}function TO(e,t){return TO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TO(e,t)}function ro(e,t,n){return t=m7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m7(e){var t=R3e(e,"string");return bu(t)=="symbol"?t:String(t)}function R3e(e,t){if(bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jl=function(e){L3e(t,e);function t(){var n;A3e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=N3e(this,t,[].concat(i)),ro(Zf(n),"state",{isAnimationFinished:!0}),ro(Zf(n),"id",ds("recharts-area-")),ro(Zf(n),"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Ve(a)&&a()}),ro(Zf(n),"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Ve(a)&&a()}),n}return k3e(t,[{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var c=this.props,l=c.dot,f=c.points,d=c.dataKey,p=De(this.props,!1),v=De(l,!0),y=f.map(function(x,_){var b=va(va(va({key:"dot-".concat(_),r:3},p),v),{},{index:_,cx:x.x,cy:x.y,dataKey:d,value:x.value,payload:x.payload,points:f});return t.renderDotItem(l,b)}),g={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return V.createElement(Ze,Ks({className:"recharts-area-dots"},g),y)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].x,l=a[a.length-1].x,f=r*Math.abs(c-l),d=ja(a.map(function(p){return p.y||0}));return Ce(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(ja(o.map(function(p){return p.y||0})),d)),Ce(d)?V.createElement("rect",{x:c<l?c:c-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,c=a[0].y,l=a[a.length-1].y,f=r*Math.abs(c-l),d=ja(a.map(function(p){return p.x||0}));return Ce(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(ja(o.map(function(p){return p.x||0})),d)),Ce(d)?V.createElement("rect",{x:0,y:c<l?c:c-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,c=s.layout,l=s.type,f=s.stroke,d=s.connectNulls,p=s.isRange;s.ref;var v=T3e(s,P3e);return V.createElement(Ze,{clipPath:o?"url(#clipPath-".concat(a,")"):null},V.createElement(Ha,Ks({},De(v,!0),{points:r,connectNulls:d,type:l,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&V.createElement(Ha,Ks({},De(this.props,!1),{className:"recharts-area-curve",layout:c,type:l,connectNulls:d,fill:"none",points:r})),f!=="none"&&p&&V.createElement(Ha,Ks({},De(this.props,!1),{className:"recharts-area-curve",layout:c,type:l,connectNulls:d,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,c=a.baseLine,l=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,v=a.animationId,y=this.state,g=y.prevPoints,x=y.prevBaseLine;return V.createElement(pi,{begin:f,duration:d,isActive:l,easing:p,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var b=_.t;if(g){var w=g.length/s.length,S=s.map(function(A,F){var k=Math.floor(F*w);if(g[k]){var I=g[k],D=Ut(I.x,A.x),q=Ut(I.y,A.y);return va(va({},A),{},{x:D(b),y:q(b)})}return A}),E;if(Ce(c)&&typeof c=="number"){var C=Ut(x,c);E=C(b)}else if(Ue(c)||Iu(c)){var T=Ut(x,0);E=T(b)}else E=c.map(function(A,F){var k=Math.floor(F*w);if(x[k]){var I=x[k],D=Ut(I.x,A.x),q=Ut(I.y,A.y);return va(va({},A),{},{x:D(b),y:q(b)})}return A});return o.renderAreaStatically(S,E,r,i)}return V.createElement(Ze,null,V.createElement("defs",null,V.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(b))),V.createElement(Ze,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,c,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,a=o.points,s=o.baseLine,c=o.isAnimationActive,l=this.state,f=l.prevPoints,d=l.prevBaseLine,p=l.totalLength;return c&&a&&a.length&&(!f&&p>0||!es(f,a)||!es(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,c=i.className,l=i.top,f=i.left,d=i.xAxis,p=i.yAxis,v=i.width,y=i.height,g=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var _=this.state.isAnimationFinished,b=s.length===1,w=Ee("recharts-area",c),S=d&&d.allowDataOverflow,E=p&&p.allowDataOverflow,C=S||E,T=Ue(x)?this.id:x,A=(r=De(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},F=A.r,k=F===void 0?3:F,I=A.strokeWidth,D=I===void 0?2:I,q=c5(a)?a:{},W=q.clipDot,X=W===void 0?!0:W,Q=k*2+D;return V.createElement(Ze,{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?l:l-y/2,width:S?v:v*2,height:E?y:y*2})),!X&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:f-Q/2,y:l-Q/2,width:v+Q,height:y+Q}))):null,b?null:this.renderArea(C,T),(a||b)&&this.renderDots(C,X,T),(!g||_)&&Mi.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}(M.PureComponent);h7=jl;ro(jl,"displayName","Area");ro(jl,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!li.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ro(jl,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(Ce(s)&&typeof s=="number")return s;var c=i==="horizontal"?r:n,l=c.scale.domain();if(c.type==="number"){var f=Math.max(l[0],l[1]),d=Math.min(l[0],l[1]);return s==="dataMin"?d:s==="dataMax"||f<0?f:Math.max(Math.min(l[0],l[1]),0)}return s==="dataMin"?l[0]:s==="dataMax"?l[1]:l[0]});ro(jl,"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,c=e.dataKey,l=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=t.layout,y=l&&l.length,g=h7.getBaseValue(t,n,r,i),x=v==="horizontal",_=!1,b=d.map(function(S,E){var C;y?C=l[f+E]:(C=Pt(S,c),Array.isArray(C)?_=!0:C=[g,C]);var T=C[1]==null||y&&Pt(S,c)==null;return x?{x:cu({axis:r,ticks:o,bandSize:s,entry:S,index:E}),y:T?null:i.scale(C[1]),value:C,payload:S}:{x:T?null:r.scale(C[1]),y:cu({axis:i,ticks:a,bandSize:s,entry:S,index:E}),value:C,payload:S}}),w;return y||_?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(g):r.scale(g),va({points:b,baseLine:w,layout:v,isRange:_},p)});ro(jl,"renderDotItem",function(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(Ve(e))n=e(t);else{var r=Ee("recharts-area-dot",typeof e!="boolean"?e.className:"");n=V.createElement(_p,Ks({},t,{className:r}))}return n});var tb=function(){return null};tb.displayName="ZAxis";tb.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var $3e=["option","isActive"];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 I3e(e,t){if(e==null)return{};var n=D3e(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 D3e(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 F3e(e){var t=e.option,n=e.isActive,r=I3e(e,$3e);return typeof t=="string"?V.createElement(cy,wd({option:V.createElement(L0,wd({type:t},r)),isActive:n,shapeType:"symbols"},r)):V.createElement(cy,wd({option:t,isActive:n,shapeType:"symbols"},r))}function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}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 Xr(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){ka(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 B3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RL(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,g7(r.key),r)}}function U3e(e,t,n){return t&&RL(e.prototype,t),n&&RL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function z3e(e,t,n){return t=_y(t),V3e(e,v7()?Reflect.construct(t,n||[],_y(e).constructor):t.apply(e,n))}function V3e(e,t){if(t&&(_u(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xf(e)}function v7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v7=function(){return!!e})()}function _y(e){return _y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_y(e)}function Xf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W3e(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&&jO(e,t)}function jO(e,t){return jO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jO(e,t)}function ka(e,t,n){return t=g7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g7(e){var t=H3e(e,"string");return _u(t)=="symbol"?t:String(t)}function H3e(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nb=function(e){W3e(t,e);function t(){var n;B3e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=z3e(this,t,[].concat(i)),ka(Xf(n),"state",{isAnimationFinished:!1}),ka(Xf(n),"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),ka(Xf(n),"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),ka(Xf(n),"id",ds("recharts-scatter-")),n}return U3e(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.activeShape,c=o.activeIndex,l=De(this.props,!1);return r.map(function(f,d){var p=c===d,v=p?s:a,y=Xr(Xr({key:"symbol-".concat(d)},l),f);return V.createElement(Ze,Od({className:"recharts-scatter-symbol"},Ja(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(F3e,Od({option:v,isActive:p},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,o=i.points,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state.prevPoints;return V.createElement(pi,{begin:s,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,y=o.map(function(g,x){var _=d&&d[x];if(_){var b=Ut(_.cx,g.cx),w=Ut(_.cy,g.cy),S=Ut(_.size,g.size);return Xr(Xr({},g),{},{cx:b(v),cy:w(v),size:S(v)})}var E=Ut(0,g.size);return Xr(Xr({},g),{},{size:E(v)})});return V.createElement(Ze,null,r.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,o=r.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!es(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,c=i.children,l=tr(c,Wu);return l?l.map(function(f,d){var p=f.props,v=p.direction,y=p.dataKey;return V.cloneElement(f,{key:"".concat(v,"-").concat(y,"-").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:Pt(x,_)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,o=r.line,a=r.lineType,s=r.lineJointType,c=De(this.props,!1),l=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 p=Nfe(i),v=p.xmin,y=p.xmax,g=p.a,x=p.b,_=function(S){return g*S+x};f=[{x:v,y:_(v)},{x:y,y:_(y)}]}var b=Xr(Xr(Xr({},c),{},{fill:"none",stroke:c&&c.fill},l),{},{points:f});return V.isValidElement(o)?d=V.cloneElement(o,b):Ve(o)?d=o(b):d=V.createElement(Ha,Od({},b,{type:s})),V.createElement(Ze,{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,c=r.xAxis,l=r.yAxis,f=r.left,d=r.top,p=r.width,v=r.height,y=r.id,g=r.isAnimationActive;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,_=Ee("recharts-scatter",s),b=c&&c.allowDataOverflow,w=l&&l.allowDataOverflow,S=b||w,E=Ue(y)?this.id:y;return V.createElement(Ze,{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-p/2,y:w?d:d-v/2,width:b?p:p*2,height:w?v:v*2}))):null,a&&this.renderLine(),this.renderErrorBar(),V.createElement(Ze,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!g||x)&&Mi.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}(M.PureComponent);ka(nb,"displayName","Scatter");ka(nb,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!li.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});ka(nb,"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,c=e.offset,l=i.props.tooltipType,f=tr(i.props.children,Va),d=Ue(t.dataKey)?i.props.dataKey:t.dataKey,p=Ue(n.dataKey)?i.props.dataKey:n.dataKey,v=r&&r.dataKey,y=r?r.range:tb.defaultProps.range,g=y&&y[0],x=t.scale.bandwidth?t.scale.bandwidth():0,_=n.scale.bandwidth?n.scale.bandwidth():0,b=o.map(function(w,S){var E=Pt(w,d),C=Pt(w,p),T=!Ue(v)&&Pt(w,v)||"-",A=[{name:Ue(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:E,payload:w,dataKey:d,type:l},{name:Ue(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:C,payload:w,dataKey:p,type:l}];T!=="-"&&A.push({name:r.name||r.dataKey,unit:r.unit||"",value:T,payload:w,dataKey:v,type:l});var F=cu({axis:t,ticks:a,bandSize:x,entry:w,index:S,dataKey:d}),k=cu({axis:n,ticks:s,bandSize:_,entry:w,index:S,dataKey:p}),I=T!=="-"?r.scale(T):g,D=Math.sqrt(Math.max(I,0)/Math.PI);return Xr(Xr({},w),{},{cx:F,cy:k,x:F-D,y:k-D,xAxis:t,yAxis:n,zAxis:r,width:2*D,height:2*D,size:I,node:{x:E,y:C,z:T},tooltipPayload:A,tooltipPosition:{x:F,y:k},payload:w},f&&f[S]&&f[S].props)});return Xr({points:b},c)});function AO(){return AO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AO.apply(this,arguments)}var Yu=function(t){var n=t.xAxisId,r=GC(),i=qC(),o=o7(n);return o==null?null:V.createElement(qu,AO({},o,{className:Ee("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(s){return Mo(s,!0)}}))};Yu.displayName="XAxis";Yu.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 kO(){return kO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kO.apply(this,arguments)}var Zu=function(t){var n=t.yAxisId,r=GC(),i=qC(),o=a7(n);return o==null?null:V.createElement(qu,kO({},o,{className:Ee("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(s){return Mo(s,!0)}}))};Zu.displayName="YAxis";Zu.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 $L(e){return Y3e(e)||K3e(e)||q3e(e)||G3e()}function G3e(){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 q3e(e,t){if(e){if(typeof e=="string")return NO(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 NO(e,t)}}function K3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y3e(e){if(Array.isArray(e))return NO(e)}function NO(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 MO=function(t,n,r,i,o){var a=tr(t,KC),s=tr(t,xp),c=[].concat($L(a),$L(s)),l=tr(t,Gu),f="".concat(i,"Id"),d=i[0],p=n;if(c.length&&(p=c.reduce(function(g,x){if(x.props[f]===r&&co(x.props,"extendDomain")&&Ce(x.props[d])){var _=x.props[d];return[Math.min(g[0],_),Math.max(g[1],_)]}return g},p)),l.length){var v="".concat(d,"1"),y="".concat(d,"2");p=l.reduce(function(g,x){if(x.props[f]===r&&co(x.props,"extendDomain")&&Ce(x.props[v])&&Ce(x.props[y])){var _=x.props[v],b=x.props[y];return[Math.min(g[0],_,b),Math.max(g[1],_,b)]}return g},p)}return o&&o.length&&(p=o.reduce(function(g,x){return Ce(x)?[Math.min(g[0],x),Math.max(g[1],x)]:g},p)),p},y7={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(c,l,f){this.fn=c,this.context=l,this.once=f||!1}function o(c,l,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new i(f,d||c,p),y=n?n+l:l;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],v]:c._events[y].push(v):(c._events[y]=v,c._eventsCount++),c}function a(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],f,d;if(this._eventsCount===0)return l;for(d in f=this._events)t.call(f,d)&&l.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},s.prototype.listeners=function(l){var f=n?n+l:l,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,v=d.length,y=new Array(v);p<v;p++)y[p]=d[p].fn;return y},s.prototype.listenerCount=function(l){var f=n?n+l:l,d=this._events[f];return d?d.fn?1:d.length:0},s.prototype.emit=function(l,f,d,p,v,y){var g=n?n+l:l;if(!this._events[g])return!1;var x=this._events[g],_=arguments.length,b,w;if(x.fn){switch(x.once&&this.removeListener(l,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,p),!0;case 5:return x.fn.call(x.context,f,d,p,v),!0;case 6:return x.fn.call(x.context,f,d,p,v,y),!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(l,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,p);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(l,f,d){return o(this,l,f,d,!1)},s.prototype.once=function(l,f,d){return o(this,l,f,d,!0)},s.prototype.removeListener=function(l,f,d,p){var v=n?n+l:l;if(!this._events[v])return this;if(!f)return a(this,v),this;var y=this._events[v];if(y.fn)y.fn===f&&(!p||y.once)&&(!d||y.context===d)&&a(this,v);else{for(var g=0,x=[],_=y.length;g<_;g++)(y[g].fn!==f||p&&!y[g].once||d&&y[g].context!==d)&&x.push(y[g]);x.length?this._events[v]=x.length===1?x[0]:x:a(this,v)}return this},s.prototype.removeAllListeners=function(l){var f;return l?(f=n?n+l:l,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})(y7);var Z3e=y7.exports;const X3e=at(Z3e);var o_=new X3e,a_="recharts.syncMouseEvents";function Wh(e){"@babel/helpers - typeof";return Wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wh(e)}function Q3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J3e(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,b7(r.key),r)}}function eke(e,t,n){return t&&J3e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s_(e,t,n){return t=b7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b7(e){var t=tke(e,"string");return Wh(t)=="symbol"?t:String(t)}function tke(e,t){if(Wh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nke=function(){function e(){Q3e(this,e),s_(this,"activeIndex",0),s_(this,"coordinateList",[]),s_(this,"layout","horizontal")}return eke(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,c=n.layout,l=c===void 0?null:c,f=n.offset,d=f===void 0?null:f,p=n.mouseHandlerCallback,v=p===void 0?null:p;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=l??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,c=this.coordinateList[this.activeIndex].coordinate,l=((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+c+l,p=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:d,pageY:p})}}}]),e}();function rke(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&&Ce(r)&&Ce(i))return!0}return!1}function ike(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 _7(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=Ot(t,n,r,i),s=Ot(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function oke(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,c=t.cy,l=t.innerRadius,f=t.outerRadius,d=t.angle,p=Ot(s,c,l,d),v=Ot(s,c,f,d);r=p.x,i=p.y,o=v.x,a=v.y}else return _7(t);return[{x:r,y:i},{x:o,y:a}]}function Hh(e){"@babel/helpers - typeof";return Hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hh(e)}function 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 Nm(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){ake(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 ake(e,t,n){return t=ske(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ske(e){var t=lke(e,"string");return Hh(t)=="symbol"?t:String(t)}function lke(e,t){if(Hh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cke(e){var t=e.element,n=e.tooltipEventType,r=e.isActive,i=e.activeCoordinate,o=e.activePayload,a=e.offset,s=e.activeTooltipIndex,c=e.tooltipAxisBandSize,l=e.layout,f=e.chartName;if(!t||!t.props.cursor||!r||!i||f!=="ScatterChart"&&n!=="axis")return null;var d,p=Ha;if(f==="ScatterChart")d=i,p=GCe;else if(f==="BarChart")d=ike(l,i,a,c),p=zC;else if(l==="radial"){var v=_7(i),y=v.cx,g=v.cy,x=v.radius,_=v.startAngle,b=v.endAngle;d={cx:y,cy:g,startAngle:_,endAngle:b,innerRadius:x,outerRadius:x},p=CF}else d={points:oke(l,i,a)},p=Ha;var w=Nm(Nm(Nm(Nm({stroke:"#ccc",pointerEvents:"none"},a),d),De(t.props.cursor,!1)),{},{payload:o,payloadIndex:s,className:Ee("recharts-tooltip-cursor",t.props.cursor.className)});return M.isValidElement(t.props.cursor)?M.cloneElement(t.props.cursor,w):M.createElement(p,w)}var uke=["item"],fke=["children","className","width","height","style","compact","title","desc"];function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sd.apply(this,arguments)}function DL(e,t){return pke(e)||hke(e,t)||w7(e,t)||dke()}function dke(){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 hke(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function pke(e){if(Array.isArray(e))return e}function FL(e,t){if(e==null)return{};var n=mke(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 mke(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 vke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gke(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,O7(r.key),r)}}function yke(e,t,n){return t&&gke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bke(e,t,n){return t=xy(t),_ke(e,x7()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}function _ke(e,t){if(t&&(xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lt(e)}function x7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x7=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}function lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xke(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&&LO(e,t)}function LO(e,t){return LO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LO(e,t)}function wu(e){return Ske(e)||Oke(e)||w7(e)||wke()}function wke(){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 w7(e,t){if(e){if(typeof e=="string")return RO(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 RO(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 RO(e)}function RO(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 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 ve(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){We(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 We(e,t,n){return t=O7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O7(e){var t=Eke(e,"string");return xu(t)=="symbol"?t:String(t)}function Eke(e,t){if(xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cke={xAxis:["bottom","top"],yAxis:["left","right"]},Pke={width:"100%",height:"100%"},S7={x:0,y:0};function Mm(e){return e}var Tke=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},jke=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),Ot(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var c=o.coordinate,l=i.angle;return ve(ve(ve({},i),Ot(i.cx,i.cy,c,l)),{},{angle:l,radius:c})}return S7},rb=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(s,c){var l=c.props.data;return l&&l.length?[].concat(wu(s),wu(l)):s},[]);return a.length>0?a:t&&t.length&&Ce(i)&&Ce(o)?t.slice(i,o+1):[]};function E7(e){return e==="number"?[0,"auto"]:void 0}var $O=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,s=rb(n,t);return r<0||!o||!o.length||r>=s.length?null:o.reduce(function(c,l){var f,d=(f=l.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(a.dataKey&&!a.allowDuplicatedCategory){var v=d===void 0?s:d;p=Eg(v,a.dataKey,i)}else p=d&&d[r]||s[r];return p?[].concat(wu(c),[_F(l,p)]):c},[])},UL=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=Tke(o,r),s=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,f=kOe(a,s,l,c);if(f>=0&&l){var d=l[f]&&l[f].value,p=$O(t,n,f,d),v=jke(r,s,f,o);return{activeTooltipIndex:f,activeLabel:d,activePayload:p,activeCoordinate:v}}return null},Ake=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,l=n.dataEndIndex,f=t.layout,d=t.children,p=t.stackOffset,v=pF(f,o);return r.reduce(function(y,g){var x,_=g.props,b=_.type,w=_.dataKey,S=_.allowDataOverflow,E=_.allowDuplicatedCategory,C=_.scale,T=_.ticks,A=_.includeHidden,F=g.props[a];if(y[F])return y;var k=rb(t.data,{graphicalItems:i.filter(function(ee){return ee.props[a]===F}),dataStartIndex:c,dataEndIndex:l}),I=k.length,D,q,W;rke(g.props.domain,S,b)&&(D=J2(g.props.domain,null,S),v&&(b==="number"||C!=="auto")&&(W=gd(k,w,"category")));var X=E7(b);if(!D||D.length===0){var Q,ne=(Q=g.props.domain)!==null&&Q!==void 0?Q:X;if(w){if(D=gd(k,w,b),b==="category"&&v){var Z=kfe(D);E&&Z?(q=D,D=fy(0,I)):E||(D=aM(ne,D,g).reduce(function(ee,K){return ee.indexOf(K)>=0?ee:[].concat(wu(ee),[K])},[]))}else if(b==="category")E?D=D.filter(function(ee){return ee!==""&&!Ue(ee)}):D=aM(ne,D,g).reduce(function(ee,K){return ee.indexOf(K)>=0||K===""||Ue(K)?ee:[].concat(wu(ee),[K])},[]);else if(b==="number"){var z=$Oe(k,i.filter(function(ee){return ee.props[a]===F&&(A||!ee.props.hide)}),w,o,f);z&&(D=z)}v&&(b==="number"||C!=="auto")&&(W=gd(k,w,"category"))}else v?D=fy(0,I):s&&s[F]&&s[F].hasStack&&b==="number"?D=p==="expand"?[0,1]:bF(s[F].stackGroups,c,l):D=hF(k,i.filter(function(ee){return ee.props[a]===F&&(A||!ee.props.hide)}),b,f,!0);if(b==="number")D=MO(d,D,F,o,T),ne&&(D=J2(ne,D,S));else if(b==="category"&&ne){var B=ne,H=D.every(function(ee){return B.indexOf(ee)>=0});H&&(D=B)}}return ve(ve({},y),{},We({},F,ve(ve({},g.props),{},{axisType:o,domain:D,categoricalDomain:W,duplicateDomain:q,originalDomain:(x=g.props.domain)!==null&&x!==void 0?x:X,isCategorical:v,layout:f})))},{})},kke=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,l=n.dataEndIndex,f=t.layout,d=t.children,p=rb(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),v=p.length,y=pF(f,o),g=-1;return r.reduce(function(x,_){var b=_.props[a],w=E7("number");if(!x[b]){g++;var S;return y?S=fy(0,v):s&&s[b]&&s[b].hasStack?(S=bF(s[b].stackGroups,c,l),S=MO(d,S,b,o)):(S=J2(w,hF(p,r.filter(function(E){return E.props[a]===b&&!E.props.hide}),"number",f),i.defaultProps.allowDataOverflow),S=MO(d,S,b,o)),ve(ve({},x),{},We({},b,ve(ve({axisType:o},i.defaultProps),{},{hide:!0,orientation:Nr(Cke,"".concat(o,".").concat(g%2),null),domain:S,originalDomain:w,isCategorical:y,layout:f})))}return x},{})},Nke=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,c=n.dataStartIndex,l=n.dataEndIndex,f=t.children,d="".concat(i,"Id"),p=tr(f,o),v={};return p&&p.length?v=Ake(t,{axes:p,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:l}):a&&a.length&&(v=kke(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:l})),v},Mke=function(t){var n=Sa(t),r=Mo(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:pC(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Qg(n,r)}},zL=function(t){var n=t.children,r=t.defaultShowTooltip,i=Er(n,mu),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}},Lke=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ro(n&&n.type);return r&&r.indexOf("Bar")>=0})},VL=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"}},Rke=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,c=s===void 0?{}:s,l=r.width,f=r.height,d=r.children,p=r.margin||{},v=Er(d,mu),y=Er(d,ch),g=Object.keys(c).reduce(function(E,C){var T=c[C],A=T.orientation;return!T.mirror&&!T.hide?ve(ve({},E),{},We({},A,E[A]+T.width)):E},{left:p.left||0,right:p.right||0}),x=Object.keys(a).reduce(function(E,C){var T=a[C],A=T.orientation;return!T.mirror&&!T.hide?ve(ve({},E),{},We({},A,Nr(E,"".concat(A))+T.height)):E},{top:p.top||0,bottom:p.bottom||0}),_=ve(ve({},x),g),b=_.bottom;v&&(_.bottom+=v.props.height||mu.defaultProps.height),y&&n&&(_=LOe(_,i,r,n));var w=l-_.left-_.right,S=f-_.top-_.bottom;return ve(ve({brushBottom:b},_),{},{width:Math.max(w,0),height:Math.max(S,0)})},$ke=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},QC=function(t){var n,r=t.chartName,i=t.GraphicalChild,o=t.defaultTooltipEventType,a=o===void 0?"axis":o,s=t.validateTooltipEventTypes,c=s===void 0?["axis"]:s,l=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,p=t.defaultProps,v=function(x,_){var b=_.graphicalItems,w=_.stackGroups,S=_.offset,E=_.updateId,C=_.dataStartIndex,T=_.dataEndIndex,A=x.barSize,F=x.layout,k=x.barGap,I=x.barCategoryGap,D=x.maxBarSize,q=VL(F),W=q.numericAxisName,X=q.cateAxisName,Q=Lke(b),ne=[];return b.forEach(function(Z,z){var B=rb(x.data,{graphicalItems:[Z],dataStartIndex:C,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=l.reduce(function(Te,Pe){var Ae=_["".concat(Pe.axisType,"Map")],le=Z.props["".concat(Pe.axisType,"Id")];Ae&&Ae[le]||Pe.axisType==="zAxis"||bl();var ue=Ae[le];return ve(ve({},Te),{},We(We({},Pe.axisType,ue),"".concat(Pe.axisType,"Ticks"),Mo(ue)))},ae),j=fe[X],N=fe["".concat(X,"Ticks")],U=w&&w[te]&&w[te].hasStack&&HOe(Z,w[te].stackGroups),J=Ro(Z.type).indexOf("Bar")>=0,Y=Qg(j,N),oe=[],he=Q&&NOe({barSize:A,stackGroups:w,totalSize:$ke(fe,X)});if(J){var Se,se,pe=Ue(K)?D:K,me=(Se=(se=Qg(j,N,!0))!==null&&se!==void 0?se:pe)!==null&&Se!==void 0?Se:0;oe=MOe({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:F,dataStartIndex:C,dataEndIndex:T}))),{},We(We(We({key:Z.key||"item-".concat(z)},W,fe[W]),X,fe[X]),"animationId",E)),childIndex:Vfe(Z,x.children),item:Z})}),ne},y=function(x,_){var b=x.props,w=x.dataStartIndex,S=x.dataEndIndex,E=x.updateId;if(!ek({props:b}))return null;var C=b.children,T=b.layout,A=b.stackOffset,F=b.data,k=b.reverseStackOrder,I=VL(T),D=I.numericAxisName,q=I.cateAxisName,W=tr(C,i),X=VOe(F,W,"".concat(D,"Id"),"".concat(q,"Id"),A,k),Q=l.reduce(function(H,ee){var K="".concat(ee.axisType,"Map");return ve(ve({},H),{},We({},K,Nke(b,ve(ve({},ee),{},{graphicalItems:W,stackGroups:ee.axisType===D&&X,dataStartIndex:w,dataEndIndex:S}))))},{}),ne=Rke(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=Mke(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(g){xke(x,g);function x(_){var b,w,S;return vke(this,x),S=bke(this,x,[_]),We(lt(S),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),We(lt(S),"accessibilityManager",new nke),We(lt(S),"handleLegendBBoxUpdate",function(E){if(E){var C=S.state,T=C.dataStartIndex,A=C.dataEndIndex,F=C.updateId;S.setState(ve({legendBBox:E},y({props:S.props,dataStartIndex:T,dataEndIndex:A,updateId:F},ve(ve({},S.state),{},{legendBBox:E}))))}}),We(lt(S),"handleReceiveSyncEvent",function(E,C,T){if(S.props.syncId===E){if(T===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(C)}}),We(lt(S),"handleBrushChange",function(E){var C=E.startIndex,T=E.endIndex;if(C!==S.state.dataStartIndex||T!==S.state.dataEndIndex){var A=S.state.updateId;S.setState(function(){return ve({dataStartIndex:C,dataEndIndex:T},y({props:S.props,dataStartIndex:C,dataEndIndex:T,updateId:A},S.state))}),S.triggerSyncEvent({dataStartIndex:C,dataEndIndex:T})}}),We(lt(S),"handleMouseEnter",function(E){var C=S.getMouseInfo(E);if(C){var T=ve(ve({},C),{},{isTooltipActive:!0});S.setState(T),S.triggerSyncEvent(T);var A=S.props.onMouseEnter;Ve(A)&&A(T,E)}}),We(lt(S),"triggeredAfterMouseMove",function(E){var C=S.getMouseInfo(E),T=C?ve(ve({},C),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(T),S.triggerSyncEvent(T);var A=S.props.onMouseMove;Ve(A)&&A(T,E)}),We(lt(S),"handleItemMouseEnter",function(E){S.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),We(lt(S),"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),We(lt(S),"handleMouseMove",function(E){E.persist(),S.throttleTriggeredAfterMouseMove(E)}),We(lt(S),"handleMouseLeave",function(E){S.throttleTriggeredAfterMouseMove.cancel();var C={isTooltipActive:!1};S.setState(C),S.triggerSyncEvent(C);var T=S.props.onMouseLeave;Ve(T)&&T(C,E)}),We(lt(S),"handleOuterEvent",function(E){var C=zfe(E),T=Nr(S.props,"".concat(C));if(C&&Ve(T)){var A,F;/.*touch.*/i.test(C)?F=S.getMouseInfo(E.changedTouches[0]):F=S.getMouseInfo(E),T((A=F)!==null&&A!==void 0?A:{},E)}}),We(lt(S),"handleClick",function(E){var C=S.getMouseInfo(E);if(C){var T=ve(ve({},C),{},{isTooltipActive:!0});S.setState(T),S.triggerSyncEvent(T);var A=S.props.onClick;Ve(A)&&A(T,E)}}),We(lt(S),"handleMouseDown",function(E){var C=S.props.onMouseDown;if(Ve(C)){var T=S.getMouseInfo(E);C(T,E)}}),We(lt(S),"handleMouseUp",function(E){var C=S.props.onMouseUp;if(Ve(C)){var T=S.getMouseInfo(E);C(T,E)}}),We(lt(S),"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),We(lt(S),"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&S.handleMouseDown(E.changedTouches[0])}),We(lt(S),"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&S.handleMouseUp(E.changedTouches[0])}),We(lt(S),"triggerSyncEvent",function(E){S.props.syncId!==void 0&&o_.emit(a_,S.props.syncId,E,S.eventEmitterSymbol)}),We(lt(S),"applySyncEvent",function(E){var C=S.props,T=C.layout,A=C.syncMethod,F=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},y({props:S.props,dataStartIndex:k,dataEndIndex:I,updateId:F},S.state)));else if(E.activeTooltipIndex!==void 0){var D=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(D,z.x+z.width),H=Math.min(q,z.y+z.height),ee=ne[W]&&ne[W].value,K=$O(S.state,S.props.data,W),te=ne[W]?{x:T==="horizontal"?ne[W].coordinate:B,y:T==="horizontal"?H:ne[W].coordinate}:S7;S.setState(ve(ve({},E),{},{activeLabel:ee,activeCoordinate:te,activePayload:K,activeTooltipIndex:W}))}else S.setState(E)}),We(lt(S),"renderCursor",function(E){var C,T=S.state,A=T.isTooltipActive,F=T.activeCoordinate,k=T.activePayload,I=T.offset,D=T.activeTooltipIndex,q=T.tooltipAxisBandSize,W=S.getTooltipEventType(),X=(C=E.props.active)!==null&&C!==void 0?C:A,Q=S.props.layout,ne=E.key||"_recharts-cursor";return V.createElement(cke,{key:ne,activeCoordinate:F,activePayload:k,activeTooltipIndex:D,chartName:r,element:E,isActive:X,layout:Q,offset:I,tooltipAxisBandSize:q,tooltipEventType:W})}),We(lt(S),"renderPolarAxis",function(E,C,T){var A=Nr(E,"type.axisType"),F=Nr(S.state,"".concat(A,"Map")),k=F&&F[E.props["".concat(A,"Id")]];return M.cloneElement(E,ve(ve({},k),{},{className:Ee(A,k.className),key:E.key||"".concat(C,"-").concat(T),ticks:Mo(k,!0)}))}),We(lt(S),"renderPolarGrid",function(E){var C=E.props,T=C.radialLines,A=C.polarAngles,F=C.polarRadius,k=S.state,I=k.radiusAxisMap,D=k.angleAxisMap,q=Sa(I),W=Sa(D),X=W.cx,Q=W.cy,ne=W.innerRadius,Z=W.outerRadius;return M.cloneElement(E,{polarAngles:Array.isArray(A)?A:Mo(W,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(F)?F:Mo(q,!0).map(function(z){return z.coordinate}),cx:X,cy:Q,innerRadius:ne,outerRadius:Z,key:E.key||"polar-grid",radialLines:T})}),We(lt(S),"renderLegend",function(){var E=S.state.formattedGraphicalItems,C=S.props,T=C.children,A=C.width,F=C.height,k=S.props.margin||{},I=A-(k.left||0)-(k.right||0),D=fF({children:T,formattedGraphicalItems:E,legendWidth:I,legendContent:f});if(!D)return null;var q=D.item,W=FL(D,uke);return M.cloneElement(q,ve(ve({},W),{},{chartWidth:A,chartHeight:F,margin:k,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),We(lt(S),"renderTooltip",function(){var E,C=S.props,T=C.children,A=C.accessibilityLayer,F=Er(T,Qr);if(!F)return null;var k=S.state,I=k.isTooltipActive,D=k.activeCoordinate,q=k.activePayload,W=k.activeLabel,X=k.offset,Q=(E=F.props.active)!==null&&E!==void 0?E:I;return M.cloneElement(F,{viewBox:ve(ve({},X),{},{x:X.left,y:X.top}),active:Q,label:W,payload:Q?q:[],coordinate:D,accessibilityLayer:A})}),We(lt(S),"renderBrush",function(E){var C=S.props,T=C.margin,A=C.data,F=S.state,k=F.offset,I=F.dataStartIndex,D=F.dataEndIndex,q=F.updateId;return M.cloneElement(E,{key:E.key||"_recharts-brush",onChange:Tm(S.handleBrushChange,E.props.onChange),data:A,x:Ce(E.props.x)?E.props.x:k.left,y:Ce(E.props.y)?E.props.y:k.top+k.height+k.brushBottom-(T.bottom||0),width:Ce(E.props.width)?E.props.width:k.width,startIndex:I,endIndex:D,updateId:"brush-".concat(q)})}),We(lt(S),"renderReferenceElement",function(E,C,T){if(!E)return null;var A=lt(S),F=A.clipPathId,k=S.state,I=k.xAxisMap,D=k.yAxisMap,q=k.offset,W=E.props,X=W.xAxisId,Q=W.yAxisId;return M.cloneElement(E,{key:E.key||"".concat(C,"-").concat(T),xAxis:I[X],yAxis:D[Q],viewBox:{x:q.left,y:q.top,width:q.width,height:q.height},clipPathId:F})}),We(lt(S),"renderActivePoints",function(E){var C=E.item,T=E.activePoint,A=E.basePoint,F=E.childIndex,k=E.isRange,I=[],D=C.props.key,q=C.item.props,W=q.activeDot,X=q.dataKey,Q=ve(ve({index:F,dataKey:X,cx:T.x,cy:T.y,r:4,fill:UC(C.item),strokeWidth:2,stroke:"#fff",payload:T.payload,value:T.value,key:"".concat(D,"-activePoint-").concat(F)},De(W,!1)),Cg(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(D,"-basePoint-").concat(F)}))):k&&I.push(null),I}),We(lt(S),"renderGraphicChild",function(E,C,T){var A=S.filterFormatItem(E,C,T);if(!A)return null;var F=S.getTooltipEventType(),k=S.state,I=k.isTooltipActive,D=k.tooltipAxis,q=k.activeTooltipIndex,W=k.activeLabel,X=S.props.children,Q=Er(X,Qr),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={};F!=="axis"&&Q&&Q.props.trigger==="click"?fe={onClick:Tm(S.handleItemMouseEnter,E.props.onClick)}:F!=="axis"&&(fe={onMouseLeave:Tm(S.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:Tm(S.handleItemMouseEnter,E.props.onMouseEnter)});var j=M.cloneElement(E,ve(ve({},A.props),fe));function N(Pe){return typeof D.dataKey=="function"?D.dataKey(Pe.payload):null}if(ae)if(q>=0){var U,J;if(D.dataKey&&!D.allowDuplicatedCategory){var Y=typeof D.dataKey=="function"?N:"payload.".concat(D.dataKey.toString());U=Eg(Z,Y,W),J=z&&B&&Eg(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[M.cloneElement(E,ve(ve(ve({},A.props),fe),{},{activeIndex:oe})),null,null]}if(!Ue(U))return[j].concat(wu(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[M.cloneElement(me,Te),null,null]}return z?[j,null,null]:[j,null]}),We(lt(S),"renderCustomized",function(E,C,T){return M.cloneElement(E,ve(ve({key:"recharts-customized-".concat(T)},S.props),S.state))}),We(lt(S),"renderMap",{CartesianGrid:{handler:Mm,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Mm},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Mm},YAxis:{handler:Mm},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:ds("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=h8(S.triggeredAfterMouseMove,(w=_.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return yke(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,C=b.layout,T=Er(w,Qr);if(T){var A=T.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length)){var F=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,k=$O(this.state,S,A,F),I=this.state.tooltipTicks[A].coordinate,D=(this.state.offset.top+E)/2,q=C==="horizontal",W=q?{x:I,y:D}:{y:I,x:D},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:F,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){p2([Er(b.children,Qr)],[Er(this.props.children,Qr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Er(this.props.children,Qr);if(b&&typeof b.props.shared=="boolean"){var w=b.props.shared?"axis":"item";return c.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=h_e(S),C={chartX:Math.round(b.pageX-E.left),chartY:Math.round(b.pageY-E.top)},T=S.width/w.offsetWidth||1,A=this.inRange(C.chartX,C.chartY,T);if(!A)return null;var F=this.state,k=F.xAxisMap,I=F.yAxisMap,D=this.getTooltipEventType();if(D!=="axis"&&k&&I){var q=Sa(k).scale,W=Sa(I).scale,X=q&&q.invert?q.invert(C.chartX):null,Q=W&&W.invert?W.invert(C.chartY):null;return ve(ve({},C),{},{xValue:X,yValue:Q})}var ne=UL(this.state,this.props.data,this.props.layout,A);return ne?ve(ve({},C),ne):null}},{key:"inRange",value:function(b,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,C=b/S,T=w/S;if(E==="horizontal"||E==="vertical"){var A=this.state.offset,F=C>=A.left&&C<=A.left+A.width&&T>=A.top&&T<=A.top+A.height;return F?{x:C,y:T}:null}var k=this.state,I=k.angleAxisMap,D=k.radiusAxisMap;if(I&&D){var q=Sa(I);return cM({x:C,y:T},q)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,w=this.getTooltipEventType(),S=Er(b,Qr),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 C=Cg(this.props,this.handleOuterEvent);return ve(ve({},C),E)}},{key:"addListener",value:function(){o_.on(a_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){o_.removeListener(a_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,w,S){for(var E=this.state.formattedGraphicalItems,C=0,T=E.length;C<T;C++){var A=E[C];if(A.item===b||A.props.key===b.key||w===Ro(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,C=w.height,T=w.width;return V.createElement("defs",null,V.createElement("clipPath",{id:b},V.createElement("rect",{x:S,y:E,height:C,width:T})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(w,S){var E=DL(S,2),C=E[0],T=E[1];return ve(ve({},w),{},We({},C,T.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(w,S){var E=DL(S,2),C=E[0],T=E[1];return ve(ve({},w),{},We({},C,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 C=0,T=S.length;C<T;C++){var A=S[C],F=A.props,k=A.item,I=Ro(k.type);if(I==="Bar"){var D=(F.data||[]).find(function(Q){return CCe(b,Q)});if(D)return{graphicalItem:A,payload:D}}else if(I==="RadialBar"){var q=(F.data||[]).find(function(Q){return cM(b,Q)});if(q)return{graphicalItem:A,payload:q}}else if(Q0(A,E)||J0(A,E)||$h(A,E)){var W=pTe({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:$h(A,E)?k.props.data[W]:A.props.data[W]}}}return null}},{key:"render",value:function(){var b=this;if(!ek(this))return null;var w=this.props,S=w.children,E=w.className,C=w.width,T=w.height,A=w.style,F=w.compact,k=w.title,I=w.desc,D=FL(w,fke),q=De(D,!1);if(F)return V.createElement(gL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(v2,Sd({},q,{width:C,height:T,title:k,desc:I}),this.renderClipPath(),nk(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(gL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",Sd({className:Ee("recharts-wrapper",E),style:ve({position:"relative",cursor:"default",width:C,height:T},A)},Q,{ref:function(Z){b.container=Z}}),V.createElement(v2,Sd({},q,{width:C,height:T,title:k,desc:I,style:Pke}),this.renderClipPath(),nk(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}]),x}(M.Component),We(n,"displayName",r),We(n,"defaultProps",ve({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),We(n,"getDerivedStateFromProps",function(g,x){var _=g.dataKey,b=g.data,w=g.children,S=g.width,E=g.height,C=g.layout,T=g.stackOffset,A=g.margin,F=x.dataStartIndex,k=x.dataEndIndex;if(x.updateId===void 0){var I=zL(g);return ve(ve(ve({},I),{},{updateId:0},y(ve(ve({props:g},I),{},{updateId:0}),x)),{},{prevDataKey:_,prevData:b,prevWidth:S,prevHeight:E,prevLayout:C,prevStackOffset:T,prevMargin:A,prevChildren:w})}if(_!==x.prevDataKey||b!==x.prevData||S!==x.prevWidth||E!==x.prevHeight||C!==x.prevLayout||T!==x.prevStackOffset||!Lc(A,x.prevMargin)){var D=zL(g),q={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},W=ve(ve({},UL(x,b,C)),{},{updateId:x.updateId+1}),X=ve(ve(ve({},D),q),W);return ve(ve(ve({},X),y(ve({props:g},X),x)),{},{prevDataKey:_,prevData:b,prevWidth:S,prevHeight:E,prevLayout:C,prevStackOffset:T,prevMargin:A,prevChildren:w})}if(!p2(w,x.prevChildren)){var Q,ne,Z,z,B=Er(w,mu),H=B&&(Q=(ne=B.props)===null||ne===void 0?void 0:ne.startIndex)!==null&&Q!==void 0?Q:F,ee=B&&(Z=(z=B.props)===null||z===void 0?void 0:z.endIndex)!==null&&Z!==void 0?Z:k,K=H!==F||ee!==k,te=!Ue(b),ie=te&&!K?x.updateId:x.updateId+1;return ve(ve({updateId:ie},y(ve(ve({props:g},x),{},{updateId:ie,dataStartIndex:H,dataEndIndex:ee}),x)),{},{prevChildren:w,dataStartIndex:H,dataEndIndex:ee})}return null}),We(n,"renderActiveDot",function(g,x){var _;return M.isValidElement(g)?_=M.cloneElement(g,x):Ve(g)?_=g(x):_=V.createElement(_p,x),V.createElement(Ze,{className:"recharts-active-dot",key:x.key},_)}),n},Ike=QC({chartName:"LineChart",GraphicalChild:Ku,axisComponents:[{axisType:"xAxis",AxisComp:Yu},{axisType:"yAxis",AxisComp:Zu}],formatAxisMap:XF}),Dke=QC({chartName:"PieChart",GraphicalChild:vo,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:X0},{axisType:"radiusAxis",AxisComp:Y0}],formatAxisMap:tSe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Fke=QC({chartName:"ComposedChart",GraphicalChild:[Ku,jl,Io,nb],axisComponents:[{axisType:"xAxis",AxisComp:Yu},{axisType:"yAxis",AxisComp:Zu},{axisType:"zAxis",AxisComp:tb}],formatAxisMap:XF});function C7(e,t){const n=M.useRef(t);M.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 Bke=1;function Uke(e){return Object.freeze({__version:Bke,map:e})}function zke(e,t){return Object.freeze({...e,...t})}const P7=M.createContext(null),T7=P7.Provider;function j7(){const e=M.useContext(P7);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function Vke(e){function t(n,r){const{instance:i,context:o}=e(n).current;return M.useImperativeHandle(r,()=>i),n.children==null?null:V.createElement(T7,{value:o},n.children)}return M.forwardRef(t)}function Wke(e){function t(n,r){const[i,o]=M.useState(!1),{instance:a}=e(n,o).current;M.useImperativeHandle(r,()=>a),M.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?Gy.createPortal(n.children,s):null}return M.forwardRef(t)}function Hke(e){function t(n,r){const{instance:i}=e(n).current;return M.useImperativeHandle(r,()=>i),null}return M.forwardRef(t)}function A7(e,t){const n=M.useRef();M.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 JC(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function Gke(e,t){return function(r,i){const o=j7(),a=e(JC(r,o),o);return C7(o.map,r.attribution),A7(a.current,r.eventHandlers),t(a.current,o,r,i),a}}var IO={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)})(oc,function(n){var r="1.9.4";function i(u){var h,O,P,R;for(O=1,P=arguments.length;O<P;O++){R=arguments[O];for(h in R)u[h]=R[h]}return u}var o=Object.create||function(){function u(){}return function(h){return u.prototype=h,new u}}();function a(u,h){var O=Array.prototype.slice;if(u.bind)return u.bind.apply(u,O.call(arguments,1));var P=O.call(arguments,2);return function(){return u.apply(h,P.length?P.concat(O.call(arguments)):arguments)}}var s=0;function c(u){return"_leaflet_id"in u||(u._leaflet_id=++s),u._leaflet_id}function l(u,h,O){var P,R,G,re;return re=function(){P=!1,R&&(G.apply(O,R),R=!1)},G=function(){P?R=arguments:(u.apply(O,arguments),setTimeout(re,h),P=!0)},G}function f(u,h,O){var P=h[1],R=h[0],G=P-R;return u===P&&O?u:((u-R)%G+G)%G+R}function d(){return!1}function p(u,h){if(h===!1)return u;var O=Math.pow(10,h===void 0?6:h);return Math.round(u*O)/O}function v(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function y(u){return v(u).split(/\s+/)}function g(u,h){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var O in h)u.options[O]=h[O];return u.options}function x(u,h,O){var P=[];for(var R in u)P.push(encodeURIComponent(O?R.toUpperCase():R)+"="+encodeURIComponent(u[R]));return(!h||h.indexOf("?")===-1?"?":"&")+P.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function b(u,h){return u.replace(_,function(O,P){var R=h[P];if(R===void 0)throw new Error("No value provided for variable "+O);return typeof R=="function"&&(R=R(h)),R})}var w=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function S(u,h){for(var O=0;O<u.length;O++)if(u[O]===h)return O;return-1}var E="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function C(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var T=0;function A(u){var h=+new Date,O=Math.max(0,16-(h-T));return T=h+O,window.setTimeout(u,O)}var F=window.requestAnimationFrame||C("RequestAnimationFrame")||A,k=window.cancelAnimationFrame||C("CancelAnimationFrame")||C("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function I(u,h,O){if(O&&F===A)u.call(h);else return F.call(window,a(u,h))}function D(u){u&&k.call(window,u)}var q={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:c,throttle:l,wrapNum:f,falseFn:d,formatNum:p,trim:v,splitWords:y,setOptions:g,getParamString:x,template:b,isArray:w,indexOf:S,emptyImageUrl:E,requestFn:F,cancelFn:k,requestAnimFrame:I,cancelAnimFrame:D};function W(){}W.extend=function(u){var h=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},O=h.__super__=this.prototype,P=o(O);P.constructor=h,h.prototype=P;for(var R in this)Object.prototype.hasOwnProperty.call(this,R)&&R!=="prototype"&&R!=="__super__"&&(h[R]=this[R]);return u.statics&&i(h,u.statics),u.includes&&(X(u.includes),i.apply(null,[P].concat(u.includes))),i(P,u),delete P.statics,delete P.includes,P.options&&(P.options=O.options?o(O.options):{},i(P.options,u.options)),P._initHooks=[],P.callInitHooks=function(){if(!this._initHooksCalled){O.callInitHooks&&O.callInitHooks.call(this),this._initHooksCalled=!0;for(var G=0,re=P._initHooks.length;G<re;G++)P._initHooks[G].call(this)}},h},W.include=function(u){var h=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=h,this.mergeOptions(u.options)),this},W.mergeOptions=function(u){return i(this.prototype.options,u),this},W.addInitHook=function(u){var h=Array.prototype.slice.call(arguments,1),O=typeof u=="function"?u:function(){this[u].apply(this,h)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(O),this};function X(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=w(u)?u:[u];for(var h=0;h<u.length;h++)u[h]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Q={on:function(u,h,O){if(typeof u=="object")for(var P in u)this._on(P,u[P],h);else{u=y(u);for(var R=0,G=u.length;R<G;R++)this._on(u[R],h,O)}return this},off:function(u,h,O){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var P in u)this._off(P,u[P],h);else{u=y(u);for(var R=arguments.length===1,G=0,re=u.length;G<re;G++)R?this._off(u[G]):this._off(u[G],h,O)}return this},_on:function(u,h,O,P){if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}if(this._listens(u,h,O)===!1){O===this&&(O=void 0);var R={fn:h,ctx:O};P&&(R.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(R)}},_off:function(u,h,O){var P,R,G;if(this._events&&(P=this._events[u],!!P)){if(arguments.length===1){if(this._firingCount)for(R=0,G=P.length;R<G;R++)P[R].fn=d;delete this._events[u];return}if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}var re=this._listens(u,h,O);if(re!==!1){var ce=P[re];this._firingCount&&(ce.fn=d,this._events[u]=P=P.slice()),P.splice(re,1)}}},fire:function(u,h,O){if(!this.listens(u,O))return this;var P=i({},h,{type:u,target:this,sourceTarget:h&&h.sourceTarget||this});if(this._events){var R=this._events[u];if(R){this._firingCount=this._firingCount+1||1;for(var G=0,re=R.length;G<re;G++){var ce=R[G],de=ce.fn;ce.once&&this.off(u,de,ce.ctx),de.call(ce.ctx||this,P)}this._firingCount--}}return O&&this._propagateEvent(P),this},listens:function(u,h,O,P){typeof u!="string"&&console.warn('"string" type argument expected');var R=h;typeof h!="function"&&(P=!!h,R=void 0,O=void 0);var G=this._events&&this._events[u];if(G&&G.length&&this._listens(u,R,O)!==!1)return!0;if(P){for(var re in this._eventParents)if(this._eventParents[re].listens(u,h,O,P))return!0}return!1},_listens:function(u,h,O){if(!this._events)return!1;var P=this._events[u]||[];if(!h)return!!P.length;O===this&&(O=void 0);for(var R=0,G=P.length;R<G;R++)if(P[R].fn===h&&P[R].ctx===O)return R;return!1},once:function(u,h,O){if(typeof u=="object")for(var P in u)this._on(P,u[P],h,!0);else{u=y(u);for(var R=0,G=u.length;R<G;R++)this._on(u[R],h,O,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[c(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[c(u)],this},_propagateEvent:function(u){for(var h in this._eventParents)this._eventParents[h].fire(u.type,i({layer:u.target,propagatedFrom:u.target},u),!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(u,h,O){this.x=O?Math.round(u):u,this.y=O?Math.round(h):h}var z=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(u){return this.clone()._add(B(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(B(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new Z(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new Z(this.x/u.x,this.y/u.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(u){u=B(u);var h=u.x-this.x,O=u.y-this.y;return Math.sqrt(h*h+O*O)},equals:function(u){return u=B(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=B(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function B(u,h,O){return u instanceof Z?u:w(u)?new Z(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new Z(u.x,u.y):new Z(u,h,O)}function H(u,h){if(u)for(var O=h?[u,h]:u,P=0,R=O.length;P<R;P++)this.extend(O[P])}H.prototype={extend:function(u){var h,O;if(!u)return this;if(u instanceof Z||typeof u[0]=="number"||"x"in u)h=O=B(u);else if(u=ee(u),h=u.min,O=u.max,!h||!O)return this;return!this.min&&!this.max?(this.min=h.clone(),this.max=O.clone()):(this.min.x=Math.min(h.x,this.min.x),this.max.x=Math.max(O.x,this.max.x),this.min.y=Math.min(h.y,this.min.y),this.max.y=Math.max(O.y,this.max.y)),this},getCenter:function(u){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},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(u){var h,O;return typeof u[0]=="number"||u instanceof Z?u=B(u):u=ee(u),u instanceof H?(h=u.min,O=u.max):h=O=u,h.x>=this.min.x&&O.x<=this.max.x&&h.y>=this.min.y&&O.y<=this.max.y},intersects:function(u){u=ee(u);var h=this.min,O=this.max,P=u.min,R=u.max,G=R.x>=h.x&&P.x<=O.x,re=R.y>=h.y&&P.y<=O.y;return G&&re},overlaps:function(u){u=ee(u);var h=this.min,O=this.max,P=u.min,R=u.max,G=R.x>h.x&&P.x<O.x,re=R.y>h.y&&P.y<O.y;return G&&re},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var h=this.min,O=this.max,P=Math.abs(h.x-O.x)*u,R=Math.abs(h.y-O.y)*u;return ee(B(h.x-P,h.y-R),B(O.x+P,O.y+R))},equals:function(u){return u?(u=ee(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function ee(u,h){return!u||u instanceof H?u:new H(u,h)}function K(u,h){if(u)for(var O=h?[u,h]:u,P=0,R=O.length;P<R;P++)this.extend(O[P])}K.prototype={extend:function(u){var h=this._southWest,O=this._northEast,P,R;if(u instanceof ie)P=u,R=u;else if(u instanceof K){if(P=u._southWest,R=u._northEast,!P||!R)return this}else return u?this.extend(ae(u)||te(u)):this;return!h&&!O?(this._southWest=new ie(P.lat,P.lng),this._northEast=new ie(R.lat,R.lng)):(h.lat=Math.min(P.lat,h.lat),h.lng=Math.min(P.lng,h.lng),O.lat=Math.max(R.lat,O.lat),O.lng=Math.max(R.lng,O.lng)),this},pad:function(u){var h=this._southWest,O=this._northEast,P=Math.abs(h.lat-O.lat)*u,R=Math.abs(h.lng-O.lng)*u;return new K(new ie(h.lat-P,h.lng-R),new ie(O.lat+P,O.lng+R))},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(u){typeof u[0]=="number"||u instanceof ie||"lat"in u?u=ae(u):u=te(u);var h=this._southWest,O=this._northEast,P,R;return u instanceof K?(P=u.getSouthWest(),R=u.getNorthEast()):P=R=u,P.lat>=h.lat&&R.lat<=O.lat&&P.lng>=h.lng&&R.lng<=O.lng},intersects:function(u){u=te(u);var h=this._southWest,O=this._northEast,P=u.getSouthWest(),R=u.getNorthEast(),G=R.lat>=h.lat&&P.lat<=O.lat,re=R.lng>=h.lng&&P.lng<=O.lng;return G&&re},overlaps:function(u){u=te(u);var h=this._southWest,O=this._northEast,P=u.getSouthWest(),R=u.getNorthEast(),G=R.lat>h.lat&&P.lat<O.lat,re=R.lng>h.lng&&P.lng<O.lng;return G&&re},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,h){return u?(u=te(u),this._southWest.equals(u.getSouthWest(),h)&&this._northEast.equals(u.getNorthEast(),h)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function te(u,h){return u instanceof K?u:new K(u,h)}function ie(u,h,O){if(isNaN(u)||isNaN(h))throw new Error("Invalid LatLng object: ("+u+", "+h+")");this.lat=+u,this.lng=+h,O!==void 0&&(this.alt=+O)}ie.prototype={equals:function(u,h){if(!u)return!1;u=ae(u);var O=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return O<=(h===void 0?1e-9:h)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return j.distance(this,ae(u))},wrap:function(){return j.wrapLatLng(this)},toBounds:function(u){var h=180*u/40075017,O=h/Math.cos(Math.PI/180*this.lat);return te([this.lat-h,this.lng-O],[this.lat+h,this.lng+O])},clone:function(){return new ie(this.lat,this.lng,this.alt)}};function ae(u,h,O){return u instanceof ie?u:w(u)&&typeof u[0]!="object"?u.length===3?new ie(u[0],u[1],u[2]):u.length===2?new ie(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new ie(u.lat,"lng"in u?u.lng:u.lon,u.alt):h===void 0?null:new ie(u,h,O)}var fe={latLngToPoint:function(u,h){var O=this.projection.project(u),P=this.scale(h);return this.transformation._transform(O,P)},pointToLatLng:function(u,h){var O=this.scale(h),P=this.transformation.untransform(u,O);return this.projection.unproject(P)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var h=this.projection.bounds,O=this.scale(u),P=this.transformation.transform(h.min,O),R=this.transformation.transform(h.max,O);return new H(P,R)},infinite:!1,wrapLatLng:function(u){var h=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,O=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,P=u.alt;return new ie(O,h,P)},wrapLatLngBounds:function(u){var h=u.getCenter(),O=this.wrapLatLng(h),P=h.lat-O.lat,R=h.lng-O.lng;if(P===0&&R===0)return u;var G=u.getSouthWest(),re=u.getNorthEast(),ce=new ie(G.lat-P,G.lng-R),de=new ie(re.lat-P,re.lng-R);return new K(ce,de)}},j=i({},fe,{wrapLng:[-180,180],R:6371e3,distance:function(u,h){var O=Math.PI/180,P=u.lat*O,R=h.lat*O,G=Math.sin((h.lat-u.lat)*O/2),re=Math.sin((h.lng-u.lng)*O/2),ce=G*G+Math.cos(P)*Math.cos(R)*re*re,de=2*Math.atan2(Math.sqrt(ce),Math.sqrt(1-ce));return this.R*de}}),N=6378137,U={R:N,MAX_LATITUDE:85.0511287798,project:function(u){var h=Math.PI/180,O=this.MAX_LATITUDE,P=Math.max(Math.min(O,u.lat),-O),R=Math.sin(P*h);return new Z(this.R*u.lng*h,this.R*Math.log((1+R)/(1-R))/2)},unproject:function(u){var h=180/Math.PI;return new ie((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*h,u.x*h/this.R)},bounds:function(){var u=N*Math.PI;return new H([-u,-u],[u,u])}()};function J(u,h,O,P){if(w(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=h,this._c=O,this._d=P}J.prototype={transform:function(u,h){return this._transform(u.clone(),h)},_transform:function(u,h){return h=h||1,u.x=h*(this._a*u.x+this._b),u.y=h*(this._c*u.y+this._d),u},untransform:function(u,h){return h=h||1,new Z((u.x/h-this._b)/this._a,(u.y/h-this._d)/this._c)}};function Y(u,h,O,P){return new J(u,h,O,P)}var oe=i({},j,{code:"EPSG:3857",projection:U,transformation:function(){var u=.5/(Math.PI*U.R);return Y(u,.5,-u,.5)}()}),he=i({},oe,{code:"EPSG:900913"});function Se(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function se(u,h){var O="",P,R,G,re,ce,de;for(P=0,G=u.length;P<G;P++){for(ce=u[P],R=0,re=ce.length;R<re;R++)de=ce[R],O+=(R?"L":"M")+de.x+" "+de.y;O+=h?Fe.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),Pe=Cn("webkit"),Ae=Cn("android"),le=Cn("android 2")||Cn("android 3"),ue=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ye=Ae&&Cn("Google")&&ue<537&&!("AudioNode"in window),ge=!!window.opera,we=!Te&&Cn("chrome"),ke=Cn("gecko")&&!Pe&&!ge&&!me,Me=!we&&Cn("safari"),Qe=Cn("phantom"),et="OTransition"in pe,Ke=navigator.platform.indexOf("Win")===0,Ht=me&&"transition"in pe,Dt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!le,dn="MozPerspective"in pe,zn=!window.L_DISABLE_3D&&(Ht||Dt||dn)&&!et&&!Qe,Vi=typeof orientation<"u"||Cn("mobile"),On=Vi&&Pe,ef=Vi&&Dt,Wi=!window.PointerEvent&&window.MSPointerEvent,Ap=!!(window.PointerEvent||Wi),kp="ontouchstart"in window||!!window.TouchEvent,Np=!window.L_NO_TOUCH&&(kp||Ap),tf=Vi&&ge,gs=Vi&&ke,Jt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Kt=function(){var u=!1;try{var h=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",d,h),window.removeEventListener("testPassiveEventSupport",d,h)}catch{}return u}(),Vn=function(){return!!document.createElement("canvas").getContext}(),Sn=!!(document.createElementNS&&Se("svg").createSVGRect),En=!!Sn&&function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),on=!Sn&&function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var h=u.firstChild;return h.style.behavior="url(#default#VML)",h&&typeof h.adj=="object"}catch{return!1}}(),vi=navigator.platform.indexOf("Mac")===0,gi=navigator.platform.indexOf("Linux")===0;function Cn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var Fe={ie:me,ielt9:xe,edge:Te,webkit:Pe,android:Ae,android23:le,androidStock:ye,opera:ge,chrome:we,gecko:ke,safari:Me,phantom:Qe,opera12:et,win:Ke,ie3d:Ht,webkit3d:Dt,gecko3d:dn,any3d:zn,mobile:Vi,mobileWebkit:On,mobileWebkit3d:ef,msPointer:Wi,pointer:Ap,touch:Np,touchNative:kp,mobileOpera:tf,mobileGecko:gs,retina:Jt,passiveEvents:Kt,canvas:Vn,svg:Sn,vml:on,inlineSvg:En,mac:vi,linux:gi},TP=Fe.msPointer?"MSPointerDown":"pointerdown",jP=Fe.msPointer?"MSPointerMove":"pointermove",AP=Fe.msPointer?"MSPointerUp":"pointerup",kP=Fe.msPointer?"MSPointerCancel":"pointercancel",pb={touchstart:TP,touchmove:jP,touchend:AP,touchcancel:kP},NP={touchstart:l9,touchmove:Mp,touchend:Mp,touchcancel:Mp},Nl={},MP=!1;function r9(u,h,O){return h==="touchstart"&&s9(),NP[h]?(O=NP[h].bind(this,O),u.addEventListener(pb[h],O,!1),O):(console.warn("wrong event specified:",h),d)}function i9(u,h,O){if(!pb[h]){console.warn("wrong event specified:",h);return}u.removeEventListener(pb[h],O,!1)}function o9(u){Nl[u.pointerId]=u}function a9(u){Nl[u.pointerId]&&(Nl[u.pointerId]=u)}function LP(u){delete Nl[u.pointerId]}function s9(){MP||(document.addEventListener(TP,o9,!0),document.addEventListener(jP,a9,!0),document.addEventListener(AP,LP,!0),document.addEventListener(kP,LP,!0),MP=!0)}function Mp(u,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var O in Nl)h.touches.push(Nl[O]);h.changedTouches=[h],u(h)}}function l9(u,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&Pn(h),Mp(u,h)}function c9(u){var h={},O,P;for(P in u)O=u[P],h[P]=O&&O.bind?O.bind(u):O;return u=h,h.type="dblclick",h.detail=2,h.isTrusted=!1,h._simulated=!0,h}var u9=200;function f9(u,h){u.addEventListener("dblclick",h);var O=0,P;function R(G){if(G.detail!==1){P=G.detail;return}if(!(G.pointerType==="mouse"||G.sourceCapabilities&&!G.sourceCapabilities.firesTouchEvents)){var re=FP(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 ce=Date.now();ce-O<=u9?(P++,P===2&&h(c9(G))):P=1,O=ce}}}return u.addEventListener("click",R),{dblclick:h,simDblclick:R}}function d9(u,h){u.removeEventListener("dblclick",h.dblclick),u.removeEventListener("click",h.simDblclick)}var mb=$p(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nf=$p(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),RP=nf==="webkitTransition"||nf==="OTransition"?nf+"End":"transitionend";function $P(u){return typeof u=="string"?document.getElementById(u):u}function rf(u,h){var O=u.style[h]||u.currentStyle&&u.currentStyle[h];if((!O||O==="auto")&&document.defaultView){var P=document.defaultView.getComputedStyle(u,null);O=P?P[h]:null}return O==="auto"?null:O}function ut(u,h,O){var P=document.createElement(u);return P.className=h||"",O&&O.appendChild(P),P}function Ft(u){var h=u.parentNode;h&&h.removeChild(u)}function Lp(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function Ml(u){var h=u.parentNode;h&&h.lastChild!==u&&h.appendChild(u)}function Ll(u){var h=u.parentNode;h&&h.firstChild!==u&&h.insertBefore(u,h.firstChild)}function vb(u,h){if(u.classList!==void 0)return u.classList.contains(h);var O=Rp(u);return O.length>0&&new RegExp("(^|\\s)"+h+"(\\s|$)").test(O)}function Xe(u,h){if(u.classList!==void 0)for(var O=y(h),P=0,R=O.length;P<R;P++)u.classList.add(O[P]);else if(!vb(u,h)){var G=Rp(u);gb(u,(G?G+" ":"")+h)}}function Yt(u,h){u.classList!==void 0?u.classList.remove(h):gb(u,v((" "+Rp(u)+" ").replace(" "+h+" "," ")))}function gb(u,h){u.className.baseVal===void 0?u.className=h:u.className.baseVal=h}function Rp(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function Wr(u,h){"opacity"in u.style?u.style.opacity=h:"filter"in u.style&&h9(u,h)}function h9(u,h){var O=!1,P="DXImageTransform.Microsoft.Alpha";try{O=u.filters.item(P)}catch{if(h===1)return}h=Math.round(h*100),O?(O.Enabled=h!==100,O.Opacity=h):u.style.filter+=" progid:"+P+"(opacity="+h+")"}function $p(u){for(var h=document.documentElement.style,O=0;O<u.length;O++)if(u[O]in h)return u[O];return!1}function ys(u,h,O){var P=h||new Z(0,0);u.style[mb]=(Fe.ie3d?"translate("+P.x+"px,"+P.y+"px)":"translate3d("+P.x+"px,"+P.y+"px,0)")+(O?" scale("+O+")":"")}function en(u,h){u._leaflet_pos=h,Fe.any3d?ys(u,h):(u.style.left=h.x+"px",u.style.top=h.y+"px")}function bs(u){return u._leaflet_pos||new Z(0,0)}var of,af,yb;if("onselectstart"in document)of=function(){Ye(window,"selectstart",Pn)},af=function(){_t(window,"selectstart",Pn)};else{var sf=$p(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);of=function(){if(sf){var u=document.documentElement.style;yb=u[sf],u[sf]="none"}},af=function(){sf&&(document.documentElement.style[sf]=yb,yb=void 0)}}function bb(){Ye(window,"dragstart",Pn)}function _b(){_t(window,"dragstart",Pn)}var Ip,xb;function wb(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Dp(),Ip=u,xb=u.style.outlineStyle,u.style.outlineStyle="none",Ye(window,"keydown",Dp))}function Dp(){Ip&&(Ip.style.outlineStyle=xb,Ip=void 0,xb=void 0,_t(window,"keydown",Dp))}function IP(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function Ob(u){var h=u.getBoundingClientRect();return{x:h.width/u.offsetWidth||1,y:h.height/u.offsetHeight||1,boundingClientRect:h}}var p9={__proto__:null,TRANSFORM:mb,TRANSITION:nf,TRANSITION_END:RP,get:$P,getStyle:rf,create:ut,remove:Ft,empty:Lp,toFront:Ml,toBack:Ll,hasClass:vb,addClass:Xe,removeClass:Yt,setClass:gb,getClass:Rp,setOpacity:Wr,testProp:$p,setTransform:ys,setPosition:en,getPosition:bs,get disableTextSelection(){return of},get enableTextSelection(){return af},disableImageDrag:bb,enableImageDrag:_b,preventOutline:wb,restoreOutline:Dp,getSizedParentNode:IP,getScale:Ob};function Ye(u,h,O,P){if(h&&typeof h=="object")for(var R in h)Eb(u,R,h[R],O);else{h=y(h);for(var G=0,re=h.length;G<re;G++)Eb(u,h[G],O,P)}return this}var Hi="_leaflet_events";function _t(u,h,O,P){if(arguments.length===1)DP(u),delete u[Hi];else if(h&&typeof h=="object")for(var R in h)Cb(u,R,h[R],O);else if(h=y(h),arguments.length===2)DP(u,function(ce){return S(h,ce)!==-1});else for(var G=0,re=h.length;G<re;G++)Cb(u,h[G],O,P);return this}function DP(u,h){for(var O in u[Hi]){var P=O.split(/\d/)[0];(!h||h(P))&&Cb(u,P,null,null,O)}}var Sb={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Eb(u,h,O,P){var R=h+c(O)+(P?"_"+c(P):"");if(u[Hi]&&u[Hi][R])return this;var G=function(ce){return O.call(P||u,ce||window.event)},re=G;!Fe.touchNative&&Fe.pointer&&h.indexOf("touch")===0?G=r9(u,h,G):Fe.touch&&h==="dblclick"?G=f9(u,G):"addEventListener"in u?h==="touchstart"||h==="touchmove"||h==="wheel"||h==="mousewheel"?u.addEventListener(Sb[h]||h,G,Fe.passiveEvents?{passive:!1}:!1):h==="mouseenter"||h==="mouseleave"?(G=function(ce){ce=ce||window.event,Tb(u,ce)&&re(ce)},u.addEventListener(Sb[h],G,!1)):u.addEventListener(h,re,!1):u.attachEvent("on"+h,G),u[Hi]=u[Hi]||{},u[Hi][R]=G}function Cb(u,h,O,P,R){R=R||h+c(O)+(P?"_"+c(P):"");var G=u[Hi]&&u[Hi][R];if(!G)return this;!Fe.touchNative&&Fe.pointer&&h.indexOf("touch")===0?i9(u,h,G):Fe.touch&&h==="dblclick"?d9(u,G):"removeEventListener"in u?u.removeEventListener(Sb[h]||h,G,!1):u.detachEvent("on"+h,G),u[Hi][R]=null}function _s(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function Pb(u){return Eb(u,"wheel",_s),this}function lf(u){return Ye(u,"mousedown touchstart dblclick contextmenu",_s),u._leaflet_disable_click=!0,this}function Pn(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function xs(u){return Pn(u),_s(u),this}function FP(u){if(u.composedPath)return u.composedPath();for(var h=[],O=u.target;O;)h.push(O),O=O.parentNode;return h}function BP(u,h){if(!h)return new Z(u.clientX,u.clientY);var O=Ob(h),P=O.boundingClientRect;return new Z((u.clientX-P.left)/O.x-h.clientLeft,(u.clientY-P.top)/O.y-h.clientTop)}var m9=Fe.linux&&Fe.chrome?window.devicePixelRatio:Fe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function UP(u){return Fe.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/m9:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function Tb(u,h){var O=h.relatedTarget;if(!O)return!0;try{for(;O&&O!==u;)O=O.parentNode}catch{return!1}return O!==u}var v9={__proto__:null,on:Ye,off:_t,stopPropagation:_s,disableScrollPropagation:Pb,disableClickPropagation:lf,preventDefault:Pn,stop:xs,getPropagationPath:FP,getMousePosition:BP,getWheelDelta:UP,isExternalTarget:Tb,addListener:Ye,removeListener:_t},zP=ne.extend({run:function(u,h,O,P){this.stop(),this._el=u,this._inProgress=!0,this._duration=O||.25,this._easeOutPower=1/Math.max(P||.5,.2),this._startPos=bs(u),this._offset=h.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=I(this._animate,this),this._step()},_step:function(u){var h=+new Date-this._startTime,O=this._duration*1e3;h<O?this._runFrame(this._easeOut(h/O),u):(this._runFrame(1),this._complete())},_runFrame:function(u,h){var O=this._startPos.add(this._offset.multiplyBy(u));h&&O._round(),en(this._el,O),this.fire("step")},_complete:function(){D(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),st=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(u,h){h=g(this,h),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),h.maxBounds&&this.setMaxBounds(h.maxBounds),h.zoom!==void 0&&(this._zoom=this._limitZoom(h.zoom)),h.center&&h.zoom!==void 0&&this.setView(ae(h.center),h.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=nf&&Fe.any3d&&!Fe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ye(this._proxy,RP,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,h,O){if(h=h===void 0?this._zoom:this._limitZoom(h),u=this._limitCenter(ae(u),h,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 P=this._zoom!==h?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,h,O.zoom):this._tryAnimatedPan(u,O.pan);if(P)return clearTimeout(this._sizeTimer),this}return this._resetView(u,h,O.pan&&O.pan.noMoveStart),this},setZoom:function(u,h){return this._loaded?this.setView(this.getCenter(),u,{zoom:h}):(this._zoom=u,this)},zoomIn:function(u,h){return u=u||(Fe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,h)},zoomOut:function(u,h){return u=u||(Fe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,h)},setZoomAround:function(u,h,O){var P=this.getZoomScale(h),R=this.getSize().divideBy(2),G=u instanceof Z?u:this.latLngToContainerPoint(u),re=G.subtract(R).multiplyBy(1-1/P),ce=this.containerPointToLatLng(R.add(re));return this.setView(ce,h,{zoom:O})},_getBoundsCenterZoom:function(u,h){h=h||{},u=u.getBounds?u.getBounds():te(u);var O=B(h.paddingTopLeft||h.padding||[0,0]),P=B(h.paddingBottomRight||h.padding||[0,0]),R=this.getBoundsZoom(u,!1,O.add(P));if(R=typeof h.maxZoom=="number"?Math.min(h.maxZoom,R):R,R===1/0)return{center:u.getCenter(),zoom:R};var G=P.subtract(O).divideBy(2),re=this.project(u.getSouthWest(),R),ce=this.project(u.getNorthEast(),R),de=this.unproject(re.add(ce).divideBy(2).add(G),R);return{center:de,zoom:R}},fitBounds:function(u,h){if(u=te(u),!u.isValid())throw new Error("Bounds are not valid.");var O=this._getBoundsCenterZoom(u,h);return this.setView(O.center,O.zoom,h)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,h){return this.setView(u,this._zoom,{pan:h})},panBy:function(u,h){if(u=B(u).round(),h=h||{},!u.x&&!u.y)return this.fire("moveend");if(h.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new zP,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),h.noMoveStart||this.fire("movestart"),h.animate!==!1){Xe(this._mapPane,"leaflet-pan-anim");var O=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,O,h.duration||.25,h.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,h,O){if(O=O||{},O.animate===!1||!Fe.any3d)return this.setView(u,h,O);this._stop();var P=this.project(this.getCenter()),R=this.project(u),G=this.getSize(),re=this._zoom;u=ae(u),h=h===void 0?re:h;var ce=Math.max(G.x,G.y),de=ce*this.getZoomScale(re,h),_e=R.distanceTo(P)||1,Le=1.42,ze=Le*Le;function Je(tn){var Zp=tn?-1:1,iz=tn?de:ce,oz=de*de-ce*ce+Zp*ze*ze*_e*_e,az=2*iz*ze*_e,Fb=oz/az,wT=Math.sqrt(Fb*Fb+1)-Fb,sz=wT<1e-9?-18:Math.log(wT);return sz}function Wn(tn){return(Math.exp(tn)-Math.exp(-tn))/2}function hn(tn){return(Math.exp(tn)+Math.exp(-tn))/2}function Gr(tn){return Wn(tn)/hn(tn)}var ar=Je(0);function Bl(tn){return ce*(hn(ar)/hn(ar+Le*tn))}function ez(tn){return ce*(hn(ar)*Gr(ar+Le*tn)-Wn(ar))/ze}function tz(tn){return 1-Math.pow(1-tn,1.5)}var nz=Date.now(),_T=(Je(1)-ar)/Le,rz=O.duration?1e3*O.duration:1e3*_T*.8;function xT(){var tn=(Date.now()-nz)/rz,Zp=tz(tn)*_T;tn<=1?(this._flyToFrame=I(xT,this),this._move(this.unproject(P.add(R.subtract(P).multiplyBy(ez(Zp)/_e)),re),this.getScaleZoom(ce/Bl(Zp),re),{flyTo:!0})):this._move(u,h)._moveEnd(!0)}return this._moveStart(!0,O.noMoveStart),xT.call(this),this},flyToBounds:function(u,h){var O=this._getBoundsCenterZoom(u,h);return this.flyTo(O.center,O.zoom,h)},setMaxBounds:function(u){return u=te(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var h=this.options.minZoom;return this.options.minZoom=u,this._loaded&&h!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var h=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&h!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,h){this._enforcingBounds=!0;var O=this.getCenter(),P=this._limitCenter(O,this._zoom,te(u));return O.equals(P)||this.panTo(P,h),this._enforcingBounds=!1,this},panInside:function(u,h){h=h||{};var O=B(h.paddingTopLeft||h.padding||[0,0]),P=B(h.paddingBottomRight||h.padding||[0,0]),R=this.project(this.getCenter()),G=this.project(u),re=this.getPixelBounds(),ce=ee([re.min.add(O),re.max.subtract(P)]),de=ce.getSize();if(!ce.contains(G)){this._enforcingBounds=!0;var _e=G.subtract(ce.getCenter()),Le=ce.extend(G).getSize().subtract(de);R.x+=_e.x<0?-Le.x:Le.x,R.y+=_e.y<0?-Le.y:Le.y,this.panTo(this.unproject(R),h),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},u===!0?{animate:!0}:u);var h=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var O=this.getSize(),P=h.divideBy(2).round(),R=O.divideBy(2).round(),G=P.subtract(R);return!G.x&&!G.y?this:(u.animate&&u.pan?this.panBy(G):(u.pan&&this._rawPanBy(G),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:h,newSize:O}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var h=a(this._handleGeolocationResponse,this),O=a(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(h,O,u):navigator.geolocation.getCurrentPosition(h,O,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var h=u.code,O=u.message||(h===1?"permission denied":h===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:h,message:"Geolocation error: "+O+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var h=u.coords.latitude,O=u.coords.longitude,P=new ie(h,O),R=P.toBounds(u.coords.accuracy*2),G=this._locateOptions;if(G.setView){var re=this.getBoundsZoom(R);this.setView(P,G.maxZoom?Math.min(re,G.maxZoom):re)}var ce={latlng:P,bounds:R,timestamp:u.timestamp};for(var de in u.coords)typeof u.coords[de]=="number"&&(ce[de]=u.coords[de]);this.fire("locationfound",ce)}},addHandler:function(u,h){if(!h)return this;var O=this[u]=new h(this);return this._handlers.push(O),this.options[u]&&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(),Ft(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(D(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Ft(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,h){var O="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),P=ut("div",O,h||this._mapPane);return u&&(this._panes[u]=P),P},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),h=this.unproject(u.getBottomLeft()),O=this.unproject(u.getTopRight());return new K(h,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(u,h,O){u=te(u),O=B(O||[0,0]);var P=this.getZoom()||0,R=this.getMinZoom(),G=this.getMaxZoom(),re=u.getNorthWest(),ce=u.getSouthEast(),de=this.getSize().subtract(O),_e=ee(this.project(ce,P),this.project(re,P)).getSize(),Le=Fe.any3d?this.options.zoomSnap:1,ze=de.x/_e.x,Je=de.y/_e.y,Wn=h?Math.max(ze,Je):Math.min(ze,Je);return P=this.getScaleZoom(Wn,P),Le&&(P=Math.round(P/(Le/100))*(Le/100),P=h?Math.ceil(P/Le)*Le:Math.floor(P/Le)*Le),Math.max(R,Math.min(G,P))},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(u,h){var O=this._getTopLeftPoint(u,h);return new H(O,O.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,h){var O=this.options.crs;return h=h===void 0?this._zoom:h,O.scale(u)/O.scale(h)},getScaleZoom:function(u,h){var O=this.options.crs;h=h===void 0?this._zoom:h;var P=O.zoom(u*O.scale(h));return isNaN(P)?1/0:P},project:function(u,h){return h=h===void 0?this._zoom:h,this.options.crs.latLngToPoint(ae(u),h)},unproject:function(u,h){return h=h===void 0?this._zoom:h,this.options.crs.pointToLatLng(B(u),h)},layerPointToLatLng:function(u){var h=B(u).add(this.getPixelOrigin());return this.unproject(h)},latLngToLayerPoint:function(u){var h=this.project(ae(u))._round();return h._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(ae(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(te(u))},distance:function(u,h){return this.options.crs.distance(ae(u),ae(h))},containerPointToLayerPoint:function(u){return B(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return B(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var h=this.containerPointToLayerPoint(B(u));return this.layerPointToLatLng(h)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ae(u)))},mouseEventToContainerPoint:function(u){return BP(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var h=this._container=$P(u);if(h){if(h._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ye(h,"scroll",this._onScroll,this),this._containerId=c(h)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&Fe.any3d,Xe(u,"leaflet-container"+(Fe.touch?" leaflet-touch":"")+(Fe.retina?" leaflet-retina":"")+(Fe.ielt9?" leaflet-oldie":"")+(Fe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var h=rf(u,"position");h!=="absolute"&&h!=="relative"&&h!=="fixed"&&h!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),en(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||(Xe(u.markerPane,"leaflet-zoom-hide"),Xe(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,h,O){en(this._mapPane,new Z(0,0));var P=!this._loaded;this._loaded=!0,h=this._limitZoom(h),this.fire("viewprereset");var R=this._zoom!==h;this._moveStart(R,O)._move(u,h)._moveEnd(R),this.fire("viewreset"),P&&this.fire("load")},_moveStart:function(u,h){return u&&this.fire("zoomstart"),h||this.fire("movestart"),this},_move:function(u,h,O,P){h===void 0&&(h=this._zoom);var R=this._zoom!==h;return this._zoom=h,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),P?O&&O.pinch&&this.fire("zoom",O):((R||O&&O.pinch)&&this.fire("zoom",O),this.fire("move",O)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return D(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){en(this._mapPane,this._getMapPanePos().subtract(u))},_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(u){this._targets={},this._targets[c(this._container)]=this;var h=u?_t:Ye;h(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&h(window,"resize",this._onResize,this),Fe.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){D(this._resizeRequest),this._resizeRequest=I(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,h){for(var O=[],P,R=h==="mouseout"||h==="mouseover",G=u.target||u.srcElement,re=!1;G;){if(P=this._targets[c(G)],P&&(h==="click"||h==="preclick")&&this._draggableMoved(P)){re=!0;break}if(P&&P.listens(h,!0)&&(R&&!Tb(G,u)||(O.push(P),R))||G===this._container)break;G=G.parentNode}return!O.length&&!re&&!R&&this.listens(h,!0)&&(O=[this]),O},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var h=u.target||u.srcElement;if(!(!this._loaded||h._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(h))){var O=u.type;O==="mousedown"&&wb(h),this._fireDOMEvent(u,O)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,h,O){if(u.type==="click"){var P=i({},u);P.type="preclick",this._fireDOMEvent(P,P.type,O)}var R=this._findEventTargets(u,h);if(O){for(var G=[],re=0;re<O.length;re++)O[re].listens(h,!0)&&G.push(O[re]);R=G.concat(R)}if(R.length){h==="contextmenu"&&Pn(u);var ce=R[0],de={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var _e=ce.getLatLng&&(!ce._radius||ce._radius<=10);de.containerPoint=_e?this.latLngToContainerPoint(ce.getLatLng()):this.mouseEventToContainerPoint(u),de.layerPoint=this.containerPointToLayerPoint(de.containerPoint),de.latlng=_e?ce.getLatLng():this.layerPointToLatLng(de.layerPoint)}for(re=0;re<R.length;re++)if(R[re].fire(h,de,!0),de.originalEvent._stopped||R[re].options.bubblingMouseEvents===!1&&S(this._mouseEvents,h)!==-1)return}},_draggableMoved:function(u){return u=u.dragging&&u.dragging.enabled()?u:this,u.dragging&&u.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var u=0,h=this._handlers.length;u<h;u++)this._handlers[u].disable()},whenReady:function(u,h){return this._loaded?u.call(h||this,{target:this}):this.on("load",u,h),this},_getMapPanePos:function(){return bs(this._mapPane)||new Z(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,h){var O=u&&h!==void 0?this._getNewPixelOrigin(u,h):this.getPixelOrigin();return O.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,h){var O=this.getSize()._divideBy(2);return this.project(u,h)._subtract(O)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,h,O){var P=this._getNewPixelOrigin(O,h);return this.project(u,h)._subtract(P)},_latLngBoundsToNewLayerBounds:function(u,h,O){var P=this._getNewPixelOrigin(O,h);return ee([this.project(u.getSouthWest(),h)._subtract(P),this.project(u.getNorthWest(),h)._subtract(P),this.project(u.getSouthEast(),h)._subtract(P),this.project(u.getNorthEast(),h)._subtract(P)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,h,O){if(!O)return u;var P=this.project(u,h),R=this.getSize().divideBy(2),G=new H(P.subtract(R),P.add(R)),re=this._getBoundsOffset(G,O,h);return Math.abs(re.x)<=1&&Math.abs(re.y)<=1?u:this.unproject(P.add(re),h)},_limitOffset:function(u,h){if(!h)return u;var O=this.getPixelBounds(),P=new H(O.min.add(u),O.max.add(u));return u.add(this._getBoundsOffset(P,h))},_getBoundsOffset:function(u,h,O){var P=ee(this.project(h.getNorthEast(),O),this.project(h.getSouthWest(),O)),R=P.min.subtract(u.min),G=P.max.subtract(u.max),re=this._rebound(R.x,-G.x),ce=this._rebound(R.y,-G.y);return new Z(re,ce)},_rebound:function(u,h){return u+h>0?Math.round(u-h)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(h))},_limitZoom:function(u){var h=this.getMinZoom(),O=this.getMaxZoom(),P=Fe.any3d?this.options.zoomSnap:1;return P&&(u=Math.round(u/P)*P),Math.max(h,Math.min(O,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,h){var O=this._getCenterOffset(u)._trunc();return(h&&h.animate)!==!0&&!this.getSize().contains(O)?!1:(this.panBy(O,h),!0)},_createAnimProxy:function(){var u=this._proxy=ut("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(h){var O=mb,P=this._proxy.style[O];ys(this._proxy,this.project(h.center,h.zoom),this.getZoomScale(h.zoom,1)),P===this._proxy.style[O]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ft(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),h=this.getZoom();ys(this._proxy,this.project(u,h),this.getZoomScale(h,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,h,O){if(this._animatingZoom)return!0;if(O=O||{},!this._zoomAnimated||O.animate===!1||this._nothingToAnimate()||Math.abs(h-this._zoom)>this.options.zoomAnimationThreshold)return!1;var P=this.getZoomScale(h),R=this._getCenterOffset(u)._divideBy(1-1/P);return O.animate!==!0&&!this.getSize().contains(R)?!1:(I(function(){this._moveStart(!0,O.noMoveStart||!1)._animateZoom(u,h,!0)},this),!0)},_animateZoom:function(u,h,O,P){this._mapPane&&(O&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=h,Xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:h,noUpdate:P}),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&&Yt(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 g9(u,h){return new st(u,h)}var yi=W.extend({options:{position:"topright"},initialize:function(u){g(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var h=this._map;return h&&h.removeControl(this),this.options.position=u,h&&h.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var h=this._container=this.onAdd(u),O=this.getPosition(),P=u._controlCorners[O];return Xe(h,"leaflet-control"),O.indexOf("bottom")!==-1?P.insertBefore(h,P.firstChild):P.appendChild(h),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ft(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),cf=function(u){return new yi(u)};st.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},h="leaflet-",O=this._controlContainer=ut("div",h+"control-container",this._container);function P(R,G){var re=h+R+" "+h+G;u[R+G]=ut("div",re,O)}P("top","left"),P("top","right"),P("bottom","left"),P("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Ft(this._controlCorners[u]);Ft(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var VP=yi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,h,O,P){return O<P?-1:P<O?1:0}},initialize:function(u,h,O){g(this,O),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var P in u)this._addLayer(u[P],P);for(P in h)this._addLayer(h[P],P,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var h=0;h<this._layers.length;h++)this._layers[h].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return yi.prototype.addTo.call(this,u),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(u,h){return this._addLayer(u,h),this._map?this._update():this},addOverlay:function(u,h){return this._addLayer(u,h,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var h=this._getLayer(c(u));return h&&this._layers.splice(this._layers.indexOf(h),1),this._map?this._update():this},expand:function(){Xe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var u=this._map.getSize().y-(this._container.offsetTop+50);return u<this._section.clientHeight?(Xe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):Yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",h=this._container=ut("div",u),O=this.options.collapsed;h.setAttribute("aria-haspopup",!0),lf(h),Pb(h);var P=this._section=ut("section",u+"-list");O&&(this._map.on("click",this.collapse,this),Ye(h,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var R=this._layersLink=ut("a",u+"-toggle",h);R.href="#",R.title="Layers",R.setAttribute("role","button"),Ye(R,{keydown:function(G){G.keyCode===13&&this._expandSafely()},click:function(G){Pn(G),this._expandSafely()}},this),O||this.expand(),this._baseLayersList=ut("div",u+"-base",P),this._separator=ut("div",u+"-separator",P),this._overlaysList=ut("div",u+"-overlays",P),h.appendChild(P)},_getLayer:function(u){for(var h=0;h<this._layers.length;h++)if(this._layers[h]&&c(this._layers[h].layer)===u)return this._layers[h]},_addLayer:function(u,h,O){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:h,overlay:O}),this.options.sortLayers&&this._layers.sort(a(function(P,R){return this.options.sortFunction(P.layer,R.layer,P.name,R.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Lp(this._baseLayersList),Lp(this._overlaysList),this._layerControlInputs=[];var u,h,O,P,R=0;for(O=0;O<this._layers.length;O++)P=this._layers[O],this._addItem(P),h=h||P.overlay,u=u||!P.overlay,R+=P.overlay?0:1;return this.options.hideSingleBase&&(u=u&&R>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=h&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var h=this._getLayer(c(u.target)),O=h.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;O&&this._map.fire(O,h)},_createRadioElement:function(u,h){var O='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(h?' checked="checked"':"")+"/>",P=document.createElement("div");return P.innerHTML=O,P.firstChild},_addItem:function(u){var h=document.createElement("label"),O=this._map.hasLayer(u.layer),P;u.overlay?(P=document.createElement("input"),P.type="checkbox",P.className="leaflet-control-layers-selector",P.defaultChecked=O):P=this._createRadioElement("leaflet-base-layers_"+c(this),O),this._layerControlInputs.push(P),P.layerId=c(u.layer),Ye(P,"click",this._onInputClick,this);var R=document.createElement("span");R.innerHTML=" "+u.name;var G=document.createElement("span");h.appendChild(G),G.appendChild(P),G.appendChild(R);var re=u.overlay?this._overlaysList:this._baseLayersList;return re.appendChild(h),this._checkDisabledLayers(),h},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,h,O,P=[],R=[];this._handlingClick=!0;for(var G=u.length-1;G>=0;G--)h=u[G],O=this._getLayer(h.layerId).layer,h.checked?P.push(O):h.checked||R.push(O);for(G=0;G<R.length;G++)this._map.hasLayer(R[G])&&this._map.removeLayer(R[G]);for(G=0;G<P.length;G++)this._map.hasLayer(P[G])||this._map.addLayer(P[G]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,h,O,P=this._map.getZoom(),R=u.length-1;R>=0;R--)h=u[R],O=this._getLayer(h.layerId).layer,h.disabled=O.options.minZoom!==void 0&&P<O.options.minZoom||O.options.maxZoom!==void 0&&P>O.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,Ye(u,"click",Pn),this.expand();var h=this;setTimeout(function(){_t(u,"click",Pn),h._preventClick=!1})}}),y9=function(u,h,O){return new VP(u,h,O)},jb=yi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var h="leaflet-control-zoom",O=ut("div",h+" leaflet-bar"),P=this.options;return this._zoomInButton=this._createButton(P.zoomInText,P.zoomInTitle,h+"-in",O,this._zoomIn),this._zoomOutButton=this._createButton(P.zoomOutText,P.zoomOutTitle,h+"-out",O,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),O},onRemove:function(u){u.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(u){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(u.shiftKey?3:1))},_zoomOut:function(u){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,h,O,P,R){var G=ut("a",O,P);return G.innerHTML=u,G.href="#",G.title=h,G.setAttribute("role","button"),G.setAttribute("aria-label",h),lf(G),Ye(G,"click",xs),Ye(G,"click",R,this),Ye(G,"click",this._refocusOnMap,this),G},_updateDisabled:function(){var u=this._map,h="leaflet-disabled";Yt(this._zoomInButton,h),Yt(this._zoomOutButton,h),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Xe(this._zoomOutButton,h),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Xe(this._zoomInButton,h),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new jb,this.addControl(this.zoomControl))});var b9=function(u){return new jb(u)},WP=yi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var h="leaflet-control-scale",O=ut("div",h),P=this.options;return this._addScales(P,h+"-line",O),u.on(P.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),O},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,h,O){u.metric&&(this._mScale=ut("div",h,O)),u.imperial&&(this._iScale=ut("div",h,O))},_update:function(){var u=this._map,h=u.getSize().y/2,O=u.distance(u.containerPointToLatLng([0,h]),u.containerPointToLatLng([this.options.maxWidth,h]));this._updateScales(O)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var h=this._getRoundNum(u),O=h<1e3?h+" m":h/1e3+" km";this._updateScale(this._mScale,O,h/u)},_updateImperial:function(u){var h=u*3.2808399,O,P,R;h>5280?(O=h/5280,P=this._getRoundNum(O),this._updateScale(this._iScale,P+" mi",P/O)):(R=this._getRoundNum(h),this._updateScale(this._iScale,R+" ft",R/h))},_updateScale:function(u,h,O){u.style.width=Math.round(this.options.maxWidth*O)+"px",u.innerHTML=h},_getRoundNum:function(u){var h=Math.pow(10,(Math.floor(u)+"").length-1),O=u/h;return O=O>=10?10:O>=5?5:O>=3?3:O>=2?2:1,h*O}}),_9=function(u){return new WP(u)},x9='<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>',Ab=yi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Fe.inlineSvg?x9+" ":"")+"Leaflet</a>"},initialize:function(u){g(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ut("div","leaflet-control-attribution"),lf(this._container);for(var h in u._layers)u._layers[h].getAttribution&&this.addAttribution(u._layers[h].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var h in this._attributions)this._attributions[h]&&u.push(h);var O=[];this.options.prefix&&O.push(this.options.prefix),u.length&&O.push(u.join(", ")),this._container.innerHTML=O.join(' <span aria-hidden="true">|</span> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new Ab().addTo(this)});var w9=function(u){return new Ab(u)};yi.Layers=VP,yi.Zoom=jb,yi.Scale=WP,yi.Attribution=Ab,cf.layers=y9,cf.zoom=b9,cf.scale=_9,cf.attribution=w9;var Gi=W.extend({initialize:function(u){this._map=u},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}});Gi.addTo=function(u,h){return u.addHandler(h,this),this};var O9={Events:Q},HP=Fe.touch?"touchstart mousedown":"mousedown",sa=ne.extend({options:{clickTolerance:3},initialize:function(u,h,O,P){g(this,P),this._element=u,this._dragStartTarget=h||u,this._preventOutline=O},enable:function(){this._enabled||(Ye(this._dragStartTarget,HP,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(sa._dragging===this&&this.finishDrag(!0),_t(this._dragStartTarget,HP,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!vb(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){sa._dragging===this&&this.finishDrag();return}if(!(sa._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(sa._dragging=this,this._preventOutline&&wb(this._element),bb(),of(),!this._moving)){this.fire("down");var h=u.touches?u.touches[0]:u,O=IP(this._element);this._startPoint=new Z(h.clientX,h.clientY),this._startPos=bs(this._element),this._parentScale=Ob(O);var P=u.type==="mousedown";Ye(document,P?"mousemove":"touchmove",this._onMove,this),Ye(document,P?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var h=u.touches&&u.touches.length===1?u.touches[0]:u,O=new Z(h.clientX,h.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,Pn(u),this._moved||(this.fire("dragstart"),this._moved=!0,Xe(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Xe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(O),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),en(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){Yt(document.body,"leaflet-dragging"),this._lastTarget&&(Yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_t(document,"mousemove touchmove",this._onMove,this),_t(document,"mouseup touchend touchcancel",this._onUp,this),_b(),af();var h=this._moved&&this._moving;this._moving=!1,sa._dragging=!1,h&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)})}});function GP(u,h,O){var P,R=[1,4,2,8],G,re,ce,de,_e,Le,ze,Je;for(G=0,Le=u.length;G<Le;G++)u[G]._code=ws(u[G],h);for(ce=0;ce<4;ce++){for(ze=R[ce],P=[],G=0,Le=u.length,re=Le-1;G<Le;re=G++)de=u[G],_e=u[re],de._code&ze?_e._code&ze||(Je=Fp(_e,de,ze,h,O),Je._code=ws(Je,h),P.push(Je)):(_e._code&ze&&(Je=Fp(_e,de,ze,h,O),Je._code=ws(Je,h),P.push(Je)),P.push(de));u=P}return u}function qP(u,h){var O,P,R,G,re,ce,de,_e,Le;if(!u||u.length===0)throw new Error("latlngs not passed");Hr(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var ze=ae([0,0]),Je=te(u),Wn=Je.getNorthWest().distanceTo(Je.getSouthWest())*Je.getNorthEast().distanceTo(Je.getNorthWest());Wn<1700&&(ze=kb(u));var hn=u.length,Gr=[];for(O=0;O<hn;O++){var ar=ae(u[O]);Gr.push(h.project(ae([ar.lat-ze.lat,ar.lng-ze.lng])))}for(ce=de=_e=0,O=0,P=hn-1;O<hn;P=O++)R=Gr[O],G=Gr[P],re=R.y*G.x-G.y*R.x,de+=(R.x+G.x)*re,_e+=(R.y+G.y)*re,ce+=re*3;ce===0?Le=Gr[0]:Le=[de/ce,_e/ce];var Bl=h.unproject(B(Le));return ae([Bl.lat+ze.lat,Bl.lng+ze.lng])}function kb(u){for(var h=0,O=0,P=0,R=0;R<u.length;R++){var G=ae(u[R]);h+=G.lat,O+=G.lng,P++}return ae([h/P,O/P])}var S9={__proto__:null,clipPolygon:GP,polygonCenter:qP,centroid:kb};function KP(u,h){if(!h||!u.length)return u.slice();var O=h*h;return u=P9(u,O),u=C9(u,O),u}function YP(u,h,O){return Math.sqrt(uf(u,h,O,!0))}function E9(u,h,O){return uf(u,h,O)}function C9(u,h){var O=u.length,P=typeof Uint8Array<"u"?Uint8Array:Array,R=new P(O);R[0]=R[O-1]=1,Nb(u,R,h,0,O-1);var G,re=[];for(G=0;G<O;G++)R[G]&&re.push(u[G]);return re}function Nb(u,h,O,P,R){var G=0,re,ce,de;for(ce=P+1;ce<=R-1;ce++)de=uf(u[ce],u[P],u[R],!0),de>G&&(re=ce,G=de);G>O&&(h[re]=1,Nb(u,h,O,P,re),Nb(u,h,O,re,R))}function P9(u,h){for(var O=[u[0]],P=1,R=0,G=u.length;P<G;P++)T9(u[P],u[R])>h&&(O.push(u[P]),R=P);return R<G-1&&O.push(u[G-1]),O}var ZP;function XP(u,h,O,P,R){var G=P?ZP:ws(u,O),re=ws(h,O),ce,de,_e;for(ZP=re;;){if(!(G|re))return[u,h];if(G&re)return!1;ce=G||re,de=Fp(u,h,ce,O,R),_e=ws(de,O),ce===G?(u=de,G=_e):(h=de,re=_e)}}function Fp(u,h,O,P,R){var G=h.x-u.x,re=h.y-u.y,ce=P.min,de=P.max,_e,Le;return O&8?(_e=u.x+G*(de.y-u.y)/re,Le=de.y):O&4?(_e=u.x+G*(ce.y-u.y)/re,Le=ce.y):O&2?(_e=de.x,Le=u.y+re*(de.x-u.x)/G):O&1&&(_e=ce.x,Le=u.y+re*(ce.x-u.x)/G),new Z(_e,Le,R)}function ws(u,h){var O=0;return u.x<h.min.x?O|=1:u.x>h.max.x&&(O|=2),u.y<h.min.y?O|=4:u.y>h.max.y&&(O|=8),O}function T9(u,h){var O=h.x-u.x,P=h.y-u.y;return O*O+P*P}function uf(u,h,O,P){var R=h.x,G=h.y,re=O.x-R,ce=O.y-G,de=re*re+ce*ce,_e;return de>0&&(_e=((u.x-R)*re+(u.y-G)*ce)/de,_e>1?(R=O.x,G=O.y):_e>0&&(R+=re*_e,G+=ce*_e)),re=u.x-R,ce=u.y-G,P?re*re+ce*ce:new Z(R,G)}function Hr(u){return!w(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function QP(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Hr(u)}function JP(u,h){var O,P,R,G,re,ce,de,_e;if(!u||u.length===0)throw new Error("latlngs not passed");Hr(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Le=ae([0,0]),ze=te(u),Je=ze.getNorthWest().distanceTo(ze.getSouthWest())*ze.getNorthEast().distanceTo(ze.getNorthWest());Je<1700&&(Le=kb(u));var Wn=u.length,hn=[];for(O=0;O<Wn;O++){var Gr=ae(u[O]);hn.push(h.project(ae([Gr.lat-Le.lat,Gr.lng-Le.lng])))}for(O=0,P=0;O<Wn-1;O++)P+=hn[O].distanceTo(hn[O+1])/2;if(P===0)_e=hn[0];else for(O=0,G=0;O<Wn-1;O++)if(re=hn[O],ce=hn[O+1],R=re.distanceTo(ce),G+=R,G>P){de=(G-P)/R,_e=[ce.x-de*(ce.x-re.x),ce.y-de*(ce.y-re.y)];break}var ar=h.unproject(B(_e));return ae([ar.lat+Le.lat,ar.lng+Le.lng])}var j9={__proto__:null,simplify:KP,pointToSegmentDistance:YP,closestPointOnSegment:E9,clipSegment:XP,_getEdgeIntersection:Fp,_getBitCode:ws,_sqClosestPointOnSegment:uf,isFlat:Hr,_flat:QP,polylineCenter:JP},Mb={project:function(u){return new Z(u.lng,u.lat)},unproject:function(u){return new ie(u.y,u.x)},bounds:new H([-180,-90],[180,90])},Lb={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var h=Math.PI/180,O=this.R,P=u.lat*h,R=this.R_MINOR/O,G=Math.sqrt(1-R*R),re=G*Math.sin(P),ce=Math.tan(Math.PI/4-P/2)/Math.pow((1-re)/(1+re),G/2);return P=-O*Math.log(Math.max(ce,1e-10)),new Z(u.lng*h*O,P)},unproject:function(u){for(var h=180/Math.PI,O=this.R,P=this.R_MINOR/O,R=Math.sqrt(1-P*P),G=Math.exp(-u.y/O),re=Math.PI/2-2*Math.atan(G),ce=0,de=.1,_e;ce<15&&Math.abs(de)>1e-7;ce++)_e=R*Math.sin(re),_e=Math.pow((1-_e)/(1+_e),R/2),de=Math.PI/2-2*Math.atan(G*_e)-re,re+=de;return new ie(re*h,u.x*h/O)}},A9={__proto__:null,LonLat:Mb,Mercator:Lb,SphericalMercator:U},k9=i({},j,{code:"EPSG:3395",projection:Lb,transformation:function(){var u=.5/(Math.PI*Lb.R);return Y(u,.5,-u,.5)}()}),eT=i({},j,{code:"EPSG:4326",projection:Mb,transformation:Y(1/180,1,-1/180,.5)}),N9=i({},fe,{projection:Mb,transformation:Y(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,h){var O=h.lng-u.lng,P=h.lat-u.lat;return Math.sqrt(O*O+P*P)},infinite:!0});fe.Earth=j,fe.EPSG3395=k9,fe.EPSG3857=oe,fe.EPSG900913=he,fe.EPSG4326=eT,fe.Simple=N9;var bi=ne.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[c(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[c(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var h=u.target;if(h.hasLayer(this)){if(this._map=h,this._zoomAnimated=h._zoomAnimated,this.getEvents){var O=this.getEvents();h.on(O,this),this.once("remove",function(){h.off(O,this)},this)}this.onAdd(h),this.fire("add"),h.fire("layeradd",{layer:this})}}});st.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var h=c(u);return this._layers[h]?this:(this._layers[h]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var h=c(u);return this._layers[h]?(this._loaded&&u.onRemove(this),delete this._layers[h],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return c(u)in this._layers},eachLayer:function(u,h){for(var O in this._layers)u.call(h,this._layers[O]);return this},_addLayers:function(u){u=u?w(u)?u:[u]:[];for(var h=0,O=u.length;h<O;h++)this.addLayer(u[h])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[c(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var h=c(u);this._zoomBoundLayers[h]&&(delete this._zoomBoundLayers[h],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,h=-1/0,O=this._getZoomSpan();for(var P in this._zoomBoundLayers){var R=this._zoomBoundLayers[P].options;u=R.minZoom===void 0?u:Math.min(u,R.minZoom),h=R.maxZoom===void 0?h:Math.max(h,R.maxZoom)}this._layersMaxZoom=h===-1/0?void 0:h,this._layersMinZoom=u===1/0?void 0:u,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 Rl=bi.extend({initialize:function(u,h){g(this,h),this._layers={};var O,P;if(u)for(O=0,P=u.length;O<P;O++)this.addLayer(u[O])},addLayer:function(u){var h=this.getLayerId(u);return this._layers[h]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var h=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[h]&&this._map.removeLayer(this._layers[h]),delete this._layers[h],this},hasLayer:function(u){var h=typeof u=="number"?u:this.getLayerId(u);return h in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var h=Array.prototype.slice.call(arguments,1),O,P;for(O in this._layers)P=this._layers[O],P[u]&&P[u].apply(P,h);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,h){for(var O in this._layers)u.call(h,this._layers[O]);return this},getLayer:function(u){return this._layers[u]},getLayers:function(){var u=[];return this.eachLayer(u.push,u),u},setZIndex:function(u){return this.invoke("setZIndex",u)},getLayerId:function(u){return c(u)}}),M9=function(u,h){return new Rl(u,h)},wo=Rl.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),Rl.prototype.addLayer.call(this,u),this.fire("layeradd",{layer:u}))},removeLayer:function(u){return this.hasLayer(u)?(u in this._layers&&(u=this._layers[u]),u.removeEventParent(this),Rl.prototype.removeLayer.call(this,u),this.fire("layerremove",{layer:u})):this},setStyle:function(u){return this.invoke("setStyle",u)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var u=new K;for(var h in this._layers){var O=this._layers[h];u.extend(O.getBounds?O.getBounds():O.getLatLng())}return u}}),L9=function(u,h){return new wo(u,h)},$l=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){g(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,h){var O=this._getIconUrl(u);if(!O){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var P=this._createImg(O,h&&h.tagName==="IMG"?h:null);return this._setIconStyles(P,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(P.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),P},_setIconStyles:function(u,h){var O=this.options,P=O[h+"Size"];typeof P=="number"&&(P=[P,P]);var R=B(P),G=B(h==="shadow"&&O.shadowAnchor||O.iconAnchor||R&&R.divideBy(2,!0));u.className="leaflet-marker-"+h+" "+(O.className||""),G&&(u.style.marginLeft=-G.x+"px",u.style.marginTop=-G.y+"px"),R&&(u.style.width=R.x+"px",u.style.height=R.y+"px")},_createImg:function(u,h){return h=h||document.createElement("img"),h.src=u,h},_getIconUrl:function(u){return Fe.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function R9(u){return new $l(u)}var ff=$l.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(u){return typeof ff.imagePath!="string"&&(ff.imagePath=this._detectIconPath()),(this.options.imagePath||ff.imagePath)+$l.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var h=function(O,P,R){var G=P.exec(O);return G&&G[R]};return u=h(u,/^url\((['"])?(.+)\1\)$/,2),u&&h(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=ut("div","leaflet-default-icon-path",document.body),h=rf(u,"background-image")||rf(u,"backgroundImage");if(document.body.removeChild(u),h=this._stripUrl(h),h)return h;var O=document.querySelector('link[href$="leaflet.css"]');return O?O.href.substring(0,O.href.length-11-1):""}}),tT=Gi.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new sa(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Xe(u,"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&&Yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var h=this._marker,O=h._map,P=this._marker.options.autoPanSpeed,R=this._marker.options.autoPanPadding,G=bs(h._icon),re=O.getPixelBounds(),ce=O.getPixelOrigin(),de=ee(re.min._subtract(ce).add(R),re.max._subtract(ce).subtract(R));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(P);O.panBy(_e,{animate:!1}),this._draggable._newPos._add(_e),this._draggable._startPos._add(_e),en(h._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=I(this._adjustPan.bind(this,u))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(u){this._marker.options.autoPan&&(D(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,u)))},_onDrag:function(u){var h=this._marker,O=h._shadow,P=bs(h._icon),R=h._map.layerPointToLatLng(P);O&&en(O,P),h._latlng=R,u.latlng=R,u.oldLatLng=this._oldLatLng,h.fire("move",u).fire("drag",u)},_onDragEnd:function(u){D(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Bp=bi.extend({options:{icon:new ff,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(u,h){g(this,h),this._latlng=ae(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.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(u){var h=this._latlng;return this._latlng=ae(u),this.update(),this.fire("move",{oldLatLng:h,latlng:this._latlng})},setZIndexOffset:function(u){return this.options.zIndexOffset=u,this.update()},getIcon:function(){return this.options.icon},setIcon:function(u){return this.options.icon=u,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 u=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(u)}return this},_initIcon:function(){var u=this.options,h="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),O=u.icon.createIcon(this._icon),P=!1;O!==this._icon&&(this._icon&&this._removeIcon(),P=!0,u.title&&(O.title=u.title),O.tagName==="IMG"&&(O.alt=u.alt||"")),Xe(O,h),u.keyboard&&(O.tabIndex="0",O.setAttribute("role","button")),this._icon=O,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ye(O,"focus",this._panOnFocus,this);var R=u.icon.createShadow(this._shadow),G=!1;R!==this._shadow&&(this._removeShadow(),G=!0),R&&(Xe(R,h),R.alt=""),this._shadow=R,u.opacity<1&&this._updateOpacity(),P&&this.getPane().appendChild(this._icon),this._initInteraction(),R&&G&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_t(this._icon,"focus",this._panOnFocus,this),Ft(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ft(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&en(this._icon,u),this._shadow&&en(this._shadow,u),this._zIndex=u.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(u){this._icon&&(this._icon.style.zIndex=this._zIndex+u)},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(h)},_initInteraction:function(){if(this.options.interactive&&(Xe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),tT)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new tT(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&Wr(this._icon,u),this._shadow&&Wr(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var h=this.options.icon.options,O=h.iconSize?B(h.iconSize):B(0,0),P=h.iconAnchor?B(h.iconAnchor):B(0,0);u.panInside(this._latlng,{paddingTopLeft:P,paddingBottomRight:O.subtract(P)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function $9(u,h){return new Bp(u,h)}var la=bi.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(u){this._renderer=u.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(u){return g(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"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)}}),Up=la.extend({options:{fill:!0,radius:10},initialize:function(u,h){g(this,h),this._latlng=ae(u),this._radius=this.options.radius},setLatLng:function(u){var h=this._latlng;return this._latlng=ae(u),this.redraw(),this.fire("move",{oldLatLng:h,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(u){return this.options.radius=this._radius=u,this.redraw()},getRadius:function(){return this._radius},setStyle:function(u){var h=u&&u.radius||this._radius;return la.prototype.setStyle.call(this,u),this.setRadius(h),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,h=this._radiusY||u,O=this._clickTolerance(),P=[u+O,h+O];this._pxBounds=new H(this._point.subtract(P),this._point.add(P))},_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(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function I9(u,h){return new Up(u,h)}var Rb=Up.extend({initialize:function(u,h,O){if(typeof h=="number"&&(h=i({},O,{radius:h})),g(this,h),this._latlng=ae(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new K(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:la.prototype.setStyle,_project:function(){var u=this._latlng.lng,h=this._latlng.lat,O=this._map,P=O.options.crs;if(P.distance===j.distance){var R=Math.PI/180,G=this._mRadius/j.R/R,re=O.project([h+G,u]),ce=O.project([h-G,u]),de=re.add(ce).divideBy(2),_e=O.unproject(de).lat,Le=Math.acos((Math.cos(G*R)-Math.sin(h*R)*Math.sin(_e*R))/(Math.cos(h*R)*Math.cos(_e*R)))/R;(isNaN(Le)||Le===0)&&(Le=G/Math.cos(Math.PI/180*h)),this._point=de.subtract(O.getPixelOrigin()),this._radius=isNaN(Le)?0:de.x-O.project([_e,u-Le]).x,this._radiusY=de.y-re.y}else{var ze=P.unproject(P.project(this._latlng).subtract([this._mRadius,0]));this._point=O.latLngToLayerPoint(this._latlng),this._radius=this._point.x-O.latLngToLayerPoint(ze).x}this._updateBounds()}});function D9(u,h,O){return new Rb(u,h,O)}var Oo=la.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,h){g(this,h),this._setLatLngs(u)},getLatLngs:function(){return this._latlngs},setLatLngs:function(u){return this._setLatLngs(u),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(u){for(var h=1/0,O=null,P=uf,R,G,re=0,ce=this._parts.length;re<ce;re++)for(var de=this._parts[re],_e=1,Le=de.length;_e<Le;_e++){R=de[_e-1],G=de[_e];var ze=P(u,R,G,!0);ze<h&&(h=ze,O=P(u,R,G))}return O&&(O.distance=Math.sqrt(h)),O},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return JP(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,h){return h=h||this._defaultShape(),u=ae(u),h.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new K,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return Hr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var h=[],O=Hr(u),P=0,R=u.length;P<R;P++)O?(h[P]=ae(u[P]),this._bounds.extend(h[P])):h[P]=this._convertLatLngs(u[P]);return h},_project:function(){var u=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,u),this._bounds.isValid()&&u.isValid()&&(this._rawPxBounds=u,this._updateBounds())},_updateBounds:function(){var u=this._clickTolerance(),h=new Z(u,u);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(h),this._rawPxBounds.max.add(h)]))},_projectLatlngs:function(u,h,O){var P=u[0]instanceof ie,R=u.length,G,re;if(P){for(re=[],G=0;G<R;G++)re[G]=this._map.latLngToLayerPoint(u[G]),O.extend(re[G]);h.push(re)}else for(G=0;G<R;G++)this._projectLatlngs(u[G],h,O)},_clipPoints:function(){var u=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}var h=this._parts,O,P,R,G,re,ce,de;for(O=0,R=0,G=this._rings.length;O<G;O++)for(de=this._rings[O],P=0,re=de.length;P<re-1;P++)ce=XP(de[P],de[P+1],u,P,!0),ce&&(h[R]=h[R]||[],h[R].push(ce[0]),(ce[1]!==de[P+1]||P===re-2)&&(h[R].push(ce[1]),R++))}},_simplifyPoints:function(){for(var u=this._parts,h=this.options.smoothFactor,O=0,P=u.length;O<P;O++)u[O]=KP(u[O],h)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,h){var O,P,R,G,re,ce,de=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(O=0,G=this._parts.length;O<G;O++)for(ce=this._parts[O],P=0,re=ce.length,R=re-1;P<re;R=P++)if(!(!h&&P===0)&&YP(u,ce[R],ce[P])<=de)return!0;return!1}});function F9(u,h){return new Oo(u,h)}Oo._flat=QP;var Il=Oo.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 qP(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var h=Oo.prototype._convertLatLngs.call(this,u),O=h.length;return O>=2&&h[0]instanceof ie&&h[0].equals(h[O-1])&&h.pop(),h},_setLatLngs:function(u){Oo.prototype._setLatLngs.call(this,u),Hr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Hr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,h=this.options.weight,O=new Z(h,h);if(u=new H(u.min.subtract(O),u.max.add(O)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var P=0,R=this._rings.length,G;P<R;P++)G=GP(this._rings[P],u,!0),G.length&&this._parts.push(G)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var h=!1,O,P,R,G,re,ce,de,_e;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(G=0,de=this._parts.length;G<de;G++)for(O=this._parts[G],re=0,_e=O.length,ce=_e-1;re<_e;ce=re++)P=O[re],R=O[ce],P.y>u.y!=R.y>u.y&&u.x<(R.x-P.x)*(u.y-P.y)/(R.y-P.y)+P.x&&(h=!h);return h||Oo.prototype._containsPoint.call(this,u,!0)}});function B9(u,h){return new Il(u,h)}var So=wo.extend({initialize:function(u,h){g(this,h),this._layers={},u&&this.addData(u)},addData:function(u){var h=w(u)?u:u.features,O,P,R;if(h){for(O=0,P=h.length;O<P;O++)R=h[O],(R.geometries||R.geometry||R.features||R.coordinates)&&this.addData(R);return this}var G=this.options;if(G.filter&&!G.filter(u))return this;var re=zp(u,G);return re?(re.feature=Hp(u),re.defaultOptions=re.options,this.resetStyle(re),G.onEachFeature&&G.onEachFeature(u,re),this.addLayer(re)):this},resetStyle:function(u){return u===void 0?this.eachLayer(this.resetStyle,this):(u.options=i({},u.defaultOptions),this._setLayerStyle(u,this.options.style),this)},setStyle:function(u){return this.eachLayer(function(h){this._setLayerStyle(h,u)},this)},_setLayerStyle:function(u,h){u.setStyle&&(typeof h=="function"&&(h=h(u.feature)),u.setStyle(h))}});function zp(u,h){var O=u.type==="Feature"?u.geometry:u,P=O?O.coordinates:null,R=[],G=h&&h.pointToLayer,re=h&&h.coordsToLatLng||$b,ce,de,_e,Le;if(!P&&!O)return null;switch(O.type){case"Point":return ce=re(P),nT(G,u,ce,h);case"MultiPoint":for(_e=0,Le=P.length;_e<Le;_e++)ce=re(P[_e]),R.push(nT(G,u,ce,h));return new wo(R);case"LineString":case"MultiLineString":return de=Vp(P,O.type==="LineString"?0:1,re),new Oo(de,h);case"Polygon":case"MultiPolygon":return de=Vp(P,O.type==="Polygon"?1:2,re),new Il(de,h);case"GeometryCollection":for(_e=0,Le=O.geometries.length;_e<Le;_e++){var ze=zp({geometry:O.geometries[_e],type:"Feature",properties:u.properties},h);ze&&R.push(ze)}return new wo(R);case"FeatureCollection":for(_e=0,Le=O.features.length;_e<Le;_e++){var Je=zp(O.features[_e],h);Je&&R.push(Je)}return new wo(R);default:throw new Error("Invalid GeoJSON object.")}}function nT(u,h,O,P){return u?u(h,O):new Bp(O,P&&P.markersInheritOptions&&P)}function $b(u){return new ie(u[1],u[0],u[2])}function Vp(u,h,O){for(var P=[],R=0,G=u.length,re;R<G;R++)re=h?Vp(u[R],h-1,O):(O||$b)(u[R]),P.push(re);return P}function Ib(u,h){return u=ae(u),u.alt!==void 0?[p(u.lng,h),p(u.lat,h),p(u.alt,h)]:[p(u.lng,h),p(u.lat,h)]}function Wp(u,h,O,P){for(var R=[],G=0,re=u.length;G<re;G++)R.push(h?Wp(u[G],Hr(u[G])?0:h-1,O,P):Ib(u[G],P));return!h&&O&&R.length>0&&R.push(R[0].slice()),R}function Dl(u,h){return u.feature?i({},u.feature,{geometry:h}):Hp(h)}function Hp(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var Db={toGeoJSON:function(u){return Dl(this,{type:"Point",coordinates:Ib(this.getLatLng(),u)})}};Bp.include(Db),Rb.include(Db),Up.include(Db),Oo.include({toGeoJSON:function(u){var h=!Hr(this._latlngs),O=Wp(this._latlngs,h?1:0,!1,u);return Dl(this,{type:(h?"Multi":"")+"LineString",coordinates:O})}}),Il.include({toGeoJSON:function(u){var h=!Hr(this._latlngs),O=h&&!Hr(this._latlngs[0]),P=Wp(this._latlngs,O?2:h?1:0,!0,u);return h||(P=[P]),Dl(this,{type:(O?"Multi":"")+"Polygon",coordinates:P})}}),Rl.include({toMultiPoint:function(u){var h=[];return this.eachLayer(function(O){h.push(O.toGeoJSON(u).geometry.coordinates)}),Dl(this,{type:"MultiPoint",coordinates:h})},toGeoJSON:function(u){var h=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(h==="MultiPoint")return this.toMultiPoint(u);var O=h==="GeometryCollection",P=[];return this.eachLayer(function(R){if(R.toGeoJSON){var G=R.toGeoJSON(u);if(O)P.push(G.geometry);else{var re=Hp(G);re.type==="FeatureCollection"?P.push.apply(P,re.features):P.push(re)}}}),O?Dl(this,{geometries:P,type:"GeometryCollection"}):{type:"FeatureCollection",features:P}}});function rT(u,h){return new So(u,h)}var U9=rT,Gp=bi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,h,O){this._url=u,this._bounds=te(h),g(this,O)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Xe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ft(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&Ml(this._image),this},bringToBack:function(){return this._map&&Ll(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=te(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",h=this._image=u?this._url:ut("img");if(Xe(h,"leaflet-image-layer"),this._zoomAnimated&&Xe(h,"leaflet-zoom-animated"),this.options.className&&Xe(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onload=a(this.fire,this,"load"),h.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=h.src;return}h.src=this._url,h.alt=this.options.alt},_animateZoom:function(u){var h=this._map.getZoomScale(u.zoom),O=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;ys(this._image,O,h)},_reset:function(){var u=this._image,h=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),O=h.getSize();en(u,h.min),u.style.width=O.x+"px",u.style.height=O.y+"px"},_updateOpacity:function(){Wr(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 u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),z9=function(u,h,O){return new Gp(u,h,O)},iT=Gp.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",h=this._image=u?this._url:ut("video");if(Xe(h,"leaflet-image-layer"),this._zoomAnimated&&Xe(h,"leaflet-zoom-animated"),this.options.className&&Xe(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onloadeddata=a(this.fire,this,"load"),u){for(var O=h.getElementsByTagName("source"),P=[],R=0;R<O.length;R++)P.push(O[R].src);this._url=O.length>0?P:[h.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(h.style,"objectFit")&&(h.style.objectFit="fill"),h.autoplay=!!this.options.autoplay,h.loop=!!this.options.loop,h.muted=!!this.options.muted,h.playsInline=!!this.options.playsInline;for(var G=0;G<this._url.length;G++){var re=ut("source");re.src=this._url[G],h.appendChild(re)}}});function V9(u,h,O){return new iT(u,h,O)}var oT=Gp.extend({_initImage:function(){var u=this._image=this._url;Xe(u,"leaflet-image-layer"),this._zoomAnimated&&Xe(u,"leaflet-zoom-animated"),this.options.className&&Xe(u,this.options.className),u.onselectstart=d,u.onmousemove=d}});function W9(u,h,O){return new oT(u,h,O)}var qi=bi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,h){u&&(u instanceof ie||w(u))?(this._latlng=ae(u),g(this,h)):(g(this,u),this._source=h),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&Wr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&Wr(this._container,1),this.bringToFront(),this.options.interactive&&(Xe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(Wr(this._container,0),this._removeTimeout=setTimeout(a(Ft,void 0,this._container),200)):Ft(this._container),this.options.interactive&&(Yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=ae(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,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 u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ml(this._container),this},bringToBack:function(){return this._map&&Ll(this._container),this},_prepareOpen:function(u){var h=this._source;if(!h._map)return!1;if(h instanceof wo){h=null;var O=this._source._layers;for(var P in O)if(O[P]._map){h=O[P];break}if(!h)return!1;this._source=h}if(!u)if(h.getCenter)u=h.getCenter();else if(h.getLatLng)u=h.getLatLng();else if(h.getBounds)u=h.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(u),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var u=this._contentNode,h=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof h=="string")u.innerHTML=h;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(h)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),h=B(this.options.offset),O=this._getAnchor();this._zoomAnimated?en(this._container,u.add(O)):h=h.add(u).add(O);var P=this._containerBottom=-h.y,R=this._containerLeft=-Math.round(this._containerWidth/2)+h.x;this._container.style.bottom=P+"px",this._container.style.left=R+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(u,h,O,P){var R=h;return R instanceof u||(R=new u(P).setContent(h)),O&&R.setLatLng(O),R}}),bi.include({_initOverlay:function(u,h,O,P){var R=O;return R instanceof u?(g(R,P),R._source=this):(R=h&&!P?h:new u(P,this),R.setContent(O)),R}});var qp=qi.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(u){return u=arguments.length?u:this._source._map,!u.hasLayer(this)&&u._popup&&u._popup.options.autoClose&&u.removeLayer(u._popup),u._popup=this,qi.prototype.openOn.call(this,u)},onAdd:function(u){qi.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof la||this._source.on("preclick",_s))},onRemove:function(u){qi.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof la||this._source.off("preclick",_s))},getEvents:function(){var u=qi.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(u.preclick=this.close),this.options.keepInView&&(u.moveend=this._adjustPan),u},_initLayout:function(){var u="leaflet-popup",h=this._container=ut("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),O=this._wrapper=ut("div",u+"-content-wrapper",h);if(this._contentNode=ut("div",u+"-content",O),lf(h),Pb(this._contentNode),Ye(h,"contextmenu",_s),this._tipContainer=ut("div",u+"-tip-container",h),this._tip=ut("div",u+"-tip",this._tipContainer),this.options.closeButton){var P=this._closeButton=ut("a",u+"-close-button",h);P.setAttribute("role","button"),P.setAttribute("aria-label","Close popup"),P.href="#close",P.innerHTML='<span aria-hidden="true">&#215;</span>',Ye(P,"click",function(R){Pn(R),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,h=u.style;h.width="",h.whiteSpace="nowrap";var O=u.offsetWidth;O=Math.min(O,this.options.maxWidth),O=Math.max(O,this.options.minWidth),h.width=O+1+"px",h.whiteSpace="",h.height="";var P=u.offsetHeight,R=this.options.maxHeight,G="leaflet-popup-scrolled";R&&P>R?(h.height=R+"px",Xe(u,G)):Yt(u,G),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),O=this._getAnchor();en(this._container,h.add(O))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,h=parseInt(rf(this._container,"marginBottom"),10)||0,O=this._container.offsetHeight+h,P=this._containerWidth,R=new Z(this._containerLeft,-O-this._containerBottom);R._add(bs(this._container));var G=u.layerPointToContainerPoint(R),re=B(this.options.autoPanPadding),ce=B(this.options.autoPanPaddingTopLeft||re),de=B(this.options.autoPanPaddingBottomRight||re),_e=u.getSize(),Le=0,ze=0;G.x+P+de.x>_e.x&&(Le=G.x+P-_e.x+de.x),G.x-Le-ce.x<0&&(Le=G.x-ce.x),G.y+O+de.y>_e.y&&(ze=G.y+O-_e.y+de.y),G.y-ze-ce.y<0&&(ze=G.y-ce.y),(Le||ze)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Le,ze]))}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),H9=function(u,h){return new qp(u,h)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(u,h,O){return this._initOverlay(qp,u,h,O).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),bi.include({bindPopup:function(u,h){return this._popup=this._initOverlay(qp,this._popup,u,h),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(u){return this._popup&&(this instanceof wo||(this._popup._source=this),this._popup._prepareOpen(u||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(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){xs(u);var h=u.layer||u.target;if(this._popup._source===h&&!(h instanceof la)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=h,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Kp=qi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){qi.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){qi.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=qi.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",h=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ut("div",h),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var h,O,P=this._map,R=this._container,G=P.latLngToContainerPoint(P.getCenter()),re=P.layerPointToContainerPoint(u),ce=this.options.direction,de=R.offsetWidth,_e=R.offsetHeight,Le=B(this.options.offset),ze=this._getAnchor();ce==="top"?(h=de/2,O=_e):ce==="bottom"?(h=de/2,O=0):ce==="center"?(h=de/2,O=_e/2):ce==="right"?(h=0,O=_e/2):ce==="left"?(h=de,O=_e/2):re.x<G.x?(ce="right",h=0,O=_e/2):(ce="left",h=de+(Le.x+ze.x)*2,O=_e/2),u=u.subtract(B(h,O,!0)).add(Le).add(ze),Yt(R,"leaflet-tooltip-right"),Yt(R,"leaflet-tooltip-left"),Yt(R,"leaflet-tooltip-top"),Yt(R,"leaflet-tooltip-bottom"),Xe(R,"leaflet-tooltip-"+ce),en(R,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&Wr(this._container,u)},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(h)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),G9=function(u,h){return new Kp(u,h)};st.include({openTooltip:function(u,h,O){return this._initOverlay(Kp,u,h,O).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),bi.include({bindTooltip:function(u,h){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Kp,this._tooltip,u,h),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(u){if(!(!u&&this._tooltipHandlersAdded)){var h=u?"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[h](O),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof wo||(this._tooltip._source=this),this._tooltip._prepareOpen(u)&&(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(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var h=typeof u.getElement=="function"&&u.getElement();h&&(Ye(h,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Ye(h,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var h=typeof u.getElement=="function"&&u.getElement();h&&h.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var h=this;this._map.once("moveend",function(){h._openOnceFlag=!1,h._openTooltip(u)});return}this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0)}},_moveTooltip:function(u){var h=u.latlng,O,P;this._tooltip.options.sticky&&u.originalEvent&&(O=this._map.mouseEventToContainerPoint(u.originalEvent),P=this._map.containerPointToLayerPoint(O),h=this._map.layerPointToLatLng(P)),this._tooltip.setLatLng(h)}});var aT=$l.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var h=u&&u.tagName==="DIV"?u:document.createElement("div"),O=this.options;if(O.html instanceof Element?(Lp(h),h.appendChild(O.html)):h.innerHTML=O.html!==!1?O.html:"",O.bgPos){var P=B(O.bgPos);h.style.backgroundPosition=-P.x+"px "+-P.y+"px"}return this._setIconStyles(h,"icon"),h},createShadow:function(){return null}});function q9(u){return new aT(u)}$l.Default=ff;var df=bi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Fe.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(u){g(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Ft(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ml(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ll(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=l(this._onMoveEnd,this.options.updateInterval,this)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof Z?u:new Z(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var h=this.getPane().children,O=-u(-1/0,1/0),P=0,R=h.length,G;P<R;P++)G=h[P].style.zIndex,h[P]!==this._container&&G&&(O=u(O,+G));isFinite(O)&&(this.options.zIndex=O+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Fe.ielt9){Wr(this._container,this.options.opacity);var u=+new Date,h=!1,O=!1;for(var P in this._tiles){var R=this._tiles[P];if(!(!R.current||!R.loaded)){var G=Math.min(1,(u-R.loaded)/200);Wr(R.el,G),G<1?h=!0:(R.active?O=!0:this._onOpaqueTile(R),R.active=!0)}}O&&!this._noPrune&&this._pruneTiles(),h&&(D(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=ut("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,h=this.options.maxZoom;if(u!==void 0){for(var O in this._levels)O=Number(O),this._levels[O].el.children.length||O===u?(this._levels[O].el.style.zIndex=h-Math.abs(u-O),this._onUpdateLevel(O)):(Ft(this._levels[O].el),this._removeTilesAtZoom(O),this._onRemoveLevel(O),delete this._levels[O]);var P=this._levels[u],R=this._map;return P||(P=this._levels[u]={},P.el=ut("div","leaflet-tile-container leaflet-zoom-animated",this._container),P.el.style.zIndex=h,P.origin=R.project(R.unproject(R.getPixelOrigin()),u).round(),P.zoom=u,this._setZoomTransform(P,R.getCenter(),R.getZoom()),d(P.el.offsetWidth),this._onCreateLevel(P)),this._level=P,P}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var u,h,O=this._map.getZoom();if(O>this.options.maxZoom||O<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)h=this._tiles[u],h.retain=h.current;for(u in this._tiles)if(h=this._tiles[u],h.current&&!h.active){var P=h.coords;this._retainParent(P.x,P.y,P.z,P.z-5)||this._retainChildren(P.x,P.y,P.z,P.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var h in this._tiles)this._tiles[h].coords.z===u&&this._removeTile(h)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Ft(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,h,O,P){var R=Math.floor(u/2),G=Math.floor(h/2),re=O-1,ce=new Z(+R,+G);ce.z=+re;var de=this._tileCoordsToKey(ce),_e=this._tiles[de];return _e&&_e.active?(_e.retain=!0,!0):(_e&&_e.loaded&&(_e.retain=!0),re>P?this._retainParent(R,G,re,P):!1)},_retainChildren:function(u,h,O,P){for(var R=2*u;R<2*u+2;R++)for(var G=2*h;G<2*h+2;G++){var re=new Z(R,G);re.z=O+1;var ce=this._tileCoordsToKey(re),de=this._tiles[ce];if(de&&de.active){de.retain=!0;continue}else de&&de.loaded&&(de.retain=!0);O+1<P&&this._retainChildren(R,G,O+1,P)}},_resetView:function(u){var h=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),h,h)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var h=this.options;return h.minNativeZoom!==void 0&&u<h.minNativeZoom?h.minNativeZoom:h.maxNativeZoom!==void 0&&h.maxNativeZoom<u?h.maxNativeZoom:u},_setView:function(u,h,O,P){var R=Math.round(h);this.options.maxZoom!==void 0&&R>this.options.maxZoom||this.options.minZoom!==void 0&&R<this.options.minZoom?R=void 0:R=this._clampZoom(R);var G=this.options.updateWhenZooming&&R!==this._tileZoom;(!P||G)&&(this._tileZoom=R,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),R!==void 0&&this._update(u),O||this._pruneTiles(),this._noPrune=!!O),this._setZoomTransforms(u,h)},_setZoomTransforms:function(u,h){for(var O in this._levels)this._setZoomTransform(this._levels[O],u,h)},_setZoomTransform:function(u,h,O){var P=this._map.getZoomScale(O,u.zoom),R=u.origin.multiplyBy(P).subtract(this._map._getNewPixelOrigin(h,O)).round();Fe.any3d?ys(u.el,R,P):en(u.el,R)},_resetGrid:function(){var u=this._map,h=u.options.crs,O=this._tileSize=this.getTileSize(),P=this._tileZoom,R=this._map.getPixelWorldBounds(this._tileZoom);R&&(this._globalTileRange=this._pxBoundsToTileRange(R)),this._wrapX=h.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,h.wrapLng[0]],P).x/O.x),Math.ceil(u.project([0,h.wrapLng[1]],P).x/O.y)],this._wrapY=h.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([h.wrapLat[0],0],P).y/O.x),Math.ceil(u.project([h.wrapLat[1],0],P).y/O.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var h=this._map,O=h._animatingZoom?Math.max(h._animateToZoom,h.getZoom()):h.getZoom(),P=h.getZoomScale(O,this._tileZoom),R=h.project(u,this._tileZoom).floor(),G=h.getSize().divideBy(P*2);return new H(R.subtract(G),R.add(G))},_update:function(u){var h=this._map;if(h){var O=this._clampZoom(h.getZoom());if(u===void 0&&(u=h.getCenter()),this._tileZoom!==void 0){var P=this._getTiledPixelBounds(u),R=this._pxBoundsToTileRange(P),G=R.getCenter(),re=[],ce=this.options.keepBuffer,de=new H(R.getBottomLeft().subtract([ce,-ce]),R.getTopRight().add([ce,-ce]));if(!(isFinite(R.min.x)&&isFinite(R.min.y)&&isFinite(R.max.x)&&isFinite(R.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var _e in this._tiles){var Le=this._tiles[_e].coords;(Le.z!==this._tileZoom||!de.contains(new Z(Le.x,Le.y)))&&(this._tiles[_e].current=!1)}if(Math.abs(O-this._tileZoom)>1){this._setView(u,O);return}for(var ze=R.min.y;ze<=R.max.y;ze++)for(var Je=R.min.x;Je<=R.max.x;Je++){var Wn=new Z(Je,ze);if(Wn.z=this._tileZoom,!!this._isValidTile(Wn)){var hn=this._tiles[this._tileCoordsToKey(Wn)];hn?hn.current=!0:re.push(Wn)}}if(re.sort(function(ar,Bl){return ar.distanceTo(G)-Bl.distanceTo(G)}),re.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Gr=document.createDocumentFragment();for(Je=0;Je<re.length;Je++)this._addTile(re[Je],Gr);this._level.el.appendChild(Gr)}}}},_isValidTile:function(u){var h=this._map.options.crs;if(!h.infinite){var O=this._globalTileRange;if(!h.wrapLng&&(u.x<O.min.x||u.x>O.max.x)||!h.wrapLat&&(u.y<O.min.y||u.y>O.max.y))return!1}if(!this.options.bounds)return!0;var P=this._tileCoordsToBounds(u);return te(this.options.bounds).overlaps(P)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var h=this._map,O=this.getTileSize(),P=u.scaleBy(O),R=P.add(O),G=h.unproject(P,u.z),re=h.unproject(R,u.z);return[G,re]},_tileCoordsToBounds:function(u){var h=this._tileCoordsToNwSe(u),O=new K(h[0],h[1]);return this.options.noWrap||(O=this._map.wrapLatLngBounds(O)),O},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var h=u.split(":"),O=new Z(+h[0],+h[1]);return O.z=+h[2],O},_removeTile:function(u){var h=this._tiles[u];h&&(Ft(h.el),delete this._tiles[u],this.fire("tileunload",{tile:h.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Xe(u,"leaflet-tile");var h=this.getTileSize();u.style.width=h.x+"px",u.style.height=h.y+"px",u.onselectstart=d,u.onmousemove=d,Fe.ielt9&&this.options.opacity<1&&Wr(u,this.options.opacity)},_addTile:function(u,h){var O=this._getTilePos(u),P=this._tileCoordsToKey(u),R=this.createTile(this._wrapCoords(u),a(this._tileReady,this,u));this._initTile(R),this.createTile.length<2&&I(a(this._tileReady,this,u,null,R)),en(R,O),this._tiles[P]={el:R,coords:u,current:!0},h.appendChild(R),this.fire("tileloadstart",{tile:R,coords:u})},_tileReady:function(u,h,O){h&&this.fire("tileerror",{error:h,tile:O,coords:u});var P=this._tileCoordsToKey(u);O=this._tiles[P],O&&(O.loaded=+new Date,this._map._fadeAnimated?(Wr(O.el,0),D(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(O.active=!0,this._pruneTiles()),h||(Xe(O.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:O.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Fe.ielt9||!this._map._fadeAnimated?I(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var h=new Z(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return h.z=u.z,h},_pxBoundsToTileRange:function(u){var h=this.getTileSize();return new H(u.min.unscaleBy(h).floor(),u.max.unscaleBy(h).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function K9(u){return new df(u)}var Fl=df.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,h){this._url=u,h=g(this,h),h.detectRetina&&Fe.retina&&h.maxZoom>0?(h.tileSize=Math.floor(h.tileSize/2),h.zoomReverse?(h.zoomOffset--,h.minZoom=Math.min(h.maxZoom,h.minZoom+1)):(h.zoomOffset++,h.maxZoom=Math.max(h.minZoom,h.maxZoom-1)),h.minZoom=Math.max(0,h.minZoom)):h.zoomReverse?h.minZoom=Math.min(h.maxZoom,h.minZoom):h.maxZoom=Math.max(h.minZoom,h.maxZoom),typeof h.subdomains=="string"&&(h.subdomains=h.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,h){return this._url===u&&h===void 0&&(h=!0),this._url=u,h||this.redraw(),this},createTile:function(u,h){var O=document.createElement("img");return Ye(O,"load",a(this._tileOnLoad,this,h,O)),Ye(O,"error",a(this._tileOnError,this,h,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(u),O},getTileUrl:function(u){var h={r:Fe.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var O=this._globalTileRange.max.y-u.y;this.options.tms&&(h.y=O),h["-y"]=O}return b(this._url,i(h,this.options))},_tileOnLoad:function(u,h){Fe.ielt9?setTimeout(a(u,this,null,h),0):u(null,h)},_tileOnError:function(u,h,O){var P=this.options.errorTileUrl;P&&h.getAttribute("src")!==P&&(h.src=P),u(O,h)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,h=this.options.maxZoom,O=this.options.zoomReverse,P=this.options.zoomOffset;return O&&(u=h-u),u+P},_getSubdomain:function(u){var h=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[h]},_abortLoading:function(){var u,h;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(h=this._tiles[u].el,h.onload=d,h.onerror=d,!h.complete)){h.src=E;var O=this._tiles[u].coords;Ft(h),delete this._tiles[u],this.fire("tileabort",{tile:h,coords:O})}},_removeTile:function(u){var h=this._tiles[u];if(h)return h.el.setAttribute("src",E),df.prototype._removeTile.call(this,u)},_tileReady:function(u,h,O){if(!(!this._map||O&&O.getAttribute("src")===E))return df.prototype._tileReady.call(this,u,h,O)}});function sT(u,h){return new Fl(u,h)}var lT=Fl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,h){this._url=u;var O=i({},this.defaultWmsParams);for(var P in h)P in this.options||(O[P]=h[P]);h=g(this,h);var R=h.detectRetina&&Fe.retina?2:1,G=this.getTileSize();O.width=G.x*R,O.height=G.y*R,this.wmsParams=O},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var h=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[h]=this._crs.code,Fl.prototype.onAdd.call(this,u)},getTileUrl:function(u){var h=this._tileCoordsToNwSe(u),O=this._crs,P=ee(O.project(h[0]),O.project(h[1])),R=P.min,G=P.max,re=(this._wmsVersion>=1.3&&this._crs===eT?[R.y,R.x,G.y,G.x]:[R.x,R.y,G.x,G.y]).join(","),ce=Fl.prototype.getTileUrl.call(this,u);return ce+x(this.wmsParams,ce,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+re},setParams:function(u,h){return i(this.wmsParams,u),h||this.redraw(),this}});function Y9(u,h){return new lT(u,h)}Fl.WMS=lT,sT.wms=Y9;var Eo=bi.extend({options:{padding:.1},initialize:function(u){g(this,u),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Xe(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 u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,h){var O=this._map.getZoomScale(h,this._zoom),P=this._map.getSize().multiplyBy(.5+this.options.padding),R=this._map.project(this._center,h),G=P.multiplyBy(-O).add(R).subtract(this._map._getNewPixelOrigin(u,h));Fe.any3d?ys(this._container,G,O):en(this._container,G)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,h=this._map.getSize(),O=this._map.containerPointToLayerPoint(h.multiplyBy(-u)).round();this._bounds=new H(O,O.add(h.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),cT=Eo.extend({options:{tolerance:0},getEvents:function(){var u=Eo.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Eo.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ye(u,"mousemove",this._onMouseMove,this),Ye(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ye(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){D(this._redrawRequest),delete this._ctx,Ft(this._container),_t(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var h in this._layers)u=this._layers[h],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Eo.prototype._update.call(this);var u=this._bounds,h=this._container,O=u.getSize(),P=Fe.retina?2:1;en(h,u.min),h.width=P*O.x,h.height=P*O.y,h.style.width=O.x+"px",h.style.height=O.y+"px",Fe.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){Eo.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[c(u)]=u;var h=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=h),this._drawLast=h,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var h=u._order,O=h.next,P=h.prev;O?O.prev=P:this._drawLast=P,P?P.next=O:this._drawFirst=O,delete u._order,delete this._layers[c(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var h=u.options.dashArray.split(/[, ]+/),O=[],P,R;for(R=0;R<h.length;R++){if(P=Number(h[R]),isNaN(P))return;O.push(P)}u.options._dashArray=O}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||I(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var h=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(u._pxBounds.min.subtract([h,h])),this._redrawBounds.extend(u._pxBounds.max.add([h,h]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var u=this._redrawBounds;if(u){var h=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,h.x,h.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var u,h=this._redrawBounds;if(this._ctx.save(),h){var O=h.getSize();this._ctx.beginPath(),this._ctx.rect(h.min.x,h.min.y,O.x,O.y),this._ctx.clip()}this._drawing=!0;for(var P=this._drawFirst;P;P=P.next)u=P.layer,(!h||u._pxBounds&&u._pxBounds.intersects(h))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,h){if(this._drawing){var O,P,R,G,re=u._parts,ce=re.length,de=this._ctx;if(ce){for(de.beginPath(),O=0;O<ce;O++){for(P=0,R=re[O].length;P<R;P++)G=re[O][P],de[P?"lineTo":"moveTo"](G.x,G.y);h&&de.closePath()}this._fillStroke(de,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var h=u._point,O=this._ctx,P=Math.max(Math.round(u._radius),1),R=(Math.max(Math.round(u._radiusY),1)||P)/P;R!==1&&(O.save(),O.scale(1,R)),O.beginPath(),O.arc(h.x,h.y/R,P,0,Math.PI*2,!1),R!==1&&O.restore(),this._fillStroke(O,u)}},_fillStroke:function(u,h){var O=h.options;O.fill&&(u.globalAlpha=O.fillOpacity,u.fillStyle=O.fillColor||O.color,u.fill(O.fillRule||"evenodd")),O.stroke&&O.weight!==0&&(u.setLineDash&&u.setLineDash(h.options&&h.options._dashArray||[]),u.globalAlpha=O.opacity,u.lineWidth=O.weight,u.strokeStyle=O.color,u.lineCap=O.lineCap,u.lineJoin=O.lineJoin,u.stroke())},_onClick:function(u){for(var h=this._map.mouseEventToLayerPoint(u),O,P,R=this._drawFirst;R;R=R.next)O=R.layer,O.options.interactive&&O._containsPoint(h)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(O))&&(P=O);this._fireEvent(P?[P]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var h=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,h)}},_handleMouseOut:function(u){var h=this._hoveredLayer;h&&(Yt(this._container,"leaflet-interactive"),this._fireEvent([h],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,h){if(!this._mouseHoverThrottled){for(var O,P,R=this._drawFirst;R;R=R.next)O=R.layer,O.options.interactive&&O._containsPoint(h)&&(P=O);P!==this._hoveredLayer&&(this._handleMouseOut(u),P&&(Xe(this._container,"leaflet-interactive"),this._fireEvent([P],u,"mouseover"),this._hoveredLayer=P)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,h,O){this._map._fireDOMEvent(h,O||h.type,u)},_bringToFront:function(u){var h=u._order;if(h){var O=h.next,P=h.prev;if(O)O.prev=P;else return;P?P.next=O:O&&(this._drawFirst=O),h.prev=this._drawLast,this._drawLast.next=h,h.next=null,this._drawLast=h,this._requestRedraw(u)}},_bringToBack:function(u){var h=u._order;if(h){var O=h.next,P=h.prev;if(P)P.next=O;else return;O?O.prev=P:P&&(this._drawLast=P),h.prev=null,h.next=this._drawFirst,this._drawFirst.prev=h,this._drawFirst=h,this._requestRedraw(u)}}});function uT(u){return Fe.canvas?new cT(u):null}var hf=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(u){return document.createElement("<lvml:"+u+' class="lvml">')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Z9={_initContainer:function(){this._container=ut("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Eo.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var h=u._container=hf("shape");Xe(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",u._path=hf("path"),h.appendChild(u._path),this._updateStyle(u),this._layers[c(u)]=u},_addPath:function(u){var h=u._container;this._container.appendChild(h),u.options.interactive&&u.addInteractiveTarget(h)},_removePath:function(u){var h=u._container;Ft(h),u.removeInteractiveTarget(h),delete this._layers[c(u)]},_updateStyle:function(u){var h=u._stroke,O=u._fill,P=u.options,R=u._container;R.stroked=!!P.stroke,R.filled=!!P.fill,P.stroke?(h||(h=u._stroke=hf("stroke")),R.appendChild(h),h.weight=P.weight+"px",h.color=P.color,h.opacity=P.opacity,P.dashArray?h.dashStyle=w(P.dashArray)?P.dashArray.join(" "):P.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=P.lineCap.replace("butt","flat"),h.joinstyle=P.lineJoin):h&&(R.removeChild(h),u._stroke=null),P.fill?(O||(O=u._fill=hf("fill")),R.appendChild(O),O.color=P.fillColor||P.color,O.opacity=P.fillOpacity):O&&(R.removeChild(O),u._fill=null)},_updateCircle:function(u){var h=u._point.round(),O=Math.round(u._radius),P=Math.round(u._radiusY||O);this._setPath(u,u._empty()?"M0 0":"AL "+h.x+","+h.y+" "+O+","+P+" 0,"+65535*360)},_setPath:function(u,h){u._path.v=h},_bringToFront:function(u){Ml(u._container)},_bringToBack:function(u){Ll(u._container)}},Yp=Fe.vml?hf:Se,pf=Eo.extend({_initContainer:function(){this._container=Yp("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Yp("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ft(this._container),_t(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Eo.prototype._update.call(this);var u=this._bounds,h=u.getSize(),O=this._container;(!this._svgSize||!this._svgSize.equals(h))&&(this._svgSize=h,O.setAttribute("width",h.x),O.setAttribute("height",h.y)),en(O,u.min),O.setAttribute("viewBox",[u.min.x,u.min.y,h.x,h.y].join(" ")),this.fire("update")}},_initPath:function(u){var h=u._path=Yp("path");u.options.className&&Xe(h,u.options.className),u.options.interactive&&Xe(h,"leaflet-interactive"),this._updateStyle(u),this._layers[c(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Ft(u._path),u.removeInteractiveTarget(u._path),delete this._layers[c(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var h=u._path,O=u.options;h&&(O.stroke?(h.setAttribute("stroke",O.color),h.setAttribute("stroke-opacity",O.opacity),h.setAttribute("stroke-width",O.weight),h.setAttribute("stroke-linecap",O.lineCap),h.setAttribute("stroke-linejoin",O.lineJoin),O.dashArray?h.setAttribute("stroke-dasharray",O.dashArray):h.removeAttribute("stroke-dasharray"),O.dashOffset?h.setAttribute("stroke-dashoffset",O.dashOffset):h.removeAttribute("stroke-dashoffset")):h.setAttribute("stroke","none"),O.fill?(h.setAttribute("fill",O.fillColor||O.color),h.setAttribute("fill-opacity",O.fillOpacity),h.setAttribute("fill-rule",O.fillRule||"evenodd")):h.setAttribute("fill","none"))},_updatePoly:function(u,h){this._setPath(u,se(u._parts,h))},_updateCircle:function(u){var h=u._point,O=Math.max(Math.round(u._radius),1),P=Math.max(Math.round(u._radiusY),1)||O,R="a"+O+","+P+" 0 1,0 ",G=u._empty()?"M0 0":"M"+(h.x-O)+","+h.y+R+O*2+",0 "+R+-O*2+",0 ";this._setPath(u,G)},_setPath:function(u,h){u._path.setAttribute("d",h)},_bringToFront:function(u){Ml(u._path)},_bringToBack:function(u){Ll(u._path)}});Fe.vml&&pf.include(Z9);function fT(u){return Fe.svg||Fe.vml?new pf(u):null}st.include({getRenderer:function(u){var h=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return h||(h=this._renderer=this._createRenderer()),this.hasLayer(h)||this.addLayer(h),h},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var h=this._paneRenderers[u];return h===void 0&&(h=this._createRenderer({pane:u}),this._paneRenderers[u]=h),h},_createRenderer:function(u){return this.options.preferCanvas&&uT(u)||fT(u)}});var dT=Il.extend({initialize:function(u,h){Il.prototype.initialize.call(this,this._boundsToLatLngs(u),h)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=te(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function X9(u,h){return new dT(u,h)}pf.create=Yp,pf.pointsToPath=se,So.geometryToLayer=zp,So.coordsToLatLng=$b,So.coordsToLatLngs=Vp,So.latLngToCoords=Ib,So.latLngsToCoords=Wp,So.getFeature=Dl,So.asFeature=Hp,st.mergeOptions({boxZoom:!0});var hT=Gi.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ye(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_t(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ft(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(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),of(),bb(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ye(document,{contextmenu:xs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ut("div","leaflet-zoom-box",this._container),Xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var h=new H(this._point,this._startPoint),O=h.getSize();en(this._box,h.min),this._box.style.width=O.x+"px",this._box.style.height=O.y+"px"},_finish:function(){this._moved&&(Ft(this._box),Yt(this._container,"leaflet-crosshair")),af(),_b(),_t(document,{contextmenu:xs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var h=new K(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(h).fire("boxzoomend",{boxZoomBounds:h})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});st.addInitHook("addHandler","boxZoom",hT),st.mergeOptions({doubleClickZoom:!0});var pT=Gi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var h=this._map,O=h.getZoom(),P=h.options.zoomDelta,R=u.originalEvent.shiftKey?O-P:O+P;h.options.doubleClickZoom==="center"?h.setZoom(R):h.setZoomAround(u.containerPoint,R)}});st.addInitHook("addHandler","doubleClickZoom",pT),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var mT=Gi.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new sa(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Xe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Yt(this._map._container,"leaflet-grab"),Yt(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 u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var h=te(this._map.options.maxBounds);this._offsetLimit=ee(this._map.latLngToContainerPoint(h.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(h.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var h=this._lastTime=+new Date,O=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(O),this._times.push(h),this._prunePositions(h)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),h=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=h.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,h){return u-(u-h)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),h=this._offsetLimit;u.x<h.min.x&&(u.x=this._viscousLimit(u.x,h.min.x)),u.y<h.min.y&&(u.y=this._viscousLimit(u.y,h.min.y)),u.x>h.max.x&&(u.x=this._viscousLimit(u.x,h.max.x)),u.y>h.max.y&&(u.y=this._viscousLimit(u.y,h.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,h=Math.round(u/2),O=this._initialWorldOffset,P=this._draggable._newPos.x,R=(P-h+O)%u+h-O,G=(P+h+O)%u-h-O,re=Math.abs(R+O)<Math.abs(G+O)?R:G;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=re},_onDragEnd:function(u){var h=this._map,O=h.options,P=!O.inertia||u.noInertia||this._times.length<2;if(h.fire("dragend",u),P)h.fire("moveend");else{this._prunePositions(+new Date);var R=this._lastPos.subtract(this._positions[0]),G=(this._lastTime-this._times[0])/1e3,re=O.easeLinearity,ce=R.multiplyBy(re/G),de=ce.distanceTo([0,0]),_e=Math.min(O.inertiaMaxSpeed,de),Le=ce.multiplyBy(_e/de),ze=_e/(O.inertiaDeceleration*re),Je=Le.multiplyBy(-ze/2).round();!Je.x&&!Je.y?h.fire("moveend"):(Je=h._limitOffset(Je,h.options.maxBounds),I(function(){h.panBy(Je,{duration:ze,easeLinearity:re,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",mT),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var vT=Gi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),Ye(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),_t(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 u=document.body,h=document.documentElement,O=u.scrollTop||h.scrollTop,P=u.scrollLeft||h.scrollLeft;this._map._container.focus(),window.scrollTo(P,O)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var h=this._panKeys={},O=this.keyCodes,P,R;for(P=0,R=O.left.length;P<R;P++)h[O.left[P]]=[-1*u,0];for(P=0,R=O.right.length;P<R;P++)h[O.right[P]]=[u,0];for(P=0,R=O.down.length;P<R;P++)h[O.down[P]]=[0,u];for(P=0,R=O.up.length;P<R;P++)h[O.up[P]]=[0,-1*u]},_setZoomDelta:function(u){var h=this._zoomKeys={},O=this.keyCodes,P,R;for(P=0,R=O.zoomIn.length;P<R;P++)h[O.zoomIn[P]]=u;for(P=0,R=O.zoomOut.length;P<R;P++)h[O.zoomOut[P]]=-u},_addHooks:function(){Ye(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){_t(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var h=u.keyCode,O=this._map,P;if(h in this._panKeys){if(!O._panAnim||!O._panAnim._inProgress)if(P=this._panKeys[h],u.shiftKey&&(P=B(P).multiplyBy(3)),O.options.maxBounds&&(P=O._limitOffset(B(P),O.options.maxBounds)),O.options.worldCopyJump){var R=O.wrapLatLng(O.unproject(O.project(O.getCenter()).add(P)));O.panTo(R)}else O.panBy(P)}else if(h in this._zoomKeys)O.setZoom(O.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[h]);else if(h===27&&O._popup&&O._popup.options.closeOnEscapeKey)O.closePopup();else return;xs(u)}}});st.addInitHook("addHandler","keyboard",vT),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var gT=Gi.extend({addHooks:function(){Ye(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){_t(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var h=UP(u),O=this._map.options.wheelDebounceTime;this._delta+=h,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var P=Math.max(O-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),P),xs(u)},_performZoom:function(){var u=this._map,h=u.getZoom(),O=this._map.options.zoomSnap||0;u._stop();var P=this._delta/(this._map.options.wheelPxPerZoomLevel*4),R=4*Math.log(2/(1+Math.exp(-Math.abs(P))))/Math.LN2,G=O?Math.ceil(R/O)*O:R,re=u._limitZoom(h+(this._delta>0?G:-G))-h;this._delta=0,this._startTime=null,re&&(u.options.scrollWheelZoom==="center"?u.setZoom(h+re):u.setZoomAround(this._lastMousePos,h+re))}});st.addInitHook("addHandler","scrollWheelZoom",gT);var Q9=600;st.mergeOptions({tapHold:Fe.touchNative&&Fe.safari&&Fe.mobile,tapTolerance:15});var yT=Gi.extend({addHooks:function(){Ye(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_t(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var h=u.touches[0];this._startPos=this._newPos=new Z(h.clientX,h.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Ye(document,"touchend",Pn),Ye(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),Q9),Ye(document,"touchend touchcancel contextmenu",this._cancel,this),Ye(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){_t(document,"touchend",Pn),_t(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),_t(document,"touchend touchcancel contextmenu",this._cancel,this),_t(document,"touchmove",this._onMove,this)},_onMove:function(u){var h=u.touches[0];this._newPos=new Z(h.clientX,h.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,h){var O=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:h.screenX,screenY:h.screenY,clientX:h.clientX,clientY:h.clientY});O._simulated=!0,h.target.dispatchEvent(O)}});st.addInitHook("addHandler","tapHold",yT),st.mergeOptions({touchZoom:Fe.touch,bounceAtZoomLimits:!0});var bT=Gi.extend({addHooks:function(){Xe(this._map._container,"leaflet-touch-zoom"),Ye(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Yt(this._map._container,"leaflet-touch-zoom"),_t(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var h=this._map;if(!(!u.touches||u.touches.length!==2||h._animatingZoom||this._zooming)){var O=h.mouseEventToContainerPoint(u.touches[0]),P=h.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=h.getSize()._divideBy(2),this._startLatLng=h.containerPointToLatLng(this._centerPoint),h.options.touchZoom!=="center"&&(this._pinchStartLatLng=h.containerPointToLatLng(O.add(P)._divideBy(2))),this._startDist=O.distanceTo(P),this._startZoom=h.getZoom(),this._moved=!1,this._zooming=!0,h._stop(),Ye(document,"touchmove",this._onTouchMove,this),Ye(document,"touchend touchcancel",this._onTouchEnd,this),Pn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var h=this._map,O=h.mouseEventToContainerPoint(u.touches[0]),P=h.mouseEventToContainerPoint(u.touches[1]),R=O.distanceTo(P)/this._startDist;if(this._zoom=h.getScaleZoom(R,this._startZoom),!h.options.bounceAtZoomLimits&&(this._zoom<h.getMinZoom()&&R<1||this._zoom>h.getMaxZoom()&&R>1)&&(this._zoom=h._limitZoom(this._zoom)),h.options.touchZoom==="center"){if(this._center=this._startLatLng,R===1)return}else{var G=O._add(P)._divideBy(2)._subtract(this._centerPoint);if(R===1&&G.x===0&&G.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(G),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),D(this._animRequest);var re=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=I(re,this,!0),Pn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,D(this._animRequest),_t(document,"touchmove",this._onTouchMove,this),_t(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))}});st.addInitHook("addHandler","touchZoom",bT),st.BoxZoom=hT,st.DoubleClickZoom=pT,st.Drag=mT,st.Keyboard=vT,st.ScrollWheelZoom=gT,st.TapHold=yT,st.TouchZoom=bT,n.Bounds=H,n.Browser=Fe,n.CRS=fe,n.Canvas=cT,n.Circle=Rb,n.CircleMarker=Up,n.Class=W,n.Control=yi,n.DivIcon=aT,n.DivOverlay=qi,n.DomEvent=v9,n.DomUtil=p9,n.Draggable=sa,n.Evented=ne,n.FeatureGroup=wo,n.GeoJSON=So,n.GridLayer=df,n.Handler=Gi,n.Icon=$l,n.ImageOverlay=Gp,n.LatLng=ie,n.LatLngBounds=K,n.Layer=bi,n.LayerGroup=Rl,n.LineUtil=j9,n.Map=st,n.Marker=Bp,n.Mixin=O9,n.Path=la,n.Point=Z,n.PolyUtil=S9,n.Polygon=Il,n.Polyline=Oo,n.Popup=qp,n.PosAnimation=zP,n.Projection=A9,n.Rectangle=dT,n.Renderer=Eo,n.SVG=pf,n.SVGOverlay=oT,n.TileLayer=Fl,n.Tooltip=Kp,n.Transformation=J,n.Util=q,n.VideoOverlay=iT,n.bind=a,n.bounds=ee,n.canvas=uT,n.circle=D9,n.circleMarker=I9,n.control=cf,n.divIcon=q9,n.extend=i,n.featureGroup=L9,n.geoJSON=rT,n.geoJson=U9,n.gridLayer=K9,n.icon=R9,n.imageOverlay=z9,n.latLng=ae,n.latLngBounds=te,n.layerGroup=M9,n.map=g9,n.marker=$9,n.point=B,n.polygon=B9,n.polyline=F9,n.popup=H9,n.rectangle=X9,n.setOptions=g,n.stamp=c,n.svg=fT,n.svgOverlay=W9,n.tileLayer=sT,n.tooltip=G9,n.transformation=Y,n.version=r,n.videoOverlay=V9;var J9=window.L;n.noConflict=function(){return window.L=J9,this},window.L=n})})(IO,IO.exports);var wp=IO.exports;const WL=at(wp);function eP(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function tP(e,t){return t==null?function(r,i){const o=M.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=M.useRef();o.current||(o.current=e(r,i));const a=M.useRef(r),{instance:s}=o.current;return M.useEffect(function(){a.current!==r&&(t(s,r,a.current),a.current=r)},[s,r,i]),o}}function qke(e,t){M.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 k7(e){return function(n){const r=j7(),i=e(JC(n,r),r);return C7(r.map,n.attribution),A7(i.current,n.eventHandlers),qke(i.current,r),i}}function Kke(e,t){const n=tP(e,t),r=k7(n);return Vke(r)}function Yke(e,t){const n=tP(e),r=Gke(n,t);return Wke(r)}function Zke(e,t){const n=tP(e,t),r=k7(n);return Hke(r)}function Xke(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 DO(){return DO=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},DO.apply(this,arguments)}function Qke({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:c,zoom:l,...f},d){const[p]=M.useState({className:i,id:o,style:s}),[v,y]=M.useState(null);M.useImperativeHandle(d,()=>(v==null?void 0:v.map)??null,[v]);const g=M.useCallback(_=>{if(_!==null&&v===null){const b=new wp.Map(_,f);n!=null&&l!=null?b.setView(n,l):e!=null&&b.fitBounds(e,t),c!=null&&b.whenReady(c),y(Uke(b))}},[]);M.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const x=v?V.createElement(T7,{value:v},r):a??null;return V.createElement("div",DO({},p,{ref:g}),x)}const Jke=M.forwardRef(Qke),eNe=Kke(function({position:t,...n},r){const i=new wp.Marker(t,n);return eP(i,zke(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())}),tNe=Yke(function(t,n){const r=new wp.Popup(t,n.overlayContainer);return eP(r,n)},function(t,n,{position:r},i){M.useEffect(function(){const{instance:a}=t;function s(l){l.popup===a&&(a.update(),i(!0))}function c(l){l.popup===a&&i(!1)}return n.map.on({popupopen:s,popupclose:c}),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:c}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(a)}},[t,n,i,r])}),nNe=Zke(function({url:t,...n},r){const i=new wp.TileLayer(t,JC(n,r));return eP(i,r)},function(t,n,r){Xke(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),rNe={"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"},N7={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"},Zt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Gn={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"},ga={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 c=be.map([t,n],l=>{const f=a-be.getVersionPrecision(l),d=l+new Array(f+1).join(".0");return be.map(d.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}}static map(t,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(c=>{r[c]=a[c]})}return t}static getBrowserAlias(t){return rNe[t]}static getBrowserTypeByAlias(t){return N7[t]||""}}const gt=/version\/(\d+(\.?_?\d+)+)/i,iNe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||be.getFirstMatch(gt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(gt,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(gt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=be.getFirstMatch(gt,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(gt,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(gt,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(gt,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(gt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=be.getFirstMatch(gt,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(gt,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(gt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=be.getFirstMatch(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=be.getFirstMatch(gt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=be.getFirstMatch(gt,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)}}}],oNe=[{test:[/Roku\/DVP/],describe(e){const t=be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Gn.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Gn.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:Gn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Gn.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:Gn.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:Gn.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:Gn.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:Gn.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:Gn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Gn.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Gn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Gn.Linux}}},{test:[/CrOS/],describe(){return{name:Gn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Gn.PlayStation4,version:t}}}],aNe=[{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:Zt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Zt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Zt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Zt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Zt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Zt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Zt.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:Zt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Zt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Zt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Zt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Zt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Zt.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Zt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Zt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Zt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Zt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Zt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Zt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Zt.tv}}}],sNe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ga.Blink};const n=be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ga.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:ga.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:ga.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:ga.Gecko},n=be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ga.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:ga.WebKit},n=be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class HL{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(iNe,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(oNe,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(aNe,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(sNe,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 c=t[s];typeof c=="string"?(i[s]=c,o+=1):typeof c=="object"&&(n[s]=c,r+=1)}),r>0){const s=Object.keys(n),c=be.find(s,f=>this.isOS(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}const l=be.find(s,f=>this.isPlatform(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}}if(o>0){const s=Object.keys(i),c=be.find(s,l=>this.isBrowser(l,!0));if(c!==void 0)return this.compareVersion(i[c])}}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 lNe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new HL(t,n)}static parse(t){return new HL(t).getResult()}static get BROWSER_MAP(){return N7}static get ENGINE_MAP(){return ga}static get OS_MAP(){return Gn}static get PLATFORMS_MAP(){return Zt}}var cNe=Object.defineProperty,uNe=(e,t,n)=>t in e?cNe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ga=(e,t,n)=>uNe(e,typeof t!="symbol"?t+"":t,n);const fNe=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,a]=Rt(),{domains:s}=n,c=!t,l=M.useCallback(()=>{r(""),a()},[r,a]),f=M.useCallback(()=>{r(""),o()},[r,o]);return M.useEffect(()=>{e()},[e]),i?m.jsxs(o0,{children:[m.jsx(Nn,{value:t??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),m.jsx(qe,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:l,children:m.jsx(je,{icon:Xq})}),m.jsx(Ur,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):m.jsxs(ra,{text:c?"Domain":`Domain: ${t}`,className:c?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:d,isDefault:p})=>m.jsxs(Ne,{active:(t===d||p)&&c,onClick:()=>r(d),className:"d-flex justify-content-between align-items-center",children:[d,p&&m.jsx("span",{className:"text-muted",children:"default"})]},d)),m.jsx(Ne,{divider:!0}),m.jsx(Ne,{onClick:f,children:m.jsx("i",{children:"New domain"})})]})},dNe=e=>(e==null?void 0:e.type)===$E.INVALID_ARGUMENT,hNe=e=>(e==null?void 0:e.type)===$E.INVALID_SHORT_URL_DELETION,pNe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Vr=e=>pNe(e)?e:void 0,nP=e=>"error"in e,go=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,dNe(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),xl=({style:e,className:t,...n})=>m.jsx("button",{type:"button",className:Ee("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),M7=M.createContext(""),mNe=M7.Provider,vs=()=>M.useContext(M7),L7=M.createContext(void 0),{Provider:rP}=L7,ib=()=>M.useContext(L7),vNe=5,iP=()=>{const[e,t]=M.useState([]),n=M.useMemo(()=>e.length>=vNe,[e.length]),r=M.useCallback(s=>!n&&t(c=>[...c,s]),[n]),i=M.useCallback(s=>!n&&e.every(c=>c.name!==s),[e,n]),o=M.useCallback(s=>t(c=>c.filter(l=>l!==s)),[]),a=M.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},oP=({className:e,type:t})=>{const n=vs(),r=ib(),i=M.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(c=>c.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return m.jsx("div",{className:Ee("top-sticky",e),children:m.jsxs(yt,{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((c,l)=>{var f;return m.jsxs("li",{className:Ee("badge pe-1",{"bg-secondary":!((f=c.style)!=null&&f.backgroundColor)}),style:c.style,children:[c.name,m.jsx(xl,{"aria-label":`Remove ${c.name}`,className:"fw-bold fs-6",onClick:()=>s(c),children:"×"})]},`${c.name}_${l}`)})}),m.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[m.jsxs(qe,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:At,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[m.jsx(je,{icon:Qy,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),m.jsx(qe,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},Ed=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,gNe=(e,t)=>!e.domain&&t===ab?!0:e.domain===t,yNe=(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}},R7=e=>e.replaceAll("/","__"),aP=e=>e.replaceAll("__","/"),sP=({domain:e,shortCode:t})=>`${e??ab}__${R7(t)}`,$7=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===ab?null:t,shortCode:aP(n)}},bNe="yyyy-MM-dd",I7="yyyy-MM-dd HH:mm",ts=()=>new Date,lP=e=>typeof e!="string",cP=(e,t)=>!e||!lP(e)?e:t?xg(e,t):qoe(e),ns=e=>cP(e,void 0),Na=e=>cP(e,bNe),Gh=e=>cP(e,I7),Tr=e=>lP(e)?e:Qa(e),Op=(e,t,n)=>{const r=Tr(e),i=t&&Tr(t),o=n&&Tr(n);if(i&&o)try{return Zoe(r,{start:i,end:o})}catch{return!1}return i?i2(r,i)||Yoe(r,i):o?i2(r,o)||wg(r,o):!0},Cs=(e,t)=>i2(e,t)||wg(e,t),ob="all",D7={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[ob]:void 0},F7=Object.keys(D7),_Ne=e=>!e||!e.startDate&&!e.endDate,wy=e=>typeof e=="string"&&F7.includes(e),xNe=F7.filter(e=>e!==ob),GL=e=>e?Tr(e):null,B7=(e,t)=>({startDate:GL(e),endDate:GL(t)}),wNe=e=>{if(!(!e||_Ne(e)))return e.startDate&&!e.endDate?`Since ${Na(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Na(e.endDate)}`:`${Na(e.startDate)} - ${Na(e.endDate)}`},U7=e=>{if(!(!e||e===ob))return wy(e)?D7[e]:wNe(e)},ni=e=>vl(Og(ts(),e)),Ql=e=>({startDate:e,endDate:eu(ts())}),z7=e=>{var t;return((t=[[()=>e==="today",()=>Ql(vl(ts()))],[()=>e==="yesterday",()=>({startDate:ni(1),endDate:eu(Og(ts(),1))})],[()=>e==="last7Days",()=>Ql(ni(7))],[()=>e==="last30Days",()=>Ql(ni(30))],[()=>e==="last90Days",()=>Ql(ni(90))],[()=>e==="last180Days",()=>Ql(ni(180))],[()=>e==="last365Days",()=>Ql(ni(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},ONe=e=>{var t;const n=Tr(e);return((t=[[()=>Cs(vl(ts()),n),"today"],[()=>Cs(ni(1),n),"yesterday"],[()=>Cs(ni(7),n),"last7Days"],[()=>Cs(ni(30),n),"last30Days"],[()=>Cs(ni(90),n),"last90Days"],[()=>Cs(ni(180),n),"last180Days"],[()=>Cs(ni(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??ob},V7=e=>wy(e)?z7(e):e,W7=e=>!!(e&&e.startDate),SNe=({startDate:e,endDate:t})=>{const n=dp(eu(t??new Date),vl(e))+1,r=Og(vl(e),n),i=Og(eu(e),1);return{startDate:r,endDate:i}},ENe=e=>{if(W7(e))return dp(e.endDate??new Date,e.startDate)},uP=e=>e.type!==void 0,CNe=e=>e.type!==void 0,PNe=e=>{const t=Aie(e,n=>uP(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},H7=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Ed(o,t,n)&&Op(a.date,i,r)),G7=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&gNe(i,t)&&Op(o.date,r,n)),q7=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&Op(o.date,r,n)),Lm=(e,t)=>PD(e,n=>n[t]),TNe=e=>{const t=((e==null?void 0:e.startDate)&&ns(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&ns(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},FO=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=TNe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},jNe=e=>W7(e.dateRange),ANe=({dateRange:e,...t})=>({...t,dateRange:SNe(e)}),un=(e,t)=>CD(e,t,{serializeError:n=>n}),qL=5e3,kNe=2,NNe=4,MNe=({currentPage:e,pagesCount:t})=>e>=t,LNe=(e,t)=>t*100/e,K7=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async c=>e({...a,page:c,itemsPerPage:qL}).then(({data:l})=>l))).then(c=>c.flat()),o=async(a,s,c=0)=>{if(t())return[];const l=await i(a,s[c]);return n(LNe(s.length,c+1)),c<s.length-1?l.concat(await o(a,s,c+1)):l};return async a=>{const{pagination:s,data:c}=await e({...a,page:1,itemsPerPage:qL});if(MNe(s))return c;const l=IE(kNe,s.pagesCount+1),f=Mc(l,r);return s.pagesCount-1>r&&n(0),c.concat(await o(a,f))}},Sp=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),Ep=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=er(`${e}/progressChanged`),i=er(`${e}/fallbackToInterval`),o=un(e,async(a,{getState:s,dispatch:c})=>{var l;const{params:f,options:d}=a,{visitsLoader:p,lastVisitLoader:v}=t(a),y=ENe(f.dateRange),g=FO(f),x=d.loadPrevInterval&&jNe(f)?FO(ANe(f)):void 0,_=NNe/(x?2:1),b=x?{main:0,prev:0}:{main:0},w=(A,F)=>{b[A]=F;const k=Object.values(b),I=k.reduce((D,q)=>D+q,0);c(r(I/k.length))},S=K7({visitsLoader:p,shouldCancel:()=>n(s),progressChanged:A=>w("main",A),batchSize:_}),[E,C,T]=await Promise.all([S(g),v((l=f.filter)==null?void 0:l.excludeBots),x?S(x).then(A=>A.map(F=>{if(y===void 0)return F;const{date:k,...I}=F,D=FE(Tr(k),y);return{...I,date:ns(D)}})):Promise.resolve(void 0)]);return!E.length&&C&&c(i(ONe(C.date))),{...a,visits:E,prevVisits:T}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},Xu=er("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Cp=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:c,fallbackToInterval:l}=t,{reducer:f,actions:d}=Qt({name:e,initialState:n,reducers:{cancelGetVisits:v=>({...v,cancelLoad:!0})},extraReducers:v=>{v.addCase(o,()=>({...n,loading:!0})),v.addCase(a,(y,{error:g})=>({...n,errorData:Vr(g)??null})),v.addCase(s,(y,{payload:g})=>({...y,...g,loading:!1,progress:null,errorData:null})),v.addCase(c,(y,{payload:g})=>({...y,progress:g})),v.addCase(l,(y,{payload:g})=>({...y,fallbackInterval:g})),v.addCase(Xu,(y,{payload:g})=>{const{visits:x}=y,_=r(y,g.createdVisits).map(({visit:b})=>b);return _.length?{...y,visits:[..._,...x]}:y}),i==null||i(v)}}),{cancelGetVisits:p}=d;return{reducer:f,cancelGetVisits:p}},Y7="shlink/domainVisits",ab="DEFAULT",RNe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},$Ne=e=>Ep({typePrefix:`${Y7}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=Sp(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),INe=e=>Cp({name:Y7,initialState:RNe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>G7(r,t,n==null?void 0:n.dateRange)}),uv=({className:e="",placement:t,children:n})=>{const r=$i();return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:e,ref:r,children:m.jsx(je,{icon:tE})}),m.jsx(Ur,{target:r,placement:t,children:n})]})},Z7=e=>t=>{t.preventDefault(),e()},fP=(e,t,n=1)=>IE(n,e+1).map(t),DNe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,Fs=e=>e!=null&&!DNe(e),l_=e=>e||null,BO=e=>e?"true":"false",c_=e=>e===void 0?void 0:BO(e),u_=({isLast:e,...t})=>m.jsx(av,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),FNe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,c]=M.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[l,f]=M.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[d,p]=M.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),v=Z7(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:l_(s),regular404Redirect:l_(l),invalidShortUrlRedirect:l_(d)}}).then(t));return m.jsx(br,{isOpen:e,toggle:t,centered:!0,children:m.jsxs("form",{name:"domainRedirectsModal",onSubmit:v,children:[m.jsxs(bo,{toggle:t,children:["Edit redirects for ",m.jsx("b",{children:n.domain})]}),m.jsxs(Ii,{children:[m.jsxs(u_,{value:s,onChange:c,children:[m.jsxs(uv,{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(u_,{value:l,onChange:f,children:[m.jsxs(uv,{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(u_,{value:d,isLast:!0,onChange:p,children:[m.jsx(uv,{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(us,{children:[m.jsx(qe,{color:"link",type:"button",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"primary",children:"Save"})]})]})})},BNe=({domain:e,editDomainRedirects:t})=>{const[n,r]=Rt(),i=vs(),o=ib();return m.jsxs(s0,{children:[m.jsxs(Ne,{tag:At,to:`${i}/domain/${e.domain}${e.isDefault?`_${ab}`:""}/visits`,children:[m.jsx(je,{icon:eE,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:Qy,fixedWidth:!0})," Compare visits"]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{onClick:r,children:[m.jsx(je,{fixedWidth:!0,icon:JS})," Edit redirects"]}),m.jsx(FNe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},UNe=(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 wae({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},zNe=(e,t)=>{const[n,r]=M.useState(t),i=M.useCallback(o=>{const{location:a,history:s}=window,c=sD(a.search);c[e]=o,s.pushState(null,"",`${a.pathname}?${a0(c)}`),r(o)},[e]);return[n,i]},dP=e=>{const t=Au();return M.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},VNe=()=>{const e=yo();return M.useCallback(()=>e(-1),[e])},hP=(e,t)=>{const n=M.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=M.useState(n());return M.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},WNe=(e,t,n)=>{M.useEffect(()=>{if(!n)return()=>{};const r=i=>i.key===e&&t();return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[n,t,e])},HNe=({status:e,matchMedia:t=window.matchMedia})=>{const n=$i(),r=hP(991,t);return e==="validating"?m.jsx(je,{fixedWidth:!0,icon:P6,spin:!0}):m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:n,children:e==="valid"?m.jsx(je,{fixedWidth:!0,icon:Gd,className:"text-muted"}):m.jsx(je,{fixedWidth:!0,icon:gx,className:"text-danger"})}),m.jsx(Ur,{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(vr,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},f_=({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)"})]})]}),GNe=()=>m.jsxs(m.Fragment,{children:[m.jsx(je,{fixedWidth:!0,icon:Mq,className:"text-primary",id:"defaultDomainIcon"}),m.jsx(Ur,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),qNe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return M.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(GNe,{})}),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(f_,{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(f_,{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(f_,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:m.jsx(HNe,{status:s})}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(BNe,{domain:e,editDomainRedirects:t})})]})},KL=[{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}],KNe=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var o;const{filteredDomains:a,defaultRedirects:s,loading:c,error:l,errorData:f}=t,d=s??((o=a.find(({isDefault:v})=>v))==null?void 0:o.redirects),p=iP();return M.useEffect(()=>{e()},[e]),c?m.jsx(Ho,{loading:!0}):m.jsxs(rP,{value:p,children:[m.jsx(lp,{className:"mb-3",onChange:n}),m.jsx(oP,{type:"domains",className:"mb-3"}),l?m.jsx(Jn,{type:"error",children:m.jsx(go,{errorData:f,fallbackMessage:"Error loading domains :("})}):m.jsx(yt,{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:KL.map((v,y)=>m.jsx("th",{children:m.jsx("span",{className:v.isHidden?"sr-only":void 0,children:v.value})},y))})}),m.jsxs("tbody",{children:[a.length<1&&m.jsx("tr",{children:m.jsx("td",{colSpan:KL.length,className:"text-center",children:"No results found"})}),a.map(v=>m.jsx(qNe,{domain:v,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:d},v.domain))]})]})})]})},YNe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",ZNe=e=>un(YNe,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Rm="shlink/domainsList",$m={domains:[],filteredDomains:[],loading:!1,error:!1},YL=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},ZL=(e,t)=>n=>n.domain!==e?n:{...n,status:t},XNe=(e,t)=>{const n=un(`${Rm}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(c=>({...c,status:"validating"})),defaultRedirects:s}}),r=un(`${Rm}/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=er(`${Rm}/filterDomains`),{reducer:o}=Qt({name:Rm,initialState:$m,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...$m,loading:!0})),a.addCase(n.rejected,(s,{error:c})=>({...$m,error:!0,errorData:Vr(c)})),a.addCase(n.fulfilled,(s,{payload:c})=>({...$m,...c,filteredDomains:c.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:c,...l},{payload:f})=>({...l,domains:s.map(ZL(f.domain,f.status)),filteredDomains:c.map(ZL(f.domain,f.status))})),a.addCase(i,(s,{payload:c})=>({...s,filteredDomains:s.domains.filter(({domain:l})=>l.toLowerCase().match(c.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:c})=>({...s,domains:s.domains.map(YL(c)),filteredDomains:s.filteredDomains.map(YL(c))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},QNe=(e,t)=>{e.serviceFactory("DomainSelector",()=>fNe),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>KNe),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",XNe,"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",ZNe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},XL="shlink/mercure",JNe={loading:!0,error:!1},eMe=e=>{const t=un(`${XL}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Qt({name:XL,initialState:JNe,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}},tMe=e=>{e.serviceFactory("mercureInfoReducerCreator",eMe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function $t(e){return M.useRef(e).current}function It(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const nMe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const c=({data:d})=>n(JSON.parse(d)),l=({status:d})=>d===401&&r(),f=t.map(d=>{const p=new URL(i);p.searchParams.append("topic",d);const v=new Oae.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return v.onmessage=c,v.onerror=l,v});return()=>f.forEach(d=>d.close())};function Ui(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=Pu();return M.useEffect(()=>{const{interval:c}=a,l=v=>c?n.add(v):i([v]),f=t(s),d=nMe(a,f,l,o);if(!c)return d;const p=setInterval(()=>{i([...n]),n.clear()},c*1e3*60);return()=>{clearInterval(p),d==null||d()}},[i,o,a,s]),m.jsx(e,{...r})}}class nr{}Ga(nr,"visits","https://shlink.io/new-visit"),Ga(nr,"orphanVisits","https://shlink.io/new-orphan-visit"),Ga(nr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const pP="shlink/shortUrlDeletion",QL={shortCode:"",loading:!1,deleted:!1,error:!1},rMe=e=>un(`${pP}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),X7=er(`${pP}/shortUrlDeleted`),iMe=e=>{const{actions:t,reducer:n}=Qt({name:pP,initialState:QL,reducers:{resetDeleteShortUrl:()=>QL},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Vr(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}},Q7="shlink/shortUrlsList",J7=5,oMe={loading:!0,error:!1},aMe=e=>un(`${Q7}/listShortUrls`,t=>e().listShortUrls(t??{})),sMe=(e,t,n)=>Qt({name:Q7,initialState:oMe,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,J7-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:c}=o;return Ed(a,s,c)?o:a}))}),r.addCase(X7,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Ed(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Xu,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:c})=>c&&Ed(a,c.shortCode,c.domain)))==null?void 0:s.shortUrl)??a}))})}}),JL=10,{ceil:lMe}=Math,cMe=new Intl.NumberFormat("en-US"),qt=e=>cMe.format(Number(e)),uMe=e=>lMe(e/JL)*JL,UO=({children:e,title:t,link:n,tooltip:r})=>{const i=$i();return m.jsxs(m.Fragment,{children:[m.jsxs(Br,{innerRef:i,className:"highlight-card",body:!0,tag:At,to:n,children:[m.jsx(je,{size:"3x",className:"highlight-card__link-icon",icon:Iae}),m.jsx(KI,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),m.jsx(qI,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&m.jsx(Ur,{target:i,placement:"bottom",children:r})]})},e4=({loading:e,excludeBots:t,visitsSummary:n,...r})=>m.jsx(UO,{tooltip:n.bots!==void 0?m.jsxs(m.Fragment,{children:[t?"Plus":"Including"," ",m.jsx("strong",{children:qt(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":qt(t&&n.nonBots?n.nonBots:n.total)}),t4=({children:e,titleLinkText:t,titleLink:n,title:r})=>m.jsxs(Br,{children:[m.jsxs(ap,{className:"d-flex justify-content-between align-items-center",children:[m.jsx("span",{className:"d-sm-none",children:r}),m.jsx("h5",{className:"d-none d-sm-inline m-0",children:r}),m.jsxs(At,{to:n,children:[t," »"]})]}),m.jsx(op,{children:e})]}),eB=Ui(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=$t(eB),{loading:s,shortUrls:c}=e,{loading:l}=n,{loading:f,nonOrphanVisits:d,orphanVisits:p}=i,v=vs(),y=yo(),g=or("visits");return M.useEffect(()=>{t({itemsPerPage:J7,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),m.jsxs(m.Fragment,{children:[m.jsxs(Kn,{children:[m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(e4,{title:"Visits",link:`${v}/non-orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:d})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(e4,{title:"Orphan visits",link:`${v}/orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:p})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(UO,{title:"Short URLs",link:`${v}/list-short-urls/1`,children:s?"Loading...":qt((c==null?void 0:c.pagination.totalItems)??0)})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(UO,{title:"Tags",link:`${v}/manage-tags`,children:l?"Loading...":qt(n.tags.length)})})]}),m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx(t4,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${v}/create-short-url`,children:m.jsx(a,{basicMode:!0})}),m.jsx(t4,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${v}/list-short-urls/1`,children:m.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:x=>y(`${v}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[nr.visits,nr.orphanVisits]),fMe=It(eB,["ShortUrlsTable","CreateShortUrl"]);function dMe(e,t){e.factory("Overview",fMe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const tB="shlink/setShortUrlRedirectRules",n4={saving:!1,saved:!1,error:!1},hMe=e=>un(`${tB}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules(r,i,n)}),pMe=e=>{const{reducer:t,actions:n}=Qt({name:tB,initialState:n4,reducers:{resetSetRules:()=>n4},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:Vr(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},nB="shlink/getShortUrlRedirectRules",mMe={loading:!0,error:!1},vMe=e=>un(`${nB}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules(t,n)),gMe=e=>Qt({name:nB,initialState:mMe,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 yMe(e,t){var n=!1;return function(...r){n||(e.call(null,...r),n=!0,setTimeout(function(){n=!1},t))}}function rB(e){return e.split(" ").filter(t=>t)}var iB=typeof window<"u";function wl(e,t,n=!1){if(!t)return;const r=rB(t);if(r.length&&!r.includes("longTouch"))for(const i of e){if(!Pp(i)||!uo.has(i)){i.classList.add(...r);continue}const o=[],a=uo.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,uo.set(i,a)}}}function Oy(e,t){if(!t)return;const n=rB(t);if(n.length)for(const r of e){if(!Pp(r)){r.classList.remove(...n);continue}const i=uo.get(r);if(i)for(const o of n)i.privateClasses.includes(o)||r.classList.remove(o)}}function oB(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 bMe(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(!Pp(r))return;let i,o=!0;for(;r&&o;){if(uo.has(r)||ji.has(r)){o=!1,i=ji.has(r);break}r=r.parentNode}if(i){const a=ji.get(r);return a?{parent:{el:r,data:a}}:void 0}else{const a=uo.get(r);if(!a)return;const s=ji.get(r.parentNode);return s?{node:{el:r,data:a},parent:{el:r.parentNode,data:s}}:void 0}}function Pp(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function aB(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 sB(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(!Pp(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];sB(o,a,n)}}function Al(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}Array();var r4={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},uo=new WeakMap,ji=new WeakMap,Ge=void 0;function _Me(){Ge=void 0}function lB(e){return Ge={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},Ge}function xMe(e,t){return Ge={...e,...t},Ge}function cB(e){const{x:t,y:n}=Al(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:oB(e.targetData.node.el)}}function wMe(e,t){const n=uB(e),r=[...zO(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,VO(t.targetData.parent.el,t.targetData.parent.data,[...r])}function zO(e,t){return[...t.getValues(e)]}function VO(e,t,n){t.setValues(n,e)}function uB(e){return[...e.draggedNodes.map(t=>t.data.value)]}function OMe({parent:e,getValues:t,setValues:n,config:r={}}){var i,o;if(!iB)return;document.addEventListener("dragover",s=>{if(s.preventDefault(),Ge){Ge.remapJustFinished=!1,Ge.lastTargetValue=void 0;const{x:c,y:l}=Al(s);Ge.coordinates.y=l,Ge.coordinates.x=c,sb()}}),fB(e);const a={getValues:t,setValues:n,config:{handleDragstart:PMe,handleDragoverNode:JMe,handleDragoverParent:eLe,handleEnd:IMe,handleTouchstart:FMe,handleTouchmove:VMe,handleTouchOverNode:NMe,handleTouchOverParent:tLe,performSort:wMe,performTransfer:oLe,root:document,setupNode:MMe,setupNodeRemap:pB,reapplyDragClasses:LMe,tearDownNode:$Me,tearDownNodeRemap:RMe,remapFinished:CMe,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{}};SMe(e,a),(i=r.plugins)==null||i.forEach(s=>{var c,l;(l=(c=s(e))==null?void 0:c.tearDown)==null||l.call(c)}),(o=r.plugins)==null||o.forEach(s=>{var c,l;(l=(c=s(e))==null?void 0:c.setup)==null||l.call(c)}),dB(e,!0)}function fB(e){const t=ji.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function SMe(e,t){new MutationObserver(EMe).observe(e,{childList:!0}),ji.set(e,t),t.abortControllers.mainParent=aB(e,{dragover:aLe(yMe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function EMe(e){const t=e[0].target;t instanceof HTMLElement&&dB(t)}function dB(e,t){const n=ji.get(e);if(!n)return;const r=[],i=n.config;for(let s=0;s<e.children.length;s++){const c=e.children[s];if(!Pp(c))continue;const l=uo.get(c);(t||!l)&&i.tearDownNode({node:c,parent:e,nodeData:l,parentData:n}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(c))&&r.push(c)}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 c=r[s],l=uo.get(c),f=Object.assign(l??{privateClasses:[],abortControllers:{}},{value:o[s],index:s});if(Ge&&f.value===Ge.draggedNode.data.value&&(Ge.draggedNode.data=f,Ge.draggedNode.el=c),Ge&&Ge.draggedNodes.map(p=>p.data.value).includes(f.value)){const p=Ge.draggedNodes.find(v=>v.data.value===f.value);p&&(p.el=c)}a.push({el:c,data:f});const d={node:c,parent:e,parentData:n,nodeData:f};(t||!l)&&i.setupNode(d),pB(d)}ji.set(e,{...n,enabledNodes:a}),i.remapFinished(n)}function CMe(){Ge&&(Ge.preventEnter=!1,Ge.swappedNodeValue=void 0,Ge.remapJustFinished=!0)}function PMe(e){e.e instanceof DragEvent&&kMe({e:e.e,targetData:e.targetData})}function TMe(e,t,n){wl([e],t),setTimeout(()=>{Oy([e],t),wl([e],n)})}function jMe(e){const t=lB(cB(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 hB(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=Al(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 AMe(e){if(!hB(e))return;const t=BMe(e);UMe(e,t),zMe(e,t)}function kMe(e){if(!hB(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,n=jMe(e),r=e.targetData.node.el.style.zIndex;n.originalZIndex=r,e.targetData.node.el.style.zIndex="9999",TMe(n.draggedNode.el,t.draggingClass,t.dropZoneClass)}function NMe(e){Ge&&(e.detail.targetData.parent.el===Ge.lastParent.el?gB(e.detail,Ge):lb(e.detail,Ge))}function MMe(e){var t;const n=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=aB(e.node,{dragstart:Jl(n.handleDragstart),dragover:Jl(n.handleDragoverNode),dragend:Jl(n.handleEnd),touchstart:Jl(n.handleTouchstart),touchmove:Jl(n.handleTouchmove),touchend:Jl(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 pB(e){var t;uo.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 LMe(e,t){if(!Ge)return;const n="touchedNode"in Ge?t.config.touchDropZoneClass:t.config.dropZoneClass;Ge.draggedNode.el===e&&wl([e],n,!0)}function RMe(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 $Me(e){var t,n,r,i,o;(t=e.parentData.config.plugins)==null||t.forEach(a=>{var s,c;(c=(s=a(e.parent))==null?void 0:s.tearDownNode)==null||c.call(s,e)}),e.node.draggable=!1,(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 IMe(e){Ge&&(DMe(e,Ge),_Me())}function DMe(e,t){var n,r,i,o;document.removeEventListener("contextmenu",mB),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(n=ji.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),wl(t.draggedNodes.map(c=>c.el),s,!0),Oy(t.draggedNodes.map(c=>c.el),s),a!=null&&a.longTouchClass&&Oy(t.draggedNodes.map(c=>c.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 FMe(e){e.e instanceof TouchEvent&&AMe({e:e.e,targetData:e.targetData})}function BMe(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),n=e.targetData.node.el.getBoundingClientRect();return xMe(lB(cB(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:oB(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 mB(e){e.preventDefault()}function UMe(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),sB(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",mB)}function zMe(e,t){const n=e.targetData.parent.data.config;n.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,n.longTouchClass&&e.e.cancelable&&wl(t.draggedNodes.map(r=>r.el),n.longTouchClass),e.e.preventDefault())},n.longTouchTimeout||200))}function VMe(e){!Ge||!("touchedNode"in Ge)||QMe(e,Ge)}function WMe(e,t){t.longTouchClass&&Oy(e.draggedNodes.map(n=>n.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&wl([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&wl(e.draggedNodes.map(n=>n.el),t.touchDropZoneClass)}function HMe(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 GMe(e){const t=HMe(Ge);if(t)switch(e){case"down":return ZMe(t.state,t);case"up":return YMe(t.state,t);case"right":return qMe(t.state,t);case"left":return KMe(t.state,t)}}function qMe(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 KMe(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 YMe(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 ZMe(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 XMe(e,t){t.touchMoving=!0,t.touchedNode.style.display=t.touchedNodeDisplay||"";const{x:n,y:r}=Al(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`,WMe(t,e.targetData.parent.data.config)}function QMe(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),XMe(e,t),sb();const n=bMe(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 sb(){for(const e of Object.keys(r4)){const[t,n]=r4[e];vB(e,t,n)}}function vB(e,t,n){const r=GMe(e);r&&(r.scrollParent.scrollBy(t,n),setTimeout(()=>{vB(e,t,n)},"touchedNode"in r?10:100))}function JMe(e){if(!Ge)return;const{x:t,y:n}=Al(e.e);Ge.coordinates.y=n,Ge.coordinates.x=t,sb(),rLe(e,Ge)}function eLe(e){if(!Ge)return;const{x:t,y:n}=Al(e.e);Ge.coordinates.y=n,Ge.coordinates.x=t,sb(),lb(e,Ge)}function tLe(e){Ge&&lb(e.detail,Ge)}function nLe(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 rLe(e,t){var n;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((n=t.lastParent)==null?void 0:n.el)?gB(e,t):lb(e,t)}function iLe(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(p=>p.el).includes(e.targetData.node.el)||t.preventEnter||t.swappedNodeValue===e.targetData.node.data.value||e.targetData.parent.el!==((i=t.lastParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1)return!1;const o=e.targetData.node.el.getBoundingClientRect(),a=t.draggedNode.el.getBoundingClientRect(),s=o.y-a.y,c=o.x-a.x;let l;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(p=>f[0]<=p.data.index&&p.data.index<=f[1]&&p.el!==t.draggedNode.el),Math.abs(s)>Math.abs(c)?l=s>0?"above":"below":l=c>0?"left":"right";const d=t.lastParent.data.config.threshold;switch(l){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 gB(e,t){const{x:n,y:r}=Al(e.e);iLe(e,t,n,r)&&(t.swappedNodeValue=e.targetData.node.data.value,t.preventEnter=!0,e.targetData.parent.data.config.performSort(t,e))}function Jl(e){function t(n){var r;const i=uo.get(n),o=n.parentNode||((r=Ge==null?void 0:Ge.lastParent)==null?void 0:r.el);if(!i)return;const a=ji.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 oLe(e,t){const n=uB(e),r=zO(e.lastParent.el,e.lastParent.data).filter(s=>!n.includes(s)),i=zO(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)),VO(e.lastParent.el,e.lastParent.data,r),VO(t.targetData.parent.el,t.targetData.parent.data,i)}function lb(e,t){nLe(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function aLe(e){function t(n){const r=ji.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 sLe(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 lLe(e,t){const n=sLe(e);n&&t(n)}var Sy=new WeakMap;function cLe(e){const t=Sy.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function uLe(e,t){const n=Sy.get(t);n&&n[1](e),Sy.set(t,[e,n[1]])}function fLe(e,t){return n=>{Sy.set(n,t),OMe({parent:n,getValues:cLe,setValues:uLe,config:e})}}function i4(e){iB&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;lLe(n,fLe(i,r))}))}function dLe(e,t={}){const n=M.useRef(null),[r,i]=M.useState(e);function o(a={}){i4({parent:n,state:[r,i],...a})}return M.useEffect(()=>{i4({parent:n,state:[r,i],...t})},[r]),M.useEffect(()=>()=>{n.current&&fB(n.current)},[]),[n,r,i,o]}const cb=()=>{const e=yo(),t=vs(),n=Au(),r=M.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:c,excludePastValidUntil:l,...f}=n,d=o?Sre(o):void 0,p=(a==null?void 0:a.split(","))??[];return{...f,orderBy:d,tags:p,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:c!==void 0?c==="true":void 0,excludePastValidUntil:l!==void 0?l==="true":void 0}},[n]),i=M.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:c,excludeBots:l,excludeMaxVisitsReached:f,excludePastValidUntil:d,...p}=a,v={...p,orderBy:s&&Ore(s),tags:c.length>0?c.join(","):void 0,excludeBots:c_(l),excludeMaxVisitsReached:c_(f),excludePastValidUntil:c_(d)},y=a0(v),g=y?`?${y}`:"";e(`${t}/list-short-urls/1${g}`)},[r,e,t]);return[r,i]},mP=()=>{const{domain:e}=Au(),{shortCode:t=""}=Pu();return M.useMemo(()=>({shortCode:aP(t),domain:e}),[e,t])},ub=()=>{const e=VNe();return m.jsx(qe,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:m.jsx(je,{icon:Gq})})},hLe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||s2(e,n,">=");return(!t||s2(e,t,"<="))&&r},yB={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.*.*"},ipRedirectCondition:{minVersion:"4.2.*"}};Object.freeze(yB);const ha=(e,t)=>t==="latest"||hLe(t,yB[e]),bB=e=>({excludeBotsOnShortUrls:ha("excludeBotsOnShortUrls",e),filterDisabledUrls:ha("filterDisabledUrls",e),deviceLongUrls:ha("deviceLongUrls",e),shortUrlVisitsDeletion:ha("shortUrlVisitsDeletion",e),orphanVisitsDeletion:ha("orphanVisitsDeletion",e),shortUrlRedirectRules:ha("shortUrlRedirectRules",e),urlValidation:ha("urlValidation",e),ipRedirectCondition:ha("ipRedirectCondition",e)}),_B=M.createContext(bB("0.0.0")),pLe=_B.Provider,mLe=e=>M.useMemo(()=>bB(e),[e]),Xo=e=>M.useContext(_B)[e],vLe={android:"Android",ios:"iOS",desktop:"Desktop"},gLe=({deviceType:e,onDeviceTypeChange:t})=>{const n=M.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(vLe).map(([r,i])=>m.jsx("option",{value:r,children:i},r))]})]})},xB=({value:e,onValueChange:t,label:n,placeholder:r})=>{const i=M.useId();return m.jsxs("div",{children:[m.jsxs("label",{htmlFor:i,children:[n,":"]}),m.jsx(Nn,{id:i,value:e??"",onChange:o=>t(o.target.value),placeholder:r,required:!0})]})},yLe=({language:e,onLanguageChange:t})=>m.jsx(xB,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),bLe=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=M.useId(),o=M.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:i,children:"Param name:"}),m.jsx(Nn,{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(Nn,{id:o,value:t??"",onChange:a=>r(a.target.value),placeholder:"world",required:!0})]})]})},_Le=({ipAddress:e,onIpAddressChange:t})=>m.jsx(xB,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),xLe=({condition:e,onConditionChange:t,onDelete:n})=>{const r=M.useId(),i=M.useCallback(l=>t({type:l,matchValue:"",matchKey:null}),[t]),o=M.useCallback(l=>t({...e,matchValue:l}),[e,t]),a=M.useCallback(l=>t({...e,matchKey:l}),[e,t]),s=Xo("ipRedirectCondition"),c=M.useMemo(()=>{const l={device:"Device type",language:"Language","query-param":"Query param"};return s?{...l,"ip-address":"IP address"}:l},[s]);return m.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2 position-relative",children:[m.jsxs("div",{children:[m.jsx(qe,{outline:!0,size:"sm",type:"button","aria-label":"Remove condition",onClick:n,className:"position-absolute rounded-circle redirect-rule-modal__remove-condition-button",children:m.jsx(je,{icon:N6,className:"redirect-rule-modal__remove-condition-button-icon"})}),m.jsx("label",{htmlFor:r,children:"Type:"}),m.jsx("select",{id:r,className:"form-select flex-grow-1",value:e.type,onChange:l=>i(l.target.value),children:Object.entries(c).map(([l,f])=>m.jsx("option",{value:l,children:f},l))})]}),e.type==="device"&&m.jsx(gLe,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&m.jsx(yLe,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&m.jsx(bLe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o}),e.type==="ip-address"&&m.jsx(_Le,{ipAddress:e.matchValue,onIpAddressChange:o})]})},wB=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,o]=M.useState(r??{longUrl:"",conditions:[]}),a=M.useCallback(v=>{v.preventDefault(),v.stopPropagation(),i&&n(i),t()},[n,i,t]),s=M.useCallback(()=>o(({longUrl:v,conditions:y})=>({longUrl:v,conditions:[...y,{type:"device",matchValue:"",matchKey:null}]})),[]),c=M.useCallback((v,y)=>o(({longUrl:g,conditions:x})=>{const _=[...x];return _[v]=y,{longUrl:g,conditions:_}}),[]),l=M.useCallback(v=>o(({longUrl:y,conditions:g})=>{const x=[...g];return x.splice(v,1),{longUrl:y,conditions:x}}),[]),f=$i(),d=M.useCallback(()=>{var v;return(v=f==null?void 0:f.current)==null?void 0:v.focus()},[f]),p=M.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return m.jsx(br,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:d,onClosed:p,children:m.jsxs("form",{onSubmit:a,children:[m.jsx(bo,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),m.jsxs(Ii,{children:[m.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),m.jsx(Nn,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:v=>o(y=>({...y,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(qe,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:s,children:m.jsx(je,{icon:ep})})]}),i.conditions.length===0&&m.jsx("div",{className:"text-center",children:m.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&m.jsx(Kn,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((v,y)=>m.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:m.jsx(xLe,{condition:v,onConditionChange:g=>c(y,g),onDelete:()=>l(y)})},`${y}_${v.type}`))})]}),m.jsxs(us,{className:"sticky-bottom redirect-rule-modal__footer",children:[m.jsx(qe,{type:"button",color:"link",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},wLe=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,c]=Rt();return m.jsxs(yt,{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:Qq})}),m.jsxs("div",{className:"d-flex flex-column my-auto",children:[m.jsx(qe,{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:hK})}),m.jsx(qe,{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:lK})})]}),m.jsxs("div",{className:"flex-grow-1",children:[m.jsxs("div",{className:"mb-2",children:[m.jsx("b",{children:"Long URL:"})," ",m.jsx(vr,{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((l,f)=>m.jsxs("div",{className:"badge bg-secondary",children:[l.type==="device"&&m.jsxs(m.Fragment,{children:["Device is ",l.matchValue]}),l.type==="language"&&m.jsxs(m.Fragment,{children:[l.matchValue," language is accepted"]}),l.type==="query-param"&&m.jsxs(m.Fragment,{children:["Query string contains ",l.matchKey,"=",l.matchValue]}),l.type==="ip-address"&&m.jsxs(m.Fragment,{children:["IP address matches ",l.matchValue]})]},`${l.type}_${f}`))]})]}),m.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[m.jsx(qe,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:c,children:m.jsx(je,{icon:C6})}),m.jsx(qe,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:m.jsx(je,{icon:Sq})})]})]}),m.jsx(wB,{onSave:a,isOpen:s,toggle:c,initialData:n})]})},OLe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=mP(),{shortUrls:c}=r,l=s&&(c==null?void 0:c.get(s)),[f,d,p]=dLe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:v,saved:y,errorData:g}=o,[x,_]=Rt(),b=M.useCallback(F=>p((k=[])=>[...k,F]),[p]),w=M.useCallback(F=>p((k=[])=>{const I=[...k];return I.splice(F,1),I}),[p]),S=M.useCallback((F,k)=>p((I=[])=>{const D=[...I];return D[F]=k,D}),[p]),E=M.useCallback((F,k)=>p((I=[])=>{if(!I[k])return I;const D=[...I],q=D[k];return D[k]=D[F],D[F]=q,D}),[p]),C=M.useCallback(F=>E(F,F-1),[E]),T=M.useCallback(F=>E(F,F+1),[E]),A=M.useCallback(F=>{F.preventDefault(),d&&i({shortUrl:s,data:{redirectRules:d}})},[s,d,i]);return M.useEffect(()=>(t(s),n([s]),a),[t,n,s,a]),M.useEffect(()=>{e.redirectRules&&p(e.redirectRules)},[p,e.redirectRules]),m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx("header",{children:m.jsxs(Br,{body:!0,children:[m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(ub,{}),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(vr,{href:(l==null?void 0:l.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(vr,{href:e.defaultLongUrl??""})]})]})}),m.jsx("div",{children:m.jsxs(qe,{outline:!0,color:"primary",onClick:_,children:[m.jsx(je,{icon:ep,className:"me-1"})," Add rule"]})}),m.jsxs("form",{onSubmit:A,children:[e.loading&&m.jsx(Ho,{loading:!0}),d.length===0&&!e.loading&&m.jsx(yt,{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((F,k)=>m.jsx(wLe,{redirectRule:F,priority:k+1,isLast:k===d.length-1,onDelete:()=>w(k),onMoveUp:()=>C(k),onMoveDown:()=>T(k),onUpdate:I=>S(k,I)},`${F.longUrl}_${k}`))}),m.jsx("div",{className:"text-center mt-3",children:m.jsx(qe,{outline:!0,color:"primary",className:"btn-sm-block",disabled:v,"data-testid":"save-button",children:v?"Saving...":"Save rules"})})]}),g&&m.jsx(Jn,{type:"error",children:m.jsx(go,{errorData:g,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),y&&m.jsx(Jn,{type:"success",children:"Redirect rules properly saved."}),m.jsx(wB,{isOpen:x,toggle:_,onSave:b})]})},SLe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>OLe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",vMe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",hMe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",gMe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",pMe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},ELe=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}),OB=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=$t(OB),a=or("shortUrlCreation"),s=M.useMemo(()=>ELe(a),[a]);return m.jsxs(m.Fragment,{children:[m.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async c=>(n(),e(c))}),m.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},CLe=It(OB,["ShortUrlForm","CreateShortUrlResult"]),SB=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=$t(SB),o=mP(),{loading:a,error:s,errorData:c,shortUrls:l}=e,f=o&&(l==null?void 0:l.get(o)),{saving:d,saved:p,error:v,errorData:y}=n,g=or("shortUrlCreation"),x=M.useMemo(()=>yNe(f,g),[f,g]);return M.useEffect(()=>{o&&t([o])},[t,o]),a?m.jsx(Ho,{loading:!0}):s?m.jsx(Jn,{type:"error",children:m.jsx(go,{errorData:c,fallbackMessage:"An error occurred while loading short URL detail :("})}):m.jsxs(m.Fragment,{children:[m.jsx("header",{className:"mb-3",children:m.jsx(Br,{body:!0,children:m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(ub,{}),m.jsx("div",{className:"text-center flex-grow-1",children:m.jsxs("small",{children:["Edit ",m.jsx(vr,{href:(f==null?void 0:f.shortUrl)??""})]})})]})})}),m.jsx(i,{initialState:x,saving:d,onSave:async _=>{f&&r({...f,data:_})}}),p&&v&&m.jsx(Jn,{type:"error",className:"mt-3",children:m.jsx(go,{errorData:y,fallbackMessage:"An error occurred while updating short URL :("})}),p&&!v&&m.jsx(Jn,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},PLe=It(SB,["ShortUrlForm"]),EB=({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))},CB=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=$t(CB),[i,o]=r(),{error:a,saved:s}=e;if(M.useEffect(()=>{t()},[t]),a)return m.jsxs(Jn,{type:"error",className:"mt-3",children:[n&&m.jsx(je,{"data-testid":"error-close-button",icon:gx,className:"float-end pointer",onClick:t}),m.jsx(go,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:c}=e.result;return m.jsxs(Jn,{type:"success",className:"mt-3",children:[n&&m.jsx(je,{"data-testid":"success-close-button",icon:gx,className:"float-end pointer",onClick:t}),m.jsxs("span",{children:[m.jsx("b",{children:"Great!"})," The short URL is ",m.jsx("b",{children:c})]}),m.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>EB({text:c,onCopy:o}),children:[m.jsx(je,{icon:zD})," Copy ",m.jsxs("span",{className:"sr-only",children:[c," to clipboard"]})]}),m.jsx(i0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},TLe=It(CB,["useTimeoutToggle"]),d_="delete",jLe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,c]=M.useState("");M.useEffect(()=>i,[i]);const{loading:l,error:f,deleted:d,errorData:p}=r,v=M.useCallback(()=>{i(),t()},[i,t]),y=M.useCallback(g=>(g.preventDefault(),o(e).then(x=>!nP(x)&&t())),[o,e,t]);return m.jsx(br,{isOpen:n,toggle:v,centered:!0,onClosed:()=>d&&a(e),children:m.jsxs("form",{onSubmit:y,children:[m.jsx(bo,{toggle:v,children:m.jsx("span",{className:"text-danger",children:"Delete short URL"})}),m.jsxs(Ii,{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:d_})," to confirm deletion."]}),m.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${d_}`,value:s,onChange:g=>c(g.target.value)}),f&&m.jsx(Jn,{type:hNe(p)?"warning":"error",small:!0,className:"mt-2",children:m.jsx(go,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),m.jsxs(us,{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!==d_||l,children:l?"Deleting...":"Delete"})]})]})})},PB=({amount:e=0,loading:t=!1,...n})=>m.jsxs(qe,{...n,outline:!0,color:"primary",disabled:t,children:[m.jsx(je,{icon:jq})," ",t?"Exporting...":m.jsxs(m.Fragment,{children:["Export (",qt(e),")"]})]}),o4=20,TB=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=$t(TB),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:c}]=cb(),[l,,f,d]=Rt(),p=M.useCallback(async()=>{const v=e/o4,y=async(x=1)=>{const{data:_}=await t().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:c,itemsPerPage:o4});return x>=v?_:_.concat(await y(x+1))};f();const g=await y();n.exportShortUrls(g.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,c]);return m.jsx(PB,{loading:l,className:"btn-md-block",amount:e,onClick:p})},ALe=It(TB,["apiClientFactory","ReportExporter"]),jB=({text:e,onCopy:t,copyToClipboard:n=EB})=>m.jsx(xl,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>n({text:e,onCopy:t}),children:m.jsx(je,{icon:zD,className:"fs-5"})}),kLe=(e,t)=>{const n=`${e}/qr-code`,r=a0({...t});return`${n}${r?`?${r}`:""}`},a4=({name:e,value:t,step:n,min:r,max:i,onChange:o,className:a,initial:s=r})=>{const c=M.useId();return m.jsxs(hl,{className:a,children:[t===void 0&&m.jsxs(qe,{outline:!0,color:"link",className:"text-start fst-italic w-100",style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},onClick:()=>o(s),children:["Customize ",e]}),t!==void 0&&m.jsxs("div",{className:"d-flex gap-3",children:[m.jsxs("div",{className:"d-flex flex-column flex-grow-1",children:[m.jsxs("label",{htmlFor:c,className:"text-capitalize",children:[e,": ",t,"px"]}),m.jsx("input",{id:c,type:"range",className:"form-control-range",value:t,step:n,min:r,max:i,onChange:l=>o(Number(l.target.value))})]}),m.jsx(qe,{"aria-label":`Default ${e}`,title:`Default ${e}`,outline:!0,color:"link",onClick:()=>o(void 0),style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},children:m.jsx(je,{icon:A6})})]})]})},NLe=({errorCorrection:e,onChange:t})=>m.jsxs(ra,{text:e?`Error correction (${e})`:m.jsx("i",{children:"Default error correction"}),children:[m.jsx(Ne,{active:!e,onClick:()=>t(void 0),children:"Default"}),m.jsx(Ne,{divider:!0,tag:"hr"}),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"]})]}),MLe=({format:e,onChange:t})=>m.jsxs(ra,{text:e?`Format (${e})`:m.jsx("i",{children:"Default format"}),children:[m.jsx(Ne,{active:!e,onClick:()=>t(void 0),children:"Default"}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),m.jsx(Ne,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),AB=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=$t(AB),[o,a]=M.useState(),[s,c]=M.useState(),[l,f]=M.useState(),[d,p]=M.useState(),v=M.useMemo(()=>kLe(e,{size:o,format:l,margin:s,errorCorrection:d}),[e,o,l,s,d]),[y,g]=M.useState(),x=M.useCallback(_=>{const b=_.target,{naturalWidth:w}=b;w<500?g(void 0):g(w<800?"lg":"xl")},[]);return m.jsxs(br,{isOpen:r,toggle:n,centered:!0,size:y,children:[m.jsxs(bo,{toggle:n,children:["QR code for ",m.jsx(vr,{href:e,children:e})]}),m.jsxs(Ii,{children:[m.jsxs(Kn,{children:[m.jsx(a4,{className:"col-sm-6",name:"size",value:o,step:10,min:50,max:1e3,initial:300,onChange:a}),m.jsx(a4,{className:"col-sm-6",name:"margin",value:s,step:1,min:0,max:100,onChange:c}),m.jsx(hl,{className:"d-grid col-sm-6",children:m.jsx(MLe,{format:l,onChange:f})}),m.jsx(hl,{className:"col-sm-6",children:m.jsx(NLe,{errorCorrection:d,onChange:p})})]}),m.jsxs("div",{className:"text-center",children:[m.jsxs("div",{className:"mb-3",children:[m.jsx(vr,{href:v}),m.jsx(jB,{text:v})]}),m.jsx("img",{src:v,alt:"QR code",className:"shadow-lg",style:{maxWidth:"100%"},onLoad:x}),m.jsx("div",{className:"mt-3",children:m.jsxs(qe,{block:!0,color:"primary",onClick:()=>{i.saveImage(v,`${t}-qr-code.${l}`).catch(()=>{})},children:["Download ",m.jsx(je,{icon:k6,className:"ms-1"})]})})]})]})]})},LLe=It(AB,["ImageDownloader"]),Ey=({date:e,format:t=I7,relative:n=!1})=>{const r=lP(e)?e:Qa(e);return m.jsx("time",{dateTime:`${Koe(r)}000`,children:n?`${Goe(ts(),r)} ago`:xg(r,t)})},RLe=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:xK,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&&wg(Tr(a),ts())?{icon:Zj,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be visited since ",m.jsx("b",{className:"indivisible",children:Gh(Tr(a))}),"."]})}:o&&wg(ts(),Tr(o))?{icon:Zj,className:"text-warning",description:m.jsxs(m.Fragment,{children:["This short URL will start working on ",m.jsx("b",{className:"indivisible",children:Gh(Tr(o))}),"."]})}:{icon:Gd,className:"text-primary",description:"This short URL can be visited normally."}},$Le=({shortUrl:e})=>{const t=$i(),{icon:n,className:r,description:i}=RLe(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(Ur,{target:t,placement:"bottom",children:i})]})},ILe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${R7(t)}/${r}${i}`},fv=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=vs();return!n||!e?m.jsx("span",{...i,children:r}):m.jsx(At,{to:ILe(o,e,t),...i,children:r})},kB=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=$i(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},c=!!o||!!a||!!s,l=m.jsx(fv,{shortUrl:t,suffix:"visits",asLink:r,children:m.jsx("strong",{className:Ee("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:qt(e)})});return c?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"indivisible",children:[l,m.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&m.jsxs(m.Fragment,{children:[" / ",qt(o)]}),m.jsx("sup",{className:"ms-1",children:m.jsx(je,{icon:tE})})]})]}),m.jsx(Ur,{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:qt(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:Gh(Tr(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:Gh(Tr(s))}),"."]})]})})]}):l},DLe=e=>!!e.onClose,FLe=e=>!!e.onClick,fb=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=FLe(e),a=o?xl:"span",s=M.useMemo(()=>i.stylesForKey(t),[t,i]);return m.jsxs(a,{className:Ee("badge tag fw-bold",r,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[n??t,DLe(e)&&m.jsx(xl,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},BLe=({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(fb,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),NB=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:c}=$t(NB),[l,f]=c(),[d,p]=c(!1,500),v=M.useRef(!0),[{excludeBots:y}]=cb(),g=or("visits"),x=y??(g==null?void 0:g.excludeBots);return M.useEffect(()=>{v.current||p(),v.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,p]),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(Ey,{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(vr,{href:e.shortUrl})}),m.jsx(jB,{text:e.shortUrl,onCopy:f}),m.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!l,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(vr,{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(vr,{href:e.longUrl})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:m.jsx(BLe,{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(kB,{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($Le,{shortUrl:e})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:m.jsx(a,{shortUrl:e})})]})},ULe=It(NB,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),MB=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r,QrCodeModal:i}=$t(MB),[o,,a,s]=Rt(),[c,,l,f]=Rt(),d=ib(),p=Xo("shortUrlRedirectRules"),{confirmDeletions:v=!0}=or("shortUrlsList",{}),y=M.useCallback(async()=>{const g=await t(e);nP(g)||n(e)},[t,e,n]);return m.jsxs(s0,{minWidth:p?220:190,children:[m.jsxs(Ne,{tag:fv,shortUrl:e,suffix:"visits",asLink:!0,children:[m.jsx(je,{icon:eE,fixedWidth:!0})," Visit stats"]}),d&&m.jsxs(m.Fragment,{children:[m.jsxs(Ne,{disabled:!d.canAddItemWithName(e.shortUrl),onClick:()=>d.addItemToCompare({name:e.shortUrl,query:sP(e)}),children:[m.jsx(je,{icon:Qy,fixedWidth:!0})," Compare visits"]}),m.jsx(Ne,{divider:!0,tag:"hr"})]}),m.jsxs(Ne,{tag:fv,shortUrl:e,suffix:"edit",asLink:!0,children:[m.jsx(je,{icon:JS,fixedWidth:!0})," Edit short URL"]}),p&&m.jsxs(Ne,{tag:fv,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[m.jsx(je,{icon:OK,fixedWidth:!0})," Manage redirect rules"]}),m.jsxs(Ne,{onClick:a,children:[m.jsx(je,{icon:yK,fixedWidth:!0})," QR code"]}),m.jsx(i,{shortUrl:e,isOpen:o,toggle:s}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{className:"dropdown-item--danger",onClick:v?l:y,children:[m.jsx(je,{icon:QS,fixedWidth:!0})," Delete short URL"]}),m.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:c,toggle:f})]})},zLe=It(MB,["DeleteShortUrlModal","QrCodeModal"]),LB="shlink/shortUrlCreation",s4={saving:!1,saved:!1,error:!1},VLe=e=>un(`${LB}/createShortUrl`,t=>e().createShortUrl(t)),WLe=e=>{const{reducer:t,actions:n}=Qt({name:LB,initialState:s4,reducers:{resetCreateShortUrl:()=>s4},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:Vr(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},RB="shlink/shortUrlEdition",HLe={saving:!1,saved:!1,error:!1},GLe=e=>un(`${RB}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),qLe=e=>Qt({name:RB,initialState:HLe,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:Vr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),l4="shlink/shortUrlsDetails",c4={loading:!1,error:!1},KLe=e=>{const t=un(`${l4}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var c;const{shortCode:l,domain:f}=s,d=(c=o==null?void 0:o.shortUrls)==null?void 0:c.data.find(p=>Ed(p,l,f));return[s,d??await e().getShortUrl(l,f)]}));return new Map(a)}),{reducer:n}=Qt({name:l4,initialState:c4,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Vr(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...c4,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},h_=({icon:e,className:t,...n})=>{const r=$i();return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(Nn,{className:Ee("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()}})]})},YLe=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const a=M.useCallback(({target:c})=>{if(!c.value){r==null||r(null);return}r==null||r(Tr(c.value))},[r]),s=M.useMemo(()=>i?Gh:Na,[i]);return m.jsx(Nn,{...o,type:i?"datetime-local":"date",value:s(n)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},Cy=({label:e,id:t,...n})=>{const r=M.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),m.jsx(YLe,{id:t??r,...n})]})},p_=({children:e,infoTooltip:t,checked:n,onChange:r})=>m.jsxs("p",{children:[m.jsx(aD,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&m.jsx(uv,{placement:"right",children:t})]}),ZLe=({isOpen:e,toggle:t})=>m.jsxs(br,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[m.jsx(bo,{toggle:t,children:"Info"}),m.jsxs(Ii,{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"})]})]})]}),XLe=()=>{const[e,t]=Rt();return m.jsxs(m.Fragment,{children:[m.jsx(xl,{className:"p-0",title:"What does this mean?",onClick:t,children:m.jsx(je,{icon:tE})}),m.jsx(ZLe,{isOpen:e,toggle:t})]})},Im=e=>typeof e=="string"?Qa(e):e,QLe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,$B=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i})=>{var o,a,s;const{TagsSelector:c,DomainSelector:l}=$t($B),[f,d]=M.useState(r),p=QLe(f),v=Xo("deviceLongUrls"),y=Xo("urlValidation"),g=y||p,x=M.useCallback(()=>d(r),[r]),_=M.useCallback((C,T)=>Fs(C)?C:Fs(T)?null:void 0,[]),b=M.useCallback((C,T)=>d(({deviceLongUrls:A={},...F})=>{var k;return{...F,deviceLongUrls:{...A,[C]:_(T,(k=r.deviceLongUrls)==null?void 0:k[C])}}}),[r.deviceLongUrls,_]),w=M.useCallback(C=>d(T=>({...T,tags:C})),[]),S=M.useCallback(async C=>(C.preventDefault(),n(f).then(T=>p&&!nP(T)&&x()).catch(()=>{})),[p,n,x,f]),E=M.useMemo(()=>m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx(Nn,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:f.longUrl,onChange:C=>d(T=>({...T,longUrl:C.target.value}))}),m.jsxs("div",{className:Ee("d-flex flex-column flex-lg-row gap-3",{"mb-3":e}),children:[e&&p&&m.jsx("div",{className:"w-100 w-lg-50",children:m.jsx(Nn,{bsSize:"lg",placeholder:"Custom slug",value:f.customSlug??"",onChange:C=>d(T=>({...T,customSlug:C.target.value}))})}),m.jsx("div",{className:Ee("w-100",{"w-lg-50":e}),children:m.jsx(c,{tags:i.tags,selectedTags:f.tags??[],onChange:w})})]})]}),[c,e,w,p,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(Kn,{children:[m.jsx("div",{className:Ee("mb-3",{"col-sm-6":v,"col-12":!v}),children:m.jsx(yt,{title:"Main options",children:E})}),v&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(yt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(h_,{type:"url",icon:Hae,placeholder:"Android-specific redirection",value:((o=f.deviceLongUrls)==null?void 0:o.android)??"",onChange:({target:C})=>b("android",C.value)}),m.jsx(h_,{type:"url",icon:Wae,placeholder:"iOS-specific redirection",value:((a=f.deviceLongUrls)==null?void 0:a.ios)??"",onChange:({target:C})=>b("ios",C.value)}),m.jsx(h_,{type:"url",icon:wK,placeholder:"Desktop-specific redirection",value:((s=f.deviceLongUrls)==null?void 0:s.desktop)??"",onChange:({target:C})=>b("desktop",C.value)})]})})]}),m.jsxs(Kn,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(yt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(Nn,{placeholder:"Title",value:f.title??"",onChange:({target:C})=>d(T=>({...T,title:_(C.value,r.title)}))}),p&&m.jsxs(m.Fragment,{children:[m.jsxs(Kn,{children:[m.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:m.jsx(Nn,{placeholder:"Custom slug",value:f.customSlug??"",onChange:C=>d(T=>({...T,customSlug:C.target.value})),disabled:Fs(f.shortCodeLength)})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(Nn,{type:"number",placeholder:"Short code length",value:f.shortCodeLength??"",onChange:C=>d(T=>({...T,shortCodeLength:C.target.value})),min:4,disabled:Fs(f.customSlug)})})]}),m.jsx(l,{value:f.domain,onChange:C=>d(T=>({...T,domain:C}))})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(yt,{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(Cy,{label:"Enabled since",withTime:!0,maxDate:f.validUntil?Im(f.validUntil):void 0,value:f.validSince?Im(f.validSince):null,onChange:C=>d(T=>({...T,validSince:ns(C)}))})}),m.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:m.jsx(Cy,{label:"Enabled until",withTime:!0,minDate:f.validSince?Im(f.validSince):void 0,value:f.validUntil?Im(f.validUntil):null,onChange:C=>d(T=>({...T,validUntil:ns(C)}))})})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),m.jsx(Nn,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:f.maxVisits??"",onChange:C=>d(T=>({...T,maxVisits:Fs(C.target.value)?Number(C.target.value):null}))})]})]})})]}),m.jsxs(Kn,{children:[g&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(yt,{title:"Extra checks",children:[y&&m.jsx(p_,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:f.validateUrl,onChange:C=>d(T=>({...T,validateUrl:C})),children:"Validate URL"}),p&&m.jsxs("p",{children:[m.jsx(aD,{inline:!0,className:"me-2",checked:f.findIfExists,onChange:C=>d(T=>({...T,findIfExists:C})),children:"Use existing URL if found"}),m.jsx(XLe,{})]})]})}),m.jsx("div",{className:Ee("mb-3",{"col-sm-6":g}),children:m.jsxs(yt,{title:"Configure behavior",children:[m.jsx(p_,{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:C=>d(T=>({...T,crawlable:C})),children:"Make it crawlable"}),m.jsx(p_,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:f.forwardQuery,onChange:C=>d(T=>({...T,forwardQuery:C})),children:"Forward query params on redirect"})]})})]})]}),m.jsx("div",{className:"text-center",children:m.jsx(qe,{outline:!0,color:"primary",disabled:t||!f.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},JLe=It($B,["TagsSelector","DomainSelector"]),e4e=({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"}),xNe.map(r=>m.jsx(Ne,{active:e===r,onClick:()=>n(r),children:U7(r)},r))]}),t4e=({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(Cy,{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(Cy,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&eu(o))})})]}),vP=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=M.useMemo(()=>U7(t)??n,[t,n]),[o,a]=M.useMemo(()=>wy(t)?[void 0,t]:[t,void 0],[t]),s=M.useCallback(c=>{wy(c)?e(z7(c),c):e(c)},[e]);return m.jsxs(ra,{disabled:r,text:i,children:[m.jsx(e4e,{allText:n,active:a,onChange:s}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx("div",{className:"px-3 py-1",children:m.jsx(t4e,{...o,onStartDateChange:c=>s({...o,startDate:c}),onEndDateChange:c=>s({...o,endDate:c})})})]})},n4e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},r4e=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=c=>()=>e({...t,[c]:!(t!=null&&t[c])});return m.jsxs(ra,{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"})})]})},IB=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i})=>{const{ExportShortUrlsBtn:o,TagsSelector:a}=$t(IB),[{search:s,tags:c,startDate:l,endDate:f,excludeBots:d,excludeMaxVisitsReached:p,excludePastValidUntil:v,tagsMode:y="any"},g]=cb(),x=Xo("filterDisabledUrls"),_=or("visits"),[b,w]=M.useState(),S=M.useCallback(({startDate:A,endDate:F},k)=>{g({startDate:ns(A)??void 0,endDate:ns(F)??void 0}),w(k)},[g]),E=M.useCallback(A=>g({search:A||void 0}),[g]),C=M.useCallback(A=>g({tags:A}),[g]),T=M.useCallback(()=>g({tagsMode:y==="any"?"all":"any"}),[y,g]);return m.jsxs("div",{className:Ee("short-urls-filtering-bar-container",e),children:[m.jsx(lp,{initialValue:s,onChange:E}),m.jsxs(o0,{className:"mt-3",children:[m.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:c,onChange:C}),c.length>1&&m.jsxs(m.Fragment,{children:[m.jsx(qe,{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:y==="all"?j6:Yq})}),m.jsx(Ur,{target:"tagsModeBtn",placement:"left",children:y==="all"?"With all the tags.":"With any of the tags."})]})]}),m.jsxs(Kn,{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(vP,{defaultText:"All short URLs",dateRangeOrInterval:b??B7(l,f),onDatesChange:S})}),m.jsx(r4e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:d??(_==null?void 0:_.excludeBots),excludeMaxVisitsReached:p,excludePastValidUntil:v},onChange:g,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(cp,{prefixed:!1,items:n4e,order:n,onChange:r})})]})]})},i4e=It(IB,["ExportShortUrlsBtn","TagsSelector"]);function Cd({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:m.jsx(je,{icon:e.dir==="ASC"?Uq:Jq,className:n})}const ec=2,WO="...",DB=(e,t)=>{const n=IE(Math.max(ec,e-ec),Math.min(t-1,e+ec)+1);return e-ec>ec&&n.unshift(WO),e+ec<t-1&&n.push(WO),n.unshift(1),n.push(t),n},qh=e=>e===WO,FB=e=>qh(e)?e:qt(e),BB=(e,t)=>qh(e)?`${e}_${t}`:`${e}`,o4e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=vs(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return m.jsx("div",{className:"pb-3"});const a=()=>DB(n,r).map((s,c)=>m.jsx(el,{disabled:qh(s),active:n===s,children:m.jsx(tl,{tag:At,to:o(s),children:FB(s)})},BB(s,c)));return m.jsxs(AE,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[m.jsx(el,{disabled:n===1,children:m.jsx(tl,{previous:!0,tag:At,to:o(n-1)})}),a(),m.jsx(el,{disabled:n>=r,children:m.jsx(tl,{next:!0,tag:At,to:o(n+1)})})]})},a4e={field:"dateCreated",dir:"DESC"},UB=Ui(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=$t(UB),{page:s}=Pu(),c=gr(),[{tags:l,search:f,startDate:d,endDate:p,orderBy:v,tagsMode:y,excludeBots:g,excludePastValidUntil:x,excludeMaxVisitsReached:_},b]=cb(),w=zE(),[S,E]=M.useState(v??((n=w.shortUrlsList)==null?void 0:n.defaultOrdering)??a4e),{pagination:C}=(t==null?void 0:t.shortUrls)??{},T=M.useMemo(()=>{var X;return g??((X=w.visits)==null?void 0:X.excludeBots)},[g,(r=w.visits)==null?void 0:r.excludeBots]),A=Xo("excludeBotsOnShortUrls"),F=M.useCallback((X,Q)=>{b({orderBy:{field:X,dir:Q}}),E({field:X,dir:Q})},[b]),k=X=>()=>F(X,l0(X,S.field,S.dir)),I=X=>m.jsx(Cd,{currentOrder:S,field:X}),D=M.useCallback(X=>b({tags:[...new Set([...l,X])]}),[l,b]),q=M.useCallback(({field:X,dir:Q})=>A&&T&&X==="visits"?{field:"nonBotVisits",dir:Q}:{field:X,dir:Q},[T,A]),W=iP();return M.useEffect(()=>{e({page:s,searchTerm:f,tags:l,startDate:d,endDate:p,orderBy:q(S),tagsMode:y,excludePastValidUntil:x,excludeMaxVisitsReached:_})},[e,q,s,f,l,d,p,S,y,x,_]),m.jsxs(rP,{value:W,children:[m.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:S,handleOrderBy:F,className:"mb-3"}),m.jsx(oP,{type:"short-urls",className:"mb-3"}),m.jsxs(Br,{body:!0,className:Ee({"pb-0":!t.loading}),children:[m.jsx(o,{shortUrlsList:t,orderByColumn:k,renderOrderIcon:I,onTagClick:D}),!t.loading&&m.jsx(o4e,{paginator:C,currentQueryString:c.search})]})]})},()=>[nr.visits]),s4e=It(UB,["ShortUrlsTable","ShortUrlsFilteringBar"]),zB=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=$t(zB),{error:a,loading:s,shortUrls:c}=n,l=Ee({"short-urls-table__header-cell--with-action":!!e}),f=Ee("short-urls-table__header-cell",l),d=Ee("table table-hover responsive-table short-urls-table",i),p=()=>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&&(!c||c.data.length===0)?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):c==null?void 0:c.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(xl,{className:Ee("p-0",l),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]}),"  /  ",m.jsxs(xl,{className:Ee("p-0",l),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:p()})]})},l4e=It(zB,["ShortUrlsRow"]),c4e=(e,t)=>{e.factory("ShortUrlsList",s4e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",l4e),e.factory("ShortUrlsRow",ULe),e.factory("CreateShortUrlResult",TLe),e.factory("ShortUrlsRowMenu",zLe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",JLe),e.decorator("ShortUrlForm",t(["tagsList"])),e.factory("CreateShortUrl",CLe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",PLe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>jLe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",LLe),e.factory("ExportShortUrlsBtn",ALe),e.factory("ShortUrlsFilteringBar",i4e),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",sMe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",WLe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",qLe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",iMe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",KLe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",aMe,"apiClientFactory"),e.serviceFactory("createShortUrl",VLe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",rMe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>X7),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",GLe,"apiClientFactory")},u4e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:c,errorData:l}=i;return m.jsxs(br,{toggle:t,isOpen:n,centered:!0,onClosed:()=>c&&o(e),children:[m.jsx(bo,{toggle:t,className:"text-danger",children:"Delete tag"}),m.jsxs(Ii,{children:["Are you sure you want to delete tag ",m.jsx("b",{children:e}),"?",s&&m.jsx(Jn,{type:"error",small:!0,className:"mt-2",children:m.jsx(go,{errorData:l,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),m.jsxs(us,{children:[m.jsx(qe,{color:"link",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},VB=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=$t(VB),[s,c]=M.useState(e),[l,f]=M.useState(a.getColorForKey(e)),{editing:d,error:p,edited:v,errorData:y}=o,g=Z7(async()=>{await t({oldName:e,newName:s,color:l}),n()}),x=M.useCallback(()=>v&&r({oldName:e,newName:s,color:l}),[l,v,s,e,r]);return m.jsx(br,{isOpen:i,toggle:n,centered:!0,onClosed:x,children:m.jsxs("form",{name:"editTag",onSubmit:g,children:[m.jsx(bo,{toggle:n,children:"Edit tag"}),m.jsxs(Ii,{children:[m.jsxs(o0,{children:[m.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:l,borderColor:l},children:[m.jsx(je,{icon:zq,className:"position-absolute top-50 start-50 translate-middle text-white"}),m.jsx(Nn,{className:"form-control-color opacity-0",type:"color",value:l,onChange:_=>f(_.target.value)})]}),m.jsx(Nn,{value:s,placeholder:"Tag",required:!0,onChange:({target:_})=>c(_.value)})]}),p&&m.jsx(Jn,{type:"error",small:!0,className:"mt-2",children:m.jsx(go,{errorData:y,fallbackMessage:"Something went wrong while editing the tag :("})})]}),m.jsxs(us,{children:[m.jsx(qe,{type:"button",color:"link",onClick:n,children:"Cancel"}),m.jsx(qe,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},f4e=It(VB,["ColorGenerator"]),d4e=/\s+/g,WB=e=>e.trim().toLowerCase().replace(d4e,"-"),HB=({color:e})=>m.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),GB=({tag:e,colorGenerator:t})=>m.jsx(HB,{color:t.getColorForKey(e)});let u4=1;const qB="Tag not found",KB="Add tag",h4e=e=>e!==qB,p4e=e=>e===KB,f4=e=>(u4+=1,{label:e,value:`${e}${u4}`}),m4e=e=>({tag:t,onClick:n})=>m.jsx(fb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),v4e=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=h4e(n.label),s=p4e(n.label);return m.jsx("div",{className:Ee(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(GB,{tag:`${n.label}`,colorGenerator:e}),s?m.jsxs("i",{children:['Add "',WB(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):m.jsx("i",{children:n.label})})},YB=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=$t(YB),a=or("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",c=$i();return m.jsx(Vse,{ref:c,selected:e.map(f4),suggestions:r.filter(l=>!e.includes(l)).map(f4),renderTag:m4e(o),renderOption:v4e(o,c),activateFirstOption:!0,allowNew:!i,newOptionText:KB,noOptionsText:qB,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(l,f)=>{const d=l.toLowerCase().trim();return d.length<1?[]:[...f.filter(({label:p})=>s==="includes"?p.includes(d):p.startsWith(d))].slice(0,5)},onDelete:l=>{const f=[...e];f.splice(l,1),t(f)},onAdd:({label:l})=>t([...new Set([...e,...l.split(",").map(WB)])])})},g4e=It(YB,["ColorGenerator"]),HO="shlink/tagDelete",y4e={deleting:!1,deleted:!1,error:!1},ZB=er(`${HO}/tagDeleted`),b4e=e=>{const t=un(`${HO}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Qt({name:HO,initialState:y4e,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:Vr(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},gP="shlink/tagEdit",_4e={editing:!1,edited:!1,error:!1},XB=er(`${gP}/tagEdited`),x4e=(e,t)=>un(`${gP}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),w4e=e=>Qt({name:gP,initialState:_4e,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:Vr(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}})}}),yP="shlink/tagsList",m_={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},d4=(e,t)=>n=>n===e?t:n,h4=(e,t)=>e.filter(n=>n!==t),O4e=(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}),S4e=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),{})),E4e=e=>un(`${yP}/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}}),QB=er(`${yP}/filterTags`),C4e=(e,t)=>Qt({name:yP,initialState:m_,reducers:{},extraReducers:n=>{n.addCase(QB,(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})=>({...m_,error:!0,errorData:Vr(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...m_,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(ZB,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:h4(r,a),filteredTags:h4(i,a)})),n.addCase(XB,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(d4(s.oldName,s.newName)).sort(),filteredTags:i.map(d4(s.oldName,s.newName)).sort()})),n.addCase(Xu,(r,{payload:i})=>({...r,stats:O4e(S4e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),P4e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},JB=Ui(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=$t(JB),o=zE(),[a,s]=M.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),c=M.useMemo(()=>{const f=t.filteredTags.map(d=>{var p,v,y;const g=t.stats[d],x=((p=o.visits)!=null&&p.excludeBots?(v=g==null?void 0:g.visitsSummary)==null?void 0:v.nonBots:(y=g==null?void 0:g.visitsSummary)==null?void 0:y.total)??(g==null?void 0:g.visitsCount)??0;return{tag:d,visits:x,shortUrls:(g==null?void 0:g.shortUrlsCount)??0}});return uD(f,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),l=iP();return t.loading?m.jsx(Ho,{loading:!0}):t.error?m.jsx(Jn,{type:"error",children:m.jsx(go,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):m.jsxs(rP,{value:l,children:[m.jsx(lp,{className:"mb-3",onChange:e}),m.jsx(Kn,{className:"mb-3",children:m.jsx("div",{className:"col-lg-6 offset-lg-6",children:m.jsx(cp,{items:P4e,order:a,onChange:(f,d)=>s({field:f,dir:d})})})}),m.jsx(oP,{type:"tags",className:"mb-3"}),m.jsx(i,{sortedTags:c,currentOrder:a,orderByColumn:f=>()=>{const d=l0(f,a.field,a.dir);s({field:d?f:void 0,dir:d})}})]})},()=>[nr.visits]),T4e=It(JB,["TagsTable"]),bP=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!qh(o)&&n(o);return m.jsxs(AE,{listClassName:Ee("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[m.jsx(el,{disabled:t<=1,children:m.jsx(tl,{previous:!0,tag:"span",onClick:i(t-1)})}),DB(t,e).map((o,a)=>m.jsx(el,{disabled:qh(o),active:t===o,children:m.jsx(tl,{role:"link",tag:"span",onClick:i(o),children:FB(o)})},BB(o,a))),m.jsx(el,{disabled:t>=e,children:m.jsx(tl,{next:!0,tag:"span",onClick:i(t+1)})})]})},j4e=20,eU=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=$t(eU),i=M.useRef(!0),{page:o=1}=Au(),[a,s]=zNe("page",Number(o)),c=Mc(e,j4e),l=c.length>1,f=c[a-1]??[];return M.useEffect(()=>{i.current||s(1),i.current=!1},[s,e]),M.useEffect(()=>{scrollTo(0,0)},[a]),m.jsxs(yt,{bodyClassName:l?"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(Cd,{currentOrder:n,field:"tag"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",m.jsx(Cd,{currentOrder:n,field:"shortUrls"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",m.jsx(Cd,{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))]})]}),l&&m.jsx("div",{className:"sticky-card-paginator",children:m.jsx(bP,{pagesCount:c.length,currentPage:a,setCurrentPage:s})})]},a)},A4e=It(eU,["TagsTableRow"]),tU=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=$t(tU),[i,o]=Rt(),[a,s]=Rt(),c=vs(),l=ib();return m.jsxs("tr",{className:"responsive-table__row",children:[m.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[m.jsx(GB,{tag:e.tag,colorGenerator:r})," ",e.tag]}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:m.jsx(At,{to:`${c}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:qt(e.shortUrls)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:m.jsx(At,{to:`${c}/tag/${e.tag}/visits`,children:qt(e.visits)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end",children:m.jsxs(s0,{children:[m.jsxs(Ne,{onClick:s,children:[m.jsx(je,{icon:C6,fixedWidth:!0,className:"me-1"})," Edit"]}),m.jsxs(Ne,{disabled:!l||!l.canAddItemWithName(e.tag),onClick:()=>l==null?void 0:l.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[m.jsx(je,{icon:Qy,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:Hq,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})]})},k4e=It(tU,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),N4e=(e,t)=>{e.factory("TagsSelector",g4e),e.serviceFactory("DeleteTagConfirmModal",()=>u4e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",f4e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",k4e),e.factory("TagsTable",A4e),e.factory("TagsList",T4e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",w4e,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",b4e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",C4e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",E4e,"apiClientFactory"),e.serviceFactory("filterTags",()=>QB),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>ZB),e.serviceFactory("editTag",x4e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>XB)},M4e=new ZD,L4e=e=>M4e.parse(e),R4e=6,p4="0123456789ABCDEF",$4e=128,{floor:I4e,random:D4e,sqrt:F4e,round:B4e}=Math,U4e=()=>`#${fP(R4e,()=>p4[I4e(D4e()*p4.length)]).join("")}`,m4=e=>e.toLowerCase().trim(),z4e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),V4e=(e=0,t=0,n=0)=>B4e(F4e(.299*e**2+.587*t**2+.114*n**2));class W4e{constructor(t){Ga(this,"colors"),Ga(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=m4(t);return this.colors[n]||this.setColorForKey(n,U4e())}setColorForKey(t,n){var r;const i=m4(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=z4e(n);this.lights[n]=V4e(...r)>=$4e}return this.lights[n]}}const nU=({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)},H4e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);nU(e,i,n)};class G4e{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);nU(this.window,i,n)}}class q4e{constructor(t,n){Ga(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Ga(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Ga(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);H4e(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function K4e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",G4e,"fetch","window"),e.service("ColorGenerator",W4e,"TagColorsStorage"),e.constant("jsonToCsv",L4e),e.service("ReportExporter",q4e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>lD)}const Tp=({visits:e,shortUrl:t,children:n,title:r})=>m.jsx("header",{children:m.jsxs(Br,{body:!0,children:[m.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[m.jsx(ub,{}),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(kB,{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})]})}),db=({children:e,className:t})=>m.jsx("div",{className:Ee("d-flex justify-content-between align-items-center",t),children:e}),rU=({title:e,footer:t,children:n})=>m.jsxs(Br,{role:"document",children:[m.jsx(ap,{className:"chart-card__header",children:e}),m.jsx(op,{children:n}),t&&m.jsx(GI,{className:"chart-card__footer--sticky",children:t})]}),iU={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},Y4e={marginBottom:"5px",fontWeight:"bold"},oU={contentStyle:iU,labelStyle:Y4e,itemStyle:{padding:0}},v4=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],aU=e=>v4[e%v4.length],Py=()=>up()?"#46e587":"#1DAA58",Z4e=()=>up()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",X4e=({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:[" (",qt(i),")"]})]})]},n))}),g4=e=>M.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:aU(r)})),[e]),Q4e=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=g4(e),o=g4(t),a=o.length>0,s=up()?Tre:Pre;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?M.Fragment:vC,{children:m.jsxs(Dke,{...r,children:[m.jsx(Qr,{formatter:qt,contentStyle:iU,itemStyle:{color:"white"}}),m.jsx(vo,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((c,l)=>m.jsx(Va,{fill:c.color,stroke:s},`${c.name}-${l}`))}),a&&m.jsx(vo,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:Py()})]})})})}),m.jsx("div",{className:"col-sm-12 col-md-5",children:m.jsx(X4e,{chartData:i,showNumbers:n})})]})},y4=({title:e,...t})=>{const[n,r]=Rt(!1);return m.jsx(rU,{title:m.jsxs(db,{children:[e,m.jsx("div",{children:m.jsx(Go,{checked:n,onChange:r,children:"Show numbers"})})]}),children:m.jsx(Q4e,{...t,showNumbersInLegend:n})})},J4e=M.forwardRef(({visitsGroups:e},t)=>{const n=M.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:m.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",ref:t,children:n.map(([r,i],o)=>m.jsxs("li",{className:"d-inline",children:[m.jsx(HB,{color:sU(i)}),m.jsxs("strong",{children:[r," (",qt(i.length),")"]})]},`${r}${o}`))})}),eRe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},tRe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},nRe={hourly:Bie,daily:dp,weekly:Hie,monthly:_g},_P={hourly:e=>xg(e,"yyyy-MM-dd HH:00"),daily:e=>Na(e),weekly(e){const t=Na(ah(e)),n=Na(Kie(e));return`${t} - ${n}`},monthly:e=>xg(e,"yyyy-MM")},rRe=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=>Qa(a[a.length-1].date)),o=BE(i);return((t=[[()=>dp(r,o)<=2,"hourly"],[()=>_g(r,o)<=1,"daily"],[()=>_g(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},iRe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=PD(t[r],i=>_P[e](Qa(i.date))),n),{}),oRe=(e,t)=>t.reduce((n,r)=>{const i=_P[e](Qa(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),aRe=(e,t)=>{const n=Object.values(t).filter(d=>d.length>0).map(d=>[...d].reverse());if(n.length===0)return[];const r=nRe[e],i=_P[e],o=tRe[e],a=n.map(d=>Qa(d[0].date)),s=n.map(d=>Qa(d[d.length-1].date)),c=BE(s),l=MD(a),f=r(c,l)+1;return[{formattedDate:i(l),date:l},...fP(f,d=>{const p=Lie(l,o(d));return{formattedDate:i(p),date:p}})]},sU=e=>{if(e.color)return e.color;const t={main:th,highlighted:Xw,previous:Py()};return e.type?t[e.type]:th},b4=(e,t)=>M.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),sRe=(e,t,n)=>{const r=b4(e,"main"),i=b4(e,"highlighted"),o=M.useMemo(()=>n?oRe(t,r):{},[n,t,r]),a=M.useCallback((s,{payload:c})=>{const l=o[c.formattedDate]??[];n==null||n(l===i?[]:l)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},_4=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},lU=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r,onDateRangeChange:i})=>{const[o,a]=M.useState(rRe(e)),s=hP(767,r??window.matchMedia),c=M.useMemo(()=>{const D=iRe(o,e),q=Object.keys(D);return aRe(o,e).map(({formattedDate:W,date:X})=>({date:X,formattedDate:W,...q.reduce((Q,ne)=>(Q[ne]=D[ne][W]??0,Q),{})}))},[o,e]),l=sRe(e,o,t),[f,d,,p]=Rt(),v=$i(),y=M.useId(),g=$i(),[x,_]=M.useState(s?300:400);M.useLayoutEffect(()=>{if(!f)return _(s?300:400),()=>{};const D=new ResizeObserver(()=>{const{height:q}=v.current.getBoundingClientRect(),{height:W}=g.current.getBoundingClientRect();_(q-W-48)});return D.observe(v.current),D.observe(g.current),()=>D.disconnect()},[v,f,s,g]),WNe("Escape",p,f);const b=n?M.Fragment:vC,w=M.useMemo(()=>n?{}:{width:"100%",height:x},[n,x]),[S,E]=M.useState(),[C,T]=M.useState(),A=M.useCallback(()=>{E(void 0),T(void 0)},[]),F=M.useCallback((D,q)=>{const W=_4(D);q.button===0&&W&&E(W)},[]),k=M.useCallback(D=>{const q=_4(D);S&&q&&T(q)},[S]),I=M.useCallback(()=>{if(!S||!C)return;const D=[S.date,C.date],q=MD(D),W=BE(D);A(),i({startDate:q,endDate:W})},[i,A,C,S]);return m.jsxs(Br,{className:Ee({"fixed-top fixed-bottom":f}),"data-testid":"line-chart-card",children:[m.jsxs(ap,{role:"heading","aria-level":4,className:"d-flex justify-content-between align-items-center",children:["Visits over time",m.jsxs("div",{className:"d-flex align-content-center gap-1",children:[m.jsx(qe,{"aria-label":f?"Collapse":"Expand","aria-expanded":f,"aria-controls":y,size:"sm",color:"link",onClick:d,children:m.jsx(je,{icon:f?Eq:_K})}),m.jsxs(sp,{className:"d-flex align-items-center",children:[m.jsx(na,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),m.jsx(cs,{end:!0,children:Object.entries(eRe).map(([D,q])=>m.jsx(Ne,{active:o===D,onClick:()=>a(D),children:q},D))})]})]})]}),m.jsxs(op,{innerRef:v,id:y,children:[m.jsx(b,{...w,children:m.jsxs(Ike,{className:"user-select-none",data:c,...n,onMouseDown:F,onMouseMove:k,onMouseUp:I,children:[m.jsx(Yu,{dataKey:"formattedDate"}),m.jsx(Zu,{tickFormatter:qt,yAxisId:"1"}),m.jsx(Qr,{formatter:qt,...oU}),m.jsx(XC,{strokeOpacity:up()?.1:.9}),Object.entries(e).map(([D,q])=>q.length>0&&m.jsx(Ku,{yAxisId:"1",dataKey:D,type:"monotone",stroke:sU(q),strokeWidth:2,activeDot:q.type==="previous"?void 0:l,strokeDasharray:q.type==="previous"?"8 3":void 0},D)),S&&C&&m.jsx(Gu,{yAxisId:"1",x1:S.formattedDate,x2:C.formattedDate})]})}),m.jsx(J4e,{visitsGroups:e,ref:g})]})]})},lRe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>m.jsxs(sp,{children:[m.jsx(na,{caret:!0,color:"link",className:e,children:"Paginate"}),m.jsxs(cs,{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"})})]})]}),x4=e=>e.startsWith("hidden_"),cRe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=M.useMemo(()=>Object.entries(e).map(([d,p])=>{const v=(n==null?void 0:n[d])??0,y=(t==null?void 0:t[d])??0,g=x4(d);return{name:d,amount:Math.max(p,y),nonHighlightedAmount:g?null:p-v,highlightedAmount:g?null:v,prevAmount:g?null:y}}),[e,t,n]),c=M.useMemo(()=>{const d=s.reduce((p,{name:v})=>p>v.length?p:v.length,0);return Math.min(150,d*7)},[s]),l=a?M.Fragment:vC,f=M.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return m.jsx(l,{...f,children:m.jsxs(Fke,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[m.jsx(Yu,{type:"number",dataKey:"amount",tickFormatter:qt,domain:i?[0,i]:void 0}),m.jsx(Zu,{type:"category",dataKey:"name",width:c,interval:0,style:{fontSize:".8rem"},tickFormatter:d=>x4(d)?"":d}),m.jsx(XC,{strokeOpacity:up()?.05:.9}),m.jsx(Qr,{filterNull:!0,...oU,formatter:(d,p)=>[qt(d),p==="highlightedAmount"?r:p==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),m.jsx(Io,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:th,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Va,{fill:Ere,stroke:th,strokeWidth:2},d.name))}),n&&m.jsx(Io,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:Xw,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Va,{fill:Cre,stroke:Xw,strokeWidth:2},d.name))}),t&&m.jsx(Io,{dataKey:"prevAmount",fill:Py(),children:s.map(d=>m.jsx(Va,{fill:Z4e(),stroke:Py(),strokeWidth:2},d.name))})]})})},uRe=e=>typeof e=="string"?e.toLowerCase():e,fRe=([e])=>e,dRe=([,e])=>e,Dm=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[c,l]=M.useState({}),[f,d]=M.useState(1),[p,v]=M.useState(50),y=M.useCallback((A,F)=>{const k=Object.entries(A),I=c.field?kie(k,([D,q])=>uRe(c.field===Object.keys(F)[0]?D:q)):k;return!c.dir||c.dir==="ASC"?I:[...I].reverse()},[c.dir,c.field]),g=M.useCallback(A=>{const F=A[f-1];if(f<A.length)return F;const k=A[0].length;return[...F,...fP(k-F.length,I=>[`hidden_${I}`,0])]},[f]),x=M.useCallback(A=>m.jsx(bP,{currentPage:f,pagesCount:A,setCurrentPage:d}),[f]),_=M.useCallback((A,F,k,I)=>{const D=y(A,F),q=D.map(fRe),W=k&&Object.entries({...g3(q,q.map(()=>0)),...k}),X=I&&Object.entries({...g3(q,q.map(()=>0)),...I});if(D.length<=p)return{currentPageStats:Object.fromEntries(D),currentPageHighlightedStats:W&&Object.fromEntries(W),currentPagePrevStats:X&&Object.fromEntries(X)};const Q=Mc(D,p),ne=W&&Mc(W,p),Z=X&&Mc(X,p);return{currentPageStats:Object.fromEntries(g(Q)),currentPageHighlightedStats:ne&&Object.fromEntries(g(ne)),currentPagePrevStats:Z&&Object.fromEntries(g(Z)),pagination:x(Q.length),max:uMe(Math.max(...D.map(dRe)))}},[g,y,p,x]),{currentPageStats:b,currentPagePrevStats:w,currentPageHighlightedStats:S,pagination:E,max:C}=M.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=M.useMemo(()=>Object.keys(b),[b]);return m.jsx(rU,{title:m.jsxs(db,{children:[r,m.jsxs("div",{className:"d-flex gap-3",children:[o==null?void 0:o(E?T:void 0),a&&Object.keys(e).length>50&&m.jsx(lRe,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:p,setValue:A=>{v(A),d(1)}}),m.jsx(cp,{isButton:!1,right:!0,items:i,order:c,onChange:(A,F)=>{l({field:A,dir:F}),d(1)}})]})]}),footer:E,children:m.jsx(cRe,{stats:b,prevStats:w,highlightedStats:S,max:C,...s})})},w4=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&ns(t[e])||""},cU=()=>{const e=yo(),t=Au(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,c=M.useMemo(()=>({dateRange:n!=null||r!=null?B7(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]),l=M.useCallback(f=>{const{dateRange:d,visitsFilter:p={},loadPrevInterval:v}=h0(c,f),{excludeBots:y,orphanVisitsType:g}=p,x={...s,startDate:w4("startDate",d),endDate:w4("endDate",d),excludeBots:y===void 0?void 0:BO(y),orphanVisitsType:g,loadPrevInterval:v===void 0?void 0:BO(v)},_=a0(x),b=_?`?${_}`:"";e(b,{replace:!0,relative:"route"})},[c,e,s]);return[c,l]},hRe=()=>m.jsx(nNe,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),pRe=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}},uU=({toggle:e,isOpen:t,title:n,locations:r=[]})=>m.jsx(br,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:m.jsxs(Ii,{className:"map-modal__modal-body",children:[m.jsxs(db,{className:"map-modal__modal-title fs-4",children:[n,m.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),m.jsxs(Jke,{...pRe(r),children:[m.jsx(hRe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>m.jsx(eNe,{position:o,children:m.jsxs(tNe,{children:[m.jsx("b",{children:a})," visit",a>1?"s":""," from ",m.jsx("b",{children:i})]})},s))]})]})}),mRe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=Rt(),[a,s]=Rt(),[c,l]=M.useState([]),f=M.useCallback(d=>{l(d?n.filter(d):n),i()},[n,i]);return m.jsxs(m.Fragment,{children:[!t&&m.jsx(qe,{color:"link",className:"p-0",onClick:()=>f(),"aria-label":"Show in map",title:"Show in map",children:m.jsx(je,{icon:vx})}),t&&m.jsxs(ls,{isOpen:a,toggle:s,children:[m.jsx(na,{color:"link",className:"p-0",title:"Show in map",children:m.jsx(je,{icon:vx})}),m.jsxs(cs,{end:!0,children:[m.jsx(Ne,{onClick:()=>f(),children:"Show all locations"}),m.jsx(Ne,{onClick:()=>f(({cityName:d})=>t.includes(d)),children:"Show locations in current page"})]})]}),m.jsx(uU,{toggle:o,isOpen:r,title:e,locations:c})]})},fU=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:c=!1}=t,l=p=>({active:a===p,onClick:()=>e({...t,orphanVisitsType:p===a?void 0:p})}),f=M.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),d=M.useCallback(()=>e({...t,loadPrevInterval:!c}),[c,e,t]);return m.jsxs(ra,{disabled:o,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&m.jsxs(m.Fragment,{children:[m.jsx(Ne,{active:c,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,{...l("base_url"),children:"Base URL"}),m.jsx(Ne,{...l("invalid_short_url"),children:"Invalid short URL"}),m.jsx(Ne,{...l("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"})})]})},dU=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return m.jsxs(m.Fragment,{children:[t&&r===null&&m.jsx(Ho,{loading:!0}),t&&r!==null&&m.jsxs(Ho,{loading:!0,children:["This is going to take a while... :S",m.jsx(XI,{value:r,striped:r>=100,className:"mt-3"})]}),n&&m.jsx(Jn,{type:"error",children:m.jsx(go,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},dv=({children:e,showFallback:t})=>m.jsxs(m.Fragment,{children:[t&&m.jsx(Ho,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&m.jsx(m.Fragment,{children:e})]}),vRe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=Rt();return m.jsx(yt,{title:m.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:m.jsxs(db,{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(qe,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&m.jsxs(qe,{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..."})]})]})})},Fm="Others",gRe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],yRe=e=>{if(!Fs(e))return{browser:Fm,os:Fm};const{browser:{name:t},os:{name:n}}=lNe.parse(e);return{os:n??Fm,browser:t&&gRe.includes(t)?t:Fm}},bRe=e=>{var t;return Fs(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},hU=(e,t)=>e[t]!==void 0,O4=e=>typeof e=="number"?e:e?parseFloat(e):0,_Re=(e,{os:t})=>{e[t]=(e[t]||0)+1},xRe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},wRe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},pU=e=>(t,n)=>{const r=hU(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},ORe=pU("country"),SRe=pU("city"),ERe=(e,t)=>{if(!hU(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[O4(r),O4(i)]};o.count+=1,e[n]=o},CRe=(e,t)=>{if(!CNe(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},GO=e=>e.reduce((t,n)=>(_Re(t.os,n),xRe(t.browsers,n),wRe(t.referrers,n),ORe(t.countries,n),SRe(t.cities,n),ERe(t.citiesForMap,n),CRe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),Ty=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t;return{date:r,potentialBot:a,userAgent:n,...yRe(n),referer:bRe(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:uP(t)?t.type:void 0}}),PRe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:Ty,processStatsFromVisits:GO},Symbol.toStringTag,{value:"Module"})),Qf=20,TRe=({browser:e,os:t,referer:n,country:r,city:i,userAgent:o,...a},s,c)=>{const l=c?o:`${r} ${i}`;return`${e} ${t} ${n} ${l} ${a.visitedUrl}`.toLowerCase().includes(s.toLowerCase())},jRe=(e,t,n)=>t.filter(r=>TRe(r,e,n)),ARe=(e,t)=>uD(t,e),kRe=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?jRe(t,e,r):[...e],o=ARe(n,i),a=o.length;return{visitsGroups:Mc(o,Qf),total:a}},Yi="visits-table__header-cell visits-table__sticky",NRe=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia})=>{var i;const o=hP(767,r),[a,s]=M.useState(void 0),c=M.useRef(a),[l,f]=M.useState({}),[d,p]=Rt(),v=M.useCallback(()=>{p(),f({})},[p]),y=M.useMemo(()=>kRe({visits:e,searchTerm:a,order:l,searchInRawUserAgent:d}),[e,a,l,d]),[g,x]=M.useState(1),_=g*Qf,b=_-Qf,w=M.useMemo(()=>{var A,F;return!!((F=(A=y.visitsGroups[g-1])==null?void 0:A[0])!=null&&F.visitedUrl)},[g,y.visitsGroups]),S=6+Number(w)+(d?1:2),E=y.total>0,C=A=>()=>f({field:A,dir:l0(A,l.field,l.dir)}),T=A=>m.jsx(Cd,{currentOrder:l,field:A,className:"visits-table__header-icon"});return M.useEffect(()=>{c.current!==a&&(x(1),n([])),c.current=a},[a,n]),m.jsx(yt,{className:"mt-3",bodyClassName:"p-0 pb-1",title:m.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:["Visits list",m.jsx(Go,{checked:d,onChange:v,children:"Show user agent"})]}),children:m.jsx("div",{className:"table-responsive-md",children:m.jsxs("table",{className:Ee("table table-sm position-relative m-0 visits-table",{"table-hover":E}),children:[m.jsxs("thead",{className:"visits-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:`${Yi} text-center`,onClick:()=>n(t.length<y.total?y.visitsGroups.flat():[]),children:[m.jsx("span",{className:"sr-only",children:"Is selected"}),m.jsx(je,{icon:Gd,className:Ee({"text-primary":t.length>0})})]}),m.jsxs("th",{className:`${Yi} text-center`,onClick:C("potentialBot"),children:[m.jsx("span",{className:"sr-only",children:"Is bot"}),m.jsx(je,{icon:Xj}),T("potentialBot")]}),m.jsxs("th",{className:Yi,onClick:C("date"),children:["Date",T("date")]}),m.jsxs("th",{className:Yi,onClick:C("country"),children:["Country",T("country")]}),m.jsxs("th",{className:Yi,onClick:C("city"),children:["City",T("city")]}),d?m.jsxs("th",{className:Yi,onClick:C("userAgent"),children:["User agent",T("userAgent")]}):m.jsxs(m.Fragment,{children:[m.jsxs("th",{className:Yi,onClick:C("browser"),children:["Browser",T("browser")]}),m.jsxs("th",{className:Yi,onClick:C("os"),children:["OS",T("os")]})]}),m.jsxs("th",{className:Yi,onClick:C("referer"),children:["Referrer",T("referer")]}),w&&m.jsxs("th",{className:Yi,onClick:C("visitedUrl"),children:["Visited URL",T("visitedUrl")]})]}),m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"p-0",children:m.jsx(lp,{noBorder:!0,large:!1,onChange:s})})})]}),m.jsxs("tbody",{children:[!E&&m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"text-center",children:"There are no visits matching current filter"})}),(i=y.visitsGroups[g-1])==null?void 0:i.map((A,F)=>{const k=t.includes(A);return m.jsxs("tr",{style:{cursor:"pointer"},className:Ee({"table-active":k}),onClick:()=>n(k?t.filter(I=>I!==A):[...t,A]),children:[m.jsx("td",{className:"text-center",children:k&&m.jsx(je,{icon:Gd,className:"text-primary"})}),m.jsx("td",{className:"text-center",children:A.potentialBot&&m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:Xj,id:`botIcon${F}`}),m.jsx(Ur,{placement:"right",target:`botIcon${F}`,children:"Potentially a visit from a bot or crawler"})]})}),m.jsx("td",{children:m.jsx(Ey,{date:A.date})}),m.jsx("td",{children:A.country}),m.jsx("td",{children:A.city}),d?m.jsx("td",{children:A.userAgent}):m.jsxs(m.Fragment,{children:[m.jsx("td",{children:A.browser}),m.jsx("td",{children:A.os})]}),m.jsx("td",{children:A.referer}),A.visitedUrl&&m.jsx("td",{children:A.visitedUrl})]},F)})]}),y.total>Qf&&m.jsx("tfoot",{children:m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"visits-table__footer-cell visits-table__sticky",children:m.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-center gap-3 p-2",children:[m.jsx(bP,{pagesCount:Math.ceil(y.total/Qf),currentPage:g,setCurrentPage:x,centered:o}),m.jsxs("div",{children:["Visits ",m.jsx("b",{children:qt(b+1)})," to"," ",m.jsx("b",{children:qt(Math.min(_,y.total))})," of"," ",m.jsx("b",{children:qt(y.total)})]})]})})})})]})})})},ya={byTime:{title:"By time",subPath:"by-time",icon:Pq},byContext:{title:"By context",subPath:"by-context",icon:eE},byLocation:{title:"By location",subPath:"by-location",icon:vx},list:{title:"List",subPath:"list",icon:T6},options:{title:"Options",subPath:"options",icon:M6,shouldRender:({deletion:e})=>!!e}};Object.freeze(ya);const v_=({display:e})=>e&&m.jsx("div",{className:"mt-3 mx-auto w-75",children:m.jsx(yt,{children:m.jsxs("div",{className:"d-flex gap-2",children:[m.jsx(je,{icon:EK,className:"mt-1"}),m.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let Bm;const jp=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:c,prevVisits:l,loading:f,errorData:d,fallbackInterval:p}=n,[{dateRange:v,visitsFilter:y,loadPrevInterval:g},x]=cU(),_=or("visits"),[b,w]=M.useState(),S=M.useCallback(({startDate:j,endDate:N},U)=>{x({dateRange:{startDate:j??void 0,endDate:N??void 0}}),w(U)},[x]),E=M.useRef(v??p??(_==null?void 0:_.defaultInterval)??"last30Days"),[C,T]=M.useState([]),[A,F]=M.useState(),k=M.useRef(!0),{search:I}=gr(),D=M.useCallback(j=>j?`${j}${I}`:I,[I]),q=M.useMemo(()=>Ty(c),[c]),W=M.useMemo(()=>l&&Ty(l),[l]),{os:X,browsers:Q,referrers:ne,countries:Z,cities:z,citiesForMap:B,visitedUrls:H}=M.useMemo(()=>GO(q),[q]),ee=M.useMemo(()=>GO(W??[]),[W]),K=M.useMemo(()=>Object.fromEntries([["Visits",Object.assign(q,{type:"main"})],W&&["Previous period",Object.assign(W,{type:"previous"})],C.length>0&&[A??"Selected",Object.assign(C,{type:"highlighted"})]].filter(Boolean)),[A,C,W,q]),te=M.useMemo(()=>({...y,excludeBots:y.excludeBots??(_==null?void 0:_.excludeBots),loadPrevInterval:g??(_==null?void 0:_.loadPrevInterval)}),[g,y,_==null?void 0:_.excludeBots,_==null?void 0:_.loadPrevInterval]),ie=M.useMemo(()=>Object.values(B),[B]),ae=M.useCallback(j=>{Bm=void 0,T(j)},[]),fe=M.useCallback((j,N)=>{const U=`${j}_${N}`;Bm===U?(T([]),F(void 0),Bm=void 0):(T(q.filter(J=>J[j]===N)),F(N),Bm=U)},[q]);return M.useEffect(()=>i,[i]),M.useEffect(()=>{const j=v??V7(E.current),{loadPrevInterval:N,...U}=te,J={doIntervalFallback:k.current,loadPrevInterval:N};r({dateRange:j,filter:U},J),ae([]),k.current=!1},[v,y,r,te,ae]),M.useEffect(()=>{p&&E.current===((_==null?void 0:_.defaultInterval)??"last30Days")&&(E.current=p)},[p,_==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(vP,{disabled:f,dateRangeOrInterval:b??v??E.current,defaultText:"All visits",onDatesChange:S})}),m.jsx(fU,{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})})]})}),c.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(PB,{className:"btn-md-block",amount:q.length,onClick:()=>a(q)}),m.jsxs(qe,{outline:!0,disabled:C.length===0,className:"btn-md-block ms-2",onClick:()=>ae([]),children:["Clear selection ",C.length>0&&m.jsxs(m.Fragment,{children:["(",qt(C.length),")"]})]})]})})]})}),m.jsxs("section",{className:"mt-3",children:[m.jsx(dU,{info:n}),!f&&!d&&m.jsxs(m.Fragment,{children:[m.jsx(cD,{fill:!0,children:Object.values(ya).map(({title:j,icon:N,subPath:U,shouldRender:J},Y)=>!J||J(e)?m.jsxs(pd,{to:D(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(Kn,{children:m.jsxs(Zy,{children:[m.jsx(ot,{path:ya.byTime.subPath,element:m.jsxs(dv,{showFallback:c.length===0,children:[m.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:m.jsx(lU,{visitsGroups:K,setSelectedVisits:ae,onDateRangeChange:S})}),m.jsx(v_,{display:!!te.loadPrevInterval&&!l})]})}),m.jsx(ot,{path:ya.byContext.subPath,element:m.jsxs(dv,{showFallback:c.length===0,children:[m.jsx("div",{className:Ee("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(y4,{title:"Operating systems",stats:X,prevStats:ee.os})}),m.jsx("div",{className:Ee("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(y4,{title:"Browsers",stats:Q,prevStats:ee.browsers})}),m.jsx("div",{className:Ee("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:m.jsx(Dm,{title:"Referrers",withPagination:!1,stats:ne,prevStats:ee.referrers,highlightedStats:Lm(C,"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(Dm,{title:"Visited URLs",stats:H,prevStats:ee.visitedUrls,highlightedStats:Lm(C,"visitedUrl"),highlightedLabel:A,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:j=>fe("visitedUrl",j)})}),m.jsx("div",{className:"col-12",children:m.jsx(v_,{display:!!te.loadPrevInterval&&!l})})]})}),m.jsx(ot,{path:ya.byLocation.subPath,element:m.jsxs(dv,{showFallback:c.length===0,children:[m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Dm,{title:"Countries",stats:Z,prevStats:ee.countries,highlightedStats:Lm(C,"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(Dm,{title:"Cities",stats:z,prevStats:ee.cities,highlightedStats:Lm(C,"city"),highlightedLabel:A,extraHeaderContent:j=>ie.length>0&&m.jsx(mRe,{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(v_,{display:!!te.loadPrevInterval&&!l})})]})}),m.jsx(ot,{path:ya.list.subPath,element:m.jsx("div",{className:"col-12",children:m.jsx(NRe,{visits:q,selectedVisits:C,setSelectedVisits:ae})})}),o&&m.jsx(ot,{path:ya.options.subPath,element:m.jsx("div",{className:"col-12 mt-3",children:m.jsx(vRe,{...o})})}),m.jsx(ot,{path:"*",element:m.jsx(GS,{replace:!0,to:D(ya.byTime.subPath)})})]})})]})]})]})},mU=Ui(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=$t(mU),{domain:i=""}=Pu(),[o,a=o]=i.split("_"),s=M.useCallback((l,f)=>e({domain:a,options:f,params:l}),[a,e]),c=M.useCallback(l=>r.exportVisits(`domain_${o}_visits.csv`,l),[o,r]);return m.jsx(jp,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:c,children:m.jsx(Tp,{visits:t.visits,title:`"${o}" visits`})})},()=>[nr.visits]),MRe=It(mU,["ReportExporter"]),vU=Ui(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=$t(vU),i=M.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=M.useCallback((a,s)=>e({options:s,params:a}),[e]);return m.jsx(jp,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:m.jsx(Tp,{title:"Non-orphan visits",visits:t.visits})})},()=>[nr.visits]),LRe=It(vU,["ReportExporter"]),gU=Ui(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=Xo("orphanVisitsDeletion"),{ReportExporter:a}=$t(gU),s=M.useCallback(f=>a.exportVisits("orphan_visits.csv",f),[a]),c=M.useCallback((f,d)=>{var p;return e({options:d,params:f,orphanVisitsType:(p=f.filter)==null?void 0:p.orphanVisitsType})},[e]),l=M.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return m.jsx(jp,{getVisits:c,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:l,isOrphanVisits:!0,children:m.jsx(Tp,{title:"Orphan visits",visits:t.visits})})},()=>[nr.orphanVisits]),RRe=It(gU,["ReportExporter"]),yU="shlink/orphanVisits",$Re={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},IRe=e=>Ep({typePrefix:`${yU}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=Sp(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),DRe=e=>Cp({name:yU,initialState:$Re,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>Op(o.date,r,i))}}),bU="shlink/orphanVisits",FRe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},BRe=(e,t)=>!t||t===e.type,URe=({data:e,...t},n)=>{const r=e.filter(i=>uP(i)&&BRe(i,n));return{...t,data:r}},zRe=e=>Ep({typePrefix:`${bU}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits({...s,type:t}).then(c=>URe(c,t)),a=Sp(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),VRe=(e,t)=>Cp({name:bU,initialState:FRe,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&&Op(a.date,i,o))}}),_U="shlink/orphanVisitsDeletion",S4={deletedVisits:0,deleting:!1,error:!1},WRe=e=>un(`${_U}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),HRe=e=>Qt({name:_U,initialState:S4,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:Vr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...S4,deletedVisits:i}})}}),xU="shlink/shortUrlVisits",GRe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},qRe=e=>Ep({typePrefix:`${xU}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=c=>i.getShortUrlVisits(t,{...c,domain:n}),s=Sp(o,c=>i.getShortUrlVisits(t,{...c,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),KRe=(e,t)=>Cp({name:xU,initialState:GRe,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)=>H7(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),wU="shlink/shortUrlVisitsDeletion",E4={shortCode:"",deletedVisits:0,deleting:!1,error:!1},YRe=e=>un(`${wU}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),ZRe=e=>Qt({name:wU,initialState:E4,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:Vr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...E4,shortCode:i,domain:o,deletedVisits:a}})}}),OU="shlink/tagVisits",XRe={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},QRe=e=>Ep({typePrefix:`${OU}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=Sp(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),JRe=e=>Cp({name:OU,initialState:XRe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>q7(r,t,n==null?void 0:n.dateRange)}),SU="shlink/visitsOverview",Um={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},C4=e=>e.filter(({visit:t})=>t.potentialBot).length,e$e=e=>un(`${SU}/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}}))),t$e=e=>Qt({name:SU,initialState:Um,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Um,loading:!0})),t.addCase(e.rejected,()=>({...Um,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Um,...r})),t.addCase(Xu,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=PNe(o.createdVisits),c=a.length,l=C4(a),f=c-l,d=s.length,p=C4(s),v=d-p;return{...i,nonOrphanVisits:{total:n.total+c,bots:n.bots&&n.bots+l,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+d,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+v}}})}}),n$e=({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(Tp,{title:m.jsxs(m.Fragment,{children:["Visits for ",m.jsx(vr,{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(Ey,{date:e.dateCreated,relative:!0})}),m.jsx(Ur,{placement:"bottom",target:"created",children:m.jsx(Ey,{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(vr,{href:o,children:a??o})]})]})},EU=Ui(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=Xo("shortUrlVisitsDeletion"),{ReportExporter:c}=$t(EU),l=mP(),f=M.useMemo(()=>{var y;return(y=n.shortUrls)==null?void 0:y.get(l)},[l,n.shortUrls]),d=M.useCallback((y,g)=>r({...l,options:g,params:y}),[r,l]),p=M.useCallback(y=>c.exportVisits(`short-url_${f==null?void 0:f.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,y),[c,f==null?void 0:f.shortUrl]),v=M.useMemo(()=>s?{deleteVisits:()=>o(l),visitsDeletion:t}:void 0,[o,l,t,s]);return M.useEffect(()=>{i([l])},[l,i]),m.jsx(jp,{getVisits:d,cancelGetVisits:a,visitsInfo:e,exportCsv:p,deletion:v,children:m.jsx(n$e,{shortUrl:f,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[nr.shortUrlVisits(aP(e.shortCode))]:[]),r$e=It(EU,["ReportExporter"]),i$e=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return m.jsx(Tp,{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(fb,{text:r,colorGenerator:t})]}),visits:n})},CU=Ui(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=$t(CU),{tag:o=""}=Pu(),a=M.useCallback((c,l)=>e({tag:o,params:c,options:l}),[e,o]),s=M.useCallback(c=>i.exportVisits(`tag_${o}_visits.csv`,c),[i,o]);return m.jsx(jp,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:m.jsx(i$e,{tagVisits:t,colorGenerator:r})})},()=>[nr.visits]),o$e=It(CU,["ColorGenerator","ReportExporter"]),xP=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=or("visits"),c=M.useMemo(()=>Object.keys(a).reduce((b,w,S)=>(b[w]=Object.assign(Ty(a[w]),{color:(t==null?void 0:t[w])??aU(S)}),b),{}),[t,a]),l=M.useMemo(()=>Object.values(a).every(b=>b.length===0),[a]),[{dateRange:f,visitsFilter:d},p]=cU(),[v,y]=M.useState(),g=M.useCallback(({startDate:b,endDate:w},S)=>{p({dateRange:{startDate:b??void 0,endDate:w??void 0}}),y(S)},[p]),x=M.useRef(f??(s==null?void 0:s.defaultInterval)??"last30Days"),_=M.useMemo(()=>({...d,excludeBots:d.excludeBots??(s==null?void 0:s.excludeBots)}),[d,s==null?void 0:s.excludeBots]);return M.useEffect(()=>{const b=f??V7(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(yt,{bodyClassName:"d-flex",children:[m.jsx(ub,{}),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(vP,{disabled:o,defaultText:"All visits",dateRangeOrInterval:v??f??x.current,onDatesChange:g})}),m.jsx(fU,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:_,onChange:({orphanVisitsType:b,excludeBots:w})=>p({visitsFilter:{orphanVisitsType:b,excludeBots:w}})})]})}),m.jsx(dU,{info:r}),!o&&m.jsx(dv,{showFallback:l,children:m.jsx(lU,{visitsGroups:c,onDateRangeChange:g})})]})},a$e=Ui(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=dP("domains"),i=M.useCallback(o=>e({...o,domains:r}),[r,e]);return m.jsx(xP,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[nr.visits]),s$e=({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(c=>[c,0])),a=(c,l)=>{o[c]=l;const f=Object.values(o),d=f.reduce((p,v)=>p+v,0);n(d/f.length)},s=Object.entries(e).map(([c,l])=>[c,K7({visitsLoader:l,batchSize:i,shouldCancel:t,progressChanged:f=>a(c,f)})]);return async c=>{const l=await Promise.all(s.map(async([f,d])=>{const p=await d(c);return[f,p]}));return Object.fromEntries(l)}},wP=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=er(`${e}/progressChanged`),i=un(e,async(o,{getState:a,dispatch:s})=>{const c=t(o),l=await s$e({visitsLoaders:c,shouldCancel:()=>n(a),progressChanged:f=>s(r(f))})(FO(o.params));return{...o,visitsGroups:l}});return Object.assign(i,{progressChanged:r})},OP=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:c,actions:l}=Qt({name:e,initialState:n,reducers:{cancelGetVisits:d=>({...d,cancelLoad:!0})},extraReducers:d=>{d.addCase(i,()=>({...n,loading:!0})),d.addCase(o,(p,{error:v})=>({...n,errorData:Vr(v)??null})),d.addCase(a,(p,{payload:v})=>({...p,...v,loading:!1,progress:null,errorData:null})),d.addCase(s,(p,{payload:v})=>({...p,progress:v})),d.addCase(Xu,(p,{payload:v})=>{const{visitsGroups:y,...g}=p,x=Object.keys(y).map(b=>{const w=r({...g,groupKey:b},v.createdVisits).map(({visit:S})=>S);return[b,[...w,...y[b]]]}),_=Object.fromEntries(x);return{...g,visitsGroups:_}})}}),{cancelGetVisits:f}=l;return{reducer:c,cancelGetVisits:f}},PU="shlink/domainVisitsComparison",l$e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},c$e=e=>wP({typePrefix:`${PU}/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}),u$e=e=>OP({name:PU,initialState:l$e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>G7(r,t,n==null?void 0:n.dateRange)}),TU="shlink/shortUrlVisitsComparison",f$e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},d$e=e=>wP({typePrefix:`${TU}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[sP(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),h$e=e=>OP({name:TU,initialState:f$e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>H7(r,$7(t),n==null?void 0:n.dateRange)}),jU="shlink/tagVisitsComparison",p$e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},m$e=e=>wP({typePrefix:`${jU}/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}),v$e=e=>OP({name:jU,initialState:p$e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>q7(r,t,n==null?void 0:n.dateRange)}),g$e=Ui(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=dP("short-urls"),a=M.useMemo(()=>o.map($7),[o]),s=M.useCallback(f=>e({...f,shortUrls:a}),[e,a]),c=M.useMemo(()=>{var f;return[...((f=r.shortUrls)==null?void 0:f.values())??[]]},[r.shortUrls]),l=M.useMemo(()=>{const{visitsGroups:f,loading:d,...p}=t,v=c.reduce((y,g)=>(y[g.shortUrl]=f[sP(g)]??[],y),{});return{...p,visitsGroups:v,loading:d||r.loading}},[t,r.loading,c]);return M.useEffect(()=>{a.length>0&&i(a)},[i,a]),m.jsx(xP,{title:m.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${c.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:l,cancelGetVisitsComparison:n})},()=>[nr.visits]),AU=Ui(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=$t(AU),i=dP("tags"),o=M.useCallback(c=>e({...c,tags:i}),[e,i]),{visitsGroups:a}=t,s=M.useMemo(()=>Object.keys(a).reduce((c,l)=>(c[l]=r.getColorForKey(l),c),{}),[r,a]);return m.jsx(xP,{title:m.jsxs(m.Fragment,{children:["Comparing ",i.map(c=>m.jsx(fb,{colorGenerator:r,text:c},c))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[nr.visits]),y$e=It(AU,["ColorGenerator"]),b$e=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>uU),e.factory("ShortUrlVisits",r$e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",o$e),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",y$e),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>a$e),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>g$e),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",MRe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",RRe),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",LRe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>PRe),e.serviceFactory("getShortUrlVisits",qRe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",d$e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",YRe,"apiClientFactory"),e.serviceFactory("getTagVisits",QRe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",m$e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",$Ne,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",c$e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",zRe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",WRe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",IRe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Xu),e.serviceFactory("loadVisitsOverview",e$e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",t$e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",INe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",DRe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",VRe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",HRe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",KRe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",ZRe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",JRe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",v$e,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",u$e,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",h$e,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},Df=({children:e,to:t,className:n,...r})=>m.jsx(h6,{className:({isActive:i})=>Ee("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),_$e=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=gr(),r=Ee("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(Df,{to:i("/overview"),children:[m.jsx(je,{fixedWidth:!0,icon:rK}),m.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),m.jsxs(Df,{to:i("/list-short-urls/1"),className:Ee({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[m.jsx(je,{fixedWidth:!0,icon:T6}),m.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),m.jsxs(Df,{to:i("/create-short-url"),children:[m.jsx(je,{fixedWidth:!0,icon:cK,flip:"horizontal"}),m.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),m.jsxs(Df,{to:i("/manage-tags"),children:[m.jsx(je,{fixedWidth:!0,icon:j6}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),m.jsxs(Df,{to:i("/manage-domains"),children:[m.jsx(je,{fixedWidth:!0,icon:$q}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},kU=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:c,Overview:l,EditShortUrl:f,ManageDomains:d,TagVisitsComparison:p,DomainVisitsComparison:v,ShortUrlVisitsComparison:y,ShortUrlRedirectRules:g}=$t(kU),x=gr(),_=vs(),[b,w,S,E]=Rt();M.useEffect(()=>E(),[x,E]);const C=Ee("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":b}),T=UNe(S,E),A=Xo("shortUrlRedirectRules");return m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:kq,className:C,onClick:w}),m.jsx("div",{...T,className:"shlink-layout__swipeable",children:m.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[m.jsx(_$e,{routePrefix:_,showOnMobile:b}),m.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>E(),children:m.jsx("div",{className:"container-xl",children:m.jsxs(Zy,{children:[m.jsx(ot,{index:!0,element:m.jsx(GS,{replace:!0,to:"overview"})}),m.jsx(ot,{path:"/overview",element:m.jsx(l,{})}),m.jsx(ot,{path:"/list-short-urls/:page",element:m.jsx(n,{})}),m.jsx(ot,{path:"/create-short-url",element:m.jsx(r,{})}),m.jsx(ot,{path:"/short-code/:shortCode/visits/*",element:m.jsx(i,{})}),m.jsx(ot,{path:"/short-code/:shortCode/edit",element:m.jsx(f,{})}),A&&m.jsx(ot,{path:"/short-code/:shortCode/redirect-rules",element:m.jsx(g,{})}),m.jsx(ot,{path:"/short-urls/compare-visits",element:m.jsx(y,{})}),m.jsx(ot,{path:"/tag/:tag/visits/*",element:m.jsx(o,{})}),m.jsx(ot,{path:"/tags/compare-visits",element:m.jsx(p,{})}),m.jsx(ot,{path:"/domain/:domain/visits/*",element:m.jsx(a,{})}),m.jsx(ot,{path:"/orphan-visits/*",element:m.jsx(s,{})}),m.jsx(ot,{path:"/non-orphan-visits/*",element:m.jsx(c,{})}),m.jsx(ot,{path:"/manage-tags",element:m.jsx(t,{})}),m.jsx(ot,{path:"/manage-domains",element:m.jsx(d,{})}),m.jsx(ot,{path:"/domains/compare-visits",element:m.jsx(v,{})}),e&&m.jsx(ot,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},x$e=It(kU,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),w$e=!0,O$e=e=>SD({devTools:!w$e,reducer:ME({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})}),S$e=e=>{e.factory("Main",x$e),e.factory("store",O$e)},zi=new S6,{container:E$e}=zi,C$e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),P$e=(e,t)=>(...n)=>e[t](...n),T$e=(e,t)=>({...e,[t]:P$e(E$e,t)}),Qu=(e,t=[])=>e6(e?C$e(e):null,t.reduce(T$e,{}));S$e(zi);c4e(zi,Qu);N4e(zi,Qu);b$e(zi,Qu);tMe(zi);QNe(zi,Qu);dMe(zi,Qu);K4e(zi);SLe(zi,Qu);let P4;const j$e=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=mLe(t),c=M.useRef(),[l,f]=M.useState(),d=El(),p=M.useMemo(()=>d?M.Fragment:d6,[d]);return M.useEffect(()=>{P4=n,e.value("apiClientFactory",()=>P4),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:y,store:g,loadMercureInfo:x,listTags:_}=v;c.current=m.jsx(y,{createNotFound:o}),f(g),g.dispatch(x(r)),g.dispatch(_())},[n,o,r,a]),l?m.jsx(t6,{store:l,children:m.jsx(UD,{value:r??{},children:m.jsx(pLe,{value:s,children:m.jsx(mNe,{value:i,children:m.jsx(p,{children:c.current})})})})}):m.jsx(m.Fragment,{})},A$e="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=",k$e="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==",N$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",M$e=()=>{delete WL.Icon.Default.prototype._getIconUrl,WL.Icon.Default.mergeOptions({iconRetinaUrl:k$e,iconUrl:A$e,shadowUrl:N$e})};M$e();const L$e=j$e(zi);function jy(e){return t=>{const{resetSelectedServer:n}=t;return M.useEffect(()=>{n()},[n]),m.jsx(e,{...t})}}let R$e=class extends M.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(yt,{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(qe,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const $$e=({id:e,name:t})=>m.jsxs(nD,{tag:At,to:`/server/${e}`,className:"servers-list__server-item",children:[t,m.jsx(je,{icon:pK,className:"servers-list__server-item-icon"})]}),NU=({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(eD,{"data-testid":"list",tag:"div",className:Ee("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>m.jsx($$e,{id:r,name:i},r))})]}),MU=({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"})]})}),I$e=({servers:e})=>{const t=yo(),n=Object.values(e),r=n.length>0;return M.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),m.jsx("div",{className:"home",children:m.jsx(Br,{className:"home__main-card",children:m.jsxs(Kn,{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(MU,{})})})}),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(NU,{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(At,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[m.jsx(je,{icon:ep})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]})}),m.jsx("p",{className:"mb-0 mt-5",children:m.jsx(vr,{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:Kq})]})})})]})})]})]})})})},LU=()=>{const{ServersDropdown:e}=Di(LU),[t,n,,r]=Rt(),i=gr(),{pathname:o}=i;M.useEffect(r,[i,r]);const a="/settings",s=Ee("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return m.jsxs(OI,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[m.jsxs(SI,{tag:At,to:"/",children:[m.jsx(MU,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),m.jsx(EI,{onClick:n,children:m.jsx(je,{icon:dK,className:s})}),m.jsx(CE,{navbar:!0,isOpen:t,children:m.jsxs(vE,{navbar:!0,className:"ms-auto",children:[m.jsx(gE,{children:m.jsxs(yE,{tag:At,to:a,active:o.startsWith(a),children:[m.jsx(je,{icon:gK}),"  Settings"]})}),m.jsx(e,{})]})})]})},D$e=Fi(LU,["ServersDropdown"]),F$e=({children:e})=>{const t=gr();return M.useEffect(()=>{scrollTo(0,0)},[t]),m.jsx(m.Fragment,{children:e})},RU=TD(e=>e,e=>{try{return s2(e,e,"=")}catch{return!1}}),$U=e=>RU(e)?`v${e}`:e,IU=(e,t="latest")=>RU(e)?e:t,B$e="%_VERSION_%",U$e=e=>$U(IU(e)),T4=({project:e,version:t})=>m.jsx(vr,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:m.jsx("b",{children:t})}),z$e=({selectedServer:e,clientVersion:t=B$e})=>{const n=U$e(t);return m.jsxs("small",{className:"text-muted",children:[XS(e)&&m.jsxs(m.Fragment,{children:["Server: ",m.jsx(T4,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",m.jsx(T4,{project:"shlink-web-client",version:n})]})},V$e=({selectedServer:e})=>m.jsx("div",{className:Ee("text-center",{"shlink-versions-container--with-sidebar":XS(e)}),children:m.jsx(z$e,{selectedServer:e})}),Ju=({children:e})=>m.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function DU(e){const t=n=>{const{ServerError:r}=Di(t),i=Pu(),{selectServer:o,selectedServer:a}=n;return M.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?gq(a)?m.jsx(r,{}):m.jsx(e,{...n}):m.jsx(Ju,{children:m.jsx(Ho,{loading:!0})})};return t}const FU=DU(M.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Di(FU);if(!XS(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(fD,{to:`${a}${s}`,children:"List short URLs"})})})),W$e=Fi(FU,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),H$e=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",jie,"fetch"),e.serviceFactory("ScrollToTop",()=>F$e),e.factory("MainHeader",D$e),e.serviceFactory("Home",()=>I$e),e.decorator("Home",jy),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>L$e),e.factory("ShlinkWebComponentContainer",W$e),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>V$e),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>R$e)},BU=()=>{const e=yo();return M.useCallback(()=>e(-1),[e])};var Tn=[];for(var g_=0;g_<256;++g_)Tn.push((g_+256).toString(16).slice(1));function G$e(e,t=0){return(Tn[e[t+0]]+Tn[e[t+1]]+Tn[e[t+2]]+Tn[e[t+3]]+"-"+Tn[e[t+4]]+Tn[e[t+5]]+"-"+Tn[e[t+6]]+Tn[e[t+7]]+"-"+Tn[e[t+8]]+Tn[e[t+9]]+"-"+Tn[e[t+10]]+Tn[e[t+11]]+Tn[e[t+12]]+Tn[e[t+13]]+Tn[e[t+14]]+Tn[e[t+15]]).toLowerCase()}var zm,q$e=new Uint8Array(16);function K$e(){if(!zm&&(zm=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!zm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zm(q$e)}var Y$e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const j4={randomUUID:Y$e};function Z$e(e,t,n){if(j4.randomUUID&&!t&&!e)return j4.randomUUID();e=e||{};var r=e.random||(e.rng||K$e)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,G$e(r)}const X$e=e=>t=>{t.preventDefault(),e()},UU=()=>Z$e(),zU=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return m.jsxs(br,{centered:!0,isOpen:e,children:[m.jsxs(bo,{children:["Duplicated server",i&&"s"]}),m.jsxs(Ii,{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(M.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(us,{children:[m.jsx(qe,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),m.jsx(qe,{color:"primary",onClick:r,children:"Save anyway"})]})]})},VU=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=M.useState((t==null?void 0:t.name)??""),[a,s]=M.useState((t==null?void 0:t.url)??""),[c,l]=M.useState((t==null?void 0:t.apiKey)??""),f=X$e(()=>e({name:i,url:a,apiKey:c}));return m.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[m.jsxs(yt,{className:"mb-3",title:r,children:[m.jsx(av,{value:i,onChange:o,children:"Name"}),m.jsx(av,{type:"url",value:a,onChange:s,children:"URL"}),m.jsx(av,{value:c,onChange:l,children:"API key"})]}),m.jsx("div",{className:"text-end",children:n})]})},A4=4e3,k4=({type:e})=>m.jsx("div",{className:"mt-3",children:m.jsxs(Jn,{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."]})}),WU=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Di(WU),i=yo(),o=BU(),a=!!Object.keys(e).length,[s,c]=r(!1,A4),[l,f]=r(!1,A4),[d,p]=Rt(),[v,y]=M.useState(),g=M.useCallback(_=>{const b=UU();t([{..._,id:b}]),i(`/server/${b}`)},[t,i]),x=M.useCallback(_=>{y(_),Object.values(e).some(({url:w,apiKey:S})=>_.url===w&&_.apiKey===S)?p():g(_)},[g,e,p]);return m.jsxs(Ju,{children:[m.jsxs(VU,{title:m.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:x,children:[!a&&m.jsx(n,{tooltipPlacement:"top",onImport:c,onImportError:f}),a&&m.jsx(qe,{outline:!0,onClick:o,children:"Cancel"}),m.jsx(qe,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&m.jsx(k4,{type:"success"}),l&&m.jsx(k4,{type:"error"}),m.jsx(zU,{isOpen:d,duplicatedServers:v?[v]:[],onDiscard:o,onSave:()=>v&&g(v)})]})},Q$e=Fi(WU,["ImportServersBtn","useTimeoutToggle"]),HU=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Di(HU),[o,,a,s]=Rt();return m.jsxs(m.Fragment,{children:[m.jsxs("button",{type:"button",className:Ee(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&m.jsx(je,{fixedWidth:!0,icon:QS}),m.jsx("span",{className:r,children:n??"Remove this server"})]}),m.jsx(i,{server:e,isOpen:o,toggle:s})]})},J$e=Fi(HU,["DeleteServerModal"]),e6e=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=yo(),a=M.useRef(!1),s=()=>{a.current=!0,t()},c=()=>{a.current&&(r(e),i&&o("/"))};return m.jsxs(br,{isOpen:n,toggle:t,centered:!0,onClosed:c,children:[m.jsx(bo,{toggle:t,className:"text-danger",children:"Remove server"}),m.jsxs(Ii,{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(us,{children:[m.jsx(qe,{color:"link",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"danger",onClick:s,children:"Delete"})]})]})},t6e=DU(({editServer:e,selectedServer:t,selectServer:n})=>{const r=BU(),{reconnect:i}=Au();if(!ld(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return m.jsx(Ju,{children:m.jsxs(VU,{title:m.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[m.jsx(qe,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),m.jsx(qe,{outline:!0,color:"primary",children:"Save"})]})})}),n6e=Fi(t6e,["ServerError"]),N4=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),GU=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Di(GU),c=$i(),[l,f]=M.useState([]),[d,,p,v]=Rt(),y=M.useRef([]),g=M.useCallback(w=>{e(w),r()},[e,r]),x=M.useCallback(async({target:w})=>{var S;return s.importServersFromFile((S=w.files)==null?void 0:S[0]).then(E=>{y.current=E;const C=Object.values(t),T=E.filter(F=>N4(C,F));!!T.length?(f(T),p()):g(E)}).then(()=>{w.value=null}).catch(i)},[g,i,t,s,p]),_=M.useCallback(()=>{g(y.current),v()},[g,v,y]),b=M.useCallback(()=>{g(y.current.filter(w=>!N4(l,w))),v()},[g,l,v]);return m.jsxs(m.Fragment,{children:[m.jsxs(qe,{outline:!0,id:"importBtn",className:a,onClick:()=>{var w;return(w=c.current)==null?void 0:w.click()},children:[m.jsx(je,{icon:Fq,fixedWidth:!0})," ",n??"Import from file"]}),m.jsxs(Ur,{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:c,onChange:x,"aria-hidden":!0}),m.jsx(zU,{isOpen:d,duplicatedServers:l,onDiscard:b,onSave:_})]})},r6e=Fi(GU,["ServersImporter"]),qU=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Di(qU);return m.jsx(Ju,{children:m.jsxs("div",{className:"server-error__container flex-column",children:[m.jsxs(Ho,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!ld(t)&&"Could not find this Shlink server.",ld(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(NU,{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(At,{to:"/server/create",children:"add a new one"}),"."]})}),ld(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(At,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},i6e=Fi(qU,["DeleteServerButton"]),o6e=4e3,KU=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Di(KU),[o,a]=M.useState(""),s=M.useMemo(()=>Object.values(e),[e]),c=M.useMemo(()=>s.filter(({name:p,url:v})=>`${p} ${v}`.toLowerCase().match(o.toLowerCase())),[s,o]),l=s.some(({autoConnect:p})=>!!p),[f,d]=r(!1,o6e);return m.jsxs(Ju,{children:[m.jsx(lp,{className:"mb-3",onChange:a}),m.jsxs(Kn,{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"}),c.length>0&&m.jsxs(qe,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[m.jsx(je,{icon:k6,fixedWidth:!0})," Export servers"]})]}),m.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:m.jsxs(qe,{outline:!0,color:"primary",className:"flex-fill",tag:At,to:"/server/create",children:[m.jsx(je,{icon:ep,fixedWidth:!0})," Add a server"]})})]}),m.jsx(yt,{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:[l&&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:[!c.length&&m.jsx("tr",{className:"text-center",children:m.jsx("td",{colSpan:4,children:"No servers found."})}),c.map(p=>m.jsx(i,{server:p,hasAutoConnect:l},p.id))]})]})}),f&&m.jsx("div",{className:"mt-3",children:m.jsx(Jn,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},a6e=Fi(KU,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),YU=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Di(YU);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:Gd,className:"text-primary",id:"autoConnectIcon"}),m.jsx(Ur,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:m.jsx(At,{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})})]})},s6e=Fi(YU,["ManageServersRowDropdown"]),ZU=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Di(ZU),[r,,i,o]=Rt(),a=`/server/${e.id}`,{autoConnect:s}=e,c=s?Iq:Dae;return m.jsxs(s0,{minWidth:s?210:170,children:[m.jsxs(Ne,{tag:At,to:a,children:[m.jsx(je,{icon:Rq,fixedWidth:!0})," Connect"]}),m.jsxs(Ne,{tag:At,to:`${a}/edit`,children:[m.jsx(je,{icon:JS,fixedWidth:!0})," Edit server"]}),m.jsxs(Ne,{onClick:()=>t(e,!s),children:[m.jsx(je,{icon:c,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:QS,fixedWidth:!0})," Remove server"]}),m.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},l6e=Fi(ZU,["DeleteServerModal"]),XU=(e,t)=>CD(e,t,{serializeError:n=>n}),c6e={},u6e=e=>"id"in e?e:{...e,id:UU()},f6e=e=>e.reduce((t,n)=>({...t,[n.id]:n}),{}),{actions:d6e,reducer:h6e}=Qt({name:"shlink/servers",initialState:c6e,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:f6e(e.map(u6e))}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:p6e,deleteServer:m6e,setAutoConnect:v6e,createServers:QU}=d6e,g6e=h6e,y6e=e=>Array.isArray(e)?e.filter(E6):[],b6e=e=>XU("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${zv.homepage}/servers.json`),i=y6e(r);n(QU(i))}),SP="shlink/selectedServer",_6e="1.0.0",x6e="999.999.999",w6e="latest",O6e=e=>IU(e===w6e?x6e:e,_6e),S6e=TD(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:O6e(n),printableVersion:$U(n)}))),M4=null,EP=er(`${SP}/resetSelectedServer`),E6e=e=>XU(`${SP}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(EP());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:c}=await S6e(o,()=>a.health());return{...o,version:s,printableVersion:c}}catch{return{...o,serverNotReachable:!0}}}),C6e=e=>Qt({name:SP,initialState:M4,reducers:{},extraReducers:t=>{t.addCase(EP,()=>M4),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),P6e=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?m.jsxs(Ne,{tag:At,to:"/server/create",children:[m.jsx(je,{icon:ep})," ",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:At,to:`/server/${o}`,active:yq(t)===o,children:i},o)),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{tag:At,to:"/manage-servers",children:[m.jsx(je,{icon:Yj})," ",m.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return m.jsxs(sp,{nav:!0,inNavbar:!0,children:[m.jsxs(na,{nav:!0,caret:!0,children:[m.jsx(je,{icon:Yj})," ",m.jsx("span",{className:"ms-1",children:"Servers"})]}),m.jsx(cs,{end:!0,style:{right:0},children:r()})]})},T6e=({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)},j6e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);T6e(e,i,n)},A6e="shlink-servers.csv";class k6e{constructor(t,n,r){Ul(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(bq);try{const n=this.jsonToCsv(t);j6e(this.window,n,A6e)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const N6e=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",M6e=e=>Array.isArray(e)&&e.every(N6e);class L6e{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(!M6e(r))throw new Error("Provided file does not have the right format.");return r}}const R6e=(e,t)=>{e.factory("ManageServers",a6e),e.decorator("ManageServers",jy),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",s6e),e.factory("ManageServersRowDropdown",l6e),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",Q$e),e.decorator("CreateServer",jy),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",n6e),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>P6e),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>e6e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",J$e),e.factory("ImportServersBtn",r6e),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",i6e),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",L6e,"csvToJson"),e.service("ServersExporter",k6e,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",E6e,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>QU),e.serviceFactory("deleteServer",()=>m6e),e.serviceFactory("editServer",()=>p6e),e.serviceFactory("setAutoConnect",()=>v6e),e.serviceFactory("fetchServers",b6e,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>EP),e.serviceFactory("selectedServerReducerCreator",C6e,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},JU={field:"dateCreated",dir:"DESC"},$6e={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:kE()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:JU}},{reducer:I6e,actions:D6e}=Qt({name:"shlink/settings",initialState:$6e,reducers:{setSettings:(e,{payload:t})=>h0(e,t)}}),{setSettings:F6e}=D6e,B6e=I6e,U6e=({settings:e,setSettings:t})=>m.jsx(Ju,{children:m.jsx(Rae,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:JU})}),z6e=(e,t)=>{e.serviceFactory("Settings",()=>U6e),e.decorator("Settings",jy),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>F6e)};var V6e=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(y){var g=[];for(var x in y)g.push(x);return g};e.exports=d;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(d,a);for(var c=i(s.prototype),l=0;l<c.length;l++){var f=c[l];d.prototype[f]||(d.prototype[f]=s.prototype[f])}function d(y){if(!(this instanceof d))return new d(y);a.call(this,y),s.call(this,y),y&&y.readable===!1&&(this.readable=!1),y&&y.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,y&&y.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(v,this)}function v(y){y.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(y){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=y,this._writableState.destroyed=y)}}),d.prototype._destroy=function(y,g){this.push(null),this.end(),r.nextTick(g,y)}},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 l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(j,N){if(s()<N)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(j=new Uint8Array(N)).__proto__=l.prototype:(j===null&&(j=new l(N)),j.length=N),j}function l(j,N,U){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(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 p(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),l.TYPED_ARRAY_SUPPORT?(Y=oe).__proto__=l.prototype:Y=v(Y,oe),Y}(j,N,U,J):typeof N=="string"?function(Y,oe,he){if(typeof he=="string"&&he!==""||(he="utf8"),!l.isEncoding(he))throw new TypeError('"encoding" must be a valid string encoding');var Se=0|g(oe,he),se=(Y=c(Y,Se)).write(oe,he);return se!==Se&&(Y=Y.slice(0,se)),Y}(j,N,U):function(Y,oe){if(l.isBuffer(oe)){var he=0|y(oe.length);return(Y=c(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)?c(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 p(j,N){if(d(N),j=c(j,N<0?0:0|y(N)),!l.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|y(N.length);j=c(j,U);for(var J=0;J<U;J+=1)j[J]=255&N[J];return j}function y(j){if(j>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|j}function g(j,N){if(l.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=l.from(N,J)),l.isBuffer(N))return N.length===0?-1:b(j,N,U,J,Y);if(typeof N=="number")return N&=255,l.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(Pe,Ae){return he===1?Pe[Ae]:Pe.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 C(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 F(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 Pe=Te.length;if(Pe<=I)return String.fromCharCode.apply(String,Te);for(var Ae="",le=0;le<Pe;)Ae+=String.fromCharCode.apply(String,Te.slice(le,le+=I));return Ae}(J)}t.Buffer=l,t.SlowBuffer=function(j){return+j!=j&&(j=0),l.alloc(+j)},t.INSPECT_MAX_BYTES=50,l.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(),l.poolSize=8192,l._augment=function(j){return j.__proto__=l.prototype,j},l.from=function(j,N,U){return f(null,j,N,U)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(j,N,U){return function(J,Y,oe,he){return d(Y),Y<=0?c(J,Y):oe!==void 0?typeof he=="string"?c(J,Y).fill(oe,he):c(J,Y).fill(oe):c(J,Y)}(null,j,N,U)},l.allocUnsafe=function(j){return p(null,j)},l.allocUnsafeSlow=function(j){return p(null,j)},l.isBuffer=function(j){return!(j==null||!j._isBuffer)},l.compare=function(j,N){if(!l.isBuffer(j)||!l.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},l.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}},l.concat=function(j,N){if(!a(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return l.alloc(0);var U;if(N===void 0)for(N=0,U=0;U<j.length;++U)N+=j[U].length;var J=l.allocUnsafe(N),Y=0;for(U=0;U<j.length;++U){var oe=j[U];if(!l.isBuffer(oe))throw new TypeError('"list" argument must be an Array of Buffers');oe.copy(J,Y),Y+=oe.length}return J},l.byteLength=g,l.prototype._isBuffer=!0,l.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},l.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},l.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},l.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 D(this,U,J);case"latin1":case"binary":return q(this,U,J);case"base64":return F(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)},l.prototype.equals=function(j){if(!l.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j||l.compare(this,j)===0},l.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+">"},l.prototype.compare=function(j,N,U,J,Y){if(!l.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},l.prototype.includes=function(j,N,U){return this.indexOf(j,N,U)!==-1},l.prototype.indexOf=function(j,N,U){return _(this,j,N,U,!0)},l.prototype.lastIndexOf=function(j,N,U){return _(this,j,N,U,!1)},l.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 C(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}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function D(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(!l.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}l.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),l.TYPED_ARRAY_SUPPORT)(U=this.subarray(j,N)).__proto__=l.prototype;else{var Y=N-j;U=new l(Y,void 0);for(var oe=0;oe<Y;++oe)U[oe]=this[oe+j]}return U},l.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},l.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},l.prototype.readUInt8=function(j,N){return N||Q(j,1,this.length),this[j]},l.prototype.readUInt16LE=function(j,N){return N||Q(j,2,this.length),this[j]|this[j+1]<<8},l.prototype.readUInt16BE=function(j,N){return N||Q(j,2,this.length),this[j]<<8|this[j+1]},l.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]},l.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])},l.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},l.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},l.prototype.readInt8=function(j,N){return N||Q(j,1,this.length),128&this[j]?-1*(255-this[j]+1):this[j]},l.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},l.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},l.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},l.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]},l.prototype.readFloatLE=function(j,N){return N||Q(j,4,this.length),o.read(this,j,!0,23,4)},l.prototype.readFloatBE=function(j,N){return N||Q(j,4,this.length),o.read(this,j,!1,23,4)},l.prototype.readDoubleLE=function(j,N){return N||Q(j,8,this.length),o.read(this,j,!0,52,8)},l.prototype.readDoubleBE=function(j,N){return N||Q(j,8,this.length),o.read(this,j,!1,52,8)},l.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},l.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},l.prototype.writeUInt8=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,1,255,0),l.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),this[N]=255&j,N+1},l.prototype.writeUInt16LE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[N]=255&j,this[N+1]=j>>>8):Z(this,j,N,!0),N+2},l.prototype.writeUInt16BE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[N]=j>>>8,this[N+1]=255&j):Z(this,j,N,!1),N+2},l.prototype.writeUInt32LE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,4,4294967295,0),l.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},l.prototype.writeUInt32BE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,4,4294967295,0),l.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},l.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},l.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},l.prototype.writeInt8=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,1,127,-128),l.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),j<0&&(j=255+j+1),this[N]=255&j,N+1},l.prototype.writeInt16LE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[N]=255&j,this[N+1]=j>>>8):Z(this,j,N,!0),N+2},l.prototype.writeInt16BE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[N]=j>>>8,this[N+1]=255&j):Z(this,j,N,!1),N+2},l.prototype.writeInt32LE=function(j,N,U){return j=+j,N|=0,U||ne(this,j,N,4,2147483647,-2147483648),l.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},l.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),l.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},l.prototype.writeFloatLE=function(j,N,U){return H(this,j,N,!0,U)},l.prototype.writeFloatBE=function(j,N,U){return H(this,j,N,!1,U)},l.prototype.writeDoubleLE=function(j,N,U){return ee(this,j,N,!0,U)},l.prototype.writeDoubleBE=function(j,N,U){return ee(this,j,N,!1,U)},l.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||!l.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},l.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"&&!l.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=l.isBuffer(j)?j:ie(new l(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 c,l=[],f=!1,d=-1;function p(){f&&c&&(f=!1,c.length?l=c.concat(l):d=-1,l.length&&v())}function v(){if(!f){var x=s(p);f=!0;for(var _=l.length;_;){for(c=l,l=[];++d<_;)c&&c[d].run();d=-1,_=l.length}c=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 y(x,_){this.fun=x,this.array=_}function g(){}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];l.push(new y(x,_)),l.length!==1||f||s(v)},y.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(x){return[]},i.binding=function(x){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(x){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var c,l,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(c=new Array(f-1),l=0;l<c.length;)c[l++]=arguments[l];return r.nextTick(function(){i.apply(null,c)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(s,c){for(var l in s)c[l]=s[l]}function a(s,c,l){return i(s,c,l)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,c,l){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,c,l)},a.alloc=function(s,c,l){if(typeof s!="number")throw new TypeError("Argument must be a number");var f=i(s);return c!==void 0?typeof l=="string"?f.fill(c,l):f.fill(c):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,c){this._id=s,this._clearFn=c}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(s,c){clearTimeout(s._idleTimeoutId),s._idleTimeout=c},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var c=s._idleTimeout;c>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},c))},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,c,l,f,d,p;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var v=new Error('Uncaught, unspecified "error" event. ('+s+")");throw v.context=s,v}if(o(c=this._events[a]))return!1;if(r(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(i(c))for(f=Array.prototype.slice.call(arguments,1),l=(p=c.slice()).length,d=0;d<l;d++)p[d].apply(this,f);return!0},n.prototype.addListener=function(a,s){var c;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&&(c=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var c=!1;function l(){this.removeListener(a,l),c||(c=!0,s.apply(this,arguments))}return l.listener=s,this.on(a,l),this},n.prototype.removeListener=function(a,s){var c,l,f,d;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(c=this._events[a]).length,l=-1,c===s||r(c.listener)&&c.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(c)){for(d=f;d-- >0;)if(c[d]===s||c[d].listener&&c[d].listener===s){l=d;break}if(l<0)return this;c.length===1?(c.length=0,delete this._events[a]):c.splice(l,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(c=this._events[a]))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},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(D,q,W){var X=D.entry;for(D.entry=null;X;){var Q=X.callback;q.pendingcb--,Q(void 0),X=X.next}q.corkedRequestsFree?q.corkedRequestsFree.next=D:q.corkedRequestsFree=D})(I,k)}}e.exports=w;var c,l=!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,p={deprecate:n(44)},v=n(24),y=n(7).Buffer,g=o.Uint8Array||function(){},x=n(25);function _(){}function b(k,I){c=c||n(1),k=k||{};var D=I instanceof c;this.objectMode=!!k.objectMode,D&&(this.objectMode=this.objectMode||!!k.writableObjectMode);var q=k.highWaterMark,W=k.writableHighWaterMark,X=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:D&&(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(F,te,ie),te._writableState.errorEmitted=!0,te.emit("error",fe)):(j(fe),te._writableState.errorEmitted=!0,te.emit("error",fe),F(te,ie))})(Z,B,H,z,ee);else{var K=T(B);K||B.corked||B.bufferProcessing||!B.bufferedRequest||C(Z,B),H?l(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(c=c||n(1),!(d.call(w,this)||this instanceof c))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,D,q,W,X,Q){I.writelen=q,I.writecb=Q,I.writing=!0,I.sync=!0,D?k._writev(W,I.onwrite):k._write(W,X,I.onwrite),I.sync=!1}function E(k,I,D,q){D||function(W,X){X.length===0&&X.needDrain&&(X.needDrain=!1,W.emit("drain"))}(k,I),I.pendingcb--,q(),F(k,I)}function C(k,I){I.bufferProcessing=!0;var D=I.bufferedRequest;if(k._writev&&D&&D.next){var q=I.bufferedRequestCount,W=new Array(q),X=I.corkedRequestsFree;X.entry=D;for(var Q=0,ne=!0;D;)W[Q]=D,D.isBuf||(ne=!1),D=D.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(;D;){var Z=D.chunk,z=D.encoding,B=D.callback;if(S(k,I,!1,I.objectMode?1:Z.length,Z,z,B),D=D.next,I.bufferedRequestCount--,I.writing)break}D===null&&(I.lastBufferedRequest=null)}I.bufferedRequest=D,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(D){I.pendingcb--,D&&k.emit("error",D),I.prefinished=!0,k.emit("prefinish"),F(k,I)})}function F(k,I){var D=T(I);return D&&(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"))),D}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:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(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,D){var q=this._writableState,W=!1,X=!q.objectMode&&function(Q){return y.isBuffer(Q)||Q instanceof g}(k);return X&&!y.isBuffer(k)&&(k=function(Q){return y.from(Q)}(k)),typeof I=="function"&&(D=I,I=null),X?I="buffer":I||(I=q.defaultEncoding),typeof D!="function"&&(D=_),q.ended?function(Q,ne){var Z=new Error("write after end");Q.emit("error",Z),a.nextTick(ne,Z)}(this,D):(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,D))&&(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=y.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,D)),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||C(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,D){D(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(k,I,D){var q=this._writableState;typeof k=="function"?(D=k,k=null,I=null):typeof I=="function"&&(D=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,F(W,X),Q&&(X.finished?a.nextTick(Q):W.once("finish",Q)),X.ended=!0,W.writable=!1}(this,q,D)},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,c,l){function f(v,y){if(!c[v]){if(!s[v]){var g=typeof _dereq_=="function"&&_dereq_;if(!y&&g)return g(v,!0);if(d)return d(v,!0);var x=new Error("Cannot find module '"+v+"'");throw x.code="MODULE_NOT_FOUND",x}var _=c[v]={exports:{}};s[v][0].call(_.exports,function(b){return f(s[v][1][b]||b)},_,_.exports,a,s,c,l)}return c[v].exports}for(var d=typeof _dereq_=="function"&&_dereq_,p=0;p<l.length;p++)f(l[p]);return f}({1:[function(a,s,c){s.exports=function(l){var f=l._SomePromiseArray;function d(p){var v=new f(p),y=v.promise();return v.setHowMany(1),v.setUnwrap(),v.init(),y}l.any=function(p){return d(p)},l.prototype.any=function(){return d(this)}}},{}],2:[function(a,s,c){var l;try{throw new Error}catch(_){l=_}var f=a("./schedule"),d=a("./queue"),p=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 y(_,b,w){this._lateQueue.push(_,b,w),this._queueTick()}function g(_,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(){p.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
`)}},p.hasDevTools?(v.prototype.invokeLater=function(_,b,w){this._trampolineEnabled?y.call(this,_,b,w):this._schedule(function(){setTimeout(function(){_.call(b,w)},100)})},v.prototype.invoke=function(_,b,w){this._trampolineEnabled?g.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=y,v.prototype.invoke=g,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=l},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,c){s.exports=function(l,f,d,p){var v=!1,y=function(b,w){this._reject(w)},g=function(b,w){w.promiseRejectionQueued=!0,w.bindingPromise._then(y,y,null,this,b)},x=function(b,w){!(50397184&this._bitField)&&this._resolveCallback(w.target)},_=function(b,w){w.promiseRejectionQueued||this._reject(b)};l.prototype.bind=function(b){v||(v=!0,l.prototype._propagateFrom=p.propagateFromFunction(),l.prototype._boundValue=p.boundValueFunction());var w=d(b),S=new l(f);S._propagateFrom(this,1);var E=this._target();if(S._setBoundTo(w),w instanceof l){var C={promiseRejectionQueued:!1,promise:S,target:E,bindingPromise:w};E._then(f,g,void 0,S,C),w._then(x,_,void 0,S,C),S._setOnCancel(w)}else S._resolveCallback(E);return S},l.prototype._setBoundTo=function(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},l.prototype._isBound=function(){return(2097152&this._bitField)==2097152},l.bind=function(b,w){return l.resolve(w).bind(b)}}},{}],4:[function(a,s,c){var l;typeof Promise<"u"&&(l=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=l)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,c){var l=Object.create;if(l){var f=l(null),d=l(null);f[" size"]=d[" size"]=0}s.exports=function(p){var v=a("./util"),y=v.canEvaluate;function g(b){return function(w,S){var E;if(w!=null&&(E=w[S]),typeof E!="function"){var C="Object "+v.classString(w)+" has no method '"+v.toString(S)+"'";throw new p.TypeError(C)}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,p.prototype.call=function(b){var w=[].slice.call(arguments,1);return w.push(b),this._then(g,void 0,void 0,w,void 0)},p.prototype.get=function(b){var w;if(typeof b=="number")w=_;else if(y){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,c){s.exports=function(l,f,d,p){var v=a("./util"),y=v.tryCatch,g=v.errorObj,x=l._async;l.prototype.break=l.prototype.cancel=function(){if(!p.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}},l.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},l.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},l.prototype._cancelBy=function(_){return _===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},l.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},l.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),x.invoke(this._cancelPromises,this,void 0))},l.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},l.prototype._unsetOnCancel=function(){this._onCancelField=void 0},l.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},l.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},l.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=y(_).call(this._boundValue());S===g&&(this._attachExtraTrace(S.e),x.throwLater(S.e))}}else _._resultCancelled(this)},l.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,_)},l.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},l.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,c){s.exports=function(l){var f=a("./util"),d=a("./es5").keys,p=f.tryCatch,v=f.errorObj;return function(y,g,x){return function(_){var b=x._boundValue();e:for(var w=0;w<y.length;++w){var S=y[w];if(S===Error||S!=null&&S.prototype instanceof Error){if(_ instanceof S)return p(g).call(b,_)}else if(typeof S=="function"){var E=p(S).call(b,_);if(E===v)return E;if(E)return p(g).call(b,_)}else if(f.isObject(_)){for(var C=d(S),T=0;T<C.length;++T){var A=C[T];if(S[A]!=_[A])continue e}return p(g).call(b,_)}}return l}}}},{"./es5":13,"./util":36}],8:[function(a,s,c){s.exports=function(l){var f=!1,d=[];function p(){this._trace=new p.CapturedTrace(v())}function v(){var y=d.length-1;if(y>=0)return d[y]}return l.prototype._promiseCreated=function(){},l.prototype._pushContext=function(){},l.prototype._popContext=function(){return null},l._peekContext=l.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,d.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var y=d.pop(),g=y._promiseCreated;return y._promiseCreated=null,g}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var y=l.prototype._pushContext,g=l.prototype._popContext,x=l._peekContext,_=l.prototype._peekContext,b=l.prototype._promiseCreated;p.deactivateLongStackTraces=function(){l.prototype._pushContext=y,l.prototype._popContext=g,l._peekContext=x,l.prototype._peekContext=_,l.prototype._promiseCreated=b,f=!1},f=!0,l.prototype._pushContext=p.prototype._pushContext,l.prototype._popContext=p.prototype._popContext,l._peekContext=l.prototype._peekContext=v,l.prototype._promiseCreated=function(){var w=this._peekContext();w&&w._promiseCreated==null&&(w._promiseCreated=this)}},p}},{}],9:[function(a,s,c){s.exports=function(l,f){var d,p,v,y=l._getDomain,g=l._async,x=a("./errors").Warning,_=a("./util"),b=_.canAttachTrace,w=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,S=/\((?:timers\.js):\d+:\d+\)/,E=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,C=null,T=null,A=!1,F=_.env("BLUEBIRD_DEBUG")!=0,k=!(_.env("BLUEBIRD_WARNINGS")==0||!F&&!_.env("BLUEBIRD_WARNINGS")),I=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!F&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),D=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(k||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));l.prototype.suppressUnhandledRejections=function(){var le=this._target();le._bitField=-1048577&le._bitField|524288},l.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var le=this;setTimeout(function(){le._notifyUnhandledRejection()},1)}},l.prototype._notifyUnhandledRejectionIsHandled=function(){he("rejectionHandled",d,void 0,this)},l.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},l.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},l.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var le=this._settledValue();this._setUnhandledRejectionIsNotified(),he("unhandledRejection",p,le,this)}},l.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},l.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},l.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},l.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},l.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},l.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},l.prototype._warn=function(le,ue,ye){return U(le,ue,ye||this)},l.onPossiblyUnhandledRejection=function(le){var ue=y();p=typeof le=="function"?ue===null?le:_.domainBind(ue,le):void 0},l.onUnhandledRejectionHandled=function(le){var ue=y();d=typeof le=="function"?ue===null?le:_.domainBind(ue,le):void 0};var q=function(){};l.longStackTraces=function(){if(g.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!Ae.longStackTraces&&se()){var le=l.prototype._captureStackTrace,ue=l.prototype._attachExtraTrace;Ae.longStackTraces=!0,q=function(){if(g.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);l.prototype._captureStackTrace=le,l.prototype._attachExtraTrace=ue,f.deactivateLongStackTraces(),g.enableTrampoline(),Ae.longStackTraces=!1},l.prototype._captureStackTrace=j,l.prototype._attachExtraTrace=N,f.activateLongStackTraces(),g.disableTrampolineIfNecessary()}},l.hasLongStackTraces=function(){return Ae.longStackTraces&&se()};var W=function(){try{if(typeof CustomEvent=="function"){var le=new CustomEvent("CustomEvent");return _.global.dispatchEvent(le),function(ue,ye){var ge=new CustomEvent(ue.toLowerCase(),{detail:ye,cancelable:!0});return!_.global.dispatchEvent(ge)}}return typeof Event=="function"?(le=new Event("CustomEvent"),_.global.dispatchEvent(le),function(ue,ye){var ge=new Event(ue.toLowerCase(),{cancelable:!0});return ge.detail=ye,!_.global.dispatchEvent(ge)}):((le=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(le),function(ue,ye){var ge=document.createEvent("CustomEvent");return ge.initCustomEvent(ue.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 ue="on"+le.toLowerCase(),ye=_.global[ue];return!!ye&&(ye.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Q(le,ue){return{promise:ue}}var ne={promiseCreated:Q,promiseFulfilled:Q,promiseRejected:Q,promiseResolved:Q,promiseCancelled:Q,promiseChained:function(le,ue,ye){return{promise:ue,child:ye}},warning:function(le,ue){return{warning:ue}},unhandledRejection:function(le,ue,ye){return{reason:ue,promise:ye}},rejectionHandled:Q},Z=function(le){var ue=!1;try{ue=X.apply(null,arguments)}catch(ge){g.throwLater(ge),ue=!0}var ye=!1;try{ye=W(le,ne[le].apply(null,arguments))}catch(ge){g.throwLater(ge),ye=!0}return ye||ue};function z(){return!1}function B(le,ue,ye){var ge=this;try{le(ue,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 ue=this._onCancel();ue!==void 0?_.isArray(ue)?ue.push(le):this._setOnCancel([ue,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,ue){if(1&ue){this._cancellationParent=le;var ye=le._branchesRemainingToCancel;ye===void 0&&(ye=0),le._branchesRemainingToCancel=ye+1}2&ue&&le._isBound()&&this._setBoundTo(le._boundTo)}l.config=function(le){if("longStackTraces"in(le=Object(le))&&(le.longStackTraces?l.longStackTraces():!le.longStackTraces&&l.hasLongStackTraces()&&q()),"warnings"in le){var ue=le.warnings;Ae.warnings=!!ue,D=Ae.warnings,_.isObject(ue)&&"wForgottenReturn"in ue&&(D=!!ue.wForgottenReturn)}if("cancellation"in le&&le.cancellation&&!Ae.cancellation){if(g.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");l.prototype._clearCancellationData=te,l.prototype._propagateFrom=ie,l.prototype._onCancel=ee,l.prototype._setOnCancel=K,l.prototype._attachCancellationCallback=H,l.prototype._execute=B,ae=ie,Ae.cancellation=!0}return"monitoring"in le&&(le.monitoring&&!Ae.monitoring?(Ae.monitoring=!0,l.prototype._fireEvent=Z):!le.monitoring&&Ae.monitoring&&(Ae.monitoring=!1,l.prototype._fireEvent=z)),l},l.prototype._fireEvent=z,l.prototype._execute=function(le,ue,ye){try{le(ue,ye)}catch(ge){return ge}},l.prototype._onCancel=function(){},l.prototype._setOnCancel=function(le){},l.prototype._attachCancellationCallback=function(le){},l.prototype._captureStackTrace=function(){},l.prototype._attachExtraTrace=function(){},l.prototype._clearCancellationData=function(){},l.prototype._propagateFrom=function(le,ue){};var ae=function(le,ue){2&ue&&le._isBound()&&this._setBoundTo(le._boundTo)};function fe(){var le=this._boundTo;return le!==void 0&&le instanceof l?le.isFulfilled()?le.value():void 0:le}function j(){this._trace=new Te(this._peekContext())}function N(le,ue){if(b(le)){var ye=this._trace;if(ye!==void 0&&ue&&(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,ue,ye){if(Ae.warnings){var ge,we=new x(le);if(ue)ye._attachExtraTrace(we);else if(Ae.longStackTraces&&(ge=l._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 ue=[],ye=0;ye<le.length;++ye){var ge=le[ye],we=ge===" (No stack trace)"||C.test(ge),ke=we&&pe(ge);we&&!ke&&(A&&ge.charAt(0)!==" "&&(ge=" "+ge),ue.push(ge))}return ue}function Y(le){var ue=le.stack,ye=le.toString();return ue=typeof ue=="string"&&ue.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)"||C.test(Me))break}return ke>0&&ge.name!="SyntaxError"&&(we=we.slice(ke)),we}(le):[" (No stack trace)"],{message:ye,stack:le.name=="SyntaxError"?ue:J(ue)}}function oe(le,ue,ye){if(typeof console<"u"){var ge;if(_.isObject(le)){var we=le.stack;ge=ue+T(we,le)}else ge=ue+String(le);typeof v=="function"?v(ge,ye):typeof console.log!="function"&&typeof console.log!="object"||console.log(ge)}}function he(le,ue,ye,ge){var we=!1;try{typeof ue=="function"&&(we=!0,le==="rejectionHandled"?ue(ge):ue(ye,ge))}catch(ke){g.throwLater(ke)}le==="unhandledRejection"?Z(le,ye,ge)||we||oe(ye,"Unhandled rejection "):Z(le,ge)}function Se(le){var ue;if(typeof le=="function")ue="[function "+(le.name||"anonymous")+"]";else{if(ue=le&&typeof le.toString=="function"?le.toString():_.toString(le),/\[object [a-zA-Z0-9$_]+\]/.test(ue))try{ue=JSON.stringify(le)}catch{}ue.length===0&&(ue="(empty array)")}return"(<"+function(ye){return ye.length<41?ye:ye.substr(0,38)+"..."}(ue)+">, no stack trace)"}function se(){return typeof Pe=="function"}var pe=function(){return!1},me=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function xe(le){var ue=le.match(me);if(ue)return{fileName:ue[1],line:parseInt(ue[2],10)}}function Te(le){this._parent=le,this._promisesCreated=0;var ue=this._length=1+(le===void 0?0:le._length);Pe(this,Te),ue>32&&this.uncycle()}_.inherits(Te,Error),f.CapturedTrace=Te,Te.prototype.uncycle=function(){var le=this._length;if(!(le<2)){for(var ue=[],ye={},ge=0,we=this;we!==void 0;++ge)ue.push(we),we=we._parent;for(ge=(le=this._length=ge)-1;ge>=0;--ge){var ke=ue[ge].stack;ye[ke]===void 0&&(ye[ke]=ge)}for(ge=0;ge<le;++ge){var Me=ye[ue[ge].stack];if(Me!==void 0&&Me!==ge){Me>0&&(ue[Me-1]._parent=void 0,ue[Me-1]._length=1),ue[ge]._parent=void 0,ue[ge]._length=1;var Qe=ge>0?ue[ge-1]:this;Me<le-1?(Qe._parent=ue[Me+1],Qe._parent.uncycle(),Qe._length=Qe._parent._length+1):(Qe._parent=void 0,Qe._length=1);for(var et=Qe._length+1,Ke=ge-2;Ke>=0;--Ke)ue[Ke]._length=et,et++;return}}}},Te.prototype.attachExtraTrace=function(le){if(!le.__stackCleaned__){this.uncycle();for(var ue=Y(le),ye=ue.message,ge=[ue.stack],we=this;we!==void 0;)ge.push(J(we.stack.split(`
`))),we=we._parent;(function(ke){for(var Me=ke[0],Qe=1;Qe<ke.length;++Qe){for(var et=ke[Qe],Ke=Me.length-1,Ht=Me[Ke],Dt=-1,dn=et.length-1;dn>=0;--dn)if(et[dn]===Ht){Dt=dn;break}for(dn=Dt;dn>=0;--dn){var zn=et[dn];if(Me[Ke]!==zn)break;Me.pop(),Ke--}Me=et}})(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 Qe=0;Qe<Me.length-1;++Qe)Me[Qe].push("From previous event:"),Me[Qe]=Me[Qe].join(`
`);return Qe<Me.length&&(Me[Qe]=Me[Qe].join(`
`)),ke+`
`+Me.join(`
`)}(ye,ge)),_.notEnumerableProp(le,"__stackCleaned__",!0)}};var Pe=function(){var le=/^\s*at\s*/,ue=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,C=le,T=ue;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 C=/@/,T=ue,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):(C=le,T=ue,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,ue){var ye=ue?"\x1B[33m":"\x1B[31m";console.warn(ye+le+`\x1B[0m
`)}:_.isNode||typeof new Error().stack!="string"||(v=function(le,ue){console.warn("%c"+le,ue?"color: darkorange":"color: red")}));var Ae={warnings:k,longStackTraces:!1,cancellation:!1,monitoring:!1};return I&&l.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,ue,ye,ge,we){if(le===void 0&&ue!==null&&D){if(we!==void 0&&we._returnedNonUndefined()||!(65535&ge._bitField))return;ye&&(ye+=" ");var ke="",Me="";if(ue._trace){for(var Qe=ue._trace.stack.split(`
`),et=J(Qe),Ke=et.length-1;Ke>=0;--Ke){var Ht=et[Ke];if(!S.test(Ht)){var Dt=Ht.match(E);Dt&&(ke="at "+Dt[1]+":"+Dt[2]+":"+Dt[3]+" ");break}}if(et.length>0){var dn=et[0];for(Ke=0;Ke<Qe.length;++Ke)if(Qe[Ke]===dn){Ke>0&&(Me=`
`+Qe[Ke-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,ue)}},setBounds:function(le,ue){if(se()){for(var ye,ge,we=le.stack.split(`
`),ke=ue.stack.split(`
`),Me=-1,Qe=-1,et=0;et<we.length;++et)if(Ke=xe(we[et])){ye=Ke.fileName,Me=Ke.line;break}for(et=0;et<ke.length;++et){var Ke;if(Ke=xe(ke[et])){ge=Ke.fileName,Qe=Ke.line;break}}Me<0||Qe<0||!ye||!ge||ye!==ge||Me>=Qe||(pe=function(Ht){if(w.test(Ht))return!0;var Dt=xe(Ht);return!!(Dt&&Dt.fileName===ye&&Me<=Dt.line&&Dt.line<=Qe)})}},warn:U,deprecated:function(le,ue){var ye=le+" is deprecated and will be removed in a future version.";return ue&&(ye+=" Use "+ue+" instead."),U(ye)},CapturedTrace:Te,fireDomEvent:W,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(a,s,c){s.exports=function(l){function f(){return this.value}function d(){throw this.reason}l.prototype.return=l.prototype.thenReturn=function(p){return p instanceof l&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},l.prototype.throw=l.prototype.thenThrow=function(p){return this._then(d,void 0,void 0,{reason:p},void 0)},l.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,d,void 0,{reason:p},void 0);var v=arguments[1];return this.caught(p,function(){throw v})},l.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof l&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var v=arguments[1];return v instanceof l&&v.suppressUnhandledRejections(),this.caught(p,function(){return v})}}},{}],11:[function(a,s,c){s.exports=function(l,f){var d=l.reduce,p=l.all;function v(){return p(this)}l.prototype.each=function(y){return d(this,y,f,0)._then(v,void 0,void 0,this,void 0)},l.prototype.mapSeries=function(y){return d(this,y,f,f)},l.each=function(y,g){return d(y,g,f,0)._then(v,void 0,void 0,y,void 0)},l.mapSeries=function(y,g){return d(y,g,f,f)}}},{}],12:[function(a,s,c){var l,f,d=a("./es5"),p=d.freeze,v=a("./util"),y=v.inherits,g=v.notEnumerableProp;function x(k,I){function D(q){if(!(this instanceof D))return new D(q);g(this,"message",typeof q=="string"?q:I),g(this,"name",k),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return y(D,Error),D}var _=x("Warning","warning"),b=x("CancellationError","cancellation error"),w=x("TimeoutError","timeout error"),S=x("AggregateError","aggregate error");try{l=TypeError,f=RangeError}catch{l=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(" "),C=0;C<E.length;++C)typeof Array.prototype[E[C]]=="function"&&(S.prototype[E[C]]=Array.prototype[E[C]]);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);g(this,"name","OperationalError"),g(this,"message",k),this.cause=k,this.isOperational=!0,k instanceof Error?(g(this,"message",k.message),g(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 D=0;D<this.length;++D){for(var q=this[D]===this?"[Circular AggregateError]":this[D]+"",W=q.split(`
`),X=0;X<W.length;++X)W[X]=k+W[X];I+=(q=W.join(`
`))+`
`}return T--,I},y(A,Error);var F=Error.__BluebirdErrorTypes__;F||(F=p({CancellationError:b,TimeoutError:w,OperationalError:A,RejectionError:A,AggregateError:S}),d.defineProperty(Error,"__BluebirdErrorTypes__",{value:F,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:l,RangeError:f,CancellationError:F.CancellationError,OperationalError:F.OperationalError,TimeoutError:F.TimeoutError,AggregateError:F.AggregateError,Warning:_}},{"./es5":13,"./util":36}],13:[function(a,s,c){var l=function(){return this===void 0}();if(l)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:l,propertyIsWritable:function(y,g){var x=Object.getOwnPropertyDescriptor(y,g);return!(x&&!x.writable&&!x.set)}};else{var f={}.hasOwnProperty,d={}.toString,p={}.constructor.prototype,v=function(y){var g=[];for(var x in y)f.call(y,x)&&g.push(x);return g};s.exports={isArray:function(y){try{return d.call(y)==="[object Array]"}catch{return!1}},keys:v,names:v,defineProperty:function(y,g,x){return y[g]=x.value,y},getDescriptor:function(y,g){return{value:y[g]}},freeze:function(y){return y},getPrototypeOf:function(y){try{return Object(y).constructor.prototype}catch{return p}},isES5:l,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,c){s.exports=function(l,f){var d=l.map;l.prototype.filter=function(p,v){return d(this,p,v,f)},l.filter=function(p,v,y){return d(p,v,y,f)}}},{}],15:[function(a,s,c){s.exports=function(l,f,d){var p=a("./util"),v=l.CancellationError,y=p.errorObj,g=a("./catch_filter")(d);function x(C,T,A){this.promise=C,this.type=T,this.handler=A,this.called=!1,this.cancelPromise=null}function _(C){this.finallyHandler=C}function b(C,T){return C.cancelPromise!=null&&(arguments.length>1?C.cancelPromise._reject(T):C.cancelPromise._cancel(),C.cancelPromise=null,!0)}function w(){return E.call(this,this.promise._target()._settledValue())}function S(C){if(!b(this,C))return y.e=C,y}function E(C){var T=this.promise,A=this.handler;if(!this.called){this.called=!0;var F=this.isFinallyHandler()?A.call(T._boundValue()):A.call(T._boundValue(),C);if(F===d)return F;if(F!==void 0){T._setReturnedNonUndefined();var k=f(F,T);if(k instanceof l){if(this.cancelPromise!=null){if(k._isCancelled()){var I=new v("late cancellation observer");return T._attachExtraTrace(I),y.e=I,y}k.isPending()&&k._attachCancellationCallback(new _(this))}return k._then(w,S,void 0,this,void 0)}}}return T.isRejected()?(b(this),y.e=C,y):(b(this),C)}return x.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){b(this.finallyHandler)},l.prototype._passThrough=function(C,T,A,F){return typeof C!="function"?this.then():this._then(A,F,void 0,new x(this,T,C),void 0)},l.prototype.lastly=l.prototype.finally=function(C){return this._passThrough(C,0,E,E)},l.prototype.tap=function(C){return this._passThrough(C,1,E)},l.prototype.tapCatch=function(C){var T=arguments.length;if(T===1)return this._passThrough(C,1,void 0,E);var A,F=new Array(T-1),k=0;for(A=0;A<T-1;++A){var I=arguments[A];if(!p.isObject(I))return l.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(I)));F[k++]=I}F.length=k;var D=arguments[A];return this._passThrough(g(F,D,this),1,void 0,E)},x}},{"./catch_filter":7,"./util":36}],16:[function(a,s,c){s.exports=function(l,f,d,p,v,y){var g=a("./errors").TypeError,x=a("./util"),_=x.errorObj,b=x.tryCatch,w=[];function S(E,C,T,A){if(y.cancellation()){var F=new l(d),k=this._finallyPromise=new l(d);this._promise=F.lastly(function(){return k}),F._captureStackTrace(),F._setOnCancel(this)}else(this._promise=new l(d))._captureStackTrace();this._stack=A,this._generatorFunction=E,this._receiver=C,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,y.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 C=new l.CancellationError("generator .return() sentinel");l.coroutine.returnSentinel=C,this._promise._attachExtraTrace(C),this._promise._pushContext(),E=b(this._generator.throw).call(this._generator,C),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(E)}},S.prototype._promiseFulfilled=function(E){this._yieldedPromise=null,this._promise._pushContext();var C=b(this._generator.next).call(this._generator,E);this._promise._popContext(),this._continue(C)},S.prototype._promiseRejected=function(E){this._yieldedPromise=null,this._promise._attachExtraTrace(E),this._promise._pushContext();var C=b(this._generator.throw).call(this._generator,E);this._promise._popContext(),this._continue(C)},S.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof l){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 C=this._promise;if(E===_)return this._cleanup(),this._cancellationPhase?C.cancel():C._rejectCallback(E.e,!1);var T=E.value;if(E.done===!0)return this._cleanup(),this._cancellationPhase?C.cancel():C._resolveCallback(T);var A=p(T,this._promise);if(A instanceof l||(A=function(k,I,D){for(var q=0;q<I.length;++q){D._pushContext();var W=b(I[q])(k);if(D._popContext(),W===_){D._pushContext();var X=l.reject(_.e);return D._popContext(),X}var Q=p(W,D);if(Q instanceof l)return Q}return null}(A,this._yieldHandlers,this._promise))!==null){var F=(A=A._target())._bitField;50397184&F?33554432&F?l._async.invoke(this._promiseFulfilled,this,A._value()):16777216&F?l._async.invoke(this._promiseRejected,this,A._reason()):this._promiseCancelled():(this._yieldedPromise=A,A._proxy(this,null))}else this._promiseRejected(new g(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String(T))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},l.coroutine=function(E,C){if(typeof E!="function")throw new g(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var T=Object(C).yieldHandler,A=S,F=new Error().stack;return function(){var k=E.apply(this,arguments),I=new A(void 0,void 0,T,F),D=I.promise();return I._generator=k,I._promiseFulfilled(void 0),D}},l.coroutine.addYieldHandler=function(E){if(typeof E!="function")throw new g("expecting a function but got "+x.classString(E));w.push(E)},l.spawn=function(E){if(y.deprecated("Promise.spawn()","Promise.coroutine()"),typeof E!="function")return f(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var C=new S(E,this),T=C.promise();return C._run(l.spawn),T}}},{"./errors":12,"./util":36}],17:[function(a,s,c){s.exports=function(l,f,d,p,v,y){var g=a("./util");g.canEvaluate,g.tryCatch,g.errorObj,l.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,c){s.exports=function(l,f,d,p,v,y){var g=l._getDomain,x=a("./util"),_=x.tryCatch,b=x.errorObj,w=l._async;function S(C,T,A,F){this.constructor$(C),this._promise._captureStackTrace();var k=g();this._callback=k===null?T:x.domainBind(k,T),this._preservedValues=F===v?new Array(this.length()):null,this._limit=A,this._inFlight=0,this._queue=[],w.invoke(this._asyncInit,this,void 0)}function E(C,T,A,F){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 l.reject(new TypeError("options argument must be an object but it is "+x.classString(A)));if(typeof A.concurrency!="number")return l.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(A.concurrency)));k=A.concurrency}return new S(C,T,k=typeof k=="number"&&isFinite(k)&&k>=1?k:0,F).promise()}x.inherits(S,f),S.prototype._asyncInit=function(){this._init$(void 0,-2)},S.prototype._init=function(){},S.prototype._promiseFulfilled=function(C,T){var A=this._values,F=this.length(),k=this._preservedValues,I=this._limit;if(T<0){if(A[T=-1*T-1]=C,I>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(I>=1&&this._inFlight>=I)return A[T]=C,this._queue.push(T),!1;k!==null&&(k[T]=C);var D=this._promise,q=this._callback,W=D._boundValue();D._pushContext();var X=_(q).call(W,C,T,F),Q=D._popContext();if(y.checkForgottenReturns(X,Q,k!==null?"Promise.filter":"Promise.map",D),X===b)return this._reject(X.e),!0;var ne=p(X,this._promise);if(ne instanceof l){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>=F&&(k!==null?this._filter(A,k):this._resolve(A),!0)},S.prototype._drainQueue=function(){for(var C=this._queue,T=this._limit,A=this._values;C.length>0&&this._inFlight<T;){if(this._isResolved())return;var F=C.pop();this._promiseFulfilled(A[F],F)}},S.prototype._filter=function(C,T){for(var A=T.length,F=new Array(A),k=0,I=0;I<A;++I)C[I]&&(F[k++]=T[I]);F.length=k,this._resolve(F)},S.prototype.preservedValues=function(){return this._preservedValues},l.prototype.map=function(C,T){return E(this,C,T,null)},l.map=function(C,T,A,F){return E(C,T,A,F)}}},{"./util":36}],19:[function(a,s,c){s.exports=function(l,f,d,p,v){var y=a("./util"),g=y.tryCatch;l.method=function(x){if(typeof x!="function")throw new l.TypeError("expecting a function but got "+y.classString(x));return function(){var _=new l(f);_._captureStackTrace(),_._pushContext();var b=g(x).apply(this,arguments),w=_._popContext();return v.checkForgottenReturns(b,w,"Promise.method",_),_._resolveFromSyncValue(b),_}},l.attempt=l.try=function(x){if(typeof x!="function")return p("expecting a function but got "+y.classString(x));var _,b=new l(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];_=y.isArray(w)?g(x).apply(S,w):g(x).call(S,w)}else _=g(x)();var E=b._popContext();return v.checkForgottenReturns(_,E,"Promise.try",b),b._resolveFromSyncValue(_),b},l.prototype._resolveFromSyncValue=function(x){x===y.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(a,s,c){var l=a("./util"),f=l.maybeWrapAsError,d=a("./errors").OperationalError,p=a("./es5"),v=/^(?:name|message|stack|cause)$/;function y(g){var x;if(function(S){return S instanceof Error&&p.getPrototypeOf(S)===Error.prototype}(g)){(x=new d(g)).name=g.name,x.message=g.message,x.stack=g.stack;for(var _=p.keys(g),b=0;b<_.length;++b){var w=_[b];v.test(w)||(x[w]=g[w])}return x}return l.markAsOriginatingFromRejection(g),g}s.exports=function(g,x){return function(_,b){if(g!==null){if(_){var w=y(f(_));g._attachExtraTrace(w),g._reject(w)}else if(x){var S=[].slice.call(arguments,1);g._fulfill(S)}else g._fulfill(b);g=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,c){s.exports=function(l){var f=a("./util"),d=l._async,p=f.tryCatch,v=f.errorObj;function y(_,b){if(!f.isArray(_))return g.call(this,_,b);var w=p(b).apply(this._boundValue(),[null].concat(_));w===v&&d.throwLater(w.e)}function g(_,b){var w=this._boundValue(),S=_===void 0?p(b).call(w,null):p(b).call(w,null,_);S===v&&d.throwLater(S.e)}function x(_,b){if(!_){var w=new Error(_+"");w.cause=_,_=w}var S=p(b).call(this._boundValue(),_);S===v&&d.throwLater(S.e)}l.prototype.asCallback=l.prototype.nodeify=function(_,b){if(typeof _=="function"){var w=g;b!==void 0&&Object(b).spread&&(w=y),this._then(w,x,void 0,this,_)}return this}}},{"./util":36}],22:[function(a,s,c){s.exports=function(){var l=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 p(){}var v,y={},g=a("./util");v=g.isNode?function(){var K=r.domain;return K===void 0&&(K=null),K}:function(){return null},g.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 C=function(){},T={},A={},F=a("./thenables")(z,C),k=a("./promise_array")(z,C,F,d,p),I=a("./context")(z),D=I.create,q=a("./debuggability")(z,I),W=(q.CapturedTrace,a("./finally")(z,F,A)),X=a("./catch_filter")(A),Q=a("./nodeback"),ne=g.errorObj,Z=g.tryCatch;function z(K){K!==C&&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 "+g.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(C);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(!g.isObject(j))return d("Catch statement predicate: expecting an object but got "+g.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: "+g.classString(K);arguments.length>1&&(ie+=", "+g.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 "+g.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(g.originatesFromRejection,K)},z.getNewLibraryCopy=s.exports,z.is=function(K){return K instanceof z},z.fromNode=z.fromCallback=function(K){var te=new z(C);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=F(K);return te instanceof z||((te=new z(C))._captureStackTrace(),te._setFulfilled(),te._rejectionHandler0=K),te},z.resolve=z.fulfilled=z.cast,z.reject=z.rejected=function(K){var te=new z(C);return te._captureStackTrace(),te._rejectCallback(K,!0),te},z.setScheduler=function(K){if(typeof K!="function")throw new S("expecting a function but got "+g.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(C),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"&&g.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!==y)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=y),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=y),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:g.domainBind(fe,K)),typeof te=="function"&&(this._rejectionHandler0=fe===null?te:g.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:g.domainBind(fe,K)),typeof te=="function"&&(this[N+1]=fe===null?te:g.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(l(),!1);var ie=F(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(l())}},z.prototype._rejectCallback=function(K,te,ie){var ae=g.ensureErrorObject(K),fe=ae===K;if(!fe&&!ie&&q.warnings()){var j="a promise was rejected with a non-error: "+g.classString(K);this._warn(j,!0)}this._attachExtraTrace(ae,!!te&&fe),this._reject(K)},z.prototype._resolveFromExecutor=function(K){if(K!==C){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: "+g.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 p?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 p?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=l();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,g.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(C),resolve:B,reject:H}},g.notEnumerableProp(z,"_makeSelfResolutionError",l),a("./method")(z,C,F,d,q),a("./bind")(z,C,F,q),a("./cancel")(z,k,d,q),a("./direct_resolve")(z),a("./synchronous_inspection")(z),a("./join")(z,k,F,C,b,v),z.Promise=z,z.version="3.5.1",a("./map.js")(z,k,d,F,C,q),a("./call_get.js")(z),a("./using.js")(z,d,F,D,C,q),a("./timers.js")(z,C,q),a("./generators.js")(z,d,C,F,p,q),a("./nodeify.js")(z),a("./promisify.js")(z,C),a("./props.js")(z,k,F,d),a("./race.js")(z,C,F,d),a("./reduce.js")(z,k,d,F,C,q),a("./settle.js")(z,k,q),a("./some.js")(z,k,d),a("./filter.js")(z,C),a("./each.js")(z,C),a("./any.js")(z),g.toFastProperties(z),g.toFastProperties(z.prototype),ee({a:1}),ee({b:2}),ee({c:3}),ee(1),ee(function(){}),ee(void 0),ee(!1),ee(new z(C)),q.setBounds(_.firstLineError,g.lastLineError),z}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,c){s.exports=function(l,f,d,p,v){var y=a("./util");function g(x){var _=this._promise=new l(f);x instanceof l&&_._propagateFrom(x,3),_._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return y.isArray,y.inherits(g,v),g.prototype.length=function(){return this._length},g.prototype.promise=function(){return this._promise},g.prototype._init=function x(_,b){var w=d(this._values,this._promise);if(w instanceof l){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=y.asArray(w))!==null)w.length!==0?this._iterate(w):b===-5?this._resolveEmptyArray():this._resolve(function(C){switch(b){case-2:return[];case-3:return{};case-6:return new Map}}());else{var E=p("expecting an array or an iterable object but got "+y.classString(w)).reason();this._promise._rejectCallback(E,!1)}},g.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 C=d(x[E],b);S=C instanceof l?(C=C._target())._bitField:null,w?S!==null&&C.suppressUnhandledRejections():S!==null?50397184&S?w=33554432&S?this._promiseFulfilled(C._value(),E):16777216&S?this._promiseRejected(C._reason(),E):this._promiseCancelled(E):(C._proxy(this,E),this._values[E]=C):w=this._promiseFulfilled(C,E)}w||b._setAsyncGuaranteed()},g.prototype._isResolved=function(){return this._values===null},g.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},g.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},g.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},g.prototype._promiseFulfilled=function(x,_){return this._values[_]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},g.prototype._promiseCancelled=function(){return this._cancel(),!0},g.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},g.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof l)x.cancel();else for(var _=0;_<x.length;++_)x[_]instanceof l&&x[_].cancel()}},g.prototype.shouldCopyValues=function(){return!0},g.prototype.getActualLength=function(x){return x},g}},{"./util":36}],24:[function(a,s,c){s.exports=function(l,f){var d={},p=a("./util"),v=a("./nodeback"),y=p.withAppended,g=p.maybeWrapAsError,x=p.canEvaluate,_=a("./errors").TypeError,b={__isPromisified__:!0},w=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),S=function(D){return p.isIdentifier(D)&&D.charAt(0)!=="_"&&D!=="constructor"};function E(D){return!w.test(D)}function C(D){try{return D.__isPromisified__===!0}catch{return!1}}function T(D,q,W){var X=p.getDataPropertyOrDefault(D,q+W,b);return!!X&&C(X)}function A(D,q,W,X){for(var Q=p.inheritedDataKeys(D),ne=[],Z=0;Z<Q.length;++Z){var z=Q[Z],B=D[z],H=X===S||S(z);typeof B!="function"||C(B)||T(D,z,q)||!X(z,B,D,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 F=function(D){return D.replace(/([$])/,"\\$")},k=x?void 0:function(D,q,W,X,Q,ne){var Z=function(){return this}(),z=D;function B(){var H=q;q===d&&(H=this);var ee=new l(f);ee._captureStackTrace();var K=typeof z=="string"&&this!==Z?this[z]:D,te=v(ee,ne);try{K.apply(H,y(arguments,te))}catch(ie){ee._rejectCallback(g(ie),!0,!0)}return ee._isFateSealed()||ee._setAsyncGuaranteed(),ee}return typeof z=="string"&&(D=X),p.notEnumerableProp(B,"__isPromisified__",!0),B};function I(D,q,W,X,Q){for(var ne=new RegExp(F(q)+"$"),Z=A(D,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)D[K]=k(H,d,H,ee,q,Q);else{var te=X(ee,function(){return k(H,d,H,ee,q,Q)});p.notEnumerableProp(te,"__isPromisified__",!0),D[K]=te}}return p.toFastProperties(D),D}l.promisify=function(D,q){if(typeof D!="function")throw new _("expecting a function but got "+p.classString(D));if(C(D))return D;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)}(D,W);return p.copyDescriptors(D,Q,E),Q},l.promisifyAll=function(D,q){if(typeof D!="function"&&typeof D!="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),!p.isIdentifier(X))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var Z=p.inheritedDataKeys(D),z=0;z<Z.length;++z){var B=D[Z[z]];Z[z]!=="constructor"&&p.isClass(B)&&(I(B.prototype,X,Q,ne,W),I(B,X,Q,ne,W))}return I(D,X,Q,ne,W)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,c){s.exports=function(l,f,d,p){var v,y=a("./util"),g=y.isObject,x=a("./es5");typeof Map=="function"&&(v=Map);var _=function(){var S=0,E=0;function C(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(C,A),A}}();function b(S){var E,C=!1;if(v!==void 0&&S instanceof v)E=_(S),C=!0;else{var T=x.keys(S),A=T.length;E=new Array(2*A);for(var F=0;F<A;++F){var k=T[F];E[F]=S[k],E[F+A]=k}}this.constructor$(E),this._isMap=C,this._init$(void 0,C?-6:-3)}function w(S){var E,C=d(S);return g(C)?(E=C instanceof l?C._then(l.props,void 0,void 0,void 0,void 0):new b(C).promise(),C instanceof l&&E._propagateFrom(C,2),E):p(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}y.inherits(b,f),b.prototype._init=function(){},b.prototype._promiseFulfilled=function(S,E){if(this._values[E]=S,++this._totalResolved>=this._length){var C;if(this._isMap)C=function(k){for(var I=new v,D=k.length/2|0,q=0;q<D;++q){var W=k[D+q],X=k[q];I.set(W,X)}return I}(this._values);else{C={};for(var T=this.length(),A=0,F=this.length();A<F;++A)C[this._values[A+T]]=this._values[A]}return this._resolve(C),!0}return!1},b.prototype.shouldCopyValues=function(){return!1},b.prototype.getActualLength=function(S){return S>>1},l.prototype.props=function(){return w(this)},l.props=function(S){return w(S)}}},{"./es5":13,"./util":36}],26:[function(a,s,c){function l(f){this._capacity=f,this._length=0,this._front=0}l.prototype._willBeOverCapacity=function(f){return this._capacity<f},l.prototype._pushOne=function(f){var d=this.length();this._checkCapacity(d+1),this[this._front+d&this._capacity-1]=f,this._length=d+1},l.prototype.push=function(f,d,p){var v=this.length()+3;if(this._willBeOverCapacity(v))return this._pushOne(f),this._pushOne(d),void this._pushOne(p);var y=this._front+v-3;this._checkCapacity(v);var g=this._capacity-1;this[y+0&g]=f,this[y+1&g]=d,this[y+2&g]=p,this._length=v},l.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},l.prototype.length=function(){return this._length},l.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},l.prototype._resizeTo=function(f){var d=this._capacity;this._capacity=f,function(p,v,y,g,x){for(var _=0;_<x;++_)y[_+g]=p[_+0],p[_+0]=void 0}(this,0,this,d,this._front+this._length&d-1)},s.exports=l},{}],27:[function(a,s,c){s.exports=function(l,f,d,p){var v=a("./util"),y=function(x){return x.then(function(_){return g(_,x)})};function g(x,_){var b=d(x);if(b instanceof l)return y(b);if((x=v.asArray(x))===null)return p("expecting an array or an iterable object but got "+v.classString(x));var w=new l(f);_!==void 0&&w._propagateFrom(_,3);for(var S=w._fulfill,E=w._reject,C=0,T=x.length;C<T;++C){var A=x[C];(A!==void 0||C in x)&&l.cast(A)._then(S,E,void 0,w,null)}return w}l.race=function(x){return g(x,void 0)},l.prototype.race=function(){return g(this,void 0)}}},{"./util":36}],28:[function(a,s,c){s.exports=function(l,f,d,p,v,y){var g=l._getDomain,x=a("./util"),_=x.tryCatch;function b(T,A,F,k){this.constructor$(T);var I=g();this._fn=I===null?A:x.domainBind(I,A),F!==void 0&&(F=l.resolve(F))._attachCancellationCallback(this),this._initialValue=F,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,F,k){return typeof A!="function"?d("expecting a function but got "+x.classString(A)):new b(T,A,F,k).promise()}function E(T){this.accum=T,this.array._gotAccum(T);var A=p(this.value,this.array._promise);return A instanceof l?(this.array._currentCancellable=A,A._then(C,void 0,void 0,this,void 0)):C.call(this,A)}function C(T){var A,F=this.array,k=F._promise,I=_(F._fn);k._pushContext(),(A=F._eachValues!==void 0?I.call(k._boundValue(),T,this.index,this.length):I.call(k._boundValue(),this.accum,T,this.index,this.length))instanceof l&&(F._currentCancellable=A);var D=k._popContext();return y.checkForgottenReturns(A,D,F._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 l&&this._currentCancellable.cancel(),this._initialValue instanceof l&&this._initialValue.cancel())},b.prototype._iterate=function(T){var A,F;this._values=T;var k=T.length;if(this._initialValue!==void 0?(A=this._initialValue,F=0):(A=l.resolve(T[0]),F=1),this._currentCancellable=A,!A.isRejected())for(;F<k;++F){var I={accum:null,value:T[F],index:F,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)},l.prototype.reduce=function(T,A){return S(this,T,A,null)},l.reduce=function(T,A,F,k){return S(T,A,F,k)}}},{"./util":36}],29:[function(a,s,c){var l,f=a("./util"),d=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,v=r.nextTick;l=f.isRecentNode?function(g){p.call(i,g)}:function(g){v.call(r,g)}}else if(typeof d=="function"&&typeof d.resolve=="function"){var y=d.resolve();l=function(g){y.then(g)}}else l=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(g){o(g)}:typeof setTimeout<"u"?function(g){setTimeout(g,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var g=document.createElement("div"),x={attributes:!0},_=!1,b=document.createElement("div");return new MutationObserver(function(){g.classList.toggle("foo"),_=!1}).observe(b,x),function(w){var S=new MutationObserver(function(){S.disconnect(),w()});S.observe(g,x),_||(_=!0,b.classList.toggle("foo"))}}();s.exports=l},{"./util":36}],30:[function(a,s,c){s.exports=function(l,f,d){var p=l.PromiseInspection;function v(y){this.constructor$(y)}a("./util").inherits(v,f),v.prototype._promiseResolved=function(y,g){return this._values[y]=g,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},v.prototype._promiseFulfilled=function(y,g){var x=new p;return x._bitField=33554432,x._settledValueField=y,this._promiseResolved(g,x)},v.prototype._promiseRejected=function(y,g){var x=new p;return x._bitField=16777216,x._settledValueField=y,this._promiseResolved(g,x)},l.settle=function(y){return d.deprecated(".settle()",".reflect()"),new v(y).promise()},l.prototype.settle=function(){return l.settle(this)}}},{"./util":36}],31:[function(a,s,c){s.exports=function(l,f,d){var p=a("./util"),v=a("./errors").RangeError,y=a("./errors").AggregateError,g=p.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),C=E.promise();return E.setHowMany(S),E.init(),C}p.inherits(_,f),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var w=g(this._values);!this._isResolved()&&w&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},_.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 l||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var w=new y,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))},l.some=function(w,S){return b(w,S)},l.prototype.some=function(w){return b(this,w)},l._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(a,s,c){s.exports=function(l){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()},p=f.prototype.error=f.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},v=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},y=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},g=f.prototype.isPending=function(){return(50397184&this._bitField)==0},x=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},l.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},l.prototype._isCancelled=function(){return this._target().__isCancelled()},l.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},l.prototype.isPending=function(){return g.call(this._target())},l.prototype.isRejected=function(){return y.call(this._target())},l.prototype.isFulfilled=function(){return v.call(this._target())},l.prototype.isResolved=function(){return x.call(this._target())},l.prototype.value=function(){return d.call(this._target())},l.prototype.reason=function(){var _=this._target();return _._unsetRejectionIsUnhandled(),p.call(_)},l.prototype._value=function(){return this._settledValue()},l.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},l.PromiseInspection=f}},{}],33:[function(a,s,c){s.exports=function(l,f){var d=a("./util"),p=d.errorObj,v=d.isObject,y={}.hasOwnProperty;return function(g,x){if(v(g)){if(g instanceof l)return g;var _=function(w){try{return function(S){return S.then}(w)}catch(S){return p.e=S,p}}(g);if(_===p){x&&x._pushContext();var b=l.reject(_.e);return x&&x._popContext(),b}if(typeof _=="function")return function(w){try{return y.call(w,"_promise0")}catch{return!1}}(g)?(b=new l(f),g._then(b._fulfill,b._reject,void 0,b,null),b):function(w,S,E){var C=new l(f),T=C;E&&E._pushContext(),C._captureStackTrace(),E&&E._popContext();var A=!0,F=d.tryCatch(S).call(w,function(k){C&&(C._resolveCallback(k),C=null)},function(k){C&&(C._rejectCallback(k,A,!0),C=null)});return A=!1,C&&F===p&&(C._rejectCallback(F.e,!0,!0),C=null),T}(g,_,x)}return g}}},{"./util":36}],34:[function(a,s,c){s.exports=function(l,f,d){var p=a("./util"),v=l.TimeoutError;function y(w){this.handle=w}y.prototype._resultCancelled=function(){clearTimeout(this.handle)};var g=function(w){return x(+this).thenReturn(w)},x=l.delay=function(w,S){var E,C;return S!==void 0?(E=l.resolve(S)._then(g,null,null,w,void 0),d.cancellation()&&S instanceof l&&E._setOnCancel(S)):(E=new l(f),C=setTimeout(function(){E._fulfill()},+w),d.cancellation()&&E._setOnCancel(new y(C)),E._captureStackTrace()),E._setAsyncGuaranteed(),E};function _(w){return clearTimeout(this.handle),w}function b(w){throw clearTimeout(this.handle),w}l.prototype.delay=function(w){return x(w,this)},l.prototype.timeout=function(w,S){var E,C;w=+w;var T=new y(setTimeout(function(){E.isPending()&&function(A,F,k){var I;I=typeof F!="string"?F instanceof Error?F:new v("operation timed out"):new v(F),p.markAsOriginatingFromRejection(I),A._attachExtraTrace(I),A._reject(I),k!=null&&k.cancel()}(E,S,C)},w));return d.cancellation()?(C=this.then(),(E=C._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,c){s.exports=function(l,f,d,p,v,y){var g=a("./util"),x=a("./errors").TypeError,_=a("./util").inherits,b=g.errorObj,w=g.tryCatch,S={};function E(I){setTimeout(function(){throw I},0)}function C(I,D){var q=0,W=I.length,X=new l(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 l&&ne._isDisposable()){try{ne=d(ne._getDisposer().tryDispose(D),I.promise)}catch(Z){return E(Z)}if(ne instanceof l)return ne._then(Q,E,null,null,null)}Q()}(),X}function T(I,D,q){this._data=I,this._promise=D,this._context=q}function A(I,D,q){this.constructor$(I,D,q)}function F(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 D=this.resource(),q=this._context;q!==void 0&&q._pushContext();var W=D!==S?this.doDispose(D,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,D){return this.data().call(I,I,D)},k.prototype._resultCancelled=function(){for(var I=this.length,D=0;D<I;++D){var q=this[D];q instanceof l&&q.cancel()}},l.using=function(){var I=arguments.length;if(I<2)return f("you must pass at least 2 arguments to Promise.using");var D,q=arguments[I-1];if(typeof q!="function")return f("expecting a function but got "+g.classString(q));var W=!0;I===2&&Array.isArray(arguments[0])?(I=(D=arguments[0]).length,W=!1):(D=arguments,I--);for(var X=new k(I),Q=0;Q<I;++Q){var ne=D[Q];if(T.isDisposer(ne)){var Z=ne;(ne=ne.promise())._setDisposable(Z)}else{var z=d(ne);z instanceof l&&(ne=z._then(F,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]=l.resolve(X[Q]).reflect();var H=l.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 y.checkForgottenReturns(ae,fe,"Promise.using",ee),ae}),ee=H.lastly(function(){var K=new l.PromiseInspection(H);return C(X,K)});return X.promise=ee,ee._setOnCancel(X),ee},l.prototype._setDisposable=function(I){this._bitField=131072|this._bitField,this._disposer=I},l.prototype._isDisposable=function(){return(131072&this._bitField)>0},l.prototype._getDisposer=function(){return this._disposer},l.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},l.prototype.disposer=function(I){if(typeof I=="function")return new A(I,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(a,s,c){var l,f=a("./es5"),d=typeof navigator>"u",p={e:{}},v=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function y(){try{var W=l;return l=null,W.apply(this,arguments)}catch(X){return p.e=X,p}}function g(W){return W==null||W===!0||W===!1||typeof W=="string"||typeof W=="number"}function x(W,X,Q){if(g(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 C(W){return E(W)&&f.propertyIsWritable(W,"stack")}var T="stack"in new Error?function(W){return C(W)?W:new Error(S(W))}:function(W){if(C(W))return W;try{throw new Error(S(W))}catch(X){return X}};function A(W){return{}.toString.call(W)}var F=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};F=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]",D=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:F,notEnumerableProp:x,isPrimitive:g,isObject:function(W){return typeof W=="function"||typeof W=="object"&&W!==null},isError:E,canEvaluate:d,errorObj:p,tryCatch:function(W){return l=W,y},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 g(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:C,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:D,env:function(W){return D?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 c=function(B,H){return B.listeners(H).length},l=n(24),f=n(7).Buffer,d=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var v=n(41),y=void 0;y=v&&v.debuglog?v.debuglog("stream"):function(){};var g,x=n(42),_=n(25);p.inherits(S,l);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&&(g||(g=n(26).StringDecoder),this.decoder=new g(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)),l.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,F(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")):C(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?C(B,ae,H,!1):I(B,ae)):C(B,ae,H,!1))):K||(ae.reading=!1)),function(fe){return!fe.ended&&(fe.needReadable||fe.length<fe.highWaterMark||fe.length===0)}(ae)}function C(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&&F(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 g||(g=n(26).StringDecoder),this._readableState.decoder=new g(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 F(B){var H=B._readableState;H.needReadable=!1,H.emittedReadable||(y("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?o.nextTick(k,B):k(B))}function k(B){y("emit readable"),B.emit("readable"),X(B)}function I(B,H){H.readingMore||(H.readingMore=!0,o.nextTick(D,B,H))}function D(B,H){for(var ee=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark&&(y("maybeReadMore read 0"),B.read(0),ee!==H.length);)ee=H.length;H.readingMore=!1}function q(B){y("readable nexttick read 0"),B.read(0)}function W(B,H){H.reading||(y("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(y("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){y("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 y("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?ne(this):F(this),null;if((B=A(B,H))===0&&H.ended)return H.length===0&&ne(this),null;var K,te=H.needReadable;return y("need readable",te),(H.length===0||H.length-B<H.highWaterMark)&&y("length less than watermark",te=!0),H.ended||H.reading?y("reading or ended",te=!1):te&&(y("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,y("pipe count=%d opts=%j",K.pipesCount,H);var te=H&&H.end===!1||B===i.stdout||B===i.stderr?oe:ie;function ie(){y("onend"),B.end()}K.endEmitted?o.nextTick(te):ee.once("end",te),B.on("unpipe",function he(Se,se){y("onunpipe"),Se===ee&&se&&se.hasUnpiped===!1&&(se.hasUnpiped=!0,y("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;y("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&c(he,"data")&&(Se.flowing=!0,X(he))}}(ee);B.on("drain",ae);var fe=!1,j=!1;function N(he){y("ondata"),j=!1,B.write(he)!==!1||j||((K.pipesCount===1&&K.pipes===B||K.pipesCount>1&&z(K.pipes,B)!==-1)&&!fe&&(y("false write response, pause",ee._readableState.awaitDrain),ee._readableState.awaitDrain++,j=!0),ee.pause())}function U(he){y("onerror",he),oe(),B.removeListener("error",U),c(B,"error")===0&&B.emit("error",he)}function J(){B.removeListener("finish",Y),oe()}function Y(){y("onfinish"),B.removeListener("close",J),oe()}function oe(){y("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||(y("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=l.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&&F(this):o.nextTick(q,this))}return ee},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var B=this._readableState;return B.flowing||(y("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 y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("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(y("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){y("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){y("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,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?(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(y){switch((y=""+y)&&y.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(y){var g;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}(y),this.encoding){case"utf16le":this.text=c,this.end=l,g=4;break;case"utf8":this.fillLast=s,g=4;break;case"base64":this.text=f,this.end=d,g=3;break;default:return this.write=p,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(g)}function a(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function s(y){var g=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,y);return x!==void 0?x:this.lastNeed<=y.length?(y.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,g,0,y.length),void(this.lastNeed-=y.length))}function c(y,g){if((y.length-g)%2==0){var x=y.toString("utf16le",g);if(x){var _=x.charCodeAt(x.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",g,y.length-1)}function l(y){var g=y&&y.length?this.write(y):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,x)}return g}function f(y,g){var x=(y.length-g)%3;return x===0?y.toString("base64",g):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",g,y.length-x))}function d(y){var g=y&&y.length?this.write(y):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function p(y){return y.toString(this.encoding)}function v(y){return y&&y.length?this.write(y):""}t.StringDecoder=o,o.prototype.write=function(y){if(y.length===0)return"";var g,x;if(this.lastNeed){if((g=this.fillLast(y))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<y.length?g?g+this.text(y,x):this.text(y,x):g||""},o.prototype.end=function(y){var g=y&&y.length?this.write(y):"";return this.lastNeed?g+"<22>":g},o.prototype.text=function(y,g){var x=function(b,w,S){var E=w.length-1;if(E<S)return 0;var C=a(w[E]);return C>=0?(C>0&&(b.lastNeed=C-1),C):--E<S||C===-2?0:(C=a(w[E]))>=0?(C>0&&(b.lastNeed=C-2),C):--E<S||C===-2?0:(C=a(w[E]))>=0?(C>0&&(C===2?C=0:b.lastNeed=C-3),C):0}(this,y,g);if(!this.lastNeed)return y.toString("utf8",g);this.lastTotal=x;var _=y.length-(x-this.lastNeed);return y.copy(this.lastChar,0,_),y.toString("utf8",g,_)},o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(c){if(!(this instanceof o))return new o(c);r.call(this,c),this._transformState={afterTransform:(function(l,f){var d=this._transformState;d.transforming=!1;var p=d.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,f!=null&&this.push(f),p(l);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,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",a)}function a(){var c=this;typeof this._flush=="function"?this._flush(function(l,f){s(c,l,f)}):s(this,null,null)}function s(c,l,f){if(l)return c.emit("error",l);if(f!=null&&c.push(f),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(c,l){return this._transformState.needTransform=!1,r.prototype.push.call(this,c,l)},o.prototype._transform=function(c,l,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(c,l,f){var d=this._transformState;if(d.writecb=f,d.writechunk=c,d.writeencoding=l,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},o.prototype._read=function(c){var l=this._transformState;l.writechunk!==null&&l.writecb&&!l.transforming?(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform)):l.needTransform=!0},o.prototype._destroy=function(c,l){var f=this;r.prototype._destroy.call(this,c,function(d){l(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 c in s)s.hasOwnProperty(c)&&(a[c]=s[c])};return function(a,s){function c(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,c,l){var f=o.call(this,"Error: "+s+". JSON Line number: "+c+(l?" near: "+l:""))||this;return f.err=s,f.line=c,f.extra=l,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,c){return new a("column_mismatched",s,c)},a.unclosed_quote=function(s,c){return new a("unclosed_quote",s,c)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,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(y,g){y.__proto__=g}||function(y,g){for(var x in g)g.hasOwnProperty(x)&&(y[x]=g[x])};return function(y,g){function x(){this.constructor=y}v(y,g),y.prototype=g===null?Object.create(g):(x.prototype=g.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),c=n(51),l=o(n(15)),f=n(52),d=n(105),p=function(v){function y(g,x){x===void 0&&(x={});var _=v.call(this,x)||this;return _.options=x,_.params=s.mergeParams(g),_.runtime=c.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(y,v),y.prototype.preRawData=function(g){return this.runtime.preRawDataHook=g,this},y.prototype.preFileLine=function(g){return this.runtime.preFileLineHook=g,this},y.prototype.subscribe=function(g,x,_){return this.parseRuntime.subscribe={onNext:g,onError:x,onCompleted:_},this},y.prototype.fromFile=function(g,x){var _=this,b=n(!function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}());return b.exists(g,function(w){w?b.createReadStream(g,x).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},y.prototype.fromStream=function(g){return g.pipe(this),this},y.prototype.fromString=function(g){g.toString();var x=new a.Readable,_=0;return x._read=function(b){if(_>=g.length)this.push(null);else{var w=g.substr(_,b);this.push(w),_+=b}},this.fromStream(x)},y.prototype.then=function(g,x){var _=this;return new l.default(function(b,w){_.parseRuntime.then={onfulfilled:function(S){b(g?g(S):S)},onrejected:function(S){x?b(x(S)):w(S)}}})},Object.defineProperty(y.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),y.prototype._transform=function(g,x,_){var b=this;this.processor.process(g).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),_()})},y.prototype._flush=function(g){var x=this;this.processor.flush().then(function(_){if(_.length>0)return x.result.processResult(_)}).then(function(){x.processEnd(g)},function(_){x.emit("error",_),g()})},y.prototype.processEnd=function(g){this.result.endProcess(),this.emit("done"),g()},Object.defineProperty(y.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),y}(a.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,c=1,l={},f=!1,d=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?s=function(g){i.nextTick(function(){y(g)})}:function(){if(o.postMessage&&!o.importScripts){var g=!0,x=o.onmessage;return o.onmessage=function(){g=!1},o.postMessage("","*"),o.onmessage=x,g}}()?function(){var g="setImmediate$"+Math.random()+"$",x=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(g)===0&&y(+_.data.slice(g.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),s=function(_){o.postMessage(g+_,"*")}}():o.MessageChannel?function(){var g=new MessageChannel;g.port1.onmessage=function(x){y(x.data)},s=function(x){g.port2.postMessage(x)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var g=d.documentElement;s=function(x){var _=d.createElement("script");_.onreadystatechange=function(){y(x),_.onreadystatechange=null,g.removeChild(_),_=null},g.appendChild(_)}}():s=function(g){setTimeout(y,0,g)},p.setImmediate=function(g){typeof g!="function"&&(g=new Function(""+g));for(var x=new Array(arguments.length-1),_=0;_<x.length;_++)x[_]=arguments[_+1];var b={callback:g,args:x};return l[c]=b,s(c),c++},p.clearImmediate=v}function v(g){delete l[g]}function y(g){if(f)setTimeout(y,0,g);else{var x=l[g];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(g),f=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function c(g){o.writable&&o.write(g)===!1&&s.pause&&s.pause()}function l(){s.readable&&s.resume&&s.resume()}s.on("data",c),o.on("drain",l),o._isStdio||a&&a.end===!1||(s.on("end",d),s.on("close",p));var f=!1;function d(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function v(g){if(y(),r.listenerCount(this,"error")===0)throw g}function y(){s.removeListener("data",c),o.removeListener("drain",l),s.removeListener("end",d),s.removeListener("close",p),s.removeListener("error",v),o.removeListener("error",v),s.removeListener("end",y),s.removeListener("close",y),o.removeListener("close",y)}return s.on("error",v),o.on("error",v),s.on("end",y),s.on("close",y),o.on("close",y),o.emit("pipe",s),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(p){var v=l(p),y=v[0],g=v[1];return 3*(y+g)/4-g},t.toByteArray=function(p){for(var v,y=l(p),g=y[0],x=y[1],_=new o(3*(g+x)/4-x),b=0,w=x>0?g-4:g,S=0;S<w;S+=4)v=i[p.charCodeAt(S)]<<18|i[p.charCodeAt(S+1)]<<12|i[p.charCodeAt(S+2)]<<6|i[p.charCodeAt(S+3)],_[b++]=v>>16&255,_[b++]=v>>8&255,_[b++]=255&v;return x===2&&(v=i[p.charCodeAt(S)]<<2|i[p.charCodeAt(S+1)]>>4,_[b++]=255&v),x===1&&(v=i[p.charCodeAt(S)]<<10|i[p.charCodeAt(S+1)]<<4|i[p.charCodeAt(S+2)]>>2,_[b++]=v>>8&255,_[b++]=255&v),_},t.fromByteArray=function(p){for(var v,y=p.length,g=y%3,x=[],_=0,b=y-g;_<b;_+=16383)x.push(d(p,_,_+16383>b?b:_+16383));return g===1?(v=p[y-1],x.push(r[v>>2]+r[v<<4&63]+"==")):g===2&&(v=(p[y-2]<<8)+p[y-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,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(p){var v=p.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=v),[y,y===v?0:4-y%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function d(p,v,y){for(var g,x=[],_=v;_<y;_+=3)g=(p[_]<<16&16711680)+(p[_+1]<<8&65280)+(255&p[_+2]),x.push(f(g));return x.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,o,a){var s,c,l=8*a-o-1,f=(1<<l)-1,d=f>>1,p=-7,v=i?a-1:0,y=i?-1:1,g=n[r+v];for(v+=y,s=g&(1<<-p)-1,g>>=-p,p+=l;p>0;s=256*s+n[r+v],v+=y,p-=8);for(c=s&(1<<-p)-1,s>>=-p,p+=o;p>0;c=256*c+n[r+v],v+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return c?NaN:1/0*(g?-1:1);c+=Math.pow(2,o),s-=d}return(g?-1:1)*c*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var c,l,f,d=8*s-a-1,p=(1<<d)-1,v=p>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=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?(l=isNaN(r)?1:0,c=p):(c=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-c))<1&&(c--,f*=2),(r+=c+v>=1?y/f:y*Math.pow(2,1-v))*f>=2&&(c++,f/=2),c+v>=p?(l=0,c=p):c+v>=1?(l=(r*f-1)*Math.pow(2,a),c+=v):(l=r*Math.pow(2,v-1)*Math.pow(2,a),c=0));a>=8;n[i+g]=255&l,g+=x,l/=256,a-=8);for(c=c<<a|l,d+=a;d>0;n[i+g]=255&c,g+=x,c/=256,d-=8);n[i+g-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,c){a.copy(s,c)}e.exports=function(){function a(){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var c={data:s,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},a.prototype.unshift=function(s){var c={data:s,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var c=this.head,l=""+c.data;c=c.next;)l+=s+c.data;return l},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var c=r.allocUnsafe(s>>>0),l=this.head,f=0;l;)o(l.data,c,f),f+=l.data.length,l=l.next;return c},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,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,c){c(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)),c=n(54),l=o(n(16)),f=n(57),d=n(28),p=n(58),v=o(n(59)),y=o(n(29)),g=function(x){function _(){var b=x!==null&&x.apply(this,arguments)||this;return b.rowSplit=new p.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(_,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(y.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():c.prepareData(b,this.converter.parseRuntime),s.default.resolve().then(function(){return E.runtime.preRawDataHook?E.runtime.preRawDataHook(S):S}).then(function(C){return C&&C.length>0?E.processCSV(C,w):s.default.resolve([])})},_.prototype.processCSV=function(b,w){var S=this,E=this.params,C=this.runtime;C.eol||l.default(b,C),this.needEmitEol&&!this.eolEmitted&&C.eol&&(this.converter.emit("eol",C.eol),this.eolEmitted=!0),E.ignoreEmpty&&!C.started&&(b=d.trimLeft(b));var T=f.stringToLines(b,C);return w?(T.lines.push(T.partial),T.partial=""):this.prependLeftBuf(d.bufFromString(T.partial)),T.lines.length>0?(C.preFileLineHook?this.runPreLineHook(T.lines):s.default.resolve(T.lines)).then(function(A){return C.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(),C=this.rowSplit.parse(E);if(C.closed){S=C.cells,w="";break}w=E+l.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 C(T,A,F,k){if(F>=T.length)k();else if(A.preFileLineHook){var I=T[F],D=A.preFileLineHook(I,A.parsedLineNumber+F);if(F++,D&&D.then)D.then(function(q){T[F-1]=q,C(T,A,F,k)});else{for(T[F-1]=D;F<T.length;)T[F]=A.preFileLineHook(T[F],A.parsedLineNumber+F),F++;k()}}else k()})(b,w.runtime,0,function(C){C?E(C):S(b)})})},_}(a.Processor);t.ProcessorLocal=g}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(a,s){var c=function(f,d){return d.csvLineBuffer&&d.csvLineBuffer.length>0?r.concat([d.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var l=function(f,d){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(d.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(c,s).toString("utf8");return s.started===!1?o.default(l):l}}).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),c=o.split(s);return{lines:c,partial:c.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function c(l){this.conv=l,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=l.parseParam.quote,this.trim=l.parseParam.trim,this.escape=l.parseParam.escape}return Object.defineProperty(c.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),c.prototype.parse=function(l){if(l.length===0||this.conv.parseParam.ignoreEmpty&&l.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(l)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,v=l.split(p);if(f==="off"){if(d)for(var y=0;y<v.length;y++)v[y]=v[y].trim();return{cells:v,closed:!0}}return this.toCSVRow(v,d,f,p)},c.prototype.toCSVRow=function(l,f,d,p){for(var v=[],y=!1,g="",x=0,_=l.length;x<_;x++){var b=l[x];!y&&f&&(b=o.trimLeft(b));var w=b.length;if(y)this.isQuoteClose(b)?(y=!1,g+=p+(b=b.substr(0,w-1)),g=this.escapeQuote(g),f&&(g=o.trimRight(g)),v.push(g),g=""):g+=p+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="",C=0,T=b;C<T.length;C++){var A=T[C];A===d&&E!==this.escape?(S++,E=""):E=A}if(S%2==1){f&&(b=o.trimRight(b)),v.push(d+b);continue}y=!0,g+=b;continue}y=!0,g+=b;continue}f&&(b=o.trimRight(b)),v.push(b)}}return{cells:v,closed:!y}},c.prototype.getDelimiter=function(l){var f;if(this.conv.parseParam.delimiter==="auto")f=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var d=0,p=",";return f.forEach(function(v){var y=l.split(v).length;y>d&&(p=v,d=y)}),p},c.prototype.isQuoteOpen=function(l){var f=this.quote,d=this.escape;return l[0]===f&&(l[1]!==f||l[1]===d&&(l[2]===f||l.length===2))},c.prototype.isQuoteClose=function(l){var f=this.quote,d=this.escape;this.conv.parseParam.trim&&(l=o.trimRight(l));for(var p=0,v=l.length-1;l[v]===f||l[v]===d;)v--,p++;return p%2!=0},c.prototype.escapeQuote=function(l){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 l.replace(d,this.quote)},c.prototype.parseMultiLines=function(l){for(var f=[],d="";l.length;){var p=d+l.shift(),v=this.parse(p);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=p+(i.default(p,this.conv.parseRuntime)||`
`))}return{rowsCells:f,partial:d}},c}();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,C){for(var T=!1,A={},F=0,k=S.length;F<k;F++){var I=S[F];if(!C.parseParam.ignoreEmpty||I!==""){T=!0;var D=E[F];D&&D!==""||(D=E[F]="field"+(F+1));var q=l(D,F,C);if(q){var W=q(I,D,A,S,F);W!==void 0&&f(A,D,W,C,F)}else C.parseParam.checkType&&(I=v(I,D,F,C)(I)),I!==void 0&&f(A,D,I,C,F)}}return T?A:null}(_,b.parseRuntime.headers||[],b)||null}t.default=function(_,b){for(var w=[],S=0,E=_.length;S<E;S++){var C=s(_[S],b,S);C&&w.push(C)}return w};var c={string:g,number:y,omit:function(){}};function l(_,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=c[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 C=b.split("."),T=!0;C.length>0;)if(C.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]=p}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 p(_,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]=y:b.indexOf("string#!")>-1?S.parseRuntime.headerType[w]=g:S.parseParam.checkType?S.parseRuntime.headerType[w]=x:S.parseRuntime.headerType[w]=g}function y(_){var b=parseFloat(_);return isNaN(b)?_:b}function g(_){return _.toString()}function x(_){var b=_.trim();return b===""?g(_):a.test(b)?y(_):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}}(_):g(_)}},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(c,l,f,d){if(!a(c))return c;for(var p=-1,v=(l=i(l,c)).length,y=v-1,g=c;g!=null&&++p<v;){var x=s(l[p]),_=f;if(p!=y){var b=g[x];(_=d?d(b,x,g):void 0)===void 0&&(_=a(b)?b:o(l[p+1])?[]:{})}r(g,x,_),g=g[x]}return c}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,c){var l=a[s];o.call(a,s)&&i(l,c)&&(c!==void 0||s in a)||r(a,s,c)}},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\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,d=l.hasOwnProperty,p=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(v){return!(!o(v)||i(v))&&(r(v)?p: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(c){var l=o.call(c,s),f=c[s];try{c[s]=void 0;var d=!0}catch{}var p=a.call(c);return d&&(l?c[s]=f:delete c[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),a=n(100);e.exports=function(s,c){return r(s)?s:i(s,c)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,c){if(r(s))return!1;var l=typeof s;return!(l!="number"&&l!="symbol"&&l!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||c!=null&&s in Object(c)}},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(c,l,f,d){s.push(f?d.replace(i,"$1"):l||c)}),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 c=function(){var l=arguments,f=s?s.apply(this,l):l[0],d=c.cache;if(d.has(f))return d.get(f);var p=a.apply(this,l);return c.cache=d.set(f,p)||d,p};return c.cache=new(o.Cache||r),c}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 c(l){var f=-1,d=l==null?0:l.length;for(this.clear();++f<d;){var p=l[f];this.set(p[0],p[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},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 c(l){var f=-1,d=l==null?0:l.length;for(this.clear();++f<d;){var p=l[f];this.set(p[0],p[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},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 c(l){var f=-1,d=l==null?0:l.length;for(this.clear();++f<d;){var p=l[f];this.set(p[0],p[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,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,c=s?s.toString:void 0;e.exports=function l(f){if(typeof f=="string")return f;if(o(f))return i(f,l)+"";if(a(f))return c?c.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(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function c(l){this.converter=l,this.finalResult=[]}return Object.defineProperty(c.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"needPushDownstream",{get:function(){return this._needPushDownstream===void 0&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),c.prototype.processResult=function(l){var f=this,d=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&d===0&&s(this.converter,"["+o.EOL),new i.default(function(p,v){f.needEmitLine?function y(g,x,_,b,w){if(_>=g.length)w();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var S=x.parseRuntime.subscribe.onNext,E=g[_],C=S(E,x.parseRuntime.parsedLineNumber+_);if(_++,C&&C.then)C.then(function(){(function(A,F,k,I,D,q,W){D&&s(k,W),y(A,k,I,D,q)})(g,0,x,_,b,w,E)},w);else{for(b&&s(x,E);_<g.length;){var T=g[_];S(T,x.parseRuntime.parsedLineNumber+_),_++,b&&s(x,T)}w()}}else{if(b)for(;_<g.length;)T=g[_++],s(x,T);w()}}(l,f.converter,0,f.needPushDownstream,function(y){y?v(y):(f.appendFinalResult(l),p())}):(f.appendFinalResult(l),p())})},c.prototype.appendFinalResult=function(l){this.needEmitAll&&(this.finalResult=this.finalResult.concat(l)),this.converter.parseRuntime.parsedLineNumber+=l.length},c.prototype.processError=function(l){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(l),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(l)},c.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&s(this.converter,"]"+o.EOL)},c}();function s(c,l){if(typeof l!="object"||c.options.objectMode)c.push(l);else{var f=JSON.stringify(l);c.push(f+(c.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
`,t.homedir=function(){return"/"}}]);const W6e=at(V6e),H6e=e=>new Promise(t=>{W6e().fromString(e).then(t)}),G6e=new ZD,q6e=e=>G6e.parse(e),K6e="shlink",L4=e=>`${K6e}.${e}`;class Y6e{constructor(t){Ul(this,"get",t=>{const n=this.localStorage.getItem(L4(t));return n?JSON.parse(n):void 0});Ul(this,"set",(t,n)=>this.localStorage.setItem(L4(t),JSON.stringify(n)));this.localStorage=t}}class Z6e{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const X6e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",Y6e,"localStorage"),e.service("TagColorsStorage",Z6e,"Storage"),e.constant("csvToJson",H6e),e.constant("jsonToCsv",q6e),e.serviceFactory("useTimeoutToggle",()=>lD)},kl=new S6,{container:CP}=kl,Q6e=(e,t)=>(...n)=>e[t](...n),J6e=(e,t)=>({...e,[t]:Q6e(CP,t)}),eIe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),hb=(e,t=[])=>e6(e?eIe(e):null,t.reduce(J6e,{}));Tie(kl,hb);H$e(kl,hb);Oq(kl);R6e(kl,hb);X6e(kl);z6e(kl,hb);var PP={},qO={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 l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return r.apply(void 0,l)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return c(l[0]===!0,!1,l)}t.merge=r;function i(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return c(l[0]===!0,!0,l)}t.recursive=i;function o(l){if(Array.isArray(l)){for(var f=[],d=0;d<l.length;++d)f.push(o(l[d]));return f}else if(a(l)){var f={};for(var d in l)f[d]=o(l[d]);return f}else return l}t.clone=o;function a(l){return l&&typeof l=="object"&&!Array.isArray(l)}t.isPlainObject=a;function s(l,f){if(!a(l))return f;for(var d in f)d==="__proto__"||d==="constructor"||d==="prototype"||(l[d]=a(l[d])&&a(f[d])?s(l[d],f[d]):f[d]);return l}function c(l,f,d){var p;(l||!a(p=d.shift()))&&(p={});for(var v=0;v<d.length;++v){var y=d[v];if(a(y)){for(var g in y)if(!(g==="__proto__"||g==="constructor"||g==="prototype")){var x=l?o(y[g]):y[g];p[g]=f?s(p[g],x):x}}}return p}})(qO,qO.exports);var tIe=qO.exports;(function(e){var t=n(tIe);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=q,e.combineLoads=D,e.load=I,e.save=k;function n(z){return z&&z.__esModule?z:{default:z}}function r(z,B){return c(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 c(z){if(Array.isArray(z))return z}function l(z){"@babel/helpers - typeof";return l=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},l(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]",p="redux_localstorage_simple",v="_",y=[],g=[],x=0,_=!1,b=!1,w=new Map;function S(z){console.warn(d,z)}function E(){}var C=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 F(z){this.warnFn=z||S}Object.defineProperty(F.prototype,"length",{get:function(){try{return localStorage.length}catch(z){this.warnFn(z)}return 0},configurable:!0,enumerable:!0}),F.prototype.key=function(z){try{return localStorage.key(z)}catch(B){this.warnFn(B)}return null},F.prototype.setItem=function(z,B){try{localStorage.setItem(z,JSON.stringify(B))}catch(H){this.warnFn(H)}},F.prototype.getItem=function(z){try{return JSON.parse(localStorage.getItem(z))}catch(B){this.warnFn(B)}return null},F.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?y:B,ee=z.ignoreStates,K=ee===void 0?g:ee,te=z.namespace,ie=te===void 0?p: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(Pe,Ae){return 1<Pe.split(".").length?T(Pe.split("."),Ae):T([Pe],Ae)}function se(){H.length===0?Te.setItem(ie,pe):H.forEach(function(Pe){var Ae=ie+fe+Pe,le=Se(Pe,pe);le?Te.setItem(Ae,le):Te.removeItem(Ae)})}var pe,me=C(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=y),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=g),0<K.length&&(K=K.filter(function(Pe){return X(Pe)?Pe: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=p),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 F(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?y:B,ee=z.immutablejs,K=ee===void 0?_:ee,te=z.namespace,ie=te===void 0?p: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=C(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=y),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=p),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 F(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 D(){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?p:B,ee=z.disableWarnings,K=ee===void 0?b:ee,te=C(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=p);for(var ie,ae=new F(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&&l(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}})(PP);const nIe=e=>ME({appUpdated:Pie,servers:g6e,selectedServer:e.selectedServerReducer,settings:B6e}),rIe=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),iIe=!0,e9={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},oIe=rIe(PP.load(e9)),aIe=e=>SD({devTools:!iIe,reducer:nIe(e),preloadedState:oIe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(PP.save(e9))}),sIe=!!(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 lIe(e){if("serviceWorker"in navigator){if(new URL(zv.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${zv.homepage}/service-worker.js`;sIe?(cIe(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")})):t9(n,e)})}}function t9(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 cIe(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()})}):t9(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const n9=aIe(CP),{App:uIe,ScrollToTop:fIe,ErrorHandler:dIe,appUpdateAvailable:hIe}=CP;q$(document.getElementById("root")).render(m.jsx(t6,{store:n9,children:m.jsx(d6,{basename:zv.homepage,children:m.jsx(dIe,{children:m.jsx(fIe,{children:m.jsx(uIe,{})})})})}));lIe({onUpdate(){n9.dispatch(hIe())}});